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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var BM,ONr,Qep,HM,$O,HNM,vOO,fN,hz,K5r,$ps,Mrp,gN,iNs,xpS,jr,tre,Vr5,XMz,h6s,uII,jes,pMs,L55,Cse,lpO,Qu,yzY,$9,czs,Me,YSY,r8,Jm,wM5,e6p,So,E3,sep,O$p,mer,l2,QjM,H$I,k9,v9O,KUe,$er,cs,GpY,Y9,rm6,xeN,Z$z,R3,z_N,Jms,ro,Uef,KB,toM,WUM,g9z,jjs,IHz,Vr,E9Y,S3p,LUN,C2p,o9f,aHr,kpp,Y3e,des,DeY,N8M,FUf,BoN,HBS,Q3p,CB,vhY,R0p,a3,xJY,ZBf,UJp,z0p,tK6,kh,lHI,yr,cb,wo,Jsf,eK,nhr,VKN,bBs,Fr,XbI,fxI,h0M,Toz,urf,ghM,j3N,IxO,pb6,NJ,Eh6,CyM,lxf,kus,H8,csN,wb5,$0,s3N,FAS,dJr,Asr,mPO,Gce,MA6,H9e,Ro5,xPO,qh5,tAe,WaS,VA5,
b9O,fqS,g0I,jnN,Iqf,Shr,CGY,cLp,jA,dPs,eop,DPp,on,lG,k0,sh,P8,OI,G9S,H_r,v3z,Mue,RqO,i_Y,x3,xGf,UI,tX,Wi,Z9,UGe,tup,WI6,Z_e,zqS,VuY,b_e,n3O,Xiz,hqI,bS,Vv,TCN,g3r,uPN,I9O,joz,piM,SIM,E3N,Io,p_,Su,EI,C_,CSf,oo,l9p,YIp,ao,dGN,wiO,eqp,yv,DG5,soY,NCN,ci,AXs,dC,GP6,B9Y,eu,HLS,QMr,v65,KsY,$MY,MS6,NG,rYN,Rfe,Pi,iLs,xMr,FP,AX,O_,GP,q_O,tSO,UMS,BY,ZLN,zfz,JYY,HY,$6,MM,r9,RM,iC,VSI,bL5,XYI,fnf,hfe,T9S,g6r,uyp,jMI,Ine,pYM,S_M,E6z,LsI,U_,CC6,o6S,zP,lnN,VD,bC,anp,cYp,Y_N,dMN,efz,DMN,sMO,AYs,Odp,mZY,GyN,B_e,Qwp,
Hds,Mer,fL,rFN,REz,idN,xZf,q0Y,UZe,W_e,uKz,jwf,IZY,EaN,L_p,LL,CjO,aZs,cFM,Y0r,dZp,whr,eEp,DZe,swp,N_I,F_r,AFM,kyr,OSS,m_z,GJp,BhI,Q9Y,HSe,vvz,KNN,$_6,iSz,r0O,U_s,x_e,qRN,ZSY,zlN,J0e,tEs,bS5,WNr,Xf5,AY,fKp,O0,Gy,hlz,gvS,uH6,pfe,c0Y,Eve,SRN,CFM,lKN,LNe,s9e,wfO,Nhp,PFI,FNs,A0f,OnN,GnS,mrf,BiN,Q8s,HnN,vBO,$r6,rNs,R2S,inS,qZN,xrN,h25,vh,TiO,uqN,j8O,IyS,pxp,SZS,Lm6,CzM,oBN,xa,qZ,lyO,dr6,Wh,ZZ,s8N,Pz5,KMS,nd,rE5,RJe,UuI,xup,qep,g_,t9I,WMM,zJY,JEY,V9z,bRS,nRN,X75,fgM,TII,gRY,jds,uzs,Sep,ow,ka,LMS,CbN,oRN,
lgY,agO,kgY,cEN,dus,Yez,mN,Bf,ZpN,KS,XIM,fDS,$v,TYz,htz,Cnp,oGS,lDs,kVI,dIs,etO,DIp,sO6,NYO,Fos,OEN,mTe,iF,BEY,vte,KPS,$TY,M0p,RNY,HEf,GHN,rlO,q_,qJO,ZEp,t05,t0,Jle,bEp,ntO,XHS,fbS,J0,hNN,gtf,TEO,ug6,IbN,nS,otN,YJY,eNN,wHe,NEN,TJ,AlM,jE,SE,I9,Bjr,FPM,Qas,CS,$Dp,a9,kv,RWN,qD5,tjr,Wdz,ZIM,yj,zWp,cf,JJp,bIr,nVN,Xef,f15,Tje,wh,gVI,u2M,N_,A0,per,SD5,EVY,Lds,l1O,a1r,yJ5,cJM,NjN,P_z,eWS,AJz,OC6,m5f,ri,iz,xB,HCO,vfN,UZ,K9N,$5N,MUp,rcO,iCN,x5N,qFp,U5M,R8e,tUI,zn,ZCS,nfs,JN,bCp,Xre,W9M,ffr,bz,TKS,gfM,uES,jqM,
prr,Ifr,SFp,CHI,EfS,lfO,d5S,e8S,sqr,F9r,PHf,NKs,AcM,mCp,BrI,GCO,Hrf,pn,K8S,$Cz,MY6,rKN,xCs,UCN,qBz,tYz,W8N,Cn,Zr5,zPr,VYs,ncf,hPf,gcN,TrS,Qb,umN,br6,CPS,lYI,aYs,kCs,rI,yKe,YBp,ePp,NrI,sse,Osz,moe,Gkp,BvN,HsI,rar,vsf,$oN,MHM,RZI,isM,qrS,xo5,tHI,Uop,Xz,Wf5,zZf,Jaz,XqO,pR,S9,fhM,hZN,Ee,jQY,lb,ad,kR,EsM,yb,osz,dI,lhN,ahO,kkS,yaf,Dg,caN,YrN,doY,eZN,sQ6,Ffe,OfN,QJ,mBY,GLN,BHI,QhS,Hfs,vHY,KZS,$Bz,Kp,Ra5,ife,xBI,qKS,UBY,tw6,WZ6,ZfS,zaz,JVS,Vw6,bfs,nHs,tv,LZY,CuS,WI,ZD,zV,oHM,lkO,akN,kLe,yVN,cVN,YKf,shM,NHe,
Pue,FZp,AVY,np,fp,hv,TV,ja,IO,pp,mjN,EO,BXN,Lp,Quf,H7f,Cp,vZ6,K$f,$jM,W$f,zSO,XC5,gZN,TX6,Z7r,uVN,pCY,eSf,lO6,F$s,kwS,PcN,AGI,cI,mNN,dY,Buf,Qpr,vn6,Kpz,$Nf,r1N,DD,imN,xNN,qzI,UNI,tgI,Wps,ZmI,RBY,Vgp,bmI,nnp,NI,uJN,jpz,gnM,pEe,Sz6,Lpf,CKr,EnO,Yzp,wE6,DNp,Nue,vH,BgN,mip,G$f,$is,rHz,R$e,iHz,xi6,qf5,UiS,tl,X66,h$5,bHz,VVI,fwf,Wwp,ggp,aw5,Iws,p66,Sff,NgS,Fwr,sZs,Q_p,Dis,tV6,BRp,jZf,lwM,PEN,Tgz,z$5,ZHY,JHN,ngI,e$s,S0,ZJp,Jtf,Vhr,bJf,niN,puf,lvS,avM,Yt,ytI,d1O,s_O,D1N,P5s,F3Y,Ozz,GUp,mkI,BDf,Be,Q$O,Hzz,
KH5,vKY,Qe,xkN,iz5,RCr,WH5,qpe,Zzp,tlp,zCS,JIY,Xc6,bzN,nKp,hCs,uv6,j$s,Spf,EKe,LHN,oKp,MD,aL5,cIf,kUz,YpS,DkM,s$O,FHS,Okr,qD,UD,Q65,Hke,tJ,We,vpf,Z1,zX,Kkz,JJ,$Xp,Ve,Mk6,r8N,nI,RvM,ikM,xXe,qQf,UXM,WkN,tkp,zvO,bkz,VkS,npO,X$O,ZkY,foz,gpS,TJY,J8f,uYs,j6s,gj,IoY,SQ6,p$r,Ep6,Lke,opr,CWz,lof,jj,kKs,y8S,aor,YQf,dX6,w$Y,NJz,A8r,QES,$Qs,Ia,RTI,iqN,ED,xQS,l_,aa,zTf,CI,dj,Jwp,VZz,nF5,XpI,hT5,gFp,uSN,jEN,IMO,EFY,aMr,oFM,SgO,kiS,yw5,sD,lMr,cwM,F2,Ygf,dQM,wpp,eTI,Pgs,DQ6,N75,m06,GDY,Kgs,v7r,rRz,tGN,WgO,zVp,VGI,
b4N,X4M,feY,hVe,g7s,u9r,jDO,Sbp,o7I,le5,E7e,kDp,cRY,yRp,aeI,YbO,w4N,eVr,D0N,sDz,NsY,rK,Rq,q5,tc,AR6,OyM,GZs,Hyr,Wr,Zf,vNN,zA,MBS,RI6,iyp,VA,WiM,VBf,nNO,XkY,fre,hIs,T6p,j7f,nC,IrY,ENs,XE,Lir,lrO,ars,kZf,oNp,eIN,N6S,Dvz,PlY,OYf,Gmf,QKs,$mp,K7p,iYM,uH,xmO,q6s,jU,Ums,Iq,tfp,W7r,ZYe,JZN,z7r,Vfz,bYN,nre,XGr,IIY,S6r,L7z,Erz,gre,h7O,orN,aIM,dmI,wGp,sKz,m$5,BkS,LC,QR6,vIY,KbS,Mq6,x$M,tqN,zbN,JSN,Vq6,bTS,TkS,nIr,IVS,p1p,SsM,LbS,lH,Car,lVS,aV6,kBI,ySI,cSO,Ys6,d$5,ebN,D$N,cr,sRr,Nk5,FbY,dK,Pas,OUI,QcY,Df,HUz,
vJe,Kxr,rxO,Rh6,$se,xsI,WxI,ZUN,zhz,OB,JxY,Xv6,fdY,Qs,gJp,hhY,Twp,IdO,pvp,SiI,oJr,kEz,adp,ldY,yxI,Yif,dsf,Nwf,wvI,PUz,Axr,Fxp,HGN,$4p,re5,iGf,tLs,nLz,kc,fms,udM,Imp,lP,sB,oLe,yez,kv6,Yoe,d4I,eee,wKf,D4z,siN,NC,fOO,lmr,ceY,amN,eY,FON,AeN,Ojz,mcN,G0f,BTN,QCp,Hjz,Ks,v4s,Kts,$cs,MPS,rfs,RQ,R5f,qar,tPr,WtN,XzI,h5f,TTN,g4f,jCI,IsN,bQ,Sa6,E4Y,LtS,CqI,o45,lsN,k0f,cfe,dcN,wzN,FtI,NTN,Af5,G_N,Bcp,jH,QSs,HKz,vzs,MIs,RA5,rQr,xOz,UOz,Er,WEp,ZKM,tIN,zAO,JQp,bKM,X35,nzY,fNO,VIf,hAp,Tcz,gz6,uWN,jSM,IN5,p36,S16,Ezz,
oz6,CRz,lNs,k_z,aNM,Ls,yQp,dOf,sSS,cQI,FEM,AQz,Ois,m2p,QtY,R9N,iis,qEs,U2p,sr,z9I,nAs,h9O,No,jtp,TSS,gAp,u5N,IUS,CAY,OK,oAN,lUN,aU6,yCI,cC5,YEf,d2I,e9N,D2M,Byz,ACr,mxf,H3e,QFS,vof,K2r,M1Y,RRN,xxf,Uxf,t1r,Z3z,HQS,$dO,rnS,RHz,iQO,xdI,qLS,t6e,WTI,Jn5,V6N,bQp,nkN,XTO,fcN,hH5,Ttz,j4M,EkN,xH,qB,UK,LTY,COf,Zk,lcN,Dd5,OWN,FTN,tQz,WF5,ZW5,kR5,eHI,YLf,JhN,VQM,bWM,nmI,Nt6,XL5,hLM,gmO,I2M,pLf,jw,Sw,EK,kj6,a2O,dKY,wLr,mf5,Bap,HxN,vUp,MCY,RuN,rW5,q5p,tCI,nUS,VCO,Zxf,bx5,zus,XoY,gUN,Oc,oUf,EU5,aS6,kFS,cWf,Y5M,Gw,
dfO,Df5,s0N,NaY,FcY,P3p,HC,QUM,Ru,vSN,K1r,xZ,$bM,MFs,rTf,Rss,i5I,xbf,qM6,Ub5,tFs,W1z,Z5e,zsp,JTs,VF5,b5N,qj,nSN,XPz,faz,hsS,TOS,gSS,u3s,jUr,IaO,pPf,SM5,ESf,tG,Cdf,la5,kaz,YMs,esf,Dbf,sU5,PdM,ATM,OMf,mRN,XV,v5p,QI5,KLM,$Rz,MX5,iMs,xR5,qAN,tXr,C7,ZMf,Ec,Jop,VXO,ou,bMN,n5f,Xwr,f8e,au,uhI,I8f,C9s,LLO,l8N,a8O,sc,k4O,yoN,YAp,ww5,ekN,sI6,NMr,dRf,P9r,GQY,vep,KVf,Nj,$Wp,MOp,q8e,rup,iaN,xWp,Jus,tOM,VON,ne5,fG5,h3f,T4O,geI,uMM,jA5,pFz,S8p,Eez,LVI,C$S,lGS,kQS,Y8O,DWY,P$e,Au5,GT5,BE,BFN,Q5N,Hvp,vQe,KDp,M$M,rDM,
R4p,ivp,x8f,qlI,U8M,t$Y,WDe,ZvI,z4S,V$f,JDr,XR5,h4f,vE,TFN,j5p,uif,Sl6,EQ6,LDM,oQO,kTY,YlS,cDS,aQ5,e4S,wR6,FDY,D8O,Rp,NFr,H1e,mES,Go6,BQS,Q2z,vTM,$EN,KCp,iK,xn,UES,rkf,qY5,xES,Rnz,i1z,Z1f,Jke,b1Y,VvN,hnr,fis,gTe,j2M,IiY,uxe,p_N,ETf,SYS,CiY,ai6,zS,koN,ykN,dEO,NQz,GGs,Va,Qzp,$AN,iFr,Rgr,Mme,r95,h1,tm6,xAz,q4N,WjM,zgO,ZFN,bFf,nlp,flf,hg5,TPr,glI,u65,Ilf,pZS,ap,Elz,Ljr,als,kGI,du,y9N,Y4e,A95,NN,DAp,Fjf,sz5,NPO,B0f,GIe,KKN,Qfp,$9f,Mdf,A1,RGr,i6I,x9f,riY,G$,qGr,Of,Z6f,fTN,hGS,T0r,gDs,uBz,jfS,EDf,pUf,SGp,
ITN,Cfp,aTO,cir,YGO,wU6,sfO,eGs,D9S,N05,FKe,AiN,Obp,mqO,Gtp,BbI,Hb5,rg,Klz,rOI,Mse,ibr,RF6,xqz,qxI,ts6,WlN,Tbp,f3S,jT5,I3N,oxI,l3O,a3S,ktr,yOM,cOS,wAp,eFr,Dqe,NbY,Phf,Fls,Xw,G8I,mgI,OAf,AO6,QNe,K4z,HAN,MDf,r7I,Rwp,iAS,xgM,qnz,UgO,tD6,VD6,W4r,ZAI,zw6,bAe,nXe,X0N,J7p,gg,TeY,uXY,gXr,jV,I6M,p0Y,Snf,jNf,EXI,L4M,C1M,oXI,l6e,k8p,y7z,c7N,Yn6,ewN,w0Y,F4Y,dgS,IZ,A7s,Dge,P1s,GWY,BUN,QlS,H8N,vjS,K6I,$nY,M45,rrM,RdY,i8r,xnf,UnI,t46,W6N,zdr,V4p,njp,fjI,jlN,gjp,ubz,TUr,hdp,Ijz,pV6,eV,L66,ojS,ljI,aj6,kWp,yrI,crI,
Dn6,dn5,YNM,wVM,HwY,BdN,ed5,GdM,iw5,xye,q$O,UyY,tyO,zrI,Vyr,n1M,fW6,hrO,Tdf,IWp,jv6,pNN,E1f,xi,o1f,lWN,aWN,kdr,Uv,tt,Y$e,dyp,erp,Nd5,G5I,vM5,KSp,$Se,M7N,r2s,RMY,xSr,USI,qmf,t75,ZtM,zMO,J2S,V75,bt5,nMS,b5,Xne,Iue,pns,gMs,T$Y,jW5,uGY,oMI,lup,aur,k5M,y2Y,c2r,wnO,dSN,Yme,OhN,mhS,GzI,HhS,vdY,BBN,QX5,qtY,t5p,ZhN,Jpr,bhp,XOY,gdN,uRN,jXe,St6,pOp,I5O,Edz,Lyz,odM,l5r,a5N,kzz,ypY,cpN,dhM,wOM,eK6,Dhs,sXS,NBI,Apf,OZf,Grp,QHI,BfO,HZI,LJ,vPf,KrY,$lf,Mce,xl6,iZs,qjI,Ule,tcz,WrI,JqM,bZS,nPr,XBS,fFp,hxS,Tfe,gPs,upO,
jHz,IFS,Sjr,pBs,EPe,Lrp,Ctf,oPf,lFf,aFY,krM,yqp,Yi,YjM,dlM,exs,Dlr,sHI,Nfz,Pt5,Fr6,Oep,mwN,B1O,Her,Kee,R1M,M_S,$wf,r5s,iep,xwO,qUs,Wep,ZeS,z1N,J5Y,beN,n$6,Xtr,h1s,fAN,T1M,g$5,u7N,ptO,SUe,E$6,Ler,Cwr,o$r,k7N,y5N,Bc,Dwr,sJI,Pws,OON,A5s,mFN,GxN,QQ,vc,QbS,HON,Mk,rD,Mpe,v2e,KQO,iOp,xFs,qVM,UFI,zDM,Vpe,bOe,n2S,X5I,f4O,TqM,g2f,uf6,jbO,I45,p5S,SVp,xK,E2r,LQO,Up,CZI,o2f,l4f,a4f,kxI,yPf,ZL,zU,cPY,YV5,JI,dFf,w55,eDY,DFs,Nqe,PZI,APO,QVI,BnO,G3e,HVs,vbz,iVO,MJp,rjf,$HN,RzS,bm,UH6,tJ5,WnS,ZVz,zzz,VJp,nbs,hzf,jVp,
gbr,nz,Tnp,Lnp,obs,Xv,lPe,aPz,k3N,cjs,Yyp,dHf,wj6,DHN,sVM,Nnz,FnM,Aj6,mLO,G15,KYs,vy6,Mzz,r_f,Rir,WYI,Z2S,zie,J_O,nyS,hiN,I$,pz,TGI,gyp,uDs,j1z,I_S,SWI,EyO,LYO,C6r,l_M,a_f,k1z,Sl,y_N,c_M,wSr,eiN,Ep,Lz,NGS,DLY,A_N,P65,OPO,GOY,a$,Blp,QkY,KWr,MnI,kK,Rcz,iP5,xzN,q7Y,Uzs,tnN,WWN,ZPf,bP5,nES,hcY,XlS,ftM,Tlz,Itp,gES,jkI,plp,S7f,EEM,oEz,ltY,atN,y3N,c3I,skS,Dzp,mar,Qgp,Nk,HDI,gBN,vC5,KJs,Mbr,iD5,xaz,J4N,VbI,bDe,nCS,Xyr,fJr,TAp,gCz,jgI,pyN,uee,IJr,ECs,SCr,CJz,aJS,oCO,k2S,y4O,c4r,YCS,daN,wyI,DaN,eUr,FJS,mV5,
A4s,GNI,Bxr,Qx6,H$,H0z,vWp,Kk,$V6,Kvs,MRN,rye,i0Y,xVz,UVe,tRY,WvN,Z0S,VRf,nWO,hON,f06,TxN,gWN,I0r,yys,Lv6,YdS,dV5,eON,DVp,Fvs,AyM,OgO,mUS,Gfr,BLM,HgM,vu6,Kze,M25,$U6,igN,xUf,quf,UUY,t2I,WzY,Zg6,JdY,nup,Xa5,f$N,hQs,TLS,gue,I$S,jGM,Lzp,Cks,ouO,l$r,a$p,ydY,kfS,YuI,sGz,Adr,FzN,OXO,mYS,Gq6,QP5,TK,v8M,I6,$Yf,r6S,Rpr,t3e,ZXI,V3f,n8O,XQs,hp5,TZf,g8r,jPe,pQf,SkN,LRO,lzY,o8s,CB5,kp,kq6,aze,y6M,c6M,Yk5,dY6,wQN,epM,DYN,NZz,PB5,FRp,A6f,OcY,m7e,Gsr,BVr,QBN,vqN,KB6,U75,tTS,WBf,zYz,Jbs,VTe,XWf,Do,jBz,IXp,pW6,SP6,
EqI,sQ,NX,GJ,P$,A8,cbM,YP6,eYp,sBs,D7p,m0,NVp,PMf,FBr;_.GY=function(O,m){if(Error.captureStackTrace)Error.captureStackTrace(this,_.GY);else{var G=Error().stack;G&&(this.stack=G)}O&&(this.message=String(O));m!==void 0&&(this.cause=m)};
BM=function(){throw Error("E");};
ONr=function(O,m){m=String.fromCharCode.apply(null,m);return O==null?m:O+m};
Qep=function(O){var m=!1;m=m===void 0?!1:m;if(mpf){if(m&&(GYp?!O.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(O)))throw Error("F");O=(BNY||(BNY=new TextEncoder)).encode(O)}else{for(var G=0,B=new Uint8Array(3*O.length),Q=0;Q<O.length;Q++){var H=O.charCodeAt(Q);if(H<128)B[G++]=H;else{if(H<2048)B[G++]=H>>6|192;else{if(H>=55296&&H<=57343){if(H<=56319&&Q<O.length){var M=O.charCodeAt(++Q);if(M>=56320&&M<=57343){H=(H-55296)*1024+M-56320+65536;B[G++]=H>>18|
240;B[G++]=H>>12&63|128;B[G++]=H>>6&63|128;B[G++]=H&63|128;continue}else Q--}if(m)throw Error("F");H=65533}B[G++]=H>>12|224;B[G++]=H>>6&63|128}B[G++]=H&63|128}}O=G===B.length?B:B.subarray(0,G)}return O};
HM=function(O){_.Qf.setTimeout(function(){throw O;},0)};
_.KN=function(O,m){return O.lastIndexOf(m,0)==0};
$O=function(O,m){var G=O.length-m.length;return G>=0&&O.indexOf(m,G)==G};
_.Re=function(O){return/^[\s\xa0]*$/.test(O)};
_.is=function(O,m){return O.indexOf(m)!=-1};
_.qp=function(O,m){return _.is(O.toLowerCase(),m.toLowerCase())};
_.WM=function(O,m){var G=0;O=tz(String(O)).split(".");m=tz(String(m)).split(".");for(var B=Math.max(O.length,m.length),Q=0;G==0&&Q<B;Q++){var H=O[Q]||"",M=m[Q]||"";do{H=/(\d*)(\D*)(.*)/.exec(H)||["","","",""];M=/(\d*)(\D*)(.*)/.exec(M)||["","","",""];if(H[0].length==0&&M[0].length==0)break;G=HNM(H[1].length==0?0:parseInt(H[1],10),M[1].length==0?0:parseInt(M[1],10))||HNM(H[2].length==0,M[2].length==0)||HNM(H[2],M[2]);H=H[3];M=M[3]}while(G==0)}return G};
HNM=function(O,m){return O<m?-1:O>m?1:0};
_.zY=function(){var O=_.Qf.navigator;return O&&(O=O.userAgent)?O:""};
vOO=function(O){if(!Jz||!bs)return!1;for(var m=0;m<bs.brands.length;m++){var G=bs.brands[m].brand;if(G&&_.is(G,O))return!0}return!1};
fN=function(O){return _.is(_.zY(),O)};
hz=function(){return Jz?!!bs&&bs.brands.length>0:!1};
K5r=function(){return hz()?!1:fN("Opera")};
$ps=function(){return hz()?!1:fN("Trident")||fN("MSIE")};
Mrp=function(){return hz()?vOO("Microsoft Edge"):fN("Edg/")};
gN=function(){return fN("Firefox")||fN("FxiOS")};
_.rzS=function(){return fN("Safari")&&!(_.us()||(hz()?0:fN("Coast"))||K5r()||(hz()?0:fN("Edge"))||Mrp()||(hz()?vOO("Opera"):fN("OPR"))||gN()||fN("Silk")||fN("Android"))};
_.us=function(){return hz()?vOO("Chromium"):(fN("Chrome")||fN("CriOS"))&&!(hz()?0:fN("Edge"))||fN("Silk")};
_.R6s=function(){return fN("Android")&&!(_.us()||gN()||K5r()||fN("Silk"))};
iNs=function(O){var m={};O.forEach(function(G){m[G[0]]=G[1]});
return function(G){return m[G.find(function(B){return B in m})]||""}};
xpS=function(O){var m=_.zY();if(O==="Internet Explorer"){if($ps())if((O=/rv: *([\d\.]*)/.exec(m))&&O[1])m=O[1];else{O="";var G=/MSIE +([\d\.]+)/.exec(m);if(G&&G[1])if(m=/Trident\/(\d.\d)/.exec(m),G[1]=="7.0")if(m&&m[1])switch(m[1]){case "4.0":O="8.0";break;case "5.0":O="9.0";break;case "6.0":O="10.0";break;case "7.0":O="11.0"}else O="7.0";else O=G[1];m=O}else m="";return m}var B=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");G=[];for(var Q;Q=B.exec(m);)G.push([Q[1],Q[2],Q[3]||void 0]);
m=iNs(G);switch(O){case "Opera":if(K5r())return m(["Version","Opera"]);if(hz()?vOO("Opera"):fN("OPR"))return m(["OPR"]);break;case "Microsoft Edge":if(hz()?0:fN("Edge"))return m(["Edge"]);if(Mrp())return m(["Edg"]);break;case "Chromium":if(_.us())return m(["Chrome","CriOS","HeadlessChrome"])}return O==="Firefox"&&gN()||O==="Safari"&&_.rzS()||O==="Android Browser"&&_.R6s()||O==="Silk"&&fN("Silk")?(m=G[2])&&m[1]||"":""};
_.qSS=function(O){if(hz()&&O!=="Silk"){var m=bs.brands.find(function(G){return G.brand===O});
if(!m||!m.version)return NaN;m=m.version.split(".")}else{m=xpS(O);if(m==="")return NaN;m=m.split(".")}return m.length===0?NaN:Number(m[0])};
jr=function(){return Jz?!!bs&&!!bs.platform:!1};
_.UpM=function(){return jr()?bs.platform==="Android":fN("Android")};
tre=function(){return fN("iPhone")&&!fN("iPod")&&!fN("iPad")};
_.Ie=function(){return tre()||fN("iPad")||fN("iPod")};
_.W5p=function(){return jr()?bs.platform==="macOS":fN("Macintosh")};
_.ZNr=function(){return jr()?bs.platform==="Windows":fN("Windows")};
_.z6S=function(){return jr()?bs.platform==="Chrome OS":fN("CrOS")};
_.Sr=function(O){return O[O.length-1]};
_.ES=function(O,m,G){m=_.Jze(O,m,G);return m<0?null:typeof O==="string"?O.charAt(m):O[m]};
_.Jze=function(O,m,G){for(var B=O.length,Q=typeof O==="string"?O.split(""):O,H=0;H<B;H++)if(H in Q&&m.call(G,Q[H],H,O))return H;return-1};
Vr5=function(O){for(var m=_.LN,G=typeof O==="string"?O.split(""):O,B=O.length-1;B>=0;B--)if(B in G&&m.call(void 0,G[B],B,O))return B;return-1};
_.kO=function(O,m){return _.ae(O,m)>=0};
_.bNr=function(O,m){_.kO(O,m)||O.push(m)};
_.yf=function(O,m){m=_.ae(O,m);var G;(G=m>=0)&&_.nO6(O,m);return G};
_.nO6=function(O,m){Array.prototype.splice.call(O,m,1)};
_.cM=function(O){var m=O.length;if(m>0){for(var G=Array(m),B=0;B<m;B++)G[B]=O[B];return G}return[]};
_.dN=function(O,m){for(var G=1;G<arguments.length;G++){var B=arguments[G];if(_.YO(B)){var Q=O.length||0,H=B.length||0;O.length=Q+H;for(var M=0;M<H;M++)O[Q+M]=B[M]}else O.push(B)}};
_.fpz=function(O,m,G,B){Array.prototype.splice.apply(O,XMz(arguments,1))};
XMz=function(O,m,G){return arguments.length<=2?Array.prototype.slice.call(O,m):Array.prototype.slice.call(O,m,G)};
h6s=function(O,m){m=m||O;for(var G=0,B=0,Q={};B<O.length;){var H=O[B++],M=_.Dp(H)?"o"+_.sS(H):(typeof H).charAt(0)+H;Object.prototype.hasOwnProperty.call(Q,M)||(Q[M]=!0,m[G++]=H)}m.length=G};
_.gOe=function(O,m,G){G=G||_.TNe;for(var B=0,Q=O.length,H;B<Q;){var M=B+(Q-B>>>1);var R=G(m,O[M]);R>0?B=M+1:(Q=M,H=!R)}return H?B:-B-1};
_.Np=function(O,m,G){if(!_.YO(O)||!_.YO(m)||O.length!=m.length)return!1;var B=O.length;G=G||uII;for(var Q=0;Q<B;Q++)if(!G(O[Q],m[Q]))return!1;return!0};
_.TNe=function(O,m){return O>m?1:O<m?-1:0};
uII=function(O,m){return O===m};
jes=function(O,m,G){m=Array.prototype.splice.call(O,m,1);Array.prototype.splice.call(O,G,0,m[0])};
pMs=function(O){return Ipe[O]||""};
L55=function(O){if(!SSI)return _.Az(O);O=EOI.test(O)?O.replace(EOI,pMs):O;O=atob(O);for(var m=new Uint8Array(O.length),G=0;G<O.length;G++)m[G]=O.charCodeAt(G);return m};
Cse=function(O,m){O.__closure__error__context__984382||(O.__closure__error__context__984382={});O.__closure__error__context__984382.severity=m};
_.O3=function(O){O=Error(O);Cse(O,"warning");return O};
lpO=function(O,m){if(O!=null){var G;var B=(G=oOs)!=null?G:oOs={};G=B[O]||0;G>=m||(B[O]=G+1,O=Error(),Cse(O,"incident"),HM(O))}};
Qu=function(O,m,G){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(G===void 0?0:G)&&Symbol.for&&O?Symbol.for(O):O!=null?Symbol(O):Symbol():m};
yzY=function(O,m){Hs||_.vs in O||aps(O,kYf);O[_.vs]|=m};
$9=function(O,m){Hs||_.vs in O||aps(O,kYf);O[_.vs]=m};
czs=function(O){if(4&O)return 512&O?512:1024&O?1024:0};
Me=function(O){yzY(O,34);return O};
YSY=function(O){yzY(O,32);return O};
r8=function(){return typeof BigInt==="function"};
Jm=function(O,m){return m===void 0?O.copyOnWrite!==i2&&!!(2&(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.vs]|0)):!!(2&m)&&O.copyOnWrite!==i2};
_.u2=function(O,m){if(O!=null)if(typeof O==="string")O=O?new hm(O,Tp):_.g8();else if(O.constructor!==hm)if(dpf&&O!=null&&O instanceof Uint8Array)O=O.length?new hm(new Uint8Array(O),Tp):_.g8();else{if(!m)throw Error();O=void 0}return O};
wM5=function(O,m){if(typeof m!=="number"||m<0||m>=O.length)throw Error();};
e6p=function(O,m,G){var B=m&128?0:-1,Q=O.length,H;if(H=!!Q)H=O[Q-1],H=H!=null&&typeof H==="object"&&H.constructor===Object;var M=Q+(H?-1:0);for(m=m&128?1:0;m<M;m++)G(m-B,O[m]);if(H){O=O[Q-1];for(var R in O)!isNaN(R)&&G(+R,O[R])}};
So=function(O){return O&128?Ij:void 0};
E3=function(O){O.isGuard_doNotManuallySetPrettyPlease=!0;return O};
sep=function(){var O=DpY;return E3(function(m){for(var G in O)if(m===O[G]&&!/^[0-9]+$/.test(G))return!0;return!1})};
_.L$=function(O){var m=O;if(NNS(m)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(m))throw Error(String(m));}else if(Ps6(m)&&!Number.isSafeInteger(m))throw Error(String(m));return F5z?BigInt(O):O=Az5(O)?O?"1":"0":NNS(O)?O.trim()||"0":String(O)};
O$p=function(O,m){if(O.length>m.length)return!1;if(O.length<m.length||O===m)return!0;for(var G=0;G<O.length;G++){var B=O[G],Q=m[G];if(B>Q)return!1;if(B<Q)return!0}};
mer=function(O){var m=O>>>0;C$=m;oj=(O-m)/4294967296>>>0};
l2=function(O){if(O<0){mer(-O);var m=_.K(GpY(C$,oj));O=m.next().value;m=m.next().value;C$=O>>>0;oj=m>>>0}else mer(O)};
QjM=function(O){var m=B8p||(B8p=new DataView(new ArrayBuffer(8)));m.setFloat32(0,+O,!0);oj=0;C$=m.getUint32(0,!0)};
H$I=function(O,m){var G=m*4294967296+(O>>>0);return Number.isSafeInteger(G)?G:_.aj(O,m)};
k9=function(O,m){var G=m&2147483648;G&&(O=~O+1>>>0,m=~m>>>0,O==0&&(m=m+1>>>0));O=H$I(O,m);return typeof O==="number"?G?-O:O:G?"-"+O:O};
v9O=function(O){var m=C$,G=oj,B=G>>31;G=(G<<1|m>>>31)^B;O(m<<1^B,G)};
KUe=function(O,m){var G=-(O&1);O=(O>>>1|m<<31)^G;return k9(O,m>>>1^G)};
_.aj=function(O,m){m>>>=0;O>>>=0;if(m<=2097151)var G=""+(4294967296*m+O);else r8()?G=""+(BigInt(m)<<BigInt(32)|BigInt(O)):(G=(O>>>24|m<<8)&16777215,m=m>>16&65535,O=(O&16777215)+G*6777216+m*6710656,G+=m*8147497,m*=2,O>=1E7&&(G+=O/1E7>>>0,O%=1E7),G>=1E7&&(m+=G/1E7>>>0,G%=1E7),G=m+$er(G)+$er(O));return G};
$er=function(O){O=String(O);return"0000000".slice(O.length)+O};
_.Mo6=function(O,m){m&2147483648?r8()?O=""+(BigInt(m|0)<<BigInt(32)|BigInt(O>>>0)):(m=_.K(GpY(O,m)),O=m.next().value,m=m.next().value,O="-"+_.aj(O,m)):O=_.aj(O,m);return O};
cs=function(O){if(O.length<16)l2(Number(O));else if(r8())O=BigInt(O),C$=Number(O&BigInt(4294967295))>>>0,oj=Number(O>>BigInt(32)&BigInt(4294967295));else{var m=+(O[0]==="-");oj=C$=0;for(var G=O.length,B=m,Q=(G-m)%6+m;Q<=G;B=Q,Q+=6)B=Number(O.slice(B,Q)),oj*=1E6,C$=C$*1E6+B,C$>=4294967296&&(oj+=Math.trunc(C$/4294967296),oj>>>=0,C$>>>=0);m&&(m=_.K(GpY(C$,oj)),O=m.next().value,m=m.next().value,C$=O,oj=m)}};
GpY=function(O,m){m=~m;O?O=~O+1:m+=1;return[O,m]};
Y9=function(O){return Array.prototype.slice.call(O)};
_.d8=function(O,m){throw Error(m===void 0?"unexpected value "+O+"!":m);};
_.w8=function(O){if(O!=null&&typeof O!=="number")throw Error("L`"+typeof O+"`"+O);return O};
_.eo=function(O){if(O==null||typeof O==="number")return O;if(O==="NaN"||O==="Infinity"||O==="-Infinity")return Number(O)};
rm6=function(O){if(O!=null&&typeof O!=="boolean")throw Error("M`"+_.Ne(O)+"`"+O);return O};
_.R_6=function(O){if(O==null||typeof O==="boolean")return O;if(typeof O==="number")return!!O};
_.FC=function(O){switch(typeof O){case "bigint":return!0;case "number":return Ps(O);case "string":return i$5.test(O);default:return!1}};
_.mA=function(O){if(!Ps(O))throw _.O3("enum");return O|0};
_.Bb=function(O){return O==null?O:Ps(O)?O|0:void 0};
xeN=function(O){if(typeof O!=="number")throw _.O3("int32");if(!Ps(O))throw _.O3("int32");return O|0};
_.Qr=function(O){return O==null?O:xeN(O)};
_.Hb=function(O){if(O==null)return O;if(typeof O==="string"&&O)O=+O;else if(typeof O!=="number")return;return Ps(O)?O|0:void 0};
_.q3M=function(O){if(O==null)return O;if(typeof O==="string"&&O)O=+O;else if(typeof O!=="number")return;return Ps(O)?O>>>0:void 0};
Z$z=function(O){var m=0;m=m===void 0?0:m;if(!_.FC(O))throw _.O3("int64");var G=typeof O;switch(m){case 512:switch(G){case "string":return KB(O);case "bigint":return String(MJ(64,O));default:return Uef(O)}case 1024:switch(G){case "string":return toM(O);case "bigint":return _.L$(MJ(64,O));default:return WUM(O)}case 0:switch(G){case "string":return KB(O);case "bigint":return _.L$(MJ(64,O));default:return ro(O)}default:return _.d8(m,"Unknown format requested type for int64")}};
R3=function(O){return O==null?O:Z$z(O)};
z_N=function(O){var m=O.length;if(O[0]==="-"?m<20||m===20&&O<="-9223372036854775808":m<19||m===19&&O<="9223372036854775807")return O;cs(O);return _.Mo6(C$,oj)};
Jms=function(O){if(O[0]==="-")var m=!1;else m=O.length,m=m<20?!0:m===20&&O<="18446744073709551615";if(m)return O;cs(O);return _.aj(C$,oj)};
ro=function(O){O=iy(O);xh(O)||(l2(O),O=k9(C$,oj));return O};
_.Vo5=function(O){O=iy(O);O>=0&&xh(O)||(l2(O),O=H$I(C$,oj));return O};
Uef=function(O){O=iy(O);xh(O)?O=String(O):(l2(O),O=_.Mo6(C$,oj));return O};
_.b$e=function(O){O=iy(O);O>=0&&xh(O)?O=String(O):(l2(O),O=_.aj(C$,oj));return O};
KB=function(O){var m=iy(Number(O));if(xh(m))return String(m);m=O.indexOf(".");m!==-1&&(O=O.substring(0,m));return z_N(O)};
toM=function(O){var m=iy(Number(O));if(xh(m))return _.L$(m);m=O.indexOf(".");m!==-1&&(O=O.substring(0,m));return r8()?_.L$(MJ(64,BigInt(O))):_.L$(z_N(O))};
WUM=function(O){return xh(O)?_.L$(ro(O)):_.L$(Uef(O))};
_.n9S=function(O){return xh(O)?_.L$(_.Vo5(O)):_.L$(_.b$e(O))};
_.Xsp=function(O){var m=iy(Number(O));if(xh(m)&&m>=0)return String(m);m=O.indexOf(".");m!==-1&&(O=O.substring(0,m));return Jms(O)};
_.fHY=function(O){var m=iy(Number(O));if(xh(m)&&m>=0)return _.L$(m);m=O.indexOf(".");m!==-1&&(O=O.substring(0,m));return r8()?_.L$((0,_.qJ)(64,BigInt(O))):_.L$(Jms(O))};
_.T8I=function(O){if(O==null)return O;if(typeof O==="bigint")return h_s(O)?O=Number(O):(O=MJ(64,O),O=h_s(O)?Number(O):String(O)),O;if(_.FC(O))return typeof O==="number"?ro(O):KB(O)};
g9z=function(O,m){m=m===void 0?!1:m;var G=typeof O;if(O==null)return O;if(G==="bigint")return String(MJ(64,O));if(_.FC(O))return G==="string"?KB(O):m?Uef(O):ro(O)};
_.uC5=function(O){var m=typeof O;if(O==null)return O;if(m==="bigint")return _.L$(MJ(64,O));if(_.FC(O))return m==="string"?toM(O):WUM(O)};
jjs=function(O){if(O==null)return O;var m=typeof O;if(m==="bigint")return String(MJ(64,O));if(_.FC(O)){if(m==="string")return KB(O);if(m==="number")return ro(O)}};
IHz=function(O){if(O==null)return O;var m=typeof O;if(m==="bigint")return String((0,_.qJ)(64,O));if(_.FC(O)){if(m==="string")return _.Xsp(O);if(m==="number")return _.Vo5(O)}};
_.Zx=function(O){if(typeof O!=="string")throw Error();return O};
Vr=function(O){if(O!=null&&typeof O!=="string")throw Error();return O};
_.by=function(O){return O==null||typeof O==="string"?O:void 0};
E9Y=function(O,m,G,B){if(O!=null&&O[nB]===fB)return O;if(!Array.isArray(O))return G?B&2?m[psN]||(m[psN]=S3p(m)):new m:void 0;G=O[_.vs]|0;B=G|B&32|B&2;B!==G&&$9(O,B);return new m(O)};
S3p=function(O){O=new O;Me(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return O};
LUN=function(O,m,G){O=m?xeN(O):_.Hb(O);return O==null?G?0:void 0:O|0};
C2p=function(O){return O};
o9f=function(O){return O};
aHr=function(O,m,G,B,Q,H){O=E9Y(O,B,G,H);Q&&(O=lHI(O));return O};
kpp=function(O){return[O,this.get(O)]};
Y3e=function(){return ymp||(ymp=new Tu(Me([]),void 0,void 0,void 0,cmY))};
des=function(O){var m=go(jK);return m?O[m]:void 0};
DeY=function(O,m){var G=G===void 0?!1:G;if(go(wsz)&&go(jK)&&void 0===wsz){var B=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=B[jK];if(!Q)return;if(Q=Q.reviveUnknownFields)try{Q(B,m,e_S);return}catch(H){HM(H)}}G&&(O=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(G=go(jK))&&G in O&&(O=O[G])&&delete O[m])};
N8M=function(O,m){var G=go(jK),B;Hs&&G&&((B=O[G])==null?void 0:B[m])!=null&&lpO(sj5,3)};
FUf=function(O,m){m<100||lpO(P2N,1)};
BoN=function(O,m,G,B){var Q=B!==void 0;B=!!B;var H=go(jK),M;!Q&&Hs&&H&&(M=O[H])&&AmN(M,FUf);H=[];var R=O.length;M=4294967295;var x=!1,t=!!(m&64),W=t?m&128?0:-1:void 0;if(!(m&1)){var Z=R&&O[R-1];Z!=null&&typeof Z==="object"&&Z.constructor===Object?(R--,M=R):Z=void 0;if(t&&!(m&128)&&!Q){x=!0;var z;M=((z=OB6)!=null?z:C2p)(M-W,W,O,Z,void 0)+W}}m=void 0;for(z=0;z<R;z++){var J=O[z];if(J!=null&&(J=G(J,B))!=null)if(t&&z>=M){var n=z-W,I=void 0;((I=m)!=null?I:m={})[n]=J}else H[z]=J}if(Z)for(var S in Z)R=Z[S],
R!=null&&(R=G(R,B))!=null&&(z=+S,J=void 0,t&&!Number.isNaN(z)&&(J=z+W)<M?H[J]=R:(z=void 0,((z=m)!=null?z:m={})[S]=R));m&&(x?H.push(m):H[M]=m);Q&&go(jK)&&(O=des(O))&&O instanceof mJY&&(H[jK]=GuM(O));return H};
HBS=function(O){O[0]=Q3p(O[0]);O[1]=Q3p(O[1]);return O};
Q3p=function(O){switch(typeof O){case "number":return Number.isFinite(O)?O:""+O;case "bigint":return h_s(O)?Number(O):""+O;case "boolean":return O?1:0;case "object":if(Array.isArray(O)){var m=O[_.vs]|0;return O.length===0&&m&1?void 0:BoN(O,m,Q3p)}if(O!=null&&O[nB]===fB)return vhY(O);if(O instanceof hm){m=O.JSC$8820_value_;if(m==null)O="";else if(typeof m==="string")O=m;else{if(SSI){for(var G="",B=0,Q=m.length-10240;B<Q;)G+=String.fromCharCode.apply(null,m.subarray(B,B+=10240));G+=String.fromCharCode.apply(null,
B?m.subarray(B):m);m=btoa(G)}else m=_.pB(m);O=O.JSC$8820_value_=m}return O}if(O instanceof Tu)return O=O.size!==0?Array.from(LB.prototype.entries.call(O),HBS):void 0,O;return}return O};
CB=function(O,m){if(m){OB6=m==null||m===C2p||m[KAp]!==$Jz?C2p:m;try{return vhY(O)}finally{OB6=void 0}}return vhY(O)};
vhY=function(O){O=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return BoN(O,O[_.vs]|0,Q3p)};
R0p=function(O){switch(typeof O){case "boolean":return MKf||(MKf=[0,void 0,!0]);case "number":return O>0?void 0:O===0?rsS||(rsS=[0,void 0]):[-O,void 0];case "string":return[0,O];case "object":return O}};
a3=function(O,m,G){return O=_.o3(O,m[0],m[1],G?1:2)};
_.o3=function(O,m,G,B){B=B===void 0?0:B;if(O==null){var Q=32;G?(O=[G],Q|=128):O=[];m&&(Q=Q&-8380417|(m&1023)<<13)}else{if(!Array.isArray(O))throw Error("O");Q=O[_.vs]|0;if(iB5&&1&Q)throw Error("P");2048&Q&&!(2&Q)&&xJY();if(Q&256)throw Error("Q");if(Q&64)return B!==0||Q&2048||$9(O,Q|2048),O;if(G&&(Q|=128,G!==O[0]))throw Error("R");a:{G=O;Q|=64;var H=G.length;if(H){var M=H-1,R=G[M];if(R!=null&&typeof R==="object"&&R.constructor===Object){m=Q&128?0:-1;M-=m;if(M>=1024)throw Error("T");for(var x in R)H=
+x,H<M&&(G[H+m]=R[x],delete R[x]);Q=Q&-8380417|(M&1023)<<13;break a}}if(m){x=Math.max(m,H-(Q&128?0:-1));if(x>1024)throw Error("U");Q=Q&-8380417|(x&1023)<<13}}}Q|=64;B===0&&(Q|=2048);$9(O,Q);return O};
xJY=function(){if(iB5)throw Error("S");lpO(q9p,5)};
ZBf=function(O,m){if(typeof O!=="object")return O;if(Array.isArray(O)){var G=O[_.vs]|0;return O.length===0&&G&1?void 0:UJp(O,G,m)}if(O!=null&&O[nB]===fB)return tK6(O);if(O instanceof Tu){m=O.arrayState;if(m&2)return O;if(!O.size)return;G=Me(WAY(O));if(O.valueCtor)for(O=0;O<G.length;O++){var B=G[O],Q=B[1];Q==null||typeof Q!=="object"?Q=void 0:Q!=null&&Q[nB]===fB?Q=tK6(Q):Array.isArray(Q)?Q=UJp(Q,Q[_.vs]|0,!!(m&32)):Q=void 0;B[1]=Q}return G}if(O instanceof hm)return O};
UJp=function(O,m,G){if(m&2)return O;!G||4096&m||16&m?O=kh(O,m,!1,G&&!(m&16)):(yzY(O,34),m&4&&Object.freeze(O));return O};
z0p=function(O,m,G){O=new O.constructor(m);G&&(O.copyOnWrite=i2);O.noLegacyNull=i2;return O};
tK6=function(O){var m=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=m[_.vs]|0;return Jm(O,G)?O:Jsf(O,m,G)?z0p(O,m):kh(m,G)};
kh=function(O,m,G,B){B!=null||(B=!!(34&m));O=BoN(O,m,ZBf,B);B=32;G&&(B|=2);m=m&8380609|B;$9(O,m);return O};
lHI=function(O){var m=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=m[_.vs]|0;return Jm(O,G)?Jsf(O,m,G)?z0p(O,m,!0):new O.constructor(kh(m,G,!1)):O};
yr=function(O){if(O.copyOnWrite!==i2)return!1;var m=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;m=kh(m,m[_.vs]|0);yzY(m,2048);O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m;O.copyOnWrite=void 0;O.noLegacyNull=void 0;return!0};
cb=function(O){if(!yr(O)&&Jm(O,O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.vs]|0))throw Error();};
wo=function(O,m){m===void 0&&(m=O[_.vs]|0);m&32&&!(m&4096)&&$9(O,m|4096)};
Jsf=function(O,m,G){return G&2?!0:G&32&&!(G&4096)?($9(m,G|2),O.copyOnWrite=i2,!0):!1};
eK=function(O,m,G,B,Q){var H=G+(Q?0:-1),M=O.length-1;if(M>=1+(Q?0:-1)&&H>=M){var R=O[M];if(R!=null&&typeof R==="object"&&R.constructor===Object)return R[G]=B,m}if(H<=M)return O[H]=B,m;if(B!==void 0){var x;M=((x=m)!=null?x:m=O[_.vs]|0)>>13&1023||536870912;G>=M?B!=null&&(H={},O[M+(Q?0:-1)]=(H[G]=B,H)):O[H]=B}return m};
_.Pb=function(O,m,G,B,Q){var H=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=H[_.vs]|0;B=Jm(O,M)?1:B;Q=!!Q||B===3;B===2&&yr(O)&&(H=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=H[_.vs]|0);O=VKN(H,m);var R=O===Dx?7:O[_.vs]|0,x=bBs(R,M);var t=4&x?!1:!0;if(t){4&x&&(O=Y9(O),R=0,x=NJ(x,M),M=eK(H,M,m,O));for(var W=0,Z=0;W<O.length;W++){var z=G(O[W]);z!=null&&(O[Z++]=z)}Z<W&&(O.length=Z);G=(x|4)&-513;x=G&=-1025;x&=-4097}x!==R&&($9(O,x),2&x&&Object.freeze(O));return O=nhr(O,x,H,
M,m,B,t,Q)};
nhr=function(O,m,G,B,Q,H,M,R){var x=m;H===1||(H!==4?0:2&m||!(16&m)&&32&B)?Fr(m)||(m|=!O.length||M&&!(4096&m)||32&B&&!(4096&m||16&m)?2:256,m!==x&&$9(O,m),Object.freeze(O)):(H===2&&Fr(m)&&(O=Y9(O),x=0,m=NJ(m,B),B=eK(G,B,Q,O)),Fr(m)||(R||(m|=16),m!==x&&$9(O,m)));2&m||!(4096&m||16&m)||wo(G,B);return O};
VKN=function(O,m,G){O=As(O,m,G);return Array.isArray(O)?O:Dx};
bBs=function(O,m){2&m&&(O|=2);return O|1};
Fr=function(O){return!!(2&O)&&!!(4&O)||!!(256&O)};
XbI=function(O){return _.u2(O,!0)};
fxI=function(O){O=Y9(O);for(var m=0;m<O.length;m++){var G=O[m]=Y9(O[m]);Array.isArray(G[1])&&(G[1]=Me(G[1]))}return O};
h0M=function(O,m){var G=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,B=G[_.vs]|0;a:{var Q=B;B=Jm(O,B);!B&&yr(O)&&(G=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=G[_.vs]|0);var H=As(G,m);O=!1;if(H==null){if(B){m=Y3e();break a}H=[]}else if(H.constructor===Tu)if(H.arrayState&2&&!B)H=WAY(H);else{m=H;break a}else Array.isArray(H)?O=!!((H[_.vs]|0)&2):H=[];if(B){if(!H.length){m=Y3e();break a}O||(O=!0,Me(H))}else O&&(O=!1,H=fxI(H));!O&&Q&32&&YSY(H);B=new Tu(H,void 0,LUN,LUN);Q=eK(G,
Q,m,B);O||wo(G,Q);m=B}return m};
_.Oh=function(O,m,G,B){cb(O);var Q=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=Q[_.vs]|0;if(G==null)return eK(Q,H,m),O;var M=G===Dx?7:G[_.vs]|0,R=M,x=Fr(M),t=x||Object.isFrozen(G);x||(M=0);t||(G=Y9(G),R=0,M=NJ(M,H),t=!1);M|=5;var W;x=(W=czs(M))!=null?W:0;for(W=0;W<G.length;W++){var Z=G[W],z=B(Z,x);Object.is(Z,z)||(t&&(G=Y9(G),R=0,M=NJ(M,H),t=!1),G[W]=z)}M!==R&&(t&&(G=Y9(G),M=NJ(M,H)),$9(G,M));eK(Q,H,m,G);return O};
_.ma=function(O,m,G,B,Q){cb(O);var H=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;eK(H,H[_.vs]|0,m,(B==="0"?Number(G)===0:G===B)?void 0:G,Q);return O};
_.Gc=function(O,m,G){if(m&2)throw Error();var B=So(m),Q=VKN(O,G,B),H=Q===Dx?7:Q[_.vs]|0,M=bBs(H,m);if(2&M||Fr(M)||16&M)Q=Y9(Q),H=0,M=NJ(M,m),eK(O,m,G,Q,B);M&=-13;M!==H&&$9(Q,M);return Q};
Toz=function(O){if(Hs){var m;return(m=O[B8])!=null?m:O[B8]=new Map}if(B8 in O)return O[B8];m=new Map;Object.defineProperty(O,B8,{value:m});return m};
urf=function(O,m,G,B,Q){var H=Toz(O),M=ghM(H,O,m,G,Q);M!==B&&(M&&(m=eK(O,m,M,void 0,Q)),H.set(G,B));return m};
ghM=function(O,m,G,B,Q){var H=O.get(B);if(H!=null)return H;for(var M=H=0;M<B.length;M++){var R=B[M];As(m,R,Q)!=null&&(H!==0&&(G=eK(m,G,H,void 0,Q)),H=R)}O.set(B,H);return H};
j3N=function(O,m,G,B,Q){var H=!1;B=As(O,B,Q,function(M){var R=E9Y(M,G,!1,m);H=R!==M&&R!=null;return R});
if(B!=null)return H&&!Jm(B)&&wo(O,m),B};
IxO=function(O,m,G,B,Q,H,M,R){var x=Jm(O,G);H=x?1:H;M=!!M||H===3;x=R&&!x;(H===2||x)&&yr(O)&&(m=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=m[_.vs]|0);O=VKN(m,Q);var t=O===Dx?7:O[_.vs]|0,W=bBs(t,G);if(R=!(4&W)){var Z=O,z=G,J=!!(2&W);J&&(z|=2);for(var n=!J,I=!0,S=0,L=0;S<Z.length;S++){var C=E9Y(Z[S],B,!1,z);if(C instanceof B){if(!J){var P=Jm(C);n&&(n=!P);I&&(I=P)}Z[L++]=C}}L<S&&(Z.length=L);W|=4;W=I?W&-4097:W|4096;W=n?W|8:W&-9}W!==t&&($9(O,W),2&W&&Object.freeze(O));if(x&&!(8&W||!O.length&&
(H===1||(H!==4?0:2&W||!(16&W)&&32&G)))){Fr(W)&&(O=Y9(O),W=NJ(W,G),G=eK(m,G,Q,O));B=O;x=W;for(t=0;t<B.length;t++)Z=B[t],W=lHI(Z),Z!==W&&(B[t]=W);x|=8;W=x=B.length?x|4096:x&-4097;$9(O,W)}return O=nhr(O,W,m,G,Q,H,R,M)};
pb6=function(O){O==null&&(O=void 0);return O};
NJ=function(O,m){return O=(2&m?O|2:O&-3)&-273};
_.S9Y=function(O,m,G,B,Q){cb(O);m=_.Pb(O,m,Q,2,!0);var H;Q=(H=czs(m===Dx?7:m[_.vs]|0))!=null?H:0;m.push(G(B,Q));return O};
Eh6=function(O,m,G,B,Q,H,M){cb(O);var R=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;O=IxO(O,R,R[_.vs]|0,G,m,2,!0);if(H&&M)Q!=null||(Q=O.length-1),wM5(O,Q),O.splice(Q,H),O.length||(O[_.vs]&=-4097);else{if(H){if(typeof Q!=="number"||Q<0||Q>O.length)throw Error();}else B=B!=null?B:new G;Q!=void 0?O.splice(Q,H,B):O.push(B);Q=G=O===Dx?7:O[_.vs]|0;(B=Jm(B))?(G&=-9,O.length===1&&(G&=-4097)):G|=4096;G!==Q&&$9(O,G);B||wo(R)}};
CyM=function(O,m){if(typeof O==="string")return new QO(L55(O),m);if(Array.isArray(O))return new QO(new Uint8Array(O),m);if(O.constructor===Uint8Array)return new QO(O,!1);if(O.constructor===ArrayBuffer)return O=new Uint8Array(O),new QO(O,!1);if(O.constructor===hm)return m=LAM(O)||new Uint8Array(0),new QO(m,!0,O);if(O instanceof Uint8Array)return O=O.constructor===Uint8Array?O:new Uint8Array(O.buffer,O.byteOffset,O.byteLength),new QO(O,!1);throw Error();};
lxf=function(O){switch(typeof O){case "string":ohY(O)}};
kus=function(O){switch(typeof O){case "string":axf(O)}};
H8=function(){var O=function(){throw Error();};
Object.setPrototypeOf(O,O.prototype);return O};
csN=function(O,m){var G=G===void 0?yss:G;return new K9(O,m,G)};
wb5=function(O,m,G,B,Q){Y95(O,G,dJr(m,B),Q)};
$0=function(O,m,G,B){var Q=B[O];if(Q)return Q;Q={};Q.binaryFields=B;Q.messageMetadata=R0p(B[0]);var H=B[1],M=1;H&&H.constructor===Object&&(Q.extensions=H,H=B[++M],typeof H==="function"&&(Q.isMessageSet=!0,e0e!=null||(e0e=H),DJS!=null||(DJS=B[M+1]),H=B[M+=2]));for(var R={};H&&s3N(H);){for(var x=0;x<H.length;x++)R[H[x]]=H;H=B[++M]}for(x=1;H!==void 0;){typeof H==="number"&&(x+=H,H=B[++M]);var t=void 0;if(H instanceof K9)var W=H;else W=Noe,M--;H=void 0;if((H=W)==null?0:H.$$isMsg){H=B[++M];t=B;var Z=M;
typeof H==="function"&&(H=H(),t[Z]=H);t=H}H=B[++M];Z=x+1;typeof H==="number"&&H<0&&(Z-=H,H=B[++M]);for(;x<Z;x++){var z=R[x];t?G(Q,x,W,t,z):m(Q,x,W,z)}}return B[O]=Q};
s3N=function(O){return Array.isArray(O)&&!!O.length&&typeof O[0]==="number"&&O[0]>0};
FAS=function(O){return Array.isArray(O)?O[0]instanceof K9?O:[Pye,O]:[O,void 0]};
dJr=function(O,m){if(O instanceof _.MP)return O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(O))return a3(O,m,!1)};
Asr=function(O,m,G,B){var Q=G.$$binaryReaderFn;O[m]=B?function(H,M,R){return Q(H,M,R,B)}:Q};
mPO=function(O,m,G,B,Q){var H=G.$$binaryReaderFn,M,R;O[m]=function(x,t,W){return H(x,t,W,R||(R=$0(O9f,Asr,mPO,B).messageMetadata),M||(M=Gce(B)),Q)}};
Gce=function(O){var m=O[B55];if(m!=null)return m;var G=$0(O9f,Asr,mPO,O);m=G.isMessageSet?function(B,Q){return e0e(B,Q,G)}:function(B,Q){for(;QnI(Q)&&Q.nextWireType_!=4;){var H=Q.nextField_,M=G[H];
if(M==null){var R=G.extensions;R&&(R=R[H])&&(R=H9e(R),R!=null&&(M=G[H]=R))}if(M==null||!M(Q,B,H)){R=Q;M=R.fieldCursor_;v0p(R);if(R.discardUnknownFields)var x=void 0;else{var t=R.decoder_.cursor_-M;R.decoder_.cursor_=M;x=KaO(R.decoder_,t)}t=R=M=void 0;var W=B;x&&((M=(R=(t=W[jK])!=null?t:W[jK]=new mJY)[H])!=null?M:R[H]=[]).push(x)}}if(B=des(B))B.reviveUnknownFields=G.binaryFields[$PN];return!0};
O[B55]=m;O[$PN]=MA6.bind(O);return m};
MA6=function(O,m,G,B){var Q=this[O9f],H=this[B55],M=a3(void 0,Q.messageMetadata,!1),R=des(O);if(R){var x=!1,t=Q.extensions;if(t){Q=function(n,I,S){if(S.length!==0)if(t[I])for(n=_.K(S),I=n.next();!I.done;I=n.next()){I=rLS(I.value);try{x=!0,H(M,I)}finally{I.free()}}else B==null||B(O,I,S)};
if(m==null)AmN(R,Q);else if(R!=null){var W=R[m];W&&Q(R,m,W)}if(x){var Z=O[_.vs]|0;if(Z&2&&Z&2048&&(G==null||!G.reviveIntoImmutable))throw Error();var z=So(Z),J=function(n,I){if(As(O,n,z)!=null)switch(G==null?void 0:G.resolutionBehavior){case 1:return;default:throw Error();}I!=null&&(Z=eK(O,Z,n,I,z));delete R[n]};
m==null?e6p(M,M[_.vs]|0,function(n,I){J(n,I)}):J(m,As(M,m,z))}}}};
H9e=function(O){O=FAS(O);var m=O[0].$$binaryReaderFn;if(O=O[1]){var G=Gce(O),B=$0(O9f,Asr,mPO,O).messageMetadata;return function(Q,H,M){return m(Q,H,M,B,G)}}return m};
Ro5=function(O,m,G){O[m]=G.$$binaryWriterFn};
xPO=function(O,m,G,B){var Q,H,M=G.$$binaryWriterFn;O[m]=function(R,x,t){return M(R,x,t,H||(H=$0(i9s,Ro5,xPO,B).messageMetadata),Q||(Q=qh5(B)))}};
qh5=function(O){var m=O[UPM];if(!m){var G=$0(i9s,Ro5,xPO,O);m=function(B,Q){return tAe(B,Q,G)};
O[UPM]=m}return m};
tAe=function(O,m,G){e6p(O,O[_.vs]|0,function(B,Q){if(Q!=null){var H=WaS(G,B);H?H(m,Q,B):B<500||lpO(Z95,3)}});
(O=des(O))&&AmN(O,function(B,Q,H){r5(m,m.encoder_.end());for(B=0;B<H.length;B++)r5(m,LAM(H[B])||new Uint8Array(0))})};
WaS=function(O,m){var G=O[m];if(G)return G;if(G=O.extensions)if(G=G[m]){G=FAS(G);var B=G[0].$$binaryWriterFn;if(G=G[1]){var Q=qh5(G),H=$0(i9s,Ro5,xPO,G).messageMetadata;G=O.isMessageSet?DJS(H,Q):function(M,R,x){return B(M,R,x,H,Q)}}else G=B;
return O[m]=G}};
_.zor=function(O,m,G){if(Array.isArray(m)){var B=m[_.vs]|0;if(B&4)return m;for(var Q=0,H=0;Q<m.length;Q++){var M=O(m[Q]);M!=null&&(m[H++]=M)}H<Q&&(m.length=H);G&&($9(m,(B|5)&-1537),B&2&&Object.freeze(m));return m}};
_.iG=function(O,m,G){return new K9(O,m,G)};
_.JLS=function(O,m,G){return new K9(O,m,G)};
_.x0=function(O,m,G){eK(O,O[_.vs]|0,m,G,So(O[_.vs]|0))};
VA5=function(O,m,G){m=_.eo(m);m!=null&&(_.qP(O,G,1),O=O.encoder_,G=B8p||(B8p=new DataView(new ArrayBuffer(8))),G.setFloat64(0,+m,!0),C$=G.getUint32(0,!0),oj=G.getUint32(4,!0),_.Uh(O,C$),_.Uh(O,oj))};
b9O=function(O,m,G){m=_.eo(m);m!=null&&(_.qP(O,G,5),O=O.encoder_,QjM(m),_.Uh(O,C$))};
_.W8=function(O,m,G){m=jjs(m);if(m!=null&&(lxf(m),m!=null))switch(_.qP(O,G,0),typeof m){case "number":O=O.encoder_;l2(m);tL(O,C$,oj);break;case "bigint":G=BigInt.asUintN(64,m);G=new n0s(Number(G&BigInt(4294967295)),Number(G>>BigInt(32)));tL(O.encoder_,G.JSC$8863_lo,G.JSC$8863_hi);break;default:G=ohY(m),tL(O.encoder_,G.JSC$8863_lo,G.JSC$8863_hi)}};
fqS=function(O,m,G){m=_.Hb(m);m!=null&&m!=null&&(_.qP(O,G,0),_.X8O(O.encoder_,m))};
_.T5f=function(O,m,G){hoY(O,G,IHz(m))};
g0I=function(O,m,G){m=_.R_6(m);m!=null&&(_.qP(O,G,0),O.encoder_.JSC$8865_buffer_.push(m?1:0))};
jnN=function(O,m,G){m=_.by(m);m!=null&&uce(O,G,Qep(m))};
Iqf=function(O,m,G,B,Q){Y95(O,G,dJr(m,B),Q)};
_.p8S=function(O,m,G){m=m==null||typeof m=="string"||m instanceof hm?m:void 0;m!=null&&uce(O,G,CyM(m,!0).buffer)};
Shr=function(O,m,G){m=_.q3M(m);m!=null&&m!=null&&(_.qP(O,G,0),Zq(O.encoder_,m))};
_.E0I=function(O,m,G){m=_.Hb(m);m!=null&&(m=parseInt(m,10),_.qP(O,G,0),_.X8O(O.encoder_,m))};
_.zc=function(O,m){return function(G,B){var Q={treatNewDataAsImmutable:!0};B&&Object.assign(Q,B);G=rLS(G,void 0,void 0,Q);try{var H=new O,M=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Gce(m)(M,G);var R=H}finally{G.free()}return R}};
_.JL=function(O){return function(m){return Las(m,O)}};
CGY=function(O){return function(){return Las(this,O)}};
_.o0z=function(O){return E3(function(m){return m instanceof O&&!Jm(m)})};
_.bG=function(O){return function(m){return lqN(O,m)}};
cLp=function(O,m){return aqO({child:O,origin:m||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:kcI,getPayloadCase:function(G){return G.getPayloadCase()},
createInitMessage:function(G){var B=new hL,Q=new yLp;G=_.Tc(Q,1,G);return _.g5(B,5,uG,G)}})};
jA=function(O){return{valueOf:O}.valueOf()};
dPs=function(){var O=null;if(!Yhp)return O;try{var m=function(G){return G};
O=Yhp.createPolicy("goog#html",{createHTML:m,createScript:m,createScriptURL:m})}catch(G){}return O};
eop=function(){w8e===void 0&&(w8e=dPs());return w8e};
_.p9=function(O){var m=eop();O=m?m.createScriptURL(O):O;return new In(O)};
_.Eh=function(O){if(O instanceof In)return O.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.L9=function(O){return Object.isFrozen(O)&&Object.isFrozen(O.raw)};
DPp=function(O){return O.toString().indexOf("`")===-1};
on=function(O){return new _.C9(sne,O)};
lG=function(O){return O instanceof _.C9};
_.an=function(O){if(lG(O))return O.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
k0=function(O){return new N5e(function(m){return m.substr(0,O.length+1).toLowerCase()===O+":"})};
_.yO=function(O,m){m=m===void 0?PGs:m;if(lG(O))return O;for(var G=0;G<m.length;++G){var B=m[G];if(B instanceof N5e&&B.isValid(O))return on(O)}};
_.d5=function(O,m){m=m===void 0?PGs:m;return _.yO(O,m)||Y0};
_.w5=function(O){var m=window;if(typeof MediaSource!=="undefined"&&O instanceof MediaSource||typeof m.ManagedMediaSource!=="undefined"&&O instanceof m.ManagedMediaSource)return on(URL.createObjectURL(O));m=O.type;m.toLowerCase()==="application/octet-stream"?m=!0:(m=m.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),m=(m==null?void 0:m.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(m[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(m[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(m[1])||/^font\/[\w-]+$/i.test(m[1])));if(!m)throw Error("Z");return on(URL.createObjectURL(O))};
_.Fa6=function(O){for(var m=_.eA.apply(1,arguments),G=[O[0]],B=0;B<m.length;B++)G.push(String(m[B])),G.push(O[B+1]);return on(G.join(""))};
_.O_N=function(O){if(!ALe){a:{var m=document.createElement("a");try{m.href=O}catch(G){O=void 0;break a}O=m.protocol;O=O===":"||O===""?"https:":O}return O}try{m=new URL(O)}catch(G){return"https:"}return m.protocol};
_.Dq=function(O){O instanceof _.C9?O=_.an(O):O=mGM.test(O)?O:void 0;return O};
sh=function(O,m){m=_.Dq(m);m!==void 0&&(O.href=m)};
P8=function(O){var m=eop();O=m?m.createHTML(O):O;return new NP(O)};
OI=function(O){if(O instanceof NP)return O.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.mI=function(O,m){O.src=_.Eh(m).toString()};
G9S=function(O,m){O.setAttribute("sandbox","");for(var G=0;G<m.length;G++)O.sandbox.supports&&!O.sandbox.supports(m[G])||O.sandbox.add(m[G])};
_.Qo6=function(O,m,G){O.removeAttribute("srcdoc");switch(m){case 0:if(G instanceof In)throw new BCp("TrustedResourceUrl",0);G9S(O,[]);m=_.Dq(G);m!==void 0&&(O.src=m);break;case 1:if(!(G instanceof In))throw new BCp(typeof G,1);G9S(O,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.mI(O,G);break;case 2:if(G instanceof In)throw new BCp("TrustedResourceUrl",2);G9S(O,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
m=_.Dq(G);m!==void 0&&(O.src=m);break;default:_.d8(m)}};
_.Bi=function(O,m,G,B){m=_.Dq(m);return m!==void 0?O.open(m,G,B):null};
_.Qv=function(O){O=O===void 0?document:O;var m,G;O=(G=(m=O).querySelector)==null?void 0:G.call(m,"script[nonce]");return O==null?"":O.nonce||O.getAttribute("nonce")||""};
_.vi=function(O){var m=eop();O=m?m.createScript(O):O;return new _.Hi(O)};
H_r=function(O){if(O instanceof _.Hi)return O.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
v3z=function(O){var m=_.Qv(O.ownerDocument);m&&O.setAttribute("nonce",m)};
_.K_=function(O,m){O.textContent=H_r(m);v3z(O)};
_.$3=function(O,m){O.src=_.Eh(m);v3z(O)};
_.MG=function(O,m){if(O.nodeType===1&&/^(script|style)$/i.test(O.tagName))throw Error("Z");O.innerHTML=OI(m)};
_.rC=function(O,m,G,B){if(O.length===0)throw Error("Z");O=O.map(function(H){if(H instanceof KIp)H=H.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return H});
var Q=G.toLowerCase();if(O.every(function(H){return Q.indexOf(H)!==0}))throw Error("aa`"+G);
m.setAttribute(G,B)};
_.Ro=function(O,m,G){if(m instanceof In)O.href=_.Eh(m).toString(),O.rel=G;else{if($Gp.indexOf(G)===-1)throw Error("ba`"+G);m=_.Dq(m);m!==void 0&&(O.href=m,O.rel=G)}};
Mue=function(O){if(O instanceof iS)return O.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.rXe=function(O,m){m=_.Dq(m);m!==void 0&&(O.href=m)};
RqO=function(O){return _.p9(O)};
i_Y=function(O,m){O&&(m=O.indexOf(m),0<=m&&O.splice(m,1))};
x3=function(O){return typeof O==="function"};
xGf=function(O){return O instanceof qG||O&&"closed"in O&&x3(O.remove)&&x3(O.add)&&x3(O.unsubscribe)};
UI=function(){};
tX=function(O){qIS(function(){throw O;})};
Wi=function(O){return O};
Z9=function(){return UGe(_.eA.apply(0,arguments))};
UGe=function(O){return O.length===0?Wi:O.length===1?O[0]:function(m){return O.reduce(function(G,B){return B(G)},m)}};
tup=function(O){var m;return(m=O!=null?O:void 0)!=null?m:Promise};
WI6=function(O,m){return new z9(function(G){var B=0;return m.schedule(function(){B===O.length?G.complete():(G.next(O[B++]),G.closed||this.schedule())})})};
Z_e=function(O,m){if(!O)throw Error("ca");return new z9(function(G){var B=new qG;B.add(m.schedule(function(){var Q=O[Symbol.asyncIterator]();B.add(m.schedule(function(){var H=this;Q.next().then(function(M){M.done?G.complete():(G.next(M.value),H.schedule())})}))}));
return B})};
zqS=function(O,m,G){m=m.schedule(function(){try{G.call(this)}catch(B){O.error(B)}},0);
O.add(m)};
VuY=function(O,m){return new z9(function(G){var B;G.add(m.schedule(function(){B=O[JX5]();zqS(G,m,function(){var Q=B.next(),H=Q.value;Q.done?G.complete():(G.next(H),this.schedule())})}));
return function(){var Q;return x3((Q=B)==null?void 0:Q.return)&&B.return()}})};
b_e=function(O,m){return new z9(function(G){var B=new qG;B.add(m.schedule(function(){var Q=O[JX]();B.add(Q.subscribe({next:function(H){B.add(m.schedule(function(){return G.next(H)}))},
error:function(H){B.add(m.schedule(function(){return G.error(H)}))},
complete:function(){B.add(m.schedule(function(){return G.complete()}))}}))}));
return B})};
n3O=function(O,m){return new z9(function(G){return m.schedule(function(){return O.then(function(B){G.add(m.schedule(function(){G.next(B);G.add(m.schedule(function(){return G.complete()}))}))},function(B){G.add(m.schedule(function(){return G.error(B)}))})})})};
Xiz=function(O){return new TypeError("da`"+(O!==null&&typeof O==="object"?"an invalid object":"'"+O+"'"))};
hqI=function(O,m){if(O!=null){if(x3(O[JX]))return b_e(O,m);if(f9z(O))return WI6(O,m);if(x3(O==null?void 0:O.then))return n3O(O,m);if(Symbol.asyncIterator&&x3(O==null?void 0:O[Symbol.asyncIterator]))return Z_e(O,m);if(x3(O==null?void 0:O[JX5]))return VuY(O,m)}throw Xiz(O);};
bS=function(O,m){return m?hqI(O,m):Vv(O)};
Vv=function(O){if(O instanceof z9)return O;if(O!=null){if(x3(O[JX]))return TCN(O);if(f9z(O))return g3r(O);if(x3(O==null?void 0:O.then))return uPN(O);if(Symbol.asyncIterator&&x3(O==null?void 0:O[Symbol.asyncIterator]))return joz(O);if(x3(O==null?void 0:O[JX5]))return I9O(O)}throw Xiz(O);};
TCN=function(O){return new z9(function(m){var G=O[JX]();if(x3(G.subscribe))return G.subscribe(m);throw new TypeError("ea");})};
g3r=function(O){return new z9(function(m){for(var G=0;G<O.length&&!m.closed;G++)m.next(O[G]);m.complete()})};
uPN=function(O){return new z9(function(m){O.then(function(G){m.closed||(m.next(G),m.complete())},function(G){return m.error(G)}).then(null,tX)})};
I9O=function(O){return new z9(function(m){for(var G=O[JX5]();!m.closed;){var B=G.next(),Q=B.value;B.done?m.complete():m.next(Q)}return function(){return x3(G==null?void 0:G.return)&&G.return()}})};
joz=function(O){return new z9(function(m){piM(O,m).catch(function(G){return m.error(G)})})};
piM=function(O,m){var G,B,Q,H,M,R;return _.r(function(x){switch(x.nextAddress){case 1:_.n_(x,2,3),H=_.XP(O);case 5:return x.yield(H.next(),8);case 8:B=x.yieldResult;if(B.done){x.jumpTo(3);break}M=B.value;m.next(M);x.jumpTo(5);break;case 3:_.f_(x);_.hX(x,9);if(!B||B.done||!(Q=H.return)){x.jumpTo(9);break}return x.yield(Q.call(H),9);case 9:_.f_(x,0,0,1);if(G)throw G.error;_.T9(x,10,1);break;case 10:_.T9(x,4);break;case 2:R=_.uS(x);G={error:R};x.jumpTo(3);break;case 4:m.complete(),_.ju(x)}})};
SIM=function(O,m){return m?WI6(O,m):g3r(O)};
E3N=function(O){return x3(O[O.length-1])?O.pop():void 0};
Io=function(O){var m=O[O.length-1];return m&&x3(m.schedule)?O.pop():void 0};
p_=function(){var O=_.eA.apply(0,arguments),m=Io(O);return m?WI6(O,m):SIM(O)};
Su=function(O){var m=x3(O)?O:function(){return O};
return new z9(function(G){return G.error(m())})};
EI=function(O){return function(m){if(x3(m==null?void 0:m.lift))return m.lift(function(G){try{return O(G,this)}catch(B){this.error(B)}});
throw new TypeError("fa");}};
C_=function(){return EI(function(O,m){var G=null;O._refCount++;var B=new L_(m,void 0,void 0,void 0,function(){if(!O||O._refCount<=0||0<--O._refCount)G=null;else{var Q=O._connection,H=G;G=null;!Q||H&&Q!==H||Q.unsubscribe();m.unsubscribe()}});
O.subscribe(B);B.closed||(G=O.connect())})};
CSf=function(){var O=LIe;var m=m===void 0?0:m;return EI(function(G,B){B.add(O.schedule(function(){return G.subscribe(B)},m))})};
oo=function(O){return EI(function(m,G){var B=0;m.subscribe(new L_(G,function(Q){G.next(O.call(void 0,Q,B++))}))})};
l9p=function(O){return oo(function(m){return o3Y(m)?O.apply(null,_.lS(m)):O(m)})};
YIp=function(O){if(O.length===1){var m=O[0];if(a9N(m))return{args:m,keys:null};if(m&&typeof m==="object"&&k9z(m)===yX6)return O=cXe(m),{args:O.map(function(G){return m[G]}),
keys:O}}return{args:O,keys:null}};
ao=function(){var O=_.eA.apply(0,arguments),m=Io(O),G=E3N(O);O=YIp(O);var B=O.args,Q=O.keys;if(B.length===0)return bS([],m);m=new z9(dGN(B,m,Q?function(H){for(var M={},R=0;R<H.length;R++)M[Q[R]]=H[R];return M}:Wi));
return G?m.pipe(l9p(G)):m};
dGN=function(O,m,G){G=G===void 0?Wi:G;return function(B){wiO(m,function(){for(var Q=O.length,H=Array(Q),M=Q,R=O.map(function(){return!1}),x=!0,t={i$jscomp$217:0};t.i$jscomp$217<Q;t={i$jscomp$217:t.i$jscomp$217},t.i$jscomp$217++)wiO(m,function(W){return function(){bS(O[W.i$jscomp$217],m).subscribe(new k3(B,function(Z){H[W.i$jscomp$217]=Z;
x&&(R[W.i$jscomp$217]=!0,x=!R.every(Wi));x||B.next(G(H.slice()))},function(){return--M===0}))}}(t),B)},B)}};
wiO=function(O,m,G){O?G.add(O.schedule(m)):m()};
eqp=function(O,m,G,B){var Q=[],H=0,M=0,R=!1,x=function(t){H++;Vv(G(t,M++)).subscribe(new L_(m,function(W){m.next(W)},void 0,function(){H--;
for(var W={};Q.length&&H<B;W={bufferedValue:void 0})W.bufferedValue=Q.shift(),x(W.bufferedValue);!R||Q.length||H||m.complete()}))};
O.subscribe(new L_(m,function(t){return H<B?x(t):Q.push(t)},void 0,function(){R=!0;
!R||Q.length||H||m.complete()}));
return function(){Q=null}};
yv=function(O,m){var G=G===void 0?Infinity:G;if(x3(m))return yv(function(B,Q){return oo(function(H,M){return m(B,H,Q,M)})(Vv(O(B,Q)))},G);
typeof m==="number"&&(G=m);return EI(function(B,Q){return eqp(B,Q,O,G)})};
DG5=function(O){O=O===void 0?Infinity:O;return yv(Wi,O)};
soY=function(){var O=_.eA.apply(0,arguments);return DG5(1)(SIM(O,Io(O)))};
NCN=function(O){return new z9(function(m){Vv(O()).subscribe(m)})};
ci=function(O,m,G){if(x3(G)){var B=G;G=void 0}if(B)return ci(O,m,G).pipe(l9p(B));B=_.K(x3(O.addEventListener)&&x3(O.removeEventListener)?PSO.map(function(M){return function(R){return O[M](m,R,G)}}):x3(O.addListener)&&x3(O.removeListener)?FIp.map(AXs(O,m)):x3(O.on)&&x3(O.off)?OLN.map(AXs(O,m)):[]);
var Q=B.next().value,H=B.next().value;return!Q&&f9z(O)?yv(function(M){return ci(M,m,G)})(SIM(O)):new z9(function(M){if(!Q)throw new TypeError("ga");
var R=function(){var x=_.eA.apply(0,arguments);return M.next(1<x.length?x:x[0])};
Q(R);return function(){return H(R)}})};
AXs=function(O,m){return function(G){return function(B){return O[G](m,B)}}};
dC=function(){var O=_.eA.apply(0,arguments),m=Io(O);var G=typeof O[O.length-1]==="number"?O.pop():Infinity;return O.length?O.length===1?Vv(O[0]):DG5(G)(SIM(O,m)):Y3};
GP6=function(O){return O.length===1&&mMz(O[0])?O[0]:O};
B9Y=function(){var O=GP6(_.eA.apply(0,arguments));return EI(function(m,G){var B=[m].concat(_.lS(O)),Q=function(){if(!G.closed)if(B.length>0){try{var H=Vv(B.shift())}catch(R){Q();return}var M=new L_(G,void 0,UI,UI);G.add(H.subscribe(M));M.add(Q)}else G.complete()};
Q()})};
eu=function(O){return EI(function(m,G){var B=0;m.subscribe(new L_(G,function(Q){return O.call(void 0,Q,B++)&&G.next(Q)}))})};
HLS=function(){var O=_.eA.apply(0,arguments);O=GP6(O);return O.length===1?Vv(O[0]):new z9(QMr(O))};
QMr=function(O){return function(m){for(var G=[],B={i$jscomp$220:0};G&&!m.closed&&B.i$jscomp$220<O.length;B={i$jscomp$220:B.i$jscomp$220},B.i$jscomp$220++)G.push(Vv(O[B.i$jscomp$220]).subscribe(new L_(m,function(Q){return function(H){if(G){for(var M=0;M<G.length;M++)M!==Q.i$jscomp$220&&G[M].unsubscribe();G=null}m.next(H)}}(B))))}};
v65=function(){var O=_.eA.apply(0,arguments),m=E3N(O),G=GP6(O);return G.length?new z9(function(B){var Q=G.map(function(){return[]}),H=G.map(function(){return!1});
B.add(function(){Q=H=null});
for(var M={sourceIndex$jscomp$1:0};!B.closed&&M.sourceIndex$jscomp$1<G.length;M={sourceIndex$jscomp$1:M.sourceIndex$jscomp$1},M.sourceIndex$jscomp$1++)Vv(G[M.sourceIndex$jscomp$1]).subscribe(new L_(B,function(R){return function(x){Q[R.sourceIndex$jscomp$1].push(x);Q.every(function(t){return t.length})&&(x=Q.map(function(t){return t.shift()}),B.next(m?m.apply(null,_.lS(x)):x),Q.some(function(t,W){return!t.length&&H[W]})&&B.complete())}}(M),void 0,function(R){return function(){H[R.sourceIndex$jscomp$1]=
!0;
!Q[R.sourceIndex$jscomp$1].length&&B.complete()}}(M)));
return function(){Q=H=null}}):Y3};
KsY=function(O){var m,G,B;return!!O&&typeof O.active==="boolean"&&typeof((m=O.clock)==null?void 0:m.now)==="function"&&((G=O.clock)==null?void 0:G.timeline)!==void 0&&!((B=O.lastMeasurement)==null||!B.timestamp)&&typeof O.equivalentTo==="function"&&typeof O.extrapolateToNow==="function"&&typeof O.extrapolateToTime==="function"&&typeof O.map==="function"&&typeof O.joinWith==="function"};
$MY=function(O){function m(G){return typeof G==="boolean"||typeof G==="string"||typeof G==="number"||G===void 0||G===null}
return m(O)?!0:Array.isArray(O)?O.every(m):typeof O==="object"?Object.keys(O).every(function(G){return typeof G==="string"})&&Object.values(O).every(function(G){return Array.isArray(G)?G.every(m):m(G)}):!1};
MS6=function(O){if($MY(O))return O;if(KsY(O))return{lastMeasurement:{value:MS6(O.lastMeasurement.value),timestamp:D9(O.lastMeasurement.timestamp,new sI(0,O.lastMeasurement.timestamp.timeline))},active:O.active};try{return JSON.parse(JSON.stringify(O))}catch(m){}return String(O)};
NG=function(O,m){return function(G){return new z9(function(B){return G.subscribe(function(Q){O.timeExecution(m,function(){B.next(Q)})()},function(Q){O.timeExecution(m,function(){B.error(Q)})()},function(){O.timeExecution(m,function(){B.complete()})()})})}};
rYN=function(O,m){var G=!1;return new z9(function(B){var Q=O.setTimeout(function(){G=!0;B.next(!0);B.complete()},m);
return function(){G||O.clearTimeout(Q)}})};
Rfe=function(O){O=O.global;if(O.fetchLater)return O.fetchLater.bind(O)};
Pi=function(O){return EI(function(m,G){var B=null,Q=!1,H;B=m.subscribe(new L_(G,void 0,function(M){H=Vv(O(M,Pi(O)(m)));B?(B.unsubscribe(),B=null,H.subscribe(G)):Q=!0}));
Q&&(B.unsubscribe(),B=null,H.subscribe(G))})};
iLs=function(O,m,G){return function(B,Q){var H=G,M=m,R=0;B.subscribe(new L_(Q,function(x){var t=R++;M=H?O(M,x,t):(H=!0,x);Q.next(M)},void 0,void 0))}};
xMr=function(O){O=O===void 0?null:O;return EI(function(m,G){var B=!1;m.subscribe(new L_(G,function(Q){B=!0;G.next(Q)},void 0,function(){B||G.next(O);
G.complete()}))})};
FP=function(){return EI(function(O,m){O.subscribe(new L_(m,UI))})};
AX=function(O){return EI(function(m,G){m.subscribe(new L_(G,function(){return G.next(O)}))})};
O_=function(O){return O<=0?function(){return Y3}:EI(function(m,G){var B=0;
m.subscribe(new L_(G,function(Q){++B<=O&&(G.next(Q),O<=B&&G.complete())}))})};
GP=function(O){var m=m===void 0?Wi:m;var G;O=(G=O)!=null?G:q_O;return EI(function(B,Q){var H,M=!0;B.subscribe(new L_(Q,function(R){var x=m(R);if(M||!O(H,x))M=!1,H=x,Q.next(R)}))})};
q_O=function(O,m){return O===m};
tSO=function(O){O=O===void 0?UMS:O;return EI(function(m,G){var B=!1;m.subscribe(new L_(G,function(Q){B=!0;G.next(Q)},void 0,function(){return B?G.complete():G.error(O())}))})};
UMS=function(){return new Ws5};
BY=function(){var O=_.eA.apply(0,arguments);return function(m){return soY(m,p_.apply(null,_.lS(O)))}};
ZLN=function(O){return EI(function(m,G){var B=0;m.subscribe(new L_(G,function(Q){O.call(void 0,Q,B++,m)||(G.next(!1),G.complete())},void 0,function(){G.next(!0);
G.complete()}))})};
zfz=function(){return EI(function(O,m){var G=[];O.subscribe(new L_(m,function(B){G.push(B);1<G.length&&G.shift()},void 0,function(){for(var B=_.K(G),Q=B.next();!Q.done;Q=B.next())m.next(Q.value);
m.complete()},function(){G=null}))})};
JYY=function(O,m){var G=arguments.length>=2;return function(B){return B.pipe(O?eu(function(Q,H){return O(Q,H,B)}):Wi,zfz(),G?xMr(m):tSO(function(){return new Ws5}))}};
HY=function(O){var m=x3(O)?O:function(){return O};
return x3()?EI(function(G,B){var Q=m();(void 0)(Q).subscribe(B).add(G.subscribe(Q))}):function(G){var B=new QD(G,m);
x3(G==null?void 0:G.lift)&&(B.lift=G.lift);B.source=G;B.subjectFactory=m;return B}};
$6=function(O){var m=new KL(O,void 0,void 0);return function(G){return HY(function(){return m})(G)}};
MM=function(O,m){return EI(iLs(O,m,arguments.length>=2))};
r9=function(){var O=_.eA.apply(0,arguments),m=Io(O);return EI(function(G,B){(m?soY(O,G,m):soY(O,G)).subscribe(B)})};
RM=function(O){return EI(function(m,G){var B=null,Q=0,H=!1;m.subscribe(new L_(G,function(M){var R;(R=B)==null||R.unsubscribe();R=Q++;Vv(O(M,R)).subscribe(B=new L_(G,function(x){return G.next(x)},void 0,function(){B=null;
H&&!B&&G.complete()}))},void 0,function(){(H=!0,!B)&&G.complete()}))})};
iC=function(O,m){m=m===void 0?!1:m;return EI(function(G,B){var Q=0;G.subscribe(new L_(B,function(H){var M=O(H,Q++);(M||m)&&B.next(H);!M&&B.complete()}))})};
VSI=function(O,m,G){var B=x3(O)||m||G?{next:O,error:m,complete:G}:O;return B?EI(function(Q,H){Q.subscribe(new L_(H,function(M){var R;(R=B.next)==null||R.call(B,M);H.next(M)},function(M){var R;
(R=B.error)==null||R.call(B,M);H.error(M)},function(){var M;
(M=B.complete)==null||M.call(B);H.complete()}))}):Wi};
bL5=function(){var O=_.eA.apply(0,arguments),m=E3N(O);return EI(function(G,B){for(var Q=O.length,H=Array(Q),M=O.map(function(){return!1}),R=!1,x={i$jscomp$230:0};x.i$jscomp$230<Q;x={i$jscomp$230:x.i$jscomp$230},x.i$jscomp$230++)Vv(O[x.i$jscomp$230]).subscribe(new L_(B,function(t){return function(W){H[t.i$jscomp$230]=W;
R||M[t.i$jscomp$230]||(M[t.i$jscomp$230]=!0,(R=M.every(Wi))&&(M=null))}}(x),void 0,UI));
G.subscribe(new L_(B,function(t){R&&(t=[t].concat(_.lS(H)),B.next(m?m.apply(null,_.lS(t)):t))}))})};
XYI=function(O){try{return!!O&&O.location.href!=null&&n6I(O,"foo")}catch(m){return!1}};
fnf=function(O){var m=[],G=0,B;for(B in O)m[G++]=B;return m};
hfe=function(O,m){for(var G in O)if(O[G]==m)return!0;return!1};
T9S=function(O,m,G){for(var B in O)if(m.call(G,O[B],B,O))return B};
g6r=function(O){if(!O||typeof O!=="object")return O;if(typeof O.clone==="function")return O.clone();if(typeof Map!=="undefined"&&O instanceof Map)return new Map(O);if(typeof Set!=="undefined"&&O instanceof Set)return new Set(O);if(O instanceof Date)return new Date(O.getTime());var m=Array.isArray(O)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(O)||O instanceof DataView?{}:new O.constructor(O.length),G;for(G in O)m[G]=g6r(O[G]);return m};
uyp=function(O){var m=arguments.length;if(m==1&&Array.isArray(arguments[0]))return uyp.apply(null,arguments[0]);if(m%2)throw Error("ka");for(var G={},B=0;B<m;B+=2)G[arguments[B]]=arguments[B+1];return G};
jMI=function(O){var m=arguments.length;if(m==1&&Array.isArray(arguments[0]))return jMI.apply(null,arguments[0]);for(var G={},B=0;B<m;B++)G[arguments[B]]=!0;return G};
_.x6=function(O){return new KIp(O[0].toLowerCase())};
Ine=function(O){for(var m=_.eA.apply(1,arguments),G=O[0],B=0;B<O.length-1;B++)G+=String(m[B]),G+=O[B+1];m=document.implementation.createHTMLDocument("");B=m.createElement("style");m.head.appendChild(B);m=B.sheet;m.insertRule(G,0);if(m.cssRules.length===1&&(G=m.cssRules[0],G instanceof CSSStyleRule))return new iS(G.cssText.replace(/</g,"\\3C "))};
pYM=function(O){try{return new URL(O,window.document.baseURI)}catch(m){return new URL("about:invalid")}};
S_M=function(O,m){var G=m.createRange();G.selectNode(m.body);O=P8(O);return G.createContextualFragment(OI(O))};
E6z=function(O){O=O.nodeName;return typeof O==="string"?O:"FORM"};
LsI=function(O){O=O.nodeType;return O===1||typeof O!=="number"};
U_=function(O,m,G){O.setAttribute(m,G)};
CC6=function(O){return O.parts.map(function(m){var G=m.descriptor;return""+m.url+(G?" "+G:"")}).join(" , ")};
_.WY=function(O){var m=_.eA.apply(1,arguments);if(m.length===0)return _.p9(O[0]);for(var G=O[0],B=0;B<m.length;B++)G+=encodeURIComponent(m[B])+O[B+1];return _.p9(G)};
_.Zn=function(O,m){O=_.Eh(O).toString();var G=O.split(/[?#]/),B=/[?]/.test(O)?"?"+G[1]:"";return o6S(G[0],B,/[#]/.test(O)?"#"+(B?G[2]:G[1]):"",m)};
o6S=function(O,m,G,B){function Q(M,R){M!=null&&(Array.isArray(M)?M.forEach(function(x){return Q(x,R)}):(m+=H+encodeURIComponent(R)+"="+encodeURIComponent(M),H="&"))}
var H=m.length?"&":"?";B.constructor===Object&&(B=Object.entries(B));Array.isArray(B)?B.forEach(function(M){return Q(M[1],M[0])}):B.forEach(Q);
return _.p9(O+m+G)};
zP=function(O,m,G,B){this.top=O;this.right=m;this.bottom=G;this.left=B};
lnN=function(O){O=O.global;if(O.PendingGetBeacon)return O.PendingGetBeacon};
VD=function(O){return function(m){return m.pipe(anp(O,HY(new JY)))}};
bC=function(O){return function(m){return m.pipe(anp(O,$6(1)))}};
anp=function(O,m){function G(B){return new z9(function(Q){return B.subscribe(function(H){nL(O,function(){return void Q.next(H)},3)},function(H){nL(O,function(){return void Q.error(H)},3)},function(){nL(O,function(){return void Q.complete()},3)})})}
return Z9(G,CSf(),m,C_(),G)};
cYp=function(O){var m=kPN(O);return m===null?new Xy(null):m.pipe(oo(function(G){G=G.serialize();if(yYp)G=_.Qf.btoa(G);else{for(var B=[],Q=0,H=0;H<G.length;H++){var M=G.charCodeAt(H);M>255&&(B[Q++]=M&255,M>>=8);B[Q++]=M}G=_.pB(B)}return G}),O_(1),bC(O.queue))};
Y_N=function(O){var m=m===void 0?{}:m;if(typeof Event==="function")return new Event(O,m);if(typeof document!=="undefined"){var G=document.createEvent("CustomEvent");G.initCustomEvent(O,m.bubbles||!1,m.cancelable||!1,m.detail);return G}throw Error();};
dMN=function(O){return typeof O==="string"?document.getElementById(O):O};
efz=function(O){var m=!1;m=m===void 0?!1:m;if(O.tagName==="IMG"){if(O.complete&&(!O.naturalWidth||!O.naturalHeight))return!0;var G;if(m&&((G=O.style)==null?void 0:G.display)==="none")return!0}var B,Q;return wYM.test((B=O.getAttribute("width"))!=null?B:"")&&wYM.test((Q=O.getAttribute("height"))!=null?Q:"")};
DMN=function(O,m){if(O.tagName==="IMG")return O.naturalWidth&&O.naturalHeight?!0:!1;try{if(O.readyState)var G=O.readyState;else{var B,Q;G=(B=O.contentWindow)==null?void 0:(Q=B.document)==null?void 0:Q.readyState}return G==="complete"}catch(H){return m===void 0?!1:m}};
sMO=function(O){O||(O=function(m,G,B){m.addEventListener(G,B)});
return O};
AYs=function(O,m){var G=N9e();G=G===void 0?new PCO:G;if(O=dMN(O)){var B=sMO(B);for(var Q=!1,H=function(S){Q||(Q=!0,m(S))},M,R=2,x=0;x<FsI.length;++x)if(FsI[x]===O.tagName){R=3;
M=[O];break}M||(M=O.querySelectorAll(FsI.join(",")));var t=0,W=0,Z=!0,z=O=!1;x={};for(var J=0;J<M.length;x={isImg:void 0},J++){var n=M[J];if(!efz(n))if(x.isImg=n.tagName==="IMG",DMN(n,G.crossDomainLoadedDefault))O=!0,x.isImg&&(Z=!0);else{t++;var I=function(S){return function(L){t--;!t&&Z&&H(R);S.isImg&&(L=L&&L.type==="error",W--,L||(Z=!0),!W&&z&&Z&&H(R))}}(x);
B(n,"load",I);x.isImg&&(W++,B(n,"error",I))}}W===0&&(Z=!0);M=null;M=_.Qf.document.readyState==="complete";if(t===0&&!O&&M)R=5;else if(t||!O){B(_.Qf,"load",function(){!G.pendingImagesBlockLoad||!W&&Z?H(4):z=!0});
return}H(R)}};
Odp=function(O,m,G){if(O)for(var B=0;O!=null&&B<500&&!G(O);++B)O=m(O)};
mZY=function(O,m){Odp(O,function(G){try{return G===G.parent?null:G.parent}catch(B){}return null},m)};
GyN=function(O,m){if(O.tagName=="IFRAME")m(O);else{O=O.querySelectorAll("IFRAME");for(var G=0;G<O.length&&!m(O[G]);++G);}};
B_e=function(O){return(O=O.ownerDocument)&&(O.parentWindow||O.defaultView)||null};
Qwp=function(O,m,G){try{var B=JSON.parse(G.data)}catch(M){}if(typeof B==="object"&&B&&B.type==="creativeLoad"){var Q=B_e(O);if(G.source&&Q){var H;mZY(G.source,function(M){try{if(M.parent===Q)return H=M,!0}catch(R){}});
H&&GyN(O,function(M){if(M.contentWindow===H)return m(B),!0})}}};
Hds=function(O){return typeof O==="string"?document.getElementById(O):O};
Mer=function(){var O={};return O[0]=_.WY(vaO,"current"),O[1]=_.WY(K_O),O[2]=_.WY($Z6),O};
fL=function(O,m){return O.left===m.left&&O.top===m.top&&O.width===m.width&&O.height===m.height};
rFN=function(O,m){return{left:Math.max(O.left,m.left),top:Math.max(O.top,m.top),width:Math.max(0,Math.min(O.left+O.width,m.left+m.width)-Math.max(O.left,m.left)),height:Math.max(0,Math.min(O.top+O.height,m.top+m.height)-Math.max(O.top,m.top))}};
REz=function(O,m){return{left:Math.round(O.left+m.x),top:Math.round(O.top+m.y),width:O.width,height:O.height}};
idN=function(O,m,G){if(O&&m!==null&&m!=m.top){if(!m.top)return new _.hY(-12245933,-12245933);m=m.top}try{return(G===void 0?0:G)?(new _.hY(m.innerWidth,m.innerHeight)).round():_.TP(m).round()}catch(B){return new _.hY(-12245933,-12245933)}};
xZf=function(O,m,G){try{if(O){if(!m.top)return new zP(-12245933,-12245933,-12245933,-12245933);m=m.top}var B=idN(O,m,G),Q=B.height,H=B.width;if(H===-12245933)return new zP(H,H,H,H);var M=uC(jS(m.document)),R=M.x,x=M.y;return new zP(x,R+H,x+Q,R)}catch(t){return new zP(-12245933,-12245933,-12245933,-12245933)}};
q0Y=function(O){var m;return(m=O.google_tag_data)!=null?m:O.google_tag_data={}};
UZe=function(O){var m,G;return typeof((m=O.navigator)==null?void 0:(G=m.userAgentData)==null?void 0:G.getHighEntropyValues)==="function"};
W_e=function(O){if(!UZe(O))return null;var m=q0Y(O);if(m.uach_promise)return m.uach_promise;O=O.navigator.userAgentData.getHighEntropyValues(teM).then(function(G){m.uach!=null||(m.uach=G);return G});
return m.uach_promise=O};
uKz=function(O){var m;return ZdN(zEY(JFM(VeS(bdf(naf(Xh5(fZY(hE5(new T_e,O.architecture||""),O.bitness||""),O.mobile||!1),O.model||""),O.platform||""),O.platformVersion||""),O.uaFullVersion||""),((m=O.fullVersionList)==null?void 0:m.map(function(G){var B=new gaO;B=_.SS(B,1,G.brand);return _.SS(B,2,G.version)}))||[]),O.wow64||!1)};
jwf=function(O){var m,G;return(G=(m=W_e(O))==null?void 0:m.then(function(B){return uKz(B)}))!=null?G:null};
IZY=function(O,m){return new z9(function(G){var B=!1,Q=Array(m.length);Q.fill(void 0);var H=new Set,M=new Set,R=function(Z,z){O.running?(Q[z]=Z,H.add(z),B||(B=!0,nL(O,function(){B=!1;G.next(_.cM(Q))},1))):G.error(new E_(z))},x=function(Z,z){M.add(z);
H.add(z);nL(O,function(){G.error(Z)},1)},t=function(Z){M.add(Z);
nL(O,function(){M.size===m.length&&G.complete()},1)},W=m.map(function(Z,z){return Z.subscribe(function(J){return void R(J,z)},function(J){return void x(J,z)},function(){return void t(z)})});
return function(){W.forEach(function(Z){return void Z.unsubscribe()})}})};
EaN=function(O,m,G){function B(){if(m.debugChannel){var S=m.debugChannel,L=S.next;var C={creativeId:m.debugNames.getName(G),requiredSignals:Q,signals:Object.assign({},H),hasPrematurelyCompleted:M,errorMessage:R,erroredSignalKey:x};C={specMajor:2,specMinor:0,specPatch:0,timestamp:D9(m.timeProvider.now(),new sI(0,m.timeProvider.timeline)),instanceId:m.debugNames.getName(m.symbol),creativeState:C};L.call(S,C)}}
for(var Q=Object.keys(O),H={},M=!1,R=null,x=null,t={},W=new Set,Z=[],z=[],J=_.K(Q),n=J.next(),I={};!n.done;I={key$jscomp$396:void 0},n=J.next())I.key$jscomp$396=n.value,n=O[I.key$jscomp$396],n instanceof Xy?(t[I.key$jscomp$396]=n.value,W.add(I.key$jscomp$396),m.debugChannel&&(H[String(I.key$jscomp$396)]=MS6(n.value))):(n=n.pipe(GP(function(S,L){return KsY(S)||KsY(L)?!1:S===L}),oo(function(S){return function(L){m.debugChannel&&(H[String(S.key$jscomp$396)]=MS6(L),B());
var C={};return C[S.key$jscomp$396]=L,C}}(I)),Pi(function(S){return function(L){if(L instanceof E_)throw new phN(String(S.key$jscomp$396));
throw L;}}(I)),VSI(function(S){return function(){W.add(S.key$jscomp$396)}}(I),function(S){return function(L){x=String(S.key$jscomp$396);
R=String(L);B()}}(I),function(S){return function(){W.has(S.key$jscomp$396)||(M=!0,B())}}(I))),z.push(I.key$jscomp$396),Z.push(n));
(O=Object.keys(H).length>0)&&B();J=IZY(m.queue,Z).pipe(Pi(function(S){if(S instanceof E_)throw new S0S(String(z[S.inputObservableIndex]));throw S;}),oo(function(S){return Object.freeze(Object.assign.apply(Object,[{},
t].concat(_.lS(S))))}));
return(Z=Z.length>0)&&O?dC(p_(Object.freeze(t)),J):Z?J:p_(Object.freeze(t))};
L_p=function(O,m,G,B,Q){return O.performanceMonitor.timeExecution.bind(O.performanceMonitor)(733,function(){var H={};try{return m.pipe(Pi(function(M){B(Object.assign({},H,{error:M}));return Y3}),yv(function(M){try{var R=G(O,M)}catch(t){return B(Object.assign({},H,{error:t instanceof Error?t:String(t)})),Y3}var x={};
return EaN(R,O,M.symbol).pipe(VSI(function(t){x=t}),$6(1),C_()).pipe(Q,Pi(function(t){B(Object.assign({},x,{error:t}));
return Y3}),BY(void 0),oo(function(){return!0}))})).pipe(MM(function(M){return M+1},0),Pi(function(M){B(Object.assign({},H,{error:M}));
return Y3}))}catch(M){return B(Object.assign({},H,{error:M})),Y3}})()};
LL=function(O){var m=new Map;if(typeof O!=="object"||O===null)return m;Object.values(O).forEach(function(G){G&&typeof G.extrapolateToNow==="function"&&(m.has(G.clock.timeline)||m.set(G.clock.timeline,G.clock.now()))});
return m};
CjO=function(O,m){return typeof O==="string"?encodeURIComponent(O):typeof O==="number"?String(O):Array.isArray(O)?O.map(function(G){return CjO(G,m)}).join(","):O instanceof sI?O.toString():O&&typeof O.extrapolateToNow==="function"?CjO(O.extrapolateUsingTimestampMap(m).value,m):O===!0?"1":O===!1?"0":O===void 0||O===null?null:O instanceof oaN?lZz(O):[O.top,
O.left,O.top+O.height,O.left+O.width].join()};
aZs=function(O,m){O=Object.entries(O).map(function(G){var B=_.K(G);G=B.next().value;B=B.next().value;B=CjO(B,m);return B===null?"":G+"="+B}).filter(function(G){return G!==""});
return O.length?O.join("&"):""};
cFM=function(O,m){var G=kyr,B=yFM;m=m===void 0?.01:m;return function(Q){m>0&&Math.random()<=m&&(O.global.HTMLFencedFrameElement&&O.global.fence&&typeof O.global.fence.reportEvent==="function"&&O.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(O.performanceMonitor.timedFunctionContext),errorEscapedQueryId:Q.escapedQueryId}),G(Object.assign({},Q,{payloadMapper:function(){return function(H){try{return B(Object.assign({},H))}catch(M){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),LL(Q)).forEach(function(H){O.beaconFactory.makeBeacon(H).sendNow()}))}};
Y0r=function(){var O=_.eA.apply(0,arguments);return function(m){var G=m.pipe($6(1),C_());m=O.map(function(B){return G.pipe(B,BY(!0))});
return ao(m).pipe(O_(1),FP())}};
dZp=function(){var O=_.eA.apply(0,arguments);return function(m){var G=m.pipe($6(1),C_());m=O.map(function(B){return G.pipe(B,BY(!0))});
return dC.apply(null,_.lS(m)).pipe(O_(1),FP())}};
whr=function(O,m){return function(G){var B=G.pipe($6(1),C_());G=B.pipe(O,BY(!0));B=B.pipe(Z9(m,$6(),C_()),BY(!0));G=ao([G,B]);return HLS(G,B).pipe(O_(1),FP())}};
eEp=function(O,m,G){G(!0)};
DZe=function(O,m){return Z9(RM(function(G){var B=O(G),Q=m(G),H={};return B&&Q&&H?new z9(function(M){Q(B,H,function(R){M.next(Object.assign({},G,{canEmit:R}));M.complete()});
return function(){}}):CL}),eu(function(G){return G.canEmit}))};
swp=function(O){var m={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(G){return G.pipe(RM(function(B){return new z9(function(Q){function H(){R.disconnect();x.unsubscribe()}
var M=O.MutationObserver;if(M&&B.ref!==void 0){var R=new M(function(t){Q.next(t)});
R.observe(B.ref,m);var x=B.JSC$9361_released.subscribe(H);return H}})}))}};
N_I=function(O){if(O.measurementDeferralState===3)return null;if(O.timeOnScreenReason!==void 0){var m=O.creativeFound===!1?"n":null;if(m!==null)return m}return O.geometricMeasurementErrors instanceof oM?"msf":O.contextValidationErrors instanceof lC?"c":O.contextVisibilityKnown===!1?"pv":O.geometricMeasurementErrors||O.contextValidationErrors?"x":null};
F_r=function(O,m){return O.replace(Pjr,function(G,B){try{var Q=_.aM.get(m,B);if(Q==null||Q.toString()==null)return G;Q=Q.toString();if(Q==""||!_.Re(Q==null?"":String(Q)))return encodeURIComponent(Q).replace(/%2C/g,",")}catch(H){}return G})};
AFM=function(O,m){var G=Object.assign({},O),B=O.userAgentClientHints;G=(delete G.userAgentClientHints,G);G=O.payloadMapper(G);var Q=aZs(G,m);return _.k6(O.urlPrefixes,function(H){var M="";typeof B==="string"&&(M="&"+aZs({uach:B},m));var R={};return F_r(H,(R.VIEWABILITY=Q,R))+M})};
kyr=function(O,m){var G=O.payloadMapper(O),B=aZs(G,m);return B?_.k6(O.urlPrefixes,function(Q){Q=Q.indexOf("?")>=0?Q:Q+"?";Q="?&".indexOf(Q.slice(-1))>=0?Q:Q+"&";return Q+B}):O.urlPrefixes};
OSS=function(){return Z9(eu(function(O){return O!==void 0}),oo(function(O){return O}))};
m_z=function(O){return Z9(oo(function(){return!0}),r9(!1),bC(O))};
GJp=function(O){return O.length<=0?Y3:ao(O.map(function(m){var G=0;return m.pipe(oo(function(B){return{index:G++,value:B}}))})).pipe(eu(function(m){return m.every(function(G){return G.index===m[0].index})}),oo(function(m){return m.map(function(G){return G.value})}))};
BhI=function(O,m){O.currentState&&(O.previousState=O.currentState);O.currentState=m;O.previousState&&O.previousState.value?(m=Math.max(0,D9(m.timestamp,O.previousState.timestamp)),O.totalTime+=m,O.consecutiveTime+=m):O.consecutiveTime=0;return O};
Q9Y=function(){return Z9(MM(BhI,{totalTime:0,consecutiveTime:0}),oo(function(O){return O.totalTime}))};
HSe=function(){return Z9(MM(BhI,{totalTime:0,consecutiveTime:0}),oo(function(O){return O.consecutiveTime}))};
vvz=function(O,m){return function(G){return GJp(m.map(function(B){return G.pipe(O(B))}))}};
KNN=function(){var O;return Z9(VSI(function(m){return void(O=m.timestamp)}),HSe(),oo(function(m){return{timestamp:O,
value:Math.round(m)}}))};
$_6=function(O,m){return fL(O.topWindowViewportExternalGeometry,m.topWindowViewportExternalGeometry)&&fL(O.elementGeometry,m.elementGeometry)&&fL(O.exposedViewportLocalGeometry,m.exposedViewportLocalGeometry)&&fL(O.intersectionGeometry,m.intersectionGeometry)&&O.elementGeometrySourceName===m.elementGeometrySourceName&&O.measurementRequests===m.measurementRequests&&O.viewportGeometrySourceName===m.viewportGeometrySourceName&&O.viewportLocalAppOffset.x===m.viewportLocalAppOffset.x&&O.viewportLocalAppOffset.y===
m.viewportLocalAppOffset.y};
iSz=function(O,m){return function(G){return function(B){var Q=B.pipe(HY(new JY),C_());B=G.element.pipe(GP());Q=Q.pipe(oo(function(H){return H.value}));
return ao([B,Q,m]).pipe(oo(function(H){var M=_.K(H);H=M.next().value;var R=M.next().value;M=M.next().value;if(H.ref===void 0)var x={top:0,left:0,width:0,height:0};else{x=H.ref.getBoundingClientRect();var t=H.ref,W=O.global,Z=new _.yD(0,0),z=cY(_.Y6(t));if(n6I(z,"parent")){do{if(z==W)var J=_.d9(t);else J=MES(t),J=new _.yD(J.left,J.top);Z.x+=J.x;Z.y+=J.y}while(z&&z!=W&&z!=z.parent&&(t=z.frameElement)&&(z=z.parent))}x={top:Z.y,left:Z.x,width:x.width,height:x.height}}x=REz(x,R.viewportLocalAppOffset);
W=rFN(x,R.exposedViewportLocalGeometry);Z=O.timeProvider.now();z=Object;t=z.assign;if(M!==2||O.inCrossDomainIframe||W.width<=0||W.height<=0)var n=!1;else try{var I=O.document.elementFromPoint(W.left+W.width/2,W.top+W.height/2);n=I?!r0O(I,H):!1}catch(S){n=!1}return{timestamp:Z,value:t.call(z,{},R,{elementGeometrySourceName:"geo",intersectionGeometry:n?Rlz.intersectionGeometry:W,elementGeometry:x})}}),VD(O.queue))}}};
r0O=function(O,m,G){G=G===void 0?0:G;return O.ref===void 0||m.ref===void 0?!1:O.ref===m.ref||_.w9(m.ref,function(B){return B===O.ref})?!0:m.ref.ownerDocument&&m.ref.ownerDocument.defaultView&&m.ref.ownerDocument.defaultView===m.ref.ownerDocument.defaultView.top?!1:G<10&&m.ref.ownerDocument&&m.ref.ownerDocument.defaultView&&m.ref.ownerDocument.defaultView.frameElement?r0O(O,new eS(m.ref.ownerDocument.defaultView.frameElement),G+1):!0};
U_s=function(O){return function(m){return m.pipe(O.ResizeObserver?x_e(O):qRN(O),$6(1),C_())}};
x_e=function(O){return function(m){return m.pipe(RM(function(G){var B=O.ResizeObserver;if(!B||G.ref===void 0)return p_(Rlz.elementGeometry);var Q=(new z9(function(H){function M(){G.ref!==void 0&&R.unobserve(G.ref);R.disconnect();x.unsubscribe()}
if(G.ref===void 0)return H.complete(),function(){};
var R=new B(function(t){t.forEach(function(W){H.next(W)})});
R.observe(G.ref);var x=G.JSC$9361_released.subscribe(M);return M})).pipe(NG(O.performanceMonitor,736),oo(function(H){return H.contentRect}));
return dC(p_(G.ref.getBoundingClientRect()),Q)}),GP(fL))}};
qRN=function(O){return function(m){var G=m.pipe(swp(O)),B=O.onResize;G=dC(m.pipe(oo(function(){return Y_N("resize")})),G,B);
return ao(m,G).pipe(NG(O.performanceMonitor,737),oo(function(Q){Q=_.K(Q).next().value;return Q.ref===void 0?void 0:Q.ref.getBoundingClientRect()}),OSS(),GP(fL))}};
ZSY=function(O,m){var G=tEs(O,m).pipe($6(1),C_());return function(B){return function(Q){Q=Q.pipe(RM(function(H){return H.element}),GP());
return ao([G,Q]).pipe(RM(function(H){var M=_.K(H);H=M.next().value;M=M.next().value;return WNr(O,H.intersectionObserver,U_s(O),H.observations,B,H.flushRecords,M)}),VD(O.queue))}}};
zlN=function(O){return oo(function(m){return m.value.viewportGeometrySourceName!=="nio"?m:Object.assign({},m,{value:Object.assign({},m.value,{exposedViewportLocalGeometry:Dn(O,!0),topWindowViewportExternalGeometry:Dn(O,!0)})})})};
J0e=function(O,m){return p_(m).pipe(O,oo(function(){return m}))};
tEs=function(O,m){return O.timeProvider.timeline!==VEO?Su(new oM(2)):O.MutationObserver?typeof IntersectionObserver==="undefined"?Su(new oM(0)):(new z9(function(G){var B=new JY,Q=new NM(B.next.bind(B),{threshold:[].concat(_.lS(m))});G.next({observations:B.pipe(NG(O.performanceMonitor,735)),intersectionObserver:Q,flushRecords:function(H){H=Q.takeRecords(H);H.length>0&&B.next(H)}})})).pipe(O_(1),$6(1),C_()):Su(new oM(1))};
bS5=function(O){return hqI(O.sort(function(m,G){return m.time-G.time}),LIe)};
WNr=function(O,m,G,B,Q,H,M){return new z9(function(R){function x(){n||(n=!0,M.ref!==void 0&&m.unobserve(Q,M.ref),W.unsubscribe(),J.unsubscribe(),z.unsubscribe(),I.unsubscribe())}
if(M.ref!==void 0){nvO(m,Q);m.observe(Q,M.ref);var t=new PY({timestamp:O.timeProvider.now(),value:Object.assign({},Rlz,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),W=B.pipe(yv(function(S){return bS5(S)}),eu(function(S){return S.target===M.ref}),oo(function(S){return{timestamp:new sI(S.time,VEO),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:S.rootBounds||Fy,topWindowViewportExternalGeometry:S.rootBounds||Dn(O,!0),measurementRequests:Z,elementGeometrySourceName:"nio",intersectionGeometry:S.intersectionRect,elementGeometry:S.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:S.isIntersecting,isV2Visible:S.isVisible}}}),HY(t),C_()).subscribe(R),Z=new JY,z=Z.subscribe(function(){H(Q);
R.next({timestamp:O.timeProvider.now(),value:t.value.value});M.ref!==void 0&&(m.unobserve(Q,M.ref),m.observe(Q,M.ref))}),J=J0e(G,M).subscribe(function(){Z.next()}),n=!1,I=M.JSC$9361_released.subscribe(function(){return x()});
return x}})};
Xf5=function(O,m){var G=O.getOnBackgrounded().pipe(oo(function(){return"b"}));
return HLS(m,G).pipe(O_(1),bC(O.queue))};
AY=function(O){return function(m){var G;return m.pipe(VSI(function(B){return void(G=B.timestamp)}),oo(function(B){return B.value}),O,oo(function(B){return{timestamp:G,
value:B}}))}};
fKp=function(O){return O.intersectionGeometry.width*O.intersectionGeometry.height/(O.elementGeometry.width*O.elementGeometry.height)};
O0=function(O,m,G){G=G===void 0?function(B,Q){return B===Q}:G;
return O.timestamp.equals(m.timestamp)&&G(O.value,m.value)};
Gy=function(O,m){return m.pipe(oo(function(G){return new m_(O.timeProvider,{timestamp:O.timeProvider.now(),value:G})}))};
hlz=function(O){return function(m){return m.pipe(bL5(O),oo(function(G){var B=_.K(G);G=B.next().value;B=B.next().value;var Q=G.value;return{timestamp:G.timestamp,value:Q>=1?!0:Q<=0?!1:Q>=B}}))}};
gvS=function(){return Z9(eu(function(O,m){return m>0}),Thz,r9(-1),GP())};
uH6=function(O,m,G){return O?ao([m,G]).pipe(eu(function(B){var Q=_.K(B);B=Q.next().value;Q=Q.next().value;return B.timestamp.equals(Q.timestamp)}),oo(function(B){var Q=_.K(B);
B=Q.next().value;Q=Q.next().value;return B.value>Q.value?B:Q})):m};
pfe=function(O){return function(m){var G=m.pipe(j9e),B=m.pipe(IKO);return O instanceof z9?O.pipe(RM(function(Q){return uH6(Q,G,B)})):uH6(O.value,G,B)}};
c0Y=function(O,m,G,B){var Q=B.geometryIsOccluded,H=B.exposureThreshold,M=B.wasLargeAdAtRender,R=B.allowLargeAdThreshold,x=B.largeAdExposureThreshold,t=B.mayUseViewportShareExposure,W=B.hasMeasurementStarted;B=B.useIntersectionObserverV2;m=SRN(O,G,m);G=Eve(O,G);B=LNe(m,B);var Z=CFM(O,Q,t,m),z=Z.pipe(oo(function(d){return d.value}),GP(),bC(O),MM(function(d,D){return Math.max(d,D)},0)),J=Z.pipe(oo(function(d){return d.value}),gvS(),bC(O)),n=m.pipe(ovN,oo(function(d){return d.value}),O_(2),GP(),bC(O));
M=lKN(O,m,M,R);var I=M.pipe(r9(!1),GP(),oo(function(d){return d?x:H}));
R=Z.pipe(hlz(I),GP(),bC(O));var S=ao([R,m]).pipe(eu(function(d){var D=_.K(d);d=D.next().value;D=D.next().value;return d.timestamp.equals(D.timestamp)}),oo(function(d){var D=_.K(d);
d=D.next().value;D=D.next().value;return{visible:d.value,geometry:D.value.elementGeometry}}),MM(function(d,D){return!D.visible&&d.visible?d:D},{visible:!1,
geometry:Fy}),oo(function(d){return d.geometry}),r9(Fy),bC(O),GP(fL));
t=t instanceof z9?t.pipe(GP(),AX()):CL;I=ao([t,I]).pipe(AX());var L=m.pipe(eu(function(d){return d.value.viewportGeometrySourceName!=="ns"&&d.value.elementGeometrySourceName!=="ns"}),MM(function(d){return d+1},0),r9(0),bC(O)),C=G.pipe(AX(!0),r9(!1),bC(O));
C=ao([W,C]).pipe(oo(function(d){var D=_.K(d);d=D.next().value;D=D.next().value;return d&&!D}),bC(O));
var P=m.pipe(aKr,GP()),w=P.pipe(oo(function(d){return d.value}),MM(function(d,D){return Math.max(d,D)},0),GP(),bC(O));
O=P.pipe(oo(function(d){return d.value}),gvS(),bC(O));
return{shouldResetExposureSignals:t,shouldResetViewabilitySignals:I,geometrySignals:{readyGeometryWithDefault:m,measurementStrategy:m.pipe(kJp),creativePosition:S.pipe(GP(fL)),visible:R.pipe(GP(O0)),timestampedExposure:Z.pipe(GP(O0)),maximumExposure:z,minimumExposure:J,browserSize:m.pipe(y0I,GP(_.Np)),timestampedScreenShare:P,maxScreenShare:w,minScreenShare:O,geometricMeasurementErrors:G,measurementRequests:m.pipe(oo(function(d){return d.value.measurementRequests})),
isLargeAd:M,geometryIsOccluded:Q,hasMeasurementStarted:W,geometryMeasurable:C,validMeasurementCount:L,loadTimeExposure:n,v2VisibilityBitVector:B}}};
Eve=function(O,m){return m.pipe(eu(function(){return!1}),oo(function(G){return G}),Pi(function(G){return Bh(new Xy(G),O)}))};
SRN=function(O,m,G){return m.pipe(B9Y(CL),bC(O)).pipe(GP(function(B,Q){return O0(B,Q,$_6)}),r9({timestamp:G.now(),
value:Rlz}),bC(O))};
CFM=function(O,m,G,B){G=B.pipe(pfe(G),AY(oo(function(Q){return Math.round(Q*100)/100})),bC(O));
return m instanceof Xy?G:ao([G,m]).pipe(oo(function(Q){var H=_.K(Q);Q=H.next().value;H=H.next().value;return{timestamp:H.timestamp.maximum(Q.timestamp),value:H.value?0:Q.value}}),GP(O0),bC(O))};
lKN=function(O,m,G,B){m=[m.pipe(oo(function(Q){return Q.value.elementGeometry.width*Q.value.elementGeometry.height>=242500}))];
G instanceof z9&&m.push(G.pipe(oo(function(Q){return!!Q})));
G=ao(m);return B?G.pipe(oo(function(Q){return Q.some(function(H){return H})}),r9(!1),GP(),bC(O)):Bh(new Xy(!1),O)};
LNe=function(O,m){O=ao([O,m]).pipe(oo(function(Q){var H=_.K(Q);Q=H.next().value;if(H.next().value&&Q.value.isIntersecting)return Q.value.isV2Visible}),GP());
var G=O.pipe(oo(function(Q){return Q===void 0?!0:Q}),MM(function(Q,H){return Q||!H},!1)),B=O.pipe(MM(function(Q,H){return H===void 0?Q:H?!1:Q!=null?Q:!0},void 0),oo(function(Q){return!!Q}));
return ao([m,v65(O,G,B)]).pipe(oo(function(Q){var H=_.K(Q);Q=H.next().value;var M=_.K(H.next().value);H=M.next().value;var R=M.next().value;M=M.next().value;var x=0;if(!Q)return 0;if(H===void 0)return 16;H&&(x|=1);H||(x|=2);R&&(x|=4);M&&(x|=8);return x}))};
s9e=function(O,m,G,B,Q){var H=YRS.timeThresholdMs;var M=M===void 0?new d_6(m,B):M;return(new z9(function(R){var x=G.pipe(r9(void 0),RM(function(){return wfO(Q)})).pipe(oo(function(t){var W=t.value;
t=t.timestamp;var Z=W.visible;W=W.consecutiveViewTime;var z=W>=H;z||!Z?elf(M):(t=Math.max(0,D9(m.now(),t)),D_S(M,Math.max(0,H-W-t)));return z}),MM(function(t,W){return W||t},!1),GP()).subscribe(R);
return function(){M.dispose();x.unsubscribe()}})).pipe(iC(function(R){return!R},!0),bC(O))};
wfO=function(O){return GJp([O,O.pipe(KNN())]).pipe(oo(function(m){var G=_.K(m);m=G.next().value;G=G.next().value;return{timestamp:m.timestamp,value:{visible:m.value,consecutiveViewTime:G.value}}}),GP(function(m,G){return O0(m,G,function(B,Q){return B.consecutiveViewTime===Q.consecutiveViewTime&&B.visible===Q.visible})}))};
Nhp=function(){return Z9(HSe(),MM(function(O,m){return Math.max(O,m)},0),oo(function(O){return Math.round(O)}))};
PFI=function(O){return Z9(hlz(p_(O)),Nhp())};
FNs=function(O,m){return m instanceof z9?m.pipe(RM(function(G){return(G=G?15:null)?Su(new oM(G)):O})):(m=m.value?15:null)?Su(new oM(m)):O};
A0f=function(O){var m=new oM(13);if(O.length<1)return{chain:Y3,capturedErrors:Y3};var G=new JY,B=O[0];return{chain:O.slice(1).reduce(function(Q,H){return Q.pipe(Pi(function(M){G.next(M);return H}))},B).pipe(Pi(function(Q){G.next(Q);
return Su(m)}),HY(new JY),C_()),
capturedErrors:G}};
OnN=function(O,m){var G=O.pipe(HY(new JY),C_());return RM(function(B){return G.pipe(m(B))})};
GnS=function(O,m){if(O.inCrossDomainIframe)return Su(new oM(6));var G=new JY;return dC(p_({}),m,G).pipe(oo(function(){return{timestamp:O.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:mrf(O),topWindowViewportExternalGeometry:Dn(O,!0),measurementRequests:G,viewportLocalAppOffset:{x:0,y:0}}}}),VD(O.queue))};
mrf=function(O){var m=Dn(O,!1);if(!O.inIframe||!XYI(O.global.parent)||O.global.parent===O.global)return m;var G=new QV(O.global.parent,O.debugChannel);G.beaconFactory=O.beaconFactory;G=mrf(G);O=O.global.frameElement.getBoundingClientRect();return rFN(REz(rFN(G,O),{x:m.left-O.left,y:m.top-O.top}),m)};
BiN=function(O){if(O.prerendering)return 3;var m;return(m={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[O.visibilityState||O.webkitVisibilityState||O.mozVisibilityState||""])!=null?m:0};
Q8s=function(O){return O.document.JSC$9372_onVisibilityChange.pipe(oo(function(m){return m==="visible"}),GP(),bC(O.queue))};
HnN=function(O,m,G){var B;return m.pipe(GP(),RM(function(Q){return G.pipe(oo(function(){if(!B){B=!0;try{Q.next()}finally{B=!1}}return!0}))}),r9(!1),bC(O.queue))};
vBO=function(O){return Z9(AY(oo(function(m){return m>=1?!0:m<=0?!1:m>=O})),Q9Y(),oo(function(m){return Math.round(m)}))};
$r6=function(O,m,G,B,Q){var H=Kmp;if(H.length>1)for(var M=0;M<H.length-1;M++)if(H[M]<H[M+1])throw Error();M=Q.pipe(r9(void 0),RM(function(){return G.pipe(KNN())}),GP(),bC(O));
Q=Q.pipe(r9(void 0),RM(function(){return G.pipe(Nhp())}),GP(),bC(O));
return{totalMeasurementTime:B.pipe(r9(void 0),RM(function(){return m.pipe(oo(function(R){return{timestamp:R.timestamp,value:!0}}),Q9Y())}),GP(),bC(O)),
totalUnviewedTime:B.pipe(r9(void 0),RM(function(){return m.pipe(oo(function(R){return{timestamp:R.timestamp,value:R.value===0}}),Q9Y())}),GP(),bC(O)),
maxTimeOnScreen:B.pipe(r9(void 0),RM(function(){return m.pipe(vvz(PFI,H))}),GP(_.Np),bC(O)),
timeOnScreen:B.pipe(r9(void 0),RM(function(){return m.pipe(vvz(vBO,H),oo(function(R){return R.map(function(x,t){return t>0?x-R[t-1]:x})}))}),GP(_.Np),bC(O)),
maxConsecutiveViewTime:Q,consecutiveViewTime:M.pipe(GP(O0),bC(O))}};
rNs=function(O){var m=!0;m=m===void 0?!1:m;return Z9(RM(function(G){return Mx5(O.document,G,m)}),bC(O.queue))};
R2S=function(O,m,G){var B=G.pipe(oo(function(Q){return{value:Q,timestamp:O.timeProvider.now()}}),GP(O0));
return m instanceof z9?m.pipe(GP(),RM(function(Q){return Q?Bh(new Xy({value:!1,timestamp:O.timeProvider.now()}),O.queue):B})):m.value===!1?B:new Xy(!1)};
inS=function(O,m,G,B,Q,H,M){var R=YRS;m=m instanceof z9?m.pipe(r9(!1),GP()):m;var x=!O.isMobile();G=R2S(O,G,B);O=M.measurableCreative.pipe(m_z(O.queue));return Object.assign({},R,{geometryIsOccluded:G,wasLargeAdAtRender:Q,allowLargeAdThreshold:x,mayUseViewportShareExposure:m,hasMeasurementStarted:O,useIntersectionObserverV2:H})};
qZN=function(O,m,G,B,Q,H){var M=1;H=H===void 0?!0:H;M=M===void 0?.01:M;var R=R===void 0?O.timeProvider.intervalObservable(100).pipe(bC(O.queue)):R;return O.performanceMonitor.timeExecution(916,function(){return xrN(O,m.pipe(VD(O.queue)),G.pipe(VD(O.queue)),B,Q,H,M,R)})()};
xrN=function(O,m,G,B,Q,H,M,R){var x=Q8s(O).pipe(oo(function(W){return!W})),t=new UrS(O,[new txf(O,Kmp),
new Wm5(O,R)]);R=Y0r(Znp,z26);return L_p(O,m,function(W,Z){var z=Bh(new Xy(Z.element),W.queue).pipe(rNs(W),bC(W.queue)),J={loadedElement:z,shouldMeasure:z.pipe(AX(!0)),measurableCreative:z.pipe(oo(function(d){var D=D===void 0?Symbol():D;return Object.freeze({symbol:D,element:Bh(new Xy(d),W.queue)})})),
creativeSearchResult:Bh(new Xy("mue"),W.queue)},n=new Xy(!1),I=new Xy(!1),S=new Xy(17),L=new Xy(!1),C=new Xy(!1),P=Bh(Hh,W.queue);n=t.buildGeometrySource(J,{inApp:n,useV2:!1,requestSource:Bh(S,W.queue)}).geometrySource;J=inS(W,L,I,x,C,P,J);I=c0Y(W.queue,W.timeProvider,n,J);J=I.geometrySignals;L=I.shouldResetViewabilitySignals;I=$r6(W.queue,J.timestampedExposure,J.visible,I.shouldResetExposureSignals,L);L=s9e(W.queue,W.timeProvider,L,J.measurementRequests,J.visible);C=G.pipe(eu(function(d){return d===
Z.element.ref}),oo(function(){return"ur"}));
P=rYN(W.timeProvider,Q).pipe(AX("t"));C=Xf5(W,dC(C,P));P=HnN(W,J.measurementRequests,C.pipe(eu(function(d){return d!==null})));
n=C.pipe(eu(function(d){return d!==null}),oo(function(){return BiN(W.global.document)===1}));
var w=JNs(W.document);return Object.assign({},{beaconFactory:new Xy(W.beaconFactory),context:new Xy(W),inferredPingId:new Xy("lidar2"),timeOnScreenPingId:new Xy("lidartos"),binaryContext:new Xy(17),binaryVersion:new Xy(B),requestSource:S,contextValidationErrors:new Xy(W.validate()?null:new lC),contextVisibilityKnown:new Xy(w),payloadMapper:new Xy(yFM),endOfSessionReason:C,timeOnScreenReason:C,requestMeasurementOnEndOfSession:P,hasImpressionFired:VxY,crossDomainIframeState:new Xy(W.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Hh,inFetchLaterBeaconExperiment:Hh,isTurtlex:Hh,turtlexReportEventData:new Xy(""),reportFencedFrameEvent:CL,isViewableAttributionEnabled:Hh,inViewableAttributionExperiment:new Xy(0),fetchBeaconFactory:CL,supportsPendingBeacon:Hh,supportsFetchLater:Hh,emit:new Xy(eEp),beginToRenderEvent:new Xy(Symbol()),activeViewUnmeasurableEvent:new Xy(Symbol()),activeViewViewableEvent:new Xy(Symbol()),creativeFound:VxY,immediateUrlPrefixes:new Xy(Z.immediateUrls),timeOnScreenUrlPrefixes:new Xy(Z.timeOnScreenUrls),
cpmavUrls:CL,viewableRelayUrls:CL,measurementDeferralState:new Xy(2),urlSerializer:new Xy(AFM),viewUrlSerializer:new Xy(bnO),isCreativeLoaded:z.pipe(m_z(W.queue)),pageVisible:x.pipe(oo(function(d){return!d})),
eosPageVisible:n,timestampedExposureHistory:J.timestampedExposure.pipe(MM(function(d,D){d.push(D);return d},[]))},J,{viewable:Gy(W,L),
maxTimeOnScreen:Gy(W,I.maxTimeOnScreen),timeOnScreen:Gy(W,I.timeOnScreen),maxConsecutiveViewTime:Gy(W,I.maxConsecutiveViewTime),consecutiveViewTime:I.consecutiveViewTime.pipe(oo(function(d){return new m_(W.timeProvider,d)})),
totalMeasurementTime:Gy(W,I.totalMeasurementTime),totalUnviewedTime:Gy(W,I.totalUnviewedTime),userAgentClientHints:cYp(W),clientOrderPingCounter:new Xy(new oaN)})},cFM(O,M),dZp(H?whr(R,nBe):whr(R,XxN),fyr))};
h25=function(O){var m=_.eA.apply(1,arguments).filter(Boolean).join("&");if(!m)return O;var G=O.match(/[?&]adurl=/);return G?O.slice(0,G.index+1)+m+"&"+O.slice(G.index+1):O+(O.indexOf("?")<0?"?":"&")+m};
vh=function(O,m){return m?"&"+O+"="+encodeURIComponent(m):""};
TiO=function(){try{var O,m;return!!((O=window)==null?0:(m=O.top)==null?0:m.location.href)&&!1}catch(G){return!0}};
_.Kd=function(O){O&&typeof O.dispose=="function"&&O.dispose()};
_.$a=function(O){for(var m=0,G=arguments.length;m<G;++m){var B=arguments[m];_.YO(B)?_.$a.apply(null,B):_.Kd(B)}};
uqN=function(){var O=gBN();O=O===void 0?"bevasrsg":O;return new Promise(function(m){var G=window===window.top?window:TiO()?window:window.top,B=G[O],Q;((Q=B)==null?0:Q.bevasrs)?m(new MZ(B.bevasrs)):(B||(B={},B=(B.nqfbel=[],B),G[O]=B),B.nqfbel.push(function(H){m(new MZ(H))}))})};
j8O=function(O){var m={c:O.fK,e:O.cUq,mc:O.lBU,me:O.fB1};O.s6&&(m.co={c:O.s6.k90,a:O.s6.uDc,s:O.s6.emq});return m};
IyS=function(O){var m,G,B={fK:O.c,cUq:O.e,lBU:(m=O.mc)!=null?m:!1,fB1:(G=O.me)!=null?G:!1};O.co&&(B.s6={k90:O.co.c,uDc:O.co.a,emq:O.co.s});return B};
pxp=function(O){return function(){var m;return _.r(function(G){if(G.nextAddress==1)return G.yield(O(),2);m=G.yieldResult;return G.return({f:function(){return m.d2l()},
c:function(B){return m.qT0(B)},
m:function(B){return m.nZ(IyS(B))},
mws:function(B){return m.vaa(IyS(B))}})})}};
SZS=function(O,m){var G=gBN();G=G===void 0?"bevasrsg":G;m={s:function(H){var M;return O.snapshot(Object.assign({},H.c&&{fK:H.c},H.s&&{abL:H.s},{cXn:(M=H.p)!=null?M:!0}))},
e:function(H){var M;return void((M=O.maG)==null?void 0:M.call(O,H))},
c:function(H,M){return O.g8G(H,M)},
p:O.cAG,l:function(){return O.xTI()},
wpc:m?pxp(m):void 0};var B=window===window.top?window:TiO()?window:window.top,Q=B[G];if(Q){Q.bevasrs=m;if(Q.nqfbel!==void 0)for(G=_.K(Q.nqfbel),B=G.next();!B.done;B=G.next())B=B.value,B(m);Q.nqfbel=void 0}else Q={},Q=(Q.bevasrs=m,Q.nqfbel=void 0,Q),B[G]=Q};
Lm6=function(O){var m=m===void 0?51:m;var G=[];_.r_(O,EBe,6,_.Rw()).forEach(function(B){_.ij(B,2)<=m&&G.push(_.ij(B,1))});
return G};
CzM=function(O){var m=m===void 0?51:m;var G=[];_.r_(O,EBe,6,_.Rw()).forEach(function(B){_.ij(B,2)>m&&G.push(_.ij(B,1))});
return G};
oBN=function(O){O.then(function(){},function(){})};
xa=function(O){return{fieldType:1,fieldName:O}};
qZ=function(O){return{fieldType:2,fieldName:O}};
_.U0=function(O){return{fieldType:3,fieldName:O}};
lyO=function(){function O(){Q[0]=1732584193;Q[1]=4023233417;Q[2]=2562383102;Q[3]=271733878;Q[4]=3285377520;W=t=0}
function m(Z){for(var z=M,J=0;J<64;J+=4)z[J/4]=Z[J]<<24|Z[J+1]<<16|Z[J+2]<<8|Z[J+3];for(J=16;J<80;J++)Z=z[J-3]^z[J-8]^z[J-14]^z[J-16],z[J]=(Z<<1|Z>>>31)&4294967295;Z=Q[0];var n=Q[1],I=Q[2],S=Q[3],L=Q[4];for(J=0;J<80;J++){if(J<40)if(J<20){var C=S^n&(I^S);var P=1518500249}else C=n^I^S,P=1859775393;else J<60?(C=n&I|S&(n|I),P=2400959708):(C=n^I^S,P=3395469782);C=((Z<<5|Z>>>27)&4294967295)+C+L+P+z[J]&4294967295;L=S;S=I;I=(n<<30|n>>>2)&4294967295;n=Z;Z=C}Q[0]=Q[0]+Z&4294967295;Q[1]=Q[1]+n&4294967295;Q[2]=
Q[2]+I&4294967295;Q[3]=Q[3]+S&4294967295;Q[4]=Q[4]+L&4294967295}
function G(Z,z){if(typeof Z==="string"){Z=unescape(encodeURIComponent(Z));for(var J=[],n=0,I=Z.length;n<I;++n)J.push(Z.charCodeAt(n));Z=J}z||(z=Z.length);J=0;if(t==0)for(;J+64<z;)m(Z.slice(J,J+64)),J+=64,W+=64;for(;J<z;)if(H[t++]=Z[J++],W++,t==64)for(t=0,m(H);J+64<z;)m(Z.slice(J,J+64)),J+=64,W+=64}
function B(){var Z=[],z=W*8;t<56?G(R,56-t):G(R,64-(t-56));for(var J=63;J>=56;J--)H[J]=z&255,z>>>=8;m(H);for(J=z=0;J<5;J++)for(var n=24;n>=0;n-=8)Z[z++]=Q[J]>>n&255;return Z}
for(var Q=[],H=[],M=[],R=[128],x=1;x<64;++x)R[x]=0;var t,W;O();return{reset:O,update:G,digest:B,digestString:function(){for(var Z=B(),z="",J=0;J<Z.length;J++)z+="0123456789ABCDEF".charAt(Math.floor(Z[J]/16))+"0123456789ABCDEF".charAt(Z[J]%16);return z}}};
dr6=function(O,m){m=m===void 0?ayM:m;if(!knN){var G;O=(G=O.navigator)==null?void 0:G.userAgentData;if(!O||typeof O.getHighEntropyValues!=="function"||O.brands&&typeof O.brands.map!=="function")return Promise.reject(Error("ua"));yNr((O.brands||[]).map(function(Q){var H=new cNY;H=_.SS(H,1,Q.brand);return _.SS(H,2,Q.version)}));
typeof O.mobile==="boolean"&&_.tF(YZp,2,O.mobile);knN=O.getHighEntropyValues(m)}var B=new Set(m);return knN.then(function(Q){var H=YZp.clone();B.has("platform")&&_.SS(H,3,Q.platform);B.has("platformVersion")&&_.SS(H,4,Q.platformVersion);B.has("architecture")&&_.SS(H,5,Q.architecture);B.has("model")&&_.SS(H,6,Q.model);B.has("uaFullVersion")&&_.SS(H,7,Q.uaFullVersion);return H.serialize()}).catch(function(){return YZp.serialize()})};
Wh=function(O,m,G,B){this.initialValue_=O;this.maxValue_=m;this.currBaseValue_=this.currValue_=O;this.randomFactor_=G||0;this.backoffFactor_=B||2};
ZZ=function(O){this.src=O;this.listeners={};this.typeCount_=0};
s8N=function(){for(var O;O=wxM.remove();){try{O.fn.call(O.scope)}catch(m){HM(m)}e2s.put(O)}DrM=!1};
_.Ni5=function(O){switch(O){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}};
Pz5=function(O){switch(O){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""}};
_.Fm5=function(){};
KMS=function(O,m,G,B){O=ANe(ORr(mue(new _.zy(1828,"0"),O),new Gg6)).disableWithCredentials();m.length&&BIf(O,Qd5(new HRN,m));B!==void 0&&(O.destinationUrl=B);var Q=new vRS(1828,"","",!1,"",O.build());_.VV(Q,O);var H=new bj({flush:function(M){try{Q.flush(M)}catch(R){G(R)}}});
H.addOnDisposeCallback(function(){setTimeout(function(){try{H.snapshotAndFlush()}finally{Q.dispose()}})});
H.invocationLimit=1E5;H.flushInterval=3E4;H.JSC$9788_flushTimer.setInterval(3E4);return H};
nd=function(){var O,m,G;return(G=(O=globalThis.performance)==null?void 0:(m=O.now)==null?void 0:m.call(O))!=null?G:Date.now()};
rE5=function(O,m){if(O.disable)return new $uI;m=m?Lm6(m):[];O={wj:O.wj,lie:O.sYg,y2l:O.k95,destinationUrl:O.destinationUrl,nEl:O.nEl,f86:O.f86};m=m===void 0?[]:m;return new M9Y(O,m)};
RJe=function(O){if(!O)return null;O=_.XK(O,2);return O===null||O===void 0?null:P8(O)};
_.iRM=function(O){if(!O)return null;O=_.XK(O,4);return O===null||O===void 0?null:_.p9(O)};
UuI=function(O,m){return m?xup(m):O?qep(O):Promise.resolve()};
xup=function(O){return new Promise(function(m,G){var B=_.fd("SCRIPT"),Q=_.iRM(O);_.$3(B,Q);B.onload=function(){_.hF(B);m()};
B.onerror=function(){_.hF(B);G(Error("Fa"))};
(Ty("HEAD")[0]||document.documentElement).appendChild(B)})};
qep=function(O){return new Promise(function(m){var G=_.fd("SCRIPT");if(O){var B=_.XK(O,6);B=B===null||B===void 0?null:_.vi(B)}else B=null;_.K_(G,B);(Ty("HEAD")[0]||document.documentElement).appendChild(G);_.hF(G);m()})};
g_=function(O,m,G){var B,Q=new Promise(function(H){B=setTimeout(H,m)});
return Promise.race([O.finally(function(){return void clearTimeout(B)}),
Q.then(G)])};
t9I=function(O,m){try{return globalThis.sessionStorage.setItem(O,m),!0}catch(G){return!1}};
WMM=function(O,m,G,B){m=m===void 0?0:m;G=G===void 0?O.length:G;var Q=0;for(B&&(Q=WMM(B));m<G;m++)B=typeof O==="string"?O.charCodeAt(m):O[m],Q=ZRs(31,Q)+B|0;return Q};
zJY=function(O,m){return[WMM(O,0,O.length>>1,m),WMM(O,O.length>>1)]};
JEY=function(O){var m=_.K(zJY(O,uj));O=m.next().value;m=m.next().value;return O.toString(16)+m.toString(16)};
V9z=function(O,m){var G=zJY(m);O=new Uint32Array(O.buffer);m=O[0];var B=_.K(G);G=B.next().value;B=B.next().value;for(var Q=1;Q<O.length;Q+=2){for(var H=m,M=Q,R=G,x=B,t=0;t<22;t++)M=M>>>8|M<<24,M+=H|0,M^=R+38293,H=H<<3|H>>>29,H^=M,x=x>>>8|x<<24,x+=R|0,x^=t+38293,R=R<<3|R>>>29,R^=x;H=[H,M];O[Q]^=H[0];Q+1<O.length&&(O[Q+1]^=H[1])}};
bRS=function(O,m,G,B,Q){var H=(4-(uj.length+G.length)%4)%4,M=new Uint8Array(4+H+uj.length+4+G.length),R=new DataView(M.buffer),x=0;R.setUint32(x,Math.random()*4294967295);x=x+4+H;M.set(uj,x);x+=uj.length;R.setUint32(x,Q);M.set(G,x+4);V9z(M,B);return O.insert(m,function(t){return void globalThis.sessionStorage.removeItem(t)})?t9I(m,_.pB(M))?"s":"t":"i"};
nRN=function(O,m){var G=globalThis.sessionStorage.getItem(O);if(!G)return["m"];try{var B=_.Az(G);V9z(B,m)}catch(Q){return globalThis.sessionStorage.removeItem(O),["c"]}for(m=4;m<7&&B[m]===0;)m++;for(G=0;G<uj.length;G++)if(B[m++]!==uj[G])return globalThis.sessionStorage.removeItem(O),["d"];G=(new DataView(B.buffer)).getUint32(m);return Math.floor(Date.now()/1E3)>=G?(globalThis.sessionStorage.removeItem(O),["e"]):["a",new Uint8Array(B.buffer,m+4)]};
X75=function(O){return globalThis.TextEncoder?(new TextEncoder).encode(O):_.je(O)};
fgM=function(O){var m=O,G;return function(){if(m){var B=m;m=void 0;G=B.apply(this,arguments)}return G}};
TII=function(O){return E3(function(m){if(m instanceof O)return!0;var G,B,Q=m==null?void 0:(G=m.ownerDocument)==null?void 0:(B=G.defaultView)==null?void 0:B[O.name];return hJN(Q)&&m instanceof Q})};
_.Se=function(O,m,G){_.Iw.call(this);this.JSC$10002_listener_=O;this.JSC$10002_interval_=m||0;this.handler_=G;this.callback_=(0,_.pd)(this.JSC$10004_doAction_,this)};
_.E0=function(O){O=gRY(O);return _.p9(O)};
gRY=function(O){return O===null?"null":O===void 0?"undefined":O};
jds=function(O){if(O&&O.focus)if(O!==document.activeElement)O.focus();else return uzs(function(){return _.r(function(m){document.activeElement&&document.activeElement.blur();return m.return(uzs(function(){O.focus()}))})})};
_.Igp=function(O){var m=m===void 0?5:m;setTimeout(function(){var G;return _.r(function(B){B.nextAddress==1&&(G=document.activeElement);if(B.nextAddress!=5)return(document.activeElement===G||document.activeElement===document.body)&&m>=0&&O?B.yield(jds(O),5):B.jumpTo(0);if(document.activeElement===O)return B.return();O=O.parentElement;--m;return B.jumpTo(2)})},15)};
uzs=function(O){return new Promise(function(m){requestAnimationFrame(function(){m(O())})})};
Sep=function(O){if(_.Ld)O(_.Ld);else{var m;((m=p7O)!=null?m:p7O=[]).push(O)}};
ow=function(){!_.Ld&&_.Cd&&_.ER5(_.Cd());return _.Ld};
_.ER5=function(O){_.Ld=O;var m;(m=p7O)==null||m.forEach(Sep);p7O=void 0};
_.lj=function(O){_.Ld&&_.Ld.beforeLoadModuleCode(O)};
_.aw=function(){_.Ld&&_.Ld.JSC$11058_setLoaded()};
ka=function(O){return h_s(O)?Number(O):String(O)};
LMS=function(O){this.action=O;this.wfv=!1};
CbN=function(O,m){LMS.call(this,"set-drive-options");this.appId=O;this.appOrigin=m};
oRN=function(O){LMS.call(this,"visibility");this.visible=O};
lgY=function(O,m,G){yV.call(this,O,m,G)};
agO=function(O){d_.call(this,O)};
kgY=function(O){O=O&&O.getWindow()||window;return O.gadgets&&O.gadgets.rpc};
cEN=function(O,m){var G=m&&m.getWindow()||window;if(kgY(m))O();else if(yEO)yEO.push(O);else var B=yEO=[O],Q=G.setInterval(function(){if(kgY(m)){G.clearInterval(Q);for(var H=0;H<B.length;H++)B[H]();yEO=null}},100)};
dus=function(O,m){var G=new w_(O);_.VV(m,G);var B={passive:!1};m.listen(G,"mousewheel",function(Q){return void Yez(O,Q)},B).listen(O,"scroll",function(Q){return void Yez(O,Q)},B)};
Yez=function(O,m){var G;a:{for(G=m.target;G;){if(G.nodeType==1){var B=_.ee(G,"overflowY");if(B=="auto"||B=="scroll")break a}G=G.parentNode}G=null}if(!G||!_.DZ(O,G)||G.scrollHeight==G.clientHeight||m.deltaY>0&&Math.abs(G.scrollTop-(G.scrollHeight-G.clientHeight))<=1||m.deltaY<0&&G.scrollTop==0)m.preventDefault(),m.stopPropagation()};
mN=function(O,m,G,B,Q,H,M,R,x){R=R===void 0?!1:R;x=x===void 0?!1:x;yV.call(this,void 0,void 0,void 0);yV.call(this,H?H+" picker modal-dialog":"picker modal-dialog",!0,G);_.s0(O,"protocol");this.iframeManager_=new w7N;this.targetId_=NZ();this.rpcToken_=NZ();O=_.Ph(O);_.FK(O,"hostId");G=_.FK(O,"parent");this.useGapi_=!x&&!0||(G==null?void 0:G.includes("onepick.corp.google.com"));R&&_.AF(O,"fv2","true");this.setUrl(O.toString());this.preferredDialogWidth_=B;this.preferredDialogHeight_=Q;B!==void 0||
Q!==void 0?B=!0:(B=_.FK(_.Ph(O.toString()),"hostId"),eJI||(eJI=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),B=!eJI.has(B));this.autoSizeDialog_=B;this.JSC$10192_gadgetsDomHelper_=M||this.JSC$10143_dom_;m&&(M=this.JSC$10192_gadgetsDomHelper_,m=_.FK(_.Ph(this.JSC$10194_url_),"grugl")=="true"?DuI:sdz,kgY(M)||(M=M||jS(document),B=M.createElement("SCRIPT"),_.$3(B,m),B.type="text/javascript",M.JSC$9327_document_.body.appendChild(B)));
O=O.toString();m=null;M=O.indexOf("/picker?");M>-1?m=O.substring(0,M+8-1):$O(O,"/picker")&&(m=O);m&&this.setRelayUrl(m+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(O=this.buttons_,O.JSC$10177_element_=this.buttonEl_,O.render()):_.MG(this.buttonEl_,NIf),_.OR(this.buttonEl_,!!this.buttons_))};
_.WoI=function(O){var m=m===void 0?qOp:m;var G=_.sS(O),B=function(H){H=_.K(H);H.next();H=GJ(H);return m(G,H)},Q=function(H){var M=_.K(H);
H=M.next().value;M=GJ(M);return O.apply(H,M)};
return function(){var H=_.eA.apply(0,arguments),M=this||_.Qf,R=UIM.get(M);R||(R={},UIM.set(M,R));return tae(R,[this].concat(_.lS(H)),Q,B)}};
Bf=function(O){var m={};O=O.replace(/\r/g,"").split("\n");for(var G=0;G<O.length;G++){var B=O[G],Q=B.indexOf(":");Q<0||(m[B.substring(0,Q)]=B.substring(Q+2,B.length))}return m};
ZpN=function(O,m,G){G=G===void 0?function(){}:G;
return O?m():G()};
_.JvM=function(O){var m;return((m=zts.documentOverride)!=null?m:O).__wizdispatcher};
_.Hf=function(O){var m=Qj;Qj=O;return m};
_.bp6=function(O){return O===Vas||(O==null?void 0:O.name)==="\u0275NotFound"};
_.vf=function(O,m){var G;if((G=O)==null?0:G.isDisposed)throw Error("jb`"+String(O.debugName));for(;O!==void 0;){G=O;if(G.retrieve)return G.retrieve(m,{optional:!0});O=O.parent}return Vas};
KS=function(O){return{"\u0275prov":{providedIn:"root",token:Symbol(O),factory:void 0,value:void 0}}};
_.nG5=function(O){var m=Qj;if(!m){switch(O===void 0?3:O){case 0:O=Error("ib");break;case 1:O=Error("kb");break;case 2:O=Error("lb");break;default:O=Error("mb")}throw O;}return m};
XIM=function(O){var m=_.Hf(O);O={};return O[Symbol.dispose]=function(){_.Hf(m)},O};
fDS=function(O,m){O.disposables||(O.disposables=[]);O.disposables.push(m)};
$v=function(O){var m=Qj;m&&!m.isDisposed&&(fDS(m,O),O.parent=m)};
TYz=function(O){if(O.disposables){for(var m=_.K(O.disposables),G=m.next();!G.done;G=m.next())G=G.value,typeof G==="function"?G():htz(G);O.disposables.length=0}};
htz=function(O){if(!O.isDisposed){O.isDisposed=!0;var m;(m=O[Symbol.dispose])==null||m.call(O);delete O.parent;TYz(O)}};
Cnp=function(O){var m={retrieve:function(G){switch(G.\u0275prov.token){case gGN.\u0275prov.token:var B=O.asyncDeps;break;case _.uFO.\u0275prov.token:B=O.rootElement;break;case jOz.\u0275prov.token:B=O.modelRootElement;break;case IDI.\u0275prov.token:B=O.appContext;break;case pIO.\u0275prov.token:B=O.rendererData;break;case SOO.\u0275prov.token:B=O.injectingConstructor;break;case EGe.\u0275prov.token:B=O.dispatcher}if(B)G=B;else a:{for(B=m.parent;B;){var Q=B;if(Q.retrieve){G=Q.retrieve(G);break a}B=
B.parent}B=G.\u0275prov.token;Q=Lo5[B];Q!==void 0?G=Q:(Q=G.\u0275prov.providedIn,G.\u0275prov.factory?(G=G.\u0275prov.factory(),B&&Q==="root"&&(Lo5[B]=G)):G=Vas)}return G}};
$v(m);return m};
oGS=function(){var O=_.nG5(1),m=_.vf(O,IDI);if(!_.bp6(m))return m;O=_.vf(O,EGe);if(!_.bp6(O))return O.getOptionalAppContext()};
lDs=function(O){if(typeof document!=="undefined"&&document&&document.getElementById&&(O=document.getElementById(O))){var m=O.tagName.toUpperCase();if(m=="SCRIPT"||m=="LINK")return O}return null};
kVI=function(O,m){if((O=O===void 0?"":O)&&m)throw Error("sb");var G="";var B=_.Qf._F_jsUrl;(O=m||lDs(O))&&(G=O.src?O.src:O.getAttribute("href"));if(B&&G){if(B!=G)throw Error("tb`"+B+"`"+G);G=B}else G=B||G;if(!aDr(G))throw Error("ub");return G};
dIs=function(){if(!yv5){yv5=!0;try{var O=kVI(_.Qf._F_jsUrl?"":"base-js")}catch(B){return}var m=cvI(YOs(O)),G=Object.keys(m);G.length!==0&&Sep(function(B){for(var Q=_.K(G),H=Q.next();!H.done;H=Q.next()){H=H.value;for(var M=_.K(Object.keys(m[H])),R=M.next();!R.done;R=M.next())B.addExtraEdge(H,R.value)}})}};
etO=function(){var O=Object.assign({},wIp);Object.getOwnPropertyNames(wIp).forEach(function(m){M_[m]!==void 0&&(O[m]=M_[m])});
return O};
DIp=function(O,m){if(M_.enablePerformanceTiming){var G,B;(B=(G=performance).mark)==null||B.call(G,O+"Start__"+m)}};
sO6=function(O,m){if(M_.enablePerformanceTiming){var G,B;(B=(G=performance).measure)==null||B.call(G,O+"__"+m,O+"Start__"+m)}};
NYO=function(O,m,G){var B;return O&&m?O+"__"+m:(B=O!=null?O:m)!=null?B:G};
Fos=function(O,m){var G=Object.create(Pnp);G.debugName=m;!Qj||$v(G);m=_.Hf(G);try{O(G)}finally{_.Hf(m)}return function(){return void htz(G)}};
OEN=function(O){return rh(O)&&Avf in O};
mTe=function(O,m){return Object.is(O,m)};
iF=function(O){var m=R9;R9=O;return m};
BEY=function(O){if(xv)throw Error("Z");if(R9!==null){var m=R9.producersTail;if(m===void 0||m.producer!==O){var G=void 0,B=R9.recomputing;if(B&&(G=m!==void 0?m.nextProducer:R9.producers,G!==void 0&&G.producer===O)){R9.producersTail=G;G.lastReadVersion=O.version;return}var Q=O.consumersTail,H;if(!(H=Q===void 0||Q.consumer!==R9)){if(B){a:{H=R9;B=H.producersTail;if(B!==void 0){H=H.producers;do{if(H===Q){B=!0;break a}if(H===B)break;H=H.nextProducer}while(H!==void 0)}B=!1}B=!B}H=B}H&&(B=q_(R9),G={producer:O,
consumer:R9,nextProducer:G,prevConsumer:Q,lastReadVersion:O.version,nextConsumer:void 0},R9.producersTail=G,m!==void 0?m.nextProducer=G:R9.producers=G,B&&GHN(O,G))}}};
vte=function(O){if(!q_(O)||O.dirty)if(O.dirty||O.lastCleanEpoch!==Qyr)(O.producerMustRecompute(O)||HEf(O))&&O.producerRecomputeValue(O),O.dirty=!1,O.lastCleanEpoch=Qyr};
KPS=function(O){if(O.consumers!==void 0){var m=xv;xv=!0;try{for(var G=O.consumers;G!==void 0;G=G.nextConsumer){var B=G.consumer;B.dirty||(O=void 0,B.dirty=!0,KPS(B),(O=B.consumerMarkedDirty)==null||O.call(B,B))}}finally{xv=m}}};
$TY=function(){var O;return((O=R9)==null?void 0:O.consumerAllowSignalWrites)!==!1};
M0p=function(O){O&&(O.producersTail=void 0,O.recomputing=!0);return iF(O)};
RNY=function(O,m){iF(m);if(O){O.recomputing=!1;m=O.producersTail;var G=m!==void 0?m.nextProducer:O.producers;if(G!==void 0){if(q_(O)){do G=rlO(G);while(G!==void 0)}m!==void 0?m.nextProducer=void 0:O.producers=void 0}}};
HEf=function(O){for(O=O.producers;O!==void 0;O=O.nextProducer){var m=O.producer,G=O.lastReadVersion;if(G!==m.version)return!0;vte(m);if(G!==m.version)return!0}return!1};
GHN=function(O,m){var G=O.consumersTail,B=q_(O);G!==void 0?(m.nextConsumer=G.nextConsumer,G.nextConsumer=m):(m.nextConsumer=void 0,O.consumers=m);m.prevConsumer=G;O.consumersTail=m;if(!B)for(O=O.producers;O!==void 0;O=O.nextProducer)GHN(O.producer,O)};
rlO=function(O){var m=O.producer,G=O.nextProducer,B=O.nextConsumer,Q=O.prevConsumer;O.nextConsumer=void 0;O.prevConsumer=void 0;B!==void 0?B.prevConsumer=Q:m.consumersTail=Q;if(Q!==void 0)Q.nextConsumer=B;else if(m.consumers=B,!q_(m))for(O=m.producers;O!==void 0;)O=rlO(O);return G};
q_=function(O){return O.consumerIsAlwaysLive||O.consumers!==void 0};
qJO=function(O){var m=Object.create(iEe);m.computation=O;O=function(){vte(m);BEY(m);if(m.value===UR)throw m.error;return m.value};
O[xTN]=m;return O};
ZEp=function(O,m){var G=Object.create(UTS);G.value=O;m!==void 0&&(G.equal=m);O=function(){BEY(G);return G.value};
O[xTN]=G;return[O,function(B){return t05(G,B)},
function(B){$TY()||WPe(G);t05(G,B(G.value))}]};
t05=function(O,m){$TY()||WPe(O);if(!O.equal(O.value,m)){O.value=m;O.version++;Qyr++;KPS(O);var G;(G=zNY)==null||G(O)}};
t0=function(O){var m=iF(null);try{return O()}finally{iF(m)}};
_.Wf=function(O,m,G){G=G===void 0?"":G;O=ZEp(O,m==null?void 0:m.equals);var B=O[0],Q=B[xTN];Q.debugName=NYO(m==null?void 0:m.debugName,G,"[signal]");if(!M_.enablePerformanceTiming)return O;var H=O[1],M=O[2];return[B,function(R){Jle(function(){return void H(R)},Q)},
function(R){Jle(function(){return void M(R)},Q)}]};
Jle=function(O,m){DIp("signalSet",m.debugName);try{O()}finally{sO6("signalSet",m.debugName)}};
bEp=function(O,m){var G=_.K(_.Wf(O,void 0,"cPpJzc"));O=G.next().value;G=G.next().value;O[V0r]=G;O[ZK]=m;return O};
ntO=function(O){return!!O&&typeof O==="object"&&Object.getPrototypeOf(O)===Object.prototype};
XHS=function(O){return typeof O==="function"&&V0r in O&&typeof O[V0r]==="function"};
fbS=function(O,m){Object.defineProperty(O,ZK,{get:function(){return m}})};
J0=function(O,m){if(zJ(O)){var G=O.map(function(H){return J0(H,m)});
fbS(G,m);return G}if(ntO(O)){G={};O=_.K(Object.entries(O));for(var B=O.next();!B.done;B=O.next()){var Q=_.K(B.value);B=Q.next().value;Q=Q.next().value;G[B]=J0(Q,m)}fbS(G,m);return G}return bEp(O,m)};
hNN=function(O){if(zJ(O))return O.map(function(Q){return hNN(Q)});
if(ntO(O)){var m={};O=_.K(Object.entries(O));for(var G=O.next();!G.done;G=O.next()){var B=_.K(G.value);G=B.next().value;B=B.next().value;m[G]=hNN(B)}return m}return XHS(O)?O():O};
gtf=function(){var O={height:0,width:0};if(!ntO(O))throw Error("Jb");var m=Symbol("Kb");return[J0(O,m),function(G,B){if(G[ZK]===m)if(typeof B==="function"){var Q=[].concat(_.lS(hNN(G)));B=B(Q)||Q;TEO(G,[].concat(_.lS(B)))}else TEO(G,B);else throw Error("Lb");}]};
TEO=function(O,m){if(XHS(O))O[V0r](m);else if(zJ(O)&&zJ(m))m=J0(m,O[ZK]),O.length=0,O.push.apply(O,_.lS(m));else if((ntO(O)||zJ(O))&&(zJ(m)||typeof m==="object"&&m!==null)){m=_.K(Object.entries(m));for(var G=m.next();!G.done;G=m.next()){var B=_.K(G.value);G=B.next().value;B=B.next().value;var Q=O,H=Q[G];Object.hasOwn(O,G)?TEO(H,B):Q[G]=J0(B,O[ZK])}}else throw Error("Mb");};
ug6=function(O){return Object.create(Object.assign({},Vj,O))};
IbN=function(){var O;return(O=jyY)!=null?O:jyY=ug6({consumerAllowSignalWrites:!0})};
_.bF=function(O,m,G){G=G===void 0?"":G;O=qJO(O);var B=O[xTN];B.debugName=NYO(m==null?void 0:m.debugName,G,"[computed]");(m==null?void 0:m.equals)!=null&&(B.equal=m.equals);return O};
nS=function(O){var m=iF(pHN);try{O()}finally{iF(m)}};
otN=function(O){switch(O.onInitType){case SJM:Etf.schedule(O);break;case LPM:CTS.schedule(O);break;default:_.d8(O.onInitType)}};
YJY=function(O){if(!O.isDisposed)switch(O.effectType){case XH:lb5.schedule(O);break;case ab5:kHN.schedule(O);break;case ylz:clf.schedule(O);break;default:_.d8(O.effectType)}};
eNN=function(){if(fS>0)M_.flushRenderEffectsDuringRender&&lb5.flush();else{for(var O=_.K(dTs),m=O.next();!m.done;m=O.next())m.value.flush();wHe()}};
wHe=function(){_.r(function(O){if(O.nextAddress==1)return O.yield(Promise.resolve(),2);for(var m=_.K(DTO),G=m.next();!G.done;G=m.next())G.value.flush();_.ju(O)})};
NEN=function(O){h0=!0;try{for(var m=_.K(O),G=m.next();!G.done;G=m.next()){for(var B=G.value,Q=[B],H=B;H.parent!==void 0;)H=H.parent,syN(H)&&O.has(H)&&Q.push(H);for(;Q.length>0;){var M=Q.pop();O.delete(M);M.run()}}}finally{h0=!1}};
TJ=function(O){fS--;if(O){O=_.K(PTs);for(var m=O.next();!m.done;m=O.next())m.value.clear()}else fS>0||h0&&!M_.flushRenderEffectsDuringRender||eNN()};
AlM=function(O,m,G){var B=FPM(O);gh={name:G?B+" ("+G+")":B,isReactive:O.componentType!==uF,parent:gh};O=m();gh=gh.parent;return O};
jE=function(){var O=gh;return O?O.isReactive:!1};
SE=function(O,m,G){var B=gh;m&&(gh=m);try{return G==null?O():O.call(G)}catch(H){O=H;I9(O,gh);if(O!==OIf){mDI=gh;m=[];for(G=Qj;G;){var Q=void 0;m.push((Q=G.debugName)!=null?Q:"[context]");Q=void 0;G=(Q=G.parent)!=null?Q:null}GXr=m.reverse()}OIf=O;throw O;}finally{gh=B}};
I9=function(O,m){try{var G=Bjr(m);if(G&&!O.componentStack&&(O.componentStack=G,M_.enableComponentStacksInErrorMessages)){var B=O.message+"\n\nComponent stack: "+G;O.stack&&(O.stack=O.stack.replace(O.message,B));O.message=B}}catch(Q){}};
Bjr=function(O){if(rh(O)&&O.name!==void 0&&O.isReactive!==void 0&&O.parent!==void 0||O===null){for(var m=0,G="";m<20&&O;)G+=O.name+" > ",O=O.parent,m++;O=G.slice(0,-3)}else if(M_.enableContextBasedComponentStacks){a:{for(O=O===void 0?Qj:O;O;){if(OEN(O))break a;m=void 0;O=(m=O.parent)!=null?m:null}O=null}O=O.getComponentStack().slice(0,20).join(" > ")}else O="";return O};
FPM=function(O){return O.debugName||O.name||"[component]"};
Qas=function(O,m,G){m=Object.create(m);O&&(m.effectFn=O);G&&(m.debugName=G);$v(m);m.componentStack=gh;return m};
_.ER=function(O,m){O=Qas(O,HI5,m);YJY(O)};
_.LS=function(O){var m=Qj;if(m){var G=gh;fDS(m,function(){var B=iF(IbN());try{SE(function(){return void O()},G)}catch(Q){throw M_.enableContextBasedComponentStacks&&I9(Q),Q;
}finally{iF(B)}})}};
CS=function(O,m){var G={};(m===void 0||m)&&$v(G);m=_.Hf(G);try{O(G)}finally{_.Hf(m)}return function(){return void htz(G)}};
_.o9=function(O){return typeof O==="function"?O():(O==null?0:O[vVO])?O.get():O};
_.lF=function(O,m){O=Qas(O,KdO,m);YJY(O)};
$Dp=function(O){if(Qj)throw Error("nb");CS(O,!1)};
a9=function(O,m){O=_.Hf(O);try{return t0(m)}finally{_.Hf(O)}};
kv=function(O,m){var G=Bjr(mDI),B,Q;var H=(Q=(B=GXr)==null?void 0:B.slice())!=null?Q:[];m={componentStack:G,contextTrace:H,errorSeverity:3,featureFlags:etO(),tagName:m};return[O,m]};
RWN=function(O,m,G){if(Object.hasOwnProperty.call(MjM,O)&&(O=MjM[O],Object.hasOwnProperty.call(O,m)&&(O=O[m],O instanceof Array))){for(var B=null,Q=!1,H=0,M=O.length;H<M;++H){var R=O[H],x=R.contingentAttribute;if(!x)return R.contract;B===null&&(B={});x=Object.hasOwnProperty.call(B,x)?B[x]:B[x]=G(x);if(x===R.requiredValue)return R.contract;x==null&&(Q=!0)}if(Q)return null}m=rJY[m];return typeof m==="number"?m:null};
qD5=function(O,m,G){var B=null;(O=iIN[O])&&(B=O[m]);return typeof B!=="number"&&((O=iIN["*"])&&(B=O[m]),typeof B!=="number")?!1:!0===xDM[B][String(G).toLowerCase()]};
tjr=function(O,m){m=RWN(O.toLowerCase(),m,function(){var B;(B=M_.handleError)==null||B.call.apply(B,[M_].concat(_.lS(kv(Error("Wb"),O.toLowerCase()))))});
if(m===null)return null;var G;return(G=UDO[m])!=null?G:null};
Wdz=function(O,m,G){if(G===null||G===void 0)return G;m=m.toLowerCase();O=tjr(O,m);return O===null?G:O(m,G)};
ZIM=function(){};
yj=function(O,m){for(;O.length>m;)O.pop()};
zWp=function(O){O=Array(O);yj(O,0);return O};
cf=function(O,m,G){if(G==null)O.removeAttribute(m);else{var B;(B=m.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":m.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?O.setAttributeNS(B,m,G):O.setAttribute(m,G)}};
JJp=function(O,m,G){O[m]=G};
bIr=function(O,m,G){O=O.style;if(typeof G==="string")O.cssText=G;else{O.cssText="";for(var B in G)if(VjN.call(G,B)){m=O;var Q=B,H=G[B];Q.indexOf("-")>=0?m.setProperty(Q,H):m[Q]=H}}};
nVN=function(O,m,G){var B=typeof G;B==="object"||B==="function"?O[m]=G:cf(O,m,G)};
Xef=function(){var O=new ZIM;O[Yv.default]=nVN;O.style=bIr;return O};
f15=function(O,m,G,B){(B[m]||B[Yv.default])(O,m,G)};
Tje=function(O,m,G){m=new hWY(m,G);return O.__incrementalDOMData=m};
wh=function(O,m){if(O.__incrementalDOMData)return O.__incrementalDOMData;var G=O.nodeType===1?O.localName:O.nodeName,B=O.nodeType===1?O.getAttribute("key"):null;m=Tje(O,G,O.nodeType===1?B||m:null);if(O.nodeType===1&&(O=O.attributes,G=O.length)){B=m._attrsArr||(m._attrsArr=zWp(G*2));for(var Q=0,H=0;Q<G;Q+=1,H+=2){var M=O[Q],R=M.value;B[H]=M.name;B[H+1]=R}}return m};
gVI=function(O,m,G,B,Q){return m==G&&B==Q};
u2M=function(O){for(var m=eE,G=N_();G!==O;){var B=G.nextSibling;m.removeChild(G);Pf.deleted.push(G);G=B}};
N_=function(){return FH?FH.nextSibling:eE.firstChild};
A0=function(){FH=N_()};
per=function(O,m,G){A0();var B;a:{if(B=FH){do{var Q=B,H=O,M=m,R=wh(Q,M);if(jap(Q,H,R.nameOrCtor,M,R.key))break a}while(m&&(B=B.nextSibling))}B=null}B||(O==="#text"?(G=OZ.createTextNode(""),Tje(G,"#text",null),O=G):(B=OZ,Q=eE,typeof O==="function"?B=new O:B=(Q=O==="svg"?"http://www.w3.org/2000/svg":O==="math"?"http://www.w3.org/1998/Math/MathML":Q==null||wh(Q).nameOrCtor==="foreignObject"?null:Q.namespaceURI)?B.createElementNS(Q,O):B.createElement(O),Tje(B,O,m),O=B,G&&O.setAttribute("nonce",G)),Pf.created.push(O),
B=O);G=B;if(G!==FH){if(I1z.indexOf(G)>=0)for(O=eE,m=G.nextSibling,B=FH;B!==null&&B!==G;)Q=B.nextSibling,O.insertBefore(B,m),B=Q;else eE.insertBefore(G,FH);FH=G}};
SD5=function(O,m,G){per(O,m,G);eE=FH;FH=null;return eE};
EVY=function(){u2M(null);FH=eE;eE=eE.parentNode};
Lds=function(){FH=eE.lastChild};
l1O=function(O,m){m=m===void 0?{}:m;var G=m.matches===void 0?gVI:m.matches;return function(B,Q,H){var M=Pf,R=OZ,x=I1z,t=mm,W=Gn,Z=FH,z=eE,J=jap;OZ=B.ownerDocument;Pf=new C_p(B);jap=G;mm=[];Gn=[];FH=null;var n=eE=B.parentNode,I,S=oVO.call(B);if((I=S.nodeType===11||S.nodeType===9?S.activeElement:null)&&B.contains(I)){for(S=[];I!==n;)S.push(I),I=I.parentNode||(n?I.host:null);n=S}else n=[];I1z=n;try{return O(B,Q,H)}finally{B=Pf,Bx&&B.deleted.length>0&&Bx(B.deleted),OZ=R,Pf=M,jap=J,mm=t,Gn=W,FH=Z,eE=z,
I1z=x}}};
a1r=function(O,m,G,B){QE.push(f15);QE.push(O);QE.push(m);QE.push(G);QE.push(B)};
yJ5=function(O,m,G){var B=Gn;m=m._attrsArr||(m._attrsArr=zWp(B.length));for(var Q=!m.length||!1,H=0;H<B.length;H+=2){var M=B[H];if(Q)m[H]=M;else if(m[H]!==M)break;var R=B[H+1];if(Q||m[H+1]!==R)m[H+1]=R,a1r(O,M,R,G)}if(H<B.length||H<m.length){for(H=Q=H;H<m.length;H+=2)Hx[m[H]]=m[H+1];for(H=Q;H<B.length;H+=2)Q=B[H],M=B[H+1],Hx[Q]!==M&&a1r(O,Q,M,G),m[H]=Q,m[H+1]=M,delete Hx[Q];yj(m,B.length);for(var x in Hx)a1r(O,x,void 0,G),delete Hx[x]}O=kXM;kXM=G=QE.length;for(x=O;x<G;x+=5)(0,QE[x])(QE[x+1],QE[x+
2],QE[x+3],QE[x+4]);kXM=O;yj(QE,O);yj(B,0)};
cJM=function(O){per("#text",null);var m=FH;var G=wh(m);if(G.text!==O){G=G.text=O;for(var B=1;B<arguments.length;B+=1)G=(0,arguments[B])(G);m.data!==G&&(m.data=G)}};
NjN=function(O,m,G){if(G===!1&&YDM.has(m))cf(O,m,null);else if(m!=="idomKey"&&m!=="skip"&&m!=="skipchildren"&&m!=="children"&&m!=="el")if(m.startsWith("on")){if(m[2]!==":")throw Error("Sb`"+m);if(G===void 0||G===null){var B;(B=M_.handleError)==null||B.call.apply(B,[M_].concat(_.lS(kv(Error("$b`"+m),O.tagName))));O[m]=void 0}else{var Q=m.slice(3);B=jE();if(Q==="jsaction"){G=Array.isArray(G)?G:[G];G=_.K(G);for(var H=G.next();!H.done;H=G.next()){H=H.value;if(typeof H!=="object"||H===null||typeof H.selfReg!==
"function")throw Error("Tb`"+m);H.selfReg(0,O,B?_.LS:function(){})}}else{if(typeof G!=="object"||G===null)throw Error("Vb`"+m+"`"+typeof G);
if(typeof G.getFn!=="function")throw Error("Ub`"+m+"`"+Object.keys(G));if(G.selfReg)G.selfReg(0,O,Q,B?_.LS:function(){});
else if(B&&O["on"+Q]===void 0){var M=G.getFn(0);O.addEventListener(Q,M);_.LS(function(){return void O.removeEventListener(Q,M)})}else if(B||!dDY.includes(Q))O["on"+Q]=G.getFn(0)}}}else{if(m.startsWith("data-")&&typeof G==="string")try{G=wer(G)}catch(R){G="zSoyz"}typeof G!=="function"||O._disposeEffects!=null?((B=m.startsWith("prop:"))&&(m=m.slice(5)),M_.enableAttributeSanitization&&(B&&eWS(O.tagName)||(G=Wdz(O.tagName,m,G))),m==="style"?("function"==typeof _.vx&&G instanceof _.vx&&(G=G.toString()),
DDM(O,m,G)):B?O[m]=G:saz(O,m,G)):(O._signalProps||(O._signalProps=[]),O._signalValues||(O._signalValues=[]),O._signalProps.push(m))}};
P_z=function(O,m,G){G=(G===void 0?{}:G).isReactive;if(m==null?0:m.el){var B=m.el,Q;(Q=B.onRender)==null||Q.call(B,O);O._disposeRef||(O._disposeRef=function(){var H;(H=B.onUnmount)==null||H.call(B);delete O._disposeRef},G&&_.LS(function(){var H;
(H=O._disposeRef)==null||H.call(O)}))}};
eWS=function(O){return O.length>0&&O.includes("-")&&!FdM.includes(O.toLowerCase())};
AJz=function(O){return rh(O)&&Kn in O};
OC6=function(O){return AJz(O)?O[Kn].flattened:O};
m5f=function(O,m){var G=_.eA.apply(2,arguments),B;m=(B=m)!=null?B:{};B={};return B.type=O,B.props=m,B.children=G,B[$B]=!0,B};
_.Mr=function(O){return O.children};
ri=function(O){var m=GA5!==m5f;GA5=O?BKe:m5f;return m};
_.R8=function(O){return _.Dp(O)?"nodeType"in O:!1};
iz=function(){return document.createTextNode("")};
xB=function(O){O=document.createTextNode(String(O));O._isSignalTextNode=!0;return O};
HCO=function(O){return O!=null&&O.contentKind===qr||O instanceof NP||Qq6(O)};
vfN=function(O){var m=document.createElement("div");if(Qq6(O)&&RJe(O))_.MG(m,RJe(O));else if(O instanceof NP)_.MG(m,O);else if(O!=null&&O.contentKind===qr){if(O.contentKind!==qr)throw Error("Zb");O=P8(O.toString());_.MG(m,O)}O=_.K(m.childNodes);for(var G=O.next();!G.done;G=O.next())G.value._isSafeOrSanitizedHtmlNode=!0;return m};
UZ=function(O){O=typeof O;return O==="string"||O==="number"||O==="boolean"};
K9N=function(O){return O instanceof In||lG(O)||O instanceof iS||"function"==typeof _.vx&&O instanceof _.vx};
$5N=function(O,m){var G=O.parentElement;if(!G)return m;G.replaceChild(m,O);return m};
MUp=function(O,m){var G=O[0].parentElement;if(G)if(O[0].previousSibling||O[O.length-1].nextSibling){G.insertBefore(m,O[0]);for(var B=O.length-1;B>=0;B--)G.removeChild(O[B])}else G.textContent="",G.appendChild(m);return m};
rcO=function(O,m){if(O[0].parentElement)for(var G=O[0].parentElement,B=m.length,Q=O.length,H=B,M=0,R=0,x=O[Q-1].nextSibling,t=null;M<Q||R<H;)if(O[M]===m[R])M++,R++;else{for(;O[Q-1]===m[H-1];)Q--,H--;if(Q===M)for(var W=H<B?R?m[R-1].nextSibling:m[H-R]:x;R<H;){var Z=m[R++];G.insertBefore(Z,W)}else if(H===R)for(;M<Q;)W=O[M],t&&t.has(W)||G.removeChild(W),M++;else if(O[M]===m[H-1]&&m[R]===O[Q-1])W=O[--Q].nextSibling,G.insertBefore(m[R++],O[M++].nextSibling),G.insertBefore(m[--H],W),O[Q]=m[H];else{if(!t)for(t=
new Map,W=R;W<H;)t.set(m[W],W++);W=t.get(O[M]);if(W==null)G.removeChild(O[M]),M++;else if(R<W&&W<H){Z=M;for(var z=1,J=void 0;++Z<Q&&Z<H&&(J=t.get(O[Z]))!=null&&J===W+z;)z++;if(z>W-R)for(Z=O[M];R<W;)G.insertBefore(m[R++],Z);else G.replaceChild(m[R++],O[M++])}else M++}}return m};
iCN=function(O){if(Array.isArray(O)){if(O.length>1)throw Error("jc`"+O.length+"`"+O.map(R8e).join(", "));O=O[0]}if(O==null)return null;if(!(O instanceof _.Hi)){var m,G;if((m=window)==null?0:(G=m.trustedTypes)==null?0:G.isScript(O))throw Error("ic");if(String(O).trim().length===0)return null;throw Error("kc`"+R8e(O));}return O};
x5N=function(O,m){m=iCN(m);m!==null&&_.K_(O,m)};
qFp=function(O){if(Array.isArray(O)){if(O.length>1)throw Error("lc`"+O.length+"`"+O.map(R8e).join(", "));O=O[0]}if(O==null)return null;if(!(O instanceof iS)){if(String(O).trim().length===0)return null;throw Error("mc`"+R8e(O));}return O};
U5M=function(O,m){m=qFp(m);m!==null&&(O.textContent=Mue(m))};
R8e=function(O){return"("+typeof O+") "+(O!=null&&typeof O==="object"?O.constructor.name:typeof O)+" "+O};
tUI=function(){};
zn=function(O,m){m=m===void 0?{}:m;var G=W9M(),B=!0,Q,H=!!M_.legacyTriggerSoyRendererEvents;H&&(Q=oGS());_.lF(function(){var M=!B&&m.isControlFlowComponent&&H,R=M?G[Kn].flattened[0].parentElement:void 0;B=!1;_.tN.setUp();m.isControlFlowComponent&&fS++;var x=G[0],t=G[Kn].flattened,W=ri(!0);try{var Z=O(),z=ZCS(x,Z,G);Array.isArray(z)||(G[Kn].flattened=[z]);var J=G[Kn].flattened;if(t&&(!Array.isArray(t)||t.length!==0)){var n=Array.isArray(t)?t[0]:t,I=n[Wx],S=n._disposeEffects;n._disposeEffects=void 0;
n=Array.isArray(J)?J[0]:J;n[Wx]=I;n[Wx]&&(n[Wx].numNodes=n===J?1:J.length);n._disposeEffects=S}G[0]=z;m.isControlFlowComponent&&TJ(!1)}catch(L){throw m.isControlFlowComponent&&TJ(!0),L;}finally{ri(W),_.tN.tearDown()}M&&(M=Q,M!=null||(M=_.JvM(document).getAppContext()),M.get(z8O).JSC$29082_getEventTarget().dispatchEvent(new JcY(VU5,R,qr)))},m.debugName);
return G};
ZCS=function(O,m,G){for(;typeof m==="function";)m=m();if(m!=null&&m[$B]){var B,Q,H;(H=M_.handleError)==null||H.call.apply(H,[M_].concat(_.lS(kv(Error("nc`"+((B=m.type)==null?void 0:B.TAG_NAME)),(Q=m.type)==null?void 0:Q.TAG_NAME))))}if(O==null)return m==null?iz():UZ(m)?xB(m):K9N(m)?xB(m.toString()):_.R8(m)?m:m.length===0?iz():bCp(m,G);if(_.R8(O)){if(m==null)return $5N(O,iz());if(UZ(m))return nfs(O,m);if(K9N(m))return nfs(O,m.toString());if(_.R8(m))return $5N(O,m);if(m.length===0)return $5N(O,iz());
m=bCp(m,G);rcO([O],G[Kn].flattened);return m}O=JN(O);if(m==null)return MUp(O,iz());if(UZ(m))return MUp(O,xB(m));if(K9N(m))return MUp(O,xB(m.toString()));if(_.R8(m))return rcO(O,[m])[0];if(m.length===0)return MUp(O,iz());m=bCp(m,G);rcO(O,G[Kn].flattened);return m};
nfs=function(O,m){O.nodeType===Node.TEXT_NODE?O.textContent!==String(m)&&(O.textContent=String(m)):O=$5N(O,xB(m));return O};
JN=function(O,m,G){return Xre(O,m!=null?m:[],G===void 0?!1:G)};
bCp=function(O,m){var G=JN(O,void 0,!0);if(G.length===0)return iz();m[Kn].flattened=G;return O};
Xre=function(O,m,G,B,Q){m=m===void 0?[]:m;G=G===void 0?!1:G;Q=Q===void 0?-1:Q;if(O==null)return m;if(O instanceof VE){var H=O.render();return Xre(H,m,G,B,Q)}if(_.R8(m)&&m.nodeType===Node.ELEMENT_NODE)switch(m.tagName){case "SCRIPT":x5N(m,O);return;case "STYLE":U5M(m,O);return}UZ(O)&&(O=xB(O),B&&G&&(B[Q]=O));if(HCO(O)){G=vfN(O);G=Array.from(G.childNodes);G=_.K(G);for(H=G.next();!H.done;H=G.next())ffr(m,H.value);return m}K9N(O)&&(O=xB(O.toString()),B&&G&&(B[Q]=O));if(_.R8(O))return ffr(m,O);if(Array.isArray(O)){for(H=
0;H<O.length;H++)Xre(O[H],m,G,O,H);return m}if(typeof O==="function"){H=zn(function(){var R=O();return R!=null&&!UZ(R)&&HCO(R)?(R=vfN(R),Array.from(R.childNodes)):R},{debugName:"qmF2ne",
debugFn:O})[0];if(Array.isArray(H)){G=_.K(H);for(H=G.next();!H.done;H=G.next())ffr(m,H.value);return m}B&&G&&(B[Q]=H);return ffr(m,H)}if(O!=null&&O[$B]){B=O;Q=ri(!0);var M=GA5;try{H=M.apply(null,[B.type,B.props].concat(_.lS(B.children)))}finally{ri(Q)}return Xre(H,m,G)}(M=M_.handleError)==null||M.call.apply(M,[M_].concat(_.lS(kv(Error("oc")))));return m};
W9M=function(O){var m={};m=Object.assign([],(m[Kn]={flattened:[]},m));if(!O)return m;m[0]=bCp(O,m);return m};
ffr=function(O,m){Array.isArray(O)?O.push(m):O.appendChild(m);return O};
bz=function(O){if(!M_.enableLazyTsx)return O;if(Array.isArray(O)){for(var m=0;m<O.length;m++)O[m]=bz(O[m]);return O}return O instanceof VE?(O=O.render(),bz(O)):O};
TKS=function(O,m){var G,B,Q=FPM(O),H=function(J){B=J;J=ri(!0);var n=iF(nn);DIp("render",Q);try{G=bz(O(m))}finally{sO6("render",Q),iF(n),ri(J)}};
H=M_.enableContextPerComponent?Fos(H,Q):CS(H,M_.alwaysTrackContexts||!!Qj);OEN(B);if(!m.renderedFromIdom){var M=_.Hf(B);try{return h86(O,m,G),G}finally{_.Hf(M)}}!AJz(G)&&Array.isArray(G)&&(G=W9M(G));var R=OC6(G);M=Array.isArray(R)?R[0]:R;var x=!1;if(M){var t,W=(t=m==null?void 0:m.idomKey)!=null?t:O;t=R!==M;M._disposeEffects=H;var Z=M[Wx]||{},z=AJz(G)?G:Z.sourceDynamicRange;Object.assign(Z,{key:W,numNodes:t?R.length:1,context:B,higherOrder:!!M[Wx],sourceDynamicRange:z});M[Wx]=Z}else x=!0;(function(){var J=
_.Hf(B);try{h86(O,m,R)}finally{_.Hf(J)}})();
x&&H();return G};
gfM=function(O){var m={},G;for(G in O)m={prev$jscomp$24:void 0,next$jscomp$33:void 0},m.prev$jscomp$24=Xq[G],m.next$jscomp$33=O[G],Xq[G]=function(B){return function(){var Q=_.eA.apply(0,arguments);B.prev$jscomp$24.apply(null,_.lS(Q));B.next$jscomp$33.apply(null,_.lS(Q))}}(m)};
uES=function(){if(jE())throw Error("pc");return fn};
jqM=function(O,m){if(!O.__unmounted&&m){O.__unmounted=!0;try{O.didUnmount()}catch(Q){var G,B;(B=M_.handleError)==null||B.call.apply(B,[M_].concat(_.lS(kv(Q,(G=O.__type)==null?void 0:G.TAG_NAME))))}Xq.didUnmount(O);O.el=null;m.__instance&&delete m.__instance}};
prr=function(O,m,G){O._signalProps!=null&&O._disposeEffects==null&&((G===void 0?0:G)?O._disposeEffects=CS(function(){return void Ifr(O,m)},M_.alwaysTrackContexts||!!Qj):Ifr(O,m))};
Ifr=function(O,m){_.lF(function(){for(var G=O._signalProps,B=O._signalValues,Q=0;Q<G.length;Q++){var H=G[Q],M=m[H]();B[Q]!==M&&(B[Q]=M,NjN(O,H,M))}},"e3YVbb")};
SFp=function(O,m,G){var B,Q=[];O._disposeEffects=CS(function(){_.lF(function(){var H=G();if(H===null||H===void 0)H="";if(UZ(H)||H===null)B!=null||(B=document.createTextNode("")),B.parentNode!==O&&(B._isSignalTextNode=!0,O.insertBefore(B,m)),B.textContent=String(H);else if(HCO(H)){for(var M=Q.length>0?Q[Q.length-1].nextSibling:m,R=_.K(Q),x=R.next();!x.done;x=R.next())O.removeChild(x.value);H=vfN(H);Q=Array.from(H.childNodes);H=_.K(Q);for(R=H.next();!R.done;R=H.next())O.insertBefore(R.value,M)}else throw x=
(R=(M=gh)==null?void 0:M.name)!=null?R:"unknown",Error("ec`"+x+"`"+typeof H);},"VvDgC")},M_.alwaysTrackContexts||!!Qj)};
CHI=function(O,m){var G=_.eA.apply(2,arguments);m!=null||(m={});return!M_.enableLazyTsx||gh!=null&&!jE()?EfS(O,m,G):new L9s(O,m,G)};
EfS=function(O,m,G){if(O===_.Mr)return G;if(typeof O==="function")return gh&&!jE()&&(m.renderedFromIdom=!0),AlM(O,function(){var H=of5(O,m,G);if(H)return H;G.length>0&&(m.children=G.length===1?G[0]:G);if(O.componentType===uF){var M;Fos(function(){var R=m;if(O.componentType!==uF)M=!1;else{R||(R={});var x=new hN(R,O),t=iF(nn);try{var W=x.render(R)}finally{iF(t)}W instanceof HTMLElement?(W.__instance=x,x.el=W,x.__type=O,O.TAG_NAME=W.tagName.toLowerCase(),Xq.didPatch(x),M=W):M=W}},O.name);
if(M)return M}return TKS(O,m)},m.debugInstance);
var B=lfO(O,m),Q;for(Q in m)NjN(B,Q,m[Q]);prr(B,m);JN(G,B);P_z(B,m,{isReactive:!0});afN(B,m);return B};
lfO=function(O,m){O=(kAN.has(O.toLowerCase())?0:ycO.has(O.startsWith("svg:")?O.replace("svg:",""):O))?document.createElementNS("http://www.w3.org/2000/svg",O.startsWith("svg:")?O.replace("svg:",""):O):ccM(O,m)||document.createElement(O);O[YFr]=!0;return O};
d5S=function(O){if(O){var m;(m=O._disposeRef)==null||m.call(O);var G;(G=O._disposeEffects)==null||G.call(O);O.__instance&&O.__instance instanceof Tn&&(m=O.__instance,jqM(m,O),m instanceof hN&&m.disposeEffects());for(m=0;m<O.childNodes.length;m++)d5S(O.childNodes[m])}};
e8S=function(O){wr5.push(O)===1&&requestAnimationFrame(function(){setTimeout(function(){var m=[].concat(_.lS(wr5));wr5=[];m=_.K(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;try{for(var B=0;B<G.length;B++)d5S(G[B])}catch(Q){B=G=void 0,(B=(G=M_).handleError)==null||B.call.apply(B,[G].concat(_.lS(kv(Q))))}}})})};
_.q=function(O,m){return GA5.apply(null,[O,m].concat(_.lS(_.eA.apply(2,arguments))))};
_.U=function(O){var m=O.cond;if(m===void 0)return O.else&&O.else();var G=_.bF(function(){return!!m()},void 0,"JHVi8"),B=function(){var Q=m();
if(!Q){var H;(H=M_.handleError)==null||H.call.apply(H,[M_].concat(_.lS(kv(D5r.nonNullableCondIsNull()))))}return Q};
return zn(function(){var Q=G(),H;CS(function(){var M=iF(nn);try{H=bz(Q?O.then(B):O.else&&O.else())}finally{iF(M)}},!0);
return H},{debugName:O.debugInstance,
debugFn:O.then,isControlFlowComponent:!0})};
sqr=function(O){return _.U(O)};
_.gi=function(O){return O.keyBy==="INDEX"?NKs(O):PHf(O)};
F9r=function(O){O=_.K(O);for(var m=O.next();!m.done;m=O.next()){var G=void 0;(G=m.value)==null||G()}};
PHf=function(O){var m=O.keyBy===void 0||O.keyBy==="REFERENCE",G=m?function(W){return W}:O.keyBy,B=[],Q=[],H=[],M=[],R=[],x=[],t=!0;
_.LS(function(){F9r(M)});
return zn(function(){var W=O.each(),Z=W.length;if(Z===0){if(B.length===0&&!t)return H;F9r(M);B=W;Q=[];for(W=0;W<B.length;W++)Q.push(G(B[W]));H=[];M=[];R=[];x=[];O.fallback&&(M[0]=AcM(function(){H[0]=bz(O.fallback())}));
t=!1;return H}for(var z=new Ors,J=B.length-1;J>=0;J--)z.push(Q[J],J);J=Array(Z);for(var n=Array(Z),I=Array(Z),S=Array(Z),L=Array(m?0:Z),C={i$jscomp$450:0};C.i$jscomp$450<Z;C={i$jscomp$450:C.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$566:void 0},C.i$jscomp$450++){C.item$jscomp$104=W[C.i$jscomp$450];C.key$jscomp$566=G(C.item$jscomp$104);var P=z.pop(C.key$jscomp$566);P!=null?(I[C.i$jscomp$450]=H[P],n[C.i$jscomp$450]=Q[P],J[C.i$jscomp$450]=M[P],S[C.i$jscomp$450]=R[P],m||(L[C.i$jscomp$450]=x[P]),nS(function(w){return function(){S[w.i$jscomp$450](w.i$jscomp$450);
if(!m)L[w.i$jscomp$450](w.item$jscomp$104)}}(C)),delete M[P]):J[C.i$jscomp$450]=AcM(function(w){return function(){var d=_.K(_.Wf(w.i$jscomp$450,void 0,"Fqk1zd")),D=d.next().value;
d=d.next().value;S[w.i$jscomp$450]=d;n[w.i$jscomp$450]=w.key$jscomp$566;if(m)I[w.i$jscomp$450]=bz(O.children(w.item$jscomp$104,D));else{var OS=_.K(_.Wf(w.item$jscomp$104,void 0,"GBj5de"));d=OS.next().value;OS=OS.next().value;L[w.i$jscomp$450]=OS;I[w.i$jscomp$450]=bz(O.children(d,D))}}}(C))}F9r(M);
B=W;Q=n;H=I;M=J;R=S;x=L;t=!1;return I},{debugName:O.debugInstance,
debugFn:O.each,isControlFlowComponent:!0})};
NKs=function(O){var m=[],G=[],B=[],Q=[],H=!1;_.LS(function(){for(var M=_.K(Q),R=M.next();!R.done;R=M.next())R=R.value,R()});
return zn(function(){var M=O.each();H&&M.length>0&&(Q.pop()(),m.pop(),H=!1);for(var R=Array(M.length),x={i$jscomp$451:0};x.i$jscomp$451<M.length;x={i$jscomp$451:x.i$jscomp$451},x.i$jscomp$451++)if(x.i$jscomp$451<m.length)m[x.i$jscomp$451]!==M[x.i$jscomp$451]&&(nS(function(W){return function(){return void G[W.i$jscomp$451](M[W.i$jscomp$451])}}(x)),m[x.i$jscomp$451]=M[x.i$jscomp$451]),R[x.i$jscomp$451]=B[x.i$jscomp$451];
else{var t=AcM(function(W){return function(){m[W.i$jscomp$451]=M[W.i$jscomp$451];var Z=_.K(_.Wf(M[W.i$jscomp$451],void 0,"JMMLmd")),z=Z.next().value;Z=Z.next().value;G[W.i$jscomp$451]=Z;R[W.i$jscomp$451]=bz(O.children(z,W.i$jscomp$451))}}(x));
Q[x.i$jscomp$451]=t}for(;m.length>M.length;)m.pop(),Q.pop()(),G.pop();M.length===0&&!H&&O.fallback&&(x=AcM(function(){R[0]=bz(O.fallback())}),Q[0]=x,H=!0);
return B=R},{debugName:O.debugInstance,
isControlFlowComponent:!0})};
AcM=function(O){var m=Qj;return CS(function(G){var B=iF(nn);try{G.parent=m,O(G)}finally{iF(B)}},!1)};
_.uz=function(O){return O};
_.jx=function(O){return{isDefault:!0,children:O.children}};
_.I8=function(O){var m=mCp(O),G=_.bF(function(){return GCO(m)},void 0,"F1PF4");
return zn(function(){var B=G(),Q;CS(function(){var H=iF(nn);try{Q=bz(B())}finally{iF(H)}});
return Q},{debugName:O.debugInstance,
isControlFlowComponent:!0})};
mCp=function(O){O=O.children;return Array.isArray(O)?O:[O]};
BrI=function(O){var m=O.props;O=O.getChildren()[0];return m.when?{when:m.when,children:O}:{isDefault:!0,children:O}};
GCO=function(O){var m=function(){return null};
O=_.K(O);for(var G=O.next();!G.done;G=O.next())if(G=G.value,G!=null&&G[$B]&&(G=G.type===_.jx?{isDefault:!0,children:G.children[0]}:{when:G.props.when,children:G.children[0]}),G instanceof VE&&(G=BrI(G)),G.isDefault)m=G.children;else if(G.when())return G.children;return m};
Hrf=function(O){var m=null,G,B={get value(){var H,M;(M=(H=Q).validateGetValue)==null||M.call(H);return Q.__value},set value(H){var M,R;(R=(M=Q).validateSetValue)==null||R.call(M,H);Q.__value=H;Q.__hasBeenSet=!0}},Q=(B.__value=null,B.__hasBeenSet=!1,B.__hasErrored=!1,B.onRender=function(H){if(G&&H!==G){G._disposeRef=void 0;var M;(M=m)==null||M()}G=H;m=O(H)||null},B.onUnmount=function(){var H;
(H=m)==null||H();m=Q.value=null},B[_.Qs5]=!0,B);
return Q};
pn=function(O){return typeof O==="symbol"};
K8S=function(O){var m=uES();if(m==null)throw _.vc5.PRIMITIVE_INVALID_HOOK_CALL();var G=m.hookCounter++;m.hooks||(m.hooks=[]);var B=m.hooks;B[G]||(B[G]={key:O,host:m});if(O!==B[G].key){if(m.__type){var Q;O=(Q=m.__type)==null?void 0:Q.name}else O=m instanceof hN?FPM(m.functionComponent):"<"+m.el.tagName.toLowerCase()+">";throw _.vc5.OUT_OF_ORDER_HOOK_CALL(O);}return B[G]};
$Cz=function(O,m){return!O||O.length!==(m==null?void 0:m.length)||O.some(function(G,B){return G!==m[B]})};
MY6=function(O,m){var G=K8S("onChange"),B=uES();$Cz(G.deps,m)&&(G.deps=m,G.pendingEffect=O,B.__syncEffects||(B.__syncEffects=[]),B.__syncEffects.push(G))};
_.Sx=function(O,m,G){G!=null||(G={});G=G.appContext;var B=!!M_.legacyTriggerSoyRendererEvents;_.tN.setUp();try{var Q=rKN(O,m,G);B&&(m=G,m!=null||(m=_.JvM(document).getAppContext()),m.get(z8O).JSC$29082_getEventTarget().dispatchEvent(new JcY(RPz,O,qr)));_.tN.log(O);return Q}finally{_.tN.tearDown()}};
rKN=function(O,m,G){var B=function(){var H=iF(nn);try{return CS(function(){var M=_.JvM(_.Y6(O)),R;var x=Cnp({rootElement:{value:O},appContext:G||(M==null?void 0:(R=M.getOptionalAppContext)==null?void 0:R.call(M)),dispatcher:M});M=_.Hf(x);x=ri(!0);fS++;try{JN(m(),O),TJ(!1)}catch(t){throw TJ(!0),t;}finally{ri(x),_.Hf(M)}},!1)}catch(M){throw M_.enableContextBasedComponentStacks&&I9(M),M;
}finally{iF(H)}},Q=SE(function(){return B()});
O[irr]=!0;return function(){O.textContent="";Q();O[irr]=!1}};
_.EZ=function(O){if(syN(R9)){var m;(m=M_.handleError)==null||m.call.apply(m,[M_].concat(_.lS(kv(Error("dc")))))}var G=Qj,B=gh;otN({onInitType:LPM,run:function(){if(G&&!G.isDisposed){var Q=_.Hf(G);try{SE(function(){return void O()},B)}catch(H){throw M_.enableContextBasedComponentStacks&&I9(H),H;
}finally{_.Hf(Q)}}}})};
xCs=function(O,m){MY6(function(){return t0(O)},m)};
_.Ln=function(O){jE()?_.EZ(function(){t0(O)}):MY6(function(){return t0(O)},[])};
UCN=function(O){var m=[].concat(_.lS(O));O.length=0;O=_.K(m);for(m=O.next();!m.done;m=O.next()){m=m.value;qBz(m);var G=m.pendingEffect;m.pendingEffect=null;if(G=G==null?void 0:G())m.pendingCleanup=G}};
qBz=function(O){var m=O.pendingCleanup;O.pendingCleanup=null;m==null||m()};
tYz=function(O,m){if(jE())return O();var G=K8S("useMemoInternal");$Cz(G.deps,m)&&(G.deps=m,G.value=O());return G.value};
W8N=function(O,m){return tYz(O,m)};
Cn=function(O){return tYz(O,[])};
Zr5=function(O){return Cn(function(){return{value:O}})};
_.o8=function(O,m){if(!O)return null;O=Object.keys(O);O=_.K(O);for(var G=O.next();!G.done;G=O.next()){G=G.value;var B=G.toLowerCase();if(B.indexOf(m,B.length-m.length)>-1)return G}return null};
_.a8=function(){var O=arguments,m=_.lz;O.length>1?m[O[0]]=O[1]:O.length===1&&Object.assign(m,O[0])};
_.kB=function(O,m){return O in _.lz?_.lz[O]:m};
_.yE=function(O,m){return!!_.kB(O,m)};
zPr=function(O){var m=_.lz.EXPERIMENT_FLAGS;return m?m[O]:void 0};
VYs=function(O){JKf.forEach(function(m){return m(O)})};
_.wi=function(O){return O&&window.yterr?function(){try{return O.apply(this,arguments)}catch(m){_.di(m)}}:O};
_.di=function(O){var m=_.ex("yt.logging.errors.log");m?m(O,"ERROR",void 0,void 0,void 0,void 0,void 0):(m=_.kB("ERRORS",[]),m.push([O,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.a8("ERRORS",m));VYs(O)};
_.Dy=function(O,m,G,B,Q){var H=_.ex("yt.logging.errors.log");H?H(O,"WARNING",m,G,B,void 0,Q):(H=_.kB("ERRORS",[]),H.push([O,"WARNING",m,G,B,void 0,Q]),_.a8("ERRORS",H))};
ncf=function(O,m){m=O.split(m);for(var G={},B=0,Q=m.length;B<Q;B++){var H=m[B].split("=");if(H.length===1&&H[0]||H.length===2)try{var M=br6(H[0]||""),R=br6(H[1]||"");if(M in G){var x=G[M];Array.isArray(x)?_.dN(x,R):G[M]=[x,R]}else G[M]=R}catch(z){var t=z,W=H[0],Z=String(ncf);t.args=[{key:W,value:H[1],query:O,method:XdO===Z?"unchanged":Z}];fYI.hasOwnProperty(W)||_.Dy(t)}}return G};
hPf=function(O){var m=[];_.aM.forEach(O,function(G,B){var Q=_.sZ(B);G=Array.isArray(G)?G:[G];_.Nr(G,function(H){H==""?m.push(Q):m.push(Q+"="+_.sZ(H))})});
return m.join("&")};
_.Px=function(O){O.charAt(0)==="?"&&(O=O.substring(1));return ncf(O,"&")};
_.Fq=function(O){return O.indexOf("?")!==-1?(O=(O||"").split("#")[0],O=O.split("?",2),_.Px(O.length>1?O[1]:O[0])):{}};
_.AN=function(O,m){return TrS(O,m||{},!0)};
gcN=function(O,m){return TrS(O,m||{},!1)};
TrS=function(O,m,G){var B=O.split("#",2);O=B[0];B=B.length>1?"#"+B[1]:"";var Q=O.split("?",2);O=Q[0];Q=_.Px(Q[1]||"");for(var H in m)if(G||!_.aM.containsKey(Q,H))Q[H]=m[H];return _.Oe(O,Q)+B};
Qb=function(O){if(!m)var m=window.location.href;var G=_.mM(O)[1]||null,B=_.Gg(O);return G&&B?B7(O,m):B?_.Gg(m)===B&&(Number(_.mM(m)[4]||null)||null)===(Number(_.mM(O)[4]||null)||null):!0};
_.jsM=function(O){O=umN(O);return O===null?!1:O[0]==="com"&&O[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
umN=function(O){O=_.Gg(O);return O!==null?O.split(".").reverse():null};
br6=function(O){return O&&O.match(IYz)?O:H7(O)};
_.v7=function(O){return new pdS(O)};
_.KR=function(){SBO||(SBO=new Ec6);return SBO};
CPS=function(){var O=L8O;return function(){var m=_.KR();if(!m.resolve(_.v7(O))){var G={};m.addProvider((G.provide=O,G.useClass=O,G[$R]=void 0,G))}return m.resolve(O)}};
lYI=function(O){var m=_.Mu,G,B;_.r(function(Q){G=_.KR();return(B=G.resolve(_.v7(m)))?(O(B),Q.return(Promise.resolve(B))):Q.return(G.resolve(new ocr(m)).then(function(H){O(H);return H}))})};
_.V=function(O){O=rI(O);return typeof O==="string"&&O==="false"?!1:!!O};
_.Rd=function(O,m){O=rI(O);return O===void 0&&m!==void 0?m:Number(O||0)};
aYs=function(O){O=rI(O);return Array.isArray(O)?_.k6(O,function(m){return Number(m||0)}):[Number(O||0)]};
_.ib=function(O){O=rI(O);return O!==void 0?String(O):""};
_.Ue=function(O){O=rI(O);return Array.isArray(O)?_.k6(O,function(m){return String(m||"")}):[String(O||"")]};
kCs=function(){return _.kB("EXPERIMENTS_TOKEN","")};
rI=function(O){return _.kB("EXPERIMENT_FLAGS",{})[O]};
yKe=function(){for(var O=[],m=_.kB("EXPERIMENTS_FORCED_FLAGS",{}),G=_.K(Object.keys(m)),B=G.next();!B.done;B=G.next())B=B.value,O.push({key:B,value:String(m[B])});G=_.kB("EXPERIMENT_FLAGS",{});B=_.K(Object.keys(G));for(var Q=B.next();!Q.done;Q=B.next())Q=Q.value,Q.startsWith("force_")&&m[Q]===void 0&&O.push({key:Q,value:String(G[Q])});return O};
YBp=function(){if(!cK6)return null;var O=cK6();return"open"in O?O:null};
_.dCe=function(O){switch(_.tE(O)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.tE=function(O){return O&&"status"in O?O.status:-1};
_.W7=function(O,m){typeof O==="function"&&(O=_.wi(O));return window.setTimeout(O,m)};
_.Zg=function(O,m){typeof O==="function"&&(O=_.wi(O));return window.setInterval(O,m)};
_.zg=function(O){window.clearTimeout(O)};
ePp=function(O){O=_.Fq(O);for(var m=_.K(wdp),G=m.next();!G.done;G=m.next())if(O[G.value]!==void 0)return!0;return!1};
NrI=function(O,m,G,B,Q,H,M,R,x){G=G===void 0?"GET":G;B=B===void 0?"":B;R=R===void 0?!1:R;var t=YBp();if(!t)return null;var W=function(){(t&&"readyState"in t?t.readyState:0)===4&&m&&_.wi(m)(t)};
"onloadend"in t?t.addEventListener("loadend",W,!1):t.onreadystatechange=W;_.V("debug_forward_web_query_parameters")&&(O=DCI(O,window.location.search));t.open(G,O,!0);H&&(t.responseType=H);M&&(t.withCredentials=!0);G=G==="POST"&&(window.FormData===void 0||!(B instanceof FormData));if(Q=sse(O,Q))for(var Z in Q)t.setRequestHeader(Z,Q[Z]),"content-type"===Z.toLowerCase()&&(G=!1);G&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded");x&&"onprogress"in t&&(t.onprogress=function(){x(t.responseText)});
if(R&&"setAttributionReporting"in XMLHttpRequest.prototype){O={eventSourceEligible:!0,triggerEligible:!1};try{t.setAttributionReporting(O)}catch(z){_.Dy(z)}}t.send(B);return t};
sse=function(O,m){m=m===void 0?{}:m;var G=Qb(O),B=_.kB("INNERTUBE_CLIENT_NAME"),Q=_.V("web_ajax_ignore_global_headers_if_set"),H;for(H in PPp){var M=_.kB(PPp[H]),R=H==="X-Goog-AuthUser"||H==="X-Goog-PageId";H!=="X-Goog-Visitor-Id"||M||(M=_.kB("VISITOR_DATA"));var x;if(!(x=!M)){if(!(x=G||(_.Gg(O)?!1:!0))){x=O;var t;if(t=_.V("add_auth_headers_to_remarketing_google_dot_com_ping")&&H==="Authorization"&&(B==="TVHTML5"||B==="TVHTML5_UNPLUGGED"||B==="TVHTML5_SIMPLY"))t=umN(x),t=t===null?!1:t[1]==="google"?
!0:t[2]==="google"?t[0]==="au"&&t[1]==="com"?!0:t[0]==="uk"&&t[1]==="co"?!0:!1:!1;t&&(x=_.JE(x)||"",x=x.split("/"),x="/"+(x.length>1?x[1]:""),t=x==="/pagead");x=t?!0:!1}x=!x}x||Q&&m[H]!==void 0||B==="TVHTML5_UNPLUGGED"&&R||(m[H]=M)}"X-Goog-EOM-Visitor-Id"in m&&"X-Goog-Visitor-Id"in m&&delete m["X-Goog-Visitor-Id"];if(G||!_.Gg(O))m["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(G||!_.Gg(O)){try{var W=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(Z){}W&&(m["X-YouTube-Time-Zone"]=
W)}document.location.hostname.endsWith("youtubeeducation.com")||!G&&_.Gg(O)||(m["X-YouTube-Ad-Signals"]=hPf(F8r()));return m};
_.AKN=function(O,m){var G=_.Gg(O);_.V("debug_handle_relative_url_for_query_forward_killswitch")||!G&&Qb(O)&&(G=document.location.hostname);var B=_.JE(O);B=(G=G&&(G.endsWith("youtube.com")||G.endsWith("youtube-nocookie.com")))&&B&&B.startsWith("/api/");if(!G||B)return O;var Q=_.Px(m),H={};_.Nr(wdp,function(M){Q[M]&&(H[M]=Q[M])});
return gcN(O,H)};
Osz=function(O,m){m.method="POST";m.postParams||(m.postParams={});return _.Vb(O,m)};
moe=function(O,m){var G=_.kB("XSRF_FIELD_NAME"),B;m.headers&&(B=m.headers["Content-Type"]);return!m.excludeXsrf&&(!_.Gg(O)||m.withCredentials||_.Gg(O)===document.location.hostname)&&m.method==="POST"&&(!B||B==="application/x-www-form-urlencoded")&&!(m.postParams&&m.postParams[G])};
_.Vb=function(O,m){var G=m.format||"JSON";O=Gkp(O,m);var B=BvN(O,m),Q=!1,H=QQz(O,function(x){if(!Q){Q=!0;R&&_.zg(R);var t=_.dCe(x),W=null,Z=400<=x.status&&x.status<500,z=500<=x.status&&x.status<600;if(t||Z||z)W=HsI(O,G,x,m.convertToSafeHtml);t&&(t=vsf(G,x,W));W=W||{};Z=m.context||_.Qf;t?m.onSuccess&&m.onSuccess.call(Z,x,W):m.onError&&m.onError.call(Z,x,W);m.onFinish&&m.onFinish.call(Z,x,W)}},m.method,B,m.headers,m.responseType,m.withCredentials,!1,m.onProgress);
B=m.timeout||0;if(m.onTimeout&&B>0){var M=m.onTimeout;var R=_.W7(function(){Q||(Q=!0,H.abort(),_.zg(R),M.call(m.context||_.Qf,H))},B)}return H};
Gkp=function(O,m){m.includeDomain&&(O=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+O);var G=_.kB("XSRF_FIELD_NAME");if(m=m.urlParams)m[G]&&delete m[G],O=_.AN(O,m);return O};
BvN=function(O,m){var G=_.kB("XSRF_FIELD_NAME"),B=_.kB("XSRF_TOKEN"),Q=m.postBody||"",H=m.postParams;moe(O,m)&&(H||(H={}),H[G]=B);(_.V("ajax_parse_query_data_only_when_filled")&&H&&Object.keys(H).length>0||H)&&typeof Q==="string"&&(Q=_.Px(Q),_.aM.extend(Q,H),Q=m.postBodyFormat&&m.postBodyFormat==="JSON"?JSON.stringify(Q):_.bb(Q));H=Q||H&&!_.aM.isEmpty(H);!Kf6&&H&&m.method!=="POST"&&(Kf6=!0,_.di(Error("Jc")));return Q};
HsI=function(O,m,G,B){var Q=null;switch(m){case "JSON":try{var H=G.responseText}catch(M){throw B=Error("Kc"),B.params=O,_.Dy(B),M;}O=G.getResponseHeader("Content-Type")||"";H&&O.indexOf("json")>=0&&(H.substring(0,5)===")]}'\n"&&(H=H.substring(5)),Q=JSON.parse(H));break;case "XML":if(O=(O=G.responseXML)?$oN(O):null)Q={},_.Nr(O.getElementsByTagName("*"),function(M){Q[M.tagName]=MHM(M)})}B&&rar(Q);
return Q};
rar=function(O){if(_.Dp(O))for(var m in O)m==="html_content"||$O(m,"_html")?O[m]=P8(O[m]):rar(O[m])};
vsf=function(O,m,G){if(m&&m.status===204)return!0;switch(O){case "JSON":return!!G;case "XML":return Number(G&&G.return_code)===0;case "RAW":return!0;default:return!!G}};
$oN=function(O){return O?(O=("responseXML"in O?O.responseXML:O).getElementsByTagName("root"))&&O.length>0?O[0]:null:null};
MHM=function(O){var m="";_.Nr(O.childNodes,function(G){m+=G.nodeValue});
return m};
RZI=function(O){if(O.name==="JavaException")return!0;O=O.stack;return O.includes("chrome://")||O.includes("-extension://")||O.includes("webkit-masked-url://")};
isM=function(O){if(!O.stack)return!0;var m=!O.stack.includes("\n");return m&&O.stack.includes("ErrorType: ")||m&&O.stack.includes("Anonymous function (Unknown script")||O.stack.toLowerCase()==="not available"||O.fileName==="user-script"||O.fileName.startsWith("user-script:")?!0:!1};
_.nR=function(O){_.Iw.call(this);this.JSC$10523_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!O};
qrS=function(O,m){var G=O.length,B=0,Q=function(){return O.charCodeAt(B++)};
do{var H=xo5(Q);if(H===Infinity)break;var M=H>>3;switch(H&7){case 0:H=xo5(Q);if(M===m)return H;break;case 1:if(M===m)return;B+=8;break;case 2:H=xo5(Q);if(M===m)return O.substr(B,H);B+=H;break;case 5:if(M===m)return;B+=4;break;default:return}}while(B<G)};
xo5=function(O){var m=O(),G=m&127;if(m<128)return G;m=O();G|=(m&127)<<7;if(m<128)return G;m=O();G|=(m&127)<<14;if(m<128)return G;m=O();return m<128?G|(m&127)<<21:Infinity};
tHI=function(O,m,G,B){if(O)if(Array.isArray(O)){var Q=B;for(B=0;B<O.length&&!(O[B]&&(Q+=Uop(B,O[B],m,G),Q>500));B++);B=Q}else if(typeof O==="object")for(Q in O){if(O[Q]){var H=Q;var M=O[Q],R=m,x=G;H=typeof M!=="string"||H!=="clickTrackingParams"&&H!=="trackingParams"?0:(M=qrS(atob(M.replace(/-/g,"+").replace(/_/g,"/")),2))?Uop(H+".ve",M,R,x):0;B+=H;B+=Uop(Q,O[Q],m,G);if(B>500)break}}else G[m]=Xz(O),B+=G[m].length;else G[m]=Xz(O),B+=G[m].length;return B};
Uop=function(O,m,G,B){G+="."+O;O=Xz(m);B[G]=O;return G.length+O.length};
Xz=function(O){try{return(typeof O==="string"?O:String(JSON.stringify(O))).substr(0,500)}catch(m){return"unable to serialize "+typeof O+" ("+m.message+")"}};
Wf5=function(O){switch(O){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}};
_.hE=function(O,m,G,B,Q){_.fR.set(O,m,{maxAge:G,path:"/",domain:B===void 0?"youtube.com":B,secure:Q===void 0?!1:Q})};
_.ZsN=function(O,m,G){_.fR.remove(O,m===void 0?"/":m,G===void 0?"youtube.com":G)};
_.Tg=function(){if(_.V("embeds_web_enable_cookie_detection_fix")){if(!_.Qf.navigator.cookieEnabled)return!1}else if(!_.fR.isEnabled())return!1;if(!_.fR.isEmpty())return!0;_.V("embeds_web_enable_cookie_detection_fix")?_.fR.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.fR.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.fR.get("TESTCOOKIESENABLED")!=="1")return!1;_.fR.remove("TESTCOOKIESENABLED");return!0};
zZf=function(){var O=_.Qf.navigator;return O?O.connection:void 0};
Jaz=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(O){}};
_.bsN=function(){var O=zZf();if(O){var m=VHs[O.type||"unknown"]||"CONN_UNKNOWN";O=VHs[O.effectiveType||"unknown"]||"CONN_UNKNOWN";m==="CONN_CELLULAR_UNKNOWN"&&O!=="CONN_UNKNOWN"&&(m=O);if(m!=="CONN_UNKNOWN")return m;if(O!=="CONN_UNKNOWN")return O}};
XqO=function(){var O=zZf();if(O!=null&&O.effectiveType)return nsY.hasOwnProperty(O.effectiveType)?nsY[O.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.ub=function(){try{return _.gI(),!0}catch(O){return!1}};
_.gI=function(O){if(_.kB("DATASYNC_ID")!==void 0)return _.kB("DATASYNC_ID");throw new _.j9("Datasync ID not set",O===void 0?"unknown":O);};
_.Id=function(O){this.mechanism=O};
pR=function(O){this.mechanism=O};
S9=function(O){this.storage_=O;this.cachedIsStorageAvailable_=null};
fhM=function(){var O=null;try{O=_.Qf.localStorage||null}catch(m){}S9.call(this,O)};
hZN=function(){var O=null;try{O=_.Qf.sessionStorage||null}catch(m){}S9.call(this,O)};
Ee=function(O,m){this.mechanism_=O;this.JSC$10625_prefix_=m+"::"};
_.Tvs=function(O){var m=new fhM;return m.isAvailable()?O?new Ee(m,O):m:null};
_.gs5=function(O){var m=new hZN;return m.isAvailable()?O?new Ee(m,O):m:null};
jQY=function(){var O;return(O=uZY())==null?void 0:O.get("LAST_RESULT_ENTRY_KEY",!0)};
_.od=function(O){Ih5||(_.LR?_.LR.logError(O):(_.CR.push({type:"ERROR",payload:O}),_.CR.length>10&&_.CR.shift()))};
lb=function(O,m){Ih5||(_.LR?_.LR.logEvent(O,m):(_.CR.push({type:"EVENT",eventType:O,payload:m}),_.CR.length>10&&_.CR.shift()))};
ad=function(O){if(O.indexOf(":")>=0)throw Error("Rc");};
kR=function(O){return O.substr(0,O.indexOf(":"))||O};
EsM=function(){return(pqN||Sr5)&&yb("applewebkit")&&!yb("version")&&(!yb("safari")||yb("gsa/"))};
yb=function(O){var m=_.zY();return m?m.toLowerCase().indexOf(O)>=0:!1};
osz=function(O,m,G,B){m=kR(m);var Q=O instanceof Error?O:Error("Sc`"+O);if(Q instanceof c7)return Q;O={objectStoreNames:G,dbName:m,dbVersion:B};if(Q.name==="QuotaExceededError")return new c7("QUOTA_EXCEEDED",O);if(_.YR&&Q.name==="UnknownError")return new c7("QUOTA_MAYBE_EXCEEDED",O);if(Q instanceof Lfs)return new c7("MISSING_INDEX",Object.assign({},O,{objectStore:Q.objectStore,index:Q.index}));if(Q.name==="InvalidStateError"&&CQe.some(function(H){return Q.message.includes(H)}))return new c7("EXECUTE_TRANSACTION_ON_CLOSED_DB",
O);
if(Q.name==="AbortError")return new c7("UNKNOWN_ABORT",O,Q.message);Q.args=[Object.assign({},O,{name:"IdbError",originalName:Q.name})];Q.level="WARNING";return Q};
dI=function(O,m,G){var B=jQY();return new c7("IDB_NOT_SUPPORTED",{context:{caller:O,publicName:m,version:G,hasSucceededOnce:B==null?void 0:B.hasSucceededOnce}})};
lhN=function(O){if(!O)throw Error();throw O;};
ahO=function(O){return O};
kkS=function(O,m,G){var B=function(){try{O.removeEventListener("success",Q),O.removeEventListener("error",H)}catch(M){}},Q=function(){m(O.result);
B()},H=function(){G(O.error);
B()};
O.addEventListener("success",Q);O.addEventListener("error",H)};
yaf=function(O){return new Promise(function(m,G){kkS(O,m,G)})};
Dg=function(O){return new wI(new e9(function(m,G){kkS(O,m,G)}))};
caN=function(O,m){return new wI(new e9(function(G,B){var Q=function(){var H=O?m(O):null;H?H.then(function(M){O=M;Q()},B):G()};
Q()}))};
YrN=function(O,m,G){return new Promise(function(B,Q){var H=m!==void 0?self.indexedDB.open(O,m):self.indexedDB.open(O);var M=G.blocked,R=G.blocking,x=G.terminated,t=G.upgrade,W=G.closed,Z,z=function(){Z||(Z=new se(H.result,{closed:W}));return Z};
H.addEventListener("upgradeneeded",function(J){try{if(J.newVersion===null)throw Error("Xc");if(H.transaction===null)throw Error("Yc");J.dataLoss&&J.dataLoss!=="none"&&lb("IDB_DATA_CORRUPTED",{reason:J.dataLossMessage||"unknown reason",dbName:kR(O)});var n=z(),I=new Nu(H.transaction);t&&t(n,function(S){return J.oldVersion<S&&J.newVersion>=S},I);
I.done.catch(function(S){Q(S)})}catch(S){Q(S)}});
H.addEventListener("success",function(){var J=H.result;R&&J.addEventListener("versionchange",function(){R(z())});
J.addEventListener("close",function(){lb("IDB_UNEXPECTEDLY_CLOSED",{dbName:kR(O),dbVersion:J.version});x&&x()});
B(z())});
H.addEventListener("error",function(){Q(H.error)});
M&&H.addEventListener("blocked",function(){M()})})};
doY=function(O,m,G){G=G===void 0?{}:G;return YrN(O,m,G)};
_.Fz=function(O,m){m=m===void 0?{}:m;var G,B,Q,H;return _.r(function(M){if(M.nextAddress==1)return _.n_(M,2),G=self.indexedDB.deleteDatabase(O),B=m,(Q=B.blocked)&&G.addEventListener("blocked",function(){Q()}),M.yield(yaf(G),4);
if(M.nextAddress!=2)return _.P7(M,0);H=_.uS(M);throw osz(H,O,"",-1);})};
eZN=function(O,m){var G;return _.r(function(B){if(B.nextAddress==1)return B.yield(_.AE(wqs,m),2);G=B.yieldResult;return B.return(_.OO(G,["databases"],{enableRetries:!0,mode:"readwrite"},function(Q){var H=Q.objectStore("databases");return H.get(O.actualName).then(function(M){if(M?O.actualName!==M.actualName||O.publicName!==M.publicName||O.userIdentifier!==M.userIdentifier:1)return H.put(O).then(function(){})})}))})};
_.mo=function(O,m){var G;return _.r(function(B){if(B.nextAddress==1)return O?B.yield(_.AE(wqs,m),2):B.return();G=B.yieldResult;return B.return(G.delete("databases",O))})};
_.DoO=function(O,m){var G,B;return _.r(function(Q){return Q.nextAddress==1?(G=[],Q.yield(_.AE(wqs,m),2)):Q.nextAddress!=3?(B=Q.yieldResult,Q.yield(_.OO(B,["databases"],{enableRetries:!0,mode:"readonly"},function(H){G.length=0;return GV(H.objectStore("databases"),{},function(M){O(M.getValue())&&G.push(M.getValue());return M.continue()})}),3)):Q.return(G)})};
sQ6=function(O,m){return _.DoO(function(G){return G.publicName===O&&G.userIdentifier!==void 0},m)};
Ffe=function(){var O,m,G,B;return _.r(function(Q){switch(Q.nextAddress){case 1:O=jQY();if((m=O)==null?0:m.hasSucceededOnce)return Q.return(!0);var H;if(H=Nvp)H=/WebKit\/([0-9]+)/.exec(_.zY()),H=!!(H&&parseInt(H[1],10)>=600);H&&(H=/WebKit\/([0-9]+)/.exec(_.zY()),H=!(H&&parseInt(H[1],10)>=602));if(H||BI)return Q.return(!1);try{if(G=self,!(G.indexedDB&&G.IDBIndex&&G.IDBKeyRange&&G.IDBObjectStore))return Q.return(!1)}catch(M){return Q.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Q.return(!1);
_.n_(Q,2);B={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return Q.yield(eZN(B,PQN),4);case 4:return Q.yield(_.mo("yt-idb-test-do-not-use",PQN),5);case 5:return Q.return(!0);case 2:return _.uS(Q),Q.return(!1)}})};
OfN=function(){if(AaO!==void 0)return AaO;Ih5=!0;return AaO=Ffe().then(function(O){Ih5=!1;var m;if((m=uZY())!=null&&m.expiringStorage_){var G;m={hasSucceededOnce:((G=jQY())==null?void 0:G.hasSucceededOnce)||O};var B;(B=uZY())==null||B.set("LAST_RESULT_ENTRY_KEY",m,2592E3,!0)}return O})};
QJ=function(){return _.ex("ytglobal.idbToken_")||void 0};
_.vI=function(){var O=QJ();return O?Promise.resolve(O):OfN().then(function(m){(m=m?PQN:void 0)&&_.HI("ytglobal.idbToken_",m);return m})};
mBY=function(O){if(!_.ub())throw O=new c7("AUTH_INVALID",{dbName:O}),_.od(O),O;var m=_.gI();return{actualName:O+":"+m,publicName:O,userIdentifier:m}};
GLN=function(O,m,G,B){var Q,H,M,R,x,t;return _.r(function(W){switch(W.nextAddress){case 1:return H=(Q=Error().stack)!=null?Q:"",W.yield(_.vI(),2);case 2:M=W.yieldResult;if(!M)throw R=dI("openDbImpl",O,m),_.V("ytidb_async_stack_killswitch")||(R.stack=R.stack+"\n"+H.substring(H.indexOf("\n")+1)),_.od(R),R;ad(O);x=G?{actualName:O,publicName:O,userIdentifier:void 0}:mBY(O);_.n_(W,3);return W.yield(eZN(x,M),5);case 5:return W.yield(doY(x.actualName,m,B),6);case 6:return W.return(W.yieldResult);case 3:return t=
_.uS(W),_.n_(W,7),W.yield(_.mo(x.actualName,M),9);case 9:_.P7(W,8);break;case 7:_.uS(W);case 8:throw t;}})};
BHI=function(O,m,G){G=G===void 0?{}:G;return GLN(O,m,!1,G)};
QhS=function(O,m,G){G=G===void 0?{}:G;return GLN(O,m,!0,G)};
Hfs=function(O,m){m=m===void 0?{}:m;var G,B;return _.r(function(Q){if(Q.nextAddress==1)return Q.yield(_.vI(),2);if(Q.nextAddress!=3){G=Q.yieldResult;if(!G)return Q.return();ad(O);B=mBY(O);return Q.yield(_.Fz(B.actualName,m),3)}return Q.yield(_.mo(B.actualName,G),0)})};
vHY=function(O,m,G){O=O.map(function(B){return _.r(function(Q){return Q.nextAddress==1?Q.yield(_.Fz(B.actualName,m),2):Q.yield(_.mo(B.actualName,G),0)})});
return Promise.all(O).then(function(){})};
KZS=function(O){var m=m===void 0?{}:m;var G,B;return _.r(function(Q){if(Q.nextAddress==1)return Q.yield(_.vI(),2);if(Q.nextAddress!=3){G=Q.yieldResult;if(!G)return Q.return();ad(O);return Q.yield(sQ6(O,G),3)}B=Q.yieldResult;return Q.yield(vHY(B,m,G),0)})};
$Bz=function(O,m){m=m===void 0?{}:m;var G;return _.r(function(B){if(B.nextAddress==1)return B.yield(_.vI(),2);if(B.nextAddress!=3){G=B.yieldResult;if(!G)return B.return();ad(O);return B.yield(_.Fz(O,m),3)}return B.yield(_.mo(O,G),0)})};
Kp=function(O,m){return MwI(O,m)};
Ra5=function(O){return _.AE(rVS(),O)};
ife=function(O,m,G,B){var Q,H,M;return _.r(function(R){switch(R.nextAddress){case 1:return Q={config:O,hashData:m,timestamp:B!==void 0?B:(0,_.$G)()},R.yield(Ra5(G),2);case 2:return H=R.yieldResult,R.yield(H.clear("hotConfigStore"),3);case 3:return R.yield(H.put("hotConfigStore",Q),4);case 4:return M=R.yieldResult,R.return(M)}})};
xBI=function(O,m,G,B,Q){var H,M,R;return _.r(function(x){switch(x.nextAddress){case 1:return H={config:O,hashData:m,configData:G,timestamp:Q!==void 0?Q:(0,_.$G)()},x.yield(Ra5(B),2);case 2:return M=x.yieldResult,x.yield(M.clear("coldConfigStore"),3);case 3:return x.yield(M.put("coldConfigStore",H),4);case 4:return R=x.yieldResult,x.return(R)}})};
qKS=function(O){var m,G;return _.r(function(B){return B.nextAddress==1?B.yield(Ra5(O),2):B.nextAddress!=3?(m=B.yieldResult,G=void 0,B.yield(_.OO(m,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(Q){return _.MI(Q.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(H){G=H.getValue()})}),3)):B.return(G)})};
UBY=function(O){var m,G;return _.r(function(B){return B.nextAddress==1?B.yield(Ra5(O),2):B.nextAddress!=3?(m=B.yieldResult,G=void 0,B.yield(_.OO(m,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(Q){return _.MI(Q.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(H){G=H.getValue()})}),3)):B.return(G)})};
tw6=function(){return _.r(function(O){return O.yield(KZS("ytGcfConfig"),0)})};
WZ6=function(){return"INNERTUBE_API_KEY"in _.lz&&"INNERTUBE_API_VERSION"in _.lz};
_.rY=function(){return{innertubeApiKey:_.kB("INNERTUBE_API_KEY"),innertubeApiVersion:_.kB("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.kB("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.kB("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.kB("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.kB("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.kB("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.kB("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.kB("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.yE("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.yE("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.kB("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.XXI=function(O){var m={client:{hl:O.innertubeContextHostLanguage,gl:O.innertubeContextGeoLocation,clientName:O.innertubeContextClientName,clientVersion:O.innertubeContextClientVersion,configInfo:O.innertubeContextClientConfigInfo}};navigator.userAgent&&(m.client.userAgent=String(navigator.userAgent));var G=_.Qf.devicePixelRatio;G&&G!=1&&(m.client.screenDensityFloat=String(G));G=kCs();G!==""&&(m.client.experimentsToken=G);G=yKe();G.length>0&&(m.request={internalExperimentFlags:G});ZfS(O,void 0,m);
zaz(void 0,m);JVS(void 0,m);Vw6(O,void 0,m);bfs(void 0,m);_.V("start_client_gcf")&&nHs(void 0,m);_.kB("DELEGATED_SESSION_ID")&&!_.V("pageid_as_header_web")&&(m.user={onBehalfOfUser:_.kB("DELEGATED_SESSION_ID")});!_.V("fill_delegate_context_in_gel_killswitch")&&(O=_.kB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(m.user=Object.assign({},m.user,{serializedDelegationContext:O}));O=_.kB("INNERTUBE_CONTEXT");var B;if(_.V("enable_persistent_device_token")&&(O==null?0:(B=O.client)==null?0:B.rolloutToken)){var Q;
m.client.rolloutToken=O==null?void 0:(Q=O.client)==null?void 0:Q.rolloutToken}B=Object;Q=B.assign;O=m.client;G={};for(var H=_.K(Object.entries(_.Px(_.kB("DEVICE","")))),M=H.next();!M.done;M=H.next()){var R=_.K(M.value);M=R.next().value;R=R.next().value;M==="cbrand"?G.deviceMake=R:M==="cmodel"?G.deviceModel=R:M==="cbr"?G.browserName=R:M==="cbrver"?G.browserVersion=R:M==="cos"?G.osName=R:M==="cosver"?G.osVersion=R:M==="cplatform"&&(G.platform=R)}m.client=Q.call(B,O,G);return m};
ZfS=function(O,m,G){O=O.innertubeContextClientName;if(O==="WEB"||O==="MWEB"||O===1||O===2)if(m){G=_.RO(m,fkS,96)||new fkS;var B=haS();B=Object.keys(THp).indexOf(B);B=B===-1?null:B;B!==null&&_.xG(G,3,B);_.Tc(m,96,G)}else G&&(G.client.mainAppWebInfo=(B=G.client.mainAppWebInfo)!=null?B:{},G.client.mainAppWebInfo.webDisplayMode=haS())};
zaz=function(O,m){var G=_.ex("yt.embedded_player.embed_url");G&&(O?(m=_.RO(O,gHN,7)||new gHN,_.SS(m,4,G),_.Tc(O,7,m)):m&&(m.thirdParty={embedUrl:G}))};
JVS=function(O,m){var G;if(_.V("web_log_memory_total_kbytes")&&((G=_.Qf.navigator)==null?0:G.deviceMemory)){var B;G=(B=_.Qf.navigator)==null?void 0:B.deviceMemory;O?_.qI(O,95,R3(G*1E6)):m&&(m.client.memoryTotalKbytes=""+G*1E6)}};
Vw6=function(O,m,G){if(O.appInstallData)if(m){var B;G=(B=_.RO(m,UO,62))!=null?B:new UO;_.SS(G,6,O.appInstallData);_.Tc(m,62,G)}else G&&(G.client.configInfo=G.client.configInfo||{},G.client.configInfo.appInstallData=O.appInstallData)};
bfs=function(O,m){var G=_.bsN();G&&(O?_.xG(O,61,us5[G]):m&&(m.client.connectionType=G));_.V("web_log_effective_connection_type")&&(G=XqO())&&(O?_.xG(O,94,jh6[G]):m&&(m.client.effectiveConnectionType=G))};
_.SKe=function(O,m,G){G=G===void 0?{}:G;var B={};_.kB("EOM_VISITOR_DATA")?B={"X-Goog-EOM-Visitor-Id":_.kB("EOM_VISITOR_DATA")}:B={"X-Goog-Visitor-Id":G.visitorData||_.kB("VISITOR_DATA","")};if(m&&m.includes("www.youtube-nocookie.com"))return B;m=G.authorization||_.kB("AUTHORIZATION");m||(O?m="Bearer "+_.ex("gapi.auth.getToken")().access_token:(IkO.instance||(IkO.instance=new IkO),O=pXN(),_.V("pageid_as_header_web")||delete O["X-Goog-PageId"],B=Object.assign({},B,O)));m&&(B.Authorization=m);return B};
nHs=function(O,m){var G=EHI();if(G){var B=G.coldConfigData,Q=G.coldHashData;G=G.hotHashData;if(O){var H;m=(H=_.RO(O,UO,62))!=null?H:new UO;B=_.SS(m,1,B);_.SS(B,3,Q).setHotHashData(G);_.Tc(O,62,m)}else m&&(m.client.configInfo=m.client.configInfo||{},B&&(m.client.configInfo.coldConfigData=B),Q&&(m.client.configInfo.coldHashData=Q),G&&(m.client.configInfo.hotHashData=G))}};
tv=function(O){for(var m=O.length;--m>=0;)O[m]=0};
LZY=function(O,m,G,B,Q){this.static_tree=O;this.extra_bits=m;this.extra_base=G;this.elems=B;this.max_length=Q;this.has_stree=O&&O.length};
CuS=function(O,m){this.dyn_tree=O;this.max_code=0;this.stat_desc=m};
WI=function(O,m){O.pending_buf[O.pending++]=m&255;O.pending_buf[O.pending++]=m>>>8&255};
ZD=function(O,m,G){O.bi_valid>16-G?(O.bi_buf|=m<<O.bi_valid&65535,WI(O,O.bi_buf),O.bi_buf=m>>16-O.bi_valid,O.bi_valid+=G-16):(O.bi_buf|=m<<O.bi_valid&65535,O.bi_valid+=G)};
zV=function(O,m,G){ZD(O,G[m*2],G[m*2+1])};
oHM=function(O,m){var G=0;do G|=O&1,O>>>=1,G<<=1;while(--m>0);return G>>>1};
lkO=function(O,m,G){var B=Array(16),Q=0,H;for(H=1;H<=15;H++)B[H]=Q=Q+G[H-1]<<1;for(G=0;G<=m;G++)Q=O[G*2+1],Q!==0&&(O[G*2]=oHM(B[Q]++,Q))};
akN=function(O){var m;for(m=0;m<286;m++)O.dyn_ltree[m*2]=0;for(m=0;m<30;m++)O.dyn_dtree[m*2]=0;for(m=0;m<19;m++)O.bl_tree[m*2]=0;O.dyn_ltree[512]=1;O.opt_len=O.static_len=0;O.last_lit=O.matches=0};
kLe=function(O){O.bi_valid>8?WI(O,O.bi_buf):O.bi_valid>0&&(O.pending_buf[O.pending++]=O.bi_buf);O.bi_buf=0;O.bi_valid=0};
yVN=function(O,m,G){kLe(O);WI(O,G);WI(O,~G);Jv.arraySet(O.pending_buf,O.window,m,G,O.pending);O.pending+=G};
cVN=function(O,m,G,B){var Q=m*2,H=G*2;return O[Q]<O[H]||O[Q]===O[H]&&B[m]<=B[G]};
YKf=function(O,m,G){for(var B=O.heap[G],Q=G<<1;Q<=O.heap_len;){Q<O.heap_len&&cVN(m,O.heap[Q+1],O.heap[Q],O.depth)&&Q++;if(cVN(m,B,O.heap[Q],O.depth))break;O.heap[G]=O.heap[Q];G=Q;Q<<=1}O.heap[G]=B};
shM=function(O,m,G){var B=0;if(O.last_lit!==0){do{var Q=O.pending_buf[O.d_buf+B*2]<<8|O.pending_buf[O.d_buf+B*2+1];var H=O.pending_buf[O.l_buf+B];B++;if(Q===0)zV(O,H,m);else{var M=VJ[H];zV(O,M+256+1,m);var R=dBI[M];R!==0&&(H-=wX6[M],ZD(O,H,R));Q--;M=Q<256?bn[Q]:bn[256+(Q>>>7)];zV(O,M,G);R=ear[M];R!==0&&(Q-=DBp[M],ZD(O,Q,R))}}while(B<O.last_lit)}zV(O,256,m)};
NHe=function(O,m){var G=m.dyn_tree,B=m.stat_desc.static_tree,Q=m.stat_desc.has_stree,H=m.stat_desc.elems,M,R=-1;O.heap_len=0;O.heap_max=573;for(M=0;M<H;M++)G[M*2]!==0?(O.heap[++O.heap_len]=R=M,O.depth[M]=0):G[M*2+1]=0;for(;O.heap_len<2;){var x=O.heap[++O.heap_len]=R<2?++R:0;G[x*2]=1;O.depth[x]=0;O.opt_len--;Q&&(O.static_len-=B[x*2+1])}m.max_code=R;for(M=O.heap_len>>1;M>=1;M--)YKf(O,G,M);x=H;do M=O.heap[1],O.heap[1]=O.heap[O.heap_len--],YKf(O,G,1),B=O.heap[1],O.heap[--O.heap_max]=M,O.heap[--O.heap_max]=
B,G[x*2]=G[M*2]+G[B*2],O.depth[x]=(O.depth[M]>=O.depth[B]?O.depth[M]:O.depth[B])+1,G[M*2+1]=G[B*2+1]=x,O.heap[1]=x++,YKf(O,G,1);while(O.heap_len>=2);O.heap[--O.heap_max]=O.heap[1];M=m.dyn_tree;x=m.max_code;B=m.stat_desc.static_tree;Q=m.stat_desc.has_stree;H=m.stat_desc.extra_bits;var t=m.stat_desc.extra_base,W=m.stat_desc.max_length,Z,z=0;for(Z=0;Z<=15;Z++)O.bl_count[Z]=0;M[O.heap[O.heap_max]*2+1]=0;for(m=O.heap_max+1;m<573;m++){var J=O.heap[m];Z=M[M[J*2+1]*2+1]+1;Z>W&&(Z=W,z++);M[J*2+1]=Z;if(!(J>
x)){O.bl_count[Z]++;var n=0;J>=t&&(n=H[J-t]);var I=M[J*2];O.opt_len+=I*(Z+n);Q&&(O.static_len+=I*(B[J*2+1]+n))}}if(z!==0){do{for(Z=W-1;O.bl_count[Z]===0;)Z--;O.bl_count[Z]--;O.bl_count[Z+1]+=2;O.bl_count[W]--;z-=2}while(z>0);for(Z=W;Z!==0;Z--)for(J=O.bl_count[Z];J!==0;)B=O.heap[--m],B>x||(M[B*2+1]!==Z&&(O.opt_len+=(Z-M[B*2+1])*M[B*2],M[B*2+1]=Z),J--)}lkO(G,R,O.bl_count)};
Pue=function(O,m,G){var B,Q=-1,H=m[1],M=0,R=7,x=4;H===0&&(R=138,x=3);m[(G+1)*2+1]=65535;for(B=0;B<=G;B++){var t=H;H=m[(B+1)*2+1];++M<R&&t===H||(M<x?O.bl_tree[t*2]+=M:t!==0?(t!==Q&&O.bl_tree[t*2]++,O.bl_tree[32]++):M<=10?O.bl_tree[34]++:O.bl_tree[36]++,M=0,Q=t,H===0?(R=138,x=3):t===H?(R=6,x=3):(R=7,x=4))}};
FZp=function(O,m,G){var B,Q=-1,H=m[1],M=0,R=7,x=4;H===0&&(R=138,x=3);for(B=0;B<=G;B++){var t=H;H=m[(B+1)*2+1];if(!(++M<R&&t===H)){if(M<x){do zV(O,t,O.bl_tree);while(--M!==0)}else t!==0?(t!==Q&&(zV(O,t,O.bl_tree),M--),zV(O,16,O.bl_tree),ZD(O,M-3,2)):M<=10?(zV(O,17,O.bl_tree),ZD(O,M-3,3)):(zV(O,18,O.bl_tree),ZD(O,M-11,7));M=0;Q=t;H===0?(R=138,x=3):t===H?(R=6,x=3):(R=7,x=4)}}};
AVY=function(O){var m=4093624447,G;for(G=0;G<=31;G++,m>>>=1)if(m&1&&O.dyn_ltree[G*2]!==0)return 0;if(O.dyn_ltree[18]!==0||O.dyn_ltree[20]!==0||O.dyn_ltree[26]!==0)return 1;for(G=32;G<256;G++)if(O.dyn_ltree[G*2]!==0)return 1;return 0};
np=function(O,m,G){O.pending_buf[O.d_buf+O.last_lit*2]=m>>>8&255;O.pending_buf[O.d_buf+O.last_lit*2+1]=m&255;O.pending_buf[O.l_buf+O.last_lit]=G&255;O.last_lit++;m===0?O.dyn_ltree[G*2]++:(O.matches++,m--,O.dyn_ltree[(VJ[G]+256+1)*2]++,O.dyn_dtree[(m<256?bn[m]:bn[256+(m>>>7)])*2]++);return O.last_lit===O.lit_bufsize-1};
fp=function(O,m){O.msg=XF[m];return m};
hv=function(O){for(var m=O.length;--m>=0;)O[m]=0};
TV=function(O){var m=O.state,G=m.pending;G>O.avail_out&&(G=O.avail_out);G!==0&&(Jv.arraySet(O.output,m.pending_buf,m.pending_out,G,O.next_out),O.next_out+=G,m.pending_out+=G,O.total_out+=G,O.avail_out-=G,m.pending-=G,m.pending===0&&(m.pending_out=0))};
ja=function(O,m){var G=O.block_start>=0?O.block_start:-1,B=O.strstart-O.block_start,Q=0;if(O.level>0){O.strm.data_type===2&&(O.strm.data_type=AVY(O));NHe(O,O.l_desc);NHe(O,O.d_desc);Pue(O,O.dyn_ltree,O.l_desc.max_code);Pue(O,O.dyn_dtree,O.d_desc.max_code);NHe(O,O.bl_desc);for(Q=18;Q>=3&&O.bl_tree[O7p[Q]*2+1]===0;Q--);O.opt_len+=3*(Q+1)+5+5+4;var H=O.opt_len+3+7>>>3;var M=O.static_len+3+7>>>3;M<=H&&(H=M)}else H=M=B+5;if(B+4<=H&&G!==-1)ZD(O,m?1:0,3),yVN(O,G,B);else if(O.strategy===4||M===H)ZD(O,2+(m?
1:0),3),shM(O,gY,un);else{ZD(O,4+(m?1:0),3);G=O.l_desc.max_code+1;B=O.d_desc.max_code+1;Q+=1;ZD(O,G-257,5);ZD(O,B-1,5);ZD(O,Q-4,4);for(H=0;H<Q;H++)ZD(O,O.bl_tree[O7p[H]*2+1],3);FZp(O,O.dyn_ltree,G-1);FZp(O,O.dyn_dtree,B-1);shM(O,O.dyn_ltree,O.dyn_dtree)}akN(O);m&&kLe(O);O.block_start=O.strstart;TV(O.strm)};
IO=function(O,m){O.pending_buf[O.pending++]=m};
pp=function(O,m){O.pending_buf[O.pending++]=m>>>8&255;O.pending_buf[O.pending++]=m&255};
mjN=function(O,m){var G=O.max_chain_length,B=O.strstart,Q=O.prev_length,H=O.nice_match,M=O.strstart>O.w_size-262?O.strstart-(O.w_size-262):0,R=O.window,x=O.w_mask,t=O.prev,W=O.strstart+258,Z=R[B+Q-1],z=R[B+Q];O.prev_length>=O.good_match&&(G>>=2);H>O.lookahead&&(H=O.lookahead);do{var J=m;if(R[J+Q]===z&&R[J+Q-1]===Z&&R[J]===R[B]&&R[++J]===R[B+1]){B+=2;for(J++;R[++B]===R[++J]&&R[++B]===R[++J]&&R[++B]===R[++J]&&R[++B]===R[++J]&&R[++B]===R[++J]&&R[++B]===R[++J]&&R[++B]===R[++J]&&R[++B]===R[++J]&&B<W;);
J=258-(W-B);B=W-258;if(J>Q){O.match_start=m;Q=J;if(J>=H)break;Z=R[B+Q-1];z=R[B+Q]}}}while((m=t[m&x])>M&&--G!==0);return Q<=O.lookahead?Q:O.lookahead};
EO=function(O){var m=O.w_size,G;do{var B=O.window_size-O.lookahead-O.strstart;if(O.strstart>=m+(m-262)){Jv.arraySet(O.window,O.window,m,m,0);O.match_start-=m;O.strstart-=m;O.block_start-=m;var Q=G=O.hash_size;do{var H=O.head[--Q];O.head[Q]=H>=m?H-m:0}while(--G);Q=G=m;do H=O.prev[--Q],O.prev[Q]=H>=m?H-m:0;while(--G);B+=m}if(O.strm.avail_in===0)break;Q=O.strm;G=O.window;H=O.strstart+O.lookahead;var M=Q.avail_in;M>B&&(M=B);M===0?G=0:(Q.avail_in-=M,Jv.arraySet(G,Q.input,Q.next_in,M,H),Q.state.wrap===
1?Q.adler=Gwr(Q.adler,G,M,H):Q.state.wrap===2&&(Q.adler=Sa(Q.adler,G,M,H)),Q.next_in+=M,Q.total_in+=M,G=M);O.lookahead+=G;if(O.lookahead+O.insert>=3)for(B=O.strstart-O.insert,O.ins_h=O.window[B],O.ins_h=(O.ins_h<<O.hash_shift^O.window[B+1])&O.hash_mask;O.insert&&!(O.ins_h=(O.ins_h<<O.hash_shift^O.window[B+3-1])&O.hash_mask,O.prev[B&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=B,B++,O.insert--,O.lookahead+O.insert<3););}while(O.lookahead<262&&O.strm.avail_in!==0)};
BXN=function(O,m){for(var G;;){if(O.lookahead<262){EO(O);if(O.lookahead<262&&m===0)return 1;if(O.lookahead===0)break}G=0;O.lookahead>=3&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+3-1])&O.hash_mask,G=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart);G!==0&&O.strstart-G<=O.w_size-262&&(O.match_length=mjN(O,G));if(O.match_length>=3)if(G=np(O,O.strstart-O.match_start,O.match_length-3),O.lookahead-=O.match_length,O.match_length<=O.max_lazy_match&&O.lookahead>=3){O.match_length--;
do O.strstart++,O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+3-1])&O.hash_mask,O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart;while(--O.match_length!==0);O.strstart++}else O.strstart+=O.match_length,O.match_length=0,O.ins_h=O.window[O.strstart],O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+1])&O.hash_mask;else G=np(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++;if(G&&(ja(O,!1),O.strm.avail_out===0))return 1}O.insert=O.strstart<2?O.strstart:2;return m===4?(ja(O,
!0),O.strm.avail_out===0?3:4):O.last_lit&&(ja(O,!1),O.strm.avail_out===0)?1:2};
Lp=function(O,m){for(var G,B;;){if(O.lookahead<262){EO(O);if(O.lookahead<262&&m===0)return 1;if(O.lookahead===0)break}G=0;O.lookahead>=3&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+3-1])&O.hash_mask,G=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart);O.prev_length=O.match_length;O.prev_match=O.match_start;O.match_length=2;G!==0&&O.prev_length<O.max_lazy_match&&O.strstart-G<=O.w_size-262&&(O.match_length=mjN(O,G),O.match_length<=5&&(O.strategy===1||O.match_length===3&&
O.strstart-O.match_start>4096)&&(O.match_length=2));if(O.prev_length>=3&&O.match_length<=O.prev_length){B=O.strstart+O.lookahead-3;G=np(O,O.strstart-1-O.prev_match,O.prev_length-3);O.lookahead-=O.prev_length-1;O.prev_length-=2;do++O.strstart<=B&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+3-1])&O.hash_mask,O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart);while(--O.prev_length!==0);O.match_available=0;O.match_length=2;O.strstart++;if(G&&(ja(O,!1),O.strm.avail_out===0))return 1}else if(O.match_available){if((G=
np(O,0,O.window[O.strstart-1]))&&ja(O,!1),O.strstart++,O.lookahead--,O.strm.avail_out===0)return 1}else O.match_available=1,O.strstart++,O.lookahead--}O.match_available&&(np(O,0,O.window[O.strstart-1]),O.match_available=0);O.insert=O.strstart<2?O.strstart:2;return m===4?(ja(O,!0),O.strm.avail_out===0?3:4):O.last_lit&&(ja(O,!1),O.strm.avail_out===0)?1:2};
Quf=function(O,m){for(var G,B,Q,H=O.window;;){if(O.lookahead<=258){EO(O);if(O.lookahead<=258&&m===0)return 1;if(O.lookahead===0)break}O.match_length=0;if(O.lookahead>=3&&O.strstart>0&&(B=O.strstart-1,G=H[B],G===H[++B]&&G===H[++B]&&G===H[++B])){for(Q=O.strstart+258;G===H[++B]&&G===H[++B]&&G===H[++B]&&G===H[++B]&&G===H[++B]&&G===H[++B]&&G===H[++B]&&G===H[++B]&&B<Q;);O.match_length=258-(Q-B);O.match_length>O.lookahead&&(O.match_length=O.lookahead)}O.match_length>=3?(G=np(O,1,O.match_length-3),O.lookahead-=
O.match_length,O.strstart+=O.match_length,O.match_length=0):(G=np(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++);if(G&&(ja(O,!1),O.strm.avail_out===0))return 1}O.insert=0;return m===4?(ja(O,!0),O.strm.avail_out===0?3:4):O.last_lit&&(ja(O,!1),O.strm.avail_out===0)?1:2};
H7f=function(O,m){for(var G;;){if(O.lookahead===0&&(EO(O),O.lookahead===0)){if(m===0)return 1;break}O.match_length=0;G=np(O,0,O.window[O.strstart]);O.lookahead--;O.strstart++;if(G&&(ja(O,!1),O.strm.avail_out===0))return 1}O.insert=0;return m===4?(ja(O,!0),O.strm.avail_out===0?3:4):O.last_lit&&(ja(O,!1),O.strm.avail_out===0)?1:2};
Cp=function(O,m,G,B,Q){this.good_length=O;this.max_lazy=m;this.nice_length=G;this.max_chain=B;this.func=Q};
vZ6=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 Jv.Buf16(1146);this.dyn_dtree=new Jv.Buf16(122);this.bl_tree=new Jv.Buf16(78);hv(this.dyn_ltree);hv(this.dyn_dtree);hv(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Jv.Buf16(16);this.heap=new Jv.Buf16(573);hv(this.heap);this.heap_max=this.heap_len=0;this.depth=new Jv.Buf16(573);hv(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};
K$f=function(O,m){if(!O||!O.state||m>5||m<0)return O?fp(O,-2):-2;var G=O.state;if(!O.output||!O.input&&O.avail_in!==0||G.status===666&&m!==4)return fp(O,O.avail_out===0?-5:-2);G.strm=O;var B=G.last_flush;G.last_flush=m;if(G.status===42)if(G.wrap===2)O.adler=0,IO(G,31),IO(G,139),IO(G,8),G.gzhead?(IO(G,(G.gzhead.text?1:0)+(G.gzhead.hcrc?2:0)+(G.gzhead.extra?4:0)+(G.gzhead.name?8:0)+(G.gzhead.comment?16:0)),IO(G,G.gzhead.time&255),IO(G,G.gzhead.time>>8&255),IO(G,G.gzhead.time>>16&255),IO(G,G.gzhead.time>>
24&255),IO(G,G.level===9?2:G.strategy>=2||G.level<2?4:0),IO(G,G.gzhead.os&255),G.gzhead.extra&&G.gzhead.extra.length&&(IO(G,G.gzhead.extra.length&255),IO(G,G.gzhead.extra.length>>8&255)),G.gzhead.hcrc&&(O.adler=Sa(O.adler,G.pending_buf,G.pending,0)),G.gzindex=0,G.status=69):(IO(G,0),IO(G,0),IO(G,0),IO(G,0),IO(G,0),IO(G,G.level===9?2:G.strategy>=2||G.level<2?4:0),IO(G,3),G.status=113);else{var Q=8+(G.w_bits-8<<4)<<8;Q|=(G.strategy>=2||G.level<2?0:G.level<6?1:G.level===6?2:3)<<6;G.strstart!==0&&(Q|=
32);G.status=113;pp(G,Q+(31-Q%31));G.strstart!==0&&(pp(G,O.adler>>>16),pp(G,O.adler&65535));O.adler=1}if(G.status===69)if(G.gzhead.extra){for(Q=G.pending;G.gzindex<(G.gzhead.extra.length&65535)&&(G.pending!==G.pending_buf_size||(G.gzhead.hcrc&&G.pending>Q&&(O.adler=Sa(O.adler,G.pending_buf,G.pending-Q,Q)),TV(O),Q=G.pending,G.pending!==G.pending_buf_size));)IO(G,G.gzhead.extra[G.gzindex]&255),G.gzindex++;G.gzhead.hcrc&&G.pending>Q&&(O.adler=Sa(O.adler,G.pending_buf,G.pending-Q,Q));G.gzindex===G.gzhead.extra.length&&
(G.gzindex=0,G.status=73)}else G.status=73;if(G.status===73)if(G.gzhead.name){Q=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>Q&&(O.adler=Sa(O.adler,G.pending_buf,G.pending-Q,Q)),TV(O),Q=G.pending,G.pending===G.pending_buf_size)){var H=1;break}H=G.gzindex<G.gzhead.name.length?G.gzhead.name.charCodeAt(G.gzindex++)&255:0;IO(G,H)}while(H!==0);G.gzhead.hcrc&&G.pending>Q&&(O.adler=Sa(O.adler,G.pending_buf,G.pending-Q,Q));H===0&&(G.gzindex=0,G.status=91)}else G.status=91;if(G.status===
91)if(G.gzhead.comment){Q=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>Q&&(O.adler=Sa(O.adler,G.pending_buf,G.pending-Q,Q)),TV(O),Q=G.pending,G.pending===G.pending_buf_size)){H=1;break}H=G.gzindex<G.gzhead.comment.length?G.gzhead.comment.charCodeAt(G.gzindex++)&255:0;IO(G,H)}while(H!==0);G.gzhead.hcrc&&G.pending>Q&&(O.adler=Sa(O.adler,G.pending_buf,G.pending-Q,Q));H===0&&(G.status=103)}else G.status=103;G.status===103&&(G.gzhead.hcrc?(G.pending+2>G.pending_buf_size&&TV(O),
G.pending+2<=G.pending_buf_size&&(IO(G,O.adler&255),IO(G,O.adler>>8&255),O.adler=0,G.status=113)):G.status=113);if(G.pending!==0){if(TV(O),O.avail_out===0)return G.last_flush=-1,0}else if(O.avail_in===0&&(m<<1)-(m>4?9:0)<=(B<<1)-(B>4?9:0)&&m!==4)return fp(O,-5);if(G.status===666&&O.avail_in!==0)return fp(O,-5);if(O.avail_in!==0||G.lookahead!==0||m!==0&&G.status!==666){B=G.strategy===2?H7f(G,m):G.strategy===3?Quf(G,m):oO[G.level].func(G,m);if(B===3||B===4)G.status=666;if(B===1||B===3)return O.avail_out===
0&&(G.last_flush=-1),0;if(B===2&&(m===1?(ZD(G,2,3),zV(G,256,gY),G.bi_valid===16?(WI(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):G.bi_valid>=8&&(G.pending_buf[G.pending++]=G.bi_buf&255,G.bi_buf>>=8,G.bi_valid-=8)):m!==5&&(ZD(G,0,3),yVN(G,0,0),m===3&&(hv(G.head),G.lookahead===0&&(G.strstart=0,G.block_start=0,G.insert=0))),TV(O),O.avail_out===0))return G.last_flush=-1,0}if(m!==4)return 0;if(G.wrap<=0)return 1;G.wrap===2?(IO(G,O.adler&255),IO(G,O.adler>>8&255),IO(G,O.adler>>16&255),IO(G,O.adler>>24&255),IO(G,
O.total_in&255),IO(G,O.total_in>>8&255),IO(G,O.total_in>>16&255),IO(G,O.total_in>>24&255)):(pp(G,O.adler>>>16),pp(G,O.adler&65535));TV(O);G.wrap>0&&(G.wrap=-G.wrap);return G.pending!==0?0:1};
$jM=function(O){if(!(this instanceof $jM))return new $jM(O);O=this.options=Jv.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},O||{});O.raw&&O.windowBits>0?O.windowBits=-O.windowBits:O.gzip&&O.windowBits>0&&O.windowBits<16&&(O.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Mip;this.strm.avail_out=0;var m=this.strm;var G=O.level,B=O.method,Q=O.windowBits,H=O.memLevel,M=O.strategy;if(m){var R=1;G===-1&&(G=6);Q<0?(R=0,Q=-Q):Q>15&&
(R=2,Q-=16);if(H<1||H>9||B!==8||Q<8||Q>15||G<0||G>9||M<0||M>4)m=fp(m,-2);else{Q===8&&(Q=9);var x=new vZ6;m.state=x;x.strm=m;x.wrap=R;x.gzhead=null;x.w_bits=Q;x.w_size=1<<x.w_bits;x.w_mask=x.w_size-1;x.hash_bits=H+7;x.hash_size=1<<x.hash_bits;x.hash_mask=x.hash_size-1;x.hash_shift=~~((x.hash_bits+3-1)/3);x.window=new Jv.Buf8(x.w_size*2);x.head=new Jv.Buf16(x.hash_size);x.prev=new Jv.Buf16(x.w_size);x.lit_bufsize=1<<H+6;x.pending_buf_size=x.lit_bufsize*4;x.pending_buf=new Jv.Buf8(x.pending_buf_size);
x.d_buf=x.lit_bufsize;x.l_buf=3*x.lit_bufsize;x.level=G;x.strategy=M;x.method=B;if(m&&m.state){m.total_in=m.total_out=0;m.data_type=2;G=m.state;G.pending=0;G.pending_out=0;G.wrap<0&&(G.wrap=-G.wrap);G.status=G.wrap?42:113;m.adler=G.wrap===2?0:1;G.last_flush=0;if(!rGO){B=Array(16);for(H=M=0;H<28;H++)for(wX6[H]=M,Q=0;Q<1<<dBI[H];Q++)VJ[M++]=H;VJ[M-1]=H;for(H=M=0;H<16;H++)for(DBp[H]=M,Q=0;Q<1<<ear[H];Q++)bn[M++]=H;for(M>>=7;H<30;H++)for(DBp[H]=M<<7,Q=0;Q<1<<ear[H]-7;Q++)bn[256+M++]=H;for(Q=0;Q<=15;Q++)B[Q]=
0;for(Q=0;Q<=143;)gY[Q*2+1]=8,Q++,B[8]++;for(;Q<=255;)gY[Q*2+1]=9,Q++,B[9]++;for(;Q<=279;)gY[Q*2+1]=7,Q++,B[7]++;for(;Q<=287;)gY[Q*2+1]=8,Q++,B[8]++;lkO(gY,287,B);for(Q=0;Q<30;Q++)un[Q*2+1]=5,un[Q*2]=oHM(Q,5);RSe=new LZY(gY,dBI,257,286,15);i7e=new LZY(un,ear,0,30,15);xjf=new LZY([],qcr,0,19,7);rGO=!0}G.l_desc=new CuS(G.dyn_ltree,RSe);G.d_desc=new CuS(G.dyn_dtree,i7e);G.bl_desc=new CuS(G.bl_tree,xjf);G.bi_buf=0;G.bi_valid=0;akN(G);G=0}else G=fp(m,-2);G===0&&(m=m.state,m.window_size=2*m.w_size,hv(m.head),
m.max_lazy_match=oO[m.level].max_lazy,m.good_match=oO[m.level].good_length,m.nice_match=oO[m.level].nice_length,m.max_chain_length=oO[m.level].max_chain,m.strstart=0,m.block_start=0,m.lookahead=0,m.insert=0,m.match_length=m.prev_length=2,m.match_available=0,m.ins_h=0);m=G}}else m=-2;if(m!==0)throw Error(XF[m]);O.header&&(m=this.strm)&&m.state&&m.state.wrap===2&&(m.state.gzhead=O.header);if(O.dictionary){var t;typeof O.dictionary==="string"?t=UjS(O.dictionary):ti5.call(O.dictionary)==="[object ArrayBuffer]"?
t=new Uint8Array(O.dictionary):t=O.dictionary;O=this.strm;H=t;M=H.length;if(O&&O.state)if(t=O.state,m=t.wrap,m===2||m===1&&t.status!==42||t.lookahead)m=-2;else{m===1&&(O.adler=Gwr(O.adler,H,M,0));t.wrap=0;M>=t.w_size&&(m===0&&(hv(t.head),t.strstart=0,t.block_start=0,t.insert=0),G=new Jv.Buf8(t.w_size),Jv.arraySet(G,H,M-t.w_size,t.w_size,0),H=G,M=t.w_size);G=O.avail_in;B=O.next_in;Q=O.input;O.avail_in=M;O.next_in=0;O.input=H;for(EO(t);t.lookahead>=3;){H=t.strstart;M=t.lookahead-2;do t.ins_h=(t.ins_h<<
t.hash_shift^t.window[H+3-1])&t.hash_mask,t.prev[H&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=H,H++;while(--M);t.strstart=H;t.lookahead=2;EO(t)}t.strstart+=t.lookahead;t.block_start=t.strstart;t.insert=t.lookahead;t.lookahead=0;t.match_length=t.prev_length=2;t.match_available=0;O.next_in=B;O.input=Q;O.avail_in=G;t.wrap=m;m=0}else m=-2;if(m!==0)throw Error(XF[m]);this._dict_set=!0}};
W$f=function(O,m){m=m||{};m.gzip=!0;m=new $jM(m);m.push(O,!0);if(m.err)throw m.msg||XF[m.err];return m.result};
zSO=function(O,m){var G=Z7r();G&&G.publish.call(G,O.toString(),O,m)};
XC5=function(O,m,G){var B=Z7r();if(!B)return 0;var Q=B.subscribe(O.toString(),function(H,M){var R=_.ex("ytPubsub2Pubsub2SkipSubKey");R&&R==Q||(R=function(){if(JGs[Q])try{if(M&&O instanceof ViY&&O!=H)try{var x=O.dataClass,t=M;if(!t.args||!t.version)throw Error("$c");try{if(!x.version_){var W=new x;x.version_=W.version}var Z=x.version_}catch(z){}if(!Z||t.version!=Z)throw Error("ad");try{M=Reflect.construct(x,_.cM(t.args))}catch(z){throw z.message="yt.pubsub2.Data.deserialize(): "+z.message,z;}}catch(z){throw z.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+O.toString()+": "+z.message,z;}m.call(G||window,M)}catch(z){_.di(z)}},b7p[O.toString()]?_.ex("yt.scheduler.instance")?_.ln.addLowPriorityJob(R):_.W7(R,0):R())});
JGs[Q]=!0;nZI[O.toString()]||(nZI[O.toString()]=[]);nZI[O.toString()].push(Q);return Q};
gZN=function(){var O=fOO,m=XC5(hSp,function(G){O.apply(void 0,arguments);TX6(m)});
return m};
TX6=function(O){var m=Z7r();m&&(typeof O==="number"&&(O=[O]),_.Nr(O,function(G){m.unsubscribeByKey(G);delete JGs[G]}))};
Z7r=function(){return _.ex("ytPubsub2Pubsub2Instance")};
uVN=function(O,m,G){G=G===void 0?{sampleRate:.1}:G;Math.random()<Math.min(.02,G.sampleRate/100)&&zSO("meta_logging_csi_event",{timerName:O,timelineData:m})};
_.ju5=function(O){return O?(O=O.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.vi(O):null:null};
_.aO=function(O){return O?(O=O.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.p9(O):null:null};
pCY=function(){IOS||(IOS=_.aO(_.kB("WORKER_SERIALIZATION_URL")));return IOS||void 0};
_.EZf=function(){var O=pCY();ScN||O===void 0||(ScN=new Worker(_.Eh(O),void 0));return ScN};
_.L$O=function(){return typeof Worker==="function"&&pCY()?!0:!1};
_.aOp=function(){if(_.L$O()&&!CcI){var O=function(G){G=G.data;if(G.op==="gzippedGelBatch"){var B=oZI.get(G.key);B&&(lO6(G.gzippedBatch,B.latencyPayload,B.url,B.options,B.sendFn),oZI.delete(G.key))}},m=_.EZf();
m&&(m.addEventListener("message",O),m.onerror=function(){oZI.clear()},CcI=!0)}};
eSf=function(O,m,G,B,Q){Q=Q===void 0?!1:Q;var H={startTime:(0,_.$G)(),ticks:{},infos:{}};if(kG)try{var M=kwS(m);if(M!=null&&(M>yGe||M<cG6))B(O,G);else{if(_.V("gzip_gel_with_worker")&&(_.V("initial_gzip_use_main_thread")&&!Ycp||!_.V("initial_gzip_use_main_thread"))){CcI||_.aOp();var R=_.EZf();if(R&&!Q){oZI.set(djN,{latencyPayload:H,url:O,options:G,sendFn:B});R.postMessage({op:"gelBatchToGzip",serializedBatch:m,key:djN});djN++;return}}var x=W$f(wCz(m));lO6(x,H,O,G,B)}}catch(t){_.Dy(t),B(O,G)}else B(O,
G)};
lO6=function(O,m,G,B,Q){Ycp=!1;var H=(0,_.$G)();m.ticks.gelc=H;yJ++;_.V("disable_compression_due_to_performance_degredation")&&H-m.startTime>=DjO&&(sue++,_.V("abandon_compression_after_N_slow_zips")?yJ===_.Rd("compression_disable_point")&&sue>NXI&&(kG=!1):kG=!1);PcN(m);B.headers||(B.headers={});B.headers["Content-Encoding"]="gzip";B.postBody=O;B.postParams=void 0;Q(G,B)};
F$s=function(O){var m=m===void 0?!1:m;var G=G===void 0?!1:G;var B=(0,_.$G)(),Q={startTime:B,ticks:{},infos:{}},H=m?_.ex("yt.logging.gzipForFetch",!1):!0;if(kG&&H){if(!O.body)return O;try{var M=G?O.body:typeof O.body==="string"?O.body:JSON.stringify(O.body);H=M;if(!G&&typeof M==="string"){var R=kwS(M);if(R!=null&&(R>yGe||R<cG6))return O;G=m?{level:1}:void 0;H=W$f(wCz(M),G);var x=(0,_.$G)();Q.ticks.gelc=x;if(m){yJ++;if((_.V("disable_compression_due_to_performance_degredation")||_.V("disable_compression_due_to_performance_degradation_lr"))&&
x-B>=DjO)if(sue++,_.V("abandon_compression_after_N_slow_zips")||_.V("abandon_compression_after_N_slow_zips_lr")){m=sue/yJ;var t=NXI/_.Rd("compression_disable_point");yJ>0&&yJ%_.Rd("compression_disable_point")===0&&m>=t&&(kG=!1)}else kG=!1;PcN(Q)}}O.headers=Object.assign({},{"Content-Encoding":"gzip"},O.headers||{});O.body=H;return O}catch(W){return _.Dy(W),O}}else return O};
kwS=function(O){try{return(new Blob(O.split(""))).size}catch(m){return _.Dy(m),null}};
PcN=function(O){_.V("gel_compression_csi_killswitch")||!_.V("log_gel_compression_latency")&&!_.V("log_gel_compression_latency_lr")||uVN("gel_compression",O,{sampleRate:.1})};
AGI=function(){this.blockSize=-1};
cI=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var O=1;O<this.blockSize;++O)this.pad_[O]=0;this.total_=this.inbuf_=0;this.reset()};
mNN=function(O){O=Object.assign({},O);delete O.Authorization;var m=_.OmO();if(m){var G=new cI;G.update(_.kB("INNERTUBE_API_KEY"));G.update(m);O.hash=_.pB(G.digest(),3)}return O};
dY=function(){GSS||(GSS=new _.YG("yt.innertube"));return GSS};
Buf=function(O,m,G,B){if(B)return null;B=dY().get("nextId",!0)||1;var Q=dY().get("requests",!0)||{};Q[B]={method:O,request:m,authState:mNN(G),requestTime:Math.round((0,_.$G)())};dY().set("nextId",B+1,86400,!0);dY().set("requests",Q,86400,!0);return B};
Qpr=function(O){var m=dY().get("requests",!0)||{};delete m[O];dY().set("requests",m,86400,!0)};
vn6=function(O){var m=dY().get("requests",!0);if(m){for(var G in m){var B=m[G];if(!(Math.round((0,_.$G)())-B.requestTime<6E4)){var Q=B.authState,H=mNN(_.SKe(!1));_.aM.equals(Q,H)&&(Q=B.request,"requestTimeMs"in Q&&(Q.requestTimeMs=Math.round((0,_.$G)())),Hm5(O,B.method,Q,{}));delete m[G]}}dY().set("requests",m,86400,!0)}};
Kpz=function(O){var m;return(O=O==null?void 0:(m=O.error)==null?void 0:m.code)&&O>=400&&O<=599?!1:!0};
$Nf=function(O){var m;O=O==null?void 0:(m=O.error)==null?void 0:m.code;return!(O!==400&&O!==415)};
r1N=function(){if(Mg6)return Mg6();var O={};Mg6=Kp("LogsDatabaseV2",{objectStores:(O.LogsRequestsStore={addedAtVersion:2},O),shared:!1,upgrade:function(m,G,B){G(2)&&wY(m,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});G(3);G(5)&&(B=B.objectStore("LogsRequestsStore"),B.JSC$10684_wrapped.indexNames.contains("newRequest")&&B.JSC$10684_wrapped.deleteIndex("newRequest"),ea(B,"newRequestV2",["status","interface","timestamp"]));G(7)&&m.JSC$10669_wrapped.objectStoreNames.contains("sapisid")&&m.JSC$10669_wrapped.deleteObjectStore("sapisid");
G(9)&&m.JSC$10669_wrapped.objectStoreNames.contains("SWHealthLog")&&m.JSC$10669_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Mg6()};
DD=function(O){return _.AE(r1N(),O)};
imN=function(O,m){var G,B,Q,H;return _.r(function(M){if(M.nextAddress==1)return G={startTime:(0,_.$G)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},M.yield(DD(m),2);if(M.nextAddress!=3)return B=M.yieldResult,Q=Object.assign({},O,{options:JSON.parse(JSON.stringify(O.options)),interface:_.kB("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),M.yield(B.put("LogsRequestsStore",Q),3);H=M.yieldResult;G.ticks.tc=(0,_.$G)();RBY(G);return M.return(H)})};
xNN=function(O,m){var G,B,Q,H,M,R,x,t,W;return _.r(function(Z){if(Z.nextAddress==1)return G={startTime:(0,_.$G)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},Z.yield(DD(m),2);if(Z.nextAddress!=3)return B=Z.yieldResult,Q=_.kB("INNERTUBE_CONTEXT_CLIENT_NAME",0),H=[O,Q,0],M=[O,Q,(0,_.$G)()],R=IDBKeyRange.bound(H,M),x="prev",_.V("use_fifo_for_networkless")&&(x="next"),t=void 0,W=O==="NEW"?"readwrite":"readonly",_.V("use_readonly_for_get_most_recent_by_status_killswitch")&&(W="readwrite"),
Z.yield(_.OO(B,["LogsRequestsStore"],{mode:W,enableRetries:!0},function(z){return _.MI(z.objectStore("LogsRequestsStore").index("newRequestV2"),{query:R,direction:x},function(J){J.getValue()&&(t=J.getValue(),O==="NEW"&&(t.status="QUEUED",J.update(t)))})}),3);
G.ticks.tc=(0,_.$G)();RBY(G);return Z.return(t)})};
qzI=function(O,m){var G;return _.r(function(B){if(B.nextAddress==1)return B.yield(DD(m),2);G=B.yieldResult;return B.return(_.OO(G,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){var H=Q.objectStore("LogsRequestsStore");return H.get(O).then(function(M){if(M)return M.status="QUEUED",H.put(M).then(function(){return M})})}))})};
UNI=function(O,m,G,B){G=G===void 0?!0:G;var Q;return _.r(function(H){if(H.nextAddress==1)return H.yield(DD(m),2);Q=H.yieldResult;return H.return(_.OO(Q,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(M){var R=M.objectStore("LogsRequestsStore");return R.get(O).then(function(x){return x?(x.status="NEW",G&&(x.sendCount+=1),B!==void 0&&(x.options.compress=B),R.put(x).then(function(){return x})):wI.resolve(void 0)})}))})};
tgI=function(O,m){var G;return _.r(function(B){if(B.nextAddress==1)return B.yield(DD(m),2);G=B.yieldResult;return B.return(G.delete("LogsRequestsStore",O))})};
Wps=function(O){var m,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(DD(O),2);m=B.yieldResult;G=(0,_.$G)()-2592E6;return B.yield(_.OO(m,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Q){return GV(Q.objectStore("LogsRequestsStore"),{},function(H){if(H.getValue().timestamp<=G)return H.delete().then(function(){return H.continue()})})}),0)})};
ZmI=function(){_.r(function(O){return O.yield(KZS("LogsDatabaseV2"),0)})};
RBY=function(O){_.V("nwl_csi_killswitch")||uVN("networkless_performance",O,{sampleRate:1})};
_.J1M=function(O){return _.AE(zBN(),O)};
Vgp=function(O){var m,G;_.r(function(B){if(B.nextAddress==1)return B.yield(_.J1M(O),2);m=B.yieldResult;G=(0,_.$G)()-2592E6;return B.yield(_.OO(m,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(Q){return GV(Q.objectStore("SWHealthLog"),{},function(H){if(H.getValue().timestamp<=G)return H.delete().then(function(){return H.continue()})})}),0)})};
bmI=function(O){var m;return _.r(function(G){if(G.nextAddress==1)return G.yield(_.J1M(O),2);m=G.yieldResult;return G.yield(m.clear("SWHealthLog"),0)})};
_.sO=function(O,m,G,B,Q,H,M){Q=Q===void 0?"":Q;H=H===void 0?!1:H;M=M===void 0?!1:M;if(O)if(G&&!yb("cobalt"))_.Dy(new _.j9("Legacy referrer-scrubbed ping detected")),O&&nnp(O,void 0,{scrubReferrer:!0});else if(Q)NrI(O,m,"POST",Q,B);else if(_.kB("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||B||M)NrI(O,m,"GET","",B,void 0,H,M);else{b:{try{c:{var R=new XEY({url:O});if(R.urlParamValues_.dsh==="1")var x=null;else{var t=R.urlParamValues_.ae;if(t==="1"){var W=R.urlParamValues_.adurl;if(W)try{x={version:3,directUrl:decodeURIComponent(W),
asyncUrl:h25(R.JSC$9477_url_,"act=1","ri=1",fBr(R))};break c}catch(n){}}x=t==="2"?{version:4,directUrl:h25(R.JSC$9477_url_,"dct=1","suid="+R.suid_,""),asyncUrl:h25(R.JSC$9477_url_,"act=1","ri=1","suid="+R.suid_)}:null}}if(x){var Z=_.JE(O);var z=!(!Z||!Z.endsWith("/aclk")||_.s0(O,"ri")!=="1");break b}}catch(n){}z=!1}if(z){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(O,"")){var J=!0;break b}}catch(n){}J=!1}J?(m&&m(),G=!0):G=!1}else G=!1;G||nnp(O,m)}};
nnp=function(O,m,G){G=G===void 0?{}:G;var B=new Image,Q=""+hB5++;Tup[Q]=B;B.onload=B.onerror=function(){m&&Tup[Q]&&m();delete Tup[Q]};
G.scrubReferrer&&(B.referrerPolicy="no-referrer");B.src=O};
NI=function(O,m){gnM(O,m==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
uJN=function(O){var m;return((m=document.featurePolicy)==null?0:m.allowedFeatures().includes("attribution-reporting"))?O+"&nis=6":O+"&nis=5"};
jpz=function(O){if(!O)return!1;try{var m;if(((m=_.Px(O))==null?void 0:m.asm)==="4")return!0}catch(G){_.di(G)}return!1};
gnM=function(O,m){m?(O=uJN(O),_.sO(O,void 0,void 0,void 0,"",!0,!0)):_.sO(O)};
pEe=function(){IBp||(IBp=new _.YG("yt.offline"));return IBp};
Sz6=function(O){if(_.V("offline_error_handling")){var m=pEe().get("errors",!0)||{};m[O.message]={name:O.name,stack:O.stack};O.level&&(m[O.message].level=O.level);pEe().set("errors",m,2592E3,!0)}};
Lpf=function(O,m,G,B){B=B===void 0?!1:B;m=_.V("web_fp_via_jspb")?Object.assign({},m):m;_.V("use_cfr_monitor")&&EnO(O,m);if(_.V("use_request_time_ms_header"))m.headers&&Qb(O)&&(m.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.$G)())));else{var Q;if((Q=m.postParams)==null?0:Q.requestTimeMs)m.postParams.requestTimeMs=Math.round((0,_.$G)())}G&&Object.keys(m).length===0?_.sO(O):m.compress?m.postBody?(typeof m.postBody!=="string"&&(m.postBody=JSON.stringify(m.postBody)),eSf(O,m.postBody,
m,_.Vb,B)):eSf(O,JSON.stringify(m.postParams),m,Osz,B):_.Vb(O,m)};
CKr=function(O,m){_.V("use_event_time_ms_header")&&Qb(O)&&(m.headers||(m.headers={}),m.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.$G)())));return m};
_.lBN=function(){onN||(onN=new _.PI({logOfflineErrors:!0,enablePolling:!0}));return onN};
EnO=function(O,m){var G=m.onError?m.onError:function(){};
m.onError=function(Q,H){FF().requestComplete(O,!1);G(Q,H)};
var B=m.onSuccess?m.onSuccess:function(){};
m.onSuccess=function(Q,H){FF().requestComplete(O,!0);B(Q,H)}};
_.aB5=function(){return _.Gg(document.location.toString())!=="www.youtube-nocookie.com"};
_.c1e=function(){return _.ex("ytNetworklessLoggingInitializationOptions")?_.kSf.isNwlInitialized:_.y1I};
Yzp=function(O,m){if(_.V("polymer_on_demand_shady_dom")){var G;var B=(G=O.__shady_native_firstElementChild)!=null?G:O.firstElementChild}else B=O.firstElementChild;for(;B;){if(O=m(B)?B:Yzp(B,m))return O;B=B.nextElementSibling}return null};
wE6=function(){var O=document;if("visibilityState"in O)return O.visibilityState;var m=dNI+"VisibilityState";if(m in O)return O[m]};
_.eBN=function(O,m){var G;Av(O,function(B){G=m[B];return!!G});
return G};
_.mP=function(O){var m=DNp(O);m?m.focus(void 0):_.OJ(O)};
DNp=function(O){return(O=Yzp(O,function(m){return _.GH(m)?spr(m)&&!!m.offsetParent:!1}))?O:null};
_.OJ=function(O,m){O.hasAttribute("tabindex")||O.setAttribute("tabindex","-1");O.focus(m)};
Nue=function(O,m,G,B){B=B===void 0?{}:B;O.addEventListener&&(m!="mouseenter"||"onmouseenter"in document?m!="mouseleave"||"onmouseenter"in document?m=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(m="MozMousePixelScroll"):m="mouseout":m="mouseover");return _.aM.findKey(BH,function(Q){var H=typeof Q[4]==="boolean"&&Q[4]==!!B,M=_.Dp(Q[4])&&_.Dp(B)&&_.aM.equals(Q[4],B);return!!Q.length&&Q[0]==O&&Q[1]==m&&Q[2]==G&&(H||M)})};
_.HH=function(O,m,G,B){B=B===void 0?{}:B;if(!O||!O.addEventListener&&!O.attachEvent)return"";var Q=Nue(O,m,G,B);if(Q)return Q;Q=++PKO.count+"";var H=!(m!="mouseenter"&&m!="mouseleave"||!O.addEventListener||"onmouseenter"in document);var M=H?function(R){R=new QT(R);if(!_.w9(R.relatedTarget,function(x){return x==O},!0))return R.currentTarget=O,R.type=m,G.call(O,R)}:function(R){R=new QT(R);
R.currentTarget=O;return G.call(O,R)};
M=_.wi(M);O.addEventListener?(m=="mouseenter"&&H?m="mouseover":m=="mouseleave"&&H?m="mouseout":m=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(m="MozMousePixelScroll"),FpI()||typeof B==="boolean"?O.addEventListener(m,M,B):O.addEventListener(m,M,!!B.capture)):O.attachEvent("on"+m,M);BH[Q]=[O,m,G,M,B];return Q};
_.OHS=function(O,m,G){var B=B===void 0?{}:B;var Q=_.HH(O,m,function(){_.A1p(Q);G.apply(O,arguments)},B)};
_.A1p=function(O){O&&(typeof O=="string"&&(O=[O]),_.Nr(O,function(m){if(m in BH){var G=BH[m],B=G[0],Q=G[1],H=G[3];G=G[4];B.removeEventListener?FpI()||typeof G==="boolean"?B.removeEventListener(Q,H,G):B.removeEventListener(Q,H,!!G.capture):B.detachEvent&&B.detachEvent("on"+Q,H);delete BH[m]}}))};
vH=function(O){this.callback_=O;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(O=0;O<4;O++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.HH(window,"mousemove",(0,_.pd)(this.onMouseMove_,this));this.timerId_=_.Zg((0,_.pd)(this.checkPosition_,this),25)};
BgN=function(){var O={};var m=O.preferMobileEvents===void 0?!1:O.preferMobileEvents;O=O.enableScrollEventListener===void 0?!0:O.enableScrollEventListener;if(_.ex("_lact",window)==null){var G=parseInt(_.kB("LACT"),10);G=isFinite(G)?Date.now()-Math.max(G,0):-1;_.HI("_lact",G,window);_.HI("_fact",G,window);G==-1&&_.KE();mip(window,m,O);new vH(function(){G$f("mouse",100)})}};
mip=function(O,m,G){m=m===void 0?!1:m;G=G===void 0?!0:G;_.HH(O.document,"keydown",_.KE);_.HH(O.document,"keyup",_.KE);_.HH(O.document,"mousedown",_.KE);_.HH(O.document,"mouseup",_.KE);m?_.HH(O,"touchmove",function(){G$f("touchmove",200)},{passive:!0}):(_.HH(O,"resize",function(){G$f("resize",200)}),G&&_.HH(O,"scroll",function(){G$f("scroll",200)}));
_.HH(O.document,"touchstart",_.KE,{passive:!0});_.HH(O.document,"touchend",_.KE,{passive:!0})};
G$f=function(O,m){QZI[O]||(QZI[O]=!0,_.ln.addLowPriorityJob(function(){_.KE();QZI[O]=!1},m))};
_.KE=function(){_.ex("_lact",window)==null&&BgN();var O=Date.now();_.HI("_lact",O,window);_.ex("_fact",window)==-1&&_.HI("_fact",O,window);(O=_.ex("ytglobal.ytUtilActivityCallback_"))&&O()};
_.MT=function(){var O=_.ex("_lact",window);return O==null?-1:Math.max(Date.now()-O,0)};
_.xt=function(O,m,G){var B=_.rE();if(B&&m){var Q=B.subscribe(O,function(){var H=arguments,M=function(){Ry[Q]&&m.apply&&typeof m.apply=="function"&&m.apply(G||window,H)};
try{_.HHY[O]?M():_.W7(M,0)}catch(R){_.di(R)}},G);
Ry[Q]=!0;iT[O]||(iT[O]=[]);iT[O].push(Q);return Q}return 0};
_.vgS=function(O){var m=_.rE();m&&(typeof O==="number"?O=[O]:typeof O==="string"&&(O=[parseInt(O,10)]),_.Nr(O,function(G){m.unsubscribeByKey(G);delete Ry[G]}))};
_.KwS=function(O,m){var G=_.rE();G&&G.publish.apply(G,arguments)};
_.MVI=function(O){var m=_.rE();if(m)if(m.clear(O),O)$is(O);else for(var G in iT)$is(G)};
_.rE=function(){return _.Qf.ytPubsubPubsubInstance};
$is=function(O){iT[O]&&(O=iT[O],_.Nr(O,function(m){Ry[m]&&delete Ry[m]}),O.length=0)};
rHz=function(){var O,m;return"h5vcc"in qT&&((O=qT.h5vcc.traceEvent)==null?0:O.traceBegin)&&((m=qT.h5vcc.traceEvent)==null?0:m.traceEnd)?1:"performance"in qT&&qT.performance.mark&&qT.performance.measure?2:0};
R$e=function(O){var m=rHz();switch(m){case 1:qT.h5vcc.traceEvent.traceBegin("YTLR",O);break;case 2:qT.performance.mark(O+"-start");break;case 0:break;default:_.d8(m,"unknown trace type")}};
iHz=function(O){var m=rHz();switch(m){case 1:qT.h5vcc.traceEvent.traceEnd("YTLR",O);break;case 2:m=O+"-start";var G=O+"-end";qT.performance.mark(G);qT.performance.measure(O,m,G);break;case 0:break;default:_.d8(m,"unknown trace type")}};
xi6=function(O){var m,G;(G=(m=window).onerror)==null||G.call(m,O.message,"",0,0,O)};
qf5=function(O){if(_.V("web_lifecycle_error_handling_killswitch"))return O();try{return O()}catch(m){xi6(m)}};
UiS=function(O){return[O.auth===void 0?"undefined":O.auth,O.isJspb===void 0?"undefined":O.isJspb,O.cttAuthInfo===void 0?"undefined":O.cttAuthInfo,O.tier===void 0?"undefined":O.tier].join("/")};
_.b=function(O,m){if(O)return O[m.name]};
tl=function(){var O=_.ex("yt.logging.ims");O||(O=new UJ,_.HI("yt.logging.ims",O));return O};
X66=function(O,m){if(O.endpoint==="log_event"){tV6(O);var G=Wwp(O),B=ZHY(O.payload)||"",Q=z$5(B),H=200;if(Q){if(Q.enabled===!1&&!_.V("web_payload_policy_disabled_killswitch"))return;H=JHN(Q.tier);if(H===400){VVI(O,m);return}}WH[G]=!0;G={cttAuthInfo:G,isJspb:!1,tier:H};tl().storePayload(G,O.payload);bHz(m,!1,G,ngI(B))}};
h$5=function(O,m,G){if(m.endpoint==="log_event"){tV6(void 0,m);var B=Wwp(m,!0),Q=z$5(O),H=200;if(Q){if(Q.enabled===!1&&!_.V("web_payload_policy_disabled_killswitch"))return;H=JHN(Q.tier);if(H===400){fwf(O,m,G);return}}WH[B]=!0;B={cttAuthInfo:B,isJspb:!0,tier:H};tl().storePayload(B,CB(m.payload));bHz(G,!0,B,ngI(O))}};
bHz=function(O,m,G,B){m=m===void 0?!1:m;B=B===void 0?!1:B;O&&(Zb=new O);O=_.Rd("tvhtml5_logging_max_batch_ads_fork")||_.Rd("tvhtml5_logging_max_batch")||_.Rd("web_logging_max_batch")||100;var Q=(0,_.$G)(),H=Tgz(m,G.tier),M=H.lastDebounceQueueFromLogTimeMs;B&&(H.useVideoStatsEndPoint=!0);B=0;G&&(B=tl().getSequenceCount(G));var R=function(){ggp({writeThenSend:!0},m,G.tier)};
B>=1E3?R():B>=O?uw6||(uw6=jZf(function(){R();uw6=void 0},0)):Q-M>=10&&(Iws(m,G.tier),H.lastDebounceQueueFromLogTimeMs=Q)};
VVI=function(O,m){if(O.endpoint==="log_event"){_.V("more_accurate_gel_parser")&&tl().storePayload({isJspb:!1},O.payload);tV6(O);var G=Wwp(O),B=new Map;B.set(G,[O.payload]);var Q=ZHY(O.payload)||"";m&&(Zb=new m);return new _.zH(function(H,M){Zb&&Zb.isReady()?p66(B,Zb,H,M,{bypassNetworkless:!0},!0,ngI(Q)):H()})}};
fwf=function(O,m,G){if(m.endpoint==="log_event"){tV6(void 0,m);var B=Wwp(m,!0),Q=new Map;Q.set(B,[CB(m.payload)]);G&&(Zb=new G);return new _.zH(function(H){Zb&&Zb.isReady()?Sff(Q,Zb,H,{bypassNetworkless:!0},!0,ngI(O)):H()})}};
Wwp=function(O,m){var G="";if(O.dangerousLogToVisitorSession)G="visitorOnlyApprovedKey";else if(O.cttAuthInfo){if(m===void 0?0:m){m=O.cttAuthInfo.token;G=O.cttAuthInfo;var B=new EgY;G.videoId?B.setVideoId(G.videoId):G.playlistId&&Jl(B,2,LwM,Vr(G.playlistId));CE6[m]=B}else m=O.cttAuthInfo,G={},m.videoId?G.videoId=m.videoId:m.playlistId&&(G.playlistId=m.playlistId),ogO[O.cttAuthInfo.token]=G;G=O.cttAuthInfo.token}return G};
ggp=function(O,m,G){O=O===void 0?{}:O;m=m===void 0?!1:m;new _.zH(function(B,Q){var H=Tgz(m,G),M=H.useVideoStatsEndPoint;H.useVideoStatsEndPoint=!1;lwM(H.queueTimer);lwM(H.queueMaxTimer);H.queueMaxTimer=0;Zb&&Zb.isReady()?G===void 0&&_.V("enable_web_tiered_gel")?aw5(B,Q,O,m,300,M):aw5(B,Q,O,m,G,M):(Iws(m,G),B())})};
aw5=function(O,m,G,B,Q,H){var M=Zb;G=G===void 0?{}:G;B=B===void 0?!1:B;Q=Q===void 0?200:Q;H=H===void 0?!1:H;var R=new Map,x=new Map,t={isJspb:B,cttAuthInfo:void 0,tier:Q},W={isJspb:B,cttAuthInfo:void 0};if(B){m=_.K(Object.keys(WH));for(Q=m.next();!Q.done;Q=m.next())Q=Q.value,x=_.V("enable_web_tiered_gel")?tl().smartExtractMatchingEntries({keys:[t,W],sizeLimit:1E3}):tl().extractMatchingEntries({isJspb:!0,cttAuthInfo:Q}),x.length>0&&R.set(Q,x),(_.V("web_fp_via_jspb_and_json")&&G.writeThenSend||!_.V("web_fp_via_jspb_and_json"))&&
delete WH[Q];Sff(R,M,O,G,!1,H)}else{R=_.K(Object.keys(WH));for(t=R.next();!t.done;t=R.next())t=t.value,W=_.V("enable_web_tiered_gel")?tl().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:t,tier:Q},{isJspb:!1,cttAuthInfo:t}],sizeLimit:1E3}):tl().extractMatchingEntries({isJspb:!1,cttAuthInfo:t}),W.length>0&&x.set(t,W),(_.V("web_fp_via_jspb_and_json")&&G.writeThenSend||!_.V("web_fp_via_jspb_and_json"))&&delete WH[t];p66(x,M,O,m,G,!1,H)}};
Iws=function(O,m){O=O===void 0?!1:O;m=m===void 0?200:m;var G=function(){ggp({writeThenSend:!0},O,m)},B=Tgz(O,m),Q=B===k$Y||B===yHN?5E3:cHf;
_.V("web_gel_timeout_cap")&&!B.queueMaxTimer&&(Q=jZf(function(){G()},Q),B.queueMaxTimer=Q);
lwM(B.queueTimer);Q=_.kB("LOGGING_BATCH_TIMEOUT",_.Rd("web_gel_debounce_ms",1E4));_.V("shorten_initial_gel_batch_timeout")&&Yfz&&(Q=dir);Q=jZf(function(){_.Rd("gel_min_batch_size")>0?tl().getSequenceCount({cttAuthInfo:void 0,isJspb:O,tier:m})>=w6N&&G():G()},Q);
B.queueTimer=Q};
p66=function(O,m,G,B,Q,H,M){Q=Q===void 0?{}:Q;var R=Math.round((0,_.$G)()),x=O.size,t=e$s(M);O=_.K(O);var W=O.next();for(M={};!W.done;M={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},W=O.next()){var Z=_.K(W.value);W=Z.next().value;Z=Z.next().value;M.batchRequest=_.aM.unsafeClone({context:_.XXI(m.config_||_.rY())});if(!_.YO(Z)&&!_.V("throw_err_when_logevent_malformed_killswitch")){B();break}M.batchRequest.events=Z;
(Z=ogO[W])&&Dis(M.batchRequest,W,Z);delete ogO[W];M.dangerousLogToVisitorSession=W==="visitorOnlyApprovedKey";sZs(M.batchRequest,R,M.dangerousLogToVisitorSession);NgS(Q);M.onSuccess$jscomp$3=function(z){_.V("start_client_gcf")&&_.ln.addLowPriorityJob(function(){return _.r(function(J){return J.yield(PEN(z),0)})});
x--;x||G()};
M.networkFailures=0;M.onError$jscomp$5=function(z){return function(){z.networkFailures++;if(Q.bypassNetworkless&&z.networkFailures===1)try{Hm5(m,t,z.batchRequest,Fwr({writeThenSend:!0},z.dangerousLogToVisitorSession,z.onSuccess$jscomp$3,z.onError$jscomp$5,H)),Yfz=!1}catch(J){_.di(J),B()}x--;x||G()}}(M);
try{Hm5(m,t,M.batchRequest,Fwr(Q,M.dangerousLogToVisitorSession,M.onSuccess$jscomp$3,M.onError$jscomp$5,H)),Yfz=!1}catch(z){_.di(z),B()}}};
Sff=function(O,m,G,B,Q,H){B=B===void 0?{}:B;var M=Math.round((0,_.$G)()),R={value:O.size},x=new Map([].concat(_.lS(O)));x=_.K(x);for(var t=x.next();!t.done;t=x.next()){var W=_.K(t.value).next().value,Z=O.get(W);t=new AH5;var z=m.config_||_.rY(),J=new VT,n=new OJO;_.SS(n,1,z.innertubeContextHostLanguage);_.SS(n,2,z.innertubeContextGeoLocation);_.xG(n,16,z.innertubeContextClientNameFieldNumber);_.SS(n,17,z.innertubeContextClientVersion);if(z.innertubeContextClientConfigInfo){var I=z.innertubeContextClientConfigInfo,
S=new UO;I.coldConfigData&&_.SS(S,1,I.coldConfigData);I.appInstallData&&_.SS(S,6,I.appInstallData);I.coldHashData&&_.SS(S,3,I.coldHashData);I.hotHashData&&S.setHotHashData(I.hotHashData);_.Tc(n,62,S)}(I=_.Qf.devicePixelRatio)&&I!=1&&_.qI(n,65,_.w8(I));I=kCs();I!==""&&_.SS(n,54,I);I=yKe();if(I.length>0){S=new m1r;for(var L=0;L<I.length;L++){var C=new bT;C.setKey(I[L].key);Jl(C,2,GMN,Vr(I[L].value));nE(S,15,bT,C)}_.Tc(J,5,S)}ZfS(z,n);zaz(J);JVS(n);Vw6(z,n);bfs(n);_.V("start_client_gcf")&&nHs(n);_.kB("DELEGATED_SESSION_ID")&&
!_.V("pageid_as_header_web")&&(z=new Xg,_.SS(z,3,_.kB("DELEGATED_SESSION_ID")));!_.V("fill_delegate_context_in_gel_killswitch")&&(I=_.kB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(S=_.RO(J,Xg,3)||new Xg,z=J,I=_.SS(S,18,I),_.Tc(z,3,I));z=n;I=_.K(Object.entries(_.Px(_.kB("DEVICE",""))));for(S=I.next();!S.done;S=I.next())L=_.K(S.value),S=L.next().value,L=L.next().value,S==="cbrand"?_.SS(z,12,L):S==="cmodel"?_.SS(z,13,L):S==="cbr"?_.SS(z,87,L):S==="cbrver"?_.SS(z,88,L):S==="cos"?_.SS(z,18,
L):S==="cosver"?_.SS(z,19,L):S==="cplatform"&&_.xG(z,42,Wf5(L));J.setClient(n);_.Tc(t,1,J);if(n=CE6[W])a:{if(_.XK(n,fE(n,LwM,1)))J=1;else if(n.getPlaylistId())J=2;else break a;_.Tc(t,4,n);n=t.getContext()||new VT;z=_.RO(n,Xg,3)||new Xg;I=new hl;I.setToken(W);_.xG(I,1,J);nE(z,12,hl,I);_.Tc(n,3,z)}delete CE6[W];W=W==="visitorOnlyApprovedKey";BRp()||_.TH(t,2,M);!W&&(J=_.kB("EVENT_ID"))&&(n=Q_p(),z=new HJM,_.SS(z,1,J),_.TH(z,2,n),_.Tc(t,5,z));NgS(B);if(_.V("jspb_serialize_with_worker")&&(J=_.EZf())&&
B.writeThenSend){_.viN.set(K3r,{client:m,resolve:G,networklessOptions:B,isIsolated:Q,useVSSEndpoint:H,dangerousLogToVisitorSession:W,requestsOutstanding:R});J.postMessage({op:"gelBatchToSerialize",batchRequest:CB(t),clientEvents:Z,key:K3r});K3r++;break}if(Z){J=[];for(n=0;n<Z.length;n++)try{J.push(new gE(Z[n]))}catch(P){_.di(new _.j9("Transport failed to deserialize "+String(Z[n])))}Z=J}else Z=[];Z=_.K(Z);for(J=Z.next();!J.done;J=Z.next())nE(t,3,gE,J.value);Z={startTime:(0,_.$G)(),ticks:{},infos:{}};
t=t.serialize();Z.ticks.geljspc=(0,_.$G)();_.V("log_jspb_serialize_latency")&&uVN("gel_jspb_serialize",Z,{sampleRate:.1});_.$1e(t,m,G,B,Q,H,W,R)}};
_.$1e=function(O,m,G,B,Q,H,M,R){B=B===void 0?{}:B;R=R===void 0?{value:0}:R;H=e$s(H);B=Fwr(B,M,function(x){_.V("start_client_gcf")&&_.ln.addLowPriorityJob(function(){return _.r(function(t){return t.yield(PEN(x),0)})});
R.value--;R.value||G()},function(){R.value--;
R.value||G()},Q);
B.headers["Content-Type"]="application/json+protobuf";B.postBodyFormat="JSPB";B.postBody=O;Hm5(m,H,"",B);Yfz=!1};
NgS=function(O){_.V("always_send_and_write")&&(O.writeThenSend=!1)};
Fwr=function(O,m,G,B,Q){O={retry:!0,onSuccess:G,onError:B,networklessOptions:O,dangerousLogToVisitorSession:m,bypassMonitoring:!!Q,headers:{},postBodyFormat:"",postBody:"",compress:_.V("compress_gel")||_.V("compress_gel_lr")};BRp()&&(O.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.$G)())));return O};
sZs=function(O,m,G){BRp()||(O.requestTimeMs=String(m));_.V("unsplit_gel_payloads_in_logs")&&(O.unsplitGelPayloadsInLogs=!0);!G&&(m=_.kB("EVENT_ID"))&&(G=Q_p(),O.serializedClientEventId={serializedEventId:m,clientCounter:String(G)})};
Q_p=function(){var O=_.kB("BATCH_CLIENT_COUNTER")||0;O||(O=Math.floor(Math.random()*65535/2));O++;O>65535&&(O=1);_.a8("BATCH_CLIENT_COUNTER",O);return O};
Dis=function(O,m,G){if(G.videoId)var B="VIDEO";else if(G.playlistId)B="PLAYLIST";else return;O.credentialTransferTokenTargetId=G;O.context=O.context||{};O.context.user=O.context.user||{};O.context.user.credentialTransferTokens=[{token:m,scope:B}]};
tV6=function(O,m){var G=_.ib("il_payload_scraping")==="enable_il_payload_scraping";if(!_.ex("yt.logging.transport.enableScrapingForTest"))if(G)Mhe=[],_.HI("yt.logging.transport.enableScrapingForTest",!0),_.HI("yt.logging.transport.scrapedPayloadsForTesting",Mhe),_.HI("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.HI("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.HI("yt.logging.transport.scrapeClientEvent",!0);else return;G=_.ex("yt.logging.transport.scrapedPayloadsForTesting");var B=_.ex("yt.logging.transport.payloadToScrape");m&&(m=_.ex("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(m.payload)())&&G.push(m);m=_.ex("yt.logging.transport.scrapeClientEvent");if(B&&B.length>=1)for(var Q=0;Q<B.length;Q++)if(O&&O.payload[B[Q]])if(m)G.push(O.payload);else{var H=void 0;G.push(((H=O)==null?void 0:H.payload)[B[Q]])}_.HI("yt.logging.transport.scrapedPayloadsForTesting",
G)};
BRp=function(){return _.V("use_request_time_ms_header")||_.V("lr_use_request_time_ms_header")};
jZf=function(O,m){return _.V("transport_use_scheduler")===!1?_.W7(O,m):_.V("logging_avoid_blocking_during_navigation")||_.V("lr_logging_avoid_blocking_during_navigation")?_.uT(_.ln,function(){if(_.rtr().currentState==="none")O();else{var G={};_.rtr().install((G.none={callback:O},G))}},m):_.uT(_.ln,O,m)};
lwM=function(O){_.V("transport_use_scheduler")?_.ln.cancelJob(O):_.zg(O)};
PEN=function(O){var m,G,B,Q,H,M,R,x,t,W;return _.r(function(Z){return Z.nextAddress==1?(B=(m=O)==null?void 0:(G=m.responseContext)==null?void 0:G.globalConfigGroup,Q=_.b(B,RXN),M=(H=B)==null?void 0:H.hotHashData,R=_.b(B,iJe),t=(x=B)==null?void 0:x.coldHashData,(W=_.KR().resolve(_.v7(j0)))?M?Q?Z.yield(x1r(W,M,Q),2):Z.yield(x1r(W,M),2):Z.jumpTo(2):Z.return()):t?R?Z.yield(qve(W,t,R),0):Z.yield(qve(W,t),0):Z.jumpTo(0)})};
Tgz=function(O,m){m=m===void 0?200:m;return O?m===300?k$Y:U1p:m===300?yHN:th6};
z$5=function(O){if(_.V("enable_web_tiered_gel")){O=W3M[O||""];var m,G,B,Q=_.KR().resolve(_.v7(j0))==null?void 0:(m=Iy())==null?void 0:(G=m.loggingHotConfig)==null?void 0:(B=G.eventLoggingConfig)==null?void 0:B.payloadPolicies;if(Q)for(m=0;m<Q.length;m++)if(Q[m].payloadNumber===O)return Q[m]}};
ZHY=function(O){O=Object.keys(O);O=_.K(O);for(var m=O.next();!m.done;m=O.next())if(m=m.value,W3M[m])return m};
JHN=function(O){switch(O){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}};
ngI=function(O){return O==="gelDebuggingEvent"};
e$s=function(O){return(O===void 0?0:O)&&_.V("vss_through_gel_video_stats")?"video_stats":"log_event"};
S0=function(O,m,G,B){B=B===void 0?{}:B;var Q={},H=Math.round(B.timestamp||(0,_.$G)());Q.eventTimeMs=H<Number.MAX_SAFE_INTEGER?H:0;Q[O]=m;O=_.MT();Q.context={lastActivityMs:String(B.timestamp||!isFinite(O)?-1:O)};B.sequenceGroup&&!_.V("web_gel_sequence_info_killswitch")&&(O=Q.context,m=B.sequenceGroup,m={index:ZJp(m),groupKey:m},O.sequence=m,B.endOfSequence&&delete pE[B.sequenceGroup]);_.V("web_tag_automated_log_events")&&(Q.context.automatedLogEventSource=B.automatedLogEventSource);(B.sendIsolatedPayload?
VVI:X66)({endpoint:"log_event",payload:Q,cttAuthInfo:B.cttAuthInfo,dangerousLogToVisitorSession:B.dangerousLogToVisitorSession},G)};
ZJp=function(O){pE[O]=O in pE?pE[O]+1:0;return pE[O]};
_.LE=function(O,m,G){G=G===void 0?{}:G;var B=EJ;_.yE("ytLoggingEventsDefaultDisabled",!1)&&EJ===EJ&&(B=null);S0(O,m,B,G)};
_.CE=function(){if(_.V("web_fp_via_jspb")){var O=!0;O=O===void 0?!1:O;var m=zXI;zXI=[];if(m){m=_.K(m);for(var G=m.next();!G.done;G=m.next())G=G.value,O?S0(G.payloadName,G.payload,EJ,G.options):_.LE(G.payloadName,G.payload,G.options)}ggp(void 0,!0);if(!_.V("web_fp_via_jspb_and_json"))return}ggp(void 0,!1)};
Jtf=function(O,m){var G;if((G=m)==null?0:G.componentStack)return m;if(O=O.componentStack)m||(m={}),m.componentStack=O;return m};
Vhr=function(){_.Nr(_.kB("ERRORS")||[],function(O){_.oy.apply(null,O)});
_.a8("ERRORS",[])};
_.lT=function(O){_.oy(O)};
_.ay=function(O){_.oy(O,"WARNING")};
bJf=function(O){O instanceof Error?_.oy(O):(O=_.Dp(O)?JSON.stringify(O):String(O),O=new _.j9(O),O.name="RejectedPromiseError",_.ay(O))};
niN=function(O,m,G,B,Q,H){m=m===void 0?"Unknown file":m;G=G===void 0?0:G;var M=!1,R=zPr("log_window_onerror_fraction");if(R&&Math.random()<R)M=!0;else{R=document.getElementsByTagName("script");for(var x=0,t=R.length;x<t;x++)if(R[x].src.indexOf("/debug-")>0){M=!0;break}}M&&(M=!1,Q?M=!0:(typeof O==="string"?R=O:ErrorEvent&&O instanceof ErrorEvent?(M=!0,R=O.message,m=O.filename,G=O.lineno,B=O.colno):(R="Unknown error",m="Unknown file",G=0),Q=new _.j9(R),Q.name="UnhandledWindowError",Q.message=R,Q.fileName=
m,Q.lineNumber=G,isNaN(B)?delete Q.columnNumber:Q.columnNumber=B),_.V("wiz_enable_component_stack_propagation_killswitch")||(H=Jtf(Q,H)),H&&_.kt(Q,H),M?_.oy(Q):_.ay(Q))};
_.oy=function(O,m,G,B,Q,H,M,R){H=H===void 0?{}:H;H.name=G||_.kB("INNERTUBE_CONTEXT_CLIENT_NAME",1);H.version=B||_.kB("INNERTUBE_CONTEXT_CLIENT_VERSION");G=H;m=m===void 0?"ERROR":m;M=M===void 0?!1:M;m=m===void 0?"ERROR":m;M=M===void 0?!1:M;if(O&&(O.hasOwnProperty("level")&&O.level&&(m=O.level),_.V("console_log_js_exceptions")&&(B=[],B.push("Name: "+O.name),B.push("Message: "+O.message),O.hasOwnProperty("params")&&B.push("Error Params: "+JSON.stringify(O.params)),O.hasOwnProperty("args")&&B.push("Error args: "+
JSON.stringify(O.args)),B.push("File name: "+O.fileName),B.push("Stacktrace: "+O.stack),B=B.join("\n"),window.console.log(B,O)),!(Xuf>=5))){B=[];Q=_.K(fvz);for(H=Q.next();!H.done;H=Q.next()){H=H.value;try{H()&&B.push(H())}catch(S){}}B=[].concat(_.lS(hXS),_.lS(B));var x=TRN(O);Q=x.message||"Unknown Error";H=x.name||"UnknownError";var t=x.stack||O.stacktrace||"Not available";if(t.startsWith(H+": "+Q)){var W=t.split("\n");W.shift();t=W.join("\n")}W=x.lineNumber||"Not available";x=x.fileName||"Not available";
var Z=0;if(O.hasOwnProperty("args")&&O.args&&O.args.length)for(var z=0;z<O.args.length&&!(Z=tHI(O.args[z],"params."+z,G,Z),Z>=500);z++);else if(O.hasOwnProperty("params")&&O.params){var J=O.params;if(typeof O.params==="object")for(z in J){if(J[z]){var n="params."+z,I=Xz(J[z]);G[n]=I;Z+=n.length+I.length;if(Z>500)break}}else G.params=Xz(J)}if(B.length)for(z=0;z<B.length&&!(Z=tHI(B[z],"params.context."+z,G,Z),Z>=500);z++);navigator.vendor&&!G.hasOwnProperty("vendor")&&(G["device.vendor"]=navigator.vendor);
z={message:Q,name:H,lineNumber:W,fileName:x,stack:t,params:G,sampleWeight:1};G=Number(O.columnNumber);isNaN(G)||(z.lineNumber=z.lineNumber+":"+G);if(O.level==="IGNORED")O=0;else a:{O=giN();G=_.K(O.messageWeights);for(B=G.next();!B.done;B=G.next())if(B=B.value,z.message&&z.message.match(B.messageRegExp)){O=B.weight;break a}O=_.K(O.callbackWeights);for(G=O.next();!G.done;G=O.next())if(G=G.value,G.callback(z)){O=G.weight;break a}O=1}z.sampleWeight=O;O=_.K(u4Y);for(G=O.next();!G.done;G=O.next())if(G=
G.value,G.patternsForType[z.name])for(Q=_.K(G.patternsForType[z.name]),B=Q.next();!B.done;B=Q.next())if(H=B.value,B=z.message.match(H.regexp)){z.params["params.error.original"]=B[0];Q=H.groups;H={};for(W=0;W<Q.length;W++)H[Q[W]]=B[W+1],z.params["params.error."+Q[W]]=B[W+1];z.message=G.messageFn(H);break}z.params||(z.params={});O=giN();z.params["params.errorServiceSignature"]="msg="+O.messageWeights.length+"&cb="+O.callbackWeights.length;z.params["params.serviceWorker"]="false";_.Qf.document&&_.Qf.document.querySelectorAll&&
(z.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new yT(j_r,"sample")).constructor!==yT&&(z.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(z);if(z.sampleWeight!==0&&!IvI.has(z.message)){if(M&&_.V("web_enable_error_204"))puf(m===void 0?"ERROR":m,z);else{m=m===void 0?"ERROR":m;m==="ERROR"?(SvM.publish("handleError",z),_.V("record_app_crashed_web")&&EiM===0&&z.sampleWeight===1&&(EiM++,M={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.V("report_client_error_with_app_crash_ks")||(M.systemHealth={crashData:{clientError:{logMessage:{message:z.message}}}}),_.LE("appCrashed",M)),L3s++):m==="WARNING"&&SvM.publish("handleWarning",z);if(_.V("kevlar_gel_error_routing")){M=m;R=R===void 0?{}:R;b:{O=_.K(C5N);for(G=O.next();!G.done;G=O.next())if(yb(G.value.toLowerCase())){O=!0;break b}O=!1}if(O)R=void 0;else{G={stackTrace:z.stack};z.fileName&&(G.filename=z.fileName);O=z.lineNumber&&z.lineNumber.split?z.lineNumber.split(":"):[];O.length!==
0&&(O.length!==1||isNaN(Number(O[0]))?O.length!==2||isNaN(Number(O[0]))||isNaN(Number(O[1]))||(G.lineNumber=Number(O[0]),G.columnNumber=Number(O[1])):G.lineNumber=Number(O[0]));O={level:"ERROR_LEVEL_UNKNOWN",message:z.message,errorClassName:z.name,sampleWeight:z.sampleWeight};M==="ERROR"?O.level="ERROR_LEVEL_ERROR":M==="WARNING"&&(O.level="ERROR_LEVEL_WARNNING");G={isObfuscated:!0,browserStackInfo:G};R.pageUrl=window.location.href;R.kvPairs=[];_.kB("FEXP_EXPERIMENTS")&&(R.experimentIds=_.kB("FEXP_EXPERIMENTS"));
B=_.kB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!zPr("web_disable_gel_stp_ecatcher_killswitch")&&B)for(Q=_.K(Object.keys(B)),H=Q.next();!H.done;H=Q.next())H=H.value,R.kvPairs.push({key:H,value:String(B[H])});if(B=z.params)for(Q=_.K(Object.keys(B)),H=Q.next();!H.done;H=Q.next())H=H.value,R.kvPairs.push({key:"client."+H,value:String(B[H])});B=_.kB("SERVER_NAME");Q=_.kB("SERVER_VERSION");B&&Q&&(R.kvPairs.push({key:"server.name",value:B}),R.kvPairs.push({key:"server.version",value:Q}));R={errorMetadata:R,
stackTrace:G,logMessage:O}}R&&(_.LE("clientError",R),(M==="ERROR"||_.V("errors_flush_gel_always_killswitch"))&&_.CE())}_.V("suppress_error_204_logging")||puf(m,z)}try{IvI.add(z.message)}catch(S){}Xuf++}}};
puf=function(O,m){var G=m.params||{};O={urlParams:{a:"logerror",t:"jserror",type:m.name,msg:m.message.substr(0,250),line:m.lineNumber,level:O,"client.name":G.name},postParams:{url:_.kB("PAGE_NAME",window.location.href),file:m.fileName},method:"POST"};G.version&&(O["client.version"]=G.version);if(O.postParams){m.stack&&(O.postParams.stack=m.stack);m=_.K(Object.keys(G));for(var B=m.next();!B.done;B=m.next())B=B.value,O.postParams["client."+B]=G[B];if(G=_.kB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(m=
_.K(Object.keys(G)),B=m.next();!B.done;B=m.next())B=B.value,O.postParams[B]=G[B];(G=_.kB("LAVA_VERSION"))&&(O.postParams["lava.version"]=G);G=_.kB("SERVER_NAME");m=_.kB("SERVER_VERSION");G&&m&&(O.postParams["server.name"]=G,O.postParams["server.version"]=m)}_.Vb(_.kB("ECATCHER_REPORT_HOST","")+"/error_204",O)};
_.ois=function(O,m){m=m===void 0?"ERROR":m;var G=G===void 0?{}:G;var B=_.ex("ytbin.polymer.shared.lib.tampering.info");B&&(B=B())&&(G["params.tamperingInfo"]=B.sort().join(","));_.oy(O,m,void 0,void 0,!0,G)};
_.kt=function(O){var m=_.eA.apply(1,arguments);O.args||(O.args=[]);Array.isArray(O.args)&&O.args.push.apply(O.args,_.lS(m))};
lvS=function(O){O.level="IGNORED"};
avM=function(O,m){hXS.push(O);m();hXS.pop()};
Yt=function(O,m){for(var G in m)m.hasOwnProperty(G)&&(O=_.cH(O,G,m[G]));return O};
_.kM6=function(O,m,G){G=G===void 0?!1:G;if(!O)return null;if(O.adInfoDialogEndpoint||O.backstageImageUploadEndpoint||O.confirmDialogEndpoint||O.clientActionEndpoint||O.createBackstagePostDialogEndpoint||O.createCommentReplyDialogEndpoint||O.flowEndpoint||O.guideBuilderEndpoint||O.liveChatDialogEndpoint||O.modalEndpoint||O.openPopupAction||O.shareEndpoint||O.shareEntityEndpoint||O.showLiveChatItemEndpoint||O.subscriptionManagerEndpoint||O.unlimitedCreateFamilyEndpoint||O.unlimitedFamilyFlowEndpoint||
O.updateCommentDialogEndpoint||O.updateCommentReplyDialogEndpoint||O.userFeedbackEndpoint||O.videoEditorEndpoint||O.ypcCancelSurveyEndpoint)return m=_.Rd("polymer_report_client_url_requested_rate"),!G&&Math.random()<m&&_.ay(new _.j9("urlForEndpoint used on client endpoint",O)),null;var B=_.Rd("polymer_report_missing_web_navigation_endpoint_rate");if(O.liveChatEndpoint||O.liveChatReplayEndpoint)B=0;if(!O.commandMetadata&&!O.clickTrackingParams&&Math.random()<B){var Q={},H;for(H in O)Q[H]="1";_.ay(new _.j9("Missing navigation data",
Q))}Q="";if(O.commandMetadata&&O.commandMetadata.webCommandMetadata&&O.commandMetadata.webCommandMetadata.url)Q=O.commandMetadata.webCommandMetadata.url;else if(O.searchEndpoint)Math.random()<B&&_.ay(new _.j9("Should not manually handle search",O)),Q="/results?search_query="+encodeURIComponent(O.searchEndpoint.query).replace(/%20/g,"+"),O.searchEndpoint.params&&(Q+="&sp="+O.searchEndpoint.params);else if(O.watchEndpoint)Math.random()<B&&_.ay(new _.j9("Should not manually handle watch",O)),Q="/watch?v="+
O.watchEndpoint.videoId,O.watchEndpoint.playlistId&&(Q+="&list="+O.watchEndpoint.playlistId),O.watchEndpoint.index&&(Q+="&index="+O.watchEndpoint.index),O.watchEndpoint.startTimeSeconds&&(Q+="&t="+O.watchEndpoint.startTimeSeconds);else if(O.browseEndpoint)B=O.browseEndpoint.browseId,(H=O.browseEndpoint.canonicalBaseUrl)?Q=H:B&&(Q=B.substr(0,2),Q=Q==="FE"?B==="FEwhat_to_watch"?"/":B==="FEmy_videos"?"/my_videos":"/feed/"+B.substr(2):Q==="VL"?"/playlist?list="+B.substr(2):"/channel/"+B),Q&&O.browseEndpoint.query&&
(Q=Yt(Q+"/search",{query:O.browseEndpoint.query})),Q&&O.browseEndpoint.params&&(Q=Yt(Q,{params:O.browseEndpoint.params}));else{if(O.urlEndpoint)return O.urlEndpoint.url;O.signInEndpoint?(Q="https://accounts.google.com/ServiceLogin",B={},_.aM.extend(B,m||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),m=B):O.uploadEndpoint?Q="//www.youtube.com/upload":O.liveChatEndpoint?(Q=O.liveChatEndpoint,B=_.aM.clone(Q),_.Dp(Q.continuation)&&(H=Object.keys(Q.continuation)[0],
B.continuation=Q.continuation[H].continuation),Q=Yt("/youtubei/v1/live_chat/get_live_chat",B)):O.liveChatReplayEndpoint?(Q=_.aM.clone(O.liveChatReplayEndpoint),Q.currentPlayerState&&(_.aM.extend(Q,Q.currentPlayerState),delete Q.currentPlayerState),Q=Yt("/youtubei/v1/live_chat/get_live_chat_replay",Q)):O.liveChatItemContextMenuEndpoint?Q=Yt("/youtubei/v1/live_chat/get_item_context_menu",O.liveChatItemContextMenuEndpoint):O.liveChatPurchaseMessageEndpoint?Q=Yt("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
O.liveChatPurchaseMessageEndpoint):O.openSuperStickerBuyFlowCommand?Q=Yt("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",O.openSuperStickerBuyFlowCommand):O.videoEditEndpoint?Q=Yt("/edit",{video_id:O.videoEditEndpoint.videoId}):O.liveDashboardEndpoint?Q=O.liveDashboardEndpoint.videoId?Yt("/live_dashboard",{v:O.liveDashboardEndpoint.videoId}):"/live_dashboard":O.signalNavigationEndpoint&&O.signalNavigationEndpoint.signal&&O.signalNavigationEndpoint.signal==="WEBCAM"?Q="/webcam":O.getPdgBuyFlowCommand&&
(Q=Yt(O.getPdgBuyFlowCommand.buyflowApiPath,{params:O.getPdgBuyFlowCommand.params}))}return Q||G?Yt(Q,m||{}):(_.ay(new _.j9("Error: Can't construct url for endpoint","keys:"+Object.keys(O).sort().join(","),O)),null)};
ytI=function(O){if(O){if(O.browseEndpoint)return!!O.browseEndpoint.nofollow;if(O.watchEndpoint)return!!O.watchEndpoint.nofollow;if(O.urlEndpoint)return!!O.urlEndpoint.nofollow}return!1};
_.YvN=function(O,m){var G=m+O,B=ctM.get(G);if(B)return B;O=m+"-"+O.replace(/([A-Z])/g,"-$1").toLowerCase();ctM.set(G,O);return O};
d1O=function(O){var m=_.o8(O,"action")||_.o8(O,"command")||_.o8(O,"endpoint");if(!m)return null;m=_.YvN(m,"yt");_.b(O,_.dE)&&(m+="-"+_.b(O,_.dE).signal.toLowerCase().replace(/_/g,"-"));return m};
s_O=function(O){try{var m=Object.keys(O)}catch(Q){return[]}for(var G=0;G<m.length;G++){var B=m[G];if(wus.test(B)||eXM.test(B))return D1N(O[B])}return[]};
D1N=function(O){return O.command?[O.command]:O.onExecutionAction?[O.onExecutionAction]:O.onResponseReceivedCommand?[O.onResponseReceivedCommand]:O.updateFlowCommand?[O.updateFlowCommand]:O.clientActions?O.clientActions:O.action?[O.action]:O.actions||O.commands||O.onResponseReceivedActions||O.onResponseReceivedCommands||O.onResponseReceivedEndpoints||[]};
P5s=function(O,m){m=m===void 0?!1:m;var G=_.KR().resolve(_.v7(wE));G||(G=new NRp,_.KR().addProvider({provide:wE,useValue:G}));return G&&O&&!_.aM.isEmpty(O)?G.getUrl(O,m):""};
F3Y=function(O,m,G){G=G===void 0?"":G;if(m){O.data=m;var B=P5s(m);B?(sh(O,B),ytI(m)||!Qb(B)?O.rel="nofollow":O.removeAttribute("rel"),_.b(m,_.Db)&&_.b(m,_.Db).target==="TARGET_NEW_WINDOW"?O.target="_blank":G?O.target=G:O.removeAttribute("target")):(O.removeAttribute("href"),O.removeAttribute("rel"),O.removeAttribute("target"))}};
_.Fg=function(O,m){var G=Qj;if(jE())At6(O,function(){var H=_.eA.apply(0,arguments);a9(G,function(){m.apply(null,_.lS(H))})});
else{var B=_.sJ.getInstance(),Q=Zr5(m);MY6(function(){Q.value=m});
_.Ln(function(){var H={},M=_.NT(B,(H[O]=function(){var R=_.eA.apply(0,arguments);a9(G,function(){Q.value.apply(Q,_.lS(R))})},H));
return function(){var R={};_.PH(B,(R[O]="",R),M)}})}};
_.Al=function(O,m){return Ozz(O,!1,m)};
_.GX=function(O,m){return Ozz(O,!0,m)};
Ozz=function(O,m,G){return jE()?mkI(O,m,G):GUp(O,m,G)};
GUp=function(O,m,G){return Cn(function(){return mkI(O,m,G)})};
mkI=function(O,m,G){var B=Hrf(function(Q){B.value=Q;var H=function(){var M=iF(null);try{return G==null?void 0:G(Q)}finally{iF(M)}}();
return function(){H==null||H()}});
B.__expectedTagName=O;B.__optional=m;B.isIdom=!jE();return B};
BDf=function(O){var m=Qj,G=gh;return{getFn:function(){return function(B){m.isDisposed||SE(function(){return t0(function(){return O(B)})},G)!==!0&&B.stopPropagation()}}}};
Be=function(O){if(typeof O.children==="function")return O.children(),null;O=_.K(O.children);for(var m=O.next();!m.done;m=O.next())m=m.value,m();return null};
Q$O=function(O){var m;return((m=O.prototype)==null?void 0:m.render)===void 0};
Hzz=function(O){return O.items.map(O.children)};
KH5=function(O,m,G){G=G===void 0?!1:G;SE(function(){return vKY(O,m,G)})};
vKY=function(O,m,G){var B=null;fS++;G=(G===void 0?0:G)?$kY:MlI;try{B=G(O,function(){Qe(m)}),TJ(!1)}catch(Q){throw TJ(!0),Q;
}return B===null?O:B};
Qe=function(O){if(O!==void 0&&O!==null)if(O instanceof VE)for(var m=eE;N_()!=null&&YFr in N_()&&m.contains(N_());)A0();else if(Array.isArray(O))for(m=_.K(O),O=m.next();!O.done;O=m.next())Qe(O.value);else if(O instanceof In||O instanceof iS||"function"==typeof _.vx&&O instanceof _.vx)cJM(O.toString());else if(_.R8(O)){if(N_()!==O){var G,B;m=(B=(G=gh)==null?void 0:G.name)!=null?B:"unknown";throw Error("hc`"+O.tagName+"`"+m);}A0()}else if(O!=null&&O.contentKind===qr||O instanceof NP||Qq6(O))for(m=vfN(O),
m=Array.from(m.childNodes),m=_.K(m),O=m.next();!O.done;O=m.next())eE.appendChild(O.value),A0();else if(lG(O)&&(O=O.toString()),G=typeof O,G==="boolean"||G==="number"||G==="string")cJM(O);else if(typeof O==="function"){m=eE;var Q=N_();Q&&(Q._isSignalTextNode||Q._isSafeOrSanitizedHtmlNode)||SFp(m,Q,O);A0()}else if(O.type===Hzz)Qe(O.type(Object.assign({},O.props,{children:O.children[0]})));else{Xq.beforeVisit(O);if(typeof O.type==="string"){a:{O.__open||SD5(O.type,O.props.idomKey);Q=eE;for(m in O.props)if(O.props[m]!==
rIp){var H=O.props[m];G=Gn;G.push(m);G.push(H)}m=M_.attributes;m=m===void 0?He:m;H=eE;G=wh(H);yJ5(H,G,m);prr(Q,O.props,!0);if((O.props.skip||O.props.skipchildren)&&eE.hasChildNodes())Lds();else{if(O.type==="style"&&qFp(O.children)===null){Lds();m=void 0;break a}Qe(O.children)}EVY();O.__open&&(O.__open=!1);P_z(Q,O.props);m=Q}return m}if(O.type===_.Mr)Qe(O.children);else if(!RCr(O)){m=O;try{iz5(m)}catch(M){O=M,(H=M_.handleError)==null||H.call.apply(H,[M_].concat(_.lS(kv(O,(Q=m.type)==null?void 0:Q.TAG_NAME))))}m.__open&&
(EVY(),m.__open=!1)}}};
xkN=function(O,m){var G;Q$O(O)?G=new hN(m,O):G=new O(m);G.__type=O;G.__updateContext={nextState:G.state,isForced:!1};return G};
iz5=function(O){var m=O.type,G=m.TAG_NAME;if(m===Be)O.props.children=O.children,m(O.props);else{O.children.length>0&&(O.props.children=O.children);var B;(B=O.props).idomKey||(B.idomKey=m);if(G){var Q=SD5(G,O.props.idomKey);O.__open=!0;var H=Q.__instance}H||(H=xkN(m,O.props),H.props=null,Q&&(Q.__instance=H,H.el=Q));var M;G=((M=H.__updateContext)!=null?M:{nextState:H.state,isForced:!1}).nextState;H.__updateContext=void 0;m.getDerivedStateFromProps&&(G=m.getDerivedStateFromProps(O.props,G));H.props=
O.props;H.state=G;M=function(){var R=H;Xq.beforeRender(R);var x=R.render(R.props);Xq.afterRender(R,x);x?(R.props.idomKey&&(x.props.idomKey=R.props.idomKey),R=x):R=void 0;if(x=R)if(x.__open=O.__open,R=Qe(x),O.__open=x.__open,!m.TAG_NAME)if(R)m.TAG_NAME=R.tagName.toLowerCase(),R.__instance=H,H.el=R;else{var t;if((t=H.hooks)==null?0:t.length){var W;(W=M_.handleError)==null||W.call.apply(W,[M_].concat(_.lS(kv(Error("nd")))))}}H.didPatch();Xq.didPatch(H)};
(G=H.functionComponent)?AlM(G,M,H.props.debugInstance):M()}};
RCr=function(O){var m=O.type;if(!Q$O(m)||m===Be||m.componentType===uF)return!1;O.props.children=O.children.length>1?O.children:O.children[0];var G,B=(G=O.props.idomKey)!=null?G:O.type,Q;if(N_()&&((Q=N_()[Wx])==null?void 0:Q.key)===B){var H=N_(),M=H[Wx];if(!M)throw Error("gc`"+H.tagName);var R;(R=M.updateSignalsFromIdomProps)==null||R.call(M,O.props);qpe(M);return!0}if(UkN.has(m.name))throw R=m.name,m=(M=(H=gh)==null?void 0:H.name)!=null?M:"unknown",Error("fc`"+R+"`"+m);of5(O.type,O.props,O.children);
O.props.renderedFromIdom=!0;(R=AlM(O.type,function(){return TKS(O.type,O.props)},O.props.debugInstance))&&tlp(R);
return!0};
WH5=function(O){for(var m=0;m<JN(O).length;m++)A0()};
qpe=function(O){var m=Zzp();if(m)WH5(m);else for(var G=0;G<O.numNodes;G++)(m=Zzp())?WH5(m):A0()};
Zzp=function(){var O;return(O=N_()[Wx])==null?void 0:O.sourceDynamicRange};
tlp=function(O){O=OC6(O);O=Array.isArray(O)?O:[O];O=_.K(O);for(var m=O.next();!m.done;m=O.next())eE.insertBefore(m.value,N_()),A0()};
zCS=function(){var O=uES(),m=Cn(function(){return{value:0}});
return[m.value,function(G){if(fn!==null){var B;(B=M_.handleError)==null||B.call.apply(B,[M_].concat(_.lS(kv(Error("od")))))}m.value=typeof G==="function"?G(m.value):G;O.__updateContext={nextState:O.state,isForced:!0};G=_.Hf(O.effectContext);B=ri(!1);try{if(O.el){var Q,H={},M=(H.props=O.props,H.type=O.__type,H.children=(Q=O.props.children)!=null?Q:[],H[$B]=!0,H);try{KH5(O.el,M,!0)}catch(t){var R,x;(x=M_.handleError)==null||x.call.apply(x,[M_].concat(_.lS(kv(t,(R=O.__type)==null?void 0:R.TAG_NAME))))}}}finally{ri(B),
_.Hf(G)}}]};
_.ve=function(O,m){var G=Qj,B=function(Q){a9(G,function(){m(Q)})};
window.addEventListener(O,B,void 0);_.LS(function(){window.removeEventListener(O,B,void 0)})};
_.$V=function(O){var m=Qj;return function(G){var B,Q=(B=O.observer)!=null?B:_.KR().resolve(KI);B=JIY(G);var H=[];O.showOption&&H.push(Q.observe(G,function(){a9(m,function(){O.visibilityCallback(!0,G)})},O.showOption));
O.hideOption&&H.push(Q.observe(G,function(){a9(m,function(){O.visibilityCallback(!1,G)})},O.hideOption));
O.prescanOption&&O.prescanCallback&&H.push(Q.observe(G,function(){a9(m,function(){O.prescanCallback()})},O.prescanOption));
var M;B.visibilityMonitorKeys=((M=B.visibilityMonitorKeys)!=null?M:[]).concat(H)}};
JIY=function(O){var m;return(m=O.polymerController)!=null?m:O};
Xc6=function(O,m){var G=Vlr;return _.q(_.Mr,null,ZpN(M_.enableLazyTsx,function(){return _.q(bzN,{id:G,value:O,children:m})},function(){var B=nKp(G,O);
$v(B);B=_.Hf(B);try{return m()}finally{_.Hf(B)}}))};
bzN=function(O){var m=O.children;O=nKp(O.id,O.value);$v(O);O=_.Hf(O);try{return _.q(_.Mr,null,bz(m()))}finally{_.Hf(O)}};
nKp=function(O,m){return Object.assign(Object.create(fL6),{id:O,contextValue:m})};
hCs=function(O){var m,G=Qj;_.lF(function(){var B=_.Hf(G),Q=ri(!m);try{if(m)KH5(m,O.children(),!0);else if(m=bz(O.children()),!(m instanceof Element))throw Error("pd");}finally{ri(Q),_.Hf(B)}});
return m};
_.TDp=function(O,m){var G;m=CS(function(){var B=ri(!0);fS++;try{G=JN(O()),TJ(!1)}catch(Q){throw TJ(!0),Q;}finally{ri(B)}},m===void 0?!1:m);
return[G,m]};
uv6=function(O){var m=new gKN;m.abort(O);return m.signal};
j$s=function(){if(this.aborted){var O;throw(O=this.reason)!=null?O:new DOMException("signal is aborted without reason","AbortError");}};
Spf=function(O){var m=new gKN;O=_.K(O);for(var G=O.next();!G.done;G=O.next())if(G=G.value,G.aborted){m.abort(G.reason);break}else ILp.set(m.signal,m),pcN.add(G,m.signal);return m.signal};
EKe=function(){for(var O=_.K(pcN.get(this)),m=O.next();!m.done;m=O.next())ILp.get(m.value).abort(this.reason)};
LHN=function(O){var m=new gKN;setTimeout(function(){m.abort(new DOMException("signal timed out","TimeoutError"))},O);
return m.signal};
oKp=function(O){O=O.buf.charCodeAt(O.pos++);return Cmp[O]};
MD=function(O){var m=0,G=0;do{var B=oKp(O);m|=(B&31)<<G;G+=5}while(B&32);return m<0?m+4294967296:m};
aL5=function(){var O=!0;O=O===void 0?!1:O;var m=m===void 0?!1:m;var G=G===void 0?{}:G;var B=G.cssRowKey||"",Q=G.combinedSignature||"";!B&&window&&window._F_cssRowKey&&(B=window._F_cssRowKey,!Q&&window._F_combinedSignature&&(Q=window._F_combinedSignature));if(B&&typeof window._F_installCss!=="function")throw Error("zd");var H=G.loaderClass||_.rj,M=lDs("base-js");O=new H(RqO(kVI("",M)),B,Q,O,m);m=G.useCors||M&&M.hasAttribute("crossorigin");M=G.corsMode||M&&M.getAttribute("crossorigin");m&&(O.useCors_=
m);M&&(O.corsMode_=M);G.urlMaxLength&&(O.urlMaxLength=G.urlMaxLength);G.fetchPriority&&(O.fetchPriority=G.fetchPriority);var R=ow();R.JSC$10055_loader_=O;R.setBatchModeEnabled(!0);_.lLI=function(x){return Promise.resolve(R.load(x))}};
cIf=function(O,m,G){kUz(O,m);O[m][yIN].unshift(G)};
kUz=function(O,m){if(!O[m]||!O[m][yIN]){var G=O[m],B=G?[G]:[];O[m]=function(){for(var Q=_.K(B),H=Q.next();!H.done;H=Q.next())H.value.apply(this,arguments)};
O[m][yIN]=B}};
YpS=function(O){if(!O)return[];var m=[];O=_.K(O);for(var G=O.next();!G.done;G=O.next())G=G.value,Array.isArray(G)?m.push.apply(m,_.lS(YpS(G))):m.push(G);return m};
_.i_=function(O,m){if(O&&dkN.test(O)||O==="//")return O;if(wce===void 0){wce=!1;try{var G=new URL("b","http://a");G.pathname="c%20d";wce=G.href==="http://a/c%20d"}catch(B){}}m||(m=document.baseURI||window.location.href);if(wce)try{return(new URL(O,m)).href}catch(B){return O}Ra||(Ra=document.implementation.createHTMLDocument("temp"),Ra.base=Ra.createElement("base"),Ra.head.appendChild(Ra.base),Ra.anchor=Ra.createElement("a"),Ra.body.appendChild(Ra.anchor));Ra.base.href=m;Ra.anchor.href=O;return Ra.anchor.href||
O};
DkM=function(O,m){return O.replace(eCr,function(G,B,Q,H){return B+"'"+_.i_(Q.replace(/["']/g,""),m)+"'"+H})};
s$O=function(O){return O.substring(0,O.lastIndexOf("/")+1)};
FHS=function(){ND5=!1;for(var O=xV.length,m=0;m<O;m++){var G=xV[m];if(G)try{G()}catch(B){setTimeout(function(){throw B;})}}xV.splice(0,O);
Pmr+=O};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(O){console.log("["+O.is+"]: registered")};
Okr=function(O){AI6.push(O)};
qD=function(O){return mXY[O]||(mXY[O]=O.indexOf("-")<0?O:O.replace(GKN,function(m){return m[1].toUpperCase()}))};
UD=function(O){return mXY[O]||(mXY[O]=O.replace(BJN,"-$1").toLowerCase())};
Q65=function(O,m){var G=m.parentInfo&&Q65(O,m.parentInfo);if(G)for(O=G.firstChild,G=0;O;O=O.nextSibling){if(m.parentIndex===G++)return O}else return O};
Hke=function(O,m){O=O._methodHost||O;return function(G){if(O[m])O[m](G,G.detail);else console.warn("listener method `"+m+"` not defined")}};
tJ=function(O){return O.indexOf(".")>=0};
We=function(O){var m=O.indexOf(".");return m===-1?O:O.slice(0,m)};
vpf=function(O,m){return O.indexOf(m+".")===0};
Z1=function(O,m){return m.indexOf(O+".")===0};
zX=function(O,m,G){return m+G.slice(O.length)};
Kkz=function(O,m){return O===m||vpf(O,m)||Z1(O,m)};
JJ=function(O){if(Array.isArray(O)){for(var m=[],G=0;G<O.length;G++)for(var B=O[G].toString().split("."),Q=0;Q<B.length;Q++)m.push(B[Q]);return m.join(".")}return O};
$Xp=function(O){return Array.isArray(O)?JJ(O).split("."):O.toString().split(".")};
Ve=function(O,m,G){m=$Xp(m);for(var B=0;B<m.length;B++){if(!O)return;O=O[m[B]]}G&&(G.path=m.join("."));return O};
Mk6=function(O,m,G){var B=$Xp(m),Q=B[B.length-1];if(B.length>1){for(m=0;m<B.length-1;m++)if(O=O[B[m]],!O)return;O[Q]=G}else O[m]=G;return B.join(".")};
r8N=function(O,m,G){var B=O[m];if(!B)B=O[m]={};else if(!O.hasOwnProperty(m)&&(B=O[m]=Object.create(O[m]),G))for(var Q in B)for(O=B[Q],m=B[Q]=Array(O.length),G=0;G<O.length;G++)m[G]=O[G];return B};
nI=function(O,m,G,B,Q,H){if(m){var M=!1,R=b_++,x;for(x in G){var t=Q?We(x):x;if(t=m[t])for(var W=0,Z=t.length,z=void 0;W<Z&&(z=t[W]);W++)z.info&&z.info.lastRun===R||Q&&!RvM(x,z.trigger)||(z.info&&(z.info.lastRun=R),z.fn(O,x,G,B,z.info,Q,H),M=!0)}return M}return!1};
RvM=function(O,m){if(m){var G=m.name;return G==O||!(!m.structured||!vpf(G,O))||!(!m.wildcard||!Z1(G,O))}return!0};
ikM=function(O,m,G,B,Q){m=typeof Q.method==="string"?O[Q.method]:Q.method;G=Q.property;m?m.call(O,O.__data[G],B[G]):Q.dynamicFn||console.warn("observer method `"+Q.method+"` not defined")};
xXe=function(O,m,G,B){G={value:G,queueProperty:!0};B&&(G.path=B);(0,_.X2)(O).dispatchEvent(new CustomEvent(m,{detail:G}))};
qQf=function(O,m,G,B,Q,H){H=(B=(H?We(m):m)!=m?m:null)?Ve(O,B):O.__data[m];B&&H===void 0&&(H=G[m]);xXe(O,Q.eventName,H,B)};
UXM=function(O,m,G,B,Q){G=O.__data[m];fI&&(G=fI(G,Q.attrName,"attribute",O));O._propertyToAttribute(m,Q.attrName,G)};
WkN=function(O){var m=O.constructor.__orderedComputedDeps;if(!m){m=new Map;for(var G=O.__computeEffects,B=tkp(O),Q=B.counts,H=B.ready,M=B.total;B=H.shift();)m.set(B,m.size),(B=G[B])&&B.forEach(function(R){R=R.info.methodInfo;--M;--Q[R]===0&&H.push(R)});
M!==0&&console.warn("Computed graph for "+O.localName+" incomplete; circular?");O.constructor.__orderedComputedDeps=m}return m};
tkp=function(O){var m=O.__computeInfo,G={};O=O.__computeEffects;var B=[],Q=0,H;for(H in m){var M=m[H];Q+=G[H]=M.args.filter(function(x){return!x.literal}).length+(M.dynamicFn?1:0)}for(var R in O)m[R]||B.push(R);
return{counts:G,ready:B,total:Q}};
zvO=function(O,m,G,B,Q){m=ZkY(O,m,G,B,Q);if(m===hJ)return!1;Q=Q.methodInfo;if(O.__dataHasAccessor&&O.__dataHasAccessor[Q])return O._setPendingProperty(Q,m,!0);O[Q]=m;return!1};
bkz=function(O,m,G,B,Q,H,M){G.bindings=G.bindings||[];B={kind:B,target:Q,parts:H,literal:M,isCompound:H.length!==1};G.bindings.push(B);B.target&&B.kind!="attribute"&&B.kind!="text"&&!B.isCompound&&B.parts[0].mode==="{"&&(G=B.parts[0],H=G.negate,B.listenerEvent=G.event||UD(Q)+"-changed",B.listenerNegate=H);Q=m.nodeInfoList.length;for(G=0;G<B.parts.length;G++){var R=B.parts[G];R.compoundIndex=G;H=O;M=m;var x=B,t=R,W=Q;if(!t.literal)if(x.kind==="attribute"&&x.target[0]==="-")console.warn("Cannot set attribute "+
x.target+' because "-" is not a valid attribute starting character');else for(R=t.dependencies,x={index:W,binding:x,part:t,evaluator:H},t=0;t<R.length;t++)W=R[t],typeof W=="string"&&(W=J8f(W),W.wildcard=!0),H._addTemplatePropertyEffect(M,W.rootProperty,{fn:VkS,info:x,trigger:W})}};
VkS=function(O,m,G,B,Q,H,M){M=M[Q.index];var R=Q.binding,x=Q.part;H&&x.source&&m.length>x.source.length&&R.kind=="property"&&!R.isCompound&&M.__isPropertyEffectsClient&&M.__dataHasAccessor&&M.__dataHasAccessor[R.target]?(G=G[m],m=zX(x.source,R.target,m),M._setPendingPropertyOrPath(m,G,!1,!0)&&O._enqueueClient(M)):(m=Q.evaluator._evaluateBinding(O,x,m,G,B,H),m!==hJ&&(R.isCompound&&(G=M.__dataCompoundStorage[R.target],G[x.compoundIndex]=m,m=G.join("")),R.kind==="attribute"||R.target!=="textContent"&&
(R.target!=="value"||M.localName!=="input"&&M.localName!=="textarea")||(m=m==void 0?"":m),x=m,fI&&(x=fI(x,R.target,R.kind,M)),R.kind=="attribute"?O._valueToNodeAttribute(M,x,R.target):(R=R.target,M.__isPropertyEffectsClient&&M.__dataHasAccessor&&M.__dataHasAccessor[R]?M.__readOnly&&M.__readOnly[R]||M._setPendingProperty(R,x)&&O._enqueueClient(M):O._setUnmanagedPropertyToNode(M,R,x))))};
npO=function(O,m,G){if(G.listenerEvent){var B=G.parts[0];O.addEventListener(G.listenerEvent,function(Q){var H=G.target,M=B.source,R=B.negate,x=Q.detail,t=x&&x.path;t?(M=zX(H,M,t),Q=x&&x.value):Q=Q.currentTarget[H];m.__readOnly&&m.__readOnly[M]||!m._setPendingPropertyOrPath(M,R?!Q:Q,!0,!!t)||x&&x.queueProperty||m._invalidateProperties()})}};
X$O=function(O,m,G,B,Q,H){H=m.static||H&&(typeof H!=="object"||H[m.methodName]);Q={methodName:m.methodName,args:m.args,methodInfo:Q,dynamicFn:H};for(var M=0,R=void 0;M<m.args.length&&(R=m.args[M]);M++)R.literal||O._addPropertyEffect(R.rootProperty,G,{fn:B,info:Q,trigger:R});H&&O._addPropertyEffect(m.methodName,G,{fn:B,info:Q});return Q};
ZkY=function(O,m,G,B,Q){B=O._methodHost||O;var H=B[Q.methodName];if(H)return O=O._marshalArgs(Q.args,m,G),O===hJ?hJ:H.apply(B,O);Q.dynamicFn||console.warn("method `"+Q.methodName+"` not defined")};
foz=function(O){for(var m="",G=0;G<O.length;G++)m+=O[G].literal||"";return m};
gpS=function(O){if(O=O.match(/([^\s]+?)\(([\s\S]*)\)/)){var m={methodName:O[1],static:!0,args:hvN};return O[2].trim()?TJY(O[2].replace(/\\,/g,"&comma;").split(","),m):m}return null};
TJY=function(O,m){m.args=O.map(function(G){G=J8f(G);G.literal||(m.static=!1);return G},this);
return m};
J8f=function(O){O=O.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var m={name:O,value:"",literal:!1},G=O[0];G==="-"&&(G=O[1]);G>="0"&&G<="9"&&(G="#");switch(G){case "'":case '"':m.value=O.slice(1,-1);m.literal=!0;break;case "#":m.value=Number(O),m.literal=!0}m.literal||(m.rootProperty=We(O),m.structured=tJ(O),m.structured&&(m.wildcard=O.slice(-2)==".*",m.wildcard&&(m.name=O.slice(0,-2))));return m};
uYs=function(O,m,G){O=Ve(O,G);O===void 0&&(O=m[G]);return O};
j6s=function(O,m,G,B){B={indexSplices:B};TX&&!O._overrideLegacyUndefined&&(m.splices=B);O.notifyPath(G+".splices",B);O.notifyPath(G+".length",m.length);TX&&!O._overrideLegacyUndefined&&(B.indexSplices=[])};
gj=function(O,m,G,B,Q,H){j6s(O,m,G,[{index:B,addedCount:Q,removed:H,object:m,type:"splice"}])};
IoY=function(O){O=DkM((O.body?O.body:O).textContent,O.baseURI);var m=document.createElement("style");m.textContent=O;return m};
SQ6=function(O){O=O.trim().split(/\s+/);for(var m=[],G=0;G<O.length;G++)m.push.apply(m,_.lS(p$r(O[G])));return m};
p$r=function(O){var m=u_.import(O);if(!m)return console.warn("Could not find style data in module named",O),[];if(m._styles===void 0){O=[];O.push.apply(O,_.lS(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(m)));var G=m.querySelector("template");G&&O.push.apply(O,_.lS(Ep6(G,m.assetpath)));m._styles=O}return m._styles};
Ep6=function(O,m){if(!O._styles){for(var G=[],B=O.content.querySelectorAll("style"),Q=0;Q<B.length;Q++){var H=B[Q],M=H.getAttribute("include");M&&G.push.apply(G,_.lS(SQ6(M).filter(function(R,x,t){return t.indexOf(R)===x})));
m&&(H.textContent=DkM(H.textContent,m));G.push(H)}O._styles=G}return O._styles};
Lke=function(O){return(O=u_.import(O))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(O):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(O){var m=[];O=O.querySelectorAll("link[rel=import][type~=css]");for(var G=0;G<O.length;G++){var B=O[G];if(B.import){var Q=B.import;if((B=B.hasAttribute("shady-unscoped"))&&!Q._unscopedStyle){var H=IoY(Q);H.setAttribute("shady-unscoped","");Q._unscopedStyle=H}else Q._style||(Q._style=IoY(Q));m.push(B?Q._unscopedStyle:Q._style)}}return m};
opr=function(O){O=O.trim().split(/\s+/);for(var m="",G=0;G<O.length;G++)m+=CWz(O[G]);return m};
CWz=function(O){var m=u_.import(O);if(m&&m._cssText===void 0){var G=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(m),B=m.querySelector("template");B&&(G+=lof(B,m.assetpath));m._cssText=G||null}m||console.warn("Could not find style data in module named",O);return m&&m._cssText||""};
lof=function(O,m){var G="";O=Ep6(O,m);for(m=0;m<O.length;m++){var B=O[m];B.parentNode&&B.parentNode.removeChild(B);G+=B.textContent}return G};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(O){var m="";O=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(O);for(var G=0;G<O.length;G++)m+=O[G].textContent;return m};
jj=function(O,m){return{index:O,removed:[],addedCount:m}};
kKs=function(O,m,G,B){var Q=0,H=0,M=0,R=0,x=Math.min(m-Q,B-H);if(Q==0&&H==0)a:{for(M=0;M<x;M++)if(O[M]!==G[M])break a;M=x}if(m==O.length&&B==G.length){R=O.length;for(var t=G.length,W=0;W<x-M&&aor(O[--R],G[--t]);)W++;R=W}Q+=M;H+=M;m-=R;B-=R;if(m-Q==0&&B-H==0)return[];if(Q==m){for(m=jj(Q,0);H<B;)m.removed.push(G[H++]);return[m]}if(H==B)return[jj(Q,m-Q)];x=Q;M=H;B=B-M+1;R=m-x+1;m=Array(B);for(t=0;t<B;t++)m[t]=Array(R),m[t][0]=t;for(t=0;t<R;t++)m[0][t]=t;for(t=1;t<B;t++)for(W=1;W<R;W++)if(O[x+W-1]===
G[M+t-1])m[t][W]=m[t-1][W-1];else{var Z=m[t-1][W]+1,z=m[t][W-1]+1;m[t][W]=Z<z?Z:z}x=m.length-1;M=m[0].length-1;B=m[x][M];for(O=[];x>0||M>0;)x==0?(O.push(2),M--):M==0?(O.push(3),x--):(R=m[x-1][M-1],t=m[x-1][M],W=m[x][M-1],Z=t<W?t<R?t:R:W<R?W:R,Z==R?(R==B?O.push(0):(O.push(1),B=R),x--,M--):Z==t?(O.push(3),x--,B=t):(O.push(2),M--,B=W));O.reverse();m=void 0;x=[];for(M=0;M<O.length;M++)switch(O[M]){case 0:m&&(x.push(m),m=void 0);Q++;H++;break;case 1:m||(m=jj(Q,0));m.addedCount++;Q++;m.removed.push(G[H]);
H++;break;case 2:m||(m=jj(Q,0));m.addedCount++;Q++;break;case 3:m||(m=jj(Q,0)),m.removed.push(G[H]),H++}m&&x.push(m);return x};
y8S=function(O,m){return kKs(O,O.length,m,m.length)};
aor=function(O,m){return O===m};
YQf=function(O){if(O instanceof c85)return O.value;throw Error("Hd`"+O);};
dX6=function(O,m){for(var G in m)G===null?O.style.removeProperty(G):O.style.setProperty(G,m[G])};
w$Y=function(O,m){return(O=window.getComputedStyle(O).getPropertyValue(m))?O.trim():""};
NJz=function(O){requestAnimationFrame(function(){evN?evN(O):(DXO||(DXO=new Promise(function(m){s6O=m}),document.readyState==="complete"?s6O():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&s6O()})),DXO.then(function(){O&&O()}))})};
A8r=function(O){PWp=O&&O.shimcssproperties?!1:Fkf||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
QES=function(O){if(!(Oqs.indexOf(O)>-1)&&O!=="touchend"&&mQ5&&Gi6&&B7Y)return{passive:!0}};
$Qs=function(O){for(var m=HqI?["click"]:Oqs,G=0,B;G<m.length;G++)B=m[G],O?(vF6.length=0,document.addEventListener(B,K0N,!0)):document.removeEventListener(B,K0N,!0)};
Ia=function(O){var m=O.type;return Oqs.indexOf(m)>-1?m==="mousemove"?(m=O.buttons===void 0?1:O.buttons,O instanceof window.MouseEvent&&!MZp&&(m=rwe[O.which]||0),!!(m&1)):(O.button===void 0?0:O.button)===0:!1};
RTI=function(O){if(O.type==="click"){if(O.detail===0)return!0;var m=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O);if(!m.nodeType||m.nodeType!==Node.ELEMENT_NODE)return!0;m=m.getBoundingClientRect();var G=O.pageX;O=O.pageY;return!(G>=m.left&&G<=m.right&&O>=m.top&&O<=m.bottom)}return!1};
iqN=function(O,m,G){O.movefn=m;O.upfn=G;document.addEventListener("mousemove",m);document.addEventListener("mouseup",G)};
ED=function(O){document.removeEventListener("mousemove",O.movefn);document.removeEventListener("mouseup",O.upfn);O.movefn=null;O.upfn=null};
xQS=function(O,m){for(var G=document.elementFromPoint(O,m),B=G;B&&B.shadowRoot&&!window.ShadyDOM;){var Q=B;B=B.shadowRoot.elementFromPoint(O,m);if(Q===B)break;B&&(G=B)}return G};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O){var m=qgS(O);return m.length>0?m[0]:O.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O){var m=O.type,G=O.currentTarget.__polymerGestures;if(G&&(G=G[m])){if(!O.__polymerGesturesHandled&&(O.__polymerGesturesHandled={},m.slice(0,5)==="touch")){var B=O.changedTouches[0];m==="touchstart"&&O.touches.length===1&&(UQp=B.identifier);if(UQp!==B.identifier)return;mQ5||(m==="touchstart"||m==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O)}B=
O.__polymerGesturesHandled;if(!B.skip){for(var Q=0,H;Q<LI.length;Q++)H=LI[Q],G[H.name]&&!B[H.name]&&H.flow&&H.flow.start.indexOf(O.type)>-1&&H.reset&&H.reset();for(Q=0;Q<LI.length;Q++)H=LI[Q],G[H.name]&&!B[H.name]&&(B[H.name]=!0,H[m](O))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O){var m=O.changedTouches[0],G=O.type;if(G==="touchstart")tZ6=m.clientX,W0p=m.clientY,Zq5=!1;else if(G==="touchmove"&&!Zq5){Zq5=!0;G="auto";for(var B=qgS(O),Q=0,H;Q<B.length;Q++)if(H=B[Q],H.__polymerGesturesTouchAction){G=H.__polymerGesturesTouchAction;break}B=!1;Q=Math.abs(tZ6-m.clientX);m=Math.abs(W0p-m.clientY);O.cancelable&&(G==="none"?B=!0:G==="pan-x"?B=m>Q:G==="pan-y"&&(B=Q>m));B?O.preventDefault():
CI("track")}};
l_=function(O,m,G){return oa[m]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O,m,G),!0):!1};
aa=function(O,m,G){return oa[m]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O,m,G),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O,m,G){var B=oa[m],Q=B.deps,H=B.name,M=O.__polymerGestures;M||(O.__polymerGestures=M={});for(var R=0,x,t;R<Q.length;R++)x=Q[R],HqI&&Oqs.indexOf(x)>-1&&x!=="click"||((t=M[x])||(M[x]=t={_count:0}),t._count===0&&O.addEventListener(x,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,QES(x)),t[H]=(t[H]||0)+1,t._count=(t._count||0)+1);O.addEventListener(m,G);B.touchAction&&_.kV(O,B.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O,m,G){var B=oa[m],Q=B.deps;B=B.name;var H=O.__polymerGestures;if(H)for(var M=0,R,x;M<Q.length;M++)R=Q[M],(x=H[R])&&x[B]&&(x[B]=(x[B]||1)-1,x._count=(x._count||1)-1,x._count===0&&O.removeEventListener(R,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,QES(R)));O.removeEventListener(m,G)};
zTf=function(O){LI.push(O);for(var m=0;m<O.emits.length;m++)oa[O.emits[m]]=O};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O){for(var m=0,G;m<LI.length;m++){G=LI[m];for(var B=0,Q;B<G.emits.length;B++)if(Q=G.emits[B],Q===O)return G}return null};
_.kV=function(O,m){mQ5&&O instanceof HTMLElement&&YV.run(function(){O.style.touchAction=m});
O.__polymerGesturesTouchAction=m};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(O,m,G){m=new Event(m,{bubbles:!0,cancelable:!0,composed:!0});m.detail=G;(0,_.X2)(O).dispatchEvent(m);m.defaultPrevented&&(O=G.preventer||G.sourceEvent)&&O.preventDefault&&O.preventDefault()};
CI=function(O){O=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O);O.info&&(O.info.prevent=!0)};
dj=function(O,m,G,B){m&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m,O,{x:G.clientX,y:G.clientY,sourceEvent:G,preventer:B,prevent:function(Q){return CI(Q)}})};
Jwp=function(O,m,G){if(O.prevent)return!1;if(O.started)return!0;G=Math.abs(O.y-G);return Math.abs(O.x-m)>=5||G>=5};
VZz=function(O,m,G){if(m){var B=O.moves[O.moves.length-2],Q=O.moves[O.moves.length-1],H=Q.x-O.x,M=Q.y-O.y,R=0;if(B){var x=Q.x-B.x;R=Q.y-B.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m,"track",{state:O.state,x:G.clientX,y:G.clientY,dx:H,dy:M,ddx:x,ddy:R,sourceEvent:G,hover:function(){return xQS(G.clientX,G.clientY)}})}};
nF5=function(O,m,G){var B=Math.abs(m.clientX-O.x),Q=Math.abs(m.clientY-O.y),H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G||m);!H||bqr[H.localName]&&H.hasAttribute("disabled")||!(isNaN(B)||isNaN(Q)||B<=25&&Q<=25||RTI(m))||O.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,"tap",{x:m.clientX,y:m.clientY,sourceEvent:m,preventer:G})};
XpI=function(O,m,G,B,Q){var H;Q&&(H=typeof G==="object"&&G!==null)&&(B=O.__dataTemp[m]);B=B!==G&&(B===B||G===G);H&&B&&(O.__dataTemp[m]=G);return B};
hT5=function(){if(wj&&!ej){if(!fMp){fMp=!0;var O=document.createElement("style");O.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(O)}return!0}return!1};
gFp=function(){return T7Y};
uSN=function(O,m){T7Y=O;Object.setPrototypeOf(O,m.prototype);new m;T7Y=null};
jEN=function(O,m){for(var G=0;G<m.length;G++){var B=m[G];if(!!O!=!!B.__hideTemplateChildren__)if(B.nodeType===Node.TEXT_NODE)O?(B.__polymerTextContent__=B.textContent,B.textContent=""):B.textContent=B.__polymerTextContent__;else if(B.localName==="slot")if(O)B.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.X2)((0,_.X2)(B).parentNode).replaceChild(B.__polymerReplaced__,B);else{var Q=B.__polymerReplaced__;Q&&(0,_.X2)((0,_.X2)(Q).parentNode).replaceChild(B,Q)}else B.style&&(O?(B.__polymerDisplay__=
B.style.display,B.style.display="none"):B.style.display=B.__polymerDisplay__);B.__hideTemplateChildren__=O;B._showHideChildren&&B._showHideChildren(O)}};
IMO=function(O){return(O=O.__dataHost)&&O._methodHost||O};
EFY=function(O,m,G){var B=G.mutableData?pp5:D1;sD.mixin&&(B=sD.mixin(B));var Q=function(){return B.apply(this,arguments)||this};
_.X(Q,B);Q.prototype.__templatizeOptions=G;Q.prototype._bindTemplate(O);SgO(Q,O,m,G);return Q};
aMr=function(O,m,G,B){var Q=G.forwardHostProp;if(Q&&m.hasHostProps){var H=O.localName=="template",M=m.templatizeTemplateClass;if(!M){if(H){var R=G.mutableData?L0z:CgN;M=function(){return R.apply(this,arguments)||this};
_.X(M,R);M=m.templatizeTemplateClass=M}else{var x=O.constructor;M=function(){return x.apply(this,arguments)||this};
_.X(M,x);M=m.templatizeTemplateClass=M}var t=m.hostProps,W;for(W in t)M.prototype._addPropertyEffect("_host_"+W,M.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:oFM(Q)}),M.prototype._createNotifyingProperty("_host_"+W);ND&&B&&lMr(m,G,B)}O.__dataProto&&Object.assign(O.__data,O.__dataProto);if(H)uSN(O,M),O.__dataTemp={},O.__dataPending=null,O.__dataOld=null,O._enableProperties();else{Object.setPrototypeOf(O,M.prototype);m=m.hostProps;for(var Z in m)Z="_host_"+Z,Z in O&&(m=O[Z],delete O[Z],O.__data[Z]=
m)}}};
oFM=function(O){return function(m,G,B){O.call(m.__templatizeOwner,G.substring(6),B[G])}};
SgO=function(O,m,G,B){var Q=G.hostProps||{},H;for(H in B.instanceProps){delete Q[H];var M=B.notifyInstanceProp;M&&O.prototype._addPropertyEffect(H,O.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:kiS(M)})}if(B.forwardHostProp&&m.__dataHost)for(var R in Q)G.hasHostProps||(G.hasHostProps=!0),O.prototype._addPropertyEffect(R,O.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:yw5()})};
kiS=function(O){return function(m,G,B){O.call(m.__templatizeOwner,m,G,B[G])}};
yw5=function(){return function(O,m,G){O.__dataHost._setPendingPropertyOrPath("_host_"+m,G[m],!0,!0)}};
sD=function(O,m,G){if(Pe&&!IMO(O))throw Error("Nd");G=G||{};if(O.__templatizeOwner)throw Error("Od");O.__templatizeOwner=m;var B=(m?m.constructor:D1)._parseTemplate(O),Q=B.templatizeInstanceClass;Q||(Q=EFY(O,B,G),B.templatizeInstanceClass=Q);var H=IMO(O);aMr(O,B,G,H);G=function(){return Q.apply(this,arguments)||this};
_.X(G,Q);G.prototype._methodHost=H;G.prototype.__dataHost=O;G.prototype.__templatizeOwner=m;G.prototype.__hostProps=B.hostProps;return G};
lMr=function(O,m,G){G=G.constructor._properties;O=O.propertyEffects;m=m.instanceProps;for(var B in O)if(!(G[B]||m&&m[B]))for(var Q=O[B],H=0;H<Q.length;H++){var M=Q[H].info.part;if(!M.signature||!M.signature.static){console.warn("Property '"+B+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
cwM=function(O,m){for(var G;m;)if(G=m.__dataHost?m:m.__templatizeInstance)if(G.__dataHost!=O)m=G.__dataHost;else return G;else m=(0,_.X2)(m).parentNode;return null};
F2=function(O){return O.localName==="slot"};
Ygf=function(){for(var O=AJ.prototype,m="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),G={},B=0;B<m.length;G={method$jscomp$33:void 0},B++)G.method$jscomp$33=m[B],O[G.method$jscomp$33]=function(Q){return function(){return this.node[Q.method$jscomp$33].apply(this.node,arguments)}}(G)};
dQM=function(O,m){for(var G={},B=0;B<m.length;G={name$jscomp$448:void 0},B++)G.name$jscomp$448=m[B],Object.defineProperty(O,G.name$jscomp$448,{get:function(Q){return function(){return this.node[Q.name$jscomp$448]}}(G),
configurable:!0})};
wpp=function(){for(var O=AJ.prototype,m=["textContent","innerHTML","className"],G={},B=0;B<m.length;G={name$jscomp$449:void 0},B++)G.name$jscomp$449=m[B],Object.defineProperty(O,G.name$jscomp$449,{get:function(Q){return function(){return this.node[Q.name$jscomp$449]}}(G),
set:function(Q){return function(H){this.node[Q.name$jscomp$449]=H}}(G),
configurable:!0})};
eTI=function(){OF=document.documentElement.getAttribute("dir");OF=document.documentElement.getAttribute("dir");for(var O=0;O<m9.length;O++){var m=m9[O];m.__autoDirOptOut||m.setAttribute("dir",OF)}};
Pgs=function(){GA=!0;requestAnimationFrame(function(){GA=!1;DQ6(sEM);setTimeout(function(){for(var O=0,m=Br.length;O<m;O++)N75(Br.shift())})})};
DQ6=function(O){for(;O.length;)N75(O.shift())};
N75=function(O){var m=O[0],G=O[1];O=O[2];try{G.apply(m,O)}catch(B){setTimeout(function(){throw B;})}};
_.F06=function(O,m,G){GA||Pgs();sEM.push([O,m,G])};
_.QA=function(O,m,G){GA||Pgs();Br.push([O,m,G])};
m06=function(O,m){m=m===void 0?!1:m;if(!Awr||!O4e||!Awr.handlesDynamicScoping)return null;var G=O4e.ScopingShim;if(!G)return null;var B=G.scopeForNode(O),Q=(0,_.X2)(O).getRootNode(),H=function(M){if((0,_.X2)(M).getRootNode()===Q){var R=Array.from(Awr.nativeMethods.querySelectorAll.call(M,"*"));R.push(M);for(M=0;M<R.length;M++){var x=R[M];if((0,_.X2)(x).getRootNode()===Q){var t=G.currentScopeForNode(x);t!==B&&(t!==""&&G.unscopeNode(x,t),G.scopeNode(x,B))}}}};
H(O);return m?(m=new MutationObserver(function(M){for(var R=0;R<M.length;R++)for(var x=M[R],t=0;t<x.addedNodes.length;t++){var W=x.addedNodes[t];W.nodeType===Node.ELEMENT_NODE&&H(W)}}),m.observe(O,{childList:!0,
subtree:!0}),m):null};
GDY=function(){document.body.removeAttribute("unresolved")};
Kgs=function(O){var m=O=O.replace(BsN,"").replace(QD5,""),G=new H4N;G.start=0;G.end=m.length;for(var B=G,Q=0,H=m.length;Q<H;Q++)if(m[Q]==="{"){B.rules||(B.rules=[]);var M=B,R=M.rules[M.rules.length-1]||null;B=new H4N;B.start=Q+1;B.parent=M;B.previous=R;M.rules.push(B)}else m[Q]==="}"&&(B.end=Q+1,B=B.parent||G);return v7r(G,O)};
v7r=function(O,m){var G=m.substring(O.start,O.end-1);O.parsedCssText=O.cssText=G.trim();O.parent&&(G=m.substring(O.previous?O.previous.end:O.parent.start,O.start-1),G=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(G),G=G.replace($0Y," "),G=G.substring(G.lastIndexOf(";")+1),G=O.parsedSelector=O.selector=G.trim(),O.atRule=G.indexOf("@")===0,O.atRule?G.indexOf("@media")===0?O.type=4:G.match(MG5)&&(O.type=7,O.keyframesName=O.selector.split($0Y).pop()):G.indexOf("--")===
0?O.type=1E3:O.type=1);if(G=O.rules)for(var B=0,Q=G.length,H=void 0;B<Q&&(H=G[B]);B++)v7r(H,m);return O};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(O){return O.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var m=arguments[1],G=6-m.length;G--;)m="0"+m;return"\\"+m})};
rRz=function(O,m,G){G=G===void 0?"":G;var B="";if(O.cssText||O.rules){var Q=O.rules;if(Q&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Q))for(var H=0,M=Q.length,R=void 0;H<M&&(R=Q[H]);H++)B=rRz(R,m,B);else m?m=O.cssText:(m=O.cssText,m=m.replace(RV5,"").replace(i4r,""),m=m.replace(x0e,"").replace(qbe,"")),(B=m.trim())&&(B="  "+B+"\n")}B&&(O.selector&&(G+=O.selector+" {\n"),G+=B,O.selector&&(G+="}\n\n"));return G};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(O){O=O[0];return!!O&&!!O.selector&&O.selector.indexOf("--")===0};
tGN=function(O){if(O=U0M[O])O._applyShimCurrentVersion=O._applyShimCurrentVersion||0,O._applyShimValidatingVersion=O._applyShimValidatingVersion||0,O._applyShimNextVersion=(O._applyShimNextVersion||0)+1};
WgO=function(O){return O._applyShimCurrentVersion===O._applyShimNextVersion};
zVp=function(O){O._applyShimValidatingVersion=O._applyShimNextVersion;O._validating||(O._validating=!0,Z4s.then(function(){O._applyShimCurrentVersion=O._applyShimNextVersion;O._validating=!1}))};
VGI=function(O){if(!O)return"";typeof O==="string"&&(O=Kgs(O));return rRz(O,JRp)};
b4N=function(O){!O.__cssRules&&O.textContent&&(O.__cssRules=Kgs(O.textContent));return O.__cssRules||null};
X4M=function(O,m,G,B){if(O){var Q=!1,H=O.type;if(B&&H===4){var M=O.selector.match(n75);M&&(window.matchMedia(M[1]).matches||(Q=!0))}H===1?m(O):G&&H===7?G(O):H===1E3&&(Q=!0);if((O=O.rules)&&!Q)for(Q=0,H=O.length,M=void 0;Q<H&&(M=O[Q]);Q++)X4M(M,m,G,B)}};
feY=function(O,m){var G=O.indexOf("var(");if(G===-1)return m(O,"","","");a:{var B=0;var Q=G+3;for(var H=O.length;Q<H;Q++)if(O[Q]==="(")B++;else if(O[Q]===")"&&--B===0)break a;Q=-1}B=O.substring(G+4,Q);G=O.substring(0,G);O=feY(O.substring(Q+1),m);H=B.indexOf(",");if(H===-1)return m(G,B.trim(),"",O);Q=B.substring(0,H).trim();B=B.substring(H+1).trim();return m(G,Q,B,O)};
hVe=function(O){if(Hr!==void 0)return Hr;if(O.__cssBuild===void 0){var m=O.getAttribute("css-build");if(m)O.__cssBuild=m;else{a:{m=O.localName==="template"?O.content.firstChild:O.firstChild;if(m instanceof Comment&&(m=m.textContent.trim().split(":"),m[0]==="css-build")){m=m[1];break a}m=""}if(m!==""){var G=O.localName==="template"?O.content.firstChild:O.firstChild;G.parentNode.removeChild(G)}O.__cssBuild=m}}return O.__cssBuild||""};
g7s=function(O,m,G,B){for(var Q=m._noAccessors,H=Object.getOwnPropertyNames(m),M=0;M<H.length;M++){var R=H[M];if(!(R in B))if(Q)O[R]=m[R];else{var x=Object.getOwnPropertyDescriptor(m,R);x&&(x.configurable=!0,Object.defineProperty(O,R,x))}}for(var t in TsN)m[t]&&(G[t]=G[t]||[],G[t].push(m[t]))};
u9r=function(O,m,G){m=m||[];for(var B=O.length-1;B>=0;B--){var Q=O[B];Q?Array.isArray(Q)?u9r(Q,m):m.indexOf(Q)<0&&(!G||G.indexOf(Q)<0)&&m.unshift(Q):console.warn("behavior is null, check for missing or 404 import")}return m};
jDO=function(O,m){for(var G in m){var B=O[G],Q=m[G];O[G]=!("value"in Q)&&B&&"value"in B?Object.assign({value:B.value},Q):Q}};
Sbp=function(O,m,G){var B={},Q=function(){return m.apply(this,arguments)||this};
_.X(Q,m);Q._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(M)for(var x=0,t;x<M.length;x++)t=M[x],t.properties&&this.createProperties(t.properties),t.observers&&this.createObservers(t.observers,t.properties);O.properties&&this.createProperties(O.properties);O.observers&&this.createObservers(O.observers,O.properties);this._prepareTemplate()}else m._finalizeClass.call(this)};
Q.prototype.created=function(){m.prototype.created.call(this);var x=B.created;if(x)for(var t=0;t<x.length;t++)x[t].call(this)};
Q.prototype._registered=function(){var x=Q.prototype;if(!x.hasOwnProperty("__hasRegisterFinished")){x.__hasRegisterFinished=!0;m.prototype._registered.call(this);wj&&R(x);x=Object.getPrototypeOf(this);var t=B.beforeRegister;if(t)for(var W=0;W<t.length;W++)t[W].call(x);if(t=B.registered)for(W=0;W<t.length;W++)t[W].call(x)}};
Q.prototype._applyListeners=function(){m.prototype._applyListeners.call(this);var x=B.listeners;if(x)for(var t=0;t<x.length;t++){var W=x[t];if(W)for(var Z in W)this._addMethodEventListenerToNode(this,Z,W[Z])}};
Q.prototype._ensureAttributes=function(){var x=B.hostAttributes;if(x)for(var t=x.length-1;t>=0;t--){var W=x[t],Z;for(Z in W)this._ensureAttribute(Z,W[Z])}m.prototype._ensureAttributes.call(this)};
Q.prototype.ready=function(){m.prototype.ready.call(this);var x=B.ready;if(x)for(var t=0;t<x.length;t++)x[t].call(this)};
Q.prototype.attached=function(){m.prototype.attached.call(this);var x=B.attached;if(x)for(var t=0;t<x.length;t++)x[t].call(this)};
Q.prototype.detached=function(){m.prototype.detached.call(this);var x=B.detached;if(x)for(var t=0;t<x.length;t++)x[t].call(this)};
Q.prototype.attributeChanged=function(x,t,W){m.prototype.attributeChanged.call(this);var Z=B.attributeChanged;if(Z)for(var z=0;z<Z.length;z++)Z[z].call(this,x,t,W)};
_.vr.Object.defineProperties(Q,{properties:{configurable:!0,enumerable:!0,get:function(){var x={};if(M)for(var t=0;t<M.length;t++)jDO(x,M[t].properties);jDO(x,O.properties);return x}},
observers:{configurable:!0,enumerable:!0,get:function(){var x=[];if(M)for(var t=0,W;t<M.length;t++)W=M[t],W.observers&&(x=x.concat(W.observers));O.observers&&(x=x.concat(O.observers));return x}}});
if(G){Array.isArray(G)||(G=[G]);var H=m.prototype.behaviors;var M=u9r(G,null,H);Q.prototype.behaviors=H?H.concat(G):M}var R=function(x){if(M)for(var t=M,W=0;W<t.length;W++)g7s(x,t[W],B,IeS);g7s(x,O,B,p4z)};
wj||R(Q.prototype);Q.generatedFrom=O;return Q};
o7I=function(O){var m=typeof O!=="string"?O:{is:O,notifyObserversOnUndefined:!0};m.fastInit===void 0&&(m.fastInit=!0);return function(G){if(!m.disableInheritanceCheck&&Object.getPrototypeOf(G.prototype).constructor!==_.KC)throw Error("Sd");var B=G.prototype;B.is=m.is;cIf(B,"created",function(){this.hostElement=this;this.polymerController=this});
E7e(B,G,m.fastInit);m.notifyObserversOnUndefined&&(B._overrideLegacyUndefined=!0);if(LgS)for(var Q=_.K(Object.getOwnPropertyNames(B)),H=Q.next();!H.done;H=Q.next()){H=H.value;var M=Object.getOwnPropertyDescriptor(B,H);M.enumerable===!1&&(M.enumerable=!0,Object.defineProperty(B,H,M))}if("template"in G)var R=function(){return G.template};
else m.template!==void 0&&(R=m.template);if(R!==void 0){var x;Object.defineProperty(B,"_template",{get:function(){x===void 0&&(x=R());return x},
set:function(t){x=t},
configurable:!0,enumerable:!0})}Polymer(B);G[C4S]=B}};
le5=function(O){O=O===void 0?{}:O;O.fastInit===void 0&&(O.fastInit=!0);return function(m){if(!O.disableInheritanceCheck&&Object.getPrototypeOf(m.prototype).constructor!==$f)throw Error("Td");E7e(m.prototype,m,O.fastInit)}};
E7e=function(O,m,G){G=G===void 0?!1:G;aeI(m);G?cIf(O,"created",function(){this.disableEnforceFastDefaultValuesCheck||kDp(m,this)}):cIf(O,"ready",function(){for(var B={},Q=_.K(YpS(this.behaviors)),H=Q.next();!H.done;H=Q.next())H=H.value,H.properties&&Object.assign(B,yRp(this,H.properties));
Object.assign(B,yRp(this,this.properties));kDp(m,this);Q=_.K(Object.keys(B));for(H=Q.next();!H.done;H=Q.next())H=H.value,this[H]=B[H]})};
kDp=function(O,m){if(LgS){O=new O;for(var G=_.K(Object.getOwnPropertyNames(O)),B=G.next();!B.done;B=G.next())B=B.value,m[B]=O[B];for(G=m;G&&G!==Object.prototype;G=Object.getPrototypeOf(G)){B=_.K(Object.getOwnPropertyNames(G));for(var Q=B.next();!Q.done;Q=B.next())Q=Q.value,O.hasOwnProperty(Q)||Object.defineProperty(O,Q,cRY(m,Q))}}else O.apply(m)};
cRY=function(O,m){return{get:function(){var G=O[m];return G instanceof Function?G.bind(O):G},
set:function(G){O[m]=G}}};
yRp=function(O,m){if(!m)return{};for(var G={},B=_.K(Object.keys(m)),Q=B.next();!Q.done;Q=B.next())if(Q=Q.value,!m[Q].readOnly){var H=O[Q];H!==void 0&&(G[Q]=H)}return G};
aeI=function(O){var m=new O;O=O.prototype.properties||{};for(var G=_.K(Object.keys(O)),B=G.next();!B.done;B=G.next())if(B=B.value,m.hasOwnProperty(B)){var Q=O[B];typeof Q==="function"&&(O[B]=Q={type:Q});m[B]!=null&&Q.type===Object&&(Q.type=YbO(m[B].constructor))}};
YbO=function(O){for(var m=_.K(d0Y),G=m.next();!G.done;G=m.next())if(G=G.value,O===G)return G;return Object};
w4N=function(O){return function(m,G){m.behaviors=m.behaviors||[];m.behaviors.push(O||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",m,G).prototype:void 0));Object.defineProperty(m,G,{get:function(){return this},
enumerable:!0,configurable:!0})}};
eVr=function(O){O=O===void 0?{}:O;return function(m,G){m.properties=m.properties||{};O.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?O.type=YbO(Reflect.getMetadata("design:type",m,G)):O.type=String);var B=O,Q=m.properties[G];m.properties[G]=Q?Object.assign({},Q,B):B}};
D0N=function(O){return function(m,G){m.listeners=m.listeners||{};m.listeners[O]=G}};
sDz=function(){var O=_.eA.apply(0,arguments);if(O.length===0)throw Error("Ud");return function(m,G){m.observers=m.observers||[];m.observers.push(G+"("+O.join(",")+")")}};
NsY=function(){var O=_.eA.apply(0,arguments);return function(m,G,B){var Q=Object.getOwnPropertyDescriptor(m,G).get,H="__compute__"+G;Object.defineProperty(m,H,{value:Q,enumerable:!0});m.properties=m.properties||{};Q=m.properties[G];Q||(Q={},m.properties[G]=Q);Q.computed=H+"("+O.join(",")+")";B.get=void 0}};
_.M5=function(O,m,G){_.Iw.call(this);this.JSC$11317_id_=null;this.usingListeners_=!1;this.JSC$11317_listener_=O;this.handler_=G;this.JSC$11317_win_=m||window;this.callback_=(0,_.pd)(this.JSC$11319_doAction_,this)};
rK=function(O){this.range_=O};
Rq=function(O){this.range_=O};
q5=function(O,m,G){_.Iw.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=O;this.scrollTimer_=new _.iH(50);this.JSC$11396_eventHandler_=new _.xf(this);this.scrollDelta_=new _.yD;this.containerIsActuallyContent_=O.tagName==="BODY"||O.tagName==="HTML";this.containerBounds_=P46(O);this.containerIsActuallyContent_&&(O=_.TP(),this.containerBounds_.height=O.height,this.containerBounds_.width=O.width);this.margin_=m||0;if(m){if(m=this.containerBounds_.clone(),O=this.margin_){var B=
Math.min(O,m.height*.25);m.top+=B;m.height-=2*B;O=Math.min(O,m.width*.25);m.left+=O;m.width-=2*O}}else m=this.containerBounds_;this.scrollBounds_=m;G||this.JSC$11396_eventHandler_.listen(_.Y6(this.containerNode_),"mousemove",this.JSC$11398_onMouseMove);this.JSC$11396_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11398_onTick_)};
_.UF=function(O){this.mechanism=O};
tc=function(O,m){this.JSC$11494_key_=O;this.JSC$11494_value_=m};
AR6=function(O){if(O>=55296&&O<=57343||O>1114111)return"\ufffd";O in FgY&&(O=FgY[O]);var m="";O>65535&&(O-=65536,m+=String.fromCharCode(O>>>10&1023|55296),O=56320|O&1023);return m+=String.fromCharCode(O)};
OyM=function(O,m){return O<m?1:-1};
GZs=function(){return function(O){return O.charAt(1)==="#"?O.charAt(2)==="X"||O.charAt(2)==="x"?AR6(parseInt(O.substr(3),16)):AR6(parseInt(O.substr(2),10)):mvf[O.slice(1,-1)]}};
Hyr=function(O){return O.slice(1,O.length-1).trim().replace(B6I,function(m){return Q7O[m]||" "})};
Wr=function(O){return O===32||O===9};
Zf=function(O,m){return m<O.length?O.charCodeAt(m):-1};
vNN=function(O){for(;O;){if(O._lastLineBlank)return!0;var m=O.type;if(m==="list"||m==="item")O=O._lastChild;else break}return!1};
zA=function(O){if(Kif.test(O)){var m=1,G=0,B=0;for(O[G]=="|"&&G++;G<O.length;){switch(O[G]){case "|":B=1;break;case " ":break;case "\t":break;default:B&&(B=0,m++)}G++}return $vp.test(O)?-m:m}return 0};
MBS=function(O){return O=="table"||O=="row"||O=="cell"};
RI6=function(){return new Jc("document",[[1,1],[0,0]])};
iyp=function(){};
VA=function(){var O={safe:!1};O=O||{};O.softbreak=O.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=O};
WiM=function(O,m){var G="";if(O)if(O=O.toLowerCase(),O===" "||xvr.test(O))G="space";else if(q2e.test(O))G="esc";else if(O.length==1){if(!m||UvO.test(O))G=O}else G=tBN.test(O)?O.replace("arrow",""):O=="multiply"?"*":O;return G};
VBf=function(O,m){var G=O.hasModifiers;if(m.key)G=WiM(m.key,G);else if(m.detail&&m.detail.key)G=WiM(m.detail.key,G);else{G=m.keyIdentifier;var B="";G&&(G in Zy5?B=Zy5[G]:zIp.test(G)?(G=parseInt(G.replace("U+","0x"),16),B=String.fromCharCode(G).toLowerCase()):B=G.toLowerCase());(G=B)||(G=m.keyCode,B="",Number(G)&&(G>=65&&G<=90?B=String.fromCharCode(32+G):G>=112&&G<=123?B="f"+(G-112+1):G>=48&&G<=57?B=String(G-48):G>=96&&G<=105?B=String(G-96):B=J$r[G]),G=B);G=G||""}return G===O.key&&(!O.hasModifiers||
!!m.shiftKey===!!O.shiftKey&&!!m.ctrlKey===!!O.ctrlKey&&!!m.altKey===!!O.altKey&&!!m.metaKey===!!O.metaKey)};
nNO=function(O){return O.length===1?{combo:O,key:O,event:"keydown"}:O.split("+").reduce(function(m,G){var B=G.split(":");G=B[0];B=B[1];G in byM?(m[byM[G]]=!0,m.hasModifiers=!0):(m.key=G,m.event=B||"keydown");return m},{combo:O.split(":").shift()})};
XkY=function(O){return O.trim().split(" ").map(function(m){return nNO(m)})};
fre=function(O,m){if(O&&O.fn){var G=O.fn;O.fn=function(){try{G.apply(this,arguments)}catch(B){if(B instanceof bH)console.warn("Argument '"+B.arg+"'"+(m?" for method '"+m+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw B;}}}return O};
hIs=function(){var O=_.eA.apply(0,arguments);return O.length===0?function(m){return m}:O.length===1?O[0]:O.reduce(function(m,G){return function(){return m(G.apply(null,_.lS(_.eA.apply(0,arguments))))}})};
T6p=function(){var O=_.eA.apply(0,arguments);return function(m){return function(G,B){G=m(G,B);var Q=function(){throw Error("Ee");},H={getState:G.getState,
dispatch:function(M){return Q.apply(null,[M].concat(_.lS(_.eA.apply(1,arguments))))}};
B=O.map(function(M){return M(H)});
Q=hIs.apply(null,_.lS(B))(G.dispatch);return Object.assign({},G,{dispatch:Q})}}};
j7f=function(O){Object.keys(O).forEach(function(m){var G=O[m];if(typeof G(void 0,{type:gNN})==="undefined")throw Error("Fe`"+m);if(typeof G(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+unr()})==="undefined")throw Error("Ge`"+m+"`"+gNN);})};
nC=function(O){for(var m=Object.keys(O),G={},B=0;B<m.length;B++){var Q=m[B];typeof O[Q]==="function"&&(G[Q]=O[Q])}var H=Object.keys(G);try{j7f(G)}catch(R){var M=R}return function(R,x){R=R===void 0?{}:R;if(M)throw M;for(var t=!1,W={},Z=0;Z<H.length;Z++){var z=H[Z],J=R[z],n=(0,G[z])(J,x);if(typeof n==="undefined")throw R=x&&x.type,Error("He`"+(R?'"'+String(R)+'"':"(unknown type)")+"`"+z);W[z]=n;t=t||n!==J}return(t=t||H.length!==Object.keys(R).length)?W:R}};
IrY=function(O,m,G){function B(){if(W)throw Error("Ie");return R}
function Q(J){if(typeof J!=="function")throw Error("Je`"+typeof J);if(W)throw Error("Ke");var n=!0;t===x&&(t=x.slice());t.push(J);return function(){if(n){if(W)throw Error("Le");n=!1;t===x&&(t=x.slice());var I=t.indexOf(J);t.splice(I,1);x=null}}}
function H(J){if(typeof J!=="object"||J===null)var n=!1;else{for(n=J;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);n=Object.getPrototypeOf(J)===n}if(!n)throw Error("Me`"+typeof J);if(typeof J.type==="undefined")throw Error("Ne");if(W)throw Error("Oe");try{W=!0,R=M(R,J)}finally{W=!1}n=x=t;for(var I=0;I<n.length;I++)(0,n[I])();return J}
if(typeof m==="function"&&typeof G==="function"||typeof G==="function"&&typeof arguments[3]==="function")throw Error("Pe");typeof m==="function"&&typeof G==="undefined"&&(G=m,m=void 0);if(typeof G!=="undefined"){if(typeof G!=="function")throw Error("Qe`"+typeof G);return G(IrY)(O,m)}if(typeof O!=="function")throw Error("Re`"+typeof O);var M=O,R=m,x=[],t=x,W=!1;H({type:gNN});var Z={},z=(Z.dispatch=H,Z.subscribe=Q,Z.getState=B,Z.replaceReducer=function(J){if(typeof J!=="function")throw Error("Se`"+
typeof J);M=J;H({type:pkI});return z},Z[S2Y]=function(){var J={};
return J.subscribe=function(n){function I(){n.next&&n.next(B())}
if(typeof n!=="object"||n===null)throw new TypeError("Te`"+typeof n);I();return{unsubscribe:Q(I)}},J[S2Y]=function(){return this},J},Z);
return z};
ENs=function(O){function m(){Q&&(Q=!1,O());H&&B()}
function G(){requestAnimationFrame(m)}
function B(){var R=Date.now();if(Q){if(R-M<2)return;H=!0}else Q=!0,H=!1,setTimeout(G,20);M=R}
var Q=!1,H=!1,M=0;return B};
XE=function(O){return typeof O==="number"?O:parseFloat(O)||0};
Lir=function(O){return _.eA.apply(1,arguments).reduce(function(m,G){return m+XE(O["border-"+G+"-width"])},0)};
_.f=function(O,m){m=OI(P8(m));O.innerHTML=m};
lrO=function(O){var m=Clp;m||(m=oNp(),m=Clp=_.aM.transpose(m));m=m[O];return typeof m==="string"?m:_.fC(O)};
ars=function(O){O=String(O).toLowerCase();var m=oNp()[O];return typeof m==="string"?m:_.hc(O)};
kZf=function(O){O=O.toLowerCase();O=oNp()[O];return typeof O==="string"?O:null};
oNp=function(){if(!y$f){for(var O=Object.assign({},c$N),m=_.K(Y25),G=m.next();!G.done;G=m.next())G=G.value,O[G.toLowerCase()]=G;y$f=O}return y$f};
eIN=function(O,m){var G=window.customElements;return G&&G.get(O)||dvp[O]===!0?2:m.name==="HTMLUnknownElement"?1:m.name==="HTMLElement"&&wkN.test(O)?3:0};
N6S=function(O,m){switch(m){case "innerHTML":return Dvz(O)===1?2:null;case "textContent":return O=Dvz(O),O===1||O===6?1:null;default:var G,B;return(B=(G=s7N[O.localName])==null?void 0:G[m])!=null?B:null}};
Dvz=function(O){var m=O.localName,G=eIN(m,O.constructor);switch(G){case 0:case 1:return PlY(m,O);case 3:case 2:return 1;default:_.d8(G,"got an unknown element classification")}};
PlY=function(O,m){var G=Object.hasOwnProperty.call(Fif,O)?Fif[O]:null;return G!==null?G:Object.hasOwnProperty.call(A$p,O)&&m instanceof SVGElement?A$p[O]:null};
OYf=function(O,m){return m};
Gmf=function(O){return(O=O.split(mmr,2))?{url:O[0],metadata:O[1]}:null};
QKs=function(O){var m=String(O.url).replace(BWf,encodeURIComponent);if(O=O.metadata){BWf.lastIndex=0;if(BWf.test(O))return null;m+=" "+O}return m};
$mp=function(O){function m(t){var W=t.localName;if(!t.getAttribute("is")&&eIN(W,t.constructor)===2){var Z;return(Z=x)!=null?Z:x=document.createElement("polyresinuncustomized")}(t=R[W])||(t=R[W]=document.createElement(W));return t}
var G=O.reportHandler||void 0,B=O.safeTypesBridge||HYs,Q=/^$/;if(O=O.allowedIdentifierPrefixes){O=_.K(O);for(var H=O.next();!H.done;H=O.next())Q=new RegExp(Q.source+"|^"+_.vr5(H.value))}G&&G(!1,"initResin",null);var M=K7p(Q,B,G),R={},x=null;return function(t,W,Z){var z=t.nodeType;if(z!==Node.ELEMENT_NODE){if(z===Node.TEXT_NODE){W=t.parentElement;Z=!W;if(W&&W.nodeType===Node.ELEMENT_NODE){z=W.localName;var J=eIN(z,W.constructor);switch(J){case 0:case 1:W=PlY(z,W);Z=W===1||W===6;break;case 3:case 2:Z=
!0;break;default:_.d8(J,"got an unknown element classification")}}if(Z)return function(L){return""+B(L,"STRING",L)}}return function(L){if(!L&&L!==document.all)return L;
G&&G(!0,"Failed to sanitize "+(t.parentElement&&t.parentElement.nodeName)+" #text node to value "+L,t.parentElement);return TA}}var n=t.localName;
z=m(t);var I=null;switch(Z){case "attribute":if(ars(W)in z)break;return function(L){return L};
case "property":if(W in z){I=N6S(z,W);break}if((J=kZf(W))&&J in z)break;return function(L){return L};
default:_.d8(Z,"got an unknown resin type, expected either 'property' or 'attribute'")}var S=Z==="attribute"?W.toLowerCase():lrO(W);I||(I=RWN(n,S,function(L){var C=t.getAttribute(L);return!C||/[\[\{]/.test(L)?null:C}));
return function(L){var C=gK,P=null;if(!L&&L!==document.all)return L;if(I!=null){var w=M[I],d=w.safeType;P=w.safeReplacement;d&&(C=B(L,d,gK));C===gK&&(w.filterString?(C=String(B(L,"STRING",L)),C=w.filterString(n,S,C)):w.filterRaw&&(C=w.filterRaw(n,S,L,t)),C===P&&(C=gK))}C===gK&&(C=P||TA,G&&G(!0,"Failed to sanitize attribute of <"+n+">: <"+n+" "+S+'="'+L+'">',t));return C}}};
K7p=function(O,m,G){return[,{filterRaw:function(B,Q,H){return H},
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:Mfp,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Mfp,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:TA,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:rZI,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(B,Q,H){H=
String(H).toLowerCase();return qD5(B,Q,H)?H:TA},
safeReplacement:TA,safeType:void 0},,{filterRaw:void 0,filterString:function(B,Q,H){return O.test(H)?H:TA},
safeReplacement:TA,safeType:"CONSTANT"},{filterRaw:function(B,Q,H,M){if(typeof H==="string")var R=(R=H.match(R7r))?R.map(Gmf).filter(Boolean):[];else if(Array.isArray(H))R=H;else return Mfp;var x=R;R=[];var t=[],W={};if(Array.isArray(x))for(var Z=0,z=x.length;Z<z;++Z){var J=x[Z],n=J&&J.url;if(n){var I=m(n,"URL",W);if(I){var S=I!==W;(S?R:t).push({url:S?I:n,metadata:J.metadata})}}}else t.push(x);x=t.length?JSON.stringify(t):null;t=gK;if(R.length){if(!Array.isArray(R))throw Error();t=R.map(QKs).filter(Boolean).join(" , ")||
gK}x&&G&&G(!0,"Failed to sanitize attribute value of <"+B+">: <"+B+" "+Q+'="'+H+'">: '+x,M);return t===gK?Mfp:t},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
iYM=function(O){var m=$mp(O);return function(G,B,Q,H){return H||H===document.all?m(G,B,Q)(H):H}};
uH=function(O,m){function G(){function Q(R,x,t){for(x=Reflect.getMetadata("parameters",R)||[];x.length<=t;)x.push(null);x[t]=x[t]||[];x[t].push(M);Reflect.defineMetadata(x,R);return R}
var H=_.eA.apply(0,arguments);if(this instanceof G)return B.apply(this,H),this;var M=new (Function.prototype.bind.apply(G,[null].concat(_.lS(H))));Q.annotation=M;return Q}
var B=xmO(m);G.prototype.toString=function(){return"@"+O};
return G.annotationCls=G};
xmO=function(O){return function(){var m=_.eA.apply(0,arguments),G=this;O.forEach(function(B,Q){Q=m[Q];if(Array.isArray(B))G[B[0]]=Q&&Q!==void 0?Q:B[1];else for(var H in B)G[H]=Q&&Q[H]!==void 0?Q[H]:B[H]})}};
q6s=function(O){return O!==void 0&&O!==null};
jU=function(O){if(typeof O==="string")return O;if(O===void 0||O===null)return""+O;if(O.overriddenName)return O.overriddenName;if(O.name)return O.name;O=O.toString();var m=O.indexOf("\n");return m===-1?O:O.substring(0,m)};
Ums=function(O){O.__forward_ref__=Ums;O.toString=function(){return jU(this())};
return O};
Iq=function(O){return typeof O==="function"&&O.hasOwnProperty("__forward_ref__")&&O.__forward_ref__===Ums?O():O};
tfp=function(O){return O?O.map(function(m){return new (Function.prototype.bind.apply(m.type.annotationCls,[null].concat(_.lS(m.args?m.args:[]))))}):[]};
W7r=function(O){for(var m=[],G=0;G<O.length;++G){if(m.indexOf(O[G])>-1){m.push(O[G]);break}m.push(O[G])}return m};
ZYe=function(O){return O.length>1?" ("+W7r(O.slice().reverse()).map(function(m){return jU(m.token)}).join(" -> ")+")":""};
JZN=function(O,m,G,B){if(B){var Q=Error("$e``"+(B instanceof Error?B.message:B));Q.ngOriginalError=B}else Q=Error();Q.addKey=z7r;Q.keys=[m];Q.injectors=[O];Q.constructResolvingMessage=G;Q.message=Q.constructResolvingMessage();Q.ngOriginalError=B;return Q};
z7r=function(O,m){this.injectors.push(O);this.keys.push(m);this.message=this.constructResolvingMessage()};
Vfz=function(O,m){return JZN(O,m,function(){return"No provider for "+jU(this.keys[0].token)+"!"+ZYe(this.keys)})};
bYN=function(O,m){return JZN(O,m,function(){return"Cannot instantiate cyclic dependency!"+ZYe(this.keys)})};
nre=function(O,m,G){return JZN(O,G,function(){var B=jU(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+B+"!"+ZYe(this.keys)+"."},m)};
XGr=function(O,m){for(var G=[],B=0,Q=m.length;B<Q;B++){var H=m[B];H&&H.length!=0?G.push(H.map(jU).join(" ")):G.push("?")}return Error("df`"+jU(O)+"`"+G.join(", ")+"`"+jU(O))};
IIY=function(O){var m=void 0,G=void 0;if(O&&O.useClass!==void 0){m=O.useClass;var B=Iq(O.useClass);var Q=fIN.factory(B);B=h7O(B)}else O&&O.useExisting!==void 0?(Q=function(H){return H},B=[TWO(pC.get(Iq(O.useExisting)))]):O&&O.useFactory!==void 0?(Q=O.useFactory,B=gre(O.useFactory,O.deps)):(G=O.useValue,Q=function(){return O.useValue},B=u0N);
return new jKp(Q,B,m,G)};
S6r=function(O){return new pGp(pC.get(Iq(O.provide)),[IIY(O)],O.multi)};
L7z=function(O){O=Erz(O,[]).map(S6r);for(var m=new Map,G=0;G<O.length;G++){var B=O[G],Q=m.get(B.key.id);if(Q){if(B.multiProvider!==Q.multiProvider)throw Error("ff`"+Q+"`"+B);if(B.multiProvider)for(var H=0;H<B.resolvedFactories.length;H++)Q.resolvedFactories.push(B.resolvedFactories[H]);else m.set(B.key.id,B)}else Q=void 0,B.multiProvider?Q=new pGp(B.key,B.resolvedFactories.slice(),B.multiProvider):Q=B,m.set(B.key.id,Q)}return Array.from(m.values())};
Erz=function(O,m){O.forEach(function(G){if(G instanceof Cer)m.push({provide:G,useClass:G});else if(G&&typeof G=="object"&&G.provide!==void 0)m.push(G);else if(G instanceof Array)Erz(G,m);else throw Error("cf`"+G);});
return m};
gre=function(O,m){if(m){var G=m.map(function(B){return[B]});
return m.map(function(B){return orN(O,B,G)})}return h7O(O)};
h7O=function(O){var m=fIN.parameters(O);if(!m)return[];if(m.some(function(G){return G==null}))throw XGr(O,m);
return m.map(function(G){return orN(O,G,m)})};
orN=function(O,m,G){var B=null,Q=!1;if(!Array.isArray(m))return m instanceof lIY?aIM(m.token,Q,null):aIM(m,Q,null);for(var H=null,M=0;M<m.length;++M){var R=m[M];if(R instanceof Cer)B=R;else if(R instanceof lIY)B=R.token;else if(R instanceof kmf)Q=!0;else if(R instanceof yZI||R instanceof cZ5)H=R}B=Iq(B);if(B!=null)return aIM(B,Q,H);throw XGr(O,G);};
aIM=function(O,m,G){return new Y6O(pC.get(Iq(O)),m,G)};
dmI=function(O,m){for(var G=Array(O.providers.length),B=0;B<O.providers.length;++B){var Q=B;if(B<0||B>=O.providers.length)throw Error("ef`"+B);G[Q]=m(O.providers[B])}return G};
wGp=function(O){return typeof O==="function"&&fIN.parameters(O).every(function(m){return!!m})};
sKz=function(O){var m=e7Y;Dme.get(O)||Dme.set(O,new m);return Dme.get(O)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(O)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(O)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O,m){var G,B;if(O.contains(m))return!0;O=_.SU(O).querySelectorAll("content,slot");for(G=0;G<O.length;++G){var Q=_.SU(O[G]).getDistributedNodes();for(B=0;B<Q.length;++B)if(Q[B].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Q[B],m))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O){O.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(O)&&O.preventDefault();O.targetTouches&&(O=O.targetTouches[0],NWI=O.pageX,Pe6=O.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 O=0,m=EF.length;O<m;O++)document.addEventListener(EF[O],_._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 O=0,m=EF.length;O<m;O++)document.removeEventListener(EF[O],_._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(O){var m=_.SU(O).rootTarget;O.type!=="touchmove"&&F7p!==m&&(F7p=m,AZM=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.SU(O).path));if(!AZM.length)return!0;if(O.type==="touchstart")return!1;O=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(O);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(AZM,O.deltaX,O.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O){for(var m=[],G=O.indexOf(OTY),B=0;B<=G;B++)if(O[B].nodeType===Node.ELEMENT_NODE){var Q=O[B],H=Q.style;H.overflow!=="scroll"&&H.overflow!=="auto"&&(H=window.getComputedStyle(Q));H.overflow!=="scroll"&&H.overflow!=="auto"||m.push(Q)}return m};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O,m,G){if(m||G)for(var B=Math.abs(G)>=Math.abs(m),Q=0;Q<O.length;Q++){var H=O[Q];if(B?G<0?H.scrollTop>0:H.scrollTop<H.scrollHeight-H.clientHeight:m<0?H.scrollLeft>0:H.scrollLeft<H.scrollWidth-H.clientWidth)return H}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(O){var m={deltaX:O.deltaX,deltaY:O.deltaY};"deltaX"in O||("wheelDeltaX"in O&&"wheelDeltaY"in O?(m.deltaX=-O.wheelDeltaX,m.deltaY=-O.wheelDeltaY):"wheelDelta"in O?(m.deltaX=0,m.deltaY=-O.wheelDelta):"axis"in O?(m.deltaX=O.axis===1?O.detail:0,m.deltaY=O.axis===2?O.detail:0):O.targetTouches&&(O=O.targetTouches[0],m.deltaX=NWI-O.pageX,m.deltaY=Pe6-O.pageY));return m};
m$5=function(O){this.element=O;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
BkS=function(O){this.element=O;this.color=window.getComputedStyle(O).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");_.SU(this.waveContainer).appendChild(this.wave);GBY(this)};
LC=function(O,m){for(var G in O)if(G.toLowerCase()===m.toLowerCase())return O[G]};
QR6=function(O,m){for(var G in O)if(G.toLowerCase()===m.toLowerCase()){delete O[G];break}};
vIY=function(O){O=_.aM.clone(O);for(var m=0;m<HTM.length;++m){var G=HTM[m],B=LC(O,G);B&&(O["X-Goog-Upload-Header-"+G]=B,QR6(O,G))}return O};
KbS=function(O){O=_.aM.clone(O);QR6(O,"X-Goog-Upload-Status")};
Mq6=function(O){return $$O.some(function(m){return m.test(O)})};
x$M=function(O,m){var G;var B=(G=O.formContent)==null?void 0:G.locale;G=B==null?void 0:B.split("-")[0];B=B&&rSI.includes(B)?B:G&&rSI.includes(G)?G:void 0;B=(B!=null?B:"en").replaceAll("-","_").toLowerCase();var Q;O=((Q=O.initializationData)==null?0:Q.useNightlyRelease)?"nightly":"live";var H;return(m==null?0:(H=m.getEnableAlohaBinarySplit)==null?0:H.call(m))?_.WY(Rbs,O):_.WY(iTs,O,B)};
tqN=function(O,m,G,B){if(qsr&&U$r===m)return qsr;U$r=m;var Q=x$M(O,B);return qsr=m.feedbackV2GlobalObject?Promise.resolve(m.feedbackV2GlobalObject):new Promise(function(H,M){var R=_.fd("SCRIPT");_.$3(R,Q);R.onload=function(){m.feedbackV2GlobalObject?H(m.feedbackV2GlobalObject):M(Error("jf"))};
R.onerror=function(){M(Error("kf`"+Q.toString()))};
G.body.appendChild(R)})};
zbN=function(O,m,G,B){if(Wb6&&ZTr===m)return Wb6;ZTr=m;var Q=x$M(O,B);return Wb6=m.feedbackV2GlobalObject?Promise.resolve(m.feedbackV2GlobalObject):new Promise(function(H,M){var R=_.fd("SCRIPT");_.$3(R,Q);R.onload=function(){m.feedbackV2GlobalObject?H(m.feedbackV2GlobalObject):M(Error("jf"))};
R.onerror=function(){M(Error("kf`"+Q.toString()))};
G.body.appendChild(R)})};
JSN=function(O,m,G,B,Q){Q=Q===void 0?!0:Q;var H,M,R,x,t;return _.r(function(W){switch(W.nextAddress){case 1:return H=Date.now(),W.yield(tqN(O,G,B,m),2);case 2:M=W.yieldResult;if(!(Q||((x=O.initializationData)==null?0:x.useNightlyRelease)||((t=O.initializationData)==null?0:t.isLocalServer))){R=M.initializeFeedbackClient(O,H,m);W.jumpTo(3);break}return W.yield(M.initializeFeedbackClientAsync(O,H,m),4);case 4:R=W.yieldResult;case 3:return R.initiateAloha(),W.return(R)}})};
Vq6=function(O,m,G,B){var Q,H,M;return _.r(function(R){if(R.nextAddress==1)return Q=Date.now(),R.yield(zbN(O,G,B.document,m),2);if(R.nextAddress!=3)return H=R.yieldResult,R.yield(H.initializeFeedbackClientAsync(O,Q,m,B),3);M=R.yieldResult;M.initiateAloha();return R.return(M)})};
bTS=function(O,m,G){var B=!0;B=B===void 0?!0:B;var Q,H,M,R,x,t,W,Z,z,J;return _.r(function(n){Q=G||_.Qf;if((H=m)==null?0:(R=(M=H).getEnableAlohaBinarySplit)==null?0:R.call(M)){x=Q;if(x.isFormOpened)throw t=Error("lf"),t.name="DuplicateFormError",t;x.isFormOpened=!0;O.callbacks=O.callbacks||{};W=O.callbacks.onClose||function(){};
O.callbacks.onClose=function(I){x.isFormOpened=!1;W(I)};
try{return n.return(Vq6(O,m,x,Q))}catch(I){throw x.isFormOpened=!1,I;}}else{Z=Q;if(Z.isFormOpened)throw z=Error("lf"),z.name="DuplicateFormError",z;Z.isFormOpened=!0;O.callbacks=O.callbacks||{};J=O.callbacks.onClose||function(){};
O.callbacks.onClose=function(I){Z.isFormOpened=!1;J(I)};
try{return n.return(JSN(O,m,Z,Q.document,B))}catch(I){throw Z.isFormOpened=!1,I;}}_.ju(n)})};
TkS=function(O,m){return _.r(function(G){return G.return(new Promise(function(B,Q){Number.isInteger(Number(O))&&Number(O)>0?(Q=nIr(m!=null?m:"")+"/aloha_form_properties?productId="+O,X1p(Q,function(H){H=H.target;var M=null;try{var R=JSON,x=R.stringify;if(H.JSC$9797_xhr_){var t=H.JSC$9797_xhr_.responseText;t.indexOf(")]}'\n")==0&&(t=t.substring(5));var W=(0,_.CC)(t)}else W=void 0;M=lqN(fV6,x.call(R,W))}catch(Z){x=new fV6,W=hbf(),W=_.oq(W,13,!1),W=_.oq(W,14,!0),W=_.oq(W,15,!0),W=_.oq(W,20,!1),M=_.Tc(x,
1,W)}B(M)},"GET","",{},2E3,!0)):Q(Error("mf`"+O))}))})};
nIr=function(O){return Mq6(O)?O:"https://www.google.com/tools/feedback"};
IVS=function(O){O=O.match(new RegExp(gIO,"gi"))||[];O=_.K(O);for(var m=O.next();!m.done;m=O.next()){m=m.value;a:{var G=_.K(ukI);for(var B=G.next();!B.done;B=G.next())if(B.value.test(m)){G=!1;break a}G=!0}if(!G)a:{G=_.K(jRM);for(B=G.next();!B.done;B=G.next())if(B.value.test(m)){G=!0;break a}G=!1}if(G)return!0}return!1};
p1p=function(O,m){var G={},B=Object.keys(O);B=_.K(B);for(var Q=B.next();!Q.done;Q=B.next())Q=Q.value,G[Q]=m(Q,O[Q]);return G};
SsM=function(O){switch(O){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"}};
LbS=function(O){if(window.crypto&&window.crypto.getRandomValues)try{var m=Array(O),G=new Uint8Array(O);window.crypto.getRandomValues(G);for(var B=0;B<m.length;B++)m[B]=G[B];return m}catch(H){}m=Array(O);for(G=0;G<O;G++){B=Date.now();for(var Q=0;Q<B%23;Q++)m[G]=Math.random();m[G]=Math.floor(Math.random()*256)}if(EIS)for(G=1,B=0;B<EIS.length;B++)m[G%O]^=m[(G-1)%O]/4^EIS.charCodeAt(B),G++;return m};
lH=function(O){O=LbS(O);for(var m=[],G=0;G<O.length;G++)m.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(O[G]&63));return m.join("")};
Car=function(){var O=_.Qf.ytLoggingDocDocumentNonce_;O||(O=lH(16),_.HI("ytLoggingDocDocumentNonce_",O));return O};
lVS=function(O){O&&_.LE("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:oIs,clientScreenNonce:O})};
aV6=function(O){return _.kB("client-screen-nonce-store",{})[O===void 0?0:O]};
kBI=function(O,m){m=m===void 0?0:m;var G=_.kB("client-screen-nonce-store");G||(G={},_.a8("client-screen-nonce-store",G));G[m]=O};
ySI=function(O){O=O===void 0?0:O;return O===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+O};
cSO=function(O){return _.kB(ySI(O===void 0?0:O))};
_.kf=function(O){return(O=cSO(O===void 0?0:O))?new aq({veType:O,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Ys6=function(){var O=_.kB("csn-to-ctt-auth-info");O||(O={},_.a8("csn-to-ctt-auth-info",O));return O};
d$5=function(){return Object.values(_.kB("client-screen-nonce-store",{})).filter(function(O){return O!==void 0})};
_.yA=function(O){O=aV6(O===void 0?0:O);if(!O&&!_.yE("USE_CSN_FALLBACK",!0))return null;O||(O="UNDEFINED_CSN");return O?O:null};
ebN=function(O){for(var m=_.K(Object.values(w15)),G=m.next();!G.done;G=m.next())if(_.yA(G.value)===O)return!0;return!1};
D$N=function(O,m,G){var B=Ys6();(G=_.yA(G))&&delete B[G];m&&(B[O]=m)};
cr=function(O){return Ys6()[O]};
_.Yf=function(O,m,G,B){G=G===void 0?0:G;if(O!==aV6(G)||m!==_.kB(ySI(G)))if(D$N(O,B,G),kBI(O,G),_.a8(ySI(G),m),m=function(){setTimeout(function(){lVS(O)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(m)}catch(Q){m()}else m()};
sRr=function(O,m){m=m===void 0?"":m;var G=[],B;for(B in O)if(O.hasOwnProperty(B)){var Q=m!==""?m+"."+B:B;typeof O[B]==="object"?G.push.apply(G,_.lS(sRr(O[B],Q))):G.push([Q,O[B]])}G.sort();return G};
_.wK=function(O){var m=_.eA.apply(1,arguments);if(!dK(O)||m.some(function(B){return!dK(B)}))throw Error("nf");
m=_.K(m);for(var G=m.next();!G.done;G=m.next())Nk5(O,G.value)};
Nk5=function(O,m){for(var G in m)if(dK(m[G])){if(G in O&&!dK(O[G]))throw Error("of");G in O||(O[G]={});Nk5(O[G],m[G])}else if(Pas(m[G])){if(G in O&&!Pas(O[G]))throw Error("pf");G in O||(O[G]=[]);FbY(O[G],m[G])}else O[G]=m[G];return O};
FbY=function(O,m){m=_.K(m);for(var G=m.next();!G.done;G=m.next())G=G.value,dK(G)?O.push(Nk5({},G)):Pas(G)?O.push(FbY([],G)):O.push(G);return O};
dK=function(O){return typeof O==="object"&&!Array.isArray(O)};
Pas=function(O){return typeof O==="object"&&Array.isArray(O)};
OUI=function(O){for(var m=_.K(Object.entries(ASs)),G=m.next();!G.done;G=m.next())if(G=_.K(G.value),G.next(),G=G.next().value,G==="SLI_STATUS_"+O)return G;return"SLI_STATUS_UNKNOWN"};
_.eU=function(O,m,G,B){return msM(O,m,function(){return new _.GEO(O,m,G,B)})};
_.Bwe=function(){return _.eU("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
QcY=function(){return _.eU("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Df=function(){return _.eU("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
HUz=function(){return _.eU("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
vJe=function(){return _.eU("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
Kxr=function(){return _.eU("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
rxO=function(O){O&&(O.dataset?O.dataset[$se()]="true":_.rC([_.x6(M8S)],O,"data-loaded","true".toString()))};
Rh6=function(O){return O?O.dataset?O.dataset[$se()]:O.getAttribute("data-loaded"):null};
$se=function(){return iUN.loaded||(iUN.loaded="loaded".replace(/\-([a-z])/g,function(O,m){return m.toUpperCase()}))};
_.sF=function(O,m,G){xsI(O,m,G===void 0?null:G)};
_.Us5=function(O,m){O&&m&&(O=""+_.sS(m),(O=qis[O])&&_.vgS(O))};
xsI=function(O,m,G){G=G===void 0?null:G;var B=_.t8I(typeof O==="string"?O:O.toString()),Q=document.getElementById(B),H=Q&&Rh6(Q),M=Q&&!H;H?m&&m():(m&&(H=_.xt(B,m),m=""+_.sS(m),qis[m]=H),M||(Q=WxI(O,B,function(){Rh6(Q)||(rxO(Q),_.KwS(B),_.W7(function(){_.MVI(B)},0))},G)))};
WxI=function(O,m,G,B){B=B===void 0?null:B;var Q=_.fd("SCRIPT");Q.id=m;Q.onload=function(){G&&setTimeout(G,0)};
Q.onreadystatechange=function(){switch(Q.readyState){case "loaded":case "complete":Q.onload()}};
B&&Q.setAttribute("nonce",B);_.$3(Q,typeof O==="string"?_.E0(O):O);O=document.getElementsByTagName("head")[0]||document.body;O.insertBefore(Q,O.firstChild);return Q};
_.t8I=function(O){var m=document.createElement("a");sh(m,O);return"js-"+N5(m.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
ZUN=function(O){var m=_.kB("INNERTUBE_HOST_OVERRIDE");m&&(O=String(m)+String(_.Pr(O)));return O};
zhz=function(O){var m={};_.V("json_condensed_response")&&(m.prettyPrint="false");return O=gcN(O,m)};
_.FE=function(O){return Qb(O)?"same-origin":"include"};
_.Ac=function(O){return Qb(O)?"same-origin":"cors"};
OB=function(O,m,G){G=G===void 0?{}:G;O={method:m===void 0?"POST":m,mode:_.Ac(O),credentials:_.FE(O)};m={};for(var B=_.K(Object.keys(G)),Q=B.next();!Q.done;Q=B.next())Q=Q.value,G[Q]&&(m[Q]=G[Q]);Object.keys(m).length>0&&(O.headers=m);return O};
_.m8=function(O,m){m=m===void 0?{}:m;return"service:"+O+"/"+Object.keys(m).sort().map(function(G){return G+":"+m[G]}).join("/")};
JxY=function(O){var m,G,B,Q;O=(m=_.b(O,_.GC))==null?void 0:(G=m.watchEndpointSupportedOnesieConfig)==null?void 0:(B=G.html5PlaybackOnesieConfig)==null?void 0:(Q=B.commonConfig)==null?void 0:Q.url;if(!O)return[];m=new _.Bd(O);return m.JSC$10033_domain_?["https://"+m.JSC$10033_domain_+"/generate_204"]:[]};
_.nJz=function(){return V85()||EsM()||bUr&&yb("version/")?!0:_.kB("EOM_VISITOR_DATA")?!1:!0};
Xv6=function(O){var m=O.docid||O.video_id||O.videoId||O.id;if(m)return m;m=O.raw_player_response;m||(O=O.player_response)&&(m=JSON.parse(O));return m&&m.videoDetails&&m.videoDetails.videoId||null};
fdY=function(O){return O.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Qs=function(O){return!isNaN(Number(O))&&!_.Re(O)};
_.vd=function(O,m,G,B){B=B===void 0?!0:B;var Q=_.kB("VALID_SESSION_TEMPDATA_DOMAINS",[]),H=_.Gg(window.location.href);H&&Q.push(H);H=_.Gg(O);if(_.kO(Q,H)||!H&&_.KN(O,"/"))if(Q=document.createElement("a"),sh(Q,O),O=Q.href)if(O=_.Pr(O),O=_.Hd(O))B&&!m.csn&&(m.itct||m.ved)&&(m=Object.assign({csn:_.yA()},m)),G?(G=parseInt(G,10),isFinite(G)&&G>0&&hhY(O,m,G)):hhY(O,m)};
gJp=function(O){var m=_.kB("VALID_SESSION_TEMPDATA_DOMAINS",[]),G=_.Gg(window.location.href);G&&m.push(G);G=_.Gg(O);if(!(_.kO(m,G)||!G&&_.KN(O,"/")))return null;O=_.Pr(O);(O=_.Hd(O))?(O=Twp(O),O=(O=_.fR.get(O,void 0)||null)?_.Px(O):{}):O=null;return O};
hhY=function(O,m,G){O=Twp(O);m=m?_.bb(m):"";G=G||5;_.nJz()&&_.hE(O,m,G)};
Twp=function(O){for(var m=_.K(uuY),G=m.next();!G.done;G=m.next())O=_.Kr(O,G.value);return"ST-"+N5(O).toString(36)};
_.jcz=function(O){if(O.requestFullscreen)O=O.requestFullscreen(void 0);else if(O.webkitRequestFullscreen)O=O.webkitRequestFullscreen();else if(O.mozRequestFullScreen)O=O.mozRequestFullScreen();else if(O.msRequestFullscreen)O=O.msRequestFullscreen();else if(O.webkitEnterFullscreen)O=O.webkitEnterFullscreen();else return Promise.reject(Error("yf"));return O instanceof Promise?O:Promise.resolve()};
_.MC=function(O){var m;_.eBN(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.$c()==O&&(m=document):m=O;if(m&&(O=_.eBN(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],m))){O.call(m)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.$c=function(){var O=O===void 0?!1:O;var m=_.eBN(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(O)for(;m&&m.shadowRoot;)m=m.shadowRoot.fullscreenElement;return m?m:null};
_.rr=function(O,m){m=m===void 0?!0:m;O.addEventListener("wheel",IdO);O.overscrollConfig={cooldown:m}};
_.Rs=function(O){O.overscrollConfig=void 0;O.removeEventListener("wheel",IdO)};
IdO=function(O){var m=O.deltaY,G=O.target,B=null;if(window.Polymer&&window.Polymer.Element){if(G=O.path||O.composedPath&&O.composedPath()){G=_.K(G);for(var Q=G.next();!Q.done&&(Q=Q.value,!pvp(Q,m));Q=G.next())if(Q.overscrollConfig){B=Q;break}}}else for(;G&&!pvp(G,m);){if(G.overscrollConfig){B=G;break}G=G.parentElement}B&&(m=B.overscrollConfig,m.cooldown?(B=O.deltaY,G=m.lastDeltaY||0,m.lastDeltaY=B,Q=m.lastStopped||0,G&&Q&&G>0==B>0?Math.abs(G)>=Math.abs(B)?(B=Q+1200,G=!1):(B=Q+600,G=!0):(B=Date.now()+
600,G=!0),B>Date.now()&&(O.preventDefault(),G&&(m.lastStopped=Date.now()))):O.preventDefault())};
pvp=function(O,m){return m<0&&O.scrollTop>0||m>0&&O.scrollTop<O.scrollHeight-O.clientHeight-1?(O=getComputedStyle(O).overflowY,O=="auto"||O=="scroll"):!1};
_.iP=function(O,m,G,B){B||(B={bubbles:!0,cancelable:!1,composed:!0});G!==null&&G!==void 0&&(B.detail=G);var Q=new CustomEvent(m,B);_.V("untrack_fire_custom_event_killswitch")?O.dispatchEvent(Q):t0(function(){return void O.dispatchEvent(Q)});
return Q};
SiI=function(O){var m=window,G=function(B){m.removeEventListener("yt-navigate-start",G);return O.call(m,B)};
m.addEventListener("yt-navigate-start",G,void 0)};
_.xc=function(O,m,G,B){m=new EJ6(m,!(B===void 0||!B),G);_.iP(O,"yt-action",m);return m.returnValue};
_.UB=function(O,m,G){return _.xc(O,m,G,!0)};
_.Wd=function(O,m,G,B){m&&m.length&&m.forEach(function(Q){var H=d1O(Q);H&&(_.V("handle_service_request_actions")&&Q.commandMetadata&&Q.commandMetadata.webCommandMetadata&&Q.commandMetadata.webCommandMetadata.sendPost?_.tK(G?G:O,[Q]):_.UB(O,H,[Q,G,B]))})};
_.tK=function(O,m){var G=[O];m&&G.push.apply(G,m);m=_.xc(O,"yt-service-request",G);return m.length>0&&(m=m[0],_.iP(O,"yt-service-request-sent",m),m&&m.ajaxPromise)?(m.ajaxPromise.then(function(B){_.iP(O,"yt-service-request-completed",B)},function(B){_.iP(O,"yt-service-request-error",{error:B,
params:G})},O),m.ajaxPromise):_.ZY()};
_.JK=function(O,m){if(_.V("handle_service_request_actions"))_.Wd(m,O,m);else{O=_.K(O);for(var G=O.next();!G.done;G=O.next()){G=G.value;var B=void 0;((B=_.b(G,_.zC))==null?0:B.commands)?_.JK(_.b(G,_.zC).commands,m):(B=void 0,((B=_.b(G,_.Vs))==null?0:B.actions)?_.JK(_.b(G,_.Vs).actions,m):(B=void 0,((B=_.b(G.commandMetadata,_.bP))==null?0:B.sendPost)?_.tK(m,[G]):_.Wd(m,[G],m)))}}};
_.CUO=function(O,m,G){m=m===void 0?{}:m;typeof m==="function"&&(m={callback:m});G||m._c&&m._c.jsl&&m._c.jsl.h||_.aM.extend(m,{_c:{jsl:{h:_.kB("GAPI_HINT_PARAMS")}}});(m.gapiHintOverride||_.kB("GAPI_HINT_OVERRIDE"))&&(G=_.Fq(document.location.href).gapi_jsh)&&_.aM.extend(m,{_c:{jsl:{h:G}}});Lxp(O,m)};
_.Xm=function(O,m,G){m=m===void 0?{}:m;O=(O=O in nr?nr[O]:G)||"";G={};for(var B in m){G={key$jscomp$840:G.key$jscomp$840};G.key$jscomp$840=B;var Q=function(H){return function(){return String(m[H.key$jscomp$840])}}(G);
O=O.replace(new RegExp("\\$\\{"+G.key$jscomp$840+"\\}","gi"),Q);O=O.replace(new RegExp("\\$"+G.key$jscomp$840,"gi"),Q)}return O};
_.fr=function(O,m){return oJr(O in nr?nr[O]:{},m)};
oJr=function(O,m){var G=_.kB("I18N_PLURAL_RULES");G||(G=function(B){return B==1?"one":"other"});
return(O=O["case"+m]||O[G(m)])?O.replace("#",m.toString()):m+""};
kEz=function(O){var m=ldY(O),G=document.getElementById(m),B=G&&Rh6(G);B||G&&!B||(G=adp(O,m,function(){if(!Rh6(G)){rxO(G);_.KwS(m);var Q=_.hK(_.MVI,m);_.W7(Q,0)}}))};
adp=function(O,m,G){var B=document.createElement("link");B.id=m;B.onload=function(){G&&setTimeout(G,0)};
O=_.E0(O);_.Ro(B,O,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(B);return B};
ldY=function(O){var m=_.fd("A");sh(m,on(O));return"css-"+N5(m.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.cx6=function(O){var m=yxI();O!==m&&(m=_.TC(),!_.V("web_autonav_allow_off_by_default")&&O||_.gr(0,141,!0),_.gr(0,140,!O),m.save())};
yxI=function(){var O=_.TC();return _.V("web_autonav_allow_off_by_default")&&!O.getFlag(141)&&_.kB("AUTONAV_OFF_BY_DEFAULT")?!1:!O.getFlag(140)};
Yif=function(O,m){var G,B;O=((G=O.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(B=G.videoAuthorizationToken)==null?void 0:B.credentialTransferTokens)||[];for(G=0;G<O.length;++G)if(O[G].scope===m)return O[G].token||void 0};
dsf=function(O){for(var m=0,G=0;G<O.length;G++)m=m*31+O.charCodeAt(G),G<O.length-1&&(m%=0x800000000000);return m%1E5};
_.uP=function(O){return _.ex("ytcsi."+(O||"")+"data_")||wvI(O)};
_.ehp=function(O){O=_.uP(O);O.metadata||(O.metadata={});return O.metadata};
_.Dsf=function(O){O=_.uP(O);O.tick||(O.tick={});return O.tick};
_.jY=function(O){O=_.uP(O);if(O.gel){var m=O.gel;m.gelInfos||(m.gelInfos={});m.gelTicks||(m.gelTicks={})}else O.gel={gelTicks:{},gelInfos:{}};return O.gel};
_.scf=function(O){O=_.jY(O);O.gelInfos||(O.gelInfos={});return O.gelInfos};
Nwf=function(O){var m=_.uP(O).nonce;m||(m=lH(16),_.uP(O).nonce=m);return m};
wvI=function(O){var m={tick:{},info:{}};_.HI("ytcsi."+(O||"")+"data_",m);return m};
PUz=function(){var O=_.ex("ytcsi.debug");O||(O=[],_.HI("ytcsi.debug",O),_.HI("ytcsi.reference",{}));return O};
_.Is=function(O){O=O||"";var m=Fxp();if(m[O])return m[O];var G=PUz(),B={timerName:O,info:{},tick:{},span:{},jspbInfo:[]};G.push(B);return m[O]=B};
Axr=function(O){O=O||"";var m=Fxp();m[O]&&delete m[O];var G=PUz(),B={timerName:O,info:{},tick:{},span:{},jspbInfo:[]};G.push(B);m[O]=B};
Fxp=function(){var O=_.ex("ytcsi.reference");if(O)return O;PUz();return _.ex("ytcsi.reference")};
_.m4M=function(O){return OGs[O]||"LATENCY_ACTION_UNKNOWN"};
HGN=function(O,m,G){G=G===void 0?{}:G;var B=!1;_.yE("ytLoggingEventsDefaultDisabled",!1)&&(B=!0);B=B?null:EJ;G=G===void 0?{}:G;var Q=Math.round(G.timestamp||(0,_.$G)());_.TH(m,1,Q<Number.MAX_SAFE_INTEGER?Q:0);Q=new Gvr;if(G.lact)_.TH(Q,1,isFinite(G.lact)?G.lact:-1);else if(G.timestamp)_.TH(Q,1,-1);else{var H=_.MT();_.TH(Q,1,isFinite(H)?H:-1)}if(G.sequenceGroup&&!_.V("web_gel_sequence_info_killswitch")){H=G.sequenceGroup;var M=ZJp(H),R=new B2f;_.TH(R,2,M);_.SS(R,1,H);_.Tc(Q,3,R);G.endOfSequence&&delete QiO[G.sequenceGroup]}_.Tc(m,
33,Q);(G.sendIsolatedPayload?fwf:h$5)(O,{endpoint:"log_event",payload:m,cttAuthInfo:G.cttAuthInfo,dangerousLogToVisitorSession:G.dangerousLogToVisitorSession},B)};
_.SY=function(){return(_.V("csi_use_time_origin")||_.V("csi_use_time_origin_tvhtml5"))&&_.pr.timeOrigin?Math.floor(_.pr.timeOrigin):_.pr.timing.navigationStart};
_.vL5=function(O,m){_.EB("_start",O,m)};
_.Lr=function(O,m){if(!_.V("web_csi_action_sampling_enabled")||!_.uP(m).actionDisabled){var G=_.Is(m||"");_.wK(G.info,O);O.loadType&&(G=O.loadType,_.ehp(m).loadType=G);_.wK(_.scf(m),O);G=Nwf(m);m=_.uP(m).cttAuthInfo;KOM().info(O,G,m)}};
$4p=function(){var O,m,G,B;return((B=_.KR().resolve(_.v7(j0))==null?void 0:(O=Iy())==null?void 0:(m=O.loggingHotConfig)==null?void 0:(G=m.csiConfig)==null?void 0:G.debugTicks)!=null?B:[]).map(function(Q){return Object.values(Q)[0]})};
_.EB=function(O,m,G){if(!_.V("web_csi_action_sampling_enabled")||!_.uP(G).actionDisabled){var B=Nwf(G),Q;if(Q=_.V("web_csi_debug_sample_enabled")&&B){(_.KR().resolve(_.v7(j0))==null?0:Iy())&&!MLY&&(MLY=!0,_.EB("gcfl",(0,_.$G)(),G));var H,M,R;Q=(_.KR().resolve(_.v7(j0))==null?void 0:(H=Iy())==null?void 0:(M=H.loggingHotConfig)==null?void 0:(R=M.csiConfig)==null?void 0:R.debugSampleWeight)||0;if(H=Q!==0)b:{H=$4p();if(H.length>0)for(M=0;M<H.length;M++)if(O===H[M]){H=!0;break b}H=!1}H?(Q=dsf(B)%Q!==0,
_.uP(G).debugTicksExcludedLogged||(H={},H.debugTicksExcluded=Q,_.Lr(H,G)),_.uP(G).debugTicksExcludedLogged=!0):Q=!1}if(!Q){O[0]!=="_"&&re5(O,G,m);Q=_.Is(G||"");Q.tick[O]=m||(0,_.$G)();if(Q.callback&&Q.callback[O])for(Q=_.K(Q.callback[O]),H=Q.next();!H.done;H=Q.next())H=H.value,H();Q=_.jY(G);Q.gelTicks&&(Q.gelTicks[O]=!0);H=_.Dsf(G);Q=m||(0,_.$G)();_.V("log_repeated_ytcsi_ticks")?O in H||(H[O]=Q):H[O]=Q;H=_.uP(G).cttAuthInfo;O==="_start"?KOM().baseline(B,m,H):KOM().tick(O,B,m,H);_.ReI(G);return Q}}};
re5=function(O,m,G){if(_.pr.mark)if(O.startsWith("mark_")||(O="mark_"+O),m&&(O+=" ("+m+")"),G===void 0||_.V("web_csi_disable_alt_time_performance_mark"))_.pr.mark(O);else{G=_.V("csi_use_performance_navigation_timing")?G-_.pr.timeOrigin:G-(_.pr.timeOrigin||_.pr.timing.navigationStart);try{_.pr.mark(O,{startTime:G})}catch(B){}}};
iGf=function(){var O,m=(O=_.pr.getEntriesByType)==null?void 0:O.call(_.pr,"mark");m&&m.forEach(function(G){if(G.name.startsWith("mark_")){var B;(B=_.pr.clearMarks)==null||B.call(_.pr,G.name)}})};
_.x4f=function(){switch(wE6()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.qoO=function(O){var m={},G=function(H,M,R){M=M.match("_rid")?M.split("_rid")[0]:M;typeof R==="number"&&(R=JSON.stringify(R));H.requestIds?H.requestIds.push({endpoint:M,id:R}):H.requestIds=[{endpoint:M,id:R}]};
O=_.K(Object.entries(O));for(var B=O.next();!B.done;B=O.next()){var Q=_.K(B.value);B=Q.next().value;Q=Q.next().value;switch(B){case "GetBrowse_rid":G(m,B,Q);break;case "GetGuide_rid":G(m,B,Q);break;case "GetHome_rid":G(m,B,Q);break;case "GetPlayer_rid":G(m,B,Q);break;case "GetSearch_rid":G(m,B,Q);break;case "GetSettings_rid":G(m,B,Q);break;case "GetTrending_rid":G(m,B,Q);break;case "GetWatchNext_rid":G(m,B,Q);break;case "yt_red":m.isRedSubscriber=!!Q;break;case "yt_ad":m.isMonetized=!!Q}}return m};
tLs=function(O,m,G,B,Q,H){if(!_.V("web_csi_action_sampling_enabled")||!_.uP(H).actionDisabled){var M=_.jY(H);if(M.gelSpans)M.gelSpans[O]=!0;else{var R={};M.gelSpans=(R[O]=!0,R)}U4s++;O={spanName:O,spanLengthUsec:String(Math.round(m*1E3)),spanNonce:U4s};B&&(O.spanInfo=B);Q&&(O.parentSpanNonce=Q);G&&(O.spanStartTimeUsec=String(Math.round(G*1E3)));_.Is(H||"").span[String(O.spanName)]=O;G=_.jY(H);G.gelSpans||(G.gelSpans={});_.wK(G.gelSpans,O);G=Nwf(H);H=_.uP(H).cttAuthInfo;KOM().span(O,G,H);return O.spanNonce}};
_.WO6=function(O){var m=_.Cr("aft",O);if(m)return m;m=_.kB((O||"")+"TIMING_AFT_KEYS",["ol"]);for(var G=m.length,B=0;B<G;B++){var Q=_.Cr(m[B],O);if(Q)return Q}return NaN};
_.ZGM=function(O,m){_.HI("ytglobal.timing"+(m||"")+"ready_",O)};
_.Cr=function(O,m){if(O=_.Dsf(m)[O])return typeof O==="number"?O:O[O.length-1]};
_.ReI=function(O){var m=_.Cr("_start",O),G=_.WO6(O),B=!zes;m&&G&&B&&(zSO(Jep,new VL6(Math.round(G-m),O)),zes=!0)};
nLz=function(O){wvI(O);bGe();iGf();O||(_.kB("TIMING_ACTION")&&_.a8("PREVIOUS_ACTION",_.kB("TIMING_ACTION")),_.a8("TIMING_ACTION",""))};
_.XKO=function(O){O=O===void 0?{}:O;_.wi(function(){lP();Axr();nLz();_.ZGM(!1);O.cttAuthInfo&&(_.uP().cttAuthInfo=O.cttAuthInfo);_.a8("TIMING_AFT_KEYS",[]);O.isHot?_.as({loadType:"hot"}):_.as({loadType:"warm"});_.a8("TIMING_ACTION","");delete _.kB("TIMING_INFO",{}).yt_lt;_.wi(_.vL5)(O.startTime,void 0)})()};
_.ys=function(O,m,G,B){m=m===void 0?{}:m;_.wi(function(){var Q=G?G:O;kc(Q);var H=m.sampleRate;if(!_.V("web_csi_action_sampling_enabled")||H===void 0||H<=1)H=!1;else{var M=Nwf(Q);H=dsf(M)%H!==0}H&&(_.uP(Q).actionDisabled=!0);_.Is(Q||"").info.actionType=O;m.cttAuthInfo&&(_.uP(Q).cttAuthInfo=m.cttAuthInfo);_.a8(Q+"TIMING_ACTION",O);_.wi(_.vL5)(m.startTime,Q);H={actionType:B||_.m4M(O)};m.logPreviousAction&&(H.previousAction=_.m4M(_.kB("TIMING_ACTION")));(M=_.yA())&&M!=="UNDEFINED_CSN"&&(H.clientScreenNonce=
M);_.as(H,Q);_.ZGM(!0,Q)})()};
kc=function(O){_.wi(function(){lP(O);Axr(O);nLz(O)})()};
fms=function(){_.wi(function(){var O=[],m;for(m in _.ex("ytcsi.".slice(0,-1)))m.endsWith("data_")&&O.push(m.slice(0,-5));O=_.K(O);for(m=O.next();!m.done;m=O.next())kc(m.value);lP()})()};
_.T2N=function(O){return _.wi(function(){return _.hee("_start",O)})()};
_.as=function(O,m,G){_.wi(_.Lr)(O,m,G===void 0?!1:G)};
_.cd=function(O,m,G){return _.wi(_.EB)(O,m,G)};
_.hee=function(O,m){return _.wi(function(){var G=_.Dsf(m);return O in G})()};
udM=function(O){if(!_.V("universal_csi_network_ticks"))return"";O=_.JE(O)||"";for(var m=Object.keys(gLM),G=0;G<m.length;G++){var B=m[G];if(O.includes(B))return B}return""};
Imp=function(O){if(!_.V("universal_csi_network_ticks"))return function(){};
var m=gLM[O];return m?(_.Yc(m),function(){var G=_.V("universal_csi_network_ticks")?(G=jir[O])?_.Yc(G):!1:!1;return G}):function(){}};
_.Yc=function(O,m,G){return _.wi(function(){if(_.hee(O,G))return!1;_.cd(O,m,G);return!0})()};
_.dr=function(O,m,G){_.wi(function(){if(!_.T2N(G)||_.hee(O,G))return!1;_.cd(O,m,G);return!0})()};
_.wr=function(O){return _.wi(_.Cr)(O,void 0)};
lP=function(O){_.T2N(O)&&_.cd("aa",void 0,O)};
_.C8Y=function(O,m,G,B,Q,H,M,R,x){var t=pKN();R=new aq({veType:m,youtubeData:H,jspbYoutubeData:R});H=eY({},t);Q&&(H.cttAuthInfo=Q);Q={csn:t,pageVe:R.getAsJson()};_.V("expectation_logging")&&x&&x.screenCreatedLoggingExpectations&&(Q.screenCreatedLoggingExpectations=x.screenCreatedLoggingExpectations);G&&G.visualElement?(Q.implicitGesture={parentCsn:G.clientScreenNonce,gesturedVe:G.visualElement.getAsJson()},M&&(Q.implicitGesture.gestureType=M)):G&&_.ay(new _.j9("newScreen() parent element does not have a VE - rootVe",
m));B&&(Q.cloneCsn=B);O?S0("screenCreated",Q,O,H):_.LE("screenCreated",Q,H);zSO(hSp,new So5(t));DY.clear();ELI.clear();LOr.clear();return t};
sB=function(O,m,G,B,Q,H){H=H===void 0?{}:H;oLe(O,m,G,[B],Q===void 0?!1:Q,H)};
oLe=function(O,m,G,B,Q,H){Q=Q===void 0?!1:Q;H=H===void 0?{}:H;Object.assign(H,eY({cttAuthInfo:cr(m)||void 0},m));for(var M=_.K(B),R=M.next();!R.done;R=M.next()){R=R.value;var x=R.getAsJson();(_.aM.isEmpty(x)||!x.trackingParams&&!x.veType)&&_.ay(Error("zf"));if(_.V("no_client_ve_attach_unless_shown")){var t=lmr(R,m);if(x.veType&&!ELI.has(t)&&!LOr.has(t)&&!Q){if(!_.V("il_attach_cache_limit")||DY.size<1E3){DY.set(t,[O,m,G,R]);return}_.V("il_attach_cache_limit")&&DY.size>1E3&&_.ay(new _.j9("IL Attach cache exceeded limit"))}R=
lmr(G,m);DY.has(R)?amN(G,m):LOr.set(R,!0)}}B=B.filter(function(W){W.csn!==m?(W.csn=m,W=!0):W=!1;return W});
G={csn:m,parentVe:G.getAsJson(),childVes:_.k6(B,function(W){return W.getAsJson()})};
m==="UNDEFINED_CSN"?NC("visualElementAttached",H,G):O?S0("visualElementAttached",G,O,H):_.LE("visualElementAttached",G,H)};
yez=function(O,m,G,B,Q){kv6(O,m,G,Q)};
kv6=function(O,m,G,B){ceY(G,m);var Q=eY({cttAuthInfo:cr(m)||void 0},m);G={csn:m,ve:G.getAsJson(),eventType:1};B&&(G.clientData=B);m==="UNDEFINED_CSN"?NC("visualElementShown",Q,G):O?S0("visualElementShown",G,O,Q):_.LE("visualElementShown",G,Q)};
Yoe=function(O,m,G,B){ceY(G,m);var Q=eY({cttAuthInfo:cr(m)||void 0},m);G={csn:m,ve:G.getAsJson(),eventType:4};B&&(G.clientData=B);m==="UNDEFINED_CSN"?NC("visualElementShown",Q,G):O?S0("visualElementShown",G,O,Q):_.LE("visualElementShown",G,Q)};
d4I=function(O,m,G,B,Q){var H=(B=B===void 0?!1:B)?16:8;B=eY({cttAuthInfo:cr(m)||void 0,endOfSequence:B},m);G={csn:m,ve:G.getAsJson(),eventType:H};Q&&(G.clientData=Q);m==="UNDEFINED_CSN"?NC("visualElementHidden",B,G):O?S0("visualElementHidden",G,O,B):_.LE("visualElementHidden",G,B)};
eee=function(O,m,G,B,Q){wKf(O,m,G,void 0,B,Q)};
wKf=function(O,m,G,B,Q){ceY(G,m);B=B||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var H=eY({cttAuthInfo:cr(m)||void 0},m);G={csn:m,ve:G.getAsJson(),gestureType:B};Q&&(G.clientData=Q);m==="UNDEFINED_CSN"?NC("visualElementGestured",H,G):O?S0("visualElementGestured",G,O,H):_.LE("visualElementGestured",G,H)};
D4z=function(O,m,G,B){var Q=eY({cttAuthInfo:cr(m)||void 0},m);G={csn:m,ve:G.getAsJson(),clientData:B};m==="UNDEFINED_CSN"?NC("visualElementStateChanged",Q,G):O?S0("visualElementStateChanged",G,O,Q):_.LE("visualElementStateChanged",G,Q)};
siN=function(){var O=LbS(16);for(var m=[],G=0;G<O.length;G++)m.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(O[G]&63));return m.join("")};
NC=function(O,m,G){N25.push({payloadName:O,payload:G,jspbPayload:void 0,options:m});P8S||(P8S=gZN())};
fOO=function(O){if(N25){for(var m=_.K(N25),G=m.next();!G.done;G=m.next())G=G.value,G.payload&&(G.payload.csn=O.csn,_.LE(G.payloadName,G.payload,G.options));N25.length=0}P8S=0};
lmr=function(O,m){return""+O.getAsJson().veType+O.getAsJson().veCounter+m};
ceY=function(O,m){if(_.V("no_client_ve_attach_unless_shown")){var G=lmr(O,m);ELI.set(G,!0);amN(O,m)}};
amN=function(O,m){O=lmr(O,m);DY.has(O)&&(m=DY.get(O)||[],sB(m[0],m[1],m[2],m[3],!0),DY.delete(O))};
eY=function(O,m){_.V("log_sequence_info_on_gel_web")&&(O.sequenceGroup=m);return O};
_.Pd=function(O,m,G){_.wi(sB)(void 0,O,m,G)};
_.Fm=function(O,m,G){_.wi(oLe)(void 0,O,m,G)};
_.AK=function(O,m){_.wi(yez)(void 0,O,m,void 0,void 0,void 0)};
_.Or=function(O,m,G){_.wi(function(){_.Nr(m,function(B){Yoe(void 0,O,B,G)})})()};
_.mf=function(O,m,G,B){_.wi(function(){_.Nr(m,function(Q){d4I(void 0,O,Q,G,B)})})()};
_.Gk=function(O,m,G){_.wi(eee)(void 0,O,m,G,void 0)};
_.Bq=function(O,m,G,B){_.wi(wKf)(void 0,O,m,G,B,void 0)};
_.Qh=function(O,m,G){_.wi(D4z)(void 0,O,m,G,void 0)};
FON=function(O,m){Hq.set(O,m)};
AeN=function(O){return vq.initialized?vq.enabledSpans?vq.enabledSpans[O]:!0:!1};
Ojz=function(O,m){if(O){m=m===void 0?1:m;if(O){O.endTime=(0,_.$G)();m&&(O.status=m);m=_.K(vq.processors);for(var G=m.next();!G.done;G=m.next()){var B=void 0,Q=void 0;(Q=(B=G.value).onSpanEnd)==null||Q.call(B,O)}}O!==vq.stack[vq.stack.length-1]&&_.ay(Error("Cf`"+O.name));vq.stack.pop()}};
mcN=function(O,m,G){if(AeN(O)){var B=vq.nextSpanId++,Q=vq.stack[vq.stack.length-1];O={id:B,parentId:Q==null?void 0:Q.id,name:O,attributes:m,traceId:Q?Q.traceId:B,sessionId:vq.sessionId,startTime:(0,_.$G)(),status:0};Q&&(Q.children||(Q.children=[]),Q.children.push(O));Q=_.K(vq.processors);for(m=Q.next();!m.done;m=Q.next()){var H=B=void 0;(H=(B=m.value).onSpanStart)==null||H.call(B,O)}}else O=void 0;O?vq.stack.push(O):O=void 0;if(!O)return G();try{var M=G(O);Ojz(O);return M}catch(R){throw Ojz(O,2),
R;}};
G0f=function(){};
BTN=function(O,m){var G=Object.keys(O);O=new _.j9("[Command Handler] "+m,{filteredCommandNames:G,originalCommand:O});_.oy(O)};
QCp=function(O,m){BTN(O,m+" was called but not set")};
Hjz=function(O){return function(){return new O}};
Ks=function(O){return function(){return _.KR().resolve(O)}};
v4s=function(O,m){var G=_.b(O,_.dE);if(G&&(G=m[G.signal]))return G();O=_.K(Object.keys(O));for(G=O.next();!G.done;G=O.next())if(G=G.value,m[G]&&(G=m[G]))return G()};
_.$s=function(O,m,G,B){return{browseEndpoint:{browseId:O},commandMetadata:{webCommandMetadata:{url:m,rootVe:G,webPageType:B===void 0?"WEB_PAGE_TYPE_BROWSE":B}}}};
Kts=function(O,m,G){var B=m=m===void 0?0:m;G=G===void 0?0:G;var Q=G-B;return _.Mo(O,"PPSV",void 0,void 0,(Q>600?0:Q<60||G<=0||B/G>.9)?0:m)};
_.Mo=function(O,m,G,B,Q){var H="/watch?v="+O;O={videoId:O};m&&(O.playlistId=m,H+="&list="+m);B&&(H+="&pp="+B);Q&&(O.startTimeSeconds=Q,H+="&t="+Q+"s");m={watchEndpoint:O,commandMetadata:{webCommandMetadata:{url:H,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};G&&(m.clickTrackingParams=G);B&&(_.b(m,_.GC).playerParams=B);return m};
$cs=function(O){return{browseEndpoint:{browseId:"VL"+O},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+O,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
MPS=function(O){if(O){var m;if(O){var G=(m=_.b(O.commandMetadata,_.bP))==null?void 0:m.url;m=!(!G||G==="/service_ajax")}else m=!1;if(m)return O;var B;if(O=(B=_.b(O,_.zC))==null?void 0:B.commands)for(B=_.K(O),O=B.next();!O.done;O=B.next())if(O=MPS(O.value))return O}};
_.rv=function(O){return{runs:[{text:O}]}};
rfs=function(O,m){return O&&m?{runs:[{text:O,navigationEndpoint:m}]}:void 0};
RQ=function(O){return O?_.rv(O):void 0};
_.iQ=function(O){return O?{simpleText:O}:void 0};
_.xs=function(O){var m=O.type;O=O.payload;m={type:m};O!==void 0&&(m.payload=O);return m};
R5f=function(O,m,G){for(var B=Object.assign({},O),Q=_.K(Object.keys(m)),H=Q.next();!H.done;H=Q.next()){H=H.value;var M=O[H],R=m[H];if(R===void 0)delete B[H];else if(M===void 0)B[H]=R;else if(Array.isArray(R)&&Array.isArray(M))B[H]=G?[].concat(_.lS(M),_.lS(R)):R;else if(!Array.isArray(R)&&_.Dp(R)&&!Array.isArray(M)&&_.Dp(M))B[H]=R5f(M,R,G);else if(typeof R===typeof M)B[H]=R;else return m=new _.j9("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:H,originalValue:M,updateValue:R}),
_.oy(m),O}return B};
qar=function(O){if(!O.length)return"";try{if(ije)return ije.decode(O);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(O)}catch(M){}for(var m=0,G=[],B=O.length;m<B;){for(var Q=0;Q<1024&&m<B;){var H=O[m++];if(H<128)xcY[Q++]=H;else{if(H<224)H=(H&31)<<6|O[m++]&63;else if(H<240)H=(H&15)<<12|(O[m++]&63)<<6|O[m++]&63;else{if(Q+1===1024){--m;break}H=(H&7)<<18|(O[m++]&63)<<12|(O[m++]&63)<<6|O[m++]&63;H-=65536;xcY[Q++]=55296|H>>10;H=56320|H&1023}xcY[Q++]=H}}H=String.fromCharCode.apply(String,
xcY);Q<1024&&(H=H.substring(0,Q));G.push(H)}return G.join("")};
tPr=function(O,m){var G;if((G=Ucz)==null?0:G.encodeInto)return m=Ucz.encodeInto(O,m),m.read<O.length?O.length*4:m.written;for(var B=G=0;B<O.length;B++){var Q=O.charCodeAt(B);Q<128?m[G++]=Q:(Q<2048?m[G++]=Q>>6|192:((Q&64512)===55296&&B+1<O.length&&(O.charCodeAt(B+1)&64512)===56320?(Q=65536+((Q&1023)<<10)+(O.charCodeAt(++B)&1023),m[G++]=Q>>18|240,m[G++]=Q>>12&63|128):m[G++]=Q>>12|224,m[G++]=Q>>6&63|128),m[G++]=Q&63|128)}return G};
WtN=function(O,m,G){if(m&&G&&G.buffer===m.exports.memory.buffer){var B=m.realloc(G.byteOffset,O);if(B)return new Uint8Array(m.exports.memory.buffer,B,O)}O=m?new Uint8Array(m.exports.memory.buffer,m.malloc(O),O):new Uint8Array(O);G&&O.set(G);return O};
_.Ur=function(O){O=new ZjI(new z5O([_.Az(decodeURIComponent(O))]));if(JfY(O,2)){var m=qo(O);var G=O.pos;var B=O.arrayView;G=G===void 0?0:G;var Q=m===void 0?-1:m;G=G===void 0?0:G;Q=Q===void 0?-1:Q;if(B.totalLength&&Q){Q<0&&(Q=B.totalLength-G);B.focus(G);if(!(G-B.arrayPos+Q<=B.arrays[B.arrayIdx].length)){var H=B.arrayIdx,M=B.arrayPos;B.focus(G+Q-1);M=new Uint8Array(B.arrayPos+B.arrays[B.arrayIdx].length-M);for(var R=0,x=H;x<=B.arrayIdx;x++)M.set(B.arrays[x],R),R+=B.arrays[x].length;B.arrays.splice(H,
B.arrayIdx-H+1,M);B.arrayIdx=0;B.arrayPos=0;B.focus(G)}H=B.arrays[B.arrayIdx];B=new DataView(H.buffer,H.byteOffset+G-B.arrayPos,Q)}else B=new DataView(new ArrayBuffer(0));B=new Uint8Array(B.buffer,B.byteOffset,B.byteLength);O.pos+=m;m=B}else m=void 0;m=m?qar(m):void 0;O=JfY(O,4)?qo(O):void 0;B=VPr[O];if(typeof B==="undefined")throw O=new _.j9("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:O}),_.oy(O),O;return{entityTypeFieldNumber:O,entityType:B,entityId:m}};
_.Ja=function(O,m,G){G=G===void 0?0:G;var B=new bjN;if(Ucz)O=Ucz.encode(O);else{var Q=new Uint8Array(Math.ceil(O.length*1.2)),H=tPr(O,Q);Q.length<H&&(Q=new Uint8Array(H),H=tPr(O,Q));Q.length>H&&(Q=Q.subarray(0,H));O=Q}O!==void 0&&(ta(B,18),Q=O.length,ta(B,Q),zk(B,Q),B.buf.set(O,B.pos),B.pos+=Q);O=n4N[m];if(typeof O==="undefined")throw G=new _.j9("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:m}),_.oy(G),G;O!==void 0&&(ta(B,32),ta(B,O));ta(B,40);ta(B,1);m=new Uint8Array(B.buf.buffer,
B.buf.byteOffset,B.pos);return encodeURIComponent(_.pB(m,G))};
XzI=function(O){O=O.key||O.id;if(!O)throw Error("Ef");return O};
h5f=function(O,m){O=O===void 0?{}:O;return fsS(O,m)};
TTN=function(O,m,G,B){if(B===void 0)return B=Object.assign({},O[m]||{}),G=(delete B[G],B),B={},Object.assign({},O,(B[m]=G,B));var Q={},H={};return Object.assign({},O,(H[m]=Object.assign({},O[m],(Q[G]=B,Q)),H))};
g4f=function(O,m,G,B,Q){var H=O[m];if(H==null||!H[G])return O;B=R5f(H[G],B,Q==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Q={};H={};return Object.assign({},O,(H[m]=Object.assign({},O[m],(Q[G]=B,Q)),H))};
_.Vh=function(O,m,G){return O[m]?O[m][G]||null:null};
jCI=function(){if(u_N)return u_N();var O={};u_N=Kp("PersistentEntityStoreDb",{objectStores:(O.EntityStore={addedAtVersion:1},O.EntityAssociationStore={addedAtVersion:2},O),shared:!1,upgrade:function(m,G){G(1)&&ea(wY(m,"EntityStore",{keyPath:"key"}),"entityType","entityType");G(2)&&(m=wY(m,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),ea(m,"byParentEntityKey","parentEntityKey"),ea(m,"byChildEntityKey","childEntityKey"))},
version:3});return u_N()};
IsN=function(O){return _.AE(jCI(),O)};
bQ=function(O){return window.Int32Array?new Int32Array(O):Array(O)};
Sa6=function(O){return _.AE(pzI(),O)};
E4Y=function(O){return new ns("WRONG_DATA_TYPE",{encoderVersion:O})};
LtS=function(O){return O instanceof Error?new ns("UNKNOWN_ENCODE_ERROR",{originalMessage:O.message}):new ns("UNKNOWN_ENCODE_ERROR")};
CqI=function(O){return O instanceof Error?new ns("UNKNOWN_DECODE_ERROR",{originalMessage:O.message}):new ns("UNKNOWN_DECODE_ERROR")};
o45=function(O,m){O=O instanceof ns?O:m(O);_.oy(O);throw O;};
lsN=function(O){O=(new TextEncoder).encode(O).subarray(0,16);var m=new Uint8Array(16);m.set(O);return m};
k0f=function(O){var m=asM[O];if(m)return m;_.ay(new _.j9("Entity model not found.",{entityType:O}))};
_.XZ=function(){yfN||(yfN=cfe());return yfN};
cfe=function(){var O,m,G;return _.r(function(B){if(B.nextAddress==1)return _.n_(B,2),B.yield(_.vI(),4);if(B.nextAddress!=2){O=B.yieldResult;if(!O||!_.ub()||typeof _.Qf.BroadcastChannel==="undefined")return B.return();m=new Yar;return B.return(new ha(O,m))}G=_.uS(B);G instanceof Error&&_.oy(G);return B.return()})};
_.Tk=function(O,m){var G;return _.r(function(B){if(B.nextAddress==1){G=O.mutations;if(!G||G.length<=0)return B.return();m&&m.dispatch(_.xs({type:"ENTITY_LOADED",payload:G}));return B.yield(dcN(G),2)}G.length=0;_.ju(B)})};
dcN=function(O){var m;return _.r(function(G){return G.nextAddress==1?G.yield(_.XZ(),2):(m=G.yieldResult)?G.yield(_.gv(m,"readwrite",function(B){for(var Q={},H=_.K(O),M=H.next(),R={};!M.done;R={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},M=H.next())R.mutation$jscomp$4=M.value,R.mutation$jscomp$4.entityKey&&wzN(R.mutation$jscomp$4)&&(R.mutationEntityType$jscomp$3=(0,_.aM.getAnyKey)(R.mutation$jscomp$4.payload),M=void 0,R.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(M=function(x){return function(){return _.e5e(B,
x.mutation$jscomp$4.payload[x.mutationEntityType$jscomp$3],x.mutationEntityType$jscomp$3)}}(R)),R.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(M=function(x){return function(){return Dcp(B,x.mutation$jscomp$4.entityKey)}}(R)),R.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(M=function(x){return function(){return sCI(B,x.mutation$jscomp$4.entityKey,x.mutation$jscomp$4.payload[x.mutationEntityType$jscomp$3],x.mutationEntityType$jscomp$3)}}(R)),M&&(Q[R.mutation$jscomp$4.entityKey]=
Q[R.mutation$jscomp$4.entityKey]?Q[R.mutation$jscomp$4.entityKey].then(M):M()));
return wI.all(Object.values(Q))}),0):G.return()})};
wzN=function(O){var m;O=(m=O.options)==null?void 0:m.persistenceOption;return O==="ENTITY_PERSISTENCE_OPTION_PERSIST"||O==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
FtI=function(O,m){var G,B;_.r(function(Q){if(Q.nextAddress==1)return Q.yield(_.XZ(),2);if(Q.nextAddress!=3)return(G=Q.yieldResult)?Q.yield(_.gv(G,"readonly",function(H){var M={},R=Object.keys(m).map(function(x){var t=m[x]?[].concat(_.lS(m[x])):[];return NTN(H,x,t,M)});
return wI.all(R).then(function(){return M})}),3):Q.return();
B=Q.yieldResult;Object.keys(B).length>0&&O.dispatch(PqI(B));_.ju(Q)})};
NTN=function(O,m,G,B){return uQ(O,m,G).then(function(Q){B[m]=Af5(G,Q)})};
Af5=function(O,m){if(m.length!==O.length)throw Error("Hf");return m.reduce(function(G,B,Q){G[O[Q]]=B;return G},{})};
G_N=function(O){var m=O.filter(function(Q){var H;return(Q==null?void 0:(H=Q.transferEntity)==null?void 0:H.transferState)==="TRANSFER_STATE_COMPLETE"}).length,G=O.filter(function(Q){var H;
return(Q==null?void 0:(H=Q.transferEntity)==null?void 0:H.transferState)==="TRANSFER_STATE_FAILED"}).length,B=O.filter(function(Q){var H;
return(Q==null?void 0:(H=Q.transferEntity)==null?void 0:H.transferState)&&OKN.includes(Q.transferEntity.transferState)});
if(!(m||B!=null&&B.length))return 0;m=_.mON(B)+m;O=O.length-G;return O===0?0:Math.round(m*100/O)/100};
_.mON=function(O){var m=[];m=m.concat.apply(m,_.lS(O.filter(function(H){return H.streamEntity}).map(function(H){var M=Object.assign({},H.streamEntity),R,x=(R=H.transferEntity)==null?void 0:R.transferState;
M.streamsProgress=M.streamsProgress||[];M.streamsProgress=M.streamsProgress.map(function(t){var W=Object.assign({},t);W.numBytesDownloaded=x==="TRANSFER_STATE_COMPLETE"?t.numTotalBytes:t.numBytesDownloaded;return W});
return M}).map(function(H){return H.streamsProgress})));
var G=O=0;m=_.K(m);for(var B=m.next();!B.done;B=m.next()){var Q=B.value;B=Number(Q.numBytesDownloaded);Q=Number(Q.numTotalBytes);G+=isNaN(B)?0:B;O+=isNaN(Q)?0:Q}return O===0?0:Math.round(G*100/O)/100};
Bcp=function(O){if(!O||!O.expirationTimestamp||!O.action)return!1;var m=(0,_.$G)()/1E3;return Number(O.expirationTimestamp)>=m};
jH=function(O){return O&&O.expirationTimestamp&&O.action?Bcp(O)&&O.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.IQ=function(O){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(O||"TRANSFER_STATE_UNKNOWN")};
QSs=function(O){var m=new bjN;if(O!==void 0){var G=Math.ceil(Math.log2(O.length*4+2)/7);G=G===void 0?2:G;ta(m,10);m.submessagePosStack.push(m.pos);m.submessagePosStack.push(G);m.pos+=G;zk(m,O.length*1.2);G=tPr(O,m.buf.subarray(m.pos));m.pos+G>m.buf.length&&(zk(m,G),G=tPr(O,m.buf.subarray(m.pos)));m.pos+=G;O=m.submessagePosStack.pop();G=m.submessagePosStack.pop();for(var B=m.pos-G-O;O--;){var Q=O?128:0;m.view.setUint8(G++,B&127|Q);B>>=7}}m=new Uint8Array(m.buf.buffer,m.buf.byteOffset,m.pos);return(new TextDecoder("utf-8")).decode(m)};
_.ps=function(O){var m=0;O=_.K(O);for(var G=O.next(),B={};!G.done;B={transferState$jscomp$3:void 0},G=O.next()){var Q=G.value,H=void 0;G=(H=Q.streamEntity)!=null?H:{};H=void 0;B.transferState$jscomp$3=(H=Q.transferEntity)==null?void 0:H.transferState;H=Q=void 0;((Q=G)==null?0:(H=Q.streamsProgress)==null?0:H.length)&&G.streamsProgress.forEach(function(M){return function(R){R=Number(M.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?R.numTotalBytes:R.numBytesDownloaded);isFinite(R)&&(m+=R)}}(B))}return m};
HKz=function(O){return O.some(function(m){var G;if(!(m==null?0:(G=m.transferEntity)==null?0:G.transferState)){var B;return!(m==null?0:(B=m.policyEntity)==null?0:B.action)||m.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return OKN.includes(m.transferEntity.transferState)})};
vzs=function(O,m){if(!m)return!1;if(_.V("of_pb_en_po_ks"))return!0;var G;O=(G=_.Vh(O,"offlineVideoPolicy",_.Ja(m,"offlineVideoPolicy")))!=null?G:void 0;return!!O&&jH(O)};
_.$OM=function(O){var m=["TRANSFER_STATE_COMPLETE"];m=m===void 0?KEI:m;return O.filter(function(G){var B,Q;return m.includes((Q=(B=G.transferEntity)==null?void 0:B.transferState)!=null?Q:"TRANSFER_STATE_UNKNOWN")})};
MIs=function(O,m){if(m){var G,B=(G=_.Vh(O,"playbackData",_.Ja(m,"playbackData")))!=null?G:null,Q;G=(Q=_.Vh(O,"transfer",_.Ja(m,"transfer")))!=null?Q:null;var H;Q=(H=_.Vh(O,"offlineVideoStreams",_.Ja(m,"offlineVideoStreams")))!=null?H:null;var M;O=(M=_.Vh(O,"offlineVideoPolicy",_.Ja(m,"offlineVideoPolicy")))!=null?M:null;if(B||G||Q||O)return{playbackDataEntity:B,transferEntity:G,streamEntity:Q,policyEntity:O}}};
_.SH=function(O){var m=O.playbackData;if(!m)return[];var G=[];m=_.K(Object.keys(m));for(var B=m.next();!B.done;B=m.next()){var Q=B.value;if(!rQr(O,_.Ur(Q).entityId)&&(B=MIs(O,_.Ur(Q).entityId))){var H=void 0,M=void 0;Q=(M=Number((H=_.Vh(O,"playbackData",Q))==null?void 0:H.streamDownloadTimestampSeconds))!=null?M:(0,_.$G)();G.push({entity:B,streamDownloadTimestamp:Q})}}return G.sort(function(R,x){var t=R.streamDownloadTimestamp,W=x.streamDownloadTimestamp;return W===t?R.entity.streamEntity&&!x.entity.streamEntity?
1:-1:W-t}).map(function(R){return R.entity})};
RA5=function(O){return _.$OM(_.SH(O))};
_.iKr=function(O){return _.SH(O).filter(function(m){var G;if(((G=m.policyEntity)==null?0:G.action)&&m.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var B;if((B=m.transferEntity)==null?0:B.transferState){var Q;return OKN.includes((Q=m.transferEntity)==null?void 0:Q.transferState)}return!0})};
rQr=function(O,m){var G;return((G=_.Vh(O,"downloadStatusEntity",_.Ja(m,"downloadStatusEntity")))==null?void 0:G.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
xOz=function(O){var m;if(O==null?0:(m=O.playbackDataEntity)==null?0:m.key)return _.Ur(O.playbackDataEntity.key).entityId;var G;if(O==null?0:(G=O.transferEntity)==null?0:G.key)return _.Ur(O.transferEntity.key).entityId;var B;if(O==null?0:(B=O.streamEntity)==null?0:B.key)return _.Ur(O.streamEntity.key).entityId;var Q;if(O==null?0:(Q=O.policyEntity)==null?0:Q.key)return _.Ur(O.policyEntity.key).entityId};
UOz=function(O){var m=new Set,G;O=(G=O.mainDownloadsListEntity)==null?void 0:G[q1r];var B;if(!(O==null?0:(B=O.downloads)==null?0:B.length))return m;var Q;O==null||(Q=O.downloads)==null||Q.forEach(function(H){(H==null?0:H.videoItem)&&m.add(H.videoItem)});
return m};
Er=function(O,m){if(m){var G=_.Vh(O,"mainVideoEntity",_.Ja(m,"mainVideoEntity")),B=_.Vh(O,"downloadStatusEntity",_.Ja(m,"downloadStatusEntity")),Q=_.Vh(O,"ytMainChannelEntity",_.Ja(m,"ytMainChannelEntity")),H={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};O=MIs(O,m);B=(B==null?void 0:B.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.V("woffle_render_failed_download_state_ks")&&(B==null?void 0:B.downloadState)==="DOWNLOAD_STATE_FAILED";!O&&B&&(O=H);if(O&&G&&
Q)return Object.assign({},{videoEntity:G,channelEntity:Q},O)}};
WEp=function(O,m){return tIN(O,m)==="TRANSFER_STATE_COMPLETE"&&vzs(O,m)};
ZKM=function(O,m){if(!m)return!1;var G;O=(G=_.Vh(O,"playbackData",_.Ja(m,"playbackData")))!=null?G:void 0;return!!O&&!!O.playerResponseJson};
tIN=function(O,m){if(!m)return"TRANSFER_STATE_UNKNOWN";var G=_.Vh(O,"transfer",_.Ja(m,"transfer"));if(G){var B;return(B=G.transferState)!=null?B:"TRANSFER_STATE_UNKNOWN"}G=_.Vh(O,"offlineOrchestrationActionWrapperEntity",_.Ja(m,"offlineOrchestrationActionWrapperEntity"));O=_.Vh(O,"mainVideoEntity",_.Ja(m,"mainVideoEntity"));return G||O?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
zAO=function(O,m){if(!m)return"TRANSFER_STATE_UNKNOWN";if(O=_.Vh(O,"transfer",_.Ja(m,"transfer"))){var G;return(G=O.transferState)!=null?G:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
JQp=function(O,m){return m&&(O=_.Vh(O,"videoPlaybackPositionEntity",_.Ja(m,"videoPlaybackPositionEntity")),O==null?0:O.lastPlaybackPositionSeconds)?Number(O.lastPlaybackPositionSeconds):0};
bKM=function(O,m){return VIf(O).some(function(G){var B;return(G==null?void 0:(B=G.mainPlaylistEntity)==null?void 0:B.playlistId)===m})};
X35=function(O,m,G){var B=nzY(O,m);if(!B.length)return[];m=[];B=_.K(B);for(var Q=B.next();!Q.done;Q=B.next()){Q=Q.value;var H=Er(O,Q);G&&tIN(O,Q)!=="TRANSFER_STATE_COMPLETE"||H&&m.push(H)}return m};
nzY=function(O,m){if(!m)return[];var G=_.Ja(m,"mainPlaylistEntity"),B;m=(B=O.mainPlaylistEntity)==null?void 0:B[G];B=[];if(m==null||!m.videos)return B;m=_.K(m.videos);for(G=m.next();!G.done;G=m.next()){G=G.value;var Q=void 0,H=void 0,M=void 0,R=(Q=O)==null?void 0:(H=Q.mainPlaylistVideoEntity)==null?void 0:(M=H[G])==null?void 0:M.video;R&&(G=_.Ur(R).entityId)&&B.push(G)}return B};
fNO=function(O,m){if(m){var G=_.Vh(O,"mainPlaylistEntity",_.Ja(m,"mainPlaylistEntity")),B=_.Vh(O,"mainPlaylistDownloadStateEntity",_.Ja(m,"mainPlaylistDownloadStateEntity"));O=_.Vh(O,"ytMainChannelEntity",_.Ja(m,"ytMainChannelEntity"));if(B&&G)return Object.assign({},{mainPlaylistEntity:G,mainPlaylistDownloadStateEntity:B},!!O&&{channelEntity:O})}};
VIf=function(O){return hAp(O).sort(function(m,G){return G.addedTimestampMillis-m.addedTimestampMillis}).map(function(m){return m.downloadedPlaylistEntities})};
hAp=function(O){var m=O.mainPlaylistDownloadStateEntity,G=[];if(!m)return G;for(var B=_.K(Object.keys(m)),Q=B.next();!Q.done;Q=B.next()){var H=Q.value;Q=fNO(O,_.Ur(H).entityId);var M=void 0;H=Number((M=m[H])==null?void 0:M.addedTimestampMillis);M=isNaN(H)?(0,_.$G)():H;Q!==void 0&&G.push({downloadedPlaylistEntities:Q,addedTimestampMillis:M})}return G};
Tcz=function(O){var m,G=(m=O.mainPlaylistVideoEntity)!=null?m:{};return new Set(VIf(O).reduce(function(B,Q){B=B===void 0?[]:B;var H,M;Q==null||(H=Q.mainPlaylistEntity)==null||(M=H.videos)==null||M.forEach(function(R){var x;(R=(x=G[R])==null?void 0:x.video)&&B.push(R)});
return B},[]))};
gz6=function(O){return"downloadedMusicPlaylistEntities"in O};
uWN=function(O){return"mainPlaylistEntity"in O&&"mainPlaylistDownloadStateEntity"in O};
jSM=function(O){return"videoEntity"in O&&"channelEntity"in O};
IN5=function(O){var m=O.musicPlaylistDownloadMetadataEntity,G=[];if(!m)return G;for(var B=_.K(Object.keys(m)),Q=B.next();!Q.done;Q=B.next()){Q=Q.value;a:{var H=O,M=_.Ur(Q).entityId;if(M){var R=_.Vh(H,"musicPlaylist",_.Ja(M,"musicPlaylist"));H=_.Vh(H,"musicPlaylistDownloadMetadataEntity",_.Ja(M,"musicPlaylistDownloadMetadataEntity"));if(R&&H){R={musicPlaylistEntity:R,musicPlaylistDownloadStateEntity:H};break a}}R=void 0}H=void 0;Q=Number((H=m[Q])==null?void 0:H.addedTimestampMillis);Q=isNaN(Q)?(0,_.$G)():
Q;R!==void 0&&G.push({downloadedMusicPlaylistEntities:R,addedTimestampMillis:Q})}return G};
p36=function(O){var m=new Set;O=_.K(O);for(var G=O.next();!G.done;G=O.next())if(G=G.value,"musicPlaylistEntity"in G&&"musicPlaylistDownloadStateEntity"in G){G=_.K(G.musicPlaylistEntity.tracks);for(var B=G.next();!B.done;B=G.next())m.add(B.value)}return m};
S16=function(O,m){if(m){var G=_.Vh(O,"musicTrack",_.Ja(m,"musicTrack")),B=_.Vh(O,"musicArtist",_.Ja(m,"musicArtist"))||{};if((O=MIs(O,m))&&G&&B)return Object.assign({},{musicTrackEntity:G,musicArtistEntity:B},O)}};
Ezz=function(O){var m=O.musicTrackDownloadMetadataEntity,G=[];if(!m)return[];m=_.K(Object.keys(m));for(var B=m.next();!B.done;B=m.next()){var Q=B.value;B=S16(O,_.Ur(Q).entityId);var H=void 0;Q=Number((H=_.Vh(O,"musicTrackDownloadMetadataEntity",Q))==null?void 0:H.addedTimestampMillis);H=isNaN(Q)?(0,_.$G)():Q;B!==void 0&&G.push({downloadedMusicEntities:B,addedTimestampMillis:H})}return G};
oz6=function(O,m){if(!m)return[];if(Object.values(LEN).includes(m))return CRz(O,m);m=_.Ja(m,"musicPlaylist");var G;O=(G=O.musicPlaylist)==null?void 0:G[m];G=[];if(O==null||!O.tracks)return G;O=_.K(O.tracks);for(m=O.next();!m.done;m=O.next())(m=_.Ur(m.value).entityId)&&G.push(m);return G};
CRz=function(O,m){var G=new Set,B=IN5(O).map(function(H){return H.downloadedMusicPlaylistEntities});
B=p36(B);B=_.K(B);for(var Q=B.next();!Q.done;Q=B.next())(Q=_.Ur(Q.value).entityId)&&G.add(Q);return lNs(O).downloadedMusicEntities.filter(function(H){var M;if((M=H.musicTrackEntity)!=null&&M.videoId){H=H.musicTrackEntity;if(M=m==="PPOM"?!0:!G.has(H.videoId))b:switch(H=H.musicVideoType,m){case "PPSE":M=H==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:M=H!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}H=M}else H=!1;return H}).map(function(H){var M;
return(M=H.musicTrackEntity)==null?void 0:M.videoId})};
lNs=function(O){var m=Ezz(O).sort(function(G,B){return B.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return"downloadedMusicEntities"in G?G.downloadedMusicEntities:gz6(G)?G.downloadedMusicPlaylistEntities:{}});
O=IN5(O).sort(function(G,B){return B.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return"downloadedMusicEntities"in G?G.downloadedMusicEntities:gz6(G)?G.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:m,downloadedMusicPlaylistEntities:O}};
k_z=function(O,m){m=_.kB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?oz6(O,m):nzY(O,m);if(!m.length)return"TRANSFER_STATE_UNKNOWN";m=m.map(function(G){return zAO(O,G)});
return aNM(m)};
aNM=function(O){var m=new Set(O);if(m.has("TRANSFER_STATE_FAILED")&&m.size===1)return"TRANSFER_STATE_FAILED";m.delete("TRANSFER_STATE_FAILED");if(m.has("TRANSFER_STATE_UNKNOWN")&&m.size===1)return"TRANSFER_STATE_PRE_TRANSFER";m.delete("TRANSFER_STATE_UNKNOWN");if(m.has("TRANSFER_STATE_PRE_TRANSFER")&&m.size===1||m.size===0)return"TRANSFER_STATE_PRE_TRANSFER";O=m.has("TRANSFER_STATE_TRANSFERRING");m=m.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return O||m?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Ls=function(O){var m=O.mainVideoDownloadStateEntity,G=[];if(!m)return[];m=_.K(Object.keys(m));for(var B=m.next();!B.done;B=m.next()){var Q=B.value;if(!rQr(O,_.Ur(Q).entityId)){B=Er(O,_.Ur(Q).entityId);var H=void 0,M=void 0;Q=(M=Number((H=_.Vh(O,"mainVideoDownloadStateEntity",Q))==null?void 0:H.addedTimestampMillis))!=null?M:(0,_.$G)();B!==void 0&&G.push({downloadedVideoEntities:B,addedTimestampMillis:Q})}}return G};
yQp=function(O){return Ls(O).sort(function(m,G){return G.addedTimestampMillis-m.addedTimestampMillis}).map(function(m){return m.downloadedVideoEntities})};
_.Y1r=function(O){var m=Tcz(O),G=_.Cs(O),B=UOz(O),Q=Ls(O).filter(function(M){var R,x;if((M==null?void 0:(R=M.downloadedVideoEntities)==null?void 0:(x=R.transferEntity)==null?void 0:x.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var t,W;M=M==null?void 0:(t=M.downloadedVideoEntities)==null?void 0:(W=t.videoEntity)==null?void 0:W.key;return _.V("kevlar_use_library_entity")?M&&(B.has(M)||G[M]):M&&!m.has(M)}),H=hAp(O).filter(function(M){return k_z(O,M.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.lS(Q),_.lS(H)).sort(function(M,R){return R.addedTimestampMillis-M.addedTimestampMillis}).map(function(M){return cQI(M)})};
dOf=function(O,m){if(m&&vzs(O,m)){var G,B,Q=(B=(G=_.Vh(O,"playbackData",_.Ja(m,"playbackData")))!=null?G:void 0)==null?void 0:B.playerResponseJson;if(Q){try{var H=JSON.parse(Q);var M=_.Vh(O,"transfer",_.Ja(m,"transfer")),R=JQp(O,m);R&&(H=Object.assign({},H,{playerConfig:Object.assign({},H.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+R*1E3}}})}));H.cotn=M==null?void 0:M.cotn}catch(x){}return H}}};
_.eAM=function(O){var m,G,B;O=(B=(G=((m=O.downloadsPageViewConfigurationEntity)!=null?m:{})[_.oQ])==null?void 0:G.smartDownloadsOptInBannerVisibility)!=null?B:{};var Q;return(Q=_.b(O,w3p))!=null?Q:{}};
_.Cs=function(O){var m,G,B;O=(B=(G=((m=O.mainDownloadsListEntity)!=null?m:{})[_.DOp])==null?void 0:G.downloads)!=null?B:[];m={};G=_.K(O);for(B=G.next();!B.done;B=G.next())O=void 0,m[(O=B.value.videoItem)!=null?O:""]=!0;return m};
sSS=function(O){var m=_.Cs(O);if(Object.keys(m).length===0)return!1;var G=O.mainVideoEntity;if(!G)return!0;G=_.K(Object.keys(G));for(var B=G.next();!B.done;B=G.next()){B=B.value;var Q=_.Ur(B).entityId;if(m[B]&&!rQr(O,Q))return!1}return!0};
_.lQ=function(O){var m=_.Cs(O);return Ls(O).sort(function(G,B){return G.addedTimestampMillis-B.addedTimestampMillis}).map(function(G){return G.downloadedVideoEntities}).filter(function(G){var B;
return(G=G==null?void 0:(B=G.videoEntity)==null?void 0:B.key)&&!!m[G]})};
_.PRY=function(O){var m,G,B;O=(B=(G=((m=O.downloadsPageViewConfigurationEntity)!=null?m:{})[_.oQ])==null?void 0:G.downloadsUpsellBannerVisibility)!=null?B:{};var Q;return(Q=_.b(O,Nc6))!=null?Q:{}};
cQI=function(O){return"downloadedVideoEntities"in O?O.downloadedVideoEntities:"downloadedPlaylistEntities"in O?O.downloadedPlaylistEntities:{}};
FEM=function(O){var m=_.Cs(O),G=Tcz(O),B=Ls(O).filter(function(Q){var H,M;return(Q=Q==null?void 0:(H=Q.downloadedVideoEntities)==null?void 0:(M=H.videoEntity)==null?void 0:M.key)&&!m[Q]&&!G.has(Q)});
O=hAp(O);return[].concat(_.lS(B),_.lS(O)).sort(function(Q,H){return H.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return cQI(Q)})};
_.aQ=function(O){if(!_.V("kevlar_use_library_entity"))return FEM(O);var m=Ls(O).filter(function(B){var Q,H;if(Q=B=B==null?void 0:(Q=B.downloadedVideoEntities)==null?void 0:(H=Q.videoEntity)==null?void 0:H.key){var M,R,x;Q=((R=(M=O.mainDownloadsListEntity)==null?void 0:M[q1r])==null?0:(x=R.downloads)==null?0:x.length)?UOz(O).has(B):!1}return Q}),G=hAp(O);
return[].concat(_.lS(m),_.lS(G)).sort(function(B,Q){return Q.addedTimestampMillis-B.addedTimestampMillis}).map(function(B){return cQI(B)})};
AQz=function(O){var m=_.Cs(O),G=Tcz(O);return yQp(O).filter(function(B){var Q;return(B=B==null?void 0:(Q=B.videoEntity)==null?void 0:Q.key)&&!m[B]&&!G.has(B)})};
Ois=function(O){if(!_.V("kevlar_use_library_entity"))return AQz(O);var m=_.Cs(O),G=UOz(O);return yQp(O).filter(function(B){var Q;return(B=B==null?void 0:(Q=B.videoEntity)==null?void 0:Q.key)&&!m[B]&&G.has(B)})};
m2p=function(O,m){m=_.Ja(m,"settingEntity");var G,B,Q;return!!((Q=(B=((G=O.settingEntity)!=null?G:{})[m])==null?void 0:B.settingOptionValue)!=null?Q:{}).boolValue};
_.ks=function(O){var m=_.lQ(O);if(HKz(m))return 0;var G=[];m=_.K(m);for(var B=m.next();!B.done;B=m.next()){B=B.value;var Q=void 0,H=void 0;if((Q=B)==null?0:(H=Q.videoEntity)==null?0:H.key)Q=_.Ur(B.videoEntity.key).entityId,B=O,Q=_.Ja(Q,"mainVideoDownloadStateEntity"),B=_.Vh(B,"mainVideoDownloadStateEntity",Q),(B=Number(B==null?void 0:B.addedTimestampMillis))&&G.push(B)}return Math.max.apply(Math,_.lS(G))};
_.yh=function(O){return O.ui.richGridMiniMode};
_.cq=function(O){return O.ui.richGridItemsPerRow};
_.Gbz=function(O){return O.ui.richGridSlimItemsPerRow};
_.BSp=function(O){return O.ui.guideIsExpanded};
_.Ys=function(O){return O.ui.miniplayerIsActive};
QtY=function(O){return O.ui.singleOptionSurveyIsActive};
_.dv=function(O){var m;return((m=O.ui)==null?void 0:m.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.HiS=function(O){return _.dv(O)==="WEB_PAGE_TYPE_WATCH"};
_.vAf=function(O){return _.dv(O)==="WEB_PAGE_TYPE_SHORTS"};
_.KGN=function(O){return O.ui.inlinePreviewIsActive};
_.$2z=function(O){return O.ui.inlinePreviewIsEnabled};
_.Mtp=function(O){return O.ui.miniplayerPlaybackState};
_.wv=function(O){return O.ui.isOnline};
_.rC5=function(O){return O.ui.frostedGlassMode};
_.eH=function(O,m){return tIN(O.entities,m)};
_.Dh=function(O,m){return k_z(O.entities,m)};
R9N=function(O,m){var G;if(m){var B;O=(B=_.Vh(O.entities,"offlineVideoPolicy",_.Ja(m,"offlineVideoPolicy")))==null?void 0:B.action}else O=void 0;return(G=O)!=null?G:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
iis=function(O,m){var G;m?(O=_.Vh(O.entities,"offlineVideoPolicy",_.Ja(m,"offlineVideoPolicy")),O=Number(O==null?void 0:O.expirationTimestamp)):O=void 0;return(G=O)!=null?G:0};
_.x2S=function(O){return _.SH(O.entities).length};
qEs=function(O,m){return Er(O.entities,m)};
U2p=function(O,m){return fNO(O.entities,m)};
sr=function(O,m){return(O=Er(O.entities,m))?_.mON([O]):0};
_.ttS=function(O,m){var G=_.kB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(G){var B=O.entities;var Q=oz6(B,m);if(Q.length){var H=[];Q=_.K(Q);for(var M=Q.next();!M.done;M=Q.next())(M=S16(B,M.value))&&H.push(M);B=H}else B=[]}else B=X35(O.entities,m);var R;if(G){var x=O.entities;m?(m=_.Ja(m,"musicPlaylist"),x=(R=x.musicPlaylist)==null?void 0:R[m],R=x!=null&&x.tracks?x.tracks.length:0):R=0}else R=O.entities,m?(m=_.Ja(m,"mainPlaylistEntity"),R=(x=R.mainPlaylistEntity)==null?void 0:x[m],R=R!=null&&R.videos?
R.videos.length:0):R=0;return B.length!==R?0:B?G_N(B):0};
_.WGz=function(O){return O.download.isLeaderTab};
_.Zis=function(O,m,G){if(!m&&G){var B=O.entities;if(G){var Q=QSs(G),H,M;m=(M=(H=_.Vh(B,"offlineabilityEntity",_.Ja(Q,"offlineabilityEntity")))==null?void 0:H.addToOfflineButtonState)!=null?M:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else m="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else H=O.entities,m?(M=QSs(m),m=(Q=(B=_.Vh(H,"offlineabilityEntity",_.Ja(M,"offlineabilityEntity")))==null?void 0:B.addToOfflineButtonState)!=null?Q:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):m="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return m};
z9I=function(O,m){O=O.entities;if(m){m=QSs(m);var G,B;m=(B=(G=_.Vh(O,"offlineabilityEntity",_.Ja(m,"offlineabilityEntity")))==null?void 0:G.addToOfflineButtonState)!=null?B:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else m="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return m};
_.JCI=function(O){var m=O.entities;O=_.wv(O);var G=m2p(m,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.V("kevlar_modern_downloads_page")&&G)var B=!1;else{var Q,H;m=(H=(Q=((B=m.downloadsPageViewConfigurationEntity)!=null?B:{})[_.oQ])==null?void 0:Q.smartDownloadsOptInBannerVisibility)!=null?H:{};B=O?!!m.visibleWithConnection:!!m.visibleWithoutConnection}return B};
_.Vtp=function(O){return m2p(O.entities,"SMART_DOWNLOADS_ENABLED")};
_.bir=function(O){return sSS(O.entities)};
nAs=function(O){return _.lQ(O.entities).every(function(m){var G;return(m==null?void 0:(G=m.transferEntity)==null?void 0:G.transferState)&&!OKN.includes(m.transferEntity.transferState)})};
_.XDp=function(O){var m,G,B,Q=(B=(G=((m=O.entities.downloadsPageViewConfigurationEntity)!=null?m:{})[_.oQ])==null?void 0:G.downloadsUpsellBannerVisibility)!=null?B:{};return _.wv(O)?!!Q.visibleWithConnection:!!Q.visibleWithoutConnection};
_.fUY=function(O,m){return rQr(O.entities,m)};
h9O=function(O,m){if(m){var G,B;O=(B=(G=_.Vh(O.entities,"downloadStatusEntity",_.Ja(m,"downloadStatusEntity")))==null?void 0:G.downloadState)!=null?B:"DOWNLOAD_STATE_UNKNOWN"}else O="DOWNLOAD_STATE_UNKNOWN";return O};
No=function(O,m){return JQp(O.entities,m)};
jtp=function(O){O=TSS(O);var m=O.hours===void 0?0:O.hours,G=O.minutes===void 0?0:O.minutes,B=O.seconds===void 0?0:O.seconds,Q=m>0;O=[];Q&&(m=gAp(m),O.push(m));m=Q;m=m===void 0?!1:m;G=(["af","be","lt"].includes(Pq)||m)&&G<10?u5N().format(G):(new Intl.NumberFormat("en-u-nu-latn")).format(G);O.push(G);G=u5N().format(B);O.push(G);G=":";"da fi id si sr sr-Latn".split(" ").includes(Pq)&&(G=".");return O.join(G)};
_.pDf=function(O){O=TSS(O);var m=O.hours===void 0?0:O.hours,G=O.minutes===void 0?0:O.minutes,B=O.seconds===void 0?0:O.seconds;O=[];if(m>0){var Q=IUS().format({hours:m});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(Pq)||m>9999)Q=Q.replace(m.toString(),gAp(m)),Pq==="km"&&(Q=Q.replace(".",","));O.push(Q)}G>0&&O.push(IUS().format({minutes:G}));B>0&&O.push(IUS().format({seconds:B}));m="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");G=Pq=="am"?"{0}\u1363 ":Pq=="fa"?"{0}\u060c\u200f ":
Pq=="my"?"{0} - ":Pq=="ne"?"{0},":Pq=="th"?"{0} ":Pq=="ur"?"{0}\u060c ":Pq=="ar"||Pq=="ar-XB"?"{0} \u0648":Pq=="ja"||Pq=="zh-CN"||Pq=="zh-HK"||Pq=="zh-TW"?"{0}\u3001":"{0}, ";B=Pq=="am"?"\u1363 ":Pq=="fa"?"\u060c\u200f ":Pq=="my"?" - ":Pq=="th"?" ":Pq=="ur"?"\u060c ":Pq=="ar"||Pq=="ar-XB"?" \u0648":Pq=="ja"||Pq=="zh-CN"||Pq=="zh-HK"||Pq=="zh-TW"?"\u3001":", ";Q=Pq=="am"?" \u12a5\u1293 {0}":Pq=="as"?" \u0986\u09f0\u09c1 {0}":Pq=="az"?" v\u0259 {0}":Pq=="bn"?" \u098f\u09ac\u0982 {0}":Pq=="cs"?" a\u00a0{0}":
Pq=="de"?" und {0}":Pq=="el"?" \u03ba\u03b1\u03b9 {0}":Pq=="eu"?" eta {0}":Pq=="fa"?"\u060c \u0648 {0}":Pq=="fil"?", at {0}":Pq=="gu"?" \u0a85\u0aa8\u0ac7 {0}":Pq=="hi"?", \u0914\u0930 {0}":Pq=="hu"?" \u00e9s {0}":Pq=="hy"?" \u0587 {0}":Pq=="id"?", dan {0}":Pq=="iw"?" \u05d5-{0}":Pq=="ja"?"\u3001{0}":Pq=="ka"?" \u10d3\u10d0 {0}":Pq=="km"?" \u1793\u17b7\u1784 {0}":Pq=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":Pq=="ko"?" \ubc0f {0}":Pq=="ky"?" \u0436\u0430\u043d\u0430 {0}":Pq=="lt"?" ir {0}":Pq==
"lv"?" un {0}":Pq=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":Pq=="mr"?" \u0906\u0923\u093f {0}":Pq=="ms"?" dan {0}":Pq=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":Pq=="ne"?" \u0930 {0}":Pq=="or"?", \u0b13 {0}":Pq=="pa"?" \u0a05\u0a24\u0a47 {0}":Pq=="ro"?" \u0219i {0}":Pq=="si"?", \u0dc3\u0dc4 {0}":Pq=="sk"?" a {0}":Pq=="sl"?" in {0}":Pq=="sq"?" dhe {0}":Pq=="sv"?" och {0}":Pq=="sw"?" na {0}":Pq=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":Pq=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
Pq=="th"?" \u0e41\u0e25\u0e30{0}":Pq=="tr"?" ve {0}":Pq=="ur"?"\u060c \u0627\u0648\u0631 {0}":Pq=="uz"?" va {0}":Pq=="vi"?" v\u00e0 {0}":Pq=="zh-HK"?"\u53ca{0}":Pq=="zu"?", ne-{0}":Pq=="af"||Pq=="nl"?" en {0}":Pq=="ar"||Pq=="ar-XB"?" \u0648{0}":Pq=="be"||Pq=="uk"?" \u0456 {0}":Pq=="en-GB"||Pq=="en-IN"?" and {0}":Pq=="en"||Pq=="en-XA"?", and {0}":Pq=="et"||Pq=="fi"?" ja {0}":Pq=="fr"||Pq=="fr-CA"?" et {0}":Pq=="zh-CN"||Pq=="zh-TW"?"\u548c{0}":Pq=="da"||Pq=="is"||Pq=="no"?" og {0}":Pq=="es"||Pq=="es-419"||
Pq=="es-US"?" y {0}":Pq=="kk"||Pq=="lo"||Pq=="mn"?", {0}":Pq=="bg"||Pq=="mk"||Pq=="ru"||Pq=="sr"?" \u0438 {0}":Pq=="gl"||Pq=="it"||Pq=="pt-BR"||Pq=="pt-PT"?" e {0}":" i {0}";var H=Pq=="am"?"{0} \u12a5\u1293 {1}":Pq=="as"?"{0} \u0986\u09f0\u09c1 {1}":Pq=="az"?"{0} v\u0259 {1}":Pq=="bn"?"{0} \u098f\u09ac\u0982 {1}":Pq=="de"?"{0} und {1}":Pq=="el"?"{0} \u03ba\u03b1\u03b9 {1}":Pq=="eu"?"{0} eta {1}":Pq=="fa"?"{0} \u0648 {1}":Pq=="fil"?"{0} at {1}":Pq=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":Pq=="hi"?"{0} \u0914\u0930 {1}":
Pq=="hu"?"{0} \u00e9s {1}":Pq=="hy"?"{0} \u0587 {1}":Pq=="iw"?"{0} \u05d5-{1}":Pq=="ja"?"{0}\u3001{1}":Pq=="ka"?"{0} \u10d3\u10d0 {1}":Pq=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":Pq=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":Pq=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":Pq=="ko"?"{0} \ubc0f {1}":Pq=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":Pq=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":Pq=="lt"?"{0} ir {1}":Pq=="lv"?"{0} un {1}":Pq=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":Pq=="mn"?"{0}, {1}":Pq==
"mr"?"{0} \u0906\u0923\u093f {1}":Pq=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":Pq=="ne"?"{0} \u0930 {1}":Pq=="or"?"{0} \u0b13 {1}":Pq=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":Pq=="ro"?"{0} \u0219i {1}":Pq=="si"?"{0} \u0dc3\u0dc4 {1}":Pq=="sl"?"{0} in {1}":Pq=="sq"?"{0} dhe {1}":Pq=="sv"?"{0} och {1}":Pq=="sw"?"{0} na {1}":Pq=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":Pq=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":Pq=="th"?"{0}\u0e41\u0e25\u0e30{1}":Pq=="tr"?"{0} ve {1}":Pq=="ur"?
"{0} \u0627\u0648\u0631 {1}":Pq=="uz"?"{0} va {1}":Pq=="vi"?"{0} v\u00e0 {1}":Pq=="zh-HK"?"{0}\u53ca{1}":Pq=="zu"?"{0} ne-{1}":Pq=="af"||Pq=="nl"?"{0} en {1}":Pq=="ar"||Pq=="ar-XB"?"{0} \u0648{1}":Pq=="be"||Pq=="uk"?"{0} \u0456 {1}":Pq=="cs"||Pq=="sk"?"{0} a\u00a0{1}":Pq=="et"||Pq=="fi"?"{0} ja {1}":Pq=="fr"||Pq=="fr-CA"?"{0} et {1}":Pq=="id"||Pq=="ms"?"{0} dan {1}":Pq=="zh-CN"||Pq=="zh-TW"?"{0}\u548c{1}":Pq=="da"||Pq=="is"||Pq=="no"?"{0} og {1}":Pq=="es"||Pq=="es-419"||Pq=="es-US"?"{0} y {1}":Pq==
"bg"||Pq=="mk"||Pq=="ru"||Pq=="sr"?"{0} \u0438 {1}":Pq=="en"||Pq=="en-GB"||Pq=="en-IN"||Pq=="en-XA"?"{0} and {1}":Pq=="gl"||Pq=="it"||Pq=="pt-BR"||Pq=="pt-PT"?"{0} e {1}":"{0} i {1}";Pq==="sq"?(Q=Q.replace("dhe","e"),H=H.replace("dhe","e")):Pq==="th"?(B=B.replace("{0}"," {0}"),H=H.replace("{0}","{0} "),H=H.replace("{1}"," {1}")):Pq==="ne"?B=",":Pq==="zh-CN"?B="":m.includes(Pq)&&(B=" ");return O.length<2?O.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(Pq)?
O.length===2?H.replace("{0}",O[0]).replace("{1}",O[1]):G.replace("{0}",O[0])+O.slice(1,-1).join(B)+Q.replace("{0}",O[O.length-1]):O.join(B)};
TSS=function(O){var m=O.hours||0,G=O.minutes||0,B=O.seconds||0;m=B+G*60+m*3600+(O.days||0)*86400+(O.weeks||0)*604800+(O.months||0)*2629800+(O.years||0)*31557600;if(m<=0)return{hours:0,minutes:0,seconds:0};O=m;m=Math.floor(O/3600);O%=3600;G=Math.floor(O/60);B=Math.floor(O%60);return{hours:m,minutes:G,seconds:B}};
gAp=function(O){O=(new Intl.NumberFormat("en-u-nu-latn")).format(O);var m=["fr"],G="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(Pq)?O.replace(",","\u00a0"):m.includes(Pq)?O.replace(",","\u202f"):G.includes(Pq)?O.replace(",","."):O};
u5N=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
IUS=function(){SES||(FZ=EAe,SES=new LGp);return SES};
CAY=function(O){try{return(new _.Aa(5)).format(O)}catch(m){}};
OK=function(O){return{thumbnailOverlayDownloadingRenderer:{state:O}}};
oAN=function(O){if(O=CAY(O))return{thumbnailOverlaySidePanelRenderer:{text:_.rv(O),icon:{iconType:"PLAYLISTS"}}}};
lUN=function(){var O=_.Xm("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.rv(O),icon:{iconType:"PLAY_ALL"}}}};
aU6=function(O){O=_.mZ(O,2);return Pq!=="ru"&&Pq!=="es_419"&&Pq!=="es-419"&&Pq!=="es"&&Pq!=="es_US"&&Pq!=="es-US"&&Pq!=="fr"&&Pq!=="pl"&&Pq!=="it"&&Pq!=="nl"&&Pq!=="uk"&&Pq!=="fr_CA"&&Pq!=="fr-CA"||O===""?O:O[0].toLocaleUpperCase()+O.substring(1)};
yCI=function(O){return function(m){var G=O(),B=_.mZ(m,G.dateFormat);m=_.mZ(m,G.timeFormat);var Q=kbN.DATETIMEFORMATS[G.joinerStyle];Q=Q.replace(/'(?!')/g,"");Q=Q.replace("{0}",m);Q=Q.replace("{1}",B);return G.capitalize(Q)}};
cC5=function(O){return O?typeof O.seconds==="string"&&(O.nanos===void 0||typeof O.nanos==="number"):!1};
YEf=function(O){return new Date(Number(O.seconds)*1E3+(O.nanos||0)*1E-6)};
_.mZ=function(O,m){if(typeof O.getTime==="function")O={date:O};else if(cC5(O))O={date:YEf(O)};else if(typeof cC5(O.timestamp)&&typeof O.i18nInternalSecondsEastOfUtc==="number")O={date:YEf(O.timestamp),timeZone:GL(-O.i18nInternalSecondsEastOfUtc/60)};else throw Error("If`"+JSON.stringify(O));var G=O;O=G.date;G=G.timeZone;m=d2I(m).format(O,G);Pq==="zh-TW"&&(O=G?Number(d2I("H").format(O,G)):O.getHours(),m=O<5?m.replace("\u4e0a\u5348","\u51cc\u6668"):O<8?m.replace("\u4e0a\u5348","\u65e9\u4e0a"):O<12?
m.replace("\u4e0a\u5348","\u4e0a\u5348"):O<13?m.replace("\u4e0b\u5348","\u4e2d\u5348"):O<19?m.replace("\u4e0b\u5348","\u4e0b\u5348"):m.replace("\u4e0b\u5348","\u665a\u4e0a"));return m};
d2I=function(O){if(wDp.has(O))return wDp.get(O);var m=e9N(O);m=D2M(m);sts!==!0&&(sts=!0);NS6=!0;NS6=!1;m=new BX(m,kbN);wDp.set(O,m);return m};
e9N=function(O){return(new BX(O,kbN)).patternParts_.map(function(m){return m.type===0?"'"+m.text+"'":m.text}).join("")};
D2M=function(O){return Pq==="en"||Pq==="es_US"||Pq==="es-US"?O:O.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(m,G,B){return"H".repeat(G.length)+B})};
Byz=function(O,m){PA6||(FZ=EAe,PA6=new FGs);var G=PA6;a:if(O=ACr(O),m=ACr(m||new Date),O>m)G=O.getTime()-m.getTime()>6048E5?_.mZ(O,1):O36(O);else{for(var B=0;mxf(O,12*(B+1))<m;)++B;if(B>0)G=G.format(-B,0);else{for(B=0;mxf(O,B+1)<m;)++B;if(B>0)G=G.format(-B,2);else{O=m.getTime()-O.getTime();m=_.K(Ghp);for(B=m.next();!B.done;B=m.next()){B=B.value;var Q=B.unit,H=Math.floor(O/B.unitDuration);if(H>=(B.threshold===void 0?1:B.threshold)){G=G.format(-H,Q);break a}}G=G.format(-0,7)}}}return G};
ACr=function(O){if(typeof O.getTime==="function")return O;if(cC5(O))return YEf(O);throw Error("Jf`"+JSON.stringify(O));};
mxf=function(O,m){for(var G=0,B;;++G)if(B=new Date(O.getFullYear(),O.getMonth()+m,O.getDate()-G,O.getHours(),O.getMinutes(),O.getSeconds()),B.getMonth()===(O.getMonth()+m)%12)return B};
_.Qg=function(O){return{runs:[{text:O}]}};
_.HX=function(O){if(O&&O.simpleText)return O.simpleText;var m="";if(O&&O.runs)for(var G=0;G<O.runs.length;G++)O.runs[G].text&&(m+=O.runs[G].text);return m};
H3e=function(O,m,G,B){return O.videoEntity&&!O.policyEntity&&G!=="DOWNLOAD_STATE_FAILED"?[OK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:jH(O.policyEntity)&&m!=="TRANSFER_STATE_FAILED"&&m!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?m==="TRANSFER_STATE_PAUSED_BY_USER"?[OK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.IQ(m)?[OK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:O.videoEntity.lengthSeconds?QFS(O.videoEntity.lengthSeconds,B):[]:
[OK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
QFS=function(O,m){var G=[{thumbnailOverlayTimeStatusRenderer:{text:_.rv(jtp({seconds:O})),style:"DEFAULT"}}];m&&(O=m<=0||O<=0?0:m>=O?100:Math.ceil(m*100/O),O>0&&G.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:O}}));return G};
vof=function(O,m,G,B,Q){if(m==="TRANSFER_STATE_UNKNOWN"||!O)return{};if(_.IQ(m)||m==="TRANSFER_STATE_PRE_TRANSFER")var H=[OK("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var M,R;if(m==="TRANSFER_STATE_COMPLETE"&&((M=O.mainPlaylistEntity)==null?0:(R=M.videos)==null?0:R.length)){if(_.V("web_modern_collections_v2")){var x;var t=(H=O.mainPlaylistEntity)==null?void 0:(x=H.videos)==null?void 0:x.length;H=(H=CAY(t))?{thumbnailOverlayBottomPanelRenderer:{text:_.rv(H),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var W;H=oAN((t=O.mainPlaylistEntity)==null?void 0:(W=t.videos)==null?void 0:W.length)}var Z;H=[lUN(),Object.assign({},(Z=H)!=null?Z:{})]}else H=[]}Z=H;a:if(m==="TRANSFER_STATE_PRE_TRANSFER")G=RQ(_.Xm("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(m==="TRANSFER_STATE_TRANSFER_IN_QUEUE")G=RQ(_.Xm("WAITING_TO_DOWNLOAD"));else if(_.IQ(m))G=Math.floor(G*100).toString(),G=RQ(_.Xm("DOWNLOADING_PERCENT",{percent:G},"Downloading... "+G+"%"));else{if(B&&(_.V("playlist_is_offline_selector_killswitch")&&
(Q=_.KR().resolve(_.PI).isNetworkAvailable()),Q)){G=rfs(_.Xm("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),$cs(B));break a}G=void 0}m=m==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Xm("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},Z.length?{thumbnailOverlays:Z}:{},G?{viewPlaylistText:G}:{viewPlaylistText:_.Qg("")},m.length?{badges:m}:{})};
K2r=function(O,m,G,B,Q,H){if(m==="TRANSFER_STATE_UNKNOWN"||!O)return{};if(B==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var M=H3e(O,m,B);if(O.videoEntity&&!O.policyEntity&&B!=="DOWNLOAD_STATE_FAILED"){var R=_.Xm("WAITING_TO_DOWNLOAD");if(R)return{shortViewCountText:_.Qg(R),publishedTimeText:void 0,thumbnailOverlays:M}}if(!jH(O.policyEntity)){H=O.policyEntity&&!Bcp(O.policyEntity)?_.Xm("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Xm("TRANSFER_FAILED",{},"Download failed");var x;if((x=O.policyEntity)==null?0:x.shortMessageForDisabledAction)H=O.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:RQ(H),publishedTimeText:void 0,thumbnailOverlays:M}}if(m==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Qg(_.Xm("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:M};if(m==="TRANSFER_STATE_FAILED"||m==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Qg(_.Xm("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:M};if(m==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(x=_.Xm("WAITING_TO_DOWNLOAD"),B==="DOWNLOAD_STATE_PAUSED"&&(x=_.Xm("DOWNLOAD_PAUSED",{},"Download paused")),x))return{shortViewCountText:_.Qg(x),publishedTimeText:void 0,thumbnailOverlays:M};if(_.IQ(m))return O=Math.floor(G*100).toString(),{shortViewCountText:_.Qg(_.Xm("DOWNLOADING_PERCENT",{percent:O},"Downloading... "+O+"%")),publishedTimeText:void 0,thumbnailOverlays:M};m=void 0;O.videoEntity.publishedTimestampMillis&&
(m=new Date,Q&&(m=new Date(Q)),m=RQ(Byz(new Date(Number(O.videoEntity.publishedTimestampMillis)),m)));Q=[];_.V("kevlar_woffle_badge_killswitch")||(Q=[{metadataBadgeRenderer:{label:_.Xm("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var t;O=RQ((t=O.videoEntity.localizedStrings)==null?void 0:t.viewCount);return Object.assign({},H?{shortViewCountText:void 0}:{shortViewCountText:O},H?{}:{publishedTimeText:m},{badges:Q,thumbnailOverlays:M})};
M1Y=function(O,m){O=O===void 0?_.$xI:O;switch(m.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:m.payload.playlistId,inviteLinkURL:m.payload.inviteLinkUrl};default:return O}};
RRN=function(O,m){O=O===void 0?_.rgr:O;switch(m.type){case "SET_CURRENT_FORM_ID":return m=m.payload.formId,O.currentFormId===m?O:{currentFormId:m,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var G=m.payload;m=G.groupId;G=G.command;if(O.currentFormId){var B=Object.assign({},O.commandsMap);B[m]=G;O=Object.assign({},O,{commandsMap:B})}return O;case "RESET_COMMAND_MAP":return Object.assign({},O,{commandsMap:{}});default:return O}};
xxf=function(O,m){O=O===void 0?_.i3M:O;switch(m.type){case "UPDATE_CANVAS_MODE":return Object.assign({},O,{currentMode:m.payload.currentMode});default:return O}};
Uxf=function(O,m){O=O===void 0?_.qX5:O;switch(m.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},O,{guideIsExpanded:m.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},O,{scrollAtTop:m.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},O,{guideIsVisibleButNotPersistent:m.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},O,{miniplayerIsActive:m.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},O,{singleOptionSurveyIsActive:m.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},O,{slimlineSurveyRatingSelectedIndex:m.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},O,{richGridMiniMode:m.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},O,{richGridItemsPerRow:m.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},O,{richGridSlimItemsPerRow:m.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},O,{richGridContainerWidth:m.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},O,{richGridStyle:m.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},O,{currentPageType:m.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},O,{inlinePreviewIsActive:m.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},O,{inlinePreviewIsEnabled:m.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},O,{darkModeIsEnabled:m.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
O,{miniplayerPlaybackState:m.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},O,{tabGesturesIsActive:m.payload});case "SET_ONLINE_STATUS":return Object.assign({},O,{isOnline:m.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},O,{chipBarIsSticky:m.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},O,{frostedGlassMode:m.payload});default:return O}};
t1r=function(){return _.V("kevlar_disable_theater_mode_persistence")?!1:_.yE("START_IN_THEATER_MODE")};
Z3z=function(O,m){O=O===void 0?_.W2S:O;switch(m.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},O,{transcription:m.payload});case "SET_OVERLAY_STATE":return Object.assign({},O,{overlay:m.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return O}};
HQS=function(){return nC(Object.assign({},{continuation:zRO,download:JgS,canvas:xxf,reportChannelAbuse:F2M,share:Age,talkToRecs:OQe,ui:Uxf,voiceSearch:Z3z,watch:mdS,ypc:GRe,shorts:Btp,radioButtonGroup:RRN,collabInviteLink:M1Y},Q4N))};
$dO=function(){return _.V("web_player_entities_middleware")?new vX(HQS(),[vkS,KTp]):new vX(HQS(),[vkS])};
_.Kf=function(){M6r||(M6r=$dO());return M6r};
rnS=function(O,m,G){if(O.length)return{titleText:_.rv(m!=null?m:_.Xm("DOWNLOADS",void 0,"Downloads")),contents:O.map(function(B){var Q=B.videoEntity;B={videoId:Q.videoId,title:RQ(Q.title),shortBylineText:RQ(B.channelEntity.title),thumbnail:Q.thumbnail};var H=Q.videoId?No(_.Kf().getState(),Q.videoId):0;Q.videoId&&G?B.navigationEndpoint=_.Mo(Q.videoId,G,void 0,void 0,H):Q.videoId&&(B.navigationEndpoint=Kts(Q.videoId,H,Q.lengthSeconds));Q.lengthSeconds&&(B.thumbnailOverlays=QFS(Q.lengthSeconds,H));return{playlistPanelVideoRenderer:B}}),
totalVideos:O.length}};
RHz=function(O){return(O=(0,_.aM.getValueByKeys)(O,"playlistId"))?{playlistId:O}:null};
iQO=function(){return{}};
xdI=function(O,m){return new _.zH(function(G,B){O.then(function(Q){if(Q){if(Q=m(Q))return G(Q);B()}},B)})};
qLS=function(O){var m,G,B,Q=(m=O.contents)==null?void 0:(G=m.twoColumnWatchNextResults)==null?void 0:(B=G.autoplay)==null?void 0:B.autoplay,H,M,R;m=(H=O.contents)==null?void 0:(M=H.twoColumnWatchNextResults)==null?void 0:(R=M.playlist)==null?void 0:R.playlist;return Q&&m&&m.playlistId?{rawResponse:O,autoplayRenderer:Q,playlistPanelRenderer:m,playlistId:m.playlistId}:null};
t6e=function(O){var m=m===void 0?"UNKNOWN_INTERFACE":m;if(O.length===1)return O[0];var G=Ude[m];if(G){G=new RegExp(G);for(var B=_.K(O),Q=B.next();!Q.done;Q=B.next())if(Q=Q.value,G.exec(Q))return Q}var H=[];Object.entries(Ude).forEach(function(M){var R=_.K(M);M=R.next().value;R=R.next().value;m!==M&&H.push(R)});
G=new RegExp(H.join("|"));O.sort(function(M,R){return M.length-R.length});
B=_.K(O);for(Q=B.next();!Q.done;Q=B.next())if(Q=Q.value,!G.exec(Q))return Q;return O[0]};
_.$H=function(O){return"/youtubei/v1/"+t6e(O)};
_.rH=function(O){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:O}}}}};
_.Rh=function(O){return _.rH(_.Qg(O))};
WTI=function(O,m){var G={mode:"NORMAL"};O&&(G.autoplayVideo=O.navigationEndpoint,G.nextButtonVideo=O.navigationEndpoint);m&&(G.previousButtonVideo=m.navigationEndpoint);return G};
Jn5=function(O,m,G){if(!G||!G.sets)return{sets:[WTI(O,m)]};var B=G.sets.find(function(M){return M.mode==="NORMAL"}),Q=(0,_.aM.unsafeClone)(G);
if(!B)return Q.sets.push(WTI(O,m)),Q;if(!O)return G;B=_.aM.getValueByKeys.apply(null,[B].concat(_.lS(ZQN)));var H=_.aM.getValueByKeys.apply(null,[O].concat(_.lS(zHz)));if(B===H)return G;Q.sets=Q.sets.filter(function(M){return M.mode!=="NORMAL"});
Q.sets.push(WTI(O,m));return Q};
V6N=function(O){return!!O.playlistPanelVideoRenderer&&!O.playlistPanelVideoRenderer.unplayableText};
bQp=function(O){return!!O.playlistPanelVideoRenderer&&!!O.playlistPanelVideoRenderer.title};
nkN=function(O,m){if(m.contents&&!(O>=m.contents.length)&&(O=m.contents.slice(O).find(V6N)))return O.playlistPanelVideoRenderer};
XTO=function(O,m){if(m.contents)return(m=m.contents.find(function(G){return!!G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.videoId===O}))?m.playlistPanelVideoRenderer:void 0};
fcN=function(O,m){return m.contents?m.contents.findIndex(function(G){return!!G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.videoId===O}):-1};
hH5=function(O,m){return m.contents?m.contents.findIndex(function(G){return!!G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.playlistSetVideoId===O}):-1};
Ttz=function(O,m){O.contents&&m!==-1&&O.contents.splice(m,1).length===1&&O.totalVideos!==void 0&&(--O.totalVideos,delete O.videoCountText)};
_.gk6=function(O){var m=[];if(!O||!O.contents)return m;O=_.K(O.contents);for(var G=O.next();!G.done;G=O.next())G=G.value,G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.videoId&&m.push(G.playlistPanelVideoRenderer.videoId);return m};
_.utO=function(O){if(O&&O.contents)return(O=O.contents.find(function(m){return!!m.playlistPanelVideoRenderer&&!!m.playlistPanelVideoRenderer.selected})||O.contents[O.currentIndex])?O.playlistPanelVideoRenderer:void 0};
j4M=function(O,m,G,B,Q,H,M){Q=Q===void 0?!1:Q;H=H===void 0?!1:H;M=M===void 0?!1:M;if(O.contents&&O.contents.length!==0){B&&(O.contents=O.contents.filter(B));B=O.contents.length;for(var R=0;R<B;R++){var x=O.contents[R].playlistPanelVideoRenderer;x&&(R===m?(H&&delete x.menu,x.indexText=_.Qg("\u25b6")):Q||O.isInfinite||x.indexText===void 0?delete x.indexText:x.indexText=_.Qg((R+1+G).toString()))}O.currentIndex=m+G;M&&(delete O.videoCountText,O.totalVideos=B)}};
_.iu=function(O){O=Icz(O);if(O){var m=O.length;var G=-37%m;G<0&&(G=m+G);O=O.slice(m-G)+O.slice(0,m-G)}else O="";G="";for(m=0;m<O.length&&O[m]!==pTI;m++)G+=O[m];return G};
_.SLf=function(O,m){var G=document.body;m=m===void 0?function(R){return R}:m;
var B,Q=null;O=_.K(O);for(B=O.next();!B.done;B=O.next()){var H=B.value;B="div";H[2]&&(B=m(H[2]));B=document.createElement(B);Q||(Q=B);var M=H[0];H=H[1];M&&(B.id=m(M));if(H)for(H=_.K(H),M=H.next();!M.done;M=H.next())B.classList.add(m(M.value));G.appendChild(B);G=B}return[Q,G]};
EkN=function(O,m){for(var G="",B=0;B<m;B++)G+=O.charAt(Math.floor(Math.random()*O.length));return G};
xH=function(O){return EkN("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",O)};
qB=function(O){return EkN("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",O)};
UK=function(O){return EkN("0123456789",O)};
LTY=function(){var O=performance.now(),m=new Date;var G="2."+m.getFullYear()+String(m.getMonth()+1).padStart(2,"0")+String(m.getDate()).padStart(2,"0");for(var B,Q=Math.floor(Math.random()*11)+15,H=[],M=0;M<Q;M++)H.push(Math.floor(Math.random()*26476865)+24547720);B=H.join(",");var R=xH(10),x=xH(100),t=xH(102),W=xH(106),Z=xH(108),z=xH(11),J=xH(1140),n=xH(123),I=xH(14),S=xH(16),L=xH(1900),C=xH(23),P=xH(26),w=xH(34),d=xH(397),D=xH(44),OS=xH(5),rN=xH(72),xO=xH(74),XI=xH(75),Vf=xH(88),US=xH(91),CN="rr4---sn-5hnekn7k rr1---sn-q4flrnlz rr4---sn-q4fl6ndl rr2---sn-q4fl6nlz rr5---sn-ntq7yns7 rr2---sn-5hnekn7d rr4---sn-5hne6n6l rr1---sn-hgn7rn7y rr4---sn-q4fl6nz6 rr4---sn-q4flrnel rr4---sn-q4fl6nsl rr2---sn-q4fl6nd7 rr3---sn-5hnednsz rr4---sn-q4fzen7y rr4---sn-5hne6nsy rr2---sn-aigl6nzl rr1---sn-q4fl6nsd rr1---sn-ntq7ynle rr2---sn-q4fl6n6d rr3---sn-hgn7rn7k".split(" ");
var oe=CN[Math.floor(Math.random()*CN.length)];var K$=(new Date("2010-01-01")).getTime();var n$=(new Date(K$+Math.random()*((new Date).getTime()-K$))).toISOString().split("T")[0];for(var qe,PM=[],ZH=0;ZH<4;ZH++)PM.push(Math.floor(Math.random()*100));qe=PM.join(".");var U3=Number(UK(5)),p$=Number(UK(6)),uy=Number(UK(7)),vb=Number(UK(9)),vM=UK(1),Gp=UK(10),Vu=UK(16),Gu=UK(19),x9=UK(2),Am=UK(20),Fc=UK(21),O9=UK(3),Rj=UK(4),DH=UK(5),zu=UK(6),jo=UK(7),f$=UK(8),Wb=UK(9);var G9=EkN("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var U9=[qB(5),qB(5),qB(5)].join("%2C"),IM=[UK(3),UK(5),UK(5)].join("%2C"),pI=qB(0),yu=qB(1),SK=qB(10),s9=qB(108),Xc=qB(11),xR=qB(12),vY=qB(13),Sj=qB(14),pS=qB(15),ms=qB(16),MB=qB(17),TY=qB(18),ls=qB(19),wN=qB(2),zp=qB(20),ts=qB(22),SA=qB(23),Xr=qB(24),XC=qB(266),b2=qB(3),E9=qB(30),VO=qB(34),Ws=qB(35),g9=qB(36),ch=qB(4),c8=qB(40),dh=qB(43),e0=qB(47),Gm=qB(5),pL=qB(6),v4=qB(7),bh=qB(75),er=qB(8),Js=qB(80),ly=qB(9),$h="https://www."+qB(12)+".com",qM={},s_={},Ya={},FJ={},gR={},I1={},p2={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:B}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:G},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+qB(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:G},{key:"client.name",value:"WEB"},{key:"client.fexp",value:B}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Fc+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+qB(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:c8,ypcGetOfflineUpsellEndpoint:{params:Js}},trackingParams:Ws+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&cnr="+x9+"&ratebypass=yes&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&c=WEB&txp="+jo+"&n="+S+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:p$,width:640,height:360,lastModified:Vu,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:jo,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+IM+"&mn="+
U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&cnr="+x9+"&ratebypass=yes&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&c=WEB&txp="+jo+"&n="+S+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+s9+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:p$,width:1280,
height:720,lastModified:Vu,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:jo,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+IM+"&mn="+U9+"&ms="+
U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&gir="+b2+"&clen="+Wb+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&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="+Z,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:uy,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:Wb,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:uy,approxDurationMs:jo},{itag:248,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+IM+"&mn="+U9+"&ms="+U9+"&mv="+
yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fwebm&ns="+Xr+"&gir="+b2+"&clen="+Wb+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/webm; codecs="vp9"',bitrate:uy,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:Wb,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:uy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jo},{itag:399,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+
IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&gir="+b2+"&clen="+Wb+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&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="+Z,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:uy,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:Wb,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:uy,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jo},{itag:136,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+
IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&gir="+b2+"&clen="+Wb+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:uy,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:Wb,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:p$,approxDurationMs:jo},{itag:247,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+IM+"&mn="+
U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fwebm&ns="+Xr+"&gir="+b2+"&clen="+Wb+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/webm; codecs="vp9"',bitrate:uy,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:Wb,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:p$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jo},{itag:398,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+
IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&gir="+b2+"&clen="+Wb+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:uy,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:Wb,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:p$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jo},{itag:135,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+
IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:p$,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:p$,approxDurationMs:jo},{itag:244,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+IM+"&mn="+
U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fwebm&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+s9+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/webm; codecs="vp9"',bitrate:p$,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:p$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jo},{itag:397,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+
IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&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="+Z,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:p$,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:p$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jo},{itag:134,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+
IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:p$,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:p$,highReplication:!0,approxDurationMs:jo},{itag:243,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+
IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fwebm&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/webm; codecs="vp9"',bitrate:p$,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:p$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jo},{itag:396,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+
IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:p$,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:p$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jo},{itag:133,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+
IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:p$,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:p$,approxDurationMs:jo},{itag:242,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+IM+"&mn="+
U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fwebm&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/webm; codecs="vp9"',bitrate:p$,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:p$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jo},{itag:395,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+
IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:p$,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:p$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jo},{itag:160,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+
IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:p$,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:U3,approxDurationMs:jo},{itag:278,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+IM+"&mn="+
U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fwebm&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Z+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'video/webm; codecs="vp9"',bitrate:p$,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:U3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jo},{itag:394,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&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="+
IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=video%2Fmp4&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&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="+Z,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:U3,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:U3,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:jo},{itag:140,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=audio%2Fmp4&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:p$,
initRange:{start:"0",end:"631"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:p$,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:jo,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+
x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=audio%2Fwebm&ns="+Xr+"&gir="+b2+"&clen="+jo+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'audio/webm; codecs="opus"',bitrate:U3,initRange:{start:"0",end:"265"},indexRange:{start:O9,
end:Rj},lastModified:Vu,contentLength:jo,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:U3,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:jo,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=audio%2Fwebm&ns="+
Xr+"&gir="+b2+"&clen="+jo+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+W+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'audio/webm; codecs="opus"',bitrate:U3,initRange:{start:"0",end:"265"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:jo,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:U3,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:jo,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+oe+".googlevideo.com/videoplayback?expire="+Gp+"&ei="+C+"&ip="+qe+"&id=o-AF"+dh+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+IM+"&mn="+U9+"&ms="+U9+"&mv="+yu+"&mvi="+vM+"&pl="+x9+"&initcwndbps="+jo+"&siu="+vM+"&spc="+D+"&vprv="+vM+"&svpuc="+vM+"&mime=audio%2Fwebm&ns="+Xr+"&gir="+b2+"&clen="+f$+"&dur="+f$+"&lmt="+Vu+"&mt="+Gp+"&fvip=3&keepalive="+b2+"&c=WEB&txp="+
jo+"&n="+ms+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+Z,mimeType:'audio/webm; codecs="opus"',bitrate:p$,initRange:{start:"0",end:"265"},indexRange:{start:O9,end:Rj},lastModified:Vu,contentLength:f$,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:p$,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:jo,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="+Wb+"&docid="+z+"&ei="+C+"&feature="+R+"&fexp="+pI+"&ns="+wN+"&plid="+S+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+yu+"&el="+SK+"&len="+Rj+"&of="+ts+
"&uga="+x9+"&vm="+XC},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+Wb+"&docid="+z+"&ei="+C+"&feature="+R+"&fexp="+pI+"&ns="+wN+"&plid="+S+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+yu+"&el="+SK+"&len="+Rj+"&of="+ts+"&uga="+x9+"&vm="+XC},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+Wb+"&docid="+z+"&ei="+C+"&feature="+R+"&fexp="+pI+"&ns="+wN+"&plid="+S+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
yu+"&el="+SK+"&len="+Rj+"&of="+ts+"&uga="+x9+"&vm="+XC},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+C+"&m="+Vf+"&oid="+ts+"&plid="+S+"&pltype="+v4+"&ptchn="+ts+"&ptk="+I+"&video_id="+z},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+Wb+"&docid="+z+"&ei="+C+"&event="+Sj+"&feature="+R+"&fexp="+pI+"&ns="+wN+"&plid="+S+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+yu},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?docid="+z+"&ei="+C+"&feature="+
R+"&len="+Rj+"&ns="+wN+"&plid="+S+"&ver="+vM,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+z+"&caps="+b2+"&opi="+Wb+"&xoaf="+vM+"&hl="+wN+"&ip="+qe+"&ipbits="+vM+"&expire="+Gp+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+qe+"&key="+b2+"&lang="+OS,name:{simpleText:Xc},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+z+"&caps="+b2+"&opi="+Wb+"&xoaf="+vM+"&hl="+wN+"&ip="+qe+"&ipbits="+vM+"&expire="+Gp+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+qe+"&key="+b2+"&kind="+b2+"&lang="+wN,name:{simpleText:Sj},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:Xc,title:xR,lengthSeconds:"1155",keywords:[v4,TY,TY,er],
channelId:Xr,isOwnerViewing:!1,shortDescription:ms,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+z+"/hqdefault.jpg?sqp=-oaymwE"+g9+"G&rs="+VO,width:168,height:94},{url:"https://i.ytimg.com/vi/"+z+"/hqdefault.jpg?sqp=-oaymwE"+g9+"G&rs="+VO,width:196,height:110},{url:"https://i.ytimg.com/vi/"+z+"/hqdefault.jpg?sqp=-oaymwE"+g9+"G&rs="+w,width:246,height:138},{url:"https://i.ytimg.com/vi/"+z+"/hqdefault.jpg?sqp=-oaymwE"+g9+"G&rs="+w,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
z+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:jo,author:vY,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:jo,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+ts+"/featured_channel.jpg?v="+er,width:40,height:40}]},trackingParams:Ws+"=",navigationEndpoint:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{url:"/channel/"+Xr,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Xr}},channelName:vY,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:xR}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Xr,showPreferences:!1,subscribedButtonText:{runs:[{text:pS}]},unsubscribedButtonText:{runs:[{text:TY}]},trackingParams:Ws+"=",unsubscribeButtonText:{runs:[{text:ly}]},serviceEndpoints:[{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[Xr],params:er}},{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:c8,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Ws+"=",dialogMessages:[{runs:[{text:vY},{text:ms},{text:er}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ly}]},serviceEndpoint:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Xr],params:er}},accessibility:{label:pS},trackingParams:Ws+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:ls}]},accessibility:{label:xR},trackingParams:Ws+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:ms}},unsubscribeAccessibility:{accessibilityData:{label:TY}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:f$},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Xr],params:er}},unsubscribeCommand:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Xr],params:er}},addToWatchLaterCommand:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Xc,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Xc}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+z+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+g9+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
z+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Xc,width:1280,height:720},title:{simpleText:zp},description:{simpleText:zp},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+TY,externalChannelId:Xr,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:jo,category:"Travel & Events",publishDate:n$,ownerChannelName:vY,uploadDate:n$}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:pS},trackingParams:Ws+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:c8,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Ws+"="}}],headerText:{simpleText:ch},icon:{infoCardIconRenderer:{trackingParams:Ws+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Ws+"="}},trackingParams:Ws+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Ws+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Xc+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:G9,interpreterSafeUrl:(qM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+E9+".js",qM),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:MB},{text:zp,bold:!0}]},endpoint:{clickTrackingParams:c8,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:Ws+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:er}]},actionButton:{buttonRenderer:{text:{runs:[{text:pS}]},navigationEndpoint:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+z,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
z,target:"TARGET_NEW_WINDOW"}},trackingParams:Ws+"="}},trackingParams:Ws+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+rN+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+rN+"=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:jo,endMs:jo,title:{accessibility:{accessibilityData:{label:v4}},simpleText:ly},metadata:{simpleText:SK},callToAction:{simpleText:ch},dismiss:{simpleText:er},endpoint:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{url:"/channel/"+Xr,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Xr}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:er}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Xr,showPreferences:!1,
subscribedButtonText:{runs:[{text:ls}]},unsubscribedButtonText:{runs:[{text:ms}]},trackingParams:Ws+"=",unsubscribeButtonText:{runs:[{text:Gm}]},serviceEndpoints:[{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Xr],params:er}},{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:c8,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Ws+
"=",dialogMessages:[{runs:[{text:ms},{text:ls},{text:Gm}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:TY}]},serviceEndpoint:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Xr],params:er}},accessibility:{label:ch},trackingParams:Ws+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:SK}]},
accessibility:{label:er},trackingParams:Ws+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:ch}},unsubscribeAccessibility:{accessibilityData:{label:pS}}}},trackingParams:Ws+"=",isSubscribe:!0,id:Am}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+z+"/hqdefault.jpg?sqp=-oaymwE"+g9+"G&rs="+w,width:168,height:94},{url:"https://i.ytimg.com/vi/"+z+"/hqdefault.jpg?sqp=-oaymwE"+g9+"G&rs="+VO,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+z+"/hqdefault.jpg?sqp=-oaymwE"+g9+"G&rs="+w,width:246,height:138},{url:"https://i.ytimg.com/vi/"+z+"/hqdefault.jpg?sqp=-oaymwE"+g9+"G&rs="+w,width:336,height:188},{url:"https://i.ytimg.com/vi/"+z+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:jo,endMs:jo,title:{accessibility:{accessibilityData:{label:ch}},simpleText:SK},metadata:{simpleText:ch},endpoint:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Xc,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Xc,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+oe+".googlevideo.com/videoplayback?source=youtube&oeis="+vM+"&c=WEB&oad="+Rj+"&ovd="+Rj+"&oaad="+DH+"&oavd="+DH+"&ocs="+O9+"&oewis="+vM+"&oputc="+vM+"&ofpcc="+vM+"&siu="+vM+"&msp="+vM+"&odepv="+vM+
"&id=o-AF"+dh+"&ip="+qe+"&initcwndbps="+jo+"&mt="+Gp+"&oweuc="+pI}}}}},trackingParams:Ws+"=",id:Am,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:TY}},simpleText:zp},style:"DEFAULT"}}]}}],startMs:jo,trackingParams:Ws+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:vM,offsetEndMilliseconds:DH},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Wb+";dc_trk_cid="+Wb+";dc_dbm_token="+Z+";ord="+Gp+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+vM+";dc_rui="+vM+";dc_exteid="+Am+";dc_av="+O9+";dc_sk="+vM+";dc_ctype="+x9+";dc_ref=http://www.youtube.com/video/"+Xc+";dc_pubid="+vM+";dc_btype=23?gclid="+US+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+vM+"&ns="+vM+"&event="+vM+"&device="+vM+"&content_v="+z+"&el="+SK+"&ei="+C+"&devicever="+G+"&bti="+jo+"&format="+zu+"&break_type="+vM+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+vM+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+qe+"&slot_pos="+vM+"&slot_len="+vM+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+IM+"&ad_len="+DH+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Xc+"&aqi="+C+"&ad_rmp="+vM+"&sli="+vM}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+
";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+zu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+jo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&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"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&ctype="+O9+"&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"+
J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_engaged_view&ctype="+O9+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+zu+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Wb+";dc_trk_cid="+Wb+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+vM+";ord="+Wb+";dc_rui="+vM+";dc_exteid="+Gu+";dc_av="+vM+";dc_sk="+vM+";dc_ctype="+x9+";dc_pubid="+vM+";dc_btype=3?gclid="+US+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+SA+"&ad_cpn=[AD_CPN]&id="+pL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pL+"&dc_pubid="+vM+"&dc_exteid="+Am+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+SA+"&ad_cpn=[AD_CPN]&id="+pL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+vM},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pL+"&avm="+vM+"&dc_pubid="+vM+"&dc_exteid="+
Am+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&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="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
t+"&sig="+SA+"&ad_cpn=[AD_CPN]&id="+pL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+vM},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pL+"&dc_pubid="+vM+"&dc_exteid="+Am+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+zu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+zu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:c8,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+
O9+"&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/"+z+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Ws+"="},trackingParams:Ws+
"=",templatedCountdown:{templatedAdText:{text:Xc,isTemplated:!0,trackingParams:Ws+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:pL,isTemplated:!1,trackingParams:Ws+"="},trackingParams:Ws+"="}},trackingParams:Ws+"=",skipOffsetMilliseconds:5E3}},trackingParams:Ws+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:MB},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ws+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:SK,isTemplated:!1,trackingParams:Ws+"="},trackingParams:Ws+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:pS,isTemplated:!0,trackingParams:Ws+"="}},trackingParams:Ws+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:c8,openPopupAction:{popup:{aboutThisAdRenderer:{url:(s_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+wN+"&origin=www.youtube.com&ata_theme="+ch,s_),trackingParams:Ws+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Ws+"="}},hoverText:{runs:[{text:Gm}]},trackingParams:Ws+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+e0+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ws+"="},headline:{text:ch,isTemplated:!1,trackingParams:Ws+"="},description:{text:zp,
trackingParams:Ws+"="},actionButton:{buttonRenderer:{text:{simpleText:vY},navigationEndpoint:{clickTrackingParams:c8,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Wb+";dc_trk_cid="+Wb+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+vM+";ord="+Wb+";dc_rui="+vM+";dc_exteid="+Am+";dc_av="+vM+";dc_sk="+vM+";dc_ctype="+x9+";dc_pubid="+vM+";dc_btype=3?gclid="+US+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ws+"="}},startMs:vM,trackingParams:Ws+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:SK},elementId:TY}},elementId:er,trackingParams:Ws+"=",legacyInfoCardVastExtension:pS,sodarExtensionData:{siub:vY,bgub:SK,scs:xR,bgp:ms},externalVideoId:Xc,adLayoutLoggingData:{serializedAdServingDataEntry:Gm},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+e0+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ws+"="},
headline:{text:pL,isTemplated:!1,trackingParams:Ws+"="},description:{text:xR,isTemplated:!1,trackingParams:Ws+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:TY},navigationEndpoint:{clickTrackingParams:c8,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Wb+";dc_trk_cid="+Wb+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+vM+";ord="+Wb+";dc_rui="+vM+";dc_exteid="+
Am+";dc_av="+vM+";dc_sk="+vM+";dc_ctype="+x9+";dc_pubid="+vM+";dc_btype=3?gclid="+US+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+
vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ws+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Ws+"="}},navigationEndpoint:{clickTrackingParams:c8,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Wb+";dc_trk_cid="+
Wb+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+vM+";ord="+Wb+";dc_rui="+vM+";dc_exteid="+Am+";dc_av="+vM+";dc_sk="+vM+";dc_ctype="+x9+";dc_pubid="+vM+";dc_btype=3?gclid="+US+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+
n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ws+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Ws+"="},abandonCommands:{commands:[{clickTrackingParams:c8,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&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="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+
vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:c8,commandExecutorCommand:{commands:[{clickTrackingParams:c8,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:ch,isTemplated:!1,trackingParams:Ws+
"="},trackingParams:Ws+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ms},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+jo+";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="+Wb+";dc_trk_cid="+Wb+";ord="+Gp+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+vM+";dc_rui="+vM+";dc_exteid="+Am+";dc_av="+O9+";dc_sk="+vM+";dc_ctype="+x9+";dc_ref=http://www.youtube.com/video/"+Xc+";dc_pubid="+vM+";dc_btype=23?gclid="+US+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+vM+"&ns="+vM+"&event="+vM+"&device="+vM+"&content_v="+z+"&el="+SK+"&ei="+C+"&devicever="+G+"&bti="+jo+"&format="+zu+"&break_type="+vM+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+vM+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+qe+"&slot_pos="+vM+"&slot_len="+vM+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
IM+"&ad_len="+DH+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Xc+"&aqi="+C+"&ad_rmp="+vM+"&sli="+vM}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+zu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+
P+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+jo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&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"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&ctype="+O9+"&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"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_engaged_view&ctype="+O9+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+zu+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+SA+"&ad_cpn=[AD_CPN]&id="+
pL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pL+"&dc_pubid="+vM+"&dc_exteid="+Am+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+
"&sig="+SA+"&ad_cpn=[AD_CPN]&id="+pL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+vM},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pL+"&avm="+vM+"&dc_pubid="+vM+"&dc_exteid="+Am+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&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="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+SA+"&ad_cpn=[AD_CPN]&id="+pL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+vM},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+pL+"&dc_pubid="+vM+"&dc_exteid="+Am+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+zu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+zu+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+
O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&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/"+z+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Ws+"="},trackingParams:Ws+"=",templatedCountdown:{templatedAdText:{text:xR,isTemplated:!0,trackingParams:Ws+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:zp,isTemplated:!1,trackingParams:Ws+"="},trackingParams:Ws+"="}},
trackingParams:Ws+"=",skipOffsetMilliseconds:5E3}},trackingParams:Ws+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:ls},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ws+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:ls,isTemplated:!1,trackingParams:Ws+"="},trackingParams:Ws+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:TY,
isTemplated:!0,trackingParams:Ws+"="}},trackingParams:Ws+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:c8,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ya.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+wN+"&origin=www.youtube.com&ata_theme="+ch,Ya),trackingParams:Ws+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Ws+"="}},hoverText:{runs:[{text:ch}]},trackingParams:Ws+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+xO+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ws+"="},headline:{text:er,isTemplated:!1,trackingParams:Ws+"="},description:{text:SK,trackingParams:Ws+"="},actionButton:{buttonRenderer:{text:{simpleText:MB},navigationEndpoint:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ws+"="}},startMs:vM,trackingParams:Ws+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ch},elementId:v4}},elementId:pS,trackingParams:Ws+"=",legacyInfoCardVastExtension:TY,sodarExtensionData:{siub:xR,bgub:pL,scs:SK,bgp:pS},externalVideoId:Xc,adLayoutLoggingData:{serializedAdServingDataEntry:vY},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+xO+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Ws+"="},headline:{text:vY,
isTemplated:!1,trackingParams:Ws+"="},description:{text:SK,isTemplated:!1,trackingParams:Ws+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:er},navigationEndpoint:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ws+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Ws+"="}},navigationEndpoint:{clickTrackingParams:c8,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+
vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ws+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Ws+"="},abandonCommands:{commands:[{clickTrackingParams:c8,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&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="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+x9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:c8,commandExecutorCommand:{commands:[{clickTrackingParams:c8,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Xc,isTemplated:!1,trackingParams:Ws+"="},trackingParams:Ws+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:vY},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+vM+";dc_exteid="+Am+";met="+vM+";ecn"+vM+"="+vM+";etm1="+vM+";eid1="+
jo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:v4}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ls}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:DH,offsetEndMilliseconds:zu},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+x9+"&token=ALHj"+d+"&index="+vM+"&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="+G+"&m_pos_ms="+DH}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Xc}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:zu,offsetEndMilliseconds:zu},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+O9+"&token=ALHj"+d+"&index="+vM+"&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="+
G+"&m_pos_ms="+zu}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:zu,offsetEndMilliseconds:zu},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+O9+"&token=ALHj"+d+"&index="+vM+"&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="+
G+"&m_pos_ms="+zu}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vY}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:zu,offsetEndMilliseconds:zu},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+O9+"&token=ALHj"+d+"&index="+vM+"&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="+
G+"&m_pos_ms="+zu}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vY}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:zu,offsetEndMilliseconds:x9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+O9+"&token=ALHj"+d+"&index="+vM+"&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="+
G+"&m_pos_ms="+zu}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:x9,offsetEndMilliseconds:x9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+C+"&m_pos="+x9+"&token=ALHj"+d+"&index="+vM+"&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="+
G+"&m_pos_ms="+x9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:MB}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ch,isTemplated:!1,trackingParams:Ws+"="},description:{text:Sj,isTemplated:!1,trackingParams:Ws+"="},actionButton:{buttonRenderer:{text:{simpleText:er},navigationEndpoint:{clickTrackingParams:c8,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
Wb+";dc_trk_cid="+Wb+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+vM+";ord="+Wb+";dc_rui="+vM+";dc_exteid="+Am+";dc_av="+vM+";dc_sk="+vM+";dc_ctype="+x9+";dc_pubid="+vM+";dc_btype=3?gclid="+US+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ws+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+e0+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Ws+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+XI+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ws+"="},navigationEndpoint:{clickTrackingParams:c8,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Wb+";dc_trk_cid="+Wb+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+vM+";ord="+Wb+
";dc_rui="+vM+";dc_exteid="+Am+";dc_av="+vM+";dc_sk="+vM+";dc_ctype="+x9+";dc_pubid="+vM+";dc_btype=3?gclid="+US+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ws+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:c8,openPopupAction:{popup:{aboutThisAdRenderer:{url:(FJ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+wN+"&origin=www.youtube.com&ata_theme="+ch,FJ),trackingParams:Ws+"="}},popupType:"DIALOG"}},trackingParams:Ws+"="}},hoverText:{runs:[{text:ls}]},trackingParams:Ws+"="}},adVideoId:Xc,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:zp},associatedCompositePlayerBytesLayoutId:ms}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:pS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ms,isTemplated:!1,trackingParams:Ws+"="},description:{text:ly,isTemplated:!1,trackingParams:Ws+"="},actionButton:{buttonRenderer:{text:{simpleText:v4},navigationEndpoint:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+
n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ws+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+xO+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Ws+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bh+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ws+"="},navigationEndpoint:{clickTrackingParams:c8,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+
vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ws+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:c8,openPopupAction:{popup:{aboutThisAdRenderer:{url:(gR.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+wN+"&origin=www.youtube.com&ata_theme="+ch,gR),trackingParams:Ws+"="}},popupType:"DIALOG"}},trackingParams:Ws+"="}},
hoverText:{runs:[{text:SK}]},trackingParams:Ws+"="}},adVideoId:Xc,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+Xc+"&cid="+P+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:pS},associatedCompositePlayerBytesLayoutId:ms}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Gm}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Sj,
isTemplated:!1,trackingParams:Ws+"="},description:{text:TY,isTemplated:!1,trackingParams:Ws+"="},actionButton:{buttonRenderer:{text:{simpleText:ch},navigationEndpoint:{clickTrackingParams:c8,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Wb+";dc_trk_cid="+Wb+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+vM+";ord="+Wb+";dc_rui="+vM+";dc_exteid="+Am+";dc_av="+vM+";dc_sk="+vM+";dc_ctype="+
x9+";dc_pubid="+vM+";dc_btype=3?gclid="+US+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+
w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Ws+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+e0+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Ws+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+XI+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Ws+
"="},navigationEndpoint:{clickTrackingParams:c8,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+Wb+";dc_trk_cid="+Wb+";dc_dbm_token="+Z+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+vM+";ord="+Wb+";dc_rui="+vM+";dc_exteid="+Am+";dc_av="+vM+";dc_sk="+vM+";dc_ctype="+x9+";dc_pubid="+vM+";dc_btype=3?gclid="+US+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+J+"____________"+n+"AxAA&ase=2&num="+vM+"&cid="+P+"&ad_cpn=%5BAD_CPN%5D&sig="+w+"&adurl="+$h+"&label=video_click_to_advertiser_site&ctype="+O9+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Ws+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:c8,openPopupAction:{popup:{aboutThisAdRenderer:{url:(I1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+wN+"&origin=www.youtube.com&ata_theme="+ch,I1),trackingParams:Ws+"="}},popupType:"DIALOG"}},trackingParams:Ws+
"="}},hoverText:{runs:[{text:MB}]},trackingParams:Ws+"="}},adVideoId:Xc,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+J+"____________"+n+"AxAA&sigh="+z+"&cid="+P+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:zp},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:ms}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pS}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:E9,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:E9,command:{innertubeCommand:{clickTrackingParams:c8,ypcGetOfflineUpsellEndpoint:{params:Js}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Ws+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Gp,nanos:vb}}}},r$s=JSON.stringify(p2),Sz=performance.now()-O;return{objectRepresentation:p2,jsonRepresentation:r$s,generationTime:Sz}};
COf=function(O,m){if(O===m)return!0;if(!O||!m||typeof O!==typeof m)return!1;if(O instanceof Array&&m instanceof Array){if(O.length!==m.length)return!1;for(var G=0;G<O.length;G++)if(!COf(O[G],m[G]))return!1;return!0}if(typeof O==="object"&&typeof m==="object"&&O&&m){for(G in O)if(!(G in m&&COf(O[G],m[G])))return!1;for(var B in m)if(!(B in O))return!1;return!0}return!1};
_.WX=function(){if(!tV){tV=new bj(new okO);var O=_.Rd("client_streamz_web_flush_count",-1);O!==-1&&(tV.invocationLimit=O)}return tV};
Zk=function(O,m,G,B){if(O===m)return!0;if(Array.isArray(O)&&Array.isArray(m)){if(O.length!==m.length)return!1;for(var Q=0;Q<O.length;Q++)if(!Zk(O[Q],m[Q],G,B))return!1;return!0}if(O instanceof Set||m instanceof Set){if(O instanceof Set&&m instanceof Set){if(O.size!==m.size)return!1;B=_.K(O.values());for(Q=B.next();!Q.done;Q=B.next())if(!m.has(Q.value))return!1;return!0}return!1}if(O instanceof Function){if(B)return!0;O.name===""&&_.oy(Error("Nf"),"ERROR");return!1}if(O instanceof Date&&m instanceof
Date)return O.getTime()===m.getTime();if(O instanceof Object&&m instanceof Object){if(lcN(O)&&lcN(m))try{return O.equals(m)}catch(M){_.oy(Error("Of`"+M),"ERROR")}Q=Object.getOwnPropertyNames(O).filter(function(M){return G?O[M]!==void 0:!0});
var H=Object.getOwnPropertyNames(m).filter(function(M){return G?m[M]!==void 0:!0});
if(Q.length!==H.length)return!1;Q=_.K(Q);for(H=Q.next();!H.done;H=Q.next())if(H=H.value,!Zk(O[H],m[H],G,B))return!1;return!0}return!1};
lcN=function(O){O=Object.getPrototypeOf(O).equals;return O instanceof Function&&O.length===1};
_.ynN=function(){return _.r(function(O){if(O.nextAddress==1)return ace!==2?O.jumpTo(2):O.yield(kR5(),3);O.nextAddress!=2&&(ace=O.yieldResult);return O.return(ace)})};
_.dd5=function(){return _.r(function(O){if(O.nextAddress==1)return _.V("ab_pl_man")?cnO!==2?O.jumpTo(2):O.yield(YLf(),3):O.return(1);O.nextAddress!=2&&(cnO=O.yieldResult);return O.return(cnO)})};
Dd5=function(){return _.r(function(O){if(O.nextAddress==1)return _.V("ab_fk_sk_cl")?wTs!==2?O.jumpTo(2):O.yield(eHI(),3):O.return(1);O.nextAddress!=2&&(wTs=O.yieldResult);return O.return(wTs)})};
_.PON=function(){return _.r(function(O){if(O.nextAddress==1)return _.V("ab_det_apb_b")?s4N!==2?O.jumpTo(2):O.yield(Nt6(),3):O.return(1);O.nextAddress!=2&&(s4N=O.yieldResult);return O.return(s4N)})};
OWN=function(){var O;return _.r(function(m){if(m.nextAddress==1)return m.yield(Promise.all([_.ynN(),_.PON(),_.dd5(),Dd5()]),2);if(m.nextAddress!=3)return FTN()?m.return(!0):m.yield(_.Anf(),3);O=m.yieldResult;return m.return(O===0)})};
FTN=function(){var O=!1,m=function(G,B){mK6.increment(B,G);G===0&&(O=!0)};
m(_.Gjp(),"j.s_");m(ace,"f.i_");m(s4N,"a.b_");m(cnO,"p.m_");m(wTs,"i.f_");Bmf===2&&(Bmf=_.QrI(HWN));m(Bmf,"e.h_");_.V("ks_det_gpbl")||m(_.vmz(),"p.i_");_.V("ks_get_o_pp")||m(_.KFN(),"g.o_");_.V("ab_deg_unex_thr")||m(_.$KO(),"a.o_");m(MQS,"s.t_");_.V("ab_det_sc_inj_enf")&&m(_.rh6(),"s.i_");m(RLN,"d.p_");m(_.iW5(_.zL),"o.p_");m(_.xKp()===0?0:_.qHp(),"o.a_");return _.V("debug_sk_em_precheck")?!0:O};
tQz=function(){var O=[].concat(_.lS(UKs));try{var m=LTY();O.push({jsonRepresentation:m.jsonRepresentation,objectRepresentation:m.objectRepresentation})}catch(G){O=[].concat(_.lS(UKs))}return O};
WF5=function(){var O=["adPlacements","adSlots"];try{return O.filter(function(){return!0}).length!==O.length?0:1}catch(m){return 0}};
_.KFN=function(){if(WF5()===0)return 0;var O=LTY(),m=O.objectRepresentation,G=(0,_.aM.unsafeClone)(m),B=[];if(m&&typeof m==="object")for(var Q in m)B.push(Q);else return 4;O=O.objectRepresentation.adPlacements;if(!(O&&O.length>0))return 4;try{if(!COf(B,Object.getOwnPropertyNames(m)))return 0}catch(H){return 0}return COf(G,m)?1:0};
_.iW5=function(O){if(!O||!O.length||typeof O==="string")return 0;for(var m=Object.getOwnPropertyNames(Object.prototype),G=0;G<O.length;G++)for(var B=_.iu(O[G]),Q=_.K(m),H=Q.next();!H.done;H=Q.next())if(B===H.value)return 0;return 1};
ZW5=function(O){var m=_.iu(O[1]);if(O[0]===null)return m;O=O[0];for(var G={},B=0;B<O.length;B++){var Q=_.iu(O[B]);if(B===0)G[Q]=m;else{var H={};H[Q]=G;G=H}}return G};
_.xKp=function(){for(var O=_.JV,m=0;m<O.length;m++){var G=ZW5(O[m]),B=[];B.push(G);if(B.length===0)return 0}return 1};
_.qHp=function(){for(var O=_.JV,m={},G=0;G<O.length;m={mqa:void 0},G++){var B=[ZW5(O[G])];m.mqa=[];B.forEach(function(Q){return function(H){Q.mqa[Q.mqa.length]=H}}(m));
if(m.mqa.length===0)return 0}return 1};
_.Gjp=function(){for(var O=_.K(tQz()),m=O.next();!m.done;m=O.next()){var G=m.value;m=G.jsonRepresentation;G=G.objectRepresentation;try{var B=JSON.parse(m);if(!Zk(B,G,!1,!1))return 0}catch(Q){return 0}}return 1};
_.rh6=function(){try{var O=_.Ue("ab_det_sc_inj_val");O.length===1&&O[0]===""&&(O=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var m=document.querySelectorAll("script"),G=_.K(m),B=G.next();!B.done;B=G.next())for(var Q=B.value,H=_.K(O),M=H.next();!M.done;M=H.next()){var R=M.value;m=void 0;if((m=Q.textContent)==null?0:m.includes(R))return 0}}catch(x){return 4}return 1};
_.Anf=function(){var O,m,G,B,Q,H,M;return _.r(function(R){switch(R.nextAddress){case 1:_.n_(R,2),O=_.K(UKs),m=O.next();case 4:if(m.done)return R.return(1);B=G=m.value;Q=B.jsonRepresentation;H=B.objectRepresentation;return R.yield((new Response(Q,{status:200})).json(),7);case 7:M=R.yieldResult;if(!Zk(M,H,!1,!1))return R.return(0);m=O.next();R.jumpTo(4);break;case 2:return _.uS(R),R.return(4)}})};
_.$KO=function(){try{btoa("abc")}catch(O){return 0}return 1};
kR5=function(){var O,m,G,B,Q,H,M,R,x,t,W;return _.r(function(Z){switch(Z.nextAddress){case 1:_.n_(Z,2),O=_.K(tQz()),m=O.next();case 4:if(m.done)return Z.return(1);B=G=m.value;Q=B.jsonRepresentation;H=B.objectRepresentation;M=btoa(Q);R="data:application/json;base64,"+M;x=new Request(R);Object.defineProperty(x,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(x,"method",{get:function(){return"POST"}});
Object.defineProperty(x,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(x,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(x,"body",{get:function(){return new ReadableStream}});
return Z.yield(fetch(x),7);case 7:return t=Z.yieldResult,Z.yield(t.json(),8);case 8:W=Z.yieldResult;if(!Zk(W,H,!1,!1))return Z.return(0);m=O.next();Z.jumpTo(4);break;case 2:return _.uS(Z),Z.return(4)}})};
_.QrI=function(O){if(!O||!O.length||typeof O==="string")return 0;for(var m=function(Q){return _.iu(Q)},G=2,B=0;B<O.length&&(G=_.zLM(_.SLf(O[B],m)),G!==0);B++);
return G};
_.zLM=function(O){var m=_.K(O);O=m.next().value;m=m.next().value;try{var G=document.createElement("div");document.body.appendChild(G);var B=getComputedStyle(G).display;document.body.removeChild(G);if(B==="none")return 4;var Q=getComputedStyle(m).display==="none"?0:1;document.body.removeChild(O);return Q}catch(H){return 4}};
eHI=function(){var O,m,G;return _.r(function(B){O=new _.Vg;m=document.createElement("button");m.classList.add("ytp-ad-skip-button");m.style.opacity="0";m.style.height="0px";m.style.width="0px";m.style.padding="0px";m.style.border="none";G=function(){m.parentElement&&m.parentElement.removeChild(m)};
m.onclick=function(){O.resolve(0);G()};
document.body.appendChild(m);setTimeout(function(){G();O.resolve(1)},50);
return B.return(O.promise)})};
YLf=function(){var O,m,G,B,Q,H,M;return _.r(function(R){O=new _.Vg;m=document.createElement("ytd-player");try{document.body.prepend(m)}catch(x){return R.return(4)}G=function(){m.parentElement&&m.parentElement.removeChild(m)};
m.getElementsByTagName("div").length>0?B=m.getElementsByTagName("div")[0]:(B=document.createElement("div"),m.appendChild(B));Q=document.createElement("div");B.appendChild(Q);H=document.createElement("video");M=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"});H.src=_.an(_.w5(M));H.ontimeupdate=function(){G();O.resolve(0)};
Q.appendChild(H);H.classList.add("html5-main-video");setTimeout(function(){Q.classList.add("ad-interrupting")},200);
setTimeout(function(){G();O.resolve(1)},5E3);
return R.return(O.promise)})};
JhN=function(O){var m=LTY().objectRepresentation.playbackTracking;if(m){var G=[],B;G.push(m==null?void 0:(B=m.videostatsPlaybackUrl)==null?void 0:B.baseUrl);var Q;G.push(m==null?void 0:(Q=m.videostatsDelayplayUrl)==null?void 0:Q.baseUrl);var H;G.push(m==null?void 0:(H=m.videostatsWatchtimeUrl)==null?void 0:H.baseUrl);var M;G.push(m==null?void 0:(M=m.ptrackingUrl)==null?void 0:M.baseUrl);var R;G.push(m==null?void 0:(R=m.qoeUrl)==null?void 0:R.baseUrl);var x;G.push(m==null?void 0:(x=m.atrUrl)==null?
void 0:x.baseUrl);m=_.K(G);for(G=m.next();!G.done;G=m.next())if((G=G.value)&&O.test(G))return G.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
VQM=function(O,m){var G,B;return _.r(function(Q){switch(Q.nextAddress){case 1:G=[],B=0;case 2:if(!(B<3)){Q.jumpTo(4);break}return Q.yield(fetch(O,{cache:"no-store",method:m}).then(function(H){G.push(H.status)}).catch(function(){G.push(-1)}),3);
case 3:B++;Q.jumpTo(2);break;case 4:return Q.return(G)}})};
bWM=function(O){return O.domainLookupStart===0&&O.domainLookupEnd===0&&O.connectStart===0&&O.connectEnd===0};
nmI=function(O,m,G){G=G===void 0?"GET":G;var B,Q,H,M,R,x,t,W,Z,z;return _.r(function(J){if(J.nextAddress==1)return J.yield(Promise.all([VQM(O,G),VQM(m,G)]),2);B=J.yieldResult;Q=_.K(B);H=Q.next().value;M=Q.next().value;R=H;x=M;if(Math.min.apply(Math,_.lS(x))!==Math.max.apply(Math,_.lS(x))||Math.min.apply(Math,_.lS(R))!==Math.max.apply(Math,_.lS(R)))return J.return(2);if(Math.min.apply(Math,_.lS(x))===Math.min.apply(Math,_.lS(R)))return J.return(1);W=(t=performance.getEntriesByName(O))==null?void 0:
t[0];z=(Z=performance.getEntriesByName(m))==null?void 0:Z[0];return W&&z?bWM(z)?J.return(1):bWM(W)?J.return(0):J.return(1):J.return(2)})};
Nt6=function(){var O;return _.r(function(m){var G=[];var B;var Q,H,M;(Q=B=(Q=LTY().objectRepresentation.streamingData)==null?void 0:(H=Q.formats)==null?void 0:(M=H[0])==null?void 0:M.url)&&Q&&!B.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(Q=Q.replace("initcwndbps","ctier=L&initcwndbps"),Q=Q.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),B={testUrl:Q,baseUrl:B,method:"GET"}):B=void 0;B&&G.push(B);_.V("ab_net_tp_e")&&G.push({testUrl:_.Qf.location.origin+"/ad_companion",baseUrl:_.Qf.location.origin+
"/generate_204",method:"OPTIONS"});_.V("ab_fix_creator_view_cnt")&&(G.length=0,(B=JhN(/api\/stats\/atr/))&&G.push({testUrl:_.Qf.location.origin+B,baseUrl:_.Qf.location.origin+"/generate_204",method:"OPTIONS"}));_.V("ad_net_pb_pbp")&&(B=JhN(/api\/stats\/qoe/))&&G.push({testUrl:_.Qf.location.origin+B,baseUrl:_.Qf.location.origin+"/feed/download",method:"GET"});G=G.length!==0?G[Math.floor(Math.random()*G.length)]:void 0;return(O=G)?m.return(nmI(O.testUrl,O.baseUrl,O.method)):m.return(4)})};
_.vmz=function(){if(_.Qf.ifi===void 0||_.Qf.ifi===null||typeof _.Qf.ifi!=="function")return 2;try{return _.Qf.ifi()===!0?0:1}catch(O){return 0}};
XL5=function(O){switch(O){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.d8(O,"unknown result type")}};
_.f2f=function(O,m){var G=Number(_.kB("CATSTAT",0));if(m.lcI===void 0)return G;m=m.lcI;O=XL5(O);return G&~(3<<m)|O<<m};
hLM=function(O){var m,G;if((O=(m=O.auxiliaryUi)==null?void 0:(G=m.messageRenderers)==null?void 0:G.bkaEnforcementMessageViewModel)&&O.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return O};
gmO=function(){for(var O=_.K(Object.values(_.TmN)),m=O.next();!m.done;m=O.next())m=m.value,m.isAsync&&m.lcI&&_.a8("CATSTAT",_.f2f(2,m))};
_.ff=function(O,m){O=_.bu("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",O);(m===void 0?0:m)?_.u$N(O,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.nf(_.Xs(),O,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
I2M=function(){if(!jrO){if(Polymer.Base){var O=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{O.apply(this,arguments)}catch(Z){_.di(Z)}};
var m=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{m.apply(this,arguments)}catch(Z){_.di(Z)}};
var G=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{G.apply(this,arguments)}catch(Z){_.di(Z)}};
var B=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{B.apply(this,arguments)}catch(Z){_.di(Z)}};
var Q=Polymer.Base._listen,H=new WeakMap;Polymer.Base._listen=function(Z,z,J){var n=function(){try{J.apply(this,arguments)}catch(I){_.di(I)}};
H.set(J,n);Q.call(this,Z,z,n)};
var M=Polymer.Base._unlisten;Polymer.Base._unlisten=function(Z,z,J){M.call(this,Z,z,H.get(J))}}if(Polymer.Async){var R=Polymer.Async,x=R._atEndOfMicrotask;
R._atEndOfMicrotask=function(){try{x.apply(R,arguments)}catch(Z){_.di(Z)}}}if(Polymer.RenderStatus){var t=Polymer.RenderStatus,W=t.afterNextRender;
t.afterNextRender=function(Z,z,J){W.call(t,Z,function(){try{z.apply(this,arguments)}catch(n){_.di(n)}},J)}}jrO=!0}};
_.SHp=function(O){var m=O?_.JE(O):"";if(m){if(m.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(m.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(m.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(m.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(m.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.V("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(m.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";m=m.toLowerCase();if(m==="/")return"home";if(m==="/channel_memberships")return"channel-memberships-shopfront";if(m.indexOf("/feed/trending")===0)return"trending";if(m.indexOf("/feed/explore")===0)return"explore";if(m.indexOf("/live")===0)return"live";if(m.indexOf("/results")===0)return"search";if(m.indexOf("/sports")===0)return"sports";if(m.indexOf("/fashion")===0||m.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(m))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(m))return _.V("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(m.indexOf("/channel/")===0||m.indexOf("/user/")===0||m.indexOf("/gaming")===0||m.indexOf("/post/")===0)return"channel";if(pLf(O))return"show";if(m==="/playlist"||m.indexOf("/playlist/")===0||m==="/view_play_list"||m.indexOf("/view_play_list/")===0||m.indexOf("/show/")===0)return"playlist";if(m==="/feed/companion_canvas")return"companion-canvas";if(m==="/feed/history"||
m.indexOf("/feed/history/")===0)return"history";if(m==="/new")return"labs";if(m==="/feed/subscriptions")return"subscriptions";if(m.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(m==="/history_controls")return"standalone";if(m.indexOf("/account")===0||m==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(m.indexOf("/paid_memberships")===0||m.indexOf("/refund")===0||m.indexOf("/purchases")===0||m.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(m.indexOf("/product")===
0)return"yts-products";if(m.indexOf("/premium")===0||m.indexOf("/musicpremium")===0)return m.indexOf("/premium/offers")===0||m.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(m==="/cart/checkout"||m==="/cart")return"ypc-checkout";if(m.indexOf("/feed/downloads")===0||m.indexOf("/redeem")===0||m.indexOf("/reporthistory")===0)return"browse";if(m.indexOf("/hashtag")===0)return"hashtag-landing-page";if(m.indexOf("/handle")===0)return"handle";if(m.indexOf("/source")===0)return"audio-pivot";if(m.search(RegExp("^/playables/(?!saved)."))===
0)return"mini_app";if(m.indexOf("/playables")===0)return"playables";if(m.indexOf("/create/live/join")===0)return"open-in-app";if(m.indexOf("/shorts")===0)return"shorts";if(m.indexOf("/feed/channels")===0)return"subscriptions-channels";(m=O?_.JE(O):"")&&m.indexOf("/watch")===0&&_.V("web_watch_enable_learning_journey")?(O=_.Fq(O),O=!!O.list&&O.list.indexOf("LJPP")===0):O=!1;if(O)return"learning_journey_watch"}};
_.TL=function(O){var m,G;(O=(G=_.b(O==null?void 0:O.commandMetadata,_.bP))==null?void 0:G.url)&&(m=_.SHp(O));return m};
pLf=function(O){var m=O?_.JE(O):"";if(!m)return!1;m=m.toLowerCase();return m.indexOf("/show/")===0||m.indexOf("/playlist")===0&&(O=_.Fq(O),O.list&&O.list.indexOf("EL")===0)?!0:!1};
jw=function(O){var m="unknown",G;var B=((G=_.b(O==null?void 0:O.commandMetadata,_.bP))==null?void 0:G.webPageType)||"";B?(G=B.toLowerCase(),G.startsWith("web_page_type_")&&(G=G.slice(14))):G=B;G&&Ems[G.toUpperCase()]?m=Ems[G.toUpperCase()]:_.b(O,_.gH)||_.b(O,LFp)?m="browse":_.b(O,_.uu)?m="search":_.b(O,_.GC)&&(m="watch");m==="watch"&&_.TL(O||null)==="learning_journey_watch"&&(m="learning_journey_watch");m==="unknown"&&_.ay(Error("Qf`"+JSON.stringify({clickTrackingParams:O==null?void 0:O.clickTrackingParams,
commandMetadata:O==null?void 0:O.commandMetadata,allEndpointKeys:Object.keys(O||[])})));return m};
_.Ih=function(O){if(!_.Cp6||O)_.Cp6=_.TP();return _.Cp6};
_.om6=function(O){return!!_.b(O,_.GC)||!!_.b(O,_.pf)&&_.V("kevlar_enable_shorts_prefetch")};
_.l2f=function(O,m){O=_.b(O,_.GC)||_.b(O,_.pf);return"v"+O.videoId+(O.playlistId?"-pl"+O.playlistId:"")+(m?"-an1":"")+(O.params?"-pr"+O.params:"")};
Sw=function(O){return function(){return new O}};
EK=function(O){var m=_.KR();return function(){return m.resolve(O)}};
kj6=function(O){var m=_.Rd("web_pbj_log_warning_rate",0);m=m>0&&Math.random()<m;if(!_.b(O,_.pf))return m&&_.ay(Error("Tf")),!1;var G;return _.V("shorts_controller_retrieve_seedless_sequence_v2")&&((G=_.b(O,_.pf))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:a2O(O)?!0:(m&&_.ay(Error("Uf")),!1)};
a2O=function(O){var m=(_.b(O,_.GC)||_.b(O,_.pf)).videoId;if(!m||!yhz.test(m))return!1;var G;return(O=(G=_.b(O.commandMetadata,_.bP))==null?void 0:G.url)&&(O.includes(m)||O.startsWith("/clip"))?!0:!1};
_.YHp=function(){var O=_.TC();return O.getFlag(192)?O.getFlag(190):!(_.V("web_watch_cinematics_disabled_by_default")||_.V("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&chz())};
_.Lf=function(O,m,G){var B={};B.currentUrl=m;B.vis=O.vis!==void 0?O.vis:0;B.splay=!1;m=_.TC();B.autoCaptionsDefaultOn=m.getFlag(66);m.getFlag(141)?m.getFlag(140)?B.autonavState="STATE_OFF":B.autonavState="STATE_ON":B.autonavState="STATE_NONE";B.html5Preference="HTML5_PREF_WANTS";isNaN(_.kB("STS"))||(B.signatureTimestamp=_.kB("STS"));O.autonav&&(B.autoplay=!0,B.autonav=!0);O.mutedAutoplay&&(B.autoplay=!0,B.mutedAutoplay=!0);O.inlinePlayback&&(B.autoplay=!0,B.autonav=!1,B.isInlineUnmutedPlayback=!!O.inlineUnmuted);
B.referer=G;B.lactMilliseconds=O.lact!==void 0?O.lact.toString():"-1";_.V("enable_unknown_lact_fix_on_html5")&&B.lactMilliseconds==="-1"&&_.ay(new _.j9("Unknown LACT is set in playbackContext.",{"lact in tempData":O.lact||"undefined",autonav:O.autonav||"undefined"}));O={};m.getFlag(194)&&(O.hasShownAmbientMode=!0);m.getFlag(192)&&(O.hasToggledOffAmbientMode=!0);_.YHp()&&(O.watchAmbientModeEnabled=!0);B.watchAmbientModeContext=O;return B};
dKY=function(O){var m={},G=O.pbis||0;G&&(m.playbackBeginsInSeconds=G);O.prefetch_reason&&O.prefetch_reason==="hc_pbis"&&(m.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return m};
_.oh=function(O){O=O===void 0?!1:O;var m=_.TC(),G="USER_INTERFACE_THEME_LIGHT";m.getFlag(165)?G="USER_INTERFACE_THEME_DARK":m.getFlag(174)?G="USER_INTERFACE_THEME_LIGHT":_.Cf()&&(G="USER_INTERFACE_THEME_DARK");return O?G:wLr()||G};
_.eLI=function(){return!_.V("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Cf=function(){return _.eLI()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.lu=function(){var O=_.TC();return _.eLI()&&!O.getFlag(165)&&!O.getFlag(174)};
wLr=function(){var O=O===void 0?window.location.href:O;if(_.V("kevlar_disable_theme_param"))return null;var m=_.JE(O);if(_.DKf(m))return"USER_INTERFACE_THEME_DARK";try{var G=_.Fq(O).theme;return srO.get(G)||null}catch(B){}return null};
_.DKf=function(O){return _.V("enable_dark_theme_only_on_shorts")?!(O==null||!O.startsWith("/shorts/")):!1};
_.FFp=function(O,m,G,B,Q){m=m===void 0?!1:m;G=G===void 0?!1:G;var H=_.kB("INNERTUBE_CONTEXT");if(!H)return _.oy(Error("Xf")),{};H=(0,_.aM.unsafeClone)(H);_.V("web_no_tracking_params_in_shell_killswitch")||delete H.clickTracking;H.client||(H.client={});var M=H.client;M.clientName==="MWEB"&&M.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(M.clientFormFactor=_.kB("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");M.screenWidthPoints=window.innerWidth;M.screenHeightPoints=window.innerHeight;M.screenPixelDensity=
Math.round(window.devicePixelRatio||1);M.screenDensityFloat=window.devicePixelRatio||1;M.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());M.userInterfaceTheme=_.oh();if(!m){var R=_.bsN();R&&(M.connectionType=R);_.V("web_log_effective_connection_type")&&(R=XqO())&&(H.client.effectiveConnectionType=R)}var x;if(_.V("web_log_memory_total_kbytes")&&((x=_.Qf.navigator)==null?0:x.deviceMemory)){var t;x=(t=_.Qf.navigator)==null?void 0:t.deviceMemory;H.client.memoryTotalKbytes=""+x*1E6}m&&B&&!_.V("web_it_context_set_original_url_ks")&&
(M.originalUrl=NmN(_.Qf.location.href,B).toString());_.V("web_gcf_hashes_innertube")&&(R=EHI())&&(t=R.coldConfigData,x=R.coldHashData,R=R.hotHashData,H.client.configInfo=H.client.configInfo||{},t&&(H.client.configInfo.coldConfigData=t),x&&(H.client.configInfo.coldHashData=x),R&&(H.client.configInfo.hotHashData=R));t=_.Fq(_.Qf.location.href);!_.V("web_populate_internal_geo_killswitch")&&t.internalcountrycode&&(M.internalGeo=t.internalcountrycode);!_.V("web_populate_client_screen_killswitch")&&Q&&(M.clientScreen=
Q);M.clientName==="MWEB"||M.clientName==="WEB"?(M.mainAppWebInfo||(M.mainAppWebInfo={}),M.mainAppWebInfo.graftUrl=B||_.Qf.location.href,_.V("kevlar_woffle")&&_.ah.instance&&(B=_.ah.instance,M.mainAppWebInfo.pwaInstallabilityStatus=!B.appInstalledEventFired&&B.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),M.mainAppWebInfo.webDisplayMode=haS(),M.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):M.clientName==="TVHTML5"&&
(!_.V("web_lr_app_quality_killswitch")&&(B=_.kB("LIVING_ROOM_APP_QUALITY"))&&(M.tvAppInfo=Object.assign(M.tvAppInfo||{},{appQuality:B})),B=_.kB("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(M.tvAppInfo=Object.assign(M.tvAppInfo||{},{certificationScope:B}));!_.V("web_populate_time_zone_itc_killswitch")&&(B=Jaz())&&(M.timeZone=B);(B=kCs())?M.experimentsToken=B:delete M.experimentsToken;M=yKe();B=_.Ppp();B=(0,_.aM.getValues)(B.tokenJars);H.request=Object.assign({},H.request,{internalExperimentFlags:M,consistencyTokenJars:B});
!_.V("web_prequest_context_killswitch")&&(M=_.kB("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(H.request.externalPrequestContext=M);B=_.TC();M=B.getFlag(58);B=B.get("gsml","");H.user=Object.assign({},H.user);M&&(H.user.enableSafetyMode=M);B&&(H.user.lockedSafetyMode=!0);_.V("warm_op_csn_cleanup")?G&&(m=_.yA())&&(H.clientScreenNonce=m):!m&&(m=_.yA())&&(H.clientScreenNonce=m);O&&(H.clickTracking={clickTrackingParams:O});if(O=_.ex("yt.mdx.remote.remoteClient_"))H.remoteClient=O;_.kH.getInstance().setLocationOnInnerTubeContext(H);
try{var W=F8r(),Z=W.bid;delete W.bid;H.adSignalsInfo={params:[],bid:Z};for(var z=_.K(Object.entries(W)),J=z.next();!J.done;J=z.next()){var n=_.K(J.value),I=n.next().value,S=n.next().value;W=I;Z=S;O=void 0;(O=H.adSignalsInfo.params)==null||O.push({key:W,value:""+Z})}var L,C;if(((L=H.client)==null?void 0:L.clientName)==="TVHTML5"||((C=H.client)==null?void 0:C.clientName)==="TVHTML5_UNPLUGGED"){var P=_.kB("INNERTUBE_CONTEXT");P.adSignalsInfo&&(H.adSignalsInfo.advertisingId=P.adSignalsInfo.advertisingId,
H.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",H.adSignalsInfo.limitAdTracking=P.adSignalsInfo.limitAdTracking)}}catch(w){_.oy(w)}return H};
_.cX=function(O,m,G){var B=G&&G>0?G:0;G=B?Date.now()+B*1E3:0;if((B=B?_.yg.getLocalStorage():_.yg.getSessionStorage())&&window.JSON){typeof m!=="string"&&(m=JSON.stringify(m,void 0));try{B.set(O,m,G)}catch(Q){B.remove(O)}}};
_.YH=function(O){var m=_.yg.getSessionStorage(),G=_.yg.getLocalStorage();if(!m&&!G||!window.JSON)return null;try{var B=m.get(O)}catch(Q){}if(typeof B!=="string")try{B=G.get(O)}catch(Q){}if(typeof B!=="string")return null;try{B=JSON.parse(B,void 0)}catch(Q){}return B};
_.dH=function(O){try{var m=_.yg.getSessionStorage(),G=_.yg.getLocalStorage();m&&m.remove(O);G&&G.remove(O)}catch(B){}};
_.Ahf=function(O){var m=new wH(_.kB("ONE_PICK_URL",""));m.urlParamMap_.set("hostId",O);(O=_.kB("GAPI_LOCALE"))&&m.urlParamMap_.set("hl",O);(O=_.kB("SESSION_INDEX"))&&m.urlParamMap_.set("authuser",O);(O=_.kB("DELEGATED_SESSION_ID"))&&m.urlParamMap_.set("groupId",O);return m};
mf5=function(){var O=_.KR(),m=O.resolve(_.ew);O=O.resolve(_.Dk);return new OxY(m,O)};
Bap=function(O){if(window.IntersectionObserver)return new GFe(O,400);throw new TypeError("dg");};
HxN=function(){var O=Hammer.TouchAction,m=O.prototype.preventDefaults;O.prototype.preventDefaults=function(G){var B=this.actions.indexOf("pan-down")>-1;if(!B)return m.call(this,G);if(!Q05){var Q=G.srcEvent;G=G.direction;var H;if((H=this.manager)==null?0:H.session.prevented)Q.preventDefault();else if(B&&G&Hammer.DIRECTION_DOWN)return this.preventSrc(Q)}}};
vUp=function(O){if(!O||O.size===0)return Hammer.DIRECTION_ALL;if(O.size===2){if(O.has("up")&&O.has("down"))return Hammer.DIRECTION_VERTICAL;if(O.has("right")&&O.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(O.size===1){if(O.has("up"))return Hammer.DIRECTION_UP;if(O.has("down"))return Hammer.DIRECTION_DOWN;if(O.has("right"))return Hammer.DIRECTION_RIGHT;if(O.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.$fz=function(){return KcI?Promise.resolve(KcI):new Promise(function(O,m){var G=self.indexedDB.open("swpushnotificationsdb");G.onerror=m;G.onsuccess=function(){var B=G.result;if(B.objectStoreNames.contains("swpushnotificationsstore"))KcI=B,O(KcI);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.$fz()};
G.onupgradeneeded=MCY})};
MCY=function(O){O=O.target.result;O.objectStoreNames.contains("swpushnotificationsstore")&&O.deleteObjectStore("swpushnotificationsstore");O.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
RuN=function(O){var m=rW5(),G;return _.r(function(B){switch(B.nextAddress){case 1:return _.n_(B,2),B.yield(O.match(m,{cacheName:"yt-appshell-assets"}),4);case 4:G=B.yieldResult;_.P7(B,3);break;case 2:_.uS(B);case 3:return B.return(G)}})};
rW5=function(){var O=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?ixN.registration.scope:xf5;O.endsWith("/")&&(O=O.slice(0,-1));return O+"/app_shell_home"};
q5p=function(O){O.map(function(m){return m.source}).join("|")};
_.UfM=function(O){return _.r(function(m){return m.return(RuN(O))})};
tCI=function(){var O=window.caches,m;return _.r(function(G){if(G.nextAddress==1)return G.yield(_.UfM(O),2);m=G.yieldResult;return G.return(!!m)})};
nUS=function(){_.r(function(O){if(O.nextAddress==1){if(WcN)return O.jumpTo(0);WcN=!0;if(_.V("enable_system_health_primes_monitoring"))return _.Zg(Zxf,3E4),zus(),O.return();if(!(Math.random()<_.Rd("web_system_health_fraction")))return O.jumpTo(0);JWp={heightPixels:screen.height,widthPixels:screen.width};sK&&!isNaN(sK.jsHeapSizeLimit)&&(JWp.memoryTotalKbytes=String(Math.round(sK.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(JWp.devicePixelRatio=window.devicePixelRatio);return O.yield(VCO(),4)}_.Zg(Zxf,
3E4);return O.yield(bx5(),0)})};
VCO=function(){return _.r(function(O){if(O.nextAddress==1)return NB.intersectionObserverPresent="IntersectionObserver"in window,NB.serviceWorkerPresent="serviceWorker"in navigator,NB.webSharePresent="share"in navigator,NB.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,NB.cacheStoragePresent="caches"in window,NB.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,NB.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
NB.webkitTemporaryStoragePresent="webkitTemporaryStorage"in PX&&PX.webkitTemporaryStorage&&"queryUsageAndQuota"in PX.webkitTemporaryStorage,NB.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",O.yield(OfN(),2);NB.indexedDbPresent=O.yieldResult;NB.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;NB.broadcastChannelPresent="BroadcastChannel"in window;NB.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(NB.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,NB.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.ju(O)})};
Zxf=function(){var O=9E4+Math.random()*2E3;_.MT()>O||(_.V("enable_system_health_primes_monitoring")?zus():bx5())};
bx5=function(){var O;return _.r(function(m){if(m.nextAddress==1)return m.yield(XoY(),2);O=m.yieldResult;_.LE("systemHealthCaptured",O);_.ju(m)})};
zus=function(){var O={metric:{}},m=fSp();m.networkEvents.length&&(O.metric.networkEvents=huS(m));_.LE("systemHealthCaptured",O)};
XoY=function(){var O,m,G,B,Q,H,M,R,x,t;return _.r(function(W){switch(W.nextAddress){case 1:O={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)};m=window.screen;_.V("enable_is_extended_monitoring")&&m&&"isExtended"in m&&(O.isExtended=!!m.isExtended);G={metric:{staticContext:JWp,dynamicContext:O,webMetric:Tas,webApiSupport:NB}};
if(B=_.yA())G.csn=B;sK&&(G.metric.webMetric.currentHeapKbytes=Math.round(sK.usedJSHeapSize/1E3));window.matchMedia&&(G.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,G.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,G.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in PX&&typeof PX.getBattery==="function")){W.jumpTo(2);break}return W.yield(PX.getBattery(),3);case 3:if(Q=
W.yieldResult)G.metric.dynamicContext.chargingStatus=Q.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(G.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(NB.storageEstimatePresent)return W.yield(navigator.storage.estimate(),8);if(!NB.webkitTemporaryStoragePresent){W.jumpTo(5);break}return W.yield(gUN(),7);case 7:H=W.yieldResult;W.jumpTo(5);break;case 8:H=W.yieldResult;case 5:return G.metric.dynamicContext.deviceStorageQuotaMbytes=((M=H)==null?0:M.quota)?String(Math.round(H.quota/
1048576/10)*10):"-1",G.metric.dynamicContext.deviceStorageUsageMbytes=((R=H)==null?0:R.usage)?String(Math.round(H.usage/1048576/10)*10):"-1",x=G.metric.dynamicContext,W.yield(tCI(),9);case 9:return x.hasAppShell=W.yieldResult,t=fSp(),t.networkEvents.length&&(G.metric.networkEvents=huS(t)),W.return(G)}})};
gUN=function(){return new Promise(function(O){var m;NB.webkitTemporaryStoragePresent&&(m=PX.webkitTemporaryStorage)!=null&&m.queryUsageAndQuota?PX.webkitTemporaryStorage.queryUsageAndQuota(function(G,B){O({usage:G,quota:B})}):O(void 0)})};
_.Fs=function(O){O&=16777215;O=[(O&16711680)>>16,(O&65280)>>8,O&255];return uOO(O[0],O[1],O[2])};
_.AV=function(O){O=[(O&16711680)>>>16,(O&65280)>>>8,O&255,(O&4278190080)>>>24];var m=_.j0s(O,function(G){return G==(G&255)});
O[3]=(O[3]/255).toFixed(3);if(!m)throw Error("eg`"+O.join(","));return"rgba("+O.join(",")+")"};
_.ISO=function(O){return[(O&16711680)>>>16,(O&65280)>>>8,O&255]};
_.pop=function(O){O=O.map(function(m){m/=255;return m<=.03928?m/12.92:Math.pow((m+.05)/1.05,2.4)});
return O[0]*.2126+O[1]*.7152+O[2]*.0722};
Oc=function(O,m){O=_.ISO(O);return"rgba("+O[0]+", "+O[1]+", "+O[2]+", "+m+")"};
_.S5O=function(){try{return!!self.localStorage}catch(O){return!1}};
oUf=function(){if(EU5())_.ay(Error("fg"));else{var O=document.createElement("iframe");O.style.display="none";var m=m===void 0?window.location.href:m;var G=_.aO(_.kB("PERSIST_IDENTITY_IFRAME_URL"));m=G?G:(new URL(m)).host.indexOf("studio")===0?_.WY(LcN,"persist_identity"):_.WY(C3N,"persist_identity");_.Qo6(O,1,m);O.id="persist_identity";var B;(B=document.body)==null||B.appendChild(O)}};
EU5=function(){var O=lSz;O||(O=document.querySelector("#persist_identity"));return O};
aS6=function(){var O=!1;try{O=!!window.sessionStorage.getItem("session_logininfo")}catch(m){O=!0}return(_.kB("INNERTUBE_CLIENT_NAME")==="WEB"||_.kB("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&O};
kFS=function(O,m){if(!aS6())return!1;m||(m=_.kB("LOGIN_INFO"));return m?(O.session_logininfo=m,!0):!1};
cWf=function(O,m){O=O===void 0?!1:O;if((m===void 0||!m)&&yW6!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.yE("LOG_STICKINESS",!1)){m=_.yA();var G=_.kf(),B={identityStickinessData:{initialState:yW6}};m&&G&&_.Qh(m,G,B)}if(m=EU5())if(G=m.src?(new URL(m.src)).origin:"*",O){var Q;(Q=m.contentWindow)==null||Q.postMessage({action:"clear"},G)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(O=window.sessionStorage.getItem("session_logininfo"))){var H;(H=m.contentWindow)==null||H.postMessage({loginInfo:O},G)}};
_.m$=function(O){O=O===void 0?!0:O;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.a8("LOGIN_INFO",""),O&&window.sessionStorage.setItem("from_switch_account","1"),cWf(!0,O)}catch(m){}};
Y5M=function(O){O&&(O.startsWith("https://accounts.google.com/AddSession")?_.m$():O.startsWith("https://accounts.google.com/ServiceLogin")?_.m$():O.startsWith("https://myaccount.google.com")&&_.Ph(O).getPath().endsWith("/youtubeoptions")&&_.m$())};
Gw=function(O,m){Y5M(O);if(_.yE("LOGGED_IN",!0)&&aS6()){var G=gJp(O);G==null&&(G={});kFS(G,m)&&_.vd(O,G)}};
dfO=function(){function O(m){for(m=m.target;m&&m.nodeName!=="A";)if(m=m.parentNode,!(m&&m instanceof HTMLElement))return;if(m&&!m.hasAttribute("download")&&m.getAttribute("rel")!=="external"&&m.href)return m.href}
document.addEventListener("mousedown",function(m){m.button!==0&&(m=O(m))&&Gw(m)});
document.addEventListener("click",function(m){(m=O(m))&&Gw(m)})};
Df5=function(){var O=new woN;try{if(_.yE("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(R){O.increment(5,!1);return}if(_.kB("LOGIN_INFO")){var m=euO?euO:window.location;_.kB("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&oUf();var G=gJp(m.href);G==null&&(G={});var B=G.session_logininfo,Q=Number(window.sessionStorage.getItem("stickiness_reload")),H=B===_.kB("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
Q>=2||H)Q>=2?O.increment(2,H):H?O.increment(7,H):window.sessionStorage.getItem("session_logininfo")||(O.increment(3,H),yW6="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.kB("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.kB("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))O.increment(4,H),window.sessionStorage.removeItem("stickiness_reload");
else if(Q<2){window.sessionStorage.setItem("stickiness_reload",String(Q+1));var M=m.href;M=_.Kr(M,"sttick");Gw(M,window.sessionStorage.getItem("session_logininfo"));M=_.AN(M,{sttick:Q});O.increment(Q,H);_.rXe(m,M)}}else O.increment(6,!1)}else _.m$(!1)}catch(R){}};
_.BC=function(O,m,G,B,Q){m=m===void 0?{}:m;G=G===void 0?"":G;B=B===void 0?window:B;O=_.Oe(O,m);Gw(O);G=_.d5(O+G,Q);_.rXe(B.location,G)};
s0N=function(O){if(O.urlEndpoint){if(O=_.Fq(O.urlEndpoint.url),O.adurl)return H7(O.adurl)}else if(O.watchEndpoint)return"//www.youtube.com/watch?v="+O.watchEndpoint.videoId;return null};
NaY=function(O){if(!O||!O.reportingPings)return null;var m={};O.reportingPings.forEach(function(G){G.pingType in m?m[G.pingType].push(G.url):m[G.pingType]=[G.url]});
return{adpings:hPf(m)}};
_.QM=function(){return{isShellLoad:_.yE("IS_SHELL_LOAD",!1)}};
FcY=function(){navigator.serviceWorker.getRegistrations().then(function(O){O.forEach(P3p)})};
P3p=function(O){O&&_.AWI(O5N,O.scope)};
_.AWI=function(O,m){m={scope:m||_.ib("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Eh(O),m)};
HC=function(O,m,G,B){if(m&&m.serializedYpcCujLoggingParams){if(G){var Q={};Q.transactionErrorType=G;B&&(Q.errorMessage=B);m.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:Q}}}G={};G.ypcCujContext=m;O=_.bu("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",O,G);_.nf(_.Xs(),O,"FLOW_TYPE_YPC_ACQUISITION")}};
_.mb6=function(O,m,G,B){var Q={};Q.serializedTransactionFlowLoggingParams=m;G&&(Q.errorType=G);B&&(Q.errorMessage=B);_.LE(O,Q);_.CE()};
_.Gar=function(O){O&&_.mb6("transactionFlowStarted",O)};
_.BON=function(O){O&&_.mb6("transactionFlowCancelled",O)};
_.vC=function(O,m,G){m&&_.mb6("transactionFlowFailed",m,O,G)};
QUM=function(O){var m=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");m&&(m.inert=O)};
_.K7=function(){this.megabloxUrl_=null};
_.$Z=function(O){try{var m=H5s==null?void 0:H5s.composedPath(O)}catch(G){m=O.composedPath?O.composedPath():[]}return m&&m.length>0?m:O.composedPath?O.composedPath():[]};
_.Mj=function(O){return _.$Z(O)[0]};
_.rX=function(O){if(!(O instanceof Element))return null;O=O.classList?Array.from(O.classList):void 0;if(!O)return null;var m=O.indexOf("style-scope");return m>-1&&m+1<O.length?O[m+1]:null};
Ru=function(O){if(!(O instanceof HTMLElement))return null;var m=O&&(O.$$||O.polymerController)?O.tagName.toLowerCase():null;return m?m:_.rX(O)};
vSN=function(O,m){return O.replace(/[^a-z]*[^\s]+/g,function(G){return G+".style-scope."+m})};
K1r=function(O,m){return m?O.split(",").map(function(G){return vSN(G.trim(),m)}).join(", "):O};
_.ic=function(O){var m,G,B,Q;return(Q=(B=(G=(m=O.root)!=null?m:O.shadowRoot)!=null?G:O.__shady_native_shadowRoot)!=null?B:O.__shady_shadowRoot)!=null?Q:O};
xZ=function(O){return O instanceof ShadowRoot?ShadowRoot:O instanceof DocumentFragment?DocumentFragment:O instanceof Document?Document:HTMLElement};
$bM=function(O){var m,G,B;return(B=(G=(m=O.parentElement)!=null?m:O.__shady_native_parentElement)!=null?G:O.__shady_parentElement)!=null?B:null};
MFs=function(O){var m,G,B;return(B=(G=(m=O.parentNode)!=null?m:O.__shady_native_parentNode)!=null?G:O.__shady_parentNode)!=null?B:null};
rTf=function(O){var m,G,B;return(B=(G=(m=O.__shady_parentNode)!=null?m:O.__shady_native_parentNode)!=null?G:O.parentNode)!=null?B:null};
Rss=function(O){var m,G;return(G=(m=MFs(O))!=null?m:O.host)!=null?G:null};
i5I=function(O){var m,G,B;return(B=(G=(m=O.nextSibling)!=null?m:O.__shady_native_nextSibling)!=null?G:O.__shady_nextSibling)!=null?B:null};
xbf=function(O){var m,G,B;return(B=(G=(m=O.previousSibling)!=null?m:O.__shady_native_previousSibling)!=null?G:O.__shady_previousSibling)!=null?B:null};
qM6=function(O){var m,G,B;return(B=(G=(m=O.nextElementSibling)!=null?m:O.__shady_native_nextElementSibling)!=null?G:O.__shady_nextElementSibling)!=null?B:null};
Ub5=function(O){var m,G,B;return(B=(G=(m=O.previousElementSibling)!=null?m:O.__shady_native_previousElementSibling)!=null?G:O.__shady_previousElementSibling)!=null?B:null};
tFs=function(O){var m,G,B;return new Set([].concat(_.lS((m=O.children)!=null?m:[]),_.lS((G=O.__shady_native_children)!=null?G:[]),_.lS((B=O.__shady_children)!=null?B:[])))};
W1z=function(O){var m,G,B;return new Set([].concat(_.lS((m=O.childNodes)!=null?m:[]),_.lS((G=O.__shady_native_childNodes)!=null?G:[]),_.lS((B=O.__shady_childNodes)!=null?B:[])))};
Z5e=function(O){if(!O)return null;var m=_.rX(O);if(!m){var G;return(G=Node.prototype.getRootNode)==null?void 0:G.call(O)}m=m.toUpperCase();for(O=$bM(O);O&&O.tagName!==m;)O=$bM(O);return O?_.ic(O):null};
zsp=function(O){for(;O&&!(O instanceof HTMLElement);)O=Rss(O);return O};
JTs=function(O){var m=zsp(O);return O===m?_.rX(O):m?Ru(m):null};
VF5=function(O){return(O=zsp(O))?Ru(O):null};
b5N=function(O){if(O instanceof Comment)return!1;if(O instanceof Text){var m,G;if(((G=(m=O.textContent)==null?void 0:m.trim())!=null?G:"")==="")return!1}return!0};
qj=function(O,m,G){var B=m(O);for(G=G===void 0?VF5(O):G;B&&(JTs(B)!==G||!b5N(B));)O=B,B=m(O);return B};
nSN=function(O,m,G){if(!m)return null;O=VF5(O);return JTs(m)===O&&b5N(m)?m:qj(m,G,O)};
XPz=function(O){return qj(O,rTf,_.rX(O))};
faz=function(O){return qj(O,qM6)};
hsS=function(O){return qj(O,i5I)};
TOS=function(O){return qj(O,Ub5)};
gSS=function(O){return qj(O,xbf)};
u3s=function(O){return nSN(O,O.firstChild||O.__shady_native_firstChild||O.__shady_firstChild||null,i5I)};
jUr=function(O){var m,G,B;var Q=(B=(G=(m=O.firstElementChild)!=null?m:O.__shady_native_firstElementChild)!=null?G:O.__shady_firstElementChild)!=null?B:null;return nSN(O,Q,qM6)};
IaO=function(O){var m,G,B;var Q=(B=(G=(m=O.lastChild)!=null?m:O.__shady_native_lastChild)!=null?G:O.__shady_lastChild)!=null?B:null;return nSN(O,Q,xbf)};
pPf=function(O){var m,G,B;var Q=(B=(G=(m=O.lastElementChild)!=null?m:O.__shady_native_lastElementChild)!=null?G:O.__shady_lastElementChild)!=null?B:null;return nSN(O,Q,Ub5)};
SM5=function(O){var m=VF5(O);return Array.from(W1z(O)).filter(function(G){return JTs(G)===m})};
ESf=function(O){var m=Ru(O);return Array.from(tFs(O)).filter(function(G){return _.rX(G)===m})};
_.Uc=function(O,m,G){if(O instanceof HTMLElement&&_.rX(O)===G){var B=Array.from(O.classList).indexOf("style-scope");if(B===-1)O.classList.add("style-scope"),O.classList.add(m);else if(!(B+1>=O.classList.length)){B=O.classList[B+1];var Q,H;O==null||(Q=O.classList)==null||(H=Q.replace)==null||H.call(Q,B,m)}}if(O instanceof HTMLElement||O instanceof DocumentFragment)for(Q=_.K(tFs(O)),H=Q.next();!H.done;H=Q.next())_.Uc(H.value,m,G);return O};
tG=function(O,m){if(O instanceof HTMLElement&&_.rX(O)===m){var G=Array.from(O.classList).indexOf("style-scope");G===-1||G+1>=O.classList.length||O.classList.remove("style-scope",O.classList[G+1])}if(O instanceof HTMLElement||O instanceof DocumentFragment){G=_.K(O.children);for(var B=G.next();!B.done;B=G.next())tG(B.value,m)}return O};
_.L1Y=function(O,m){return xZ(O).prototype.appendChild.call(O,m)};
Cdf=function(O,m){if(O===m)return!0;O=W1z(O);return Array.from(O).some(function(G){return Cdf(G,m)})};
_.ZO=function(O,m){if(O instanceof WC)return O;(m==null?0:m.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(O,"ownerDocument")&&Object.defineProperty(O,"ownerDocument",{get:function(){return window.document}});
return new WC(O)};
la5=function(){var O=WC.prototype,m=[].concat(_.lS(oSI?[]:["getRootNode"]),["setAttribute","removeAttribute"]);m=_.K(m);for(var G=m.next(),B={};!G.done;B={method$jscomp$51:void 0},G=m.next())B.method$jscomp$51=G.value,O[B.method$jscomp$51]=function(Q){return function(){return this.host[Q.method$jscomp$51].apply(this.host,arguments)}}(B)};
kaz=function(){var O=WC.prototype,m=[].concat(_.lS(oSI?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.lS(aas?[]:["querySelector","querySelectorAll"]));m=_.K(m);for(var G=m.next(),B={};!G.done;B={method$jscomp$52:void 0},G=m.next())B.method$jscomp$52=G.value,O[B.method$jscomp$52]=function(Q){return function(){return this.root[Q.method$jscomp$52].apply(this.root,arguments)}}(B)};
YMs=function(){var O=WC.prototype,m=[].concat(_.lS(yTO?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.lS(cTO?[]:["parentNode"]));m=_.K(m);for(var G=m.next(),B={};!G.done;B={prop$jscomp$63:void 0},G=m.next())B.prop$jscomp$63=G.value,Object.defineProperty(O,B.prop$jscomp$63,{get:function(Q){return function(){return this.host[Q.prop$jscomp$63]}}(B),
configurable:!0})};
esf=function(){var O=WC.prototype,m=["activeElement"].concat(_.lS(yTO?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.lS(db5?[]:["children"]),_.lS(wPp?[]:["lastChild"]));m=_.K(m);for(var G=m.next(),B={};!G.done;B={prop$jscomp$64:void 0},G=m.next())B.prop$jscomp$64=G.value,Object.defineProperty(O,B.prop$jscomp$64,{get:function(Q){return function(){return this.root[Q.prop$jscomp$64]}}(B),
configurable:!0})};
Dbf=function(){for(var O=WC.prototype,m=_.K(["innerHTML","textContent"]),G=m.next(),B={};!G.done;B={prop$jscomp$65:void 0},G=m.next())B.prop$jscomp$65=G.value,Object.defineProperty(O,B.prop$jscomp$65,{get:function(Q){return function(){return this.root[Q.prop$jscomp$65]}}(B),
set:function(Q){return function(H){this.root[Q.prop$jscomp$65]=H}}(B),
configurable:!0})};
sU5=function(O){var m=WC.prototype;O=_.K(Object.entries(O));for(var G=O.next(),B={};!G.done;B={fn$jscomp$402:void 0},G=O.next()){var Q=_.K(G.value);G=Q.next().value;Q=Q.next().value;B.fn$jscomp$402=Q;m[G]=function(H){return function(){return H.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.lS(arguments)))}}(B)}};
PdM=function(){for(var O=WC.prototype,m=_.K(Object.entries(NOO)),G=m.next(),B={};!G.done;B={fn$jscomp$403:void 0},G=m.next()){var Q=_.K(G.value);G=Q.next().value;Q=Q.next().value;B.fn$jscomp$403=Q;Object.defineProperty(O,G,{get:function(H){return function(){return H.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.lS(arguments)))}}(B),
configurable:!0})}};
_.zw=function(O){return O instanceof F1S||O instanceof Document?O:new F1S(O)};
ATM=function(){for(var O=F1S.prototype,m=_.K("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),G=m.next(),B={};!G.done;B={method$jscomp$53:void 0},G=m.next())B.method$jscomp$53=G.value,O[B.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(_.lS(arguments)))}}(B)};
OMf=function(){for(var O=F1S.prototype,m=_.K("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),G=m.next(),B={};!G.done;B={prop$jscomp$66:void 0},G=m.next())B.prop$jscomp$66=G.value,Object.defineProperty(O,B.prop$jscomp$66,{get:function(Q){return function(){var H;return(H=this.node["__shady_native_"+Q.prop$jscomp$66])!=null?H:this.node[Q.prop$jscomp$66]}}(B),
configurable:!0})};
_.JG=function(O,m,G){G===void 0&&(G=!O.classList.contains(m));G?O.classList.add(m):O.classList.remove(m)};
_.VM=function(O,m,G){G===void 0&&(G=!O.hasAttribute(m));if(m==="class")throw Error("kg");G?_.zw(O).setAttribute(m,""):_.zw(O).removeAttribute(m)};
mRN=function(O){return(O.localName!=="slot"?[]:(0,_.bc)(O).assignedNodes({flatten:!0})).filter(function(m){return m.nodeType===Node.ELEMENT_NODE})};
_.G45=function(O){return(O=_.ZO(O).querySelector("slot"))&&O.localName==="slot"?mRN(O):[]};
_.n7=function(O,m){window.ShadyCSS&&window.ShadyCSS.styleSubtree(O,m)};
XV=function(O,m){var G=m.bind(O);return function(B){G(B,B.detail)}};
_.f7=function(O,m){var G=BMM.get(O);G||(G=new WeakMap,BMM.set(O,G));if(G.has(m))return G.get(m);if(_.V("web_fi_listen_disable_bound_fn_helper")){var B=m.bind(O);O=function(Q){B(Q,Q==null?void 0:Q.detail)}}else O=XV(O,m);
G.set(m,O);return O};
v5p=function(O,m){QI5(O);O.created[HMN].push(m)};
QI5=function(O){if(!O.created||!O.created[HMN]){var m=O.created,G=m?[m]:[];O.created=function(){for(var B=_.K(G),Q=B.next();!Q.done;Q=B.next())Q.value.apply(this)};
O.created[HMN]=G}};
KLM=function(O){return function(){var m=_.eA.apply(0,arguments);return function(G,B,Q){O.apply(null,_.lS(m))(G,B,Q)}}};
$Rz=function(){return function(){var O=_.eA.apply(0,arguments);return function(m,G,B){w4N.apply(null,_.lS(O))(m,G,B)}}};
_.h=function(O){return $Rz()(O)};
_.T=function(){return KLM(NsY).apply(null,_.lS(_.eA.apply(0,arguments)))};
_.hG=function(O){return _.V("pbcm_fi_listen_decorators")?MX5(O):KLM(D0N)(O)};
MX5=function(O){return function(m,G){v5p(m,function(){var B=this[G],Q=_.V("web_fi_listen_disable_bound_fn_helper")?function(H){B(H,H.detail)}.bind(this):XV(this,B);
roN.has(O)?l_(this.hostElement,O,Q):this.hostElement.addEventListener(O,Q)})}};
_.Tw=function(){return KLM(sDz).apply(null,_.lS(_.eA.apply(0,arguments)))};
_.g=function(O){O=O===void 0?{}:O;return KLM(eVr)(O)};
_.gX=function(O){if(O.hostElement&&O!==O.hostElement){var m=_.SU(O.hostElement);m=O.renderIdom?m:m.shadowRoot}m||(O=O.root,m=O instanceof Node?_.SU(O):null);return m};
_.uc=function(O){return RkM?iMs(O):function(m,G){Object.defineProperty(m,G,{get:function(){var B;return(B=_.gX(this))==null?void 0:B.querySelector(O)},
enumerable:!0,configurable:!0})}};
iMs=function(O){return function(m,G){Object.defineProperty(m,G,{get:function(){var B,Q=(B=_.ZO(this.hostElement))==null?void 0:B.querySelector(O);if(Q)return Q;var H;return(H=_.gX(this))==null?void 0:H.querySelector(O)},
enumerable:!0,configurable:!0})}};
_.ji=function(O){return RkM?xR5(O):function(m,G){Object.defineProperty(m,G,{get:function(){var B;return(B=_.gX(this))==null?void 0:B.querySelectorAll(O)},
enumerable:!0,configurable:!0})}};
xR5=function(O){return function(m,G){Object.defineProperty(m,G,{get:function(){var B,Q=(B=_.ZO(this.hostElement))==null?void 0:B.querySelectorAll(O);if(Q==null?0:Q.length)return Q;var H;return(H=_.gX(this))==null?void 0:H.querySelectorAll(O)},
enumerable:!0,configurable:!0})}};
qAN=function(O){return function(m){if(![_.KC,_.u].includes(Object.getPrototypeOf(m.prototype).constructor))throw Error("lg");o7I(Object.assign({},typeof O!=="string"?O:{is:O,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(m)}};
_.p7=function(){var O=O===void 0?{}:O;return function(m){if(![$f,_.Iu].includes(Object.getPrototypeOf(m.prototype).constructor))throw Error("mg");le5(Object.assign({},O,{disableInheritanceCheck:!0}))(m)}};
tXr=function(O,m){URM[O]!=null||(URM[O]=new Set);URM[O].add(m)};
_.Si=function(){var O=_.Tw.apply(null,_.lS(_.eA.apply(0,arguments)));return function(m,G){tXr(m.is,G);O(m,G)}};
C7=function(O,m,G){if(Ec(O)&&!WLN.has(m)){m=m.replace(/^JSC\$[\d]+_/,"");m=m.replace(/\.\d+(\.|$)/g,function(H,M){return".#"+M});
L7[O]!=null||(L7[O]={});var B,Q;(B=L7[O])[Q=m]!=null||(B[Q]=new Set);L7[O][m].has(G)||(L7[O][m].add(G),_.LE("polymerPropertyAccessEvent",{componentName:O,propertyName:m,accessType:G}))}};
ZMf=function(){return _.V("polymer_property_access_logging_debug")||_.V("polymer_enable_property_access_logging")};
Ec=function(O){if(_.V("polymer_property_access_logging_debug"))return!0;if(!_.V("polymer_enable_property_access_logging"))return!1;zkr||(zkr=Date.now());return(N5(O)+zkr)%100<_.Rd("polymer_property_access_logging_percent")};
Jop=function(O,m){return Ec(m)&&O.hostElement.loggingStatus?new Proxy(O,{get:function(G,B,Q){if(G.hostElement.loggingStatus.bypassProxyController)return G[B];G.hostElement.loggingStatus.isExternalGet=!0;var H=G[B];G.hostElement.loggingStatus.isExternalGet=!1;if(H instanceof Function)return function(){var M=_.eA.apply(0,arguments);try{return G.hostElement.loggingStatus.currentExternalCall=B,C7(m,B,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),H.apply(this===Q?G:this,M)}finally{G.hostElement.loggingStatus.currentExternalCall=
void 0}};
C7(m,B,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return H},
set:function(G,B,Q){if(G.hostElement.loggingStatus.bypassProxyController)return G[B]=Q,!0;G.hostElement.loggingStatus.isRendererStamper?C7(m,B,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):G.hostElement.loggingStatus.isDeclarativeExternal||C7(m,B,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{G.hostElement.loggingStatus.currentExternalSet=B,G[B]=Q}finally{G.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):O};
VXO=function(O,m){O&&O.loggingStatus&&!O.loggingStatus.isDeclarativeExternal&&!O.loggingStatus.isExternalGet&&O.loggingStatus.currentExternalSet!==m&&C7(O.tagName.toLowerCase(),m,"PROPERTY_ACCESS_GET_INTERNAL")};
ou=function(O,m,G){O&&(G||O.loggingStatus&&!O.loggingStatus.isInitializing&&!O.loggingStatus.isDefiningPropertyAccessor&&O.loggingStatus.currentExternalSet!==m)&&C7(O.tagName.toLowerCase(),m,"PROPERTY_ACCESS_SET_INTERNAL")};
bMN=function(){return{_definePropertyAccessor:function(O,m){var G=this,B=G.hostElement.loggingStatus;B&&(B.isDefiningPropertyAccessor=!0);var Q=G[O];Q!==void 0&&(G.__data?G._setPendingProperty(O,Q):(G.__dataProto!=null||(G.__dataProto={}),G.__dataProto[O]=Q));B&&(B.isDefiningPropertyAccessor=!1);Object.defineProperty(this,O,{get:function(){VXO(G.hostElement,O);return this.__data[O]},
set:function(H){m||this._setPendingProperty(O,H,!0)&&this._invalidateProperties()}})},
created:function(){var O=this._setPendingProperty.bind(this);this._setPendingProperty=function(m,G,B){ou(this.hostElement,m);return O.apply(this,[m,G,B])}}}};
n5f=function(O){ZMf()&&_.h(lc.prototype)(O.prototype,"__templateBindingLoggingBehavior")};
Xwr=function(O,m){if(m.resolvedFactories.length!==O.resolvedFactories.length)return!0;m=_.K(m.resolvedFactories.entries());for(var G=m.next();!G.done;G=m.next()){var B=_.K(G.value);G=B.next().value;B=B.next().value;if(B.providerClass){if(B.providerClass!==O.resolvedFactories[G].providerClass)return!0}else if(B.providerValue){if(B.providerValue!==O.resolvedFactories[G].providerValue)return!0}else if(B.factory!==O.resolvedFactories[G].factory)return!0}return!1};
f8e=function(O,m){O=_.K(O);for(var G=O.next();!G.done;G=O.next())if(G=G.value,G.constructor===Array)f8e(G,m);else{var B=m;B.has(G)||(G.inject&&B.add(G),G.behaviors&&f8e(G.behaviors,B))}};
au=function(O,m){var G=O[m];O[m]=function(){var B=_.eA.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(G)return G.apply(this,B)}};
uhI=function(){_.kZ.Class=function(G,B){G=hkO(G,B);au(G.prototype,"created");return G};
au(YZ.prototype,"_initializeProperties");au(_.dX.prototype,"_initializeProperties");if(TMe)au(g5I,"created");else{var O=function(){au(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))O();else{var m=customElements.define;customElements.define=function(G,B,Q){m.call(customElements,G,B,Q);G==="tp-yt-iron-list"&&(O(),customElements.define=m)}}}};
I8f=function(O,m){O.prototype.behaviors=O.prototype.behaviors||[];O.prototype.behaviors.unshift(jIf.InjectBehavior);O.prototype.provide=m};
_.DO=function(O){return function(m){if(!O.disableElementRegistration){O.noInjection||I8f(m,O.providers);var G=m.prototype;G.__templateHelpers||w4N(wX.prototype)(G,"__templateHelpers");G=O.is;pwe||(pwe=Date.now());(N5(G)+pwe)%100<_.Rd("polymer_log_prop_change_observer_percent")&&w4N(ei.prototype)(m.prototype,"__propertyObserverObserver");m.prototype.behaviors=m.prototype.behaviors||[];m.prototype.behaviors.unshift(_.SAp.YtHostElementBehavior);n5f(m);qAN({is:O.is,notifyObserversOnUndefined:O.notifyObserversOnUndefined!==
!1,fastInit:O.fastInit,template:O.template,disableEnforceFastDefaultValuesCheck:!0})(m)}}};
_.l=function(O){return _.DO({is:O.is,template:O.template,disableElementRegistration:O.disableElementRegistration,cssBuildOptOut:O.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
C9s=function(O,m){if(E5r){O=new O;for(var G=_.K(Object.getOwnPropertyNames(O)),B=G.next();!B.done;B=G.next())B=B.value,m[B]=O[B];for(G=m;G&&G!==Object.prototype;G=Object.getPrototypeOf(G)){B=_.K(Object.getOwnPropertyNames(G));for(var Q=B.next();!Q.done;Q=B.next())Q=Q.value,O.hasOwnProperty(Q)||Object.defineProperty(O,Q,LLO(m,Q))}}else O.apply(m)};
LLO=function(O,m){return{get:function(){var G=O[m];return G instanceof Function?G.bind(O):G},
set:function(G){O[m]=G}}};
l8N=function(O,m){for(var G=O._noAccessors,B=_.K(Object.getOwnPropertyNames(O)),Q=B.next();!Q.done;Q=B.next())if(Q=Q.value,!o5S.has(Q))if(G)m[Q]=O[Q];else{var H=Object.getOwnPropertyDescriptor(O,Q);H&&(H.configurable=!0,Object.defineProperty(m,Q,H))}};
a8O=function(O,m,G){return function(B){if(G){var Q=G();B.model=Q}if(O[m])O[m](B,B.detail)}};
sc=function(O){var m=[];if(typeof O==="string")O.length>0&&m.push.apply(m,_.lS(O.split(".")));else{O=_.K(O);for(var G=O.next();!G.done;G=O.next())G=G.value,typeof G==="string"?m.push.apply(m,_.lS(G.split("."))):m.push(G)}return m};
k4O=function(O,m){if(m[m.length-1]!=="*"&&m[m.length-1]!=="splices"){for(var G=0;G<m.length;G++){if(!O)return;O=O[m[G]]}return O}};
yoN=function(O,m){if(O.length>m.length)return!1;for(var G=0;G<O.length;G++)if(O[G]!==m[G])return!1;return!0};
YAp=function(O,m,G){if(m.type==="compute"){var B=m.getter.bind(G);var Q=m.args}else B=function(){return G[m.method.methodName].apply(G,_.lS(_.eA.apply(0,arguments)))},Q=m.method.args;
coM(O,m.propertyKey,B,Q,m.value)};
ww5=function(O,m){if(m.readOnly){var G=Object.getOwnPropertyDescriptor(O.model,m.propertyKey);Object.defineProperty(O.model,m.propertyKey,{get:G.get,set:function(){}});
O.model[dRf(m.propertyKey)]=G.set}};
ekN=function(O,m,G){if(G){var B=m.propertyKey,Q=m.selector;m=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.lS(m.selectorArgs.map(function(H){return{type:"path",path:H}})));
coM(O,B,function(H){var M=_.eA.apply(1,arguments);return Q.apply(null,[G.getState()].concat(_.lS(M)))},m)}};
sI6=function(O,m,G){var B=_.fC(m.propertyKey)+"-changed";DRM(O,function(Q){var H={value:Q.value,queueProperty:!0};Q.path.split(".").length>1&&(H.path=Q.path);G.dispatchEvent(new CustomEvent(B,{detail:H}))},[{type:"wildcard",
path:m.propertyKey}])};
NMr=function(O,m,G){DRM(O,function(){G[m.method.methodName].apply(G,_.lS(_.eA.apply(0,arguments)))},m.method.args)};
dRf=function(O){return"_set"+(O.charAt(0).toUpperCase()+O.slice(1))};
P9r=function(){var O,m=CS(function(G){O=G},!1);
return[O,m]};
GQY=function(O){O=O.trim().replace(FLr,",").replace(AoN,"$1");var m=O[0];m==="-"&&(m=O[1]);if(m>="0"&&m<="9")return{type:"literal",value:Number(O)};if(m==="'"||m==='"')return{type:"literal",value:O.slice(1,-1)};if(m=O.match(OaN)){m=m[1];var G=mWf[m];if(G)return{type:G,path:O.slice(0,-(m.length+1))}}return{type:"path",path:O}};
vep=function(O){var m=O.match(B4r);if(m)return O={methodName:m[1],args:QAr},m[2].trim()&&(m=m[2].replace(Has,"&comma;").split(","),O.args=m.map(GQY)),O};
KVf=function(O,m,G,B){B=B===void 0?!1:B;m=_.fC(m);var Q=fI;Q&&(G=Q(G,m,"attribute",O));Nj(O,G,m,B)};
Nj=function(O,m,G,B){m=$Wp(m,B===void 0?!1:B);m===void 0?O.removeAttribute(G):O.setAttribute(G,m)};
$Wp=function(O,m){switch(typeof O){case "object":case "function":if(O instanceof Date)return O.toString();if(O){if((m===void 0?0:m)&&!_.V("polymer_reflect_objects_as_boolean_killswitch"))return O?"":void 0;m=window.trustedTypes?window.trustedTypes.isHTML(O)||window.trustedTypes.isScript(O)||window.trustedTypes.isScriptURL(O):void 0;if(m)return O;try{return JSON.stringify(O)}catch(G){_.ay(Error("Ig`"+O))}}break;case "boolean":return O?"":void 0;default:return O!==null&&O!==void 0?O.toString():void 0}};
MOp=function(O){if(O===void 0)throw Error("Jg");return O};
q8e=function(O,m,G,B){var Q=rup(B);if(Q.length){B=G;var H="property";R3Y.test(G)?H="attribute":G[G.length-1]==="$"&&(G=G.slice(0,-1),H="attribute");var M=iaN(Q);M&&H==="attribute"&&(G==="class"&&O.hasAttribute("class")&&(M+=" "+O.getAttribute(G)),Nj(O,M,G));H==="attribute"&&B==="disable-upgrade$"&&O.setAttribute("disable-upgrade","");O.localName==="input"&&B==="value"&&O.setAttribute("value","");O.removeAttribute(B);H==="property"&&(G=_.hc(G));m=MOp(m);xWp(m,H,G,Q);return!0}return G.slice(0,3)===
"on-"?(O.removeAttribute(G),(H=m).events!=null||(H.events=[]),m.events.push({name:G.slice(3),value:B}),!0):G==="id"?(m.id=B,!0):!1};
rup=function(O){for(var m=[],G=0,B;(B=UWI.exec(O))!==null;){B.index>G&&m.push({type:"literal",value:O.slice(G,B.index)});var Q=B[1][0];G=!!B[2];B=B[3].trim();if(Q==="{")throw Error("Kg");(Q=vep(B))?m.push({type:"method",negate:G,signature:Q}):m.push({type:"path",negate:G,path:B});G=UWI.lastIndex}G&&G<O.length&&(O=O.substring(G))&&m.push({type:"literal",value:O});return m};
iaN=function(O){for(var m="",G=0;G<O.length;G++){var B=O[G];B.type==="literal"&&(m+=B.value)}return m};
xWp=function(O,m,G,B){O.bindings!=null||(O.bindings=[]);O.bindings.push({kind:m,target:G,parts:B})};
Jus=function(O,m,G){var B=!1;if(O.localName==="template"){B=G;var Q=m.stripWhitespace;Q=tOM(O,Q===void 0?!1:Q);var H=O.content.ownerDocument.createDocumentFragment();Q.content=H;H.appendChild(O.content);B&&(B.templateInfo=Q);B=!0}else O.localName==="slot"&&(m.hasInsertionPoint=!0);if(O.firstChild&&(Q=G,O.localName!=="script"&&O.localName!=="style")){H=0;for(var M=O.firstChild;M;){var R=M;if(R.localName==="template"){var x=R.getAttribute("is");if((M=x==="dom-if")||x==="dom-repeat"){R.removeAttribute("is");
x=R.ownerDocument.createElement("ps-"+x);R.parentNode.replaceChild(x,R);x.appendChild(R);var t=Array.from(R.attributes);t=_.K(t);for(var W=t.next();!W.done;W=t.next())W=W.value,M?WVN.has(W.name)&&Nj(x,W.value,W.name):ZaN.has(W.name)?Nj(x,W.value,W.name):z3N.has(W.name),R.removeAttribute(W.name);M=x}else M=R}if(M.nodeType===Node.TEXT_NODE){R=void 0;x=O;for(t=M;((R=t.nextSibling)==null?void 0:R.nodeType)===Node.TEXT_NODE;)W=void 0,(W=t).textContent!=null||(W.textContent=""),t.nextSibling.textContent&&
(t.textContent+=t.nextSibling.textContent),x.removeChild(t.nextSibling);if(m.stripWhitespace&&M.textContent&&!M.textContent.trim()){O.removeChild(M);M=M.nextSibling;continue}}Jus(M,m,{parentIndex:H,parentInfo:Q});M.parentNode&&H++;M=M.nextSibling}}var Z;if((Z=O.hasAttributes)==null?0:Z.call(O)){Z=G=MOp(G);Q=!1;H=Array.from(O.attributes);H=_.K(H);for(R=H.next();!R.done;R=H.next())R=R.value,Q=q8e(O,Z,R.name,R.value)||Q;B=Q||B}O.nodeType===Node.TEXT_NODE&&(Z=rup(O.textContent),Z.length&&(O.textContent=
iaN(Z)||" ",G=MOp(G),xWp(G,"text","textContent",Z),B=!0));G&&B&&(G.infoIndex=m.nodeInfoList.push(G)-1)};
tOM=function(O,m){m={nodeInfoList:[],stripWhitespace:(m===void 0?!1:m)||O.hasAttribute("strip-whitespace")};Jus(O.content,m);return m};
VON=function(O){Object.assign(O,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
ne5=function(O,m,G){m.signalCache!=null||(m.signalCache={});var B=m.signalCache[G];if(!B){var Q=G.split(".");B=!ba5(O,Q[0]);if(Q.length>1&&B){var H=O.getPathMutationSignal(Q);B=function(){var M=a9(O.owner,function(){return O.getWithPath([Q[0]])}),R,x=(R=H())==null?void 0:R.value;
return{rootWasDefined:M!==void 0,value:x}}}else B=function(){var M=O.getWithPath(Q);
return{rootWasDefined:M!==void 0,value:M}};
m.signalCache[G]=B}return B()};
fG5=function(O,m,G,B,Q){m=m.parts.map(function(M,R){if(M.type==="literal"){G.partWasDefined!=null||(G.partWasDefined=[]);var x;(x=G.partWasDefined)[R]||(x[R]=M.value!==void 0);return M.value}var t;if(M.type==="method"){var W,Z=(W=(t=G.partWasDefined)==null?void 0:t[R])!=null?W:!1;Z||(Z=M.signature.args.every(function(n){return n.type==="literal"}));
var z=!1,J=!0;t=M.signature.args.map(function(n){if(n.type==="literal")return n.value;if(n.type!=="path")throw Error("Lg`"+n.type);var I=ne5(O,G,n.path);n=I.value;I=I.rootWasDefined;z||(z=I);J&&(J=I);return n});
Z||(Z=Q===1?J:z);G.partWasDefined!=null||(G.partWasDefined={});G.partWasDefined[R]=Z;if(!Z)return;t=(R=ne5(O,G,M.signature.methodName).value)&&typeof R==="function"?R.apply(B,t):void 0}else W=ne5(O,G,M.path),t=W.value,G.partWasDefined!=null||(G.partWasDefined={}),(Z=G.partWasDefined)[R]||(Z[R]=t!==void 0||W.rootWasDefined);M.negate&&(t=!t);return t});
if(m.length===1){var H;return((H=G.partWasDefined)==null?0:H[0])?m[0]:XFN}return m.join("")};
h3f=function(O){return typeof O==="object"&&!!O&&"notifyPath"in O&&"canNotifyPath"in O};
T4O=function(O){return typeof O==="object"&&!!O&&"notifyPath"in O};
geI=function(O){return"polymerController"in O};
uMM=function(O,m){m=""+sc(m)[0];if(h3f(O))return O.canNotifyPath(m);if(geI(O)&&h3f(O.polymerController))return O.polymerController.canNotifyPath(m);if(T4O(O)){var G;return!((G=O.properties)==null||!G[m])}if(geI(O)&&T4O(O.polymerController)){var B;return!((B=O.polymerController.properties)==null||!B[m])}return!1};
jA5=function(O,m,G){h3f(O)||T4O(O)?O.notifyPath(m,G):geI(O)&&(h3f(O.polymerController)||T4O(O.polymerController))&&O.polymerController.notifyPath(m,G)};
pFz=function(O,m,G){if(G!==XFN){O.kind==="attribute"||O.target!=="textContent"&&(O.target!=="value"||m.localName!=="input"&&m.localName!=="textarea")||(G=G===void 0?"":G);var B,Q=(B=IGS.Polymer)==null?void 0:B.sanitizeDOMValue;Q&&(G=Q(G,O.target,O.kind,m));if(O.kind==="attribute"){O=O.target;if(O==="class"||O==="name"||O==="slot")m=(0,_.bc)(m);Nj(m,G,O)}else if(O=O.target,G!==m[O]||typeof G==="object")m.loggingStatus&&(m.loggingStatus.isDeclarativeExternal=!0,C7(m.localName,O,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
m[O]=G,m.loggingStatus&&(m.loggingStatus.isDeclarativeExternal=!1)}};
S8p=function(O,m,G,B){var Q=m.parts[0];if(m.parts.length!==1||Q.type!=="path"||!uMM(G,m.target))return!1;var H=_.K(Q.path.split(".")),M=H.next().value,R=GJ(H);if(ba5(O,M))return!1;B.signalCache!=null||(B.signalCache={});H=B.signalCache[Q.path];var x;H=(x=H)==null?void 0:x().value;if((H==null?void 0:H.path)!==void 0){B=sc(H.path);var t=sc(Q.path);B=[m.target].concat(_.lS(B.slice(t.length-1)));jA5(G,B,Q.negate?!H.value:H.value);return!0}var W=PC(O,M);var Z=W.getChangeRecordSignal(R),z=!1;H=function(){if(!z){var n=
a9(O.owner,function(){return W.getWithPath([])});
z||(z=n!==void 0)}return{value:Z(),rootWasDefined:z}};
B.signalCache[Q.path]=H;B.partWasDefined!=null||(B.partWasDefined={});H=H();(t=B.partWasDefined)[0]||(t[0]=H.rootWasDefined);var J=a9(O.owner,function(){return W.getWithPath(R)});
B.partWasDefined[0]&&a9(O.owner,function(){return void pFz(m,G,Q.negate?!J:J)});
return!0};
Eez=function(O,m,G,B,Q,H){if(!S8p(O,m,G,B)){var M=fG5(O,m,B,Q,H);a9(O.owner,function(){return void pFz(m,G,M)})}};
LVI=function(O,m,G,B,Q,H){G=_.K(G);for(var M=G.next(),R={};!M.done;R={infoIndex:void 0},M=G.next()){M=M.value;var x=M.bindings;R.infoIndex=M.infoIndex;M=M.parentInfo;if(x){x=_.K(x);for(var t=x.next(),W={};!t.done;W={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},t=x.next()){W.b$jscomp$253=t.value;if(R.infoIndex===void 0)throw Error("Mg");W.bindingCtx$jscomp$4={};O.effect(function(Z,z){return function(){Q&&!Q()||Eez(O,Z.b$jscomp$253,m[z.infoIndex],Z.bindingCtx$jscomp$4,B,H)}}(W,R))}}M&&LVI(O,m,[M],
B,Q,H)}};
C$S=function(O,m){O=(m.parentInfo?C$S(O,m.parentInfo):O).firstChild;for(var G=0;O;O=O.nextSibling)if(m.parentIndex===G++)return O;throw Error("Ng");};
lGS=function(O,m,G,B){O=document.importNode(O.content,!0);O.__noInsertionPoint=!(B==null?0:B.hasInsertionPoint);for(var Q=Array(m.length),H={},M=0;M<m.length;M++){var R=m[M],x=C$S(O,R);Q[M]=x;R.id&&(H[R.id]=x);if(R.templateInfo){var t=x.parentElement;t&&(t.templateInfo=R.templateInfo,t.parentSignalProxy=G,t.eventListenerHost=B.eventListenerHost,t.stampingEnabled=B.enabledSignal)}t=void 0;if((t=R.events)==null?0:t.length)for(t=0;t<R.events.length;t++){var W=R.events[t];oeN(B.eventListenerHost,x,W.name,
W.value,B.getModel)}}LVI(G,Q,m,B.thisCtx,B.enabledSignal,B.methodInvocationRequirement);return{root:O,nodes:Q,nodesById:H}};
kQS=function(O,m){O=O();var G;(G=aGp.ShadyCSS)==null||G.prepareTemplate(O,m);m=tOM(O);return{template:O,nodeInfoList:m.nodeInfoList,hasInsertionPoint:m.hasInsertionPoint}};
Y8O=function(){yuz=!1;for(var O=FV.length,m=0;m<O;m++){var G=FV[m];if(G)try{G()}catch(B){Promise.resolve().then(function(){throw B;})}}FV.splice(0,O);
cus+=O};
DWY=function(O){yuz||(yuz=!0,dW6.textContent=(wFM++).toString());FV.push(O);return e3N++};
_.mp=function(O,m,G){AG++;O=m?new sAp(AG,O,m,G):new N4I(AG,O);Oz.set(AG,O);return AG};
P$e=function(O){(O=Oz.get(O))&&O.cancel()};
Au5=function(O,m){O=FVr.get(O);return O?(m=O.get(m))?m:null:null};
_.GS=function(O,m,G,B){var Q=Au5(O,m);if(!Q){Q=new Ovf;var H=FVr.get(O);H||(H=new Map,FVr.set(O,H));H.set(m,Q)}O=G.bind(O);Q.run(O,B,void 0)};
_.m8N=function(O,m){var G;(G=Au5(O,m))==null||G.cancel()};
GT5=function(O){var m;(m=Au5(O,"doRender"))==null||m.flush()};
BE=function(O){var m;return(m=O.hostElement)!=null?m:O};
BFN=function(O){var m=O.indexOf(".");return m===-1?O:O.slice(0,m)};
Q5N=function(O,m,G,B,Q,H){H=(Q=(B=H?BFN(m):m)?m:null)?O.get(Q):O.__data[m];Q&&H===void 0&&(H=G[m]);_.iP(O.hostElement,fdY(B)+"-changed",{value:H,queueProperty:!0,path:Q!=null?Q:void 0},{bubbles:!1,composed:!1})};
Hvp=function(O,m){O.__isReflecting=!0;KVf(O.hostElement,m,O.__data[m]);O.__isReflecting=!1};
vQe=function(O){if(O._onIronRequestResizeNotifications){var m=O._onIronRequestResizeNotifications.bind(O);O._onIronRequestResizeNotifications=function(G){_.Mj(G)!==O.hostElement&&m(G)}}O._ariaActiveAttributeChanged&&(O._ariaActiveAttributeChanged=O._ariaActiveAttributeChanged.bind(O.hostElement));
O._activeChanged&&(O._activeChanged=function(G){O.toggles?Nj(O.hostElement,G?"true":"false",O.ariaActiveAttribute):O.hostElement.removeAttribute(O.ariaActiveAttribute);O._changedButtonState()});
O._asyncClick&&(O._asyncClick=function(){_.mp(function(){O.hostElement.click()},1)});
!O.keyEventTarget||O.keyEventTarget instanceof EventTarget||(O.keyEventTarget=BE(O.keyEventTarget));O._disabledChanged&&(O._disabledChanged=O._disabledChanged.bind(O.hostElement));O._observeItems&&(O._observeItems=function(G){var B=BE(G);return _.SU(B).observeNodes(function(Q){O._updateItems();O._updateSelected();_.iP(B,"iron-items-changed",Q,{bubbles:!1,cancelable:!1})})});
O._updateItems&&O._updateItems===_.Qa._updateItems&&(O._updateItems=function(){var G=_.SU(O.hostElement).queryDistributedElements(O.selectable||"*");G=Array.prototype.filter.call(G,O._bindFilterItem);O._setItems(G)});
O._computeKeyboardClass&&(O._computeKeyboardClass=function(G){_.JG(O.hostElement,"keyboard-focus",G)});
O.ensureRipple&&(O.ensureRipple=function(G){if(O.hasRipple&&!O.hasRipple()){if(!O._createRipple)return;O._ripple=O._createRipple();O._ripple.noink=O.noink;var B=O._rippleContainer||O.hostElement;B&&_.ZO(B).appendChild(O._ripple)}var Q;if(G&&((Q=O._ripple)==null?0:Q.uiDownAction)){B=_.ZO(O._rippleContainer||O.hostElement);var H;Q=(H=G.composedPath())==null?void 0:H[0];B.contains(Q)&&O._ripple.uiDownAction(G)}});
O._updateMultiselectable&&(O._updateMultiselectable=function(G){G?O.hostElement.setAttribute("aria-multiselectable","true"):O.hostElement.removeAttribute("aria-multiselectable")})};
KDp=function(O,m,G){G=_.K(G);for(var B=G.next();!B.done;B=G.next())C9s(B.value.constructor,O);C9s(m.constructor,O)};
M$M=function(O,m){O=_.K(O);for(var G=O.next();!G.done;G=O.next())if(G=G.value,G.type==="signal"){var B=G.propertyKey;if(m.hasOwnProperty(B)&&m[B]!=null&&G.attributeType===Object){a:{B=m[B].constructor;for(var Q=_.K($8s),H=Q.next();!H.done;H=Q.next())if(H=H.value,B===H){B=H;break a}B=Object}G.attributeType=B}}};
rDM=function(){};
R4p=function(O){var m;return(m=O.hostElement)!=null?m:O};
ivp=function(){throw Error("Rg");};
x8f=function(O,m){O.constructor.prototype.useSignals=!0;var G=new O.constructor;KDp(G,O,m.behaviors);M$M(m.reactiveSchemas,G);G={};for(var B=_.K(m.reactiveSchemas),Q=B.next();!Q.done;Q=B.next())Q=Q.value,Q.type==="signal"&&(G[Q.propertyKey]=Q.attributeType);var H={copyPropertiesToProto:ivp,didRegister:!1,typesForSignals:G},M=["disable-upgrade"].concat(_.lS(m.observedAttributes)),R=function(x){HE.call(this,O,m,H,x)};
_.X(R,HE);_.vr.Object.defineProperties(R,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return M}}});
H.copyPropertiesToProto=function(){for(var x=0;x<m.behaviors.length;x++)l8N(m.behaviors[x],R.prototype);l8N(O,R.prototype)};
m.legacyOptimizations||H.copyPropertiesToProto();R.prototype.is=O.is;return R};
qlI=function(O,m){if(Object.getPrototypeOf(m.prototype).constructor!==_.u)throw Error("Sg");m.prototype.is=O.is;return x8f(m.prototype,O)};
U8M=function(O){return O.type==="compute"||O.type==="computeWithMethod"};
t$Y=function(O){for(var m=O.reactiveSchemas.filter(U8M),G=new Map,B=new Map,Q=new Map,H=_.K(m),M=H.next();!M.done;M=H.next())M=M.value,G.set(M.propertyKey,M),B.set(M.propertyKey,[]),Q.set(M.propertyKey,0);H=0;m=_.K(m);for(M=m.next();!M.done;M=m.next()){M=M.value;for(var R=_.K(M.type==="computeWithMethod"?M.method.args:M.args),x=R.next();!x.done;x=R.next())x=x.value,x.type!=="literal"&&(x=x.path.split(".")[0],B.has(x)&&(B.get(x).push(M.propertyKey),Q.set(M.propertyKey,Q.get(M.propertyKey)+1),H++))}M=
[].concat(_.lS(B.keys())).filter(function(t){return Q.get(t)===0});
for(m=[];M.length;)for(R=M.shift(),m.push(G.get(R)),R=_.K(B.get(R)),x=R.next();!x.done;x=R.next())x=x.value,Q.set(x,Q.get(x)-1),H--,Q.get(x)===0&&M.push(x);G=O.reactiveSchemas.filter(function(t){return!U8M(t)});
O.reactiveSchemas=[].concat(_.lS(G),_.lS(m))};
WDe=function(O,m){if(m.properties)for(var G=_.K(Object.entries(m.properties)),B=G.next();!B.done;B=G.next()){var Q=_.K(B.value);B=Q.next().value;Q=Q.next().value;O.properties[B]=typeof Q==="function"?{type:Q}:Q}m.observers&&O.observers.push.apply(O.observers,_.lS(m.observers));m.disabledPolySiReactions&&O.disabledPolySiReactions.push.apply(O.disabledPolySiReactions,_.lS(m.disabledPolySiReactions))};
ZvI=function(O,m){for(var G=m.length-1;G>=0;G--){var B=m[G];Array.isArray(B)?ZvI(O,B):O.indexOf(B)<0&&O.unshift(B)}};
z4S=function(O,m){O.reactiveSchemas=O.reactiveSchemas.filter(function(G){return G.type==="observe"&&m.includes(G.method.methodName)||U8M(G)&&m.includes(G.propertyKey)?!1:!0})};
V$f=function(O,m){var G=m.prototype,B,Q,H={is:O.is,reactiveSchemas:[],observedAttributes:[],behaviors:[jIf.InjectBehavior,wX.prototype],disableElementRegistration:O.disableElementRegistration,provide:(B=O.providers)!=null?B:[],reactivityMode:O.reactivityMode,signalProperties:(Q=G.signalProperties)!=null?Q:[]};"template"in m?H.templateGetter=function(){return m.template}:O.getTemplate&&(H.templateGetter=O.getTemplate);
G.behaviors&&ZvI(H.behaviors,G.behaviors);JDr(H,m);return H};
JDr=function(O,m){for(var G=m.prototype,B={properties:{},observers:[],disabledPolySiReactions:[]},Q=_.K(O.behaviors),H=Q.next();!H.done;H=Q.next())WDe(B,H.value);WDe(B,G);if(O.signalProperties)for(G=_.K(O.signalProperties),Q=G.next();!Q.done;Q=G.next())delete B.properties[Q.value];G=_.K(Object.entries(B.properties));for(Q=G.next();!Q.done;Q=G.next()){H=_.K(Q.value);Q=H.next().value;H=H.next().value;var M=void 0;if((M=O.signalProperties)==null||!M.includes(Q)){M=void 0;var R=O,x=H.type;if(!x)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{x=Reflect.getMetadata("design:type",m,Q);for(var t=_.K(bvf),W=t.next();!W.done;W=t.next())if(W=W.value,x===W){x=W;break a}x=Object}else x=String;H.computed||H.selector||(R.reactiveSchemas.push({type:"signal",propertyKey:Q,value:H.value,attributeType:x,readOnly:H.readOnly}),R.observedAttributes.push(_.fC(Q)));H.reflectToAttribute&&R.reactiveSchemas.push({type:"reflect",propertyKey:Q});if(H.computed){x=vep(H.computed);if(!x)throw Error("Tg");R.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:Q,method:x,value:H.value})}H.observer&&R.reactiveSchemas.push({type:"observe",method:{methodName:H.observer,args:[{type:"path",path:Q}]}});H.notify&&R.reactiveSchemas.push({type:"notify",propertyKey:Q});H.selector&&R.reactiveSchemas.push({type:"redux",propertyKey:Q,selector:H.selector,selectorArgs:(M=H.selectorArgs)!=null?M:[]})}}nQS&&t$Y(O);m=_.K(B.observers);for(Q=m.next();!Q.done;Q=m.next())G=O,Q=Q.value,(H=vep(Q))?G.reactiveSchemas.push({type:"observe",method:H}):console.log('Warning: unable to parse observe declaration: "'+
Q+'"');z4S(O,B.disabledPolySiReactions)};
XR5=function(O,m){for(var G=0;G<m.length;G++){var B=m[G],Q=void 0;(Q=B).showHideApi!=null||(Q.showHideApi={});Q=void 0;!!O!==!((Q=B.showHideApi)==null||!Q.hideTemplateChildren)&&(B.nodeType===Node.TEXT_NODE?O?(B.showHideApi.polymerTextContent=B.textContent,B.textContent=""):(Q=void 0,B.textContent=(Q=B.showHideApi.polymerTextContent)!=null?Q:null):B instanceof Element&&B.localName==="slot"?O?(B.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.bc)((0,_.bc)(B).parentNode).replaceChild(B.showHideApi.polymerReplaced,
B)):(Q=B.showHideApi.polymerReplaced)&&(0,_.bc)((0,_.bc)(Q).parentNode).replaceChild(B,Q):B instanceof HTMLElement&&B.style&&(O?(B.showHideApi.polymerDisplay=B.style.display,B.style.display="none"):B.style.display=B.showHideApi.polymerDisplay));B.showHideApi.hideTemplateChildren=O;B.showHideChildren&&B.showHideChildren(O)}};
h4f=function(){if(!fQI){var O=document.createElement("style");O.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(O);fQI=!0}};
vE=function(){return _.V("disable_hidden_dom_if_using_stamper")};
TFN=function(O,m){var G=_.Km().getState();return m?O.apply(null,[G].concat(_.lS(m))):O(G)};
j5p=function(){if(gQS)return gQS;var O=_.K(_.Wf(0,void 0,"MB1Hb")),m=O.next().value;O.next();var G=O.next().value;_.Km().subscribe(function(){uif(G)});
return gQS=m};
uif=function(O){IQp||(IQp=!0,Promise.resolve().then(function(){O(function(m){return m+1});
IQp=!1}))};
_.Km=function(){return pRN.getAppStore()};
Sl6=function(O,m){return pRN.getSelectFn()(O,m)};
_.$n=function(O){pRN.getDispatchFn()(O)};
EQ6=function(O,m){var G={},B;for(B in O)G[B]=m(O[B],B);return G};
_.MN=function(O,m){return function(){var G;return(G=_.o9(O))!=null?G:m}};
_.ru=function(O,m){var G=Object.assign({},O),B;for(B in m)m.hasOwnProperty(B)&&(G[B]=_.MN(O[B],m[B]));return G};
LDM=function(O,m,G){O instanceof Element&&(G.debugName||(G.debugName="<"+O.tagName.toLowerCase()+(O.tagName.includes("-")?">":"."+O.className+">")),_.V("ytwiz_enable_debug_component_props")&&(O.debugProps||(O.debugProps=EQ6(m,function(B){return function(){return B()}}))))};
oQO=function(O){var m;return CYz.value.traceAllComponents||((m=vq.stack[vq.stack.length-1])==null?void 0:m.name)!=="ytComponent"?mcN("ytComponent",{},O):O()};
_.a=function(O,m){var G=function(B){return oQO(function(Q){var H=lQI={};var M;if(((M=G)==null?0:M.idomCompat)&&B.renderedFromIdom){var R;M=typeof G.idomCompat==="object"?(R=G)==null?void 0:R.idomCompat.callbacks:{};M=_.K(aQ5(B,M,G.debugName));R=M.next().value;M.next();M=M.next().value;var x=kTY(O,R);H.privateValue=x;lQI=void 0;LDM(x,R,G);H={debugName:G.debugName};Q&&H&&Object.assign(Q.attributes,H);Q=OC6(x);Q=Array.isArray(Q)?Q[0]:Q;Q[Wx]||(Q[Wx]={});Q[Wx].updateSignalsFromIdomProps=M;yDN(R,x);return x}M=
EQ6(B,cDS);R=kTY(O,M);H.privateValue=R;lQI=void 0;LDM(R,M,G);H={debugName:G.debugName};Q&&H&&Object.assign(Q.attributes,H);yDN(M,R);return R})};
G.debugName=m===void 0?"":m;return G};
kTY=function(O,m){O=O(m);return bz(O)};
YlS=function(O,m){O[m]||(O=new _.j9("IDOM interop setter undefined. Key:",m),_.oy(O))};
cDS=function(O,m){return m==="children"||m==="ref"||typeof O==="function"||O===void 0?O:function(){return _.o9(O)}};
aQ5=function(O,m,G){var B={},Q={},H={},M={},R;for(R in O){M={key$jscomp$949:M.key$jscomp$949};M.key$jscomp$949=R;var x=O[M.key$jscomp$949];if(M.key$jscomp$949==="children"||M.key$jscomp$949==="ref")B[M.key$jscomp$949]=x;else if(typeof x==="function")M.key$jscomp$949 in m||x.length>0?(H[M.key$jscomp$949]=x,B[M.key$jscomp$949]=function(W){return function(){return H[W.key$jscomp$949].apply(H,_.lS(_.eA.apply(0,arguments)))}}(M)):B[M.key$jscomp$949]=x;
else if(!(O[M.key$jscomp$949]===void 0&&M.key$jscomp$949 in m)){var t=_.K(_.Wf(O[M.key$jscomp$949],{debugName:M.key$jscomp$949+":cwis:"+G},"rvrjQe"));x=t.next().value;t=t.next().value;B[M.key$jscomp$949]=x;Q[M.key$jscomp$949]=t}}return[B,Q,function(W){var Z={},z;for(z in W)Z={key$jscomp$950:Z.key$jscomp$950,val$jscomp$123:void 0},Z.key$jscomp$950=z,Z.val$jscomp$123=W[Z.key$jscomp$950],Z.key$jscomp$950!=="children"&&Z.key$jscomp$950!=="ref"&&(typeof Z.val$jscomp$123==="function"?Z.key$jscomp$950 in
m?H[Z.key$jscomp$950]=Z.val$jscomp$123:Z.val$jscomp$123.length>0&&(H[Z.key$jscomp$950]=Z.val$jscomp$123,_.ay(new _.j9("Callback detected that was not set in the idomCompat callbacks map. Key:",Z.key$jscomp$950))):Z.key$jscomp$950 in m&&Z.val$jscomp$123===void 0||(YlS(Q,Z.key$jscomp$950),nS(function(J){return function(){Q[J.key$jscomp$950](J.val$jscomp$123)}}(Z))))}]};
e4S=function(O,m,G){var B=Sbp(O.prototype,d8z,O.prototype.behaviors);B.prototype.is=m;B.prototype.localName=m;G&&wR6(B,G);return function(Q){Q&&(B.prototype.hostElement=Q);var H=new B;H.root=H;H.hostElement=Q;return H}};
wR6=function(O,m){var G;Object.defineProperty(O.prototype,"_template",{get:function(){G===void 0&&(G=m());return G},
set:function(B){G=B},
configurable:!0,enumerable:!0})};
FDY=function(O,m,G,B){function Q(){if(!J){for(var n=new Set,I=_.K(W),S=I.next();!S.done;S=I.next()){S=S.value;for(var L=_.K(Object.getOwnPropertyNames(S)),C=L.next();!C.done;C=L.next()){C=C.value;var P=void 0,w=(P=Object.getOwnPropertyDescriptor(S,C))==null?void 0:P.value;w&&w instanceof Function&&!Rp(C)&&(!R[C]||_.V("polymer_forward_method_killswitch"))&&n.add(C)}}I=_.K(Object.entries(Object.getOwnPropertyDescriptors(O.prototype)));for(S=I.next();!S.done;S=I.next())L=_.K(S.value),S=L.next().value,
L=L.next().value,L.value instanceof Function&&!Rp(S)&&n.add(S);J=n}return J}
D8O(O,m,B==null?void 0:B.providers);E7e(O.prototype,O,!0);var H=e4S(O,m,G),M,R=(M=O.prototype.properties)!=null?M:{},x,t,W=(t=(x=O.prototype.behaviors)==null?void 0:x.flat(Infinity))!=null?t:[];G=_.K(W);for(M=G.next();!M.done;M=G.next())R=Object.assign({},M.value.properties,R);var Z=[].concat(_.lS(s5r),_.lS(Object.keys(R).map(function(n){return _.fC(n)}))),z=!1,J;
return{ctor:function(n,I){var S=H(n),L,C;n=[].concat(_.lS((L=B==null?void 0:B.allowedProps)!=null?L:[]),_.lS((C=B==null?void 0:B.allowedPropsFromBehaviors)!=null?C:[]));S.allowedProps=n.length>0?n:void 0;L={};C=_.K(Z);for(n=C.next();!n.done;n=C.next())n=n.value,L[n]=_.hc(n);S.__dataAttributes=L;var P=S.ready.bind(S);S.ready=function(){I.beforeReady();P();if(Ec(m)&&!z){var w=S.__templateInfo;if(w==null?0:w.hostProps){w=_.K(Object.keys(w.hostProps));for(var d=w.next();!d.done;d=w.next())C7(m,d.value,
"PROPERTY_ACCESS_GET_INTERNAL")}z=!0}};
S._overrideLegacyUndefined=!0;return S},
props:R,observedAttributes:Z,getInitialMethods:Q,getPropsToForwardBeforeRegister:function(){for(var n=[],I=new Set,S=_.K(Object.keys(R)),L=S.next();!L.done;L=S.next())L=L.value,n.push([L,R[L].readOnly]),I.add(L);S=Q();L=_.K(Object.keys(Object.getOwnPropertyDescriptors(O.prototype)));for(var C=L.next();!C.done;C=L.next())C=C.value,!NFr(C)||S.has(C)||I.has(C)||(n.push([C,!1]),I.add(C));I=_.K(PYr);for(S=I.next();!S.done;S=I.next())n.push([S.value,!0]);return n},
getPropsToForwardBeforeReady:function(n){for(var I=[],S=_.K(Object.entries(n)),L=S.next();!L.done;L=S.next()){var C=_.K(L.value);L=C.next().value;C=C.next().value;if(NFr(L)&&!(C instanceof Function)&&(I.push([L,!1]),Ec(m))){var P=C=void 0;(P=(C=n)._createPropertyAccessor)==null||P.call(C,L)}}return I},
shouldForwardProp:NFr,shouldLog:Ec}};
D8O=function(O,m,G){I8f(O,G);O.prototype.behaviors.unshift(ADe);if(ZMf()){if(Ec(m)){var B;(B=O.prototype).behaviors!=null||(B.behaviors=[]);O.prototype.behaviors.unshift(bMN())}n5f(O)}_.h(wX.prototype)(O.prototype,"__templateHelpers")};
Rp=function(O){return O1z.has(O)||O.startsWith("__compute__")};
NFr=function(O){return!Rp(O)&&!O.startsWith("_")&&!O.endsWith("_")};
H1e=function(O,m){function G(){var z=x();z=_.K(z);for(var J=z.next();!J.done;J=z.next()){var n=_.K(J.value);J=n.next().value;n=n.next().value;mES(Z.prototype,J,n)}B=!0}
var B=!1,Q=O.ctor,H=O.getInitialMethods,M=O.observedAttributes,R=O.getPropsToForwardBeforeReady,x=O.getPropsToForwardBeforeRegister,t=O.shouldForwardProp,W=O.shouldLog,Z=function(){var z=HTMLElement.call(this)||this;z.didForwardDynamicProps=!1;z.loggingStatus={};B||G();z.inst=Q(z,{beforeReady:function(){z.didForwardDynamicProps||(z.forwardDynamicProps(),z.didForwardDynamicProps=!0)}});
z.controllerProxy=Jop(z.inst,m);z.forwardMethods();return z};
_.X(Z,HTMLElement);Z.prototype.forwardMethods=function(){for(var z=this,J=_.K(this.inst.getExtraMethodsToForward()),n=J.next(),I={};!n.done;I={method$jscomp$63:void 0},n=J.next()){var S=_.K(n.value);n=S.next().value;S=S.next().value;I.method$jscomp$63=S;this[n]=function(L){return function(){return L.method$jscomp$63.call.apply(L.method$jscomp$63,[z.inst].concat(_.lS(_.eA.apply(0,arguments))))}}(I)}J=_.K(H());
for(I=J.next();!I.done;I=J.next())I=I.value,t(I)&&Go6(this,I),W(m)&&!Rp(I)&&BQS(this.inst,I)};
Z.prototype.forwardDynamicProps=function(){var z=R(this.inst);z=_.K(z);for(var J=z.next();!J.done;J=z.next()){var n=_.K(J.value);J=n.next().value;n=n.next().value;mES(this,J,n);W(m)&&!Rp(J)&&Q2z(this.inst,J)}};
Z.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
Z.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
Z.prototype.attributeChangedCallback=function(z,J,n){this.inst.attributeChangedCallbackWrapper(z,J,n)};
_.vr.Object.defineProperties(Z.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return m}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.vr.Object.defineProperties(Z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return M}}});
customElements.define(m,Z)};
mES=function(O,m,G){O.hasOwnProperty(m)||Object.defineProperty(O,m,{get:function(){var B,Q=((B=O.is)!=null?B:O.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||C7(Q,m,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,B=this.polymerController[m],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,B},
set:function(B){if(!G){var Q,H=((Q=O.is)!=null?Q:O.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||C7(H,m,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=m,this.loggingStatus.bypassProxyController=!0,this.polymerController[m]!==B&&(Q={},this.polymerController.setProperties((Q[m]=B,Q)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Go6=function(O,m,G){var B=O.polymerController;O[m]=function(){var Q=_.eA.apply(0,arguments);O.loggingStatus.currentExternalCall=m;O.loggingStatus.bypassProxyController=!0;var H,M=((H=O.is)!=null?H:O.tagName).toLowerCase();C7(M,m,"PROPERTY_ACCESS_CALL_EXTERNAL");var R;H=(R=G!=null?G:B[m])==null?void 0:R.call.apply(R,[B].concat(_.lS(Q)));O.loggingStatus.currentExternalCall=void 0;O.loggingStatus.bypassProxyController=!1;return H}};
BQS=function(O,m){var G=O.hostElement,B=O[m];O[m]=function(){var Q=_.eA.apply(0,arguments);if(G.loggingStatus.currentExternalCall!==m){var H,M=((H=G.is)!=null?H:G.tagName).toLowerCase();C7(M,m,"PROPERTY_ACCESS_CALL_INTERNAL")}return B==null?void 0:B.apply(O,Q)}};
Q2z=function(O,m){var G=Object.getOwnPropertyDescriptor(O,m);G&&!G.get&&Object.defineProperty(O,m,{get:function(){VXO(O.hostElement,m);return G.value},
set:function(B){ou(O.hostElement,m);G.value=B}})};
vTM=function(O){return _.V("poly_si_dom_repeat_detached_fix_killswitch")||O.tagName!=="PS-DOM-REPEAT"?O.tagName==="DOM-REPEAT":!0};
$EN=function(O,m){var G=KCp(O);O instanceof Element&&G.unshift(O);O=_.K(G.filter(vTM));for(var B=O.next();!B.done;B=O.next()){var Q=void 0;B=_.K((Q=B.value.__instances)!=null?Q:[]);for(Q=B.next();!Q.done;Q=B.next())if(Q=Q.value,Q.root){Q=Array.from(Q.root.children);Q=_.K(Q);for(var H=Q.next();!H.done;H=Q.next())G.push.apply(G,_.lS($EN(H.value,m)))}}return G.filter(function(M){return M.usePatchedLifecycles&&M.lifecycleIsConnected===m})};
KCp=function(O){var m=null;O instanceof Element?m=Element.prototype.querySelectorAll:O instanceof DocumentFragment&&(m=DocumentFragment.prototype.querySelectorAll);return m?Array.from(m.call(O,"*")):[]};
iK=function(O){t0(function(){for(var m=_.K($EN(O,!1)),G=m.next();!G.done;G=m.next()){G=G.value;G.lifecycleIsConnected=!0;try{var B=void 0,Q=void 0,H=void 0,M=void 0;(B=(M=G.polymerController)!=null?M:G)==null||(H=(Q=B).connectedCallback)==null||H.call(Q)}catch(R){_.oy(R)}}})};
xn=function(O){t0(function(){for(var m=_.K($EN(O,!0)),G=m.next();!G.done;G=m.next()){G=G.value;G.lifecycleIsConnected=!1;try{var B=void 0,Q=void 0,H=void 0,M=void 0;(B=(M=G.polymerController)!=null?M:G)==null||(H=(Q=B).disconnectedCallback)==null||H.call(Q)}catch(R){_.oy(R)}}})};
UES=function(){if(!Mv5){Mv5=!0;var O=[Node];qN&&O.push(qN.Wrapper);var m=Node.prototype.insertBefore,G=Node.prototype.removeChild;O=_.K(O);for(var B=O.next(),Q={};!B.done;Q={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},B=O.next())B=B.value,Q.nativeInsertBefore=B.prototype.insertBefore,B.prototype.insertBefore=function(M){return function(R,x){if(R instanceof DocumentFragment){var t=Array.from(R.children);R=M.nativeInsertBefore.call(this,R,x);
if(this.isConnected&&M.nativeInsertBefore===m)for(x=_.K(t),t=x.next();!t.done;t=x.next())iK(t.value);return R}t=R instanceof Element&&R.isConnected;x=M.nativeInsertBefore.call(this,R,x);t&&xn(R);this.isConnected&&iK(R);return x}}(Q),Q.nativeAppendChild=B.prototype.appendChild,B.prototype.appendChild=function(M){return function(R){if(R instanceof DocumentFragment){var x=Array.from(R.children);
R=M.nativeAppendChild.call(this,R);if(this.isConnected){x=_.K(x);for(var t=x.next();!t.done;t=x.next())iK(t.value)}return R}x=R instanceof Element&&R.isConnected;t=M.nativeAppendChild.call(this,R);x&&xn(R);this.isConnected&&iK(R);return t}}(Q),Q.nativeRemoveChild=B.prototype.removeChild,B.prototype.removeChild=function(M){return function(R){var x=R instanceof Element&&R.isConnected,t=M.nativeRemoveChild.call(this,R);
x&&G===M.nativeRemoveChild&&xn(R);return t}}(Q),Q.nativeReplaceChild=B.prototype.replaceChild,B.prototype.replaceChild=function(M){return function(R,x){if(R instanceof DocumentFragment){var t=Array.from(R.children);
R=M.nativeReplaceChild.call(this,R,x);if(this.isConnected)for(xn(x),x=_.K(t),t=x.next();!t.done;t=x.next())iK(t.value);return R}t=R instanceof Element&&R.isConnected;var W=this.isConnected,Z=M.nativeReplaceChild.call(this,R,x);W&&xn(x);t&&xn(R);W&&iK(R);return Z}}(Q);
O=[Element];qN&&O.push(qN.Wrapper);O=_.K(O);B=O.next();for(Q={};!B.done;Q={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},B=O.next())B=B.value,B.prototype.before=rkf(B.prototype.before),B.prototype.after=rkf(B.prototype.after),Q.nativeReplaceWith=B.prototype.replaceWith,B.prototype.replaceWith=function(M){return function(){var R=_.eA.apply(0,arguments),x=_.K(Rnz(R)),t=x.next().value,
W=x.next().value;x=this.isConnected;M.nativeReplaceWith.apply(this,R);R=_.K(W);for(W=R.next();!W.done;W=R.next())xn(W.value);if(x)for(xn(this),t=_.K(t),x=t.next();!x.done;x=t.next())x=x.value,x instanceof Element&&iK(x)}}(Q),Q.nativeRemove=B.prototype.remove,B.prototype.remove=function(M){return function(){var R=this.isConnected;
M.nativeRemove.call(this);R&&xn(this)}}(Q),Q.nativeInsertAdjacentElement=B.prototype.insertAdjacentElement,B.prototype.insertAdjacentElement=function(M){return function(R,x){var t=x.isConnected;
R=M.nativeInsertAdjacentElement.call(this,R,x);t&&xn(x);R.isConnected&&iK(R);return R}}(Q),Q.nativeSetAttribute=B.prototype.setAttribute,B.prototype.setAttribute=function(M){return function(R,x){var t=i1z(this);
if(!t.usePatchedLifecycles)return M.nativeSetAttribute.call(this,R,x);var W=this.getAttribute(R);M.nativeSetAttribute.call(this,R,x);x=this.getAttribute(R);xES(t,R,W,x)}}(Q),Q.nativeRemoveAttribute=B.prototype.removeAttribute,B.prototype.removeAttribute=function(M){return function(R){var x=i1z(this);
if(!x.usePatchedLifecycles)return M.nativeRemoveAttribute.call(this,R);var t=this.getAttribute(R);M.nativeRemoveAttribute.call(this,R);t!==null&&xES(x,R,t,null)}}(Q),Q.nativeToggleAttribute=B.prototype.toggleAttribute,B.prototype.toggleAttribute=function(M){return function(R,x){var t=i1z(this);
if(!this.usePatchedLifecycles)return M.nativeToggleAttribute.call(this,R,x);var W=this.getAttribute(R),Z=W!==null;x=M.nativeToggleAttribute.call(this,R,x);x!==Z&&xES(t,R,W,x?"":null);return x}}(Q);
O=[Document,DocumentFragment,Element,ShadowRoot];qN&&O.push(qN.Wrapper);O=_.K(O);for(Q=O.next();!Q.done;Q=O.next())Q=Q.value,Q.prototype.prepend=rkf(Q.prototype.prepend),Q.prototype.append=rkf(Q.prototype.append);(qN==null?void 0:qN.noPatch)===!0&&qY5();document.readyState==="complete"?iK(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&iK(document.body)});
var H=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");H&&H.get&&H.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:H.enumerable,configurable:!0,get:H.get,set:function(M){M||xn(this);H.set.call(this,M);return M}})}};
rkf=function(O){return function(){var m=_.eA.apply(0,arguments),G=_.K(Rnz(m)),B=G.next().value;G=G.next().value;O.apply(this,m);m=_.K(G);for(G=m.next();!G.done;G=m.next())xn(G.value);if(this.isConnected)for(B=_.K(B),m=B.next();!m.done;m=B.next())m=m.value,m instanceof Element&&iK(m)}};
qY5=function(){for(var O=_.K(tvz),m=O.next();!m.done;m=O.next()){m=m.value.prototype;for(var G=_.K(WCp),B=G.next();!B.done;B=G.next()){B=B.value;var Q=Object.getOwnPropertyDescriptor(m,B);Q&&Object.defineProperty(m,"__shady_native_"+B,Q)}}};
xES=function(O,m,G,B){var Q,H;if((Q=O.polymerController)==null?0:(H=Q.observedAttributes)==null?0:H.includes(m))if(O=O.polymerController,O.attributeChangedCallbackWrapper)O.attributeChangedCallbackWrapper.call(O,m,G,B);else{var M;(M=O.attributeChangedCallback)==null||M.call(O,m,G,B)}};
Rnz=function(O){var m=[],G=[];O=_.K(O);for(var B=O.next();!B.done;B=O.next())B=B.value,B instanceof Element&&B.isConnected&&G.push(B),B instanceof DocumentFragment?m.push.apply(m,_.lS(Array.from(B.children))):m.push(B);return[m,G]};
i1z=function(O){return!(O instanceof Element)&&O.node instanceof Element?O.node:O};
Z1f=function(O,m){var G=m?["children"].concat(_.lS(m)):["children"];m=[];G=_.K(G);for(var B=G.next();!B.done;B=G.next()){var Q=B.value;if(O.hasOwnProperty(Q)){B=O[Q];B=typeof B==="function"?B():B;B=Array.isArray(B)?B:[B];B=bz(B).flat();if(Q!=="children"){Q=fdY(Q);for(var H=_.K(B),M=H.next();!M.done;M=H.next())M=M.value,M instanceof Element&&M.setAttribute("slot",Q)}m.push(B)}}m.length===0?O=[]:(O=bz(_.q("div",null,m)),O=Array.from(O.childNodes));return O};
Jke=function(O,m,G){var B={};_.lF(function(){var Q={},H;for(H in m)if(m.hasOwnProperty(H)){var M=void 0,R=void 0;if(!(((M=G.slotProps)==null?0:M.includes(H))||H==="children"||((R=G.callbackProps)==null?0:R.includes(H))||H==="ref")&&(M=_.o9(m[H]),B[H]!==M)){B[H]=M;R=void 0;var x=(R=O.hostElement)!=null?R:O;znN.has(H)&&(x[H]=M);Q[H]=M}}nS(function(){if(O.setProperties)O.setProperties(Q);else for(var t=_.K(Object.entries(Q)),W=t.next();!W.done;W=t.next()){var Z=_.K(W.value);W=Z.next().value;Z=Z.next().value;
O[W]=Z}})})};
b1Y=function(O,m,G,B){var Q=Z1f(G,B.slotProps),H=(0,_.bc)(O);Q=_.K(Q);for(var M=Q.next();!M.done;M=Q.next())H.appendChild(M.value);Jke(m,G,B);B=_.K(B.callbackProps||[]);Q=B.next();for(H={};!Q.done;H={kebabEventName:void 0,eventListener:void 0},Q=B.next())M=Q=Q.value,String(Q).substring(0,2)==="on"&&G[M]?(H.kebabEventName=fdY(String(Q).substring(2)),H.eventListener=G[M],O.addEventListener(H.kebabEventName,H.eventListener),_.LS(function(W){return function(){O.removeEventListener(W.kebabEventName,W.eventListener)}}(H))):
m[M]=G[M];
if(G.ref){G=_.K(VvN(G.ref));var R=G.next().value,x=G.next().value,t=m.attached.bind(m);m.attached=function(){R(O);t()};
_.LS(function(){x()})}};
VvN=function(O){if(typeof O==="function"){var m;return[function(G){m=O(G)},
function(){var G;(G=m)==null||G()}]}if(!O.onRender||!O.onUnmount)throw Error("Xg");
return[O.onRender,O.onUnmount]};
hnr=function(O,m,G,B,Q){B=B===void 0?{}:B;var H=nTS,M=!1;H?(M=!0,nTS=void 0):(X_5=m,H=document.createElement(m),X_5=void 0);var R=H;R.usePatchedLifecycles=!0;R.lifecycleIsConnected=!1;H.loggingStatus={};var x=fis(O,m,H,B,Q);_.LS(function(){R.lifecycleIsConnected&&(R.lifecycleIsConnected=!1,x.disconnectedCallback())});
M||(H.__noInsertionPoint=!0,b1Y(H,x,G,B));return H};
fis=function(O,m,G,B,Q){Q=Q===void 0?FDY:Q;TQ6[m]!=null||(TQ6[m]=Q(O,m,B==null?void 0:B.getTemplate,B));var H=TQ6[m],M=H.ctor;Q=H.getInitialMethods;var R=H.getPropsToForwardBeforeReady;O=H.getPropsToForwardBeforeRegister;B=H.shouldForwardProp;var x=H.observedAttributes,t=H.shouldLog,W=M(G,{beforeReady:function(){var Z=W;Z._takeAttributes?Z._takeAttributes():Z.setPropertiesFromInitialAttributeValues&&Z.setPropertiesFromInitialAttributeValues();Z=_.K(R(G.polymerController));for(var z=Z.next();!z.done;z=
Z.next()){var J=_.K(z.value);z=J.next().value;J=J.next().value;mES(G,z,J);t(m)&&!Rp(z)&&Q2z(G.polymerController,z)}G.polymerController=Jop(W,m)}});
G.polymerController=W;G.polymerController.observedAttributes=x;H=_.K(W.getExtraMethodsToForward());for(M=H.next();!M.done;M=H.next())x=_.K(M.value),M=x.next().value,x=x.next().value,Go6(G,M,x);Q=_.K(Q());for(H=Q.next();!H.done;H=Q.next())H=H.value,B(H)&&Go6(G,H),t(m)&&!Rp(H)&&BQS(W,H);O=_.K(O());for(B=O.next();!B.done;B=O.next())Q=_.K(B.value),B=Q.next().value,Q=Q.next().value,mES(G,B,Q);return W};
gTe=function(O){var m=Uz;Uz=O;return m};
j2M=function(O){if(t1.has(O)&&Uz&&uxe(Uz)===O){var m;(m=Uz)._numRenders!=null||(m._numRenders=0);Uz._numRenders++;if(Uz._numRenders>1)throw Error("Yg");return Uz}};
IiY=function(O){t1.has(uxe(O))&&Uz!==O&&(O._isInert=!0)};
uxe=function(O){var m;return(m=O==null?void 0:O.tagName.toLowerCase())!=null?m:""};
p_N=function(O,m){if(O.componentType===uF)throw Error("Zg");t1.add(m);var G=function(){var B=HTMLElement.call(this)||this;B.is=m;if(X_5===m)return B.isInert=!0,B;B.createElement();return B};
_.X(G,HTMLElement);G.prototype.createElement=function(){if(!this.isInert){nTS=this;var B=_.K(_.TDp(function(){return _.q(O,null)})).next().value;
nTS=void 0;VON(this);return B}};
customElements.define(m,G)};
ETf=function(O,m,G,B,Q){O.prototype.is=m;(B==null?0:B.useSink)?SYS(O,m,G,B,Q):(G=FDY(O,m,G,B),H1e(G,m));return O};
SYS=function(O,m,G,B,Q){UES();var H=_.a(function(M){return hnr(O,m,M,Object.assign({},B,{getTemplate:G}),Q)},"a");
H.debugName=m+" (CoW wrapped)";p_N(H,m);return H};
CiY=function(O){return!LCS.has(O)};
ai6=function(O,m,G,B){function Q(){if(!Z){for(var z=new Set(oTf),J=_.K(H.behaviors),n=J.next();!n.done;n=J.next()){n=n.value;for(var I=_.K(Object.getOwnPropertyNames(n)),S=I.next();!S.done;S=I.next()){S=S.value;var L=void 0,C=(L=Object.getOwnPropertyDescriptor(n,S))==null?void 0:L.value;C&&C instanceof Function&&(!t[S]||_.V("polymer_forward_method_killswitch"))&&z.add(S)}}J=_.K(Object.entries(Object.getOwnPropertyDescriptors(O.prototype)));for(n=J.next();!n.done;n=J.next())I=_.K(n.value),n=I.next().value,
I=I.next().value,I.value instanceof Function&&z.add(n);Z=z}return Z}
var H=V$f({is:m,disableElementRegistration:!1,getTemplate:G,providers:B==null?void 0:B.providers,reactivityMode:B==null?void 0:B.reactivityMode},O);if((B==null?0:B.allowedProps)||(B==null?0:B.allowedPropsFromBehaviors)){var M,R;H.allowedProps=[].concat(_.lS((M=B.allowedProps)!=null?M:[]),_.lS((R=B.allowedPropsFromBehaviors)!=null?R:[]))}var x=qlI(H,O);m=x.observedAttributes;var t={};G=_.K(H.reactiveSchemas);for(B=G.next();!B.done;B=G.next())if(B=B.value,B.type==="signal")t[B.propertyKey]={readOnly:B.readOnly},
B.readOnly&&(t[dRf(B.propertyKey)]={readOnly:!0});else if(B.type==="compute"||B.type==="computeWithMethod"||B.type==="redux")t[B.propertyKey]={readOnly:!0};var W=H.reactiveSchemas.length,Z;return{ctor:function(z,J){z=new x(z);z.beforeReady=J.beforeReady;return z},
props:t,observedAttributes:m,getInitialMethods:Q,getPropsToForwardBeforeRegister:function(){for(var z=[],J=new Set,n=_.K(liM),I=n.next();!I.done;I=n.next())I=I.value,z.push([I,I!=="observers"&&I!=="properties"]),J.add(I);n=_.K(Object.keys(t));for(I=n.next();!I.done;I=n.next())I=I.value,z.push([I,t[I].readOnly]),J.add(I);n=Q();I=_.K(Object.keys(Object.getOwnPropertyDescriptors(O.prototype)));for(var S=I.next();!S.done;S=I.next())S=S.value,!CiY(S)||n.has(S)||J.has(S)||(z.push([S,!1]),J.add(S));z.push(["allowedProps",
!0]);return z},
getPropsToForwardBeforeReady:function(z){var J=[];z=_.K(Object.keys(z));for(var n=z.next();!n.done;n=z.next()){n=n.value;var I=Q();CiY(n)&&!I.has(n)&&J.push([n,!1])}z=_.K(H.reactiveSchemas.slice(W));for(n=z.next();!n.done;n=z.next())n=n.value,n.type!=="compute"&&n.type!=="computeWithMethod"&&n.type!=="redux"&&n.type!=="signal"||J.push([n.propertyKey,n.type==="signal"?n.readOnly:!0]);return J},
shouldForwardProp:CiY,shouldLog:Ec}};
_.y=function(O,m,G,B){var Q,H,M=(H=(Q=B)==null?void 0:Q.mode)!=null?H:0;B!=null||(B={});var R;(R=B).reactivityMode!=null||(R.reactivityMode=0);M===1&&_.Ue("creator_poly_si_disable_list").includes(m)&&(M=2);return M===1?ETf(O,m,G,Object.assign({},B,{useSink:!0}),ai6):ETf(O,m,G,Object.assign({},B,{useSink:M===2}))};
_.WE=function(){return function(O,m,G,B){var Q,H,M=(H=(Q=B)==null?void 0:Q.mode)!=null?H:2;B!=null||(B={});var R;(R=B).reactivityMode!=null||(R.reactivityMode=0);if(M===0)throw Error("$g`"+M);return SYS(O,m,G,B,M===1?ai6:void 0)}};
_.ZB=function(O){return _.V("creator_poly_si_killswitch")?!1:_.V("force_all_poly_si_batches")&&(O==="poly_si_all_on_test_check"||O==="creator_poly_si_batch_050"?0:O)||document.documentElement.hasAttribute("use-signals")?!0:!O||_.V(O+"_holdback_enabled")&&_.V("kevlar_polysi_holdback")?!1:_.V(O)};
zS=function(O){return O?O.icon?O.icon.iconType.toLowerCase():O.customThumbnail?"member":"":""};
koN=function(O){if(!O)return"";O=_.K(O);for(var m=O.next();!m.done;m=O.next())if((m=m.value)&&m.liveChatAuthorBadgeRenderer&&(m=zS(m.liveChatAuthorBadgeRenderer))&&m!=="verified")return m;return""};
ykN=function(O,m){if(!O)return null;var G;return((G=O.find(function(B){return B&&B.liveChatAuthorBadgeRenderer?zS(B.liveChatAuthorBadgeRenderer)===m:!1}))==null?void 0:G.liveChatAuthorBadgeRenderer)||null};
_.DEs=function(O){var m=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;O=ckf(O);m=ckf(m);var G=YYN(O.hex);m=YYN(m.hex);var B=m[0]/255;var Q=m[1]/255,H=m[2]/255,M=Math.max(B,Q,H),R=Math.min(B,Q,H),x=0,t=0,W=.5*(M+R);M!=R&&(M==B?x=60*(Q-H)/(M-R):M==Q?x=60*(H-B)/(M-R)+120:M==H&&(x=60*(B-Q)/(M-R)+240),t=0<W&&W<=.5?(M-R)/(2*W):(M-R)/(2-2*W));B=[Math.round(x+360)%360,t,W];G=dEO(G,m);for(O=w_6(O.hex);G<4.5;){O=B[2]>=.5?O.darker((4.5-G)/2):O.brighter((4.5-G)/2);G=O.toString();
Q=enz(G);if(!Q.length)throw Error("Wd`"+G);G=Q;G=dEO(G,m)}return O.hex()};
dEO=function(O,m){O=_.pop(O);m=_.pop(m);return(Math.max(O,m)+.05)/(Math.min(O,m)+.05)};
_.J1=function(O){return"#"+("000000"+(O&16777215).toString(16)).slice(-6)};
_.s2S=function(O){for(var m=0,G=0;G<O.length;G++)m=O.charCodeAt(G)+((m<<5)-m);O="#";for(G=0;G<3;G++)O+=("00"+(m>>G*8&255).toString(16)).slice(-2);return O};
NQz=function(O){O=(O||"").split(":");O.length===1&&O.unshift("yt-icons");O[1]=O[1].toLowerCase();return O};
GGs=function(O,m){var G=(m=m===void 0?!1:m)?Pip:FCp,B=m?Ak6:OFe;O.getIconNames().forEach(function(Q){Q=m?Q:Q.substring(Q.indexOf(":")+1);O.name==="yt-icons"?mA5.add(Q):Q.includes("-filled")?G.add(Q):B.add(Q)})};
Va=function(O,m,G,B){G=G===void 0?!1:G;B=B===void 0?!1:B;var Q,H,M;return _.r(function(R){if(R.nextAddress==1)return R.yield(BP5,2);if(B)return R.return(mA5.has(O));Q=G?Pip:FCp;H=G?Ak6:OFe;return m?(M=O.includes("-filled")?O:O.concat("-filled"),R.return(Q.has(M))):R.return(H.has(O))})};
_.vlN=function(O){if(Qzp(O))return O;var m=O=O.toLowerCase();(O=HFM.get(O))&&(m=O);return m};
_.bK=function(O){if(Qzp(O))return O.toString();var m=Kjp.get(O);if(m)return m;m=O.toLowerCase();var G="yt-icons",B=m.replace(/_/g,"-");switch(O){case "MY_CHANNEL":m="account_circle";break;case "ADD_TO_LIBRARY":m="add";break;case "ALERT_WARN_RED":m="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":m="person_music";break;case "BLOCK_USER":m="block";break;case "CAPTIONS":m="closed_caption";break;case "CLOSED_CAPTION":G="av";m="closed-caption";break;case "COLLECTION":G="maps";m="layers";break;case "CONTACT":G=
"icons";m="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":G="ytcp-icons";m=B.split("creator-studio-")[1];break;case "DISMISSAL":m="close";break;case "DO_NOT_DISTURB":m="block";break;case "DOGFOOD":G="icons";m="pets";break;case "DRAFT":m="paper_corner_folded";break;
case "EMPTY_LIKE":m="like_outline";break;case "EXIT_APP":m="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":m=B;break;case "GAMES":G="ytg";m="my-games";break;case "GO_TO_PAGE":m="arrow-forward";break;case "GROUP":G="social";break;case "HIDE":m="not_interested";break;case "INPUT_COMPONENT":G="icons";m="settings-input-component";break;case "KIDS_BLOCK":m="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":G="ytg";m="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":G=
"ytg";m="membership-post-purchase";break;case "MULTIVIEW":m="screen_multi_view";break;case "MY_LOCATION":G="maps";m=B;break;case "NOTIFICATIONS_INBOX":m="NOTIFICATIONS";break;case "NEXT":m="chevron_right";break;case "OFFLINE":m="power-settings-new";break;case "PAUSE":G="miniplayer";break;case "PAYMENT":G="icons";break;case "PHONE_DOWNLOAD":m="phone_download";break;case "PREMIUM_STANDALONE":G="yt-logos";m="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":G="yt-logos";m="premium_standalone_cairo";
break;case "QUESTION_ANSWER":m="question_answer";break;case "REDEEM":G="icons";m="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":m="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":m="library_add";break;case "SCHOOL":G="yt-sys-icons";m="creator_academy";break;case "SETTINGS_LIGHT":m="settings_applications";break;case "SETTINGS_MATERIAL":m="settings";break;case "SEARCH_HISTORY":m="watch_history";break;case "SHOPPING_BAG":m="bag";break;case "SOCIAL":case "PEOPLE":G=
"yt-icons";m="people";break;case "STAFF_PICK":G="ytg";m="spotlight";break;case "START_DVR":m="add";break;case "STOP_DVR":G="av";m="stop";break;case "TAB_LIKED":m="like";break;case "TAB_INBOX":m="mail";break;case "TERMS_OF_SERVICE":G="icons";m="description";break;case "TRENDING":m="fire";break;case "UNBLOCK_USER":m="remove";break;case "UNPLUGGED_DARK_THEME":G="image";m="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":m="live";break;case "UNPLUGGED_SPORTS":G="ytu";m="visibility-off";break;
case "VIDEOS":G="av";m="play-circle-filled";break;case "YOUTUBE":G="yt-logos";m="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":G="yt-logos-ext";m="yt-logo-red-updated";break;case "YOUTUBE_LOGO":G="yt-logos-ext";m="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":G="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":G="shorts";m=B;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":G="yt-sys-icons";m="youtube_improve_tv";break;case "OUTLINE_BAG":G=
"yt-sys-icons";m="bag";break;case "QUEUE_PLAY_LAST":G="yt-sys-icons";m="list_queue_last";break;case "SLASH_CIRCLE_LEFT":m="slash_circle_left";break;case "SPEED_1_POINT_2X":m="1_point_2x";break;case "SPEED_1_POINT_5X":m="1_point_5x";break;case "SPEED_1_POINT_8X":m="1_point_8x";break;case "SPEED_POINT_2X":m="point_2x";break;case "SPEED_POINT_5X":m="point_5x";break;case "SPEED_POINT_8X":m="point_8x";break;case "SPEED_1X":m="1x";break;case "SPEED_2X":m="2x";break;case "TAB_BOOKMARK":m="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":G="yt-sys-icons";m="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":G="yt-sys-icons";m="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":G="yt-sys-icons",m="tic_tac_toe"}m=G+":"+m;Kjp.set(O,m);return m};
Qzp=function(O){var m;_.V("kevlar_use_wil_icons")?m=!!_.KR().resolve(_.nm).resolveIcon({iconName:O.toString()}):m=!1;return m};
_.fm=function(O,m,G,B){G=G===void 0?{}:G;B=B===void 0?!1:B;G===null&&(G={});var Q=_.Ue("kevlar_command_handler_command_banlist");Q=_.K(Q);for(var H=Q.next();!H.done;H=Q.next())if(H=O?O.hasOwnProperty(H.value):void 0,H)return!1;Q=_.b(O.commandMetadata,_.bP);return B&&Q!=null&&Q.url?!1:!m.disableCommandHandlerOverride&&_.XJ.instance?(B=_.XJ.instance,G.form||(G.form={element:m}),G.form.element||(G.form.element=m),!G.clickedVisualElement&&m.visualElement&&(G.clickedVisualElement=m.visualElement),B.resolveCommand(O,
G),!0):!1};
$AN=function(O,m){O=h1(O);for(var G=_.K(O.visibilityMonitorKeys||[]),B=G.next();!B.done;B=G.next())m.unobserveByKey(B.value);O.visibilityMonitorKeys=void 0};
iFr=function(O,m){if(_.yA()){if(_.V("kevlar_vimio_use_shared_monitor"))Mme(O,m.data);else if(!Mme(O,m.data))return;var G=m.data,B=r95(G);if(_.V("enable_client_ve_spec_logging"))$AN(O,m.observer);else{var Q=h1(O);Q.trackedParams&&Q.trackedParams!==B&&$AN(O,m.observer)}Q=h1(O);!G||Q.data&&Q.data===G||(Q.data=G);Rgr(O,m);Q.trackedParams=B}};
Rgr=function(O,m){var G=m.observer;if(!G&&_.V("web_skip_missing_vimio_observer")){var B,Q;_.ay(new _.j9("VisibilityObserver is not defined.",O.tagName,O.trackedParams,(B=m.data)==null?void 0:B.trackingParams,(Q=m.data)==null?void 0:Q.loggingDirectives))}else{var H=m.layer,M=m.visibilityCallback||function(){},R=m.prescanCallback,x=h1(O);
B=[];m.showOption&&B.push(G.observe(O,function(){m.skipLogging&&m.skipLogging()||_.TS().reportShown(x,void 0,H);M(!0)},m.showOption));
m.hideOption&&B.push(G.observe(O,function(){_.TS().reportHidden(x,void 0,H);M(!1)},m.hideOption));
m.prescanOption&&R&&B.push(G.observe(O,function(){R()},m.prescanOption));
x.visibilityMonitorKeys=B}};
Mme=function(O,m){O=h1(O);if(O.visualElement&&!m)return!0;if(!m)return!1;var G=!1;if(_.V("enable_client_ve_spec_logging")){var B,Q;G=!!((B=m.loggingDirectives)==null?0:(Q=B.clientVeSpec)==null?0:Q.uiType)}B=r95(m);if(!B&&!G)return!1;_.V("mweb_component_visibility_logging")&&(O.veContainer||(O.veContainer={}),O.veContainer.trackingParams=B);if(O.trackedParams&&O.trackedParams===B)return!1;var H;if(_.V("enable_client_ve_spec_logging")&&((H=O.visualElement)==null?0:H.isClientVe())){var M;H=(M=O.visualElement)==
null?void 0:M.getAsJspb();var R,x,t,W;if(_.ij(H,2)===((R=m.loggingDirectives)==null?void 0:(x=R.clientVeSpec)==null?void 0:x.uiType)&&_.ij(H,3,-1)===((t=m.loggingDirectives)==null?void 0:(W=t.clientVeSpec)==null?void 0:W.elementIndex))return!1}if(_.V("enable_client_ve_spec_logging")){var Z,z;!O.visualElement&&((Z=m.loggingDirectives)==null?0:(z=Z.clientVeSpec)==null?0:z.uiType)&&(R=m.loggingDirectives.clientVeSpec,m=R.uiType,M=R.elementIndex,R=R.clientYoutubeData,O.visualElement=_.gu(_.uK(),{veType:m,
elementIndex:M,clientYouTubeData:R}))}return!0};
r95=function(O){if(O==null?0:O.rendererContext){var m=_.b(O.rendererContext,_.jg);if(m==null?0:m.loggingDirectives)return m.loggingDirectives.trackingParams}return(O==null?0:O.loggingDirectives)?O.loggingDirectives.trackingParams:O==null?void 0:O.trackingParams};
h1=function(O){var m;return(m=O.polymerController)!=null?m:O};
tm6=function(O){_.TS();if(_.wi(Ip().JSC$12571_elementShouldLogGesture).bind(Ip())(O,4)){xAz(O);var m=q4N(O);UAI.set(O,m)}};
xAz=function(O){UAI.has(O)&&(UAI.get(O).cancel("untrack hover element"),UAI.delete(O))};
q4N=function(O){var m,G=[],B=!1,Q=new _.zH(function(H,M){pm(O,"mouseenter",_.wi(function(){var R,x,t;return _.r(function(W){if(W.nextAddress==1)return m=(0,_.$G)(),R=WjM(O),G.push(R),x=ZFN(O,function(){B=!0;M(Error("ah"))}),W.yield(R,2);
if(W.nextAddress!=3)return x&&Sg(x),t=zgO(O),G.push(t),W.yield(t,3);H();_.ju(W)})}))});
Q.then(function(){var H=(0,_.$G)()-m;H=Math.round(H);if(!(500>H||6E5<=H)){var M=O.getScreenLayer?O.getScreenLayer():void 0;M=_.yA(M)||"";var R=J9Y(_.TS(),O);_.Bq(M,O.visualElement?O.visualElement:_.Ez(R),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:H}})}tm6(O)},function(){Lm&&(Lm(),Lm=null);
B&&(xAz(O),tm6(O))});
return Q};
WjM=function(O){var m;return(new _.zH(function(G,B){Lm=function(){B(Error("bh"))};
m=_.ln.debounce(_.wi(function(){Sg(Q);G()}),1,100);
var Q=_.Cm(O,"mousemove",m)})).thenCatch(function(){var G=_.ln.cancelDebouncedJobMap.get(m);
G&&_.ln.cancelJob(G)})};
zgO=function(O){var m;return(new _.zH(function(G,B){Lm=function(){B(Error("ch"))};
m=pm(O,"mouseleave",_.wi(function(){G()}))})).thenCatch(function(){Sg(m)})};
ZFN=function(O,m){return pm(O,"mouseleave",_.wi(m))};
bFf=function(O){VmN&&_.op.cancel(VmN);VmN=_.op.run(function(){_.iP(O,"yt-visibility-refresh");VmN=0})};
nlp=function(O){O=Number(O);return"rgba("+[O>>16&255,O>>8&255,O&255,(O>>24&255)/255].join()+")"};
flf=function(O){if(!O)return!1;if(_.b(O,_.XZs))return!0;var m;if(O=(m=_.b(O,_.zC))==null?void 0:m.commands)for(m=_.K(O),O=m.next();!O.done;O=m.next())if(_.b(O.value,_.XZs))return!0;return!1};
hg5=function(O){var m=!0;m=m===void 0?!0:m;if(!O.useSignals&&!O.experimentalPropertiesChanged||_.V("experimental_templating_behavior_nopatch_killswitch")){var G=O._propertiesChanged;O._propertiesChanged=function(B,Q,H){m?O.debounceRender():O.doRender();G&&G.call(O,B,Q,H)}}};
TPr=function(O,m){if(O.useSignals||O.experimentalPropertiesChanged)if(_.V("experimental_templating_behavior_nopatch_killswitch"))O.experimentalPropertiesChanged=function(){};
else return;var G=new Set,B=[O].concat(_.lS(O.behaviors));B=_.K(B);for(var Q=B.next();!Q.done;Q=B.next()){Q=Q.value;for(var H in Q.properties)G.has(H)||(O._addPropertyEffect(H,"function",m),G.add(H))}};
glI=function(){var O=Polymer.Element,m=O._prepareTemplate;O._prepareTemplate=function(){m.call(this);var G=this.prototype;if(G.experimentalTemplatingInUse&&G.experimentalTemplatingInUse()&&G.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.oy(Error("dh"));else{G=this.template.content.childNodes;for(var B=G.length-1;B>=0;B--){var Q=G[B];Q.nodeName!=="STYLE"&&Q.nodeName!=="LINK"&&Q.nodeName!=="SCRIPT"&&Q.nodeName!=="#comment"&&Q.remove()}}}};
u65=function(O){var m=!0;m=m===void 0?!0:m;glI();var G=O.ready;O.ready=function(){this._template=null;G.call(this)};
TPr(O,m?O.debounceRender:O.doRender)};
Ilf=function(O,m,G){if(G===null||G===void 0)return G;var B=RWN(O.tagName.toLowerCase(),m,function(){throw Error("Wb");});
if(B===null)return G;B=jzM[B];var Q;if((Q=B.isUnwrappable)==null?0:Q.call(B,G)){if(B.unwrap)return B.unwrap(G);throw Error("gh");}return B.filterString?B.filterString(O.tagName,m,String(G)):G};
pZS=function(O,m,G){var B=m[m.length-1]!=="$",Q=Ilf(O,m,G);if(B)if(typeof Q==="function"&&m.startsWith("reactiveon")&&m===m.toLowerCase()){var H=Qj;JJp(O,m.slice(8),function(M){a9(H,function(){Q(M)})})}else O[m]=Q;
else G=Q==null?null:String(Q),cf(O,m.slice(0,-1),G)};
ap=function(O){S4e.length===0&&requestAnimationFrame(function(){setTimeout(function(){var m=S4e.slice();S4e.length=0;m=_.K(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;try{G()}catch(B){_.lK(B)}}})});
S4e.push(O)};
Elz=function(O){if(O){var m=O.component;if(m){var G;m==null||(G=m.events)==null||G.publish("DISCONNECTED");var B;m==null||(B=m.onDisconnected)==null||B.call(m)}var Q,H;(Q=O.__spec)==null||(H=Q.didUnmount)==null||H.call(Q);for(m=0;m<O.childNodes.length;m++)Elz(O.childNodes[m])}};
Ljr=function(O,m,G){var B=m&&m.key,Q=mm;Q[0]=O;Q[1]=B;Q[2]=void 0;for(var H in m)m.hasOwnProperty(H)&&(O=m[H],B=Gn,B.push(H),B.push(O));m=mm;a:{if(H=mm[2])for(O=0;O<H.length;O+=2)if(H[O]==="nonce"){H=H[O+1];break a}H=""}H=SD5(m[0],m[1],H);O=wh(H);B=m[2];if(!O.staticsApplied&&(O.staticsApplied=!0,B&&B.length))if((Q=O._attrsArr)&&Q.length){for(Q=0;Q<B.length;Q+=2)kn[B[Q]]=Q+1;Q=O._attrsArr||(O._attrsArr=zWp(0));for(var M=0,R=0;R<Q.length;R+=2){var x=Q[R],t=Q[R+1],W=kn[x];W?B[W]===t&&delete kn[x]:(Q[M]=
x,Q[M+1]=t,M+=2)}yj(Q,M);for(var Z in kn)f15(H,Z,B[kn[Z]],He),delete kn[Z]}else for(Z=0;Z<B.length;Z+=2)f15(H,B[Z],B[Z+1],He);yJ5(H,O,He);yj(m,0);G&&G(eE);EVY()};
_.ya=function(O,m,G){G===void 0?delete O[m.name]:O[m.name]=G};
_.cE=function(O){var m={androidIncludeFontPadding:!1},G=0,B=[],Q=[],H=[];if(O.simpleText)return m.content=O.simpleText,m;if(O.runs===void 0)return m.content="",m;O=_.K(O.runs);for(var M=O.next();!M.done;M=O.next()){M=M.value;var R=M.text,x=void 0,t=(x=R)==null?void 0:x.length;if(R&&t){B.push(R);if(M.bold||M.italics||M.strikethrough||M.underline||M.textColor!=null&&M.textColor!==0||M.deemphasize){R=Q;x=R.push;var W={startIndex:G,length:t};M.bold&&(W.weightLabel="FONT_WEIGHT_MEDIUM");M.italics&&(W.italic=
!0);M.strikethrough&&(W.strikethrough="LINE_STYLE_SINGLE");M.underline&&(W.underline="LINE_STYLE_SINGLE");M.textColor!=null&&M.textColor!==0?document.documentElement.hasAttribute("dark")?W.fontColor=M.darkModeTextColor||M.textColor:W.fontColor=M.textColor:M.deemphasize&&(document.documentElement.hasAttribute("dark")?W.fontColor=parseInt("ff"+Cx6("#aaa").substring(1),16):W.fontColor=parseInt("ff"+Cx6("#606060").substring(1),16));x.call(R,W)}M.navigationEndpoint&&(R=H,x=R.push,W={startIndex:G,length:t,
onTap:{innertubeCommand:M.navigationEndpoint}},M.loggingDirectives&&_.ya(W,olS,M.loggingDirectives),x.call(R,W));G+=t}}m.content=B.join("");m.styleRuns=Q.length?Q:void 0;m.commandRuns=H.length?H:void 0;return m};
als=function(O){if(O==null||!O.runs)return!0;O=_.K(O.runs);for(var m=O.next();!m.done;m=O.next())if(m=m.value,m.bracket||m.errorUnderline||m.deemphasize||_.b(m,Yn)||_.b(m,llN))return!1;return!0};
kGI=function(O,m){return function(G){var B=m.unit;if(B!==G)throw Error("jh`"+O+"`"+B+"`"+G);return m}};
du=function(O){if(!((O==null?0:O.value)&&(O==null?0:O.unit)))return"";switch(O.unit){case "DIMENSION_UNIT_FRACTION":var m="%";break;default:m="px"}O=O.value;m==="%"&&(O*=100);return""+O+m};
y9N=function(O){try{return O()}catch(m){_.ay(m)}};
_.eg=function(O){var m=_.b(O,_.wu);if(m)return m;if((m=_.b(O,c96))&&m.commands)return Y4e(m.commands);if((m=_.b(O,dAI))&&m.commands)return Y4e(m.commands);if((O=_.b(O,wZe))&&O.identifier&&O.command&&(egp||(egp=[]),!egp.includes(O.identifier)))return egp.push(O.identifier),_.b(O.command,_.wu)};
Y4e=function(O){if(O.length!==0){var m=[];O=_.K(O);for(var G=O.next();!G.done;G=O.next())(G=_.eg(G.value))&&m.push(G);return{commandExecutorCommand:{commands:m}}}};
_.sz=function(O){var m=O.defaultTarget,G=O.elementConfig,B=O.elementsCommand,Q=O.skipOnClick,H=O.forceNewState,M=O.additionalCommandArgs,R=O.innertubeCommand||_.eg(B);if(R){O={};var x=DAp(R);B=x.navigatingCommand;x=x.href;B&&x?(O.href$=x,sz5(O,B,x,m),_.V("web_atagconfig_pointerdown")&&NPO(O,B),H&&(O["force-new-state$"]=!0)):(O.role$="button",O.href$="javascript:void(0);");_.b(R,Px5)&&(O["aria-haspopup$"]=!0);Q||(O.onclick=function(t){var W={};if(Fjf(t)){var Z=(M==null?void 0:M.clickedVisualElement)||
(M==null?void 0:M.getClickedVisualElement)&&M.getClickedVisualElement();Z&&(W={clickedVisualElement:Z});W=Object.assign({},{form:{element:t.target,event:t,createScreenConfig:W}},M);t.preventDefault();_.DB(R,W)}});
return Object.assign({},G,O)}};
A95=function(O){if(O.length){if(O.length===1)return O[0];var m={};_.ya(m,_.zC,{commands:O});return m}};
NN=function(O){return O&&O.href$!=="javascript:void(0);"};
DAp=function(O){var m,G=((m=_.b(O,_.zC))==null?void 0:m.commands)||[O];O=_.K(G);for(m=O.next();!m.done;m=O.next()){m=m.value;var B=void 0,Q=void 0;G=(Q=_.b((B=m)==null?void 0:B.commandMetadata,_.bP))==null?void 0:Q.url;_.V("web_remove_web_navigation_endpoint_data")||(B=void 0,G=G||((B=_.b(m,O6s))==null?void 0:B.url));if(G&&G!=="/service_ajax"){if(B=_.yO(G,m9s))return O=_.an(B),{navigatingCommand:m,href:O};_.ay(new _.j9("AttributedString URL could not be sanitized",G))}}return{}};
Fjf=function(O){return O.button!==void 0?O.button===0&&!(O.shiftKey||O.altKey||O.metaKey||O.ctrlKey):!(O.shiftKey||O.altKey||O.metaKey||O.ctrlKey)};
sz5=function(O,m,G,B){G=!Qb(G);var Q,H,M;if((Q=_.b(m,_.gH))!=null&&Q.nofollow||(H=_.b(m,_.GC))!=null&&H.nofollow||(M=_.b(m,_.Db))!=null&&M.nofollow||G)O.rel$="nofollow";var R;m=((R=_.b(m,_.Db))==null?void 0:R.target)==="TARGET_NEW_WINDOW"?"_blank":B===void 0?"":B;O.target$=m};
NPO=function(O,m){m.clickTrackingParams&&(O.params={itct:m.clickTrackingParams});O.onpointerdown=function(G){GIe(G)};
O._data=m};
B0f=function(O){(O.loggingUrls||[]).forEach(function(m){NI(m.baseUrl,m.attributionSrcMode)})};
GIe=function(O){var m=O.currentTarget;O=y9N(function(){return m.href});
var G=m.params;O&&_.vd(O,G||{},8,!0)};
_.PE=function(O,m){(O=_.eg(O))&&_.DB(O,m)};
_.DB=function(O,m){lYI(function(G){m?G.resolveCommand(O,m):G.resolveCommand(O)})};
KKN=function(O,m){var G=["yt-core-attributed-string__link"];m!=null&&m.noLinkColor||((m==null?0:m.isOverlay)?G.push("yt-core-attributed-string__link--overlay-call-to-action-color"):G.push("yt-core-attributed-string__link--call-to-action-color"),(m==null?0:m.linkInheritColor)&&G.push("yt-core-attributed-string--link-inherit-color"));G={className:G.join(" "),tabindex$:"0"};var B=O.onTap||O.onLongPress;if(!B)return G;var Q=Qfp(O);Q&&(G["aria-label$"]=Q);m=_.sz({elementsCommand:B,elementConfig:G,skipOnClick:!(m==
null||!m.skipOnClick),forceNewState:!0});O.onLongPress&&(B=new H6N(function(){var H=_.eg(O.onLongPress);H&&_.KR().resolve(_.Mu).resolveCommand(H)}),m&&vDp(B,m));
return m||G};
Qfp=function(O){var m,G;return(m=O.onTapOptions)==null?void 0:(G=m.accessibilityInfo)==null?void 0:G.accessibilityLabel};
$9f=function(O){var m=O;O<=16777215&&(m+=parseInt("ff000000",16));return _.AV(m)};
Mdf=function(O){var m=O.isDarkTheme;var G=O.extension;O=O.runColor;var B=void 0;if(G=G==null?void 0:G.colorMap){m=m?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";G=_.K(G);for(var Q=G.next();!Q.done;Q=G.next())if(Q=Q.value,m===Q.key){B=Q.value;break}}B==null&&O&&(B=O);if(B)return $9f(B)};
A1=function(O){var m=O.config;var G=O.image;var B=O.imageConfig;var Q=O.imageWrapperConfig;var H=O.run;var M=O.tag;var R=O.textLength;var x=O.startIndex===void 0?0:O.startIndex;O=O.length;x===void 0&&(x=0);H={run:H,startIndex:x,endIndex:O!==void 0?x+O:R,tag:M};G&&(H.image=G);B&&(H.imageConfig=B);Q&&(H.imageWrapperConfig=Q);m&&(H.config=m);return H};
RGr=function(O,m){var G=[];G.push("yt-core-attributed-string");(m==null?0:m.className)&&G.push(m==null?void 0:m.className);(m==null?0:m.ellipsisTruncate)?G.push("yt-core-attributed-string--ellipsis-truncate"):(m==null?0:m.noWrap)?G.push("yt-core-attributed-string--white-space-no-wrap"):(m==null?0:m.noPreWrap)||G.push("yt-core-attributed-string--white-space-pre-wrap");(m==null?0:m.linkInheritColor)&&G.push("yt-core-attributed-string--link-inherit-color");O.alignment&&G.push(riY(O.alignment));O.lineBreakMode&&
G.push("yt-core-attributed-string--word-wrapping");return G.join(" ")};
i6I=function(O,m){if(O.weight)return O.weight;switch(O.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 m?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
x9f=function(O){switch(O){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"}};
riY=function(O){switch(O){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"}};
G$=function(O,m,G){var B=m;O.content&&G&&(G=O.content.indexOf("\n"),G!==-1&&(B=Math.min(m,G)));if(!O.content||O.content.length<=B)m=O;else if(O.attachmentRuns||O.commandRuns||O.decorationRuns||O.styleRuns||O.paragraphStyleRuns){m=Of(O.content,B);G=B;var Q=O.attachmentRuns;if(Q){var H=[];Q=_.K(Q);for(var M=Q.next();!M.done;M=Q.next())M=Object.assign({},M.value),M.startIndex===void 0||M.startIndex>=G||(M.length||(M.length=0),M.length+M.startIndex>G&&(M.length=G-M.startIndex),H.push(M));G=H}else G=void 0;
H=qGr(B,O.commandRuns);Q=B;var R=O.decorationRuns;if(R){M=[];R=_.K(R);for(var x=R.next();!x.done;x=R.next()){x=x.value;var t=_.b(x.textDecorator,mw);if(t&&t.startIndex!==void 0&&!(t.startIndex>=Q)){x=Object.assign({},x,{textDecorator:{highlightTextDecorator:Object.assign({},t)}});t=_.b(x.textDecorator,mw);if(!t.length||t.length+t.startIndex>Q)t.length=Q-t.startIndex;M.push(x)}}Q=M}else Q=void 0;M=qGr(B,O.styleRuns);if(R=O.paragraphStyleRuns)for(O=[],R=_.K(R),x=R.next();!x.done;x=R.next()){var W=x.value;
x=Object.assign({},W);if(!(x.startIndex===void 0||x.startIndex>=B)){if(!x.length||x.length+x.startIndex>B)x.length=B-x.startIndex;t=[];var Z=void 0,z=void 0;if((Z=W)==null?0:(z=Z.listGroup)==null?0:z.listItems)for(W=_.K(W.listGroup.listItems),Z=W.next();!Z.done;Z=W.next())if(Z=Object.assign({},Z.value),!(Z.startIndex===void 0||Z.startIndex>=B)){if(!Z.length||Z.length+Z.startIndex>B)Z.length=B-Z.startIndex;t.push(Z)}t.length>0&&(x.listGroup||(x.listGroup={}),x.listGroup=Object.assign({},x.listGroup,
{listItems:t}));O.push(x)}}else O=void 0;m={content:m,attachmentRuns:G,commandRuns:H,decorationRuns:Q,styleRuns:M,paragraphStyleRuns:O}}else m=Object.assign({},O,{content:Of(O.content,B)});return m};
qGr=function(O,m){if(m){var G=[];m=_.K(m);for(var B=m.next();!B.done;B=m.next())if(B=Object.assign({},B.value),!(B.startIndex===void 0||B.startIndex>=O)){if(!B.length||B.length+B.startIndex>O)B.length=O-B.startIndex;G.push(B)}return G}};
Of=function(O,m){var G=m,B;if(B=G>0)B=O.charCodeAt(G-1),B=B>=55296&&B<=56319;B&&(G=O.charCodeAt(G),B=G>=56320&&G<=57343);B&&--m;return O.substring(0,m)};
Z6f=function(O,m,G){G=G===void 0?U95:G;if(O){var B=_.KR().resolve(KI);B||_.V("mweb_no_observer_killswitch")?iFr(O,{data:m,observer:B,visibilityCallback:G,hideOption:tdf,showOption:WKS,layer:O.layer}):_.ay(new _.j9("Warning: monitorVisibility called with null observer",O.tagName,m==null?void 0:m.loggingDirectives,m==null?void 0:m.trackingParams))}else _.ay(new _.j9("Warning: monitorVisibility called with null element",m==null?void 0:m.loggingDirectives,m==null?void 0:m.trackingParams,m==null?void 0:
m.rendererContext))};
fTN=function(O,m){var G=[],B=O.content.length,Q,H=(Q=_.KR().resolve(_.v7(_.B6)))==null?void 0:Q();if(O.paragraphStyleRuns){Q=_.K(O.paragraphStyleRuns);for(var M=Q.next();!M.done;M=Q.next()){var R=G.push,x=R.apply;var t=void 0;M=M.value;if((t=M.listGroup)!=null&&t.listItems){t=[];b:switch(M.listGroup.listType){case "LIST_TYPE_BULLET":var W="ul";break b;default:W="span"}t.push(A1({run:M,textLength:B,tag:W,config:{className:"yt-core-attributed-string__list-group"},startIndex:M.startIndex,length:M.length}));
W=_.K(M.listGroup.listItems);for(var Z=W.next();!Z.done;Z=W.next()){Z=Z.value;b:switch(M.listGroup.listType){case "LIST_TYPE_BULLET":var z="li";break b;default:z="span"}t.push(A1({run:M,textLength:B,tag:z,startIndex:Z.startIndex,length:Z.length}))}M=t}else M=[];x.call(R,G,_.lS(M))}}if(O.styleRuns&&(m==null||!m.noStyleRuns))for(Q=_.K(O.styleRuns),R=Q.next();!R.done;R=Q.next()){M=R=R.value;t=H;x=m;t=Mdf({extension:_.b(M.styleRunExtensions,zGM),isDarkTheme:t===void 0?!1:t,runColor:M.fontColor});Z=M;
W=[];t&&W.push("yt-core-attributed-string--link-inherit-color");Z.italic&&W.push("yt-core-attributed-string--italicized");Z.underline&&Z.strikethrough?W.push("yt-core-attributed-string--underline-strikethrough",x9f(Z.underline)):Z.underline?W.push("yt-core-attributed-string--underlined",x9f(Z.underline)):Z.strikethrough&&W.push("yt-core-attributed-string--strikethrough",x9f(Z.strikethrough));if(Z.baselineOffset){a:switch(Z.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Z="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":Z="yt-core-attributed-string--baseline-offset-superscript";break a;default:Z="yt-core-attributed-string--baseline-offset-unknown"}W.push(Z)}W=W.join(" ");Z={};if(M.weight||M.weightLabel)Z.fontWeight=i6I(M,x==null?void 0:x.isHeadline).toString();t&&(Z.color=t);G.push(A1({run:R,textLength:B,tag:"span",config:{className:W,style:Z},startIndex:R.startIndex,length:R.length}))}if(O.decorationRuns)for(Q=_.K(O.decorationRuns),R=Q.next();!R.done;R=Q.next())R=R.value,
x={},R.textDecorator&&(W=R.textDecorator,M=H===void 0?!1:H,Z=[],t=_.b(W,mw),W=_.b(W,JiM),t?(W=Z,Z=W.concat,z=[],(M=Mdf({extension:_.b(t.highlightTextDecoratorExtensions,VdN),isDarkTheme:M,runColor:t.backgroundColor}))&&z.push("background-color: "+M+";"),t.backgroundCornerRadius!==void 0&&z.push("border-radius: "+t.backgroundCornerRadius+"px;"),t.leftPadding!==void 0&&z.push("padding-left: "+t.leftPadding+"px;"),t.rightPadding!==void 0&&z.push("padding-right: "+t.rightPadding+"px;"),t.topPadding!==
void 0&&z.push("padding-top: "+t.topPadding+"px;"),t.bottomPadding!==void 0&&z.push("padding-bottom: "+t.bottomPadding+"px;"),Z=Z.call(W,z)):W&&(t=Z,Z=t.concat,M=M?"#2ba640":"#107516",M=W.color?$9f(W.color):M,M=["padding: 2px;","border-top: solid "+M+" 2px;","border-bottom: solid "+M+" 2px;","background: linear-gradient(135deg, "+M+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+M+" 3px, rgba(0, 0, 0, 0) 3px);"],Z=Z.call(t,M)),M=Z.join(" "),x.style$=M,M=R.textDecorator,t=[],W=_.b(M,
JiM),_.b(M,mw)?t.push("yt-core-attributed-string--highlight-text-decorator"):W&&t.push("yt-core-attributed-string--bracket-text-decorator"),M=t.join(" "),x.className=M,x.dir="auto"),M=_.b(R.textDecorator,mw),t=_.b(R.textDecorator,JiM),W=_.b(R.textDecorator,mw),Z=_.b(R.textDecorator,JiM),G.push(A1({run:R,textLength:B,tag:"span",config:x,startIndex:(M==null?void 0:M.startIndex)||(t==null?void 0:t.startIndex)||0,length:(W==null?void 0:W.length)||(Z==null?void 0:Z.length)||0}));if(O.commandRuns&&(m==
null||!m.noEndpoints))for(H=_.K(O.commandRuns),Q=H.next();!Q.done;Q=H.next())Q=Q.value,R=KKN(Q,m),G.push(A1({run:Q,textLength:B,tag:"a",config:R,startIndex:Q.startIndex,length:Q.length}));if(O.attachmentRuns)for(O=_.K(O.attachmentRuns),H=O.next();!H.done;H=O.next()){H=H.value;x=R=void 0;Q={className:"yt-core-attributed-string--inline-block-mod"};if((x=H.element)==null?0:x.properties){x=(R=H.element)==null?void 0:R.properties;R=[];x=_.b(x,b6M);if(x==null?0:x.margin)x=x.margin,x.left&&R.push("margin-left: "+
du(x.left)+";"),x.right&&R.push("margin-right: "+du(x.right)+";"),x.top&&R.push("margin-top: "+du(x.top)+";"),x.bottom&&R.push("margin-bottom: "+du(x.bottom)+";");R=R.length!==0?R.join(" "):void 0;Q.style$=R}M=void 0;R={alt:"",preserveHeight:!0,preserveWidth:!0};x=["yt-core-attributed-string__image-element"];if(H.alignment){a:switch(H.alignment){case "ALIGNMENT_BASELINE":t="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":t="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:t="yt-core-attributed-string__image-element--image-alignment-bottom"}x.push(t)}if((M=H.element)==null?0:M.properties)M=[],t=_.b(H.element.properties,b6M),(t==null?0:t.height)&&M.push("height: "+du(t.height)+";"),(t==null?0:t.width)&&M.push("width: "+du(t.width)+";"),M=M.length!==0?M.join(" "):void 0,R.style$=M,t=void 0,M=((t=_.b(H.element.properties,nDf))==null?void 0:t.label)||"",R.alt=M;R.className=x.join(" ");x=void 0;W=t=void 0;M=((W=H.element)==null?0:W.type)?(t=_.b(H.element.type,
XU5))==null?void 0:t.image:void 0;G.push(A1({run:H,textLength:B,tag:"img",image:M,imageConfig:R,imageWrapperConfig:Q,startIndex:H.startIndex,length:(x=H.length)!=null?x:0}))}if(m==null?0:m.headerRuns)for(m=_.K(m.headerRuns),O=m.next();!O.done;O=m.next())if(O=O.value,O.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(O.headerMapping)){a:{switch(O.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":H=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":H="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":H="yt-core-attributed-string--heading-3";break a}H=void 0}G.push(A1({run:O,textLength:B,tag:"span",config:H?{className:H}:void 0,startIndex:O.startIndex,length:O.length}))}return G};
_.QX=function(O){return(O==null?void 0:O.content)!==void 0};
hGS=function(O){return _.QX(O)?O:_.cE(O)};
T0r=function(O){return O.image!==void 0&&O.imageConfig!==void 0};
gDs=function(O,m){if(m==null?0:m.userInput)for(O=_.K(O),m=O.next();!m.done;m=O.next())if(m=m.value,m.tag!=="a"&&m.tag!=="li"){var G=void 0;(G=m).config||(G.config={});m.config.dir=m.tag==="ul"?_.KR().resolve(_.H6):"auto"}};
uBz=function(O){return function(m){var G=O.run;(G.onTap!==void 0||G.onLongPress!==void 0)&&_.b(G,olS)&&Z6f(m,{loggingDirectives:_.b(G,olS)})}};
jfS=function(O){return function(m){for(var G in O)(He[G]||He[Yv["default"]])(m,G,O[G])}};
EDf=function(O,m){ITN(m);var G={data:null,start:0,end:O.length,parts:[]};m=_.K(m);for(var B=m.next();!B.done;B=m.next())B=B.value,pUf(G,B.startIndex,B.endIndex,B);SGp(O,G);return G};
pUf=function(O,m,G,B){for(var Q=_.K(O.parts),H=Q.next();!H.done;H=Q.next()){H=H.value;if(typeof H==="string")throw Error("lh");if(H.start<=m&&G<=H.end){pUf(H,m,G,B);return}}O.parts.push({data:B,parts:[],start:m,end:G})};
SGp=function(O,m){for(var G=m.parts.length;G>=0;G--){var B=m.parts[G],Q=m.parts[G-1],H=G===m.parts.length?m.end:B.start;Q=G===0?m.start:Q.end;H!==Q&&m.parts.splice(G,0,O.slice(Q,H));B&&SGp(O,B)}};
ITN=function(O){O.sort(function(m,G){if(m.startIndex<G.startIndex)return-1;if(G.startIndex<m.startIndex)return 1;m=m.endIndex-m.startIndex;G=G.endIndex-G.startIndex;return m>G?-1:G>m?1:0})};
_.LKr=function(O){var m=O.thumbnails;if(m){O={sources:[]};m=_.K(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;var B={};B.url=G.url;B.width=G.width;B.height=G.height;O.sources.push(B)}return O}};
Cfp=function(O,m,G,B){if(!m)return O.length>=1?O[O.length-1]:null;if(B)for(var Q=_.K(O),H=Q.next();!H.done;H=Q.next()){H=H.value;var M=void 0,R=(M=H.url)==null?void 0:M.indexOf(B);if(R!==void 0&&R>=0)return H}B=_.K(O);for(Q=B.next();!Q.done;Q=B.next())if(Q=Q.value,Q.width&&Q.height&&(G&&Q.width>=m||!G&&Q.height>=m))return Q;for(m=O.length-1;m>=0;m--)if(G&&O[m].width||!G&&O[m].height)return O[m];return O[0]};
_.oDY=function(O){var m;return(O=(m=O.sources)==null?void 0:m[0])?O.width/O.height:0};
_.lTf=function(O){if(O.sources){O=_.K(O.sources);for(var m=O.next();!m.done;m=O.next()){m=m.value;var G=void 0;if((G=m.clientResource)==null?0:G.imageName)return m}}};
aTO=function(O){var m;if((m=O.clientResource)!=null&&m.imageColor)return _.AV(O.clientResource.imageColor)};
_.yiN=function(O,m,G,B,Q,H,M){if(!m||m.length===0||m[0].clientResource)return null;if(G&&m[0].url)return m[0].url;B===void 0&&(B=!0);if(B){var R;O=kIN*(Q||(O==null?void 0:(R=O.getBoundingClientRect())==null?void 0:R.width)||0)}else{var x;O=kIN*(H||(O==null?void 0:(x=O.getBoundingClientRect())==null?void 0:x.height)||0)}m=Cfp(m,O,B,M);return(m==null?0:m.url)?m.url:(m==null?0:m.imageData)?m.imageData:null};
cir=function(O,m,G){G=G?[G]:[];O.opacity&&G.push("opacity: "+O.opacity+";");m&&O.placeholderColor?(O=_.AV(O.placeholderColor),G.push("background-color: "+O+";")):G.push("background-color: transparent;");return G.join(" ")};
YGO=function(O,m,G,B,Q){var H=["ytCoreImageHost"];m&&H.push(m);G||H.push("ytCoreImageFillParentHeight");B||H.push("ytCoreImageFillParentWidth");switch(O.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":H.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":H.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":H.push("ytCoreImageContentModeCenter");break;default:H.push("ytCoreImageContentModeScaleToFill")}O.flipForRtlLayout&&H.push("ytCoreImageFlipRtl");
switch(Q){case "TOP_START":var M;H.push(((M=document.body)==null?void 0:M.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return H.join(" ")};
wU6=function(O){var m;if(O==null?0:(m=O.clientResource)==null?0:m.imageName){var G;O=(G=O.clientResource)==null?void 0:G.imageName;a:{switch(O){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":G="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":G="yt-logos-ext:yt-logo-updated";break a}G=void 0}return G||d9N.get(O)||O}};
sfO=function(O){return _.V("mweb_wiz_skip_render")?eGs(O):D9S(O)};
eGs=function(O){return function(m){var G=SD5("wink-root");Lds();EVY();KH5(G,_.q(O,m))}};
D9S=function(O){var m=m===void 0?!1:m;return function(G){if(!m||!_.V("mweb_skip_keto_to_c3_if_no_data")||G.data!==void 0){var B=ri(!1);try{var Q=G.children;_.V("mweb_render_outside_patch_killswitch")||eE?Q?Qe(_.q(O,G,Q)):Qe(_.q(O,G)):_.ay(new _.j9("ketoToC3 called outside of a patch",{tagName:O.TAG_NAME}))}finally{ri(B)}}}};
N05=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
FKe=function(O,m){O.onViewportEntered=m;PfO.observe(O)};
AiN=function(){var O={rootMargin:"10%",threshold:.01};_.V("mweb_enable_set_io_root_to_null_safari")?O.root=null:_.V("mweb_enable_set_io_root_to_body_safari")&&(O.root=document.body);return new IntersectionObserver(function(m,G){m.filter(function(B){return B.intersectionRect.height>0}).forEach(function(B){B=B.target;
if(!_.V("mweb_enable_only_update_image_when_connected")||B.isConnected!==!1){var Q;(Q=B.onViewportEntered)==null||Q.call(B);G.unobserve(B)}})},O)};
Obp=function(O,m,G,B,Q){function H(){if(B){var R=B.loadedClass,x=B.notifyOnUnloaded;R&&_.v6(O,R);x&&O.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function M(){var R=G(m,O);R&&O.getAttribute("src")!==R&&(_.V("mweb_enable_only_update_image_when_connected")&&O.isConnected===!1||R===O.src||(O.src=R),H())}
Q=Q===void 0?!0:Q;O.removeAttribute("src");H();m&&(Q?FKe(O,M):M())};
mqO=function(O,m,G){if(!m)return!1;m=G(m,O);G=O.getAttribute("src");return m&&m===G&&O.complete};
Gtp=function(O,m){for(var G in m)G==="className"?O.className=m[G]:(He[G]||He[Yv.default])(O,G,m[G])};
BbI=function(O,m,G,B){sfO(_.KH)({contentMode:m.contentMode,loadedClass:m.loadedClass,isPreloaded:m.isPreloaded,notifyOnLoaded:m.notifyOnLoaded,notifyOnUnloaded:m.notifyOnUnloaded,preferredThumbnail:m.preferredThumbnail,preserveHeight:m.preserveHeight,preserveWidth:m.preserveWidth,objectPosition:m.objectPosition,targetWidth:m.targetWidth,targetHeight:m.targetHeight,shouldShowPlaceholder:m.shouldShowPlaceholder,useWidth:m.useWidth,isToggled:m.isToggled,alt:m.alt,className:m.className,onerror:m.onerror,
onload:m.onload,style$:m.style$,color:m.color,width:m.width,height:m.height,"aria-hidden$":m["aria-hidden$"],draggable:m.draggable,"data-disabled$":m["data-disabled$"],data:O,callback:G,renderLazy:B===void 0?!0:B,hideOn404:!1})};
Hb5=function(O,m,G){G=G===void 0?!1:G;var B=O.sources!==void 0?O:_.LKr(O);if(B){var Q=m.onload;m.onload=function(x){var t=x.target;G&&t.naturalWidth===120||_.$g(t,"ytCoreImageLoaded");m.notifyOnLoaded&&t.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));Q==null||Q(x)};
m.targetWidth&&m.preserveWidth&&(m.width=m.targetWidth);m.targetHeight&&m.preserveHeight&&(m.height=m.targetHeight);var H=_.lTf(B),M=H&&wU6(H);if(M)return(O=aTO(H))&&(m.color=O),{type:"icon",iconName:M,config:Object.assign({},m,m.alt?{}:{"aria-hidden$":"true"},{"aria-label$":m.alt,role:"img"})};if(O.sources===void 0){m.alt=O.accessibility&&O.accessibility.accessibilityData&&O.accessibility.accessibilityData.label||m.alt;m.style$=cir(O,m.shouldShowPlaceholder,m.style$);var R;m.isPreloaded=!((R=_.b(O,
QTI))==null||!R.isPreloaded)}m.contentMode&&!B.contentMode&&(B.contentMode=m.contentMode);m.className=YGO(B,m.className,m.preserveHeight,m.preserveWidth,m.objectPosition);m.loadedClass="ytCoreImageLoaded";return{type:"image",image:B,config:m}}};
_.Mi=function(){var O=_.eA.apply(0,arguments);return _.GX(vxs,function(m){var G=O.map(function(B){return B==null?void 0:B(m)});
return function(){return void G.forEach(function(B){return void(B==null?void 0:B())})}})};
rg=function(O,m){var G=m==null?void 0:m.initial;return _.bF(function(){_.o9(!0);return G=O(G)},{equals:m==null?void 0:m.isEqual},"rSlKsc")};
Klz=function(O,m){if(O===m)return!0;if(O===void 0||m===void 0)return!1;var G,B,Q,H,M,R,x,t;return O.content===m.content&&((G=O.styleRuns)==null?void 0:G.length)===((B=m.styleRuns)==null?void 0:B.length)&&((Q=O.commandRuns)==null?void 0:Q.length)===((H=m.commandRuns)==null?void 0:H.length)&&((M=O.attachmentRuns)==null?void 0:M.length)===((R=m.attachmentRuns)==null?void 0:R.length)&&((x=O.decorationRuns)==null?void 0:x.length)===((t=m.decorationRuns)==null?void 0:t.length)};
rOI=function(O,m){if(O){var G=hGS(O);if(G!=null&&G.content)if(_.V("attr_string_reactive"))sfO($qr)({text:O,config:m});else{var B=!(m==null||!m.ariaLabel)||!(G.commandRuns&&G.commandRuns.length!==0||G.paragraphStyleRuns&&G.paragraphStyleRuns.length!==0);O=B?m==null?void 0:m.ariaLabel:null;B=B?"text":null;Ljr("span",{className:RGr(G,m),dir$:(m==null?0:m.userInput)?"auto":void 0,"aria-label$":O,role$:B},function(){if(G.styleRuns||G.commandRuns||G.attachmentRuns||G.decorationRuns||G.paragraphStyleRuns){var Q=
fTN(G,m);gDs(Q,m);Q=EDf(G.content,Q);Q=_.K(Q.parts);for(var H=Q.next();!H.done;H=Q.next())Mse(H.value)}else cJM(G.content)})}}};
Mse=function(O){typeof O==="string"?cJM(O):T0r(O.data)?Ljr("span",O.data.imageWrapperConfig,function(){BbI(O.data.image,O.data.imageConfig)}):Ljr(O.data.tag,O.data.config,function(m){uBz(O.data)(m);
m=_.K(O.parts);for(var G=m.next();!G.done;G=m.next())Mse(G.value)})};
ibr=function(O){return O.parts.map(RF6)};
RF6=function(O){if(typeof O==="string")return O;O=T0r(O.data)?_.q("span",{el:_.Mi(jfS(O.data.imageWrapperConfig))},_.q(_.KH,Object.assign({},{data:O.data.image},O.data.imageConfig))):_.q(O.data.tag,{el:_.Mi(uBz(O.data),jfS(O.data.config))},O.parts.map(RF6));return bz(O)};
xqz=function(O,m){return O===m?!0:O===void 0||m===void 0?!1:O.noStyleRuns===m.noStyleRuns&&O.noLinkColor===m.noLinkColor&&O.noEndpoints===m.noEndpoints&&O.headerRuns===m.headerRuns&&O.isOverlay===m.isOverlay&&O.linkInheritColor===m.linkInheritColor&&O.userInput===m.userInput&&O.isHeadline===m.isHeadline};
qxI=function(O){return function(){var m,G,B,Q,H,M,R,x,t,W,Z,z,J,n;return{ariaLabel:(m=O.ariaLabel)==null?void 0:m.call(O),className:(G=O.className)==null?void 0:G.call(O),ellipsisTruncate:(B=O.ellipsisTruncate)==null?void 0:B.call(O),isOverlay:(Q=O.isOverlay)==null?void 0:Q.call(O),linkInheritColor:(H=O.linkInheritColor)==null?void 0:H.call(O),noEndpoints:(M=O.noEndpoints)==null?void 0:M.call(O),noStyleRuns:(R=O.noStyleRuns)==null?void 0:R.call(O),noLinkColor:(x=O.noLinkColor)==null?void 0:x.call(O),
noPreWrap:(t=O.noPreWrap)==null?void 0:t.call(O),noWrap:(W=O.noWrap)==null?void 0:W.call(O),skipOnClick:(Z=O.skipOnClick)==null?void 0:Z.call(O),userInput:(z=O.userInput)==null?void 0:z.call(O),headerRuns:(J=O.headerRuns)==null?void 0:J.call(O),isHeadline:(n=O.isHeadline)==null?void 0:n.call(O)}}};
ts6=function(O,m){O=new Uqz(O,m);_.oy(O);throw O;};
WlN=function(O,m,G){var B=gTe(O);O._numRenders=0;try{var Q=_.TDp(function(){return _.q(m,Object.assign({},G))})}catch(M){var H=function(R){R.args||(R.args=[]);
R.args.push("Error in web component wrapper");R.args.push(O.tagName.toLowerCase());return R};
_.lT(M instanceof Error?H(M):new Uqz("Wiz rendering error",O.tagName.toLowerCase()));throw M;}finally{gTe(B)}return Q};
_.qi=function(O,m,G){function B(W){var Z={};W=_.K(W);for(var z=W.next();!z.done;z=W.next()){z=z.value;var J=void 0,n=void 0,I=void 0,S=_.hc((I=(n=(J=z).getAttribute)==null?void 0:n.call(J,"slot"))!=null?I:"children");if(J=Z[S])J.push(z);else if(S in H||S==="children")Z[S]=[z]}W=_.K(Object.keys(Z));S=W.next();for(z={};!S.done;z={content$jscomp$57:void 0},S=W.next())S=S.value,S!=="children"&&(z.content$jscomp$57=Z[S],Z[S]=function(L){return function(){return L.content$jscomp$57}}(z));
return Z}
G=G===void 0?{}:G;O.componentType!==uF||ts6("Components must be marked reactive to be used from web component wrapper.",m);var Q,H=(Q=G.props)!=null?Q:{};t1.add(m);var M=ZbI();Q=function(){var W=M.apply(this,arguments)||this;W.rawProps={};W.queuingRender=!1;W.dispose=function(){};
W.isWebComponentWrapper=!0;W.isReparenting=!1;W.hasRendered=!1;return W};
_.X(Q,M);Q.prototype.render=function(){this.hasRendered=!0;for(var W=_.K([].concat(_.lS(this.attributes))),Z=W.next();!Z.done;Z=W.next())Z=Z.value,Z.name!=="slot"&&Z.name!=="hidden"&&this.removeAttribute(Z.name);W=Object.assign({},this.componentProps,this.slotProps);Z=_.K(WlN(this,O,W));W=Z.next().value;Z=Z.next().value;!(W[0]instanceof Element)||W.length>1?ts6("Wrapped Wiz components must return a single root element.",m):(W=W[0].tagName.toLowerCase(),W!==m&&ts6("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(W+" !== '"+m),m),this.dispose=Z)};
Q.prototype.setUpProps=function(){for(var W=this.rawProps,Z=this.attributes,z=_.K(Object.keys(H)),J=z.next();!J.done;J=z.next()){J=J.value;var n=void 0;((n=this)==null?0:n[J])&&this[J]!==zFz&&W[J]===void 0&&(W[J]=this[J],(n=Object.getOwnPropertyDescriptor(this.constructor.prototype,J))&&Object.defineProperty(this,J,n))}z=_.K(Z);for(J=z.next();!J.done;J=z.next()){n=J.value;J=_.hc(n.name);var I=J==="class"&&!Z.getNamedItem("class-name");if(J in H||I)n=n.value===""||n.value==="true"?!0:n.value==="false"?
!1:isNaN(Number(n.value))?n.value:Number(n.value),J!=="class"||W.className?W[J]=n:W.className=n}Z={};for(var S in H)H[S]!==_.RZ&&H[S]!==JOS&&(W[S]instanceof Function&&ts6("Function props must be configured as STATIC, not SIGNAL.",m),J=_.K(_.Wf(W[S],void 0,"q4ZVff")),z=J.next().value,J=J.next().value,Z[S]=J,W[S]=z);W=_.K([W,Z]);this.componentProps=W.next().value;this.setters=W.next().value;this.slotProps=B(this.childNodes)};
Q.prototype.connectedCallback=function(){Vse===m&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in H&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
Q.prototype.disconnectedCallback=function(){if(!this._isInert){var W;a:{if(_.iE)for(W=this;W;){if(_.xg.has(W)){W=!0;break a}W=W.parentElement}W=!1}if(W)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){W=_.K([].concat(_.lS(this.attributes)));for(var Z=W.next();!Z.done;Z=W.next()){Z=Z.value;var z=void 0;Z.name==="slot"||Z.name==="hidden"&&((z=G.unsafeExternallySettableAttributes)==null?0:z.has("hidden"))||this.removeAttribute(Z.name)}}this.innerText="";VON(this)}}};
Q.prototype._setPendingPropertyOrPath=function(){};
Q.prototype.notifyPath=function(){};
_.vr.Object.defineProperties(Q.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var R=_.K(Object.keys(H)),x=R.next(),t={};!x.done;t={prop$jscomp$105:void 0},x=R.next())t.prop$jscomp$105=x.value,x=void 0,((x=G.legacyPolymer)==null?0:x.forwardHostProps)&&znN.has(t.prop$jscomp$105)||Object.defineProperty(Q.prototype,t.prop$jscomp$105,{set:function(W){return function(Z){var z=this;this._isInert||(this.setters?nS(function(){var J,n;return void((n=(J=z.setters)[W.prop$jscomp$105])==null?void 0:n.call(J,Z))}):(this.rawProps[W.prop$jscomp$105]=Z,this.queuingRender&&W.prop$jscomp$105===
"data"&&Z!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(t),
get:bbM.has(t.prop$jscomp$105)?void 0:function(){return zFz}});
customElements.define(m,Q)};
_.nxp=function(O,m){return(O=_.Uf(O,m))?_.an(_.d5(O)):null};
_.tH=function(O){if(O=_.Uf(O,Number.MAX_VALUE,void 0,"width"))return _.d5(O)};
_.Uf=function(O,m,G,B){B=B===void 0?"width":B;if(!O||!O.length)return null;if(_.V("kevlar_tuner_should_always_use_device_pixel_ratio")){var Q=window.devicePixelRatio;_.V("kevlar_tuner_should_clamp_device_pixel_ratio")?Q=Math.min(Q,_.Rd("kevlar_tuner_clamp_device_pixel_ratio")):_.V("kevlar_tuner_should_use_thumbnail_factor")&&(Q=_.Rd("kevlar_tuner_thumbnail_factor"));XA6=Q}else XA6||(XA6=window.devicePixelRatio);Q=XA6;_.V("kevlar_tuner_should_always_use_device_pixel_ratio")?m*=Q:Q>1&&(m*=Q);if(_.V("kevlar_tuner_min_thumbnail_quality"))return O[0].url||
null;Q=O.length;if(_.V("kevlar_tuner_max_thumbnail_quality"))return O[Q-1].url||null;if(G)for(var H=0;H<Q;H++)if(O[H].url.indexOf(G)>=0)return O[H].url||null;for(G=0;G<Q;G++)if(O[G][B]>=m)return O[G].url||null;for(m=Q-1;m>0;m--)if(O[m][B])return O[m].url||null;return O[0].url||null};
Tbp=function(){W6.size?setTimeout(function(){Zw(f3S)},0):hFf=0};
f3S=function(){var O=(0,_.$G)(),m=null,G=!1;W6.forEach(function(Q){Q.loaded=!0;Q.loadTime=O;Q.pendingPaint=!1;var H=gxN.get(Q);H&&H.resolve(O);m=Q;G||!Q.ftlEligible&&Q.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(G=!0)});
var B;((B=m)==null?0:B.markDirty)&&m.markDirty();W6.clear();hFf=0;G&&uQI(O)};
jT5=function(O){W6.add(O);O.pendingPaint=!0;hFf||(hFf=_.z$(_.ln,Tbp))};
I3N=function(O){O.loaded=!1;O.loadTime=Infinity;var m=gxN.get(O);m&&(m.reject(Error("rh")),gxN.delete(O));O.pendingPaint&&(W6.delete(O),O.pendingPaint=!1)};
_.pAN=function(O){var m=O.indexOf(":");return m===-1?{originalName:O}:{originalName:O.substring(0,m),datasyncId:O.substring(m+1)}};
_.Exz=function(){return _.r(function(O){if(Sxp!==void 0)return O.return(Sxp);Sxp=new Promise(function(m){var G;return _.r(function(B){switch(B.nextAddress){case 1:return _.n_(B,2),B.yield(_.JH.open("test-only"),4);case 4:return B.yield(_.JH.delete("test-only"),5);case 5:_.P7(B,3);break;case 2:if(G=_.uS(B),G instanceof Error&&G.name==="SecurityError")return m(!1),B.return();case 3:m("caches"in window),_.ju(B)}})});
return O.return(Sxp)})};
oxI=function(){return _.r(function(O){if(O.nextAddress==1)return O.yield(_.Exz(),2);if(!O.yieldResult)return O.return(void 0);LlO||(LlO=new Chp);return O.return(LlO)})};
l3O=function(O){var m,G,B,Q;return _.r(function(H){switch(H.nextAddress){case 1:return H.yield(oxI(),2);case 2:m=H.yieldResult;if(!m)throw Error("th");return H.yield(m.open("yt-player-local-img"),3);case 3:return G=H.yieldResult,H.yield(G.match(O),4);case 4:B=H.yieldResult;if(!B)throw Error("uh");return H.yield(B.blob(),5);case 5:return Q=H.yieldResult,H.return(Q)}})};
a3S=function(O,m){for(var G in O)if(O.hasOwnProperty(G)&&m[G])return G;return null};
ktr=function(O){return"stamp"+O.replace("-","_")+"_"};
yOM=function(O){var m=O.match(/\[\[([\w\.]+)\]\]/);if(m&&m.length>1)return m[1];_.oy(Error("wh`"+O));return null};
cOS=function(O){return O===void 0?_.yE("REUSE_COMPONENTS",!1):O||!1};
wAp=function(O,m,G){G&&(m.is?(YxN.has(m)&&(O=YxN.get(m),G=O.listener,delete m[O.property],G.type==="element"&&m.removeEventListener(G.eventName,G.handler),YxN.delete(m)),dqN(m)):m.__proto__==HTMLElement.prototype&&(m=new _.j9("Rendererstamper removed a non custom element","Stamper: "+O+" element: "+(m&&m.nodeName)),_.ay(m)))};
eFr=function(O,m,G,B){var Q=m.node?m.node:m;_.ZO(G).parentNode===Q&&(m.removeChild(G),wAp(O,G,B));if(O=VX.get(G))VX.delete(G),_.ln.cancelJob(O);G.hidden=!1};
Dqe=function(O,m,G,B){if(m&&m.children&&(G=m.children[G]))if(_.yE("DEFERRED_DETACH"))for(;G&&!VX.has(G);){var Q=O,H=m,M=G,R=B;M.hidden=!0;Q=_.uT(_.ln,eFr.bind(null,Q,H,M,R),0);VX.set(M,Q);G=G.nextElementSibling}else for(;(M=m.lastElementChild)&&(m.removeChild(M),wAp(O,M,B),M!=G););};
_.bE=function(){for(var O=_.eA.apply(0,arguments),m=!0,G=_.K(O),B=G.next();!B.done;B=G.next())if(typeof B.value!=="string"){m=!1;break}return m?O.join(" ").trim()||void 0:function(){for(var Q="",H=_.K(O),M=H.next();!M.done;M=H.next())if(M=M.value,typeof M==="function"&&(M=M()),M)if(typeof M==="string")Q+=" "+M;else for(var R in M)if(M.hasOwnProperty(R)){var x=M[R];typeof x==="function"&&(x=x());x&&(Q+=" "+R)}Q=Q.trim()||void 0;return _.o9(Q)}};
NbY=function(O){var m;return(m=sTY[O])!=null?m:"EVENT_SPAN_TYPE_UNKNOWN"};
Phf=function(O){var m=O.nodeName;if(O.id)return m+="#"+O.id;if(O.classList)for(var G=_.K(O.classList),B=G.next();!B.done;B=G.next())m+="."+B.value;O.parentElement&&(m=Phf(O.parentElement)+" > "+m);return m};
Fls=function(O){return function(m){var G=NbY(m.type);return G==="EVENT_SPAN_TYPE_UNKNOWN"?O(m):mcN("event",{type:G,nodepath:m.target instanceof Element?Phf(m.target):void 0},function(){return O(m)})}};
_.nH=function(O){O&&AeN("event")&&(O=Fls(O));return BDf(function(m){var G,B=(G=O)==null?void 0:G(m);return typeof B==="boolean"?B:!0})};
Xw=function(O){return function(){return O()?O():void 0}};
G8I=function(O){var m=_.Al("animated-rolling-character"),G=Zr5(),B=Qs(O.character)||Qs(O.previousCharacter),Q=_.K(zCS()),H=Q.next().value,M=Q.next().value;_.Ln(function(){if(window.ResizeObserver&&_.V("web_fix_rolling_numbers_zoom_safari")){var R=new ResizeObserver(function(){var x,t,W=Math.round(((t=(x=m.value.querySelector("div"))==null?void 0:x.getBoundingClientRect().height)!=null?t:0)*100)/100;W&&M(W)});
R.observe(m.value);return function(){R.disconnect()}}});
MY6(function(){var R=_.V("web_fix_rolling_numbers_zoom_safari")?H:O.marginMultiplier;if(R){var x;(x=G.value)==null||x.cancel();B?(x=O.previousCharacter?Number(O.previousCharacter)+10:O.rollUp?0:30,O.shouldAnimate||(x-=AO6(O,x))):(x=O.rollUp?0:2,O.shouldAnimate||(x-=O.rollUp?-1:1));m.value.style.marginTop="-"+x*R+"px";O.shouldAnimate?G.value=OAf(m.value,O,x,B,R):m.value.style.display=O.character?"":"none"}});
return _.q("animated-rolling-character",{el:m,class:"animatedRollingCharacterHost"},ZpN(B,function(){for(var R=[],x=1;x<30;x++)R.push(_.q("div",null,x%10));return _.q(_.Mr,null,_.q("div",null,"\u00a0"),R,_.q("div",null,"\u00a0"))},function(){return mgI(O.character)}))};
mgI=function(O){return _.q(_.Mr,null,_.q("div",null,"\u00a0"),_.q(_.Mr,null,ZpN(!O||_.Re(O),function(){return _.q("div",null,"\u00a0")},function(){return _.q("div",null,O)})),_.q("div",null,"\u00a0"))};
OAf=function(O,m,G,B,Q){G=new Animation(new KeyframeEffect(O,[{transform:"translateY(0px)"},{transform:"translateY("+(B?AO6(m,G):m.rollUp?-1:1)*Q+"px)"}],Be5),document.timeline);m.character?(O.style.display="",G.onfinish=null):G.onfinish=function(){O.style.display="none"};
G.play();return G};
AO6=function(O,m){var G=Number(O.character)+10;if(O.previousCharacter)if(O.character){var B=Number(O.character),Q=Number(O.previousCharacter);O=O.rollUp?Q<B?G:G+10:Q<B?G-10:G}else O=O.rollUp?30:0;else O=O.character==="0"?G:O.rollUp?G-10:G+10;return m-O};
QNe=function(O){return function(m){var G={},B;for(B in m){var Q=void 0,H=void 0;((Q=void 0)==null?0:(H=Q.callbacks)==null?0:H[B])||(G[B]=m[B])}return _.q(hCs,null,function(){for(var M in G)m[M]=_.o9(G[M]);m.disableReactiveLogging=!0;return _.q(O,Object.assign({},m))})}};
K4z=function(O,m,G,B,Q,H,M){G=new Animation(new KeyframeEffect(O,[{transform:"translateY(0px)"},{transform:"translateY("+(H?HAN(m,G,B,Q):B?-1:1)*M+"px)"}],vXf),document.timeline);m?(O.style.display="",G.onfinish=null):G.onfinish=function(){O.style.display="none"};
G.play();return G};
HAN=function(O,m,G,B){var Q=Number(O)+10;m?O?(O=Number(O),m=Number(m),G=G?m<O?Q:Q+10:m<O?Q-10:Q):G=G?30:0:G=O==="0"?Q:G?Q-10:Q+10;return B-G};
MDf=function(O){var m=Zr5(),G=Zr5();xCs(function(){m.value=O.numberText;G.value=O.numberValue},[O.numberText]);
var B=O.fontSizeMultiplier?O.heightPx*O.fontSizeMultiplier:O.heightPx,Q=W8N(function(){if(O.numberText){var M=O.numberText;var R=O.forceRollUp||!G.value||!O.numberValue||G.value<O.numberValue;var x=!!O.shouldAnimate,t=m.value,W=[],Z=0,z=0,J=(t?t.replace(/\D/g,"").length:0)-(M?M.replace(/\D/g,"").length:0);t=t?t.split(/(\d)/).filter(Boolean):[];for(M=M.split(/(\d)/).filter(Boolean);J<0;){var n=M[z];W.push({character:n,rollUp:R,marginMultiplier:B,shouldAnimate:x});z++;Qs(n)&&J++}for(;Z<J;)n=t[Z],W.push({previousCharacter:n,
rollUp:R,marginMultiplier:B,shouldAnimate:x}),Z++,Qs(n)||J++;for(;z<M.length;)J=M[z],n=t[Z],Qs(J)===Qs(n)?(z++,Z++):Qs(J)?(Z++,J=void 0):Qs(n)&&(z++,n=void 0),W.push({character:J,previousCharacter:n,rollUp:R,marginMultiplier:B,shouldAnimate:x});R=W}else R=[];return R},[O.numberText]),H=O.numberText?["height: "+B+"px;",
"line-height: "+O.heightPx+"px;"].join(" "):"";return _.q("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:H,dir:"ltr","aria-hidden":"true"},Q.map(function(M){return _.q($ge,Object.assign({},M))}))};
r7I=function(O){switch(O){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}};
Rwp=function(O,m){if(!O&&!m)return"medium";O=Math.max(O||0,m||0);return O>=256?"large":O>=96?"medium":"small"};
iAS=function(O){switch(O){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
xgM=function(O){return new KeyframeEffect(O,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
qnz=function(O){return new KeyframeEffect(O,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.fH=function(O){var m=rg(function(G){G=G?t0(G[0]):void 0;return _.Wf(O(G),void 0,"AwTxXe")},{isEqual:function(G,B){return t0(G[0])===t0(B[0])}});
return[function(){return m()[0]()},
function(G){return void m()[1](G)}]};
_.hH=function(O){return function(){var m="",G;for(G in O){for(var B=O[G];typeof B==="function";)B=B();B!==void 0&&B!==null&&(m+="; "+G+": "+B)}return m.length>0?_.o9(m.slice(2)):_.o9()}};
UgO=function(O){switch(O){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"}};
tD6=function(O,m){if(m)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(O)switch(O){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
VD6=function(O,m,G,B,Q,H,M){var R=W4r(O),x=R.disabled,t=R.iconPosition,W=R.style,Z=R.focused,z=function(){return!!I()&&t()==="icon-only"},J=function(){return!!I()&&t()==="icon-only-40"},n=function(){return!!I()&&t()==="icon-with-label"},I=function(){return!!m||!(B==null||!B())};
return{type:function(){return W()==="call-to-action-inverse"?"text":W()==="overlay-dark"&&O().type!=="filled"&&O().type!=="tonal"?"tonal":O().type},
shouldFocus:function(){return(Z()||(H==null?void 0:H()))&&!x()},
hasIconLeading:function(){return!!I()&&t()==="leading"},
hasIconTrailing:function(){return!!I()&&t()==="trailing"},
hasIconLeadingTrailing:function(){return!!I()&&!!(G||Q!=null&&Q())&&t()==="leading-trailing"},
hasIconOnly:z,hasIconOnly40:J,hasIconWithLabel:n,iconButton:function(){return z()||J()||n()},
visiblyDisabled:function(){return(x()?"disabled":O().state)==="disabled"||x()},
overrideSmallSizeIcon:function(){return!O().ignoreIconSizeOverride&&ZAI(O(),I())},
iconToRender:m?m:function(){return _.q(_.T$,{icon:B,size:function(){return zw6(O(),!0,O().ignoreIconSizeOverride)},
active:function(){return O().toggled},
iconFilter:function(){return J7p(O())},
animateIcon:M})},
secondaryIconToRender:G?G:function(){return _.q(_.T$,{icon:Q,size:function(){return zw6(O(),!0,O().ignoreIconSizeOverride)},
active:function(){return O().toggled},
iconFilter:function(){return J7p(O())}})}}};
W4r=function(O){return{size:function(){return O().size},
style:function(){return O().style},
focused:function(){return O().focused},
disabled:function(){return O().disabled},
onTap:function(m){var G,B;return(B=(G=O()).onTap)==null?void 0:B.call(G,m)},
alignByText:function(){return O().alignByText},
aTagConfig:function(){return O().aTagConfig},
customColors:function(){return O().customColors},
segmentedPosition:function(){return O().segmentedPosition},
toggled:function(){return O().toggled},
toggleable:function(){return O().toggleable},
accessibilityLabel:function(){return O().accessibilityLabel},
onToggle:function(m){var G,B;return(B=(G=O()).onToggle)==null?void 0:B.call(G,m)},
iconPosition:function(){return O().iconPosition},
oneOffCustomTextWrap:function(){return O().oneOffCustomTextWrap},
disableTextEllipsis:function(){return O().disableTextEllipsis},
disableBackdropFilter:function(){return O().disableBackdropFilter},
tooltipText:function(){return O().tooltipText},
ariaHidden:function(){return O().ariaHidden},
tabIndex:function(){return O().tabIndex},
buttonText:function(){return O().buttonText},
formattedButtonText:function(){return O().formattedButtonText},
animatedTextProps:function(){return O().animatedTextProps},
onClickRateLimitMs:function(){return O().onClickRateLimitMs}}};
ZAI=function(O,m){m=(O.iconPosition==="icon-only"||O.iconPosition==="icon-only-40"||O.iconPosition==="icon-with-label")&&m;return!O.segmentedPosition&&m&&O.size==="S"};
zw6=function(O,m,G){switch(O.size){case "XS":return 16;case "S":return!G&&ZAI(O,m)?24:16;default:return 24}};
bAe=function(O){switch(O){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"}};
nXe=function(O){switch(O){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"}};
X0N=function(O){switch(O){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"}};
J7p=function(O){if(O.style==="overlay-dark"&&O.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
gg=function(O){return O&&O.endsWith("px")?Number(O.slice(0,-2)):0};
TeY=function(O){var m=m===void 0?{}:m;O=_.K(_.fH(O));var G=O.next().value;return[function(B){var Q=_.bF(function(){var R,x,t,W;return{text:(R=G())!=null?R:"",location:(x=m.location)!=null?x:"bottom",offset:(t=m.offset)!=null?t:16,delay:(W=m.delay)!=null?W:1}},void 0,"MgTrkc");
_.ER(function(){var R=Q();t0(function(){_.ln.addJob(function(){uE.notify(B,R)},4)})},"WlsgZc");
var H=function(){f6I(B,Q())},M=function(){hwS()};
B.addEventListener("mouseenter",H);B.addEventListener("focus",H);B.addEventListener("mouseleave",M);B.addEventListener("blur",M);B.addEventListener("tap",M);_.LS(function(){B.removeEventListener("mouseenter",H);B.removeEventListener("mouseleave",M);B.removeEventListener("focus",H);B.removeEventListener("blur",M);B.removeEventListener("tap",M);hwS()})},
O.next().value]};
uXY=function(O,m){if(!Qj){var G;$Dp(function(){return G=Xc6(O,m)});
return G}O.parent=gXr();return Xc6(O,m)};
gXr=function(){var O=_.vf(Qj||void 0,Vlr);return _.bp6(O)?void 0:O};
jV=function(O,m){_.DB(O,Object.assign({},m,{forceClickLogging:!0}))};
I6M=function(O,m){var G=_.eg(O==null?void 0:O.onTap),B={};G&&(B.getClickedVisualElement=function(){var Q;return jNf(O,G,m==null?void 0:(Q=m.value)==null?void 0:Q.visualElement)});
B=_.sz({elementsCommand:O.onTap,forceNewState:!0,additionalCommandArgs:B});return NN(B)?B:void 0};
p0Y=function(O,m,G,B){jV(O,Object.assign({},{form:{element:m,event:G}},B))};
Snf=function(O,m,G,B,Q){var H=void 0;return function(M){var R=_.eg(G?O==null?void 0:O.onDisabledTap:O==null?void 0:O.onTap);if(R){var x;H=(x=H)!=null?x:m==null?void 0:m.value;if(R)if(_.V("web_button_vm_click_client_ve_killswitch"))p0Y(R,H,M);else{var t;x=jNf(O,R,(t=H)==null?void 0:t.visualElement);if(Q){p0Y(R,Q,M,{clickedVisualElement:x,form:{element:Q}});return}p0Y(R,H,M,{clickedVisualElement:x})}}B&&B(M)}};
jNf=function(O,m,G){m=m==null?void 0:m.clickTrackingParams;var B,Q;O=O==null?void 0:(B=O.loggingDirectives)==null?void 0:(Q=B.clientVeSpec)==null?void 0:Q.uiType;if(G&&O&&!m)return G};
EXI=function(O){switch(O){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"}};
L4M=function(O){switch(O){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"}};
C1M=function(O){switch(O){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"}};
oXI=function(O){switch(O){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"}};
l6e=function(O,m){return _.Vh(O.entities,"engagementToolbarStateEntityPayload",m)};
k8p=function(O){(O=_.Ez(O))&&_.a6S(O)};
_.a6S=function(O){var m=_.yA();m&&_.AK(m,O)};
y7z=function(O,m,G){_.xc(O,"yt-open-popup-action",[m,G||O])};
c7N=function(O,m){var G=_.o8(O,"endpoint"),B=_.o8(O,"action");return(G=B?B:G)&&m&&(G=m.navigationEndpointPopupMap[G])&&(O=_.ex(G,O),(G=_.o8(O,"renderer"))&&m.supportedPopups.hasOwnProperty(G))?{openPopupAction:{popupType:m.popupTypeMap[G],popup:O}}:null};
Yn6=function(O,m,G,B){if(B){var Q;G=G==null?void 0:(Q=G.data)==null?void 0:Q.contents;(Q=G instanceof Array&&G.length?G[0]:G)&&(G=_.o8(Q,"renderer"))&&B.supportedPopups.hasOwnProperty(G)&&(m.stopPropagation(),y7z(O,{openPopupAction:{popupType:B.popupTypeMap[G],popup:Q}}))}};
ewN=function(O,m,G,B){B=B===void 0?!1:B;var Q=dgS(m);if(Q){Q.href&&Gw(Q.href);var H=m.button;H=H!==void 0?H===0&&!IZ(m):!IZ(m);Q.data&&H&&w0Y(O,Q,m,G,B)}};
w0Y=function(O,m,G,B,Q){Q=Q===void 0?!1:Q;var H=_.Rd("pbj_navigate_limit",-1)===0;Dge(m);_.KR().resolve(_.v7(wE));var M=m.data;if(Object.keys(M).length!==0)if(!_.V("unplugged_web_disable_actions_for_cec_endpoint")&&_.b(M,_.zC))_.V("endpoint_behavior_command_executor_fix_killswitch")||(G.preventDefault(),G.stopPropagation()),_.Wd(O,[M],O);else if(B=c7N(M,B))M.loggingUrls&&M.loggingUrls.forEach(function(x){x.baseUrl&&_.sO(x.baseUrl)}),G.preventDefault(),G.stopPropagation(),y7z(O,B,m);
else{var R=sNM(0,m.data,G);if(O=m.getForm)O=O(),R.tempData=R.tempData||{},R.tempData=Object.assign({},R.tempData,O);O=_.$Z(G);if(B=O.find(function(x){return!!x.visualElement}))R.createScreenConfig=R.createScreenConfig||{},R.createScreenConfig.clickedVisualElement=B.visualElement;
if(!H)if(G.preventDefault(),G.stopPropagation(),_.b(M,_.NeO)&&!Q&&_.XJ.instance)_.XJ.instance.resolveCommand(M,R);else if(_.V("kevlar_command_handler_formatted_string")&&!Q&&_.XJ.instance&&P1s(M))Q=O.find(function(x){return!!x.is})||G.target,G={form:Object.assign({},R,{event:G,
element:Q,originatingNode:m})},_.XJ.instance.resolveCommand(M,G);else{M=_.$Z(G);G=[];for(Q=0;Q<M.length;Q++)(H=M[Q].is)&&G.push(H);avM({parents:G.join(","),text:m.innerText},function(){_.iP(m,"yt-navigate",R)})}}};
F4Y=function(O){if(O=dgS(O))Dge(O),Y5M(O.href)};
dgS=function(O){O=_.$Z(O);for(var m,G=0;G<O.length;G++)if(m=O[G],m.tagName==="A"&&m.classList.contains("yt-simple-endpoint")){if(!m.data)break;return m}return null};
IZ=function(O){return O.shiftKey||O.altKey||O.metaKey||O.ctrlKey};
A7s=function(O,m){var G={itct:m.clickTrackingParams};_.V("kevlar_client_side_screens")&&(!_.b(m,_.pf)||_.V("kevlar_exclude_endpoint_killswitch"))&&(G.endpoint=JSON.stringify(m));_.V("enable_unknown_lact_fix_on_html5")&&_.KR().resolve(_.v7(_.pH))&&(G.lact=_.MT());kFS(G);_.vd(O,G)};
Dge=function(O){O.href&&Object.keys(O.data).length!==0&&A7s(O.href,O.data)};
P1s=function(O){for(var m=_.K(O86),G=m.next();!G.done;G=m.next())if(O[G.value])return!1;return!0};
_.mnI=function(O,m){return _.Vh(O.entities,"markersEngagementPanelSyncEntity",m)};
GWY=function(O,m){return _.Vh(O.entities,"playerStateEntity",m)};
BUN=function(O,m){return _.Vh(O.entities,"fantasyWinProbabilityEntity",m)};
QlS=function(O,m){return _.Vh(O.entities,"fantasyTeamEntity",m)};
H8N=function(O,m){return _.Vh(O.entities,"fantasyPlayerEntity",m)};
vjS=function(O,m){return _.Vh(O.entities,"booleanEntity",m)};
K6I=function(O,m){return _.Vh(O.entities,"qrCodeEntity",m)};
$nY=function(O){return _.Vh(O.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
M45=function(){if(SV)return SV;if(window.lottie)return SV=Promise.resolve(window.lottie);var O=_.aO(_.kB("LOTTIE_URL"));return O?SV=new Promise(function(m,G){var B=document.createElement("script");B.addEventListener("load",function(){m(lottie)});
B.addEventListener("error",function(Q){var H="Lottie library failed to load.";Q?Q.message&&(H+=" Original description: "+Q.message,_.kt(Q,H)):Q=Error(H);_.ay(Q);G(Q)});
B.setAttribute("async","");_.$3(B,O);document.head.appendChild(B)}):Promise.reject(Error("xh"))};
rrM=function(){return SV?SV:M45()};
RdY=function(O){if(O)switch(O){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.V("kevlar_use_wil_icons"))return O=(O=$nY(_.Kf().getState()))&&O.animationLightUrl&&O.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:O.animationLightUrl,pathDarkTheme:O.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,O?O:Ef.get("LIKE");break;case "LIKE_DELHI_PLAYER":return Ef.get("LIKE_DELHI_PLAYER")}};
i8r=function(O){var m=RdY(O);if(m)return m;switch(O){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Ef.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Ef.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Ef.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Ef.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Ef.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Ef.get("NOTIFICATION_BELL")}};
xnf=function(O,m){if(!O.closest)return!1;m=!!RdY(m);return _.kB("ID_TOKEN")&&m?!!O.closest("segmented-like-dislike-button-view-model")||!!O.closest("yt-player-quick-action-buttons"):!1};
UnI=function(O,m){if(!O||qNM)m=!1;else{var G;if(!(G=xnf(O,m)))if(O.closest)if(G=!_.kB("ID_TOKEN"),O=O.closest("ytd-subscription-notification-toggle-button-renderer-next"),G||!O)G=!1;else{var B;G=((B=O.data)==null?void 0:B.targetId)==="notification-bell"&&m!=="EXPAND_MORE"}else G=!1;m=G}return m};
t46=function(O){var m,G;return _.r(function(B){switch(B.nextAddress){case 1:return _.n_(B,2),B.yield(fetch(O),4);case 4:return m=B.yieldResult,B.yield(m.json(),5);case 5:return B.return(B.yieldResult);case 2:G=_.uS(B),_.ay(G),_.ju(B)}})};
W6N=function(O,m){var G,B,Q;return _.r(function(H){if(H.nextAddress==1)return(G=m?O.pathDarkTheme:O.path)?H.yield(Promise.all([t46(G),M45()]),2):H.return();B=H.yieldResult;Q=B[0];LH.set(G,Q);_.ju(H)})};
zdr=function(O,m,G,B){function Q(M,R){if(m.value===R&&!m.cancelled&&O!=null&&O.value){for(;O.value.firstChild;)O.value.removeChild(O.value.firstChild);O.value.classList.add("ytSpecIconShapeHost");M(O.value,B)}}
var H=_.Z8p(_.KR().resolve(_.nm),G);typeof H==="function"?(m.value=null,Q(H,null)):(m.value=H,H.then(function(M){Q(M,H)}))};
V4p=function(O,m){var G=document.createElement("div"),B=_.Sx(G,function(){return _.q(_.U,{cond:O,then:function(Q){return _.q(JrS,{data:Q,options:m})}})},"D");
return[G,B]};
_.CH=function(O,m){if(m){var G={};b8Y.forEach(function(B){B=njp(m,B,"--yt-lightsource-");Object.assign(G,B)});
XVp.forEach(function(B){B=njp(m,B,"--yt-basic-");Object.assign(G,B)});
_.n7(O,G)}};
njp=function(O,m,G){var B={};B[G+_.fC(m)]=O&&O[m]?_.AV(O[m]):"";return B};
_.lE=function(O,m,G){oZ[O]||(oZ[O]={});oZ[O][m]=G};
_.aZ=function(O){oZ[O]||(oZ[O]={});return oZ[O]};
fjI=function(O){if(!O)return{};var m=O.foregroundTitleColor,G=O.backgroundColor;O=O.borderColor;var B="text";O?B="outline":G&&(B="filled");return{type:B,customColors:{color:m?_.AV(m):void 0,backgroundColor:G?_.AV(G):void 0,borderColor:O?_.AV(O):void 0}}};
jlN=function(O){var m=O.renderer;var G=O.element;var B=O.commandController;var Q=O.onTapCallback;var H=O.skipCommandHandling;var M=O.overrides;var R=O.forceIcon;var x=O.forceModernIconButton;var t=O.forceDisabled;var W=O.isSubscribe===void 0?!1:O.isSubscribe;var Z=O.isPressed===void 0?!1:O.isPressed;var z=O.useButtonSize===void 0?!1:O.useButtonSize;O=hdp(m);W&&(O.style="mono",O.type="filled");R=!m.icon||!R&&m.text?m.icon?m.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:x?"icon-only":"icon-only-40";R==="icon-only-40"&&(O.type="text");var J;x=Object;W=x.assign;z=TUr(m,z);Z=!!m.isSelected||!_.V("web_propagate_is_pressed_killswitch")&&!!Z;var n=m.isSelected!==void 0;t=t===void 0?m.isDisabled:t;var I=m.text?_.cE(m.text):void 0;var S,L,C,P=((S=m.accessibilityData)==null?void 0:(L=S.accessibilityData)==null?void 0:L.label)||((C=m.accessibility)==null?void 0:C.label);S=P?P:_.HX(m.text);G=gjp(m,G,B,Q,H);B=ubz(m);B!=null&&B.length?(B=_.sz({innertubeCommand:A95(B),
forceNewState:!0}),B=NN(B)?B:void 0):B=void 0;return W.call(x,{},O,z,{iconPosition:R},M,{focused:!1,toggled:Z,toggleable:n,disabled:t,formattedButtonText:I,accessibilityLabel:S,onTap:G,aTagConfig:B},fjI((J=m.colorData)==null?void 0:J.basicColorPaletteData),{oneOffCustomTextWrap:m.oneOffCustomTextWrap})};
gjp=function(O,m,G,B,Q){return function(H){var M=ubz(O);B(M,H);if(!Q){M=_.K(M);for(var R=M.next();!R.done;R=M.next())jV(R.value,{form:{element:m,event:H},commandController:G})}}};
ubz=function(O){var m=[];O.command&&m.push(O.command);O.serviceEndpoint&&m.push(O.serviceEndpoint);O.navigationEndpoint&&m.push(O.navigationEndpoint);return m};
TUr=function(O,m){if(m)switch(O.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(O.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
hdp=function(O){switch(O.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_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",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"}}};
Ijz=function(O,m){return typeof O!=="object"||O===null?!1:Object.keys(m).every(function(G){return G in O})};
_.kg=function(O){return Object.fromEntries(Object.keys(O).map(function(m){return[m,m]}))};
pV6=function(O,m,G){return p1p(G,function(B,Q){return function(H){var M=_.eA.apply(1,arguments);return Ijz(H,O)?Q.apply(null,[H[m]].concat(_.lS(M))):Q.apply(null,[H].concat(_.lS(M)))}})};
_.yX=function(O){return function(m,G){return pV6(O,m,G)}};
_.c6=function(O){return O!=null&&O.watch?O.watch.isTheaterMode:!1};
_.Yg=function(O){return O!=null&&O.watch?O.watch.isWatchFullscreen:!1};
_.dg=function(O){O=_.SNs(O);return _.V("web_watch_enable_single_column_grid_view")?O:!1};
_.SNs=function(O){return O.watch.isWatchNarrowWidth};
_.EjM=function(O){return O.watch.openEngagementPanels};
_.wg=function(O){return _.bF(function(){j5p()();return Sl6(O)},{debugName:"d8B62c"},"DEXkhd")};
eV=function(O,m){return _.Vh(O.entities,"likeStatusEntity",m)};
L66=function(O,m){return _.Vh(O.entities,"likeCountEntity",m)};
_.Coz=function(O,m){return _.Vh(O.entities,"stringEntity",m)};
ojS=function(O,m){return _.Vh(O.entities,"dataFreshnessEntity",m)};
ljI=function(O,m){if(!O)return!1;var G,B=(G=_.b(O,_.Vs))==null?void 0:G.signal;if(B&&m.signalEndpointMap)return!!m.signalEndpointMap[B];var Q;if((G=(Q=_.b(O,_.Dw))==null?void 0:Q.request)&&m.continuationEndpointMap)return!!m.continuationEndpointMap[G];for(var H in O)if(m.commandEndpointMap[H])return!0;return!1};
aj6=function(O,m){if(m.streamingEndpointMap)for(var G in O)if(m.streamingEndpointMap[G]&&(O=m.streamingEndpointMap[G]))return O()};
kWp=function(O,m){var G,B=(G=_.b(O,_.Vs))==null?void 0:G.signal;if(B&&m.signalEndpointMap&&(G=m.signalEndpointMap[B]))return G();var Q;if((G=(Q=_.b(O,_.Dw))==null?void 0:Q.request)&&m.continuationEndpointMap&&(Q=m.continuationEndpointMap[G]))return Q();for(var H in O)if(m.commandEndpointMap[H]&&(O=m.commandEndpointMap[H]))return O()};
yrI=function(O){var m={"Content-Type":"application/json"};_.kB("EOM_VISITOR_DATA")?m["X-Goog-EOM-Visitor-Id"]=_.kB("EOM_VISITOR_DATA"):_.kB("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=_.kB("VISITOR_DATA"));m["X-Youtube-Bootstrap-Logged-In"]=_.kB("LOGGED_IN",!1);_.kB("DEBUG_SETTINGS_METADATA")&&(m["X-Debug-Settings-Metadata"]=_.kB("DEBUG_SETTINGS_METADATA"));if(O!=="cors"){var G=_.kB("INNERTUBE_CONTEXT_CLIENT_NAME");G&&(m["X-Youtube-Client-Name"]=G);(G=_.kB("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(m["X-Youtube-Client-Version"]=
G);(G=_.kB("CHROME_CONNECTED_HEADER"))&&(m["X-Youtube-Chrome-Connected"]=G);(G=_.kB("DOMAIN_ADMIN_STATE"))&&(m["X-Youtube-Domain-Admin-State"]=G)}_.yE("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(O=_.kB("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(m["X-YouTube-Lava-Device-Context"]=O):O!=="cors"&&_.yE("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(O=_.kB("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(m["X-YouTube-Lava-Device-Context"]=O);return m};
crI=function(O,m){m.watchNextResponse||m.reelItemWatchResponse?m.watchNextResponse?O.content=m.watchNextResponse:O.content=m.reelItemWatchResponse:m.playerResponse?O.player=m.playerResponse:m.reelWatchSequenceResponse&&(O.reelSequence=m.reelWatchSequenceResponse)};
_.sf=function(O){if(!O)return null;for(var m=[],G=0;G<O.textSegments.length;G++){var B=O.textSegments[G];B.text?m.push(B):B.emojiId&&m.push({emoji_id:B.emojiId})}return{text_segments:m}};
Dn6=function(O,m,G,B,Q,H,M){H=H===void 0?[]:H;var R=new _.Ni;R.endpoint=G;if(!G)return _.lT(new _.j9("handle undefined endpoint",m.tagName)),R;var x=s_O(G);x.length&&(_.Wd(O,x,m,B),R.actions=x);G.loggingUrls&&G.loggingUrls.forEach(function(W){W.baseUrl&&NI(W.baseUrl,W.attributionSrcMode)});
x=!_.V("web_skip_impression_click_killswitch")&&B&&B.impression;if(G.clickTrackingParams&&!YNM(G)&&!dn5(m)&&!x&&(x=_.uK(),!_.P6(x,m))){var t=m.getScreenLayer&&m.getScreenLayer();t?x.clickCommand(G,null,t):x.clickCommand(G,null)}x=!1;for(t=0;t<H.length;t++)if((0,H[t])(m,G,B)){x=!0;break}!x&&wVM(G)&&(R.ajaxPromise=ed5(O,m,G,B,Q,M));return R};
dn5=function(O){var m;return(O=(m=O.data)==null?void 0:m.navigationEndpoint)&&!!O.clickTrackingParams};
YNM=function(O){var m=_.b(O,_.Vs);if(m&&(m=m.signal)&&slO.indexOf(m)>=0)return!0;for(var G in O)if(NUr.indexOf(G)>=0)return!0;return!1};
wVM=function(O){var m;if(((m=_.b(O,_.Vs))==null?void 0:m.signal)==="CLIENT_SIGNAL")return!1;for(var G in O)if(PoI.indexOf(G)>=0)return!1;O=Object.keys(O);return O.length===1&&O[0]==="loggingUrls"?!1:!0};
HwY=function(O,m,G,B,Q,H,M){var R=_.Fw.instance;if(R&&_.AH(R,B))var x=_.Ov(R,B,Q).then(function(W){return(W==null?0:W.data)?W:{data:W}});
else x=O.requestDataForServiceEndpoint(B,Q),_.b(B,F6I)||_.b(B,ArY)||_.b(B,_.OwN)||_.b(B,my6)||_.ay(new _.j9("No RequestBuilder for endpoint",B));var t=_.m3();t.promise.thenCatch(function(){var W=_.o8(B,"action")||_.o8(B,"command")||_.o8(B,"endpoint");W&&(W=B[W],W.hasOwnProperty("onFailureAction")?_.Wd(m,[W.onFailureAction],G):W.hasOwnProperty("onFailureCommand")&&_.Wd(m,W.onFailureCommand,G));x.cancel("Resolver promise rejected")});
x.then(function(W){if(W){var Z=W.error;if(Z){if(H&&H.onServerError)H.onServerError(B,W);t.reject(new _.j9("Response error",B,Z))}else if(W=W.data)if(Z=W.error){if(H&&H.onServerError)H.onServerError(B,W);t.reject(new _.j9("Returned error",B,Z))}else{GdM(m,G,W,B);BdN(W);if(Z=D1N(W))for(var z=_.K(Z),J=z.next();!J.done;J=z.next()){J=J.value;var n=_.KR().resolve(_.v7(Qvz))||GM;if(!_.Fw.instance||!n.some(function(S){return!!_.b(B,S)})||_.V("kevlar_response_processor_allowlist_killswitch")){var I=n=void 0;
((I=_.b((n=J)==null?void 0:n.commandMetadata,_.bP))==null?0:I.sendPost)?_.tK(m,[J]):_.Wd(m,[J],G)}}(z=_.b(W==null?void 0:W.frameworkUpdates,Bu))&&M&&M(z);if(H&&H.onSuccess)H.onSuccess(B,W);t.resolve(new _.Qp(W,Z))}}else t.reject(new _.j9("Invalid service endpoint provided",B))},function(W){t.reject(W)});
return t.promise};
BdN=function(O){var m;(O=(m=_.b(O==null?void 0:O.onResponseReceivedCommand,_.v15))==null?void 0:m.continuationItems)&&(O==null?void 0:O.length)===1&&_.b(O[0],KXM)&&_.cd("so_r",void 0,"search_overview_answer")};
ed5=function(O,m,G,B,Q,H){var M;return(M=m.getNetworkManager&&m.getNetworkManager()?m.getNetworkManager():_.KR().resolve(_.v7(_.ew)))?HwY(M,O,m,G,B,Q,H):_.lK("No network manager.")};
GdM=function(O,m,G,B){if(G=G.trackingParams||G.loggingDirectives&&G.loggingDirectives.trackingParams){var Q;(_.b(B,$y5)||_.b(B,Mys)||_.b(B,rBN))&&B.clickTrackingParams?Q=_.Ez(B.clickTrackingParams):_.V("web_graft_to_parent_command")&&B.clickTrackingParams&&(Q=_.Ez(B.clickTrackingParams));var H;B=(H=m.getScreenLayer)==null?void 0:H.call(m);m=_.uK().graftServerVe(G,Q,B);_.UB(O,"yt-store-grafted-ve-action",[m])}};
_.Rrz=function(O){var m=new Image;return new _.zH(function(G,B){m.addEventListener("load",function(){G()});
m.addEventListener("error",function(){B()});
m.src=O})};
iw5=function(O){return!!O};
xye=function(O){return!!O};
q$O=function(O,m,G){var B=O.rowIndex;B!==void 0&&_.UB(O.hostElement,"yt-section-reactive-dismissal",[B,m,G])};
_.Hu=function(O,m,G){O=_.K(O);for(var B=O.next();!B.done;B=O.next()){B=B.value;if(B===m)break;for(var Q=_.K(G),H=Q.next();!H.done;H=Q.next())if(H=H.value,B.tagName===H||!_.V("web_event_button_role_check_killswitch")&&B.role==="button"&&H==="BUTTON")return!0}return!1};
_.vu=function(O,m,G){O=_.K(O);for(var B=O.next();!B.done;B=O.next()){B=B.value;if(B===m)break;for(var Q=_.K(G),H=Q.next();!H.done;H=Q.next())if(B.id===H.value)return!0}return!1};
_.M1=function(){var O=_.KR().resolve(_.v7(_.KJ));return O?(O=O.getCurrentPage())?_.$i(O):null:null};
_.rR=function(){var O=_.M1();if(!O){var m=_.KR().resolve(_.v7(_.KJ)),G=m?typeof m:"no page manager";m=m?m.getCurrentPage():null;G=new _.j9("Player is missing when requested.",G,m?m.tagName:"no page");_.oy(G)}return O};
_.$i=function(O){return O&&O.getPlayer?O.getPlayer():null};
UyY=function(O,m){O={args:{raw_player_response:O}};m&&(O.args=Object.assign({},O.args,m));return O};
tyO=function(O){if(O.args){if(O.args.raw_player_response)return O.args.raw_player_response;if(O.args.player_response)return JSON.parse(O.args.player_response)}};
_.WXI=function(O,m){var G={url:"/watch?v="+O.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};O.playlistId&&(G.url+="&list="+O.playlistId);O.playerParams&&(G.url+="&pp="+O.playerParams);O={watchEndpoint:O,commandMetadata:{webCommandMetadata:G}};m&&(O.clickTrackingParams=m);return O};
zrI=function(){return ZwY||!!_.ex("yt.player.Application")};
Vyr=function(){return JBN||!!document.querySelector("link#player-css")};
n1M=function(){function O(){ZwY=!0;bwe.resolve()}
var m,G;return _.r(function(B){bwe||(bwe=new _.Vg,zrI()?O():(m=document.createElement("script"),m.addEventListener("load",O),G=_.E0(_.kB("PLAYER_JS_URL")),_.$3(m,G),document.head.appendChild(m)));return B.return(bwe.promise)})};
fW6=function(){function O(){JBN=!0;XNz.resolve()}
if(!XNz)if(XNz=new _.Vg,Vyr())O();else{var m=document.createElement("link");m.id="player-css";m.addEventListener("load",O);var G=_.E0(_.kB("PLAYER_CSS_URL"));_.Ro(m,G,"stylesheet");document.head.appendChild(m)}return XNz.promise};
hrO=function(){return zrI()&&Vyr()?Promise.resolve([]):Promise.all([n1M(),fW6()])};
Tdf=function(O,m,G){var B={args:{}};O&&(B.args.raw_player_response=O);m&&(B.args.raw_watch_next_response=m);G&&(B.args=Object.assign({},B.args,G));return B};
IWp=function(O,m,G){var B=!1;B=B===void 0?!0:B;O=typeof O==="string"?_.R_(document,O):O;var Q=g1p+"_"+_.sS(O),H=uTz[Q];if(H&&B)return jv6(m,G)?H.api.loadVideoByPlayerVars(m.args||null):H.loadNewVideoConfig(m),H.api;H=new i5(O,Q,m,G,void 0);uTz[Q]=H;H.addOnDisposeCallback(function(){delete uTz[H.getId()]});
return H.api};
jv6=function(O,m){return m&&m.serializedExperimentFlags?m.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):O&&O.args&&O.args.fflags?O.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
pNN=function(){var O=new _.Vg;O.resolved=!1;var m=O.resolve;O.resolve=function(G){O.resolved=!0;m(G)};
return O};
E1f=function(O){var m={};S$I().install((m.document_disposed={callback:O},m))};
xi=function(O,m){if(!O&&Math.random()<=_.Rd("kevlar_unified_player_logging_threshold")){O=Error("zh`"+(m?m:"Unspecified error"));if(_.V("kevlar_unified_player_throw_errors"))throw O;_.ay(O)}};
_.LXN=function(){var O=_.ex("ytDebugData.callbacks");O||(O={},_.HI("ytDebugData.callbacks",O));return O};
o1f=function(O,m){var G=_.LXN();if(_.V("web_dd_iu")||C0s.includes(O))G[O]=m};
lWN=function(){return _.r(function(O){return O.return({isLeader:_.WGz(_.Kf().getState()),c:_.kB("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.kB("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
aWN=function(){var O;_.r(function(m){if(m.nextAddress==1)return o1f("APP_STATE",lWN),m.yield(_.KR().resolve(_.q1),2);O=m.yieldResult;o1f("PI",function(){return _.r(function(G){return G.return(O.getVideoStats())})});
_.ju(m)})};
kdr=function(O){var m=_.Hd(_.Pr(_.Qf.location.href));O=_.Hd(_.Pr(O));return _.V("kevlar_clear_non_displayable_url_params")?m==Uv(O):Uv(m)==Uv(O)};
Uv=function(O){var m=_.yBf(O);O=O.slice(0);var G=["frags"];_.V("kevlar_hide_pp_url_param")&&G.push("pp");_.V("kevlar_hide_time_continue_url_param")&&G.push("time_continue");G=_.K(G);for(var B=G.next();!B.done;B=G.next())B=B.value,O=_.Kr(_.Hd(O),B);return _.Hd(O)+(m?"#"+m:"")};
tt=function(O,m){m=Number(m)*1E3;var G=Math.round((0,_.$G)()),B=G.toString();O={innertubeResponse:O,serverDateTimestampMs:B,lastModifiedTimestampMs:B,expireTimestampMs:(G+m).toString()};if(m=_.kB("INNERTUBE_CONTEXT_CLIENT_NAME"))O.clientName=m;return O};
Y$e=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++cBp};
dyp=function(O){return!isNaN(O)&&O>0};
erp=function(){_.V("web_adaptive_repeat_ase")&&wNO&&_.LE("applicationStarted",wNO)};
_.Dyz=function(){var O=_.kf(),m=_.yA();m&&O&&_.mf(m,[O],!0)};
Nd5=function(O){return O&&svO.some(function(m){return O.includes(m)})};
G5I=function(O){var m=_.b(O,_.Db);if(!m)return!1;var G=m.url,B=m.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!G)return _.oy(Error("Eh")),!1;if(m.target==="TARGET_NEW_WINDOW"){m={};_.V("resolve_url_parent_tracking_params")&&(!_.Gg(G)||B7(window.location.href,G))&&(m={endpoint:O,itct:O.clickTrackingParams});kFS(m);O=null;try{if(B){a:{var Q=G,H=m;B=B===void 0?!1:B;H&&_.vd(Q,H);var M=_.d5(Q),R=_.an(M);Q!=R&&_.Dy(Error("gg`"+Q));Q=R;try{if(B){R=Q;R=uJN(R);Gw(R);O=_.Bi(window,R,"_blank",
"attributionsrc");break a}}catch(z){_.di(z)}Gw(Q);O=_.Bi(window,M,"_blank")}P0N(_.KR().resolve(FXO),O,G);return!0}}catch(z){_.oy(z)}_.vd(G,m);m={target:"_blank",noopener:!1};M=window;R=lG(G)?G:_.d5(typeof G.href!="undefined"?G.href:String(G));B=self.crossOriginIsolated!==void 0;O="strict-origin-when-cross-origin";window.Request&&(O=(new Request("/")).referrerPolicy);Q=m.noreferrer;if(B&&Q&&O==="unsafe-url")throw Error("ue");O=Q&&!B;Q=m.target||G.target;H=[];var x=[],t=!1;for(Z in m){var W=m[Z];switch(Z){case "width":case "height":case "top":case "left":H.push(Z+
"="+W);break;case "target":break;case "noopener":case "noreferrer":W?x.push(Z):(t=!0,x.push(Z+"=false"));break;case "attributionsrc":H.push(Z+(W?"="+W:""));break;default:H.push(Z+"="+(W?1:0))}}var Z=Q!==void 0&&!["_blank","_self","_top","_parent",""].includes(Q);Z=gN()&&Z;ABY&&B&&H.length===0&&x.length>0&&!Z&&!t?(x.length===2&&(x=["noreferrer"]),_.Bi(M,R,Q,x[0]),O=Otp()):(Z=H.join(","),_.Ie()&&M.navigator&&M.navigator.standalone&&Q&&Q!="_self"?(Z=_.fd("A"),sh(Z,R),Z.target=Q,O&&(Z.rel="noreferrer"),
((m=m.attributionsrc)||m==="")&&Z.setAttribute("attributionsrc",m),m=document.createEvent("MouseEvent"),m.initMouseEvent("click",!0,!0,M,1),Z.dispatchEvent(m),Z=Otp()):O?(Z=_.Bi(M,"",Q,Z),M=_.an(R),Z&&(Z.opener=null,M===""&&(M="javascript:''"),M='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Wu(M)+'">',M=P8(M),(m=Z.document)&&m.write&&(m.write(OI(M)),m.close()))):((Z=_.Bi(M,R,Q,Z))&&m.noopener&&(Z.opener=null),Z&&m.noreferrer&&(Z.opener=null)),O=Z);P0N(_.KR().resolve(FXO),
O,G);return!0}Z=_.JE(G);Z=Nd5(Z)||G==="https://studio.youtube.com/";if(_.Gg(G)&&!B7(window.location.href,G)||Z)Gw(G),lP(),_.BC(G,void 0,void 0,window.top,mSp);else return _.ay(new _.j9("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",O)),!1;return!0};
_.Htr=function(O,m){m=m===void 0?0:m;if(!(_.b(O,B$s)||_.b(O,QW6)||_.b(O,_.Db)&&_.b(O,_.Db).url))return!1;var G,B=(G=_.b(O,_.Db))==null?void 0:G.url;G=B?{externalLinkData:{url:B}}:null;return _.uK().clickCommand(O,G,m)};
vM5=function(O,m){return _.Vh(O.entities,"subscriptionStateEntity",m)};
KSp=function(O,m){return _.Vh(O.entities,"subscriptionNotificationStateEntity",m)};
$Se=function(O,m){return _.Vh(O.entities,"upcomingEventReminderStateEntity",m)};
M7N=function(O,m){return _.Vh(O.entities,"engagementToolbarSurfaceEntityPayload",m)};
r2s=function(O,m){return _.Vh(O.entities,"triStateButtonStateEntityPayload",m)};
RMY=function(O,m){return _.Vh(O.entities,"commerceCartCheckoutButtonEntity",m)};
_.its=function(O,m){return _.Vh(O.entities,"playlistLoopStateEntity",m)};
xSr=function(O,m){return _.Vh(O.entities,"commandEntity",m)};
USI=function(O,m,G,B,Q){Q=Q===void 0?{}:Q;return function(H){var M,R;var x=((M=O.loggingDirectives)==null?0:(R=M.clientVeSpec)==null?0:R.uiType)?_.Zv(O.loggingDirectives.clientVeSpec.uiType):void 0;Q.clickedVisualElement||(Q.clickedVisualElement=x);x=qmf(O,m);G(x,H);x=_.K(x);for(M=x.next();!M.done;M=x.next()){M=M.value;R=B;var t=H,W=Q;W.form?W.form.event=t:W.form={element:R,event:t};jV(M,W)}}};
qmf=function(O,m){var G=[];m?(O.toggledCommand&&G.push(O.toggledCommand),O.toggledServiceEndpoint&&G.push(O.toggledServiceEndpoint)):(O.defaultCommand&&G.push(O.defaultCommand),O.defaultServiceEndpoint&&G.push(O.defaultServiceEndpoint),O.defaultNavigationEndpoint&&G.push(O.defaultNavigationEndpoint));return G};
t75=function(O,m){var G=O.toggledStyle||O.style,B;switch((B=m?G:O.style)==null?void 0:B.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"}}};
_.zM=function(){return _.r(function(O){return O.nextAddress==1?O.yield(_.KR().resolve(_.q1),2):O.return(_.KR().resolve(WSe)())})};
_.Jt=function(){return _.KR().resolve(WSe)()};
_.Vp=function(){return Cn(function(){return{lottieEl:void 0}})};
ZtM=function(O,m){return O.startsWith(m.uniqueId)};
zMO=function(O){var m,G;_.r(function(B){if(B.nextAddress==1)return B.yield(_.zM(),2);m=B.yieldResult;if((G=m)==null||!G.addEventListener)return b5(),B.return();m.addEventListener("onCueRangeEnter",O);_.ju(B)})};
J2S=function(O){var m,G;_.r(function(B){if(B.nextAddress==1)return B.yield(_.zM(),2);m=B.yieldResult;if((G=m)==null||!G.removeEventListener)return b5(),B.return();m.removeEventListener("onCueRangeEnter",O);_.ju(B)})};
V75=function(O){var m,G,B,Q,H;_.r(function(M){if(M.nextAddress==1)return M.yield(_.zM(),2);m=M.yieldResult;if((G=m)==null||!G.addCueRange)return b5(),M.return();B=_.K(O.timings);for(Q=B.next();!Q.done;Q=B.next())H=Q.value,m.addCueRange(O.uniqueId+"-"+H,H/1E3,(H+100)/1E3);_.ju(M)})};
bt5=function(O){var m,G,B,Q,H;_.r(function(M){if(M.nextAddress==1)return M.yield(_.zM(),2);m=M.yieldResult;if((G=m)==null||!G.removeCueRange)return b5(),M.return();B=_.K(O.timings);for(Q=B.next();!Q.done;Q=B.next())H=Q.value,m.removeCueRange(O.uniqueId+"-"+H);_.ju(M)})};
nMS=function(){var O,m,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(_.zM(),2);O=B.yieldResult;if((m=O)==null||!m.getPlayerState)return b5(),B.return();G=O.getPlayerState();return B.return(G===2)})};
b5=function(){_.ay(new _.j9("Smartimation player does not exist or is corrupted"))};
Xne=function(){try{var O;return(O=window.CSS)!=null&&O.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(m){return _.ay(new _.j9("Smartimation CSS.supports threw an error")),!1}};
Iue=function(O,m,G,B,Q){var H=O.playlistId?fuO:hMp;m=m();G=G();Q=!!O.videoId&&Q()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.IQ(m))return T$Y({data:O,actionType:H,disabled:Q},G);if(O.videoId&&B())return gMs({data:O,actionType:H,disabled:Q});switch(m){case "TRANSFER_STATE_UNKNOWN":return gMs({data:O,actionType:H,disabled:Q});case "TRANSFER_STATE_FAILED":return O.videoId?uGY({data:O,actionType:H,disabled:Q}):jW5({data:O,actionType:H,disabled:Q});case "TRANSFER_STATE_COMPLETE":return jW5({data:O,
actionType:H,disabled:Q});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return T$Y({data:O,actionType:H,disabled:Q},G);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return O.videoId?uGY({data:O,actionType:H,disabled:Q}):gMs({data:O,actionType:H,disabled:Q});default:return gMs({data:O,actionType:H,disabled:Q})}};
pns=function(O,m){var G=O.onTapCommand,B=_.eg(G);if(O.videoId&&_.b(B,_.nJ))return _.b(B,_.nJ).action=m,G;O.playlistId&&_.b(B,_.X4)&&(_.b(B,_.X4).action=m);return G};
gMs=function(O){var m=O.data;var G=O.actionType;O=O.disabled;return{text:Sm6,iconType:"OFFLINE_DOWNLOAD",onTap:pns(m,G.ACTION_ADD),disabled:O}};
T$Y=function(O,m){var G=O.data;var B=O.actionType;O=O.disabled;var Q="OFFLINE_DOWNLOAD";m>=0&&m<=.1?Q="OFFLINE_DOWNLOADING_ZERO":m>.1&&m<=.3?Q="OFFLINE_DOWNLOADING_TWENTY":m>.3&&m<=.5?Q="OFFLINE_DOWNLOADING_FORTY":m>.5&&m<=.7?Q="OFFLINE_DOWNLOADING_SIXTY":m>.7&&m<1?Q="OFFLINE_DOWNLOADING_EIGHTY":m===1&&(Q="OFFLINE_PIN");return{text:EM6,iconType:Q,onTap:pns(G,B.ACTION_REMOVE_WITH_PROMPT),disabled:O}};
jW5=function(O){var m=O.data;var G=O.actionType;O=O.disabled;return{text:LSp,iconType:"OFFLINE_PIN",onTap:pns(m,G.ACTION_REMOVE_WITH_PROMPT),disabled:O}};
uGY=function(O){var m=O.data;var G=O.actionType;O=O.disabled;return{text:CXI,iconType:"OFFLINE_DOWNLOAD",onTap:pns(m,G.ACTION_RETRY),disabled:O}};
_.fJ=function(O,m){var G=j5p();return _.bF(function(){G();return Sl6(O,[_.o9(m)||""])},{debugName:"LUZslf"},"Z105t")};
oMI=function(O){var m=_.fJ(_.eH,function(){return O().videoId}),G=_.fJ(_.Dh,function(){return O().playlistId});
return function(){return O().videoId?m:O().playlistId?G:_.K(_.Wf("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
lup=function(O){var m=_.fJ(sr,function(){return O().videoId}),G=_.fJ(_.ttS,function(){return O().playlistId});
return function(){return O().videoId?m:O().playlistId?G:_.K(_.Wf(0,void 0,"K4tgOc")).next().value}};
aur=function(O){var m=_.fJ(_.fUY,function(){return O().videoId});
return function(){return O().videoId?m:_.K(_.Wf(!1,void 0,"Oaxwcf")).next().value}};
k5M=function(O){var m=_.fJ(z9I,function(){return O().videoId});
return function(){return O().videoId?m:_.K(_.Wf("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
y2Y=function(){return{}};
_.eMN=function(O,m,G){return{submitForm:function(){var B,Q,H,M;return _.r(function(R){if(R.nextAddress==1){B=c2r(O());if(!B)return R.return();if(B.onSubmit)return Yme(m),B.onSubmit(),Yme(G),R.return();if(!B.submitConfig||!B.formData)return R.jumpTo(0);B.disableDuringSubmission&&dSN(O(),!0);Yme(m);return R.yield(wnO(B.submitConfig,B.formData()),3)}Q=R.yieldResult;Yme(G);if(((H=Q)==null?0:H.submitResult)&&((M=B)==null?0:M.onSubmitResult))B.onSubmitResult(Q.submitResult);B.disableDuringSubmission&&dSN(O(),
!1);return R.return()})},
isValid:function(){var B=c2r(O());if(B){var Q;return!((Q=B.isValid)==null||!Q.call(B))}return!0},
isSubmitting:function(){var B,Q;return!!((B=c2r(O()))==null?0:(Q=B.isSubmitting)==null?0:Q.call(B))}}};
_.ht=function(){if(!DSp){var O=_.K(_.Wf(new Map,void 0,"Y1XnBc"));DSp=O.next().value;sWY=O.next().value}return DSp};
_.N$S=function(O){sWY(new Map(O))};
c2r=function(O){if(O)return _.ht()().get(O)};
wnO=function(O,m){var G;return _.r(function(B){return B.nextAddress==1?m?(G=_.KR().resolve(_.v7(PXS)))&&O.submitId?B.yield(G.submitForm(O.submitId,m,FSO,O.params,O.clickTrackingParams),2):B.return(Promise.reject(Error("Gh"))):B.return(Promise.reject(Error("Fh"))):B.return(B.yieldResult)})};
dSN=function(O,m){if(O){var G=_.ht();G().set(O,Object.assign({},G().get(O),{isSubmitting:function(){return m}}));
_.N$S(G())}};
Yme=function(O){if(O){var m=_.KR().resolve(_.Mu);m&&(O=_.eg(O()))&&m.resolveCommand(O)}};
OhN=function(O,m){m=m===void 0?{shouldPersist:!0}:m;return{useUpdatableData:function(G,B){var Q=[],H=_.K(_.fH(function(){var t=G();if(B!=null&&B.length&&Q){var W=Q.length>0;for(var Z=!1,z=0;z<B.length;z++){var J=B[z]();W&&J!==Q[z]&&(Z=!0);Q[z]=J}W=Z}else W=!1;if(W)_.TM.remove(x());else if(W=_.TM.get(x()))return W;return t})),M=H.next().value,R=H.next().value,x=_.bF(function(){return O(G())},void 0,"mX326");
_.ER(function(){if(x()!=null){A2N.set(x(),[M,R]);var t=x();_.LS(function(){A2N.delete(t)})}},"MgKPjb");
return[M,function(t){R(t);m.shouldPersist&&_.TM.set(x(),t)}]},
getData:function(G){var B;return(B=A2N.get(O(G)))==null?void 0:B[0]()},
updateData:function(G,B){G=O(G);var Q=A2N.get(G);if(!Q)return!1;var H=_.K(Q);Q=H.next().value;H=H.next().value;B=B(Q());H(B);m.shouldPersist&&_.TM.set(G,B);return!0}}};
mhS=function(O){var m=_.K(_.Wf(!0,void 0,"bKtO6d")),G=m.next().value;m.next();return function(){var B=bz(O.children());return _.q(_.U,{cond:G,then:function(){return B},
else:O.fallback})}()};
_.u5=function(O){var m=GzI(O),G=m.data,B=m.mapping,Q=m.wrapper;m=m.pendingFallback;var H=function(){return BBN(_.o9(G))},M=function(){var R=H(),x=[];
R=_.K(R);for(var t=R.next();!t.done;t=R.next()){var W=void 0;t=t.value;var Z=void 0;for(W in t)if(!(!t).hasOwnProperty(W)){Z=W;break}(W=Z)&&x.push(W)}return x};
return O.data?_.q(mhS,{fallback:m},function(){return _.q(_.gi,{each:M},function(R,x){var t=Q?function(Z){return Q(function(){return B[R](Z,x)},W,x)}:function(Z){return B[R](Z,x)};
t.debugName||(t.debugName=String(R));if(!B[String(R)])return document.createComment("");t.componentType!==uF&&QX5(String(R));var W=HhS(H,R,x);return _.q(t,{data:W})})}):_.q(_.Mr,null)};
GzI=function(O){var m=O.targetId||vdY(O.children);if(!O.data||!m||_.V("mweb_new_replaceables_killswitch"))return Object.assign({},O,{mapping:O.children,wrapper:void 0});var G="stamper-"+KyN++,B=function(){var R;return(R=typeof O.targetId==="function"?O.targetId(G):O.targetId)!=null?R:G};
m=_.K($hI(function(){var R=BBN(O.data());R.targetId=B;return R})).next().value;
var Q=Object.assign({},(_.KR().resolve(_.v7(M5p))||{}).replaceableMapping,O.children);if(O.replacementWrapper){var H=Q.notificationTextRenderer,M=Q.notificationMultiActionRenderer;H&&(Q.notificationTextRenderer=function(R,x){return O.replacementWrapper(H({data:R.data},x))});
M&&(Q.notificationMultiActionRenderer=function(R,x){return O.replacementWrapper(M({data:R.data},x))})}return Object.assign({},O,{data:m,
mapping:Q,wrapper:function(R,x,t){return uXY({targetId:B,stamperIndex:t},R)}})};
HhS=function(O,m,G){var B;return _.bF(function(){var Q=O()[G()];if(Q)B=Q[m];else return _.ay(new _.j9("Stamper failed to find "+String(m)+" at index "+G()+" of data array of length "+(O().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),B;return Q[m]},void 0,"wgRPHd")};
vdY=function(O){O=_.K(Object.keys(O));for(var m=O.next();!m.done;m=O.next())if(m=m.value,rpN.includes(m)||RKS.includes(m)||ihe.includes(m))return!0;return!1};
BBN=function(O){return O?Array.isArray(O)?O:[O]:[]};
QX5=function(O){if(_.V("web_enable_renderer_logger")){var m;(m=_.KR().resolve(_.v7(xhY)))!=null&&m.loggingEnabled&&!m.ids.has(O)&&m.ids.add(O)}};
qtY=function(){var O,m;return(m=(O=_.KR().resolve(_.v7(_.B6)))==null?void 0:O())!=null?m:!1};
t5p=function(O,m){O=O===void 0?Uhf:O;switch(m.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},O,{isOpen:m.payload});default:return O}};
ZhN=function(O,m){O=O===void 0?Wyf:O;switch(m.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},O,{isAllowed:m.payload});default:return O}};
Jpr=function(O,m){O=O===void 0?zKY:O;switch(m.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},O,{errorMessage:m.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},O,{title:m.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},O,{privacy:m.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},O,{isDisabled:m.payload});default:return O}};
bhp=function(O,m){O=O===void 0?V5I:O;switch(m.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},O,{isOpen:m.payload});default:return O}};
XOY=function(O,m){O=O===void 0?nd6:O;switch(m.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},O,{isFullscreen:m.payload});case "SET_NAVIGATION_BUTTON":var G=m.payload.targetId,B=Object.assign({},O.navigationButtons);B[G]=m.payload.button;return Object.assign({},O,{navigationButtons:B});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},O,{topPanelId:m.payload});case "SET_SECONDARY_HEADER":return G=m.payload.panelId,B=Object.assign({},O.secondaryHeader),B[G]=m.payload.secondaryHeader,
Object.assign({},O,{secondaryHeader:B});default:return O}};
gdN=function(){return nC(Object.assign({},{voiceSearch:Z3z,engagementPanel:XOY,bottomSheet:t5p,cinematicSetting:ZhN,shorts:Btp,drawerLayout:bhp,createPlaylist:Jpr,locationCollection:f5s,reportChannel:hKN,reportForm:TBs},Q4N))};
uRN=function(O,m){_.ln.addLowPriorityJob(function(){var G,B,Q;return _.r(function(H){switch(H.nextAddress){case 1:return _.n_(H,2),H.yield(M45(),4);case 4:return H.yield(fetch(O),5);case 5:return G=H.yieldResult,H.yield(G.json(),6);case 6:B=H.yieldResult;LH.set(O,B);requestAnimationFrame(function(){m(B)});
_.P7(H,0);break;case 2:Q=_.uS(H),_.ay(Q),_.ju(H)}})})};
jXe=function(O){var m={animationConfig:{},listeners:{}},G=function(){O(!0)};
m.listeners.data_failed=G;m.listeners.error=G;m.listeners.data_ready=function(){O(!1)};
return m};
St6=function(O){var m=O.model;var G=O.subscribed;var B=O.isOverlay;var Q=O.element;var H=O.commandController;var M=O.notificationState;if(G){var R,x;var t=(m==null?void 0:(R=m.buttonStyle)==null?void 0:R.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:m==null?void 0:(x=m.unsubscribeButtonContent)==null?void 0:x.buttonText}else{var W;t=m==null?void 0:(W=m.subscribeButtonContent)==null?void 0:W.buttonText}a:{var Z;switch(m==null?void 0:(Z=m.buttonStyle)==
null?void 0:Z.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":R="S";break a;default:R="M"}}a:if(B)B="overlay";else switch(m.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":B="overlay";break a;default:B="mono"}a:if(G)var z="tonal";else switch((z=m.buttonStyle)==
null?void 0:z.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":z="tonal";break a;default:z="filled"}return{style:B,type:z,state:m.disableSubscribeButton?"disabled":"active",size:R,focused:O.focused,toggled:G,accessibilityLabel:I5O(m,G,M),buttonText:t,iconPosition:m.disableNotificationBell?"none":"leading-trailing",onTap:pOp(m,G,Q,H),disableTextEllipsis:!!O.disableTextEllipsis}};
pOp=function(O,m,G,B){return function(Q){if(m){var H;var M=O.disableNotificationBell?_.eg(O==null?void 0:(H=O.unsubscribeButtonContent)==null?void 0:H.onTapCommand):_.eg(O==null?void 0:O.onShowSubscriptionOptions)}else{var R;M=_.eg(O==null?void 0:(R=O.subscribeButtonContent)==null?void 0:R.onTapCommand)}M&&jV(M,{form:{element:G==null?void 0:G.value},commandController:B});Q.stopPropagation()}};
I5O=function(O,m,G){if(m){if(O==null?0:O.disableNotificationBell){var B;return O==null?void 0:(B=O.unsubscribeButtonContent)==null?void 0:B.accessibilityText}switch(G){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var Q;return O==null?void 0:(Q=O.bellAccessibilityData)==null?void 0:Q.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var H;return O==null?void 0:(H=O.bellAccessibilityData)==null?void 0:H.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var M;return O==null?void 0:(M=
O.bellAccessibilityData)==null?void 0:M.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var R;return O==null?void 0:(R=O.bellAccessibilityData)==null?void 0:R.disabledLabel;default:var x;return O==null?void 0:(x=O.unsubscribeButtonContent)==null?void 0:x.accessibilityText}}else{var t;return O==null?void 0:(t=O.subscribeButtonContent)==null?void 0:t.accessibilityText}};
Edz=function(O){if(O){switch(O){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":O="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":O="NOTIFICATIONS_OFF";break;default:O="NOTIFICATIONS_NONE"}return O}};
Lyz=function(O,m,G){G.subscribed!==m&&((G=G.key)&&_.$n(_.jh("subscriptionStateEntity",G,{key:G,subscribed:m})),O.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:m})),m||_.xc(O,"yt-unsubscribe-action"))};
odM=function(O){O=_.b(_.eg(O),_.I_);var m,G,B,Q;return(Q=_.b(O==null?void 0:(m=O.panelLoadingStrategy)==null?void 0:(G=m.inlineContent)==null?void 0:(B=G.sheetViewModel)==null?void 0:B.content,C76))==null?void 0:Q.listItems};
l5r=function(O,m){if(O.onShowSubscriptionOptions&&m&&(O=odM(O.onShowSubscriptionOptions),O!=null&&O.length)){var G=Edz(m);O.forEach(function(B){B=_.b(B,_.pJ);var Q,H,M,R,x=B==null?void 0:(Q=B.leadingImage)==null?void 0:(H=Q.sources)==null?void 0:(M=H[0])==null?void 0:(R=M.clientResource)==null?void 0:R.imageName;B&&x&&(B.isSelected=x===G)})}};
a5N=function(O,m,G,B){m&&G?O.style.width=G+"px":!m&&B&&(O.style.width=B+"px")};
kzz=function(O,m,G){var B;(B=O.lottieEl)==null||B.goToAndPlay(0);var Q;(Q=m.lottieEl)==null||Q.goToAndPlay(0);_.Sh(_.ln,function(){var H;(H=G.lottieEl)==null||H.goToAndPlay(0)},300)};
ypY=function(O){return!(O==null||!O.iconName||(O==null?0:O.title))};
cpN=function(O,m,G,B){G&&_.ln.cancelJob(G);G=_.ln.addLowPriorityJob(function(){B(void 0)},5E3);
B(G);m&&O!==(m.likeStatus==="LIKE")&&m.key&&_.$n(_.jh("likeStatusEntity",m.key,{key:m.key,likeStatus:O?"LIKE":"INDIFFERENT",hadUserInteraction:O}))};
_.YtN=function(O,m){return _.Vh(O.entities,"accountLinkStatusEntity",m)};
dhM=function(O,m){return _.Vh(O.entities,"hatsSurveyEntity",m)};
wOM=function(O,m){return _.Vh(O.entities,"hatsSurveyStateEntity",m)};
eK6=function(O,m){return _.Vh(O.entities,"quantityIncrementerEntity",m)};
Dhs=function(O){switch(O){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
sXS=function(O){switch(O){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}};
NBI=function(O){switch(O){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.FyI=function(O){var m=_.Rd("web_generic_client_event_wait_period ",0);m||(m=3E5);var G=P7S.get(O);!_.V("enable_web_client_experiment_event_timeout_killswitch")&&G&&(0,_.$G)()-G<m||(P7S.set(O,(0,_.$G)()),_.LE("genericClientExperimentEvent",{eventType:O}))};
Apf=function(O){switch(O){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
OZf=function(O){if(!O)return"";var m,G=(m=_.KR().resolve(_.v7(_.B6)))==null?void 0:m(),B;if(!G&&((B=O.vibrantColorPalette)==null?0:B.iconInactiveColor))return Oc(O.vibrantColorPalette.iconInactiveColor,"1");var Q;return G&&((Q=O.darkColorPalette)==null?0:Q.iconInactiveColor)?Oc(O.darkColorPalette.iconInactiveColor,"1"):O.color?Oc(O.color,"1"):O.sampledThumbnailColor?(O=O.sampledThumbnailColor,"rgba("+O.red+","+O.green+","+O.blue+");"):""};
_.Ev=function(O,m){if(!O.includes("DATE_PLACEHOLDER"))return O;var G=new Date(0);G.setUTCSeconds(m);return O.replace("DATE_PLACEHOLDER",mlp(G))};
Grp=function(O,m,G){return function(B){var Q=O.command;Q&&(jV(Q,{form:{element:G}}),m([Q],B))}};
QHI=function(O,m,G,B,Q){return function(H){var M=BfO(O,m);M&&jV(M,{form:{element:G},commandController:B});Q&&H.stopPropagation()}};
BfO=function(O,m){if(O.signInEndpoint&&!_.V("web_subscribe_sign_in_endpoint_killswitch"))return O.signInEndpoint;if(m){if(O.serviceEndpoints)return O.serviceEndpoints[1];if(O.onUnsubscribeEndpoints)return O.onUnsubscribeEndpoints[0]}else{if(O.serviceEndpoints)return O.serviceEndpoints[0];if(O.onSubscribeEndpoints)return O.onSubscribeEndpoints[0]}};
HZI=function(O,m){var G,B,Q,H;m=m&&((G=O.unsubscribeAccessibility)==null?void 0:(B=G.accessibilityData)==null?void 0:B.label)||((Q=O.subscribeAccessibility)==null?void 0:(H=Q.accessibilityData)==null?void 0:H.label);return O.longSubscriberCountText?[m,_.HX(O.longSubscriberCountText)].filter(function(M){return M}).join(" "):m};
LJ=function(O,m){return m||(O==null?0:O.isChannelDelegate)?"disabled":"active"};
vPf=function(O,m){var G;switch((G=O.style)==null?void 0:G.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:LJ(O)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:LJ(O)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:LJ(O,!0)};case "OVERLAY":return m?{style:"overlay",type:"tonal",state:LJ(O)}:{style:"overlay",type:"filled",state:LJ(O)};default:return m?{style:"mono",type:"tonal",state:LJ(O)}:{style:"mono",type:"filled",state:LJ(O)}}};
_.CJ=function(){for(var O=[],m=_.K(_.eA.apply(0,arguments)),G=m.next();!G.done;G=m.next())if(G=G.value)if(typeof G==="string")O.push(G);else{G=_.K(Object.entries(G));for(var B=G.next();!B.done;B=G.next()){var Q=_.K(B.value);B=Q.next().value;(Q=Q.next().value)&&O.push(B)}}return O.join(" ")};
KrY=function(O){switch(O){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
$lf=function(O){switch(O){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
Mce=function(O,m){var G=O.map(function(B){return B.toString()});
return _.nH(function(B){if(G.includes(B.key)){m&&B.preventDefault();var Q;(Q=B.currentTarget)==null||Q.click()}})};
_.rqM=function(){return Mce(["Enter"])};
_.Rxf=function(){return Mce(["Enter"," "],!0)};
_.o_=function(O){if(O.composedPath)return O.composedPath();if(!O.__composedPath){for(var m=[],G=O.target;G;)m.push(G),G=G.parentNode;m.push(window);O.__composedPath=m}return O.__composedPath};
_.l5=function(O,m,G){O=_.K(O);for(var B=O.next();!B.done;B=O.next()){B=B.value;if(B===m)break;for(var Q=_.K(G),H=Q.next();!H.done;H=Q.next())if(H=H.value,B.tagName===H||B.role==="button"&&H==="BUTTON")return!0}return!1};
xl6=function(O,m){var G,B=(G=m.observer)!=null?G:_.KR().resolve(KI);if(O){G=iZs(O);var Q=[];m.showOption&&Q.push(B.observe(O,function(){m.visibilityCallback(!0,O)},m.showOption));
m.hideOption&&Q.push(B.observe(O,function(){m.visibilityCallback(!1,O)},m.hideOption));
m.prescanOption&&m.prescanCallback&&Q.push(B.observe(O,function(){m.prescanCallback()},m.prescanOption));
var H;G.visibilityMonitorKeys=((H=G.visibilityMonitorKeys)!=null?H:[]).concat(Q)}};
iZs=function(O){var m;return(m=O.polymerController)!=null?m:O};
_.ki=function(O){return!!_.a_(O)};
_.yp=function(O,m,G,B,Q){return function(H){var M=gXr();_.ER(function(){if(H){qjI(H,O(),Q);var R=Ule(H,O(),m,G,B,M);_.LS(R)}},"nr377e")}};
qjI=function(O,m,G){var B=tcz(m),Q=WrI(m);m=B&&ZZN;var H=Q&&zx5;(B||Q)&&xl6(O,{visibilityCallback:function(M){var R=_.KR().resolve(_.Mu);M&&B?R.resolveCommand(B,{form:{element:G?O:void 0},disableClickTracking:!0}):!M&&Q&&R.resolveCommand(Q,{form:{element:G?O:void 0},disableClickTracking:!0})},
showOption:m,hideOption:H})};
Ule=function(O,m,G,B,Q,H){var M=new Map;if(m=_.a_(m)){var R;O=(B==null?void 0:(R=B.onTap)==null?void 0:R.value)||O;G=JqM(m,O,G==null?void 0:G.onTap,Q,H);O.addEventListener("click",G);M.set("click",G)}return function(){for(var x=_.K(M),t=x.next();!t.done;t=x.next()){var W=_.K(t.value);t=W.next().value;W=W.next().value;O.removeEventListener(t,W)}}};
_.a_=function(O){var m;return(O=(m=_.b(O,Vcp))==null?void 0:m.onTap)&&_.eg(O)};
tcz=function(O){var m;return(O=(m=_.b(O,Vcp))==null?void 0:m.onVisible)&&_.eg(O)};
WrI=function(O){var m;return(O=(m=_.b(O,Vcp))==null?void 0:m.onHidden)&&_.eg(O)};
JqM=function(O,m,G,B,Q){var H=function(R){_.KR().resolve(_.Mu).resolveCommand(O,R)},M=function(R){B&&_.l5(_.o_(R),m,B)||H(R.target?{form:{element:R.target,
sourceData:O,mutationContext:Q}}:void 0)};
G&&(M=function(R){G(R,H)});
return M};
bZS=function(O){switch(O){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}};
nPr=function(O){var m=O.numAvatarsInCluster;switch(O.clusterSize){case "small":return m===2?22:18;case "40":return m===2?24:22;default:return m===2?24:20}};
XBS=function(O,m){return function(G){var B=Object.keys(m);_.ER(function(){if(O!=null&&O()){for(var Q=_.K(B),H=Q.next();!H.done;H=Q.next())H=H.value,G.addEventListener(H,m[H]);_.LS(function(){for(var M=_.K(B),R=M.next();!R.done;R=M.next())R=R.value,G.removeEventListener(R,m[R])})}},"bXZGfe")}};
fFp=function(O){switch(nPr(O)){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""}};
hxS=function(O){switch(O){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""}};
Tfe=function(O){switch(nPr(O)){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""}};
gPs=function(O){switch(O){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""}};
upO=function(O){switch(O){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}};
jHz=function(O){return O==="medium"||O==="48"||O==="large"||O==="extra-large"||O==="extra-extra-large"||O==="giant"};
IFS=function(O){return!!((O==null?0:O.includes(3))||(O==null?0:O.includes(5)))};
Sjr=function(O){var m=O.data;return{size:pBs(m.avatarImageSize),type:m.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:O.onTap,decorations:O.decorations||[],badgeText:O.badgeText,accessibilityText:O.accessibilityText,avatarButtonCustomClassName:O.avatarButtonCustomClassName,clusterLayoutConfig:O.clusterLayoutConfig}};
pBs=function(O){switch(O){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"}};
EPe=function(O){switch(O){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}};
Lrp=function(O){switch(O){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
Ctf=function(O){var m=O.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",G,B=O.avatars&&O.avatars.length>0?(G=_.b(O.avatars[0],_.cu))==null?void 0:G.avatarImageSize:"AVATAR_SIZE_UNKNOWN";G=EPe(B)||0;if(m){var Q,H=(Q=O.avatarClusterSize)!=null?Q:"AVATAR_SIZE_M";m=EPe(H);var M,R,x=Math.min((R=(M=O.avatars)==null?void 0:M.length)!=null?R:0,4),t;return{avatars:((t=O.avatars)==null?void 0:t.slice(0,4))||[],avatarSizeInPx:G,avatarStackStyle:{width:m+"px",height:m+"px",position:"relative"},avatarStyle:function(Z){var z=
nPr({clusterSize:pBs(H),numAvatarsInCluster:x,avatarIndex:Z});var J=EPe(H);x===3&&Z===2?(J=(J-z)/2,J=(_.kB("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*J):J=void 0;return{position:"absolute",top:x===2&&Z===1||x===3&&Z===2||x===4&&Z>=2?"0":void 0,bottom:x===2&&Z===0||x>2&&Z<2?"0":void 0,left:x===2&&Z===1||x>2&&(Z===1||Z===3)?"0":void 0,right:x<=3&&Z===0||x===4&&(Z===0||Z===2)?"0":void 0,transform:J?"translateX("+J+"px)":void 0,width:z+"px",height:z+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(Z){return{clusterSize:pBs(O.avatarClusterSize),numAvatarsInCluster:x,avatarIndex:Z}},
avatarButtonCustomClassName:void 0}}var W;return{avatars:((W=O.avatars)==null?void 0:W.slice())||[],avatarSizeInPx:G,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:Lrp(B),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
oPf=function(O,m,G){return function(){jV(O,{form:{element:m},commandController:G})}};
lFf=function(O){switch(O){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
aFY=function(O){switch(O){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
krM=function(O){if("accessibilityText"in O)return O.accessibilityText||"";if("title"in O){var m,G,B;return((m=O.title)==null?void 0:(G=m.accessibility)==null?void 0:(B=G.accessibilityData)==null?void 0:B.label)||""}if("accessibility"in O){var Q,H;return((Q=O.accessibility)==null?void 0:(H=Q.accessibilityData)==null?void 0:H.label)||""}return""};
yqp=function(O){return"inlinePlayerData"in O};
Yi=function(O){return new cqs(O)};
YjM=function(O){return function(m){O&&(O.thumbnailElRef=m.thumbnailElRef,O.thumbnail=m.thumbnail,O.thumbnailOverlays=m.thumbnailOverlays,O.thumbnailSize=m.thumbnailSize)}};
dlM=function(O){switch(O){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
exs=function(O){var m=_.K(_.Wf(!1,void 0,"RIOonf")),G=m.next().value,B=m.next().value;_.Ln(function(){var Q=O==null?void 0:O();if(Q){var H=_.KR().resolve(_.v7(wBs));if(H){var M={triggeringElement:Q,onDwellTriggeredFn:function(){B(!0)},
onDwellEndFn:function(){B(!1)}};
H.registerElement(M);_.LS(function(){_.dR(H,M)})}}});
return G};
Dlr=function(O,m,G){G?G(m):_.PE(m,O.target?{form:{element:O.target}}:void 0)};
_.wR=function(O,m,G){return function(B){_.ER(function(){var Q=new Map,H,M=(H=O())==null?void 0:H.onTap;M&&(H=function(R){a:{var x=R.composedPath();x=_.K(x);for(var t=x.next();!t.done;t=x.next()){t=t.value;if(t===B)break;if(t.className.indexOf("HostIsClickableAdComponent")>=0||t.tagName==="A".toString()||t.tagName==="BUTTON".toString()){x=!0;break a}}x=!1}x||Dlr(R,M,m)},(G==null?0:G())||_.V("enable_web_home_top_landscape_image_layout_level_click")?(B.addEventListener("tap",H),Q.set("tap",H)):(B.addEventListener("click",
H),Q.set("click",H)));
_.LS(function(){for(var R=_.K(Q),x=R.next();!x.done;x=R.next()){var t=_.K(x.value);x=t.next().value;t=t.next().value;B.removeEventListener(x,t)}})},"D7XqOc")}};
sHI=function(O,m){var G,B=(G=O.interaction)==null?void 0:G.onTap;if(O=_.sz({elementsCommand:B,forceNewState:!0,skipOnClick:!0}))return O.onclick=function(Q){Fjf(Q)&&(Q.preventDefault(),B&&Dlr(Q,B,m))},NN(O)?O:void 0};
Nfz=function(O){switch(O){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Pt5=function(O){switch(O){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"}};
Fr6=function(O){switch(O){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"}};
_.Aqp=function(O){return _.V("rich_grid_enable_dynamic_offset")&&O?Math.max(Math.round((O-_.Rd("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Rd("rich_grid_dynamic_offset_offset_per_100",10)),_.Rd("rich_grid_dynamic_offset_lower_bound",-60)):0};
Oep=function(O,m){switch(m){case 4:return 16;case 1:return O<528?16:O<1024?32:48;case 2:return(O>=528?16:8)/2;case 3:return(O<528?16:O<1024?32:48)+(O>=528?16:8)/2;default:return 0}};
mwN=function(O){var m=O.originalContainerWidth;var G=O.sizing;var B=O.standardUnit;if(O.isCompactList&&m<528)return 1;switch(G){case "STANDARD":return B;case "COMPACT":return B+1;case "EXTRA_COMPACT":return _.V("web_responsive_extra_compact_2x")?B*2:_.V("web_responsive_current")?B===1?2:B%2===0?B/2*3:B+2:B<4?B*2:Math.ceil(B*3/2);case "MINI":return B>1?B*2:3;default:return B}};
B1O=function(O){var m=O.containerWidth;var G=O.peek;var B=O.gutter;var Q=O.numItems;O=O.ignoreMaxWidthLimit;m=G?Math.max((m-G-B*Q)/Q,0):Math.max((m-B*(Q-1))/Q,0);return O?m:Math.min(m,G7r)};
_.eh=function(O){var m=O.containerWidth;var G=O.hasPeek;var B=O.sizing;var Q=O.marginSettings;var H=O.isCompactList;var M=O.enableFullBleedForSingleCol;var R=O.standardUnitMinWidth;B=B||"STANDARD";G=!!G;O=m>=528?16:8;var x=G?m>=528?48:24:0;Q=Oep(m,Q);var t=Math.max(m-Q*2,0);R=_.V("kevlar_disable_min_width_override")?void 0:R;R=Math.min(Math.max(Math.floor((t-x+O)/((R!=null?R:QJS)+_.Aqp(m)+O)),1),6);var W=(M=!!M&&R===1)||R===1&&B!=="STANDARD";G=G||W?t:Math.min(t,(G7r+O)*R-O);B=mwN({originalContainerWidth:m,
sizing:B,standardUnit:R,isCompactList:H});return{itemWidth:B1O({containerWidth:G,peek:x,gutter:O,numItems:B,ignoreMaxWidthLimit:W}),gutter:O,maxContainerWidth:G,numItems:B,margin:M?0:Q,contentMargin:Oep(m,1),typographyBump:B1O({containerWidth:G,peek:x,gutter:O,numItems:R,ignoreMaxWidthLimit:W})>400&&!(H&&m<528),standardUnit:R}};
Her=function(O){switch(O){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.v$I=function(O){if(O){var m;if((m=O.responsiveContainerConfiguration)==null?0:m.responsiveSize)return Her(O.responsiveContainerConfiguration.responsiveSize);if(O.layoutSizing)switch(O.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"}}};
Kee=function(O){if(O.fullbleed)return 1;switch(O.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
R1M=function(O,m,G,B,Q,H,M,R){a:if(O===4&&B==="LOCKUP_CONTENT_TYPE_SOURCE")var x=1;else switch(O){case 3:x=1;break a;default:x=0}a:switch(O){case 4:H=!!(H&&H<100);break a;default:H=!1}a:switch(O){case 3:case 4:var t=B==="LOCKUP_CONTENT_TYPE_CHANNEL"||B==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:t=!1}a:switch(O){case 5:var W=!0;break a;case 4:W=!1;break a;default:W=!1}return{isOverlay:W,isCard:$wf(B,M),sizing:m!=null?m:"STANDARD",typographyBump:G!=null?G:!1,isTiny:H,isCentered:t,isCollection:M_S(B),
arrangement:x,addMarginForFullbleed:O===1&&B!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:O===1&&B==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:r5s(B,Q,R),disableRounding:O===5||$wf(B,M)||O===1&&B==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:M_S(B)?2:0,useLegacyTypography:!(R==null||!R.useLegacyTypography),useRichGridLegacyTypography:!(R==null||!R.useRichGridLegacyTypography)&&!_.V("web_enable_typography_bump"),compactMetadata:x===0&&B==="LOCKUP_CONTENT_TYPE_VIDEO"}};
M_S=function(O){switch(O){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}};
$wf=function(O,m){if(m&&O==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(O){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
r5s=function(O,m,G){if(m&&(G==null||!G.alwaysRespectPodcastShowAspectRatio||O!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(O){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}};
iep=function(O){switch(O){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"}};
xwO=function(O){switch(O){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}};
qUs=function(O){switch(O){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}};
_.Dv=function(O){if(O){var m;return((m=_.KR().resolve(_.v7(_.B6)))==null?0:m())?O.darkThemeImage:O.image}};
Wep=function(O,m,G,B,Q,H){if(Q&&H&&m==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:Q,height:H};if(!G)return{};Q=G.size;G=G.allowFullWidth;if(m==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&G)return{fullWidth:!0};if(Q===void 0)return{};switch(O){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/UwY*Q};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:Q*
t_I,height:Q};default:return(B==null?0:B.height)&&(B==null?0:B.width)?B.width/B.height>1?{maxWidth:Q*t_I}:{maxWidth:Q}:{maxWidth:Q}}};
ZeS=function(O){var m;return O&&((m=_.Dv(O.themedImage))!=null?m:O.image)};
z1N=function(O){var m;return O==null?void 0:(m=O.sources)==null?void 0:m[0]};
J5Y=function(O){switch(O){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.V_O=function(O){if(O)return"content-id-"+O};
beN=function(O){switch(O.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"}}};
n$6=function(O){var m=_.sv.currentPageSubTypeSelector(_.Km().getState())||"";return O?O+m:""};
Xtr=function(O){switch(O){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
h1s=function(O){var m=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],G=_.K(_.Wf(void 0,void 0,"JrqNsb")),B=G.next().value,Q=G.next().value,H=_.K(_.Wf(void 0,void 0,"rWytse"));G=H.next().value;var M=H.next().value;H=_.K(_.Wf(void 0,void 0,"DHRqxe"));var R=H.next().value,x=H.next().value;return{touchFeedbackEvents:{pointerUpEvent:B,pointerDownEvent:G,pointerLeaveEvent:R},touchFeedbackOnPointerUp:_.nH(function(t){fAN(_.o_(t),m)||(Q(t),M(void 0),x(void 0))}),
touchFeedbackOnPointerDown:_.nH(function(t){O==null||O(t);fAN(_.o_(t),m)||(M(t),Q(void 0),x(void 0))}),
touchFeedbackOnPointerLeave:_.nH(function(t){fAN(_.o_(t),m)||(x(t),M(void 0),Q(void 0))})}};
fAN=function(O,m){m=m===void 0?[]:m;m=[].concat(_.lS(m),["BUTTON".toString()]);O=_.K(O);for(var G=O.next();!G.done;G=O.next()){G=G.value;for(var B=_.K(m),Q=B.next();!Q.done;Q=B.next())if(G.tagName===Q.value)return!0}return!1};
T1M=function(O){switch(O){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"}};
g$5=function(O){return O.scrollHeight-O.offsetHeight>1};
u7N=function(O,m){var G;return G$(O,((G=O.content)==null?void 0:G.length)||0,!m)};
ptO=function(O,m,G,B,Q,H){if(!m||jJM){var M;return G$(O,((M=O.content)==null?void 0:M.length)||0,!0)}m=B.value;if(!G.value||!m||!O.content)return O;G=0;B=O.content.length;M=0;IAI||(IAI=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var R=IAI;for(Q=Q*H*R;G<=B;)H=Math.floor(G+(B-G)/2),R=G$(O,H)||O,m.firstChild&&(m.firstChild.textContent=R.content),m.scrollHeight>Q?B=H-1:(M=H,G=H+1);return G$(O,M)};
SUe=function(O,m){var G,B;return(((G=O.content)==null?void 0:G.length)||0)>(((B=m.content)==null?void 0:B.length)||0)};
E$6=function(O,m,G,B,Q,H){var M=_.Al("truncated-text-content"),R=_.Al("truncated-text-content"),x=_.Al("button"),t=_.Al("button"),W=_.Al("button"),Z=_.KR().resolve(_.H6),z=_.K(_.fH(function(){return u7N(O(),Q())})),J=z.next().value,n=z.next().value;
z=_.K(_.fH(function(){return SUe(O(),J())}));
var I=z.next().value,S=z.next().value,L=null;_.ER(function(){function C(){if(M.value&&x.value&&W.value){var d=H()?O():ptO(O(),Q(),M,R,m(),G());n(d);requestAnimationFrame(function(){if(M.value&&x.value&&W.value){var D=g$5(M.value)||SUe(O(),d);S(D);if(!B()){var OS=g$5(M.value),rN=G(),xO=M.value,XI=x.value,Vf=W.value,US=Z==="rtl";if(xO&&XI){var CN=XI.offsetLeft;US&&(CN=xO.offsetWidth-XI.offsetWidth-XI.offsetLeft);if(D){D=XI.offsetWidth;XI=xO.offsetWidth;var oe=OS?XI-D-70:CN-70;rN="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
rN+"rem,\n      #000 "+rN+"rem,\n      #000 100%), linear-gradient(\n      to "+((US?"left":"right")+",\n      #000 0px,\n      #000 "+oe+"px,\n      transparent "+(OS?XI-D:oe+70)+"px)");xO.style.setProperty("-webkit-mask-image",rN);xO.style.setProperty("mask-image",rN)}else xO.style.setProperty("-webkit-mask-image",""),xO.style.setProperty("mask-image","");OS?US?(Vf.style.setProperty("left","0"),Vf.style.setProperty("right","unset")):(Vf.style.setProperty("left",""),Vf.style.setProperty("right",
"0")):US?(Vf.style.setProperty("left","unset"),Vf.style.setProperty("right",CN+"px")):(Vf.style.setProperty("left",CN+"px"),Vf.style.setProperty("right","unset"))}}}})}}
var P,w;(P=L)==null||(w=P.stop)==null||w.call(P);P=new _.Pu(C,17);C();L=P},"KjwIxd");
_.Ln(function(){n(u7N(O(),Q()));S(SUe(O(),J()));var C=function(){IAI=void 0;var w,d;(w=L)==null||(d=w.fire)==null||d.call(w)};
if(window.ResizeObserver){var P=new ResizeObserver(C);P.observe(M.value);_.LS(function(){var w,d;(w=L)==null||(d=w.stop)==null||d.call(w);P.disconnect()})}else window.addEventListener("resize",C),_.LS(function(){var w,d;
(w=L)==null||(d=w.stop)==null||d.call(w);window.removeEventListener("resize",C)})});
return{isTruncated:I,displayText:J,contentRef:M,hiddenRef:R,placeholderTruncationTextRef:x,hiddenTruncationTextRef:t,truncationTextRef:W}};
Ler=function(O){return{content:O!=null?O:""}};
Cwr=function(O){return _.eg(O.onTap)||_.a_(O.rendererContext)};
o$r=function(O){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:O.overflowMenuA11yLabel,onTap:function(m){m.preventDefault();m.stopPropagation();if(O.overflowMenuOnTap){var G=_.sz({elementsCommand:O.overflowMenuOnTap,forceNewState:!0});if(G==null?0:G.onclick)G.onclick(m)}}}};
_.F4=function(O,m,G,B,Q){B=B===void 0?{}:B;if(!Q||Math.random()<5E-4){m=m||null;G=G||null;O=O instanceof Error?O:new _.j9(O);if(O.args)for(var H=_.K(O.args),M=H.next();!M.done;M=H.next())M=M.value,M instanceof Object&&(B=Object.assign({},M,B));B.category="H5 Ads Control Flow";m&&(B.slot=m?"slot:  "+m.slotType:"");G&&(B.layout=G?"layout:  "+G.layoutType:"",B.layoutId=G.layoutId);Q&&(B.known_error_aggressively_sampled=!0);O.args=[B];_.ay(O)}};
_.lAN=function(O,m){_.xc(O,"yt-open-popup-action",[_.rH(m),O])};
_.At=function(O,m){_.lAN(O,_.Qg(m))};
k7N=function(O){if(!O)return"";if(aAS[O])return aAS[O];Op||(Op=_.fd("A"));Op.href!==O&&sh(Op,O);var m=Op.pathname;aAS[O]=m.startsWith("/")?m:"/"+m;return aAS[O]};
y5N=function(){var O=k7N(window.location.href);if(O==="/")return"home";if(O.startsWith("/results"))return"search";if(O.startsWith("/watch"))return"watch";if(O.startsWith("/shorts"))return"shorts";if(O.startsWith("/hashtag"))return"hashtag";if(O.startsWith("/create_channel"))return"create_channel";if(O.startsWith("/@")||O.startsWith("/user/")||O.startsWith("/channel/"))return"channel";if(O.startsWith("/experiments"))return"experiments";if(O.startsWith("/sponsor_channel"))return"sponsorship";if(O.startsWith("/select_site"))return"settings";
if(O.startsWith("/locate"))return"locate";if(O.startsWith("/redeem"))return"redeem";if(O.startsWith("/musicpremium")||O.startsWith("/premium")||O.startsWith("/red"))return"premium";if(O.startsWith("/paid_memberships"))return"paid_memberships";if(O.startsWith("/oops"))return"oops";if(O.startsWith("/clip"))return"clip";var m;return(mH==null?void 0:(m=mH.response)==null?void 0:m.page)==="404"?"404":O.startsWith("/feed/history")?"history":O.startsWith("/feed/library")?"library":O.startsWith("/feed/subscriptions")?
"subscriptions":O.startsWith("/feed/trending")?"trending":O.startsWith("/feed/news_destination")?"news":O.startsWith("/playlist")?"playlist":O.startsWith("/minor_moment")?"minor_moment":O.startsWith("/playable/")||O.match("^/playables/(?!saved).")?"mini_app":O.startsWith("/playables")?"playables":O.startsWith("/create/live/join")?"open_in_app":O.startsWith("/feed/explore")?"explore":"browse"};
_.wtY=function(){var O=mH==null?void 0:mH.response,m=O==null?void 0:O.endpoint;if(!m)return(O==null?void 0:O.page)==="watch"?"watch":y5N();var G;O=(G=_.b(m==null?void 0:m.commandMetadata,_.bP))==null?void 0:G.webPageType;G=!1;if(O&&!c5M.includes(O))switch(O){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 B;return((B=_.b(m==null?void 0:m.commandMetadata,_.bP))==null?0:B.url)&&k7N(_.b(m.commandMetadata,_.bP).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var Q;return(m=(Q=_.b(m,_.gH))==null?void 0:Q.browseId)?YUf[m]||"browse":"browse";default:G=!0}if(_.b(m,_.GU)||_.b(m,dwN))return"sponsorship";Q=k7N(window.location.href);if(Q.startsWith("/experiments"))return"experiments";if(Q.startsWith("/create_channel"))return"create_channel";
if(_.b(m,_.Db)&&Q.startsWith("/shorts"))return"shorts";if(_.b(m,_.Db)&&Q.startsWith("/watch"))return"watch";G&&(m=new _.j9("Unsupported mWeb page type",{pathname:Q,webPageType:O}),_.oy(m));return"browse"};
Bc=function(O,m,G,B){return O&&m?O!==G||m!==B?(_.F4(Error("Ph"),void 0,void 0,{"stored-slot":O,"stored-layout":m,"latest-slot":G,"latest-layout":B}),!1):!0:!1};
Dwr=function(O,m,G){return O({targetId:m},function(B){return G.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},B,{contents:[G.continuationItems?_.b(G.continuationItems[0],e1e):{}]}):G.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},B,{header:G.continuationItems?G.continuationItems[0]:void 0}):Object.assign({},B,{contents:G.continuationItems?G.continuationItems:[]})})};
sJI=function(O,m,G,B){if(m=m.trackingParams){var Q,H=(Q=G.getScreenLayer)==null?void 0:Q.call(G);G=_.yA(H);Q=_.kf(H);if(G&&Q){var M=_.Ez(m);_.V("combine_ve_grafts")?O.graftServerVe(m,Q,H):_.Pd(G,Q,M);B==null||B(M)}}};
Pws=function(O){var m;return((m=N1Y.get(O))==null?void 0:m.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
OON=function(O,m){var G={type:m.slotType,controlFlowManagerLayer:Fes.get(m.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};m.slotEntryTrigger&&(G.entryTriggerType=m.slotEntryTrigger.triggerType);m.slotPhysicalPosition!==1&&(G.slotPhysicalPosition=m.slotPhysicalPosition);if(O){G.debugData={slotId:m.slotId};if(O=m.slotEntryTrigger)G.debugData.slotEntryTriggerData=A5s(O);O=m.slotFulfillmentTriggers;G.debugData.fulfillmentTriggerData=[];O=_.K(O);for(var B=O.next();!B.done;B=O.next())G.debugData.fulfillmentTriggerData.push(A5s(B.value));
m=m.slotExpirationTriggers;G.debugData.expirationTriggerData=[];m=_.K(m);for(O=m.next();!O.done;O=m.next())G.debugData.expirationTriggerData.push(A5s(O.value))}return G};
A5s=function(O,m){var G={type:O.triggerType};m!=null&&(G.category=m);O.triggeringSlotId!=null&&(G.triggerSourceData||(G.triggerSourceData={}),G.triggerSourceData.associatedSlotId=O.triggeringSlotId);O.triggeringLayoutId!=null&&(G.triggerSourceData||(G.triggerSourceData={}),G.triggerSourceData.associatedLayoutId=O.triggeringLayoutId);return G};
mFN=function(O,m,G,B){m={opportunityType:m};O&&(B||G)&&(B=_.k6(B||[],function(Q){return OON(O,Q)}),m.debugData=Object.assign({},G&&G.length>0?{associatedSlotId:G}:{},B.length>0?{slots:B}:{}));
return m};
GxN=function(O){return QQ(O.opportunityAdapterMap).concat(QQ(O.triggerAdapterMap)).concat(QQ(O.fulfillmentAdapterFactoryMap)).concat(QQ(O.slotAdapterFactoryMap)).concat(QQ(O.layoutRenderingAdapterFactoryMap))};
QQ=function(O){var m=[];O=_.K(O.values());for(var G=O.next();!G.done;G=O.next())G=G.value,G.isAdsControlFlowEventListener&&m.push(G);return m};
vc=function(O){var m=O.slotId,G=O.slotType,B=O.slotPhysicalPosition;return m===void 0?new Hc("Cannot construct a slot due to the missing id.",{adSlotMetadata:O}):G===void 0?new Hc("Cannot construct a slot due to the missing type.",{adSlotMetadata:O}):B===void 0?new Hc("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:O}):{slotId:m,slotType:G,slotPhysicalPosition:B,managerLayer:"external",adSlotLoggingData:O.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new BqN}};
QbS=function(O){var m=O.layoutId,G=O.layoutType;return m===void 0?new Kz("Cannot construct a layout due to the missing id.",{adLayoutMetadata:O}):G===void 0?new Kz("Cannot construct a layout due to the missing type.",{adLayoutMetadata:O}):{layoutId:m,layoutType:G,managerLayer:"external",adLayoutLoggingData:O.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new BqN,interactionLoggingAdsClientData:{}}};
HON=function(O){if(O.querySelector("img")){var m=O.querySelector("img");m.addEventListener("error",function(){l3O(m.src).then(function(G){(G=_.w5(G).toString())?m.src=G:m.removeAttribute("src")}).catch(function(){m.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Mk=function(O,m){if(m&&(v2e(m.viewableCommand)||v2e(m.endOfSessionCommand))){var G=KQO(m==null?void 0:m.viewableCommand);m=KQO(m==null?void 0:m.endOfSessionCommand);if(!$K){var B=_.Rd("custom_active_view_tos_timeout_ms");$K=B>0&&B!==36E5?new $FO(Mpe(),B):new $FO(Mpe())}rPI($K,O);RDf($K,O,G,m)}};
rD=function(O){$K&&rPI($K,O)};
Mpe=function(){var O=_.kB("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(O==null?void 0:O.length)===2?O[1]:null};
v2e=function(O){O=_.eg(O);return!(O==null||!O.loggingUrls)&&O.loggingUrls.length>0};
KQO=function(O){if(!O)return[];var m=[],G,B;((B=(G=_.eg(O))==null?void 0:G.loggingUrls)!=null?B:[]).forEach(function(Q){Q.baseUrl&&m.push(Q.baseUrl)});
return m};
iOp=function(O){if(_.V("stop_av_measurement_on_detach"))return function(){rD(O)}};
xFs=function(O){return function(){_.V("stop_av_measurement_on_detach")&&rD(O)}};
qVM=function(O){if(_.V("stop_av_measurement_on_detach"))return function(){rD(O)}};
UFI=function(O){return O.shorts.isDesktopSmallWidth};
_.tpY=function(O){return O.shorts.isShortsActive};
_.WQp=function(O){return O.shorts.isWatchWhileMode};
_.R$=function(O){return O.shorts.isFullscreen};
_.im=function(O){return O.shorts.isShortsPipActive};
zDM=function(O){var m,G;if(O=(m=_.b(O.reelsAdCardButtoned,ZOp))==null?void 0:(G=m.animatedRenderingConfig)==null?void 0:G.easeOutSeconds)return O+"s"};
Vpe=function(O,m,G){return _.r(function(B){return B.return(new Promise(function(Q){var H=new Image;H.onload=function(){Q(new JP6(O,m,G,H.naturalWidth,H.naturalHeight))};
H.src=G.toString()}))})};
bOe=function(O,m){return Math.round(O/1E-5)===Math.round(m/1E-5)};
n2S=function(O,m){return Math.round(O/1E-5)===Math.round(m/1E-5)};
X5I=function(O,m){return O.year===m.year&&O.month===m.month&&O.day===m.day};
f4O=function(O,m){return O.year!==m.year?O.year<m.year:O.month!==m.month?O.month<m.month:O.day<m.day};
TqM=function(O){return O.day===hDp(O.year,O.month)?O.month===11?{year:O.year+1,month:0,day:1}:{year:O.year,month:O.month+1,day:1}:{year:O.year,month:O.month,day:O.day+1}};
g2f=function(){var O=new Date,m={year:O.getFullYear(),month:O.getMonth(),day:O.getDate()};return{start:m,end:{year:O.getFullYear()+2,month:O.getMonth(),day:O.getDate()},selectedDate:TqM(m)}};
uf6=function(O){return(new BX(2)).format(new Date(O.year,O.month,O.day))};
jbO=function(O){return{year:O.getFullYear(),month:O.getMonth(),day:O.getDate()}};
I45=function(O,m){O=(O+(Number(m.utcOffsetSec)+(new Date(O*1E3)).getTimezoneOffset()*60))*1E3;m=jbO(new Date(O));return{date:m,secondsSinceMidnight:Math.floor((O-(new Date(m.year,m.month,m.day)).getTime())/1E3)}};
p5S=function(O,m){m=m.months.findIndex(function(G){return G.year===O.year&&G.month===O.month});
return m>=0?m:void 0};
SVp=function(O){if(!O)return!1;try{if(O.host&&O.host.tagName==="YT-FORMATTED-STRING"&&O.host.id==="contenteditable-textarea"||O.nodeType===Node.ELEMENT_NODE&&O.tagName==="YTD-COMMENTBOX")return!0}catch(m){return!1}return SVp(O.parentNode)};
xK=function(O){return O?!(O.tagName!=="A"||!O.href||!O.classList.contains("yt-simple-endpoint")):!1};
E2r=function(O){return O?O.tagName==="IMG"&&O.classList.contains("emoji"):!1};
LQO=function(O,m,G){if(!O)return null;var B=xK(O);if(B&&G)return m=O.pathname.substring(O.pathname.indexOf("/channel/")+9),document.createTextNode("@"+m);if(B&&!G)return document.createTextNode("");if(E2r(O))return G=O.alt,O=O.dataset.emojiId,!O&&m&&(m=_.qk(m,G))&&m.isCustomEmoji&&(O=m.emojiId),O?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+O+">"):document.createTextNode(G);B=O.cloneNode(!1);for(var Q=0;Q<O.childNodes.length;++Q){var H=LQO(O.childNodes[Q],m,G);H&&B.appendChild(H)}return B};
Up=function(O){return O?xK(O)?O:Up(O.lastChild):null};
CZI=function(O){return O?xK(O)?O:CZI(O.firstChild):null};
o2f=function(O){if(!O)return null;for(var m=O.previousSibling;m;)if(m.nodeType===Node.ELEMENT_NODE&&m.nodeName==="BR")m=m.previousSibling;else if(m.nodeType===Node.TEXT_NODE&&/\s+/.test(m.textContent))m=m.previousSibling;else break;(m=Up(m))?O=m:O=(O=O.parentNode)?Up(O.previousElementSibling):null;return O};
l4f=function(O){if(!O)return null;for(var m=O.nextSibling;m;)if(m.nodeType===Node.ELEMENT_NODE&&m.nodeName==="BR")m=m.nextSibling;else if(m.nodeType===Node.TEXT_NODE&&/\s+/.test(m.textContent))m=m.nextSibling;else break;return(m=CZI(m))?m:l4f(O.parentNode)};
a4f=function(O){var m=_.tI(),G=m.JSC$11350_getStartNode();if(!SVp(G.parentNode))return null;m=m.JSC$11350_getStartOffset();if(G.nodeType===Node.TEXT_NODE){var B=_.w9(G,xK);if(B){if(O&&m===0||!O&&m===G.length)return B}else{if(O&&m===G.length)return!G||G.nodeName==="BR"||G.nextElementSibling&&_.Wc(G.nextElementSibling,"display")==="block"?null:CZI(G.nextElementSibling);if(!O&&m===0)return G?Up(G.previousElementSibling):null}}if(G.nodeType===Node.ELEMENT_NODE)if(O){if(0<=m&&m<G.childNodes.length)return CZI(G.childNodes[m])}else if(0<
m&&m<=G.childNodes.length)return Up(G.childNodes[m-1]);return null};
kxI=function(O,m,G){if(!O)return null;if(O.nodeType===Node.TEXT_NODE)if(G){var B=o2f(O);if(B&&!/^\s+\S/.test(O.wholeText.substr(0,m)))return B}else if((B=l4f(O))&&!/\S\s+/.test(O.wholeText.substr(m,O.wholeText.length)))return B;return O.nodeType===Node.ELEMENT_NODE?G?o2f(O.childNodes[m]):l4f(O.childNodes[m]):kxI(O.parentNode,m,G)};
yPf=function(O){if(O.hasChildNodes())switch(O.tagName){case "DIV":case "A":case "SPAN":var m="";for(O=O.firstChild;O;O=O.nextSibling)m+=yPf(O);return m;default:return""}else switch(O.nodeType){case 3:return O.textContent;default:return""}};
ZL=function(O,m){return O.year===m.year&&O.month===m.month&&O.day===m.day};
zU=function(O,m){return O.year!==m.year?O.year<m.year:O.month!==m.month?O.month<m.month:O.day<m.day};
cPY=function(O){return{year:O.getFullYear(),month:O.getMonth(),day:O.getDate()}};
YV5=function(O){var m=aU6;m=m===void 0?aU6:m;m(new Date(O.year,O.month,O.day))};
JI=function(O){return cPY(new Date(Number(O.seconds)*1E3))};
dFf=function(O){return O.year!==void 0&&O.month!==void 0&&O.day!==void 0};
w55=function(O){return O.start!==void 0&&O.end!==void 0};
eDY=function(O){return w55(O)?O.start:O};
DFs=function(O){return w55(O)?O.end:void 0};
Nqe=function(O,m){for(var G=[],B=new Date(O.start.year,O.start.month);B.getFullYear()<O.end.year||B.getFullYear()===O.end.year&&B.getMonth()<=O.end.month;){var Q=G,H=Q.push,M=B.getFullYear(),R=B.getMonth(),x=O,t=m,W=void 0,Z=[],z=Object.freeze({extraCssClass:"invisible"}),J=new Date(M,R),n=cPY(J);J=J.getDay();for(var I=cPY(new Date);n.month===R;){J!==sbN&&W||(W=Array.from({length:7}).fill(z),Z.push(W));var S={date:{year:M,month:R,day:n.day},extraCssClass:"",debugClass:""};S.extraCssClass=t(S.date,
n,I,x).trim();W[(J-sbN+7)%7]=S;n=n.day===hDp(n.year,n.month)?n.month===11?{year:n.year+1,month:0,day:1}:{year:n.year,month:n.month+1,day:1}:{year:n.year,month:n.month,day:n.day+1};J=(J+1)%7}H.call(Q,{weeks:Z,monthLabel:VQ.SHORTMONTHS[R]+" "+M,year:M,month:R,monthLabelExtraCssClass:Z[0][2]===z?"shift-down-label":""});B.setMonth(B.getMonth()+1)}return G};
PZI=function(O,m){m=m.months.findIndex(function(G){return G.year===O.year&&G.month===O.month});
return m>=0?m:void 0};
APO=function(O,m){a:{var G=G===void 0?[2,3]:G;G=_.K(G);for(var B=G.next();!B.done;B=G.next()){var Q=new Date;if((new FQY(B.value)).parse(m,Q,{validate:!0})){Q.setHours(0,0,0,0);m=Q;break a}}m=null}if(!m)return{isValid:!1,value:void 0};m=cPY(m);G=O.end;return zU(m,O.start)||zU(G,m)?{isValid:!1,value:void 0}:{isValid:!0,value:m}};
QVI=function(O){var m=OVs;m=m===void 0?mHp:m;var G=O.columnsToShow||[],B=G3e(O.columnDimensions,O.columnsToShow,O.leftFloatingColumns,m);return G.map(function(Q,H){var M=O.columns[Q];if(M===void 0)throw Error("Vh");var R=B?B[H]:"";var x=O.getCustomTooltip?O.getCustomTooltip(Q,M.headerTooltipParagraphs):M.headerTooltipParagraphs;var t=BnO(O,Q);return{type:Q,index:H,style:R,classes:t,headerName:M.headerName||"",headerIcon:M.headerIcon,headerTooltipParagraphs:x||[],headerTooltipHelpContext:M.headerTooltipHelpContext,
sortOrders:M.sortOrders||[],selectionState:M.isSelectionCheckbox?O.selectionState:void 0}})};
BnO=function(O,m){var G=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],B=O.columns[m];if(B===void 0)return"";var Q=G.includes("DEFAULTS")&&B.cssClass?[B.cssClass]:[];if(G.includes("SORTING")){B.sortOrders&&B.sortOrders.length&&Q.push("sortable");if(O.sorting&&O.sorting.columnType===m)a:switch(O.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var H="column-sorted";break a;default:H=""}else H="";H&&Q.push(H)}G.includes("FLOATING")&&(m=O.columnsToShow.indexOf(m),O.leftFloatingColumns&&m<O.leftFloatingColumns&&
Q.push("floating-column"),O.leftFloatingColumns&&m===O.leftFloatingColumns-1&&Q.push("last-floating-column"));G.includes("RIGHT_ALIGN")&&B.rightAlignHeader&&Q.push("right-align");return Q.filter(function(M){return M}).join(" ")};
G3e=function(O,m,G,B){G=G===void 0?0:G;B=B===void 0?mHp:B;if(O){var Q=[],H=0;HVs(O,m,B).forEach(function(M,R){var x="min-width:"+M.minWidth+"px;padding-left:"+M.paddingLeft+"px;padding-right:"+M.paddingRight+"px;flex:"+M.flexGrow+" 0 "+M.minWidth+"px;";M.maxWidth!==Infinity&&(x=[x,"max-width:"+M.maxWidth+"px;"].join(""));H>0&&R<G&&(x=[x,"left:"+H+"px;"].join(""));Q.push(x);H+=M.minWidth+M.paddingLeft+M.paddingRight});
return Q}};
HVs=function(O,m,G){G=G===void 0?mHp:G;return m.map(function(B,Q){B=O&&O[B]||{};var H=Q===0?G.paddingLeftFirstColumn:G.padding;B.paddingLeft!==void 0&&(H=B.paddingLeft);Q=Q===m.length-1?G.paddingRightLastColumn:G.padding;B.paddingRight!==void 0&&(Q=B.paddingRight);return{paddingLeft:H,paddingRight:Q,minWidth:B.minWidth!==void 0?B.minWidth:G.minWidth,maxWidth:B.maxWidth!==void 0?B.maxWidth:G.maxWidth,flexGrow:B.flexGrow!==void 0?B.flexGrow:G.flexGrow}})};
vbz=function(O){var m=O.reduce(function(B,Q){var H=Q.columnId,M={};Q.headerText&&(M.headerName=_.HX(Q.headerText));Q.rightAlignHeader&&(M.rightAlignHeader=Q.rightAlignHeader);var R;if((R=Q.headerIcon)==null?0:R.iconType)M.headerIcon=_.bK(Q.headerIcon.iconType);B[H]=M;return B},{}),G=O.filter(function(B){return!B.hideColumn}).map(function(B){return B.columnId});
O=O.filter(function(B){return!!B.dimensions}).reduce(function(B,Q){B[Q.columnId]=Q.dimensions;
return B},{});
return{columns:m,columnsToShow:G,columnDimensions:O}};
_.KnN=function(O){return O?O.simpleText?O.simpleText:O.runs?O.runs.map(function(m){return m.text}).join(""):"":""};
iVO=function(O){var m=O.data;var G=O.onTap;var B=O.isSelected;var Q=O.onFocusIn;if(!m)return{};O=$HN(m);B===void 0&&(B=m==null?void 0:m.isSelected);var H;return{text:MJp(m,O),startIcon:(H=m.icon)==null?void 0:H.iconType,state:B?0:2,type:0,onTap:rjf(m,G),accessibilityLabel:RzS(m,O),onFocusIn:function(){return Q==null?void 0:Q()}}};
MJp=function(O,m){if(!m)return O.text?_.KnN(O.text):void 0};
rjf=function(O,m){return function(G){m==null||m(G,O)}};
$HN=function(O){O=O.style&&O.style.styleType;return!jJM&&O==="STYLE_EXPLORE_LAUNCHER_CHIP"};
RzS=function(O,m){if(m){var G,B,Q;return(Q=(G=O.accessibilityData)==null?void 0:(B=G.accessibilityData)==null?void 0:B.label)!=null?Q:MJp(O,!1)}};
bm=function(O){return{signalAction:{signal:O}}};
UH6=function(){return _.kB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?xH6:_.qyf};
tJ5=function(O,m){O=O===void 0?"SOFT_RELOAD_PAGE":O;m=m===void 0?49504:m;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.rv(_.Xm("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:m}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:O}}]}}}};
WnS=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.rv(_.Xm("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:UH6()}};
ZVz=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.rv(_.Xm("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:UH6()}};
zzz=function(O,m){var G=_.rv(_.Xm("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),B=_.rv(_.Xm("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),Q={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.rv(_.Xm("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};Q.serviceEndpoint=O?O:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[bm("SOFT_RELOAD_PAGE")]}};return{title:G,bodyText:B,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:Q},
style:{value:m!=null?m:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
VJp=function(O){O=O===void 0?{}:O;return{title:_.rv(O.localizedZeroStateTitleText===void 0?"":O.localizedZeroStateTitleText),bodyText:_.rv(O.localizedZeroStateMessage===void 0?"":O.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.rv(O.localizedZeroStateButtonText===void 0?"":O.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[JjO]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
nbs=function(O){O=O===void 0?{}:O;return{title:_.rv(O.localizedOptInBannerTitleText===void 0?"":O.localizedOptInBannerTitleText),titleLength:19,subtitle:_.rv(O.localizedOptInMessage===void 0?"":O.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.rv(_.Xm("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:_.rv(_.Xm("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:[bVp]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
hzf=function(O,m){var G=m=m===void 0?{}:m;m=G.offlineTitleText===void 0?"":G.offlineTitleText;var B=G.offlineDescriptionText===void 0?"":G.offlineDescriptionText,Q=G.formattedSupplementalText,H=G.actionButtonText===void 0?"":G.actionButtonText,M=G.titleText===void 0?"":G.titleText;G=G.descriptionText===void 0?"":G.descriptionText;var R={title:H,accessibilityText:H,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};O||(M=m,G=B,R={title:H,accessibilityText:H,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.rv(M),titleLength:M.length,overrideTitleMaxFontSize:30,subtitle:_.rv(G),supplementalText:Q,primaryButton:{buttonViewModel:R},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[Xjs]},darkTileImage:{thumbnails:[fP6]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.ujs=function(O,m,G,B,Q,H,M,R,x,t,W){Q=Q===void 0?!1:Q;H=H===void 0?!1:H;M=M===void 0?0:M;R=R===void 0?-Infinity:R;x=x===void 0?!1:x;t=t===void 0?!1:t;W=W===void 0?!1:W;var Z=[],z=_.rv(_.Xm("SMART_DOWNLOADS",void 0,"Smart downloads")),J=_.rv(Tnp(M,R,O.length));R=M=void 0;t?M={statementBannerRenderer:hzf(W,B)}:Q?O.length>0?R=gbr(O,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.V("kevlar_manual_downloads_above"),z,J):x?R={alertBannerViewModel:{heading:{content:G.localizedOptInBannerTitleText===
void 0?"":G.localizedOptInBannerTitleText},body:{content:G.localizedPromptMessage===void 0?"":G.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Xm("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Xm("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:_.DOp}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:H&&(R={backgroundPromoRenderer:{bodyText:_.rv(_.Xm("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"}}}):
H&&(R={alertBannerViewModel:{heading:{content:G.localizedOptInBannerTitleText===void 0?"":G.localizedOptInBannerTitleText},body:{content:G.localizedOptInMessage===void 0?"":G.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Xm("TURN_ON",void 0,"Turn on"),accessibilityText:_.Xm("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}}}}}});G=_.rv(_.Xm("YOUR_DOWNLOADS",void 0,"Your downloads"));B=void 0;m.length>0?(B=void 0,_.V("kevlar_display_downloads_numbers")&&(B=_.rv(_.fr("VIDEO_COUNT",m.length))),B=gbr(m,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,G,B)):Q||O.length||
t||(B={backgroundPromoRenderer:{bodyText:_.rv(_.Xm("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}}}});M?Z.push({richSectionRenderer:{content:M}}):R&&!_.V("kevlar_manual_downloads_above")&&Z.push({richSectionRenderer:{content:R,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
B&&Z.push({richSectionRenderer:{content:B,loggingDirectives:{clientVeSpec:{uiType:51721}}}});R&&_.V("kevlar_manual_downloads_above")&&Z.push({richSectionRenderer:{content:R,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(m.length>0||Q&&O.length>0&&!t)&&Z.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.rv(_.Xm("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:Z}};
_.IPO=function(O){return jVp(O,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.pjM=function(O){return jVp(O,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
jVp=function(O,m){var G=[];O=gbr(O,m,!0);G.push({richSectionRenderer:{content:O}});return{contents:G}};
gbr=function(O,m,G,B,Q){G=G===void 0?!1:G;var H="RESPONSIVE_SIZE_STANDARD";_.V("kevlar_modern_downloads_compact")?H="RESPONSIVE_SIZE_COMPACT":_.V("kevlar_modern_downloads_extra_compact")?H="RESPONSIVE_SIZE_EXTRA_COMPACT":_.V("kevlar_modern_downloads_tiny")&&(H="RESPONSIVE_SIZE_TINY");O={isExpanded:G,contents:nz(O),entitySelectorType:m,responsiveContainerConfiguration:{responsiveSize:H}};B&&(O.title=B);Q&&(O.subtitle=Q);G||(_.V("kevlar_smart_downloads_show_more_button")?(O.showMoreButton={buttonRenderer:{accessibility:{label:_.Xm("SHOW_MORE",
void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.rv(_.Xm("SHOW_MORE",void 0,"Show more"))}},O.showLessButton={buttonRenderer:{accessibility:{label:_.Xm("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.rv(_.Xm("SHOW_LESS",void 0,"Show less"))}}):(O.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Xm("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}}}},O.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Xm("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}}}},O.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Xm("VIEW_ALL",void 0,"View all"),accessibilityText:_.Xm("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:_.$s("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:O}};
nz=function(O){var m=[];O=_.K(O);for(var G=O.next();!G.done;G=O.next())if(G=G.value,jSM(G)){var B=m,Q=B.push;var H=void 0;if(G==null?0:(H=G.videoEntity)==null?0:H.videoId){H=No(_.Kf().getState(),G.videoEntity.videoId);var M=_.Kf().getState();var R=_.Ja(G.videoEntity.videoId,"mainVideoEntity");M=!!_.Cs(M.entities)[R];M={videoId:G.videoEntity.videoId,title:RQ(G.videoEntity.title),shortBylineText:RQ(G.channelEntity.title),thumbnail:G.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:M&&_.V("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:Kts(G.videoEntity.videoId,H,G.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Xm("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};G.videoEntity.lengthSeconds&&(M.thumbnailOverlays=QFS(G.videoEntity.lengthSeconds,H));M.isWatched=H>0;_.V("kevlar_modern_downloads_page")&&(M.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:G.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Xm("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},M.badges=void 0);G=M}else G={};Q.call(B,{richItemRenderer:{content:{videoRenderer:G},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(uWN(G)){B=m;Q=B.push;var x=R=H=void 0,t=void 0,W=void 0,Z=void 0,z=void 0,J=void 0,n=void 0,I=void 0,S=void 0,L=void 0;M=G.mainPlaylistEntity.playlistId;var C=G==null?void 0:(L=G.mainPlaylistEntity)==null?void 0:(S=L.thumbnailStyleData)==null?void 0:(I=S[0])==null?void 0:(n=I.value)==null?void 0:(J=n.collageThumbnail)==
null?void 0:J.coverThumbnail;if(M&&C){J=$cs(M);!_.V("enable_offline_playlist_page")&&(G==null?0:(z=G.mainPlaylistEntity)==null?0:z.videos)&&(z=G==null?void 0:(Z=G.mainPlaylistEntity)==null?void 0:(W=Z.videos)==null?void 0:W[0],W=_.Ur(z).entityId,W=JSON.parse(W).videoId,W!==void 0&&(Z=No(_.Kf().getState(),W),J=_.Mo(W,M,void 0,void 0,Z)));W=[];if(G==null?0:(t=G.mainPlaylistEntity)==null?0:(x=t.videos)==null?0:x.length)W=[lUN(),Object.assign({},(R=oAN(G==null?void 0:G.mainPlaylistEntity.videos.length))!=
null?R:{})];G={playlistId:M,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:C}},navigationEndpoint:J,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:W,title:RQ(G.mainPlaylistEntity.title),shortBylineText:RQ(G==null?void 0:(H=G.channelEntity)==null?void 0:H.title),badges:[{metadataBadgeRenderer:{label:_.Xm("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.V("kevlar_modern_downloads_page")&&(G.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:SyN,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:M,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Xm("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},G.badges=void 0)}else G=void 0;Q.call(B,{richItemRenderer:{content:{playlistRenderer:G},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return m};
Tnp=function(O,m,G){O=O?EbO(O):"";m!==void 0&&isFinite(m)?m===0?m=_.Xm("UPDATING",void 0,"Updating..."):(m=Byz(new Date(m),new Date),m=_.Xm("UPDATED_TIME",{relative_time:m},"Updated "+m)):m="";var B="";O&&m&&(B=" \u2022 ");if(G&&_.V("kevlar_display_downloads_numbers")){G=_.fr("VIDEO_COUNT",G);if(O||m)B=" \u2022 ";return G+B+O+B+m}return O+B+m};
Lnp=function(O){return VIf(O.entities).length};
_.CrY=function(O,m){var G=Her(O.responsiveSize),B;O=!((B=O.responsiveMap)==null||!B.some(function(Q){return Q.containerSize==="CONTAINER_SIZE_NARROW"&&Q.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:m,sizing:G,enableFullBleedForSingleCol:!1,isCompactList:G==="COMPACT"&&O}};
obs=function(O,m){return _.Vh(O.entities,"votingEntity",m)};
Xv=function(O){if(O){var m;return((m=_.KR().resolve(_.v7(_.B6)))==null?0:m())?O.darkTheme:O.lightTheme}};
lPe=function(O,m){if(O.simpleText)return Object.assign({},O,{simpleText:Of(O.simpleText,m)});if(!O.runs)return O;for(var G=Object.assign({},O,{runs:[]}),B=0,Q=_.K(O.runs),H=Q.next();!H.done;H=Q.next())if(H=H.value,H.text)if(B+H.text.length<=m)G.runs.push(H),B+=H.text.length;else return G.runs.push(Object.assign({},H,{text:Of(H.text,m-B)})),G;return O};
aPz=function(O,m){return _.Vh(O.entities,"chipBarStateEntity",m)};
k3N=function(O,m){return _.Vh(O.entities,"chipEntity",m)};
cjs=function(O,m,G,B){return function(){var Q=yjf.has(O.displayType)&&O.selected,H=Q&&O.deselectCommand?O.deselectCommand:O.tapCommand;!H||Q&&B||_.PE(H,{form:{element:m==null?void 0:m.value}});G==null||G()}};
Yyp=function(O){switch(O){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
dHf=function(O,m){return{triggeringElement:O,onDwellTriggeredFn:function(){var G={triggeringElement:O,loadVideoPreviewEventData:m},B=document.querySelector(".video-preview");B&&B.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:G}))},
onDwellEndFn:function(){var G=document.querySelector(".video-preview");G&&G.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
wj6=function(O,m){var G=_.KR().resolve(_.v7(wBs)),B=function(){var Q=m();return G&&Q?dHf(O.value,Q):null};
_.ER(function(){var Q=B();G&&Q&&Promise.resolve().then(function(){G.registerElement(Q)});
_.LS(function(){G&&Q&&Promise.resolve().then(function(){_.dR(G,Q)})})},"csPUge")};
DHN=function(O){var m=O.dataset.resizeObserverId;if(m)return m;m=""+ezS++;return O.dataset.resizeObserverId=m};
sVM=function(O,m){var G=DHN(O);fz.has(G)||fz.set(G,new Set);fz.get(G).add(m);hI.has(G)&&m(Object.assign({},{target:O},hI.get(G)))};
Nnz=function(O){O=_.K(O);for(var m=O.next();!m.done;m=O.next()){m=m.value;var G=DHN(m.target),B=Object.assign({},{target:m.target},hI.get(G));if(B!=null&&B.contentRect?B.contentRect.width!==m.contentRect.width||B.contentRect.height!==m.contentRect.height:1)for(hI.set(G,{borderBoxSize:m.borderBoxSize,contentBoxSize:m.contentBoxSize,contentRect:m.contentRect,devicePixelContentBoxSize:m.devicePixelContentBoxSize}),G=_.K(fz.get(G)||[]),B=G.next();!B.done;B=G.next())B=B.value,B(m)}};
FnM=function(){return TU?TU:TU=new Prz(Nnz)};
Aj6=function(O,m){var G=DHN(O);fz.has(G)&&(fz.get(G).delete(m),fz.get(G).size===0&&(fz.delete(G),hI.delete(G),TU.unobserve(O),delete O.dataset.resizeObserverId));fz.size===0&&TU&&(TU.disconnect(),TU=void 0)};
mLO=function(O,m){var G=_.KR().resolve(KI);return O2N.map(function(B){return G.observe(O,m,B)})};
G15=function(O){var m=_.KR().resolve(KI);O.forEach(function(G){m.unobserveByKey(G)})};
_.H2N=function(O,m){var G=Object.assign({},BG6,m);m=_.K(gtf());var B=m.next().value,Q=m.next().value,H=function(M){var R=M.contentRect.height;if((M=M.contentRect.width)||R||G.canHaveZeroSize)B.width()===M&&B.height()===R||Q(B,{height:R,width:M})};
_.Ln(function(){var M=O instanceof HTMLElement?O:O.value,R=Q1S(H,G.throttleMs),x=[];G.useVisibilityObserver&&(x=mLO(M,function(t,W){requestAnimationFrame(function(){W==="visible"?(sVM(M,R),FnM().observe(M)):Aj6(M,R)})}));
x.length||(sVM(M,R),FnM().observe(M));_.LS(function(){x.length&&(G15(x),x.length=0);Aj6(M,R)})});
return B};
KYs=function(O,m,G,B,Q){O=m?O.switchOffCommand:O.switchOnCommand;if(B&&Q)vy6(O,G,Q);else{var H,M;(H=_.sz({elementsCommand:O}))==null||(M=H.onclick)==null||M.call(H,G)}};
vy6=function(O,m,G){O=_.sz({elementsCommand:O,additionalCommandArgs:{commandController:{onSuccess:function(){G(!1)},
onServerError:function(){G(!1)}}}});
if(O==null?0:O.onclick)O.onclick(m),G(!0)};
Mzz=function(O){if(O)return _.b(O,$Le)};
r_f=function(O){if(!((O==null?0:O.entitySelectorType)&&(O==null?0:O.entityKey)))return{};switch(O.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.V("enable_web_shorts_captions_language_command")){var m;var G=(m=_.Jt())==null?void 0:m.getOption("captions","track");var B,Q=typeof(G==null?void 0:G.translationLanguage)==="object"&&((B=G.translationLanguage)==null?void 0:B.languageName)||(G==null?void 0:G.displayName)||"";G=Object.assign({},!!Q&&
{selectionText:{content:Q}},!!Q&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof(G==null?void 0:G.displayName)==="undefined"})}else G={};return G;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.V("web_shorts_audio_track_picker")){var H;B=((H=_.Jt())==null?void 0:H.getAudioTrack())||void 0;m=B==null?void 0:(Q=B.getLanguageInfo())==null?void 0:Q.getName();B=Object.assign({},{selectionText:{content:m}},m&&!(B==null?
0:(G=B.getLanguageInfo())==null?0:G.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}else B={};return B;default:return{}}};
Rir=function(O){var m=["A".toString(),"BUTTON".toString()];return function(G){var B=function(Q){_.l5(_.o_(Q),G,m)||O(Q)};
G.addEventListener("click",B);return function(){G.removeEventListener("click",B)}}};
_.i2I=function(O){return function(){return _.b(O(),_.gD)}};
WYI=function(O,m,G){if(m)return[xLN];switch(O){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[um];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return G?[um]:[qWr,um];case "TRANSFER_STATE_PAUSED_BY_USER":return[ULO,um];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[tzN,um];default:return[xLN]}};
Z2S=function(O,m,G,B){return WYI(O,m,B).map(function(Q){var H=Q.text,M=Q.iconType,R=Q.videoAction;Q=Q.playlistAction;H=H?{content:H}:void 0;M=M&&{sources:[{clientResource:{imageName:M}}]};var x=(0,_.aM.unsafeClone)(G);if(x){var t=_.b(x,_.nJ),W=_.b(x,_.X4);t&&R?t.action=R:W&&Q&&(W.action=Q)}return{title:H,leadingImage:M,rendererContext:x&&{commandContext:{onTap:{innertubeCommand:x}}}}})};
zie=function(O){O=_.a_(O.rendererContext);var m;return(m=_.b(O,_.X4))==null?void 0:m.playlistId};
J_O=function(O){var m;return(m=O.listItems)==null?void 0:m.some(function(G){var B;return _.ki((B=_.b(G,_.pJ))==null?void 0:B.rendererContext)})};
nyS=function(O){var m;return(m=O.listItems)==null?void 0:m.some(function(G){var B,Q,H=(Q=(B=_.b(G,Vz5))==null?void 0:B.defaultListItem)!=null?Q:G;G=_.b(H,_.pJ);return!!_.b(G==null?void 0:G.leadingAccessory,b2z)})};
hiN=function(O){var m=O.element;var G=O.veType;var B=O.storedVisualElement===void 0?null:O.storedVisualElement;var Q=O.elementIndex===void 0?0:O.elementIndex;O=O.clientYouTubeData;var H=_.yA();H!==XSI&&(f_s.clear(),XSI=H);if(m.visualElement&&f_s.has(m.visualElement))return null;if(B&&f_s.has(B))return m.visualElement=B,null;G=_.gu(_.uK(),{veType:G,elementIndex:Q,clientYouTubeData:O});if(!G)return null;m.visualElement=G;f_s.add(G);return G};
_.jl=function(O,m,G,B){G=G===void 0?null:G;B=B===void 0?U95:B;var Q=Q===void 0?null:Q;ap(function(){if(m){G instanceof Function&&(G=G());var H=hiN({element:m,veType:O,storedVisualElement:G,clientYouTubeData:void 0});H&&(Z6f(m,Q),B(H))}})};
I$=function(O,m){if(O){switch(m){case 0:O=O.primaryTitleColor;break;case 1:O=O.secondaryTitleColor;break;case 2:O=O.surgeColor;break;case 3:O=O.section2Color;break;case 4:O=O.section3Color;break;default:return}if(O)return _.Fs(O)}};
pz=function(O,m){if(O){switch(m){case 0:O=O.primaryTitleColor;break;case 1:O=O.secondaryTitleColor;break;case 2:O=O.surgeColor;break;case 3:O=O.section2Color;break;case 4:O=O.section3Color;break;default:return}if(O)return _.Fs(O)}};
TGI=function(O){return O?_.AV(O):""};
gyp=function(O){return(O==null?void 0:O.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
uDs=function(O,m){return _.Vh(O.entities,"videoOverviewAsyncDataEntity",m)};
j1z=function(O,m){var G;return"linear-gradient(to bottom, "+((G=m==null?void 0:m.map(function(B){var Q=O?B.darkThemeColor:B.lightThemeColor;return Q?_.AV(Q)+" "+((B==null?void 0:B.startLocation)||0)*100+"%":"transparent"}))==null?void 0:G.join(", "))+")"};
I_S=function(O,m,G,B,Q){if(!((B==null?0:B.height)&&(B==null?0:B.width)))return{size:0};var H=B.width;B=B.height;if(Q)return m==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||m==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&H>B?{size:312/t_I}:m==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(G!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||O!==1&&O!==2||m!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&m!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&m!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(m==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||m==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||B===H)switch(O){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(m==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||B>H)switch(O){case 1:case 3:return{size:240*UwY};default:return{size:360*UwY}}switch(O){case 1:case 2:return{size:1/t_I*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.pS5=function(O){if(!("matchMedia"in window))return _.Dy(Error("Wh")),function(){return!1};
var m=window.matchMedia(O);O=_.K(_.Wf(m.matches,void 0,"jLJc8e"));var G=O.next().value,B=O.next().value,Q=function(H){B(H.matches)};
m.addEventListener?(m.addEventListener("change",Q),_.LS(function(){m.removeEventListener("change",Q)})):m.addListener&&(m.addListener(Q),_.LS(function(){m.removeListener(Q)}));
return G};
SWI=function(O){return O==="IMAGE_BANNER_STYLE_INSET"||O==="IMAGE_BANNER_STYLE_UNKNOWN"};
EyO=function(){if(!("matchMedia"in window))return _.Dy(Error("Wh")),function(){return 0};
var O=Cn(function(){return window.matchMedia("(max-width: 527.9px)")}),m=Cn(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),G=Cn(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),B=Cn(function(){return window.matchMedia("(min-width: 1024px)")}),Q=_.K(_.Wf(O.matches,void 0,"og9kEc")),H=Q.next().value,M=Q.next().value;
Q=_.K(_.Wf(m.matches,void 0,"ybDWCb"));var R=Q.next().value,x=Q.next().value;Q=_.K(_.Wf(G.matches,void 0,"o0Gfh"));var t=Q.next().value,W=Q.next().value;Q=_.K(_.Wf(B.matches,void 0,"yqUUgd"));var Z=Q.next().value,z=Q.next().value,J=Cn(function(){return function(L){M(L.matches)}}),n=Cn(function(){return function(L){x(L.matches)}}),I=Cn(function(){return function(L){W(L.matches)}}),S=Cn(function(){return function(L){z(L.matches)}});
_.Ln(function(){O.addEventListener?(O.addEventListener("change",J),m.addEventListener("change",n),G.addEventListener("change",I),B.addEventListener("change",S)):O.addListener&&(O.addListener(J),m.addListener(n),G.addListener(I),B.addListener(S));_.LS(function(){O.removeEventListener?(O.removeEventListener("change",J),m.removeEventListener("change",n),G.removeEventListener("change",I),B.removeEventListener("change",S)):O.removeListener&&(O.removeListener(J),m.removeListener(n),G.removeListener(I),
B.removeListener(S))})});
return function(){return H()?1:R()?2:t()?3:Z()?4:0}};
LYO=function(O){var m=0;O=_.K([O.title,O.metadata,O.actions,O.description,O.attribution]);for(var G=O.next();!G.done;G=O.next())G.value&&m++;return m};
C6r=function(O){return O===1||O===2?1:0};
l_M=function(O){O=(new oyI).parse(O);return(new VA).render(O).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(m){var G=m.split(":").map(Number),B=0,Q=0;if(G.length===3)G=_.K(G),B=G.next().value,Q=G.next().value,G=G.next().value;else if(G.length===2)G=_.K(G),Q=G.next().value,G=G.next().value;else if(G.length===1)G=_.K(G).next().value;else throw Error("Xh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(B*3600+Q*60+G)+'" role="button">'+m+"</span>"})};
a_f=function(O){O=_.K(O.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var m=O.next(),G={};!m.done;G={clickHandler$jscomp$5:void 0},m=O.next()){m=m.value;G.clickHandler$jscomp$5=function(Q){Q=Number(Q.target.getAttribute("data-time"));if(isNaN(Q))throw Error("Yh");var H;(H=_.Jt())==null||H.seekTo(Q,!0)};
var B=function(Q){return function(H){H.key!=="Enter"&&H.key!=="Space"||(0,Q.clickHandler$jscomp$5)(H)}}(G);
m.setAttribute("tabindex","0");m.removeEventListener("click",G.clickHandler$jscomp$5);m.removeEventListener("keydown",B);m.addEventListener("click",G.clickHandler$jscomp$5);m.addEventListener("keydown",B)}};
k1z=function(){return _.q("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.q(Sl,{percentWidth:100}),_.q(Sl,{animationDelay:200}),_.q(Sl,{animationDelay:400}),_.q(Sl,{animationDelay:600}),_.q(Sl,{animationDelay:800,percentWidth:60}),_.q("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.q(Sl,{percentWidth:100}),_.q(Sl,{animationDelay:200}),_.q(Sl,{animationDelay:400}),_.q(Sl,{animationDelay:600,percentWidth:50}))};
Sl=function(O){return _.q("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(O.percentWidth===void 0?100:O.percentWidth)+"%"},_.q("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(O.animationDelay===void 0?0:O.animationDelay)+"ms"}))};
y_N=function(){var O=_.K(_.Wf(function(){return""},void 0,"dXJHWc")),m=O.next().value;
return[function(){return m()()},
O.next().value]};
c_M=function(O,m){O=O?EbO(O):"";m!==void 0&&isFinite(m)?m===0?m=_.Xm("UPDATING",void 0,"Updating..."):(m=Byz(new Date(m),new Date),m=_.Xm("UPDATED_TIME",{relative_time:m},"Updated "+m)):m="";var G="";O&&m&&(G=" \u2022 ");return _.rv(O+G+m)};
wSr=function(O,m,G,B,Q,H){m=m===void 0?0:m;var M=YWe[m],R=M.title,x=M.iconType,t=M.topButtonRenderer,W=M.sectionClientVE;M=M.videoClientVE;var Z;if(m!==1||O.length){G=[];O=_.K(O);for(B=O.next();!B.done;B=O.next()){var z=B.value;if(jSM(z))G.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:z.videoEntity.videoId,title:RQ(z.videoEntity.title),shortBylineText:RQ(z.channelEntity.title),thumbnail:z.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:z.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Xm("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:M}}}}}});else if(uWN(z)){B=G;var J=B.push;var n=void 0,I=void 0,S=void 0,L=void 0,C=void 0,P=void 0,w=void 0,d=void 0,D=z.mainPlaylistEntity.playlistId,OS=z==null?void 0:(d=z.mainPlaylistEntity)==null?void 0:(w=d.thumbnailStyleData)==null?void 0:(P=w[0])==null?void 0:(C=P.value)==null?void 0:(L=C.collageThumbnail)==null?void 0:L.coverThumbnail;L=$cs(D);if(!_.V("enable_offline_playlist_page")&&
(z==null?0:(S=z.mainPlaylistEntity)==null?0:S.videos)){b:{S=z==null?void 0:(I=z.mainPlaylistEntity)==null?void 0:I.videos;I=_.Kf().getState().entities;if(S!=null&&S.length&&I)for(S=_.K(S),C=S.next();!C.done;C=S.next())if(C=_.Ur(C.value).entityId,(C=JSON.parse(C).videoId)&&zAO(I,C)==="TRANSFER_STATE_COMPLETE"){I=C;break b}I=""}I!==void 0&&(L=No(_.Kf().getState(),I),L=_.Mo(I,D,void 0,void 0,L))}I=rfs(_.Xm("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),$cs(D));z=D&&OS&&I?{playlistId:D,navigationEndpoint:L,
viewPlaylistText:I,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:OS}},title:RQ(z.mainPlaylistEntity.title),shortBylineText:RQ(z==null?void 0:(n=z.channelEntity)==null?void 0:n.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:dLz,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:D,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Xm("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:M}}}:
void 0;J.call(B,{gridPlaylistRenderer:z})}}M={gridRenderer:{items:G}};m===1&&(Z=c_M(Q,H))}else if(B){var rN=_.rv((J=G==null?void 0:G.localizedPromptMessage)!=null?J:"");M={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.rv(_.Xm("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.DOp}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.rv(_.Xm("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};Z=c_M(Q,H)}else rN=_.rv(_.Xm("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
M={};return{contents:[{shelfRenderer:{title:R,titleAnnotation:Z,icon:{iconType:x},subtitle:rN,content:M,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:t}]}}}}],loggingDirectives:{clientVeSpec:{uiType:W}}}};
eiN=function(O,m,G,B,Q,H,M,R,x,t,W){G=G===void 0?{}:G;B=B===void 0?{}:B;Q=Q===void 0?!1:Q;H=H===void 0?!1:H;M=M===void 0?!1:M;R=R===void 0?!1:R;x=x===void 0?!1:x;t=t===void 0?0:t;W=W===void 0?-Infinity:W;if(!(m.length||O.length||Q||R))return H?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:VJp(G)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.rv(_.Xm("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 Z=[];O.length&&Z.push(wSr(O,0));R?Z.push({contents:[{statementBannerRenderer:hzf(x,B)}]}):Q?Z.push(wSr(m,1,G,M,t,W)):H&&Z.push({contents:[{statementBannerRenderer:nbs(G)}]});(Q&&m.length||O.length)&&Z.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.rv(_.Xm("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 Z.map(function(z){return{itemSectionRenderer:z}})};
Ep=function(O,m){if(typeof O!=="object")return null;O=_.K(Object.entries(O));for(var G=O.next();!G.done;G=O.next()){var B=_.K(G.value);G=B.next().value;B=B.next().value;if(G===m)return G;if(B=Ep(B,m))return G+"."+B}return null};
Lz=function(O){var m=O.content;return(O=O.styleRuns)&&m?{runs:O.map(function(G){var B={text:m.slice(G.startIndex,G.startIndex+G.length)};G.fontColor&&(B.textColor=G.fontColor);return B})}:{simpleText:m}};
NGS=function(O,m,G,B){var Q=DLY;B&&(O.quantity=B);if(!O.quantity||!O.maxQuantity)return{};B=O.minusButton;var H=O.plusButton,M,R,x,t;return{value:O.quantity,maxValue:O.maxQuantity,onChangeCallback:function(W){Q(O,W)},
minusLabel:(M=_.b(B,s1N))==null?void 0:M.label,minimumReachedLabel:(R=_.b(B,s1N))==null?void 0:R.limitReachedLabel,plusLabel:(x=_.b(H,s1N))==null?void 0:x.label,maximumReachedLabel:(t=_.b(H,s1N))==null?void 0:t.limitReachedLabel,disabled:m,onRemoveCommand:G}};
DLY=function(O,m){var G=O.quantityIncrementerEntityKey;if(G){var B={};B.quantity=m;_.$n(_.Cz("quantityIncrementerEntity",G,B));O.onChangeCommand&&_.PE(O.onChangeCommand)}};
A_N=function(O,m){(O=P65(O))&&((_.V("enable_mini_app_command_handler_mweb_fix")?0:m)?FYe.push({command:O,sourceData:{},commandContext:void 0}):_.KR().resolve(_.Mu).resolveCommand(O))};
P65=function(O){return _.b(O,_.wu)};
OPO=function(){var O=window.performance.timeOrigin+window.performance.now(),m=(new _.o$).setSeconds(O/1E9);return _.ma(m,2,_.Qr(O%1E9),0)};
GOY=function(O,m){var G;O=(G=_.b(_.b(O,_.wu),mzY))==null?void 0:G.methodName;var B,Q;(G=window.youtubewebview||((B=window.webkit)==null?void 0:(Q=B.messageHandlers)==null?void 0:Q.youtubewebview))&&O&&(B=new lm,O=_.SS(B,1,O),O=_.pB(O.JSC$12396_serializeBinary()),m=_.pB(m),G.postMessage(O+","+m))};
a$=function(O,m){var G=_.b(_.b(O,_.wu),mzY);G&&(m&&(G.serializedAdditionalMetadata=_.pB(m)),A_N(O,!0))};
Blp=function(O){switch(O){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"}};
QkY=function(){return!!_.kB("ID_TOKEN")};
KWr=function(O){return O instanceof Error&&O.cause instanceof HPY&&O.cause.rpcErrorCode!==void 0?!vEI.includes(O.cause.rpcErrorCode):!0};
MnI=function(){return _.Oe($zO,{authuser:""+(_.kB("SESSION_INDEX")||0)})};
kK=function(O,m,G,B){G=G===void 0?"MINI_APP_SDK_API_UNSPECIFIED":G;B=B===void 0?"":B;var Q=new _.j9;G={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:B,sdkApi:G};O instanceof Error&&(Q.message=O.message,Q.name=O.name,O.cause instanceof HPY&&O.cause.rpcErrorCode!==void 0&&(G.rpcErrorCode=O.cause.rpcErrorCode));var H;(H=m.onError)==null||H.call(m,{loggingError:Q,metadata:G})};
Rcz=function(O,m,G,B){switch(O){case "MINI_APP_SOURCE_GAMESNACKS":return new yQ(m,G,B);default:return new r3M(m,G,B)}};
iP5=function(O){switch(O){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"}};
xzN=function(O){switch(O){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"}};
q7Y=function(O){switch(O){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"}};
Uzs=function(){return Math.floor(Math.random()*4)+1};
tnN=function(O,m,G,B){O=_.K(Object.entries(O));for(var Q=O.next(),H={};!Q.done;H={message$jscomp$993:void 0},Q=O.next()){var M=_.K(Q.value);Q=M.next().value;M=M.next().value;H.message$jscomp$993=M;m.push(setTimeout(function(R){return function(){B(!1);G(R.message$jscomp$993.text)}}(H),H.message$jscomp$993.delayMs));
Number(Q)>0&&m.push(setTimeout(function(){B(!0)},H.message$jscomp$993.delayMs-400))}};
WWN=function(O,m){var G=G===void 0?U95:G;_.V("mweb_fix_monitor_visibility_after_render")?O&&ap(function(){Z6f(O,m,G)}):ap(function(){Z6f(O,m,G)})};
ZPf=function(O,m){var G=document.createElement("ytd-engagement-panel-section-list-renderer");G.data=O;if(m==null?0:m.isPersistentPanel)G.isPersistentPanel=!0;return G};
bP5=function(O){zc6||(zc6=J3z(new _.Aa(1,void 0,void 0,Vnp),0));var m=zc6.format(Math.floor(O));m=Pq==="be"||Pq==="bg"||Pq==="es"||Pq==="et"||Pq==="hu"||Pq==="ka"||Pq==="lv"||Pq==="pl"||Pq==="pt-PT"||Pq==="sq"?m.replace(new RegExp("^(\\d)"+Vnp.GROUP_SEP.replace(".","\\.")+"(\\d+("+Vnp.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):m;return O>=1E3&&O<=9999&&m[1]==="."&&(Pq==="sl"||Pq==="it")?m.replace(".",""):m};
nES=function(O,m){Ljr("ytd-button-renderer",{data:O,className:m?m.className:"",overrides:m==null?void 0:m.buttonOverrides},Lds)};
hcY=function(O,m,G,B){if(O)return B=B||O.likeStatus,m?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:B==="LIKE",isDisabled:!O.likesAllowed,defaultIcon:{iconType:G},defaultText:B==="LIKE"?O.likeCountWithUnlikeText:O.likeCountText,toggledText:B==="LIKE"?O.likeCountText:O.likeCountWithLikeText,defaultNavigationEndpoint:XlS(O,"LIKE"),defaultServiceEndpoint:ftM(O,"LIKE"),toggledServiceEndpoint:ftM(O,"INDIFFERENT"),defaultTooltip:_.HX(O.likeCountTooltipText),toggledTooltip:_.HX(O.likeCountTooltipText),
targetId:O.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:B==="DISLIKE",isDisabled:!O.likesAllowed,defaultIcon:{iconType:G},defaultText:B==="DISLIKE"?O.dislikeCountWithUndislikeText:O.dislikeCountText,toggledText:B==="DISLIKE"?O.dislikeCountText:O.dislikeCountWithDislikeText,defaultNavigationEndpoint:XlS(O,"DISLIKE"),defaultServiceEndpoint:ftM(O,"DISLIKE"),toggledServiceEndpoint:ftM(O,"INDIFFERENT"),defaultTooltip:_.HX(O.dislikeCountTooltipText),
toggledTooltip:_.HX(O.dislikeCountTooltipText)}};
XlS=function(O,m){if(m==="LIKE")return O.likeCommand;if(m==="DISLIKE")return O.dislikeNavigationEndpoint};
ftM=function(O,m){var G;return(G=O.serviceEndpoints)==null?void 0:G.find(function(B){var Q;return((Q=_.b(B,_.cc))==null?void 0:Q.status)===m})};
_.u1N=function(O,m,G){return window.spf&&!_.V("web_disable_spfjs_client")?Tlz(O,m,G):gES(O,m)};
Tlz=function(O,m,G){var B=null,Q=(new _.zH(function(H,M){var R={};if(m){R.method=m.method;var x=m.postParams||{};moe(O,m)&&(x[_.kB("XSRF_FIELD_NAME")]=_.kB("XSRF_TOKEN"));R.postData=_.bb(x);m.type&&(R.type=m.type);x=m.headers}R.headers=sse(O,x);_.V("debug_forward_web_query_parameters")&&(O=_.AKN(O,window.location.search));R.experimental_headers=R.headers;R.onError=function(t){t.err&&t.xhr&&(t.err.params={url:t.xhr.responseURL,response:t.xhr.responseText.substr(0,64)});M(t.err)};
R.onPartDone=function(t){G&&G.call(null,t.part)};
R.onDone=function(t){var W=jkI(t.response,"xsrf_token");B7(window.location.href,O)&&W&&_.a8("XSRF_TOKEN",W);if(W=jkI(t.response,"service_worker_killswitch"))_.a8("SERVICE_WORKER_KILLSWITCH",W),FcY();H(t.response)};
B=spf.request(O,R)})).then(Itp);
Q.thenCatch(function(H){var M=H instanceof _.YK,R=H&&H.hasOwnProperty("params")&&H.params.response?H.params.response:"";H instanceof Error&&(R?M?lvS(H):R===')]}\'\n{"reload":"now"}'?lvS(H):(plp(H,O,R),S7f(H,R)?_.ay(H):_.oy(H)):lvS(H));B&&B.abort()});
return Q};
Itp=function(O){if(O.type==="multipart"){var m=O.timing;O=O.parts.reduce(function(G,B){Object.assign(G,B);return G},{});
O.timing=O.timing||{};Object.assign(O.timing,m);O.type="reduced"}return O};
gES=function(O,m){m=m===void 0?{}:m;var G=null,B=new _.zH(function(Q,H){m.onFinish=function(M){if(M.readyState===XMLHttpRequest.DONE)if(M.status===200){if(M.responseType!=="json"){var R=M.response;R.substring(0,5)===")]}'\n"&&(R=R.substring(5));try{var x=JSON.parse(R)}catch(t){x=t}}else x=M.response;x instanceof Error?H(x):(R=jkI(x,"xsrf_token"),B7(window.location.href,O)&&R&&_.a8("XSRF_TOKEN",R),M=M.responseURL,window.performance&&window.performance.getEntriesByName?(R=window.performance.getEntriesByName(M).pop())?
M={responseStart:(0,_.$G)()-(R.responseEnd-R.responseStart)}:(Math.random()<.01&&(R=Error("ji"),R.params=M,_.ay(R)),M={responseStart:-1}):M={responseStart:0},x.timing=x.timing||{},Object.assign(x.timing,M),Q(x))}else H(Error("ii`"+M.status))};
(G=_.Vb(O,m))||H(Error("ii`"+G.status))});
B.thenCatch(function(Q){Q instanceof Error&&(plp(Q,O),S7f(Q)&&(Q.level="WARNING"))});
_.V("cancel_pending_navs")&&B.thenCatch(function(){G.abort()});
return B};
jkI=function(O,m){var G=O[m],B=O.parts;O.type==="multipart"&&B&&(G=(O=B.find(function(Q){return m in Q}))&&O[m]);
return G};
plp=function(O,m,G){var B=O.message||"";m={original:B,url:m};if(G)if(B=B.match(/position:?\s*(\d+)/)){B=B&&Number(B[1])?Number(B[1]):0;var Q=Math.max(B-25,0);m.position=B;m.response=G.substring(Q,B+25)}else m.response=G.substring(0,50);_.kt(O,m);try{O.message="JSON parse error"}catch(H){}};
S7f=function(O,m){O=O.message||"";O=!!(O.indexOf("<")>=0||O.indexOf("end of ")>=0||O.indexOf("Unterminated string")>=0||O.indexOf("Unexpected EOF"));if(!O&&m)for(var G=m.length,B=!1,Q=0;Q<G;Q++)if(B&&m[Q]==="\\")Q++;else if(m[Q]==='"')B=!B;else if(m[Q]==="<"&&!B){O=!0;break}return O};
EEM=function(){return document.documentElement.hasAttribute("dark")};
_.LWO=function(O,m){if(O!=="GFEEDBACK"&&O!=="GUIDED_HELP")_.di(Error("ki`"+O));else{var G=_.KR().resolve(_.v7(_.KJ));if(G&&(G=G.getCurrentPage())&&G.getServiceTrackingParams&&(G=G.getServiceTrackingParams()))for(var B=0,Q;Q=G[B++];)if(Q.service===O){if(O=Q.params)for(G=0;B=O[G++];)m[B.key]=B.value;break}}};
_.CDN=function(O){var m=_.M1();m&&(m=m.getPlayer())&&(m.pauseVideo(),O.playback_id=m.getVideoData().cpn,O.eid=m.getVideoData().eventId,Object.assign(O,m.getFeedbackProductData()))};
oEz=function(){var O={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.kB("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(O.enableAnonymousFeedback=!0);_.kB("SESSION_INDEX")&&(O.authuser=String(_.kB("SESSION_INDEX")));_.V("enable_pageid_for_feedback")&&_.kB("DELEGATED_SESSION_ID")&&(O.pageId=String(_.kB("DELEGATED_SESSION_ID")));return O};
_.dD=function(O){_.V("enable_ypc_spinners")&&_.xc(O,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},O])};
_.wD=function(O){_.V("enable_ypc_spinners")&&_.xc(O,"yt-close-popup-action",["yt-loading-renderer"])};
ltY=function(O){return new Promise(function(m,G){_.DB({verifyCommand:{recaptchaToken:O.recaptchaResponse}},{commandController:{onSuccess:function(B,Q){Q||G("ChallengeService did not return a response.");var H;m({challengeCompleted:(H=Q.verified)!=null?H:!1})},
onServerError:function(B,Q){G(Q)}}})})};
atN=function(O,m,G,B){m({recaptchaResponse:B}).then(function(Q){Q.challengeCompleted?_.Tg()?(G(3),_.KR().resolve(_.Mu).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:O}})):G(2):G(4)},function(){G(4)})};
y3N=function(O,m,G){_.sF(_.WY(kOp,_.kB("HL")),function(){var B;(B=window.grecaptcha)==null||B.ready(function(){var Q=window.grecaptcha;Q?(G(Q.render(O,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:atN.bind(null,O,ltY,m)})),m(1)):m(4)})})};
c3I=function(O,m){return function(){switch(m()){case 0:return O().captchaLoadingMessage;case 1:return O().challengeReason;case 3:return O().captchaSuccessfulMessage;case 2:return O().captchaCookieSetFailureMessage;case 4:return O().captchaFailedMessage;default:return O().challengeReason}}()};
_.el=function(){if(!Y7p){var O=document.querySelector("#player.skeleton");O&&(_.hF(O),Y7p=!0)}};
_.wl6=function(){return dzz=FTN()};
skS=function(){return _.r(function(O){return ecf!==void 0?O.return():O.yield(Dzp(),0)})};
Dzp=function(){return _.r(function(O){if(O.nextAddress==1)return O.yield(OWN(),2);dzz=O.yieldResult;ecf=_.ln.addLowPriorityJob(Dzp,5E3);_.ju(O)})};
mar=function(O){var m=m===void 0?NlI:m;var G,B,Q=(G=O.responseContext)==null?void 0:(B=G.mainAppWebResponseContext)==null?void 0:B.trackingParam;if(!Q){m.increment("MISSING");var H,M,R,x,t,W;_.ay(new _.j9("282054944_a",{epw:!!((H=O.responseContext)==null?0:(M=H.mainAppWebResponseContext)==null?0:M.loggedOut),fxz:((R=O.responseContext)==null?void 0:R.mainAppWebResponseContext)===void 0,bQ2:O.responseContext===void 0,cp:(x=O.playabilityStatus)==null?void 0:x.contextParams,crz:(((t=O.streamingData)==
null?void 0:t.formats)||[]).length>0,tNC:(((W=O.streamingData)==null?void 0:W.adaptiveFormats)||[]).length>0,os:!!O.offlineState,cotn:O.cotn}));return 2}G="";try{G=PDp(Q)}catch(J){return m.increment("C_ERROR"),_.oy(J),2}try{var Z=_.FWM(G);var z=A3f(Z)}catch(J){return m.increment("P_ERROR"),_.oy(J),2}z=_.r_(z,ODs,1,_.Rw());Q=[];z=_.K(z);for(Z=z.next();!Z.done;Z=z.next())B=Z.value,Z=B.getPath(),G=(0,_.aM.getValueByKeys)(O,Z.split(".")),G=String(G===void 0||G===null?"":G),B=B.getValue()||"",H=/[+\-\/_]/g,
G.replace(H,"")!==B.replace(H,"")&&(m.increment("MISMATCH"),_.V("ab_mis_log_err")&&(G=new _.j9("282054944_p",{ztY:Z,g:String(G),e:String(B)}),_.oy(G)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(Z)||(Z.match(/enforcementMessageViewModel/i)?Q.push(3):Q.push(2)));if(Q.length>0)return Math.max.apply(Math,_.lS(Q));m.increment("SUCCESS");return 1};
Qgp=function(O){var m=new DL;if(O.interpreterJavascript){var G=_.ju5(O.interpreterJavascript);G=H_r(G).toString();var B=new G2p;_.SS(B,6,G);_.Tc(m,1,B,Ij)}else O.interpreterUrl&&(G=_.aO(O.interpreterUrl),G=_.Eh(G).toString(),B=new _.BAr,_.SS(B,4,G),_.Tc(m,2,B,Ij));O.interpreterHash&&_.sp(m,3,O.interpreterHash,Ij);O.program&&_.sp(m,4,O.program,Ij);O.globalName&&_.sp(m,5,O.globalName,Ij);O.clientExperimentsStateBlob&&_.sp(m,7,O.clientExperimentsStateBlob,Ij);return m};
Nk=function(O){var m={};O=_.K(O.split("&"));for(var G=O.next();!G.done;G=O.next())G=G.value.split("="),G.length===2&&(m[G[0]]=G[1]);return m};
HDI=function(O){return Number(O.t)||7200};
gBN=function(){if(_.V("bg_st_hr"))return"havuokmhhs-0";var O,m=((O=globalThis.performance)==null?void 0:O.timeOrigin)||0;return"havuokmhhs-"+Math.floor(m)};
vC5=function(){return new Promise(function(O){var m=window;m.ntpevasrs!==void 0?O(new Pc(m.ntpevasrs)):(m.ntpqfbel===void 0&&(m.ntpqfbel=[]),m.ntpqfbel.push(function(G){O(new Pc(G))}))})};
KJs=function(O){var m=O.n02.bind(O);_.HI("yt.aba.att",m);O=O.s3y.bind(O);_.HI("yt.aba.att2",O)};
Mbr=function(O){switch(_.JE(O.input)){case _.$H($aN):var m={};return m.encryptedVideoId=O.innerTubeRequest.externalVideoId,m}return{}};
iD5=function(O){switch(_.JE(O.input)){case _.$H($aN):if(_.V("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.$H(r4O):if(_.V("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.$H(Fv):if(_.V("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&O.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.$H(RUz):var m,G;if(_.V("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((G=_.b((m=O.config)==null?void 0:m.command,$y5))==null?0:G.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.qCN=function(O){var m;if(O.playlistVideoRenderer&&((m=O.playlistVideoRenderer)==null?0:m.engagementBar))return xaz(O.playlistVideoRenderer.engagementBar);if(_.b(O,AI)){var G;if(O=(G=_.b(O,AI))==null?void 0:G.engagementBar)return xaz(O)}return""};
xaz=function(O){if(!O)return"";O=_.b(O,_.UaI);if(O==null||!O.actions)return"";O=_.K(O.actions);for(O=O.next();!O.done;O=O.next()){O=_.b(O.value,_.tbM);var m=void 0;if((m=O)==null||!m.itemId)break;return O.itemId}return""};
_.WJ5=function(O){var m;if(O.playlistVideoRenderer&&((m=O.playlistVideoRenderer)==null?0:m.videoId))return O.playlistVideoRenderer.videoId;if(_.b(O,AI)){var G,B;if(O=(G=_.b(O,AI))==null?void 0:(B=G.playlistItemData)==null?void 0:B.videoId)return O}return""};
_.ZD6=function(O){var m;if(O.playlistVideoRenderer&&((m=O.playlistVideoRenderer)==null?0:m.voteCount))return O.playlistVideoRenderer.voteCount;if(_.b(O,AI)){var G,B;if(O=(G=_.b(O,AI))==null?void 0:(B=G.playlistItemData)==null?void 0:B.voteCount)return O}return 0};
_.OQ=function(O,m){return _.Vh(O.entities,"flowStateEntity",m)};
J4N=function(O,m,G,B){var Q=void 0;O=_.K(O[m.iconName]||[]);for(var H=O.next();!H.done;H=O.next()){H=H.value;var M=m.iconSize;var R=m.iconStyle;M=!M||M===H[2];var x=zUI[H[0]];B&&B!==H[1]||!M||R&&R!==x?R=!1:Q?(R=zUI[H[0]],R=!!m.iconStyle||R==="youtube_outline",M=Q.version<=H[1],R=(!!m.iconSize||H[2]===24)&&R&&M):R=!0;R&&(Q={name:m.iconName,style:zUI[H[0]],size:H[2],version:H[1],allowMirroring:!!H[3],url:G(m.iconName,H)})}return Q};
VbI=function(O,m,G,B){return O+(""+zUI[G[0]]+((B===void 0?0:B)?"_experimental":"")+"/"+m+"/v"+G[1]+"/")+(G[2]+"px.svg")};
bDe=function(O){return _.kB("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.kB("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":O};
nCS=function(O,m){return VbI("https://fonts.gstatic.com/s/i/",O,m)};
Xyr=function(O,m){return VbI("https://fonts.gstatic.com/s/i/",O,m,!0)};
fJr=function(O,m){return VbI("https://www.gstatic.com/youtube/img/icons/web/",O,m)};
TAp=function(O){var m=O.enabled;var G=O.itemPlaybackModel;var B=O.thumbnailElRef;var Q=O.containerElRef;var H=O.options;var M;_.ER(function(){var R=Q==null?void 0:Q.value;var x,t=(x=B())==null?void 0:x.value;x=G();var W=H();if(m&&x&&R&&t&&(W==null?0:W.thumbnail)){var Z={data:x,hostElement:R},z,J,n=_.V("web_explore_hub_on_hover")||_.V("web_client_explore_hub_on_hover")?[].concat(_.lS((z=W.thumbnailOverlays)!=null?z:[]),_.lS((J=x.overlays)!=null?J:[])):W.thumbnailOverlays||[],I,S;R={mediaRenderer:Z,
lockupElement:R,thumbnailElement:t,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.eg((I=x.inlinePlayerData)==null?void 0:I.onVisible),navigationEndpoint:_.eg((S=x.inlinePlayerData)==null?void 0:S.onSelect),thumbnail:W.thumbnail,thumbnailOverlays:n,accessibilityText:W.accessibilityText||""},thumbnailSize:W.thumbnailSize,enableRounding:W.enableRounding}}}else R=void 0;if(I=R){var L;(L=M)==null||mk(L);M=Yi(I);var C,P;((C=G())==null?0:(P=C.inlinePlayerData)==null?0:P.forceImpAutoplay)&&
hUp(M)}},"B33dEc");
_.LS(function(){var R;(R=M)==null||mk(R)})};
gCz=function(O){O=atob(O);for(var m=[],G=0;G<O.length;G++)m.push(O.charCodeAt(G));return new Blob([new Uint8Array(m)],{type:"image/png"})};
jgI=function(O,m,G,B){B=B===void 0?"INSERTION_POSITION_UNSPECIFIED":B;return O({targetId:m},function(Q){var H,M=(H=Q.contents)!=null?H:[];H=G!=null?G:[];var R=uee(M);switch(B){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},Q,{contents:[].concat(_.lS(M.slice(0,R)),_.lS(H),_.lS(M.slice(R+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},Q,{contents:[].concat(_.lS(H),_.lS(M))});case "INSERTION_POSITION_LAST":return Object.assign({},Q,{contents:[].concat(_.lS(M),_.lS(H))});
default:return Q}})};
pyN=function(O,m,G,B,Q){Q=Q===void 0?"RELATIVE_INSERTION_POSITION_AFTER":Q;return O({targetId:m},function(H){var M,R=(M=H.contents)!=null?M:[];M=IJr(R,G);if(M<0)return H;M=Q==="RELATIVE_INSERTION_POSITION_BEFORE"?M:M+1;return Object.assign({},H,{contents:[].concat(_.lS(R.slice(0,M)),_.lS(B),_.lS(R.slice(M)))})})};
uee=function(O){var m=O.findIndex(function(G){return _.b(G,_.GK)});
return m>=0?m:O.length};
IJr=function(O,m){return O.findIndex(function(G){a:{G=_.K(Object.values(G));for(var B=G.next();!B.done;B=G.next())if((B=B.value)&&B.targetId){G=B.targetId;break a}G=""}return G===m})};
ECs=function(O,m,G){return O({targetId:m},function(B){var Q,H=(Q=B.contents)!=null?Q:[];return Object.assign({},B,{contents:SCr(H,G)})})};
SCr=function(O,m){return O.filter(function(G){var B=m.includes;a:{G=_.K(Object.values(G));for(var Q=G.next();!Q.done;Q=G.next())if((Q=Q.value)&&Q.targetId){G=Q.targetId;break a}G=""}return!B.call(m,G||"")})};
_.LJ6=function(O,m){return{engagementPanelSectionListRenderer:{panelIdentifier:O,identifier:m,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
CJz=function(O,m){O=O.getAvailableAudioTracks();if(O.length)return O==null?void 0:O.find(function(G){var B;return(G==null?void 0:(B=G.getLanguageInfo())==null?void 0:B.getId())===m})};
_.lJO=function(O){var m,G=(m=O.getOption("captions","tracklist",{includeAsr:!0}))!=null?m:[];return G=oCO(G,O)};
aJS=function(O){return O.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
oCO=function(O,m){m=aJS(m);if(m==null||!m.length)return O;var G=m.filter(function(M){return M});
m=O.filter(function(M){return M.languageCode.startsWith("en")});
G=_.K(G);for(var B=G.next();!B.done;B=G.next())if(B=B.value,m.length){var Q=m[0],H=Object.assign({},Q);Q.languageCode!==B.languageCode&&(H.displayName=Q.languageName+" >> "+B.languageName,H.translationLanguage=B,O.push(H))}return O};
k2S=function(O,m,G){O=_.lJO(O);if(O.length)return G?O.find(function(B){if(typeof(B==null?void 0:B.translationLanguage)==="object"){var Q;return((Q=B.translationLanguage)==null?void 0:Q.languageCode)===m}return!1}):O==null?void 0:O.find(function(B){return B.languageCode===m})};
y4O=function(O){return O.getOption("captions","tracklist",{includeAsr:!0})};
c4r=function(O){var m=O.getAvailableAudioTracks();if(m!=null&&m.length){var G=O.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.lS(m.map(function(B){return{listItemViewModel:{title:{content:B.getLanguageInfo().getName()},isSelected:B.getLanguageInfo().getId()===(G==null?void 0:G.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:B.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
YCS=function(O){return O.getOption("captions","tracklist",{includeAsr:!0})};
daN=function(O){var m=YCS(O);if(m==null?0:m.length)return m;O.loadModule("captions");return YCS(O)};
wyI=function(O){var m=O.getOption("captions","track");if(m)return m;O.loadModule("captions");return O.getOption("captions","track")};
DaN=function(O){var m=daN(O);if(m!=null&&m.length){var G=wyI(O),B;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Xm("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(G==null?0:G.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.lS(m.map(function(Q){return{listItemViewModel:{title:{content:Q.displayName},
isSelected:Q.displayName===(G==null?void 0:G.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:_.Xm("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!G.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!G.translationLanguage&&{selectionText:{content:(G==null?void 0:(B=G.translationLanguage)==null?void 0:B.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[eUr(O)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
eUr=function(O){var m=aJS(O);if(m==null||!m.length)throw Error("Ji");var G=wyI(O);O=m.filter(function(B){return!B.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.lS(O.map(function(B){var Q;return{listItemViewModel:{title:{content:B.languageName},isSelected:B.languageName===(G==null?void 0:(Q=G.translationLanguage)==null?void 0:Q.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:B.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
FJS=function(O){return new Promise(function(m,G){if(O===void 0)_.oy(Error("Ni"),"ERROR"),G(Error("Ni"));else{G=new _.sgS;var B=_.NAO();G=G.init();var Q=_.PJ6(_.kB("YPC_MB_URL"),!0);Promise.all([G,Q]).then(function(){var H=_.B$.payments.business.integration.ClientTokenFactory.createClientToken(O,B);m(H)})}})};
mV5=function(O,m,G,B,Q,H,M){var R=_.m3();G=G.replace(/-/g,"+").replace(/_/g,"/");var x=_.TC().get("hl"),t=_.Q4(_.K7),W=m==null?void 0:m.element;W&&_.dD(W);A4s(m,!0);_.O0z(t,G,R.resolve,function(){W&&_.wD(W)},function(Z){W&&_.wD(W);
R.reject(Z)},x,B?function(Z){B&&_.Ov(O,B,{backend_analytics:Z})}:void 0,R.resolve,Q,H,M);
return R.promise};
A4s=function(O,m){!(O=O==null?void 0:O.element)||O.tagName!=="YT-BUTTON-RENDERER"&&O.tagName!=="YTD-BUTTON-RENDERER"||(O.disabled=m)};
GNI=function(){var O=_.Xm("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.rv(O),actionButton:{buttonRenderer:ZVz()}}},popupType:"TOAST"}};
Bxr=function(){var O=_.Xm("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.rv(O),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
Qx6=function(O){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:O}]}}};
H$=function(O,m,G,B){var Q;return _.r(function(H){if(H.nextAddress==1)return _.n_(H,2),H.yield(O,4);if(H.nextAddress!=2)return(Q=_.SH(m.getState().entities).length>0)?H.return({title:_.rv(_.Xm("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.rv(_.Xm("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:WnS()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
H.return(zzz(G,B));_.uS(H);return H.return(zzz(G,B))})};
H0z=function(O,m){return m?m==="PPSV"||bKM(O,m):!1};
vWp=function(O){O.responseContext||(O.responseContext={});O.responseContext.maxAgeSeconds=0;return O};
Kk=function(O){var m;return _.r(function(G){return G.nextAddress==1?G.yield(Kvs(O,"service:topbar:fallback"),2):(m=G.yieldResult)&&_.v$(m)?G.return(vWp(_.v$(m))):G.return()})};
$V6=function(O){var m;return _.r(function(G){return G.nextAddress==1?G.yield(Kvs(O,"service:downloads_settings:fallback"),2):(m=G.yieldResult)&&_.v$(m)?G.return(m):G.return()})};
Kvs=function(O,m){var G;return _.r(function(B){if(B.nextAddress==1)return O?B.yield(O.get(m),2):B.return();G=B.yieldResult;return!G||!_.v$(G)||!isNaN(Number(G.data.expireTimestampMs))&&G.isExpired()?B.return():B.return(G)})};
MRN=function(O){var m=_.KR().resolve($p).getState().entities;return O.playlistId?H0z(m,O.playlistId):!1};
rye=function(O,m){var G;if(m==null?0:(G=m.requestTemplate)==null?0:G.panelId)O.panelId=m.requestTemplate.panelId;var B;if(m==null?0:(B=m.requestTemplate)==null?0:B.params)O.params=m.requestTemplate.params};
i0Y=function(){if(ROp)return ROp();var O=!_.V("idb_response_store_auth_killswitch"),m={};ROp=Kp("yt-it-response-store",{objectStores:(m.ResponseStore={addedAtVersion:1},m),shared:!O,upgrade:function(G,B){B(1)&&(G=wY(G,"ResponseStore",{keyPath:["key","clientName"]}),ea(G,"byExpiration","expireTimestampMs"),ea(G,"byInterface","clientName"))},
version:1});return ROp()};
xVz=function(O){return _.AE(i0Y(),O)};
UVe=function(O,m){var G;return _.r(function(B){return B.nextAddress==1?B.yield(_.vI(),2):(G=B.yieldResult)?B.return(new qde(O,m,G)):B.return()})};
tRY=function(O){var m=Object.keys(O)[0];if(m)return O.screenExit&&(m=m+";"+O.screenExit.screen),m};
WvN=function(O){var m=new Map;O=_.K(O);for(var G=O.next();!G.done;G=O.next())G=G.value,G!=null&&(m.has(G.taskType)||m.set(G.taskType,[]),m.get(G.taskType).push(G));return m};
Z0S=function(O){O=[].concat(_.lS(O)).sort(function(G,B){return G-B});
var m=Math.floor(O.length/2);return O.length%2?O[m]:(O[m-1]+O[m])/2};
VRf=function(O,m){O=O===void 0?niN:O;m=m===void 0?{}:m;_.HI("yt.logging.errors.log",_.oy);Vhr();zOS(giN(),m);window.onerror=O;Jyp=bJf;window.addEventListener("unhandledrejection",function(G){if(G.reason instanceof Error){var B=G.reason;_.kt(B,{source:"unhandledrejection"});B.name==="AbortError"&&(B.level="WARNING")}bJf(G.reason);G.preventDefault()})};
_.b0s=function(O){var m,G,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P,w,d,D,OS,rN,xO,XI,Vf,US,CN,oe,K$,n$,qe,PM,ZH,U3,p$,uy,vb,vM;return _.r(function(Gp){if(Gp.nextAddress==1)return Gp.yield(_.gv(O,{mode:"readonly",enableRetries:!0},function(Vu){return uQ(Vu,"playbackData").then(function(Gu){var x9=Gu.map(function(Rj){return Rj.transfer}).filter(function(Rj){return!!Rj}),Am=Gu.map(function(Rj){return Rj.offlineVideoPolicy}).filter(function(Rj){return!!Rj}),Fc=Gu.filter(function(Rj){return!!Rj.key}).map(function(Rj){return _.Ja(_.Ur(Rj.key).entityId,
"downloadStatusEntity")});
x9=uQ(Vu,"transfer",x9);Am=uQ(Vu,"offlineVideoPolicy",Am);Fc=uQ(Vu,"downloadStatusEntity",Fc);var O9=x9.then(function(Rj){Rj=Rj.reduce(function(DH,zu){(zu==null?0:zu.offlineVideoStreams)&&DH.push.apply(DH,_.lS(zu.offlineVideoStreams));return DH},[]).filter(function(DH){return!!DH});
return uQ(Vu,"offlineVideoStreams",Rj)});
return wI.all([x9,Am,O9,Fc]).then(function(Rj){var DH=_.K(Rj);Rj=DH.next().value;var zu=DH.next().value;var jo=DH.next().value;DH=DH.next().value;return[Gu,Rj,zu,jo,DH]})})}),2);
if(Gp.nextAddress!=3)return m=Gp.yieldResult,Gp.yield(_.gv(O,{mode:"readonly",enableRetries:!0},function(Vu){return uQ(Vu,"mainDownloadsListEntity").then(function(Gu){var x9,Am;return(Am=(x9=Gu[0])==null?void 0:x9.downloads)!=null?Am:[]})}),3);
G=Gp.yieldResult;B=_.K(m);Q=B.next().value;H=B.next().value;M=B.next().value;R=B.next().value;x=B.next().value;t=Q;W=H;Z=M;z=R;J=x;n={};I={};S={};L={};C={};P=[];w=_.K(W);for(d=w.next();!d.done;d=w.next())(D=d.value)&&(n[D.key]=D);OS=_.K(Z);for(rN=OS.next();!rN.done;rN=OS.next())(xO=rN.value)&&(I[xO.key]=xO);XI=_.K(J);for(Vf=XI.next();!Vf.done;Vf=XI.next())(US=Vf.value)&&(S[US.key]=US);CN=_.K(z);for(oe=CN.next();!oe.done;oe=CN.next())(K$=oe.value)&&(L[K$.key]=K$);n$=_.K(G);for(qe=n$.next();!qe.done;qe=
n$.next())PM=qe.value,ZH=void 0,C[(ZH=PM.videoItem)!=null?ZH:""]=!0,PM.videoItem&&(p$=U3=void 0,uy=(p$=(U3=_.Ur(PM.videoItem))==null?void 0:U3.entityId)!=null?p$:"",P.push({externalVideoId:uy}));vb=t.filter(function(Vu){if(!Vu||!Vu.key||!Vu.offlineVideoPolicy)return!1;Vu=_.Ur(Vu.key).entityId;Vu=_.Ja(Vu,"downloadStatusEntity");var Gu;return!(Vu&&((Gu=S[Vu])==null?void 0:Gu.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
vM=vb.map(function(Vu){var Gu=n[Vu.transfer],x9=[];if(Gu==null?0:Gu.offlineVideoStreams)for(var Am=_.K(Gu.offlineVideoStreams),Fc=Am.next();!Fc.done;Fc=Am.next())(Fc=L[Fc.value])&&x9.push(Fc);Am=I[Vu.offlineVideoPolicy];Fc=C;var O9=Vu==null?void 0:Vu.playerResponseTimestamp,Rj=_.Ur(Am.key).entityId;Vu=_.Ja(Rj,"mainVideoEntity");if(Am.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var DH="OFFLINE_VIDEO_STATE_DISABLED";Am.expirationTimestamp&&Number(Am.expirationTimestamp)<Date.now()/1E3&&(DH="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Am.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")DH="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Gu==null?void 0:Gu.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":DH="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":DH="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":DH="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":DH="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":DH="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":DH="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:DH="OFFLINE_VIDEO_STATE_UNKNOWN"}if(DH==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Gu==null?void 0:Gu.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":DH="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":DH="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":DH=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Rj={id:Rj,videoState:DH};if(Gu==null?0:Gu.cotn)Rj.cotn=Gu.cotn;if(Gu==null?0:Gu.maximumDownloadQuality)Rj.selectedVideoQuality=Gu==null?void 0:Gu.maximumDownloadQuality;if(Gu==null?0:Gu.lastProgressTimeMs)Rj.lastProgressTimeMs=Gu.lastProgressTimeMs;O9&&(Rj.playerResponseSavedTimeMs=String(Number(O9)*1E3));Gu=String;O9=0;x9=_.K(x9);for(DH=x9.next();!DH.done;DH=x9.next())if(DH=DH.value,DH.streamsProgress){DH=_.K(DH.streamsProgress);for(var zu=DH.next();!zu.done;zu=
DH.next()){var jo=void 0;O9+=Number((jo=zu.value.numBytesDownloaded)!=null?jo:0)}}Rj.downloadedBytes=Gu(O9);Rj.selectedOfflineMode=Fc[Vu]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Am.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Rj.offlinePlaybackDisabledReason=Am.offlinePlaybackDisabledReason);return Rj});
return Gp.return({offlineVideos:vM,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:P}}})})};
nWO=function(){var O;return _.r(function(m){return m.nextAddress==1?m.yield(_.XZ(),2):(O=m.yieldResult)?m.return(_.b0s(O)):m.return({state:"PES Unavailable"})})};
hON=function(){var O,m,G,B;return _.r(function(Q){if(Q.nextAddress==1)return Q.yield(_.XZ(),2);if(Q.nextAddress!=3)return(O=Q.yieldResult)?Q.yield(XJz(O),3):Q.return({state:"PES Unavailable"});m=Q.yieldResult;G={};B=m.reduce(function(H,M){H[M.key]=M;return H},G);
return Q.return(f06(B))})};
f06=function(O){for(var m={},G=[],B=_.K(Object.keys(O)),Q=B.next();!Q.done;Q=B.next()){var H=Q.value;Q=O[H];var M=void 0;if(((M=Q)==null?void 0:M.entityType)==="mainVideoEntity"){delete O[H];var R=Q.data;Q={};if(R){var x=void 0;M=(x=R.videoId)!=null?x:"vid-"+H;H=O;Q.video=R;delete Q.video.formattedDescription;delete Q.video.thumbnail;R.owner&&(x=H[R.owner],x==null?0:x.data)&&(delete H[x.key],Q.video.owner=x.data,delete Q.video.owner.avatar);if(R=R.downloadState)if(x=H[R],x==null?0:x.data)if(delete H[R],
R=x.data.playbackData)if(x=H[R],x!=null&&x.data){delete H[R];R=x.data;delete R.playerResponseJson;Q.playbackData=R;if(R.transfer&&(x=H[R.transfer],x==null?0:x.data)){delete H[x.key];var t=x.data;Q.transfer=t;x=[];t=_.K(t.offlineVideoStreams||[]);for(var W=t.next();!W.done;W=t.next())if(W=H[W.value])delete H[W.key],x.push(W.data);x&&(Q.streams=x)}(R=R.offlineVideoPolicy)&&(R=H[R])&&R.data&&(delete H[R.key],Q.offlineVideoPolicy=R.data)}m[M]=Q}}else Q&&Q.entityType==="offlineOrchestrationActionWrapperEntity"&&
Q.data&&(delete O[Q.key],M=Q.data,H=void 0,G.push({id:M.rootActionId,type:((H=M.actionProto)==null?void 0:H.actionType)||"",entity:Q}))}m.wrapperEntities=G;Object.keys(O).length>0&&(m.unknownKeys=O);return m};
TxN=function(){var O,m,G,B,Q,H,M,R,x;return _.r(function(t){if(t.nextAddress==1)return O=!!(new _.YG("")).expiringStorage_,B=!!((m=_.Qf.crypto)==null?0:(G=m.subtle)==null?0:G.importKey),Q=!!_.Qf.BroadcastChannel,H=!!_.Qf.navigator.locks,t.yield(OfN(),2);M=t.yieldResult;R=O&&B&&Q&&H&&M;x={isSupported:R};if(R)return t.return(x);x.missingBrowserFeatures=[];M||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");O||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
B||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");Q||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");H||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return t.return(x)})};
gWN=function(){var O;return!((O=MX?MX:null)==null||!O.window)};
_.jx5=function(O){if(_.us()&&_.qSS("Chromium")>=120){var m=_.uAN().mediaSession;try{m.setActionHandler("enterpictureinpicture",function(){O()})}catch(G){}}};
I0r=function(O){for(var m=[],G=_.K(document.styleSheets),B=G.next(),Q={};!B.done;Q={node$jscomp$729:void 0},B=G.next())Q.node$jscomp$729=B.value.ownerNode,Q.node$jscomp$729&&(Q.node$jscomp$729 instanceof HTMLStyleElement||Q.node$jscomp$729 instanceof HTMLLinkElement)&&m.push(new Promise(function(H){return function(M){var R=H.node$jscomp$729.cloneNode(!0);R.onload=function(){M()};
R.onerror=function(){_.ay(Error("pj"));M()};
O.document.head.appendChild(R)}}(Q)));
return Promise.all(m)};
yys=function(O){var m=[_.x6(pJY),_.x6(SdN),_.x6(EWM)];Lv6(window.document.documentElement,O.document.documentElement,[_.x6(CNs),_.x6(oWO),_.x6(l0I),_.x6(a0S),_.x6(kNf)]);Lv6(window.document.body,O.document.body,m)};
Lv6=function(O,m,G){O=_.K(O.attributes);for(var B=O.next();!B.done;B=O.next())if(B=B.value)try{_.rC(G,m,B.name,B.value)}catch(Q){}};
YdS=function(O,m){O=new _.rJ(O.document.documentElement);O.start(cyM,m);return O};
dV5=function(O){var m=O.document.documentElement;m.addEventListener("click",function(G){ewN(m,G)});
m.addEventListener("touchstart",function(G){F4Y(G)});
m.addEventListener("mousedown",function(G){F4Y(G)})};
eON=function(O,m,G,B){B=B===void 0?!1:B;m=new wJs(m||O,G||O);return{x:O.x+((B===void 0?0:B)?m.lengthX*-1:m.lengthX)*.2,y:O.y+((B===void 0?0:B)?m.lengthY*-1:m.lengthY)*.2}};
DVp=function(O){if(!O)return!1;var m=O.status==="OK"||O.status==="LIVE_STREAM_OFFLINE",G,B,Q,H=(Q=(G=O.errorScreen)==null?void 0:G.playerLegacyDesktopYpcTrailerRenderer)!=null?Q:(B=O.errorScreen)==null?void 0:B.ypcTrailerRenderer;return!!m||!!H};
_.sxN=function(O,m){if(!O)return!1;var G,B=(G=O.errorScreen)==null?void 0:G.playerLegacyDesktopYpcOfferRenderer,Q;m=!!(m==null?0:(Q=m.playerOverlayRenderer)==null?0:Q.gatedActionsOverlayRenderer);return!!DVp(O)||!!B||!!m};
Fvs=function(O){return Nxs(O,0,"gclid",O.search(PNr))>=0||Nxs(O,0,"gad_source",O.search(PNr))>=0};
AyM=function(O){var m=[],G=0;return{clear:function(){G=m.length=0},
push:function(B){m[G]=B;G=(G+1)%O},
iterate:function(){return function Q(){var H,M,R,x;return _.R6(Q,function(t){switch(t.nextAddress){case 1:_.hX(t,2),H=m.length,M=0;case 4:if(!(M<H)){t.jumpTo(2);break}R=G+M;x=_.iW;return t.yield(m[R%H],7);case 7:x(t.yieldResult);M++;t.jumpTo(4);break;case 2:_.f_(t),_.T9(t,0)}})}()}}};
OgO=function(O){O.eventsToIgnore||(O.eventsToIgnore=[]);var m=O.eventsToIgnore.map(NbY),G=new Set(m),B=AyM(O.bufferSize);return{flush:function(){var Q=Array.from(B.iterate());B.clear();Q=Q.map(function(H){return{name:H.name,timestamp:H.startTime,attributes:H.attributes}});
return JSON.stringify(Q)},
onSpanStart:function(Q){Q.name==="event"&&G.has(Q.attributes.type)||B.push(Q)}}};
mUS=function(O){O=OgO(O);var m=O.flush;vq.processors.push({onSpanStart:O.onSpanStart});SvM.subscribe("handleError",function(G){try{G.params.breadcrumbs=m()}catch(B){_.oy(B,"WARNING")}})};
Gfr=function(){kc("web_tracing_action");_.ys("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
BLM=function(){kc("web_tracing_action");_.ys("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
HgM=function(O,m,G){if(m===void 0){QGM||(BLM(),setInterval(BLM,6E5),QGM=!0);var B="web_tracing_action"}else B=m;var Q,H=((Q=O.endTime)!=null?Q:O.startTime)-O.startTime,M={};Q=O.name;var R=O.startTime;M={webTracing:(M[O.name]=O.attributes,M)};G=_.wi(tLs)(Q,H,R,M,G,B);if(O.children)for(O=_.K(O.children),B=O.next();!B.done;B=O.next())HgM(B.value,m,G)};
vu6=function(O){var m=G0f.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(G){G.data&&typeof G.data==="object"&&(G=G.data,G.from==="extension"&&G.app==="yt.telemetry"&&(m("Received message from extension",G),O.onMessage(G)))});
return function(G,B){G={app:"yt.telemetry",from:"app",key:G,payload:B};m("Sending message to extension",G);window.postMessage(G,"*")}};
Kze=function(){var O=O===void 0?3E3:O;var m=vu6({onMessage:function(){}}),G=[];
return{onSpanEnd:function(B){B.parentId==null&&G.push(B)===1&&setTimeout(function(){var Q=[].concat(_.lS(G));G.length=0;m("spansReported",{spans:Q})},O)}}};
M25=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var O=window.performance.getEntriesByType("navigation");if(O.length>0){var m=O[0];mcN("pageLoad",{navigationType:$U6(m.type),unloadEventStart:Math.round(m.unloadEventStart),unloadEventEnd:Math.round(m.unloadEventEnd),domInteractive:Math.round(m.domInteractive),domContentLoadedEventStart:Math.round(m.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(m.domContentLoadedEventEnd),
domComplete:Math.round(m.domComplete),loadEventStart:Math.round(m.loadEventStart),loadEventEnd:Math.round(m.loadEventEnd),redirectCount:m.redirectCount},function(){})}}catch(G){}})};
$U6=function(O){switch(O){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
igN=function(){for(var O=CYz.value,m={},G=_.K(O.enabledSpansArray),B=G.next();!B.done;B=G.next())m[B.value]=!0;if(O.exportToCsi||O.exportBreadcrumbs)G=Car(),vq.initialized=!0,vq.sessionId=G||"",vq.enabledSpans=m,AeN("pageLoad")&&M25();O.exportBreadcrumbs&&mUS({eventsToIgnore:rdN,bufferSize:O.bufferSize});O.exportToCsi&&vq.processors.push(RQr);O.exportToDevTools&&(O=Kze(),vq.processors.push(O))};
xUf=function(O){return new Promise(function(m){window.setTimeout(m,O)})};
quf=function(O){var m={bicf:function(H){O.hFg=H},
blc:function(){return O.getLatestChallengeResponse()},
bcr:function(H){O.kqG.push(H)}},G=window;
G.ntpevasrs=m;if(G.ntpqfbel!==void 0)for(var B=_.K(G.ntpqfbel),Q=B.next();!Q.done;Q=B.next())Q=Q.value,Q(m);G.ntpqfbel=void 0};
UUY=function(O){return _.r(function(m){if(m.nextAddress==1)return _.n_(m,2),m.yield(O.d2l(),4);if(m.nextAddress!=2)return _.P7(m,0);_.uS(m);_.ju(m)})};
t2I=function(O){var m,G;(m=O.ytcsi)==null||(G=m.tick)==null||G.call(m,"pot_ist")};
WzY=function(O){if(O instanceof Error){var m=_.ex("yt.logging.errors.log");m&&m(O,"WARNING")}};
Zg6=function(O){try{var m=JSON.parse(O);if(m.bgChallenge)return m}catch(G){}};
JdY=function(){var O=window,m={networkStatusManagerPromise:_.KR().resolve(new ocr(_.PI)),initialChallengeSli:_.V("wpo_att_sli")?new _.GEO("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};O=O===void 0?window:O;var G=O.ytAtR,B;m==null||(B=m.initialChallengeSli)==null||_.xp(B);if(G){if(G=Zg6(G)){var Q;m==null||(Q=m.initialChallengeSli)==null||_.qX(Q,"SUCCESS");zQ5(G,m)}O.ytAtR=void 0}else O.ytAtRC=function(H){if(H=Zg6(H)){var M;m==null||(M=m.initialChallengeSli)==null||
_.qX(M,"SUCCESS");zQ5(H,m);O.ytAtRC=void 0}}};
nup=function(){if(V2s)return V2s;try{var O=_.fd("IFRAME");_.mI(O,_.WY(bgp));O.sandbox.add("allow-same-origin");O.style.display="none";document.body.appendChild(O);return V2s=O}catch(m){O=new _.j9("Failed to create sandbox iframe"),_.oy(O)}};
Xa5=function(O){var m,G;return(G=O==null?void 0:(m=O.contentWindow)==null?void 0:m.fetch)!=null?G:window.fetch};
f$N=function(O){var m,G;return(G=O==null?void 0:(m=O.contentWindow)==null?void 0:m.Request)!=null?G:window.Request};
hQs=function(O){var m,G;return(G=O==null?void 0:(m=O.contentWindow)==null?void 0:m.TextDecoder)!=null?G:window.TextDecoder};
TLS=function(){return function(O,m){_.kB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[O]=m}};
gue=function(){return function(O,m){var G={};G[O]=m;O=_.wi(_.qoO)(G);Object.keys(O).length>0&&_.as(O)}};
I$S=function(){if(wE6()==="hidden")var O="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else wE6()==="visible"&&(O="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",uNY=null);O&&jGM(O)};
jGM=function(O){if(O==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||O==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(pa6===O)return;pa6=O}var m=9E4+Math.random()*2E3;if(O!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.MT()>m)&&wE6()==="visible"){m=-1;uNY&&(m=Math.round((0,_.$G)()-uNY));var G=String;var B=_.ex("_fact",window);B=B==null||B==-1?-1:Math.max(Date.now()-B,0);_.LE("foregroundHeartbeat",{firstActivityMs:G(B),clientDocumentNonce:oIs,index:String(Sus),lastEventDeltaMs:String(m),trigger:O});
_.HI("_fact",-1,window);Sus++;uNY=(0,_.$G)()}};
_.EuN=function(){try{return!!self.sessionStorage}catch(O){return!1}};
Lzp=function(){var O=navigator;return new Promise(function(m,G){var B;(B=O.webkitTemporaryStorage)!=null&&B.queryUsageAndQuota?O.webkitTemporaryStorage.queryUsageAndQuota(function(Q,H){m({usage:Q,quota:H})},function(Q){G(Q)}):G(Error("zj"))})};
Cks=function(O,m){var G={errorSeverity:m.errorSeverity.toString(),wizFeatureFlags:Object.entries(m.featureFlags).join("\n")};Jtf(m,G);m=m.errorSeverity;m===3?_.oy(O,"ERROR",void 0,void 0,void 0,G):m===2&&_.oy(O,"WARNING",void 0,void 0,void 0,G);_.V("cow_if_errors_in_popup")&&m===3&&O.message.indexOf("<If>")!==-1&&window.alert(O.message)};
ouO=function(O,m){var G=Hq.get(O)||{layerNode:m};G.layerNode=m;FON(O,G);O.getScreenLayer=function(){return UQ(G.layerNode)}};
l$r=function(O){var m;O=O.parentNode;for(var G;O&&((m=Hq.get(O))==null||!m.isRenderer)&&!((G=O.polymerController)!=null?G:O).isRenderer_;)O=O.parentNode||O.host;if(m=O)return Hq.get(m)};
a$p=function(O){if(O){Hq.delete(O);var m=_.KR().resolve(KI);$AN(O,m)}};
ydY=function(O,m,G){if(G===void 0?0:G){if(G=O.getAttribute("client-ve-type"),m.data&&!m.disableReactiveLogging||G)_.lF(function(){kfS(O,_.o9(m.data))}),_.LS(function(){return void a$p(O)})}else typeof m.data!=="function"&&kfS(O,m.data)};
kfS=function(O,m){cds++;YuI(O,m)&&_.ln.addJob(function(){_.t8(_.ln,function(){if(YuI(O,m)&&O.ownerDocument.documentElement===document.documentElement&&O){var G;if(O.getAttribute("layer")){var B=G=Number(O.getAttribute("layer")),Q=Hq.get(O);Q?Q.layerNode.layer=B:ouO(O,new dUN(B));(B=l$r(O))&&(Q=Hq.get(O))!=null&&(Q.layerNode.parent=B.layerNode)}else if(G=Hq.get(O))G=UQ(G.layerNode);else{G=UQ;B=new dUN;if(Q=l$r(O))B.parent=Q.layerNode;ouO(O,B);G=G(B)}G!=null||(G=0);B=O.getAttribute("client-ve-type");
Q=Number(B);var H=!1;B=!1;var M=Hq.get(O),R;if((R=M)&&!(R=M[wa5]!==m)&&(R=Q)){var x;R=((x=Hq.get(O))==null?void 0:x.clientVeType)===void 0}R&&(M[wa5]=m,H=B=M.isRenderer=!0);Hq.has(O)&&(Hq.get(O).clientVeType=Q);O.visualElement&&(B=!0);if(_.V("wiz_next_ld_fix_client_ve_spec")){var t;x=((t=_.b(m==null?void 0:m.rendererContext,_.jg))==null?void 0:t.loggingDirectives)||(m==null?void 0:m.loggingDirectives)}else x=m==null?void 0:m.loggingDirectives;x&&x.clientVeSpec&&(t=eQf(_.TS(),O),t=_.DUz(_.uK(),x,t||
void 0,G))&&(O.visualElement=t);!O.visualElement&&Q&&H&&(O.veType=Q,t=void 0,_.V("wiz_next_client_ve_parent_fix")&&(t=eQf(_.TS(),O)),t=_.gu(_.uK(),O,t,G),O.visualElement=t);B&&(t=_.KR().resolve(KI),iFr(O,{data:m,observer:t,layer:G,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
YuI=function(O,m){return(m==null?0:m.trackingParams)||(m==null?0:m.loggingDirectives)||_.b(m==null?void 0:m.rendererContext,_.jg)||O.getAttribute("client-ve-type")?!0:!1};
sGz=function(O,m,G){O.componentType!==uF&&G instanceof HTMLElement&&m&&!_.V("cow_logging_in_component_wrapper")&&ydY(G,m,!0)};
Adr=function(){if(!NLN){NLN=!0;var O=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.V("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:Cks,enableComponentStacksInErrorMessages:!1});Object.assign(M_,O);of5=Pke;FzN();ccM=j2M;afN=IiY}};
FzN=function(){_.V("cow_logging_in_component_wrapper")?(yDN=function(O,m){m instanceof HTMLElement&&ydY(m,O,!0)},h86=function(){}):(yDN=function(){},h86=sGz)};
OXO=function(O,m,G){m=m===void 0?{}:m;var B,Q=(B=_.b(O.commandMetadata,_.bP))==null?void 0:B.url;B=m.form||{};!G||B.element||B.skipDefaultElement||(m.form=m.form||{},m.form.element=G);if(Q&&Q!=="/service_ajax")return{type:0,command:O,form:m.form};if(_.V("kevlar_service_command_check")){if(_.AH(_.KR().resolve(_.Dk),O))return Object.assign({},{type:1,command:O},m)}else{var H;if((H=_.b(O.commandMetadata,_.bP))==null?0:H.apiUrl)return Object.assign({},{type:1,command:O},m)}return{type:2,command:O,form:m.form}};
mYS=function(O){if(O.form){var m=O.form,G=Object.assign({},m);m=m.element;G=(delete G.element,G);if(m)return[_.tK(m,[O.command,G,O.commandController])]}return[]};
Gq6=function(O){if(O.form){var m=O.form,G=Object.assign({},m);m=m.element;G=(delete G.element,G);m&&_.Wd(m,[O.command],m,G)}};
QP5=function(O,m,G){var B=new BZI(O,m),Q=new W$(O,m,G);O={"/youtubei/v1/browse":new Zo(O,m,G),"/youtubei/v1/player":B,"/youtubei/v1/navigation/resolve_url":new zK,"/youtubei/v1/next":Q,"/youtubei/v1/guide":new J8(G),"/youtubei/v1/search":new V4(O,m,G),"/youtubei/v1/reel/reel_item_watch":new bW(O,m,G),"/youtubei/v1/get_watch":new nk(B,Q)};O["/youtubei/v1/account/account_menu"]=new XY;O["/youtubei/v1/notification/get_notification_menu"]=new fk;return O};
TK=function(){var O=_.KR().resolve(h8);return Promise.resolve(HXO(O,_.Qf.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
v8M=function(O){return O&&(O=_.gJ(_.yBf(O)))?(new URLSearchParams(O)).get("service"):null};
I6=function(O,m){_.z$(_.uW(),function(){_.cd("adl")});
_.KR().resolve(KRe)(m);O=O.root;O.loadData&&O.loadData(m);(m==null?0:m.response)?_.qX(HUz(),"SUCCESS"):_.ay(new _.j9("Lifecycle: No response in data",_.yE("IS_SHELL_LOAD"),m?m.page:"NO_PAGE",m?m.endpoint:"NO_ENDPOINT"));O.polymerController.$["page-manager"].lazyPrepareCriticalPages((m==null?void 0:m.page)||"",m.endpoint);var G,B;((B=_.b(m==null?void 0:(G=m.endpoint)==null?void 0:G.commandMetadata,_.bP))==null?0:B.webPageType)&&_.Kf().dispatch(_.jk(_.b(m.endpoint.commandMetadata,_.bP).webPageType))};
$Yf=function(){var O,m;return _.r(function(G){switch(G.nextAddress){case 1:O=window;if(!O.getDataPromise){G.jumpTo(2);break}_.n_(G,3);return G.yield(O.getDataPromise(),5);case 5:return G.return(G.yieldResult);case 3:return _.uS(G),G.yield(TK(),6);case 6:return G.return(G.yieldResult);case 2:if(O.getInitialData)return m=O.getInitialData(),O.getInitialData=void 0,G.return(m);throw Error("Bj`"+_.Qf.location.href);}})};
r6S=function(){_.a8("CSI_SERVICE_NAME","youtube");_.as({loadType:"cold"});_.V("kevlar_log_lcp")&&M3s(function(O){_.cd("lcp",O.value)})};
Rpr=function(){var O=_.s0(document.location.href,"enable");O&&O.indexOf("scraper")>-1&&_.a8("ADD_SCRAPER_ATTRIBUTES",!0)};
t3e=function(O){var m=O.root;O=[iX5,xYY,_.pk];_.V("web_feedback_endpoint_autolog_allowlist_killswitch")&&O.push(_.Sk,qkN);UYI(function(G,B){return OXO(G,B,m)},function(G){if(!G.command)return[];
var B;((B=G.form)==null?0:B.element)?G.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},G.form,{endpoint:G.command})})):m.handleNavigate(G);return[]},O);
_.KR().addProvider({provide:_.Mu,useValue:_.XJ.instance})};
ZXI=function(){var O={},m={},G;for(G in WRs){var B=_.K(_.Wf(WRs[G],void 0,"IAtZ7"));O[G]=B.next().value;m[G]=B.next().value}return[O,function(Q){for(var H in Q){var M=void 0;(M=m[H])==null||M(Q[H])}}]};
_.EQ=function(O,m,G){m=m===void 0?!1:m;var B=_.aM.getValueByKeys(O,"contents","twoColumnWatchNextResults","results","results","contents"),Q=_.aM.getValueByKeys(O,"contents","twoColumnWatchNextResults","playlist","playlist")||null;m&&(Q=null);var H=m=null;if(Q)m=_.aM.getValueByKeys(Q,"titleText"),H=_.aM.unsafeClone(_.aM.getValueByKeys(Q,"longBylineText")),B="",H&&(B=_.HX(H)),H=_.Qg(B);else if(B){B=_.K(B);for(var M=B.next();!M.done;M=B.next())M=M.value,M.videoPrimaryInfoRenderer&&(m=_.aM.getValueByKeys.apply(_.aM,
[M].concat(_.lS(zpz)))),M.videoSecondaryInfoRenderer&&(H=_.aM.getValueByKeys.apply(_.aM,[M].concat(_.lS(J6N))))}else _.Dy(Error("Gj"));var R;O.currentVideoEndpoint?R=O.currentVideoEndpoint:_.Dy(Error("Hj"));var x;G&&(x=_.aM.getValueByKeys(G,"playabilityStatus","miniplayer","miniplayerRenderer"));O={miniplayerTitle:m,miniplayerSubtitle:H,watchEndpoint:R,playlistData:Q};x&&(O.miniplayerRenderer=x);return O};
V3f=function(O){if(O)return _.cE(O)};
_.bXN=function(){return{isFullscreen:function(){throw Error("Ij");},
toggleFullscreen:function(){throw Error("Jj");},
exitFullscreen:function(){throw Error("Kj");},
isAutonavEnabled:function(){throw Error("Lj");},
setAutonavEnabled:function(){throw Error("Mj");},
isAutoplaySetExplicitly:function(){throw Error("Nj");}}};
n8O=function(O){return O.videoDuration?O.numTaps>1&&O.tapDirection!==0?_.Lk(O.draggedTime/O.videoDuration,0,1):_.Lk((O.playedTime||0)/O.videoDuration,0,1):0};
XQs=function(O){return O.videoDuration?O.isDragging||O.numTaps>1&&O.tapDirection!==0?_.Lk(O.draggedTime/O.videoDuration,0,1):_.Lk((O.playedTime||0)/O.videoDuration,0,1):0};
hp5=function(O){var m,G,B;return _.b(O==null?void 0:(m=O.markersMap)==null?void 0:(G=m.find(function(Q){return Q.key==="HEATSEEKER"}))==null?void 0:(B=G.value)==null?void 0:B.heatmap,fze)};
TZf=function(O){var m,G;return(G=(m=hp5(O))==null?void 0:m.heatMarkersDecorations)!=null?G:[]};
g8r=function(O){if(_.V("mweb_supported_chapters_killswitch"))return!0;var m;return!!(O==null?0:(m=O.markersMap)==null?0:m.find(function(G){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(G.key)}))};
_.uar=function(O){var m=Object,G=m.assign,B;O={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(B=O==null?void 0:O.getPlayerState())!=null?B:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return G.call(m,{},{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},O,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
jPe=function(O){return function(m){var G=O(),B,Q=(B=G.playerApi)==null?void 0:B.getPlayerState();m&&m!==G.playerState&&(m===1||m===2)&&G.setState({playerState:Q})}};
pQf=function(O){return function(m){var G=O(),B=G.playerApi;B&&(m==null?void 0:m.type)==="newdata"&&(IzY&&(clearTimeout(IzY),IzY=void 0),_.V("web_shorts_use_progress_state_for_gapless")?(m=B==null?void 0:B.getProgressState(m==null?void 0:m.playertype),m=m.seekableEnd-m.seekableStart):m=B==null?void 0:B.getDuration(m==null?void 0:m.playertype),G.setState({playedTime:0,videoDuration:m}))}};
SkN=function(O){return function(m){var G=O(),B=G.playerApi;if(B){var Q=B.getPresentingPlayerType();_.V("web_shorts_use_progress_state_for_gapless")?(B=B.getProgressState(Q),B=B.seekableEnd-B.seekableStart):B=B.getDuration(Q);G.setState({playedTime:m,videoDuration:B})}}};
LRO=function(O){_.jl(112394,O,function(){return E8Y},function(m){E8Y=m})};
lzY=function(O,m){if(!O)return[];var G,B,Q;O=((G=O.markersMap)==null?void 0:(B=G.find(function(H){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(H.key)}))==null?void 0:(Q=B.value)==null?void 0:Q.chapters)||[];
!CB5(O)||(m==null?0:m.ignoreStub)||(O=[o8s()].concat(_.lS(O)));return O};
o8s=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
CB5=function(O){if(O.length===0)return!1;var m;return((m=_.b(O[0],a6))==null?void 0:m.timeRangeStartMillis)!==0};
kp=function(O){return O?O.timeRangeStartMillis||0:0};
kq6=function(O,m){if(O.isDragging&&m)return O=aze(O,m),O===-1?o8s():lzY(m)[O]};
aze=function(O,m){return O.isDragging&&m?lzY(m,{ignoreStub:!0}).findIndex(function(G,B,Q){G=y6M(O);return c6M(G,Q,B).scrubberHovering}):-1};
y6M=function(O){return Object.assign({},O,{videoDuration:O.videoDuration*1E3,playedTime:O.playedTime*1E3,draggedTime:O.draggedTime*1E3})};
c6M=function(O,m,G){var B=kp(_.b(m[G],a6));m=kp(_.b(m[G+1],a6))||O.videoDuration;G=O.isDragging;var Q;if(Q=O.isDragging)Q=O.draggedTime,Q=Q!==null&&Q>=B&&Q<m;var H=O.playedTime;return H!==null&&H>=B&&H<m?{videoPosition:"active",isScrubbing:G,scrubberHovering:Q}:O.playedTime<B?{videoPosition:"pending",isScrubbing:G,scrubberHovering:Q}:{videoPosition:"seen",isScrubbing:G,scrubberHovering:Q}};
Yk5=function(O,m){return O.videoPosition==="seen"||(m===void 0?0:m)>0};
dY6=function(O,m,G){m=O/m.storyboardInterval;var B=lzY(G);if(!B.length)return-m*72;G=0;B=_.K(B);for(var Q=B.next();!Q.done;Q=B.next())if(kp(_.b(Q.value,a6))/1E3<O)G++;else break;return-(m*72)-G*56};
wQN=function(O){return O?O.width/O.columns:0};
epM=function(O){return O.isHovering?O.hoveredTime:O.draggedTime};
DYN=function(O,m){O=O.draggedTime*1E3;return O>=m.visibleTimeRangeStartMillis&&O<=m.visibleTimeRangeEndMillis};
_.sPO=function(O){if(O===void 0||Number.isNaN(O))return"--:--";var m=Math.abs(Math.floor(O)),G=Math.floor(m/86400),B=Math.floor(m%86400/3600),Q=Math.floor(m%3600/60);m=Math.floor(m%60);var H="";G>0&&(H+=G+":",B<10&&(H+="0"));if(G>0||B>0)H+=B+":",Q<10&&(H+="0");H+=Q+":";m<10&&(H+="0");H+=m;return O>=0?H:"-"+H};
NZz=function(O,m){return function(){var G=epM(O());var B=m();var Q=O().playerApi;if(Q&&Q.getNumberOfStoryboardLevels()!==0){var H=Q.getStoryboardFrameIndex(G,1);H!==-1?B=Q.getStoryboardFrame(H,1):(G=Q.getStoryboardFrameIndex(G,0),Q=Q.getStoryboardFrame(G,0),B&&Q&&(Q.height*=3,Q.width*=3),B=Q)}else B=null;if(!B)return null;m()&&(B.width=90*B.columns,B.height=160*B.rows);return B}};
_.y4=function(O){if(!O||O.getVideoData)return O};
PB5=function(){var O;return{playerApi:(O=_.Jt())!=null?O:void 0}};
FRp=function(O){var m;_.r(function(G){if(G.nextAddress==1)return G.yield(_.zM(),2);if(m=G.yieldResult)m.unMute(!0),m.setVolume(O,!0);_.ju(G)})};
A6f=function(O,m){O&&(O.value=""+m,O.style.setProperty("--gradient-percent",m+"%"))};
OcY=function(O){var m;return(m=O==null?void 0:O.value)!=null?m:0};
m7e=function(){var O;_.r(function(m){if(m.nextAddress==1)return m.yield(_.zM(),2);O=m.yieldResult;if(!O)return m.return();O.isMuted()?O.unMute(!0):O.mute(!0);_.ju(m)})};
Gsr=function(O){var m=_.KR().resolve(_.c$).getPlayerElement();m&&O&&(O===1?m.pause():m.play())};
BVr=function(O){_.UB(O,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
QBN=function(O){_.UB(O,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
vqN=function(O){return _.Sx(O.document.body,function(){return _.q(HcN,null)},"Kf")};
KB6=function(){var O=window.performance.getEntriesByType("navigation");return O?O.map(function(m){return m.type}).includes("reload"):!1};
U75=function(){Yp(Yp(Yp(Yp(Yp(Yp(Yp(_.KR().resolve(_.dJ),_.$7p),_.MTs),_.rbp),_.RYS),_.icN),_.x7N),_.qPp)};
tTS=function(O,m){m=m===void 0?!1:m;var G,B,Q,H;return _.r(function(M){if(M.nextAddress==1)return m||!_.V("kevlar_shorts_seedless_retry_initial_load")||(G=window,B=!(!G.getDataPromise&&!G.getInitialData),B)?M.yield($Yf(),2):(setTimeout(tTS.bind(window,O,!0),1E3),M.return());if(M.nextAddress!=3)return Q=M.yieldResult,M.yield(WBf(Q),3);H=M.yieldResult;I6(O,H);_.ju(M)})};
WBf=function(O){var m;if((m=O.response)==null||!m.replacementEndpoint)return _.ZY(O);m=_.KR().resolve(h8);O=O.response;_.b(O.replacementEndpoint,_.pf)&&O.sequenceContinuation&&(_.b(O.replacementEndpoint,_.pf).sequenceParams=O.sequenceContinuation);return wJ(m,O.replacementEndpoint,{},_.Qf.location.href,"shorts",function(){},function(){return!1})};
zYz=function(O){var m=_.KR().resolve(ZcN);O.playerResponse&&m.handleResponse(O.playerResponse);O.response&&m.handleResponse(O.response)};
Jbs=function(O){var m=_.Kf(),G,B=_.b((G=O.response)==null?void 0:G.frameworkUpdates,Bu),Q;G=_.b((Q=O.playerResponse)==null?void 0:Q.frameworkUpdates,Bu);var H;O=_.b((H=O.reelWatchSequenceResponse)==null?void 0:H.frameworkUpdates,Bu);B&&_.Tk(B,m);G&&_.Tk(G,m);O&&_.Tk(O,m)};
VTe=function(O){var m;_.V("enable_redirect_linking_for_desktop_web_client")&&((m=window.location.hash)==null?0:m.includes("redirect_state"))&&O.url&&(O.url=O.url.toString()+window.location.hash)};
XWf=function(O){var m=_.KR(),G=m.resolve(h8);m=m.resolve(_.bc5);O.endpoint&&(G=nq6(G,O.endpoint),G.content&&O.response&&_.ek(m,O.response,G.content),G.player&&O.playerResponse&&_.ek(m,O.playerResponse,G.player),G.reelSequence&&O.reelWatchSequenceResponse&&_.ek(m,O.reelWatchSequenceResponse,G.reelSequence))};
Do=function(O,m){zYz(m);Jbs(m);var G;(m==null?0:m.url)&&((G=window.location.hash)==null?0:G.includes("redirect_state"))&&(VTe(m),(G=v8M(m.url))&&_.xc(O.root,"yt-initialize-third-party",[G,m]));XWf(m);G=_.KR();var B=G.resolve(fXO);m.playerResponse&&G.resolve(hYM).handleResponse(m.playerResponse);if(m.playerResponse){G=void 0;if(_.V("ab_v_vid_sig")&&m.endpoint){var Q,H=(Q=_.b(m.endpoint,_.GC))!=null?Q:_.b(m.endpoint,_.pf);H&&(G=H.videoId)}TVI(B,m.playerResponse,G)}m.playerResponse&&hLM(m.playerResponse)&&
_.V("web_enable_ab_rsp_cl")?skS().then(function(){gqM(B,m.playerResponse);I6(O,m)}):I6(O,m)};
jBz=function(O){if(O=O.root.data){var m=_.KR().resolve(uUp);O.endpoint&&(O.response&&m.handleResponse(O.response,void 0,document.querySelector("ytd-app")),O.playerResponse&&m.handleResponse(O.playerResponse),O.reelWatchSequenceResponse&&m.handleResponse(O.reelWatchSequenceResponse))}};
IXp=function(O){var m,G,B,Q,H,M;return _.r(function(R){switch(R.nextAddress){case 1:m=window;if(!m.getDataPromise){R.jumpTo(2);break}_.n_(R,3);return R.yield(m.getDataPromise(),5);case 5:G=R.yieldResult;Do(O,G);_.P7(R,4);break;case 3:return _.uS(R),R.yield(TK(),6);case 6:B=R.yieldResult,I6(O,B);case 4:return R.return();case 2:if(!_.V("sw_nav_preload_pbj")){R.jumpTo(7);break}m.fetchInitialData=function(){var x;return _.r(function(t){if(t.nextAddress==1)return t.yield(TK(),2);x=t.yieldResult;I6(O,x);
_.ju(t)})};
if(m.getInitialData){m.loadInitialData=function(x){Do(O,x)};
Q=m.getInitialData();m.getInitialData=void 0;Do(O,Q);R.jumpTo(8);break}m.fetchInitialData=void 0;return R.yield(TK(),9);case 9:H=R.yieldResult,I6(O,H);case 8:return R.return();case 7:m.getInitialData?(M=m.getInitialData(),m.getInitialData=void 0,Do(O,M)):m.loadInitialData=function(x){Do(O,x)},_.ju(R)}})};
pW6=function(O){var m=0;return function(){return m<O.length?{done:!1,value:O[m++]}:{done:!0}}};
SP6=typeof Object.defineProperties=="function"?Object.defineProperty:function(O,m,G){if(O==Array.prototype||O==Object.prototype)return O;O[m]=G.value;return O};
EqI=function(O){O=["object"==typeof globalThis&&globalThis,O,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var m=0;m<O.length;++m){var G=O[m];if(G&&G.Math==Math)return G}throw Error("a");};
_.vr=EqI(this);sQ=function(O,m){if(m)a:{var G=_.vr;O=O.split(".");for(var B=0;B<O.length-1;B++){var Q=O[B];if(!(Q in G))break a;G=G[Q]}O=O[O.length-1];B=G[O];m=m(B);m!=B&&m!=null&&SP6(G,O,{configurable:!0,writable:!0,value:m})}};
sQ("Symbol",function(O){if(O)return O;var m=function(H,M){this.$jscomp$symbol$id_=H;SP6(this,"description",{configurable:!0,writable:!0,value:M})};
m.prototype.toString=function(){return this.$jscomp$symbol$id_};
var G="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",B=0,Q=function(H){if(this instanceof Q)throw new TypeError("b");return new m(G+(H||"")+"_"+B++,H)};
return Q});
sQ("Symbol.iterator",function(O){if(O)return O;O=Symbol("c");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),G=0;G<m.length;G++){var B=_.vr[m[G]];typeof B==="function"&&typeof B.prototype[O]!="function"&&SP6(B.prototype,O,{configurable:!0,writable:!0,value:function(){return LBr(pW6(this))}})}return O});
sQ("Symbol.asyncIterator",function(O){return O?O:Symbol("d")});
var LBr=function(O){O={next:O};O[Symbol.iterator]=function(){return this};
return O},CMs=typeof Object.create=="function"?Object.create:function(O){var m=function(){};
m.prototype=O;return new m},oqp=function(){function O(){function G(){}
new G;Reflect.construct(G,[],function(){});
return new G instanceof G}
if(typeof Reflect!="undefined"&&Reflect.construct){if(O())return Reflect.construct;var m=Reflect.construct;return function(G,B,Q){G=m(G,B);Q&&Reflect.setPrototypeOf(G,Q.prototype);return G}}return function(G,B,Q){Q===void 0&&(Q=G);
Q=CMs(Q.prototype||Object.prototype);return Function.prototype.apply.call(G,Q,B)||Q}}(),lXN;
if(typeof Object.setPrototypeOf=="function")lXN=Object.setPrototypeOf;else{var aXe;a:{var ksp={a:!0},ybS={};try{ybS.__proto__=ksp;aXe=ybS.a;break a}catch(O){}aXe=!1}lXN=aXe?function(O,m){O.__proto__=m;if(O.__proto__!==m)throw new TypeError("e`"+O);return O}:null}NX=lXN;
_.X=function(O,m){O.prototype=CMs(m.prototype);O.prototype.constructor=O;if(NX)NX(O,m);else for(var G in m)if(G!="prototype")if(Object.defineProperties){var B=Object.getOwnPropertyDescriptor(m,G);B&&Object.defineProperty(O,G,B)}else O[G]=m[G];O.superClass_=m.prototype};
_.K=function(O){var m=typeof Symbol!="undefined"&&Symbol.iterator&&O[Symbol.iterator];if(m)return m.call(O);if(typeof O.length=="number")return{next:pW6(O)};throw Error("f`"+String(O));};
GJ=function(O){for(var m,G=[];!(m=O.next()).done;)G.push(m.value);return G};
_.lS=function(O){return O instanceof Array?O:GJ(_.K(O))};
_.FY=function(O){return P$(O,O)};
P$=function(O,m){O.raw=m;Object.freeze&&(Object.freeze(O),Object.freeze(m));return O};
A8=function(O,m){return Object.prototype.hasOwnProperty.call(O,m)};
cbM=function(O){if(O==null)throw new TypeError("g");return Object(O)};
YP6=typeof Object.assign=="function"?Object.assign:function(O,m){O=cbM(O);for(var G=1;G<arguments.length;G++){var B=arguments[G];if(B)for(var Q in B)A8(B,Q)&&(O[Q]=B[Q])}return O};
sQ("Object.assign",function(O){return O||YP6});
var Og=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},d7s=function(O){if(O.isRunning_)throw new TypeError("i");
O.isRunning_=!0};
Og.prototype.JSC$8723_next_=function(O){this.yieldResult=O};
var wWf=function(O,m){O.abruptCompletion_={exception:m,isException:!0};O.nextAddress=O.catchAddress_||O.finallyAddress_};
Og.prototype.return=function(O){this.abruptCompletion_={return:O};this.nextAddress=this.finallyAddress_};
Og.prototype.yield=function(O,m){this.nextAddress=m;return{value:O}};
Og.prototype.jumpTo=function(O){this.nextAddress=O};
_.ju=function(O){O.nextAddress=0};
_.n_=function(O,m,G){O.catchAddress_=m;G!=void 0&&(O.finallyAddress_=G)};
_.hX=function(O,m){O.catchAddress_=0;O.finallyAddress_=m||0};
_.P7=function(O,m,G){O.nextAddress=m;O.catchAddress_=G||0};
_.uS=function(O,m){O.catchAddress_=m||0;m=O.abruptCompletion_.exception;O.abruptCompletion_=null;return m};
_.f_=function(O,m,G,B){B?O.finallyContexts_[B]=O.abruptCompletion_:O.finallyContexts_=[O.abruptCompletion_];O.catchAddress_=m||0;O.finallyAddress_=G||0};
_.T9=function(O,m,G){G=O.finallyContexts_.splice(G||0)[0];(G=O.abruptCompletion_=O.abruptCompletion_||G)?G.isException?O.nextAddress=O.catchAddress_||O.finallyAddress_:G.jumpTo!=void 0&&O.finallyAddress_<G.jumpTo?(O.nextAddress=G.jumpTo,O.abruptCompletion_=null):O.nextAddress=O.finallyAddress_:O.nextAddress=m};
eYp=function(O){this.JSC$8728_context_=new Og;this.program_=O};
sBs=function(O,m){d7s(O.JSC$8728_context_);var G=O.JSC$8728_context_.yieldAllIterator_;if(G)return D7p(O,"return"in G?G["return"]:function(B){return{value:B,done:!0}},m,O.JSC$8728_context_.return);
O.JSC$8728_context_.return(m);return m0(O)};
D7p=function(O,m,G,B){try{var Q=m.call(O.JSC$8728_context_.yieldAllIterator_,G);if(!(Q instanceof Object))throw new TypeError("h`"+Q);if(!Q.done)return O.JSC$8728_context_.isRunning_=!1,Q;var H=Q.value}catch(M){return O.JSC$8728_context_.yieldAllIterator_=null,wWf(O.JSC$8728_context_,M),m0(O)}O.JSC$8728_context_.yieldAllIterator_=null;B.call(O.JSC$8728_context_,H);return m0(O)};
m0=function(O){for(;O.JSC$8728_context_.nextAddress;)try{var m=O.program_(O.JSC$8728_context_);if(m)return O.JSC$8728_context_.isRunning_=!1,{value:m.value,done:!1}}catch(G){O.JSC$8728_context_.yieldResult=void 0,wWf(O.JSC$8728_context_,G)}O.JSC$8728_context_.isRunning_=!1;if(O.JSC$8728_context_.abruptCompletion_){m=O.JSC$8728_context_.abruptCompletion_;O.JSC$8728_context_.abruptCompletion_=null;if(m.isException)throw m.exception;return{value:m.return,done:!0}}return{value:void 0,done:!0}};
NVp=function(O){this.next=function(m){d7s(O.JSC$8728_context_);O.JSC$8728_context_.yieldAllIterator_?m=D7p(O,O.JSC$8728_context_.yieldAllIterator_.next,m,O.JSC$8728_context_.JSC$8723_next_):(O.JSC$8728_context_.JSC$8723_next_(m),m=m0(O));return m};
this.throw=function(m){d7s(O.JSC$8728_context_);O.JSC$8728_context_.yieldAllIterator_?m=D7p(O,O.JSC$8728_context_.yieldAllIterator_["throw"],m,O.JSC$8728_context_.JSC$8723_next_):(wWf(O.JSC$8728_context_,m),m=m0(O));return m};
this.return=function(m){return sBs(O,m)};
this[Symbol.iterator]=function(){return this}};
_.R6=function(O,m){m=new NVp(new eYp(m));NX&&O.prototype&&NX(m,O.prototype);return m};
PMf=function(O){function m(B){return O.next(B)}
function G(B){return O.throw(B)}
return new Promise(function(B,Q){function H(M){M.done?B(M.value):Promise.resolve(M.value).then(m,G).then(H,Q)}
H(O.next())})};
_.r=function(O){return PMf(new NVp(new eYp(O)))};
_.XP=function(O){var m=O[Symbol.asyncIterator];return m!==void 0?m.call(O):new FBr(_.K(O))};
FBr=function(O){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return O};
this.next=function(m){return Promise.resolve(O.next(m))};
this["throw"]=function(m){return new Promise(function(G,B){var Q=O["throw"];Q!==void 0?G(Q.call(O,m)):(G=O["return"],G!==void 0&&G.call(O),B(new TypeError("j")))})};
O["return"]!==void 0&&(this["return"]=function(m){return Promise.resolve(O["return"](m))})};
_.eA=function(){for(var O=Number(this),m=[],G=O;G<arguments.length;G++)m[G-O]=arguments[G];return m};
_.iW=function(O){return O};
sQ("globalThis",function(O){return O||_.vr});
sQ("Reflect",function(O){return O?O:{}});
sQ("Reflect.construct",function(){return oqp});
sQ("Reflect.setPrototypeOf",function(O){return O?O:NX?function(m,G){try{return NX(m,G),!0}catch(B){return!1}}:null});
sQ("Promise",function(O){function m(){this.batch_=null}
function G(M){return M instanceof Q?M:new Q(function(R){R(M)})}
if(O&&(typeof _.vr.PromiseRejectionEvent!=="undefined"||!_.vr.Promise||_.vr.Promise.toString().indexOf("[native code]")===-1))return O;m.prototype.asyncExecute=function(M){if(this.batch_==null){this.batch_=[];var R=this;this.asyncExecuteFunction(function(){R.executeBatch_()})}this.batch_.push(M)};
var B=_.vr.setTimeout;m.prototype.asyncExecuteFunction=function(M){B(M,0)};
m.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var M=this.batch_;this.batch_=[];for(var R=0;R<M.length;++R){var x=M[R];M[R]=null;try{x()}catch(t){this.asyncThrow_(t)}}}this.batch_=null};
m.prototype.asyncThrow_=function(M){this.asyncExecuteFunction(function(){throw M;})};
var Q=function(M){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var R=this.createResolveAndReject_();try{M(R.resolve,R.reject)}catch(x){R.reject(x)}};
Q.prototype.createResolveAndReject_=function(){function M(t){return function(W){x||(x=!0,t.call(R,W))}}
var R=this,x=!1;return{resolve:M(this.resolveTo_),reject:M(this.JSC$8756_reject_)}};
Q.prototype.resolveTo_=function(M){if(M===this)this.JSC$8756_reject_(new TypeError("n"));else if(M instanceof Q)this.settleSameAsPromise_(M);else{a:switch(typeof M){case "object":var R=M!=null;break a;case "function":R=!0;break a;default:R=!1}R?this.resolveToNonPromiseObj_(M):this.fulfill_(M)}};
Q.prototype.resolveToNonPromiseObj_=function(M){var R=void 0;try{R=M.then}catch(x){this.JSC$8756_reject_(x);return}typeof R=="function"?this.settleSameAsThenable_(R,M):this.fulfill_(M)};
Q.prototype.JSC$8756_reject_=function(M){this.settle_(2,M)};
Q.prototype.fulfill_=function(M){this.settle_(1,M)};
Q.prototype.settle_=function(M,R){if(this.state_!=0)throw Error("o`"+M+"`"+R+"`"+this.state_);this.state_=M;this.result_=R;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
Q.prototype.scheduleUnhandledRejectionCheck_=function(){var M=this;B(function(){if(M.notifyUnhandledRejection_()){var R=_.vr.console;typeof R!=="undefined"&&R.error(M.result_)}},1)};
Q.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var M=_.vr.CustomEvent,R=_.vr.Event,x=_.vr.dispatchEvent;if(typeof x==="undefined")return!0;typeof M==="function"?M=new M("unhandledrejection",{cancelable:!0}):typeof R==="function"?M=new R("unhandledrejection",{cancelable:!0}):(M=_.vr.document.createEvent("CustomEvent"),M.initCustomEvent("unhandledrejection",!1,!0,M));M.promise=this;M.reason=this.result_;return x(M)};
Q.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var M=0;M<this.onSettledCallbacks_.length;++M)H.asyncExecute(this.onSettledCallbacks_[M]);this.onSettledCallbacks_=null}};
var H=new m;Q.prototype.settleSameAsPromise_=function(M){var R=this.createResolveAndReject_();M.callWhenSettled_(R.resolve,R.reject)};
Q.prototype.settleSameAsThenable_=function(M,R){var x=this.createResolveAndReject_();try{M.call(R,x.resolve,x.reject)}catch(t){x.reject(t)}};
Q.prototype.then=function(M,R){function x(z,J){return typeof z=="function"?function(n){try{t(z(n))}catch(I){W(I)}}:J}
var t,W,Z=new Q(function(z,J){t=z;W=J});
this.callWhenSettled_(x(M,t),x(R,W));return Z};
Q.prototype.catch=function(M){return this.then(void 0,M)};
Q.prototype.callWhenSettled_=function(M,R){function x(){switch(t.state_){case 1:M(t.result_);break;case 2:R(t.result_);break;default:throw Error("p`"+t.state_);}}
var t=this;this.onSettledCallbacks_==null?H.asyncExecute(x):this.onSettledCallbacks_.push(x);this.isRejectionHandled_=!0};
Q.resolve=G;Q.reject=function(M){return new Q(function(R,x){x(M)})};
Q.race=function(M){return new Q(function(R,x){for(var t=_.K(M),W=t.next();!W.done;W=t.next())G(W.value).callWhenSettled_(R,x)})};
Q.all=function(M){var R=_.K(M),x=R.next();return x.done?G([]):new Q(function(t,W){function Z(n){return function(I){z[n]=I;J--;J==0&&t(z)}}
var z=[],J=0;do z.push(void 0),J++,G(x.value).callWhenSettled_(Z(z.length-1),W),x=R.next();while(!x.done)})};
return Q});
var Gi=function(O,m,G){if(O==null)throw new TypeError("q`"+G);if(m instanceof RegExp)throw new TypeError("r`"+G);return O+""};
sQ("String.prototype.startsWith",function(O){return O?O:function(m,G){var B=Gi(this,m,"startsWith"),Q=B.length,H=m.length;G=Math.max(0,Math.min(G|0,B.length));for(var M=0;M<H&&G<Q;)if(B[G++]!=m[M++])return!1;return M>=H}});
sQ("Object.setPrototypeOf",function(O){return O||NX});
sQ("Symbol.dispose",function(O){return O?O:Symbol("s")});
sQ("SuppressedError",function(O){function m(G,B,Q){if(!(this instanceof m))return new m(G,B,Q);Q=Error(Q);"stack"in Q&&(this.stack=Q.stack);this.message=Q.message;this.error=G;this.suppressed=B}
if(O)return O;_.X(m,Error);m.prototype.name="SuppressedError";return m});
var Ab5=function(O,m,G){O instanceof String&&(O=String(O));for(var B=O.length,Q=0;Q<B;Q++){var H=O[Q];if(m.call(G,H,Q,O))return{i:Q,v:H}}return{i:-1,v:void 0}};
sQ("Array.prototype.find",function(O){return O?O:function(m,G){return Ab5(this,m,G).v}});
sQ("WeakMap",function(O){function m(){}
function G(x){var t=typeof x;return t==="object"&&x!==null||t==="function"}
function B(x){if(!A8(x,H)){var t=new m;SP6(x,H,{value:t})}}
function Q(x){var t=Object[x];t&&(Object[x]=function(W){if(W instanceof m)return W;Object.isExtensible(W)&&B(W);return t(W)})}
if(function(){if(!O||!Object.seal)return!1;try{var x=Object.seal({}),t=Object.seal({}),W=new O([[x,2],[t,3]]);if(W.get(x)!=2||W.get(t)!=3)return!1;W.delete(x);W.set(t,4);return!W.has(x)&&W.get(t)==4}catch(Z){return!1}}())return O;
var H="$jscomp_hidden_"+Math.random();Q("freeze");Q("preventExtensions");Q("seal");var M=0,R=function(x){this.JSC$8763_id_=(M+=Math.random()+1).toString();if(x){x=_.K(x);for(var t;!(t=x.next()).done;)t=t.value,this.set(t[0],t[1])}};
R.prototype.set=function(x,t){if(!G(x))throw Error("t");B(x);if(!A8(x,H))throw Error("u`"+x);x[H][this.JSC$8763_id_]=t;return this};
R.prototype.get=function(x){return G(x)&&A8(x,H)?x[H][this.JSC$8763_id_]:void 0};
R.prototype.has=function(x){return G(x)&&A8(x,H)&&A8(x[H],this.JSC$8763_id_)};
R.prototype.delete=function(x){return G(x)&&A8(x,H)&&A8(x[H],this.JSC$8763_id_)?delete x[H][this.JSC$8763_id_]:!1};
return R});
sQ("Map",function(O){if(function(){if(!O||typeof O!="function"||!O.prototype.entries||typeof Object.seal!="function")return!1;try{var R=Object.seal({x:4}),x=new O(_.K([[R,"s"]]));if(x.get(R)!="s"||x.size!=1||x.get({x:4})||x.set({x:4},"t")!=x||x.size!=2)return!1;var t=x.entries(),W=t.next();if(W.done||W.value[0]!=R||W.value[1]!="s")return!1;W=t.next();return W.done||W.value[0].x!=4||W.value[1]!="t"||!t.next().done?!1:!0}catch(Z){return!1}}())return O;
var m=new WeakMap,G=function(R){this[0]={};this[1]=H();this.size=0;if(R){R=_.K(R);for(var x;!(x=R.next()).done;)x=x.value,this.set(x[0],x[1])}};
G.prototype.set=function(R,x){R=R===0?0:R;var t=B(this,R);t.list||(t.list=this[0][t.id]=[]);t.entry?t.entry.value=x:(t.entry={next:this[1],previous:this[1].previous,head:this[1],key:R,value:x},t.list.push(t.entry),this[1].previous.next=t.entry,this[1].previous=t.entry,this.size++);return this};
G.prototype.delete=function(R){R=B(this,R);return R.entry&&R.list?(R.list.splice(R.index,1),R.list.length||delete this[0][R.id],R.entry.previous.next=R.entry.next,R.entry.next.previous=R.entry.previous,R.entry.head=null,this.size--,!0):!1};
G.prototype.clear=function(){this[0]={};this[1]=this[1].previous=H();this.size=0};
G.prototype.has=function(R){return!!B(this,R).entry};
G.prototype.get=function(R){return(R=B(this,R).entry)&&R.value};
G.prototype.entries=function(){return Q(this,function(R){return[R.key,R.value]})};
G.prototype.keys=function(){return Q(this,function(R){return R.key})};
G.prototype.values=function(){return Q(this,function(R){return R.value})};
G.prototype.forEach=function(R,x){for(var t=this.entries(),W;!(W=t.next()).done;)W=W.value,R.call(x,W[1],W[0],this)};
G.prototype[Symbol.iterator]=G.prototype.entries;var B=function(R,x){var t=x&&typeof x;t=="object"||t=="function"?m.has(x)?t=m.get(x):(t=""+ ++M,m.set(x,t)):t="p_"+x;var W=R[0][t];if(W&&A8(R[0],t))for(R=0;R<W.length;R++){var Z=W[R];if(x!==x&&Z.key!==Z.key||x===Z.key)return{id:t,list:W,index:R,entry:Z}}return{id:t,list:W,index:-1,entry:void 0}},Q=function(R,x){var t=R[1];
return LBr(function(){if(t){for(;t.head!=R[1];)t=t.previous;for(;t.next!=t.head;)return t=t.next,{done:!1,value:x(t)};t=null}return{done:!0,value:void 0}})},H=function(){var R={};
return R.previous=R.next=R.head=R},M=0;
return G});
sQ("Set",function(O){if(function(){if(!O||typeof O!="function"||!O.prototype.entries||typeof Object.seal!="function")return!1;try{var G=Object.seal({x:4}),B=new O(_.K([G]));if(!B.has(G)||B.size!=1||B.add(G)!=B||B.size!=1||B.add({x:4})!=B||B.size!=2)return!1;var Q=B.entries(),H=Q.next();if(H.done||H.value[0]!=G||H.value[1]!=G)return!1;H=Q.next();return H.done||H.value[0]==G||H.value[0].x!=4||H.value[1]!=H.value[0]?!1:Q.next().done}catch(M){return!1}}())return O;
var m=function(G){this.JSC$8777_map_=new Map;if(G){G=_.K(G);for(var B;!(B=G.next()).done;)this.add(B.value)}this.size=this.JSC$8777_map_.size};
m.prototype.add=function(G){G=G===0?0:G;this.JSC$8777_map_.set(G,G);this.size=this.JSC$8777_map_.size;return this};
m.prototype.delete=function(G){G=this.JSC$8777_map_.delete(G);this.size=this.JSC$8777_map_.size;return G};
m.prototype.clear=function(){this.JSC$8777_map_.clear();this.size=0};
m.prototype.has=function(G){return this.JSC$8777_map_.has(G)};
m.prototype.entries=function(){return this.JSC$8777_map_.entries()};
m.prototype.values=function(){return this.JSC$8777_map_.values()};
m.prototype.keys=m.prototype.values;m.prototype[Symbol.iterator]=m.prototype.values;m.prototype.forEach=function(G,B){var Q=this;this.JSC$8777_map_.forEach(function(H){return G.call(B,H,H,Q)})};
return m});
sQ("Math.log2",function(O){return O?O:function(m){return Math.log(m)/Math.LN2}});
sQ("Object.values",function(O){return O?O:function(m){var G=[],B;for(B in m)A8(m,B)&&G.push(m[B]);return G}});
sQ("Object.is",function(O){return O?O:function(m,G){return m===G?m!==0||1/m===1/G:m!==m&&G!==G}});
sQ("Array.prototype.includes",function(O){return O?O:function(m,G){var B=this;B instanceof String&&(B=String(B));var Q=B.length;G=G||0;for(G<0&&(G=Math.max(G+Q,0));G<Q;G++){var H=B[G];if(H===m||Object.is(H,m))return!0}return!1}});
sQ("String.prototype.includes",function(O){return O?O:function(m,G){return Gi(this,m,"includes").indexOf(m,G||0)!==-1}});
sQ("Array.from",function(O){return O?O:function(m,G,B){G=G!=null?G:function(R){return R};
var Q=[],H=typeof Symbol!="undefined"&&Symbol.iterator&&m[Symbol.iterator];if(typeof H=="function"){m=H.call(m);for(var M=0;!(H=m.next()).done;)Q.push(G.call(B,H.value,M++))}else for(H=m.length,M=0;M<H;M++)Q.push(G.call(B,m[M],M));return Q}});
sQ("Object.entries",function(O){return O?O:function(m){var G=[],B;for(B in m)A8(m,B)&&G.push([B,m[B]]);return G}});
sQ("Number.isFinite",function(O){return O?O:function(m){return typeof m!=="number"?!1:!isNaN(m)&&m!==Infinity&&m!==-Infinity}});
sQ("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
sQ("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
sQ("Number.isInteger",function(O){return O?O:function(m){return Number.isFinite(m)?m===Math.floor(m):!1}});
sQ("Number.isSafeInteger",function(O){return O?O:function(m){return Number.isInteger(m)&&Math.abs(m)<=Number.MAX_SAFE_INTEGER}});
sQ("String.prototype.endsWith",function(O){return O?O:function(m,G){var B=Gi(this,m,"endsWith");G===void 0&&(G=B.length);G=Math.max(0,Math.min(G|0,B.length));for(var Q=m.length;Q>0&&G>0;)if(B[--G]!=m[--Q])return!1;return Q<=0}});
var OuN=function(O,m){O instanceof String&&(O+="");var G=0,B=!1,Q={next:function(){if(!B&&G<O.length){var H=G++;return{value:m(H,O[H]),done:!1}}B=!0;return{done:!0,value:void 0}}};
Q[Symbol.iterator]=function(){return Q};
return Q};
sQ("Array.prototype.entries",function(O){return O?O:function(){return OuN(this,function(m,G){return[m,G]})}});
sQ("Math.trunc",function(O){return O?O:function(m){m=Number(m);if(isNaN(m)||m===Infinity||m===-Infinity||m===0)return m;var G=Math.floor(Math.abs(m));return m<0?-G:G}});
sQ("Number.isNaN",function(O){return O?O:function(m){return typeof m==="number"&&isNaN(m)}});
sQ("Array.prototype.keys",function(O){return O?O:function(){return OuN(this,function(m){return m})}});
sQ("Array.prototype.values",function(O){return O?O:function(){return OuN(this,function(m,G){return G})}});
sQ("Array.prototype.fill",function(O){return O?O:function(m,G,B){var Q=this.length||0;G<0&&(G=Math.max(0,Q+G));if(B==null||B>Q)B=Q;B=Number(B);B<0&&(B=Math.max(0,Q+B));for(G=Number(G||0);G<B;G++)this[G]=m;return this}});
var Bp=function(O){return O?O:Array.prototype.fill};
sQ("Int8Array.prototype.fill",Bp);sQ("Uint8Array.prototype.fill",Bp);sQ("Uint8ClampedArray.prototype.fill",Bp);sQ("Int16Array.prototype.fill",Bp);sQ("Uint16Array.prototype.fill",Bp);sQ("Int32Array.prototype.fill",Bp);sQ("Uint32Array.prototype.fill",Bp);sQ("Float32Array.prototype.fill",Bp);sQ("Float64Array.prototype.fill",Bp);
sQ("Object.fromEntries",function(O){return O?O:function(m){var G={};if(!(Symbol.iterator in m))throw new TypeError("v`"+m);m=m[Symbol.iterator].call(m);for(var B=m.next();!B.done;B=m.next()){B=B.value;if(Object(B)!==B)throw new TypeError("w");G[B[0]]=B[1]}return G}});
sQ("String.prototype.replaceAll",function(O){return O?O:function(m,G){if(m instanceof RegExp&&!m.global)throw new TypeError("x");return m instanceof RegExp?this.replace(m,G):this.replace(new RegExp(String(m).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),G)}});
sQ("Object.getOwnPropertySymbols",function(O){return O?O:function(){return[]}});
sQ("String.prototype.repeat",function(O){return O?O:function(m){var G=Gi(this,null,"repeat");if(m<0||m>1342177279)throw new RangeError("y");m|=0;for(var B="";m;)if(m&1&&(B+=G),m>>>=1)G+=G;return B}});
sQ("Array.prototype.findIndex",function(O){return O?O:function(m,G){return Ab5(this,m,G).i}});
sQ("Array.prototype.flatMap",function(O){return O?O:function(m,G){var B=[];Array.prototype.forEach.call(this,function(Q,H){Q=m.call(G,Q,H,this);Array.isArray(Q)?B.push.apply(B,Q):B.push(Q)});
return B}});
sQ("String.prototype.codePointAt",function(O){return O?O:function(m){var G=Gi(this,null,"codePointAt"),B=G.length;m=Number(m)||0;if(m>=0&&m<B){m|=0;var Q=G.charCodeAt(m);if(Q<55296||Q>56319||m+1===B)return Q;m=G.charCodeAt(m+1);return m<56320||m>57343?Q:(Q-55296)*1024+m+9216}}});
sQ("String.fromCodePoint",function(O){return O?O:function(m){for(var G="",B=0;B<arguments.length;B++){var Q=Number(arguments[B]);if(Q<0||Q>1114111||Q!==Math.floor(Q))throw new RangeError("z`"+Q);Q<=65535?G+=String.fromCharCode(Q):(Q-=65536,G+=String.fromCharCode(Q>>>10&1023|55296),G+=String.fromCharCode(Q&1023|56320))}return G}});
sQ("String.prototype.trimLeft",function(O){function m(){return this.replace(/^[\s\xa0]+/,"")}
return O||m});
sQ("String.prototype.trimStart",function(O){return O||String.prototype.trimLeft});
sQ("String.prototype.padStart",function(O){return O?O:function(m,G){var B=Gi(this,null,"padStart");m-=B.length;G=G!==void 0?String(G):" ";return(m>0&&G?G.repeat(Math.ceil(m/G.length)).substring(0,m):"")+B}});
sQ("Promise.prototype.finally",function(O){return O?O:function(m){return this.then(function(G){return Promise.resolve(m()).then(function(){return G})},function(G){return Promise.resolve(m()).then(function(){throw G;
})})}});
sQ("Math.imul",function(O){return O?O:function(m,G){m=Number(m);G=Number(G);var B=m&65535,Q=G&65535;return B*Q+((m>>>16&65535)*Q+B*(G>>>16&65535)<<16>>>0)|0}});
sQ("Object.hasOwn",function(O){return O?O:function(m,G){return Object.prototype.hasOwnProperty.call(m,G)}});
sQ("Math.sign",function(O){return O?O:function(m){m=Number(m);return m===0||isNaN(m)?m:m>0?1:-1}});
sQ("Array.prototype.flat",function(O){return O?O:function(m){m=m===void 0?1:m;var G=[];Array.prototype.forEach.call(this,function(B){Array.isArray(B)&&m>0?(B=Array.prototype.flat.call(B,m-1),G.push.apply(G,B)):G.push(B)});
return G}});
sQ("String.raw",function(O){return O?O:function(m,G){m=cbM(m);for(var B=m.raw,Q=B.length,H="",M=0;M<Q;++M)H+=B[M],M+1<Q&&M+1<arguments.length&&(H+=String(arguments[M+1]));return H}});
sQ("Reflect.ownKeys",function(O){return O?O:function(m){var G=[],B=Object.getOwnPropertyNames(m);m=Object.getOwnPropertySymbols(m);for(var Q=0;Q<B.length;Q++)(B[Q].substring(0,14)=="jscomp_symbol_"?m:G).push(B[Q]);return G.concat(m)}});
sQ("Object.getOwnPropertyDescriptors",function(O){return O?O:function(m){for(var G={},B=Reflect.ownKeys(m),Q=0;Q<B.length;Q++)G[B[Q]]=Object.getOwnPropertyDescriptor(m,B[Q]);return G}});
sQ("WeakSet",function(O){if(function(){if(!O||!Object.seal)return!1;try{var G=Object.seal({}),B=Object.seal({}),Q=new O([G]);if(!Q.has(G)||Q.has(B))return!1;Q.delete(G);Q.add(B);return!Q.has(G)&&Q.has(B)}catch(H){return!1}}())return O;
var m=function(G){this.JSC$8790_map_=new WeakMap;if(G){G=_.K(G);for(var B;!(B=G.next()).done;)this.add(B.value)}};
m.prototype.add=function(G){this.JSC$8790_map_.set(G,!0);return this};
m.prototype.has=function(G){return this.JSC$8790_map_.has(G)};
m.prototype.delete=function(G){return this.JSC$8790_map_.delete(G)};
return m});
sQ("Promise.allSettled",function(O){function m(B){return{status:"fulfilled",value:B}}
function G(B){return{status:"rejected",reason:B}}
return O?O:function(B){var Q=this;B=Array.from(B,function(H){return Q.resolve(H).then(m,G)});
return Q.all(B)}});
sQ("Number.parseInt",function(O){return O||parseInt});
_._DumpException=window._DumpException||function(O){throw O;};
window._DumpException=_._DumpException;var mts=window.ytcsi;mts&&typeof mts.tick==="function"&&mts.tick("rses_dpj");var GlN,Qo,Hp,vp,Bzz,Qm6,HuY,v_p,go,Kuf;GlN=GlN||{};_.Qf=this||self;_.HI=function(O,m,G){O=O.split(".");G=G||_.Qf;for(var B;O.length&&(B=O.shift());)O.length||m===void 0?G[B]&&G[B]!==Object.prototype[B]?G=G[B]:G=G[B]={}:G[B]=m};
Qo=function(O,m){var G=_.ex("WIZ_global_data.oxN3nb");O=G&&G[O];return O!=null?O:m};
Hp=_.Qf._F_toggles_default_kevlar_base||[];vp=function(){};
vp.get=function(){return null};
_.lLI=null;_.ex=function(O,m){O=O.split(".");m=m||_.Qf;for(var G=0;G<O.length;G++)if(m=m[O[G]],m==null)return null;return m};
_.Kq=function(O){O.instance_=void 0;O.getInstance=function(){return O.instance_?O.instance_:O.instance_=new O}};
_.Ne=function(O){var m=typeof O;return m!="object"?m:O?Array.isArray(O)?"array":m:"null"};
_.YO=function(O){var m=_.Ne(O);return m=="array"||m=="object"&&typeof O.length=="number"};
_.Dp=function(O){var m=typeof O;return m=="object"&&O!=null||m=="function"};
_.sS=function(O){return Object.prototype.hasOwnProperty.call(O,Bzz)&&O[Bzz]||(O[Bzz]=++Qm6)};
Bzz="closure_uid_"+(Math.random()*1E9>>>0);Qm6=0;HuY=function(O,m,G){return O.call.apply(O.bind,arguments)};
v_p=function(O,m,G){if(!O)throw Error();if(arguments.length>2){var B=Array.prototype.slice.call(arguments,2);return function(){var Q=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Q,B);return O.apply(m,Q)}}return function(){return O.apply(m,arguments)}};
_.pd=function(O,m,G){_.pd=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?HuY:v_p;return _.pd.apply(null,arguments)};
_.hK=function(O,m){var G=Array.prototype.slice.call(arguments,1);return function(){var B=G.slice();B.push.apply(B,arguments);return O.apply(this,B)}};
_.$F=function(){return Date.now()};
go=function(O){return O};
_.MQ=function(O,m){function G(){}
G.prototype=m.prototype;O.superClass_=m.prototype;O.prototype=new G;O.prototype.constructor=O;O.base=function(B,Q,H){for(var M=Array(arguments.length-2),R=2;R<arguments.length;R++)M[R-2]=arguments[R];return m.prototype[Q].apply(B,M)}};
Kuf=function(O){return O};var $t6,MWS;_.c=function(O,m,G,B){var Q=arguments.length,H=Q<3?m:B===null?B=Object.getOwnPropertyDescriptor(m,G):B,M;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")H=Reflect.decorate(O,m,G,B);else for(var R=O.length-1;R>=0;R--)if(M=O[R])H=(Q<3?M(H):Q>3?M(m,G,H):M(m,G))||H;Q>3&&H&&Object.defineProperty(m,G,H)};
_.Y=function(O,m){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(O,m)};
$t6=function(O,m){if(m!==null&&m!==void 0){if(typeof m!=="object"&&typeof m!=="function")throw new TypeError("A");if(G===void 0){if(!Symbol.dispose)throw new TypeError("C");var G=m[Symbol.dispose]}if(typeof G!=="function")throw new TypeError("D");O.stack.push({value:m,dispose:G,async:!1})}return m};
MWS=function(O){function m(H){O.error=O.hasError?new SuppressedError(H,O.error,"An error was suppressed during disposal."):H;O.hasError=!0}
function G(){for(;B=O.stack.pop();)try{if(!B.async&&Q===1)return Q=0,O.stack.push(B),Promise.resolve().then(G);if(B.dispose){var H=B.dispose.call(B.value);if(B.async)return Q|=2,Promise.resolve(H).then(G,function(M){m(M);return G()})}else Q|=1}catch(M){m(M)}if(Q===1)return O.hasError?Promise.reject(O.error):Promise.resolve();
if(O.hasError)throw O.error;}
var B,Q=0;G()};_.MQ(_.GY,Error);_.GY.prototype.name="CustomError";var rUs;var Rmf=void 0,iuY,xt6=typeof TextDecoder!=="undefined",BNY,GYp=typeof String.prototype.isWellFormed==="function",mpf=typeof TextEncoder!=="undefined";var qT5;_.je=function(O){for(var m=[],G=0,B=0;B<O.length;B++){var Q=O.charCodeAt(B);Q<128?m[G++]=Q:(Q<2048?m[G++]=Q>>6|192:((Q&64512)==55296&&B+1<O.length&&(O.charCodeAt(B+1)&64512)==56320?(Q=65536+((Q&1023)<<10)+(O.charCodeAt(++B)&1023),m[G++]=Q>>18|240,m[G++]=Q>>12&63|128):m[G++]=Q>>12|224,m[G++]=Q>>6&63|128),m[G++]=Q&63|128)}return m};
qT5=function(O){for(var m=[],G=0,B=0;G<O.length;){var Q=O[G++];if(Q<128)m[B++]=String.fromCharCode(Q);else if(Q>191&&Q<224){var H=O[G++];m[B++]=String.fromCharCode((Q&31)<<6|H&63)}else if(Q>239&&Q<365){H=O[G++];var M=O[G++],R=O[G++];Q=((Q&7)<<18|(H&63)<<12|(M&63)<<6|R&63)-65536;m[B++]=String.fromCharCode(55296+(Q>>10));m[B++]=String.fromCharCode(56320+(Q&1023))}else H=O[G++],M=O[G++],m[B++]=String.fromCharCode((Q&15)<<12|(H&63)<<6|M&63)}return m.join("")};var tz=String.prototype.trim?function(O){return O.trim()}:function(O){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(O)[1]},Ut6=/&/g,tWS=/</g,WuM=/>/g,ZuN=/"/g,zmN=/'/g,JU6=/\x00/g,VWs=/[\x00&<>"']/;var r7=!!(Hp[0]>>15&1),buf=!!(Hp[0]&1024),n_f=!!(Hp[0]>>16&1),X9r=!!(Hp[0]&8),fCS=!!(Hp[0]&2),hm5=!!(Hp[0]&4),TzN=!!(Hp[0]&16),g_I=!!(Hp[0]&128);var ule=Qo(1,!0),Jz=r7?n_f:Qo(610401301,!1),jmI=r7?X9r:Qo(772657768,!1),ICI=r7?fCS:Qo(513659523,!1),p9s=r7?buf||!hm5:Qo(568333945,!0),ABY=r7?TzN:Qo(1331761403,!1),iB5=r7?buf||!g_I:Qo(748402147,ule);var bs,STN=_.Qf.navigator;bs=STN?STN.userAgentData||null:null;var Av;_.ae=function(O,m){return Array.prototype.indexOf.call(O,m,void 0)};
_.Nr=function(O,m,G){Array.prototype.forEach.call(O,m,G)};
_.RE=function(O,m,G){return Array.prototype.filter.call(O,m,G)};
_.k6=function(O,m,G){return Array.prototype.map.call(O,m,G)};
Av=function(O,m,G){return Array.prototype.some.call(O,m,G)};
_.j0s=function(O,m,G){return Array.prototype.every.call(O,m,G)};var ig=function(O){ig[" "](O);return O};
ig[" "]=function(){};
var n6I=function(O,m){try{return ig(O[m]),!0}catch(G){}return!1},tae=function(O,m,G,B){B=B?B(m):m;
return Object.prototype.hasOwnProperty.call(O,B)?O[B]:O[B]=G(m)};var E_r,BI,Lup,CIM,lCr,aCf,bUr,klY,yUY,cUY,jJM,dtp,w9f,NzN,PIe,Fu6;_.uAN=function(){return _.Qf.navigator||null};
E_r=K5r();_.xF=$ps();BI=fN("Edge");Lup=BI||_.xF;_.qQ=fN("Gecko")&&!(_.qp(_.zY(),"WebKit")&&!fN("Edge"))&&!(fN("Trident")||fN("MSIE"))&&!fN("Edge");_.Ug=_.qp(_.zY(),"WebKit")&&!fN("Edge");CIM=_.Ug&&fN("Mobile");_.o_I=_.W5p();lCr=_.ZNr();aCf=(jr()?bs.platform==="Linux":fN("Linux"))||_.z6S();bUr=_.UpM();klY=tre();yUY=fN("iPad");cUY=fN("iPod");_.YTr=_.Ie();jJM=_.qp(_.zY(),"KaiOS");dtp=function(){var O=_.Qf.document;return O?O.documentMode:void 0};
a:{var em5="",Dte=function(){var O=_.zY();if(_.qQ)return/rv:([^\);]+)(\)|;)/.exec(O);if(BI)return/Edge\/([\d\.]+)/.exec(O);if(_.xF)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(O);if(_.Ug)return/WebKit\/(\S+)/.exec(O);if(E_r)return/(?:Version)[ \/]?(\S+)/.exec(O)}();
Dte&&(em5=Dte?Dte[1]:"");if(_.xF){var sms=dtp();if(sms!=null&&sms>parseFloat(em5)){w9f=String(sms);break a}}w9f=em5}NzN=w9f;PIe={};_.tw=function(O){return tae(PIe,O,function(){return _.WM(NzN,O)>=0})};
if(_.Qf.document&&_.xF){var AUO=dtp();Fu6=AUO?AUO:parseInt(NzN,10)||void 0}else Fu6=void 0;_.Ol6=Fu6;var pqN,Sr5,m6S;_.Wp=gN();pqN=tre()||fN("iPod");Sr5=fN("iPad");m6S=_.R6s();_.ZM=_.us();_.YR=_.rzS()&&!_.Ie();var GeO,zi,yYp,Icz,QLz,BpN;GeO={};zi=null;yYp=_.qQ||_.Ug||typeof _.Qf.btoa=="function";_.pB=function(O,m){m===void 0&&(m=0);BpN();m=GeO[m];for(var G=Array(Math.floor(O.length/3)),B=m[64]||"",Q=0,H=0;Q<O.length-2;Q+=3){var M=O[Q],R=O[Q+1],x=O[Q+2],t=m[M>>2];M=m[(M&3)<<4|R>>4];R=m[(R&15)<<2|x>>6];x=m[x&63];G[H++]=t+M+R+x}t=0;x=B;switch(O.length-Q){case 2:t=O[Q+1],x=m[(t&15)<<2]||B;case 1:O=O[Q],G[H]=m[O>>2]+m[(O&3)<<4|t>>4]+x+B}return G.join("")};
Icz=function(O){var m="";QLz(O,function(G){m+=String.fromCharCode(G)});
return m};
_.FWM=function(O){var m=[];QLz(O,function(G){m.push(G)});
return m};
_.Az=function(O){var m=O.length,G=m*3/4;G%3?G=Math.floor(G):_.is("=.",O[m-1])&&(G=_.is("=.",O[m-2])?G-2:G-1);var B=new Uint8Array(G),Q=0;QLz(O,function(H){B[Q++]=H});
return Q!==G?B.subarray(0,Q):B};
QLz=function(O,m){function G(x){for(;B<O.length;){var t=O.charAt(B++),W=zi[t];if(W!=null)return W;if(!_.Re(t))throw Error("H`"+t);}return x}
BpN();for(var B=0;;){var Q=G(-1),H=G(0),M=G(64),R=G(64);if(R===64&&Q===-1)break;m(Q<<2|H>>4);M!=64&&(m(H<<4&240|M>>2),R!=64&&m(M<<6&192|R))}};
BpN=function(){if(!zi){zi={};for(var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),m=["+/=","+/","-_=","-_.","-_"],G=0;G<5;G++){var B=O.concat(m[G].split(""));GeO[G]=B;for(var Q=0;Q<B.length;Q++){var H=B[Q];zi[H]===void 0&&(zi[H]=Q)}}}};var dpf=typeof Uint8Array!=="undefined",SSI=!_.xF&&typeof btoa==="function",EOI=/[-_.]/g,Ipe={"-":"+",_:"/",".":"="},Tp={};var hm,vYf;hm=function(O,m){if(m!==Tp)throw Error("J");this.JSC$8820_value_=O;if(O!=null&&O.length===0)throw Error("I");};
_.g8=function(){return Hle||(Hle=new hm(null,Tp))};
vYf=function(O){return new Uint8Array(LAM(O)||0)};
hm.prototype.isEmpty=function(){return this.JSC$8820_value_==null};
hm.prototype.sizeBytes=function(){var O=LAM(this);return O?O.length:0};
var LAM=function(O){if(Tp!==Tp)throw Error("J");var m=O.JSC$8820_value_;m==null||dpf&&m!=null&&m instanceof Uint8Array||(typeof m==="string"?m=L55(m):(_.Ne(m),m=null));return m==null?m:O.JSC$8820_value_=m},Hle;var oOs=void 0;var Hs=typeof Symbol==="function"&&typeof Symbol()==="symbol",KhO=Qu("jas",void 0,!0),psN=Qu(void 0,"0di"),B8=Qu(void 0,"1oa"),jK=Qu(void 0,Symbol()),sj5=Qu(void 0,"0ub"),P2N=Qu(void 0,"0ubs"),Z95=Qu(void 0,"0ubsb"),q9p=Qu(void 0,"0actk"),nB=Qu("m_m","messagePrototypeMarker",!0),KAp=Qu(void 0,"vps"),wsz=Qu();var kYf,aps,Dx,$6I;kYf={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};aps=Object.defineProperties;_.vs=Hs?KhO:"internalArrayState";$6I=[];$9($6I,7);Dx=Object.freeze($6I);var fB={},i2={},MMN=function(O,m,G){this.iterable=O;this.mapper=m;this.thisArg=G};
MMN.prototype.next=function(){var O=this.iterable.next();O.done||(O.value=this.mapper.call(this.thisArg,O.value));return O};
MMN.prototype[Symbol.iterator]=function(){return this};
var rAY=Object.freeze({}),Ij={};_.Ryz=E3(function(O){return O!==null&&O!==void 0});var Ps6=E3(function(O){return typeof O==="number"}),NNS=E3(function(O){return typeof O==="string"}),Az5=E3(function(O){return typeof O==="boolean"}),ilz=E3(function(O){return O!=null&&typeof O==="object"&&typeof O.then==="function"}),hJN=E3(function(O){return typeof O==="function"}),rh=E3(function(O){return!!O&&(typeof O==="object"||typeof O==="function")});var F5z=typeof _.Qf.BigInt==="function"&&typeof _.Qf.BigInt(0)==="bigint";var h_s=E3(function(O){return F5z?O>=x6S&&O<=qwN:O[0]==="-"?O$p(O,U6e):O$p(O,tMI)}),U6e=Number.MIN_SAFE_INTEGER.toString(),x6S=F5z?BigInt(Number.MIN_SAFE_INTEGER):void 0,tMI=Number.MAX_SAFE_INTEGER.toString(),qwN=F5z?BigInt(Number.MAX_SAFE_INTEGER):void 0;var WhM=typeof Uint8Array.prototype.slice==="function",C$=0,oj=0,B8p;var MJ,xh,Ps,iy,i$5;MJ=typeof BigInt==="function"?BigInt.asIntN:void 0;_.qJ=typeof BigInt==="function"?BigInt.asUintN:void 0;xh=Number.isSafeInteger;Ps=Number.isFinite;iy=Math.trunc;i$5=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var $Jz={};var cmY={},Zlz=function(){try{var O=function(){return oqp(Map,[],this.constructor)};
_.X(O,Map);ig(new O);return!1}catch(m){return!0}}(),Jw=function(){this.JSC$8839_map_=new Map};
_.v=Jw.prototype;_.v.get=function(O){return this.JSC$8839_map_.get(O)};
_.v.set=function(O,m){this.JSC$8839_map_.set(O,m);this.size=this.JSC$8839_map_.size;return this};
_.v.delete=function(O){O=this.JSC$8839_map_.delete(O);this.size=this.JSC$8839_map_.size;return O};
_.v.clear=function(){this.JSC$8839_map_.clear();this.size=this.JSC$8839_map_.size};
_.v.has=function(O){return this.JSC$8839_map_.has(O)};
_.v.entries=function(){return this.JSC$8839_map_.entries()};
_.v.keys=function(){return this.JSC$8839_map_.keys()};
_.v.values=function(){return this.JSC$8839_map_.values()};
_.v.forEach=function(O,m){return this.JSC$8839_map_.forEach(O,m)};
Jw.prototype[Symbol.iterator]=function(){return this.entries()};
var LB=function(){if(Zlz)return Object.setPrototypeOf(Jw.prototype,Map.prototype),Object.defineProperties(Jw.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Jw;var O=function(){return oqp(Map,[],this.constructor)};
_.X(O,Map);return O}(),Tu=function(O,m,G,B){G=G===void 0?o9f:G;
B=B===void 0?o9f:B;var Q=LB.call(this)||this;Q.arrayState=O[_.vs]|0;Q.valueCtor=m;Q.keyToApi=G;Q.valueToApi=Q.valueCtor?aHr:B;for(var H=0;H<O.length;H++){var M=O[H],R=G(M[0],!1,!0),x=M[1];m?x===void 0&&(x=null):x=B(M[1],!1,!0,void 0,void 0,Q.arrayState);LB.prototype.set.call(Q,R,x)}return Q};
_.X(Tu,LB);var zyp=function(O){if(O.arrayState&2)throw Error("N");},WAY=function(O){return Array.from(LB.prototype.entries.call(O))};
_.v=Tu.prototype;_.v.clear=function(){zyp(this);LB.prototype.clear.call(this)};
_.v.delete=function(O){zyp(this);return LB.prototype.delete.call(this,this.keyToApi(O,!0,!1))};
_.v.entries=function(){if(this.valueCtor){var O=LB.prototype.keys.call(this);O=new MMN(O,kpp,this)}else O=LB.prototype.entries.call(this);return O};
_.v.values=function(){if(this.valueCtor){var O=LB.prototype.keys.call(this);O=new MMN(O,Tu.prototype.get,this)}else O=LB.prototype.values.call(this);return O};
_.v.forEach=function(O,m){this.valueCtor?LB.prototype.forEach.call(this,function(G,B,Q){O.call(m,Q.get(B),B,Q)}):LB.prototype.forEach.call(this,O,m)};
_.v.set=function(O,m){zyp(this);O=this.keyToApi(O,!0,!1);return O==null?this:m==null?(LB.prototype.delete.call(this,O),this):LB.prototype.set.call(this,O,this.valueToApi(m,!0,!0,this.valueCtor,!1,this.arrayState))};
_.v.has=function(O){return LB.prototype.has.call(this,this.keyToApi(O,!1,!1))};
_.v.get=function(O){O=this.keyToApi(O,!1,!1);var m=LB.prototype.get.call(this,O);if(m!==void 0){var G=this.valueCtor;return G?(G=this.valueToApi(m,!1,!0,G,this.callToMutableOnAccess,this.arrayState),G!==m&&LB.prototype.set.call(this,O,G),G):m}};
Tu.prototype[Symbol.iterator]=function(){return this.entries()};
Tu.prototype.toJSON=void 0;var ymp;var mJY=function(){},AmN=function(O,m){for(var G in O)!isNaN(G)&&m(O,+G,O[G])},GuM=function(O){var m=new mJY;
AmN(O,function(G,B,Q){m[B]=Y9(Q)});
m.reviveUnknownFields=O.reviveUnknownFields;return m},e_S={reviveIntoImmutable:!0};var OB6;var MKf,rsS;var JAS,As,Jl,fE,VMs,g7,nE,blM,nYe,pq,XmN,SZ,Cq,oE;JAS=_.L$(0);_.Vo={};_.bg=function(O,m,G,B,Q){m=As(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m,G,Q);if(m!==null||B&&O.noLegacyNull!==i2)return m};
As=function(O,m,G,B){if(m===-1)return null;var Q=m+(G?0:-1),H=O.length-1;if(!(H<1+(G?0:-1))){if(Q>=H){var M=O[H];if(M!=null&&typeof M==="object"&&M.constructor===Object){G=M[m];var R=!0}else if(Q===H)G=M;else return}else G=O[Q];if(B&&G!=null){B=B(G);if(B==null)return B;if(!Object.is(B,G))return R?M[m]=B:O[Q]=B,B}return G}};
_.qI=function(O,m,G,B){cb(O);var Q=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;eK(Q,Q[_.vs]|0,m,G,B);return O};
_.nq=function(O,m,G){O=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return j3N(O,O[_.vs]|0,m,G)!==void 0};
_.XS=function(O,m,G,B){var Q=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return j3N(Q,Q[_.vs]|0,m,fE(O,B,G))!==void 0};
_.Rw=function(O){return O===rAY?2:4};
_.fq=function(O,m){O=_.bg(O,m,void 0,void 0,XbI);return O==null?_.g8():O};
Jl=function(O,m,G,B){cb(O);var Q=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=Q[_.vs]|0;if(B==null){var M=Toz(Q);if(ghM(M,Q,H,G)===m)M.set(G,0);else return O}else H=urf(Q,H,G,m);eK(Q,H,m,B);return O};
_.hw=function(O,m,G,B){var Q=O[_.vs]|0,H=So(Q);Q=urf(O,Q,G,m,H);eK(O,Q,m,B,H)};
fE=function(O,m,G){return _.Ti(O,m)===G?G:-1};
_.Ti=function(O,m){O=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ghM(Toz(O),O,void 0,m,void 0)};
VMs=function(O,m,G){var B=O[_.vs]|0,Q=So(B),H=As(O,G,Q);if(H!=null&&H[nB]===fB){if(!Jm(H))return yr(H),H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var M=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(H)&&(M=H);if(M){var R=M[_.vs]|0;R&2&&(M=kh(M,R))}M=a3(M,m,!0);M!==H&&eK(O,B,G,M,Q);return M};
_.RO=function(O,m,G,B){var Q=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=Q[_.vs]|0;m=j3N(Q,H,m,G,B);if(m==null)return m;H=Q[_.vs]|0;if(!Jm(O,H)){var M=lHI(m);M!==m&&(yr(O)&&(Q=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=Q[_.vs]|0),m=M,H=eK(Q,H,G,m,B),wo(Q,H))}return m};
_.r_=function(O,m,G,B){var Q=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return IxO(O,Q,Q[_.vs]|0,m,G,B,!1,!0)};
_.Tc=function(O,m,G,B){G=pb6(G);_.qI(O,m,G,B);G&&!Jm(G)&&wo(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return O};
_.g5=function(O,m,G,B){B=pb6(B);Jl(O,m,G,B);B&&!Jm(B)&&wo(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return O};
g7=function(O,m,G){cb(O);var B=O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=B[_.vs]|0;if(G==null)return eK(B,Q,m),O;for(var H=G===Dx?7:G[_.vs]|0,M=H,R=Fr(H),x=R||Object.isFrozen(G),t=!0,W=!0,Z=0;Z<G.length;Z++){var z=G[Z];R||(z=Jm(z),t&&(t=!z),W&&(W=z))}R||(H=t?13:5,H=W?H&-4097:H|4096);x&&H===M||(G=Y9(G),M=0,H=NJ(H,Q));H!==M&&$9(G,H);Q=eK(B,Q,m,G);2&H||!(4096&H||16&H)||wo(B,Q);return O};
nE=function(O,m,G,B){Eh6(O,m,G,B);return O};
blM=function(O,m,G){Eh6(O,m,ug,void 0,G,1,!0);return O};
_.jZ=function(O,m,G){O=_.bg(O,m,void 0,G);m=typeof O;O=O==null?O:m==="bigint"?_.L$((0,_.qJ)(64,O)):_.FC(O)?m==="string"?_.fHY(O):_.n9S(O):void 0;return O};
_.IE=function(O,m){var G=G===void 0?!1:G;var B;return(B=_.R_6(_.bg(O,m)))!=null?B:G};
_.ij=function(O,m,G){G=G===void 0?0:G;var B;return(B=_.Hb(_.bg(O,m)))!=null?B:G};
nYe=function(O,m){var G=G===void 0?0:G;O=_.q3M(_.bg(O,m));return O!=null?O:G};
pq=function(O,m,G){G=G===void 0?JAS:G;var B;return(B=_.uC5(_.bg(O,m)))!=null?B:G};
XmN=function(O){var m=m===void 0?JAS:m;var G;return(G=_.jZ(O,23))!=null?G:m};
SZ=function(O,m){var G=G===void 0?0:G;var B;return(B=_.bg(O,m,void 0,void 0,_.eo))!=null?B:G};
_.Eg=function(O,m,G,B){G=G===void 0?"":G;var Q;return(Q=_.by(_.bg(O,m,B)))!=null?Q:G};
_.Lq=function(O,m){var G=G===void 0?0:G;var B;return(B=_.Bb(_.bg(O,m)))!=null?B:G};
Cq=function(O,m){var G=G===void 0?"0":G;O=g9z(_.bg(O,m),!0);return O!=null?O:G};
oE=function(O,m,G){return _.Eg(O,fE(O,G,m))};
_.lg=function(O,m,G,B){return _.RO(O,m,fE(O,B,G),void 0)};
_.XK=function(O,m){return _.by(_.bg(O,m,void 0,_.Vo))};
_.tF=function(O,m,G){return _.qI(O,m,rm6(G))};
_.oq=function(O,m,G){return _.ma(O,m,rm6(G),!1)};
_.aE=function(O,m,G){return _.qI(O,m,_.Qr(G))};
_.TH=function(O,m,G){return _.qI(O,m,R3(G))};
_.SS=function(O,m,G){return _.qI(O,m,Vr(G))};
_.sp=function(O,m,G,B){return _.ma(O,m,Vr(G),"",B)};
_.xG=function(O,m,G){return _.qI(O,m,G==null?G:_.mA(G))};
_.kF=function(O,m,G){return _.ma(O,m,G==null?G:_.mA(G),0)};var QO=function(O,m,G){this.buffer=O;if(G&&!m)throw Error();this.JSC$8851_isImmutable=m};var f7s=function(O,m,G,B){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8854_start_=0;this.init(O,m,G,B)},yo,TpY,gYM,uoM,jLf,I7O,KaO,hyz;
_.v=f7s.prototype;_.v.init=function(O,m,G,B){var Q=B===void 0?{}:B;B=Q.aliasBytesFields===void 0?!1:Q.aliasBytesFields;Q=Q.treatNewDataAsImmutable===void 0?!1:Q.treatNewDataAsImmutable;this.aliasBytesFields=B;this.treatNewDataAsImmutable=Q;O&&(O=CyM(O,this.treatNewDataAsImmutable),this.bytes_=O.buffer,this.bytesAreImmutable_=O.JSC$8851_isImmutable,this.JSC$8854_start_=m||0,this.end_=G!==void 0?this.JSC$8854_start_+G:this.bytes_.length,this.cursor_=this.JSC$8854_start_)};
_.v.free=function(){this.clear();hyz.length<100&&hyz.push(this)};
_.v.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8854_start_=0;this.aliasBytesFields=!1};
_.v.reset=function(){this.cursor_=this.JSC$8854_start_};
_.v.atEnd=function(){return this.cursor_==this.end_};
_.cp=function(O,m){var G=0,B=0,Q=0,H=O.bytes_,M=O.cursor_;do{var R=H[M++];G|=(R&127)<<Q;Q+=7}while(Q<32&&R&128);if(Q>32)for(B|=(R&127)>>4,Q=3;Q<32&&R&128;Q+=7)R=H[M++],B|=(R&127)<<Q;yo(O,M);if(!(R&128))return m(G>>>0,B>>>0);throw Error();};
yo=function(O,m){O.cursor_=m;if(m>O.end_)throw Error();};
_.YF=function(O){var m=O.bytes_,G=O.cursor_,B=m[G++],Q=B&127;if(B&128&&(B=m[G++],Q|=(B&127)<<7,B&128&&(B=m[G++],Q|=(B&127)<<14,B&128&&(B=m[G++],Q|=(B&127)<<21,B&128&&(B=m[G++],Q|=B<<28,B&128&&m[G++]&128&&m[G++]&128&&m[G++]&128&&m[G++]&128&&m[G++]&128)))))throw Error();yo(O,G);return Q};
_.d7=function(O){var m=O.bytes_,G=O.cursor_,B=m[G],Q=m[G+1],H=m[G+2];m=m[G+3];yo(O,O.cursor_+4);return(B<<0|Q<<8|H<<16|m<<24)>>>0};
TpY=function(O){var m=_.d7(O);O=_.d7(O);return H$I(m,O)};
gYM=function(O){var m=_.d7(O);O=(m>>31)*2+1;var G=m>>>23&255;m&=8388607;return G==255?m?NaN:O*Infinity:G==0?O*1.401298464324817E-45*m:O*Math.pow(2,G-150)*(m+8388608)};
uoM=function(O){var m=_.d7(O),G=_.d7(O);O=(G>>31)*2+1;var B=G>>>20&2047;m=4294967296*(G&1048575)+m;return B==2047?m?NaN:O*Infinity:B==0?O*4.9E-324*m:O*Math.pow(2,B-1075)*(m+4503599627370496)};
jLf=function(O){for(var m=0,G=O.cursor_,B=G+10,Q=O.bytes_;G<B;){var H=Q[G++];m|=H;if((H&128)===0)return yo(O,G),!!(m&127)}throw Error();};
I7O=function(O,m){if(m<0)throw Error();var G=O.cursor_;m=G+m;if(m>O.end_)throw Error();O.cursor_=m;return G};
KaO=function(O,m){if(m==0)return _.g8();var G=I7O(O,m);O.aliasBytesFields&&O.bytesAreImmutable_?G=O.bytes_.subarray(G,G+m):(O=O.bytes_,m=G+m,G=G===m?new Uint8Array(0):WhM?O.slice(G,m):new Uint8Array(O.subarray(G,m)));return G.length==0?_.g8():new hm(G,Tp)};
hyz=[];var SwI=function(O,m,G,B){if(hyz.length){var Q=hyz.pop();Q.init(O,m,G,B);O=Q}else O=new f7s(O,m,G,B);this.decoder_=O;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;pmI(this,B)},pmI=function(O,m){m=m===void 0?{}:m;
O.discardUnknownFields=m.discardUnknownFields===void 0?!1:m.discardUnknownFields},rLS=function(O,m,G,B){if(EYp.length){var Q=EYp.pop();
pmI(Q,B);Q.decoder_.init(O,m,G,B);return Q}return new SwI(O,m,G,B)},QnI,v0p,w7,LhN,EYp;
SwI.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;EYp.length<100&&EYp.push(this)};
SwI.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
QnI=function(O){if(O.decoder_.atEnd())return!1;O.fieldCursor_=O.decoder_.cursor_;var m=_.YF(O.decoder_)>>>0,G=m>>>3;m&=7;if(!(m>=0&&m<=5))throw Error();if(G<1)throw Error();O.nextField_=G;O.nextWireType_=m;return!0};
v0p=function(O){switch(O.nextWireType_){case 0:O.nextWireType_!=0?v0p(O):jLf(O.decoder_);break;case 1:O=O.decoder_;yo(O,O.cursor_+8);break;case 2:if(O.nextWireType_!=2)v0p(O);else{var m=_.YF(O.decoder_)>>>0;O=O.decoder_;yo(O,O.cursor_+m)}break;case 5:O=O.decoder_;yo(O,O.cursor_+4);break;case 3:m=O.nextField_;do{if(!QnI(O))throw Error();if(O.nextWireType_==4){if(O.nextField_!=m)throw Error();break}v0p(O)}while(1);break;default:throw Error();}};
w7=function(O,m,G){var B=O.decoder_.end_,Q=_.YF(O.decoder_)>>>0;Q=O.decoder_.cursor_+Q;var H=Q-B;H<=0&&(O.decoder_.end_=Q,G(m,O,void 0,void 0,void 0),H=Q-O.decoder_.cursor_);if(H)throw Error();O.decoder_.cursor_=Q;O.decoder_.end_=B;return m};
LhN=function(O){var m=_.YF(O.decoder_)>>>0;O=O.decoder_;var G=I7O(O,m);O=O.bytes_;if(xt6){var B=O,Q;(Q=iuY)||(Q=iuY=new TextDecoder("utf-8",{fatal:!0}));m=G+m;B=G===0&&m===B.length?B:B.subarray(G,m);try{var H=Q.decode(B)}catch(t){if(Rmf===void 0){try{Q.decode(new Uint8Array([128]))}catch(W){}try{Q.decode(new Uint8Array([97])),Rmf=!0}catch(W){Rmf=!1}}!Rmf&&(iuY=void 0);throw t;}}else{H=G;m=H+m;G=[];for(var M=null,R,x;H<m;)R=O[H++],R<128?G.push(R):R<224?H>=m?BM():(x=O[H++],R<194||(x&192)!==128?(H--,
BM()):G.push((R&31)<<6|x&63)):R<240?H>=m-1?BM():(x=O[H++],(x&192)!==128||R===224&&x<160||R===237&&x>=160||((Q=O[H++])&192)!==128?(H--,BM()):G.push((R&15)<<12|(x&63)<<6|Q&63)):R<=244?H>=m-2?BM():(x=O[H++],(x&192)!==128||(R<<28)+(x-144)>>30!==0||((Q=O[H++])&192)!==128||((B=O[H++])&192)!==128?(H--,BM()):(R=(R&7)<<18|(x&63)<<12|(Q&63)<<6|B&63,R-=65536,G.push((R>>10&1023)+55296,(R&1023)+56320))):BM(),G.length>=8192&&(M=ONr(M,G),G.length=0);H=ONr(M,G)}return H};
_.Cvs=function(O){var m=_.YF(O.decoder_)>>>0;return KaO(O.decoder_,m)};
_.oY6=function(O,m,G){var B=_.YF(O.decoder_)>>>0;for(B=O.decoder_.cursor_+B;O.decoder_.cursor_<B;)G.push(m(O.decoder_))};
EYp=[];var l7N=function(O,m){this.JSC$8861_lo=O>>>0;this.JSC$8861_hi=m>>>0},a7N=function(O){O=BigInt.asUintN(64,O);
return new l7N(Number(O&BigInt(4294967295)),Number(O>>BigInt(32)))},axf=function(O){if(!O)return kes||(kes=new l7N(0,0));
if(!/^\d+$/.test(O))return null;cs(O);return new l7N(C$,oj)},kes,n0s=function(O,m){this.JSC$8863_lo=O>>>0;
this.JSC$8863_hi=m>>>0},ohY=function(O){if(!O)return yAp||(yAp=new n0s(0,0));
if(!/^-?\d+$/.test(O))return null;cs(O);return new n0s(C$,oj)},yAp;var eZ=function(){this.JSC$8865_buffer_=[]},tL,Zq,cAr;
eZ.prototype.length=function(){return this.JSC$8865_buffer_.length};
eZ.prototype.end=function(){var O=this.JSC$8865_buffer_;this.JSC$8865_buffer_=[];return O};
tL=function(O,m,G){for(;G>0||m>127;)O.JSC$8865_buffer_.push(m&127|128),m=(m>>>7|G<<25)>>>0,G>>>=7;O.JSC$8865_buffer_.push(m)};
Zq=function(O,m){for(;m>127;)O.JSC$8865_buffer_.push(m&127|128),m>>>=7;O.JSC$8865_buffer_.push(m)};
_.X8O=function(O,m){if(m>=0)Zq(O,m);else{for(var G=0;G<9;G++)O.JSC$8865_buffer_.push(m&127|128),m>>=7;O.JSC$8865_buffer_.push(1)}};
cAr=function(O,m){cs(m);v9O(function(G,B){tL(O,G>>>0,B>>>0)})};
eZ.prototype.writeUint8=function(O){this.JSC$8865_buffer_.push(O>>>0&255)};
_.Uh=function(O,m){O.JSC$8865_buffer_.push(m>>>0&255);O.JSC$8865_buffer_.push(m>>>8&255);O.JSC$8865_buffer_.push(m>>>16&255);O.JSC$8865_buffer_.push(m>>>24&255)};
eZ.prototype.writeInt8=function(O){this.JSC$8865_buffer_.push(O>>>0&255)};var Ywp,r5,hoY,uce,Y95;Ywp=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new eZ};
r5=function(O,m){m.length!==0&&(O.blocks_.push(m),O.totalLength_+=m.length)};
_.d6N=function(O,m){_.qP(O,m,2);m=O.encoder_.end();r5(O,m);m.push(O.totalLength_);return m};
_.wmN=function(O,m){var G=m.pop();for(G=O.totalLength_+O.encoder_.length()-G;G>127;)m.push(G&127|128),G>>>=7,O.totalLength_++;m.push(G);O.totalLength_++};
_.qP=function(O,m,G){Zq(O.encoder_,m*8+G)};
hoY=function(O,m,G){if(G!=null)switch(kus(G),_.qP(O,m,1),typeof G){case "number":O=O.encoder_;mer(G);_.Uh(O,C$);_.Uh(O,oj);break;case "bigint":G=a7N(G);O=O.encoder_;m=G.JSC$8861_hi;_.Uh(O,G.JSC$8861_lo);_.Uh(O,m);break;default:G=axf(G),O=O.encoder_,m=G.JSC$8861_hi,_.Uh(O,G.JSC$8861_lo),_.Uh(O,m)}};
uce=function(O,m,G){_.qP(O,m,2);Zq(O.encoder_,G.length);r5(O,O.encoder_.end());r5(O,G)};
Y95=function(O,m,G,B){G!=null&&(m=_.d6N(O,m),B(G,O),_.wmN(O,m))};var yss,eyf,D6s,sLY,Npf,Fhp,AA5,m3S,G6O;yss=H8();eyf=H8();D6s=H8();sLY=H8();Npf=H8();_.Pv6=H8();_.DM=H8();Fhp=H8();AA5=H8();_.Ooe=H8();m3S=H8();G6O=H8();_.B3s=H8();_.QY6=H8();_.MP=function(O,m,G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O,m,G)};
_.MP.prototype.toJSON=function(){return CB(this)};
_.MP.prototype.serialize=function(O){return JSON.stringify(CB(this,O))};
var lqN=function(O,m){if(m==null||m=="")return new O;m=JSON.parse(m);if(!Array.isArray(m))throw Error("V");return new O(YSY(m))};
_.MP.prototype.getExtension=function(O){N8M(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O.fieldIndex);DeY(this,O.fieldIndex);return O.ctor?O.isRepeated?O.getExtensionFn(this,O.ctor,O.fieldIndex,_.Rw(),O.JSC$8876_hasMessageId):O.getExtensionFn(this,O.ctor,O.fieldIndex,O.JSC$8876_hasMessageId):O.isRepeated?O.getExtensionFn(this,O.fieldIndex,_.Rw(),O.JSC$8876_hasMessageId):O.getExtensionFn(this,O.fieldIndex,O.defaultValue,O.JSC$8876_hasMessageId)};
_.MP.prototype.clone=function(){var O=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m=O[_.vs]|0;return Jsf(this,O,m)?z0p(this,O,!0):new this.constructor(kh(O,m,!1))};
_.MP.prototype[nB]=fB;_.MP.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var K9=function(O,m,G){this.$$binaryReaderFn=O;this.$$binaryWriterFn=m;O=go(yss);this.$$isMsg=!!O&&G===O||!1},Noe=csN(function(O,m,G,B,Q){if(O.nextWireType_!==2)return!1;
w7(O,VMs(m,B,G),Q);return!0},wb5),Pye=csN(function(O,m,G,B,Q){if(O.nextWireType_!==2)return!1;
w7(O,VMs(m,B,G),Q);return!0},wb5),i9s=Symbol(),O9f=Symbol(),B55=Symbol(),UPM=Symbol(),$PN=Symbol(),e0e,DJS;var Las,Ho5,sg,vw6,KqN,$3s,MNp,Pp,rMp,FS,Rjr,io6,x3Y,qqM,U3N,tNf,Wqs,zjp,JMO,VNM,boI;Las=function(O,m){var G=new Ywp;tAe(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G,$0(i9s,Ro5,xPO,m));r5(G,G.encoder_.end());O=new Uint8Array(G.totalLength_);m=G.blocks_;for(var B=m.length,Q=0,H=0;H<B;H++){var M=m[H];O.set(M,Q);Q+=M.length}G.blocks_=[O];return O};
Ho5=csN(function(O,m,G,B,Q){if(O.nextWireType_!==2)return!1;O=w7(O,a3([void 0,void 0],B,!0),Q);O=Y9(O);B=m[_.vs]|0;Q=So(B);if(B&2)throw Error();var H=As(m,G,Q);H instanceof Tu?(H.arrayState&2)!=0?(H=WAY(H),H.push(O),eK(m,B,G,H,Q)):(m=H,G=m.keyToApi(O[0],!1,!0),O=O[1],O=m.valueCtor?O===void 0?null:O:m.valueToApi(O,!1,!0,void 0,!1,m.arrayState),LB.prototype.set.call(m,G,O)):Array.isArray(H)?((H[_.vs]|0)&2&&(H=fxI(H),eK(m,B,G,H,Q)),H.push(O)):eK(m,B,G,[O],Q);return!0},function(O,m,G,B,Q){if(m instanceof
Tu)m.forEach(function(R,x){Y95(O,G,a3([x,
R],B,!1),Q)});
else if(Array.isArray(m))for(var H=0;H<m.length;H++){var M=m[H];Array.isArray(M)&&Y95(O,G,a3(M,B,!1),Q)}});
sg=_.iG(function(O,m,G){if(O.nextWireType_!==1)return!1;_.x0(m,G,uoM(O.decoder_));return!0},VA5,G6O);
vw6=_.iG(function(O,m,G,B){if(O.nextWireType_!==1)return!1;_.hw(m,G,B,uoM(O.decoder_));return!0},VA5,G6O);
KqN=_.iG(function(O,m,G){if(O.nextWireType_!==5)return!1;_.x0(m,G,gYM(O.decoder_));return!0},b9O,m3S);
$3s=_.JLS(function(O,m,G){if(O.nextWireType_!==5&&O.nextWireType_!==2)return!1;m=_.Gc(m,m[_.vs]|0,G);O.nextWireType_==2?_.oY6(O,gYM,m):m.push(gYM(O.decoder_));return!0},function(O,m,G){m=_.zor(_.eo,m,!0);
if(m!=null&&m.length)for(_.qP(O,G,2),Zq(O.encoder_,m.length*4),G=0;G<m.length;G++){var B=O.encoder_;QjM(m[G]);_.Uh(B,C$)}},m3S);
MNp=_.iG(function(O,m,G,B){if(O.nextWireType_!==5)return!1;_.hw(m,G,B,gYM(O.decoder_));return!0},b9O,m3S);
_.NQ=_.iG(function(O,m,G){if(O.nextWireType_!==0)return!1;_.x0(m,G,_.cp(O.decoder_,k9));return!0},_.W8,_.DM);
Pp=_.iG(function(O,m,G){if(O.nextWireType_!==0)return!1;O=_.cp(O.decoder_,k9);_.x0(m,G,O===0?void 0:O);return!0},_.W8,_.DM);
rMp=_.iG(function(O,m,G,B){if(O.nextWireType_!==0)return!1;_.hw(m,G,B,_.cp(O.decoder_,k9));return!0},_.W8,_.DM);
FS=_.iG(function(O,m,G){if(O.nextWireType_!==0)return!1;_.x0(m,G,_.cp(O.decoder_,H$I));return!0},function(O,m,G){m=IHz(m);
if(m!=null&&(kus(m),m!=null))switch(_.qP(O,G,0),typeof m){case "number":O=O.encoder_;l2(m);tL(O,C$,oj);break;case "bigint":G=a7N(m);tL(O.encoder_,G.JSC$8861_lo,G.JSC$8861_hi);break;default:G=axf(m),tL(O.encoder_,G.JSC$8861_lo,G.JSC$8861_hi)}},Fhp);
_.Aw=_.iG(function(O,m,G){if(O.nextWireType_!==0)return!1;_.x0(m,G,_.YF(O.decoder_));return!0},fqS,sLY);
Rjr=_.iG(function(O,m,G){if(O.nextWireType_!==0)return!1;O=_.YF(O.decoder_);_.x0(m,G,O===0?void 0:O);return!0},fqS,sLY);
io6=_.iG(function(O,m,G,B){if(O.nextWireType_!==0)return!1;_.hw(m,G,B,_.YF(O.decoder_));return!0},fqS,sLY);
x3Y=_.iG(function(O,m,G){if(O.nextWireType_!==1)return!1;_.x0(m,G,TpY(O.decoder_));return!0},_.T5f,_.Ooe);
qqM=_.JLS(function(O,m,G){if(O.nextWireType_!==1&&O.nextWireType_!==2)return!1;m=_.Gc(m,m[_.vs]|0,G);O.nextWireType_==2?_.oY6(O,TpY,m):m.push(TpY(O.decoder_));return!0},function(O,m,G){m=_.zor(IHz,m,!1);
if(m!=null)for(var B=0;B<m.length;B++)hoY(O,G,m[B])},_.Ooe);
_.Ob=_.iG(function(O,m,G){if(O.nextWireType_!==0)return!1;_.x0(m,G,jLf(O.decoder_));return!0},g0I,eyf);
_.mg=_.iG(function(O,m,G){if(O.nextWireType_!==0)return!1;O=jLf(O.decoder_);_.x0(m,G,O===!1?void 0:O);return!0},g0I,eyf);
U3N=_.iG(function(O,m,G,B){if(O.nextWireType_!==0)return!1;_.hw(m,G,B,jLf(O.decoder_));return!0},g0I,eyf);
_.GD=_.iG(function(O,m,G){if(O.nextWireType_!==2)return!1;_.x0(m,G,LhN(O));return!0},jnN,D6s);
_.B4=_.iG(function(O,m,G){if(O.nextWireType_!==2)return!1;O=LhN(O);_.x0(m,G,O===""?void 0:O);return!0},jnN,D6s);
_.Q7=_.iG(function(O,m,G,B){if(O.nextWireType_!==2)return!1;_.hw(m,G,B,LhN(O));return!0},jnN,D6s);
tNf=_.JLS(function(O,m,G){if(O.nextWireType_!==2)return!1;O=LhN(O);_.Gc(m,m[_.vs]|0,G).push(O);return!0},function(O,m,G){m=_.zor(_.by,m,!0);
if(m!=null)for(var B=0;B<m.length;B++){var Q=O,H=G,M=m[B];M!=null&&uce(Q,H,Qep(M))}},D6s);
Wqs=void 0;Wqs=Wqs===void 0?yss:Wqs;_.H4=new K9(function(O,m,G,B,Q){if(O.nextWireType_!==2)return!1;B=a3(void 0,B,!0);_.Gc(m,m[_.vs]|0,G).push(B);w7(O,B,Q);return!0},function(O,m,G,B,Q){if(Array.isArray(m))for(var H=0;H<m.length;H++)Iqf(O,m[H],G,B,Q)},Wqs);
_.K4=csN(function(O,m,G,B,Q,H){if(O.nextWireType_!==2)return!1;var M=m[_.vs]|0;urf(m,M,H,G,So(M));m=VMs(m,B,G);w7(O,m,Q);return!0},Iqf);
_.ZoI=_.iG(function(O,m,G){if(O.nextWireType_!==2)return!1;_.x0(m,G,_.Cvs(O));return!0},_.p8S,_.B3s);
zjp=_.iG(function(O,m,G,B){if(O.nextWireType_!==2)return!1;_.hw(m,G,B,_.Cvs(O));return!0},_.p8S,_.B3s);
JMO=_.iG(function(O,m,G){if(O.nextWireType_!==0)return!1;_.x0(m,G,_.YF(O.decoder_)>>>0);return!0},Shr,Npf);
VNM=_.iG(function(O,m,G,B){if(O.nextWireType_!==0)return!1;_.hw(m,G,B,_.YF(O.decoder_)>>>0);return!0},Shr,Npf);
_.$7=_.iG(function(O,m,G){if(O.nextWireType_!==0)return!1;_.x0(m,G,_.YF(O.decoder_));return!0},_.E0I,_.QY6);
_.M0=_.iG(function(O,m,G){if(O.nextWireType_!==0)return!1;O=_.YF(O.decoder_);_.x0(m,G,O===0?void 0:O);return!0},_.E0I,_.QY6);
boI=_.iG(function(O,m,G){if(O.nextWireType_!==0)return!1;_.x0(m,G,_.cp(O.decoder_,KUe));return!0},function(O,m,G){m=jjs(m);
if(m!=null&&(lxf(m),m!=null))switch(_.qP(O,G,0),typeof m){case "number":O=O.encoder_;G=m;m=G<0;G=Math.abs(G)*2;mer(G);G=C$;var B=oj;m&&(G==0?B==0?B=G=4294967295:(B--,G=4294967295):G--);C$=G;oj=B;tL(O,C$,oj);break;case "bigint":O=O.encoder_;m=m<<BigInt(1)^m>>BigInt(63);C$=Number(BigInt.asUintN(32,m));oj=Number(BigInt.asUintN(32,m>>BigInt(32)));tL(O,C$,oj);break;default:cAr(O.encoder_,m)}},AA5);var fE5=function(){var O=nwN,m=X2N;this.fieldIndex=175237375;this.ctor=m;this.isRepeated=0;this.getExtensionFn=_.RO;this.defaultValue=void 0;this.JSC$8876_hasMessageId=O.messageId!=null?Ij:void 0};
fE5.prototype.register=function(){ig(this)};var hjN=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(hjN,_.MP);var T3I=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(T3I,_.MP);var yLp=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(yLp,_.MP);var gwr=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(gwr,_.MP);var u8Y=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(u8Y,_.MP);var jYp=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(jYp,_.MP);var IE6=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(IE6,_.MP);IE6.prototype.getData=function(){return _.fq(this,2)};var p2f=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(p2f,_.MP);var Sq6=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Sq6,_.MP);Sq6.prototype.getStyle=function(){return _.RO(this,hjN,1)};var hL=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(hL,_.MP);hL.prototype.getPayloadCase=function(){return _.Ti(this,uG)};
hL.prototype.getStyle=function(){return _.lg(this,Sq6,6,uG)};
var EwY=function(){var O=new hL,m=new u8Y;return _.g5(O,7,uG,m)},Lqe=function(){var O=new hL,m=new jYp;
return _.g5(O,8,uG,m)},uG=[1,
2,3,4,5,6,7,8];var CVM=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(CVM,_.MP);var owf=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(owf,_.MP);var lEY=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(lEY,_.MP);var aES=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(aES,_.MP);var k6S=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(k6S,_.MP);var yM5=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(yM5,_.MP);var cMp=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(cMp,_.MP);var Yqf=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Yqf,_.MP);Yqf.prototype.getData=function(){return _.fq(this,2)};var d3f=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(d3f,_.MP);var kcI=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(kcI,_.MP);kcI.prototype.getPayloadCase=function(){return _.Ti(this,rs)};
var rs=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var RD=function(O,m){O=Error.call(this,O);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.code=m===void 0?2:m};
_.X(RD,Error);var w2O=Promise;var ejS=function(O){this.channelPromise=O};
ejS.prototype.send=function(O,m,G){this.channelPromise.then(function(B){B.send(O,m,G)})};var D3p=function(O,m){this.data=O;this.channel=m};
D3p.prototype.reply=function(O,m,G){this.channel.send(O,m,G)};var sYr=function(O){this.JSC$8942_port_=O};
sYr.prototype.send=function(O,m,G){G=G===void 0?[]:G;var B=new MessageChannel;N3e(B.port1,m);this.JSC$8942_port_.postMessage(O,[B.port2].concat(G))};
var PVS=function(O,m){N3e(O,m);return new sYr(O)},N3e=function(O,m){m&&(O.onmessage=function(G){m(new D3p(G.data,PVS(G.ports[0])))})};var Fq6=function(O){this.verifier_=O};
Fq6.prototype.verify=function(O){return this.verifier_(O)};
var AMs=function(O){var m=Object.create(null);(typeof O==="string"?[O]:O).forEach(function(G){if(G==="null")throw Error("X");m[G]=!0});
return function(G){return m[G]===!0}};_.ONo=function(){if(!_.Qf.addEventListener||!Object.defineProperty)return!1;var O=!1,m=Object.defineProperty({},"passive",{get:function(){O=!0}});
try{var G=function(){};
_.Qf.addEventListener("test",G,m);_.Qf.removeEventListener("test",G,m)}catch(B){}return O}();var mpu;_.i4=function(O){var m=O.destination;var G=O.iframe;var B=O.origin;var Q=O.channelName===void 0?"ZNWN1d":O.channelName;var H=O.onMessage===void 0?void 0:O.onMessage;O=O.onEstablished===void 0?void 0:O.onEstablished;return mpu({destination:m,getSource:function(){return G.contentWindow},
originVerifier:B instanceof Fq6?B:typeof B==="function"?new Fq6(B):new Fq6(AMs(B)),channelName:Q,onMessage:H,onEstablished:O})};
mpu=function(O){var m=O.destination;var G=O.getSource;var B=O.originVerifier;var Q=O.token===void 0?void 0:O.token;var H=O.channelName;var M=O.onMessage===void 0?void 0:O.onMessage;var R=O.onEstablished===void 0?void 0:O.onEstablished;return new ejS(new w2O(function(x,t){var W=function(Z){Z.source&&Z.source===G()&&B.verify(Z.origin)&&(Z.data.n||Z.data)===H&&(m.removeEventListener("message",W,!1),Q&&Z.data.t!==Q?t(Error("Y`"+H+"`"+Q+"`"+Z.data.t)):(x(PVS(Z.ports[0],M)),R&&R(Z)))};
m.addEventListener("message",W,!1)}))};var GYH=function(O){try{O()}catch(m){HM(m)}};var Qee=function(O){var m=this;var G=O.getMessageType;var B=O.onUnregisteredMessage===void 0?function(){}:O.onUnregisteredMessage;
var Q=O.onBeforeRegisteredMessage===void 0?function(){}:O.onBeforeRegisteredMessage;
O=O.onAfterRegisteredMessage===void 0?function(){}:O.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=G;this.onUnregisteredMessage_=B;this.onBeforeRegisteredMessage_=Q;this.onAfterRegisteredMessage_=O;this.onMessage=function(H){return BNp(m,H)}};
Qee.prototype.register=function(O,m){this.registry_.set(O,m);return this};
var BNp=function(O,m){var G=O.getMessageType_(m.data),B=O.registry_.get(G);B?(GYH(function(){return O.onBeforeRegisteredMessage_(m,G)}),GYH(function(){return B(m)}),GYH(function(){return O.onAfterRegisteredMessage_(m,G)})):GYH(function(){return O.onUnregisteredMessage_(m,G)})};var HNs=function(O){this.JSC$8959_channel_=O},K5o,$p2;
HNs.prototype.send=function(O,m,G){this.JSC$8959_channel_.send(CB(O),m,G)};
_.vO9=function(O,m){return function(G){var B=new O(G.data);return m(new D3p(B,G.channel))}};
K5o=function(O){return function(m){return O(new D3p(m.data,new HNs(m.channel)))}};
$p2=function(O,m){return K5o(_.vO9(O,m))};var Mre=function(O,m,G,B){this.registry=O;this.delegate=m;this.receiveMessageConstructor=G;this.createInitMessage=B;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},aqO=function(O){var m=new Qee({getMessageType:O.getPayloadCase});
return new Mre(m,new HNs(_.i4({iframe:O.child,destination:window,origin:O.origin,channelName:O.channelName,onMessage:$p2(O.receiveMessageConstructor,m.onMessage)})),O.receiveMessageConstructor,O.createInitMessage)},rz3=function(O,m){O.createInitMessage=m};
Mre.prototype.send=function(O){if(!this.initialised)throw new RD("Attempted to send a message before initialisation.");this.delegate.send(O)};
var R62=function(O,m){return _.r(function(G){if(!O.initialised)throw new RD("Attempted to send a message before initialisation.");return G.return(new Promise(function(B){O.delegate.send(m,$p2(O.receiveMessageConstructor,B))}))})};
Mre.prototype.init=function(){var O=this;return _.r(function(m){if(O.initialised)throw new RD("Attempted to initialise twice. The SDK can only be initialised once.");if(O.createInitMessage!==void 0){var G=O.delegate,B=G.send,Q=O.createInitMessage;var H=new T3I;var M=[].concat(_.lS(O.features));H=_.Oh(H,1,M,_.mA);B.call(G,Q.call(O,H))}O.initialised=!0;_.ju(m)})};
var x7=function(O,m){if(O.initialised)throw new RD('Attempted to set up API "'+m+'" after initialisation. All APIs must be set up before initialising the SDK.');O.features.add(m);return O.registry};
_.vr.Object.defineProperties(Mre.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var iN2=function(O){this.channel=O;this.registered=!1};
iN2.prototype.update=function(O){if(this.channel.isInitialised){if(!this.registered)throw new RD("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var m=new hL;var G=new gwr;G=_.tF(G,1,O);m=_.g5(m,2,uG,G);this.channel.send(m)}else this.register();this.JSC$8973_audioEnabled=O};
iN2.prototype.register=function(){x7(this.channel,1);this.registered=!0};
iN2.prototype.isAudioEnabled=function(){return this.JSC$8973_audioEnabled};var xp3=function(O){this.channel=O};
_.v=xp3.prototype;_.v.onFirstFrameReady=function(O){x7(this.channel,2).register(11,function(m){m=_.lg(m.data,CVM,11,rs);if(!m)throw new RD("Unexpectedly nonexistent GameFirstFrameReadyEvent");O(_.Eg(m,1))})};
_.v.onReady=function(O){x7(this.channel,2).register(4,function(m){m=_.lg(m.data,lEY,4,rs);if(!m)throw new RD("Unexpectedly nonexistent GameReadyEvent");O(_.Eg(m,1))})};
_.v.onLevelComplete=function(O){x7(this.channel,2).register(5,function(m){m=_.lg(m.data,aES,5,rs);if(!m)throw new RD("Unexpectedly nonexistent LevelCompleteEvent");O(_.Eg(m,1),_.ij(m,2))})};
_.v.onGameOver=function(O){x7(this.channel,2).register(6,function(m){m=_.lg(m.data,owf,6,rs);if(!m)throw new RD("Unexpectedly nonexistent GameOverEvent");O(_.Eg(m,1))})};
_.v.pause=function(){var O=this;if(!this.channel.isInitialised)return x7(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new RD("Using unregistered Game Feature: pause.");var m=EwY();return new Promise(function(G){return _.r(function(B){if(B.nextAddress==1)return B.yield(R62(O.channel,m),2);G();_.ju(B)})})};
_.v.resume=function(){var O=this;if(!this.channel.isInitialised)return x7(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new RD("Using unregistered Game Feature: resume.");var m=Lqe();return new Promise(function(G){return _.r(function(B){if(B.nextAddress==1)return B.yield(R62(O.channel,m),2);G();_.ju(B)})})};var qS3=function(O){this.channel=O};
qS3.prototype.onReady=function(O){x7(this.channel,5).register(8,function(m){if(!_.lg(m.data,k6S,8,rs))throw new RD("Unexpectedly nonexistent PageReadyEvent");O()})};var Ups=function(O){this.channel=O};
Ups.prototype.onChange=function(O){x7(this.channel,3).register(7,function(m){m=_.lg(m.data,yM5,7,rs);if(!m)throw new RD("Unexpectedly nonexistent ScoreEvent");O(_.Eg(m,1),_.ij(m,2))})};var trj={load:function(){throw new RD("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new RD("Storage used, but storage.onSave() listener not set!");}},W5H=function(O){this.channel=O;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},ZNo=function(O){x7(O.channel,4).register(2,trj.load).register(3,trj.save);
O.initialSetupDone=!0};
W5H.prototype.onLoad=function(O){this.initialSetupDone||ZNo(this);this.loadRegistered||(this.loadRegistered=!0,x7(this.channel,4).register(2,function(m){var G,B,Q;return _.r(function(H){if(H.nextAddress==1){G=_.lg(m.data,cMp,2,rs);if(!G)throw new RD("Unexpectedly nonexistent StorageLoad");B=_.Eg(G,1);return H.yield(O(B),2)}Q=H.yieldResult;var M=m.reply,R=new hL;var x=new IE6;x=_.SS(x,1,B);x=_.qI(x,2,_.u2(Q,!1));R=_.g5(R,3,uG,x);M.call(m,R);_.ju(H)})}))};
W5H.prototype.onSave=function(O){this.initialSetupDone||ZNo(this);this.saveRegistered||(this.saveRegistered=!0,x7(this.channel,4).register(3,function(m){var G,B,Q;return _.r(function(H){if(H.nextAddress==1){G=_.lg(m.data,Yqf,3,rs);if(!G)throw new RD("Unexpectedly nonexistent StorageSave");B=_.Eg(G,1);Q=vYf(G.getData());return H.yield(O(B,Q),2)}var M=m.reply,R=new hL;var x=new p2f;x=_.SS(x,1,B);R=_.g5(R,4,uG,x);M.call(m,R);_.ju(H)})}))};var z63=function(O){this.channel=O};
z63.prototype.update=function(O){if(!this.channel.features.has(6))throw new RD("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var m=new hL,G=new Sq6;O=_.Tc(G,1,O);m=_.g5(m,6,uG,O);this.channel.send(m)};
z63.prototype.register=function(){x7(this.channel,6)};var Jzj=function(O){this.channel=O;this.userActivityLoggingIntervalMs=0};
Jzj.prototype.onUserActivity=function(O,m){this.userActivityLoggingIntervalMs=m;x7(this.channel,7).register(9,function(G){if(!_.lg(G.data,d3f,9,rs))throw new RD("Unexpectedly nonexistent ClickEvent");O()})};var VrU=function(O){var m=this;this.channel=O;this.init=this.channel.init.bind(this.channel);this.page=new qS3(this.channel);this.game=new xp3(this.channel);this.audio=new iN2(this.channel);this.score=new Ups(this.channel);this.storage=new W5H(this.channel);this.style=new z63(this.channel);this.userActivity=new Jzj(this.channel);rz3(this.channel,function(G){var B=new yLp;G=_.Tc(B,1,G);G=_.aE(G,3,m.userActivity.userActivityLoggingIntervalMs);B=m.audio.isAudioEnabled();B!==void 0&&_.tF(G,2,B);B=new hL;
return _.g5(B,5,uG,G)})};var bNo=function(){this.timedFunctionContext=0};
bNo.prototype.timeExecution=function(O,m){var G=this;return function(){var B=_.eA.apply(0,arguments);G.timedFunctionContext=O;return m.apply(null,_.lS(B))}};var nO_=function(){var O={};this.priorityTasks=(O[3]=[],O[2]=[],O[1]=[],O);this.isFlushing=!1},nL=function(O,m,G){var B=XMm(O,G);
O.priorityTasks[G].push(m);B&&O.priorityTasks[G].length===1&&O.flush()},XMm=function(O,m){return Object.keys(O.priorityTasks).map(function(G){return Number(G)}).filter(function(G){return!isNaN(G)&&G>m}).every(function(G){return O.priorityTasks[G].length===0})};
nO_.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(O){return O.length>0});)fpm(this,3),fpm(this,2),fpm(this,1)}catch(O){throw Object.values(this.priorityTasks).forEach(function(m){return void m.splice(0,m.length)}),O;
}finally{this.isFlushing=!1}}};
var fpm=function(O,m){for(;XMm(O,m)&&O.priorityTasks[m].length>0;)O.priorityTasks[m][0](),O.priorityTasks[m].shift()};
_.vr.Object.defineProperties(nO_.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(O){return O.length>0})}}});var sne={};var h62=globalThis.trustedTypes,Yhp=h62,w8e;var In=function(O){this.privateDoNotAccessOrElseWrappedResourceUrl=O};
In.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var TNj,gOj,uIC,je2,Ipj,pM2,SSC,EOC;TNj=_.FY([""]);gOj=P$(["\x00"],["\\0"]);uIC=P$(["\n"],["\\n"]);je2=P$(["\x00"],["\\u0000"]);Ipj=_.FY([""]);pM2=P$(["\x00"],["\\0"]);SSC=P$(["\n"],["\\n"]);EOC=P$(["\x00"],["\\u0000"]);_.L5U=DPp(function(O){return O(TNj)})||DPp(function(O){return O(gOj)})||DPp(function(O){return O(uIC)})||DPp(function(O){return O(je2)});
_.Csj=_.L9(Ipj)&&_.L9(pM2)&&_.L9(SSC)&&_.L9(EOC);var Y0;_.C9=function(O,m){this.privateDoNotAccessOrElseWrappedUrl=m};
_.C9.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.oO2=on("about:blank");Y0=on("about:invalid#zClosurez");var N5e=function(O){this.isValid=O},lp9=new N5e(function(O){return/^[^:]*([/?#]|$)/.test(O)}),ap2=k0("data"),kYu=k0("http"),yzp=k0("https"),cz2=k0("ftp"),YSp=k0("mailto"),dpu=k0("intent"),wMU=k0("vnd.youtube"),PGs=[ap2,
kYu,yzp,YSp,cz2,lp9],ALe=jA(function(){return typeof URL==="function"}),e6e=["data:",
"http:","https:","mailto:","ftp:"],mGM=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var NP=function(O){this.privateDoNotAccessOrElseWrappedHtml=O};
NP.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var NIf=jA(function(){return new NP(h62?h62.emptyHTML:"")});var Dpp={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"},BCp=function(O,m){var G=Error.call(this,O+" cannot be used with intent "+Dpp[m]);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.type=O;this.intent=m;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.X(BCp,Error);_.Hi=function(O){this.privateDoNotAccessOrElseWrappedScript=O};
_.Hi.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var KIp=function(O){this.privateDoNotAccessOrElseWrappedAttributePrefix=O};
KIp.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var $Gp="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var iS=function(O){this.privateDoNotAccessOrElseWrappedStyleSheet=O};
iS.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var TRN=function(O){var m=_.ex("window.location.href");O==null&&(O='Unknown Error of type "null/undefined"');if(typeof O==="string")return{message:O,name:"Unknown error",lineNumber:"Not available",fileName:m,stack:"Not available"};var G=!1;try{var B=O.lineNumber||O.line||"Not available"}catch(M){B="Not available",G=!0}try{var Q=O.fileName||O.filename||O.sourceURL||_.Qf.$googDebugFname||m}catch(M){Q="Not available",G=!0}m=seH(O);if(!(!G&&O.lineNumber&&O.fileName&&O.stack&&O.message&&O.name)){G=O.message;
if(G==null){if(O.constructor&&O.constructor instanceof Function){if(O.constructor.name)G=O.constructor.name;else if(G=O.constructor,q0[G])G=q0[G];else{G=String(G);if(!q0[G]){var H=/function\s+([^\(]+)/m.exec(G);q0[G]=H?H[1]:"[Anonymous]"}G=q0[G]}G='Unknown Error of type "'+G+'"'}else G="Unknown Error of unknown type";typeof O.toString==="function"&&Object.prototype.toString!==O.toString&&(G+=": "+O.toString())}return{message:G,name:O.name||"UnknownError",lineNumber:B,fileName:Q,stack:m||"Not available"}}return{message:O.message,
name:O.name,lineNumber:O.lineNumber,fileName:O.fileName,stack:m}},seH=function(O,m){m||(m={});
m[NN3(O)]=!0;var G=O.stack||"",B=O.cause;B&&!m[NN3(B)]&&(G+="\nCaused by: ",B.stack&&B.stack.indexOf(B.toString())==0||(G+=typeof B==="string"?B:B.message+"\n"),G+=seH(B,m));O=O.errors;if(Array.isArray(O)){B=1;var Q;for(Q=0;Q<O.length&&!(B>4);Q++)m[NN3(O[Q])]||(G+="\nInner error "+B++ +": ",O[Q].stack&&O[Q].stack.indexOf(O[Q].toString())==0||(G+=typeof O[Q]==="string"?O[Q]:O[Q].message+"\n"),G+=seH(O[Q],m));Q<O.length&&(G+="\n... "+(O.length-Q)+" more inner errors")}return G},NN3=function(O){var m=
"";
typeof O.toString==="function"&&(m=""+O);return m+O.stack},q0={};var Ps_,H7,Wu,AzU,O$e,F5m,NZ,N5,Gpp;Ps_=function(O,m){for(var G=O.split("%s"),B="",Q=Array.prototype.slice.call(arguments,1);Q.length&&G.length>1;)B+=G.shift()+Q.shift();return B+G.join("%s")};
_.sZ=function(O){return encodeURIComponent(String(O))};
H7=function(O){return decodeURIComponent(O.replace(/\+/g," "))};
Wu=function(O){VWs.test(O)&&(O.indexOf("&")!=-1&&(O=O.replace(Ut6,"&amp;")),O.indexOf("<")!=-1&&(O=O.replace(tWS,"&lt;")),O.indexOf(">")!=-1&&(O=O.replace(WuM,"&gt;")),O.indexOf('"')!=-1&&(O=O.replace(ZuN,"&quot;")),O.indexOf("'")!=-1&&(O=O.replace(zmN,"&#39;")),O.indexOf("\x00")!=-1&&(O=O.replace(JU6,"&#0;")));return O};
AzU=function(O){var m={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var G=_.Qf.document.createElement("div");return O.replace(F5m,function(B,Q){var H=m[B];if(H)return H;Q.charAt(0)=="#"&&(Q=Number("0"+Q.slice(1)),isNaN(Q)||(H=String.fromCharCode(Q)));H||(_.MG(G,P8(B+" ")),H=G.firstChild.nodeValue.slice(0,-1));return m[B]=H})};
O$e=function(O){return O.replace(/&([^;]+);/g,function(m,G){switch(G){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return G.charAt(0)!="#"||(G=Number("0"+G.slice(1)),isNaN(G))?m:String.fromCharCode(G)}})};
F5m=/&([^;\s<&]+);?/g;_.vr5=function(O){return String(O).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.meo=String.prototype.repeat?function(O,m){return O.repeat(m)}:function(O,m){return Array(m+1).join(O)};
_.Ub=function(O,m){if(!Number.isFinite(O))return String(O);O=String(O);var G=O.indexOf(".");G===-1&&(G=O.length);var B=O[0]==="-"?"-":"";B&&(O=O.substring(1));return B+(0,_.meo)("0",Math.max(0,m-G))+O};
NZ=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.$F()).toString(36)};
N5=function(O){for(var m=0,G=0;G<O.length;++G)m=31*m+O.charCodeAt(G)>>>0;return m};
_.hc=function(O){return String(O).replace(/\-([a-z])/g,function(m,G){return G.toUpperCase()})};
_.fC=function(O){return String(O).replace(/([A-Z])/g,"-$1").toLowerCase()};
Gpp=function(O){return O.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(m,G,B){return G+B.toUpperCase()})};var B8e=function(){this.names=new Map};
B8e.prototype.getName=function(O){var m=this.names.get(O);if(m)return m;var G;m=(G=O.description)!=null?G:NZ();this.names.set(O,m);return m};var Qjs=function(O){var m=Error.call(this,O?O.length+" errors occurred during unsubscription:\n"+O.map(function(G,B){return B+1+") "+G.toString()}).join("\n  "):"");
this.message=m.message;"stack"in m&&(this.stack=m.stack);this.errors=O;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.X(Qjs,Error);var qG=function(O){this.initialTeardown=O;this.closed=!1;this._teardowns=this._parentage=null};
_.v=qG.prototype;
_.v.unsubscribe=function(){if(!this.closed){this.closed=!0;var O=this._parentage;if(Array.isArray(O))for(var m=_.K(O),G=m.next();!G.done;G=m.next())G.value.remove(this);else O==null||O.remove(this);m=this.initialTeardown;if(x3(m))try{m()}catch(H){var B=H instanceof Qjs?H.errors:[H]}var Q=this._teardowns;if(Q)for(this._teardowns=null,m=_.K(Q),G=m.next();!G.done;G=m.next()){G=G.value;try{x3(G)?G():G.unsubscribe()}catch(H){G=void 0,B=(G=B)!=null?G:[],H instanceof Qjs?B=[].concat(_.lS(B),_.lS(H.errors)):
B.push(H)}}if(B)throw new Qjs(B);}};
_.v.add=function(O){if(O&&O!==this)if(this.closed)x3(O)?O():O.unsubscribe();else{if(O instanceof qG){if(O.closed||O._hasParent(this))return;O._addParent(this)}var m;(this._teardowns=(m=this._teardowns)!=null?m:[]).push(O)}};
_.v._hasParent=function(O){var m=this._parentage;return m===O||Array.isArray(m)&&m.includes(O)};
_.v._addParent=function(O){var m=this._parentage;this._parentage=Array.isArray(m)?(m.push(O),m):m?[m,O]:O};
_.v._removeParent=function(O){var m=this._parentage;m===O?this._parentage=null:Array.isArray(m)&&i_Y(m,O)};
_.v.remove=function(O){var m=this._teardowns;m&&i_Y(m,O);O instanceof qG&&O._removeParent(this)};
var H$C=new qG;H$C.closed=!0;qG.JSC$9069_EMPTY=H$C;var qIS=function(){setTimeout.apply(null,_.lS(_.eA.apply(0,arguments)))};var tR=function(O){qG.call(this);this.JSC$9074_isStopped=!1;this.destination=O instanceof tR?O:new W4(!O||x3(O)?{next:O!=null?O:void 0}:O);xGf(O)&&O.add(this)};
_.X(tR,qG);tR.JSC$9069_EMPTY=qG.JSC$9069_EMPTY;tR.create=function(O,m,G){return new Ze(O,m,G)};
_.v=tR.prototype;_.v.next=function(O){this.JSC$9074_isStopped||this._next(O)};
_.v.error=function(O){this.JSC$9074_isStopped||(this.JSC$9074_isStopped=!0,this._error(O))};
_.v.complete=function(){this.JSC$9074_isStopped||(this.JSC$9074_isStopped=!0,this._complete())};
_.v.unsubscribe=function(){this.closed||(this.JSC$9074_isStopped=!0,qG.prototype.unsubscribe.call(this))};
_.v._next=function(O){this.destination.next(O)};
_.v._error=function(O){this.destination.error(O);this.unsubscribe()};
_.v._complete=function(){this.destination.complete();this.unsubscribe()};
var W4=function(O){this.partialObserver=O};
W4.prototype.next=function(O){var m=this.partialObserver;if(m.next)try{m.next(O)}catch(G){tX(G)}};
W4.prototype.error=function(O){var m=this.partialObserver;if(m.error)try{m.error(O)}catch(G){tX(G)}else tX(O)};
W4.prototype.complete=function(){var O=this.partialObserver;if(O.complete)try{O.complete()}catch(m){tX(m)}};
var Ze=function(O,m,G){tR.call(this);var B;x3(O)||!O?B={next:O!=null?O:void 0,error:m!=null?m:void 0,complete:G!=null?G:void 0}:B=O;this.destination=new W4(B)};
_.X(Ze,tR);Ze.JSC$9069_EMPTY=tR.JSC$9069_EMPTY;Ze.create=tR.create;var JX=typeof Symbol==="function"&&Symbol.observable||"@@observable";var z9=function(O){O&&(this._subscribe=O)};
_.v=z9.prototype;_.v.lift=function(O){var m=new z9;m.source=this;m.operator=O;return m};
_.v.subscribe=function(O,m,G){O=O&&O instanceof tR||O&&x3(O.next)&&x3(O.error)&&x3(O.complete)&&xGf(O)?O:new Ze(O,m,G);m=this.operator;G=this.source;O.add(m?m.call(O,G):G?this._subscribe(O):this._trySubscribe(O));return O};
_.v._trySubscribe=function(O){try{return this._subscribe(O)}catch(m){O.error(m)}};
_.v.forEach=function(O,m){var G=this;m=tup(m);return new m(function(B,Q){var H=G.subscribe(function(M){try{O(M)}catch(R){Q(R),H==null||H.unsubscribe()}},Q,B)})};
_.v._subscribe=function(O){var m;return(m=this.source)==null?void 0:m.subscribe(O)};
z9.prototype[JX]=function(){return this};
z9.prototype.pipe=function(){var O=_.eA.apply(0,arguments);return O.length?UGe(O)(this):this};
z9.create=function(O){return new z9(O)};var v99=function(){var O=Error.call(this,"object unsubscribed");this.message=O.message;"stack"in O&&(this.stack=O.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.X(v99,Error);var JY=function(){this.observers=[];this.hasError=this.JSC$9090_isStopped=this.closed=!1;this.thrownError=null};
_.X(JY,z9);_.v=JY.prototype;_.v.lift=function(O){var m=new zD(this,this);m.operator=O;return m};
_.v._throwIfClosed=function(){if(this.closed)throw new v99;};
_.v.next=function(O){this._throwIfClosed();if(!this.JSC$9090_isStopped){var m=this.observers.slice();m=_.K(m);for(var G=m.next();!G.done;G=m.next())G.value.next(O)}};
_.v.error=function(O){this._throwIfClosed();if(!this.JSC$9090_isStopped){this.hasError=this.JSC$9090_isStopped=!0;this.thrownError=O;for(var m=this.observers;m.length;)m.shift().error(O)}};
_.v.complete=function(){this._throwIfClosed();if(!this.JSC$9090_isStopped){this.JSC$9090_isStopped=!0;for(var O=this.observers;O.length;)O.shift().complete()}};
_.v.unsubscribe=function(){this.JSC$9090_isStopped=this.closed=!0;this.observers=null};
_.v._trySubscribe=function(O){this._throwIfClosed();return z9.prototype._trySubscribe.call(this,O)};
_.v._subscribe=function(O){this._throwIfClosed();this._checkFinalizedStatuses(O);return this._innerSubscribe(O)};
_.v._innerSubscribe=function(O){var m=this,G=this.JSC$9090_isStopped,B=this.observers;return this.hasError||G?qG.JSC$9069_EMPTY:(B.push(O),new qG(function(){return i_Y(m.observers,O)}))};
_.v._checkFinalizedStatuses=function(O){var m=this.thrownError,G=this.JSC$9090_isStopped;this.hasError?O.error(m):G&&O.complete()};
JY.create=function(O,m){return new zD(O,m)};
var zD=function(O,m){JY.call(this);this.destination=O;this.source=m};
_.X(zD,JY);zD.create=JY.create;zD.prototype.next=function(O){var m,G;(m=this.destination)==null||(G=m.next)==null||G.call(m,O)};
zD.prototype.error=function(O){var m,G;(m=this.destination)==null||(G=m.error)==null||G.call(m,O)};
zD.prototype.complete=function(){var O,m;(O=this.destination)==null||(m=O.complete)==null||m.call(O)};
zD.prototype._subscribe=function(O){var m,G;return(G=(m=this.source)==null?void 0:m.subscribe(O))!=null?G:qG.JSC$9069_EMPTY};var PY=function(O){JY.call(this);this._value=O};
_.X(PY,JY);PY.create=JY.create;PY.prototype._subscribe=function(O){var m=JY.prototype._subscribe.call(this,O);!m.closed&&O.next(this._value);return m};
PY.prototype.getValue=function(){var O=this.thrownError,m=this._value;if(this.hasError)throw O;this._throwIfClosed();return m};
PY.prototype.next=function(O){JY.prototype.next.call(this,this._value=O)};
_.vr.Object.defineProperties(PY.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Y3=new z9(function(O){return O.complete()});var JX5=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var f9z=function(O){return O&&typeof O.length==="number"&&typeof O!=="function"};var KUj={now:function(){return(KUj.delegate||Date).now()},
delegate:void 0};var KL=function(O,m,G){O=O===void 0?Infinity:O;m=m===void 0?Infinity:m;G=G===void 0?KUj:G;JY.call(this);this.bufferSize=O;this.windowTime=m;this.timestampProvider=G;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=m===Infinity;this.bufferSize=Math.max(1,O);this.windowTime=Math.max(1,m)};
_.X(KL,JY);KL.create=JY.create;KL.prototype.next=function(O){var m=this.buffer,G=this.infiniteTimeWindow,B=this.timestampProvider,Q=this.windowTime;this.JSC$9090_isStopped||(m.push(O),!G&&m.push(B.now()+Q));$eo(this);JY.prototype.next.call(this,O)};
KL.prototype._subscribe=function(O){this._throwIfClosed();$eo(this);for(var m=this._innerSubscribe(O),G=this.infiniteTimeWindow,B=this.buffer.slice(),Q=0;Q<B.length&&!O.closed;Q+=G?1:2)O.next(B[Q]);this._checkFinalizedStatuses(O);return m};
var $eo=function(O){var m=O.bufferSize,G=O.timestampProvider,B=O.buffer;O=O.infiniteTimeWindow;var Q=(O?1:2)*m;m<Infinity&&Q<B.length&&B.splice(0,B.length-Q);if(!O){m=G.now();G=0;for(O=1;O<B.length&&B[O]<=m;O+=2)G=O;G&&B.splice(0,G+1)}};var rm_=function(O,m){m=m===void 0?Mo_:m;this.schedulerActionCtor=O;this.now=m};
rm_.prototype.schedule=function(O,m,G){m=m===void 0?0:m;return(new this.schedulerActionCtor(this,O)).schedule(G,m)};
var Mo_=KUj.now;var Ws5=function(){var O=Error.call(this,"no elements in sequence");this.message=O.message;"stack"in O&&(this.stack=O.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.X(Ws5,Error);var L_=function(O,m,G,B,Q){tR.call(this,O);this.onUnsubscribe=Q;m&&(this._next=function(H){try{m(H)}catch(M){this.destination.error(M)}});
G&&(this._error=function(H){try{G(H)}catch(M){this.destination.error(M)}this.unsubscribe()});
B&&(this._complete=function(){try{B()}catch(H){this.destination.error(H)}this.unsubscribe()})};
_.X(L_,tR);L_.JSC$9069_EMPTY=tR.JSC$9069_EMPTY;L_.create=tR.create;L_.prototype.unsubscribe=function(){var O;this.closed||(O=this.onUnsubscribe)!=null&&O.call(this);tR.prototype.unsubscribe.call(this)};var QD=function(O,m){this.source=O;this.subjectFactory=m;this._subject=null;this._refCount=0;this._connection=null};
_.X(QD,z9);QD.create=z9.create;QD.prototype._subscribe=function(O){return R__(this).subscribe(O)};
var R__=function(O){var m=O._subject;if(!m||m.JSC$9090_isStopped)O._subject=O.subjectFactory();return O._subject};
QD.prototype._teardown=function(){this._refCount=0;var O=this._connection;this._subject=this._connection=null;O==null||O.unsubscribe()};
QD.prototype.connect=function(){var O=this,m=this._connection;if(!m){m=this._connection=new qG;var G=R__(this);m.add(this.source.subscribe(new L_(G,void 0,function(B){O._teardown();G.error(B)},function(){O._teardown();
G.complete()},function(){return O._teardown()})));
m.closed&&(this._connection=null,m=qG.JSC$9069_EMPTY)}return m};var o3Y=Array.isArray;var a9N=Array.isArray,i$U=Object,k9z=i$U.getPrototypeOf,yX6=i$U.prototype,cXe=i$U.keys;var k3=function(O,m,G){tR.call(this,O);this._next=m;this.shouldComplete=G};
_.X(k3,tR);k3.JSC$9069_EMPTY=tR.JSC$9069_EMPTY;k3.create=tR.create;k3.prototype._complete=function(){this.shouldComplete()?tR.prototype._complete.call(this):this.unsubscribe()};var FIp=["addListener","removeListener"],PSO=["addEventListener","removeEventListener"],OLN=["on","off"];var JR=function(){qG.call(this)};
_.X(JR,qG);JR.JSC$9069_EMPTY=qG.JSC$9069_EMPTY;JR.prototype.schedule=function(){return this};var xe8=function(O,m){return setInterval.apply(null,[O,m].concat(_.lS(_.eA.apply(2,arguments))))};var V7=function(O,m){qG.call(this);this.scheduler=O;this.work=m;this.pending=!1};
_.X(V7,JR);V7.JSC$9069_EMPTY=JR.JSC$9069_EMPTY;V7.prototype.schedule=function(O,m){m=m===void 0?0:m;if(this.closed)return this;this.state=O;O=this.id;var G=this.scheduler;O!=null&&(this.id=q3s(this,O,m));this.pending=!0;this.delay=m;this.id=this.id||this.requestAsyncId(G,this.id,m);return this};
V7.prototype.requestAsyncId=function(O,m,G){G=G===void 0?0:G;return xe8(O.flush.bind(O,this),G)};
var q3s=function(O,m,G){G=G===void 0?0:G;if(G!=null&&O.delay===G&&O.pending===!1)return m;clearInterval(m)};
V7.prototype.execute=function(O,m){if(this.closed)return Error("ha");this.pending=!1;if(O=this._execute(O,m))return O;this.pending===!1&&this.id!=null&&(this.id=q3s(this,this.id,null))};
V7.prototype._execute=function(O){var m=!1;try{this.work(O)}catch(B){m=!0;var G=!!B&&B||Error(B)}if(m)return this.unsubscribe(),G};
V7.prototype.unsubscribe=function(){if(!this.closed){var O=this.id,m=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;i_Y(m,this);O!=null&&(this.id=q3s(this,O,null));this.delay=null;JR.prototype.unsubscribe.call(this)}};var Ueu=function(O,m){m=m===void 0?Mo_:m;rm_.call(this,O,m);this.actions=[];this.active=!1;this.scheduled=void 0};
_.X(Ueu,rm_);Ueu.prototype.flush=function(O){var m=this.actions;if(this.active)m.push(O);else{var G;this.active=!0;do if(G=O.execute(O.state,O.delay))break;while(O=m.shift());this.active=!1;if(G){for(;O=m.shift();)O.unsubscribe();throw G;}}};var CL=new z9(UI);var mMz=Array.isArray;var b4=function(O,m){V7.call(this,O,m);this.scheduler=O;this.work=m};
_.X(b4,V7);b4.JSC$9069_EMPTY=V7.JSC$9069_EMPTY;b4.prototype.schedule=function(O,m){m=m===void 0?0:m;if(m>0)return V7.prototype.schedule.call(this,O,m);this.delay=m;this.state=O;this.scheduler.flush(this);return this};
b4.prototype.execute=function(O,m){return m>0||this.closed?V7.prototype.execute.call(this,O,m):this._execute(O,m)};
b4.prototype.requestAsyncId=function(O,m,G){G=G===void 0?0:G;return G!=null&&G>0||G==null&&this.delay>0?V7.prototype.requestAsyncId.call(this,O,m,G):O.flush(this)};var tos=function(){Ueu.apply(this,arguments)};
_.X(tos,Ueu);var LIe=new tos(b4);var WUs=function(){this.performanceMonitor=new bNo;this.queue=new nO_;this.internalSymbol=Symbol();this.debugNames=new B8e};
WUs.prototype.getOnBackgrounded=function(){return CL};
_.vr.Object.defineProperties(WUs.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var n4=function(O,m){m=Error.call(this,m?O+": "+m:String(O));this.message=m.message;"stack"in m&&(this.stack=m.stack);this.code=O;this.__proto__=n4.prototype;this.name=String(O)};
_.X(n4,Error);var oM=function(O){n4.call(this,1E3,'sfr:"'+O+'"');this.measurementStrategyFailureReason=O;this.__proto__=oM.prototype};
_.X(oM,n4);var lC=function(){n4.call(this,1003);this.__proto__=lC.prototype};
_.X(lC,n4);var X9=function(){n4.call(this,1009);this.__proto__=X9.prototype};
_.X(X9,n4);var Z$m=function(){n4.call(this,1011);this.__proto__=Z$m.prototype};
_.X(Z$m,n4);var z_$=function(){n4.call(this,1007);this.__proto__=lC.prototype};
_.X(z_$,n4);var E_=function(O){n4.call(this,1004,String(O));this.inputObservableIndex=O;this.__proto__=E_.prototype};
_.X(E_,n4);var phN=function(O){n4.call(this,1010,O);this.__proto__=S0S.prototype};
_.X(phN,n4);var S0S=function(O){n4.call(this,1005,O);this.__proto__=S0S.prototype};
_.X(S0S,n4);var Jm2=function(O){var m=_.eA.apply(1,arguments),G=this;this.orderedFactories=[];this.orderedFactories.push(O);m.forEach(function(B){G.orderedFactories.push(B)})};
Jm2.prototype.isSupported=function(O){return this.orderedFactories.some(function(m){return m.isSupported(O)})};
Jm2.prototype.makeBeacon=function(O,m){for(var G=0;G<this.orderedFactories.length;G++)if(this.orderedFactories[G].isSupported(m))return this.orderedFactories[G].makeBeacon(O,m);throw new X9;};var VEO=Symbol("ia"),VoU=Symbol("ja"),sI=function(O,m){this.value=O;this.timeline=m},D9=function(O,m){if(m.timeline!==O.timeline)throw new z_$;
return O.value-m.value};
_.v=sI.prototype;_.v.equals=function(O){return D9(this,O)===0};
_.v.maximum=function(O){if(O.timeline!==this.timeline)throw new z_$;return this.value>=O.value?this:O};
_.v.round=function(){return new sI(Math.round(this.value),this.timeline)};
_.v.add=function(O){return new sI(this.value+O,this.timeline)};
_.v.toString=function(){return String(this.value)};var hR=function(O,m){this.context=O;this.JSC$9196_pinger=m};
hR.prototype.isSupported=function(O){return this.JSC$9196_pinger.isSupported(O)};
hR.prototype.makeBeacon=function(O,m){if(!this.isSupported(m))throw new X9;return new TD(this.context,this.JSC$9196_pinger,m!=null?m:void 0,O)};
var TD=function(O,m,G,B){var Q=this;this.JSC$9202_pinger=m;this.properties=G;this.url=B;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var H;this.method=(H=G==null?void 0:G.beaconMethod)!=null?H:"GET";this.backgroundedSubscription=O.getOnBackgrounded().subscribe(function(){Q.sendNow()})};
TD.prototype.deactivate=function(){this.internalIsPending=!1};
TD.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9202_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var O,m;this.JSC$9202_pinger.pingWithHeadersAndBody((O=this.properties)!=null?O:{},this.customHeaders,(m=this.body)!=null?m:"",this.url)}else this.JSC$9202_pinger.ping(this.url);this.internalIsPending=!1}catch(G){}else this.internalIsPending=!1};
TD.prototype.setHeader=function(O,m){this.customHeaders.set(O,m)};
_.vr.Object.defineProperties(TD.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var n93=function(){for(var O=_.K(_.eA.apply(0,arguments)),m=O.next();!m.done;m=O.next())if(m=m.value,m.available()){this.timeProvider=m;return}this.timeProvider=new b$j};
_.v=n93.prototype;_.v.available=function(){return this.timeProvider.available()};
_.v.now=function(){return this.timeProvider.now()};
_.v.setTimeout=function(O,m){return this.timeProvider.setTimeout(O,m)};
_.v.clearTimeout=function(O){this.timeProvider.clearTimeout(O)};
_.v.interval=function(O,m){var G=this.intervalObservable(O).subscribe(m);return function(){return void G.unsubscribe()}};
_.v.intervalObservable=function(O){return this.timeProvider.intervalObservable(O)};
_.vr.Object.defineProperties(n93.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var b$j=function(){this.timeline=Symbol()};
_.v=b$j.prototype;_.v.available=function(){return!1};
_.v.now=function(){return new sI(0,this.timeline)};
_.v.setTimeout=function(){return 0};
_.v.clearTimeout=function(){};
_.v.interval=function(){return function(){}};
_.v.intervalObservable=function(){return CL};var gs=function(O,m){this.intrinsicFunctionNamespace=O;this.performanceMonitor=m};
_.v=gs.prototype;_.v.setTimeout=function(O,m){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,O),m)};
_.v.clearTimeout=function(O){this.intrinsicFunctionNamespace.clearTimeout(O)};
_.v.interval=function(O,m){var G=this.intervalObservable(O).subscribe(m);return function(){return void G.unsubscribe()}};
_.v.intervalObservable=function(O){var m=this;return new z9(function(G){var B=0,Q=m.intrinsicFunctionNamespace.setInterval(function(){G.next(B++)},O);
return function(){m.intrinsicFunctionNamespace.clearInterval(Q)}})};
_.v.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Xse=function(O,m){gs.call(this,O,m);this.timeline=VoU};
_.X(Xse,gs);Xse.prototype.now=function(){return new sI(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Xse.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&gs.prototype.available.call(this)};var fHp=function(O,m){gs.call(this,O,m);this.timeline=VEO};
_.X(fHp,gs);fHp.prototype.now=function(){return new sI(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
fHp.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&gs.prototype.available.call(this)};var T8C=function(O){this.context=O;if(h_2===void 0)a:{var m,G,B=(m=O.global)==null?void 0:(G=m.document)==null?void 0:G.createElement("meta");if(B)try{B.httpEquiv="origin-trial";B.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";O.global.document.head.append(B);h_2=B;break a}catch(Q){}h_2=void 0}},
h_2;
T8C.prototype.isSupported=function(O){return Rfe(this.context)!==void 0&&!(O==null||!O.endOfSession)&&!u4(this.context)&&!(O==null?0:O.attributionEnabled)&&!(O==null?0:O.customHeaders)&&!(O==null?0:O.customBody)};
T8C.prototype.makeBeacon=function(O,m){if(!this.isSupported(m))throw new X9;return new jG(this.context,O,m)};
var jG=function(O,m,G){this.context=O;this.properties=G;this.JSC$9229_urlWithoutToken=m;var B;this.beaconMethod=(B=G==null?void 0:G.beaconMethod)!=null?B:"GET";O=Rfe(this.context);if(O===void 0)throw Error();this.fetchLater=O;g9m(this,uCU(this))},g9m=function(O,m){O.beaconResult&&O.beaconResult.activated||(O.beaconAbort=new AbortController,O.beaconResult=O.fetchLater(m,{method:O.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:O.beaconAbort.signal,activateAfter:96E4}))},uCU=function(O){O=O.JSC$9229_urlWithoutToken;
return(O.slice(-1)[0]==="&"?O:O+"&")+"flapi=1"};
jG.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
jG.prototype.sendNow=function(){};
jG.prototype.setHeader=function(){};
_.vr.Object.defineProperties(jG.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9229_urlWithoutToken},
set:function(O){this.JSC$9229_urlWithoutToken=O;O=uCU(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);g9m(this,O)}},
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 jj2=function(O){this.context=O};
jj2.prototype.isSupported=function(){return!u4(this.context)&&!!this.context.global.fetch};
jj2.prototype.ping=function(){var O=this;return dC.apply(null,_.lS(_.eA.apply(0,arguments).map(function(m){return bS(O.context.global.fetch(m,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(oo(function(G){return G.status===200}))}))).pipe(ZLN(function(m){return m}),JYY())};
jj2.prototype.pingWithHeadersAndBody=function(O,m,G){for(var B=_.eA.apply(3,arguments),Q=this,H=new Headers,M=_.K(m.entries()),R=M.next();!R.done;R=M.next()){var x=_.K(R.value);R=x.next().value;x=x.next().value;H.set(R,x)}var t,W=(t=O.keepAlive)!=null?t:!1;dC.apply(null,_.lS(B.map(function(Z){return bS(Q.context.global.fetch(Z,Object.assign({},{method:String(O.beaconMethod),cache:"no-cache"},W?{keepalive:!0}:{},{mode:"no-cors",headers:H,body:G}))).pipe(oo(function(z){return z.status===200}))}))).pipe(ZLN(function(Z){return Z}),
JYY())};var IHm,Q1S,ps8;_.ID=function(){};
_.LN=function(O){return O};
IHm=function(O){var m=m||0;return function(){return O.apply(this,Array.prototype.slice.call(arguments,0,m))}};
_.p4=function(O){var m=!1,G;return function(){m||(G=O(),m=!0);return G}};
_.SG=function(O,m){var G=0;return function(B){_.Qf.clearTimeout(G);var Q=arguments;G=_.Qf.setTimeout(function(){O.apply(void 0,Q)},m)}};
Q1S=function(O,m){var G=0,B=!1,Q=[],H=function(){G=0;B&&(B=!1,M())},M=function(){G=_.Qf.setTimeout(H,m);
var R=Q;Q=[];O.apply(void 0,R)};
return function(R){Q=arguments;G?B=!0:M()}};
ps8=function(O,m){var G=0,B=function(){G=0};
return function(Q){G||(G=_.Qf.setTimeout(B,m),O.apply(void 0,arguments))}};var E9p=function(){return Jz&&bs?bs.mobile:!S3H()&&(fN("iPod")||fN("iPhone")||fN("Android")||fN("IEMobile"))},S3H=function(){return Jz&&bs?!bs.mobile&&(fN("iPad")||fN("Android")||fN("Silk")):fN("iPad")||fN("Android")&&!fN("Mobile")||fN("Silk")};var LU8;_.aM={};LU8="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.aM.add=function(O,m,G){if(O!==null&&m in O)throw Error("la`"+m);O[m]=G};
_.aM.clear=function(O){for(var m in O)delete O[m]};
_.aM.clone=function(O){var m={},G;for(G in O)m[G]=O[G];return m};
_.aM.contains=function(O,m){return hfe(O,m)};
_.aM.containsKey=function(O,m){return O!==null&&m in O};
_.aM.containsValue=hfe;_.aM.create=uyp;_.aM.createImmutableView=function(O){var m=O;Object.isFrozen&&!Object.isFrozen(O)&&(m=Object.create(O),Object.freeze(m));return m};
_.aM.createSet=jMI;_.aM.equals=function(O,m){for(var G in O)if(!(G in m)||O[G]!==m[G])return!1;for(var B in m)if(!(B in O))return!1;return!0};
_.aM.every=function(O,m,G){for(var B in O)if(!m.call(G,O[B],B,O))return!1;return!0};
_.aM.extend=function(O,m){for(var G,B,Q=1;Q<arguments.length;Q++){B=arguments[Q];for(G in B)O[G]=B[G];for(var H=0;H<LU8.length;H++)G=LU8[H],Object.prototype.hasOwnProperty.call(B,G)&&(O[G]=B[G])}};
_.aM.filter=function(O,m,G){var B={},Q;for(Q in O)m.call(G,O[Q],Q,O)&&(B[Q]=O[Q]);return B};
_.aM.findKey=T9S;_.aM.findValue=function(O,m,G){return(m=T9S(O,m,G))&&O[m]};
_.aM.forEach=function(O,m,G){for(var B in O)m.call(G,O[B],B,O)};
_.aM.get=function(O,m,G){return O!==null&&m in O?O[m]:G};
_.aM.getAllPropertyNames=function(O,m,G){if(!O)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return fnf(O);for(var B={};O&&(O!==Object.prototype||m)&&(O!==Function.prototype||G);){for(var Q=Object.getOwnPropertyNames(O),H=0;H<Q.length;H++)B[Q[H]]=!0;O=Object.getPrototypeOf(O)}return fnf(B)};
_.aM.getAnyKey=function(O){for(var m in O)return m};
_.aM.getAnyValue=function(O){for(var m in O)return O[m]};
_.aM.getCount=function(O){var m=0,G;for(G in O)m++;return m};
_.aM.getKeys=fnf;_.aM.getSuperClass=function(O){return(O=Object.getPrototypeOf(O.prototype))&&O.constructor};
_.aM.getValueByKeys=function(O,m){var G=_.YO(m),B=G?m:arguments;for(G=G?0:1;G<B.length;G++){if(O==null)return;O=O[B[G]]}return O};
_.aM.getValues=function(O){var m=[],G=0,B;for(B in O)m[G++]=O[B];return m};
_.aM.isEmpty=function(O){for(var m in O)return!1;return!0};
_.aM.isImmutableView=function(O){return!!Object.isFrozen&&Object.isFrozen(O)};
_.aM.map=function(O,m,G){var B={},Q;for(Q in O)B[Q]=m.call(G,O[Q],Q,O);return B};
_.aM.remove=function(O,m){var G;(G=m in O)&&delete O[m];return G};
_.aM.set=function(O,m,G){O[m]=G};
_.aM.setIfUndefined=function(O,m,G){return m in O?O[m]:O[m]=G};
_.aM.setWithReturnValueIfNotSet=function(O,m,G){if(m in O)return O[m];G=G();return O[m]=G};
_.aM.some=function(O,m,G){for(var B in O)if(m.call(G,O[B],B,O))return!0;return!1};
_.aM.transpose=function(O){var m={},G;for(G in O)m[O[G]]=G;return m};
_.aM.unsafeClone=g6r;var Eb=function(O,m,G,B,Q){this.allowedElements=O;this.elementPolicies=m;this.allowedGlobalAttributes=G;this.globalAttributePolicies=B;this.globallyAllowedAttributePrefixes=Q},C2H=function(O,m,G){G=O.elementPolicies.get(G);
return(G==null?0:G.has(m))?G.get(m):O.allowedGlobalAttributes.has(m)?{policyAction:1}:(G=O.globalAttributePolicies.get(m))?G:O.globallyAllowedAttributePrefixes&&[].concat(_.lS(O.globallyAllowedAttributePrefixes)).some(function(B){return m.indexOf(B)===0})?{policyAction:1}:{policyAction:0}};var o9u="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(" "),
lHC=[["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}]])]],aHo="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(" "),
kpe=[["dir",{policyAction:3,conditions:jA(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:jA(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:jA(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:jA(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],yme=new Eb(new Set(o9u),new Map(lHC),new Set(aHo),new Map(kpe)),cmp=new Eb(new Set(o9u.concat(["BUTTON",
"INPUT"])),new Map(lHC),new Set(jA(function(){return aHo.concat(["class","id","name"])})),new Map(jA(function(){return kpe.concat([["style",
{policyAction:1}]])})));var Y3j,de2,e_3;Y3j=function(O,m,G,B,Q){this.JSC$9290_sanitizerTable=O;this.styleElementSanitizer=m;this.styleAttributeSanitizer=G;this.JSC$9290_resourceUrlPolicy=B;this.JSC$9290_navigationUrlPolicy=Q;this.changes=[]};
_.wsm=function(O,m){var G=document.implementation.createHTMLDocument("");O=de2(O,m,G);G=G.body;G.appendChild(O);G=(new XMLSerializer).serializeToString(G);G=G.slice(G.indexOf(">")+1,G.lastIndexOf("</"));return P8(G)};
de2=function(O,m,G){m=S_M(m,G);m=document.createTreeWalker(m,5,function(R){if(R.nodeType===3)R=1;else if(LsI(R))if(R=E6z(R),R===null)R=2;else{var x=O.JSC$9290_sanitizerTable;R=R!=="FORM"&&(x.allowedElements.has(R)||x.elementPolicies.has(R))?1:2}else R=2;return R});
for(var B=m.nextNode(),Q=G.createDocumentFragment(),H=Q;B!==null;){var M=void 0;if(B.nodeType===3)O.styleElementSanitizer&&H.nodeName==="STYLE"?(B=O.styleElementSanitizer(B.data),M=O.createTextNode(B)):M=O.createTextNode(B.data);else if(LsI(B))M=e_3(O,B,G);else throw Error("Z");H.appendChild(M);if(B=m.firstChild())H=M;else for(;!(B=m.nextSibling())&&(B=m.parentNode());)H=H.parentNode}return Q};
Y3j.prototype.createTextNode=function(O){return document.createTextNode(O)};
e_3=function(O,m,G){var B,Q=E6z(m);G=G.createElement(Q);m=m.attributes;for(var H=_.K(m),M=H.next();!M.done;M=H.next()){var R=M.value;M=R.name;R=R.value;var x=C2H(O.JSC$9290_sanitizerTable,M,Q);a:{if(B=x.conditions){B=_.K(B);for(var t=B.next();!t.done;t=B.next()){var W=_.K(t.value);t=W.next().value;W=W.next().value;var Z=void 0;if((t=(Z=m.getNamedItem(t))==null?void 0:Z.value)&&!W.has(t)){B=!1;break a}}}B=!0}if(B)switch(x.policyAction){case 1:U_(G,M,R);break;case 2:throw Error();case 3:U_(G,M,R.toLowerCase());
break;case 4:O.styleAttributeSanitizer?(R=O.styleAttributeSanitizer(R),U_(G,M,R)):U_(G,M,R);break;case 5:O.JSC$9290_resourceUrlPolicy?(x={type:2,attributeName:M,elementName:Q},R=pYM(R),(R=O.JSC$9290_resourceUrlPolicy(R,x))&&U_(G,M,R.toString())):U_(G,M,R);break;case 6:if(O.JSC$9290_resourceUrlPolicy){x={type:2,attributeName:M,elementName:Q};B=[];R=_.K(R.split(","));for(t=R.next();!t.done;t=R.next())W=_.K(t.value.trim().split(/\s+/,2)),t=W.next().value,W=W.next().value,B.push({url:t,descriptor:W});
R={parts:[]};B=_.K(B);for(t=B.next();!t.done;t=B.next())t=t.value,W=pYM(t.url),(W=O.JSC$9290_resourceUrlPolicy(W,x))&&R.parts.push({url:W.toString(),descriptor:t.descriptor});U_(G,M,CC6(R))}else U_(G,M,R);break;case 7:x=R;if(O.JSC$9290_navigationUrlPolicy){x={type:2,attributeName:M,elementName:Q};R=pYM(R);R=O.JSC$9290_navigationUrlPolicy(R,x);if(R===null)break;x=R.toString()}R=x;x=_.O_N(R);x=x!==void 0&&e6e.indexOf(x.toLowerCase())!==-1?R:"about:invalid#zClosurez";U_(G,M,x)}}return G};
_.Dep=jA(function(){return new Y3j(yme)});
_.sjU=jA(function(){return new Y3j(cmp)});var N8s=function(){this.calledBuild=!1;this.JSC$9302_sanitizerTable=yme},P2$=function(){N8s.apply(this,arguments)};
_.X(P2$,N8s);P2$.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new Y3j(this.JSC$9302_sanitizerTable,void 0,void 0,this.JSC$9302_resourceUrlPolicy,this.JSC$9302_navigationUrlPolicy)};var FUu=/[^#]*/;var OB_=function(O){var m=Am$;if(m)for(var G in m)Object.prototype.hasOwnProperty.call(m,G)&&O(m[G],G,m)},mJp=function(){var O=[];
OB_(function(m){O.push(m)});
return O},Am$={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"},Gus=_.p4(function(){return mJp()}),Q3H=function(){var O=Bo$("IFRAME"),
m={};
_.Nr(Gus(),function(G){O.sandbox&&O.sandbox.supports&&O.sandbox.supports(G)&&(m[G]=!0)});
return m},Bo$=function(O,m){m=m===void 0?document:m;
return m.createElement(String(O).toLowerCase())};var L4;_.Lk=function(O,m,G){return Math.min(Math.max(O,m),G)};
L4=function(O,m,G){return O+G*(m-O)};_.yD=function(O,m){this.x=O!==void 0?O:0;this.y=m!==void 0?m:0};
_.v=_.yD.prototype;_.v.clone=function(){return new _.yD(this.x,this.y)};
_.v.equals=function(O){return O instanceof _.yD&&(this==O?!0:this&&O?this.x==O.x&&this.y==O.y:!1)};
_.v.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.v.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.v.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.v.translate=function(O,m){O instanceof _.yD?(this.x+=O.x,this.y+=O.y):(this.x+=Number(O),typeof m==="number"&&(this.y+=m));return this};
_.v.scale=function(O,m){this.x*=O;this.y*=typeof m==="number"?m:O;return this};_.hY=function(O,m){this.width=O;this.height=m};
_.v=_.hY.prototype;_.v.clone=function(){return new _.hY(this.width,this.height)};
_.v.area=function(){return this.width*this.height};
_.v.aspectRatio=function(){return this.width/this.height};
_.v.isEmpty=function(){return!this.area()};
_.v.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.v.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.v.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.v.scale=function(O,m){this.width*=O;this.height*=typeof m==="number"?m:O;return this};var yT=function(O,m){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=O===j_r&&m||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=HB3};
yT.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var vhp=function(O){return O instanceof yT&&O.constructor===yT&&O.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===HB3?O.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},HB3={},j_r={};
new yT(j_r,"");var jS,Ty,oD,KAe,rs3,MKu,cY,iBU,q9H,xJp,y7,UJe,bB2,VK8,Jsu,nho,XbC,fxC,h0s,spr,Tom,uru,j38,ghs,C4;jS=function(O){return O?new C4(_.Y6(O)):rUs||(rUs=new C4)};
_.R_=function(O,m){return typeof m==="string"?O.getElementById(m):m};
Ty=function(O,m){return(m||document).getElementsByTagName(String(O))};
_.$Jm=function(O){return KAe("yt-formatted-string","paper-input-input",O)};
oD=function(O,m,G,B){O=B||O;return(m=m&&m!="*"?String(m).toUpperCase():"")||G?O.querySelectorAll(m+(G?"."+G:"")):O.getElementsByTagName("*")};
KAe=function(O,m,G){var B=document,Q=O&&O!="*"?String(O).toUpperCase():"";return Q||m?(G||B).querySelector(Q+(m?"."+m:"")):oD(B,O,m,G)[0]||null};
rs3=function(O,m){_.aM.forEach(m,function(G,B){B=="style"?O.style.cssText=G:B=="class"?O.className=G:B=="for"?O.htmlFor=G:MKu.hasOwnProperty(B)?O.setAttribute(MKu[B],G):_.KN(B,"aria-")||_.KN(B,"data-")?O.setAttribute(B,G):O[B]=G})};
MKu={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"};_.TP=function(O){O=(O||window).document;O=O.compatMode=="CSS1Compat"?O.documentElement:O.body;return new _.hY(O.clientWidth,O.clientHeight)};
_.R0e=function(O){var m=_.l4(O);O=O.defaultView;return new _.yD((O==null?void 0:O.pageXOffset)||m.scrollLeft,(O==null?void 0:O.pageYOffset)||m.scrollTop)};
_.l4=function(O){return O.scrollingElement?O.scrollingElement:_.Ug||O.compatMode!="CSS1Compat"?O.body||O.documentElement:O.documentElement};
cY=function(O){return O?O.defaultView:window};
_.aD=function(O,m,G){return iBU(document,arguments)};
iBU=function(O,m){var G=m[1],B=xJp(O,String(m[0]));G&&(typeof G==="string"?B.className=G:Array.isArray(G)?B.className=G.join(" "):rs3(B,G));m.length>2&&q9H(O,B,m,2);return B};
q9H=function(O,m,G,B){function Q(R){R&&m.appendChild(typeof R==="string"?O.createTextNode(R):R)}
for(;B<G.length;B++){var H=G[B];if(!_.YO(H)||_.Dp(H)&&H.nodeType>0)Q(H);else{a:{if(H&&typeof H.length=="number"){if(_.Dp(H)){var M=typeof H.item=="function"||typeof H.item=="string";break a}if(typeof H==="function"){M=typeof H.item=="function";break a}}M=!1}_.Nr(M?_.cM(H):H,Q)}}};
_.fd=function(O){return xJp(document,O)};
xJp=function(O,m){m=String(m);O.contentType==="application/xhtml+xml"&&(m=m.toLowerCase());return O.createElement(m)};
_.k7=function(){return document.createTextNode("\n")};
y7=function(O){if(O.nodeType!=1)return!1;switch(O.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};
UJe=function(O,m){q9H(_.Y6(O),O,arguments,1)};
_.c4=function(O){for(var m;m=O.firstChild;)O.removeChild(m)};
_.Y7=function(O,m){m.parentNode&&m.parentNode.insertBefore(O,m)};
_.ds=function(O,m){m.parentNode&&m.parentNode.insertBefore(O,m.nextSibling)};
_.hF=function(O){return O&&O.parentNode?O.parentNode.removeChild(O):null};
_.tK_=function(O,m){var G=m.parentNode;G&&G.replaceChild(O,m)};
_.WAp=function(O){var m,G=O.parentNode;if(G&&G.nodeType!=11)if(O.removeNode)O.removeNode(!1);else{for(;m=O.firstChild;)G.insertBefore(m,O);_.hF(O)}};
_.ws=function(O){return O.children!=void 0?O.children:Array.prototype.filter.call(O.childNodes,function(m){return m.nodeType==1})};
_.z0e=function(O){return O.nextElementSibling!==void 0?O.nextElementSibling:_.ZBu(O.nextSibling,!0)};
_.ZBu=function(O,m){for(;O&&O.nodeType!=1;)O=m?O.nextSibling:O.previousSibling;return O};
_.GH=function(O){return _.Dp(O)&&O.nodeType==1};
_.DZ=function(O,m){if(!O||!m)return!1;if(O.contains&&m.nodeType==1)return O==m||O.contains(m);if(typeof O.compareDocumentPosition!="undefined")return O==m||!!(O.compareDocumentPosition(m)&16);for(;m&&O!=m;)m=m.parentNode;return m==O};
bB2=function(O,m){if(O==m)return 0;if(O.compareDocumentPosition)return O.compareDocumentPosition(m)&2?1:-1;if("sourceIndex"in O||O.parentNode&&"sourceIndex"in O.parentNode){var G=O.nodeType==1,B=m.nodeType==1;if(G&&B)return O.sourceIndex-m.sourceIndex;var Q=O.parentNode,H=m.parentNode;return Q==H?Jsu(O,m):!G&&_.DZ(Q,m)?-1*VK8(O,m):!B&&_.DZ(H,O)?VK8(m,O):(G?O.sourceIndex:Q.sourceIndex)-(B?m.sourceIndex:H.sourceIndex)}B=_.Y6(O);G=B.createRange();G.selectNode(O);G.collapse(!0);O=B.createRange();O.selectNode(m);
O.collapse(!0);return G.compareBoundaryPoints(_.Qf.Range.START_TO_END,O)};
VK8=function(O,m){var G=O.parentNode;if(G==m)return-1;for(;m.parentNode!=G;)m=m.parentNode;return Jsu(m,O)};
Jsu=function(O,m){for(;m=m.previousSibling;)if(m==O)return-1;return 1};
nho=function(O){var m,G=arguments.length;if(!G)return null;if(G==1)return arguments[0];var B=[],Q=Infinity;for(m=0;m<G;m++){for(var H=[],M=arguments[m];M;)H.unshift(M),M=M.parentNode;B.push(H);Q=Math.min(Q,H.length)}H=null;for(m=0;m<Q;m++){M=B[0][m];for(var R=1;R<G;R++)if(M!=B[R][m])return H;H=M}return H};
_.Y6=function(O){return O.nodeType==9?O:O.ownerDocument||O.document};
XbC=function(O){return O.contentDocument||O.contentWindow.document};
_.eG=function(O,m){if("textContent"in O)O.textContent=m;else if(O.nodeType==3)O.data=String(m);else if(O.firstChild&&O.firstChild.nodeType==3){for(;O.lastChild!=O.firstChild;)O.removeChild(O.lastChild);O.firstChild.data=String(m)}else _.c4(O),O.appendChild(_.Y6(O).createTextNode(String(m)))};
fxC={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};h0s={IMG:" ",BR:"\n"};spr=function(O){var m;O.tagName=="A"&&O.hasAttribute("href")||O.tagName=="INPUT"||O.tagName=="TEXTAREA"||O.tagName=="SELECT"||O.tagName=="BUTTON"?m=!O.disabled&&(!O.hasAttribute("tabindex")||Tom(O)):m=O.hasAttribute("tabindex")&&Tom(O);return m};
Tom=function(O){O=O.tabIndex;return typeof O==="number"&&O>=0&&O<32768};
uru=function(O){var m=[];ghs(O,m,!0);O=m.join("");O=O.replace(/ \xAD /g," ").replace(/\xAD/g,"");O=O.replace(/\u200B/g,"");O=O.replace(/ +/g," ");O!=" "&&(O=O.replace(/^\s*/,""));return O};
j38=function(O){var m=[];ghs(O,m,!1);return m.join("")};
ghs=function(O,m,G){if(!(O.nodeName in fxC))if(O.nodeType==3)G?m.push(String(O.nodeValue).replace(/(\r\n|\r|\n)/g,"")):m.push(O.nodeValue);else if(O.nodeName in h0s)m.push(h0s[O.nodeName]);else for(O=O.firstChild;O;)ghs(O,m,G),O=O.nextSibling};
_.Ix9=function(O,m,G){if(!m&&!G)return null;var B=m?String(m).toUpperCase():null;return _.w9(O,function(Q){return(!B||Q.nodeName==B)&&(!G||typeof Q.className==="string"&&_.kO(Q.className.split(/\s+/),G))},!0)};
_.w9=function(O,m,G){O&&!G&&(O=O.parentNode);for(G=0;O;){if(m(O))return O;O=O.parentNode;G++}return null};
C4=function(O){this.JSC$9327_document_=O||_.Qf.document||document};
_.v=C4.prototype;_.v.getElement=function(O){return _.R_(this.JSC$9327_document_,O)};
_.v.$=C4.prototype.getElement;_.v.getElementsByTagName=function(O,m){return(m||this.JSC$9327_document_).getElementsByTagName(String(O))};
_.v.getElementsByTagNameAndClass=function(O,m,G){return oD(this.JSC$9327_document_,O,m,G)};
_.v.$$=C4.prototype.getElementsByTagNameAndClass;_.v.setProperties=rs3;_.v.JSC$9329_createDom=function(O,m,G){return iBU(this.JSC$9327_document_,arguments)};
_.v.createElement=function(O){return xJp(this.JSC$9327_document_,O)};
_.v.createTextNode=function(O){return this.JSC$9327_document_.createTextNode(String(O))};
_.v.getWindow=function(){return this.JSC$9327_document_.defaultView};
var uC=function(O){return _.R0e(O.JSC$9327_document_)};
_.v=C4.prototype;_.v.appendChild=function(O,m){O.appendChild(m)};
_.v.append=UJe;_.v.canHaveChildren=y7;_.v.removeNode=_.hF;_.v.getChildren=_.ws;_.v.contains=_.DZ;_.v.isFocusable=spr;_.v=zP.prototype;_.v.getWidth=function(){return this.right-this.left};
_.v.getHeight=function(){return this.bottom-this.top};
_.v.clone=function(){return new zP(this.top,this.right,this.bottom,this.left)};
_.v.contains=function(O){return this&&O?O instanceof zP?O.left>=this.left&&O.right<=this.right&&O.top>=this.top&&O.bottom<=this.bottom:O.x>=this.left&&O.x<=this.right&&O.y>=this.top&&O.y<=this.bottom:!1};
_.v.expand=function(O,m,G,B){_.Dp(O)?(this.top-=O.top,this.right+=O.right,this.bottom+=O.bottom,this.left-=O.left):(this.top-=O,this.right+=Number(m),this.bottom+=Number(G),this.left-=Number(B));return this};
_.v.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};
_.v.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};
_.v.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};
_.v.translate=function(O,m){O instanceof _.yD?(this.left+=O.x,this.right+=O.x,this.top+=O.y,this.bottom+=O.y):(this.left+=O,this.right+=O,typeof m==="number"&&(this.top+=m,this.bottom+=m));return this};
_.v.scale=function(O,m){m=typeof m==="number"?m:O;this.left*=O;this.right*=O;this.top*=m;this.bottom*=m;return this};var De=function(O,m,G,B){this.left=O;this.top=m;this.width=G;this.height=B};
_.v=De.prototype;_.v.clone=function(){return new De(this.left,this.top,this.width,this.height)};
_.v.boundingRect=function(O){var m=Math.max(this.left+this.width,O.left+O.width),G=Math.max(this.top+this.height,O.top+O.height);this.left=Math.min(this.left,O.left);this.top=Math.min(this.top,O.top);this.width=m-this.left;this.height=G-this.top};
_.v.contains=function(O){return O instanceof _.yD?O.x>=this.left&&O.x<=this.left+this.width&&O.y>=this.top&&O.y<=this.top+this.height:this.left<=O.left&&this.left+this.width>=O.left+O.width&&this.top<=O.top&&this.top+this.height>=O.top+O.height};
_.v.distance=function(O){var m=O.x<this.left?this.left-O.x:Math.max(O.x-(this.left+this.width),0);O=O.y<this.top?this.top-O.y:Math.max(O.y-(this.top+this.height),0);return Math.sqrt(m*m+O*O)};
_.v.getSize=function(){return new _.hY(this.width,this.height)};
_.v.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};
_.v.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};
_.v.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};
_.v.translate=function(O,m){O instanceof _.yD?(this.left+=O.x,this.top+=O.y):(this.left+=O,typeof m==="number"&&(this.top+=m));return this};
_.v.scale=function(O,m){m=typeof m==="number"?m:O;this.left*=O;this.width*=O;this.top*=m;this.height*=m;return this};var S9p,P4,MES,N0,ohp,Cys,lxu,P46,axu,ys2;_.sb=function(O,m,G){if(typeof m==="string")(m=_.pb_(O,m))&&(O.style[m]=G);else for(var B in m){G=O;var Q=m[B],H=_.pb_(G,B);H&&(G.style[H]=Q)}};
S9p={};_.pb_=function(O,m){var G=S9p[m];if(!G){var B=_.hc(m);G=B;O.style[B]===void 0&&(B=(_.Ug?"Webkit":_.qQ?"Moz":null)+Gpp(B),O.style[B]!==void 0&&(G=B));S9p[m]=G}return G};
_.Wc=function(O,m){var G=_.Y6(O);return G.defaultView&&G.defaultView.getComputedStyle&&(O=G.defaultView.getComputedStyle(O,null))?O[m]||O.getPropertyValue(m)||"":""};
_.ee=function(O,m){return _.Wc(O,m)||(O.currentStyle?O.currentStyle[m]:null)||O.style&&O.style[m]};
_.Eh_=function(O){return _.ee(O,"position")};
P4=function(O,m,G){if(m instanceof _.yD){var B=m.x;m=m.y}else B=m,m=G;O.style.left=N0(B,!1);O.style.top=N0(m,!1)};
MES=function(O){try{return O.getBoundingClientRect()}catch(m){return{left:0,top:0,right:0,bottom:0}}};
_.d9=function(O){var m=_.Y6(O),G=new _.yD(0,0);if(O==(m?_.Y6(m):document).documentElement)return G;O=MES(O);m=uC(jS(m));G.x=O.left+m.x;G.y=O.top+m.y;return G};
_.LAs=function(O,m,G){if(m instanceof _.hY)G=m.height,m=m.width;else if(G==void 0)throw Error("oa");O.style.width=N0(m,!0);O.style.height=N0(G,!0)};
N0=function(O,m){typeof O=="number"&&(O=(m?Math.round(O):O)+"px");return O};
ohp=function(O){return Cys(O)};
Cys=function(O){var m=lxu;if(_.ee(O,"display")!="none")return m(O);var G=O.style,B=G.display,Q=G.visibility,H=G.position;G.visibility="hidden";G.position="absolute";G.display="inline";O=m(O);G.display=B;G.position=H;G.visibility=Q;return O};
lxu=function(O){var m=O.offsetWidth,G=O.offsetHeight,B=_.Ug&&!m&&!G;return(m===void 0||B)&&O.getBoundingClientRect?(O=MES(O),new _.hY(O.right-O.left,O.bottom-O.top)):new _.hY(m,G)};
P46=function(O){var m=_.d9(O);O=Cys(O);return new De(m.x,m.y,O.width,O.height)};
axu=function(O,m){O=O.style;"opacity"in O?O.opacity=m:"MozOpacity"in O?O.MozOpacity=m:"filter"in O&&(O.filter=m===""?"":"alpha(opacity="+Number(m)*100+")")};
_.OR=function(O,m){O.style.display=m?"":"none"};
_.ku2=function(O){return"rtl"==_.ee(O,"direction")};
ys2=function(O){var m=_.Wc(O,"marginLeft"),G=_.Wc(O,"marginRight"),B=_.Wc(O,"marginTop");O=_.Wc(O,"marginBottom");return new zP(parseFloat(B),parseFloat(G),parseFloat(O),parseFloat(m))};
_.cs8=function(O){var m=_.Wc(O,"borderLeftWidth"),G=_.Wc(O,"borderRightWidth"),B=_.Wc(O,"borderTopWidth");O=_.Wc(O,"borderBottomWidth");return new zP(parseFloat(B),parseFloat(G),parseFloat(O),parseFloat(m))};var F9=function(O){this.context=O};
F9.prototype.isSupported=function(O){return(O==null?0:O.attributionEnabled)||(O==null?void 0:O.beaconMethod)==="POST"||(O==null?0:O.customHeaders)||(O==null?0:O.customBody)||(O==null?0:O.keepAlive)?!1:!u4(this.context)};
F9.prototype.ping=function(){var O=this;return p_(_.eA.apply(0,arguments).map(function(m){try{var G=O.context.global,B=!1;B=B===void 0?!1:B;G.google_image_requests||(G.google_image_requests=[]);var Q=Bo$("IMG",G.document);B&&(Q.attributionSrc="");Q.src=m;G.google_image_requests.push(Q);return!0}catch(H){return!1}}).every(function(m){return m}))};
F9.prototype.pingWithHeadersAndBody=function(O,m,G){this.ping.apply(this,_.lS(_.eA.apply(3,arguments)))};var Y9U=function(O){this.context=O};
Y9U.prototype.isSupported=function(O){return dJo&&!u4(this.context)&&lnN(this.context)!==void 0&&!(O==null?0:O.attributionEnabled)&&(O==null?void 0:O.beaconMethod)!=="POST"&&!(O==null?0:O.customHeaders)&&!(O==null?0:O.customBody)};
Y9U.prototype.makeBeacon=function(O,m){if(!this.isSupported(m))throw new X9;return new AR(this.context,O)};
var dJo=!1,AR=function(O,m){this.context=O;this.JSC$9348_urlWithoutToken=m;O=lnN(this.context);if(O===void 0)throw Error();this.wrappedBeacon=new O(wbU(this),{})},wbU=function(O){O=O.JSC$9348_urlWithoutToken;
return(O.slice(-1)[0]==="&"?O:O+"&")+"pbapi=1"};
AR.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
AR.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
AR.prototype.setHeader=function(){};
_.vr.Object.defineProperties(AR.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9348_urlWithoutToken},
set:function(O){this.JSC$9348_urlWithoutToken=O;this.wrappedBeacon.setURL(wbU(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(O){if(O!=="GET")throw new X9;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var e0j=function(O){this.context=O};
e0j.prototype.isSupported=function(O){if((O==null?0:O.attributionEnabled)||(O==null?void 0:O.beaconMethod)==="GET"||(O==null?0:O.customHeaders)||(O==null?0:O.customBody)||(O==null?0:O.keepAlive))return!1;var m;return!u4(this.context)&&((m=this.context.global.navigator)==null?void 0:m.sendBeacon)!==void 0};
e0j.prototype.ping=function(){var O=this;return p_(_.eA.apply(0,arguments).map(function(m){var G;return(G=O.context.global.navigator)==null?void 0:G.sendBeacon(m)}).every(function(m){return m}))};
e0j.prototype.pingWithHeadersAndBody=function(O,m,G){this.ping.apply(this,_.lS(_.eA.apply(3,arguments)))};var Xy=function(O){this.value=O},Bh=function(O,m){return p_(O.value).pipe(bC(m))},Hh=new Xy(!1),VxY=new Xy(!0);var eS=function(O){this.value=O;this.releasedSubject=new JY};
eS.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.vr.Object.defineProperties(eS.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9361_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var FsI=["FRAME","IMG","IFRAME"],wYM=/^[01](px)?$/,PCO=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},N9e=function(){var O=new PCO;
O.crossDomainLoadedDefault=!0;O.pendingImagesBlockLoad=!0;return O};var DJ3=function(O,m){var G=Hds(O);if(G)if(G.onCreativeLoad)G.onCreativeLoad(m);else{var B=m?[m]:[],Q=function(H){for(var M=0;M<B.length;++M)try{B[M](1,H)}catch(R){}B={push:function(R){R(1,H)}}};
G.onCreativeLoad=function(H){B.push(H)};
G.setAttribute("data-creative-load-listener","");G.addEventListener("creativeLoad",function(H){Q(H.detail)});
_.Qf.addEventListener("message",function(H){Qwp(G,Q,H)})}};var O2=function(O,m){var G=this;this.global=O;this.parentContext=m;this.JSC$9372_onVisibilityChange=this.document?dC(p_(!0),ci(this.document,"visibilitychange")).pipe(NG(this.parentContext.performanceMonitor,748),oo(function(){return G.getVisibilityState()}),GP()):p_("visible");
this.document?ci(this.document,"DOMContentLoaded").pipe(NG(this.parentContext.performanceMonitor,739),O_(1)):p_(Y_N("DOMContentLoaded"))},JNs=function(O){return O.document!==null&&O.document.visibilityState!==void 0};
O2.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
O2.prototype.querySelector=function(O){return this.document?this.document.querySelector(O):null};
O2.prototype.querySelectorAll=function(O){return this.document?_.cM(this.document.querySelectorAll(O)):[]};
O2.prototype.elementFromPoint=function(O,m){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;O=this.document.elementFromPoint(O,m);return O===null?null:new eS(O)};
var Mx5=function(O,m,G){G=G===void 0?!1:G;if(m.ref===void 0||!O.document)return p_(m).pipe(NG(O.parentContext.performanceMonitor,749));var B=new KL(1),Q=function(){B.next(m)};
G||DJ3(m.ref,Q);AYs(m.ref,Q);return B.pipe(NG(O.parentContext.performanceMonitor,749),O_(1))};
_.vr.Object.defineProperties(O2.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return n6I(this.global,"document")?this.global.document||null:null}}});var vaO=_.FY(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),K_O=_.FY(["./reach_worklet.js"]),$Z6=_.FY(["./reach_worklet.js"]),s3$=_.FY(["./reach_worklet.html"]),Noj=_.FY(["./reach_worklet.js"]),Pyj=_.FY(["./reach_worklet.js"]);_.WY(s3$);_.WY(Noj);_.WY(Pyj);var Fy={left:0,top:0,width:0,height:0};var FA3,Aso,O9u,mP9,B7,B5U,QnC,H9j,Nxs,PNr,$P8,MA_;FA3=function(O,m,G,B,Q,H,M){var R="";O&&(R+=O+":");G&&(R+="//",m&&(R+=m+"@"),R+=G,B&&(R+=":"+B));Q&&(R+=Q);H&&(R+="?"+H);M&&(R+="#"+M);return R};
Aso=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.mM=function(O){return O.match(Aso)};
_.gJ=function(O,m){return O?m?decodeURI(O):decodeURIComponent(O):O};
O9u=function(O){O=_.mM(O)[1]||null;!O&&_.Qf.self&&_.Qf.self.location&&(O=_.Qf.self.location.protocol.slice(0,-1));return O?O.toLowerCase():""};
_.Gg=function(O){return _.gJ(_.mM(O)[3]||null,!0)};
_.JE=function(O){return _.gJ(_.mM(O)[5]||null,!0)};
_.yBf=function(O){var m=O.indexOf("#");return m<0?null:O.slice(m+1)};
mP9=function(O){O=_.mM(O);return FA3(O[1],O[2],O[3],O[4])};
_.Gcj=function(O){O=_.mM(O);return FA3(O[1],null,O[3],O[4])};
_.Pr=function(O){O=_.mM(O);return FA3(null,null,null,null,O[5],O[6],O[7])};
_.Hd=function(O){var m=O.indexOf("#");return m<0?O:O.slice(0,m)};
B7=function(O,m){O=_.mM(O);m=_.mM(m);return O[3]==m[3]&&O[1]==m[1]&&O[4]==m[4]};
B5U=function(O,m){if(O){O=O.split("&");for(var G=0;G<O.length;G++){var B=O[G].indexOf("="),Q=null;if(B>=0){var H=O[G].substring(0,B);Q=O[G].substring(B+1)}else H=O[G];m(H,Q?H7(Q):"")}}};
QnC=function(O){var m=O.indexOf("#");m<0&&(m=O.length);var G=O.indexOf("?");if(G<0||G>m){G=m;var B=""}else B=O.substring(G+1,m);return[O.slice(0,G),B,O.slice(m)]};
H9j=function(O,m){return m?O?O+"&"+m:m:O};
_.v0H=function(O,m){if(!m)return O;O=QnC(O);O[1]=H9j(O[1],m);return O[0]+(O[1]?"?"+O[1]:"")+O[2]};
_.Ka9=function(O,m,G){if(Array.isArray(m))for(var B=0;B<m.length;B++)_.Ka9(O,String(m[B]),G);else m!=null&&G.push(O+(m===""?"":"="+_.sZ(m)))};
_.bb=function(O){var m=[],G;for(G in O)_.Ka9(G,O[G],m);return m.join("&")};
_.Oe=function(O,m){m=_.bb(m);return _.v0H(O,m)};
_.mi=function(O,m,G){G=G!=null?"="+_.sZ(G):"";return _.v0H(O,m+G)};
Nxs=function(O,m,G,B){for(var Q=G.length;(m=O.indexOf(G,m))>=0&&m<B;){var H=O.charCodeAt(m-1);if(H==38||H==63)if(H=O.charCodeAt(m+Q),!H||H==61||H==38||H==35)return m;m+=Q+1}return-1};
PNr=/#|$/;_.s0=function(O,m){var G=O.search(PNr),B=Nxs(O,0,m,G);if(B<0)return null;var Q=O.indexOf("&",B);if(Q<0||Q>G)Q=G;B+=m.length+1;return H7(O.slice(B,Q!==-1?Q:0))};
$P8=/[?&]($|#)/;_.Kr=function(O,m){for(var G=O.search(PNr),B=0,Q,H=[];(Q=Nxs(O,B,m,G))>=0;)H.push(O.substring(B,Q)),B=Math.min(O.indexOf("&",Q)+1||G,G);H.push(O.slice(B));return H.join("").replace($P8,"$1")};
_.cH=function(O,m,G){return _.mi(_.Kr(O,m),m,G)};
MA_=function(O){var m=QnC(window.location.href),G=m[1],B=[];G&&G.split("&").forEach(function(Q){var H=Q.indexOf("=");H=H>=0?Q.slice(0,H):Q;O.hasOwnProperty(H)||B.push(Q)});
m[1]=H9j(B.join("&"),_.bb(O));return m[0]+(m[1]?"?"+m[1]:"")+m[2]};var gaO=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(gaO,_.MP);gaO.prototype.getVersion=function(){return _.Eg(this,2)};var T_e=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(T_e,_.MP);var VeS=function(O,m){return _.SS(O,2,m)},hE5=function(O,m){return _.SS(O,3,m)};
T_e.prototype.getModel=function(){return _.Eg(this,4)};
var naf=function(O,m){return _.SS(O,4,m)},JFM=function(O,m){return _.SS(O,5,m)},fZY=function(O,m){return _.SS(O,9,m)},zEY=function(O,m){return g7(O,10,m)},ZdN=function(O,m){return _.tF(O,11,m)},bdf=function(O,m){return _.SS(O,1,m)},Xh5=function(O,m){return _.tF(O,7,m)};var teM="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var QV=function(O,m,G,B){O=O===void 0?window:O;m=m===void 0?null:m;G=G===void 0?new bNo:G;B=B===void 0?Mer():B;WUs.call(this);var Q=this;this.global=O;this.debugChannel=m;this.performanceMonitor=G;this.onPageHide=NCN(function(){return ci(Q.global,"pagehide")}).pipe(NG(this.performanceMonitor,941));
this.onLoad=NCN(function(){return ci(Q.global,"load")}).pipe(NG(this.performanceMonitor,738),O_(1));
this.onResize=NCN(function(){return ci(Q.global,"resize")}).pipe(NG(this.performanceMonitor,741));
this.onMessage=NCN(function(){return ci(Q.global,"message")}).pipe(NG(this.performanceMonitor,740));
this.document=new O2(this.global,this);this.timeProvider=new n93(new fHp(this.intrinsicFunctionNamespace,this.performanceMonitor),new Xse(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Jm2(new T8C(this),new Y9U(this),new hR(this,new jj2(this)),new hR(this,new e0j(this)),new hR(this,new F9(this)))};
_.X(QV,WUs);var u4=function(O){var m=O.global;return!!O.global.HTMLFencedFrameElement&&!!m.fence&&typeof m.fence.reportEvent==="function"};
_.v=QV.prototype;_.v.reportFencedFrameEvent=function(O){u4(this)&&this.global.fence.reportEvent(O)};
_.v.getOnBackgrounded=function(){return this.onPageHide.pipe(NG(this.performanceMonitor,942),bC(this.queue),oo(function(){}))};
_.v.postMessage=function(O,m,G){G=G===void 0?[]:G;this.global.postMessage(O,m,G)};
_.v.getWidth=function(){return XYI(this.global)?this.global.width:0};
_.v.getHeight=function(){return XYI(this.global)?this.global.height:0};
_.v.isMobile=function(){return S3H()||E9p()};
var Dn=function(O,m){try{var G=xZf(m,O.global,O.isMobile());return{left:G.left,top:G.top,width:G.getWidth(),height:G.getHeight()}}catch(B){return Fy}};
QV.prototype.validate=function(){var O=this.beaconFactory.isSupported()||u4(this);return this.global&&this.timeProvider.available()&&O};
var kPN=function(O){return(O=jwf(O.global))?bS(O):null};
_.vr.Object.defineProperties(QV.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(O){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!XYI(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}}});_.rL3=!_.xF&&!_.rzS();var bnO=function(O){return O};var XxN=function(O){return O.pipe(eu(function(m){var G=m.endOfSessionReason;var B;return((B=m.viewable)==null?void 0:B.extrapolateToNow().value)||G!=void 0}),O_(1),FP())};var oaN=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},lZz=function(O){var m=O.sequenceNumber.toString(10).padStart(2,"0");
m=""+O.startTime+m;O.sequenceNumber<99&&O.sequenceNumber++;return m};var z26=Z9(iC(function(O){return O.endOfSessionReason===void 0}),oo(function(O){return Object.assign({},O,{timestamps:LL(O)})}),eu(function(O){var m=O.viewable;
O=O.timestamps;var G;return(G=m==null?void 0:m.extrapolateUsingTimestampMap(O).value)!=null?G:!1}),oo(function(O){var m=O.beaconFactory;
var G=O.timestampedExposureHistory;var B=O.timeOnScreen;var Q=O.binaryContext;O=O.timestamps;if(m===void 0||G===void 0||B===void 0||Q===void 0)return!1;if(B.extrapolateUsingTimestampMap(O).value.every(function(H){return H>=0}))return!0;
G=G.map(function(H){return H.timestamp+":"+H.value}).join(",");
B=aZs({bin:Q,tos:B},O);m.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+B+("&eh="+G)).sendNow();return!0}),iC(function(O){return!O}),FP());var yFM=function(O){return{id:O.pingId,mcvt:O.maxConsecutiveViewTime,p:O.creativePosition,asp:O.adSpeedPosition,tm:O.totalMeasurementTime,tu:O.totalUnviewedTime,mtos:O.maxTimeOnScreen,tos:O.timeOnScreen,v:O.binaryVersion,bin:O.binaryContext,avms:O.measurementStrategy,bs:O.browserSize,mc:O.maximumExposure,"if":O.crossDomainIframeState,vu:O.delayedImpressionJsState,app:O.inApp,mse:O.mraidError,mtop:O.mraidSituation,itpl:O.injectedTemplateId,adk:O.adKey,exk:O.awbidKey,rs:O.requestSource,la:O.isLargeAd,
cr:O.isContentRecommendationAd,uach:O.userAgentClientHints,vs:O.viewState,r:O.reasonCode,pay:O.hasCpmavUrl,co:O.clientPingOrderCounter,rst:O.adRenderStartTime,rpt:O.adRenderPeriodTime,isd:O.initialScrollDepth,lsd:O.loadedScrollDepth,context:O.errorContext,msg:O.errorMessage,stack:O.errorStack,name:O.errorName,ec:O.hasElementChanged,sfr:O.strategyFailureReasons,met:O.creativeSearchResult,wmsd:O.webMeasurementStartDiagnostic,pv:O.pageVisible,epv:O.eosPageVisible,pbe:O.inStatefulBeaconExperiment,fle:O.inFetchLaterBeaconExperiment,
vae:O.inViewableAttributionExperiment,spb:O.supportsPendingBeacon,sfl:O.supportsFetchLater,ffslot:O.isFencedFrameSlotTurtlex,reach:O.sharedStorageReachMode,io2:O.v2VisibilityBitVector,rxdbg:O.rxDebugger,omida:O.omidAppId,omidp:O.omidPartner,omidpv:O.omidPartnerVersion,omidor:O.omidOcclusionReasons,omidv:O.omidVersion,omids:O.omidSessionType,omidam:O.omidAccessMode,omidct:O.omidCreativeType,omidia:O.omidInApp,omiddc:O.omidDeviceCategory,omidlat:O.omidLastActivity,omiddit:O.omidDeviceIdleTime,qid:O.errorEscapedQueryId}};var nBe=function(O){var m=[];return O.pipe(oo(function(G){var B=G.beaconFactory,Q=G.fetchBeaconFactory,H=G.timeOnScreen,M=G.timeOnScreenUrlPrefixes,R=G.payloadMapper,x=G.timeOnScreenPingId,t=G.timeOnScreenReason,W=G.urlSerializer,Z=G.viewable,z=G.hasImpressionFired,J=G.inStatefulBeaconExperiment,n=G.supportsPendingBeacon,I=G.supportsFetchLater,S=G.turtlexReportEventData;if(!G.geometryMeasurable||!z||G.maxTimeOnScreen===void 0||H===void 0||M===void 0||R===void 0||x===void 0||W===void 0||B===void 0)return!1;
if(G.isTurtlex){if(t===void 0)return!1;M=G.reportFencedFrameEvent;if(!M)return!1;M({eventType:"active-view-time-on-screen",eventData:S!=null?S:"",destination:["buyer"]});return!0}if(!(J||I||t))return!1;S=LL(G);var L;Z=(L=Z==null?void 0:Z.extrapolateUsingTimestampMap(S).value)!=null?L:!1;L=W(Object.assign({},G,{pingId:x,viewState:Z?4:3,reasonCode:t!=null?t:"u",payloadMapper:R,urlPrefixes:M}),S);if(J){for(;m.length>M.length;)G=void 0,(G=m.shift())==null||G.deactivate();L.forEach(function(P,w){w>=m.length?
m.push(B.makeBeacon(P)):m[w].url=P});
return n&&Q&&t!==void 0?(L.forEach(function(P){Q.makeBeacon(P).sendNow()}),!0):t!==void 0}if(n&&Q&&t!==void 0)return L.forEach(function(P){Q.makeBeacon(P).sendNow()}),!0;
if(I&&Q){for(;m.length>M.length;)n=void 0,(n=m.shift())==null||n.deactivate();var C=W(Object.assign({},G,{pingId:x,viewState:Z?4:3,reasonCode:t!=null?t:"u",payloadMapper:R,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),S)[0];L.forEach(function(P,w){w>=m.length?m.push(B.makeBeacon(C,{endOfSession:!0})):m[w].url=C});
return t!==void 0?(L.forEach(function(P){Q.makeBeacon(P).sendNow()}),!0):t!==void 0}return t!==void 0?(L.forEach(function(P){B.makeBeacon(P).sendNow()}),!0):!1}),iC(function(G){return!G}),FP())};var fyr=Z9(eu(function(O){return O.immediateUrlPrefixes!==void 0&&O.payloadMapper!==void 0&&O.urlSerializer!==void 0&&O.inferredPingId!==void 0&&O.beaconFactory!==void 0}),eu(function(O){return N_I(O)!==null}),DZe(function(O){return O.activeViewUnmeasurableEvent},function(O){return O.emit}),oo(function(O){if(O.isTurtlex){var m=O.reportFencedFrameEvent;
if(m){var G;m({eventType:"active-view-unmeasurable",eventData:(G=O.turtlexReportEventData)!=null?G:"",destination:["buyer"]})}}else{G=void 0;var B=N_I(O);if(B==="x"){var Q,H=(Q=O.geometricMeasurementErrors)!=null?Q:O.contextValidationErrors;H&&(m=H.stack,G=H.message)}O.urlSerializer(Object.assign({},O,{urlPrefixes:O.immediateUrlPrefixes,payloadMapper:O.payloadMapper,pingId:O.inferredPingId,viewState:2,reasonCode:B,errorMessage:G,errorStack:m}),LL(O)).forEach(function(M){O.beaconFactory.makeBeacon(M).sendNow()})}}),
O_(1),FP());var Pjr=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Znp=Z9(eu(function(O){return O.payloadMapper!==void 0&&O.immediateUrlPrefixes!==void 0&&O.urlSerializer!==void 0&&O.inferredPingId!==void 0&&O.beaconFactory!==void 0}),oo(function(O){return Object.assign({},O,{timestamps:LL(O)})}),eu(function(O){var m=O.viewable;
var G=O.hasImpressionFired;O=O.timestamps;var B;return!!G&&((B=m==null?void 0:m.extrapolateUsingTimestampMap(O).value)!=null?B:!1)}),DZe(function(O){return O.activeViewViewableEvent},function(O){return O.emit}),oo(function(O){var m=O.beaconFactory,G=O.turtlexReportEventData;
if(O.isTurtlex){var B=O.reportFencedFrameEvent;if(!B)return!1;B({eventType:"active-view-viewable",eventData:G!=null?G:"",destination:["buyer"]});return!0}G=O.urlSerializer(Object.assign({},O,{urlPrefixes:O.immediateUrlPrefixes,payloadMapper:O.payloadMapper,pingId:O.inferredPingId,viewState:4,reasonCode:"v"}),O.timestamps);(B=O.cpmavUrls)&&B.length>0&&O.viewUrlSerializer&&O.viewUrlSerializer(B,O).forEach(function(Q){m.makeBeacon(Q).sendNow()});
(B=O.viewableRelayUrls)&&B.length>0&&O.viewUrlSerializer&&O.viewUrlSerializer(B,O).forEach(function(Q){m.makeBeacon(Q).sendNow()});
G.forEach(function(Q){m.makeBeacon(Q,{attributionEnabled:O.isViewableAttributionEnabled}).sendNow()});
return!0}),iC(function(O){return!O}),FP());var y0I=oo(function(O){return[O.value.topWindowViewportExternalGeometry.width,O.value.topWindowViewportExternalGeometry.height]});var NM=function(O,m){this.callback=O;this.options=m;this.intersectionObserverV2=this.intersectionObserverV1=null},nvO=function(O,m){m?O.intersectionObserverV2||(m=Object.assign({},O.options,{delay:100,
trackVisibility:!0}),O.intersectionObserverV2=new IntersectionObserver(O.callback,m)):O.intersectionObserverV1||(O.intersectionObserverV1=new IntersectionObserver(O.callback,O.options))},RoU=function(O,m){O=m?O.intersectionObserverV2:O.intersectionObserverV1;
if(!O)throw new Z$m;return O};
NM.prototype.observe=function(O,m){RoU(this,O).observe(m)};
NM.prototype.unobserve=function(O,m){RoU(this,O).unobserve(m)};
NM.prototype.disconnect=function(O){RoU(this,O).disconnect()};
NM.prototype.takeRecords=function(O){return RoU(this,O).takeRecords()};var Rlz={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Fy,topWindowViewportExternalGeometry:Fy,measurementRequests:new JY,elementGeometrySourceName:"ns",elementGeometry:Fy,intersectionGeometry:Fy,viewportLocalAppOffset:{x:0,y:0}};var j9e=AY(Z9(oo(function(O){var m;return(m=O.exposureOverride)!=null?m:fKp(O)}),oo(function(O){return isFinite(O)?O:0}))),ovN=AY(Z9(oo(function(O){var m;
return(m=O.exposureOverride)!=null?m:fKp(O)}),oo(function(O){return isFinite(O)?O:-1})));var GZ=function(O,m){this.a=O;this.b=m;if(O.clock.timeline!==m.clock.timeline)throw Error();};
GZ.prototype.equivalentTo=function(O){return O instanceof GZ?this.a.equivalentTo(O.a)&&this.b.equivalentTo(O.b):!1};
GZ.prototype.extrapolateToTime=function(O){var m=this.a.extrapolateToTime(O).value,G=this.b.extrapolateToTime(O).value;return{timestamp:O,value:[m,G]}};
_.vr.Object.defineProperties(GZ.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 O=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),m=this.a.lastMeasurement.timestamp.equals(O)?this.a.lastMeasurement.value:this.a.extrapolateToTime(O).value,G=this.b.lastMeasurement.timestamp.equals(O)?this.b.lastMeasurement.value:this.b.extrapolateToTime(O).value;return{timestamp:O,value:[m,G]}}}});var Bk=function(O,m){this.input=O;this.mapFunction=m;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Bk.prototype.equivalentTo=function(O){return O instanceof Bk?this.input.equivalentTo(O.input)&&this.mapFunction===O.mapFunction:!1};
Bk.prototype.extrapolateToTime=function(O){O=this.input.extrapolateToTime(O);return{timestamp:O.timestamp,value:this.mapFunction(O.value)}};
_.vr.Object.defineProperties(Bk.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Qy=function(){};
Qy.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Qy.prototype.extrapolateUsingTimestampMap=function(O){var m=this.clock.timeline,G,B=(G=O.get(m))!=null?G:this.clock.now();O.set(m,B);return this.extrapolateToTime(B)};
Qy.prototype.map=function(O){return new i92(this,O)};
Qy.prototype.joinWith=function(O){return new xP9(this,O)};
var xP9=function(){GZ.apply(this,arguments);this.map=Qy.prototype.map;this.joinWith=Qy.prototype.joinWith;this.extrapolateToNow=Qy.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Qy.prototype.extrapolateUsingTimestampMap};
_.X(xP9,GZ);var i92=function(){Bk.apply(this,arguments);this.map=Qy.prototype.map;this.joinWith=Qy.prototype.joinWith;this.extrapolateToNow=Qy.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Qy.prototype.extrapolateUsingTimestampMap};
_.X(i92,Bk);var m_=function(O,m){this.lastMeasurement=m;this.extrapolateToNow=Qy.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Qy.prototype.extrapolateUsingTimestampMap;this.map=Qy.prototype.map;this.joinWith=Qy.prototype.joinWith;this.clock=O};
m_.prototype.equivalentTo=function(O){return O.active};
m_.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.vr.Object.defineProperties(m_.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var kJp=oo(function(O){if(O.value.viewportGeometrySourceName==="omid"){if(O.value.elementGeometrySourceName==="nio")return"omio";if(O.value.elementGeometrySourceName==="geo")return"omgeo"}return O.value.elementGeometrySourceName==="geo"||O.value.elementGeometrySourceName==="nio"?O.value.viewportGeometrySourceName:O.value.elementGeometrySourceName});var Thz=Z9(eu(function(O){return!isNaN(O)}),MM(function(O,m){return isNaN(O)?m:Math.min(O,m)},NaN),GP());var IKO=AY(Z9(oo(function(O){return O.intersectionGeometry.width*O.intersectionGeometry.height/(O.exposedViewportLocalGeometry.width*O.exposedViewportLocalGeometry.height)}),oo(function(O){return isFinite(O)?Math.min(1,O):0})));var aKr=Z9(AY(oo(function(O){O=O.exposureOverride?O.elementGeometry.width*O.elementGeometry.height*O.exposureOverride/(O.topWindowViewportExternalGeometry.width*O.topWindowViewportExternalGeometry.height):O.intersectionGeometry.width*O.intersectionGeometry.height/(O.topWindowViewportExternalGeometry.width*O.topWindowViewportExternalGeometry.height);return isFinite(O)?O:0})));var d_6=function(O,m){var G=this;this.timeProvider=O;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=m.pipe(GP()).subscribe(function(B){elf(G);G.measurementRequestObserver=B})},D_S=function(O,m){elf(O);
O.lastMeasurementRequest=O.timeProvider.setTimeout(function(){var G;return void((G=O.measurementRequestObserver)==null?void 0:G.next())},m)},elf=function(O){O.lastMeasurementRequest!==null&&O.timeProvider.clearTimeout(O.lastMeasurementRequest);
O.lastMeasurementRequest=null};
d_6.prototype.dispose=function(){elf(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var qhU=function(){};var UrS=function(O,m){this.context=O;this.strategies=m};
_.X(UrS,qhU);UrS.prototype.buildGeometrySource=function(O,m){var G=this.strategies.map(function(H){return H.buildGeometrySource(O,m)}),B=A0f(G.map(function(H){return H.geometrySource})),Q=B.capturedErrors.pipe(UPs());
return{geometrySource:B.chain.pipe(bC(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:Q,strategyErrors:B.capturedErrors}].concat(_.lS(G.map(function(H){return H.additionalOutputs}))))}};
var UPs=function(){return MM(function(O,m){m instanceof oM?O.push(m.measurementStrategyFailureReason):O.push(-1);return O},[])};var Wm5=function(O,m){this.context=O;this.poller=m};
_.X(Wm5,qhU);Wm5.prototype.buildGeometrySource=function(O,m){var G=OnN(GnS(this.context,this.poller),iSz(this.context,m.requestSource));return{geometrySource:FNs(O.measurableCreative.pipe(G),m.inApp),additionalOutputs:{}}};var txf=function(O,m,G){G=G===void 0?ZSY(O,m):G;this.context=O;this.intersectionObserverStrategy=G};
_.X(txf,qhU);txf.prototype.buildGeometrySource=function(O,m){var G=this.intersectionObserverStrategy(m.useV2);return{geometrySource:FNs(O.measurableCreative.pipe(G,zlN(this.context)),m.inApp),additionalOutputs:{}}};var tAj=function(O,m,G){var B=B===void 0?Symbol():B;this.element=O;this.immediateUrls=m;this.timeOnScreenUrls=G;this.symbol=B};var YRS=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Kmp=Object.freeze([1,.75,YRS.exposureThreshold,YRS.largeAdExposureThreshold,0]);var $FO=function(O,m){m=m===void 0?36E5:m;var G=G===void 0?!0:G;this.creatives=new JY;this.elementsToUnregister=new JY;this.elementMap=new Map;var B=new QV(window,null);B.beaconFactory=new hR(B,new F9(B));qZN(B,this.creatives,this.elementsToUnregister,O,m,G).subscribe()},RDf=function(O,m,G,B){if(!O.elementMap.has(m)){var Q=new eS(m);
O.elementMap.set(m,Q);O.creatives.next(new tAj(Q,G,B))}},rPI=function(O,m){O.elementsToUnregister.next(m);
var G=O.elementMap.get(m);G!==void 0&&(G.release(),O.elementMap.delete(m))};var XEY=function(O){var m=O.url;O=O.uaDataValues;this.JSC$9477_url_=m;this.uaDataValues_=O;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var G=/[?&]([^&=]+)=([^&]*)/g;O=G.exec(m);)this.urlParamValues_[O[1]]=O[2]},fBr=function(O){O=O.uaDataValues_;
if(!O)return"";var m=vh("uap",O.platform)+vh("uapv",O.platformVersion)+vh("uafv",O.uaFullVersion)+vh("uaa",O.architecture)+vh("uam",O.model)+vh("uab",O.bitness);O.fullVersionList&&(m+="&uafvl="+encodeURIComponent(O.fullVersionList.map(function(G){return encodeURIComponent(G.brand)+";"+encodeURIComponent(G.version)}).join("|")));
O.wow64!=null&&(m+="&uaw="+Number(O.wow64));return m.slice(1)};var Wa3=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Wa3,_.MP);Wa3.prototype.getId=function(){return _.Eg(this,1)};var Hk=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Hk,_.MP);Hk.prototype.getSeconds=function(){return pq(this,1)};
Hk.prototype.setSeconds=function(O){return _.ma(this,1,R3(O),"0")};_.o$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(_.o$,_.MP);_.o$.prototype.getSeconds=function(){return pq(this,1)};
_.o$.prototype.setSeconds=function(O){return _.ma(this,1,R3(O),"0")};
_.Z9U=function(O){var m=Number(Cq(O,1));O=_.ij(O,2);return new Date(m*1E3+O/1E6)};var vk=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(vk,_.MP);vk.prototype.getUrl=function(){return _.Eg(this,1)};
vk.prototype.setUrl=function(O){return _.sp(this,1,O)};
vk.prototype.getHeight=function(){return _.ij(this,2)};
vk.prototype.getWidth=function(){return _.ij(this,3)};var Ky=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Ky,_.MP);Ky.prototype.getAspectRatio=function(){return SZ(this,1)};
Ky.prototype.getDuration=function(){return _.RO(this,Hk,2)};var zoo=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(zoo,_.MP);var JL3=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(JL3,_.MP);var VAU=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(VAU,_.MP);var b99=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(b99,_.MP);var n02=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(n02,_.MP);var X89=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(X89,_.MP);var fq3=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(fq3,_.MP);var hop=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(hop,_.MP);var T5u=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(T5u,_.MP);var $N=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X($N,_.MP);var Mv=[2,4,5,6,7];var g0C=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(g0C,_.MP);var ug=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(ug,_.MP);_.v=ug.prototype;_.v.getId=function(){return _.RO(this,Wa3,1)};
_.v.getName=function(){return _.Eg(this,2)};
_.v.setDescription=function(O){return _.sp(this,3,O)};
_.v.getUrl=function(){return _.Eg(this,8)};
_.v.setUrl=function(O){return _.sp(this,8,O)};
var r6=function(O){return _.r_(O,vk,10,_.Rw())};
ug.prototype.getOwner=function(O){var m=_.Pb(this,40,_.by,3,!0);wM5(m,O);return m[O]};
ug.prototype.getVersion=function(){return pq(this,45)};
var R7=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(R7,_.MP);_.il=[0,Pp,Rjr];_.xN=[0,Pp,Rjr];var ucj=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(ucj,_.MP);var qv=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(qv,_.MP);qv.prototype.getStatus=function(){return _.Lq(this,1)};
qv.prototype.removeItem=function(O){return blM(this,2,O)};var jn8=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(jn8,_.MP);jn8.prototype.getName=function(){return _.Eg(this,8)};var U2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(U2,_.MP);U2.prototype.getCommand=function(){return _.Lq(this,1)};
U2.prototype.getSource=function(){return _.RO(this,jn8,2)};
U2.prototype.setVisible=function(O){return _.oq(this,5,O)};
U2.prototype.removeItem=function(O){return blM(this,7,O)};var Iqu=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Iqu,_.MP);Iqu.prototype.getCommand=function(){return _.Lq(this,1)};
Iqu.prototype.removeItem=function(O){return blM(this,4,O)};
var p83=_.bG(Iqu);var t$=function(O,m,G){G=G===void 0?Error():G;var B=Error.call(this);this.message=B.message;"stack"in B&&(this.stack=B.stack);this.code=O;m+=":";G instanceof Error?(this.message=m+G.message,this.stack=G.stack||""):(this.message=m+String(G),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.X(t$,Error);_.Iw=function(){this.JSC$9535_disposed_=this.JSC$9535_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Iw.prototype.JSC$9535_disposed_=!1;_.Iw.prototype.isDisposed=function(){return this.JSC$9535_disposed_};
_.Iw.prototype.dispose=function(){this.JSC$9535_disposed_||(this.JSC$9535_disposed_=!0,this.disposeInternal())};
_.Iw.prototype[Symbol.dispose]=function(){this.dispose()};
_.VV=function(O,m){O.addOnDisposeCallback(_.hK(_.Kd,m))};
_.Iw.prototype.addOnDisposeCallback=function(O,m){this.JSC$9535_disposed_?m!==void 0?O.call(m):O():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),m&&(O=O.bind(m)),this.onDisposeCallbacks_.push(O))};
_.Iw.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Wk=function(O){_.Iw.call(this);this.wpc=O};
_.X(Wk,_.Iw);Wk.prototype.d2l=function(){return this.wpc.f()};
Wk.prototype.qT0=function(O){return this.wpc.c(O)};
Wk.prototype.nZ=function(O){return this.wpc.m(j8O(O))};
Wk.prototype.vaa=function(O){return this.wpc.mws(j8O(O))};
var MZ=function(O){_.Iw.call(this);var m=this;this.vm=O;this.kBg="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.mMb=void 0;this.cAG=this.vm.p;this.j8Z=this.maG.bind(this);this.addOnDisposeCallback(function(){return void Sho(m)})};
_.X(MZ,_.Iw);var E0C=function(O){var m;return _.r(function(G){if(G.nextAddress==1){if(!O.vm.wpc)throw new t$(30,"NWA");return O.hcq?G.return(O.hcq):G.yield(O.vm.wpc(),2)}m=G.yieldResult;O.hcq=new Wk(m);return G.return(O.hcq)})};
MZ.prototype.snapshot=function(O){return this.vm.s(Object.assign({},O.fK&&{c:O.fK},O.abL&&{s:O.abL},O.noU!==void 0&&{p:O.noU}))};
MZ.prototype.maG=function(O){this.vm.e(O)};
MZ.prototype.g8G=function(O,m){return this.vm.c(O,m,!1)};
var Sho=function(O){O.mMb!==void 0&&(O.kBg.forEach(function(m){var G;(G=O.mMb)==null||G.removeEventListener(m,O.j8Z)}),O.mMb=void 0)};
MZ.prototype.xTI=function(){return this.vm.l()};var Zr=function(){_.Iw.apply(this,arguments);this.yHw=1};
_.X(Zr,_.Iw);Zr.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.yHw++;return this};
Zr.prototype.dispose=function(){--this.yHw||_.Iw.prototype.dispose.call(this)};var La2=function(O){this.mvy=O;O.addNewEventMetric("/client_streamz/bg/frs",_.U0("mk"))};
La2.prototype.record=function(O,m){this.mvy.record("/client_streamz/bg/frs",O,m)};
var CGp=function(O){this.kMG=O;O.addNewEventMetric("/client_streamz/bg/wrl",_.U0("mn"),qZ("ac"),qZ("sc"),_.U0("rk"),_.U0("mk"))};
CGp.prototype.record=function(O,m,G,B,Q,H){this.kMG.record("/client_streamz/bg/wrl",O,m,G,B,Q,H)};
var o0m=function(O){this.nFq=O;O.addNewCounter("/client_streamz/bg/ec",_.U0("en"),_.U0("mk"))};
o0m.prototype.increment=function(O,m){this.nFq.JSC$9788_incrementCounter("/client_streamz/bg/ec",O,m)};
var lq$=function(O){this.yLz=O;O.addNewEventMetric("/client_streamz/bg/el",_.U0("en"),_.U0("mk"))};
lq$.prototype.record=function(O,m,G){this.yLz.record("/client_streamz/bg/el",O,m,G)};
var aq9=function(O){this.rLj=O;O.addNewCounter("/client_streamz/bg/cec",qZ("ec"),_.U0("mk"))};
aq9.prototype.increment=function(O,m){this.rLj.JSC$9788_incrementCounter("/client_streamz/bg/cec",O,m)};
var kcC=function(O){this.u6q=O;O.addNewCounter("/client_streamz/bg/po/csc",qZ("cs"),_.U0("mk"))};
kcC.prototype.increment=function(O,m){this.u6q.JSC$9788_incrementCounter("/client_streamz/bg/po/csc",O,m)};
var yLH=function(O){this.eCg=O;O.addNewCounter("/client_streamz/bg/po/ctav",_.U0("av"),_.U0("mk"))};
yLH.prototype.increment=function(O,m){this.eCg.JSC$9788_incrementCounter("/client_streamz/bg/po/ctav",O,m)};
var cLe=function(O){this.p45=O;O.addNewCounter("/client_streamz/bg/po/cwsc",_.U0("su"),_.U0("mk"))};
cLe.prototype.increment=function(O,m){this.p45.JSC$9788_incrementCounter("/client_streamz/bg/po/cwsc",O,m)};var HRN=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(HRN,_.MP);var Qd5=function(O,m){return _.Oh(O,3,m,xeN)};var Yhe=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Yhe,_.MP);var dP2=[1,2,3];var w8j=[0,dP2,_.Q7,io6,U3N];var eoH=[0,_.H4,[0,sg,_.NQ]];var DPH=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(DPH,_.MP);var snj=[1,2,3];var N5j=[0,snj,rMp,vw6,_.K4,eoH];var PG2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(PG2,_.MP);var Fa_=[0,_.H4,w8j,N5j];var ALj=[0,_.GD];var O_8=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(O_8,_.MP);var mGs=[0,_.GD,-1,_.Ob];var G93=[0,_.GD,-1,_.Aw,_.Ob];var BCH=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(BCH,_.MP);var Qo_=[1,2,3];var H_o=[0,Qo_,_.K4,mGs,_.K4,G93,_.K4,ALj];var v3m=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(v3m,_.MP);v3m.prototype.JSC$9608_serializeBinary=CGY([0,_.GD,H_o,tNf,_.H4,Fa_,x3Y,qqM]);var KIH=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(KIH,_.MP);var rXj=function(O){var m=new v3m;m=_.SS(m,1,O.JSC$9724_metricName);var G=$GH(O);m=_.Oh(m,3,G,_.Zx);G=[];for(var B=[],Q=_.K(O.cellMap.keys()),H=Q.next();!H.done;H=Q.next())B.push(H.value.split(","));for(Q=0;Q<B.length;Q++){H=B[Q];for(var M=O.cellType,R=O.getCells(H)||[],x=[],t=0;t<R.length;t++){var W=R[t],Z=W&&W.cellValue;W=new DPH;switch(M){case 3:Z=Number(Z);Number.isFinite(Z)&&Jl(W,1,snj,R3(Z));break;case 2:Jl(W,2,snj,_.w8(Number(Z)))}x.push(W)}M=x;for(R=0;R<M.length;R++){x=M[R];t=new PG2;x=_.Tc(t,
2,x);t=[];W=Muj(O);for(Z=0;Z<W.length;Z++){var z=W[Z],J=H[Z],n=new Yhe;switch(z){case 3:Jl(n,1,dP2,Vr(String(J)));break;case 2:z=Number(J);Number.isFinite(z)&&Jl(n,2,dP2,_.Qr(z));break;case 1:Jl(n,3,dP2,rm6(J==="true"))}t.push(n)}g7(x,1,t);G.push(x)}}g7(m,4,G);return m};var Rq9=function(O){if(!O)return"";if(/^about:(?:blank|srcdoc)$/.test(O))return window.origin||"";O.indexOf("blob:")===0&&(O=O.substring(5));O=O.split("#")[0].split("?")[0];O=O.toLowerCase();O.indexOf("//")==0&&(O=window.location.protocol+O);/^[\w\-]*:\/\//.test(O)||(O=window.location.href);var m=O.substring(O.indexOf("://")+3),G=m.indexOf("/");G!=-1&&(m=m.substring(0,G));G=O.substring(0,O.indexOf("://"));if(!G)throw Error("qa`"+O);if(G!=="http"&&G!=="https"&&G!=="chrome-extension"&&G!=="moz-extension"&&
G!=="file"&&G!=="android-app"&&G!=="chrome-search"&&G!=="chrome-untrusted"&&G!=="chrome"&&G!=="app"&&G!=="devtools")throw Error("ra`"+G);O="";var B=m.indexOf(":");if(B!=-1){var Q=m.substring(B+1);m=m.substring(0,B);if(G==="http"&&Q!=="80"||G==="https"&&Q!=="443")O=":"+Q}return G+"://"+m+O};var xGu=function(O,m,G){var B=String(_.Qf.location.href);return B&&O&&m?[m,i_p(Rq9(B),O,G||null)].join(" "):null},i_p=function(O,m,G){var B=[],Q=[];
if((Array.isArray(G)?2:1)==1)return Q=[m,O],_.Nr(B,function(R){Q.push(R)}),qI3(Q.join(" "));
var H=[],M=[];_.Nr(G,function(R){M.push(R.key);H.push(R.value)});
G=Math.floor((new Date).getTime()/1E3);Q=H.length==0?[G,m,O]:[H.join(":"),G,m,O];_.Nr(B,function(R){Q.push(R)});
O=qI3(Q.join(" "));O=[G,O];M.length==0||O.push(M.join(""));return O.join("_")},qI3=function(O){var m=lyO();
m.update(O);return m.digestString().toLowerCase()};var zZ=function(O){this.JSC$9619_document_=O||{cookie:""}},UGj;
_.v=zZ.prototype;_.v.isEnabled=function(){if(!_.Qf.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};
_.v.set=function(O,m,G){var B=!1;if(typeof G==="object"){var Q=G.sameSite;B=G.secure||!1;var H=G.domain||void 0;var M=G.path||void 0;var R=G.maxAge}if(/[;=\s]/.test(O))throw Error("sa`"+O);if(/[;\r\n]/.test(m))throw Error("ta`"+m);R===void 0&&(R=-1);G=H?";domain="+H:"";M=M?";path="+M:"";B=B?";secure":"";R=R<0?"":R==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+R*1E3)).toUTCString();this.JSC$9619_document_.cookie=O+"="+m+G+M+R+B+(Q!=null?";samesite="+Q:"")};
_.v.get=function(O,m){for(var G=O+"=",B=(this.JSC$9619_document_.cookie||"").split(";"),Q=0,H;Q<B.length;Q++){H=tz(B[Q]);if(H.lastIndexOf(G,0)==0)return H.slice(G.length);if(H==O)return""}return m};
_.v.remove=function(O,m,G){var B=this.containsKey(O);this.set(O,"",{maxAge:0,path:m,domain:G});return B};
_.v.getKeys=function(){return UGj(this).keys};
_.v.getValues=function(){return UGj(this).values};
_.v.isEmpty=function(){return!this.JSC$9619_document_.cookie};
_.v.getCount=function(){return this.JSC$9619_document_.cookie?(this.JSC$9619_document_.cookie||"").split(";").length:0};
_.v.containsKey=function(O){return this.get(O)!==void 0};
_.v.containsValue=function(O){for(var m=UGj(this).values,G=0;G<m.length;G++)if(m[G]==O)return!0;return!1};
_.v.clear=function(){for(var O=UGj(this).keys,m=O.length-1;m>=0;m--)this.remove(O[m])};
UGj=function(O){O=(O.JSC$9619_document_.cookie||"").split(";");for(var m=[],G=[],B,Q,H=0;H<O.length;H++)Q=tz(O[H]),B=Q.indexOf("="),B==-1?(m.push(""),G.push(Q)):(m.push(Q.substring(0,B)),G.push(Q.substring(B+1)));return{keys:m,values:G}};
_.fR=new zZ(typeof document=="undefined"?null:document);var V85,tuH;V85=function(){var O=_.Qf.__SAPISID||_.Qf.__APISID||_.Qf.__3PSAPISID||_.Qf.__1PSAPISID||_.Qf.__OVERRIDE_SID;if(O)return!0;typeof document!=="undefined"&&(O=new zZ(document),O=O.get("SAPISID")||O.get("APISID")||O.get("__Secure-3PAPISID")||O.get("__Secure-1PAPISID"));return!!O};
tuH=function(O,m,G,B){(O=_.Qf[O])||typeof document==="undefined"||(O=(new zZ(document)).get(m));return O?xGu(O,G,B):null};
_.OmO=function(O){var m=Rq9(_.Qf==null?void 0:_.Qf.location.href),G=[];if(V85()){m=m.indexOf("https:")==0||m.indexOf("chrome-extension:")==0||m.indexOf("chrome-untrusted://new-tab-page")==0||m.indexOf("moz-extension:")==0;var B=m?_.Qf.__SAPISID:_.Qf.__APISID;B||typeof document==="undefined"||(B=new zZ(document),B=B.get(m?"SAPISID":"APISID")||B.get("__Secure-3PAPISID"));(B=B?xGu(B,m?"SAPISIDHASH":"APISIDHASH",O):null)&&G.push(B);m&&((m=tuH("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",O))&&G.push(m),
(O=tuH("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",O))&&G.push(O))}return G.length==0?null:G.join(" ")};var WI_=function(){this.minSize=1024};
WI_.prototype.compress=function(O){var m,G,B,Q;return _.r(function(H){switch(H.nextAddress){case 1:return m=new CompressionStream("gzip"),G=(new Response(m.readable)).arrayBuffer(),B=m.writable.getWriter(),H.yield(B.write((new TextEncoder).encode(O)),2);case 2:return H.yield(B.close(),3);case 3:return Q=Uint8Array,H.yield(G,4);case 4:return H.return(new Q(H.yieldResult))}})};
WI_.prototype.isSupported=function(O){return O<this.minSize?!1:typeof CompressionStream!=="undefined"};var Z_j=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Z_j,_.MP);var J$=function(O,m){this.intervalMs=O;this.callback=m;this.enabled=!1;this.nowFn=function(){return _.$F()};
this.lastTimeMs=this.nowFn()};
J$.prototype.setInterval=function(O){this.intervalMs=O;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
J$.prototype.start=function(){var O=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){O.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
J$.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
J$.prototype.tick=function(){var O=this;if(this.enabled){var m=Math.max(this.nowFn()-this.lastTimeMs,0);m<this.intervalMs*.8?this.timer=setTimeout(function(){O.tick()},this.intervalMs-m):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var zq3=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(zq3,_.MP);var JXU=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(JXU,_.MP);var Vup=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Vup,_.MP);Vup.prototype.getTransmissionType=function(){return _.Lq(this,1)};var cNY=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(cNY,_.MP);cNY.prototype.getVersion=function(){return _.Eg(this,2)};var Vy=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Vy,_.MP);var yNr=function(O){g7(YZp,1,O)};
Vy.prototype.getModel=function(){return _.Eg(this,6)};
var b_j=_.bG(Vy);var n39=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(n39,_.MP);var ayM=["platform","platformVersion","architecture","model","uaFullVersion"],YZp=new Vy,knN=null;var bl=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(bl,_.MP);var Xim=function(O){return _.xG(O,1,1)};var f9m=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O,4)};
_.X(f9m,_.MP);_.ny=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O,36)};
_.X(_.ny,_.MP);_.ny.prototype.getExperimentIds=function(){return _.RO(this,Z_j,16)};var hqC=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O,19)};
_.X(hqC,_.MP);hqC.prototype.setLogSource=function(O){return _.xG(this,2,O)};
hqC.prototype.setScheduler=function(O){return _.xG(this,10,O)};var g3o=function(O,m){this.isServiceWorkerScope=m=m===void 0?!1:m;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new hqC;Number.isInteger(O)&&this.logRequest.setLogSource(O);m||(this.locale=document.documentElement.getAttribute("lang"));TC8(this,new bl)};
g3o.prototype.setLogSource=function(O){this.logRequest.setLogSource(O);return this};
var TC8=function(O,m){_.Tc(O.logRequest,1,m);_.Lq(m,1)||Xim(m);O.isServiceWorkerScope||(m=Xn(O),_.Eg(m,5)||_.SS(m,5,O.locale));O.uach&&(m=Xn(O),_.RO(m,Vy,9)||_.Tc(m,9,O.uach))},uP8=function(O,m){O.transmissionType=m},jom=function(O){var m=m===void 0?ayM:m;
var G=O.isServiceWorkerScope?void 0:cY();G?dr6(G,m).then(function(B){O.uach=b_j(B!=null?B:"[]");B=Xn(O);_.Tc(B,9,O.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Xn=function(O){var m=_.RO(O.logRequest,bl,1);
m||(m=new bl,TC8(O,m));O=m;m=_.RO(O,n39,11);m||(m=new n39,_.Tc(O,11,m));return m};
g3o.prototype.build=function(O,m,G,B,Q,H){m=m===void 0?0:m;G=G===void 0?0:G;B=B===void 0?null:B;Q=Q===void 0?0:Q;H=H===void 0?0:H;if(!this.isServiceWorkerScope){var M=Xn(this);var R=new Vup;R=_.xG(R,1,this.transmissionType);R=_.tF(R,2,this.isFinal);G=_.aE(R,3,G>0?G:void 0);G=_.aE(G,4,Q>0?Q:void 0);G=_.aE(G,5,H>0?H:void 0);Q=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;H=Q[_.vs]|0;G=Jm(G,H)?G:Jsf(G,Q,H)?z0p(G,Q):new G.constructor(kh(Q,H,!0));_.Tc(M,10,G)}M=this.logRequest.clone();G=Date.now().toString();
M=_.qI(M,4,R3(G));O=O.slice();O=g7(M,3,O);B&&(M=new zq3,B=_.aE(M,13,B),M=new JXU,B=_.Tc(M,2,B),M=new f9m,B=_.Tc(M,1,B),B=_.xG(B,2,9),_.Tc(O,18,B));m&&_.TH(O,14,m);return O};Wh.prototype.currBackoffCount_=0;Wh.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Wh.prototype.getValue=function(){return this.currValue_};
var I99=function(O){O.currBaseValue_=Math.min(O.maxValue_,O.currBaseValue_*O.backoffFactor_);O.currValue_=Math.min(O.maxValue_,O.currBaseValue_+(O.randomFactor_?Math.round(O.randomFactor_*(Math.random()-.5)*2*O.currBaseValue_):0));O.currBackoffCount_++};var nwN=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O,8)};
_.X(nwN,_.MP);var pis=_.bG(nwN);var X2N=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(X2N,_.MP);var fy;fy=new fE5;var h$=function(O){_.Iw.call(this);var m=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9697_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$9697_sendBeaconApiEnabled=!1;this.logSource=O.logSource;this.getAuthHeaderValue=
O.getAuthHeaderValue||function(){};
this.logRequestBuilder=new g3o(O.logSource,O.isServiceWorkerScope);this.network=O.network||null;this.productID=O.productID||null;this.bufferSize=1E3;this.clearcutUrl=O.urlOverride||null;this.sessionIndex=O.sessionIndex||null;this.disableAutomaticFlush=O.disableAutomaticFlush||!1;this.withCredentials=!O.disableWithCredentials;this.isServiceWorkerScope=O.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!cY()&&!!cY().navigator&&cY().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(SIs())).searchParams&&!!(new URL(SIs())).searchParams.set;var G=Xim(new bl);TC8(this.logRequestBuilder,G);this.flushBackoff=new Wh(1E4,3E5,.1);O=E3$(this,O.backgroundJobDeferrer);this.JSC$9697_flushTimer=new J$(this.flushBackoff.getValue(),O);this.backupTimer=new J$(6E5,O);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){LIj(m);
var B;(B=m.metalogService)==null||B.flush()}}),document.addEventListener("pagehide",function(){LIj(m);
var B;(B=m.metalogService)==null||B.flush()}))};
_.X(h$,_.Iw);var E3$=function(O,m){return O.isBrowserSupported?m?function(){m().then(function(){O.flush()})}:function(){O.flush()}:function(){}};
h$.prototype.disposeInternal=function(){LIj(this);this.JSC$9697_flushTimer.stop();this.backupTimer.stop();_.Iw.prototype.disposeInternal.call(this)};
var CSu=function(O){O.clearcutUrl||(O.clearcutUrl=SIs());try{return(new URL(O.clearcutUrl)).toString()}catch(m){return(new URL(O.clearcutUrl,cY().location.origin)).toString()}};
h$.prototype.dispatch=function(O){if(O instanceof _.ny)this.log(O);else try{var m=new _.ny,G=O.serialize();var B=_.SS(m,8,G);this.log(B)}catch(Q){TZ(this,4,1)}};
var TZ=function(O,m,G){O.metalogService&&O.metalogService.increment(m,G)};
h$.prototype.log=function(O){TZ(this,2,1);if(this.isBrowserSupported){O=O.clone();var m=this.sequencePosition++;O=_.TH(O,21,m);this.componentId&&_.SS(O,26,this.componentId);m=O;if(g9z(_.bg(m,1))==null){var G=Date.now();G=Number.isFinite(G)?G.toString():"0";_.qI(m,1,R3(G))}_.T8I(_.bg(m,15))!=null||_.TH(m,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(G=this.experimentIds.clone(),_.Tc(m,16,G));TZ(this,1,1);m=this.pendingEvents.length-this.bufferSize+1;m>0&&(this.pendingEvents.splice(0,m),
this.numLogsDroppedSinceLastFlush+=m,TZ(this,3,m));this.pendingEvents.push(O);this.disableAutomaticFlush||this.JSC$9697_flushTimer.enabled||this.JSC$9697_flushTimer.start()}};
h$.prototype.flush=function(O,m){var G=this;if(this.pendingEvents.length===0)O&&O();else if(this.JSC$9697_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,o3p(this);else{var B=Date.now();if(this.noFlushUntilMs>B&&this.startWaitingMs<B)m&&m("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?uP8(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var Q=this.pendingEvents.length,
H=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),M=this.getAuthHeaderValue();if(M&&this.lastFailedAuth===M)m&&m("stale-auth-token");else{this.pendingEvents=[];this.JSC$9697_flushTimer.enabled&&this.JSC$9697_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;B=H.serialize();var R;this.JSC$9697_compressor&&this.JSC$9697_compressor.isSupported(B.length)&&
(R=this.JSC$9697_compressor.compress(B));var x=l9e(this,B,M),t=function(z){G.flushBackoff.reset();G.JSC$9697_flushTimer.setInterval(G.flushBackoff.getValue());if(z){var J=null;try{var n=JSON.stringify(JSON.parse(z.replace(")]}'\n","")));J=pis(n)}catch(I){}J&&(z=Number(pq(J,1,_.L$("-1"))),z>0&&(G.startWaitingMs=Date.now(),G.noFlushUntilMs=G.startWaitingMs+z),N8M(J.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,fy.fieldIndex),DeY(J,fy.fieldIndex),J=fy.ctor?fy.getExtensionFn(J,fy.ctor,fy.fieldIndex,
fy.JSC$8876_hasMessageId):fy.getExtensionFn(J,fy.fieldIndex,null,fy.JSC$8876_hasMessageId),J=J===null?void 0:J)&&(J=_.ij(J,1,-1),J!==-1&&(G.flushBackoff=new Wh(J<1?1:J,3E5,.1),G.JSC$9697_flushTimer.setInterval(G.flushBackoff.getValue())))}O&&O();G.numRetriesSinceLastSuccessfulFlush=0},W=function(z,J){var n=_.r_(H,_.ny,3,_.Rw());
var I=Number(pq(H,14));I99(G.flushBackoff);G.JSC$9697_flushTimer.setInterval(G.flushBackoff.getValue());z===401&&M&&(G.lastFailedAuth=M);I&&(G.numLogsDroppedSinceLastFlush+=I);J===void 0&&(J=G.isRetryable(z));J&&(G.pendingEvents=n.concat(G.pendingEvents),G.disableAutomaticFlush||G.JSC$9697_flushTimer.enabled||G.JSC$9697_flushTimer.start());TZ(G,7,1);m&&m("net-send-failed",z);++G.numRetriesSinceLastSuccessfulFlush},Z=function(){G.network&&G.network.send(x,t,W)};
R?R.then(function(z){TZ(G,5,Q);x.requestHeaders["Content-Encoding"]="gzip";x.requestHeaders["Content-Type"]="application/binary";x.body=z;x.bodyType=2;Z()},function(){TZ(G,6,Q);
Z()}):Z()}}}};
var l9e=function(O,m,G){G=G===void 0?null:G;var B=B===void 0?O.withCredentials:B;var Q={},H=new URL(CSu(O));G&&(Q.Authorization=G);O.sessionIndex&&(Q["X-Goog-AuthUser"]=O.sessionIndex,H.searchParams.set("authuser",O.sessionIndex));O.pageId&&(Object.defineProperty(Q,"X-Goog-PageId",{value:O.pageId}),H.searchParams.set("pageId",O.pageId));return{url:H.toString(),body:m,bodyType:1,requestHeaders:Q,requestType:"POST",withCredentials:B,timeoutMillis:O.timeoutMillis}},LIj=function(O){O.logRequestBuilder.isFinal=
!0;
O.flush();O.logRequestBuilder.isFinal=!1},o3p=function(O){a98(O,function(m,G){m=new URL(m);
m.searchParams.set("format","json");var B=!1;try{B=cY().navigator.sendBeacon(m.toString(),G.serialize())}catch(Q){}B||(O.isSendBeaconSupported=!1);return B})},a98=function(O,m){if(O.pendingEvents.length!==0){var G=new URL(CSu(O));
G.searchParams.delete("format");var B=O.getAuthHeaderValue();B&&G.searchParams.set("auth",B);G.searchParams.set("authuser",O.sessionIndex||"0");for(B=0;B<10&&O.pendingEvents.length;++B){var Q=O.pendingEvents.slice(0,32),H=O.logRequestBuilder.build(Q,O.numLogsDroppedSinceLastFlush,O.numRetriesSinceLastSuccessfulFlush,O.productID,O.persistedLogRecoveredCount,O.persistedLogExpiredCount);if(!m(G.toString(),H)){++O.numRetriesSinceLastSuccessfulFlush;break}O.numLogsDroppedSinceLastFlush=0;O.numRetriesSinceLastSuccessfulFlush=
0;O.persistedLogRecoveredCount=0;O.persistedLogExpiredCount=0;O.pendingEvents=O.pendingEvents.slice(Q.length)}O.JSC$9697_flushTimer.enabled&&O.JSC$9697_flushTimer.stop()}};
h$.prototype.isRetryable=function(O){return 500<=O&&O<600||O===401||O===0};
var SIs=function(){return"https://play.google.com/log?format=json&hasfast=true"};var k9m=function(){this.abortSupported=typeof AbortController!=="undefined"};
k9m.prototype.send=function(O,m,G){var B=this,Q,H,M,R,x,t,W,Z,z,J;return _.r(function(n){switch(n.nextAddress){case 1:return H=(Q=B.abortSupported?new AbortController:void 0)?setTimeout(function(){Q.abort()},O.timeoutMillis):void 0,_.n_(n,2,3),M=Object.assign({},{method:O.requestType,
headers:Object.assign({},O.requestHeaders)},O.body&&{body:O.body},O.withCredentials&&{credentials:"include"},{signal:O.timeoutMillis&&Q?Q.signal:null}),n.yield(fetch(O.url,M),5);case 5:R=n.yieldResult;if(R.status!==200){(x=G)==null||x(R.status);n.jumpTo(3);break}if((t=m)==null){n.jumpTo(7);break}return n.yield(R.text(),8);case 8:t(n.yieldResult);case 7:case 3:_.f_(n);clearTimeout(H);_.T9(n,0);break;case 2:W=_.uS(n);switch((Z=W)==null?void 0:Z.name){case "AbortError":(z=G)==null||z(408);break;default:(J=
G)==null||J(400)}n.jumpTo(3)}})};
k9m.prototype.getTransmissionType=function(){return 4};_.zy=function(O,m){m=m===void 0?"0":m;_.Iw.call(this);this.logSource=O;this.sessionIndex=m;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9715_clearExperimentIds=this.productID=null;this.JSC$9715_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.X(_.zy,_.Iw);var mue=function(O,m){O.buildLabel=m;return O},ORr=function(O,m){O.network=m;
return O},BIf=function(O,m){O.JSC$9715_clearExperimentIds=m},ANe=function(O){O.JSC$9715_sendBeaconApiEnabled=!0;
return O};
_.zy.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.zy.prototype.build=function(){this.network||(this.network=new k9m);var O=new h$({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.OmO,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.VV(this,O);if(this.buildLabel){var m=this.buildLabel,G=
Xn(O.logRequestBuilder);_.SS(G,7,m)}O.JSC$9697_compressor=new WI_;this.componentId&&(O.componentId=this.componentId);this.productID&&(O.productID=this.productID);this.pageId&&(O.pageId=this.pageId);this.JSC$9715_clearExperimentIds&&((G=this.JSC$9715_clearExperimentIds)?(O.experimentIds||(O.experimentIds=new Z_j),m=O.experimentIds,G=G.serialize(),_.SS(m,4,G)):O.experimentIds&&_.qI(O.experimentIds,4));this.JSC$9715_sendBeaconApiEnabled&&(O.JSC$9697_sendBeaconApiEnabled=O.isSendBeaconSupported);jom(O.logRequestBuilder);
this.bufferSize&&(O.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(O);return O};var vRS=function(O,m,G,B,Q,H,M){O=O===void 0?-1:O;m=m===void 0?"":m;G=G===void 0?"":G;B=B===void 0?!1:B;Q=Q===void 0?"":Q;_.Iw.call(this);this.logSource=O;this.componentId=m;H?m=H:(O=new _.zy(O,"0"),O.componentId=m,_.VV(this,O),G!==""&&(O.destinationUrl=G),B&&(O.serviceWorkerScopeEnabled=!0),Q&&mue(O,Q),M&&ORr(O,M),m=O.build());this.JSC$9719_transport=m};
_.X(vRS,_.Iw);vRS.prototype.flush=function(O){O=O||[];if(O.length){for(var m=new KIH,G=[],B=0;B<O.length;B++){var Q=O[B],H=rXj(Q);G.push(H);Q.clear()}g7(m,1,G);this.JSC$9719_transport.dispatch(m);this.JSC$9719_transport.flush()}};var yX_=function(O){this.cellValue=O};var g6=function(O,m,G){this.JSC$9724_metricName=O;this.cellType=m;this.fields=G||[];this.cellMap=new Map},Muj=function(O){return O.fields.map(function(m){return m.fieldType})},$GH=function(O){return O.fields.map(function(m){return m.fieldName})};
_.v=g6.prototype;_.v.addCell=function(O){var m=_.eA.apply(1,arguments),G=this.getCells(m);G?G.push(new yX_(O)):this.JSC$9724_setCell(O,m)};
_.v.JSC$9724_setCell=function(O){var m=this.JSC$9724_getKey(_.eA.apply(1,arguments));this.cellMap.set(m,[new yX_(O)])};
_.v.getCells=function(){var O=this.JSC$9724_getKey(_.eA.apply(0,arguments));return this.cellMap.has(O)?this.cellMap.get(O):void 0};
_.v.getCell=function(){var O=this.getCells(_.eA.apply(0,arguments));return O&&O.length?O[0]:void 0};
_.v.clear=function(){this.cellMap.clear()};
_.v.JSC$9724_getKey=function(){var O=_.eA.apply(0,arguments);return O?O.join(","):"key"};var cXj=function(O,m){g6.call(this,O,3,m)};
_.X(cXj,g6);cXj.prototype.JSC$9727_incrementCounterBy=function(O){var m=_.eA.apply(1,arguments),G=0,B=this.getCell(m);B&&(G=B.cellValue);this.JSC$9724_setCell(G+O,m)};var YIH=function(O,m){g6.call(this,O,2,m)};
_.X(YIH,g6);YIH.prototype.record=function(O){this.addCell(O,_.eA.apply(1,arguments))};_.ul=function(O){this.id=O};
_.ul.prototype.toString=function(){return this.id};_.jB=function(O,m){this.type=O instanceof _.ul?String(O):O;this.currentTarget=this.target=m;this.defaultPrevented=this.propagationStopped_=!1};
_.jB.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.jB.prototype.preventDefault=function(){this.defaultPrevented=!0};_.I7=function(O,m){_.jB.call(this,O?O.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;O&&this.init(O,m)};
_.MQ(_.I7,_.jB);
_.I7.prototype.init=function(O,m){var G=this.type=O.type,B=O.changedTouches&&O.changedTouches.length?O.changedTouches[0]:null;this.target=O.target||O.srcElement;this.currentTarget=m;m=O.relatedTarget;m||(G=="mouseover"?m=O.fromElement:G=="mouseout"&&(m=O.toElement));this.relatedTarget=m;B?(this.clientX=B.clientX!==void 0?B.clientX:B.pageX,this.clientY=B.clientY!==void 0?B.clientY:B.pageY,this.screenX=B.screenX||0,this.screenY=B.screenY||0):(this.offsetX=_.Ug||O.offsetX!==void 0?O.offsetX:O.layerX,
this.offsetY=_.Ug||O.offsetY!==void 0?O.offsetY:O.layerY,this.clientX=O.clientX!==void 0?O.clientX:O.pageX,this.clientY=O.clientY!==void 0?O.clientY:O.pageY,this.screenX=O.screenX||0,this.screenY=O.screenY||0);this.button=O.button;this.keyCode=O.keyCode||0;this.key=O.key||"";this.charCode=O.charCode||(G=="keypress"?O.keyCode:0);this.ctrlKey=O.ctrlKey;this.altKey=O.altKey;this.shiftKey=O.shiftKey;this.metaKey=O.metaKey;this.pointerId=O.pointerId||0;this.pointerType=O.pointerType;this.state=O.state;
this.timeStamp=O.timeStamp;this.event_=O;O.defaultPrevented&&_.I7.superClass_.preventDefault.call(this)};
_.I7.prototype.isButton=function(O){return this.event_.button==O};
_.I7.prototype.stopPropagation=function(){_.I7.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.I7.prototype.preventDefault=function(){_.I7.superClass_.preventDefault.call(this);var O=this.event_;O.preventDefault?O.preventDefault():O.returnValue=!1};var dG$="closure_listenable_"+(Math.random()*1E6|0),py=function(O){return!(!O||!O[dG$])};var wi9=0;var eqH=function(O,m,G,B,Q){this.listener=O;this.proxy=null;this.src=m;this.type=G;this.capture=!!B;this.handler=Q;this.key=++wi9;this.removed=this.callOnce=!1},DGU=function(O){O.removed=!0;
O.listener=null;O.proxy=null;O.src=null;O.handler=null};ZZ.prototype.add=function(O,m,G,B,Q){var H=O.toString();O=this.listeners[H];O||(O=this.listeners[H]=[],this.typeCount_++);var M=sop(O,m,B,Q);M>-1?(m=O[M],G||(m.callOnce=!1)):(m=new eqH(m,this.src,H,!!B,Q),m.callOnce=G,O.push(m));return m};
ZZ.prototype.remove=function(O,m,G,B){O=O.toString();if(!(O in this.listeners))return!1;var Q=this.listeners[O];m=sop(Q,m,G,B);return m>-1?(DGU(Q[m]),_.nO6(Q,m),Q.length==0&&(delete this.listeners[O],this.typeCount_--),!0):!1};
var NC$=function(O,m){var G=m.type;if(!(G in O.listeners))return!1;var B=_.yf(O.listeners[G],m);B&&(DGU(m),O.listeners[G].length==0&&(delete O.listeners[G],O.typeCount_--));return B};
ZZ.prototype.removeAll=function(O){O=O&&O.toString();var m=0,G;for(G in this.listeners)if(!O||G==O){for(var B=this.listeners[G],Q=0;Q<B.length;Q++)++m,DGU(B[Q]);delete this.listeners[G];this.typeCount_--}return m};
ZZ.prototype.getListener=function(O,m,G,B){O=this.listeners[O.toString()];var Q=-1;O&&(Q=sop(O,m,G,B));return Q>-1?O[Q]:null};
ZZ.prototype.hasListener=function(O,m){var G=O!==void 0,B=G?O.toString():"",Q=m!==void 0;return _.aM.some(this.listeners,function(H){for(var M=0;M<H.length;++M)if(!(G&&H[M].type!=B||Q&&H[M].capture!=m))return!0;return!1})};
var sop=function(O,m,G,B){for(var Q=0;Q<O.length;++Q){var H=O[Q];if(!H.removed&&H.listener==m&&H.capture==!!G&&H.handler==B)return Q}return-1};var PS9,FIH,AX2,mMm,GP_,pm,Sg,HL3,B9p,QMo,SB,v6U,OL$;PS9="closure_lm_"+(Math.random()*1E6|0);FIH={};AX2=0;_.Cm=function(O,m,G,B,Q){if(B&&B.once)return pm(O,m,G,B,Q);if(Array.isArray(m)){for(var H=0;H<m.length;H++)_.Cm(O,m[H],G,B,Q);return null}G=OL$(G);return py(O)?O.listen(m,G,_.Dp(B)?!!B.capture:!!B,Q):mMm(O,m,G,!1,B,Q)};
mMm=function(O,m,G,B,Q,H){if(!m)throw Error("va");var M=_.Dp(Q)?!!Q.capture:!!Q,R=SB(O);R||(O[PS9]=R=new ZZ(O));G=R.add(m,G,B,M,H);if(G.proxy)return G;B=GP_();G.proxy=B;B.src=O;B.listener=G;if(O.addEventListener)_.ONo||(Q=M),Q===void 0&&(Q=!1),O.addEventListener(m.toString(),B,Q);else if(O.attachEvent)O.attachEvent(B9p(m.toString()),B);else if(O.addListener&&O.removeListener)O.addListener(B);else throw Error("wa");AX2++;return G};
GP_=function(){var O=QMo,m=function(G){return O.call(m.src,m.listener,G)};
return m};
pm=function(O,m,G,B,Q){if(Array.isArray(m)){for(var H=0;H<m.length;H++)pm(O,m[H],G,B,Q);return null}G=OL$(G);return py(O)?O.listenOnce(m,G,_.Dp(B)?!!B.capture:!!B,Q):mMm(O,m,G,!0,B,Q)};
_.E2=function(O,m,G,B,Q){if(Array.isArray(m))for(var H=0;H<m.length;H++)_.E2(O,m[H],G,B,Q);else B=_.Dp(B)?!!B.capture:!!B,G=OL$(G),py(O)?O.unlisten(m,G,B,Q):O&&(O=SB(O))&&(m=O.getListener(m,G,B,Q))&&Sg(m)};
Sg=function(O){if(typeof O==="number"||!O||O.removed)return!1;var m=O.src;if(py(m))return NC$(m.eventTargetListeners_,O);var G=O.type,B=O.proxy;m.removeEventListener?m.removeEventListener(G,B,O.capture):m.detachEvent?m.detachEvent(B9p(G),B):m.addListener&&m.removeListener&&m.removeListener(B);AX2--;(G=SB(m))?(NC$(G,O),G.typeCount_==0&&(G.src=null,m[PS9]=null)):DGU(O);return!0};
HL3=function(O,m,G,B,Q){G=OL$(G);B=!!B;return py(O)?O.getListener(m,G,B,Q):O?(O=SB(O))?O.getListener(m,G,B,Q):null:null};
B9p=function(O){return O in FIH?FIH[O]:FIH[O]="on"+O};
QMo=function(O,m){if(O.removed)O=!0;else{m=new _.I7(m,this);var G=O.listener,B=O.handler||O.src;O.callOnce&&Sg(O);O=G.call(B,m)}return O};
SB=function(O){O=O[PS9];return O instanceof ZZ?O:null};
v6U="__closure_events_fn_"+(Math.random()*1E9>>>0);OL$=function(O){if(typeof O==="function")return O;O[v6U]||(O[v6U]=function(m){return O.handleEvent(m)});
return O[v6U]};_.Ly=function(){_.Iw.call(this);this.eventTargetListeners_=new ZZ(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.MQ(_.Ly,_.Iw);_.Ly.prototype[dG$]=!0;_.v=_.Ly.prototype;_.v.setParentEventTarget=function(O){this.parentEventTarget_=O};
_.v.addEventListener=function(O,m,G,B){_.Cm(this,O,m,G,B)};
_.v.removeEventListener=function(O,m,G,B){_.E2(this,O,m,G,B)};
_.v.dispatchEvent=function(O){var m,G=this.parentEventTarget_;if(G)for(m=[];G;G=G.parentEventTarget_)m.push(G);G=this.actualEventTarget_;var B=O.type||O;if(typeof O==="string")O=new _.jB(O,G);else if(O instanceof _.jB)O.target=O.target||G;else{var Q=O;O=new _.jB(B,G);_.aM.extend(O,Q)}Q=!0;var H;if(m)for(H=m.length-1;!O.propagationStopped_&&H>=0;H--){var M=O.currentTarget=m[H];Q=Ksp(M,B,!0,O)&&Q}O.propagationStopped_||(M=O.currentTarget=G,Q=Ksp(M,B,!0,O)&&Q,O.propagationStopped_||(Q=Ksp(M,B,!1,O)&&
Q));if(m)for(H=0;!O.propagationStopped_&&H<m.length;H++)M=O.currentTarget=m[H],Q=Ksp(M,B,!1,O)&&Q;return Q};
_.v.disposeInternal=function(){_.Ly.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.v.listen=function(O,m,G,B){return this.eventTargetListeners_.add(String(O),m,!1,G,B)};
_.v.listenOnce=function(O,m,G,B){return this.eventTargetListeners_.add(String(O),m,!0,G,B)};
_.v.unlisten=function(O,m,G,B){return this.eventTargetListeners_.remove(String(O),m,G,B)};
_.v.removeAllListeners=function(O){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(O):0};
var Ksp=function(O,m,G,B){m=O.eventTargetListeners_.listeners[String(m)];if(!m)return!0;m=m.concat();for(var Q=!0,H=0;H<m.length;++H){var M=m[H];if(M&&!M.removed&&M.capture==G){var R=M.listener,x=M.handler||M.src;M.callOnce&&NC$(O.eventTargetListeners_,M);Q=R.call(x,B)!==!1&&Q}}return Q&&!B.defaultPrevented};
_.Ly.prototype.getListener=function(O,m,G,B){return this.eventTargetListeners_.getListener(String(O),m,G,B)};
_.Ly.prototype.hasListener=function(O,m){return this.eventTargetListeners_.hasListener(O!==void 0?String(O):void 0,m)};var Cy=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(O){return O&&AsyncContext.Snapshot.wrap(O)}:function(O){return O};var $Mp=function(O,m){this.create_=O;this.reset_=m;this.occupants_=0;this.JSC$9759_head_=null};
$Mp.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var O=this.JSC$9759_head_;this.JSC$9759_head_=O.next;O.next=null}else O=this.create_();return O};
$Mp.prototype.put=function(O){this.reset_(O);this.occupants_<100&&(this.occupants_++,O.next=this.JSC$9759_head_,this.JSC$9759_head_=O)};var MS_=function(){this.workTail_=this.workHead_=null};
MS_.prototype.add=function(O,m){var G=e2s.get();G.set(O,m);this.workTail_?this.workTail_.next=G:this.workHead_=G;this.workTail_=G};
MS_.prototype.remove=function(){var O=null;this.workHead_&&(O=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),O.next=null);return O};
var e2s=new $Mp(function(){return new rY8},function(O){return O.reset()}),rY8=function(){this.next=this.scope=this.fn=null};
rY8.prototype.set=function(O,m){this.fn=O;this.scope=m;this.next=null};
rY8.prototype.reset=function(){this.next=this.scope=this.fn=null};var Rfj,DrM,wxM,iL2;DrM=!1;wxM=new MS_;_.o7=function(O,m){Rfj||iL2();DrM||(Rfj(),DrM=!0);wxM.add(O,m)};
iL2=function(){var O=Promise.resolve(void 0);Rfj=function(){O.then(s8N)}};var xMo=function(O){O.prototype.$goog_Thenable=!0},q_9=function(O){if(!O)return!1;
try{return!!O.$goog_Thenable}catch(m){return!1}};var UM3,tS9,WsU,zfm,JYp,VSC,fnu,g6o,pYs,jMC,Jyp;_.zH=function(O,m){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(O!=_.ID)try{var G=this;O.call(m,function(B){G.resolve_(2,B)},function(B){G.resolve_(3,B)})}catch(B){this.resolve_(3,B)}};
UM3=function(){this.next=this.context=this.JSC$9770_onRejected=this.JSC$9770_onFulfilled=this.child=null;this.always=!1};
UM3.prototype.reset=function(){this.context=this.JSC$9770_onRejected=this.JSC$9770_onFulfilled=this.child=null;this.always=!1};
tS9=new $Mp(function(){return new UM3},function(O){O.reset()});
WsU=function(O,m,G){var B=tS9.get();B.JSC$9770_onFulfilled=O;B.JSC$9770_onRejected=m;B.context=G;return B};
_.ZY=function(O){if(O instanceof _.zH)return O;var m=new _.zH(_.ID);m.resolve_(2,O);return m};
_.lK=function(O){return new _.zH(function(m,G){G(O)})};
zfm=function(O,m,G){ZL8(O,m,G,null)||_.o7(_.hK(m,O))};
_.ll=function(O){return new _.zH(function(m,G){var B=O.length,Q=[];if(B)for(var H=function(t,W){B--;Q[t]=W;B==0&&m(Q)},M=function(t){G(t)},R,x=0;x<O.length;x++)R=O[x],zfm(R,_.hK(H,x),M);
else m(Q)})};
JYp=function(O){return new _.zH(function(m){var G=O.length,B=[];if(G)for(var Q=function(R,x,t){G--;B[R]=x?{fulfilled:!0,value:t}:{fulfilled:!1,reason:t};G==0&&m(B)},H,M=0;M<O.length;M++)H=O[M],zfm(H,_.hK(Q,M,!0),_.hK(Q,M,!1));
else m(B)})};
VSC=function(O){return new _.zH(function(m,G){var B=O.length,Q=[];if(B)for(var H=function(t){m(t)},M=function(t,W){B--;
Q[t]=W;B==0&&G(Q)},R,x=0;x<O.length;x++)R=O[x],zfm(R,H,_.hK(M,x));
else m(void 0)})};
_.m3=function(){var O,m,G=new _.zH(function(B,Q){O=B;m=Q});
return new bLU(G,O,m)};
_.zH.prototype.then=function(O,m,G){return n6C(this,Cy(typeof O==="function"?O:null),Cy(typeof m==="function"?m:null),G)};
xMo(_.zH);fnu=function(O,m,G,B){XYC(O,WsU(m||_.ID,G||null,B))};
_.a7=function(O,m){m=Cy(m);m=WsU(m,m);m.always=!0;XYC(O,m);return O};
_.zH.prototype.finally=function(O){var m=this;O=Cy(O);return new _.zH(function(G,B){fnu(m,function(Q){O();G(Q)},function(Q){O();
B(Q)})})};
_.zH.prototype.thenCatch=function(O,m){return n6C(this,null,Cy(O),m)};
_.zH.prototype.catch=_.zH.prototype.thenCatch;_.zH.prototype.cancel=function(O){if(this.state_==0){var m=new _.YK(O);_.o7(function(){hfj(this,m)},this)}};
var hfj=function(O,m){if(O.state_==0)if(O.parent_){var G=O.parent_;if(G.callbackEntries_){for(var B=0,Q=null,H=null,M=G.callbackEntries_;M&&(M.always||(B++,M.child==O&&(Q=M),!(Q&&B>1)));M=M.next)Q||(H=M);Q&&(G.state_==0&&B==1?hfj(G,m):(H?(B=H,B.next==G.callbackEntriesTail_&&(G.callbackEntriesTail_=B),B.next=B.next.next):T93(G),g6o(G,Q,3,m)))}O.parent_=null}else O.resolve_(3,m)},XYC=function(O,m){O.callbackEntries_||O.state_!=2&&O.state_!=3||uye(O);
O.callbackEntriesTail_?O.callbackEntriesTail_.next=m:O.callbackEntries_=m;O.callbackEntriesTail_=m},n6C=function(O,m,G,B){var Q=WsU(null,null,null);
Q.child=new _.zH(function(H,M){Q.JSC$9770_onFulfilled=m?function(R){try{var x=m.call(B,R);H(x)}catch(t){M(t)}}:H;
Q.JSC$9770_onRejected=G?function(R){try{var x=G.call(B,R);x===void 0&&R instanceof _.YK?M(R):H(x)}catch(t){M(t)}}:M});
Q.child.parent_=O;XYC(O,Q);return Q.child};
_.zH.prototype.unblockAndFulfill_=function(O){this.state_=0;this.resolve_(2,O)};
_.zH.prototype.unblockAndReject_=function(O){this.state_=0;this.resolve_(3,O)};
_.zH.prototype.resolve_=function(O,m){this.state_==0&&(this===m&&(O=3,m=new TypeError("xa")),this.state_=1,ZL8(m,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=m,this.state_=O,this.parent_=null,uye(this),O!=3||m instanceof _.YK||jMC(this,m)))};
var ZL8=function(O,m,G,B){if(O instanceof _.zH)return fnu(O,m,G,B),!0;if(q_9(O))return O.then(m,G,B),!0;if(_.Dp(O))try{var Q=O.then;if(typeof Q==="function")return Inj(O,Q,m,G,B),!0}catch(H){return G.call(B,H),!0}return!1},Inj=function(O,m,G,B,Q){var H=!1,M=function(x){H||(H=!0,G.call(Q,x))},R=function(x){H||(H=!0,B.call(Q,x))};
try{m.call(O,M,R)}catch(x){R(x)}},uye=function(O){O.executing_||(O.executing_=!0,_.o7(O.executeCallbacks_,O))},T93=function(O){var m=null;
O.callbackEntries_&&(m=O.callbackEntries_,O.callbackEntries_=m.next,m.next=null);O.callbackEntries_||(O.callbackEntriesTail_=null);return m};
_.zH.prototype.executeCallbacks_=function(){for(var O;O=T93(this);)g6o(this,O,this.state_,this.result_);this.executing_=!1};
g6o=function(O,m,G,B){if(G==3&&m.JSC$9770_onRejected&&!m.always)for(;O&&O.hadUnhandledRejection_;O=O.parent_)O.hadUnhandledRejection_=!1;if(m.child)m.child.parent_=null,pYs(m,G,B);else try{m.always?m.JSC$9770_onFulfilled.call(m.context):pYs(m,G,B)}catch(Q){Jyp.call(null,Q)}tS9.put(m)};
pYs=function(O,m,G){m==2?O.JSC$9770_onFulfilled.call(O.context,G):O.JSC$9770_onRejected&&O.JSC$9770_onRejected.call(O.context,G)};
jMC=function(O,m){O.hadUnhandledRejection_=!0;_.o7(function(){O.hadUnhandledRejection_&&Jyp.call(null,m)})};
Jyp=HM;_.YK=function(O){_.GY.call(this,O)};
_.MQ(_.YK,_.GY);_.YK.prototype.name="cancel";var bLU=function(O,m,G){this.promise=O;this.resolve=m;this.reject=G};var kN;_.iH=function(O,m){_.Ly.call(this);this.JSC$9782_interval_=O||1;this.timerObject_=m||_.Qf;this.boundTick_=(0,_.pd)(this.tick_,this);this.last_=_.$F()};
_.MQ(_.iH,_.Ly);_.v=_.iH.prototype;_.v.enabled=!1;_.v.JSC$9784_timer_=null;_.v.setInterval=function(O){this.JSC$9782_interval_=O;this.JSC$9784_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9784_timer_&&this.stop()};
_.v.tick_=function(){if(this.enabled){var O=_.$F()-this.last_;O>0&&O<this.JSC$9782_interval_*.8?this.JSC$9784_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9782_interval_-O):(this.JSC$9784_timer_&&(this.timerObject_.clearTimeout(this.JSC$9784_timer_),this.JSC$9784_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.v.start=function(){this.enabled=!0;this.JSC$9784_timer_||(this.JSC$9784_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9782_interval_),this.last_=_.$F())};
_.v.stop=function(){this.enabled=!1;this.JSC$9784_timer_&&(this.timerObject_.clearTimeout(this.JSC$9784_timer_),this.JSC$9784_timer_=null)};
_.v.disposeInternal=function(){_.iH.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
kN=function(O,m,G){if(typeof O==="function")G&&(O=(0,_.pd)(O,G));else if(O&&typeof O.handleEvent=="function")O=(0,_.pd)(O.handleEvent,O);else throw Error("ya");return Number(m)>2147483647?-1:_.Qf.setTimeout(O,m||0)};
_.S_s=function(O){var m=null;return(new _.zH(function(G,B){m=kN(function(){G(void 0)},O);
m==-1&&B(Error("za"))})).thenCatch(function(G){_.Qf.clearTimeout(m);
throw G;})};var bj=function(O){_.Iw.call(this);this.streamzLogger=O;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9788_flushTimer=new _.iH(this.flushInterval);this.JSC$9788_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.VV(this,this.JSC$9788_flushTimer)};
_.X(bj,_.Iw);bj.prototype.sendIsolatedPayload=function(O){this.shouldSendIsolatedPayload=O;this.invocationLimit=1};
var E6m=function(O){O.JSC$9788_flushTimer.enabled||O.JSC$9788_flushTimer.start();O.invocationCount++;O.invocationCount>=O.invocationLimit&&O.snapshotAndFlush()};
bj.prototype.snapshotAndFlush=function(){var O=this.metricMap.values();O=[].concat(_.lS(O)).filter(function(m){return m.cellMap.size});
O.length&&this.streamzLogger.flush(O,this.shouldSendIsolatedPayload);LsC(O);this.invocationCount=0;this.JSC$9788_flushTimer.enabled&&this.JSC$9788_flushTimer.stop()};
bj.prototype.addNewCounter=function(O){var m=_.eA.apply(1,arguments);this.metricMap.has(O)||this.metricMap.set(O,new cXj(O,m))};
bj.prototype.addNewEventMetric=function(O){var m=_.eA.apply(1,arguments);this.metricMap.has(O)||this.metricMap.set(O,new YIH(O,m))};
var CC_=function(O,m){return O.disabledMetrics.has(m)?void 0:O.metricMap.get(m)};
bj.prototype.JSC$9788_incrementCounter=function(O){this.JSC$9788_incrementCounterBy(O,1,_.eA.apply(1,arguments))};
bj.prototype.JSC$9788_incrementCounterBy=function(O,m){var G=_.eA.apply(2,arguments),B=CC_(this,O);B&&B instanceof cXj&&(B.JSC$9727_incrementCounterBy(m,G),E6m(this))};
bj.prototype.record=function(O,m){var G=_.eA.apply(2,arguments),B=CC_(this,O);B&&B instanceof YIH&&(B.record(m,G),E6m(this))};
var LsC=function(O){for(var m=0;m<O.length;m++)O[m].clear()};_.yy=function(O,m,G){G=G===void 0?{}:G;m=Error.call(this,m);this.message=m.message;"stack"in m&&(this.stack=m.stack);this.code=O;this.metadata=G;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.X(_.yy,Error);_.yy.prototype.toString=function(){var O="RpcError("+(Pz5(this.code)||String(this.code))+")";this.message&&(O+=": "+this.message);return O};_.o63=_.Qf.JSON.parse;_.ck=_.Qf.JSON.stringify;_.CC=_.Qf.JSON.parse;_.ln$=function(O){switch(O){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 ane=function(O){switch(O){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var kP8,yYH=function(){};
_.MQ(yYH,_.Fm5);yYH.prototype.createInstance=function(){return new XMLHttpRequest};
kP8=new yYH;_.YN=function(O){_.Ly.call(this);this.headers=new Map;this.JSC$9797_xmlHttpFactory_=O||null;this.JSC$9797_active_=!1;this.JSC$9797_xhr_=null;this.JSC$9797_lastUri_="";this.JSC$9797_lastErrorCode_=0;this.JSC$9797_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9797_timeoutId_=null;this.responseType_="";this.JSC$9797_withCredentials_=!1};
_.MQ(_.YN,_.Ly);var cYe=/^https?$/i,Y_8=["POST","PUT"],dM$=[],X1p=function(O,m,G,B,Q,H,M){var R=new _.YN;dM$.push(R);m&&R.listen("complete",m);R.listenOnce("ready",R.cleanupSend_);H&&(R.timeoutInterval_=Math.max(0,H));M&&(R.JSC$9797_withCredentials_=M);R.send(O,G,B,Q)};
_.YN.prototype.cleanupSend_=function(){this.dispose();_.yf(dM$,this)};
_.YN.prototype.send=function(O,m,G,B){if(this.JSC$9797_xhr_)throw Error("Aa`"+this.JSC$9797_lastUri_+"`"+O);m=m?m.toUpperCase():"GET";this.JSC$9797_lastUri_=O;this.JSC$9797_lastError_="";this.JSC$9797_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9797_active_=!0;this.JSC$9797_xhr_=this.createXhr();this.JSC$9797_xhr_.onreadystatechange=Cy((0,_.pd)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9797_xhr_.open(m,String(O),!0),this.inOpen_=!1}catch(M){wYs(this,M);return}O=G||"";G=new Map(this.headers);
if(B)if(Object.getPrototypeOf(B)===Object.prototype)for(var Q in B)G.set(Q,B[Q]);else if(typeof B.keys==="function"&&typeof B.get==="function"){Q=_.K(B.keys());for(var H=Q.next();!H.done;H=Q.next())H=H.value,G.set(H,B.get(H))}else throw Error("Ba`"+String(B));B=Array.from(G.keys()).find(function(M){return"content-type"==M.toLowerCase()});
Q=_.Qf.FormData&&O instanceof _.Qf.FormData;!_.kO(Y_8,m)||B||Q||G.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");m=_.K(G);for(B=m.next();!B.done;B=m.next())G=_.K(B.value),B=G.next().value,G=G.next().value,this.JSC$9797_xhr_.setRequestHeader(B,G);this.responseType_&&(this.JSC$9797_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9797_xhr_&&this.JSC$9797_xhr_.withCredentials!==this.JSC$9797_withCredentials_&&(this.JSC$9797_xhr_.withCredentials=this.JSC$9797_withCredentials_);
try{this.JSC$9797_timeoutId_&&(clearTimeout(this.JSC$9797_timeoutId_),this.JSC$9797_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9797_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9797_xhr_.send(O),this.inSend_=!1}catch(M){wYs(this,M)}};
_.YN.prototype.createXhr=function(){return this.JSC$9797_xmlHttpFactory_?this.JSC$9797_xmlHttpFactory_.createInstance():kP8.createInstance()};
_.YN.prototype.timeout_=function(){typeof GlN!="undefined"&&this.JSC$9797_xhr_&&(this.JSC$9797_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9797_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var wYs=function(O,m){O.JSC$9797_active_=!1;O.JSC$9797_xhr_&&(O.inAbort_=!0,O.JSC$9797_xhr_.abort(),O.inAbort_=!1);O.JSC$9797_lastError_=m;O.JSC$9797_lastErrorCode_=5;efm(O);DM8(O)},efm=function(O){O.errorDispatched_||(O.errorDispatched_=!0,O.dispatchEvent("complete"),O.dispatchEvent("error"))};
_.YN.prototype.abort=function(O){this.JSC$9797_xhr_&&this.JSC$9797_active_&&(this.JSC$9797_active_=!1,this.inAbort_=!0,this.JSC$9797_xhr_.abort(),this.inAbort_=!1,this.JSC$9797_lastErrorCode_=O||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),DM8(this))};
_.YN.prototype.disposeInternal=function(){this.JSC$9797_xhr_&&(this.JSC$9797_active_&&(this.JSC$9797_active_=!1,this.inAbort_=!0,this.JSC$9797_xhr_.abort(),this.inAbort_=!1),DM8(this,!0));_.YN.superClass_.disposeInternal.call(this)};
_.YN.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)sM9(this);else this.onReadyStateChangeEntryPoint_()};
_.YN.prototype.onReadyStateChangeEntryPoint_=function(){sM9(this)};
var sM9=function(O){if(O.JSC$9797_active_&&typeof GlN!="undefined")if(O.inSend_&&_.d6(O)==4)setTimeout(O.onReadyStateChange_.bind(O),0);else if(O.dispatchEvent("readystatechange"),O.isComplete()){O.JSC$9797_active_=!1;try{if(O.isSuccess())O.dispatchEvent("complete"),O.dispatchEvent("success");else{O.JSC$9797_lastErrorCode_=6;try{var m=_.d6(O)>2?O.JSC$9797_xhr_.statusText:""}catch(G){m=""}O.JSC$9797_lastError_=m+" ["+O.getStatus()+"]";efm(O)}}finally{DM8(O)}}},DM8=function(O,m){if(O.JSC$9797_xhr_){O.JSC$9797_timeoutId_&&
(clearTimeout(O.JSC$9797_timeoutId_),O.JSC$9797_timeoutId_=null);
var G=O.JSC$9797_xhr_;O.JSC$9797_xhr_=null;m||O.dispatchEvent("ready");try{G.onreadystatechange=null}catch(B){}}};
_.YN.prototype.isActive=function(){return!!this.JSC$9797_xhr_};
_.YN.prototype.isComplete=function(){return _.d6(this)==4};
_.YN.prototype.isSuccess=function(){var O=this.getStatus(),m;if(!(m=ane(O))){if(O=O===0)O=O9u(String(this.JSC$9797_lastUri_)),O=!cYe.test(O);m=O}return m};
_.d6=function(O){return O.JSC$9797_xhr_?O.JSC$9797_xhr_.readyState:0};
_.v=_.YN.prototype;_.v.getStatus=function(){try{return _.d6(this)>2?this.JSC$9797_xhr_.status:-1}catch(O){return-1}};
_.v.getResponseText=function(){try{return this.JSC$9797_xhr_?this.JSC$9797_xhr_.responseText:""}catch(O){return""}};
_.v.getResponse=function(){try{if(!this.JSC$9797_xhr_)return null;if("response"in this.JSC$9797_xhr_)return this.JSC$9797_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9797_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9797_xhr_)return this.JSC$9797_xhr_.mozResponseArrayBuffer}return null}catch(O){return null}};
_.v.getAllResponseHeaders=function(){return this.JSC$9797_xhr_&&_.d6(this)>=2?this.JSC$9797_xhr_.getAllResponseHeaders()||"":""};
_.v.getLastError=function(){return typeof this.JSC$9797_lastError_==="string"?this.JSC$9797_lastError_:String(this.JSC$9797_lastError_)};var Gg6=function(){};
Gg6.prototype.send=function(O,m,G){m=m===void 0?function(){}:m;
G=G===void 0?function(){}:G;
X1p(O.url,function(B){B=B.target;B.isSuccess()?m(B.getResponseText()):G(B.getStatus())},O.requestType,O.body,O.requestHeaders,O.timeoutMillis,O.withCredentials)};
Gg6.prototype.getTransmissionType=function(){return 1};var N9j=function(O,m){this.f1q=O;this.event=m;this.startTime=nd()},$uI;
N9j.prototype.done=function(){this.f1q.b3(this.event,nd()-this.startTime)};
var w6=function(){Zr.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.X(w6,Zr);_.eB=function(O,m,G){var B=nd();m=m();O.b3(G,nd()-B);return m};
$uI=function(){w6.apply(this,arguments)};
_.X($uI,w6);_.v=$uI.prototype;_.v.ajf=function(){};
_.v.hu=function(){};
_.v.b3=function(){};
_.v.logError=function(){};
_.v.kl=function(){};
_.v.bFh=function(){};
_.v.fIV=function(){};
_.v.dGV=function(){};
var PC9=function(O){w6.call(this);var m=this;this.tM=O;this.TEST_ONLY={agn:function(){return m.tM},
getExperimentIds:function(){return m.tM.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void m.tM.dispose()})};
_.X(PC9,w6);_.v=PC9.prototype;_.v.update=function(O){this.tM.dispose();this.tM=O};
_.v.hu=function(O){this.tM.hu(O)};
_.v.b3=function(O,m){this.tM.b3(O,m)};
_.v.logError=function(O){this.tM.logError(O)};
_.v.kl=function(){this.tM.kl()};
_.v.bFh=function(O){this.tM.bFh(O)};
_.v.fIV=function(O){this.tM.fIV(O)};
_.v.dGV=function(O){this.tM.dGV(O)};
_.v.ajf=function(O){this.tM.ajf(O)};
var FsC=function(O,m){_.Iw.call(this);var G=this;this.callback=O;this.nIg=m;this.kmg=-m;this.addOnDisposeCallback(function(){return void clearTimeout(G.timer)})};
_.X(FsC,_.Iw);var AY2=function(O){if(O.timer===void 0){var m=Math.max(0,O.kmg+O.nIg-nd());O.timer=setTimeout(function(){try{O.callback()}finally{O.kmg=nd(),O.timer=void 0}},m)}},OdH=function(O,m){w6.call(this);
this.metrics=O;this.wj=m};
_.X(OdH,w6);_.v=OdH.prototype;_.v.ajf=function(O){this.metrics.wtP.record(O,this.wj)};
_.v.hu=function(O){this.metrics.eventCount.increment(O,this.wj)};
_.v.b3=function(O,m){this.metrics.kfj.record(m,O,this.wj)};
_.v.logError=function(O){this.metrics.errorCount.increment(O,this.wj)};
_.v.bFh=function(O){this.metrics.o1C.increment(O,this.wj)};
_.v.fIV=function(O){this.metrics.hkZ.increment(O,this.wj)};
_.v.dGV=function(O){this.metrics.w6r.increment(O,this.wj)};
var M9Y=function(O,m){m=m===void 0?[]:m;var G={wj:O.wj||"_",lie:O.lie||[],y2l:O.y2l|0,destinationUrl:O.destinationUrl,nEl:O.nEl||function(){},
f86:O.f86||function(H,M){return KMS(H,M,G.nEl,G.destinationUrl)}},B=G.f86("51",G.lie.concat(m));
OdH.call(this,{wtP:new La2(B),errorCount:new aq9(B),eventCount:new o0m(B),kfj:new lq$(B),wWC:new CGp(B),o1C:new kcC(B),hkZ:new yLH(B),w6r:new cLe(B)},G.wj);var Q=this;this.TEST_ONLY={getExperimentIds:function(){return Q.options.lie.concat(Q.mRw).sort(function(H,M){return H-M})}};
this.options=G;this.service=B;this.qRw=!O.f86;this.flushDebouncer=new FsC(function(){return void Q.service.snapshotAndFlush()},G.y2l);
this.addOnDisposeCallback(function(){Q.flushDebouncer.dispose();Q.qRw&&Q.service.dispose()});
(this.mRw=m.slice()).sort(_.TNe)};
_.X(M9Y,OdH);M9Y.prototype.kl=function(){AY2(this.flushDebouncer)};var G2p=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(G2p,_.MP);_.BAr=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(_.BAr,_.MP);var DL=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O,0,DL.messageId)};
_.X(DL,_.MP);var mZp=_.o0z(DL);DL.messageId="bfkj";var EBe=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(EBe,_.MP);var Gy$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Gy$,_.MP);var B_j=_.bG(Gy$);_.Vg=function(){var O=this;this.promise=new Promise(function(m,G){O.resolve=m;O.reject=G})};_.Dr=function(O){_.Iw.call(this);var m=this;this.gnV=Math.floor(Math.random()*200);this.b3f=new Gy$;if("challenge"in O&&mZp(O.challenge)){var G=_.Eg(O.challenge,4,void 0,Ij);var B=_.Eg(O.challenge,5,void 0,Ij);_.Eg(O.challenge,7,void 0,Ij)&&(this.b3f=B_j(_.Eg(O.challenge,7,void 0,Ij)))}else G=O.program,B=O.globalName;this.addOnDisposeCallback(function(){var n,I,S;return _.r(function(L){if(L.nextAddress==1)return L.yield(m.fLf,2);n=L.yieldResult;I=n.atr;(S=I)==null||S();_.ju(L)})});
this.yV=rE5(O.s6a||{},this.b3f);_.VV(this,this.yV);var Q=new _.Vg;this.fLf=Q.promise;this.yV.hu("t");var H=this.yV.share(),M=new N9j(H,"t"),R=function(n,I,S,L){if(!m.yV.isDisposed()){var C="k";I?C="h":S&&(C="u");C!=="k"?L!==0&&(m.yV.hu(C),m.yV.b3(C,n)):m.gnV<=0?(m.yV.hu(C),m.yV.b3(C,n),m.gnV=Math.floor(Math.random()*200)):m.gnV--}},x=function(n,I,S,L){Promise.resolve().then(function(){M.done();
H.kl();H.dispose();Q.resolve({puy:n,atr:I,sVw:S,nJ5:L})})};
if(!_.Qf[B])throw this.yV.logError(25),Error("Ca");if(!_.Qf[B].a)throw this.yV.logError(26),Error("Da");try{var t=_.Qf[B].a;B=[];for(var W=[],Z=Lm6(this.b3f),z=0;z<Z.length;z++)B.push(Z[z]),W.push(1);var J=CzM(this.b3f);for(Z=0;Z<J.length;Z++)B.push(J[Z]),W.push(2);this.nwy=_.K(t(G,x,!0,O.x8y,R,[B,W],_.Eg(this.b3f,5),!1)).next().value;this.cAG=Q.promise.then(function(){})}catch(n){throw this.yV.logError(28),n;
}};
_.X(_.Dr,_.Iw);_.Dr.prototype.snapshot=function(O){if(this.isDisposed())throw Error("Ea");this.yV.hu("n");var m=this.yV.share();return this.fLf.then(function(G){var B=G.puy;return new Promise(function(Q){var H=new N9j(m,"n");B(function(M){H.done();m.ajf(M.length);m.kl();m.dispose();Q(M)},[O.fK,
O.abL,O.ftk,O.noU])})})};
_.Dr.prototype.maG=function(O){this.fLf.then(function(m){var G;(G=m.sVw)==null||G(O)})};
_.Dr.prototype.g8G=function(O,m){return this.fLf.then(function(G){var B;return(B=G.nJ5)==null?void 0:B(O,m,!1)})};
_.Dr.prototype.xTI=function(){return this.yV.share()};var Qwe=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Qwe,_.MP);var Qq6=_.o0z(Qwe);var Hd2=function(){this.promises={};this.pUg=null},va9=function(){Hd2.instance||(Hd2.instance=new Hd2);
return Hd2.instance},$Z_=function(O,m){return K_9(O,_.RO(m,G2p,1,Ij),_.RO(m,_.BAr,2,Ij),_.Eg(m,3,void 0,Ij))},K_9=function(O,m,G,B){if(!m&&!G)return Promise.resolve();
if(!B)return UuI(m,G);var Q;(Q=O.promises)[B]||(Q[B]=new Promise(function(H,M){UuI(m,G).then(function(){O.pUg=B;H()},function(R){delete O.promises[B];
M(R)})}));
return O.promises[B]};var Meo=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Meo,_.MP);var rF$=function(O,m){return _.sp(O,1,m)},REm=function(O,m){return _.sp(O,2,m)};var s2=function(O){_.Iw.call(this);var m=this;this.options=O;this.c6e=new _.Vg;this.cAG=this.c6e.promise;this.xX6=new _.Vg;this.dfM=1;this.nkI=new _.Vg;this.qWG=[];this.f2h=O.f2h||function(){};
this.dyA=new PC9(rE5(O.s6a||{}));id$(this,O.cu,O.y75,O.qiY,O.v4Y,Object.assign({},xZu,O.y4a||{}));this.addOnDisposeCallback(function(){return void q0p(m)})};
_.X(s2,_.Iw);s2.prototype.snapshot=function(O){var m=this;return _.r(function(G){switch(G.nextAddress){case 1:if(m.isDisposed())throw Error("Ea");if(m.hg||m.eSg){G.jumpTo(2);break}return G.yield(m.xX6.promise,2);case 2:if(!m.hg){G.jumpTo(4);break}return G.yield(m.hg.snapshot(O),5);case 5:return G.return(G.yieldResult);case 4:throw m.eSg;}})};
var UZj=function(O){var m;return _.r(function(G){if(O.isDisposed())throw Error("Ea");(m=O.cf)!=null&&(m.endTimeMs=0,m.resolver(1));return G.yield(O.nkI.promise,0)})},q0p=function(O){O.eSg=Error("Ga");
O.xX6.resolve();oBN(O.c6e.promise);O.c6e.reject(Error("Ga"));O.dyA.dispose();Promise.all(O.qWG).then(function(){var G;return _.r(function(B){(G=O.hg)==null||G.dispose();O.hg=void 0;_.ju(B)})});
O.qWG=[];var m;(m=O.cf)!=null&&(m.endTimeMs=0,m.resolver(1));oBN(O.nkI.promise);O.nkI.reject(Error("Ga"))};
s2.prototype.maG=function(O){var m,G;(m=this.hg)==null||(G=m.maG)==null||G.call(m,O)};
s2.prototype.g8G=function(O,m){var G,B,Q;return(Q=(G=this.hg)==null?void 0:(B=G.g8G)==null?void 0:B.call(G,O,m))!=null?Q:Promise.resolve()};
var tes=function(O,m){var G=O.f2h;O.f2h=function(){G();m()}},W_j=function(O,m){O.isDisposed()||(O.hg=m,O.dyA.update(m.xTI()),O.xX6.resolve(),O.c6e.resolve(void 0),O.f2h())};
s2.prototype.handleError=function(O){if(!this.isDisposed()){this.eSg=O;this.xX6.resolve();var m,G;(G=(m=this.options).f0h)==null||G.call(m,O)}};
var Zd8=function(O,m){m&&(Promise.all(O.qWG).then(function(){return void m.dispose()}),O.qWG=[])},Nv=function(O,m){O.dfM=m;
var G,B;(B=(G=O.options).iwb)==null||B.call(G,m)},zEp=function(O){O.isDisposed()||(O.nkI.resolve(),O.nkI=new _.Vg)},id$=function(O,m,G,B,Q,H){B=B===void 0?va9():B;
Q=Q===void 0?Promise.resolve(void 0):Q;var M,R,x,t,W,Z,z,J,n,I,S,L;_.r(function(C){switch(C.nextAddress){case 1:return C.yield(0,3);case 3:R=null;if(!M){C.jumpTo(6);break}Nv(O,7);_.n_(C,7);return C.yield(g_(M.snapshot({}),H.gNw,function(){return Promise.resolve("E:CTO")}),9);
case 9:R=C.yieldResult;_.P7(C,6);break;case 7:_.uS(C),R="E:UCE";case 6:x=void 0,t=M?H.zog:H.gBw,W=new Wh(t,H.qB5,H.jYz,H.xWE),Z=1;case 10:if(!(Z<=H.maxAttempts)){C.jumpTo(12);break}if(Z===1){C.jumpTo(13);break}Nv(O,0);O.cf=new JFs(W.getValue(),H.sD5,H.j15);return C.yield(O.cf.promise,14);case 14:z=C.yieldResult,O.cf=void 0,z===1?(Z=1,W.reset()):I99(W);case 13:_.n_(C,15);J=void 0;if(G){J=G;C.jumpTo(17);break}Nv(O,5);n=B.pUg;return C.yield(g_(Ve3(m,n,R),H.qDq,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:J=C.yieldResult;case 17:return Nv(O,3),C.yield(g_($Z_(B,J),H.jMg,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return Nv(O,8),C.yield(Q,20);case 20:return I=new _.Dr({challenge:J,s6a:O.options.s6a,x8y:O.options.x8y}),C.yield(g_(I.cAG,H.nx2,function(){return Promise.reject(Error("Ja"))}),21);
case 21:x=I;C.jumpTo(12);break;case 15:S=_.uS(C),O.handleError(S),zEp(O);case 11:Z++;C.jumpTo(10);break;case 12:if(O.isDisposed()){C.jumpTo(5);break}x&&(G=void 0,Zd8(O,M),M=x,W_j(O,x),zEp(O));Nv(O,2);O.cf=new JFs(H.rH5,H.sD5,H.j15);return C.yield(O.cf.promise,22);case 22:O.cf=void 0;if(O.isDisposed()){C.jumpTo(5);break}C.jumpTo(3);break;case 5:(L=M)==null||L.dispose(),_.ju(C)}})};
s2.prototype.xTI=function(){return this.dyA.share()};
var xZu={rH5:432E5,sD5:3E5,j15:10,gNw:1E4,qDq:3E4,jMg:3E4,nx2:6E4,gBw:1E3,zog:6E4,qB5:6E5,jYz:.25,xWE:2,maxAttempts:10},JFs=function(O,m,G){var B=this;this.endTimeMs=Date.now()+O;this.promise=new Promise(function(H){B.resolver=H});
var Q=function(){var H=B.endTimeMs-Date.now();H<=G?B.resolver(0):setTimeout(Q,Math.min(H,m))};
Q()};var bdu,ZRs=(bdu=Math.imul)!=null?bdu:function(O,m){return O*m|0},uj=[196,
200,224,18],Pk=function(O,m,G){G=G===void 0?[]:G;this.maxItems=O;this.vO=m===void 0?0:m;this.eU=G},nau=function(O){var m=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!m)return new Pk(O);var G=m.split(",");if(G.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Pk(O);m=G.slice(1);m.length===1&&m[0]===""&&(m=[]);G=Number(G[0]);return isNaN(G)||G<0||G>m.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Pk(O)):new Pk(O,G,m)};
Pk.prototype.serialize=function(){return String(this.vO)+","+this.eU.join()};
Pk.prototype.insert=function(O,m){var G=void 0;if(this.eU[this.vO]!==O){var B=this.eU.indexOf(O);B!==-1?(this.eU.splice(B,1),B<this.vO&&this.vO--,this.eU.splice(this.vO,0,O)):(G=this.eU[this.vO],this.eU[this.vO]=O)}this.vO=(this.vO+1)%this.maxItems;O=t9I("iU5q-!O9@$",this.serialize());G&&O&&m(G);return O};
var XhU=function(O,m){this.vFf=m;try{var G=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(B){G=!1}G&&(this.index=nau(O))},fZp=function(O,m,G,B,Q){var H=O.index?_.eB(O.vFf,function(){return bRS(O.index,JEY(m),G,B,Q)},"W"):"u";
O.vFf.dGV(H)},hEU=function(O,m,G){var B=_.K(O.index?_.eB(O.vFf,function(){return nRN(JEY(m),G)},"R"):["u"]),Q=B.next().value;
B=B.next().value;O.vFf.fIV(Q);return B};var T_j={toString:function(O){var m=[],G=0;O-=-2147483648;m[G++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(O%52);for(O=Math.floor(O/52);O>0;)m[G++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(O%62),O=Math.floor(O/62);return m.join("")}};var jwu=function(O){O=ga9(O);for(var m=2654435769,G=2654435769,B=314159265,Q=O.length,H=Q,M=0,R=function(){m-=G;m-=B;m^=B>>>13;G-=B;G-=m;G^=m<<8;B-=m;B-=G;B^=G>>>13;m-=G;m-=B;m^=B>>>12;G-=B;G-=m;G^=m<<16;B-=m;B-=G;B^=G>>>5;m-=G;m-=B;m^=B>>>3;G-=B;G-=m;G^=m<<10;B-=m;B-=G;B^=G>>>15};H>=12;H-=12,M+=12)m+=uKm(O,M),G+=uKm(O,M+4),B+=uKm(O,M+8),R();
B+=Q;switch(H){case 11:B+=O[M+10]<<24;case 10:B+=O[M+9]<<16;case 9:B+=O[M+8]<<8;case 8:G+=O[M+7]<<24;case 7:G+=O[M+6]<<16;case 6:G+=O[M+5]<<8;case 5:G+=O[M+4];case 4:m+=O[M+3]<<24;case 3:m+=O[M+2]<<16;case 2:m+=O[M+1]<<8;case 1:m+=O[M]}R();return T_j.toString(B)},ga9=function(O){for(var m=[],G=0;G<O.length;G++)m.push(O.charCodeAt(G));
return m},uKm=function(O,m){return O[m]+(O[m+1]<<8)+(O[m+2]<<16)+(O[m+3]<<24)};var Fn=function(O){_.Iw.call(this);this.jy=O;this.sZc=new _.Vg};
_.X(Fn,_.Iw);var IZp=function(O,m){var G=setTimeout(function(){O.sZc.resolve()},m);
O.addOnDisposeCallback(function(){return void clearTimeout(G)})};
Fn.prototype.vaa=function(O,m){var G=this.nZ(O);m==null||m(G);return _.eB(this.jy,function(){return _.pB(G,2)},this.eKf)};
var ph$=function(O,m,G,B){return _.eB(O.jy,function(){return G?O.vaa(m,B):O.nZ(m,B)},O.weG)},S03=function(O,m,G,B){Fn.call(this,O);
this.uvG=m;this.pWG=G;this.weG="m";this.eKf="x";this.epk=0;IZp(this,B)};
_.X(S03,Fn);S03.prototype.nZ=function(O,m){var G=this;this.jy.hu(this.weG);++this.epk>=this.pWG&&this.sZc.resolve();var B=O();O=_.eB(this.jy,function(){return G.uvG(B)},"C");
if(O===void 0)throw new t$(17,"YNJ:Undefined");if(!(O instanceof Uint8Array))throw new t$(18,"ODM:Invalid");m==null||m(O);return O};
var Ea$=function(O,m,G){Fn.call(this,O);this.xCO=m;this.weG="f";this.eKf="z";IZp(this,G)};
_.X(Ea$,Fn);Ea$.prototype.nZ=function(){return this.xCO};
var L_e=function(O,m,G){Fn.call(this,O);this.bSq=m;this.weG="w";this.eKf="z";IZp(this,G)};
_.X(L_e,Fn);L_e.prototype.nZ=function(){var O=this;return _.eB(this.jy,function(){return _.Az(O.bSq)},"d")};
L_e.prototype.vaa=function(){return this.bSq};
var Cj9=function(O,m){Fn.call(this,O);this.error=m;this.weG="e";this.eKf="y"};
_.X(Cj9,Fn);var oa$=function(O,m){var G=(m(O.error.message)+":"+m(O.error.stack)).substring(0,2048);m=G.length+1;G=X75(G);var B=new Uint8Array(4+G.length);B.set([42,m&127|128,m>>7,O.error.code]);B.set(G,4);return B};
Cj9.prototype.nZ=function(){if(this.h1c)return this.h1c;this.h1c=oa$(this,function(O){return"_"+jwu(O)});
return oa$(this,function(O){return O})};
var lZm=function(O,m,G){Fn.call(this,O);this.axy=m;this.clientState=G;this.weG="S";this.eKf="q"};
_.X(lZm,Fn);lZm.prototype.nZ=function(){var O=Math.floor(Date.now()/1E3),m=[Math.random()*255,Math.random()*255],G=m.concat([this.axy&255,this.clientState],[O>>24&255,O>>16&255,O>>8&255,O&255]);O=new Uint8Array(2+G.length);O[0]=34;O[1]=G.length;O.set(G,2);G=O.subarray(2);for(var B=m=m.length;B<G.length;++B)G[B]^=G[B%m];this.jy.bFh(this.clientState);return O};var aZ2={tuz:3E4,oCn:2E4},A$=function(O){_.Iw.call(this);var m=this;this.pkd=new _.Vg;this.vaM=0;this.my=void 0;this.state=2;this.vm=O.vm;this.cu=O.cu;this.y4a=Object.assign({},aZ2,O.y4a||{});this.lH=O.vm.xTI();var G;this.onError=(G=O.onError)!=null?G:function(){};
this.vQi=O.vQi||!1;if(kyo(O)){var B=this.vm;this.rJl=function(){return UZj(B).catch(function(M){M=m.reportError(new t$(m.tf?20:32,"TRG:Disposed",M));m.my=M;var R;(R=m.tf)==null||R.dispose();m.tf=void 0;m.pkd.reject(M)})};
tes(B,function(){return void yFs(m)});
B.dfM===2&&yFs(this)}else this.rJl=O.dRC,yFs(this);var Q=this.lH.share();Q.hu("o");var H=new N9j(Q,"o");this.pkd.promise.then(function(){H.done();Q.kl();Q.dispose()},function(){return void Q.dispose()});
this.addOnDisposeCallback(function(){m.tf?(m.tf.dispose(),m.tf=void 0):m.my?m.lH.kl():(m.my=m.reportError(new t$(32,"TNP:Disposed")),m.lH.kl(),m.pkd.reject(m.my))});
_.VV(this,this.lH)};
_.X(A$,_.Iw);A$.prototype.d2l=function(){return this.pkd.promise};
var cFs=function(O,m){if(!(m instanceof t$))if(m instanceof _.yy){var G=Error(m.toString());G.stack=m.stack;m=new t$(11,"EBH:Error",G)}else m=new t$(12,"BSO:Unknown",m);return O.reportError(m)},yFs=function(O){var m,G,B,Q,H,M,R,x,t,W,Z,z,J,n,I;
return _.r(function(S){switch(S.nextAddress){case 1:m=void 0;O.vaM++;G=new _.Vg;O.vm instanceof s2&&O.vm.qWG.push(G.promise);if(!O.vQi){S.jumpTo(2);break}B=new _.Vg;setTimeout(function(){return void B.resolve()});
return S.yield(B.promise,2);case 2:return Q=O.lH.share(),_.n_(S,4,5),O.state=5,H={},M=[],S.yield(g_(O.vm.snapshot({fK:H,ftk:M}),O.y4a.oCn,function(){return Promise.reject(new t$(15,"MDA:Timeout"))}),7);
case 7:R=S.yieldResult;if(O.isDisposed())throw new t$(O.tf?20:32,"MDA:Disposed");x=M[0];O.state=6;return S.yield(g_(Y0o(O.cu,R),O.y4a.tuz,function(){return Promise.reject(new t$(10,"BWB:Timeout"))}),8);
case 8:t=S.yieldResult;if(O.isDisposed())throw new t$(O.tf?20:32,"BWB:Disposed");O.state=7;m=_.eB(Q,function(){var C=dZH(O,t,G,x);C.sZc.promise.then(function(){return void O.rJl()});
return C},"i");
case 5:_.f_(S);Q.dispose();_.T9(S,6);break;case 4:W=_.uS(S);(Z=m)==null||Z.dispose();if(!O.my){z=cFs(O,W);G.resolve();var L;if(L=O.vm instanceof s2&&O.vaM<2)a:if(W instanceof t$)L=W.code!==32&&W.code!==20&&W.code!==10;else{if(W instanceof _.yy)switch(W.code){case 2:case 13:case 14:case 4:break;default:L=!1;break a}L=!0}if(L)return J=(1+Math.random()*.25)*(O.tf?6E4:1E3),n=setTimeout(function(){return void O.rJl()},J),O.addOnDisposeCallback(function(){return void clearTimeout(n)}),S.return();
O.my=z}Q.logError(O.tf?13:14);O.pkd.reject(O.my);return S.return();case 6:O.state=8,O.vaM=0,(I=O.tf)==null||I.dispose(),O.tf=m,O.pkd.resolve(),_.ju(S)}})},dZH=function(O,m,G,B){var Q=nYe(m,2)*1E3;
if(Q<=0)throw new t$(31,"TTM:Invalid");if(_.Eg(m,4))return new L_e(O.lH,_.Eg(m,4),Q);if(!nYe(m,3))return new Ea$(O.lH,vYf(_.fq(m,1)),Q);if(!B)throw new t$(4,"PMD:Undefined");B=B(vYf(_.fq(m,1)));if(!(B instanceof Function))throw new t$(16,"APF:Failed");O.gLk=Math.floor((Date.now()+Q)/1E3);O=new S03(O.lH,B,nYe(m,3),Q);O.addOnDisposeCallback(function(){return void G.resolve()});
return O};
A$.prototype.nZ=function(O){return who(this,Object.assign({},O),!1)};
A$.prototype.vaa=function(O){return who(this,Object.assign({},O),!0)};
A$.prototype.qT0=function(O){if(O>150)return!1;try{return this.cache=new XhU(O,this.lH),!0}catch(m){return this.reportError(new t$(22,"GBJ:init",m)),!1}};
A$.prototype.reportError=function(O){this.lH.logError(O.code);this.onError(O);return O};
var eEe=function(O,m){m=m instanceof t$?m:new t$(5,"TVD:error",m);return O.reportError(m)},who=function(O,m,G){try{if(O.isDisposed())throw new t$(21,"BNT:disposed");
if(!O.tf&&O.my)throw O.my;var B,Q;return(Q=(B=DZj(O,m,G))!=null?B:swe(O,m,G))!=null?Q:N_C(O,m,G)}catch(H){if(!m.fB1)throw eEe(O,H);return Pjo(O,G,H)}},DZj=function(O,m,G){var B;
return(B=O.tf)==null?void 0:ph$(B,function(){return F_o(O,m)},G,function(Q){var H;
if(O.tf instanceof S03&&((H=m.s6)==null?0:H.emq))try{var M;(M=O.cache)==null||fZp(M,F_o(O,m),Q,m.s6.k90,O.gLk-120)}catch(R){O.reportError(new t$(24,"ELX:write",R))}})},swe=function(O,m,G){var B;
if((B=m.s6)!=null&&B.uDc)try{var Q,H=(Q=O.cache)==null?void 0:hEU(Q,F_o(O,m),m.s6.k90);return H?G?_.eB(O.lH,function(){return _.pB(H,2)},"a"):H:void 0}catch(M){O.reportError(new t$(23,"RXO:read",M))}},N_C=function(O,m,G){var B={stack:[],
error:void 0,hasError:!1};try{if(!m.lBU)throw new t$(29,"SDF:notready");return ph$($t6(B,new lZm(O.lH,0,O.state)),function(){return F_o(O,m)},G)}catch(Q){B.error=Q,B.hasError=!0}finally{MWS(B)}},Pjo=function(O,m,G){var B={stack:[],
error:void 0,hasError:!1};try{var Q=eEe(O,G);return ph$($t6(B,new Cj9(O.lH,Q)),function(){return[]},m)}catch(H){B.error=H,B.hasError=!0}finally{MWS(B)}},F_o=function(O,m){return m.cUq?m.cUq:m.fK?_.eB(O.lH,function(){return m.cUq=X75(m.fK)},"c"):[]},kyo=function(O){return E3(function(m){if(!rh(m))return!1;
for(var G=_.K(Object.entries(O)),B=G.next();!B.done;B=G.next()){var Q=_.K(B.value);B=Q.next().value;Q=Q.next().value;if(!(B in m)){if(Q.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!Q(m[B]))return!1}return!0})}({vm:function(O){return E3(function(m){return m instanceof O})}(s2)},"");var AFs=function(){var O=_.WX();this.JSC$9915_streamzService=O;O.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",xa("cookie_enabled"),xa("cookie_3p_enabled"),_.U0("browser"))};
AFs.prototype.increment=function(O,m,G){this.JSC$9915_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",O,m,G)};
var woN=function(){var O=_.WX();this.JSC$9939_streamzService=O;O.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",qZ("tick"),xa("from_st_cookie"))};
woN.prototype.increment=function(O,m){this.JSC$9939_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",O,m)};
var OS3=function(){var O=_.WX();this.JSC$9945_streamzService=O;O.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.U0("status"))};
OS3.prototype.increment=function(O){this.JSC$9945_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",O)};
var m_m=function(){var O=_.WX();this.JSC$9948_streamzService=O;O.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.U0("stage"),xa("is_using_ytd_player"),xa("has_expandable_tiles"))};
m_m.prototype.increment=function(O,m,G){this.JSC$9948_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",O,m,G)};
var GJe=function(){var O=_.WX();this.JSC$9951_streamzService=O;O.addNewCounter("/client_streamz/youtube/web/response_signature",_.U0("check_status"))};
GJe.prototype.increment=function(O){this.JSC$9951_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/response_signature",O)};
var BhC=function(){var O=_.WX();this.JSC$9954_streamzService=O;O.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.U0("sig"),qZ("de"))};
BhC.prototype.increment=function(O,m){this.JSC$9954_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/e_sig_log",O,m)};
var Q9p=function(){var O=_.WX();this.JSC$9957_streamzService=O;O.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.U0("sig"),qZ("de"))};
Q9p.prototype.increment=function(O,m){this.JSC$9957_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/e_sig_en",O,m)};
_.HSj=function(){var O=_.WX();this.JSC$9960_streamzService=O;O.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.U0("action"))};
_.HSj.prototype.increment=function(O){this.JSC$9960_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/enforcement_intent",O)};var O6=window;var vvm=(new Date).getTime();_.aM.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.aM.createSet("action","cite","data","formaction","href","manifest","poster","src");var KN$=function(O){this.servicePromise_=O;O.then((0,_.pd)(function(){},this),function(){},this)},$__=function(O,m,G){O.servicePromise_.then(function(B){var Q=B[m];
if(!Q)throw Error("Ka`"+m);return Q.apply(B,G)})},Rlm=function(O,m,G){for(var B=Array(arguments.length-2),Q=2;Q<arguments.length;Q++)B[Q-2]=arguments[Q];
Q=ME3(O,m).then(function(H){return H.apply(null,B)},function(H){H=Error("La`"+m+"`"+O,{cause:H});
delete r09[m];return _.lK(H)});
return new KN$(Q)},r09={},ME3=function(O,m){var G=r09[m];
if(G)return G;G=(G=_.ex(m))?_.ZY(G):(new _.zH(function(B,Q){var H=(new C4(document)).createElement("SCRIPT");H.async=!0;_.$3(H,_.p9(vhp(O)));H.onload=H.onreadystatechange=function(){H.readyState&&H.readyState!="loaded"&&H.readyState!="complete"||B()};
H.onerror=function(M){Q(Error("Ma`"+m+"`"+O,{cause:M}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(H)})).then(function(){var B=_.ex(m);
if(!B)throw Error("Na`"+m+"`"+O);return B});
return r09[m]=G};var iSm={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},qR8=function(){var O=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=fgM(function(){return _.r(function(m){if(m.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?m.return(Promise.resolve()):m.yield(x_j(O),2);O.rsaForList.length>
0&&document.addEventListener("click",O.requestAccessForHelpPanel);_.ju(m)})});
this.requestAccessForHelpPanel=function(){if(!(O.rsaForPromises.length>0)){for(var m=_.K(O.rsaForList),G=m.next();!G.done;G=m.next()){G=G.value;try{O.rsaForPromises.push(document.requestStorageAccessFor(G))}catch(B){}}Promise.all(O.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){O.reset()})}}};
qR8.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var x_j=function(O){var m,G,B,Q;return _.r(function(H){switch(H.nextAddress){case 1:m=_.K(Object.values(iSm)),G=m.next();case 2:if(G.done){H.jumpTo(0);break}B=G.value;_.n_(H,5);return H.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:B}),7);case 7:Q=H.yieldResult;Q.state!=="granted"&&O.rsaForList.push(B);_.P7(H,3);break;case 5:_.uS(H);H.jumpTo(0);break;case 3:G=m.next(),H.jumpTo(2)}})};(new qR8).initialize();var U_2=function(O){this.JSC$9974_loader_=O};
U_2.prototype.startHelp=function(O){$__(this.JSC$9974_loader_,"startHelp",arguments)};
U_2.prototype.JSC$9976_loadChatSupport=function(O){$__(this.JSC$9974_loader_,"loadChatSupport",arguments)};
var WNo=function(O,m){m=m||{};O=Rlm(tE2,"help.service.Lazy.create",O,{apiKey:m.apiKey||m.apiKey,asxUiUri:m.asxUiUri||m.asxUiUri,environment:m.environment||m.environment,flow:m.flow||m.flow,frdProductData:m.frdProductData||m.frdProductData,frdProductDataSerializedJspb:m.frdProductDataSerializedJspb||m.frdProductDataSerializedJspb,helpCenterPath:m.helpCenterPath||m.helpCenterPath,locale:m.locale||m.locale||"en-US".replace(/-/g,"_"),nonce:m.nonce||m.nonce,productData:m.productData||m.productData,receiverUri:m.receiverUri||
m.receiverUri,renderApiUri:m.renderApiUri||m.renderApiUri,theme:m.theme||m.theme,window:m.window||m.window});return new U_2(O)},tE2=new yT(j_r,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var ZSp=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(ZSp,_.MP);var zl8=_.bG(ZSp);var J0j=[0,_.B4,Pp,Rjr];_.VE9=new function(O,m,G,B){this.configType=O;this.flagName=G;this.defaultValue=B;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 nv9=function(){this.retriever=_.KR().resolve(bSU)};_.B$={get payments(){return window.payments}};TII(Node);TII(Element);var XfU=TII(HTMLElement);TII(SVGElement);var fKe,hlm,Qn,Thm;fKe=function(O){return typeof O.className=="string"?O.className:O.getAttribute&&O.getAttribute("class")||""};
hlm=function(O){return O.classList?O.classList:fKe(O).match(/\S+/g)||[]};
_.m7=function(O,m){typeof O.className=="string"?O.className=m:O.setAttribute&&O.setAttribute("class",m)};
_.BG=function(O,m){return O.classList?O.classList.contains(m):_.kO(hlm(O),m)};
_.$g=function(O,m){if(O.classList)O.classList.add(m);else if(!_.BG(O,m)){var G=fKe(O);_.m7(O,G+(G.length>0?" "+m:m))}};
Qn=function(O,m){if(O.classList)Array.prototype.forEach.call(m,function(Q){_.$g(O,Q)});
else{var G={};Array.prototype.forEach.call(hlm(O),function(Q){G[Q]=!0});
Array.prototype.forEach.call(m,function(Q){G[Q]=!0});
m="";for(var B in G)m+=m.length>0?" "+B:B;_.m7(O,m)}};
_.v6=function(O,m){O.classList?O.classList.remove(m):_.BG(O,m)&&_.m7(O,Array.prototype.filter.call(hlm(O),function(G){return G!=m}).join(" "))};
Thm=function(O,m){O.classList?Array.prototype.forEach.call(m,function(G){_.v6(O,G)}):_.m7(O,Array.prototype.filter.call(hlm(O),function(G){return!_.kO(m,G)}).join(" "))};var gv3=function(O){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=O.document},IK9=function(O,m){uH_(O);
var G=document.createElement("div"),B;(B=m.parentNode)==null||B.insertBefore(G,m);G.tabIndex=0;G.id="fc-focus-trap-pre-div";G=document.createElement("div");var Q;(Q=m.parentNode)==null||Q.insertBefore(G,m.nextSibling);G.tabIndex=0;G.id="fc-focus-trap-post-div";var H=j9j(O,m),M=j9j(O,m,!0);H&&M&&(O.focusChangeHandler=function(){var R=O.document.activeElement;if(R)if(_.DZ(m,R))O.previouslyFocusedElement=R;else if(R===O.document.activeElement)switch(O.previouslyFocusedElement){case H:M.focus();O.previouslyFocusedElement=
M;break;default:H.focus(),O.previouslyFocusedElement=H}},O.document.addEventListener("focus",O.focusChangeHandler,!0),O.document.addEventListener("focusin",O.focusChangeHandler))},uH_=function(O){O.focusChangeHandler&&(document.removeEventListener("focus",O.focusChangeHandler,!0),document.removeEventListener("focusin",O.focusChangeHandler),O.focusChangeHandler=null);
var m;(m=document.getElementById("fc-focus-trap-pre-div"))==null||m.remove();var G;(G=document.getElementById("fc-focus-trap-post-div"))==null||G.remove()},pfj=function(O,m,G,B,Q){G=G===void 0?!0:G;
var H;Q=(H=Q===void 0?null:Q)!=null?H:j9j(O,m,B===void 0?!1:B);Q!==null&&(Q.focus(),G&&IK9(O,m))};
gv3.prototype.disableButton=function(O,m){m=m===void 0?null:m;O.disabled=!0;m&&_.$g(O,m)};
var j9j=function(O,m,G){G=G===void 0?!1:G;if(spr(m)&&!G)return m;var B=G?[].slice.call(m.children,0).reverse():m.children;B=_.K(B);for(var Q=B.next();!Q.done;Q=B.next())if(Q=Q.value,XfU(Q)&&(Q=j9j(O,Q,G)))return Q;return spr(m)&&G?m:null};var SR$=function(O){this.originalBodyOverflow="";this.JSC$10001_domHelper=jS(O)};
SR$.prototype.enableScrolling=function(){this.JSC$10001_domHelper.JSC$9327_document_.body.style.overflow=this.originalBodyOverflow};_.MQ(_.Se,_.Iw);_.v=_.Se.prototype;_.v.JSC$10004_id_=0;_.v.disposeInternal=function(){_.Se.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10002_listener_;delete this.handler_};
_.v.start=function(O){this.stop();this.JSC$10004_id_=kN(this.callback_,O!==void 0?O:this.JSC$10002_interval_)};
_.v.stop=function(){this.isActive()&&_.Qf.clearTimeout(this.JSC$10004_id_);this.JSC$10004_id_=0};
_.v.fire=function(){this.stop();this.JSC$10004_doAction_()};
_.v.isActive=function(){return this.JSC$10004_id_!=0};
_.v.JSC$10004_doAction_=function(){this.JSC$10004_id_=0;this.JSC$10002_listener_&&this.JSC$10002_listener_.call(this.handler_)};_.xf=function(O){_.Iw.call(this);this.handler_=O;this.JSC$10005_keys_={}};
_.MQ(_.xf,_.Iw);var Evj=[];_.xf.prototype.listen=function(O,m,G,B){Array.isArray(m)||(m&&(Evj[0]=m.toString()),m=Evj);for(var Q=0;Q<m.length;Q++){var H=_.Cm(O,m[Q],G||this.handleEvent,B||!1,this.handler_||this);if(!H)break;this.JSC$10005_keys_[H.key]=H}return this};
_.xf.prototype.listenOnce=function(O,m,G,B){return LNj(this,O,m,G,B)};
var LNj=function(O,m,G,B,Q,H){if(Array.isArray(G))for(var M=0;M<G.length;M++)LNj(O,m,G[M],B,Q,H);else{m=pm(m,G,B||O.handleEvent,Q,H||O.handler_||O);if(!m)return O;O.JSC$10005_keys_[m.key]=m}return O};
_.xf.prototype.unlisten=function(O,m,G,B,Q){if(Array.isArray(m))for(var H=0;H<m.length;H++)this.unlisten(O,m[H],G,B,Q);else if(O=HL3(O,m,G||this.handleEvent,_.Dp(B)?!!B.capture:!!B,Q||this.handler_||this))Sg(O),delete this.JSC$10005_keys_[O.key];return this};
_.xf.prototype.removeAll=function(){_.aM.forEach(this.JSC$10005_keys_,function(O,m){this.JSC$10005_keys_.hasOwnProperty(m)&&Sg(O)},this);
this.JSC$10005_keys_={}};
_.xf.prototype.disposeInternal=function(){_.xf.superClass_.disposeInternal.call(this);this.removeAll()};
_.xf.prototype.handleEvent=function(){throw Error("Oa");};var HG=function(){_.Iw.call(this);this.services_={}};
_.MQ(HG,_.Iw);HG.prototype.connect=function(O){O&&O()};
HG.prototype.isConnected=function(){return!0};
HG.prototype.registerService=function(O,m,G){this.services_[O]={callback:m,objectPayload:!!G}};
HG.prototype.getService=function(O,m){var G=this.services_[O];return G?G:this.defaultService_?{callback:_.hK(this.defaultService_,O),objectPayload:_.Dp(m)}:null};
var CFs=function(O,m){if(m&&typeof O==="string")try{return JSON.parse(O)}catch(G){return null}else if(!m&&typeof O!=="string")return(0,_.ck)(O);return O};
HG.prototype.disposeInternal=function(){HG.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 vG=function(O,m){this.sequence_=[];this.onCancelFunction_=O;this.defaultScope_=m||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};
vG.prototype.cancel=function(O){if(this.fired_)this.result_ instanceof vG&&this.result_.cancel();else{if(this.parent_){var m=this.parent_;delete this.parent_;O?m.cancel(O):(m.branches_--,m.branches_<=0&&m.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new KY(this))}};
vG.prototype.continue_=function(O,m){this.blocked_=!1;ov$(this,O,m)};
var ov$=function(O,m,G){O.fired_=!0;O.result_=G;O.hadError_=!m;lK8(O)},kJe=function(O){if(O.fired_){if(!O.silentlyCanceled_)throw new aKo(O);
O.silentlyCanceled_=!1}};
vG.prototype.callback=function(O){kJe(this);ov$(this,!0,O)};
vG.prototype.errback=function(O){kJe(this);ov$(this,!1,O)};
var y0C=function(O,m,G){$r(O,m,null,G)};
vG.prototype.finally=function(O){var m=this;return c0p(new Promise(function(G,B){$r(m,function(Q){O();G(Q)},function(Q){O();
B(Q)})}))};
var $r=function(O,m,G,B){var Q=O.fired_;Q||(m===G?m=G=Cy(m):(m=Cy(m),G=Cy(G)));O.sequence_.push([m,G,B]);Q&&lK8(O)};
vG.prototype.then=function(O,m,G){var B,Q,H=new _.zH(function(M,R){Q=M;B=R});
$r(this,Q,function(M){M instanceof KY?H.cancel():B(M);return YR3},this);
return H.then(O,m,G)};
xMo(vG);var d__=function(O,m){m instanceof vG?y0C(O,(0,_.pd)(m.branch,m)):y0C(O,function(){return m})};
vG.prototype.branch=function(O){var m=new vG;$r(this,m.callback,m.errback,m);O&&(m.parent_=this,this.branches_++);return m};
vG.prototype.isError=function(O){return O instanceof Error};
var wf9=function(O){return Av(O.sequence_,function(m){return typeof m[1]==="function"})},YR3={},lK8=function(O){if(O.unhandledErrorId_&&O.fired_&&wf9(O)){var m=O.unhandledErrorId_,G=elu[m];
G&&(_.Qf.clearTimeout(G.JSC$10022_id_),delete elu[m]);O.unhandledErrorId_=0}O.parent_&&(O.parent_.branches_--,delete O.parent_);m=O.result_;for(var B=G=!1;O.sequence_.length&&!O.blocked_;){var Q=O.sequence_.shift(),H=Q[0],M=Q[1];Q=Q[2];if(H=O.hadError_?M:H)try{var R=H.call(Q||O.defaultScope_,m);R===YR3&&(R=void 0);R!==void 0&&(O.hadError_=O.hadError_&&(R==m||O.isError(R)),O.result_=m=R);if(q_9(m)||typeof _.Qf.Promise==="function"&&m instanceof _.Qf.Promise)B=!0,O.blocked_=!0}catch(x){m=x,O.hadError_=
!0,wf9(O)||(G=!0)}}O.result_=m;B&&(R=(0,_.pd)(O.continue_,O,!0),B=(0,_.pd)(O.continue_,O,!1),m instanceof vG?($r(m,R,B),m.blocking_=!0):m.then(R,B));G&&(m=new D_3(m),elu[m.JSC$10022_id_]=m,O.unhandledErrorId_=m.JSC$10022_id_)},c0p=function(O){var m=new vG;
O.then(function(G){m.callback(G)},function(G){m.errback(G)});
return m},aKo=function(){_.GY.call(this)};
_.MQ(aKo,_.GY);aKo.prototype.message="Deferred has already fired";aKo.prototype.name="AlreadyCalledError";var KY=function(){_.GY.call(this)};
_.MQ(KY,_.GY);KY.prototype.message="Deferred was canceled";KY.prototype.name="CanceledError";var D_3=function(O){this.JSC$10022_id_=_.Qf.setTimeout((0,_.pd)(this.throwError,this),0);this.JSC$10022_error_=O};
D_3.prototype.throwError=function(){delete elu[this.JSC$10022_id_];throw this.JSC$10022_error_;};
var elu={};var s9j={1:"NativeMessagingTransport"},NhH=["pu","lru","pru","lpu","ppu"],FN2=function(){for(var O=10,m=PFC,G=m.length,B="";O-- >0;)B+=m.charAt(Math.floor(Math.random()*G));return B},PFC="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Mm=function(O){_.Iw.call(this);this.JSC$10025_domHelper_=O||jS()};
_.MQ(Mm,_.Iw);Mm.prototype.transportType=0;Mm.prototype.getWindow=function(){return this.JSC$10025_domHelper_.getWindow()};
Mm.prototype.getName=function(){return s9j[String(this.transportType)]||""};var rW=function(O,m,G,B,Q){Mm.call(this,G);this.JSC$10028_channel_=O;this.protocolVersion_=Q||2;this.peerHostname_=m||"*";this.JSC$10028_eventHandler_=new _.xf(this);this.maybeAttemptToConnectTimer_=new _.iH(100,this.getWindow());this.oneSidedHandshake_=!!B;this.setupAckReceived_=new vG;this.setupAckSent_=new vG;this.JSC$10028_connected_=new vG;this.endpointId_=FN2();this.peerEndpointId_=null;this.oneSidedHandshake_?A0u(this.JSC$10028_channel_)==1?d__(this.JSC$10028_connected_,this.setupAckReceived_):
d__(this.JSC$10028_connected_,this.setupAckSent_):(d__(this.JSC$10028_connected_,this.setupAckReceived_),this.protocolVersion_==2&&d__(this.JSC$10028_connected_,this.setupAckSent_));y0C(this.JSC$10028_connected_,this.notifyConnected_,this);this.JSC$10028_connected_.callback(!0);this.JSC$10028_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.MQ(rW,Mm);rW.prototype.peerProtocolVersion_=null;rW.prototype.initialized_=!1;rW.prototype.transportType=1;var On$={};rW.prototype.sendTimerId_=0;
var Bi8=function(O){var m=O.event_.data;if(typeof m!=="string")return!1;var G=m.indexOf("|"),B=m.indexOf(":");if(G==-1||B==-1)return!1;var Q=m.substring(0,G);G=m.substring(G+1,B);m=m.substring(B+1);if(B=RK[Q])return B.xpcDeliver(G,m,O.event_.origin),!0;B=mru(m)[0];for(var H in RK){var M=RK[H];if(A0u(M)==1&&!M.isConnected()&&G=="tp"&&(B=="SETUP"||B=="SETUP_NTPV2")&&Gn3(M,O.event_.origin))return delete RK[M.name],M.name=Q,RK[Q]=M,M.xpcDeliver(G,m),!0}return!1},Q82=function(O){O.protocolVersion_!=2||
O.peerProtocolVersion_!=null&&O.peerProtocolVersion_!=2||O.send("tp","SETUP_NTPV2,"+O.endpointId_);
O.peerProtocolVersion_!=null&&O.peerProtocolVersion_!=1||O.send("tp","SETUP")},Hn8=function(O,m){if(O.protocolVersion_!=2||O.peerProtocolVersion_!=null&&O.peerProtocolVersion_!=2||m!=2){if(O.peerProtocolVersion_!=null&&O.peerProtocolVersion_!=1||m!=1)return;
O.send("tp","SETUP_ACK")}else O.send("tp","SETUP_ACK_NTPV2");O.setupAckSent_.fired_||O.setupAckSent_.callback(!0)},vB9=function(O,m){m>O.peerProtocolVersion_&&(O.peerProtocolVersion_=m);
O.peerProtocolVersion_==1&&(O.setupAckSent_.fired_||O.oneSidedHandshake_||O.setupAckSent_.callback(!0),O.peerEndpointId_=null)};
_.v=rW.prototype;_.v.connect=function(){var O=this.getWindow(),m=_.sS(O),G=On$[m];typeof G!=="number"&&(G=0);G==0&&_.Cm(O.postMessage?O:O.document,"message",Bi8,!1,rW);On$[m]=G+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.v.maybeAttemptToConnect_=function(){var O=A0u(this.JSC$10028_channel_)==0;this.oneSidedHandshake_&&O||this.JSC$10028_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),Q82(this))};
_.v.send=function(O,m){var G=this.JSC$10028_channel_.peerWindowObject_;G&&(this.send=function(B,Q){var H=this,M=this.JSC$10028_channel_.name;this.sendTimerId_=kN(function(){H.sendTimerId_=0;try{var R=G.postMessage?G:G.document;R.postMessage&&R.postMessage(M+"|"+B+":"+Q,H.peerHostname_)}catch(x){}},0)},this.send(O,m))};
_.v.notifyConnected_=function(){var O=this.JSC$10028_channel_,m=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;O.isConnected()||O.connectionDelay_&&O.connectionDelay_.isActive()||(O.state_=2,_.Kd(O.connectionDelay_),m!==void 0?(O.connectionDelay_=new _.Se(O.connectCb_,m),O.connectionDelay_.start()):(O.connectionDelay_=null,O.connectCb_()))};
_.v.disposeInternal=function(){if(this.initialized_){var O=this.getWindow(),m=_.sS(O),G=On$[m];On$[m]=G-1;G==1&&_.E2(O.postMessage?O:O.document,"message",Bi8,!1,rW)}this.sendTimerId_&&(_.Qf.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Kd(this.JSC$10028_eventHandler_);delete this.JSC$10028_eventHandler_;_.Kd(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10028_connected_.cancel();delete this.JSC$10028_connected_;delete this.send;rW.superClass_.disposeInternal.call(this)};
var mru=function(O){O=O.split(",");O[1]=O[1]||null;return O};var $r_;_.ie=function(O){if(O.getValues&&typeof O.getValues=="function")return O.getValues();if(typeof Map!=="undefined"&&O instanceof Map||typeof Set!=="undefined"&&O instanceof Set)return Array.from(O.values());if(typeof O==="string")return O.split("");if(_.YO(O)){for(var m=[],G=O.length,B=0;B<G;B++)m.push(O[B]);return m}return _.aM.getValues(O)};
_.KmH=function(O){if(O.getKeys&&typeof O.getKeys=="function")return O.getKeys();if(!O.getValues||typeof O.getValues!="function"){if(typeof Map!=="undefined"&&O instanceof Map)return Array.from(O.keys());if(!(typeof Set!=="undefined"&&O instanceof Set)){if(_.YO(O)||typeof O==="string"){var m=[];O=O.length;for(var G=0;G<O;G++)m.push(G);return m}return _.aM.getKeys(O)}}};
$r_=function(O,m,G){if(O.forEach&&typeof O.forEach=="function")O.forEach(m,G);else if(_.YO(O)||typeof O==="string")Array.prototype.forEach.call(O,m,G);else for(var B=_.KmH(O),Q=_.ie(O),H=Q.length,M=0;M<H;M++)m.call(G,Q[M],B&&B[M],O)};var NmN,zm,Vn,Ur3,MxU,R23,rN2,qZ$,in3;
_.Bd=function(O,m){this.JSC$10033_domain_=this.userInfo_=this.scheme_="";this.JSC$10033_port_=null;this.fragment_=this.JSC$10033_path_="";this.JSC$10033_ignoreCase_=!1;var G;O instanceof _.Bd?(this.JSC$10033_ignoreCase_=m!==void 0?m:O.JSC$10033_ignoreCase_,_.xr(this,O.scheme_),this.userInfo_=O.userInfo_,_.qm(this,O.JSC$10033_domain_),_.U6(this,O.JSC$10033_port_),_.tZ(this,O.getPath()),_.WG(this,O.JSC$10033_queryData_.clone()),_.ZI(this,O.fragment_)):O&&(G=_.mM(String(O)))?(this.JSC$10033_ignoreCase_=
!!m,_.xr(this,G[1]||"",!0),this.userInfo_=zm(G[2]||""),_.qm(this,G[3]||"",!0),_.U6(this,G[4]),_.tZ(this,G[5]||"",!0),_.WG(this,G[6]||"",!0),_.ZI(this,G[7]||"",!0)):(this.JSC$10033_ignoreCase_=!!m,this.JSC$10033_queryData_=new _.JZ(null,this.JSC$10033_ignoreCase_))};
_.Bd.prototype.toString=function(){var O=[],m=this.scheme_;m&&O.push(Vn(m,MxU,!0),":");var G=this.JSC$10033_domain_;if(G||m=="file")O.push("//"),(m=this.userInfo_)&&O.push(Vn(m,MxU,!0),"@"),O.push(_.sZ(G).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),G=this.JSC$10033_port_,G!=null&&O.push(":",String(G));if(G=this.getPath())this.JSC$10033_domain_&&G.charAt(0)!="/"&&O.push("/"),O.push(Vn(G,G.charAt(0)=="/"?rN2:R23,!0));(G=this.JSC$10033_queryData_.toString())&&O.push("?",G);(G=this.fragment_)&&O.push("#",
Vn(G,in3));return O.join("")};
_.Bd.prototype.resolve=function(O){var m=this.clone(),G=!!O.scheme_;G?_.xr(m,O.scheme_):G=!!O.userInfo_;G?m.userInfo_=O.userInfo_:G=!!O.JSC$10033_domain_;G?_.qm(m,O.JSC$10033_domain_):G=O.JSC$10033_port_!=null;var B=O.getPath();if(G)_.U6(m,O.JSC$10033_port_);else if(G=!!O.JSC$10033_path_){if(B.charAt(0)!="/")if(this.JSC$10033_domain_&&!this.JSC$10033_path_)B="/"+B;else{var Q=m.getPath().lastIndexOf("/");Q!=-1&&(B=m.getPath().slice(0,Q+1)+B)}Q=B;if(Q==".."||Q==".")B="";else if(_.is(Q,"./")||_.is(Q,
"/.")){B=_.KN(Q,"/");Q=Q.split("/");for(var H=[],M=0;M<Q.length;){var R=Q[M++];R=="."?B&&M==Q.length&&H.push(""):R==".."?((H.length>1||H.length==1&&H[0]!="")&&H.pop(),B&&M==Q.length&&H.push("")):(H.push(R),B=!0)}B=H.join("/")}else B=Q}G?_.tZ(m,B):G=O.JSC$10033_queryData_.toString()!=="";G?_.WG(m,O.JSC$10033_queryData_.clone()):G=!!O.fragment_;G&&_.ZI(m,O.fragment_);return m};
_.Bd.prototype.clone=function(){return new _.Bd(this)};
_.xr=function(O,m,G){O.scheme_=G?zm(m,!0):m;O.scheme_&&(O.scheme_=O.scheme_.replace(/:$/,""));return O};
_.qm=function(O,m,G){O.JSC$10033_domain_=G?zm(m,!0):m;return O};
_.U6=function(O,m){if(m){m=Number(m);if(isNaN(m)||m<0)throw Error("Pa`"+m);O.JSC$10033_port_=m}else O.JSC$10033_port_=null;return O};
_.Bd.prototype.getPath=function(){return this.JSC$10033_path_};
_.tZ=function(O,m,G){O.JSC$10033_path_=G?zm(m,!0):m;return O};
_.WG=function(O,m,G){m instanceof _.JZ?(O.JSC$10033_queryData_=m,xr$(O.JSC$10033_queryData_,O.JSC$10033_ignoreCase_)):(G||(m=Vn(m,qZ$)),O.JSC$10033_queryData_=new _.JZ(m,O.JSC$10033_ignoreCase_));return O};
_.AF=function(O,m,G){O.JSC$10033_queryData_.set(m,G);return O};
_.FK=function(O,m){return O.JSC$10033_queryData_.get(m)};
_.ZI=function(O,m,G){O.fragment_=G?zm(m):m;return O};
_.be=function(O){_.AF(O,"zx",NZ());return O};
_.Ph=function(O,m){return O instanceof _.Bd?O.clone():new _.Bd(O,m)};
NmN=function(O,m){O instanceof _.Bd||(O=_.Ph(O));m instanceof _.Bd||(m=_.Ph(m));return O.resolve(m)};
zm=function(O,m){return O?m?decodeURI(O.replace(/%25/g,"%2525")):decodeURIComponent(O):""};
Vn=function(O,m,G){return typeof O==="string"?(O=encodeURI(O).replace(m,Ur3),G&&(O=O.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),O):null};
Ur3=function(O){O=O.charCodeAt(0);return"%"+(O>>4&15).toString(16)+(O&15).toString(16)};
MxU=/[#\/\?@]/g;R23=/[#\?:]/g;rN2=/[#\?]/g;qZ$=/[#\?@]/g;in3=/#/g;_.JZ=function(O,m){this.count_=this.keyMap_=null;this.encodedQuery_=O||null;this.JSC$10034_ignoreCase_=!!m};
_.nY=function(O){O.keyMap_||(O.keyMap_=new Map,O.count_=0,O.encodedQuery_&&B5U(O.encodedQuery_,function(m,G){O.add(H7(m),G)}))};
_.v=_.JZ.prototype;_.v.getCount=function(){_.nY(this);return this.count_};
_.v.add=function(O,m){_.nY(this);this.encodedQuery_=null;O=X0(this,O);var G=this.keyMap_.get(O);G||this.keyMap_.set(O,G=[]);G.push(m);this.count_+=1;return this};
_.v.remove=function(O){_.nY(this);O=X0(this,O);return this.keyMap_.has(O)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(O).length,this.keyMap_.delete(O)):!1};
_.v.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.v.isEmpty=function(){_.nY(this);return this.count_==0};
_.v.containsKey=function(O){_.nY(this);O=X0(this,O);return this.keyMap_.has(O)};
_.v.containsValue=function(O){var m=this.getValues();return _.kO(m,O)};
_.v.forEach=function(O,m){_.nY(this);this.keyMap_.forEach(function(G,B){G.forEach(function(Q){O.call(m,Q,B,this)},this)},this)};
_.v.getKeys=function(){_.nY(this);for(var O=Array.from(this.keyMap_.values()),m=Array.from(this.keyMap_.keys()),G=[],B=0;B<m.length;B++)for(var Q=O[B],H=0;H<Q.length;H++)G.push(m[B]);return G};
_.v.getValues=function(O){_.nY(this);var m=[];if(typeof O==="string")this.containsKey(O)&&(m=m.concat(this.keyMap_.get(X0(this,O))));else{O=Array.from(this.keyMap_.values());for(var G=0;G<O.length;G++)m=m.concat(O[G])}return m};
_.v.set=function(O,m){_.nY(this);this.encodedQuery_=null;O=X0(this,O);this.containsKey(O)&&(this.count_-=this.keyMap_.get(O).length);this.keyMap_.set(O,[m]);this.count_+=1;return this};
_.v.get=function(O,m){if(!O)return m;O=this.getValues(O);return O.length>0?String(O[0]):m};
_.txu=function(O,m,G){O.remove(m);G.length>0&&(O.encodedQuery_=null,O.keyMap_.set(X0(O,m),_.cM(G)),O.count_+=G.length)};
_.JZ.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var O=[],m=Array.from(this.keyMap_.keys()),G=0;G<m.length;G++){var B=m[G],Q=_.sZ(B);B=this.getValues(B);for(var H=0;H<B.length;H++){var M=Q;B[H]!==""&&(M+="="+_.sZ(B[H]));O.push(M)}}return this.encodedQuery_=O.join("&")};
_.JZ.prototype.clone=function(){var O=new _.JZ;O.encodedQuery_=this.encodedQuery_;this.keyMap_&&(O.keyMap_=new Map(this.keyMap_),O.count_=this.count_);return O};
var X0=function(O,m){m=String(m);O.JSC$10034_ignoreCase_&&(m=m.toLowerCase());return m},xr$=function(O,m){m&&!O.JSC$10034_ignoreCase_&&(_.nY(O),O.encodedQuery_=null,O.keyMap_.forEach(function(G,B){var Q=B.toLowerCase();
B!=Q&&(this.remove(B),_.txu(this,Q,G))},O));
O.JSC$10034_ignoreCase_=m};
_.JZ.prototype.extend=function(O){for(var m=0;m<arguments.length;m++)$r_(arguments[m],function(G,B){this.add(B,G)},this)};var fY=function(O,m){HG.call(this);for(var G=0,B;B=NhH[G];G++)if(B in O&&!/^https?:\/\//.test(O[B]))throw Error("Ra`"+O[B]+"`"+B);this.cfg_=O;this.name=this.cfg_.cn||FN2();this.JSC$10029_domHelper_=m||jS();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.xf(this);O.lpu=O.lpu||mP9(this.JSC$10029_domHelper_.getWindow().location.href)+"/robots.txt";O.ppu=O.ppu||mP9(O.pu||"")+"/robots.txt";RK[this.name]=this;HL3(window,"unload",WmU)||pm(window,"unload",WmU)};
_.MQ(fY,HG);var Zne=RegExp("^%*tp$"),z2_=RegExp("^%+tp$");_.v=fY.prototype;_.v.connectionDelay_=null;_.v.peerWindowDeferred_=null;_.v.transport_=null;_.v.state_=1;_.v.isConnected=function(){return this.state_==2};
_.v.peerWindowObject_=null;_.v.iframeElement_=null;_.v.getConfig=function(){return this.cfg_};
_.v.connect=function(O){this.connectCb_=O||_.ID;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?y0C(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.v.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10029_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var O=this.iframeElement_.contentWindow;O||(O=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=O}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$10029_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new rW(this,this.cfg_.ph,this.JSC$10029_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()()};
_.v.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Kd(this.transport_);this.connectCb_=this.transport_=null;_.Kd(this.connectionDelay_);this.connectionDelay_=null};
_.v.send=function(O,m){if(this.isConnected()){try{var G=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(Q){G=!1}if(G){_.Dp(m)&&(m=(0,_.ck)(m));G=this.transport_;var B=G.send;Zne.test(O)&&(O="%"+O);O=O.replace(/[%:|]/g,encodeURIComponent);B.call(G,O,m)}else this.close()}};
_.v.xpcDeliver=function(O,m,G){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.pd)(this.xpcDeliver,this,O,m,G));else if(Gn3(this,G)&&!this.isDisposed()&&this.state_!=3)if(O&&O!="tp")this.isConnected()&&(O=O.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),O=z2_.test(O)?O.substring(1):O,O=this.getService(O,m))&&(m=CFs(m,O.objectPayload),m!=null&&O.callback(m));else switch(O=this.transport_,G=mru(m),m=G[1],G[0]){case "SETUP_ACK":vB9(O,1);O.setupAckReceived_.fired_||O.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":O.protocolVersion_==2&&(vB9(O,2),O.setupAckReceived_.fired_||O.setupAckReceived_.callback(!0));break;case "SETUP":vB9(O,1);Hn8(O,1);break;case "SETUP_NTPV2":O.protocolVersion_==2&&(G=O.peerProtocolVersion_,vB9(O,2),Hn8(O,2),G!=1&&O.peerEndpointId_==null||O.peerEndpointId_==m||Q82(O),O.peerEndpointId_=m)}};
var A0u=function(O){var m=O.cfg_.role;return typeof m==="number"?m:window.parent==O.peerWindowObject_?1:0},Gn3=function(O,m){var G=O.cfg_.ph;
return _.Re(m==null?"":String(m))||_.Re(G==null?"":String(G))||m==O.cfg_.ph};
fY.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete RK[this.name];_.Kd(this.peerLoadHandler_);delete this.peerLoadHandler_;fY.superClass_.disposeInternal.call(this)};
var WmU=function(){for(var O in RK)_.Kd(RK[O])},RK={};var Vxp=function(O,m){this.JSC$10043_win=O;this.allowAdsHttpEndpoint=m;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10043_domHelper=jS(O);this.scrollManager=new SR$(O);this.accessibilityManager=new gv3(O);JN2(this)},JN2=function(O){var m=function(){O.allowAdsPopup&&O.allowAdsPopup.style.setProperty("display","none","important");
O.wallElement.style.setProperty("display","","important");uH_(O.accessibilityManager);pfj(O.accessibilityManager,O.wallElement.querySelector(".fc-dialog-container"),!1,!1,O.wallElement.querySelector(".fc-button-whitelist"));O.scrollManager.enableScrolling()};
O.allowAdsPopup=O.JSC$10043_domHelper.JSC$9329_createDom("DIV",{"class":"fc-whitelist-root"});O.allowAdsPopup.style.setProperty("display","none","important");O.JSC$10043_domHelper.appendChild(O.JSC$10043_domHelper.JSC$9327_document_.body,O.allowAdsPopup);var G=O.JSC$10043_domHelper.JSC$9329_createDom("DIV",{"class":"fc-dialog-overlay"});O.JSC$10043_domHelper.appendChild(O.allowAdsPopup,G);var B=O.JSC$10043_domHelper.JSC$9329_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:m});O.JSC$10043_domHelper.appendChild(O.allowAdsPopup,
B);G=O.JSC$10043_domHelper.JSC$9329_createDom("IFRAME");G.className="fc-whitelist-dialog";G.frameBorder="0";G.id="fc-whitelist-iframe";G.tabIndex="0";_.mI(G,O.allowAdsHttpEndpoint);O.JSC$10043_domHelper.appendChild(B,G);B={};B.pu=_.Eh(O.allowAdsHttpEndpoint).toString();B.tp=1;B.cn="fc-whitelist-channel";B.ifrid=G.id;B.osh=!0;O.allowAdsCrossPageChannel=new fY(B);O.allowAdsCrossPageChannel.registerService("close",m);O.allowAdsCrossPageChannel.registerService("refresh",function(){O.JSC$10043_win.location.reload()});
O.allowAdsCrossPageChannel.registerService("resize",function(Q){if(Q){var H=O.allowAdsPopup.querySelector(".fc-whitelist-dialog");Q.width&&H.style.setProperty("width",Q.width,"important");Q.height&&H.style.setProperty("height",Q.height,"important")}},!0);
O.allowAdsCrossPageChannel.connect()};
Vxp.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10043_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var hZ=window,Tm=document,bn9=hZ.location,nBj=function(){},Xx$=/\[native code\]/,gW=function(O,m,G){return O[m]=O[m]||G},fyo=function(O){O=O.sort();
for(var m=[],G=void 0,B=0;B<O.length;B++){var Q=O[B];Q!=G&&m.push(Q);G=Q}return m},ue=function(){var O;
if((O=Object.create)&&Xx$.test(O))O=O(null);else{O={};for(var m in O)O[m]=void 0}return O},IK=gW(hZ,"gapi",{});var pY={};pY=gW(hZ,"___jsl",ue());gW(pY,"I",0);gW(pY,"hel",10);var h2U=function(){var O=bn9.href;if(pY.dpo)var m=pY.h;else{m=pY.h;var G=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),B=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(O=O&&(G.exec(O)||B.exec(O)))try{m=decodeURIComponent(O[2])}catch(Q){}}return m},Ti9=function(O){var m=gW(pY,"PQ",[]);
pY.PQ=[];var G=m.length;if(G===0)O();else for(var B=0,Q=function(){++B===G&&O()},H=0;H<G;H++)m[H](Q)},gB8=function(O){return gW(gW(pY,"H",ue()),O,ue())};var Sf=function(O){this.JSC$10045_obj_=O};
Sf.prototype.value=function(){return this.JSC$10045_obj_};
Sf.prototype.getWidth=function(){return this.JSC$10045_obj_.width};
Sf.prototype.getHeight=function(){return this.JSC$10045_obj_.height};
Sf.prototype.getStyle=function(){return this.JSC$10045_obj_.style};var uq$=function(O){this.JSC$10048_obj_=O||{}};
_.v=uq$.prototype;_.v.value=function(){return this.JSC$10048_obj_};
_.v.setUrl=function(O){this.JSC$10048_obj_.url=O;return this};
_.v.getUrl=function(){return this.JSC$10048_obj_.url};
_.v.getStyle=function(){return this.JSC$10048_obj_.style};
_.v.getId=function(){return this.JSC$10048_obj_.id};
_.v.getContext=function(){return this.JSC$10048_obj_.context};
var j89=function(O){O.JSC$10048_obj_.attributes=O.JSC$10048_obj_.attributes||{};return new Sf(O.JSC$10048_obj_.attributes)};var Iy3=function(){uq$.apply(this,arguments)};
_.X(Iy3,uq$);var pxe=gW(pY,"perf",ue());gW(pxe,"g",ue());var SZ3=gW(pxe,"i",ue());gW(pxe,"r",[]);ue();ue();var Lm_=function(O,m,G){m&&m.length>0&&(m=EBj(m),G&&G.length>0&&(m+="___"+EBj(G)),m.length>28&&(m=m.substr(0,28)+(m.length-28)),G=m,m=gW(SZ3,"_p",ue()),gW(m,G,ue())[O]=(new Date).getTime(),m=pxe.r,typeof m==="function"?m(O,"_p",G):m.push([O,"_p",G]))},EBj=function(O){return O.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Czs=ue(),oB8=[],E6=function(O){throw Error("Ua`"+O);};
oB8.push(["jsl",function(O){for(var m in O)if(Object.prototype.hasOwnProperty.call(O,m)){var G=O[m];typeof G=="object"?pY[m]=gW(pY,m,[]).concat(G):gW(pY,m,G)}if(m=O.u)O=gW(pY,"us",[]),O.push(m),(m=/^https:(.*)$/.exec(m))&&O.push("http:"+m[1])}]);
var ly9=/^(\/[a-zA-Z0-9_\-]+)+$/,ays=[/\/amp\//,/\/amp$/,/^\/amp$/],kn8=/^[a-zA-Z0-9\-_\.,!]+$/,yNo=/^gapi\.loaded_[0-9]+$/,cNp=/^[a-zA-Z0-9,._-]+$/,e22=function(O,m,G,B,Q){var H=O.split(";"),M=H.shift(),R=Czs[M],x=null;R?x=R(H,m,G,B):E6("no hint processor for: "+M);x||E6("failed to generate load url");m=x;G=m.match(YZH);(B=m.match(dr_))&&B.length===1&&wxs.test(m)&&G&&G.length===1||E6("failed sanity: "+O);try{O="?";if(Q&&Q.length>0){h6s(Q);var t=Q.join(",");x=x+"?le="+t;O="&"}if(pY.rol){var W=pY.ol;
W&&W.length&&(x=""+x+O+"ol="+W.length)}}catch(Z){}return x},NiU=function(O,m,G,B){O=Drs(O);
yNo.test(G)||E6("invalid_callback");m=s88(m);B=B&&B.length?s88(B):null;var Q=function(H){return encodeURIComponent(H).replace(/%2C/g,",")};
return[encodeURIComponent(O.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",Q(O.version),"/m=",Q(m),B?"/exm="+Q(B):"","/rt=j/sv=1/d=1/ed=1",O.activeMods?"/am="+Q(O.activeMods):"",O.resourceSig?"/rs="+Q(O.resourceSig):"",O.zcms?"/t="+Q(O.zcms):"","/cb=",Q(G)].join("")},Drs=function(O){O.charAt(0)!=="/"&&E6("relative path");
for(var m=O.substring(1).split("/"),G=[];m.length;){O=m.shift();if(!O.length||O.indexOf(".")==0)E6("empty/relative directory");else if(O.indexOf("=")>0){m.unshift(O);break}G.push(O)}O={};for(var B=0,Q=m.length;B<Q;++B){var H=m[B].split("="),M=decodeURIComponent(H[0]),R=decodeURIComponent(H[1]);H.length==2&&M&&R&&(O[M]=O[M]||R)}m="/"+G.join("/");ly9.test(m)||E6("invalid_prefix");G=0;for(B=ays.length;G<B;++G)ays[G].test(m)&&E6("invalid_prefix");G=PzU(O,"k",!0);B=PzU(O,"am");Q=PzU(O,"rs");O=PzU(O,"t");
return{pathPrefix:m,version:G,activeMods:B,resourceSig:Q,zcms:O}},s88=function(O){for(var m=[],G=0,B=O.length;G<B;++G){var Q=O[G].replace(/\./g,"_").replace(/-/g,"_");
cNp.test(Q)&&m.push(Q)}return m.join(",")},PzU=function(O,m,G){O=O[m];
!O&&G&&E6("missing: "+m);if(O){if(kn8.test(O))return O;E6("invalid: "+m)}return null},wxs=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,dr_=/\/cb=/g,YZH=/\/\//g;
Czs.m=function(O,m,G,B){(O=O[0])||E6("missing_hint");return"https://apis.google.com"+NiU(O,m,G,B)};
var FmU=decodeURI("%73cript"),ANj=/^[-+_0-9\/A-Za-z]+={0,2}$/,ORo=function(O,m){for(var G=[],B=0;B<O.length;++B){var Q=O[B],H;if(H=Q){a:{for(H=0;H<m.length;H++)if(m[H]===Q)break a;H=-1}H=H<0}H&&G.push(Q)}return G},muj=function(){var O=pY.nonce;
return O!==void 0?O&&O===String(O)&&O.match(ANj)?O:pY.nonce=null:Tm.querySelector?(O=Tm.querySelector("script[nonce]"))?(O=O.nonce||O.getAttribute("nonce")||"",O&&O===String(O)&&O.match(ANj)?pY.nonce=O:pY.nonce=null):null:null},QdU=function(O){if(Tm.readyState!="loading")Gg_(O);
else{var m=muj(),G="";m!==null&&(G=' nonce="'+m+'"');O="<"+FmU+' src="'+encodeURI(O)+'"'+G+"></"+FmU+">";Tm.write(BIu?BIu.createHTML(O):O)}},Gg_=function(O){var m=Tm.createElement(FmU);
m.setAttribute("src",BIu?BIu.createScriptURL(O):O);O=muj();O!==null&&m.setAttribute("nonce",O);m.async="true";(O=Tm.getElementsByTagName(FmU)[0])?O.parentNode.insertBefore(m,O):(Tm.head||Tm.body||Tm.documentElement).appendChild(m)},vR3=function(O,m,G){HR8(function(){var B=m===h2U()?gW(IK,"_",ue()):ue();
B=gW(gB8(m),"_",B);O(B)},G)},Lxp=function(O,m){var G=m||{};
typeof m=="function"&&(G={},G.callback=m);var B=(m=G)&&m._c;if(B)for(var Q=0;Q<oB8.length;Q++){var H=oB8[Q][0],M=oB8[Q][1];M&&Object.prototype.hasOwnProperty.call(B,H)&&M(B[H],O,m)}m=[];O?m=O.split(":"):G.features&&(m=G.features);if(!(O=G.h)&&(O=h2U(),!O))throw Error("Va");KM3(m||[],G,O)},KM3=function(O,m,G){O=fyo(O)||[];
var B=m.callback,Q=m.config,H=m.timeout,M=m.ontimeout,R=m.onerror,x=void 0;typeof R=="function"&&(x=R);var t=null,W=!1;if(H&&!M||!H&&M)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";R=gW(gB8(G),"r",[]).sort();var Z=gW(gB8(G),"L",[]).sort(),z=pY.le||[],J=[].concat(R),n=function(P,w){if(W)return 0;hZ.clearTimeout(t);Z.push.apply(Z,I);var d=((IK||{}).config||{}).update;d?d(Q):Q&&gW(pY,"cu",[]).push(Q);if(w){Lm_("me0",P,J);try{vR3(w,G,x)}finally{Lm_("me1",P,J)}}return 1};
H>0&&(t=hZ.setTimeout(function(){W=!0;M()},H));
var I=ORo(O,Z);if(I.length){I=ORo(O,R);var S=gW(pY,"CP",[]),L=S.length;S[L]=function(P){if(!P)return 0;Lm_("ml1",I,J);var w=function(D){S[L]=null;n(I,P)&&Ti9(function(){B&&B();D()})},d=function(){var D=S[L+1];
D&&D()};
L>0&&S[L-1]?S[L]=function(){w(d)}:w(d)};
if(I.length){var C="loaded_"+pY.I++;IK[C]=function(P){S[L](P);IK[C]=null};
O=e22(G,I,"gapi."+C,R,z);R.push.apply(R,I);Lm_("ml0",I,J);m.sync||hZ.___gapisync?QdU(O):Gg_(O)}else S[L](nBj)}else n(I)&&B&&B()},$uC;
var M9p=null,rEU=_.Qf.trustedTypes;if(rEU&&rEU.createPolicy){try{M9p=rEU.createPolicy("goog#gapi",{createHTML:Kuf,createScript:Kuf,createScriptURL:Kuf})}catch(O){_.Qf.console&&_.Qf.console.error(O.message)}$uC=M9p}else $uC=M9p;var BIu=$uC,HR8=function(O,m){if(pY.hee&&pY.hel>0)try{return O()}catch(G){m&&m(G),pY.hel--,Lxp("debug_error",function(){try{window.___jsl.hefn(G)}catch(B){throw G;}})}else try{return O()}catch(G){throw m&&m(G),G;
}},RJj=IK.load;
RJj&&gW(pY,"ol",[]).push(RJj);IK.load=function(O,m){return HR8(function(){return Lxp(O,m)})};var p7O;var xue=function(O,m){var G=G||[];this.serviceId_=O;this.moduleId_=m||null;this.dependencies_=[];iRs(this,G)};
xue.prototype.toString=function(){return this.serviceId_};
xue.prototype.getModuleId=function(){return this.moduleId_};
var iRs=function(O,m){var G=!1;G=G===void 0?!1:G;O.dependencies_=O.dependencies_.concat(m);if(G){if(!O.moduleId_)throw Error("Wa`"+O.serviceId_);m.map(function(B){return B.getModuleId()}).forEach(function(B){Sep(function(Q){Q.addExtraEdge(O.moduleId_,B)})})}};var z8O=new xue("MpJwZc","MpJwZc");var RPz=new _.ul("a"),VU5=new _.ul("c"),JcY=function(O,m,G){_.jB.call(this,O,m);this.node=m;this.kind=G};
_.X(JcY,_.jB);var qee=function(){this.JSC$10061_keys_={};this.urlPrefix_="";this.JSC$10061_queryData_={}};
qee.prototype.toString=function(){var O=this.urlPrefix_+UuC(this),m=_.bb(this.JSC$10061_queryData_),G="";m!=""&&(G="?"+m);return O+G};
var t9C=function(O){O=LY(O,"md");return!!O&&O!=="0"},UuC=function(O){var m=[],G=(0,_.pd)(function(B){this.JSC$10061_keys_[B]!==void 0&&m.push(B+"="+this.JSC$10061_keys_[B])},O);
t9C(O)?(G("md"),G("k"),G("ck"),G("am"),G("rs"),G("gssmodulesetproto"),G("slk"),G("dti")):(G("sdch"),G("k"),G("ck"),G("am"),G("rt"),"d"in O.JSC$10061_keys_||CY(O,"d","0"),G("d"),G("exm"),G("excm"),(O.JSC$10061_keys_.excm||O.JSC$10061_keys_.exm)&&m.push("ed=1"),G("im"),G("dg"),G("sm"),LY(O,"br")!="1"&&LY(O,"br")!="0"||G("br"),G("br-d"),LY(O,"rb")=="1"&&G("rb"),LY(O,"zs")!=="0"&&G("zs"),WMs(O)!==""&&G("wt"),G("gssmodulesetproto"),G("ujg"),G("sp"),G("rs"),G("cb"),G("ee"),G("slk"),G("dti"),G("m"));return m.join("/")},
LY=function(O,m){return O.JSC$10061_keys_[m]?O.JSC$10061_keys_[m]:null},CY=function(O,m,G){G?O.JSC$10061_keys_[m]=G:delete O.JSC$10061_keys_[m]},ZR2=function(O,m){O.urlPrefix_=m},zJp=function(O,m){m&&m.length>0?(m.sort(),CY(O,"exm",m.join(","))):CY(O,"exm",null)},JEp=function(O,m){m&&m.length>0?(m.sort(),CY(O,"excm",m.join(","))):CY(O,"excm",null)},V9m=function(O){return(O=LY(O,"m"))?O.split(","):[]},WMs=function(O){switch(LY(O,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},bR3=function(O,m){var G=Object.keys(m).filter(function(B){return!!Object.keys(m[B]).length}).map(function(B){var Q=Object.keys(m[B]);
Q.length>1&&Q.sort();return B+":"+Q.join(",")});
G.sort();CY(O,"ee",G.join(";"))},cvI=function(O){var m=LY(O,"ee");
if(!m)return{};O={};m=_.K(m.split(";"));for(var G=m.next();!G.done;G=m.next()){var B=_.K(G.value.split(":"));G=B.next().value;B=B.next().value;O[G]={};B=_.K(B.split(","));for(var Q=B.next();!Q.done;Q=B.next())O[G][Q.value]=!0}return O},nR$=function(O){delete O.JSC$10061_keys_.m;
delete O.JSC$10061_keys_.exm;delete O.JSC$10061_keys_.ed};
qee.prototype.clone=function(){var O=new qee;O.JSC$10061_keys_=Object.assign({},this.JSC$10061_keys_);O.urlPrefix_=this.urlPrefix_;O.JSC$10061_queryData_=Object.assign({},this.JSC$10061_queryData_);return O};
var YOs=function(O,m){m=m===void 0?!0:m;var G=X7U(O),B=new qee,Q=_.mM(G)[5];_.aM.forEach(fgs,function(M){var R=Q.match("/"+M+"=([^/]+)");R&&CY(B,M,R[1])});
var H="";H=O.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";ZR2(B,O.substr(0,O.indexOf(H)+H.length));if(!m)return B;(O=_.mM(G)[6]||null)&&B5U(O,function(M,R){B.JSC$10061_queryData_[M]=R});
return B},aDr=function(O){O=_.JE(X7U(O));
return O===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(O)?/\/k=/.test(O):!1},X7U=function(O){return O.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?O.substr(65):O},fgs={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"},hJ$=RegExp("^loaded_(g|h)?[_\\d]+$");_.oK=function(O){this.JSC$10073_id_=O;this.opts={}};
_.oK.prototype.JSC$10075_setLabel=function(O){this.label_=O||void 0;return this};
_.oK.prototype.addUploadMetadata=function(O,m){var G=this.opts.data||{};G[O]=m;this.opts.data=G;return this};
var TIC=function(O){var m=_.aM.filter(O.opts,function(G){return G!==null});
m=_.aM.isEmpty(m)?null:m;O=[O.JSC$10073_id_,O.label_,m];m=Vr5(O);return O=O.slice(0,m+1)};
_.oK.prototype.toString=function(){var O=TIC(this);return"("+_.k6(O,function(m){return JSON.stringify(m)}).join(",")+")"};
_.oK.prototype.getId=function(){return this.JSC$10073_id_};
_.oK.prototype.getOptions=function(){return _.aM.clone(this.opts)};var le=function(){_.oK.call(this,"image-search")};
_.X(le,_.oK);le.prototype.setSize=function(O){this.opts.imgsz=O;return this};
le.prototype.JSC$10075_setLabel=function(O){_.oK.prototype.JSC$10075_setLabel.call(this,O);return this};
le.prototype.addUploadMetadata=function(O,m){_.oK.prototype.addUploadMetadata.call(this,O,m);return this};var aK=function(){_.oK.call(this,"maps")};
_.X(aK,_.oK);aK.prototype.setZoom=function(O){this.opts.zoom=O;return this};
aK.prototype.JSC$10075_setLabel=function(O){_.oK.prototype.JSC$10075_setLabel.call(this,O);return this};
aK.prototype.addUploadMetadata=function(O,m){_.oK.prototype.addUploadMetadata.call(this,O,m);return this};_.kr=function(){_.oK.call(this,"photos")};
_.X(_.kr,_.oK);_.kr.prototype.JSC$10075_setLabel=function(O){_.oK.prototype.JSC$10075_setLabel.call(this,O);return this};
_.kr.prototype.addUploadMetadata=function(O,m){_.oK.prototype.addUploadMetadata.call(this,O,m);return this};var yn=function(){_.oK.call(this,"url")};
_.X(yn,_.oK);var gRp=function(){var O=new yn;O.opts.type="video";O.opts.site="youtube.com";return O};
yn.prototype.JSC$10075_setLabel=function(O){_.oK.prototype.JSC$10075_setLabel.call(this,O);return this};
yn.prototype.addUploadMetadata=function(O,m){_.oK.prototype.addUploadMetadata.call(this,O,m);return this};var cG=function(){_.oK.call(this,"video-search")};
_.X(cG,_.oK);var uz2=function(){var O=new cG;O.opts.site="youtube.com";return O};
cG.prototype.JSC$10075_setLabel=function(O){_.oK.prototype.JSC$10075_setLabel.call(this,O);return this};
cG.prototype.addUploadMetadata=function(O,m){_.oK.prototype.addUploadMetadata.call(this,O,m);return this};var jd2=function(){_.oK.call(this,"web")};
_.X(jd2,_.oK);jd2.prototype.JSC$10075_setLabel=function(O){_.oK.prototype.JSC$10075_setLabel.call(this,O);return this};
jd2.prototype.addUploadMetadata=function(O,m){_.oK.prototype.addUploadMetadata.call(this,O,m);return this};var Yr=function(){this.items_=[];this.opts={}},IgH=function(O){switch(O){case "image-search":return new le;
case "maps":return new aK;case "photos":return new _.kr;case "url":return new yn;case "video-search":return new cG;case "web":return new jd2}return new _.oK(O)};
Yr.prototype.addView=function(O){this.items_.push(typeof O==="string"?IgH(O):O);return this};
var p79=function(O){return"("+_.k6(O.items_,function(m){return m.toString()}).join(",")+")"};
Yr.prototype.toString=function(){return p79(this)};
Yr.prototype.getViews=function(O,m){m=m===void 0?[]:m;for(var G=this.items_,B=0;B<G.length;B++){var Q=G[B];Q instanceof Yr?Q.getViews(O,m):Q.getId()==O&&m.push(Q)}return m};
Yr.prototype.getOptions=function(){return _.aM.clone(this.opts)};var d_=function(O){this.basePickerUrl_=O||"https://docs.google.com/picker";this.nav_=new Yr};
d_.prototype.nav_=null;d_.prototype.addView=function(O){this.nav_.addView(O);return this};
d_.prototype.getBaseUrl=function(){return this.basePickerUrl_};
d_.prototype.getViews=function(O){return this.nav_.getViews(O)};
_.SeH=function(O,m){O.callback_=m;return O};var ERU=new Map;ERU.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");ERU.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");ERU.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var LM3=new Set;LM3.add("application/vnd.google-apps.kix");LM3.add("application/vnd.google-apps.ritz");LM3.add("application/vnd.google-apps.punch");var DuC=function(O,m,G){var B=G&&_.Eg(G,1);G=Cb$(G);var Q=O[0].getId();switch(_.Lq(Q,2)){case 13:return oR$(O,m,B,G);case 3:return lgp(O,m,B,G);case 10:return ag9(O,m,B,G);case 27:return ag9(O,m,B,G);case 12:return kgp(O,m);case 2:return yE9(O,m,B,G);case 5:return cE8(O,m,B,G);case 9:return Yem(O,m,B,G);case 6:return du2(O,m,B,G);case 25:return w78(O,m,B,G);case 1:return _.nq(O[0],zoo,26)?eJC(O,m,B,G):ag9(O,m,B,G);default:return{}}},du2=function(O,m,G,B){O=O.map(function(Q){return{id:Q.getId().getId(),
serviceId:"youtube",name:Q.getName(),description:_.Eg(Q,3),type:dW(Q),lastEditedUtc:_.Z9U(_.RO(Q,_.o$,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Q.getUrl(),embedUrl:_.Eg(Q,13),thumbnails:wW(r6(Q))}});
return{action:m,docs:O,viewToken:B,view:G||"youtube",v2Translated:!0}},yE9=function(O,m,G,B){var Q=O.map(function(H){var M=H.getId().getId(),R=_.Eg(H,7),x=H.getName(),t=dW(H),W=_.Z9U(_.RO(H,_.o$,12)).getTime(),Z=H.getUrl(),z=Number(XmN(H)),J=_.Eg(H,3),n=_.Eg(H,11),I=wW(r6(H));
var S=_.RO(H,R7,21);S=_.IE(S,1);var L=_.RO(H,R7,21);L=_.Eg(L,10);var C=_.Eg(H,13);var P=_.RO(H,R7,21);P=_.IE(P,9);var w=_.RO(H,R7,21);w=_.Eg(w,11);M={id:M,serviceId:"docs",mimeType:R,name:x,type:t,lastEditedUtc:W,url:Z,sizeBytes:z,description:J,iconUrl:n,thumbnails:I,isShared:S,downloadUrl:L,embedUrl:C,copyable:P,resourceKey:w};R=_.RO(H,R7,21);_.IE(R,12)&&(M.uploadState="success",M.isNew=!0);R=_.RO(H,R7,21);_.nq(R,Ky,3)&&(H=_.RO(H,R7,21),H=_.RO(H,Ky,3),_.nq(H,Hk,2)&&(R=ka(H.getDuration().getSeconds()),
x=H.getDuration(),x=_.ij(x,2),M.duration=R+x/1E9),M.aspectRatio=H.getAspectRatio());return M});
return{action:m,docs:Q,viewToken:B,view:G||"all",extraUserInputs:sdm(O),v2Translated:!0}},cE8=function(O,m,G,B){O=O.map(function(Q){var H=_.RO(Q,g0C,15);
H=_.RO(H,vk,1);nE(Q,10,vk,H);return{id:Q.getId().getId(),serviceId:"web",mimeType:_.Eg(Q,7),name:Q.getName(),type:dW(Q),url:Q.getUrl(),description:_.Eg(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wW(r6(Q))}});
return{action:m,docs:O,viewToken:B,view:G||"image-search",v2Translated:!0}},Yem=function(O,m,G,B){O=O.map(function(Q){return{serviceId:"url",
name:r6(Q)[0].getUrl().split("/").pop(),type:dW(Q),mimeType:_.Eg(Q,7),url:Q.getUrl(),description:_.Eg(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wW(r6(Q))}});
return{action:m,docs:O,viewToken:B,view:G||"url",v2Translated:!0}},eJC=function(O,m,G,B){O=O.map(function(Q){return{id:Q.getId().getId(),
serviceId:"picasa",name:Q.getName(),type:dW(Q),description:_.Eg(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wW(r6(Q))}});
return{action:m,docs:O,viewToken:B,view:G||"webcam",v2Translated:!0}},ag9=function(O,m,G,B){return{action:m,
docs:O.map(NIu),viewToken:B,view:Pbo(G||"upload",O),extraUserInputs:sdm(O),v2Translated:!0}},Pbo=function(O,m){return m.some(function(G){var B;
return((B=_.RO(G,$N,30))==null?void 0:_.Lq(B,3))===9})?O+"/gmailphotos":O},lgp=function(O,m,G,B){var Q=O.map(function(H){var M={id:H.getId().getId(),
serviceId:"picasa",mimeType:_.Eg(H,7),name:H.getName(),type:dW(H),lastEditedUtc:_.Z9U(_.RO(H,_.o$,12)).getTime(),url:H.getUrl(),sizeBytes:Number(XmN(H)),description:_.Eg(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wW(r6(H)),mediaKey:H.getId().getId(),parentId:_.Eg(H,4)},R,x=(R=_.RO(H,b99,18))==null?void 0:_.RO(R,VAU,3);x&&(M.latitude=SZ(x,1),M.longitude=SZ(x,2));var t;H=(t=_.RO(H,b99,18))==null?void 0:pq(t,6);t=H!=null?ka(H):void 0;t&&(M.version=
t);return M});
return{action:m,docs:Q,viewToken:B,view:G||"photos",extraUserInputs:sdm(O),v2Translated:!0}},oR$=function(O,m,G,B){O=O.map(function(Q){return{id:Q.getId().getId(),
serviceId:"et",name:r6(Q)[0].getUrl().split("/").pop(),description:_.Eg(Q,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wW(r6(Q),"etjpg")}});
return{action:m,docs:O,viewToken:B,view:G||"et",v2Translated:!0}},w78=function(O,m,G,B){O=O.map(function(Q){var H=Q.getId().getId(),M=B["2"];
return{id:H,serviceId:M.type!=="gmail_themes"&&M.parent==="6226252643674576769"?"picasa":"static_themes",name:Q.getName(),mimeType:_.Eg(Q,7),type:dW(Q),description:_.Eg(Q,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:Q.getUrl(),embedUrl:Q.getUrl(),thumbnails:wW(r6(Q))}});
return{action:m,docs:O,viewToken:B,view:G||"photos",v2Translated:!0}},kgp=function(O,m){O=O.map(function(G){var B=_.RO(G,JL3,27);
B=_.Pb(B,1,_.by,_.Rw())[0];return{id:G.getId().getId(),serviceId:"contacts",mimeType:_.Eg(G,7),name:G.getName(),description:_.Eg(G,3),url:"mailto:"+B,thumbnail:[{url:_.Eg(G,11)}],email:B}});
return{action:m,docs:O,view:"contacts",v2Translated:!0}},Cb$=function(O){if(!O)return{};
var m=_.Eg(O,3);m=m&&JSON.parse(m)||{};return{0:_.Eg(O,1),1:_.Eg(O,2),2:m}},wW=function(O,m){m=m===void 0?"":m;
if(!O.length)return null;m=="etjpg"&&(O=O.filter(function(G){return G.getUrl().includes("w1200-h300")}));
return O.map(function(G){return{url:G.getUrl(),height:G.getHeight(),width:G.getWidth(),type:m}})},sdm=function(O){return{isAttachment:O.some(function(m){return _.IE(m,31)})}},NIu=function(O){var m,G={id:(m=O.getId())==null?void 0:m.getId(),
serviceId:FM3(O),mimeType:_.Eg(O,7),name:O.getName(),type:dW(O),sizeBytes:Number(XmN(O)),description:_.Eg(O,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wW(r6(O)),isNew:!0};if(m=_.RO(O,$N,30)){G.dataUrl=_.Eg(m,1)||null;a:{var B=_.RO(O,$N,30);switch(_.Lq(B,3)){case 9:B=_.lg(B,hop,2,Mv);B={remoteRefs:B&&_.Eg(B,1)};break a;case 10:case 15:B=_.lg(B,fq3,4,Mv);var Q=r6(O);B={photo_id:B&&_.Eg(B,1),media_key:O.getId().getId(),media_type:_.Lq(O,6)===1?1:2,image_url:Q&&
Q[0].getUrl(),width:Q&&String(Q[0].getWidth()),height:Q&&String(Q[0].getHeight())};break a}B=null}G.uploadMetadata=B;G.uploadId=_.Eg(m,9)||null;G.uploadState=AEe(m)||null}(B=m&&_.lg(m,fq3,4,Mv))&&(G.id=_.Eg(B,1));(B=m&&_.lg(m,T5u,5,Mv))&&(G.contentId=_.Eg(B,1));(B=m&&_.lg(m,n02,7,Mv))&&(G.contentId=_.Eg(B,1));(B=m&&_.lg(m,X89,6,Mv))&&(G.contentId=_.Eg(B,1));(m==null?void 0:_.Lq(m,3))===1&&(G.mediaKey=O.getId().getId());return G},FM3=function(O){var m;
switch(((m=_.RO(O,$N,30))==null?void 0:_.Lq(m,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},dW=function(O){switch(_.Lq(O,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 _.Eg(O,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},AEe=function(O){switch(O==null?void 0:_.Lq(O,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 BYe,Ope,mIp,GVe;_.QO2=function(O,m){var G=m||{};m=G.document||document;var B=_.Eh(O).toString(),Q=(new C4(m)).createElement("SCRIPT"),H={script_:Q,timeout_:void 0},M=new vG(Ope,H),R=null,x=G.timeout!=null?G.timeout:5E3;x>0&&(R=window.setTimeout(function(){mIp(Q,!0);M.errback(new GVe(1,"Timeout reached for loading script "+B))},x),H.timeout_=R);
Q.onload=Q.onreadystatechange=function(){Q.readyState&&Q.readyState!="loaded"&&Q.readyState!="complete"||(mIp(Q,G.cleanupWhenDone||!1,R),M.callback(null))};
Q.onerror=function(){mIp(Q,!0,R);M.errback(new GVe(0,"Error while loading script "+B))};
H=G.attributes||{};_.aM.extend(H,{type:"text/javascript",charset:"UTF-8"});rs3(Q,H);_.$3(Q,O);BYe(m).appendChild(Q);return M};
BYe=function(O){var m=Ty("HEAD",O);return m&&m.length!==0?m[0]:O.documentElement};
Ope=function(){if(this&&this.script_){var O=this.script_;O&&O.tagName=="SCRIPT"&&mIp(O,!0,this.timeout_)}};
mIp=function(O,m,G){G!=null&&_.Qf.clearTimeout(G);O.onload=function(){};
O.onerror=function(){};
O.onreadystatechange=function(){};
m&&window.setTimeout(function(){_.hF(O)},0)};
GVe=function(O,m){var G="Jsloader error (code #"+O+")";m&&(G+=": "+m);_.GY.call(this,G);this.code=O};
_.MQ(GVe,_.GY);var Hpm=_.FY(["https://apis.google.com/js/api.js"]),vGo=_.WY(Hpm),rvC=function(O,m,G){G=G===void 0?{}:G;var B=!1,Q=Koo(O,m,G).then(function(M){B=!0;return M}),H=_.S_s(5E3).then(function(){return B?Koo(O,m,G):$I_(m,G).then(function(M){return Ma3(M,O)})});
return VSC([Q,H])},Koo=function(O,m,G){G=G===void 0?{}:G;
return RtC(m,G).then(function(B){return Ma3(B,O)})},Ma3=function(O,m){var G=_.KN(m,"gapi.")?m.slice(5):m;
return O[G]?_.ZY(O[G]):new _.zH(function(B,Q){var H=kN(function(){Q(Error("Ya"))},3E4);
O.load(m,{callback:function(){_.Qf.clearTimeout(H);B(O[G])},
onerror:function(M){_.Qf.clearTimeout(H);Q(M)}})})},RtC=function(O,m){m=m===void 0?{}:m;
return O.gapi&&O.gapi.load?_.ZY(O.gapi):$I_(O,m)},$I_=function(O,m){m=m===void 0?{}:m;
return _.QO2(vGo,{document:O.document,attributes:m}).then(function(){return O.gapi})},ip8=function(){};
ip8.prototype.load=function(O,m,G){m=m===void 0?window:m;G=G===void 0?{}:G;var B=Date.now();return rvC(O,m,G).then(function(Q){var H=Date.now();return{library:Q,loadStartMs:B,loadEndMs:H}},function(Q){throw Q instanceof Error?Q:Error(String(Q));
})};var w7N=function(){_.Iw.call(this);this.gapiLoader_=new ip8;this.origin_=null;this.gapiPickerIframeResolver_=_.m3();this.gapiIframesResolver_=_.m3();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.X(w7N,_.Iw);var xIs=function(O,m){var G=G===void 0?{}:G;var B=_.ex("gapi.iframes",m);return B?(O=Date.now(),_.ZY({library:B,loadStartMs:O,loadEndMs:O})):O.gapiLoader_.load("gapi.iframes",m,G)},qOe=function(O,m,G,B,Q,H){var M=!1;
M=M===void 0?!1:M;xIs(O,cY(m.ownerDocument)).then(function(R){var x=R.library;O.gapiIframesResolver_.resolve(x);R=O.gapiPickerIframeResolver_;var t=R.resolve,W=M;W=W===void 0?!1:W;var Z={};Z["host-message-handler"]=G;O.hostMessageHandlerInternal_=Z;var z=_.Ph(B);z=_.Ph(z);z=_.U6(_.qm(_.xr(new _.Bd,z.scheme_),z.JSC$10033_domain_),z.JSC$10033_port_).toString();O.origin_=z;z=(new Iy3).setUrl(B);z.JSC$10048_obj_.where=m;z.JSC$10048_obj_.allowPost=W;z.JSC$10048_obj_.messageHandlers=Z;W=_.ex("makeWhiteListIframesFilter",
x)([O.origin_]);z.JSC$10048_obj_.messageHandlersFilter=W;Q!=null&&(z.JSC$10048_obj_.id=Q);H!=null&&(z.JSC$10048_obj_.rpctoken=H);W=j89(z);W.JSC$10045_obj_.style={display:"block","min-width":"100%",width:"1px"};W.JSC$10045_obj_.height="100%";j89(z).value().allow="camera 'src' "+O.origin_;x=x.getContext().openChild(z.value());t.call(R,x)},function(R){O.gapiIframesResolver_.reject(R);
O.gapiPickerIframeResolver_.reject(R)});
return O.gapiPickerIframeResolver_.promise},UIs=function(O,m){return _.ll([O.gapiIframesResolver_.promise,
O.gapiPickerIframeResolver_.promise]).then(function(G){var B=_.K(G);G=B.next().value;return(B=B.next().value)?B.send("picker-message-handler",m,void 0,_.ex("makeWhiteListIframesFilter",G)([O.origin_])):_.lK(Error("Za"))})};
w7N.prototype.disposeInternal=function(){taj(this);_.Iw.prototype.disposeInternal.call(this)};
var taj=function(O){O.gapiPickerIframeResolver_.promise.then(function(m){m&&(m.unregister("host-message-handler"),delete O.hostMessageHandlerInternal_["host-message-handler"])})};var WoC=function(){this.JSC$10135_nextId=0};var zt2=function(O,m){switch(O.action){case "select-contacts":O=Zp$(O.contacts);break;case "visibility":O=O.visible;var G=new U2;O=_.kF(G,1,7).setVisible(O);G={};G["iframe-command"]=O.serialize();O=G;break;default:O=null}return O?UIs(m,O):_.ZY()},Zp$=function(O){if(!O||O.length==0)return null;
var m=new U2;_.kF(m,1,11);var G=new WoC;O.forEach(function(B){if(B.email){var Q=new ug;Q=_.sp(Q,2,B.name?B.name:B.email);var H=new JL3;B=_.S9Y(H,1,_.Zx,B.email,_.by);B=_.Tc(Q,27,B);Q=new Wa3;H=":"+(G.JSC$10135_nextId++).toString(36);Q=_.sp(Q,1,H);Q=_.kF(Q,2,12);B=_.Tc(B,1,Q)}else B=null;B&&nE(m,7,ug,B)});
O={};O["iframe-command"]=m.serialize();return O};_.Jvs=function(){if(lCr){var O=/Windows NT ([0-9.]+)/;return(O=O.exec(_.zY()))?O[1]:"0"}return _.o_I?(O=/1[0|1][_.][0-9_.]+/,(O=O.exec(_.zY()))?O[0].replace(/_/g,"."):"10"):bUr?(O=/Android\s+([^\);]+)(\)|;)/,(O=O.exec(_.zY()))?O[1]:""):klY||yUY||cUY?(O=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(O=O.exec(_.zY()))?O[1].replace(/_/g,"."):""):""}();var ef;ef=function(O){return(O=O.exec(_.zY()))?O[1]:""};
_.Va2=function(){if(_.Wp)return ef(/Firefox\/([0-9.]+)/);if(_.xF||BI||E_r)return NzN;if(_.ZM){if(_.Ie()||_.W5p()){var O=ef(/CriOS\/([0-9.]+)/);if(O)return O}return ef(/Chrome\/([0-9.]+)/)}if(_.YR&&!_.Ie())return ef(/Version\/([0-9.]+)/);if(pqN||Sr5){if(O=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.zY()))return O[1]+"."+O[2]}else if(m6S)return(O=ef(/Android\s+([0-9.]+)/))?O:ef(/Version\/([0-9.]+)/);return""}();var bp_=function(){};
_.Kq(bp_);bp_.prototype.nextId_=0;_.DI=function(O){return":"+(O.nextId_++).toString(36)};var s6=function(O){_.Ly.call(this);this.JSC$10143_dom_=O||jS();this.JSC$10143_id_=null;this.inDocument_=!1;this.JSC$10143_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.MQ(s6,_.Ly);s6.prototype.idGenerator_=bp_.getInstance();s6.prototype.getId=function(){return this.JSC$10143_id_||(this.JSC$10143_id_=_.DI(this.idGenerator_))};
s6.prototype.getElement=function(){return this.JSC$10143_element_};
var Nm=function(O){O.googUiComponentHandler_||(O.googUiComponentHandler_=new _.xf(O));return O.googUiComponentHandler_},nGU=function(O,m){if(O==m)throw Error("$a");
var G;if(G=m&&O.parent_&&O.JSC$10143_id_){G=O.parent_;var B=O.JSC$10143_id_;G=G.childIndex_&&B?_.aM.get(G.childIndex_,B)||null:null}if(G&&O.parent_!=m)throw Error("$a");O.parent_=m;s6.superClass_.setParentEventTarget.call(O,m)};
s6.prototype.setParentEventTarget=function(O){if(this.parent_&&this.parent_!=O)throw Error("ab");s6.superClass_.setParentEventTarget.call(this,O)};
s6.prototype.JSC$10145_createDom=function(){this.JSC$10143_element_=this.JSC$10143_dom_.createElement("DIV")};
s6.prototype.render=function(O){XIs(this,O)};
var XIs=function(O,m,G){if(O.inDocument_)throw Error("bb");O.JSC$10143_element_||O.JSC$10145_createDom();m?m.insertBefore(O.JSC$10143_element_,G||null):O.JSC$10143_dom_.JSC$9327_document_.body.appendChild(O.JSC$10143_element_);O.parent_&&!O.parent_.inDocument_||O.enterDocument()};
_.v=s6.prototype;_.v.decorate=function(O){if(this.inDocument_)throw Error("bb");if(O&&this.canDecorate(O)){this.wasDecorated_=!0;var m=_.Y6(O);this.JSC$10143_dom_&&this.JSC$10143_dom_.JSC$9327_document_==m||(this.JSC$10143_dom_=jS(O));this.decorateInternal(O);this.enterDocument()}else throw Error("cb");};
_.v.canDecorate=function(){return!0};
_.v.decorateInternal=function(O){this.JSC$10143_element_=O};
_.v.enterDocument=function(){this.inDocument_=!0;fD3(this,function(O){!O.inDocument_&&O.getElement()&&O.enterDocument()})};
_.v.exitDocument=function(){fD3(this,function(O){O.inDocument_&&O.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.v.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);fD3(this,function(O){O.dispose()});
!this.wasDecorated_&&this.JSC$10143_element_&&_.hF(this.JSC$10143_element_);this.parent_=this.model_=this.JSC$10143_element_=this.childIndex_=this.children_=null;s6.superClass_.disposeInternal.call(this)};
_.v.getModel=function(){return this.model_};
_.v.addChild=function(O,m){var G=this.children_?this.children_.length:0;if(O.inDocument_&&(m||!this.inDocument_))throw Error("bb");if(G<0||G>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);O.parent_==this?(_.aM.set(this.childIndex_,O.getId(),O),_.yf(this.children_,O)):_.aM.add(this.childIndex_,O.getId(),O);nGU(O,this);_.fpz(this.children_,G,0,O);O.inDocument_&&this.inDocument_&&O.parent_==this?(m=this.getContentElement(),
(m.childNodes[G]||null)!=O.getElement()&&(O.getElement().parentElement==m&&m.removeChild(O.getElement()),G=m.childNodes[G]||null,m.insertBefore(O.getElement(),G))):m?(this.JSC$10143_element_||this.JSC$10145_createDom(),G=this.children_?this.children_[G+1]||null:null,XIs(O,this.getContentElement(),G?G.JSC$10143_element_:null)):this.inDocument_&&!O.inDocument_&&O.JSC$10143_element_&&O.JSC$10143_element_.parentNode&&O.JSC$10143_element_.parentNode.nodeType==1&&O.enterDocument()};
_.v.getContentElement=function(){return this.JSC$10143_element_};
var fD3=function(O,m){O.children_&&O.children_.forEach(m,void 0)};
s6.prototype.removeChild=function(O,m){if(O){var G=typeof O==="string"?O:O.getId();O=this.childIndex_&&G?_.aM.get(this.childIndex_,G)||null:null;G&&O&&(_.aM.remove(this.childIndex_,G),_.yf(this.children_,O),m&&(O.exitDocument(),O.JSC$10143_element_&&_.hF(O.JSC$10143_element_)),nGU(O,null))}if(!O)throw Error("eb");return O};_.MQ(CbN,LMS);_.MQ(oRN,LMS);var htm;_.aM.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var TYm=function(O,m){m?O.setAttribute("role",m):O.removeAttribute("role")},PG=function(O,m,G){Array.isArray(G)&&(G=G.join(" "));
var B="aria-"+m;G===""||G==void 0?(htm||(G={},htm=(G.atomic=!1,G.autocomplete="none",G.dropeffect="none",G.haspopup=!1,G.live="off",G.multiline=!1,G.multiselectable=!1,G.orientation="vertical",G.readonly=!1,G.relevant="additions text",G.required=!1,G.sort="none",G.busy=!1,G.disabled=!1,G.hidden=!1,G.invalid="false",G)),G=htm,m in G?O.setAttribute(B,G[m]):O.removeAttribute(B)):O.setAttribute(B,G)};var gG8;_.F0=function(O,m,G){_.Ly.call(this);this.target=O;this.handle=m||O;this.limits=G||new De(NaN,NaN,NaN,NaN);this.JSC$10148_document_=_.Y6(O);this.JSC$10148_eventHandler_=new _.xf(this);_.VV(this,this.JSC$10148_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;_.Cm(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=gG8};
_.MQ(_.F0,_.Ly);gG8=_.Qf.document&&_.Qf.document.documentElement&&!!_.Qf.document.documentElement.setCapture&&!!_.Qf.document.releaseCapture;_.uF9=function(O,m){O.hysteresisDistanceSquared_=Math.pow(m,2)};
_.v=_.F0.prototype;_.v.setEnabled=function(O){this.enabled_=O};
_.v.disposeInternal=function(){_.F0.superClass_.disposeInternal.call(this);_.E2(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10148_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10148_document_.releaseCapture();this.handle=this.target=null};
_.v.startDrag=function(O){var m=O.type=="mousedown";if(!this.enabled_||this.dragging_||m&&(!O.isButton(0)||_.o_I&&O.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new AZ("start",this,O.clientX,O.clientY,O)))this.dragging_=!0,m&&O.preventDefault();else return;else m&&O.preventDefault();m=this.JSC$10148_document_;var G=m.documentElement,B=!this.useSetCapture_;this.JSC$10148_eventHandler_.listen(m,["touchmove","mousemove"],this.handleMove_,
{capture:B,passive:!1});this.JSC$10148_eventHandler_.listen(m,["touchend","mouseup"],this.endDrag,B);this.useSetCapture_?(G.setCapture(!1),this.JSC$10148_eventHandler_.listen(G,"losecapture",this.endDrag)):this.JSC$10148_eventHandler_.listen(cY(m),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10148_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,B);this.clientX=this.startX=O.clientX;this.clientY=this.startY=O.clientY;this.screenX=O.screenX;this.screenY=O.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=uC(jS(this.JSC$10148_document_))}};
_.v.endDrag=function(O,m){this.JSC$10148_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10148_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new AZ("end",this,O.clientX,O.clientY,O,jOm(this,this.deltaX),IDC(this,this.deltaY),m||O.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.v.handleMove_=function(O){if(this.enabled_){var m=O.clientX-this.clientX,G=O.clientY-this.clientY;this.clientX=O.clientX;this.clientY=O.clientY;this.screenX=O.screenX;this.screenY=O.screenY;if(!this.dragging_){var B=this.startX-this.clientX,Q=this.startY-this.clientY;if(B*B+Q*Q>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new AZ("start",this,O.clientX,O.clientY,O)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(O);return}}G=pI9(this,m,G);m=G.x;G=G.y;this.dragging_&&this.dispatchEvent(new AZ("beforedrag",
this,O.clientX,O.clientY,O,m,G))&&(SO9(this,O,m,G),O.preventDefault())}};
var pI9=function(O,m,G){var B=uC(jS(O.JSC$10148_document_));m+=B.x-O.pageScroll.x;G+=B.y-O.pageScroll.y;O.pageScroll=B;O.deltaX+=m;O.deltaY+=G;return new _.yD(jOm(O,O.deltaX),IDC(O,O.deltaY))};
_.F0.prototype.onScroll_=function(O){var m=pI9(this,0,0);O.clientX=this.clientX;O.clientY=this.clientY;SO9(this,O,m.x,m.y)};
var SO9=function(O,m,G,B){O.target.style.left=G+"px";O.target.style.top=B+"px";O.dispatchEvent(new AZ("drag",O,m.clientX,m.clientY,m,G,B))},jOm=function(O,m){var G=O.limits;
O=isNaN(G.left)?null:G.left;G=isNaN(G.width)?0:G.width;return Math.min(O!=null?O+G:Infinity,Math.max(O!=null?O:-Infinity,m))},IDC=function(O,m){var G=O.limits;
O=isNaN(G.top)?null:G.top;G=isNaN(G.height)?0:G.height;return Math.min(O!=null?O+G:Infinity,Math.max(O!=null?O:-Infinity,m))};
_.F0.prototype.isDragging=function(){return this.dragging_};
var AZ=function(O,m,G,B,Q,H,M){_.jB.call(this,O);this.clientX=G;this.clientY=B;this.browserEvent=Q;this.left=H!==void 0?H:m.deltaX;this.top=M!==void 0?M:m.deltaY};
_.MQ(AZ,_.jB);var Os=function(O){this.JSC$10155_map_=new Map;var m=arguments.length;if(m>1){if(m%2)throw Error("ka");for(var G=0;G<m;G+=2)this.set(arguments[G],arguments[G+1])}else O&&this.addAll(O)};
_.v=Os.prototype;_.v.getCount=function(){return this.JSC$10155_map_.size};
_.v.getValues=function(){return Array.from(this.JSC$10155_map_.values())};
_.v.getKeys=function(){return Array.from(this.JSC$10155_map_.keys())};
_.v.containsKey=function(O){return this.JSC$10155_map_.has(O)};
_.v.containsValue=function(O){return this.getValues().some(function(m){return m==O})};
_.v.equals=function(O,m){var G=this;m=m===void 0?function(B,Q){return B===Q}:m;
return this===O?!0:this.JSC$10155_map_.size!=O.getCount()?!1:this.getKeys().every(function(B){return m(G.JSC$10155_map_.get(B),O.get(B))})};
_.v.isEmpty=function(){return this.JSC$10155_map_.size==0};
_.v.clear=function(){this.JSC$10155_map_.clear()};
_.v.remove=function(O){return this.JSC$10155_map_.delete(O)};
_.v.get=function(O,m){return this.JSC$10155_map_.has(O)?this.JSC$10155_map_.get(O):m};
_.v.set=function(O,m){this.JSC$10155_map_.set(O,m);return this};
_.v.addAll=function(O){if(O instanceof Os){O=_.K(O.JSC$10155_map_);for(var m=O.next();!m.done;m=O.next()){var G=_.K(m.value);m=G.next().value;G=G.next().value;this.JSC$10155_map_.set(m,G)}}else if(O)for(O=_.K(Object.entries(O)),m=O.next();!m.done;m=O.next())G=_.K(m.value),m=G.next().value,G=G.next().value,this.JSC$10155_map_.set(m,G)};
_.v.forEach=function(O,m){var G=this;m=m===void 0?this:m;this.JSC$10155_map_.forEach(function(B,Q){return O.call(m,B,Q,G)})};
_.v.clone=function(){return new Os(this)};(function(){for(var O=["ms","moz","webkit","o"],m,G=0;m=O[G]&&!_.Qf.requestAnimationFrame;++G)_.Qf.requestAnimationFrame=_.Qf[m+"RequestAnimationFrame"],_.Qf.cancelAnimationFrame=_.Qf[m+"CancelAnimationFrame"]||_.Qf[m+"CancelRequestAnimationFrame"];if(!_.Qf.requestAnimationFrame){var B=0;_.Qf.requestAnimationFrame=function(Q){var H=(new Date).getTime(),M=Math.max(0,16-(H-B));B=H+M;return _.Qf.setTimeout(function(){Q(H+M)},M)};
_.Qf.cancelAnimationFrame||(_.Qf.cancelAnimationFrame=function(Q){clearTimeout(Q)})}})();
var EGj=[[],[]],LoU=0,Cne=!1,oG3=0,aDo=function(O,m){var G=oG3++,B={measureTask:{id:G,fn:O.measure,context:m},mutateTask:{id:G,fn:O.mutate,context:m},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(B.args||(B.args=[]),B.args.length=0,B.args.push.apply(B.args,arguments),B.args.push(B.state)):B.args&&B.args.length!=0?(B.args[0]=B.state,B.args.length=1):B.args=[B.state];B.isScheduled||(B.isScheduled=!0,EGj[LoU].push(B));Cne||(Cne=!0,window.requestAnimationFrame(lD2))}},lD2=
function(){Cne=!1;
var O=EGj[LoU],m=O.length;LoU=(LoU+1)%2;for(var G,B=0;B<m;++B){G=O[B];var Q=G.measureTask;G.isScheduled=!1;Q.fn&&Q.fn.apply(Q.context,G.args)}for(B=0;B<m;++B)G=O[B],Q=G.mutateTask,G.isScheduled=!1,Q.fn&&Q.fn.apply(Q.context,G.args),G.state={};O.length=0};var kVC=_.FY(["about:blank"]),yvU=_.FY(["javascript:undefined"]),cvC=_.WY(kVC);_.Eh(cvC);var YO2=_.WY(yvU);_.Eh(YO2);var mb=function(O){_.Ly.call(this);this.JSC$10161_element_=O;this.listenKeyIn_=_.Cm(this.JSC$10161_element_,"focus",this,!0);this.listenKeyOut_=_.Cm(this.JSC$10161_element_,"blur",this,!0)};
_.MQ(mb,_.Ly);mb.prototype.handleEvent=function(O){var m=new _.I7(O.event_);m.type=O.type=="focusin"||O.type=="focus"?"focusin":"focusout";this.dispatchEvent(m)};
mb.prototype.disposeInternal=function(){mb.superClass_.disposeInternal.call(this);Sg(this.listenKeyIn_);Sg(this.listenKeyOut_);delete this.JSC$10161_element_};var dI2=function(O,m){this.JSC$10164_element_=O;this.JSC$10164_dom_=m};var GB=function(O,m){s6.call(this,m);this.useIframeMask_=!!O;this.lastFocus_=null;this.resizeBackgroundTask_=aDo({mutate:this.resizeBackground_},this);aDo({mutate:this.updateModalAndBackground_},this)};
_.MQ(GB,s6);_.v=GB.prototype;_.v.focusHandler_=null;_.v.visible_=!1;_.v.bgEl_=null;_.v.bgIframeEl_=null;_.v.tabCatcherElement_=null;_.v.backwardTabWrapInProgress_=!1;_.v.getCssClass=function(){return"goog-modalpopup"};
_.v.getBackgroundElement=function(){return this.bgEl_};
_.v.JSC$10145_createDom=function(){GB.superClass_.JSC$10145_createDom.call(this);var O=this.getElement(),m=tz(this.getCssClass()).split(" ");Qn(O,m);O.tabIndex=0;_.OR(O,!1);wIH(this);et9(this)};
var wIH=function(O){if(O.useIframeMask_&&!O.bgIframeEl_){var m=O.JSC$10143_dom_.JSC$9329_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.mI(m,cvC);O.bgIframeEl_=m;O.bgIframeEl_.className=O.getCssClass()+"-bg";_.OR(O.bgIframeEl_,!1);axu(O.bgIframeEl_,0)}O.bgEl_||(O.bgEl_=O.JSC$10143_dom_.JSC$9329_createDom("DIV",O.getCssClass()+"-bg"),_.OR(O.bgEl_,!1))},et9=function(O){O.tabCatcherElement_||(O.tabCatcherElement_=O.JSC$10143_dom_.createElement("SPAN"),_.OR(O.tabCatcherElement_,
!1),O.tabCatcherElement_.tabIndex=0,O.tabCatcherElement_.style.position="absolute")};
_.v=GB.prototype;_.v.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.v.canDecorate=function(O){return!!O&&O.tagName=="DIV"};
_.v.decorateInternal=function(O){GB.superClass_.decorateInternal.call(this,O);O=tz(this.getCssClass()).split(" ");Qn(this.getElement(),O);wIH(this);et9(this);this.getElement().tabIndex=0;_.OR(this.getElement(),!1)};
_.v.enterDocument=function(){this.bgIframeEl_&&_.Y7(this.bgIframeEl_,this.getElement());_.Y7(this.bgEl_,this.getElement());GB.superClass_.enterDocument.call(this);_.ds(this.tabCatcherElement_,this.getElement());this.focusHandler_=new mb(this.JSC$10143_dom_.JSC$9327_document_);Nm(this).listen(this.focusHandler_,"focusin",this.onFocus);DIH(this,!1)};
_.v.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Kd(this.focusHandler_);GB.superClass_.exitDocument.call(this);_.hF(this.bgIframeEl_);_.hF(this.bgEl_);_.hF(this.tabCatcherElement_)};
_.v.setVisible=function(O){if(O!=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_&&DIH(this,O),O){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10143_dom_.JSC$9327_document_.activeElement}catch(Q){}this.updateModalAndBackground_();Nm(this).listen(this.JSC$10143_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10143_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);sO_(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)pm(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Nm(this).unlisten(this.JSC$10143_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10143_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)pm(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var m=this.JSC$10143_dom_,G=m.JSC$9327_document_.body,B=m.JSC$9327_document_.activeElement||G;if(!this.lastFocus_||this.lastFocus_==G){this.lastFocus_=null;break a}(B==G||m.contains(this.getElement(),B))&&this.lastFocus_.focus()}catch(Q){}this.lastFocus_=
null}}};
var DIH=function(O,m){O.modalAriaVisibilityHelper_||(O.modalAriaVisibilityHelper_=new dI2(O.JSC$10143_element_,O.JSC$10143_dom_));O=O.modalAriaVisibilityHelper_;if(m){O.hiddenElements_||(O.hiddenElements_=[]);m=O.JSC$10164_dom_.getChildren(O.JSC$10164_dom_.JSC$9327_document_.body);for(var G=0;G<m.length;G++){var B=m[G],Q;if(Q=B!=O.JSC$10164_element_)Q=B.getAttribute("aria-hidden"),Q=!(Q==null||Q==void 0?0:String(Q));Q&&(PG(B,"hidden",!0),O.hiddenElements_.push(B))}}else if(O.hiddenElements_){for(m=
0;m<O.hiddenElements_.length;m++)O.hiddenElements_[m].removeAttribute("aria-hidden");O.hiddenElements_=null}};
GB.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var sO_=function(O,m){O.bgIframeEl_&&_.OR(O.bgIframeEl_,m);O.bgEl_&&_.OR(O.bgEl_,m);_.OR(O.getElement(),m);_.OR(O.tabCatcherElement_,m)};
_.v=GB.prototype;_.v.onShow=function(){this.dispatchEvent("show")};
_.v.onHide=function(){sO_(this,!1);this.dispatchEvent("hide")};
_.v.isVisible=function(){return this.visible_};
_.v.focus=function(){this.focusElement_()};
_.v.resizeBackground_=function(){this.bgIframeEl_&&_.OR(this.bgIframeEl_,!1);this.bgEl_&&_.OR(this.bgEl_,!1);var O=this.JSC$10143_dom_.JSC$9327_document_;var m=_.TP(cY(this.JSC$10143_dom_.JSC$9327_document_)||window);var G=Math.max(m.width,Math.max(O.body.scrollWidth,O.documentElement.scrollWidth));O=Math.max(m.height,Math.max(O.body.scrollHeight,O.documentElement.scrollHeight));this.bgIframeEl_&&(_.OR(this.bgIframeEl_,!0),_.LAs(this.bgIframeEl_,G,O));this.bgEl_&&(_.OR(this.bgEl_,!0),_.LAs(this.bgEl_,
G,O))};
_.v.reposition=function(){var O;if(_.Eh_(this.getElement())=="fixed")var m=O=0;else m=uC(this.JSC$10143_dom_),O=m.x,m=m.y;var G=ohp(this.getElement());var B=_.TP(cY(this.JSC$10143_dom_.JSC$9327_document_)||window);O=Math.max(O+B.width/2-G.width/2,0);m=Math.max(m+B.height/2-G.height/2,0);P4(this.getElement(),O,m);P4(this.tabCatcherElement_,O,m)};
_.v.onFocus=function(O){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():O.target==this.tabCatcherElement_&&kN(this.focusElement_,0,this)};
_.v.focusElement_=function(){try{this.getElement().focus()}catch(O){}};
_.v.disposeInternal=function(){_.Kd(this.popupShowTransition_);this.popupShowTransition_=null;_.Kd(this.popupHideTransition_);this.popupHideTransition_=null;_.Kd(this.bgShowTransition_);this.bgShowTransition_=null;_.Kd(this.bgHideTransition_);this.bgHideTransition_=null;GB.superClass_.disposeInternal.call(this)};var yV=function(O,m,G){GB.call(this,m,G);this.JSC$10174_class_=O||"modal-dialog";this.buttons_=(new B1).addButton(NY9,!0).addButton(PnH,!1,!0)};
_.MQ(yV,GB);_.v=yV.prototype;_.v.escapeToCancel_=!0;_.v.hasTitleCloseButton_=!0;_.v.modal_=!0;_.v.draggable_=!0;_.v.backgroundElementOpacity_=.5;_.v.title_="";_.v.JSC$10176_dragger_=null;_.v.JSC$10176_disposeOnHide_=!1;_.v.titleEl_=null;_.v.titleTextEl_=null;_.v.titleTextId_=null;_.v.titleCloseEl_=null;_.v.contentEl_=null;_.v.buttonEl_=null;_.v.getCssClass=function(){return this.JSC$10174_class_};
_.v.setTitle=function(O){this.title_=O;this.titleTextEl_&&_.eG(this.titleTextEl_,O)};
_.v.getTitle=function(){return this.title_};
_.v.getContent=function(){return""};
_.v.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var Fo2=function(O){O.getElement()||O.render();return O.getElement()};
yV.prototype.getBackgroundElement=function(){this.getElement()||this.render();return yV.superClass_.getBackgroundElement.call(this)};
var Avu=function(O,m){O.backgroundElementOpacity_=m;O.getElement()&&(m=O.getBackgroundElement())&&axu(m,O.backgroundElementOpacity_)};
yV.prototype.setDraggable=function(O){this.draggable_=O;OE8(this,O&&this.inDocument_)};
yV.prototype.handleDrag=function(){};
var OE8=function(O,m){var G=tz(O.JSC$10174_class_+"-title-draggable").split(" ");O.getElement()&&(m?Qn(O.titleEl_,G):Thm(O.titleEl_,G));m&&!O.JSC$10176_dragger_?(m=new _.F0(O.getElement(),O.titleEl_),O.JSC$10176_dragger_=m,Qn(O.titleEl_,G),_.Cm(O.JSC$10176_dragger_,"start",O.setDraggerLimits_,!1,O),_.Cm(O.JSC$10176_dragger_,"drag",O.handleDrag,!1,O)):!m&&O.JSC$10176_dragger_&&(O.JSC$10176_dragger_.dispose(),O.JSC$10176_dragger_=null)};
_.v=yV.prototype;
_.v.JSC$10145_createDom=function(){yV.superClass_.JSC$10145_createDom.call(this);var O=this.getElement(),m=this.JSC$10143_dom_;this.titleTextId_=this.getId();var G=this.getId()+".contentEl";this.titleEl_=m.JSC$9329_createDom("DIV",this.JSC$10174_class_+"-title",this.titleTextEl_=m.JSC$9329_createDom("SPAN",{className:this.JSC$10174_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=m.JSC$9329_createDom("SPAN",this.JSC$10174_class_+"-title-close"));UJe(O,this.titleEl_,this.contentEl_=
m.JSC$9329_createDom("DIV",{className:this.JSC$10174_class_+"-content",id:G}),this.buttonEl_=m.JSC$9329_createDom("DIV",this.JSC$10174_class_+"-buttons"));TYm(this.titleTextEl_,"heading");TYm(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;PG(this.titleCloseEl_,"label","Close");TYm(O,"dialog");PG(O,"labelledby",this.titleTextId_||"");_.OR(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(O=this.buttons_,O.JSC$10177_element_=this.buttonEl_,O.render());_.OR(this.buttonEl_,!!this.buttons_);
Avu(this,this.backgroundElementOpacity_)};
_.v.decorateInternal=function(O){yV.superClass_.decorateInternal.call(this,O);O=this.getElement();var m=this.JSC$10174_class_+"-content";this.contentEl_=oD(document,null,m,O)[0];this.contentEl_||(this.contentEl_=this.JSC$10143_dom_.JSC$9329_createDom("DIV",m),O.appendChild(this.contentEl_));m=this.JSC$10174_class_+"-title";var G=this.JSC$10174_class_+"-title-text",B=this.JSC$10174_class_+"-title-close";(this.titleEl_=oD(document,null,m,O)[0])?(this.titleTextEl_=oD(document,null,G,this.titleEl_)[0],
this.titleCloseEl_=oD(document,null,B,this.titleEl_)[0]):(this.titleEl_=this.JSC$10143_dom_.JSC$9329_createDom("DIV",m),O.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=uru(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.aD("SPAN",{className:G,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;PG(O,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10143_dom_.JSC$9329_createDom("SPAN",B),this.titleEl_.appendChild(this.titleCloseEl_));_.OR(this.titleCloseEl_,this.hasTitleCloseButton_);m=this.JSC$10174_class_+"-buttons";(this.buttonEl_=oD(document,null,m,O)[0])?(this.buttons_=new B1(this.JSC$10143_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10143_dom_.JSC$9329_createDom("DIV",m),O.appendChild(this.buttonEl_),this.buttons_&&(O=this.buttons_,O.JSC$10177_element_=this.buttonEl_,O.render()),_.OR(this.buttonEl_,
!!this.buttons_));Avu(this,this.backgroundElementOpacity_)};
_.v.enterDocument=function(){yV.superClass_.enterDocument.call(this);Nm(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Nm(this).listen(this.buttonEl_,"click",this.onButtonClick_);OE8(this,this.draggable_);Nm(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var O=this.getElement();TYm(O,"dialog");this.titleTextEl_.id!==""&&PG(O,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){O=this.JSC$10143_dom_;
var m=this.getBackgroundElement();O.removeNode(this.bgIframeEl_);O.removeNode(m)}this.isVisible()&&DIH(this,!1)}};
_.v.exitDocument=function(){this.isVisible()&&this.setVisible(!1);OE8(this,!1);yV.superClass_.exitDocument.call(this)};
_.v.setVisible=function(O){O!=this.isVisible()&&(this.inDocument_||this.render(),yV.superClass_.setVisible.call(this,O))};
_.v.onShow=function(){yV.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.v.onHide=function(){yV.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10176_disposeOnHide_&&this.dispose()};
_.v.setDraggerLimits_=function(){var O=this.JSC$10143_dom_.JSC$9327_document_,m=_.TP(cY(O)||window),G=Math.max(O.body.scrollWidth,m.width);O=Math.max(O.body.scrollHeight,m.height);var B=ohp(this.getElement());_.Eh_(this.getElement())=="fixed"?this.JSC$10176_dragger_.limits=new De(0,0,Math.max(0,m.width-B.width),Math.max(0,m.height-B.height)):this.JSC$10176_dragger_.limits=new De(0,0,G-B.width,O-B.height)};
_.v.onTitleCloseClick_=function(){mTj(this)};
var mTj=function(O){if(O.hasTitleCloseButton_){var m=O.buttons_,G=m&&m.cancelButton_;G?(m=m.get(G),O.dispatchEvent(new Qq(G,m))&&O.setVisible(!1)):O.setVisible(!1)}},GH$=function(O){O.hasTitleCloseButton_=!1;
O.titleCloseEl_&&_.OR(O.titleCloseEl_,O.hasTitleCloseButton_)};
yV.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;yV.superClass_.disposeInternal.call(this)};
yV.prototype.onButtonClick_=function(O){a:{for(O=O.target;O!=null&&O!=this.buttonEl_;){if(O.tagName=="BUTTON")break a;O=O.parentNode}O=null}if(O&&!O.disabled){O=O.name;var m=this.buttons_.get(O);this.dispatchEvent(new Qq(O,m))&&this.setVisible(!1)}};
yV.prototype.onKey_=function(O){var m=!1,G=!1,B=this.buttons_,Q=O.target;if(O.type=="keydown")if(this.escapeToCancel_&&O.keyCode==27){var H=B&&B.cancelButton_;Q=Q.tagName=="SELECT"&&!Q.disabled;H&&!Q?(G=!0,m=B.get(H),m=this.dispatchEvent(new Qq(H,m))):Q||(m=!0)}else{if(O.keyCode==9&&O.shiftKey&&Q==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(W){}kN(this.resetBackwardTabWrap_,0,this)}}else if(O.keyCode==13){if(Q.tagName=="BUTTON"&&!Q.disabled)H=Q.name;
else if(Q==this.titleCloseEl_)mTj(this);else if(B){var M=B.defaultButton_,R;if(R=M)a:{R=Ty("BUTTON",B.JSC$10177_element_);for(var x,t=0;x=R[t];t++)if(x.name==M||x.id==M){R=x;break a}R=null}Q=(Q.tagName=="TEXTAREA"||Q.tagName=="SELECT"||Q.tagName=="A")&&!Q.disabled;!R||R.disabled||Q||(H=M)}H&&B&&(G=!0,m=this.dispatchEvent(new Qq(H,String(B.get(H)))))}else Q!=this.titleCloseEl_||O.keyCode!=32&&O.key!=" "||mTj(this);if(m||G)O.stopPropagation(),O.preventDefault();m&&this.setVisible(!1)};
var Qq=function(O,m){this.type="dialogselect";this.key=O;this.caption=m};
_.MQ(Qq,_.jB);var B1=function(O){Os.call(this);O||jS();this.cancelButton_=this.JSC$10177_element_=this.defaultButton_=null};
_.MQ(B1,Os);_.v=B1.prototype;_.v.clear=function(){Os.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.v.set=function(O,m,G,B){Os.prototype.set.call(this,O,m);G&&(this.defaultButton_=O);B&&(this.cancelButton_=O);return this};
_.v.addButton=function(O,m,G){return this.set(O.key,O.caption,m,G)};
_.v.render=function(){if(this.JSC$10177_element_){_.MG(this.JSC$10177_element_,NIf);var O=jS(this.JSC$10177_element_);this.forEach(function(m,G){m=O.JSC$9329_createDom("BUTTON",{name:G},m);G==this.defaultButton_&&(m.className="goog-buttonset-default");this.JSC$10177_element_.appendChild(m)},this)}};
_.v.decorate=function(O){if(O&&O.nodeType==1){this.JSC$10177_element_=O;O=Ty("BUTTON",this.JSC$10177_element_);for(var m,G,B,Q=0;m=O[Q];Q++)if(G=m.name||m.id,B=uru(m)||m.value,G){var H=Q==0;this.set(G,B,H,m.name=="cancel");H&&_.$g(m,"goog-buttonset-default")}}};
_.v.getElement=function(){return this.JSC$10177_element_};
var NY9={key:"ok",caption:"OK"},PnH={key:"cancel",caption:"Cancel"},BEp={key:"yes",caption:"Yes"},Qyo={key:"no",caption:"No"},HEu={key:"save",caption:"Save"},vtj={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new B1).addButton(NY9,!0,!0),(new B1).addButton(NY9,!0).addButton(PnH,!1,!0),(new B1).addButton(BEp,!0).addButton(Qyo,!1,!0),(new B1).addButton(BEp).addButton(Qyo,!0).addButton(PnH,!1,!0),(new B1).addButton(vtj).addButton(HEu).addButton(PnH,!0,!0));_.MQ(lgY,yV);_.MQ(agO,d_);var KP3=_.FY(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),$Tp=_.FY(["//apis.google.com/js/rpc.js"]),sdz=_.WY(KP3),DuI=_.WY($Tp),yEO=null;var w_=function(O,m){_.Ly.call(this);this.JSC$10186_element_=O;O=_.GH(this.JSC$10186_element_)?this.JSC$10186_element_:this.JSC$10186_element_?this.JSC$10186_element_.body:null;this.isRtl_=!!O&&_.ku2(O);this.listenKey_=_.Cm(this.JSC$10186_element_,_.qQ?"DOMMouseScroll":"mousewheel",this,m)};
_.MQ(w_,_.Ly);w_.prototype.handleEvent=function(O){var m=0,G=0,B=O.event_;B.type=="mousewheel"?(O=M0H(-B.wheelDelta),B.wheelDeltaX!==void 0?(m=M0H(-B.wheelDeltaX),G=M0H(-B.wheelDeltaY)):G=O):(O=B.detail,O>100?O=3:O<-100&&(O=-3),B.axis!==void 0&&B.axis===B.HORIZONTAL_AXIS?m=O:G=O);typeof this.maxDeltaX_==="number"&&(m=_.Lk(m,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(G=_.Lk(G,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(m=-m);m=new rl9(O,B,m,G);this.dispatchEvent(m)};
var M0H=function(O){return _.Ug&&(_.o_I||aCf)&&O%40!=0?O:O/40};
w_.prototype.disposeInternal=function(){w_.superClass_.disposeInternal.call(this);Sg(this.listenKey_);this.listenKey_=null};
var rl9=function(O,m,G,B){_.I7.call(this,m);this.type="mousewheel";this.detail=O;this.deltaX=G;this.deltaY=B};
_.MQ(rl9,_.I7);_.Q4=function(O){var m="instance_";if(O.instance_&&O.hasOwnProperty(m))return O.instance_;m=new O;return O.instance_=m};var eJI;var RNp=_.FY(["https://about:blank"]),iEj=_.FY(['javascript:""']),xT8=_.FY(["about:blank"]);_.MQ(mN,lgY);_.v=mN.prototype;_.v.JSC$10194_url_="";_.v.JSC$10194_iframe_=null;_.v.iframeLoaded_=!1;_.v.loadedFired_=!1;_.v.callback_=function(){};
_.v.enterDocument=function(){mN.superClass_.enterDocument.call(this);dus(this.getBackgroundElement(),Nm(this))};
_.v.render=function(O){var m=this;mN.superClass_.render.call(this,O);this.useGapi_?xIs(this.iframeManager_,window).then(function(){return qJ9(m)}).then(null,function(){m.callback_({action:"error"})}):UT3(this)};
var qJ9=function(O){var m=O.JSC$10143_dom_.JSC$9329_createDom("div",["picker-dialog-content","picker-frame"]);_.OR(m,!1);O.getContentElement().appendChild(m);return qOe(O.iframeManager_,m,function(G){var B=p83(G["iframe-command"]);switch(B.getCommand()){case 1:G=O.callback_;B=_.RO(B,qv,2);var Q="";switch(B.getStatus()){case 2:Q="cancel";break;case 1:Q="picked";break;case 3:Q="error"}var H=_.r_(B,ug,2,_.Rw(rAY));B=H.length===0?{action:Q}:DuC(H,Q,_.RO(B,ucj,7));G.call(O,B);O.setVisible(!1);break;case 4:GH$(O);
O.callback_({action:"loaded"});break;case 7:case 8:G=O.callback_;a:{Q=B.getCommand();H=_.RO(B,qv,2);switch(Q){case 7:Q="uploadScheduled";break;case 8:Q="uploadStateChange";break;default:B={};break a}B=_.r_(H,ug,2,_.Rw(rAY));if(B.length===0)B={action:Q};else{var M=_.RO(H,ucj,7);H=M&&_.Eg(M,1);M=Cb$(M);B=ag9(B,Q,H,M)}}G.call(O,B)}},O.JSC$10194_url_,O.targetId_,O.rpcToken_).then(function(G){O.JSC$10194_iframe_=G.getIframeEl();
t0U(O);_.OR(O.JSC$10194_iframe_.parentElement,!0);_.$g(O.getElement(),"picker-dialog");WPj(O);return G})},UT3=function(O){O.JSC$10194_iframe_=O.JSC$10143_dom_.JSC$9329_createDom("IFRAME",{id:O.targetId_,
name:O.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.mI(O.JSC$10194_iframe_,ZEH(O));_.$g(O.getElement(),"picker-dialog");O.getContentElement().appendChild(O.JSC$10194_iframe_);Nm(O).listen(O.JSC$10194_iframe_,"load",function(){return void t0U(O)});
O.JSC$10194_iframe_.src=O.JSC$10194_url_;WPj(O)},Jlj=function(O){zNp(O,(0,_.pd)(function(m){m.setAuthToken(this.targetId_,this.rpcToken_)},O))},WPj=function(O){var m=_.FK(_.Ph(O.JSC$10194_url_),"title");
m&&O.setTitle(m)},ZEH=function(O){return _.qSS("Internet Explorer")>=7&&_.KN(O.JSC$10194_url_,"https")?_.WY(RNp):_.xF?_.WY(iEj):_.WY(xT8)},t0U=function(O){Jlj(O);
O.iframeLoaded_=!0;O.JSC$10194_iframe_.tabIndex=0;O.isVisible()&&O.focus()};
mN.prototype.handleKeydown_=function(O){O.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),O.stopPropagation(),O.preventDefault())};
var zNp=function(O,m){var G=O.JSC$10192_gadgetsDomHelper_;cEN(function(){m(G.getWindow().gadgets.rpc)},G)};
mN.prototype.setUrl=function(O){O=_.AF(new _.Bd(O),"rpcService",this.targetId_);_.AF(O,"rpctoken",this.rpcToken_);_.ZI(O,"rpctoken="+this.rpcToken_);_.xr(O,"https");this.JSC$10194_url_=O.toString();this.JSC$10194_iframe_&&(this.JSC$10194_iframe_.src=this.JSC$10194_url_)};
var V0o=function(O,m){O.callback_=m;zNp(O,(0,_.pd)(function(G){G.register(this.targetId_,(0,_.pd)(this.handlePickerAction_,this))},O))};
mN.prototype.handlePickerAction_=function(O){var m=O.action;m=="loaded"&&(this.loadedFired_=!0,bEH(this,new oRN(this.isVisible())),nt9(this),GH$(this),Nm(this).unlisten(this.JSC$10143_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10194_iframe_.tabIndex=0);m!="picked"&&m!="cancel"||this.setVisible(!1);this.callback_(O)};
var nt9=function(O){O.JSC$10194_appId_&&bEH(O,new CbN(O.JSC$10194_appId_,window.location.protocol+"//"+window.location.host))};
mN.prototype.setRelayUrl=function(O){zNp(this,(0,_.pd)(function(m){m.setRelayUrl(this.targetId_,O)},this))};
var bEH=function(O,m){O.useGapi_&&zt2(m,O.iframeManager_).then(null,function(){O.callback_({action:"error"})});
zNp(O,(0,_.pd)(function(G){G.call(this.targetId_,"picker",null,m)},O))};
mN.prototype.resizePicker_=function(){var O=cY(this.JSC$10143_dom_.JSC$9327_document_)||window;if(_.FK(_.Ph(this.JSC$10194_url_),"ignoreLimits")=="true")O=new _.hY(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.FK(_.Ph(this.JSC$10194_url_),"shadeDialog")=="true"){var m=Fo2(this);m=ys2(m);var G=_.TP(O);O=G.width-80;G=G.height-40;m&&(O-=m.left?m.left:0,O-=m.right?m.right:0,G-=m.top?m.top:0,G-=m.bottom?m.bottom:0);O=new _.hY(O>0?O:0,G>0?G:0)}else(m=this.preferredDialogWidth_)?(m=Math.max(320,
Math.min(1051,m)),(G=this.preferredDialogHeight_)||(G=_.TP(O).height*.85),G=Math.max(480,Math.min(650,G))):(m=_.TP(O),G=m.width*.618,G=G<m.height?Math.round(Math.max(480,Math.min(650,G*.85))):Math.round(Math.max(480,Math.min(650,m.height*.85))),m=Math.round(G/.618)),O=_.TP(O),m=Math.min(m,Math.max(O.width,320)),G=Math.min(G,Math.max(O.height,480)),O=new _.hY(m,G);_.LAs(this.getContentElement(),O);this.reposition()};
mN.prototype.reposition=function(){if(_.FK(_.Ph(this.JSC$10194_url_),"shadeDialog")=="true"){var O=ohp(this.getElement()),m=_.TP(this.JSC$10143_dom_.getWindow());O=Math.floor(m.width/2-O.width/2);m=Fo2(this);if(m=ys2(m)){var G=m.left?m.left:0;G+=m.right?m.right:0;O=Math.floor(O-G/2)}O=O>0?O:0;m=uC(this.JSC$10143_dom_).y;P4(this.getElement(),O,m)}else mN.superClass_.reposition.call(this)};
mN.prototype.setVisible=function(O){if(O!=this.isVisible()&&this.autoSizeDialog_){var m=this.JSC$10143_dom_.getWindow();O?(this.resizePicker_(),Nm(this).listen(m,"resize",this.resizePicker_),this.iframeLoaded_||Nm(this).listen(m,"keydown",this.handleKeydown_)):(Nm(this).unlisten(m,"resize",this.resizePicker_),this.iframeLoaded_||Nm(this).unlisten(m,"keydown",this.handleKeydown_))}mN.superClass_.setVisible.call(this,O);bEH(this,new oRN(O))};
mN.prototype.focus=function(){mN.superClass_.focus.call(this);if(this.JSC$10194_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10194_iframe_.focus()}catch(O){}};var wH=function(O,m){m=m===void 0?mN:m;d_.call(this,O);this.pickerConstructor=m;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(O=window.location.origin)||(O=window.location.protocol+"//"+window.location.host);O&&this.urlParamMap_.set("origin",O);this.postProcessors_=[]};
_.X(wH,agO);wH.prototype.JSC$10199_disposeOnHide_=!1;
wH.prototype.build=function(){this.JSC$10100_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10100_appId_);this.getRelayUrl()||this.setRelayUrl(_.tZ(_.ZI(_.WG(_.Ph(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var O=new this.pickerConstructor(XH3(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);O.JSC$10176_disposeOnHide_=this.JSC$10199_disposeOnHide_;
O.JSC$10194_appId_=this.JSC$10100_appId_;O.loadedFired_&&nt9(O);V0o(O,this.callback_);return O};
var fb3=function(O){O.urlParamMap_.set("multiselectEnabled","true");return O};
_.v=wH.prototype;_.v.getHeight=function(){return this.dialogHeight_};
_.v.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.v.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.v.getTitle=function(){return this.urlParamMap_.get("title")};
_.v.getWidth=function(){return this.dialogWidth_};
var hN$=function(O){O.JSC$10199_disposeOnHide_=void 0;return O};
wH.prototype.setRelayUrl=function(O){this.urlParamMap_.set("parent",O);return this};
var TE9=function(O,m){O.urlParamMap_.set("selectButtonLabel",m);return O};
wH.prototype.setSize=function(O,m){this.dialogWidth_=O;this.dialogHeight_=m;return this};
wH.prototype.setTitle=function(O){this.urlParamMap_.set("title",O);return this};
var XH3=function(O){O.postProcessors_.length&&O.urlParamMap_.set("pp",JSON.stringify(O.postProcessors_));O.urlParamMap_.set("nav",p79(O.nav_));var m=new _.Bd(O.getBaseUrl());O.urlParamMap_.forEach(function(G,B){_.AF(m,B,G)});
return m};var jyp=function(O,m){O.name!==void 0?(this.name=O.name,this.code=gtu[O.name]):(this.code=O=O.code,this.name=ug_(O));_.GY.call(this,Ps_("%s %s",this.name,m))};
_.MQ(jyp,_.GY);var ug_=function(O){var m=_.aM.findKey(gtu,function(G){return O==G});
if(m===void 0)throw Error("hb`"+O);return m},H1={},gtu=(H1.AbortError=3,H1.EncodingError=5,H1.InvalidModificationError=9,H1.InvalidStateError=7,H1.NotFoundError=1,H1.NotReadableError=4,H1.NoModificationAllowedError=6,H1.PathExistsError=12,H1.QuotaExceededError=10,H1.SecurityError=2,H1.SyntaxError=8,H1.TypeMismatchError=11,H1);var Ib$=function(O,m){_.jB.call(this,O.type,m);this.event_=O};
_.MQ(Ib$,_.jB);var pH8=function(O,m,G){G===void 0&&(G=O.size);return O.slice?O.slice(m,G):null};var UIM=new WeakMap,qOp=function(O,m){O=[O];for(var G=m.length-1;G>=0;--G)O.push(typeof m[G],m[G]);return O.join("\v")};_.WoI(function(){if(!_.Qf.Blob)return!1;var O=new Uint8Array(100);try{var m=new Blob([O])}catch(G){return!1}return m.size!=100?!1:!0});
var SJs=_.WoI(function(){if(!_.Qf.Blob)return!1;var O=new Uint8Array(100);try{var m=new Blob([O])}catch(G){return!1}return pH8(m,0,1)===null?!1:!0});_.Qf.U3bHHf!=null||(_.Qf.U3bHHf=0);_.Qf.U3bHHf++;_.Etu=new WeakMap;_.LPs=new WeakMap;var zts={};var Qj=void 0;var Vas=Symbol("pb");var EGe=KS("WizInjectionContext_Dispatcher");var $B=Symbol("qb");var VE,Tn;VE=function(){this.afterRenderCallbacks=null};
_.Qs5=Symbol("rb");Tn=function(O){this.props=O;this.__unmounted=!1};
Tn.prototype.didPatch=function(){};
Tn.prototype.didMount=function(){};
Tn.prototype.didUnmount=function(){};
Tn.prototype.didUpdate=function(){};_.uFO=KS("WizInjectionContext_RootElement");var IDI=KS("WizInjectionContext_AppContext"),jOz=KS("WizInjectionContext_ModelRootElement"),pIO=KS("WizInjectionContext_RendererData"),SOO=KS("WizInjectionContext_InjectingConstructor"),gGN=KS("WizInjectionContext_AsyncDeps"),Lo5={};var yv5=!1;var wIp={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:ICI,enableLazyTsx:p9s,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:jmI,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var M_=Object.assign({},{attributes:{},handleError:function(O){throw O;}},wIp);var CT3=Symbol("vb"),XH=Symbol("wb"),ylz=Symbol("xb"),ab5=Symbol("yb"),syN=E3(function(O){return rh(O)&&CT3 in O});var Avf=Symbol("zb"),v1={},Pnp=(v1[Avf]=!0,v1.debugName="[component]",v1.getComponentStack=function(){for(var O=[],m=this;m;)OEN(m)&&O.push(m.debugName),m=m.parent;return O},v1.registerSignal=function(){},v1.registerEffect=function(){},v1);var R9=null,xv=!1,Qyr=1,xTN=Symbol("Db"),Vj={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 KT=Symbol("Eb"),$I=Symbol("Fb"),UR=Symbol("Gb"),iEe=Object.assign({},Vj,{value:KT,dirty:!0,error:null,equal:mTe,kind:"computed",producerMustRecompute:function(O){return O.value===KT||O.value===$I},
producerRecomputeValue:function(O){if(O.value===$I)throw Error("Z");var m=O.value;O.value=$I;var G=M0p(O),B=!1;try{var Q=O.computation();iF(null);B=m!==KT&&m!==UR&&Q!==UR&&O.equal(m,Q)}catch(H){Q=UR,O.error=H}finally{RNY(O,G)}B?O.value=m:(O.value=Q,O.version++)}});Object.assign({},Vj,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,kind:"effect"});var WPe=function(){throw Error();};var zNY=null,UTS=Object.assign({},Vj,{equal:mTe,value:void 0,kind:"signal"});Object.assign({},Vj,{value:KT,dirty:!0,error:null,equal:mTe,kind:"linkedSignal",producerMustRecompute:function(O){return O.value===KT||O.value===$I},
producerRecomputeValue:function(O){if(O.value===$I)throw Error("Z");var m=O.value;O.value=$I;var G=M0p(O);try{var B=O.source();var Q=O.computation(B,m===KT||m===UR?void 0:{source:O.sourceValue,value:m});O.sourceValue=B}catch(H){Q=UR,O.error=H}finally{RNY(O,G)}m!==KT&&Q!==UR&&O.equal(m,Q)?O.value=m:(O.value=Q,O.version++)}});Object.assign({},Vj,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(O){O.schedule!==null&&O.schedule(O.ref)},
hasRun:!1,cleanupFn:function(){}});var V0r=Symbol("Hb"),ZK=Symbol("Ib");var zJ=Array.isArray;var jyY;var ot$={},pHN=ug6(Object.assign({},{consumerAllowSignalWrites:!0},ot$)),nn=ug6(Object.assign({},{consumerAllowSignalWrites:!0},ot$));var fS=0,h0=!1,M$=function(){this.queue=new Set};
M$.prototype.schedule=function(O){this.queue.add(O)};
M$.prototype.remove=function(O){this.queue.delete(O)};
M$.prototype.clear=function(){this.queue.clear()};
var LPM=Symbol("Nb"),SJM=Symbol("Ob"),rk=function(){M$.apply(this,arguments)};
_.X(rk,M$);rk.prototype.flush=function(){if(this.queue.size){h0=!0;for(var O=_.K(this.queue),m=O.next();!m.done;m=O.next()){m=m.value;this.queue.delete(m);try{m.run()}catch(G){lbU(G)}}h0=!1}};
var abU=function(){rk.apply(this,arguments)};
_.X(abU,rk);var Etf=new abU,kH8=function(){rk.apply(this,arguments)};
_.X(kH8,rk);kH8.prototype.schedule=function(O){var m=this;return _.r(function(G){if(G.nextAddress==1)return M_.enableQueueEffectAndOnInitInitialRuns?G.jumpTo(2):G.yield(Promise.resolve(),3);if(G.nextAddress!=2)return O.run(),G.return();m.queue.add(O);_.ju(G)})};
var CTS=new kH8,RR=function(){M$.apply(this,arguments)};
_.X(RR,M$);RR.prototype.flush=function(){this.queue.size&&NEN(this.queue)};
var ylm=function(){RR.apply(this,arguments)};
_.X(ylm,RR);ylm.prototype.schedule=function(O){O.hasRun?this.queue.add(O):O.run()};
ylm.prototype.flush=function(){if(this.queue.size)if(M_.flushRenderEffectsDuringRender){var O=this.queue;this.queue=new Set;NEN(O)}else NEN(this.queue)};
var lb5=new ylm,clu=function(){RR.apply(this,arguments)};
_.X(clu,RR);clu.prototype.schedule=function(O){var m=this;return _.r(function(G){if(G.nextAddress==1)return M_.enableQueueEffectAndOnInitInitialRuns||O.hasRun?G.jumpTo(2):G.yield(Promise.resolve(),3);if(G.nextAddress!=2)return O.run(),G.return();m.queue.add(O);_.ju(G)})};
var clf=new clu,YJp=function(){RR.apply(this,arguments)};
_.X(YJp,RR);var kHN=new YJp,dTs=[lb5,Etf,kHN],DTO=[CTS,clf],dT2=[lb5,kHN,clf],PTs=[].concat(_.lS(dTs),_.lS(DTO)),wHj=[];zNY=function(){eNN();for(var O=_.K(wHj),m=O.next();!m.done;m=O.next())m=m.value,m()};
var lbU=HM;var uF=Symbol("Pb");var gh=null,OIf,mDI=null,GXr;var ia={},eN$=Object.assign({},Vj,(ia[CT3]=!0,ia.effectType=XH,ia.isResettableContext=!0,ia.hasRun=!1,ia.effectFn=null,ia.consumerIsAlwaysLive=!0,ia.consumerAllowSignalWrites=!0,ia.consumerMarkedDirty=YJY,ia.kind="effect",ia.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(xv)throw Error("Qb");this.dirty=!1;if(!this.hasRun||HEf(this)){this.hasRun=!0;TYz(this);var O=_.Hf(this),m=M0p(this);DIp("effectRun",this.debugName);try{SE(this.effectFn,this.componentStack,this)}catch(G){throw M_.enableContextBasedComponentStacks&&
I9(G),G;}finally{sO6("effectRun",this.debugName),RNY(this,m),_.Hf(O)}}}},ia.componentStack=void 0,ia.debugName="[effect]",ia[Symbol.dispose]=function(){if(q_(this))for(var O=this.producers;O!==void 0;)O=rlO(O);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;O=_.K(dT2);for(var m=O.next();!m.done;m=O.next())m.value.remove(this);htz(this)},ia));var HI5=Object.assign({},eN$,{effectType:ylz});var vVO=Symbol("Rb");var KdO=Object.assign({},eN$,{effectType:XH});var YDM=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 rJY={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},MjM=
{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}]}},Fif={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},xDM=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],iIN={"*":{async:1,dir:0,loading:2,target:3}};var DT9=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,xI={},UDO=(xI[1]=null,xI[2]=function(O,m){return m instanceof NP?OI(m):Y0.toString()},xI[3]=function(O,m){return lG(m)?_.an(m):DT9.test(String(m))?String(m):Y0.toString()},xI[4]=function(O,m){return m instanceof In?_.Eh(m):Y0.toString()},xI[5]=function(O,m){return String(m)},xI[7]=null,xI[8]=null,xI[10]=null,xI);var rIp=Symbol("Xb");var EbO=function(O){var m=sy8,G=O,B="",Q="",H=1;O<0&&(O=-O);if(O===Infinity)O=(Infinity*Math.sign(G)).toString();else{for(var M=0;M<NE8.length;M++){var R=NE8[M];H=m[R];if(O>=H||H<=1&&O>.1*H){B=R;break}}B?(B+="B",Q=" "):H=1;O=Math.round(G/H*10)/10+Q+B}return O},NE8="Y Z E P T G M K  m u n".split(" "),sy8={"":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};_.PT2=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 qr={};RegExp.prototype.hasOwnProperty("sticky");var wer=function(O){O=String(O);for(var m=function(B,Q,H){for(var M=Math.min(Q.length-H,B.length),R=0;R<M;R++){var x=Q[H+R];if(B[R]!==("A"<=x&&x<="Z"?x.toLowerCase():x))return!1}return!0},G=0;(G=O.indexOf("<",G))!=-1;){if(m("\x3c/script",O,G)||m("\x3c!--",O,G))return"zSoyz";
G+=1}return O};var Yv={default:"__default"};var VjN=Object.prototype.hasOwnProperty;ZIM.prototype=Object.create(null);var He=Xef();var Bx=null;var C_p=function(O){this.created=[];this.deleted=[];this.node=O};var oVO=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var O=this,m=O;O;)m=O,O=O.parentNode;return m};var hWY=function(O,m){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=O;this.key=m;this.text=void 0};var Pf=null,FH=null,eE=null,OZ=null,I1z=[],jap=gVI,mm=[],Gn=[],MlI=function(O){return l1O(function(m,G,B){eE=FH=m;FH=null;G(B);u2M(null);FH=eE;eE=eE.parentNode;return m},O)}(),$kY=function(O){return l1O(function(m,G,B){var Q={nextSibling:m};
FH=Q;G(B);eE&&u2M(m.nextSibling);return Q===FH?null:FH},O)}();var QE=[],kXM=0;var Hx=new ZIM;var kn=new ZIM;var FPs=Xef(),saz=FPs[Yv.default],DDM=FPs.style,dDY=["focusin","focusout"],FdM="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var of5=function(){},h86=function(){},ccM=function(){},afN=function(){};var Kn=Symbol("bc");var BKe,GA5=m5f;var Wx=Symbol("cc");var ycO=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(" ")),
kAN=new Set(["a","font","script","style","title"]);_.tN={setUp:tUI,tearDown:tUI,log:tUI,logNodeRange:tUI,graft:function(O,m){m()}};var Xq={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var fn=null,hN=function(O,m){Tn.call(this,O);var G=this;this.functionComponent=m;this.hooks=[];this.hookCounter=0;this.disposeEffects=CS(function(B){G.effectContext=B;_.LS(function(){jqM(G,G.el)})},M_.alwaysTrackContexts||!!Qj)};
_.X(hN,Tn);hN.prototype.render=function(O){var m=fn;fn=this;this.hookCounter=0;var G=iF(nn),B=_.Hf(this.effectContext);try{return DIp("render",this.componentName),this.functionComponent(O)}finally{sO6("render",this.componentName),_.Hf(B),iF(G),fn=m}};
_.vr.Object.defineProperties(hN.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return FPM(this.functionComponent)}}});var YFr=Symbol("qc"),L9s=function(O,m,G){this.afterRenderCallbacks=null;this.kind=O;this.props=m;this.children=G};
_.X(L9s,VE);L9s.prototype.render=function(){var O=EfS(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var m=_.K(this.afterRenderCallbacks),G=m.next();!G.done;G=m.next())G=G.value,O=G(O);return O};
L9s.prototype.getChildren=function(){return this.children};var wr5=[];WPe=function(O){throw Error("ob`"+O.debugName);};
(function(){var O=Bx;Bx=function(m){O==null||O(m);e8S(m)}})();Object.assign({},eN$,{effectType:XH,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var O=this.elementRef;var m;O.element!=null||(O.element=(m=O.document.getElementById(O.value))!=null?m:void 0);O=O.element;for(m=this.attributes;m;){var G=m.signal();G!==m.prevValue&&(m.prevValue=G,m.namespace===1?O[m.name]=G:YDM.has(m.name)?cf(O,m.name,G?"":null):cf(O,m.name,G));m=m.next}}});Object.assign({},eN$,{effectType:XH,hasRun:!0});_.U.debugName="RlDudd";var D5r={nonNullableCondIsNull:function(){return Error("uc")}};var Ors=function(){this.map=new Map};
Ors.prototype.push=function(O,m){var G=this.map;G.has(O)&&(this.multi||(this.multi=new Map),this.multi.set(m,G.get(O)));G.set(O,m)};
Ors.prototype.pop=function(O){var m=this.map,G=m.get(O),B;G!==void 0&&((B=this.multi)==null?0:B.has(G))?(m.set(O,this.multi.get(G)),this.multi.delete(G)):m.delete(O);return G};_.gi.debugName="nsTGHd";_.uz.debugName="tbhMcf";_.jx.debugName="zyMFzb";_.I8.debugName="vI1rtf";_.vc5={OUT_OF_ORDER_HOOK_CALL:function(O){return Error("vc`"+O)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(O,m){return Error("zc`"+((m===void 0?0:m)?"IDOM":"Reactive")+"`"+(pn(O)?O.description:O))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(O,m){return Error("Ac`"+(pn(O)?O.description:O)+"`"+m)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(O){return Error("Bc`"+(pn(O)?O.description:O))},
USE_ELEMENT_NOT_ASSIGNED:function(O){return Error("Cc`"+(pn(O)?O.description:O))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(O){return Error("Dc`"+(pn(O)?O.description:O))}};BKe=CHI;var irr=Symbol("Ec");gfM({beforeRender:function(O){var m=_.Hf(O.effectContext);try{var G;((G=O.__syncEffects)==null?0:G.length)&&UCN(O.__syncEffects)}finally{_.Hf(m)}},
didPatch:function(O){var m=_.Hf(O.effectContext);try{var G;((G=O.__syncEffects)==null?0:G.length)&&UCN(O.__syncEffects)}finally{_.Hf(m)}},
didUnmount:function(O){var m;((m=O.hooks)==null?0:m.length)&&O.hooks.forEach(qBz)}});var Als,OIu,mDC;Als=_.Qf.window;_.lz=(Als==null?void 0:(OIu=Als.yt)==null?void 0:OIu.config_)||(Als==null?void 0:(mDC=Als.ytcfg)==null?void 0:mDC.data_)||{};_.HI("yt.config_",_.lz);var GXo={},JKf=[];_.j9=function(O){var m=_.eA.apply(1,arguments);var G=Error.call(this,O);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.args=[].concat(_.lS(m));Object.setPrototypeOf(this,this.constructor.prototype)};
_.X(_.j9,Error);var EJ6=function(O,m,G){this.actionName=O;this.optionalAction=m===void 0?!1:m;this.args=G===void 0?null:G;this.returnValue=[]};_.q$=function(O){this.name=O};_.dE=new _.q$("signalAction");var IYz=/^[\w.]*$/,fYI={q:!0,search_query:!0},XdO=String(ncf);var $R;$R=Symbol("Fc");_.Us=function(O){this.name=O};
_.Us.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var pdS=function(O){this.key=O},ocr=function(O){this.deferredKey=O},Ec6=function(){var O=this;
this.providers=new Map;this.JSC$10493_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(O.providers)}}};
Ec6.prototype.addProvider=function(O){this.providers.set(O.provide,O);var m=this.JSC$10493_deferred.get(O.provide);if(m)try{m.resolver(this.resolve(O.provide))}catch(G){m.rejector(G)}};
Ec6.prototype.resolve=function(O){return O instanceof ocr?Bjo(this,O):O instanceof pdS?Qa2(this,O.key,[],!0):Qa2(this,O,[])};
var Bjo=function(O,m){m=m.deferredKey;if(O.JSC$10493_deferred.has(m))return O.JSC$10493_deferred.get(m).promise;var G={};G.promise=new Promise(function(B,Q){G.resolver=B;G.rejector=Q});
O.JSC$10493_deferred.set(m,G);return G.promise},Qa2=function(O,m,G,B){B=B===void 0?!1:B;
if(G.indexOf(m)>-1)throw Error("Gc`"+m);if(O.cachedValues.has(m))return O.cachedValues.get(m);if(!O.providers.has(m)){if(B)return;throw Error("Hc`"+m);}B=O.providers.get(m);G.push(m);if(B.useValue!==void 0)var Q=B.useValue;else if(B.useFactory)Q=B[$R]?HIU(O,B[$R],G):[],Q=B.useFactory.apply(B,_.lS(Q));else if(B.useClass){Q=B.useClass;var H=Q[$R]?HIU(O,Q[$R],G):[];Q=new (Function.prototype.bind.apply(Q,[null].concat(_.lS(H))))}else throw Error("Ic`"+m);G.pop();B.skipCache||O.cachedValues.set(m,Q);return Q},
HIU=function(O,m,G){return m?m.map(function(B){return B instanceof pdS?Qa2(O,B.key,G,!0):Qa2(O,B,G)}):[]};var SBO;var wE=new _.Us("ENDPOINT_HANDLER_TOKEN");_.Db=new _.q$("urlEndpoint");var vV9=function(){this.data=[];this.cachedPackedInt52=-1};
vV9.prototype.set=function(O,m){m=m===void 0?!0:m;0<=O&&O<52&&Number.isInteger(O)&&this.data[O]!==m&&(this.data[O]=m,this.cachedPackedInt52=-1)};
vV9.prototype.get=function(O){return!!this.data[O]};
var Kd9=function(O){O.cachedPackedInt52===-1&&(O.cachedPackedInt52=O.data.reduce(function(m,G,B){return m+(G?Math.pow(2,B):0)},0));
return O.cachedPackedInt52};var F8r=function(O){var m=$DH;O=O===void 0?_.ex("yt.ads.biscotti.lastId_")||"":O;var G=Object,B=G.assign,Q={};Q.dt=vvm;Q.flash="0";a:{try{var H=m.JSC$10499_win_.top.location.href}catch(OS){H=2;break a}H=H?H===m.doc_.location.href?0:1:2}Q=(Q.frm=H,Q);try{Q.u_tz=-(new Date).getTimezoneOffset();try{var M=O6.history.length}catch(OS){M=0}Q.u_his=M;var R;Q.u_h=(R=O6.screen)==null?void 0:R.height;var x;Q.u_w=(x=O6.screen)==null?void 0:x.width;var t;Q.u_ah=(t=O6.screen)==null?void 0:t.availHeight;var W;Q.u_aw=
(W=O6.screen)==null?void 0:W.availWidth;var Z;Q.u_cd=(Z=O6.screen)==null?void 0:Z.colorDepth}catch(OS){}M=m.JSC$10499_win_;try{var z=M.screenX;var J=M.screenY}catch(OS){}try{var n=M.outerWidth;var I=M.outerHeight}catch(OS){}try{var S=M.innerWidth;var L=M.innerHeight}catch(OS){}try{var C=M.screenLeft;var P=M.screenTop}catch(OS){}try{S=M.innerWidth,L=M.innerHeight}catch(OS){}try{var w=M.screen.availWidth;var d=M.screen.availTop}catch(OS){}z=[C,P,z,J,w,d,n,I,S,L];J=idN(!1,m.JSC$10499_win_.top);n={};
var D=D===void 0?_.Qf:D;I=new vV9;"SVGElement"in D&&"createElementNS"in D.document&&I.set(0);S=Q3H();S["allow-top-navigation-by-user-activation"]&&I.set(1);S["allow-popups-to-escape-sandbox"]&&I.set(2);D.crypto&&D.crypto.subtle&&I.set(3);"TextDecoder"in D&&"TextEncoder"in D&&I.set(4);D=Kd9(I);m=(n.bc=D,n.bih=J.height,n.biw=J.width,n.brdim=z.join(),n.vis=BiN(m.doc_),n.wgl=!!O6.WebGLRenderingContext,n);G=B.call(G,Q,m);G.ca_type="image";O&&(G.bid=O);return G},$DH=new function(){var O=window.document;
this.JSC$10499_win_=window;this.doc_=O};
_.HI("yt.ads_.signals_.getAdSignalsString",function(O){return hPf(F8r(O))});_.$F();navigator.userAgent.indexOf(" (CrKey ");var cK6="XMLHttpRequest"in _.Qf?function(){return new XMLHttpRequest}:null;var Mjs="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),rJp=[].concat(_.lS(Mjs),["client_dev_set_cookie"]);var PPp={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"},wdp="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(_.lS(Mjs)),Kf6=!1,DCI=_.AKN,QQz=NrI;var u4Y=[{messageFn:function(O){return"Cannot read property '"+O.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(O){return"Cannot call '"+O.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(O){return O.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var RW8={messageWeights:[],callbackWeights:[{callback:RZI,weight:500},{callback:isM,weight:500}]};var iI$=function(){this.callbackWeights=[];this.messageWeights=[]},xDs,giN=function(){if(!xDs){var O=xDs=new iI$;
O.messageWeights.length=0;O.callbackWeights.length=0;zOS(O,RW8)}return xDs},zOS=function(O,m){m.messageWeights&&O.messageWeights.push.apply(O.messageWeights,m.messageWeights);
m.callbackWeights&&O.callbackWeights.push.apply(O.callbackWeights,m.callbackWeights)};_.MQ(_.nR,_.Iw);_.nR.prototype.subscribe=function(O,m,G){var B=this.topics_[O];B||(B=this.topics_[O]=[]);var Q=this.JSC$10523_key_;this.subscriptions_[Q]=O;this.subscriptions_[Q+1]=m;this.subscriptions_[Q+2]=G;this.JSC$10523_key_=Q+3;B.push(Q);return Q};
var qDU=function(O){var m=SvM,G=!1,B=m.subscribe("handleError",function(Q){G||(G=!0,this.unsubscribeByKey(B),O.apply(void 0,arguments))},m)};
_.nR.prototype.unsubscribe=function(O,m,G){if(O=this.topics_[O]){var B=this.subscriptions_;if(O=O.find(function(Q){return B[Q+1]==m&&B[Q+2]==G}))return this.unsubscribeByKey(O)}return!1};
_.nR.prototype.unsubscribeByKey=function(O){var m=this.subscriptions_[O];if(m){var G=this.topics_[m];this.publishDepth_!=0?(this.pendingKeys_.push(O),this.subscriptions_[O+1]=function(){}):(G&&_.yf(G,O),delete this.subscriptions_[O],delete this.subscriptions_[O+1],delete this.subscriptions_[O+2])}return!!m};
_.nR.prototype.publish=function(O,m){var G=this.topics_[O];if(G){var B=Array(arguments.length-1),Q=arguments.length,H;for(H=1;H<Q;H++)B[H-1]=arguments[H];if(this.async_)for(H=0;H<G.length;H++)Q=G[H],UD9(this.subscriptions_[Q+1],this.subscriptions_[Q+2],B);else{this.publishDepth_++;try{for(H=0,Q=G.length;H<Q&&!this.isDisposed();H++){var M=G[H];this.subscriptions_[M+1].apply(this.subscriptions_[M+2],B)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;G=this.pendingKeys_.pop();)this.unsubscribeByKey(G)}}return H!=
0}return!1};
var UD9=function(O,m,G){_.o7(function(){O.apply(m,G)})};
_.nR.prototype.clear=function(O){if(O){var m=this.topics_[O];m&&(m.forEach(this.unsubscribeByKey,this),delete this.topics_[O])}else this.subscriptions_.length=0,this.topics_={}};
_.nR.prototype.getCount=function(O){if(O){var m=this.topics_[O];return m?m.length:0}O=0;for(m in this.topics_)O+=this.getCount(m);return O};
_.nR.prototype.disposeInternal=function(){_.nR.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var SvM=new _.nR;var UO=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(UO,_.MP);UO.prototype.getColdHashData=function(){return _.Eg(this,3)};
UO.prototype.getHotHashData=function(){return _.Eg(this,5)};
UO.prototype.setHotHashData=function(O){return _.SS(this,5,O)};var fkS=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(fkS,_.MP);var OJO=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(OJO,_.MP);_.v=OJO.prototype;_.v.getDeviceId=function(){return _.Eg(this,6)};
_.v.getExperimentIds=function(O){var m=_.Pb(this,9,_.Hb,3,!0);wM5(m,O);return m[O]};
_.v.getPlayerType=function(){return _.Lq(this,36)};
_.v.setHomeGroupInfo=function(O){return _.Tc(this,81,O)};
_.v.clearLocationPlayabilityToken=function(){return _.qI(this,89)};var bT=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(bT,_.MP);bT.prototype.setKey=function(O){return _.SS(this,1,O)};
bT.prototype.getValue=function(){return oE(this,2,GMN)};
var GMN=[2,3,4,5,6];var tjo=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(tjo,_.MP);tjo.prototype.setTrackingParams=function(O){return _.qI(this,1,_.u2(O,!1))};var m1r=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(m1r,_.MP);var gHN=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(gHN,_.MP);gHN.prototype.getExperimentIds=function(O){var m=_.Pb(this,5,_.q3M,3,!0);wM5(m,O);return m[O]};var hl=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(hl,_.MP);hl.prototype.getToken=function(){return _.XK(this,2)};
hl.prototype.setToken=function(O){return _.SS(this,2,O)};var Xg=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Xg,_.MP);Xg.prototype.setSafetyMode=function(O){return _.xG(this,5,O)};var VT=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(VT,_.MP);VT.prototype.setClient=function(O){return _.Tc(this,1,O)};var THp={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 haS;_.ah=function(){var O=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Qf.addEventListener("beforeinstallprompt",function(m){m.preventDefault();O.deferredInstallPrompt=m});
_.Qf.addEventListener("appinstalled",function(){O.appInstalledEventFired=!0},{once:!0})};
haS=function(){if(!_.Qf.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Qf.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Qf.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Qf.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Qf.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(O){return"WEB_DISPLAY_MODE_UNKNOWN"}};var IkO=function(){this.syncHeaders=!0},pXN=function(O){var m={},G=[];
"USER_SESSION_ID"in _.lz&&G.push({key:"u",value:_.kB("USER_SESSION_ID")});if(G=_.OmO(G))m.Authorization=G,G=O=O==null?void 0:O.sessionIndex,G===void 0&&(G=Number(_.kB("SESSION_INDEX",0)),G=isNaN(G)?0:G),_.V("voice_search_auth_header_removal")||(m["X-Goog-AuthUser"]=G.toString()),"INNERTUBE_HOST_OVERRIDE"in _.lz||(m["X-Origin"]=window.location.origin),O===void 0&&"DELEGATED_SESSION_ID"in _.lz&&(m["X-Goog-PageId"]=_.kB("DELEGATED_SESSION_ID"));return m};var Wdm={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var tS=_.ex("ytglobal.prefsUserPrefsPrefs_")||{},ZIs;_.HI("ytglobal.prefsUserPrefsPrefs_",tS);_.W1=function(){this.cookieName=_.kB("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.kB("ALT_PREF_COOKIE_DOMAIN","youtube.com");var O=_.fR.get(this.cookieName,void 0);O&&this.parse(O)};
_.TC=function(){ZIs||(ZIs=new _.W1);return ZIs};
_.W1.prototype.get=function(O,m){zWH(O);JJH(O);O=tS[O]!==void 0?tS[O].toString():null;return O!=null?O:m?m:""};
_.W1.prototype.set=function(O,m){zWH(O);JJH(O);if(m==null)throw Error("Lc");tS[O]=m.toString()};
_.W1.prototype.getFlag=function(O){return!!((Vj$("f"+(Math.floor(O/31)+1))||0)&1<<O%31)};
_.gr=function(O,m,G){O="f"+(Math.floor(m/31)+1);m=1<<m%31;var B=Vj$(O)||0;B=G?B|m:B&~m;B===0?delete tS[O]:(G=B.toString(16),tS[O]=G.toString())};
_.W1.prototype.remove=function(O){zWH(O);JJH(O);delete tS[O]};
_.W1.prototype.save=function(){var O=!0;_.V("web_secure_pref_cookie_killswitch")&&(O=!1);_.hE(this.cookieName,this.dump(),63072E3,this.cookieDomain,O)};
_.W1.prototype.clear=function(){_.aM.clear(tS)};
_.W1.prototype.dump=function(){var O=[],m;for(m in tS)tS.hasOwnProperty(m)&&O.push(m+"="+encodeURIComponent(String(tS[m])));return O.join("&")};
var JJH=function(O){if(/^f([1-9][0-9]*)$/.test(O))throw Error("Mc`"+O);},zWH=function(O){if(!/^\w+$/.test(O))throw Error("Nc`"+O);
},Vj$=function(O){O=tS[O]!==void 0?tS[O].toString():null;
return O!=null&&/^[A-Fa-f0-9]+$/.test(O)?parseInt(O,16):null};
_.W1.prototype.parse=function(O){O=decodeURIComponent(O).split("&");for(var m=0;m<O.length;m++){var G=O[m].split("="),B=G[0];(G=G[1])&&(tS[B]=G.toString())}};var VHs={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"},us5={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},jh6={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},nsY={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Zw;_.ZV=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.uT=function(O,m,G){return O.addJob(m,0,G)};
_.ZV.prototype.addLowPriorityJob=function(O,m){return this.addJob(O,1,m)};
_.Sh=function(O,m,G){return O.addJob(m,2,G)};
_.t8=function(O,m,G){return O.addJob(m,3,G)};
_.z$=function(O,m,G){return O.addJob(m,4,G)};
Zw=function(O){var m=_.ex("yt.scheduler.instance.addImmediateJob");m?m(O):O()};
_.ZV.prototype.debounce=function(O,m,G){var B=this,Q=0,H=function(){Q&&B.cancelJob(Q);Q=B.addJob(O,m,G);B.cancelDebouncedJobMap.set(H,Q)};
return H};
_.ZV.prototype.cancelThrottle=function(O){(O=this.cancelThrottledJobMap.get(O))&&O()};var zB=function(){_.ZV.apply(this,arguments)};
_.X(zB,_.ZV);_.uW=function(){zB.instance||(zB.instance=new zB);return zB.instance};
zB.prototype.addJob=function(O,m,G){G!==void 0&&Number.isNaN(Number(G))&&(G=void 0);var B=_.ex("yt.scheduler.instance.addJob");return B?B(O,m,G):G===void 0?(O(),NaN):_.W7(O,G||0)};
zB.prototype.cancelJob=function(O){if(O===void 0||!Number.isNaN(Number(O))){var m=_.ex("yt.scheduler.instance.cancelJob");m?m(O):_.zg(O)}};
zB.prototype.start=function(){var O=_.ex("yt.scheduler.instance.start");O&&O()};
zB.prototype.pause=function(){var O=_.ex("yt.scheduler.instance.pause");O&&O()};
_.ln=_.uW();_.Id.prototype.set=function(O,m){m===void 0?this.mechanism.remove(O):this.mechanism.set(O,(0,_.ck)(m))};
_.Id.prototype.get=function(O){try{var m=this.mechanism.get(O)}catch(G){return}if(m!==null)try{return JSON.parse(m)}catch(G){throw"Storage: Invalid value was encountered";}};
_.Id.prototype.remove=function(O){this.mechanism.remove(O)};var JS=function(O){this.mechanism=O};
_.MQ(JS,_.Id);var bIo=function(O){this.data=O},nV8=function(O){return O===void 0||O instanceof bIo?O:new bIo(O)};
JS.prototype.set=function(O,m){JS.superClass_.set.call(this,O,nV8(m))};
JS.prototype.getWrapper=function(O){O=JS.superClass_.get.call(this,O);if(O===void 0||O instanceof Object)return O;throw"Storage: Invalid value was encountered";};
JS.prototype.get=function(O){if(O=this.getWrapper(O)){if(O=O.data,O===void 0)throw"Storage: Invalid value was encountered";}else O=void 0;return O};_.MQ(pR,JS);_.Xeu=function(O){var m=O.creation;O=O.expiration;return!!O&&O<_.$F()||!!m&&m>_.$F()};
pR.prototype.set=function(O,m,G){if(m=nV8(m)){if(G){if(G<_.$F()){pR.prototype.remove.call(this,O);return}m.expiration=G}m.creation=_.$F()}pR.superClass_.set.call(this,O,m)};
pR.prototype.getWrapper=function(O,m){var G=pR.superClass_.getWrapper.call(this,O);if(G)if(!m&&_.Xeu(G))pR.prototype.remove.call(this,O);else return G};var Vq=function(){};
Vq.prototype.next=function(){return ba};
var ba={done:!0,value:void 0},nT=function(O){return{value:O,done:!1}};
Vq.prototype.__iterator__=function(){return this};
_.f1U=function(O){if(O instanceof Vq)return O;if(typeof O.__iterator__=="function")return O.__iterator__(!1);if(_.YO(O)){var m=0,G=new Vq;G.next=function(){for(;;){if(m>=O.length)return ba;if(m in O)return nT(O[m++]);m++}};
return G}throw Error("Oc");};var hWp=function(O){if(O instanceof Xk||O instanceof fT||O instanceof hS)return O;if(typeof O.next=="function")return new Xk(function(){return O});
if(typeof O[Symbol.iterator]=="function")return new Xk(function(){return O[Symbol.iterator]()});
if(typeof O.__iterator__=="function")return new Xk(function(){return O.__iterator__()});
throw Error("Pc");},Xk=function(O){this.func_=O};
Xk.prototype.__iterator__=function(){return new fT(this.func_())};
Xk.prototype[Symbol.iterator]=function(){return new hS(this.func_())};
Xk.prototype.toEs6=function(){return new hS(this.func_())};
var fT=function(O){this.JSC$10607_iter_=O};
_.X(fT,Vq);fT.prototype.next=function(){return this.JSC$10607_iter_.next()};
fT.prototype[Symbol.iterator]=function(){return new hS(this.JSC$10607_iter_)};
fT.prototype.toEs6=function(){return new hS(this.JSC$10607_iter_)};
var hS=function(O){Xk.call(this,function(){return O});
this.JSC$10610_iter_=O};
_.X(hS,Xk);hS.prototype.next=function(){return this.JSC$10610_iter_.next()};var Tjj=function(){};var TB=function(){};
_.MQ(TB,Tjj);TB.prototype.getCount=function(){for(var O=0,m=_.K(this),G=m.next();!G.done;G=m.next())O++;return O};
TB.prototype[Symbol.iterator]=function(){return hWp(this.__iterator__(!0)).toEs6()};
TB.prototype.clear=function(){var O=Array.from(this);O=_.K(O);for(var m=O.next();!m.done;m=O.next())this.remove(m.value)};_.MQ(S9,TB);_.v=S9.prototype;_.v.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var O=this.storage_;if(O)try{O.setItem("__sak","1");O.removeItem("__sak");var m=!0}catch(G){m=G instanceof DOMException&&(G.name==="QuotaExceededError"||G.code===22||G.code===1014||G.name==="NS_ERROR_DOM_QUOTA_REACHED")&&O&&O.length!==0}else m=!1;this.cachedIsStorageAvailable_=m}return this.cachedIsStorageAvailable_};
_.v.set=function(O,m){gk(this);try{this.storage_.setItem(O,m)}catch(G){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.v.get=function(O){gk(this);O=this.storage_.getItem(O);if(typeof O!=="string"&&O!==null)throw"Storage mechanism: Invalid value was encountered";return O};
_.v.remove=function(O){gk(this);this.storage_.removeItem(O)};
_.v.getCount=function(){gk(this);return this.storage_.length};
_.v.__iterator__=function(O){gk(this);var m=0,G=this.storage_,B=new Vq;B.next=function(){if(m>=G.length)return ba;var Q=G.key(m++);if(O)return nT(Q);Q=G.getItem(Q);if(typeof Q!=="string")throw"Storage mechanism: Invalid value was encountered";return nT(Q)};
return B};
_.v.clear=function(){gk(this);this.storage_.clear()};
_.v.key=function(O){gk(this);return this.storage_.key(O)};
var gk=function(O){if(O.storage_==null)throw Error("Qc");O.isAvailable()||HM(Error("Qc"))};_.MQ(fhM,S9);_.MQ(hZN,S9);_.MQ(Ee,TB);Ee.prototype.set=function(O,m){this.mechanism_.set(this.JSC$10625_prefix_+O,m)};
Ee.prototype.get=function(O){return this.mechanism_.get(this.JSC$10625_prefix_+O)};
Ee.prototype.remove=function(O){this.mechanism_.remove(this.JSC$10625_prefix_+O)};
Ee.prototype.__iterator__=function(O){var m=this.mechanism_[Symbol.iterator](),G=this,B=new Vq;B.next=function(){var Q=m.next();if(Q.done)return Q;for(Q=Q.value;Q.slice(0,G.JSC$10625_prefix_.length)!=G.JSC$10625_prefix_;){Q=m.next();if(Q.done)return Q;Q=Q.value}return nT(O?Q.slice(G.JSC$10625_prefix_.length):G.mechanism_.get(Q))};
return B};_.YG=function(O){this.expiringStorage_=(O=_.Tvs(O))?new pR(O):null;this.JSC$10629_domain_=document.domain||window.location.hostname};
_.YG.prototype.set=function(O,m,G,B){G=G||31104E3;this.remove(O);if(this.expiringStorage_)try{this.expiringStorage_.set(O,m,Date.now()+G*1E3);return}catch(H){}var Q="";if(B)try{Q=escape((0,_.ck)(m))}catch(H){return}else Q=escape(m);_.hE(O,Q,G,this.JSC$10629_domain_)};
_.YG.prototype.get=function(O,m){var G=void 0,B=!this.expiringStorage_;if(!B)try{G=this.expiringStorage_.get(O)}catch(Q){B=!0}if(B&&(G=_.fR.get(O,void 0))&&(G=unescape(G),m))try{G=JSON.parse(G)}catch(Q){this.remove(O),G=void 0}return G};
_.YG.prototype.remove=function(O){this.expiringStorage_&&this.expiringStorage_.remove(O);_.ZsN(O,"/",this.JSC$10629_domain_)};
_.YG.prototype.getCreationTime=function(O){return this.expiringStorage_&&(O=(this.expiringStorage_.getWrapper(O)||{}).creation,typeof O==="number")?O:null};var uZY=function(){var O;return function(){O||(O=new _.YG("ytidb"));return O}}();var Ih5;_.CR=[];Ih5=!1;var Nvp=pqN||Sr5;var ua={},gVC=(ua.AUTH_INVALID="No user identifier specified.",ua.EXPLICIT_ABORT="Transaction was explicitly aborted.",ua.IDB_NOT_SUPPORTED="IndexedDB is not supported.",ua.MISSING_INDEX="Index not created.",ua.MISSING_OBJECT_STORES="Object stores not created.",ua.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",ua.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",ua.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",ua.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",ua.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",ua.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",ua.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",ua),jq={},u2s=(jq.AUTH_INVALID="ERROR",jq.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",jq.EXPLICIT_ABORT="IGNORED",
jq.IDB_NOT_SUPPORTED="ERROR",jq.MISSING_INDEX="WARNING",jq.MISSING_OBJECT_STORES="ERROR",jq.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",jq.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",jq.QUOTA_EXCEEDED="WARNING",jq.QUOTA_MAYBE_EXCEEDED="WARNING",jq.UNKNOWN_ABORT="WARNING",jq.INCOMPATIBLE_DB_VERSION="WARNING",jq),IR={},jaH=(IR.AUTH_INVALID=!1,IR.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,IR.EXPLICIT_ABORT=!1,IR.IDB_NOT_SUPPORTED=!1,IR.MISSING_INDEX=!1,IR.MISSING_OBJECT_STORES=!1,IR.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,IR.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,IR.QUOTA_EXCEEDED=!1,IR.QUOTA_MAYBE_EXCEEDED=!0,IR.UNKNOWN_ABORT=!0,IR.INCOMPATIBLE_DB_VERSION=!1,IR),c7=function(O,m,G,B,Q){m=m===void 0?{}:m;G=G===void 0?gVC[O]:G;B=B===void 0?u2s[O]:B;Q=Q===void 0?jaH[O]:Q;_.j9.call(this,G,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:O},m));this.type=O;this.message=G;this.level=B;this.retryable=Q;Object.setPrototypeOf(this,c7.prototype)};
_.X(c7,_.j9);var I1m=function(O,m){c7.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:m,foundObjectStores:O},gVC.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,I1m.prototype)};
_.X(I1m,c7);var Lfs=function(O,m){var G=Error.call(this);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.index=O;this.objectStore=m;Object.setPrototypeOf(this,Lfs.prototype)};
_.X(Lfs,Error);var CQe=["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 e9=function(O){this.executor=O},wI=function(O){var m=this;
this.state={status:"PENDING"};this.JSC$10657_onFulfilled=[];this.JSC$10657_onRejected=[];O=O.executor;var G=function(Q){if(m.state.status==="PENDING"){m.state={status:"FULFILLED",value:Q};Q=_.K(m.JSC$10657_onFulfilled);for(var H=Q.next();!H.done;H=Q.next())H=H.value,H()}},B=function(Q){if(m.state.status==="PENDING"){m.state={status:"REJECTED",
reason:Q};Q=_.K(m.JSC$10657_onRejected);for(var H=Q.next();!H.done;H=Q.next())H=H.value,H()}};
try{O(G,B)}catch(Q){B(Q)}};
wI.all=function(O){return new wI(new e9(function(m,G){var B=[],Q=O.length;Q===0&&m(B);for(var H={i$jscomp$468:0};H.i$jscomp$468<O.length;H={i$jscomp$468:H.i$jscomp$468},++H.i$jscomp$468)wI.resolve(O[H.i$jscomp$468]).then(function(M){return function(R){B[M.i$jscomp$468]=R;Q--;Q===0&&m(B)}}(H)).catch(function(M){G(M)})}))};
wI.resolve=function(O){return new wI(new e9(function(m,G){O instanceof wI?O.then(m,G):m(O)}))};
wI.reject=function(O){return new wI(new e9(function(m,G){G(O)}))};
wI.prototype.then=function(O,m){var G=this,B=O!=null?O:ahO,Q=m!=null?m:lhN;return new wI(new e9(function(H,M){G.state.status==="PENDING"?(G.JSC$10657_onFulfilled.push(function(){peo(G,G,B,H,M)}),G.JSC$10657_onRejected.push(function(){SDU(G,G,Q,H,M)})):G.state.status==="FULFILLED"?peo(G,G,B,H,M):G.state.status==="REJECTED"&&SDU(G,G,Q,H,M)}))};
wI.prototype.catch=function(O){return this.then(void 0,O)};
var peo=function(O,m,G,B,Q){try{if(O.state.status!=="FULFILLED")throw Error("Tc");var H=G(O.state.value);H instanceof wI?EVp(O,m,H,B,Q):B(H)}catch(M){Q(M)}},SDU=function(O,m,G,B,Q){try{if(O.state.status!=="REJECTED")throw Error("Uc");
var H=G(O.state.reason);H instanceof wI?EVp(O,m,H,B,Q):B(H)}catch(M){Q(M)}},EVp=function(O,m,G,B,Q){m===G?Q(new TypeError("Vc")):G.then(function(H){H instanceof wI?EVp(O,m,H,B,Q):B(H)},function(H){Q(H)})};var pT;pT=window;_.$G=pT.ytcsi&&pT.ytcsi.now?pT.ytcsi.now:pT.performance&&pT.performance.timing&&pT.performance.now&&pT.performance.timing.navigationStart?function(){return pT.performance.timing.navigationStart+pT.performance.now()}:function(){return(new Date).getTime()};var se=function(O,m){this.JSC$10669_wrapped=O;this.options=m;this.transactionCount=0;this.startedMs=Math.round((0,_.$G)());this.hasUnknownAbortedTransaction=!1},Sq=function(){return _.V("idb_immediate_commit")},oV9,l19,CT,yJU;
se.prototype.add=function(O,m,G){return _.OO(this,[O],{mode:"readwrite",enableRetries:!0,commit:Sq()},function(B){return B.objectStore(O).add(m,G)})};
se.prototype.clear=function(O){return _.OO(this,[O],{mode:"readwrite",enableRetries:!0},function(m){return m.objectStore(O).clear()})};
se.prototype.close=function(){this.JSC$10669_wrapped.close();var O;((O=this.options)==null?0:O.closed)&&this.options.closed()};
se.prototype.count=function(O,m){return _.OO(this,[O],{mode:"readonly",enableRetries:!0,commit:Sq()},function(G){return G.objectStore(O).count(m)})};
var wY=function(O,m,G){O=O.JSC$10669_wrapped.createObjectStore(m,G);return new Es(O)};
se.prototype.delete=function(O,m){return _.OO(this,[O],{mode:"readwrite",enableRetries:!0,commit:Sq()&&!(m instanceof IDBKeyRange)},function(G){return G.objectStore(O).delete(m)})};
var Ld2=function(O,m){return _.OO(O,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(G){return G.objectStore("ResponseStore").index("byInterface").delete(m)})};
se.prototype.get=function(O,m){return _.OO(this,[O],{mode:"readonly",enableRetries:!0,commit:Sq()},function(G){return G.objectStore(O).get(m)})};
se.prototype.getAll=function(O,m,G){return _.OO(this,[O],{mode:"readonly",enableRetries:!0},function(B){return B.objectStore(O).getAll(m,G)})};
se.prototype.put=function(O,m,G){return _.OO(this,[O],{mode:"readwrite",enableRetries:!0,commit:Sq()},function(B){return B.objectStore(O).put(m,G)})};
se.prototype.objectStoreNames=function(){return Array.from(this.JSC$10669_wrapped.objectStoreNames)};
_.OO=function(O,m,G,B){var Q,H,M,R,x,t,W,Z,z,J,n,I;return _.r(function(S){switch(S.nextAddress){case 1:var L={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof G==="string"?L.mode=G:Object.assign(L,G);Q=L;O.transactionCount++;H=Q.enableRetries?3:1;M=0;case 2:if(R){S.jumpTo(4);break}M++;x=Math.round((0,_.$G)());_.n_(S,5);t=O.JSC$10669_wrapped.transaction(m,Q.mode);L=S.yield;var C=!!Q.commit;var P=new Nu(t);C=C_H(P,B,C);return L.call(S,C,7);case 7:return W=S.yieldResult,Z=Math.round((0,_.$G)()),
oV9(O,x,Z,M,void 0,m.join(),Q),S.return(W);case 5:z=_.uS(S);J=Math.round((0,_.$G)());n=osz(z,O.JSC$10669_wrapped.name,m.join(),O.JSC$10669_wrapped.version);if((I=n instanceof c7&&!n.retryable)||M>=H)oV9(O,x,J,M,n,m.join(),Q),R=n;S.jumpTo(2);break;case 4:return S.return(Promise.reject(R))}})};
oV9=function(O,m,G,B,Q,H,M){m=G-m;Q?(Q instanceof c7&&(Q.type==="QUOTA_EXCEEDED"||Q.type==="QUOTA_MAYBE_EXCEEDED")&&lb("QUOTA_EXCEEDED",{dbName:kR(O.JSC$10669_wrapped.name),objectStoreNames:H,transactionCount:O.transactionCount,transactionMode:M.mode}),Q instanceof c7&&Q.type==="UNKNOWN_ABORT"&&(G-=O.startedMs,G<0&&G>=2147483648&&(G=0),lb("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:H,transactionDuration:m,transactionCount:O.transactionCount,dbDuration:G}),O.hasUnknownAbortedTransaction=!0),
l19(O,!1,B,H,m,M.tag),_.od(Q)):l19(O,!0,B,H,m,M.tag)};
l19=function(O,m,G,B,Q,H){lb("TRANSACTION_ENDED",{objectStoreNames:B,connectionHasUnknownAbortedTransaction:O.hasUnknownAbortedTransaction,duration:Q,isSuccessful:m,tryCount:G,tag:H===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":H})};
se.prototype.getVersion=function(){return this.JSC$10669_wrapped.version};
se.prototype.getName=function(){return this.JSC$10669_wrapped.name};
var Es=function(O){this.JSC$10684_wrapped=O};
Es.prototype.add=function(O,m){return Dg(this.JSC$10684_wrapped.add(O,m))};
Es.prototype.autoIncrement=function(){return this.JSC$10684_wrapped.autoIncrement};
Es.prototype.clear=function(){return Dg(this.JSC$10684_wrapped.clear()).then(function(){})};
var ea=function(O,m,G){O.JSC$10684_wrapped.createIndex(m,G,{unique:!1})};
Es.prototype.count=function(O){return Dg(this.JSC$10684_wrapped.count(O))};
var a1o=function(O,m){return GV(O,{query:m},function(G){return G.delete().then(function(){return G.continue()})}).then(function(){})};
Es.prototype.delete=function(O){return O instanceof IDBKeyRange?a1o(this,O):Dg(this.JSC$10684_wrapped.delete(O))};
Es.prototype.get=function(O){return Dg(this.JSC$10684_wrapped.get(O))};
Es.prototype.getAll=function(O,m){return"getAll"in IDBObjectStore.prototype?Dg(this.JSC$10684_wrapped.getAll(O,m)):kXs(this,O,m)};
var kXs=function(O,m,G){var B=[];return GV(O,{query:m},function(Q){if(!(G!==void 0&&B.length>=G))return B.push(Q.getValue()),Q.continue()}).then(function(){return B})};
Es.prototype.index=function(O){try{return new LT(this.JSC$10684_wrapped.index(O))}catch(m){if(m instanceof Error&&m.name==="NotFoundError")throw new Lfs(O,this.JSC$10684_wrapped.name);throw m;}};
Es.prototype.getName=function(){return this.JSC$10684_wrapped.name};
Es.prototype.keyPath=function(){return this.JSC$10684_wrapped.keyPath};
Es.prototype.put=function(O,m){return Dg(this.JSC$10684_wrapped.put(O,m))};
var GV=function(O,m,G){O=O.JSC$10684_wrapped.openCursor(m.query,m.direction);return yJU(O).then(function(B){return caN(B,G)})},Nu=function(O){var m=this;
this.JSC$10692_wrapped=O;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(G,B){m.JSC$10692_wrapped.addEventListener("complete",function(){G()});
m.JSC$10692_wrapped.addEventListener("error",function(Q){Q.currentTarget===Q.target&&B(m.JSC$10692_wrapped.error)});
m.JSC$10692_wrapped.addEventListener("abort",function(){var Q=m.JSC$10692_wrapped.error;if(Q)B(Q);else if(!m.aborted){Q=c7;for(var H=m.JSC$10692_wrapped.objectStoreNames,M=[],R=0;R<H.length;R++){var x=H.item(R);if(x===null)throw Error("Wc");M.push(x)}Q=new Q("UNKNOWN_ABORT",{objectStoreNames:M.join(),dbName:m.JSC$10692_wrapped.db.name,mode:m.JSC$10692_wrapped.mode});B(Q)}})})},C_H=function(O,m,G){var B=new Promise(function(Q,H){try{var M=m(O);
G&&O.commit();M.then(function(R){Q(R)}).catch(H)}catch(R){H(R),O.abort()}});
return Promise.all([B,O.done]).then(function(Q){return _.K(Q).next().value})};
Nu.prototype.abort=function(){this.JSC$10692_wrapped.abort();this.aborted=!0;throw new c7("EXPLICIT_ABORT");};
Nu.prototype.commit=function(){if(!this.aborted){var O,m;(m=(O=this.JSC$10692_wrapped).commit)==null||m.call(O)}};
Nu.prototype.objectStore=function(O){O=this.JSC$10692_wrapped.objectStore(O);var m=this.objectStoreCache.get(O);m||(m=new Es(O),this.objectStoreCache.set(O,m));return m};
var LT=function(O){this.JSC$10694_wrapped=O};
LT.prototype.count=function(O){return Dg(this.JSC$10694_wrapped.count(O))};
LT.prototype.delete=function(O){return _.MI(this,{query:O},function(m){return m.delete().then(function(){return m.continue()})})};
LT.prototype.get=function(O){return Dg(this.JSC$10694_wrapped.get(O))};
LT.prototype.getAll=function(O,m){return"getAll"in IDBIndex.prototype?Dg(this.JSC$10694_wrapped.getAll(O,m)):cJs(this,O,m)};
var cJs=function(O,m,G){var B=[];return _.MI(O,{query:m},function(Q){if(!(G!==void 0&&B.length>=G))return B.push(Q.getValue()),Q.continue()}).then(function(){return B})};
LT.prototype.keyPath=function(){return this.JSC$10694_wrapped.keyPath};
LT.prototype.unique=function(){return this.JSC$10694_wrapped.unique};
_.MI=function(O,m,G){O=O.JSC$10694_wrapped.openCursor(m.query===void 0?null:m.query,m.direction===void 0?"next":m.direction);return yJU(O).then(function(B){return caN(B,G)})};
CT=function(O,m){this.request=O;this.cursor=m};
yJU=function(O){return Dg(O).then(function(m){return m?new CT(O,m):null})};
CT.prototype.continue=function(O){this.cursor.continue(O);return yJU(this.request)};
CT.prototype.delete=function(){return Dg(this.cursor.delete()).then(function(){})};
CT.prototype.getValue=function(){return this.cursor.value};
CT.prototype.update=function(O){return Dg(this.cursor.update(O))};var oR=function(O,m){this.name=O;this.options=m;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},YDs;
oR.prototype.openDb=function(O,m,G){G=G===void 0?{}:G;return doY(O,m,G)};
oR.prototype.delete=function(O){O=O===void 0?{}:O;return _.Fz(this.name,O)};
YDs=function(O,m){return new c7("INCOMPATIBLE_DB_VERSION",{dbName:O.name,oldVersion:O.options.version,newVersion:m})};
_.AE=function(O,m){if(!m)throw dI("openWithToken",kR(O.name));return O.open()};
oR.prototype.open=function(){var O=this;if(!this.isCompatible)throw YDs(this);if(this.connectionPromise)return this.connectionPromise;var m,G=function(){O.connectionPromise===m&&(O.connectionPromise=void 0)},B={blocking:function(H){H.close()},
closed:G,terminated:G,upgrade:this.options.upgrade},Q=function(){var H,M,R,x,t,W,Z,z,J,n;return _.r(function(I){switch(I.nextAddress){case 1:return M=(H=Error().stack)!=null?H:"",_.n_(I,2),I.yield(O.openDb(O.name,O.options.version,B),4);case 4:for(var S=R=I.yieldResult,L=O.options,C=[],P=_.K(Object.keys(L.objectStores)),w=P.next();!w.done;w=P.next()){w=w.value;var d=L.objectStores[w],D=d.removedAtVersion===void 0?Number.MAX_VALUE:d.removedAtVersion;!(S.JSC$10669_wrapped.version>=d.addedAtVersion)||
S.JSC$10669_wrapped.version>=D||S.JSC$10669_wrapped.objectStoreNames.contains(w)||C.push(w)}x=C;if(x.length===0){I.jumpTo(5);break}t=Object.keys(O.options.objectStores);W=R.objectStoreNames();if(O.timesReopenedToFixMissingObjectStore<_.Rd("ytidb_reopen_db_retries",0))return O.timesReopenedToFixMissingObjectStore++,R.close(),_.od(new c7("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:O.name,expectedObjectStores:t,foundObjectStores:W})),I.return(Q());if(!(O.timesDeletedToFixMissingObjectStore<_.Rd("ytidb_remake_db_retries",
1))){I.jumpTo(6);break}O.timesDeletedToFixMissingObjectStore++;return I.yield(O.delete(),7);case 7:return _.od(new c7("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:O.name,expectedObjectStores:t,foundObjectStores:W})),I.return(Q());case 6:throw new I1m(W,t);case 5:return I.return(R);case 2:Z=_.uS(I);if(Z instanceof DOMException?Z.name!=="VersionError":"DOMError"in self&&Z instanceof DOMError?Z.name!=="VersionError":!(Z instanceof Object&&"message"in Z)||Z.message!=="An attempt was made to open a database using a lower version than the existing version."){I.jumpTo(8);
break}return I.yield(O.openDb(O.name,void 0,Object.assign({},B,{upgrade:void 0})),9);case 9:z=I.yieldResult;J=z.getVersion();if(O.options.version!==void 0&&J>O.options.version+1)throw z.close(),O.isCompatible=!1,YDs(O,J);return I.return(z);case 8:throw G(),Z instanceof Error&&!_.V("ytidb_async_stack_killswitch")&&(Z.stack=Z.stack+"\n"+M.substring(M.indexOf("\n")+1)),osz(Z,O.name,"",(n=O.options.version)!=null?n:-1);}})};
return this.connectionPromise=m=Q()};var wqs=new oR("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(O,m){m(1)&&wY(O,"databases",{keyPath:"actualName"})}});var AaO,PQN=new function(){}(new function(){});new _.Vg;var dDp=function(O,m){oR.call(this,O,m);this.options=m;ad(O)};
_.X(dDp,oR);var MwI=function(O,m){var G;return function(){G||(G=new dDp(O,m));return G}};
dDp.prototype.openDb=function(O,m,G){G=G===void 0?{}:G;return(this.options.shared?QhS:BHI)(O,m,Object.assign({},G))};
dDp.prototype.delete=function(O){O=O===void 0?{}:O;return(this.options.shared?$Bz:Hfs)(this.name,O)};var weo={},rVS=Kp("ytGcfConfig",{objectStores:(weo.coldConfigStore={addedAtVersion:1},weo.hotConfigStore={addedAtVersion:1},weo),shared:!1,upgrade:function(O,m){m(1)&&(ea(wY(O,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),ea(wY(O,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var eW3=function(){_.Iw.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var O=_.ex("yt.gcf.config.hotUpdateCallbacks");O?(this.localHotConfigJobQueue=[].concat(_.lS(O)),this.sharedHotConfigJobQueue=O):(this.sharedHotConfigJobQueue=[],_.HI("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.X(eW3,_.Iw);eW3.prototype.disposeInternal=function(){for(var O=_.K(this.localHotConfigJobQueue),m=O.next();!m.done;m=O.next()){var G=this.sharedHotConfigJobQueue;m=G.indexOf(m.value);m>=0&&G.splice(m,1)}this.localHotConfigJobQueue.length=0;_.Iw.prototype.disposeInternal.call(this)};var j0=function(){var O=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new eW3;this.TEST_ONLY={initializeConfigDb:function(){O.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return O.coldGlobalConfigGroup},
setHotConfigGroup:function(m){DDs(O,m)},
setHotHashData:function(m){O.setHotHashData(m)},
setColdConfigGroup:function(m){sam(O,m)},
getColdHashData:function(){return O.coldHashData},
getHotHashData:function(){return O.hotHashData},
getHotConfigGroup:function(){return O.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return Nj$()},
getExportedHotConfigGroup:function(){return la()},
getExportedColdHashData:function(){return _.ex("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.ex("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){P_m(O)},
resetInstance:function(){O.setHotHashData(void 0);Fds(O);delete j0.instance},
setDebounceTimer:function(m){O.debounceTimer=m},
getDebounceTimer:function(){return O.debounceTimer}}},AJm=function(){if(!j0.instance){var O=new j0;
j0.instance=O}return j0.instance},GAU=function(O){var m;
_.r(function(G){if(G.nextAddress==1)return _.V("start_client_gcf")||_.V("delete_gcf_config_db")?_.V("start_client_gcf")?G.yield(_.vI(),3):G.jumpTo(2):G.return();G.nextAddress!=2&&((m=G.yieldResult)&&_.ub()&&!_.V("delete_gcf_config_db")?(O.isConfigDbInitialized=!0,P_m(O)):(OC_(O),m5u(O)));return _.V("delete_gcf_config_db")?G.yield(tw6(),0):G.jumpTo(0)})},Iy=function(){var O;
return(O=la())!=null?O:_.kB("RAW_HOT_CONFIG_GROUP")},BKj=function(O){var m,G,B,Q,H,M;
return _.r(function(R){switch(R.nextAddress){case 1:if(O.hotGlobalConfigGroup)return R.return(la());if(!O.isConfigDbInitialized)return m=dI("getHotConfig IDB not initialized"),_.Dy(m),R.return(Promise.reject(m));G=QJ();B=_.kB("TIME_CREATED_MS");if(!G){Q=dI("getHotConfig token error");_.Dy(Q);R.jumpTo(2);break}return R.yield(UBY(G),3);case 3:if((H=R.yieldResult)&&H.timestamp>B)return DDs(O,H.config),O.setHotHashData(H.hashData),R.return(la());case 2:m5u(O);if(!(G&&O.hotGlobalConfigGroup&&O.hotHashData)){R.jumpTo(4);
break}return R.yield(ife(O.hotGlobalConfigGroup,O.hotHashData,G,B),4);case 4:return O.hotGlobalConfigGroup?R.return(la()):(M=new _.j9("Config not available in ytConfig"),_.Dy(M),R.return(Promise.reject(M)))}})},HC9=function(O){var m,G,B,Q,H,M;
return _.r(function(R){switch(R.nextAddress){case 1:if(O.coldGlobalConfigGroup)return R.return(Nj$());if(!O.isConfigDbInitialized)return m=dI("getColdConfig IDB not initialized"),_.Dy(m),R.return(Promise.reject(m));G=QJ();B=_.kB("TIME_CREATED_MS");if(!G){Q=dI("getColdConfig");_.Dy(Q);R.jumpTo(2);break}return R.yield(qKS(G),3);case 3:if((H=R.yieldResult)&&H.timestamp>B)return sam(O,H.config),Qq_(O,H.configData),Fds(O,H.hashData),R.return(Nj$());case 2:OC_(O);if(!(G&&O.coldGlobalConfigGroup&&O.coldHashData&&
O.configData)){R.jumpTo(4);break}return R.yield(xBI(O.coldGlobalConfigGroup,O.coldHashData,O.configData,G,B),4);case 4:return O.coldGlobalConfigGroup?R.return(Nj$()):(M=new _.j9("Config not available in ytConfig"),_.Dy(M),R.return(Promise.reject(M)))}})},P_m=function(O){if(!O.hotGlobalConfigGroup||!O.coldGlobalConfigGroup){if(!QJ()){var m=dI("scheduleGetConfigs");
_.Dy(m)}O.initJob||(O.initJob=_.ln.addLowPriorityJob(function(){return _.r(function(G){switch(G.nextAddress){case 1:return _.n_(G,2),G.yield(BKj(O),4);case 4:_.P7(G,3);break;case 2:_.uS(G);case 3:return _.n_(G,5),G.yield(HC9(O),7);case 7:_.P7(G,6);break;case 5:_.uS(G);case 6:O.initJob&&(O.initJob=0),_.ju(G)}})},100))}},x1r=function(O,m,G){var B,Q,H;
return _.r(function(M){switch(M.nextAddress){case 1:if(!_.V("start_client_gcf")){M.jumpTo(0);break}G&&DDs(O,G);O.setHotHashData(m);B=QJ();if(!B){M.jumpTo(3);break}if(G){M.jumpTo(4);break}return M.yield(UBY(B),5);case 5:Q=M.yieldResult,G=(H=Q)==null?void 0:H.config;case 4:return M.yield(ife(G,m,B),3);case 3:if(G)for(var R=G,x=_.K(O.configUpdateService.sharedHotConfigJobQueue),t=x.next();!t.done;t=x.next())t=t.value,t(R);_.ju(M)}})},qve=function(O,m,G){var B,Q,H,M;
return _.r(function(R){if(R.nextAddress==1){if(!_.V("start_client_gcf"))return R.jumpTo(0);Fds(O,m);return(B=QJ())?G?R.jumpTo(4):R.yield(qKS(B),5):R.jumpTo(0)}R.nextAddress!=4&&(Q=R.yieldResult,G=(H=Q)==null?void 0:H.config);if(!G)return R.jumpTo(0);M=G.configData;return R.yield(xBI(G,m,M,B),0)})},EHI=function(){var O=AJm(),m=(0,_.$G)()-O.debounceTimer;
if(!(O.debounceTimer!==0&&m<_.Rd("send_config_hash_timer"))){m=_.ex("yt.gcf.config.coldConfigData");var G=_.ex("yt.gcf.config.hotHashData"),B=_.ex("yt.gcf.config.coldHashData");m&&G&&B&&(O.debounceTimer=(0,_.$G)());return{coldConfigData:m,hotHashData:G,coldHashData:B}}},OC_=function(O){sam(O,_.kB("RAW_COLD_CONFIG_GROUP"));
Fds(O,_.kB("SERIALIZED_COLD_HASH_DATA"));var m;Qq_(O,(m=O.coldGlobalConfigGroup)==null?void 0:m.configData)},m5u=function(O){DDs(O,_.kB("RAW_HOT_CONFIG_GROUP"));
O.setHotHashData(_.kB("SERIALIZED_HOT_HASH_DATA"))},DDs=function(O,m){O.hotGlobalConfigGroup=m;
_.HI("yt.gcf.config.hotConfigGroup",O.hotGlobalConfigGroup||null)},sam=function(O,m){O.coldGlobalConfigGroup=m;
_.HI("yt.gcf.config.coldConfigGroup",O.coldGlobalConfigGroup||null)};
j0.prototype.setHotHashData=function(O){this.hotHashData=O;_.HI("yt.gcf.config.hotHashData",this.hotHashData||null)};
var Fds=function(O,m){O.coldHashData=m;_.HI("yt.gcf.config.coldHashData",O.coldHashData||null)},Qq_=function(O,m){O.configData=m;
_.HI("yt.gcf.config.coldConfigData",O.configData||null)},la=function(){return _.ex("yt.gcf.config.hotConfigGroup")},Nj$=function(){return _.ex("yt.gcf.config.coldConfigGroup")};var Jv={},vf$=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Jv.assign=function(O){for(var m=Array.prototype.slice.call(arguments,1);m.length;){var G=m.shift();if(G){if(typeof G!=="object")throw new TypeError("Zc`"+G);for(var B in G)Object.prototype.hasOwnProperty.call(G,B)&&(O[B]=G[B])}}return O};
Jv.shrinkBuf=function(O,m){if(O.length===m)return O;if(O.subarray)return O.subarray(0,m);O.length=m;return O};
var K98={arraySet:function(O,m,G,B,Q){if(m.subarray&&O.subarray)O.set(m.subarray(G,G+B),Q);else for(var H=0;H<B;H++)O[Q+H]=m[G+H]},
flattenChunks:function(O){var m,G;var B=G=0;for(m=O.length;B<m;B++)G+=O[B].length;var Q=new Uint8Array(G);B=G=0;for(m=O.length;B<m;B++){var H=O[B];Q.set(H,G);G+=H.length}return Q}},$58={arraySet:function(O,m,G,B,Q){for(var H=0;H<B;H++)O[Q+H]=m[G+H]},
flattenChunks:function(O){return[].concat.apply([],O)}};
Jv.setTyped=function(){vf$?(Jv.Buf8=Uint8Array,Jv.Buf16=Uint16Array,Jv.Buf32=Int32Array,Jv.assign(Jv,K98)):(Jv.Buf8=Array,Jv.Buf16=Array,Jv.Buf32=Array,Jv.assign(Jv,$58))};
Jv.setTyped();var MUe=!0;try{new Uint8Array(1)}catch(O){MUe=!1}
var UjS=function(O){var m,G,B=O.length,Q=0;for(m=0;m<B;m++){var H=O.charCodeAt(m);if((H&64512)===55296&&m+1<B){var M=O.charCodeAt(m+1);(M&64512)===56320&&(H=65536+(H-55296<<10)+(M-56320),m++)}Q+=H<128?1:H<2048?2:H<65536?3:4}var R=new Jv.Buf8(Q);for(m=G=0;G<Q;m++)H=O.charCodeAt(m),(H&64512)===55296&&m+1<B&&(M=O.charCodeAt(m+1),(M&64512)===56320&&(H=65536+(H-55296<<10)+(M-56320),m++)),H<128?R[G++]=H:(H<2048?R[G++]=192|H>>>6:(H<65536?R[G++]=224|H>>>12:(R[G++]=240|H>>>18,R[G++]=128|H>>>12&63),R[G++]=
128|H>>>6&63),R[G++]=128|H&63);return R};var Gwr={};Gwr=function(O,m,G,B){var Q=O&65535|0;O=O>>>16&65535|0;for(var H;G!==0;){H=G>2E3?2E3:G;G-=H;do Q=Q+m[B++]|0,O=O+Q|0;while(--H);Q%=65521;O%=65521}return Q|O<<16|0};for(var Sa={},aR,rc9=[],R8j=0;R8j<256;R8j++){aR=R8j;for(var iC8=0;iC8<8;iC8++)aR=aR&1?3988292384^aR>>>1:aR>>>1;rc9[R8j]=aR}Sa=function(O,m,G,B){G=B+G;for(O^=-1;B<G;B++)O=O>>>8^rc9[(O^m[B])&255];return O^-1};var XF={};XF={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 dBI=[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],ear=[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],qcr=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],O7p=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],gY=Array(576);tv(gY);var un=Array(60);tv(un);var bn=Array(512);tv(bn);var VJ=Array(256);tv(VJ);var wX6=Array(29);tv(wX6);var DBp=Array(30);tv(DBp);var RSe,i7e,xjf,rGO=!1;var oO;
oO=[new Cp(0,0,0,0,function(O,m){var G=65535;for(G>O.pending_buf_size-5&&(G=O.pending_buf_size-5);;){if(O.lookahead<=1){EO(O);if(O.lookahead===0&&m===0)return 1;if(O.lookahead===0)break}O.strstart+=O.lookahead;O.lookahead=0;var B=O.block_start+G;if(O.strstart===0||O.strstart>=B)if(O.lookahead=O.strstart-B,O.strstart=B,ja(O,!1),O.strm.avail_out===0)return 1;if(O.strstart-O.block_start>=O.w_size-262&&(ja(O,!1),O.strm.avail_out===0))return 1}O.insert=0;if(m===4)return ja(O,!0),O.strm.avail_out===0?3:
4;O.strstart>O.block_start&&ja(O,!1);return 1}),
new Cp(4,4,8,4,BXN),new Cp(4,5,16,8,BXN),new Cp(4,6,32,32,BXN),new Cp(4,4,16,16,Lp),new Cp(8,16,32,32,Lp),new Cp(8,16,128,128,Lp),new Cp(8,32,128,256,Lp),new Cp(32,128,258,1024,Lp),new Cp(32,258,258,4096,Lp)];var Mip={};Mip=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 ti5=Object.prototype.toString;
$jM.prototype.push=function(O,m){var G=this.strm,B=this.options.chunkSize;if(this.ended)return!1;var Q=m===~~m?m:m===!0?4:0;typeof O==="string"?G.input=UjS(O):ti5.call(O)==="[object ArrayBuffer]"?G.input=new Uint8Array(O):G.input=O;G.next_in=0;G.avail_in=G.input.length;do{G.avail_out===0&&(G.output=new Jv.Buf8(B),G.next_out=0,G.avail_out=B);O=K$f(G,Q);if(O!==1&&O!==0)return x58(this,O),this.ended=!0,!1;if(G.avail_out===0||G.avail_in===0&&(Q===4||Q===2))if(this.options.to==="string"){var H=Jv.shrinkBuf(G.output,
G.next_out);m=H;H=H.length;if(H<65537&&(m.subarray&&MUe||!m.subarray))m=String.fromCharCode.apply(null,Jv.shrinkBuf(m,H));else{for(var M="",R=0;R<H;R++)M+=String.fromCharCode(m[R]);m=M}this.chunks.push(m)}else m=Jv.shrinkBuf(G.output,G.next_out),this.chunks.push(m)}while((G.avail_in>0||G.avail_out===0)&&O!==1);if(Q===4)return(G=this.strm)&&G.state?(B=G.state.status,B!==42&&B!==69&&B!==73&&B!==91&&B!==103&&B!==113&&B!==666?O=fp(G,-2):(G.state=null,O=B===113?fp(G,-3):0)):O=-2,x58(this,O),this.ended=
!0,O===0;Q===2&&(x58(this,0),G.avail_out=0);return!0};
var x58=function(O,m){m===0&&(O.result=O.options.to==="string"?O.chunks.join(""):Jv.flattenChunks(O.chunks));O.chunks=[];O.err=m;O.msg=O.strm.msg};var qFe=typeof TextEncoder!=="undefined"?new TextEncoder:null,wCz=qFe?function(O){return qFe.encode(O)}:function(O){O=_.je(O);
for(var m=new Uint8Array(O.length),G=0;G<m.length;G++)m[G]=O[G];return m};var gLM={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},jir={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var kI=function(O,m){this.version=O;this.args=m};
kI.prototype.serialize=function(){return{version:this.version,args:this.args}};var ViY=function(O,m){this.topic=O;this.dataClass=m};
ViY.prototype.toString=function(){return this.topic};var U5s=_.ex("ytPubsub2Pubsub2Instance")||new _.nR;_.nR.prototype.subscribe=_.nR.prototype.subscribe;_.nR.prototype.unsubscribeByKey=_.nR.prototype.unsubscribeByKey;_.nR.prototype.publish=_.nR.prototype.publish;_.nR.prototype.clear=_.nR.prototype.clear;_.HI("ytPubsub2Pubsub2Instance",U5s);var JGs=_.ex("ytPubsub2Pubsub2SubscribedKeys")||{};_.HI("ytPubsub2Pubsub2SubscribedKeys",JGs);var nZI=_.ex("ytPubsub2Pubsub2TopicToKeys")||{};_.HI("ytPubsub2Pubsub2TopicToKeys",nZI);
var b7p=_.ex("ytPubsub2Pubsub2IsAsync")||{};_.HI("ytPubsub2Pubsub2IsAsync",b7p);_.HI("ytPubsub2Pubsub2SkipSubKey",null);var ScN=void 0,IOS=void 0;var yGe=_.Rd("max_body_size_to_compress",5E5),cG6=_.Rd("min_body_size_to_compress",500),kG=!0,sue=0,yJ=0,DjO=_.Rd("compression_performance_threshold_lr",250),NXI=_.Rd("slow_compressions_before_abandon_count",4),CcI=!1,oZI=new Map,djN=1,Ycp=!0;_.MQ(cI,AGI);cI.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 tUC=function(O,m,G){G||(G=0);var B=O.W_;if(typeof m==="string")for(var Q=0;Q<16;Q++)B[Q]=m.charCodeAt(G)<<24|m.charCodeAt(G+1)<<16|m.charCodeAt(G+2)<<8|m.charCodeAt(G+3),G+=4;else for(Q=0;Q<16;Q++)B[Q]=m[G]<<24|m[G+1]<<16|m[G+2]<<8|m[G+3],G+=4;for(m=16;m<80;m++)G=B[m-3]^B[m-8]^B[m-14]^B[m-16],B[m]=(G<<1|G>>>31)&4294967295;m=O.chain_[0];G=O.chain_[1];Q=O.chain_[2];for(var H=O.chain_[3],M=O.chain_[4],R,x,t=0;t<80;t++)t<40?t<20?(R=H^G&(Q^H),x=1518500249):(R=G^Q^H,x=1859775393):t<60?(R=G&Q|H&(G|Q),
x=2400959708):(R=G^Q^H,x=3395469782),R=(m<<5|m>>>27)+R+M+x+B[t]&4294967295,M=H,H=Q,Q=(G<<30|G>>>2)&4294967295,G=m,m=R;O.chain_[0]=O.chain_[0]+m&4294967295;O.chain_[1]=O.chain_[1]+G&4294967295;O.chain_[2]=O.chain_[2]+Q&4294967295;O.chain_[3]=O.chain_[3]+H&4294967295;O.chain_[4]=O.chain_[4]+M&4294967295};
cI.prototype.update=function(O,m){if(O!=null){m===void 0&&(m=O.length);for(var G=m-this.blockSize,B=0,Q=this.buf_,H=this.inbuf_;B<m;){if(H==0)for(;B<=G;)tUC(this,O,B),B+=this.blockSize;if(typeof O==="string")for(;B<m;){if(Q[H]=O.charCodeAt(B),++H,++B,H==this.blockSize){tUC(this,Q);H=0;break}}else for(;B<m;)if(Q[H]=O[B],++H,++B,H==this.blockSize){tUC(this,Q);H=0;break}}this.inbuf_=H;this.total_+=m}};
cI.prototype.digest=function(){var O=[],m=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var G=this.blockSize-1;G>=56;G--)this.buf_[G]=m&255,m/=256;tUC(this,this.buf_);for(G=m=0;G<5;G++)for(var B=24;B>=0;B-=8)O[m]=this.chain_[G]>>B&255,++m;return O};var GSS;var c1=function(O){var m=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(W){m.databaseToken=W},
triggerThrottle:function(){m.throttledSend()},
cancelThrottle:function(){m.cancelThrottledSend()},
immediateSend:function(W){return _.r(function(Z){return Z.yield(m.immediateSend(W),0)})},
requestWithinAgeLimit:function(W,Z){return m.requestWithinAgeLimit(W,Z)},
retryQueuedRequests:function(){m.retryQueuedRequests()}};
var G;this.throttleTimeout=(G=O.throttleTimeout)!=null?G:100;var B;this.retryMaxAttempts=(B=O.retryMaxAttempts)!=null?B:1;var Q;this.requestAgeLimitMs=(Q=O.requestAgeLimitMs)!=null?Q:2592E6;var H;this.queuedRequestAgeLimitMs=(H=O.queuedRequestAgeLimitMs)!=null?H:12E4;var M;this.retryDelayMs=(M=O.retryDelayMs)!=null?M:5E3;var R;this.databaseToken=(R=O.databaseToken)!=null?R:void 0;this.enableCleaning=!!O.enableCleaning;var x;this.cleaningRate=(x=O.cleaningRate)!=null?x:.1;var t;this.potentialEsfErrorLimit=
(t=O.potentialEsfErrorLimit)!=null?t:10;O.handleError&&(this.handleError=O.handleError);O.handleWarning&&(this.handleWarning=O.handleWarning);O.disableYtIdbTransactions&&(this.disableYtIdbTransactions=O.disableYtIdbTransactions);O.bypassDbTokenDependency&&(this.bypassDbTokenDependency=O.bypassDbTokenDependency);this.getBooleanFlag=O.getBooleanFlag;this.jobManager=O.jobManager;this.logsStore=O.logsStore;this.networkManager=O.networkManager;this.sendFn=O.sendFn;this.onlineEvent=O.onlineEvent;this.offlineEvent=
O.offlineEvent;yq(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&W9s(this)},W9s=function(O){yq(O)&&!O.disableYtIdbTransactions&&(O.initialized=!0,O.enableCleaning&&Math.random()<=O.cleaningRate&&O.logsStore.cleanLogsStore(O.databaseToken),O.retryQueuedRequests(),O.networkManager.isNetworkAvailable()&&O.throttledSend(),O.networkManager.listen(O.onlineEvent,O.throttledSend.bind(O)),O.networkManager.listen(O.offlineEvent,O.cancelThrottledSend.bind(O)))};
_.v=c1.prototype;_.v.writeThenSend=function(O,m){var G=this;m=m===void 0?{}:m;if(yq(this)&&this.initialized){var B={url:O,options:m,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(B,this.databaseToken).then(function(Q){B.id=Q;G.networkManager.isNetworkAvailable()&&G.immediateSend(B)}).catch(function(Q){G.immediateSend(B);
ZC3(G,Q)})}else this.sendFn(O,m)};
_.v.sendThenWrite=function(O,m,G){var B=this;m=m===void 0?{}:m;if(yq(this)&&this.initialized){var Q={url:O,options:m,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(Q.skipRetry=G);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!Q.skipRetry){if(!Q.skipRetry){var H=m.onError?m.onError:function(){};
m.onError=function(M,R){return _.r(function(x){if(x.nextAddress==1)return x.yield(B.logsStore.set(Q,B.databaseToken).catch(function(t){ZC3(B,t)}),2);
H(M,R);_.ju(x)})}}this.sendFn(O,m,Q.skipRetry)}else this.logsStore.set(Q,this.databaseToken).catch(function(M){B.sendFn(O,m,Q.skipRetry);
ZC3(B,M)})}else this.sendFn(O,m,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&G)};
_.v.sendAndWrite=function(O,m){var G=this;m=m===void 0?{}:m;if(yq(this)&&this.initialized){var B={url:O,options:m,timestamp:this.now(),status:"NEW",sendCount:0},Q=!1,H=m.onSuccess?m.onSuccess:function(){};
B.options.onSuccess=function(M,R){B.id!==void 0?G.logsStore.deleteRequest(B.id,G.databaseToken):Q=!0;G.networkManager.networkStatusHint&&G.getBooleanFlag&&G.getBooleanFlag("vss_network_hint")&&G.networkManager.networkStatusHint(!0);H(M,R)};
this.sendFn(B.url,B.options,void 0,!0);this.logsStore.set(B,this.databaseToken).then(function(M){B.id=M;Q&&G.logsStore.deleteRequest(B.id,G.databaseToken)}).catch(function(M){ZC3(G,M)})}else this.sendFn(O,m,void 0,!0)};
_.v.throttledSend=function(){var O=this;if(!yq(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var m;return _.r(function(G){if(G.nextAddress==1)return G.yield(O.logsStore.getMostRecentByStatus("NEW",O.databaseToken),2);if(G.nextAddress!=3)return m=G.yieldResult,m?G.yield(O.immediateSend(m),3):(O.cancelThrottledSend(),G.return());O.intervalJob&&(O.intervalJob=0,O.throttledSend());_.ju(G)})},this.throttleTimeout))};
_.v.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.v.immediateSend=function(O){var m=this,G;return _.r(function(B){switch(B.nextAddress){case 1:if(!yq(m))throw Error("cd");if(O.id===void 0){B.jumpTo(2);break}return B.yield(m.logsStore.markAsQueued(O.id,m.databaseToken),3);case 3:(G=B.yieldResult)||m.handleWarning(Error("dd"));case 2:if(m.requestWithinAgeLimit(O,m.requestAgeLimitMs)){B.jumpTo(4);break}m.handleWarning(Error("ed"));if(O.id===void 0){B.jumpTo(5);break}return B.yield(m.logsStore.deleteRequest(O.id,m.databaseToken),5);case 5:return B.return();
case 4:O.skipRetry||(O=z89(m,O));if(!O){B.jumpTo(0);break}if(!O.skipRetry||O.id===void 0){B.jumpTo(8);break}return B.yield(m.logsStore.deleteRequest(O.id,m.databaseToken),8);case 8:m.sendFn(O.url,O.options,!!O.skipRetry),_.ju(B)}})};
var z89=function(O,m){if(!yq(O))throw Error("fd");var G=m.options.onError?m.options.onError:function(){};
m.options.onError=function(Q,H){var M,R,x,t;return _.r(function(W){switch(W.nextAddress){case 1:M=Kpz(H);(R=$Nf(H))&&O.getBooleanFlag&&O.getBooleanFlag("web_enable_error_204")&&O.handleError(Error("gd"),m.url,H);if(!(O.getBooleanFlag&&O.getBooleanFlag("nwl_consider_error_code")&&M||O.getBooleanFlag&&!O.getBooleanFlag("nwl_consider_error_code")&&O.potentialEsfErrorCounter<=O.potentialEsfErrorLimit)){W.jumpTo(2);break}if(!O.networkManager.sendNetworkCheckRequest){W.jumpTo(3);break}return W.yield(O.networkManager.sendNetworkCheckRequest(),
3);case 3:if(O.networkManager.isNetworkAvailable()){W.jumpTo(2);break}G(Q,H);if(!O.getBooleanFlag||!O.getBooleanFlag("nwl_consider_error_code")||((x=m)==null?void 0:x.id)===void 0){W.jumpTo(6);break}return W.yield(O.logsStore.resetRequest(m.id,O.databaseToken,!1),6);case 6:return W.return();case 2:if(O.getBooleanFlag&&O.getBooleanFlag("nwl_consider_error_code")&&!M&&O.potentialEsfErrorCounter>O.potentialEsfErrorLimit)return W.return();O.potentialEsfErrorCounter++;if(((t=m)==null?void 0:t.id)===void 0){W.jumpTo(8);
break}return m.sendCount<O.retryMaxAttempts?W.yield(O.logsStore.resetRequest(m.id,O.databaseToken,!0,R?!1:void 0),12):W.yield(O.logsStore.deleteRequest(m.id,O.databaseToken),8);case 12:O.jobManager.addLowPriorityJob(function(){O.networkManager.isNetworkAvailable()&&O.throttledSend()},O.retryDelayMs);
case 8:G(Q,H),_.ju(W)}})};
var B=m.options.onSuccess?m.options.onSuccess:function(){};
m.options.onSuccess=function(Q,H){var M;return _.r(function(R){if(R.nextAddress==1)return((M=m)==null?void 0:M.id)===void 0?R.jumpTo(2):R.yield(O.logsStore.deleteRequest(m.id,O.databaseToken),2);O.networkManager.networkStatusHint&&O.getBooleanFlag&&O.getBooleanFlag("vss_network_hint")&&O.networkManager.networkStatusHint(!0);B(Q,H);_.ju(R)})};
return m};
c1.prototype.requestWithinAgeLimit=function(O,m){O=O.timestamp;return this.now()-O>=m?!1:!0};
c1.prototype.retryQueuedRequests=function(){var O=this;if(!yq(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(m){m&&!O.requestWithinAgeLimit(m,O.queuedRequestAgeLimitMs)?O.jobManager.addLowPriorityJob(function(){return _.r(function(G){if(G.nextAddress==1)return m.id===void 0?G.jumpTo(2):G.yield(O.logsStore.resetRequest(m.id,O.databaseToken),2);O.retryQueuedRequests();_.ju(G)})}):O.networkManager.isNetworkAvailable()&&O.throttledSend()})};
var ZC3=function(O,m){O.writeError&&!O.networkManager.isNetworkAvailable()?O.writeError(m):O.handleError(m)},yq=function(O){return!!O.databaseToken||O.bypassDbTokenDependency};var Mg6;var W3M={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,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,
visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var Jcp={},zBN=Kp("ServiceWorkerLogsDatabase",{objectStores:(Jcp.SWHealthLog={addedAtVersion:1},Jcp),shared:!0,upgrade:function(O,m){m(1)&&ea(wY(O,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Tup={},hB5=0;var IBp;var YI=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},FF=function(){if(!YI.instance){var O=_.ex("yt.networkRequestMonitor.instance")||new YI;
_.HI("yt.networkRequestMonitor.instance",O);YI.instance=O}return YI.instance};
YI.prototype.requestComplete=function(O,m){m&&(this.anyRequestHasSucceeded=!0);O=this.removeParams(O);this.requestMap.get(O)||this.requestMap.set(O,m)};
YI.prototype.isEndpointCFR=function(O){O=this.removeParams(O);return(O=this.requestMap.get(O))?!1:O===!1&&this.anyRequestHasSucceeded?!0:null};
YI.prototype.removeParams=function(O){return O.split("?")[0]};
YI.prototype.removeParams=YI.prototype.removeParams;YI.prototype.isEndpointCFR=YI.prototype.isEndpointCFR;YI.prototype.requestComplete=YI.prototype.requestComplete;YI.getInstance=FF;var dk=function(O){_.Ly.call(this);var m=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=O!=null?O:{addLowPriorityJob:function(Q,H){return setTimeout(Q,H)},
cancelJob:function(Q){clearTimeout(Q)}};
var G,B;this.isOnline=(B=(G=window.navigator)==null?void 0:G.onLine)!=null?B:!0;this.onNavigatorChange=function(){return _.r(function(Q){return Q.yield(VUU(m),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||bCe(this)};
_.X(dk,_.Ly);dk.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete dk.instance};
dk.prototype.isNetworkAvailable=function(){return this.isOnline};
var bCe=function(O){O.pollingJob=O.jobManager.addLowPriorityJob(function(){var m;return _.r(function(G){if(G.nextAddress==1)return O.isOnline?((m=window.navigator)==null?0:m.onLine)?G.jumpTo(3):G.yield(VUU(O),3):G.yield(VUU(O),3);bCe(O);_.ju(G)})},3E4)},VUU=function(O,m){return O.networkRequestPromise?O.networkRequestPromise:O.networkRequestPromise=new Promise(function(G){var B,Q,H,M;
return _.r(function(R){switch(R.nextAddress){case 1:return B=window.AbortController?new window.AbortController:void 0,H=(Q=B)==null?void 0:Q.signal,M=!1,_.n_(R,2,3),B&&(O.abortTimeoutKey=O.jobManager.addLowPriorityJob(function(){B.abort()},m||2E4)),R.yield(fetch("/generate_204",{method:"HEAD",
signal:H}),5);case 5:M=!0;case 3:_.f_(R);O.networkRequestPromise=void 0;O.abortTimeoutKey&&(O.jobManager.cancelJob(O.abortTimeoutKey),O.abortTimeoutKey=0);M!==O.isOnline&&(O.isOnline=M,O.isOnline?O.dispatchEvent("networkstatus-online"):O.dispatchEvent("networkstatus-offline"));G(M);_.T9(R,0);break;case 2:_.uS(R),M=!1,R.jumpTo(3)}})})};var wk=function(){_.Ly.call(this);var O=this;this.shouldFlushErrors=!1;dk.instance||(dk.instance=new dk(_.ln));this.sharedNetworkStatusManager=dk.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(O.shouldFlushErrors&&_.V("offline_error_handling")){var m=pEe().get("errors",!0);if(m){for(var G in m)if(m[G]){var B=new _.j9(G,"sent via offline_errors");B.name=m[G].name;B.stack=m[G].stack;B.level=m[G].level;_.di(B)}pEe().set("errors",{},2592E3,!0)}}})};
_.X(wk,_.Ly);var nf2=function(){if(!wk.instance){var O=_.ex("yt.networkStatusManager.instance")||new wk;_.HI("yt.networkStatusManager.instance",O);wk.instance=O}return wk.instance};
_.v=wk.prototype;_.v.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.v.networkStatusHint=function(O){this.sharedNetworkStatusManager.isOnline=O};
_.v.getWindowStatus=function(){var O=window.navigator.onLine;return O===void 0?!0:O};
_.v.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.v.listen=function(O,m){return this.sharedNetworkStatusManager.listen(O,m)};
_.v.sendNetworkCheckRequest=function(O){O=VUU(this.sharedNetworkStatusManager,O);O.then(function(m){_.V("use_cfr_monitor")&&FF().requestComplete("generate_204",m)});
return O};
wk.prototype.sendNetworkCheckRequest=wk.prototype.sendNetworkCheckRequest;wk.prototype.listen=wk.prototype.listen;wk.prototype.enableErrorFlushing=wk.prototype.enableErrorFlushing;wk.prototype.getWindowStatus=wk.prototype.getWindowStatus;wk.prototype.networkStatusHint=wk.prototype.networkStatusHint;wk.prototype.isNetworkAvailable=wk.prototype.isNetworkAvailable;wk.getInstance=nf2;_.PI=function(O){O=O===void 0?{}:O;_.Ly.call(this);var m=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=nf2();var G=_.ex("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);G&&(O.rateLimit?(this.rateLimit=O.rateLimit,G("networkstatus-online",function(){Xrj(m,"publicytnetworkstatus-online")}),G("networkstatus-offline",function(){Xrj(m,"publicytnetworkstatus-offline")})):(G("networkstatus-online",function(){m.dispatchEvent("publicytnetworkstatus-online")}),G("networkstatus-offline",
function(){m.dispatchEvent("publicytnetworkstatus-offline")})))};
_.X(_.PI,_.Ly);_.PI.prototype.isNetworkAvailable=function(){var O=_.ex("yt.networkStatusManager.instance.isNetworkAvailable");return O?O.bind(this.nsmInstance)():!0};
_.PI.prototype.networkStatusHint=function(O){var m=_.ex("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);m&&m(O)};
_.PI.prototype.sendNetworkCheckRequest=function(O){var m=this,G;return _.r(function(B){G=_.ex("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(m.nsmInstance);return _.V("skip_network_check_if_cfr")&&FF().isEndpointCFR("generate_204")?B.return(new Promise(function(Q){var H;m.networkStatusHint(((H=window.navigator)==null?void 0:H.onLine)||!0);Q(m.isNetworkAvailable())})):G?B.return(G(O)):B.return(!0)})};
var Xrj=function(O,m){O.rateLimit?O.lastJobTime?(_.ln.cancelJob(O.schedulerJob),O.schedulerJob=_.ln.addLowPriorityJob(function(){O.lastPublicSignalSent!==m&&(O.dispatchEvent(m),O.lastPublicSignalSent=m,O.lastJobTime=(0,_.$G)())},O.rateLimit-((0,_.$G)()-O.lastJobTime))):(O.dispatchEvent(m),O.lastPublicSignalSent=m,O.lastJobTime=(0,_.$G)()):O.dispatchEvent(m)};var onN,eq=function(){c1.call(this,{logsStore:{cleanLogsStore:Wps,deleteRequest:tgI,getMostRecentByStatus:xNN,markAsQueued:qzI,resetRequest:UNI,set:imN},networkManager:_.lBN(),handleError:function(O,m,G){var B,Q=G==null?void 0:(B=G.error)==null?void 0:B.code;if(Q===400||Q===415){var H;O=new _.j9(O.message,m,G==null?void 0:(H=G.error)==null?void 0:H.code);_.Dy(O,void 0,void 0,void 0,!0)}else _.di(O)},
handleWarning:_.Dy,sendFn:Lpf,now:_.$G,writeError:Sz6,jobManager:_.uW(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Rd("potential_esf_error_limit",10),getBooleanFlag:_.V,disableYtIdbTransactions:!(_.ub()&&_.aB5())});this.initializationPromise=new _.Vg;_.V("networkless_immediately_drop_all_requests")&&ZmI();$Bz("LogsDatabaseV2")};
_.X(eq,c1);_.h8_=function(){var O=_.ex("yt.networklessRequestController.instance");O||(O=new eq,_.HI("yt.networklessRequestController.instance",O),_.V("networkless_logging")&&_.vI().then(function(m){O.databaseToken=m;W9s(O);O.initializationPromise.resolve();O.enableCleaning&&Math.random()<=O.cleaningRate&&O.databaseToken&&Vgp(O.databaseToken);_.V("networkless_immediately_drop_sw_health_store")&&ffo(O)}));
return O};
eq.prototype.writeThenSend=function(O,m){m||(m={});m=CKr(O,m);_.ub()||(this.initialized=!1);c1.prototype.writeThenSend.call(this,O,m)};
eq.prototype.sendThenWrite=function(O,m,G){m||(m={});m=CKr(O,m);_.ub()||(this.initialized=!1);c1.prototype.sendThenWrite.call(this,O,m,G)};
eq.prototype.sendAndWrite=function(O,m){m||(m={});m=CKr(O,m);_.ub()||(this.initialized=!1);c1.prototype.sendAndWrite.call(this,O,m)};
eq.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var ffo=function(O){var m;_.r(function(G){if(!O.databaseToken)throw m=dI("clearSWHealthLogsDb"),m;return G.return(bmI(O.databaseToken).catch(function(B){O.handleError(B)}))})};_.y1I=!1;_.kSf=_.Qf.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.y1I};_.HI("ytNetworklessLoggingInitializationOptions",_.kSf);var EJ=function(O){var m=this;this.config_=null;O?this.config_=O:WZ6()&&(this.config_=_.rY());_.uT(_.ln,function(){vn6(m)},5E3)};
EJ.prototype.isReady=function(){!this.config_&&WZ6()&&(this.config_=_.rY());return!!this.config_};
var Hm5=function(O,m,G,B){!_.kB("VISITOR_DATA")&&m!=="visitor_id"&&Math.random()<.01&&_.Dy(new _.j9("Missing VISITOR_DATA when sending innertube request.",m,G,B));if(!O.isReady()){var Q=new _.j9("innertube xhrclient not ready",m,G,B);_.di(Q);throw Q;}var H={headers:B.headers||{},method:"POST",postParams:G,postBody:B.postBody,postBodyFormat:B.postBodyFormat||"JSON",onTimeout:function(){B.onTimeout()},
onFetchTimeout:B.onTimeout,onSuccess:function(Z,z){if(B.onSuccess)B.onSuccess(z)},
onFetchSuccess:function(Z){if(B.onSuccess)B.onSuccess(Z)},
onProgress:function(Z){if(B.onProgress)B.onProgress(Z)},
onError:function(Z,z){if(B.onError)B.onError(z)},
onFetchError:function(Z){if(B.onError)B.onError(Z)},
timeout:B.timeout,withCredentials:!0,compress:B.compress};H.headers["Content-Type"]||(H.headers["Content-Type"]="application/json");var M="";(Q=O.config_.innertubeHostOverride)&&(M=Q);var R=O.config_.innertubeUseThirdPartyAuth||!1,x=_.SKe(R,M,B);Object.assign(H.headers,x);H.headers.Authorization&&!M&&R&&(H.headers["x-origin"]=window.location.origin);var t=_.AN(M+("/youtubei/"+O.config_.innertubeApiVersion+"/"+m),{alt:"json"}),W=function(Z){Z=Z===void 0?!1:Z;var z;if(B.retry&&M!="www.youtube-nocookie.com"&&
(Z||_.V("skip_ls_gel_retry")||H.headers["Content-Type"]!=="application/json"||(z=Buf(m,G,x,R)),z)){var J=H.onSuccess,n=H.onFetchSuccess;H.onSuccess=function(L,C){Qpr(z);J(L,C)};
G.onFetchSuccess=function(L,C){Qpr(z);n(L,C)}}try{if(Z&&B.retry&&!B.networklessOptions.bypassNetworkless)H.method="POST",B.networklessOptions.writeThenSend?_.h8_().writeThenSend(t,H):_.h8_().sendAndWrite(t,H);
else if(B.compress){var I=!B.networklessOptions.writeThenSend;if(H.postBody){var S=H.postBody;typeof S!=="string"&&(S=JSON.stringify(H.postBody));eSf(t,S,H,_.Vb,I)}else eSf(t,JSON.stringify(H.postParams),H,Osz,I)}else _.V("web_all_payloads_via_jspb")?_.Vb(t,H):Osz(t,H)}catch(L){if(L.name==="InvalidAccessError")z&&(Qpr(z),z=0),_.Dy(Error("id"));else throw L;}z&&_.uT(_.ln,function(){vn6(O)},5E3)};
_.c1e()?OfN().then(function(Z){W(Z)}):W(!1)};var B2f=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(B2f,_.MP);var TK3=0,dNI=_.Ug?"webkit":_.qQ?"moz":_.xF?"ms":E_r?"o":"";_.HI("ytDomDomGetNextId",_.ex("ytDomDomGetNextId")||function(){return++TK3});var gfs={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},QT=function(O){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(O=
O||window.event){this.event=O;for(var m in O)m in gfs||(this[m]=O[m]);this.scale=O.scale;this.rotation=O.rotation;var G=O.target||O.srcElement;G&&G.nodeType==3&&(G=G.parentNode);this.target=G;var B=O.relatedTarget;if(B)try{B=B.nodeName?B:null}catch(Q){B=null}else this.type=="mouseover"?B=O.fromElement:this.type=="mouseout"&&(B=O.toElement);this.relatedTarget=B;this.clientX=O.clientX!=void 0?O.clientX:O.pageX;this.clientY=O.clientY!=void 0?O.clientY:O.pageY;this.keyCode=O.keyCode?O.keyCode:O.which;
this.charCode=O.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=O.altKey;this.ctrlKey=O.ctrlKey;this.shiftKey=O.shiftKey;this.metaKey=O.metaKey;this.pageX_=O.pageX;this.pageY_=O.pageY}}catch(Q){}},uE3=function(O){if(document.body&&document.documentElement){var m=document.body.scrollTop+document.documentElement.scrollTop;
O.pageX_=O.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);O.pageY_=O.clientY+m}};
QT.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
QT.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
QT.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var BH=_.Qf.ytEventsEventsListeners||{};_.HI("ytEventsEventsListeners",BH);var PKO=_.Qf.ytEventsEventsCounter||{count:0};_.HI("ytEventsEventsCounter",PKO);var FpI=_.p4(function(){var O=!1;try{var m=Object.defineProperty({},"capture",{get:function(){O=!0}});
window.addEventListener("test",null,m)}catch(G){}return O});_.MQ(vH,_.Iw);vH.prototype.onMouseMove_=function(O){O.pageX_===void 0&&uE3(O);var m=O.pageX_;O.pageY_===void 0&&uE3(O);this.position_=new _.yD(m,O.pageY_)};
vH.prototype.checkPosition_=function(){if(this.position_){var O=(0,_.$G)();if(this.previousTime_!=0){var m=this.previousPosition_,G=this.position_,B=m.x-G.x;m=m.y-G.y;B=Math.sqrt(B*B+m*m)/(O-this.previousTime_);this.cycles_[this.index_]=Math.abs((B-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(G=m=0;G<4;G++)m+=this.cycles_[G]||0;m>=3&&this.callback_();this.previousVelocity_=B}this.previousTime_=O;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
vH.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.A1p(this.mouseListenerKey_)};var QZI={};var iJe=new _.q$("rawColdConfigGroup");var RXN=new _.q$("rawHotConfigGroup");var jqs=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(jqs,_.MP);var Gvr=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Gvr,_.MP);var gE=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O,500)};
_.X(gE,_.MP);gE.prototype.getPayloadCase=function(){return _.Ti(this,Ifo)};
gE.prototype.getContext=function(){return _.RO(this,Gvr,33)};
var Ifo=[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,526,527,528,529];var HJM=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(HJM,_.MP);var EgY=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(EgY,_.MP);EgY.prototype.setVideoId=function(O){return Jl(this,1,LwM,Vr(O))};
EgY.prototype.getPlaylistId=function(){return _.XK(this,fE(this,LwM,2))};
var LwM=[1,2];var AH5=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(AH5,_.MP);AH5.prototype.getContext=function(){return _.RO(this,VT,1)};
AH5.prototype.getTier=function(){return _.Lq(this,7)};var pro,Ry,iT;pro=_.Qf.ytPubsubPubsubInstance||new _.nR;Ry=_.Qf.ytPubsubPubsubSubscribedKeys||{};iT=_.Qf.ytPubsubPubsubTopicToKeys||{};_.HHY=_.Qf.ytPubsubPubsubIsSynchronous||{};_.nR.prototype.subscribe=_.nR.prototype.subscribe;_.nR.prototype.unsubscribeByKey=_.nR.prototype.unsubscribeByKey;_.nR.prototype.publish=_.nR.prototype.publish;_.nR.prototype.clear=_.nR.prototype.clear;_.HI("ytPubsubPubsubInstance",pro);_.HI("ytPubsubPubsubTopicToKeys",iT);_.HI("ytPubsubPubsubIsSynchronous",_.HHY);
_.HI("ytPubsubPubsubSubscribedKeys",Ry);var qT=window;var DV=_.V("web_enable_lifecycle_monitoring")&&rHz()!==0,SFH=_.V("web_enable_lifecycle_monitoring");var Ef3=function(O){var m=this;var G=G===void 0?0:G;var B=B===void 0?_.uW():B;this.JSC$10891_defaultPriority=G;this.scheduler=B;this.completedResolver=new _.Vg;this.scheduledPayloads=O;for(O={i$jscomp$492:0};O.i$jscomp$492<this.scheduledPayloads.length;O={payload$jscomp$20:void 0,i$jscomp$492:O.i$jscomp$492},O.i$jscomp$492++)O.payload$jscomp$20=this.scheduledPayloads[O.i$jscomp$492],G=function(Q){return function(){Q.payload$jscomp$20.job();m.scheduledPayloads[Q.i$jscomp$492].processed=!0;m.scheduledPayloads.every(function(H){return H.processed===
!0})&&m.completedResolver.resolve()}}(O),B=this.getPriority(O.payload$jscomp$20),B=this.scheduler.addJob(G,B),this.scheduledPayloads[O.i$jscomp$492]=Object.assign({},O.payload$jscomp$20,{job:G,
jobId:B})};
Ef3.prototype.flushJobs=function(){var O=this,m=Array.from(this.scheduledPayloads.keys()).sort(function(B,Q){return O.getPriority(O.scheduledPayloads[Q])-O.getPriority(O.scheduledPayloads[B])});
m=_.K(m);for(var G=m.next();!G.done;G=m.next())G=this.scheduledPayloads[G.value],G.jobId===void 0||G.processed||(this.scheduler.cancelJob(G.jobId),this.scheduler.addJob(G.job,10))};
Ef3.prototype.cancel=function(){for(var O=_.K(this.scheduledPayloads),m=O.next();!m.done;m=O.next())m=m.value,m.jobId===void 0||m.processed||this.scheduler.cancelJob(m.jobId),m.processed=!0;this.completedResolver.resolve()};
Ef3.prototype.getPriority=function(O){var m;return(m=O.priority)!=null?m:this.JSC$10891_defaultPriority};var ss=function(O){this.state=O;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};DV&&R$e(this.state)};
ss.prototype.install=function(O){this.plugins.push(O);return this};
ss.prototype.uninstall=function(){var O=this;_.eA.apply(0,arguments).forEach(function(m){m=O.plugins.indexOf(m);m>-1&&O.plugins.splice(m,1)})};
ss.prototype.transition=function(O,m){var G=this;DV&&iHz(this.state);var B=this.transitions.find(function(H){return Array.isArray(H.from)?H.from.find(function(M){return M===G.state&&H.to===O}):H.from===G.state&&H.to===O});
if(B){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);L92(this,O,m);this.state=O;DV&&R$e(this.state);B=B.action.bind(this);var Q=this.plugins.filter(function(H){return H[O]}).map(function(H){return H[O]});
B(CHC(this,Q),m)}else throw Error("jd`"+this.state+"`"+O);};
var CHC=function(O,m){var G=m.filter(function(Q){return ofU(O,Q)===10}),B=m.filter(function(Q){return ofU(O,Q)!==10});
return O.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var Q=_.eA.apply(0,arguments);return _.r(function(H){if(H.nextAddress==1)return H.yield(O.runImmediateJobsAsync.apply(O,[G].concat(_.lS(Q))),2);O.setJobSetWithScheduledJobs.apply(O,[B].concat(_.lS(Q)));_.ju(H)})}:function(){var Q=_.eA.apply(0,arguments);
O.runImmediateJobsSync.apply(O,[G].concat(_.lS(Q)));O.setJobSetWithScheduledJobs.apply(O,[B].concat(_.lS(Q)))}};
ss.prototype.runImmediateJobsSync=function(O){var m=_.eA.apply(1,arguments);_.uW();for(var G=_.K(O),B=G.next(),Q={};!B.done;Q={lifecycle$jscomp$2:void 0},B=G.next())Q.lifecycle$jscomp$2=B.value,Zw(function(H){return function(){lf9(H.lifecycle$jscomp$2.name);qf5(function(){return H.lifecycle$jscomp$2.callback.apply(H.lifecycle$jscomp$2,_.lS(m))});
N$(H.lifecycle$jscomp$2.name)}}(Q))};
ss.prototype.runImmediateJobsAsync=function(O){var m=_.eA.apply(1,arguments),G,B,Q,H;return _.r(function(M){M.nextAddress==1&&(_.uW(),G=_.K(O),B=G.next(),Q={});if(M.nextAddress!=3){if(B.done)return M.jumpTo(0);Q.lifecycle$jscomp$3=B.value;Q.asyncJobCompletion=void 0;H=function(R){return function(){lf9(R.lifecycle$jscomp$3.name);var x=qf5(function(){return R.lifecycle$jscomp$3.callback.apply(R.lifecycle$jscomp$3,_.lS(m))});
ilz(x)?R.asyncJobCompletion=_.V("web_lifecycle_error_handling_killswitch")?x.then(function(){N$(R.lifecycle$jscomp$3.name)}):x.then(function(){N$(R.lifecycle$jscomp$3.name)},function(t){xi6(t);
N$(R.lifecycle$jscomp$3.name)}):N$(R.lifecycle$jscomp$3.name)}}(Q);
Zw(H);return Q.asyncJobCompletion?M.yield(Q.asyncJobCompletion,3):M.jumpTo(3)}Q={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};B=G.next();return M.jumpTo(2)})};
ss.prototype.setJobSetWithScheduledJobs=function(O){var m=_.eA.apply(1,arguments),G=this,B=O.map(function(Q){return{job:function(){lf9(Q.name);qf5(function(){return Q.callback.apply(Q,_.lS(m))});
N$(Q.name)},
priority:ofU(G,Q)}});
B.length&&(this.jobSet=new Ef3(B))};
var ofU=function(O,m){var G,B;return(B=(G=O.overridePriority)!=null?G:m.priority)!=null?B:0},lf9=function(O){DV&&O&&R$e(O)},N$=function(O){DV&&O&&iHz(O)},L92=function(O,m,G){SFH&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+O.constructor.name+"] '"+O.state+"' to '"+m+"'"),console.log("with message: ",G),console.groupEnd())};
_.vr.Object.defineProperties(ss.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var af$=function(O){ss.call(this,O===void 0?"none":O);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(){}}]},kA8;
_.X(af$,ss);af$.prototype.runApplicationNavigationBegin=function(O,m){var G=this;this.navigationTimer=_.uT(_.ln,function(){G.currentState==="application_navigating"&&G.transition("none")},5E3);
O(m==null?void 0:m.event)};
af$.prototype.runApplicationNavigationEnd=function(O,m){this.navigationTimer&&(_.ln.cancelJob(this.navigationTimer),this.navigationTimer=null);O(m==null?void 0:m.event)};
_.rtr=function(){kA8||(kA8=new af$);return kA8};var Mhe=[];_.HI("yt.logging.transport.getScrapedGelPayloads",function(){return Mhe});var UJ=function(){var O=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return O.totalEntries}}};
UJ.prototype.storePayload=function(O,m){O=UiS(O);this.store[O]?this.store[O].push(m):(this.memoizedKeySequences={},this.store[O]=[m]);this.totalEntries++;_.V("more_accurate_gel_parser")&&(m=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(m));return O};
UJ.prototype.smartExtractMatchingEntries=function(O){if(!O.keys.length)return[];for(var m=yc9(this,O.keys.splice(0,1)[0]),G=[],B=0;B<m.length;B++)this.store[m[B]]&&O.sizeLimit&&(this.store[m[B]].length<=O.sizeLimit?(G.push.apply(G,_.lS(this.store[m[B]])),delete this.store[m[B]]):G.push.apply(G,_.lS(this.store[m[B]].splice(0,O.sizeLimit))));this.totalEntries-=G.length;(O==null?0:O.sizeLimit)&&G.length<(O==null?void 0:O.sizeLimit)&&(O.sizeLimit-=G.length,G.push.apply(G,_.lS(this.smartExtractMatchingEntries(O))));
return G};
UJ.prototype.extractMatchingEntries=function(O){O=yc9(this,O);for(var m=[],G=0;G<O.length;G++)this.store[O[G]]&&(m.push.apply(m,_.lS(this.store[O[G]])),delete this.store[O[G]]);this.totalEntries-=m.length;return m};
UJ.prototype.getSequenceCount=function(O){O=yc9(this,O);for(var m=0,G=0;G<O.length;G++){var B=void 0;m+=((B=this.store[O[G]])==null?void 0:B.length)||0}return m};
var yc9=function(O,m){var G=UiS(m);if(O.memoizedKeySequences[G])return O.memoizedKeySequences[G];var B=Object.keys(O.store)||[];if(B.length<=1&&UiS(m)===B[0])return B;for(var Q=[],H=0;H<B.length;H++){var M=B[H].split("/");if(ccs(m.auth,M[0])){var R=m.isJspb;ccs(R===void 0?"undefined":R?"true":"false",M[1])&&ccs(m.cttAuthInfo,M[2])&&(R=m.tier,R=R===void 0?"undefined":JSON.stringify(R),ccs(R,M[3])&&Q.push(B[H]))}}return O.memoizedKeySequences[G]=Q},ccs=function(O,m){return O===void 0||O==="undefined"?
!0:O===m};
UJ.prototype.getSequenceCount=UJ.prototype.getSequenceCount;UJ.prototype.extractMatchingEntries=UJ.prototype.extractMatchingEntries;UJ.prototype.smartExtractMatchingEntries=UJ.prototype.smartExtractMatchingEntries;UJ.prototype.storePayload=UJ.prototype.storePayload;var dir,cHf,w6N,Zb,YFo,th6,U1p,yHN,k$Y,uw6,Yfz,K3r,ogO;dir=_.Rd("initial_gel_batch_timeout",2E3);cHf=_.Rd("gel_queue_timeout_max_ms",6E4);w6N=_.Rd("gel_min_batch_size",5);Zb=void 0;YFo=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
th6=new YFo;U1p=new YFo;yHN=new YFo;k$Y=new YFo;Yfz=!0;K3r=1;_.viN=new Map;ogO=_.Qf.ytLoggingTransportTokensToCttTargetIds_||{};_.HI("ytLoggingTransportTokensToCttTargetIds_",ogO);var CE6=_.Qf.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.HI("ytLoggingTransportTokensToJspbCttTargetIds_",CE6);var WH={};var pE=_.Qf.ytLoggingGelSequenceIdObj_||{};_.HI("ytLoggingGelSequenceIdObj_",pE);var zXI=[];var IvI=new Set,Xuf=0,L3s=0,EiM=0,hXS=[],fvz=[],C5N=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var NRp=function(){};
NRp.prototype.getUrl=function(O,m){m=m===void 0?!1:m;return O.hasOwnProperty("shareEndpoint")?null:_.kM6(O,null,m)};
var sNM=function(O,m,G){O={endpoint:m,actions:[]};G=(G.path?G.path[0]:G.target).icon||"";m=G.indexOf(":");m>0&&(G=G.substr(m+1));G&&O.actions.push(G);return O};var eXM=/Command$/,wus=/Endpoint$/,ctM=new Map;var d53,wrU;d53=1;_.sJ=function(){this.actionRoutingMap=new Map};
_.sJ.prototype.triggerAction=function(O){var m=new EJ6(O,!1,_.eA.apply(1,arguments));this.handleAction(m);return m.returnValue};
_.sJ.prototype.triggerOptionalAction=function(O){var m=new EJ6(O,!0,_.eA.apply(1,arguments));this.handleAction(m);return m.returnValue};
_.P1=function(O,m,G){m.forEach(function(B){var Q=d1O(B);Q&&O.triggerOptionalAction(Q,B,G,void 0)})};
_.sJ.prototype.handleAction=function(O){var m=this.actionRoutingMap.get(O.actionName);m&&wrU(O,m);O.optionalAction||O.returnValue.length!==0||(O=new _.j9("Unhandled action",O.actionName),_.Dy(O))};
wrU=function(O,m){m.forEach(function(G){var B=null;G?B=G.apply(null,O.args):(G=Error("kd"),G.params=O.actionName,_.di(G));O.returnValue.push(B)})};
_.NT=function(O,m,G){G||(G=d53++);for(var B=_.K(Object.keys(m)),Q=B.next();!Q.done;Q=B.next()){Q=Q.value;var H=O.actionRoutingMap.get(Q);H||(H=new Map,O.actionRoutingMap.set(Q,H));O.registerActionHandler(G,Q,m[Q],H)}return G};
_.sJ.prototype.registerActionHandler=function(O,m,G,B){B.set(O,_.wi(G))};
_.PH=function(O,m,G){m=_.K(Object.keys(m));for(var B=m.next();!B.done;B=m.next())(B=O.actionRoutingMap.get(B.value))&&B.delete(G)};
_.Kq(_.sJ);var At6=function(O,m){var G=_.sJ.getInstance();_.Ln(function(){var B={},Q=_.NT(G,(B[O]=m,B));_.LS(function(){var H={};_.PH(G,(H[O]="",H),Q)})})};var vxs=Symbol("md");BKe=CHI;var UkN=new Set(["For","If","Match","Watch"]),e83={},D5o=(e83[Yv.default]=function(){return NjN},e83.style=function(){return NjN},e83),sqo;
for(sqo in D5o)M_.attributes[sqo]=D5o[sqo](M_.attributes[sqo]);var KI=new _.Us("VISIBILITY_OBSERVER");var fL6={retrieve:function(O){return this.id.\u0275prov.token===O.\u0275prov.token?this.contextValue:this?_.vf(this,this.id):Vas}};var Pke=function(O,m,G){if(O!==Be)return!1;O=MlI(document.createElement("div"),function(){var B=ri(!1);try{G[0]()}finally{ri(B)}});
O=Array.from(O.childNodes);O.length===1&&(O=O[0]);return O};var NK2=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(O){}var PHu=typeof WeakRef==="function";var F9o=function(O){this.value=O};
F9o.prototype.deref=function(){return this.value};
var Acs=PHu?WeakRef:F9o,Or2=function(O){this.newKeyHandler=O;this.map=new WeakMap};
Or2.prototype.add=function(O,m){this.map.has(O)||(this.newKeyHandler(O),this.map.set(O,[]));this.map.get(O).push(new Acs(m))};
Or2.prototype.get=function(O){var m=this;return function B(){var Q,H,M,R,x,t,W,Z,z,J,n;return _.R6(B,function(I){switch(I.nextAddress){case 1:_.hX(I,2);Q=m.map.get(O);if(!Q)return I.return();H=0;M=_.K(Q);R=M.next();case 4:if(R.done){I.jumpTo(6);break}x=R.value;t=x.deref();if(!t){I.jumpTo(5);break}H++;W=_.iW;return I.yield(t,8);case 8:W(I.yieldResult);case 5:R=M.next();I.jumpTo(4);break;case 6:if(2*H<Q.length){Z=0;z=_.K(Q);for(J=z.next();!J.done;J=z.next())n=J.value,n.deref()&&(Q[Z++]=n);Q.length=
Z}case 2:_.f_(I),_.T9(I,0)}})}()};var mCe=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},pcN=new Or2(function(O){O.addEventListener("abort",EKe,{once:!0})}),ILp=new WeakMap,GC9=function(O){O=O===void 0?Fk:O;
this.signal=new O};
GC9.prototype.abort=function(O){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=O,O=new Event("abort"),this.signal.dispatchEvent(O))};
var Fk=function(){this.target=mCe();this.aborted=!1;this.onabort=null};
Fk.prototype.throwIfAborted=function(){j$s.call(this)};
Fk.prototype.addEventListener=function(O,m,G){this.target.addEventListener(O,m,G)};
Fk.prototype.removeEventListener=function(O,m,G){this.target.removeEventListener(O,m,G)};
Fk.prototype.dispatchEvent=function(O){if(this.onabort&&O.type==="abort")this.onabort(O);return this.target.dispatchEvent(O)};
Fk.abort=uv6;Fk.timeout=LHN;Fk.any=Spf;var gKN=NK2?AbortController:GC9,AS=NK2?AbortSignal:Fk;typeof AS.abort!=="function"&&(AS.abort=uv6);typeof AS.prototype.throwIfAborted!=="function"&&(AS.prototype.throwIfAborted=j$s);typeof AS.any!=="function"&&(AS.any=Spf);typeof AS.timeout!=="function"&&(AS.timeout=LHN);var BrC=function(O){O=O.clone();nR$(O);CY(O,"dg",null);CY(O,"d","0");zJp(O,null);JEp(O,null);return O},QsU=!0,Hru=function(O,m,G){var B=G===void 0?{}:G;
G=B.cssRowKey===void 0?void 0:B.cssRowKey;var Q=B.combinedSignature===void 0?void 0:B.combinedSignature;var H=B.extraEdges===void 0?void 0:B.extraEdges;B=B.callback===void 0?void 0:B.callback;CY(O,"m",m.join(","));H&&bR3(O,H);G&&(CY(O,"ck",G),Q?CY(O,"rs",Q):QsU&&(QsU=!1));if(B){if(B!=null&&!hJ$.test(B))throw Error("Xa`"+B);CY(O,"cb",B)}O=O.toString();_.KN(O,"/")&&(O=mP9(document.location.href)+O);return _.p9(O)};var K83=function(O){return vcU(O).then(function(m){return JSON.parse(m.responseText)})},vcU=function(O){var m={},G=m.xmlHttpFactory?m.xmlHttpFactory.createInstance():kP8.createInstance();
return(new _.zH(function(B,Q){var H;try{G.open("GET",O,!0)}catch(x){Q(new Oi("Error opening XHR: "+x.message,O,G))}G.onreadystatechange=function(){if(G.readyState==4){_.Qf.clearTimeout(H);var x;!(x=ane(G.status))&&(x=G.status===0)&&(x=O9u(O),x=!(x=="http"||x=="https"||x==""));x?B(G):Q(new $Cm(G.status,O,G))}};
G.onerror=function(){Q(new Oi("Network error",O,G))};
if(m.headers)for(var M in m.headers){var R=m.headers[M];R!=null&&G.setRequestHeader(M,R)}m.withCredentials&&(G.withCredentials=m.withCredentials);m.responseType&&(G.responseType=m.responseType);m.mimeType&&G.overrideMimeType(m.mimeType);m.timeoutMs>0&&(H=_.Qf.setTimeout(function(){G.onreadystatechange=function(){};
G.abort();Q(new MY_(O,G))},m.timeoutMs));
try{G.send(null)}catch(x){G.onreadystatechange=function(){},_.Qf.clearTimeout(H),Q(new Oi("Error sending XHR: "+x.message,O,G))}})).thenCatch(function(B){B instanceof _.YK&&G.abort();
throw B;})},Oi=function(O,m,G){_.GY.call(this,O+", url="+m);
this.url=m;this.xhr=G};
_.MQ(Oi,_.GY);Oi.prototype.name="XhrError";var $Cm=function(O,m,G){Oi.call(this,"Request Failed, status="+O,m,G);this.status=O};
_.MQ($Cm,Oi);$Cm.prototype.name="XhrHttpError";var MY_=function(O,m){Oi.call(this,"Request timed out",O,m)};
_.MQ(MY_,Oi);MY_.prototype.name="XhrTimeoutError";vp=vp||{};var mx=function(){_.Iw.call(this)};
_.MQ(mx,_.Iw);mx.prototype.initialize=function(){};var rK8=function(O,m){this.fn_=O;this.handler_=m};
rK8.prototype.execute=function(O){this.fn_&&(this.fn_.call(this.handler_||null,O),this.fn_=this.handler_=null)};
rK8.prototype.abort=function(){this.handler_=this.fn_=null};var GE=function(O,m){_.Iw.call(this);this.deps_=O;this.JSC$11045_id_=m;this.onloadCallbacks_=[];this.JSC$11045_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.MQ(GE,_.Iw);GE.prototype.moduleConstructor_=mx;GE.prototype.module_=null;GE.prototype.getId=function(){return this.JSC$11045_id_};
GE.prototype.registerCallback=function(O,m){return RPm(this.onloadCallbacks_,O,m)};
var iro=function(O,m){RPm(O.JSC$11045_onErrorCallbacks_,m)},RPm=function(O,m,G){m=new rK8(m,G);
O.push(m);return m};
GE.prototype.isLoaded=function(){return!!this.module_};
GE.prototype.onLoad=function(O){var m=new this.moduleConstructor_;m.initialize(O());this.module_=m;m=(m=xC2(this.earlyOnloadCallbacks_,O()))||xC2(this.onloadCallbacks_,O());m||(this.JSC$11045_onErrorCallbacks_.length=0);return m};
GE.prototype.onError=function(O){(O=xC2(this.JSC$11045_onErrorCallbacks_,O))&&HM(Error("qd`"+O));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var xC2=function(O,m){for(var G=[],B=0;B<O.length;B++)try{O[B].execute(m)}catch(Q){HM(Q),G.push(Q)}O.length=0;return G.length?G:null};
GE.prototype.disposeInternal=function(){GE.superClass_.disposeInternal.call(this);_.Kd(this.module_)};var qBm,JKu,ZrU,zPo,tYm,W88,fYC,ncu,Xd9;
_.rj=function(O,m,G,B,Q){B=B===void 0?!1:B;Q=Q===void 0?!1:Q;var H=H===void 0?!0:H;this.scsReferenceUrl_=YOs(_.Eh(O).toString(),H);this.cssRowKey_=m;this.combinedSignature_=G;this.useNegativeLoading_=B;this.requestedModuleMap_={};this.JSC$11048_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(O=LY(this.scsReferenceUrl_,"excm"))?O.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;dIs();_.Bv(this,V9m(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
qBm=function(O,m){if(m.href||m.getAttribute("data-href"))if(m=m.href||m.getAttribute("data-href"),aDr(m)&&!YOs(m).urlPrefix_.endsWith("_/js/")){m=V9m(YOs(m));m=_.K(m);for(var G=m.next();!G.done;G=m.next())G=G.value,O.loadedCssModuleList_.includes(G)||O.loadedCssModuleList_.push(G)}};
_.rj.prototype.JSC$11050_loadModules=function(O,m,G){var B=G===void 0?{}:G;G=B.extraEdges;var Q=B.onError;var H=B.onSuccess;B=B.forceReload;this.JSC$11048_moduleInfoMap_=m;if(!O)throw Error("rd");if(this.shouldScanForCss_){m=_.K(document.getElementsByTagName("style"));for(var M=m.next();!M.done;M=m.next())qBm(this,M.value);m=_.K(document.getElementsByTagName("link"));for(M=m.next();!M.done;M=m.next())qBm(this,M.value)}UC$(this,tYm(this,O),G,Q,H,B)};
var UC$=function(O,m,G,B,Q,H){B=B===void 0?function(){}:B;
Q=Q===void 0?function(){}:Q;
H=H===void 0?!1:H;W88(O,m,function(M,R,x){x=x===void 0?R:x;O.enableFallbackFetch&&H?O.loadWithFetch(M,R,B,Q,x):O.load(M,R,B,Q,x,G)},G)||B(-1)};
_.rj.prototype.loadWithFetch=function(){_.r(function(){throw Error("sd");})};
_.rj.prototype.maybeSetAdditionalFields=function(){};
JKu=function(O,m,G){if(O.useNegativeLoading_){var B=O.scsReferenceUrl_;O={cssRowKey:O.cssRowKey_,combinedSignature:O.combinedSignature_,extraEdges:G,requestedModuleIds:ZrU(O),requestedCssModuleIds:zPo(O)};var Q=O===void 0?{}:O;O=Q.requestedModuleIds===void 0?[]:Q.requestedModuleIds;G=Q.requestedCssModuleIds===void 0?[]:Q.requestedCssModuleIds;var H=Q.cssRowKey===void 0?void 0:Q.cssRowKey;var M=Q.combinedSignature===void 0?void 0:Q.combinedSignature;var R=Q.extraEdges===void 0?void 0:Q.extraEdges;
Q=Q.callback===void 0?void 0:Q.callback;B=BrC(B);CY(B,"d","1");zJp(B,O);JEp(B,G);m=Hru(B,m,{cssRowKey:H,combinedSignature:M,extraEdges:R,callback:Q})}else B=O.scsReferenceUrl_,O={cssRowKey:O.cssRowKey_,combinedSignature:O.combinedSignature_,requestedModuleIds:ZrU(O),requestedCssModuleIds:zPo(O)},R=O===void 0?{}:O,O=R.requestedCssModuleIds===void 0?[]:R.requestedCssModuleIds,G=R.cssRowKey===void 0?void 0:R.cssRowKey,H=R.combinedSignature===void 0?void 0:R.combinedSignature,M=R.extraEdges===void 0?
void 0:R.extraEdges,R=R.callback===void 0?void 0:R.callback,B=BrC(B),JEp(B,O),m=Hru(B,m,{cssRowKey:G,combinedSignature:H,extraEdges:M,callback:R});return m};
_.Bv=function(O,m){for(var G=!1,B=[],Q=0;Q<m.length;++Q){var H=m[Q];O.requestedModuleMap_[H]||(O.requestedModuleMap_[H]=!0,O.requestedModuleList_.push(H),G=!0,B.push(H))}G&&(O.requestedModuleListSorted_=!1)};
_.QY=function(O,m){for(var G=[],B=0;B<m.length;++B){var Q=m[B];O.requestedModuleMap_[Q]&&(delete O.requestedModuleMap_[Q],_.yf(O.requestedModuleList_,Q),G.push(Q))}};
_.rj.prototype.load=function(O,m,G,B,Q){Q=Q===void 0?m:Q;_.Eh(O);var H=this.useCors_,M=this.corsMode_,R=this.fetchPriority,x=_.fd("SCRIPT");_.$3(x,O);H&&(x.crossOrigin=M);x.async=!1;R&&x.setAttribute("fetchpriority",R);_.Bv(this,m);_.VY2(this,O,x,m,G,B,Q)};
_.VY2=function(O,m,G,B,Q,H,M){M=M===void 0?B:M;O.lastScript_=G;O.insertPos.insertBefore(G,O.insertPos.firstChild);_.br_(G,B,function(){G.parentElement.removeChild(G);O.lastScript_==G&&(O.lastScript_=null);var R=new Set;B.map(function(t){return R.add(t)});
for(var x in O.JSC$11048_moduleInfoMap_)O.JSC$11048_moduleInfoMap_[x].isLoaded()&&R.add(x);Array.from(R);H()},function(R){G.parentElement.removeChild(G);
O.lastScript_==G&&(O.lastScript_=null);_.QY(O,R);O.pendingModuleGraphUpdate_?O.pendingModuleGraphUpdate_.then(function(){Q(-1,m)}):Q(-1,m)},M)};
_.br_=function(O,m,G,B,Q){Q=Q===void 0?m:Q;var H=m.length,M=function(){H=0;O.onload=null;O.onerror=null;R=function(){}},R=function(){M();
var t=Q.filter(function(W){return!ow().getModuleInfo(W).isLoaded()});
t.length!==0?B(t,"Response was successful but was missing module(s) "+t+"."):G()},x=function(){H--;
H==0&&R()};
m.forEach(function(t){t=ow().getModuleInfo(t);t.isLoaded()?x():(RPm(t.earlyOnloadCallbacks_,x),iro(t,x))});
O.onload=function(){return R()};
O.onerror=function(){M();B(m)}};
ZrU=function(O){O.requestedModuleListSorted_||(O.requestedModuleListSorted_=!0,O.requestedModuleList_.sort());return O.requestedModuleList_};
zPo=function(O){O=O.loadedCssModuleList_;O.sort();return O};
tYm=function(O,m){return m.filter(function(G){return!O.requestedModuleMap_[G]})};
W88=function(O,m,G,B){if(O.pendingModuleGraphUpdate_)return O.pendingModuleGraphUpdate_.then(function(){W88(O,m,G,B)}),!0;
if(!O.useNegativeLoading_){var Q=[],H=Object.assign({},O.requestedModuleMap_);ncu(O,m,function(W){Q.push(W.getId())},B,function(W){return!W.isLoaded()},H);
m=Q}for(H=0;H<m.length;){for(var M=m.length-H,R=H==0?m:m.slice(H,m.length),x=JKu(O,R,B),t=_.Eh(x).toString();t.length>O.urlMaxLength;)if(M>1)M-=Math.ceil((t.length-O.urlMaxLength)/6),M=Math.max(M,1),R=m.slice(H,H+M),x=JKu(O,R,B),t=_.Eh(x).toString();else return O.useNegativeLoading_?(O.useNegativeLoading_=!1,O.pendingModuleGraphUpdate_=Xd9(O).then(function(W){fYC(O,W,B)}),W88(O,m.slice(H),G,B)):!1;
H+=M;O.useNegativeLoading_?G(x,R):G(x,R,H===m.length?m:[])}return!0};
fYC=function(O,m,G){ow().setAllModuleInfoString((m||{}).moduleGraph);ncu(O,ZrU(O),function(B){_.Bv(O,[B.getId()])},G);
O.pendingModuleGraphUpdate_=null};
ncu=function(O,m,G,B,Q,H){H=H===void 0?{}:H;var M=ow();m=_.K(m);for(var R=m.next();!R.done;R=m.next()){R=R.value;var x=M.getModuleInfo(R);if(!(H[R]||Q&&!Q(x))){H[R]=!0;var t=x.deps_||[];if(B){var W=[];B[R]&&(W=Object.keys(B[R]));t=t.concat(W)}ncu(O,t,G,B,Q,H);G(x)}}};
Xd9=function(O){O=O.scsReferenceUrl_.clone();nR$(O);CY(O,"dg",null);CY(O,"md","1");return K83(O.toString())};var Cmp=new Uint8Array(123);var hPu=[];var Tr3=function(){this.JSC$10055_loader_=null};
_.v=Tr3.prototype;_.v.setBatchModeEnabled=function(){};
_.v.setAllModuleInfoString=function(){};
_.v.addExtraEdge=function(){throw Error("td");};
_.v.removeExtraEdge=function(){throw Error("ud");};
_.v.getModuleContext=function(){return null};
_.v.isActive=function(){return!1};
_.v.isUserActive=function(){return!1};
_.v.registerCallback=function(){};var Hv=function(O,m,G,B,Q){var H=Error.call(this);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.name="ModuleLoadFailure";this.type=O;this.status=m;this.requestedModuleIds=G;this.url=B;this.cause=Q;this.message=this.toString()};
_.X(Hv,Error);Hv.prototype.toString=function(){return gc$(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var gc$=function(O){switch(O.type){case Hv.Type.UNAUTHORIZED:return"Unauthorized";case Hv.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Hv.Type.TIMEOUT:return"Timed out";case Hv.Type.OLD_CODE_GONE:return"Out of date module id";case Hv.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+O.type}};
vp.ModuleLoadFailure=Hv;vp.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var vv=function(){this.moduleIds_=this.JSC$10055_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11063_extraEdges_={};this.JSC$11063_callbackMap_={};this.JSC$11063_currentlyLoadingModule_=this.baseModuleInfo_=new GE([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new vG;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.MQ(vv,Tr3);var um$=function(O,m){_.GY.call(this,"Error loading "+O+": "+m)};
_.MQ(um$,_.GY);vv.prototype.setBatchModeEnabled=function(O){this.batchModeEnabled_=O};
vv.prototype.setAllModuleInfoString=function(O,m){if(!(this instanceof vv))this.setAllModuleInfoString(O,m);else if(typeof O==="string"){if(O.startsWith("d$")){O=O.substring(2);for(var G=[],B=0,Q=O.indexOf("/"),H=0,M=!1,R=0;;){var x=M?O.substring(H):O.substring(H,Q);if(x.length===0)B++,H="sy"+B.toString(36),x=[];else{var t=x.indexOf(":");if(t<0)H=x,x=[];else if(t===x.length-1)H=x.substring(0,t),x=Array(G[R-1]);else{H=x.substring(0,t);x=x.substring(t+1).split(",");t=R;for(var W=0;W<x.length;W++)t-=
x[W].length===0?1:Number(x[W]),x[W]=G[t]}t=0;if(H.length===0)t=1;else if(H.charAt(0)==="+"||H.charAt(0)==="-")t=Number(H);t!==0&&(B+=t,H="sy"+B.toString(36))}G.push(H);jss(this,H,x);if(M)break;H=Q+1;Q=O.indexOf("/",H);Q===-1&&(M=!0);R++}this.moduleIds_=G}else if(O.startsWith("p$"))IYm(this,O);else{O=O.split("/");G=[];for(B=0;B<O.length;B++){R=O[B].split(":");Q=R[0];M=[];if(R[1])for(M=R[1].split(","),R=0;R<M.length;R++)M[R]=G[parseInt(M[R],36)];G.push(Q);jss(this,Q,M)}this.moduleIds_=G}m&&m.length?
(_.dN(this.loadingModuleIds_,m),this.lastInitialModuleId_=_.Sr(m)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11063_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11063_currentlyLoadingModule_=null,(m=this.baseModuleInfo_.onLoad((0,_.pd)(this.getModuleContext,this)))&&m.length&&pd3(this,new vp.ModuleLoadFailure(vp.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,m[0])),KU(this))}};
var IYm=function(O,m){var G=m.substring(2);for(m=0;m<64;m++)Cmp["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(m)]=m;var B={buf:G,pos:0};MD(B);var Q=MD(B),H=MD(B)+1;m=Array(Q);var M=Array(Q),R=Array(Q);H=Array(H);var x=0,t=0,W=B.pos,Z=B.buf.indexOf("|",B.pos);B.pos=Z+1;for(Z=0;Z<Q;Z++){var z=MD(B),J=z&2,n=z&1;z>>>=2;n?(x+=z>>>1^-(z&1),z="sy"+x.toString(36)):(n=W,W+=z,z=G.substring(n,W));m[Z]=z;J&&(H[t++]=z)}H[t]="";B.pos++;t=Q&-2;G=Q&1;for(x=0;x<t;x+=2)W=oKp(B),R[x]=
W&7,R[x+1]=W>>>3&7;G&&(G=oKp(B),R[t]=G&7);B.pos++;for(t=0;t<Q;t++)R[t]===7&&(R[t]=MD(B));B.pos++;for(G=t=0;G<Q;G++){x=R[G];W=x===0?hPu:Array(x);M[G]=W;Z=t;for(J=0;J<x;J++)Z-=MD(B),W[J]=H[Z];H[t]===m[G]&&t++}for(B=0;B<m.length;B++)jss(O,m[B],M[B]);O.moduleIds_=m};
_.v=vv.prototype;_.v.getModuleInfo=function(O){return this.moduleInfoMap[O]};
_.v.addExtraEdge=function(O,m){var G=this.getModuleInfo(O);G&&G.isLoaded()?this.load(m):(this.JSC$11063_extraEdges_[O]||(this.JSC$11063_extraEdges_[O]={}),this.JSC$11063_extraEdges_[O][m]=!0)};
_.v.removeExtraEdge=function(O,m){if(this.JSC$11063_extraEdges_[O]){delete this.JSC$11063_extraEdges_[O][m];for(var G in this.JSC$11063_extraEdges_[O])return;delete this.JSC$11063_extraEdges_[O]}};
_.v.isActive=function(){return this.loadingModuleIds_.length>0};
_.v.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var KU=function(O){var m=O.lastActive_,G=O.isActive();G!=m&&(O.executeCallbacks_(G?"active":"idle"),O.lastActive_=G);m=O.isUserActive();m!=O.userLastActive_&&(O.executeCallbacks_(m?"userActive":"userIdle"),O.userLastActive_=m)},jss=function(O,m,G){O.moduleInfoMap[m]?(O=O.moduleInfoMap[m].deps_,O!=G&&O.splice.apply(O,[0,
O.length].concat(_.lS(G)))):O.moduleInfoMap[m]=new GE(G,m)},Ec_=function(O,m,G){var B=[];
h6s(m,B);m=[];for(var Q={},H=0;H<B.length;H++){var M=B[H],R=O.getModuleInfo(M);if(!R)throw Error("vd`"+M);var x=new vG;Q[M]=x;R.isLoaded()?x.callback(null):(SB9(O,M,R,!!G,x),O.isModuleLoading(M)||m.push(M))}m.length>0&&(O.loadingModuleIds_.length===0?O.loadModules_(m):(O.requestedModuleIdsQueue_.push(m),KU(O)));return Q},SB9=function(O,m,G,B,Q){G.registerCallback(Q.callback,Q);
iro(G,function(H){Q.errback(new um$(m,H))});
O.isModuleLoading(m)?B&&(L89(O,m),KU(O)):B&&L89(O,m)};
vv.prototype.loadModules_=function(O,m,G){var B=this;m||(this.consecutiveFailures_=0);var Q=CP3(this,O);this.loadingModuleIds_=Q;this.requestedLoadingModuleIds_=this.batchModeEnabled_?O:_.cM(Q);KU(this);if(Q.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,Q);O=this.JSC$10055_loader_;if(!O)throw Error("wd");if(Object.keys(this.JSC$11063_extraEdges_).length>0&&!O.supportsExtraEdges)throw Error("xd");G=(0,_.pd)(O.JSC$11050_loadModules,O,_.cM(Q),this.moduleInfoMap,{extraEdges:this.JSC$11063_extraEdges_,
forceReload:!!G,onError:function(H,M){var R=B.requestedLoadingModuleIds_;H=H!=null?H:void 0;B.consecutiveFailures_++;var x=_.cM(Q);B.requestedLoadingModuleIds_=R;Q.forEach(_.hK(_.yf,B.requestedModuleIds_),B);H==401?(pd3(B,new vp.ModuleLoadFailure(vp.ModuleLoadFailure.Type.UNAUTHORIZED,H)),B.requestedModuleIdsQueue_.length=0):H==410?(oco(B,new vp.ModuleLoadFailure(vp.ModuleLoadFailure.Type.OLD_CODE_GONE,H)),lYC(B)):B.consecutiveFailures_>=3?(oco(B,new vp.ModuleLoadFailure(vp.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
H,x,M)),lYC(B)):B.loadModules_(B.requestedLoadingModuleIds_,!0,H==8001||!1)},
onTimeout:(0,_.pd)(this.handleLoadTimeout_,this)});(O=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Qf.setTimeout(G,O):G()}};
var CP3=function(O,m){m=m.filter(function(Q){return O.moduleInfoMap[Q].isLoaded()?(_.Qf.setTimeout(function(){return Error("yd`"+Q)},0),!1):!0});
for(var G=[],B=0;B<m.length;B++)G=G.concat(aY2(O,m[B]));h6s(G);return!O.batchModeEnabled_&&G.length>1?(m=G.shift(),O.requestedModuleIdsQueue_=G.map(function(Q){return[Q]}).concat(O.requestedModuleIdsQueue_),[m]):G},aY2=function(O,m){var G=_.aM.createSet(O.requestedModuleIds_),B=[];
G[m]||B.push(m);m=[m];for(var Q=0;Q<m.length;Q++)for(var H=O.getModuleInfo(m[Q]).deps_,M=H.length-1;M>=0;M--){var R=H[M];O.getModuleInfo(R).isLoaded()||G[R]||(B.push(R),m.push(R))}B.reverse();h6s(B);return B};
vv.prototype.JSC$11058_setLoaded=function(){if(this.JSC$11063_currentlyLoadingModule_){var O=this.JSC$11063_currentlyLoadingModule_.getId(),m=[];if(this.JSC$11063_extraEdges_[O]){for(var G=_.K(Object.keys(this.JSC$11063_extraEdges_[O])),B=G.next();!B.done;B=G.next()){B=B.value;var Q=this.getModuleInfo(B);Q&&!Q.isLoaded()&&(this.removeExtraEdge(O,B),m.push(B))}this.loadMultiple(m)}this.isDisposed()||((m=this.moduleInfoMap[O].onLoad((0,_.pd)(this.getModuleContext,this)))&&m.length&&pd3(this,new vp.ModuleLoadFailure(vp.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,m[0])),_.yf(this.userInitiatedLoadingModuleIds_,O),_.yf(this.loadingModuleIds_,O),this.loadingModuleIds_.length===0&&lYC(this),this.lastInitialModuleId_&&O==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),KU(this),this.JSC$11063_currentlyLoadingModule_=null)}};
vv.prototype.isModuleLoading=function(O){if(_.kO(this.loadingModuleIds_,O))return!0;for(var m=0;m<this.requestedModuleIdsQueue_.length;m++)if(_.kO(this.requestedModuleIdsQueue_[m],O))return!0;return!1};
vv.prototype.load=function(O,m){return Ec_(this,[O],m)[O]};
vv.prototype.loadMultiple=function(O){return Ec_(this,O)};
var L89=function(O,m){_.kO(O.userInitiatedLoadingModuleIds_,m)||O.userInitiatedLoadingModuleIds_.push(m)};
vv.prototype.beforeLoadModuleCode=function(O){var m=this;this.JSC$11063_currentlyLoadingModule_&&this.JSC$11063_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11058_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[O]&&kC2(this,this.moduleInfoMap[O].deps_||[],function(G){G.module_=new mx;_.yf(m.loadingModuleIds_,G.getId())},function(G){return!G.isLoaded()});
this.JSC$11063_currentlyLoadingModule_=this.getModuleInfo(O)};
vv.prototype.handleLoadTimeout_=function(){oco(this,new vp.ModuleLoadFailure(vp.ModuleLoadFailure.Type.TIMEOUT));lYC(this)};
var oco=function(O,m){O.requestedLoadingModuleIds_.length>1?O.requestedModuleIdsQueue_=O.requestedLoadingModuleIds_.map(function(G){return[G]}).concat(O.requestedModuleIdsQueue_):pd3(O,m)},pd3=function(O,m){var G=O.requestedLoadingModuleIds_;
O.loadingModuleIds_.length=0;for(var B=[],Q=0;Q<O.requestedModuleIdsQueue_.length;Q++){var H=O.requestedModuleIdsQueue_[Q].filter(function(x){var t=aY2(this,x);return Av(G,function(W){return _.kO(t,W)})},O);
_.dN(B,H)}for(Q=0;Q<G.length;Q++)_.bNr(B,G[Q]);for(Q=0;Q<B.length;Q++){for(H=0;H<O.requestedModuleIdsQueue_.length;H++)_.yf(O.requestedModuleIdsQueue_[H],B[Q]);_.yf(O.userInitiatedLoadingModuleIds_,B[Q])}if(Q=O.JSC$11063_callbackMap_.error)for(H=0;H<Q.length;H++)for(var M=Q[H],R=0;R<B.length;R++)M("error",B[R],m);for(B=0;B<G.length;B++)if(O.moduleInfoMap[G[B]])O.moduleInfoMap[G[B]].onError(m);O.requestedLoadingModuleIds_.length=0;KU(O)},lYC=function(O){for(;O.requestedModuleIdsQueue_.length;){var m=
O.requestedModuleIdsQueue_.shift().filter(function(G){return!this.getModuleInfo(G).isLoaded()},O);
if(m.length>0){O.loadModules_(m);return}}KU(O)};
vv.prototype.registerCallback=function(O,m){Array.isArray(O)||(O=[O]);for(var G=0;G<O.length;G++){var B=O[G],Q=m,H=this.JSC$11063_callbackMap_;H[B]||(H[B]=[]);H[B].push(Q)}};
vv.prototype.executeCallbacks_=function(O){for(var m=this.JSC$11063_callbackMap_[O],G=0;m&&G<m.length;G++)m[G](O)};
var kC2=function(O,m,G,B,Q){B=B===void 0?function(){return!0}:B;
Q=Q===void 0?{}:Q;m=_.K(m);for(var H=m.next();!H.done;H=m.next()){H=H.value;var M=O.getModuleInfo(H);!Q[H]&&B(M)&&(Q[H]=!0,kC2(O,M.deps_||[],G,B,Q),G(M))}};
vv.prototype.dispose=function(){_.$a(_.aM.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11063_callbackMap_={};this.isDisposed_=!0};
vv.prototype.isDisposed=function(){return this.isDisposed_};
_.Cd=function(){return new vv};var yKj=[5E3,2E4],cK_=function(){this.JSC$10055_loader_=null;this.JSC$11071_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11071_queue_=[];this.JSC$11071_extraEdges_=Object.create(null);this.JSC$11071_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.X(cK_,Tr3);_.v=cK_.prototype;_.v.setAllModuleInfoString=function(){this.JSC$11071_currentlyLoadingModule_&&this.JSC$11071_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11058_setLoaded()};
_.v.getModuleInfo=function(O){var m=this.JSC$11071_moduleInfoMap_[O];m||(m=new GE([],O),this.JSC$11071_moduleInfoMap_[O]=m);return m};
_.v.addExtraEdge=function(O,m){this.getModuleInfo(O).isLoaded()?this.load(m):(this.JSC$11071_extraEdges_[O]||(this.JSC$11071_extraEdges_[O]={}),this.JSC$11071_extraEdges_[O][m]=!0)};
_.v.removeExtraEdge=function(O,m){if(this.JSC$11071_extraEdges_[O]){delete this.JSC$11071_extraEdges_[O][m];for(var G in this.JSC$11071_extraEdges_[O])return;delete this.JSC$11071_extraEdges_[O]}};
_.v.isModuleLoading=function(O){return!!this.loadingModules_[O]};
_.v.load=function(O){YBe(this,[O]);return dCj(this,O)};
_.v.loadMultiple=function(O){var m=this,G=Object.create(null),B=[];O.forEach(function(Q){G[Q]||(G[Q]=dCj(m,Q),B.push(Q))});
YBe(this,B);return G};
_.v.beforeLoadModuleCode=function(O){var m;((m=this.JSC$11071_currentlyLoadingModule_)==null?void 0:m.getId())==="synthetic_module_overhead"&&this.JSC$11058_setLoaded();var G,B;wdH(this,(B=(G=this.JSC$11071_moduleInfoMap_[O])==null?void 0:G.deps_)!=null?B:[],function(Q){Q.module_=new mx},function(Q){return!Q.isLoaded()});
this.JSC$11071_currentlyLoadingModule_=this.getModuleInfo(O)};
_.v.JSC$11058_setLoaded=function(){if(this.JSC$11071_currentlyLoadingModule_){var O=this.JSC$11071_currentlyLoadingModule_.getId(),m=[];if(this.JSC$11071_extraEdges_[O]){for(var G=_.K(Object.keys(this.JSC$11071_extraEdges_[O])),B=G.next();!B.done;B=G.next())B=B.value,this.getModuleInfo(B).isLoaded()||(this.removeExtraEdge(O,B),m.push(B));this.loadMultiple(m)}this.JSC$11071_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11071_currentlyLoadingModule_=null;(!this.isModuleLoading(O)&&/^sy[0-9a-z]{0,4}$/.test(O)||O==="synthetic_module_overhead")&&delete this.JSC$11071_moduleInfoMap_[O];this.unsetModulesAsLoading(O)}};
_.v.setModulesAsLoading=function(){var O=this;_.eA.apply(0,arguments).forEach(function(m){O.loadingModules_[m]=!0})};
_.v.unsetModulesAsLoading=function(){var O=this;_.eA.apply(0,arguments).forEach(function(m){delete O.loadingModules_[m]})};
var dCj=function(O,m){return new _.zH(function(G,B){var Q=O.getModuleInfo(m);Q.isLoaded()?G(null):(Q.registerCallback(function(){G(null)}),iro(Q,function(H){var M="Error loading "+m+": "+H;
H instanceof vp.ModuleLoadFailure&&H.url&&(M=M+", requested url: "+H.url.toString());B(Error(M))}))})},YBe=function(O,m){m=m.filter(function(G){return!O.isModuleLoading(G)&&!O.getModuleInfo(G).isLoaded()});
m.length>0&&(O.setModulesAsLoading.apply(O,_.lS(m)),O.JSC$11071_queue_.push(m),ePe(O))},ePe=function(O){for(var m={};O.activeLoads_<Infinity&&O.JSC$11071_queue_.length>0;m={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})m.ids$jscomp$36=O.JSC$11071_queue_.shift().filter(function(G){return!O.getModuleInfo(G).isLoaded()}),m.ids$jscomp$36.length>0&&(O.activeLoads_++,m.finishLoad=function(G){return function(){O.activeLoads_--;
ePe(O);G.finishLoad=function(){}}}(m),_.ll(m.ids$jscomp$36.map(function(G){return dCj(O,G)})).then(function(G){return function(){(0,G.finishLoad)()}}(m)),m.attempt$jscomp$6=0,m.load$jscomp$1=function(G){return function(){if(Object.keys(O.JSC$11071_extraEdges_).length>0&&!O.JSC$10055_loader_.supportsExtraEdges)throw Error("xd");
O.JSC$10055_loader_.JSC$11050_loadModules(G.ids$jscomp$36,O.JSC$11071_moduleInfoMap_,{extraEdges:O.JSC$11071_extraEdges_,onError:function(B,Q){var H=yKj[G.attempt$jscomp$6++];H!==void 0?setTimeout(function(){(0,G.load$jscomp$1)()},H):(O.unsetModulesAsLoading.apply(O,_.lS(G.ids$jscomp$36)),(0,G.finishLoad)(),G.ids$jscomp$36.forEach(function(M){M=O.getModuleInfo(M);
if(!M.isLoaded())M.onError(new vp.ModuleLoadFailure(vp.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,B,G.ids$jscomp$36,Q))}))}})}}(m),(0,m.load$jscomp$1)())},wdH=function(O,m,G,B,Q){B=B===void 0?function(){return!0}:B;
Q=Q===void 0?{}:Q;m=_.K(m);for(var H=m.next();!H.done;H=m.next()){H=H.value;var M=O.getModuleInfo(H);!Q[H]&&B(M)&&(Q[H]=!0,wdH(O,M.deps_||[],G,B,Q),G(M))}};var DCC=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var yIN=Symbol("Ad");window.JSCompiler_renameProperty=function(O){return O};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var ssj=!DCC||HTMLElement.es5Shimmed||_.Qf.Reflect===void 0||_.Qf.customElements===void 0||_.Qf.customElements.polyfillWrapFlushCallback||!1,NrC,ZbI=function(){var O=HTMLElement;if(ssj)return O;if(NrC!==void 0)return NrC;var m=_.Qf.Reflect,G=function(){return m.construct(O,[],this.constructor)};
G.prototype=O.prototype;G.prototype.constructor=G;G.es5Shimmed=!0;Object.setPrototypeOf(G,O);return NrC=G},PPH=!1;ssj||PPH||(PPH=!0,_.Qf.HTMLElement=ZbI());/*

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 eCr=/(url\()([^)]*)(\))/g,dkN=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,wce,Ra;var ej=!window.ShadyDOM||!window.ShadyDOM.inUse,F8o=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),AK8=!window.customElements.polyfillWrapFlushCallback,Osm;if(Osm=ej&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var moj=new CSSStyleSheet;moj.replaceSync("");var Gke=document.createElement("div");Gke.attachShadow({mode:"open"});Gke.shadowRoot.adoptedStyleSheets=[moj];Osm=Gke.shadowRoot.adoptedStyleSheets[0]===moj}catch(O){Osm=!1}
var Bv$=Osm,QQm=window.Polymer&&window.Polymer.rootPath||s$O(document.baseURI||window.location.href),fI=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,B7Y=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Pe=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,HsC=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,wj=window.Polymer&&window.Polymer.legacyOptimizations||!1,ND=window.Polymer&&window.Polymer.legacyWarnings||!1,vsu=window.Polymer&&window.Polymer.syncInitialRender||
!1,TX=window.Polymer&&window.Polymer.legacyUndefined||!1,Kf_=window.Polymer&&window.Polymer.orderedComputed||!1,$J=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Ms=window.Polymer&&window.Polymer.fastDomIf||!1,rw=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,$o$=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,MHs=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Rc={},rao={},u_=function(){return HTMLElement.apply(this,arguments)||this};
_.X(u_,HTMLElement);u_.import=function(O,m){return O?(O=Rc[O]||rao[O.toLowerCase()])&&m?O.querySelector(m):O:null};
u_.prototype.attributeChangedCallback=function(O,m,G){m!==G&&this.register()};
u_.prototype.register=function(O){if(O=O||this.id){if(Pe&&(Rc[O]||rao[O.toLowerCase()])!==void 0)throw Rc[O]=rao[O.toLowerCase()]=null,Error("Bd`"+O);this.id=O;Rc[O]=rao[O.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.vr.Object.defineProperties(u_.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var O=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;O=_.i_(this.getAttribute("assetpath")||"",O.baseURI);this.__assetpath=s$O(O)}return this.__assetpath}}});
_.vr.Object.defineProperties(u_,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
u_["import"]=u_.import;u_.prototype.modules=Rc;customElements.define("dom-module",u_);var RZC=0,Pmr=0,xV=[],iss=0,ND5=!1,xoU=document.createTextNode(""),qr3,YV;(new window.MutationObserver(FHS)).observe(xoU,{characterData:!0});_.iU={after:function(O){return{run:function(m){return window.setTimeout(m,O)},
cancel:function(m){window.clearTimeout(m)}}},
run:function(O,m){return window.setTimeout(O,m)},
cancel:function(O){window.clearTimeout(O)}};
_.op={run:function(O){return window.requestAnimationFrame(O)},
cancel:function(O){window.cancelAnimationFrame(O)}};
qr3={run:function(O){return window.requestIdleCallback?window.requestIdleCallback(O):window.setTimeout(O,16)},
cancel:function(O){window.cancelIdleCallback?window.cancelIdleCallback(O):window.clearTimeout(O)}};
YV={run:function(O){ND5||(ND5=!0,xoU.textContent=iss++);xV.push(O);return RZC++},
cancel:function(O){var m=O-Pmr;if(m>=0){if(!xV[m])throw Error("Cd`"+O);xV[m]=null}}};var Uoe=0,xJ=function(O){var m=O.__mixinApplications;m||(m=new WeakMap,O.__mixinApplications=m);var G=Uoe++;return function(B){var Q=B.__mixinSet;if(Q&&Q[G])return B;var H=m,M=H.get(B);M||(M=O(B),H.set(B,M),B=Object.create(M.__mixinSet||Q||null),B[G]=!0,M.__mixinSet=B);return M}};_.X2=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(O){return ShadyDOM.patch(O)}:function(O){return O};var tHC=xJ(function(O){var m=function(){var G=O.call(this)||this;G.__dataEnabled=!1;G.__dataReady=!1;G.__dataInvalid=!1;G.__data={};G.__dataPending=null;G.__dataOld=null;G.__dataInstanceProps=null;G.__dataCounter=0;G.__serializing=!1;G._initializeProperties();return G};
_.X(m,O);m.createProperties=function(G){var B=this.prototype,Q;for(Q in G)Q in B||B._createPropertyAccessor(Q)};
m.attributeNameForProperty=function(G){return G.toLowerCase()};
m.typeForProperty=function(){};
m.prototype._createPropertyAccessor=function(G,B){this._addPropertyToAttributeMap(G);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[G]||(this.__dataHasAccessor[G]=!0,this._definePropertyAccessor(G,B))};
m.prototype._addPropertyToAttributeMap=function(G){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var B=this.__dataAttributes[G];B||(B=this.constructor.attributeNameForProperty(G),this.__dataAttributes[B]=G);return B};
m.prototype._definePropertyAccessor=function(G,B){Object.defineProperty(this,G,{get:function(){return this.__data[G]},
set:B?function(){}:function(Q){this._setPendingProperty(G,Q,!0)&&this._invalidateProperties()}})};
m.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
m.prototype._initializeProperties=function(){for(var G in this.__dataHasAccessor)this.hasOwnProperty(G)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[G]=this[G],delete this[G])};
m.prototype._initializeInstanceProperties=function(G){Object.assign(this,G)};
m.prototype._setProperty=function(G,B){this._setPendingProperty(G,B)&&this._invalidateProperties()};
m.prototype._getProperty=function(G){return this.__data[G]};
m.prototype._setPendingProperty=function(G,B){var Q=this.__data[G],H=this._shouldPropertyChange(G,B,Q);H&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||G in this.__dataOld||(this.__dataOld[G]=Q),this.__data[G]=B,this.__dataPending[G]=B);return H};
m.prototype._isPropertyPending=function(G){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(G))};
m.prototype._invalidateProperties=function(){var G=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,YV.run(function(){G.__dataInvalid&&(G.__dataInvalid=!1,G._flushProperties())}))};
m.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
m.prototype._flushProperties=function(){this.__dataCounter++;var G=this.__data,B=this.__dataPending,Q=this.__dataOld;this._shouldPropertiesChange(G,B,Q)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(G,B,Q));this.__dataCounter--};
m.prototype._shouldPropertiesChange=function(G,B){return!!B};
m.prototype._propertiesChanged=function(){};
m.prototype._shouldPropertyChange=function(G,B,Q){return Q!==B&&(Q===Q||B===B)};
m.prototype.attributeChangedCallback=function(G,B,Q,H){B!==Q&&this._attributeToProperty(G,Q);O.prototype.attributeChangedCallback&&O.prototype.attributeChangedCallback.call(this,G,B,Q,H)};
m.prototype._attributeToProperty=function(G,B,Q){if(!this.__serializing){var H=this.__dataAttributes;G=H&&H[G]||G;this[G]=this._deserializeValue(B,Q||this.constructor.typeForProperty(G))}};
m.prototype._propertyToAttribute=function(G,B,Q){this.__serializing=!0;Q=arguments.length<3?this[G]:Q;this._valueToNodeAttribute(this,Q,B||this.constructor.attributeNameForProperty(G));this.__serializing=!1};
m.prototype._valueToNodeAttribute=function(G,B,Q){B=this._serializeValue(B);if(Q==="class"||Q==="name"||Q==="slot")G=(0,_.X2)(G);B===void 0?G.removeAttribute(Q):G.setAttribute(Q,B===""&&window.trustedTypes?window.trustedTypes.emptyScript:B)};
m.prototype._serializeValue=function(G){switch(typeof G){case "boolean":return G?"":void 0;default:return G!=null?G.toString():void 0}};
m.prototype._deserializeValue=function(G,B){switch(B){case Boolean:return G!==null;case Number:return Number(G);default:return G}};
return m});var WfU=0,AI6=[];var Zs8=xJ(function(O){function m(H){H=Object.getPrototypeOf(H);return H.prototype instanceof Q?H:null}
function G(H){if(!H.hasOwnProperty("__ownProperties")){var M=null;if(H.hasOwnProperty("properties")){var R=H.properties;if(R){M={};for(var x in R){var t=R[x];M[x]=typeof t==="function"?{type:t}:t}}}H.__ownProperties=M}return H.__ownProperties}
var B=tHC(O),Q=function(){return B.apply(this,arguments)||this};
_.X(Q,B);Q.finalize=function(){if(!this.hasOwnProperty("__finalized")){var H=m(this);H&&H.finalize();this.__finalized=!0;this._finalizeClass()}};
Q._finalizeClass=function(){var H=G(this);H&&this.createProperties(H)};
Q.typeForProperty=function(H){return(H=this._properties[H])&&H.type};
Q.prototype._initializeProperties=function(){WfU++;this.constructor.finalize();B.prototype._initializeProperties.call(this)};
Q.prototype.connectedCallback=function(){B.prototype.connectedCallback&&B.prototype.connectedCallback.call(this);this._enableProperties()};
Q.prototype.disconnectedCallback=function(){B.prototype.disconnectedCallback&&B.prototype.disconnectedCallback.call(this)};
_.vr.Object.defineProperties(Q,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var H=this;if(!this.hasOwnProperty("__observedAttributes")){Okr(this.prototype);var M=this._properties;this.__observedAttributes=M?Object.keys(M).map(function(R){return H.prototype._addPropertyToAttributeMap(R)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var H=m(this);this.__properties=Object.assign({},H&&H._properties,G(this))}return this.__properties}}});
return Q});var mXY={},GKN=/-[a-z]/g,BJN=/([A-Z])/g;for(var zZu={},Jam=HTMLElement.prototype;Jam;){for(var VH2=Object.getOwnPropertyNames(Jam),bs$=0;bs$<VH2.length;bs$++)zZu[VH2[bs$]]=!0;Jam=Object.getPrototypeOf(Jam)}var nsp=window.trustedTypes?function(O){return trustedTypes.isHTML(O)||trustedTypes.isScript(O)||trustedTypes.isScriptURL(O)}:function(){return!1},Xq9=xJ(function(O){var m=tHC(O);
O=function(){return m.apply(this,arguments)||this};
_.X(O,m);O.createPropertiesForAttributes=function(){for(var G=this.observedAttributes,B=0;B<G.length;B++)this.prototype._createPropertyAccessor(qD(G[B]))};
O.attributeNameForProperty=function(G){return UD(G)};
O.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);m.prototype._initializeProperties.call(this)};
O.prototype._initializeProtoProperties=function(G){for(var B in G)this._setProperty(B,G[B])};
O.prototype._ensureAttribute=function(G,B){this.hasAttribute(G)||this._valueToNodeAttribute(this,B,G)};
O.prototype._serializeValue=function(G){switch(typeof G){case "object":if(G instanceof Date)return G.toString();if(G){if(nsp(G))return G;try{return JSON.stringify(G)}catch(B){return""}}default:return m.prototype._serializeValue.call(this,G)}};
O.prototype._deserializeValue=function(G,B){switch(B){case Object:try{var Q=JSON.parse(G)}catch(H){Q=G}break;case Array:try{Q=JSON.parse(G)}catch(H){Q=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+G)}break;case Date:Q=isNaN(G)?String(G):Number(G);Q=new Date(Q);break;default:Q=m.prototype._deserializeValue.call(this,G,B)}return Q};
O.prototype._definePropertyAccessor=function(G,B){if(!zZu[G]){var Q=this[G];Q!==void 0&&(this.__data?this._setPendingProperty(G,Q):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[G]=Q))}m.prototype._definePropertyAccessor.call(this,G,B)};
O.prototype._hasAccessor=function(G){return this.__dataHasAccessor&&this.__dataHasAccessor[G]};
O.prototype._isPropertyPending=function(G){return!!(this.__dataPending&&G in this.__dataPending)};
return O});var fhs={"dom-if":!0,"dom-repeat":!0},hZ8=!1,Tv2=!1,gsU=function(){var O=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(m){return m}});
return function(m,G,B){G=G.getAttribute(B);O&&B.startsWith("on-")?m.setAttribute(B,O.createScript(G,B)):m.setAttribute(B,G)}}(),uZp=xJ(function(O){var m=function(){return O.apply(this,arguments)||this};
_.X(m,O);m._parseTemplate=function(G,B){if(!G._templateInfo){var Q=G._templateInfo={};Q.nodeInfoList=[];Q.nestedTemplate=!!B;Q.stripWhiteSpace=B&&B.stripWhiteSpace||G.hasAttribute&&G.hasAttribute("strip-whitespace");this._parseTemplateContent(G,Q,{parent:null})}return G._templateInfo};
m._parseTemplateContent=function(G,B,Q){return this._parseTemplateNode(G.content,B,Q)};
m._parseTemplateNode=function(G,B,Q){var H=!1;G.localName!="template"||G.hasAttribute("preserve-content")?G.localName==="slot"&&(B.hasInsertionPoint=!0):H=this._parseTemplateNestedTemplate(G,B,Q)||H;if(!hZ8){hZ8=!0;var M=document.createElement("textarea");M.placeholder="a";Tv2=M.placeholder===M.textContent}Tv2&&G.localName==="textarea"&&G.placeholder&&G.placeholder===G.textContent&&(G.textContent=null);G.firstChild&&this._parseTemplateChildNodes(G,B,Q);G.hasAttributes&&G.hasAttributes()&&(H=this._parseTemplateNodeAttributes(G,
B,Q)||H);return H||Q.noted};
m._parseTemplateChildNodes=function(G,B,Q){if(G.localName!=="script"&&G.localName!=="style")for(var H=G.firstChild,M=0,R;H;H=R){if(H.localName=="template"){var x=H.getAttribute("is");if(x&&fhs[x])for(R=H,R.removeAttribute("is"),H=R.ownerDocument.createElement(x),R.parentNode.replaceChild(H,R),H.appendChild(R);R.attributes.length;)x=R.attributes[0].name,gsU(H,R,x),R.removeAttribute(x)}R=H.nextSibling;if(H.nodeType===Node.TEXT_NODE){for(x=R;x&&x.nodeType===Node.TEXT_NODE;)H.textContent+=x.textContent,
R=x.nextSibling,G.removeChild(x),x=R;if(B.stripWhiteSpace&&!H.textContent.trim()){G.removeChild(H);continue}}x={parentIndex:M,parentInfo:Q};this._parseTemplateNode(H,B,x)&&(x.infoIndex=B.nodeInfoList.push(x)-1);H.parentNode&&M++}};
m._parseTemplateNestedTemplate=function(G,B,Q){B=this._parseTemplate(G,B);(B.content=G.content.ownerDocument.createDocumentFragment()).appendChild(G.content);Q.templateInfo=B;return!0};
m._parseTemplateNodeAttributes=function(G,B,Q){for(var H=!1,M=Array.from(G.attributes),R=M.length-1,x;x=M[R];R--)H=this._parseTemplateNodeAttribute(G,B,Q,x.name,x.value)||H;return H};
m._parseTemplateNodeAttribute=function(G,B,Q,H,M){return H.slice(0,3)==="on-"?(G.removeAttribute(H),Q.events=Q.events||[],Q.events.push({name:H.slice(3),value:M}),!0):H==="id"?(Q.id=M,!0):!1};
m._contentForTemplate=function(G){var B=G._templateInfo;return B&&B.content||G.content};
m.prototype._stampTemplate=function(G,B){G&&!G.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(G);B=B||this.constructor._parseTemplate(G);var Q=B.nodeInfoList;G=document.importNode(B.content||G.content,!0);G.__noInsertionPoint=!B.hasInsertionPoint;var H=G.nodeList=Array(Q.length);G.$={};for(var M=0,R=Q.length,x=void 0;M<R&&(x=Q[M]);M++){var t=H[M]=Q65(G,x);x.id&&(G.$[x.id]=t);var W=t,Z=x,z=B;Z.templateInfo&&(W._templateInfo=Z.templateInfo,W._parentTemplateInfo=
z);if(x.events&&x.events.length)for(W=0,Z=x.events,z=void 0;W<Z.length&&(z=Z[W]);W++)this._addMethodEventListenerToNode(t,z.name,z.value,this)}return G};
m.prototype._addMethodEventListenerToNode=function(G,B,Q,H){Q=Hke(H||G,Q);this._addEventListenerToNode(G,B,Q);return Q};
m.prototype._addEventListenerToNode=function(G,B,Q){G.addEventListener(B,Q)};
m.prototype._removeEventListenerFromNode=function(G,B,Q){G.removeEventListener(B,Q)};
return m});var b_=0,hJ=[],jQp={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},IhU=/[A-Z]/,pq$=function(O,m,G,B,Q){var H=Q?We(O):O;if(m=m[H])for(H=0;H<m.length;H++){var M=m[H];if(M.info.lastRun!==b_&&(!Q||RvM(O,M.trigger))){M.info.lastRun=b_;M=M.info;for(var R=G,x=B,t=0,W=R.length-1,Z=-1;t<=W;){var z=t+W>>1,J=x.get(R[z].methodInfo)-x.get(M.methodInfo);if(J<0)t=z+1;else if(J>0)W=z-1;else{Z=z;break}}Z<
0&&(Z=W+1);R.splice(Z,0,M)}}},hvN=[],SrU=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"),Ui=xJ(function(O){var m=uZp(Xq9(O));
O=function(){var G=m.call(this)||this;G.__isPropertyEffectsClient=!0;return G};
_.X(O,m);O.prototype._initializeProperties=function(){m.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};
O.prototype._registerHost=function(){if(qs.length){var G=qs[qs.length-1];G._enqueueClient(this);this.__dataHost=G}};
O.prototype._initializeProtoProperties=function(G){this.__data=Object.create(G);this.__dataPending=Object.create(G);this.__dataOld={}};
O.prototype._initializeInstanceProperties=function(G){var B=this.__readOnly,Q;for(Q in G)B&&B[Q]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[Q]=this.__dataPending[Q]=G[Q])};
O.prototype._addPropertyEffect=function(G,B,Q){this._createPropertyAccessor(G,B=="__readOnly");var H=r8N(this,B,!0)[G];H||(H=this[B][G]=[]);H.push(Q)};
O.prototype._removePropertyEffect=function(G,B,Q){G=r8N(this,B,!0)[G];Q=G.indexOf(Q);Q>=0&&G.splice(Q,1)};
O.prototype._hasPropertyEffect=function(G,B){B=this[B];return!(!B||!B[G])};
O.prototype._hasReadOnlyEffect=function(G){return this._hasPropertyEffect(G,"__readOnly")};
O.prototype._hasNotifyEffect=function(G){return this._hasPropertyEffect(G,"__notifyEffects")};
O.prototype._hasReflectEffect=function(G){return this._hasPropertyEffect(G,"__reflectEffects")};
O.prototype._hasComputedEffect=function(G){return this._hasPropertyEffect(G,"__computeEffects")};
O.prototype._setPendingPropertyOrPath=function(G,B,Q,H){if(H||We(Array.isArray(G)?G[0]:G)!==G){if(!H&&(H=Ve(this,G),G=Mk6(this,G,B),!G||!m.prototype._shouldPropertyChange.call(this,G,B,H)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(G,B,Q)){if(Q=this.__dataLinkedPaths)for(var M in Q)H=Q[M],Z1(M,G)?(H=zX(M,H,G),this._setPendingPropertyOrPath(H,B,!0,!0)):Z1(H,G)&&(H=zX(H,M,G),this._setPendingPropertyOrPath(H,B,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[G])return this._setPendingProperty(G,
B,Q);this[G]=B}return!1};
O.prototype._setUnmanagedPropertyToNode=function(G,B,Q){if(Q!==G[B]||typeof Q=="object")B==="className"&&(G=(0,_.X2)(G)),G[B]=Q};
O.prototype._setPendingProperty=function(G,B,Q){var H=this.__dataHasPaths&&tJ(G);if(this._shouldPropertyChange(G,B,(H?this.__dataTemp:this.__data)[G])){this.__dataPending||(this.__dataPending={},this.__dataOld={});G in this.__dataOld||(this.__dataOld[G]=this.__data[G]);H?this.__dataTemp[G]=B:this.__data[G]=B;this.__dataPending[G]=B;if(H||this.__notifyEffects&&this.__notifyEffects[G])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[G]=Q;return!0}return!1};
O.prototype._setProperty=function(G,B){this._setPendingProperty(G,B,!0)&&this._invalidateProperties()};
O.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
O.prototype._enqueueClient=function(G){this.__dataPendingClients=this.__dataPendingClients||[];G!==this&&this.__dataPendingClients.push(G)};
O.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
O.prototype.__enableOrFlushClients=function(){var G=this.__dataPendingClients;if(G){this.__dataPendingClients=null;for(var B=0;B<G.length;B++){var Q=G[B];Q.__dataEnabled?Q.__dataPending&&Q._flushProperties():Q._enableProperties()}}};
O.prototype._readyClients=function(){this.__enableOrFlushClients()};
O.prototype.setProperties=function(G,B){for(var Q in G)!B&&this.__readOnly&&this.__readOnly[Q]||this._setPendingPropertyOrPath(Q,G[Q],!0);this._invalidateProperties()};
O.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
O.prototype._propertiesChanged=function(G,B,Q){G=this.__dataHasPaths;this.__dataHasPaths=!1;var H;if(H=this.__computeEffects)if(Kf_){b_++;var M=WkN(this),R=[],x;for(x in B)pq$(x,H,R,M,G);for(;x=R.shift();)zvO(this,"",B,Q,x)&&pq$(x.methodInfo,H,R,M,G);Object.assign(Q,this.__dataOld);Object.assign(B,this.__dataPending);this.__dataPending=null}else for(M=B;nI(this,H,M,Q,G);)Object.assign(Q,this.__dataOld),Object.assign(B,this.__dataPending),M=this.__dataPending,this.__dataPending=null;H=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(B,Q,G);this._flushClients();nI(this,this.__reflectEffects,B,Q,G);nI(this,this.__observeEffects,B,Q,G);if(H){M=this.__notifyEffects;R=b_++;for(var t in H)if(H[t]){if(x=M){var W=M;x=R;var Z=t,z=B,J=Q,n=G,I=!1,S=n?We(Z):Z;if(W=W[S]){S=0;for(var L=W.length,C=void 0;S<L&&(C=W[S]);S++)C.info&&C.info.lastRun===x||n&&!RvM(Z,C.trigger)||(C.info&&(C.info.lastRun=x),C.fn(this,Z,z,J,C.info,n,void 0),I=!0)}x=I}if(x)var P=!0;else{if(x=G)x=t,Z=B,z=We(x),z!==
x?(z=UD(z)+"-changed",xXe(this,z,Z[x],x),x=!0):x=!1;x&&(P=!0)}}var w;P&&(w=this.__dataHost)&&w._invalidateProperties&&w._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
O.prototype._propagatePropertyChanges=function(G,B,Q){this.__propagateEffects&&nI(this,this.__propagateEffects,G,B,Q);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,G,B,Q)};
O.prototype._runEffectsForTemplate=function(G,B,Q,H){var M=this,R=function(x,t){nI(M,G.propertyEffects,x,Q,t,G.nodeList);for(var W=G.firstChild;W;W=W.nextSibling)M._runEffectsForTemplate(W,x,Q,t)};
G.runEffects?G.runEffects(R,B,H):R(B,H)};
O.prototype.linkPaths=function(G,B){G=JJ(G);B=JJ(B);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[G]=B};
O.prototype.unlinkPaths=function(G){G=JJ(G);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[G]};
O.prototype.notifySplices=function(G,B){var Q={path:""};G=Ve(this,G,Q);j6s(this,G,Q.path,B)};
O.prototype.get=function(G,B){return Ve(B||this,G)};
O.prototype.set=function(G,B,Q){Q?Mk6(Q,G,B):this.__readOnly&&this.__readOnly[G]||this._setPendingPropertyOrPath(G,B,!0)&&this._invalidateProperties()};
O.prototype.push=function(G){var B=_.eA.apply(1,arguments),Q={path:""},H=Ve(this,G,Q),M=H.length,R=H.push.apply(H,_.lS(B));B.length&&gj(this,H,Q.path,M,B.length,[]);return R};
O.prototype.pop=function(G){var B={path:""};G=Ve(this,G,B);var Q=!!G.length,H=G.pop();Q&&gj(this,G,B.path,G.length,0,[H]);return H};
O.prototype.splice=function(G,B,Q){var H=_.eA.apply(3,arguments),M={path:""},R=Ve(this,G,M);B<0?B=R.length-Math.floor(-B):B&&(B=Math.floor(B));var x=arguments.length===2?R.splice(B):R.splice.apply(R,[B,Q].concat(_.lS(H)));(H.length||x.length)&&gj(this,R,M.path,B,H.length,x);return x};
O.prototype.shift=function(G){var B={path:""};G=Ve(this,G,B);var Q=!!G.length,H=G.shift();Q&&gj(this,G,B.path,0,0,[H]);return H};
O.prototype.unshift=function(G){var B=_.eA.apply(1,arguments),Q={path:""},H=Ve(this,G,Q),M=H.unshift.apply(H,_.lS(B));B.length&&gj(this,H,Q.path,0,B.length,[]);return M};
O.prototype.notifyPath=function(G,B){if(arguments.length==1){var Q={path:""};B=Ve(this,G,Q);Q=Q.path}else Q=Array.isArray(G)?JJ(G):G;this._setPendingPropertyOrPath(Q,B,!0,!0)&&this._invalidateProperties()};
O.prototype._createReadOnlyProperty=function(G,B){this._addPropertyEffect(G,"__readOnly");B&&(this["_set"+(G[0].toUpperCase()+G.substring(1))]=function(Q){this._setProperty(G,Q)})};
O.prototype._createPropertyObserver=function(G,B,Q){var H={property:G,method:B,dynamicFn:!!Q};this._addPropertyEffect(G,"__observeEffects",{fn:ikM,info:H,trigger:{name:G}});Q&&this._addPropertyEffect(B,"__observeEffects",{fn:ikM,info:H,trigger:{name:B}})};
O.prototype._createMethodObserver=function(G,B){var Q=gpS(G);if(!Q)throw Error("Dd`"+G);X$O(this,Q,"__observeEffects",ZkY,null,B)};
O.prototype._createNotifyingProperty=function(G){this._addPropertyEffect(G,"__notifyEffects",{fn:qQf,info:{eventName:UD(G)+"-changed",property:G}})};
O.prototype._createReflectedProperty=function(G){var B=this.constructor.attributeNameForProperty(G);B[0]==="-"?console.warn("Property "+G+" cannot be reflected to attribute "+B+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(G,"__reflectEffects",{fn:UXM,info:{attrName:B}})};
O.prototype._createComputedProperty=function(G,B,Q){var H=gpS(B);if(!H)throw Error("Ed`"+B);B=X$O(this,H,"__computeEffects",zvO,G,Q);r8N(this,"__computeInfo")[G]=B};
O.prototype._marshalArgs=function(G,B,Q){for(var H=this.__data,M=[],R=0,x=G.length;R<x;R++){var t=G[R],W=t.name,Z=t.structured,z=t.wildcard,J=t.value;t.literal||(z?(t=Z1(W,B),Z=uYs(H,Q,t?B:W),J={path:t?B:W,value:Z,base:t?Ve(H,W):Z}):J=Z?uYs(H,Q,W):H[W]);if(TX&&!this._overrideLegacyUndefined&&J===void 0&&G.length>1)return hJ;M[R]=J}return M};
O.addPropertyEffect=function(G,B,Q){this.prototype._addPropertyEffect(G,B,Q)};
O.createPropertyObserver=function(G,B,Q){this.prototype._createPropertyObserver(G,B,Q)};
O.createMethodObserver=function(G,B){this.prototype._createMethodObserver(G,B)};
O.createNotifyingProperty=function(G){this.prototype._createNotifyingProperty(G)};
O.createReadOnlyProperty=function(G,B){this.prototype._createReadOnlyProperty(G,B)};
O.createReflectedProperty=function(G){this.prototype._createReflectedProperty(G)};
O.createComputedProperty=function(G,B,Q){this.prototype._createComputedProperty(G,B,Q)};
O.bindTemplate=function(G){return this.prototype._bindTemplate(G)};
O.prototype._bindTemplate=function(G,B){var Q=this.constructor._parseTemplate(G),H=this.__preBoundTemplateInfo==Q;if(!H)for(var M in Q.propertyEffects)this._createPropertyAccessor(M);B?(Q=Object.create(Q),Q.wasPreBound=H,this.__templateInfo?(G=G._parentTemplateInfo||this.__templateInfo,B=G.lastChild,Q.parent=G,G.lastChild=Q,(Q.previousSibling=B)?B.nextSibling=Q:G.firstChild=Q):this.__templateInfo=Q):this.__preBoundTemplateInfo=Q;return Q};
O._addTemplatePropertyEffect=function(G,B,Q){(G.hostProps=G.hostProps||{})[B]=!0;G=G.propertyEffects=G.propertyEffects||{};(G[B]=G[B]||[]).push(Q)};
O.prototype._stampTemplate=function(G,B){B=B||this._bindTemplate(G,!0);qs.push(this);G=m.prototype._stampTemplate.call(this,G,B);qs.pop();B.nodeList=G.nodeList;if(!B.wasPreBound)for(var Q=B.childNodes=[],H=G.firstChild;H;H=H.nextSibling)Q.push(H);G.templateInfo=B;Q=B.nodeList;H=B.nodeInfoList;if(H.length)for(var M=0;M<H.length;M++){var R=Q[M],x=H[M].bindings;if(x)for(var t=0;t<x.length;t++){var W=x[t],Z=R,z=W;if(z.isCompound){for(var J=Z.__dataCompoundStorage||(Z.__dataCompoundStorage={}),n=z.parts,
I=Array(n.length),S=0;S<n.length;S++)I[S]=n[S].literal;n=z.target;J[n]=I;z.literal&&z.kind=="property"&&(n==="className"&&(Z=(0,_.X2)(Z)),Z[n]=z.literal)}npO(R,this,W)}R.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(B,this.__data,null,!1),this._flushClients());return G};
O.prototype._removeBoundDom=function(G){G=G.templateInfo;var B=G.previousSibling,Q=G.nextSibling,H=G.parent;B?B.nextSibling=Q:H&&(H.firstChild=Q);Q?Q.previousSibling=B:H&&(H.lastChild=B);G.nextSibling=G.previousSibling=null;G=G.childNodes;for(B=0;B<G.length;B++)Q=G[B],(0,_.X2)((0,_.X2)(Q).parentNode).removeChild(Q)};
O._parseTemplateNode=function(G,B,Q){var H=m._parseTemplateNode.call(this,G,B,Q);if(G.nodeType===Node.TEXT_NODE){var M=this._parseBindings(G.textContent,B);M&&(G.textContent=foz(M)||" ",bkz(this,B,Q,"text","textContent",M),H=!0)}return H};
O._parseTemplateNodeAttribute=function(G,B,Q,H,M){var R=this._parseBindings(M,B);if(R){M=H;var x="property";IhU.test(H)?x="attribute":H[H.length-1]=="$"&&(H=H.slice(0,-1),x="attribute");var t=foz(R);t&&x=="attribute"&&(H=="class"&&G.hasAttribute("class")&&(t+=" "+G.getAttribute(H)),G.setAttribute(H,t));x=="attribute"&&M=="disable-upgrade$"&&G.setAttribute(H,"");G.localName==="input"&&M==="value"&&G.setAttribute(M,"");G.removeAttribute(M);x==="property"&&(H=qD(H));bkz(this,B,Q,x,H,R,t);return!0}return m._parseTemplateNodeAttribute.call(this,
G,B,Q,H,M)};
O._parseTemplateNestedTemplate=function(G,B,Q){var H=m._parseTemplateNestedTemplate.call(this,G,B,Q),M=G.parentNode,R=Q.templateInfo,x=M.localName==="dom-if",t=M.localName==="dom-repeat";$J&&(x||t)&&(M.removeChild(G),Q=Q.parentInfo,Q.templateInfo=R,Q.noted=!0,H=!1);G=R.hostProps;if(Ms&&x)G&&(B.hostProps=Object.assign(B.hostProps||{},G),$J||(Q.parentInfo.noted=!0));else for(var W in G)bkz(this,B,Q,"property","_host_"+W,[{mode:"{",source:W,dependencies:[W],hostProp:!0}]);return H};
O._parseBindings=function(G,B){for(var Q=[],H=0,M;(M=SrU.exec(G))!==null;){M.index>H&&Q.push({literal:G.slice(H,M.index)});H=M[1][0];var R=!!M[2];M=M[3].trim();var x=!1,t="",W=-1;H=="{"&&(W=M.indexOf("::"))>0&&(t=M.substring(W+2),M=M.substring(0,W),x=!0);W=gpS(M);var Z=[];if(W){var z=W,J=z.args;z=z.methodName;for(var n=0;n<J.length;n++){var I=J[n];I.literal||Z.push(I)}if((J=B.dynamicFns)&&J[z]||W.static)Z.push(z),W.dynamicFn=!0}else Z.push(M);Q.push({source:M,mode:H,negate:R,customEvent:x,signature:W,
dependencies:Z,event:t});H=SrU.lastIndex}H&&H<G.length&&(G=G.substring(H))&&Q.push({literal:G});return Q.length?Q:null};
O._evaluateBinding=function(G,B,Q,H,M,R){G=B.signature?ZkY(G,Q,H,M,B.signature):Q!=B.source?Ve(G,B.source):R&&tJ(Q)?Ve(G,Q):G.__data[Q];B.negate&&(G=!G);return G};
_.vr.Object.defineProperties(O.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return jQp}}});
return O}),qs=[];var Ess=window.ShadyCSS&&window.ShadyCSS.cssBuild,tx=xJ(function(O){function m(B,Q,H,M){if(!Ess){for(var R=Q.content.querySelectorAll("style"),x=Ep6(Q),t=Lke(H),W=Q.content.firstElementChild,Z=0;Z<t.length;Z++){var z=t[Z];z.textContent=B._processStyleText(z.textContent,M);Q.content.insertBefore(z,W)}for(W=t=0;W<x.length;W++)Z=x[W],z=R[t],z!==Z?(Z=Z.cloneNode(!0),z.parentNode.insertBefore(Z,z)):t++,Z.textContent=B._processStyleText(Z.textContent,M)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(Q,
H);if(MHs&&Ess&&Bv$&&(Q=Q.content.querySelectorAll("style"))){var J="";Array.from(Q).forEach(function(n){J+=n.textContent;n.parentNode.removeChild(n)});
B._styleSheet=new CSSStyleSheet;B._styleSheet.replaceSync(J)}}
var G=Zs8(Ui(O));O=function(){return G.call(this)||this};
_.X(O,G);O._finalizeClass=function(){G._finalizeClass.call(this);var B;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(B=this.__ownObservers)&&this.createObservers(B,this._properties);this._prepareTemplate()};
O._prepareTemplate=function(){var B=this.template;B&&(typeof B==="string"?(console.error("template getter must return HTMLTemplateElement"),B=null):wj||(B=B.cloneNode(!0)));this.prototype._template=B};
O.createProperties=function(B){for(var Q in B){var H=this.prototype,M=Q,R=B[Q],x=B;R.computed&&(R.readOnly=!0);R.computed&&(H._hasReadOnlyEffect(M)?console.warn("Cannot redefine computed property '"+M+"'."):H._createComputedProperty(M,R.computed,x));R.readOnly&&!H._hasReadOnlyEffect(M)?H._createReadOnlyProperty(M,!R.computed):R.readOnly===!1&&H._hasReadOnlyEffect(M)&&console.warn("Cannot make readOnly property '"+M+"' non-readOnly.");R.reflectToAttribute&&!H._hasReflectEffect(M)?H._createReflectedProperty(M):
R.reflectToAttribute===!1&&H._hasReflectEffect(M)&&console.warn("Cannot make reflected property '"+M+"' non-reflected.");R.notify&&!H._hasNotifyEffect(M)?H._createNotifyingProperty(M):R.notify===!1&&H._hasNotifyEffect(M)&&console.warn("Cannot make notify property '"+M+"' non-notify.");R.observer&&H._createPropertyObserver(M,R.observer,x[R.observer]);H._addPropertyToAttributeMap(M)}};
O.createObservers=function(B,Q){for(var H=this.prototype,M=0;M<B.length;M++)H._createMethodObserver(B[M],Q)};
O.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);G.prototype._initializeProperties.call(this);this.rootPath=QQm;this.importPath=this.constructor.importPath;var B=this.constructor;if(!B.hasOwnProperty("__propertyDefaults")){B.__propertyDefaults=null;var Q=B._properties,H;for(H in Q){var M=Q[H];"value"in M&&(B.__propertyDefaults=B.__propertyDefaults||{},B.__propertyDefaults[H]=M)}}if(B=B.__propertyDefaults)for(var R in B)Q=B[R],
this._canApplyPropertyDefault(R)&&(Q=typeof Q.value=="function"?Q.value.call(this):Q.value,this._hasAccessor(R)?this._setPendingProperty(R,Q,!0):this[R]=Q)};
O.prototype._canApplyPropertyDefault=function(B){return!this.hasOwnProperty(B)};
O._processStyleText=function(B,Q){return DkM(B,Q)};
O._finalizeTemplate=function(B){var Q=this.prototype._template;if(Q&&!Q.__polymerFinalized){Q.__polymerFinalized=!0;var H=this.importPath;H=H?_.i_(H):"";m(this,Q,B,H);this.prototype._bindTemplate(Q)}};
O.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);G.prototype.connectedCallback.call(this)};
O.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);G.prototype.ready.call(this)};
O.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));G.prototype._readyClients.call(this)};
O.prototype._attachDom=function(B){var Q=(0,_.X2)(this);if(Q.attachShadow)return B?(Q.shadowRoot||(Q.attachShadow({mode:"open",shadyUpgradeFragment:B}),Q.shadowRoot.appendChild(B),this.constructor._styleSheet&&(Q.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),vsu&&window.ShadyDOM&&window.ShadyDOM.flushInitial(Q.shadowRoot),Q.shadowRoot):null;throw Error("Gd");};
O.prototype.updateStyles=function(B){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,B)};
O.prototype.resolveUrl=function(B,Q){!Q&&this.importPath&&(Q=_.i_(this.importPath));return _.i_(B,Q)};
O._parseTemplateContent=function(B,Q,H){Q.dynamicFns=Q.dynamicFns||this._properties;return G._parseTemplateContent.call(this,B,Q,H)};
O._addTemplatePropertyEffect=function(B,Q,H){!ND||Q in this._properties||H.info.part.signature&&H.info.part.signature.static||H.info.part.hostProp||B.nestedTemplate||console.warn("Property '"+Q+"' used in template but not declared in 'properties'; attribute will not be observed.");return G._addTemplatePropertyEffect.call(this,B,Q,H)};
_.vr.Object.defineProperties(O,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var B=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof B==="function"&&(B=B());if(B===void 0){if(B=this.hasOwnProperty("is")){B=this.is;var Q=null;if(B&&(!Pe||HsC)&&(Q=u_.import(B,"template"),Pe&&!Q))throw Error("Fd`"+B);B=Q}B=B||Object.getPrototypeOf(this.prototype).constructor.template}this._template=B}return this._template},
set:function(B){this._template=B}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var B=this.importMeta;B?this._importPath=s$O(B.url):this._importPath=(B=u_.import(this.is))&&B.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return O});var Lf2=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(O){return O}}),c85=function(O,m){CQj(O,m);
this.value=m.reduce(function(G,B,Q){return G+YQf(B)+O[Q+1]},O[0]).toString()},CQj;
c85.prototype.toString=function(){return this.value};
_.osm=function(O){var m=_.eA.apply(1,arguments);CQj(O,m);var G=document.createElement("template");m=m.reduce(function(B,Q,H){if(Q instanceof HTMLTemplateElement)Q=Q.innerHTML;else if(Q instanceof c85)Q=YQf(Q);else throw Error("Id`"+Q);return B+Q+O[H+1]},O[0]);
Lf2&&(m=Lf2.createHTML(m));G.innerHTML=m;return G};
CQj=function(O,m){if(!Array.isArray(O)||!Array.isArray(O.raw)||m.length!==O.length-1)throw new TypeError("Jd");};var Wv=tx(HTMLElement);var lh8=xJ(function(O){var m=tx(O);O=function(){var G=m.call(this)||this;G.__lastItems=null;G.__lastMulti=null;G.__selectedMap=null;return G};
_.X(O,m);O.prototype.__updateSelection=function(G,B){var Q=B.path;Q=="items"?(B=B.base||[],Q=this.__lastItems,G!==this.__lastMulti&&this.clearSelection(),Q&&(Q=y8S(B,Q),this.__applySplices(Q)),this.__lastItems=B,this.__lastMulti=G):B.path=="items.splices"?this.__applySplices(B.value.indexSplices):(G=Q.slice(6),B=parseInt(G,10),G.indexOf(".")<0&&G==B&&this.__deselectChangedIdx(B))};
O.prototype.__applySplices=function(G){for(var B=this,Q=this.__selectedMap,H={},M=0;M<G.length;H={s$jscomp$109:void 0},M++){H.s$jscomp$109=G[M];Q.forEach(function(W){return function(Z,z){Z<W.s$jscomp$109.index||(Z>=W.s$jscomp$109.index+W.s$jscomp$109.removed.length?Q.set(z,Z+W.s$jscomp$109.addedCount-W.s$jscomp$109.removed.length):Q.set(z,-1))}}(H));
for(var R=0;R<H.s$jscomp$109.addedCount;R++){var x=H.s$jscomp$109.index+R;Q.has(this.items[x])&&Q.set(this.items[x],x)}}this.__updateLinks();var t=0;Q.forEach(function(W,Z){W<0?(B.multi?B.splice("selected",t,1):B.selected=B.selectedItem=null,Q.delete(Z)):t++})};
O.prototype.__updateLinks=function(){var G=this;this.__dataLinkedPaths={};if(this.multi){var B=0;this.__selectedMap.forEach(function(Q){Q>=0&&G.linkPaths("items."+Q,"selected."+B++)})}else this.__selectedMap.forEach(function(Q){G.linkPaths("selected","items."+Q);
G.linkPaths("selectedItem","items."+Q)})};
O.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
O.prototype.isSelected=function(G){return this.__selectedMap.has(G)};
O.prototype.isIndexSelected=function(G){return this.isSelected(this.items[G])};
O.prototype.__deselectChangedIdx=function(G){var B=this,Q=this.__selectedIndexForItemIndex(G);if(Q>=0){var H=0;this.__selectedMap.forEach(function(M,R){Q==H++&&B.deselect(R)})}};
O.prototype.__selectedIndexForItemIndex=function(G){if(G=this.__dataLinkedPaths["items."+G])return parseInt(G.slice(9),10)};
O.prototype.deselect=function(G){var B=this.__selectedMap.get(G);if(B>=0){this.__selectedMap.delete(G);var Q;this.multi&&(Q=this.__selectedIndexForItemIndex(B));this.__updateLinks();this.multi?this.splice("selected",Q,1):this.selected=this.selectedItem=null}};
O.prototype.deselectIndex=function(G){this.deselect(this.items[G])};
O.prototype.select=function(G){this.selectIndex(this.items.indexOf(G))};
O.prototype.selectIndex=function(G){var B=this.items[G];this.isSelected(B)?this.toggle&&this.deselectIndex(G):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(B,G),this.__updateLinks(),this.multi?this.push("selected",B):this.selected=this.selectedItem=B)};
_.vr.Object.defineProperties(O,{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 O}),ah9=lh8(Wv),Zd=function(){return ah9.apply(this,arguments)||this};
_.X(Zd,ah9);_.vr.Object.defineProperties(Zd,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Zd.is,Zd);var kk3=window.Polymer;window.Polymer=function(O){return window.Polymer._polymerFn(O)};
kk3&&Object.assign(Polymer,kk3);Polymer._polymerFn=function(){throw Error("Kd");};/*

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:DkM,resolveUrl:_.i_,pathFromUrl:s$O};Polymer.DomModule=u_;Polymer.Async={timeOut:_.iU,animationFrame:_.op,idlePeriod:qr3,microTask:YV};Polymer.dedupingMixin=xJ;Polymer.wrap=_.X2;Polymer.PropertiesChanged=tHC;Polymer.telemetry={instanceCount:WfU,incrementInstanceCount:function(){WfU++},
registrations:AI6,register:Okr,dumpRegistrations:function(){AI6.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=Zs8;Polymer.CaseMap={dashToCamelCase:qD,camelToDashCase:UD};Polymer.PropertyAccessors=Xq9;Polymer.TemplateStamp=uZp;Polymer.Path={isPath:tJ,root:We,isAncestor:vpf,isDescendant:Z1,translate:zX,matches:Kkz,normalize:JJ,split:$Xp,get:Ve,set:Mk6,isDeep:tJ};Polymer.Settings={useShadow:ej,useNativeCSSProperties:F8o,useNativeCustomElements:AK8,get rootPath(){return QQm},setRootPath:function(O){QQm=O},
get sanitizeDOMValue(){return fI},setSanitizeDOMValue:function(O){fI=O},
get passiveTouchGestures(){return B7Y},setPassiveTouchGestures:function(O){B7Y=O},
get strictTemplatePolicy(){return Pe},setStrictTemplatePolicy:function(O){Pe=O},
get allowTemplateFromDomModule(){return HsC},setAllowTemplateFromDomModule:function(O){HsC=O},
get legacyOptimizations(){return wj},setLegacyOptimizations:function(O){wj=O},
get syncInitialRender(){return vsu},setSyncInitialRender:function(O){vsu=O},
get legacyUndefined(){return TX},setLegacyUndefined:function(O){TX=O},
get legacyWarnings(){return ND},setLegacyWarnings:function(O){ND=O},
get orderedComputed(){return Kf_},setOrderedComputed:function(O){Kf_=O},
get fastDomIf(){return Ms},setFastDomIf:function(O){Ms=O},
get removeNestedTemplates(){return $J},setRemoveNestedTemplates:function(O){$J=O},
get suppressTemplateNotifications(){return rw},setSuppressTemplateNotifications:rw};Polymer.rootPath!==void 0&&(QQm=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(fI=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(B7Y=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Pe=Polymer.strictTemplatePolicy);HsC=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(wj=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(vsu=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(TX=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(ND=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(Kf_=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(Ms=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&($J=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(rw=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return fI},
set:function(O){fI=O}});Polymer.PropertyEffects=Ui;Polymer.StyleGather={stylesFromModules:SQ6,stylesFromModule:p$r,stylesFromTemplate:Ep6,stylesFromModuleImports:Lke,cssFromModules:opr,cssFromModule:CWz,cssFromTemplate:lof,cssFromModuleImports:function(O){return(O=u_.import(O))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(O):""}};Polymer.ElementMixin=tx;Polymer.updateStyles=function(O){window.ShadyCSS&&window.ShadyCSS.styleDocument(O)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:y8S};Polymer.html=_.osm;Polymer.htmlLiteral=function(O){return new c85(O,_.eA.apply(1,arguments))};Polymer.Element=Wv;Polymer.ArraySelectorMixin=lh8;Polymer.ArraySelector=Zd;var yau=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ca$=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,n75=/@media\s(.*)/;var DXO=null,evN=window.HTMLImports&&window.HTMLImports.whenReady||null,s6O;var Yr8=null,zE=null,Jx=function(){this.customStyles=[];this.enqueued=!1;NJz(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},dop=function(O){!O.enqueued&&zE&&(O.enqueued=!0,NJz(zE))};
Jx.prototype.addCustomStyle=function(O){O.__seenByShadyCSS||(O.__seenByShadyCSS=!0,this.customStyles.push(O),dop(this))};
Jx.prototype.getStyleForCustomStyle=function(O){if(O.__shadyCSSCachedStyle)return O.__shadyCSSCachedStyle;var m;O.getStyle?m=O.getStyle():m=O;return m};
Jx.prototype.processStyles=function(){for(var O=this.customStyles,m=0;m<O.length;m++){var G=O[m];if(!G.__shadyCSSCachedStyle){var B=this.getStyleForCustomStyle(G);B&&(B=B.__appliedElement||B,Yr8&&Yr8(B),G.__shadyCSSCachedStyle=B)}}return O};
Jx.prototype.addCustomStyle=Jx.prototype.addCustomStyle;Jx.prototype.getStyleForCustomStyle=Jx.prototype.getStyleForCustomStyle;Jx.prototype.processStyles=Jx.prototype.processStyles;Object.defineProperties(Jx.prototype,{transformCallback:{get:function(){return Yr8},
set:function(O){Yr8=O}},
validateCallback:{get:function(){return zE},
set:function(O){var m=!1;zE||(m=!0);zE=O;m&&dop(this)}}});var Fkf=!(window.ShadyDOM&&window.ShadyDOM.inUse),PWp,Hr;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Hr=window.ShadyCSS.cssBuild);var wq2=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?PWp=window.ShadyCSS.nativeCss:window.ShadyCSS?(A8r(window.ShadyCSS),window.ShadyCSS=void 0):A8r(window.WebComponents&&window.WebComponents.flags);var JRp=PWp;var eZ$=new Jx;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(O,m){eZ$.processStyles();dX6(O,m)},
styleElement:function(){eZ$.processStyles()},
styleDocument:function(O){eZ$.processStyles();dX6(document.body,O)},
getComputedStyleValue:function(O,m){return w$Y(O,m)},
flushCustomStyles:function(){},
nativeCss:JRp,nativeShadow:Fkf,cssBuild:Hr,disableRuntime:wq2});window.ShadyCSS.CustomStyleInterface=eZ$;var Do9=window.ShadyCSS.CustomStyleInterface,VY=function(){var O=HTMLElement.call(this)||this;O._style=null;Do9.addCustomStyle(O);return O};
_.X(VY,HTMLElement);VY.prototype.getStyle=function(){if(this._style)return this._style;var O=this.querySelector("style");if(!O)return null;this._style=O;var m=O.getAttribute("include");m&&(O.removeAttribute("include"),O.textContent=opr(m)+O.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
VY.prototype.getStyle=VY.prototype.getStyle;window.customElements.define("custom-style",VY);Polymer.CustomStyle=VY;var bU=function(){this._timer=this._callback=this._asyncModule=null},nU,NvH;
bU.prototype.setConfig=function(O,m){var G=this;this._asyncModule=O;this._callback=m;this._timer=this._asyncModule.run(function(){G._timer=null;nU.delete(G);G._callback()})};
bU.prototype.cancel=function(){this.isActive()&&(sQ_(this),nU.delete(this))};
var sQ_=function(O){O.isActive()&&(O._asyncModule.cancel(O._timer),O._timer=null)};
bU.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
bU.prototype.isActive=function(){return this._timer!=null};
_.Xu=function(O,m,G){O instanceof bU?sQ_(O):O=new bU;O.setConfig(m,G);return O};
nU=new Set;_.fU=function(O){nU.add(O)};
NvH=function(){var O=!!nU.size;nU.forEach(function(m){try{m.flush()}catch(G){setTimeout(function(){throw G;})}});
return O};var mQ5=typeof document.head.style.touchAction==="string",Oqs=["mousedown","mousemove","mouseup","click"],rwe=[0,1,4,2],PQ8;try{PQ8=(new MouseEvent("test",{buttons:1})).buttons===1}catch(O){PQ8=!1}var MZp=PQ8,Gi6=!1;(function(){try{var O=Object.defineProperty({},"passive",{get:function(){Gi6=!0}});
window.addEventListener("test",null,O);window.removeEventListener("test",null,O)}catch(m){}})();
var HqI=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),vF6=[],Ffj={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},bqr={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},K0N=function(O){var m=O.sourceCapabilities;if(!m||m.firesTouchEvents)if(O.__polymerGesturesHandled={skip:!0},O.type==="click"){m=!1;for(var G=qgS(O),B=0;B<G.length;B++){if(G[B].nodeType===Node.ELEMENT_NODE)if(G[B].localName==="label")vF6.push(G[B]);
else if(Ffj[G[B].localName]){var Q=G[B];var H=Array.prototype.slice.call(Q.labels||[]);if(!H.length){H=[];try{var M=Q.getRootNode();if(Q.id){var R=M.querySelectorAll("label[for = '"+Q.id+"']");for(Q=0;Q<R.length;Q++)H.push(R[Q])}}catch(x){}}for(Q=0;Q<H.length;Q++)m=m||vF6.indexOf(H[Q])>-1}if(G[B]===Aa9)return}m||(O.preventDefault(),O.stopPropagation())}},Aa9=null,hx=null,tZ6=0,W0p=0,UQp=-1,Zq5=!1;
document.addEventListener("touchend",function(O){hx||$Qs(!0);Aa9=qgS(O)[0];hx=_.Xu(hx,_.iU.after(2500),function(){$Qs();hx=Aa9=null})},Gi6?{passive:!0}:!1);
var qgS=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(O){return O.composedPath&&O.composedPath()||[]},oa={},LI=[];
zTf({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){ED(this.info)},
mousedown:function(O){if(Ia(O)){var m=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O),G=this;iqN(this.info,function(B){Ia(B)||(dj("up",m,B),ED(G.info))},function(B){Ia(B)&&dj("up",m,B);
ED(G.info)});
dj("down",m,O)}},
touchstart:function(O){dj("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O),O.changedTouches[0],O)},
touchend:function(O){dj("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O),O.changedTouches[0],O)}});
zTf({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(O){this.moves.length>2&&this.moves.shift();this.moves.push(O)},
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;ED(this.info)},
mousedown:function(O){if(Ia(O)){var m=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O),G=this,B=function(Q){var H=Q.clientX,M=Q.clientY;Jwp(G.info,H,M)&&(G.info.state=G.info.started?Q.type==="mouseup"?"end":"track":"start",G.info.state==="start"&&CI("tap"),G.info.addMove({x:H,y:M}),Ia(Q)||(G.info.state="end",ED(G.info)),m&&VZz(G.info,m,Q),G.info.started=!0)};
iqN(this.info,B,function(Q){G.info.started&&B(Q);ED(G.info)});
this.info.x=O.clientX;this.info.y=O.clientY}},
touchstart:function(O){O=O.changedTouches[0];this.info.x=O.clientX;this.info.y=O.clientY},
touchmove:function(O){var m=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O);O=O.changedTouches[0];var G=O.clientX,B=O.clientY;Jwp(this.info,G,B)&&(this.info.state==="start"&&CI("tap"),this.info.addMove({x:G,y:B}),VZz(this.info,m,O),this.info.state="track",this.info.started=!0)},
touchend:function(O){var m=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O);O=O.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:O.clientX,y:O.clientY}),VZz(this.info,m,O))}});
zTf({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(O){Ia(O)&&(this.info.x=O.clientX,this.info.y=O.clientY)},
click:function(O){Ia(O)&&nF5(this.info,O)},
touchstart:function(O){O=O.changedTouches[0];this.info.x=O.clientX;this.info.y=O.clientY},
touchend:function(O){nF5(this.info,O.changedTouches[0],O)}});var Of$=xJ(function(O){var m=function(){return O.apply(this,arguments)||this};
_.X(m,O);m.prototype._addEventListenerToNode=function(G,B,Q){l_(G,B,Q)||O.prototype._addEventListenerToNode.call(this,G,B,Q)};
m.prototype._removeEventListenerFromNode=function(G,B,Q){aa(G,B,Q)||O.prototype._removeEventListenerFromNode.call(this,G,B,Q)};
return m});var TE=xJ(function(O){var m=function(){return O.apply(this,arguments)||this};
_.X(m,O);m.prototype._shouldPropertyChange=function(G,B,Q){return XpI(this,G,B,Q,!0)};
return m}),mBp=xJ(function(O){var m=function(){return O.apply(this,arguments)||this};
_.X(m,O);m.prototype._shouldPropertyChange=function(G,B,Q){return XpI(this,G,B,Q,this.mutableData)};
_.vr.Object.defineProperties(m,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return m});
TE._mutablePropertyChange=XpI;var fMp=!1;var GL$=Of$(mBp(Ui(HTMLElement))),gw=function(){var O=GL$.call(this)||this;if(Pe)throw Error("Ld");O.root=null;O.$=null;O.__children=null;return O};
_.X(gw,GL$);_.v=gw.prototype;_.v.attributeChangedCallback=function(){this.mutableData=!0};
_.v.connectedCallback=function(){hT5()||(this.style.display="none");this.render()};
_.v.disconnectedCallback=function(){this.__removeChildren()};
_.v.__insertChildren=function(){(0,_.X2)((0,_.X2)(this).parentNode).insertBefore(this.root,this)};
_.v.__removeChildren=function(){if(this.__children)for(var O=0;O<this.__children.length;O++)this.root.appendChild(this.__children[O])};
_.v.render=function(){var O=this;if(!this.__children){var m=m||this.querySelector("template");if(!m){var G=new MutationObserver(function(){if(m=O.querySelector("template"))G.disconnect(),O.render();else throw Error("Md");});
G.observe(this,{childList:!0});return}this.root=this._stampTemplate(m);this.$=this.root.$;this.__children=[];for(var B=this.root.firstChild;B;B=B.nextSibling)this.__children[this.__children.length]=B;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.vr.Object.defineProperties(gw,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",gw);Polymer.Debouncer=bU;Polymer.Gestures={gestures:oa,recognizers:LI,deepTargetFind:xQS,addListener:l_,removeListener:aa,register:zTf,setTouchAction:_.kV,prevent:CI,resetMouseCanceller:function(){hx&&hx.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:l_,remove:aa};Polymer.GestureEventListeners=Of$;Polymer.MutableData=TE;Polymer.OptionalMutableData=mBp;Polymer.DomBind=gw;_.uU=function(){do{var O=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var m=NvH()}while(O||m)};var T7Y=null;gFp.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:gFp,writable:!0}});var CgN=Ui(gFp),L0z=TE(CgN),BHC=Ui(function(){}),D1=function(O){var m=BHC.call(this)||this;
m._configureProperties(O);m.root=m._stampTemplate(m.__dataHost);var G=[];m.children=G;for(var B=m.root.firstChild;B;B=B.nextSibling)G.push(B),B.__templatizeInstance=m;m.__templatizeOwner&&m.__templatizeOwner.__hideTemplateChildren__&&m._showHideChildren(!0);G=m.__templatizeOptions;(O&&G.instanceProps||!G.instanceProps)&&m._enableProperties();return m};
_.X(D1,BHC);_.v=D1.prototype;_.v._configureProperties=function(O){if(this.__templatizeOptions.forwardHostProp)for(var m in this.__hostProps)this._setPendingProperty(m,this.__dataHost["_host_"+m]);for(var G in O)this._setPendingProperty(G,O[G])};
_.v.forwardHostProp=function(O,m){this._setPendingPropertyOrPath(O,m,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.v._addEventListenerToNode=function(O,m,G){var B=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(O,m,function(H){H.model=B;G(H)});
else{var Q=this.__dataHost.__dataHost;Q&&Q._addEventListenerToNode(O,m,G)}};
_.v._showHideChildren=function(O){jEN(O,this.children)};
_.v._setUnmanagedPropertyToNode=function(O,m,G){O.__hideTemplateChildren__&&O.nodeType==Node.TEXT_NODE&&m=="textContent"?O.__polymerTextContent__=G:BHC.prototype._setUnmanagedPropertyToNode.call(this,O,m,G)};
_.v.dispatchEvent=function(){return!0};
_.vr.Object.defineProperties(D1.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var O=this.__parentModel;if(!O){var m;O=this;do O=O.__dataHost.__dataHost;while((m=O.__templatizeOptions)&&!m.parentModel);this.__parentModel=O}return O}}});
var pp5=TE(D1);var j8=function(){var O=Wv.call(this)||this;O.__renderDebouncer=null;O._lastIf=!1;O.__hideTemplateChildren__=!1;return O};
_.X(j8,Wv);_.v=j8.prototype;_.v.__debounceRender=function(){var O=this;this.__renderDebouncer=_.Xu(this.__renderDebouncer,YV,function(){return O.__render()});
_.fU(this.__renderDebouncer)};
_.v.disconnectedCallback=function(){Wv.prototype.disconnectedCallback.call(this);var O=(0,_.X2)(this).parentNode;O&&(O.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.X2)(O).host)||this.__teardownInstance()};
_.v.connectedCallback=function(){Wv.prototype.connectedCallback.call(this);hT5()||(this.style.display="none");this.if&&this.__debounceRender()};
_.v.__ensureTemplate=function(){var O=this;if(!this.__template){var m=this._templateInfo?this:(0,_.X2)(this).querySelector("template");if(!m){var G=new MutationObserver(function(){if((0,_.X2)(O).querySelector("template"))G.disconnect(),O.__render();else throw Error("Pd");});
G.observe(this,{childList:!0});return!1}this.__template=m}return!0};
_.v.__ensureInstance=function(){var O=(0,_.X2)(this).parentNode;if(this.__hasInstance()){var m=this.__getInstanceNodes();if(m&&m.length&&(0,_.X2)(this).previousSibling!==m[m.length-1])for(var G=0,B=void 0;G<m.length&&(B=m[G]);G++)(0,_.X2)(O).insertBefore(B,this)}else{if(!O||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(O)}return!0};
_.v.render=function(){_.uU()};
_.v.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();rw&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.v.__hasInstance=function(){};
_.v.__getInstanceNodes=function(){};
_.v.__createAndInsertInstance=function(){};
_.v.__teardownInstance=function(){};
_.v._showHideChildren=function(){};
_.vr.Object.defineProperties(j8,{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:j8.prototype.__debounceRender},restamp:{type:Boolean,observer:j8.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var Qh3=function(){var O=j8.call(this)||this;O.__instance=null;O.__syncInfo=null;return O};
_.X(Qh3,j8);_.v=Qh3.prototype;_.v.__hasInstance=function(){return!!this.__instance};
_.v.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.v.__createAndInsertInstance=function(O){var m=this,G=this.__dataHost||this;if(Pe&&!this.__dataHost)throw Error("Nd");var B=G._bindTemplate(this.__template,!0);B.runEffects=function(Q,H,M){var R=m.__syncInfo;if(m.if)R&&(m.__syncInfo=null,m._showHideChildren(),H=Object.assign(R.changedProps,H)),Q(H,M);else if(m.__instance)if(R||(R=m.__syncInfo={runEffects:Q,changedProps:{}}),M)for(var x in H)Q=We(x),R.changedProps[Q]=m.__dataHost[Q];else Object.assign(R.changedProps,H)};
this.__instance=G._stampTemplate(this.__template,B);(0,_.X2)(O).insertBefore(this.__instance,this)};
_.v.__syncHostProperties=function(){var O=this.__syncInfo;O&&(this.__syncInfo=null,O.runEffects(O.changedProps,!1))};
_.v.__teardownInstance=function(){var O=this.__dataHost||this;this.__instance&&(O._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.v._showHideChildren=function(){var O=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==O&&(this.__instance.__hidden=O,jEN(O,this.__instance.templateInfo.childNodes));O||this.__syncHostProperties()};
var Hf2=function(){var O=j8.call(this)||this;O.__ctor=null;O.__instance=null;O.__invalidProps=null;return O};
_.X(Hf2,j8);_.v=Hf2.prototype;_.v.__hasInstance=function(){return!!this.__instance};
_.v.__getInstanceNodes=function(){return this.__instance.children};
_.v.__createAndInsertInstance=function(O){this.__ctor||(this.__ctor=sD(this.__template,this,{mutableData:!0,forwardHostProp:function(m,G){this.__instance&&(this.if?this.__instance.forwardHostProp(m,G):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[We(m)]=!0))}}));
this.__instance=new this.__ctor;(0,_.X2)(O).insertBefore(this.__instance.root,this)};
_.v.__teardownInstance=function(){if(this.__instance){var O=this.__instance.children;if(O&&O.length){var m=(0,_.X2)(O[0]).parentNode;if(m){m=(0,_.X2)(m);for(var G=0,B=void 0;G<O.length&&(B=O[G]);G++)m.removeChild(B)}}this.__instance=this.__invalidProps=null}};
_.v.__syncHostProperties=function(){var O=this.__invalidProps;if(O){this.__invalidProps=null;for(var m in O)this.__instance._setPendingProperty(m,this.__dataHost[m]);this.__instance._flushProperties()}};
_.v._showHideChildren=function(){var O=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==O&&(this.__instance.__hidden=O,this.__instance._showHideChildren(O));O||this.__syncHostProperties()};
_.dX=Ms?Qh3:Hf2;customElements.define(_.dX.is,_.dX);Polymer.enqueueDebouncer=_.fU;Polymer.flush=_.uU;Polymer.Templatize={templatize:sD,modelForElement:cwM};Polymer.TemplateInstanceBase=D1;Polymer.DomIf=_.dX;var vHp=mBp(Wv),YZ=function(){var O=vHp.call(this)||this;O.__instances=[];O.__renderDebouncer=null;O.__itemsIdxToInstIdx={};O.__chunkCount=null;O.__renderStartTime=null;O.__itemsArrayChanged=!1;O.__shouldMeasureChunk=!1;O.__shouldContinueChunking=!1;O.__chunkingId=0;O.__sortFn=null;O.__filterFn=null;O.__observePaths=null;O.__ctor=null;O.__isDetached=!0;O.template=null;return O};
_.X(YZ,vHp);_.v=YZ.prototype;_.v.disconnectedCallback=function(){vHp.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var O=0;O<this.__instances.length;O++)this.__detachInstance(O);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.v.connectedCallback=function(){vHp.prototype.connectedCallback.call(this);hT5()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var O=(0,_.X2)((0,_.X2)(this).parentNode),m=0;m<this.__instances.length;m++)this.__attachInstance(m,O);this.__chunkingId&&this.__render()}};
_.v.__ensureTemplatized=function(){var O=this;if(!this.__ctor){var m=this.template=this._templateInfo?this:this.querySelector("template");if(!m){var G=new MutationObserver(function(){if(O.querySelector("template"))G.disconnect(),O.__render();else throw Error("Qd");});
G.observe(this,{childList:!0});return!1}var B={};B[this.as]=!0;B[this.indexAs]=!0;B[this.itemsIndexAs]=!0;this.__ctor=sD(m,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:B,forwardHostProp:function(Q,H){for(var M=this.__instances,R=0,x=void 0;R<M.length&&(x=M[R]);R++)x.forwardHostProp(Q,H)},
notifyInstanceProp:function(Q,H,M){Kkz(this.as,H)&&(Q=Q[this.itemsIndexAs],H==this.as&&(this.items[Q]=M),H=zX(this.as,"items."+Q,H),this.notifyPath(H,M))}})}return!0};
_.v.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.v.__functionFromPropertyValue=function(O){if(typeof O==="string"){var m=this.__getMethodHost();return function(){return m[O].apply(m,arguments)}}return O};
_.v.__sortChanged=function(O){this.__sortFn=this.__functionFromPropertyValue(O);this.items&&this.__debounceRender(this.__render)};
_.v.__filterChanged=function(O){this.__filterFn=this.__functionFromPropertyValue(O);this.items&&this.__debounceRender(this.__render)};
_.v.__computeFrameTime=function(O){return Math.ceil(1E3/O)};
_.v.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.v.__handleObservedPaths=function(O){if(this.__sortFn||this.__filterFn)if(!O)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var m=this.__observePaths,G=0;G<m.length;G++)O.indexOf(m[G])===0&&this.__debounceRender(this.__render,this.delay)};
_.v.__itemsChanged=function(O){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(O.path,O.value)||(O.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.v.__debounceRender=function(O,m){m=m===void 0?0:m;this.__renderDebouncer=_.Xu(this.__renderDebouncer,m>0?_.iU.after(m):YV,O.bind(this));_.fU(this.__renderDebouncer)};
_.v.render=function(){this.__debounceRender(this.__render);_.uU()};
_.v.__render=function(){var O=this;if(this.__ensureTemplatized()){var m=this.items||[],G=this.__sortAndFilterItems(m),B=this.__calculateLimit(G.length);this.__updateInstances(m,B,G);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){O.__chunkingId=null;O.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);rw&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.v.__sortAndFilterItems=function(O){for(var m=this,G=Array(O.length),B=0;B<O.length;B++)G[B]=B;this.__filterFn&&(G=G.filter(function(Q,H,M){return m.__filterFn(O[Q],H,M)}));
this.__sortFn&&G.sort(function(Q,H){return m.__sortFn(O[Q],O[H])});
return G};
_.v.__calculateLimit=function(O){var m=O,G=this.__instances.length;if(this.initialCount){var B;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(m=Math.min(O,this.initialCount),this.__chunkCount=(B=Math.max(m-G,0))||1):(B=Math.min(Math.max(O-G,0),this.__chunkCount),m=Math.min(G+B,O));this.__shouldMeasureChunk=B===this.__chunkCount;this.__shouldContinueChunking=m<O;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return m};
_.v.__continueChunking=function(){if(this.__shouldMeasureChunk){var O=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/O*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.v.__updateInstances=function(O,m,G){var B=this.__itemsIdxToInstIdx={},Q;for(Q=0;Q<m;Q++){var H=this.__instances[Q],M=G[Q],R=O[M];B[M]=Q;H?(H._setPendingProperty(this.as,R),H._setPendingProperty(this.indexAs,Q),H._setPendingProperty(this.itemsIndexAs,M),H._flushProperties()):this.__insertInstance(R,Q,M)}for(O=this.__instances.length-1;O>=Q;O--)this.__detachAndRemoveInstance(O)};
_.v.__detachInstance=function(O){O=this.__instances[O];for(var m=(0,_.X2)(O.root),G=0;G<O.children.length;G++)m.appendChild(O.children[G]);return O};
_.v.__attachInstance=function(O,m){m.insertBefore(this.__instances[O].root,this)};
_.v.__detachAndRemoveInstance=function(O){this.__detachInstance(O);this.__instances.splice(O,1)};
_.v.__stampInstance=function(O,m,G){var B={};B[this.as]=O;B[this.indexAs]=m;B[this.itemsIndexAs]=G;return new this.__ctor(B)};
_.v.__insertInstance=function(O,m,G){O=this.__stampInstance(O,m,G);G=(G=this.__instances[m+1])?G.children[0]:this;(0,_.X2)((0,_.X2)(this).parentNode).insertBefore(O.root,G);return this.__instances[m]=O};
_.v._showHideChildren=function(O){for(var m=0;m<this.__instances.length;m++)this.__instances[m]._showHideChildren(O)};
_.v.__handleItemPath=function(O,m){var G=O.slice(6),B=G.indexOf(".");O=B<0?G:G.substring(0,B);if(O==parseInt(O,10)){G=B<0?"":G.substring(B+1);this.__handleObservedPaths(G);if(O=this.__instances[this.__itemsIdxToInstIdx[O]])O._setPendingPropertyOrPath(this.as+(G?"."+G:""),m,!1,!0),O._flushProperties();return!0}};
_.v.itemForElement=function(O){return(O=this.modelForElement(O))&&O[this.as]};
_.v.indexForElement=function(O){return(O=this.modelForElement(O))&&O[this.indexAs]};
_.v.modelForElement=function(O){return cwM(this.template,O)};
_.vr.Object.defineProperties(YZ,{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:YZ.prototype.__sortChanged},filter:{type:Function,observer:YZ.prototype.__filterChanged},observe:{type:String,observer:YZ.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!rw,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.*)"]}}});
YZ.prototype._setRenderedItemCount=function(){};
customElements.define(YZ.is,YZ);Polymer.DomRepeat=YZ;var KZ3=function(O,m){var G=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=O;this.callback=m;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){G._schedule()};
this.connect();this._schedule()},$Bm=function(O){var m=(0,_.X2)(O);
if(F2(O))return m.assignedNodes({flatten:!0});O=[];for(var G=0;G<m.childNodes.length;G++){var B=m.childNodes[G];F2(B)?O.push.apply(O,_.lS((0,_.X2)(B).assignedNodes({flatten:!0}))):O.push(B)}return O};
_.v=KZ3.prototype;_.v.connect=function(){var O=this;F2(this._target)?this._listenSlots([this._target]):(0,_.X2)(this._target).children&&(this._listenSlots((0,_.X2)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(m){O._processMutations(m)}):(this._nativeChildrenObserver=new MutationObserver(function(m){O._processMutations(m)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.v.disconnect=function(){F2(this._target)?this._unlistenSlots([this._target]):(0,_.X2)(this._target).children&&(this._unlistenSlots((0,_.X2)(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};
_.v._schedule=function(){var O=this;this._scheduled||(this._scheduled=!0,YV.run(function(){return O.flush()}))};
_.v._processMutations=function(O){this._processSlotMutations(O);this.flush()};
_.v._processSlotMutations=function(O){if(O)for(var m=0;m<O.length;m++){var G=O[m];G.addedNodes&&this._listenSlots(G.addedNodes);G.removedNodes&&this._unlistenSlots(G.removedNodes)}};
_.v.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 O={target:this._target,addedNodes:[],removedNodes:[]},m=$Bm(this._target),G=y8S(m,this._effectiveNodes),B=0,Q=void 0;B<G.length&&(Q=G[B]);B++)for(var H=0,M=void 0;H<Q.removed.length&&(M=Q.removed[H]);H++)O.removedNodes.push(M);
B=0;for(Q=void 0;B<G.length&&(Q=G[B]);B++)for(H=Q.index;H<Q.index+Q.addedCount;H++)O.addedNodes.push(m[H]);this._effectiveNodes=m;m=!1;if(O.addedNodes.length||O.removedNodes.length)m=!0,this.callback.call(this._target,O);return m};
_.v._listenSlots=function(O){for(var m=0;m<O.length;m++){var G=O[m];F2(G)&&G.addEventListener("slotchange",this._boundSchedule)}};
_.v._unlistenSlots=function(O){for(var m=0;m<O.length;m++){var G=O[m];F2(G)&&G.removeEventListener("slotchange",this._boundSchedule)}};var Ic=Element.prototype,MwC=Ic.matches||Ic.matchesSelector||Ic.mozMatchesSelector||Ic.msMatchesSelector||Ic.oMatchesSelector||Ic.webkitMatchesSelector,rV3=function(O,m){return MwC.call(O,m)},AJ=function(O){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(O);
this.node=O},qK3;
_.v=AJ.prototype;_.v.observeNodes=function(O){return new KZ3(this.node,O)};
_.v.unobserveNodes=function(O){O.disconnect()};
_.v.notifyObserver=function(){};
_.v.deepContains=function(O){if((0,_.X2)(this.node).contains(O))return!0;var m=O;for(O=O.ownerDocument;m&&m!==O&&m!==this.node;)m=(0,_.X2)(m).parentNode||(0,_.X2)(m).host;return m===this.node};
_.v.getOwnerRoot=function(){return(0,_.X2)(this.node).getRootNode()};
_.v.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.X2)(this.node).assignedNodes({flatten:!0}):[]};
_.v.getDestinationInsertionPoints=function(){for(var O=[],m=(0,_.X2)(this.node).assignedSlot;m;)O.push(m),m=(0,_.X2)(m).assignedSlot;return O};
_.v.importNode=function(O,m){return(0,_.X2)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(O,m)};
_.v.getEffectiveChildNodes=function(){return $Bm(this.node)};
_.v.queryDistributedElements=function(O){for(var m=this.getEffectiveChildNodes(),G=[],B=0,Q=m.length,H=void 0;B<Q&&(H=m[B]);B++)H.nodeType===Node.ELEMENT_NODE&&rV3(H,O)&&G.push(H);return G};
_.vr.Object.defineProperties(AJ.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var O=this.node;return O._activeElement!==void 0?O._activeElement:O.activeElement}}});
var pU=function(O){this.event=O};
_.vr.Object.defineProperties(pU.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 RaU=AJ;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var ifj=window.ShadyDOM.Wrapper,xBC=function(){return ifj.apply(this,arguments)||this};
_.X(xBC,ifj);Object.getOwnPropertyNames(AJ.prototype).forEach(function(O){O!="activeElement"&&O!="constructor"&&(xBC.prototype[O]=AJ.prototype[O])});
dQM(xBC.prototype,["classList"]);RaU=xBC;Object.defineProperties(pU.prototype,{localTarget:{get:function(){var O=this.event.currentTarget;O=O&&_.SU(O).getOwnerRoot();for(var m=this.path,G=0;G<m.length;G++){var B=m[G];if(_.SU(B).getOwnerRoot()===O)return B}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else Ygf(),dQM(AJ.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),wpp();qK3=RaU;_.SU=function(O){O=O||document;if(O instanceof RaU)return O;if(O instanceof pU)return O;var m=O.__domApi;m||(O instanceof Event?m=new pU(O):m=new RaU(O),O.__domApi=m);return m};var UBp=/:host\(:dir\((ltr|rtl)\)\)/g,tw_=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,WZ_=/:dir\((?:ltr|rtl)\)/,Zf3=!(!window.ShadyDOM||!window.ShadyDOM.inUse),m9=[],S8=null,OF="",zam=xJ(function(O){Zf3||S8||(OF=document.documentElement.getAttribute("dir"),S8=new MutationObserver(eTI),S8.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var m=Xq9(O);O=function(){var G=m.call(this)||this;G.__autoDirOptOut=!1;return G};
_.X(O,m);O._processStyleText=function(G,B){G=m._processStyleText.call(this,G,B);!Zf3&&WZ_.test(G)&&(G=this._replaceDirInCssText(G),this.__activateDir=!0);return G};
O._replaceDirInCssText=function(G){G=G.replace(UBp,':host([dir="$1"])');return G=G.replace(tw_,':host([dir="$2"]) $1')};
O.prototype.ready=function(){m.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
O.prototype.connectedCallback=function(){m.prototype.connectedCallback&&m.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(S8&&S8.takeRecords().length&&eTI(),m9.push(this),this.__autoDirOptOut||this.setAttribute("dir",OF))};
O.prototype.disconnectedCallback=function(){m.prototype.disconnectedCallback&&m.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var G=m9.indexOf(this);G>-1&&m9.splice(G,1)}};
O.__activateDir=!1;return O});var JV3=function(O){for(;O;){var m=Object.getOwnPropertyDescriptor(O,"observedAttributes");if(m)return m.get;O=Object.getPrototypeOf(O.prototype).constructor}return function(){return[]}};
xJ(function(O){var m=tx(O),G=JV3(m);O=function(){return m.call(this)||this};
_.X(O,m);O.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:m.prototype._initializeProperties.call(this)};
O.prototype._enableProperties=function(){this.__isUpgradeDisabled||m.prototype._enableProperties.call(this)};
O.prototype._canApplyPropertyDefault=function(B){return m.prototype._canApplyPropertyDefault.call(this,B)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(B))};
O.prototype.attributeChangedCallback=function(B,Q,H,M){B=="disable-upgrade"?this.__isUpgradeDisabled&&H==null&&(m.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.X2)(this).isConnected&&m.prototype.connectedCallback.call(this)):m.prototype.attributeChangedCallback.call(this,B,Q,H,M)};
O.prototype.connectedCallback=function(){this.__isUpgradeDisabled||m.prototype.connectedCallback.call(this)};
O.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||m.prototype.disconnectedCallback.call(this)};
_.vr.Object.defineProperties(O,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return G.call(this).concat("disable-upgrade")}}});
return O});var GA=!1,sEM=[],Br=[];var Awr=window.ShadyDOM,O4e=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",GDY):document.readyState==="interactive"||document.readyState==="complete"?GDY():window.addEventListener("DOMContentLoaded",GDY);var H4N=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=""},BsN=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,QD5=/@import[^;]*;/gim,RV5=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,i4r=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,x0e=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,qbe=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,MG5=/^@[^\s]*keyframes/,
$0Y=/\s+/g;var U0M={};var Z4s=Promise.resolve();var Vw_=new Set;var bf2=/;\s*/m,nH2=/^\s*(initial)|(inherit)\s*$/,XXC=/\s*!important/,fk3=function(){this._map={}};
fk3.prototype.set=function(O,m){O=O.trim();this._map[O]={properties:m,dependants:{}}};
fk3.prototype.get=function(O){O=O.trim();return this._map[O]||null};
var ha3=null,Ei=function(){this._measureElement=this._currentElement=null;this._map=new fk3};
_.v=Ei.prototype;_.v.detectMixin=function(O){O=ca$.test(O)||yau.test(O);ca$.lastIndex=0;yau.lastIndex=0;return O};
_.v.transformTemplate=function(O,m){if(O._gatheredStyle===void 0){var G=[];for(var B=O.content.querySelectorAll("style"),Q=0;Q<B.length;Q++){var H=B[Q];if(H.hasAttribute("shady-unscoped")){if(!Fkf){var M=H.textContent;if(!Vw_.has(M)){Vw_.add(M);var R=document.createElement("style");R.setAttribute("shady-unscoped","");R.textContent=M;document.head.appendChild(R)}H.parentNode.removeChild(H)}}else G.push(H.textContent),H.parentNode.removeChild(H)}(G=G.join("").trim())?(B=document.createElement("style"),
B.textContent=G,O.content.insertBefore(B,O.content.firstChild),G=B):G=null;O._gatheredStyle=G}return(O=O._gatheredStyle)?this.JSC$11274_transformStyle(O,m):null};
_.v.JSC$11274_transformStyle=function(O,m){m=m===void 0?"":m;var G=b4N(O);this.transformRules(G,m);O.textContent=VGI(G);return G};
_.v.transformCustomStyle=function(O){var m=this,G=b4N(O);X4M(G,function(B){B.selector===":root"&&(B.selector="html");m.transformRule(B)});
O.textContent=VGI(G);return G};
_.v.transformRules=function(O,m){var G=this;this._currentElement=m;X4M(O,function(B){G.transformRule(B)});
this._currentElement=null};
_.v.transformRule=function(O){O.cssText=THH(this,O.parsedCssText,O);O.selector===":root"&&(O.selector=":host > *")};
var THH=function(O,m,G){m=m.replace(yau,function(B,Q,H,M){return O._produceCssProperties(B,Q,H,M,G)});
return O._consumeCssProperties(m,G)};
_.v=Ei.prototype;_.v._getInitialValueForProperty=function(O){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(O)};
_.v._fallbacksFromPreviousRules=function(O){for(var m=this,G=O;G.parent;)G=G.parent;var B={},Q=!1;X4M(G,function(H){(Q=Q||H===O)||H.selector===O.selector&&Object.assign(B,m._cssTextToMap(H.parsedCssText))});
return B};
_.v._consumeCssProperties=function(O,m){for(var G;G=ca$.exec(O);){var B=G[0],Q=G[1];G=G.index;var H=G+B.indexOf("@apply"),M=G+B.length;B=O.slice(0,H);O=O.slice(M);H=m?this._fallbacksFromPreviousRules(m):{};Object.assign(H,this._cssTextToMap(B));Q=this._atApplyToCssProperties(Q,H);O=B+Q+O;ca$.lastIndex=G+Q.length}return O};
_.v._atApplyToCssProperties=function(O,m){O=O.replace(bf2,"");var G=[],B=this._map.get(O);B||(this._map.set(O,{}),B=this._map.get(O));if(B){this._currentElement&&(B.dependants[this._currentElement]=!0);var Q,H=B.properties;for(Q in H){var M=m&&m[Q];B=[Q,": var(",O,"_-_",Q];M&&B.push(",",M.replace(XXC,""));B.push(")");XXC.test(H[Q])&&B.push(" !important");G.push(B.join(""))}}return G.join("; ")};
_.v._replaceInitialOrInherit=function(O,m){var G=nH2.exec(m);G&&(m=G[1]?this._getInitialValueForProperty(O):"apply-shim-inherit");return m};
_.v._cssTextToMap=function(O,m){m=m===void 0?!1:m;O=O.split(";");for(var G,B,Q={},H=0;H<O.length;H++)if(G=O[H])B=G.split(":"),B.length>1&&(G=B[0].trim(),B=B.slice(1).join(":"),m&&(B=this._replaceInitialOrInherit(G,B)),Q[G]=B);return Q};
_.v._invalidateMixinEntry=function(O){if(ha3)for(var m in O.dependants)m!==this._currentElement&&ha3(m)};
_.v._produceCssProperties=function(O,m,G,B,Q){var H=this;G&&feY(G,function(n,I){I&&H._map.get(I)&&(B="@apply "+I+";")});
if(!B)return O;var M=this._consumeCssProperties(""+B,Q);Q=O.slice(0,O.indexOf("--"));var R=M=this._cssTextToMap(M,!0),x=this._map.get(m),t=x&&x.properties;t?R=Object.assign(Object.create(t),M):this._map.set(m,R);var W=[],Z,z=!1;for(Z in R){var J=M[Z];J===void 0&&(J="initial");!t||Z in t||(z=!0);W.push(m+"_-_"+Z+": "+J)}z&&this._invalidateMixinEntry(x);x&&(x.properties=R);G&&(Q=O+";"+Q);return Q+W.join("; ")+";"};
Ei.prototype.detectMixin=Ei.prototype.detectMixin;Ei.prototype.transformStyle=Ei.prototype.JSC$11274_transformStyle;Ei.prototype.transformCustomStyle=Ei.prototype.transformCustomStyle;Ei.prototype.transformRules=Ei.prototype.transformRules;Ei.prototype.transformRule=Ei.prototype.transformRule;Ei.prototype.transformTemplate=Ei.prototype.transformTemplate;Ei.prototype._separator="_-_";Object.defineProperty(Ei.prototype,"invalidCallback",{get:function(){return ha3},
set:function(O){ha3=O}});var LU=new Ei,gH$=function(){this.customStyleInterface=null;LU.invalidCallback=tGN},CU=function(O){!O.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(O.customStyleInterface=window.ShadyCSS.CustomStyleInterface,O.customStyleInterface.transformCallback=function(m){LU.transformCustomStyle(m)},O.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){O.customStyleInterface.enqueued&&O.flushCustomStyles()})})};
_.v=gH$.prototype;_.v.prepareTemplate=function(O,m){CU(this);hVe(O)===""&&(U0M[m]=O,m=LU.transformTemplate(O,m),O._styleAst=m)};
_.v.flushCustomStyles=function(){CU(this);if(this.customStyleInterface){var O=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var m=0;m<O.length;m++){var G=this.customStyleInterface.getStyleForCustomStyle(O[m]);G&&LU.transformCustomStyle(G)}this.customStyleInterface.enqueued=!1}}};
_.v.styleSubtree=function(O,m){CU(this);m&&dX6(O,m);if(O.shadowRoot)for(this.styleElement(O),O=O.shadowRoot.children||O.shadowRoot.childNodes,m=0;m<O.length;m++)this.styleSubtree(O[m]);else for(O=O.children||O.childNodes,m=0;m<O.length;m++)this.styleSubtree(O[m])};
_.v.styleElement=function(O){CU(this);var m=O.localName,G;m?m.indexOf("-")>-1?G=m:G=O.getAttribute&&O.getAttribute("is")||"":G=O.is;m=U0M[G];if(!(m&&hVe(m)!==""||!m||WgO(m))){if(WgO(m)||m._applyShimValidatingVersion!==m._applyShimNextVersion)this.prepareTemplate(m,G),zVp(m);if(O=O.shadowRoot)if(O=O.querySelector("style"))O.__cssRules=m._styleAst,O.textContent=VGI(m._styleAst)}};
_.v.styleDocument=function(O){CU(this);this.styleSubtree(document.body,O)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var oc=new gH$,usU=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(O,m){oc.flushCustomStyles();oc.prepareTemplate(O,m)},
prepareTemplateStyles:function(O,m,G){window.ShadyCSS.prepareTemplate(O,m,G)},
prepareTemplateDom:function(){},
styleSubtree:function(O,m){oc.flushCustomStyles();oc.styleSubtree(O,m)},
styleElement:function(O){oc.flushCustomStyles();oc.styleElement(O)},
styleDocument:function(O){oc.flushCustomStyles();oc.styleDocument(O)},
getComputedStyleValue:function(O,m){return w$Y(O,m)},
flushCustomStyles:function(){oc.flushCustomStyles()},
nativeCss:JRp,nativeShadow:Fkf,cssBuild:Hr,disableRuntime:wq2};usU&&(window.ShadyCSS.CustomStyleInterface=usU)}window.ShadyCSS.ApplyShim=LU;var jh_;jh_=window.ShadyCSS;_.lU=xJ(function(O){O=Of$(tx(O));var m=Ess?O:zam(O),G=JV3(m),B={x:"pan-x",y:"pan-y",none:"none",all:"auto"};O=function(){return m.call(this)||this};
_.X(O,m);O.prototype.created=function(){};
O.prototype.__attributeReaction=function(Q,H,M){(this.__dataAttributes&&this.__dataAttributes[Q]||Q==="disable-upgrade")&&this.attributeChangedCallback(Q,H,M,null)};
O.prototype.setAttribute=function(Q,H){if($o$&&!this._legacyForceObservedAttributes){var M=this.getAttribute(Q);m.prototype.setAttribute.call(this,Q,H);this.__attributeReaction(Q,M,String(H))}else m.prototype.setAttribute.call(this,Q,H)};
O.prototype.removeAttribute=function(Q){if($o$&&!this._legacyForceObservedAttributes){var H=this.getAttribute(Q);m.prototype.removeAttribute.call(this,Q);this.__attributeReaction(Q,H,null)}else m.prototype.removeAttribute.call(this,Q)};
O.prototype._enableProperties=function(){this.__isUpgradeDisabled||m.prototype._enableProperties.call(this)};
O.prototype._canApplyPropertyDefault=function(Q){return m.prototype._canApplyPropertyDefault.call(this,Q)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Q))};
O.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(m.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
O.prototype.attached=function(){};
O.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(m.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
O.prototype.detached=function(){};
O.prototype.attributeChangedCallback=function(Q,H,M,R){H!==M&&(Q=="disable-upgrade"?this.__isUpgradeDisabled&&M==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.X2)(this).isConnected&&this.connectedCallback()):(m.prototype.attributeChangedCallback.call(this,Q,H,M,R),this.attributeChanged(Q,H,M)))};
O.prototype.attributeChanged=function(){};
O.prototype._initializeProperties=function(){if(wj&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var Q=Object.getPrototypeOf(this);Q.hasOwnProperty("__hasRegisterFinished")||(this._registered(),Q.__hasRegisterFinished=!0);m.prototype._initializeProperties.call(this);this.root=this;this.created();$o$&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
O.prototype._takeAttributes=function(){for(var Q=this.attributes,H=0,M=Q.length;H<M;H++){var R=Q[H];this.__attributeReaction(R.name,null,R.value)}};
O.prototype._registered=function(){};
O.prototype.ready=function(){this._ensureAttributes();m.prototype.ready.call(this)};
O.prototype._ensureAttributes=function(){};
O.prototype._applyListeners=function(){};
O.prototype.serialize=function(Q){return this._serializeValue(Q)};
O.prototype.deserialize=function(Q,H){return this._deserializeValue(Q,H)};
O.prototype.reflectPropertyToAttribute=function(Q,H,M){this._propertyToAttribute(Q,H,M)};
O.prototype.serializeValueToAttribute=function(Q,H,M){this._valueToNodeAttribute(M||this,Q,H)};
O.prototype.extend=function(Q,H){if(!Q||!H)return Q||H;for(var M=Object.getOwnPropertyNames(H),R=0,x=void 0;R<M.length&&(x=M[R]);R++){var t=Object.getOwnPropertyDescriptor(H,x);t&&Object.defineProperty(Q,x,t)}return Q};
O.prototype.mixin=function(Q,H){for(var M in H)Q[M]=H[M];return Q};
O.prototype.chainObject=function(Q,H){Q&&H&&Q!==H&&(Q.__proto__=H);return Q};
O.prototype.instanceTemplate=function(Q){Q=this.constructor._contentForTemplate(Q);return document.importNode(Q,!0)};
O.prototype.fire=function(Q,H,M){M=M||{};H=H===null||H===void 0?{}:H;Q=new Event(Q,{bubbles:M.bubbles===void 0?!0:M.bubbles,cancelable:!!M.cancelable,composed:M.composed===void 0?!0:M.composed});Q.detail=H;(0,_.X2)(M.node||this).dispatchEvent(Q);return Q};
O.prototype.listen=function(Q,H,M){Q=Q||this;var R=this.__boundListeners||(this.__boundListeners=new WeakMap),x=R.get(Q);x||(x={},R.set(Q,x));R=H+M;x[R]||(x[R]=this._addMethodEventListenerToNode(Q,H,M,this))};
O.prototype.unlisten=function(Q,H,M){Q=Q||this;var R=this.__boundListeners&&this.__boundListeners.get(Q);M=H+M;var x=R&&R[M];x&&(this._removeEventListenerFromNode(Q,H,x),R[M]=null)};
O.prototype.setScrollDirection=function(Q,H){_.kV(H||this,B[Q]||"auto")};
O.prototype.$$=function(Q){return this.root.querySelector(Q)};
O.prototype.distributeContent=function(){var Q=_.SU(this);window.ShadyDOM&&Q.shadowRoot&&ShadyDOM.flush()};
O.prototype.getEffectiveChildNodes=function(){return _.SU(this).getEffectiveChildNodes()};
O.prototype.queryDistributedElements=function(Q){return _.SU(this).queryDistributedElements(Q)};
O.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(Q){return Q.nodeType===Node.ELEMENT_NODE})};
O.prototype.getEffectiveTextContent=function(){for(var Q=this.getEffectiveChildNodes(),H=[],M=0,R;R=Q[M];M++)R.nodeType!==Node.COMMENT_NODE&&H.push(R.textContent);return H.join("")};
O.prototype.queryEffectiveChildren=function(Q){return(Q=this.queryDistributedElements(Q))&&Q[0]};
O.prototype.queryAllEffectiveChildren=function(Q){return this.queryDistributedElements(Q)};
O.prototype.getContentChildNodes=function(Q){return(Q=this.root.querySelector(Q||"slot"))?_.SU(Q).getDistributedNodes():[]};
O.prototype.getContentChildren=function(Q){return this.getContentChildNodes(Q).filter(function(H){return H.nodeType===Node.ELEMENT_NODE})};
O.prototype.isLightDescendant=function(Q){return this!==Q&&(0,_.X2)(this).contains(Q)&&(0,_.X2)(this).getRootNode()===(0,_.X2)(Q).getRootNode()};
O.prototype.isLocalDescendant=function(Q){return this.root===(0,_.X2)(Q).getRootNode()};
O.prototype.scopeSubtree=function(Q,H){return m06(Q,H===void 0?!1:H)};
O.prototype.getComputedStyleValue=function(Q){return jh_.getComputedStyleValue(this,Q)};
O.prototype.debounce=function(Q,H,M){this._debouncers=this._debouncers||{};return this._debouncers[Q]=_.Xu(this._debouncers[Q],M>0?_.iU.after(M):YV,H.bind(this))};
O.prototype.isDebouncerActive=function(Q){this._debouncers=this._debouncers||{};Q=this._debouncers[Q];return!(!Q||!Q.isActive())};
O.prototype.flushDebouncer=function(Q){this._debouncers=this._debouncers||{};(Q=this._debouncers[Q])&&Q.flush()};
O.prototype.cancelDebouncer=function(Q){this._debouncers=this._debouncers||{};(Q=this._debouncers[Q])&&Q.cancel()};
O.prototype.async=function(Q,H){return H>0?_.iU.run(Q.bind(this),H):~YV.run(Q.bind(this))};
O.prototype.cancelAsync=function(Q){Q<0?YV.cancel(~Q):_.iU.cancel(Q)};
O.prototype.create=function(Q,H){Q=document.createElement(Q);if(H)if(Q.setProperties)Q.setProperties(H);else for(var M in H)Q[M]=H[M];return Q};
O.prototype.elementMatches=function(Q,H){return rV3(H||this,Q)};
O.prototype.toggleAttribute=function(Q,H){var M=this;arguments.length===3&&(M=arguments[2]);arguments.length==1&&(H=!M.hasAttribute(Q));if(H)return(0,_.X2)(M).setAttribute(Q,""),!0;(0,_.X2)(M).removeAttribute(Q);return!1};
O.prototype.toggleClass=function(Q,H,M){M=M||this;arguments.length==1&&(H=!M.classList.contains(Q));H?M.classList.add(Q):M.classList.remove(Q)};
O.prototype.transform=function(Q,H){H=H||this;H.style.webkitTransform=Q;H.style.transform=Q};
O.prototype.translate3d=function(Q,H,M,R){this.transform("translate3d("+Q+","+H+","+M+")",R||this)};
O.prototype.arrayDelete=function(Q,H){if(Array.isArray(Q)){if(H=Q.indexOf(H),H>=0)return Q.splice(H,1)}else if(H=Ve(this,Q).indexOf(H),H>=0)return this.splice(Q,H,1);return null};
O.prototype._logger=function(Q,H){Array.isArray(H)&&H.length===1&&Array.isArray(H[0])&&(H=H[0]);switch(Q){case "log":case "warn":case "error":console[Q].apply(console,_.lS(H))}};
O.prototype._log=function(){this._logger("log",_.eA.apply(0,arguments))};
O.prototype._warn=function(){this._logger("warn",_.eA.apply(0,arguments))};
O.prototype._error=function(){this._logger("error",_.eA.apply(0,arguments))};
O.prototype._logf=function(Q){return["[%s::%s]",this.is,Q].concat(_.lS(_.eA.apply(1,arguments)))};
_.vr.Object.defineProperties(O.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var Q=(0,_.X2)(this).getRootNode();return Q instanceof DocumentFragment?Q.host:Q}}});
_.vr.Object.defineProperties(O,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return $o$&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],Okr(this.prototype)),this.__observedAttributes):G.call(this).concat("disable-upgrade")}}});
O.prototype.is="";return O});Polymer.FlattenedNodesObserver=KZ3;Polymer.DomApi=qK3;Polymer.EventApi=pU;Polymer.dom=_.SU;Polymer.dom.matchesSelector=rV3;Polymer.dom.flush=_.uU;Polymer.dom.addDebouncer=_.fU;Polymer.DirMixin=zam;Polymer.RenderStatus={beforeNextRender:_.F06,afterNextRender:_.QA,flush:function(){for(;sEM.length||Br.length;)DQ6(sEM),DQ6(Br);GA=!1}};Polymer.LegacyElementMixin=_.lU;var Ik9;Ik9=TE._mutablePropertyChange;var pX8={properties:{mutableData:Boolean},_shouldPropertyChange:function(O,m,G){return Ik9(this,O,m,G,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(O,m,G){return Ik9(this,O,m,G,!0)}};
Polymer.OptionalMutableDataBehavior=pX8;var TsN={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},p4z={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},IeS=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},p4z),SKj=(0,_.lU)(HTMLElement),hkO=function(O,m){O||console.warn("Polymer.Class requires `info` argument");m=m?m(SKj):SKj;m=Sbp(O,m,O.behaviors);m.is=m.prototype.is=
O.is;return m};Polymer.Class=hkO;Polymer.mixinBehaviors=function(O,m){return Sbp({},(0,_.lU)(m),O)};
Polymer.GenerateClassFromInfo=Sbp;_.kZ=function(O){var m=typeof O==="function"?O:_.kZ.Class(O);O._legacyForceObservedAttributes&&(m.prototype._legacyForceObservedAttributes=O._legacyForceObservedAttributes);customElements.define(m.is,m);return m};
_.kZ.Class=hkO;Polymer._polymerFn=_.kZ;var EHC=window.onLegacyPolymerFunctionDefinedCallback;EHC&&EHC();var g5I={templatize:function(O,m){this._templatizerTemplate=O;this.ctor=sD(O,this,{mutableData:!!m,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(O){return new this.ctor(O)},
modelForElement:function(O){return cwM(this._templatizerTemplate,O)}};Polymer.Templatizer=g5I;_.ac=(0,_.lU)(HTMLElement).prototype;Polymer.Base=_.ac;var LgS=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.KC=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.X(_.KC,PolymerFakeBaseClass);var $f=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.X($f,PolymerFakeBaseClass);var C4S=Symbol("Rd"),d0Y=[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 LZp=LZp||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Cu3;(function(O){function m(w,d,D){var OS=P.get(w);if(!OS){if(!D)return;OS=new L;P.set(w,OS)}w=OS.get(d);if(!w){if(!D)return;w=new L;OS.set(d,w)}return w}
function G(w,d,D){if(B(w,d,D))return!0;d=z(d);return d!==null?G(w,d,D):!1}
function B(w,d,D){d=m(d,D,!1);return d===void 0?!1:!!d.has(w)}
function Q(w,d,D){if(B(w,d,D))return H(w,d,D);d=z(d);if(d!==null)return Q(w,d,D)}
function H(w,d,D){d=m(d,D,!1);if(d!==void 0)return d.get(w)}
function M(w,d){var D=R(w,d);w=z(w);if(w===null)return D;var OS=M(w,d);if(OS.length<=0)return D;if(D.length<=0)return OS;d=new C;w=[];D=_.K(D);for(var rN=D.next();!rN.done;rN=D.next())rN=rN.value,d.has(rN)||(d.add(rN),w.push(rN));D=_.K(OS);for(OS=D.next();!OS.done;OS=D.next())OS=OS.value,d.has(OS)||(d.add(OS),w.push(OS));return w}
function R(w,d){w=m(w,d,!1);var D=[];w&&w.forEach(function(OS,rN){return D.push(rN)});
return D}
function x(w){return w===void 0}
function t(w){return typeof w==="object"?w!==null:typeof w==="function"}
function W(w){return typeof w==="function"}
function Z(w){return typeof w==="symbol"?w:String(w)}
function z(w){var d=Object.getPrototypeOf(w);if(typeof w!=="function"||w===S||d!==S)return d;var D=Object.getPrototypeOf(w.prototype);if(D==null||D===Object.prototype)return d;D=D.constructor;return typeof D!=="function"||D===w?d:D}
function J(){function w(){this._keys=[];this._values=[];this._cache=d}
var d={};w.prototype={get size(){return this._keys.length},has:function(D){return D===this._cache?!0:this._find(D)>=0?(this._cache=D,!0):!1},
get:function(D){var OS=this._find(D);if(OS>=0)return this._cache=D,this._values[OS]},
set:function(D,OS){this.delete(D);this._keys.push(D);this._values.push(OS);this._cache=D;return this},
delete:function(D){D=this._find(D);return D>=0?(this._keys.splice(D,1),this._values.splice(D,1),this._cache=d,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=d},
forEach:function(D){for(var OS=this.size,rN=0;rN<OS;++rN){var xO=this._keys[rN],XI=this._values[rN];this._cache=xO;D.call(this,XI,xO,this)}},
_find:function(D){for(var OS=this._keys,rN=OS.length,xO=0;xO<rN;++xO)if(OS[xO]===D)return xO;return-1}};
return w}
function n(){function w(){this._map=new L}
w.prototype={get size(){return this._map.length},has:function(d){return this._map.has(d)},
add:function(d){this._map.set(d,d);return this},
delete:function(d){return this._map.delete(d)},
clear:function(){this._map.clear()},
forEach:function(d,D){this._map.forEach(d,D)}};
return w}
function I(){function w(){this._key=D()}
function d(US,CN){for(var oe=0;oe<CN;++oe)US[oe]=Math.random()*255|0}
function D(){do{if(rN)var US=rN.randomBytes(16);else typeof Uint8Array==="function"?(US=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(US):d(US,16)):(US=Array(16),d(US,16));US[6]=US[6]&79|64;US[8]=US[8]&191|128;for(var CN="",oe=0;oe<16;++oe){var K$=US[oe];if(oe===4||oe===6||oe===8)CN+="-";K$<16&&(CN+="0");CN+=K$.toString(16).toLowerCase()}US="@@WeakMap@@"+CN}while(xO.call(XI,US));XI[US]=!0;return US}
function OS(US,CN){if(!xO.call(US,Vf)){if(!CN)return;Object.defineProperty(US,Vf,{value:Object.create(null)})}return US[Vf]}
var rN=typeof global!=="undefined"&&typeof LZp==="object"&&typeof require==="function"&&require("crypto"),xO=Object.prototype.hasOwnProperty,XI={},Vf=D();w.prototype={has:function(US){return(US=OS(US,!1))?this._key in US:!1},
get:function(US){if(US=OS(US,!1))return US[this._key]},
set:function(US,CN){OS(US,!0)[this._key]=CN;return this},
delete:function(US){return(US=OS(US,!1))&&this._key in US?delete US[this._key]:!1},
clear:function(){this._key=D()}};
return w}
var S=Object.getPrototypeOf(Function),L=typeof Map==="function"?Map:J(),C=typeof Set==="function"?Set:n(),P=new (typeof WeakMap==="function"?WeakMap:I());O.decorate=function(w,d,D,OS){if(x(OS)){if(x(D)){if(!Array.isArray(w))throw new TypeError;if(!W(d))throw new TypeError;for(D=w.length-1;D>=0;--D)if(OS=(0,w[D])(d),!x(OS)){if(!W(OS))throw new TypeError;d=OS}return d}if(!Array.isArray(w))throw new TypeError;if(!t(d))throw new TypeError;D=Z(D);for(OS=w.length-1;OS>=0;--OS)(0,w[OS])(d,D)}else{if(Array.isArray(w))if(t(d)){if(x(D))throw new TypeError;
if(!t(OS))throw new TypeError;}else throw new TypeError;else throw new TypeError;D=Z(D);for(var rN=w.length-1;rN>=0;--rN){var xO=(0,w[rN])(d,D,OS);if(!x(xO)){if(!t(xO))throw new TypeError;OS=xO}}return OS}};
O.metadata=function(w,d){return function(D,OS){if(x(OS)){if(!W(D))throw new TypeError;m(D,void 0,!0).set(w,d)}else{if(!t(D))throw new TypeError;OS=Z(OS);m(D,OS,!0).set(w,d)}}};
O.defineMetadata=function(w,d){var D;if(t(d))x(D)||(D=Z(D));else throw new TypeError;m(d,D,!0).set("parameters",w)};
O.hasMetadata=function(w,d,D){if(t(d))x(D)||(D=Z(D));else throw new TypeError;return G(w,d,D)};
O.hasOwnMetadata=function(w,d,D){if(t(d))x(D)||(D=Z(D));else throw new TypeError;return B(w,d,D)};
O.getMetadata=function(w,d,D){if(t(d))x(D)||(D=Z(D));else throw new TypeError;return Q(w,d,D)};
O.getOwnMetadata=function(w,d,D){if(t(d))x(D)||(D=Z(D));else throw new TypeError;return H(w,d,D)};
O.getMetadataKeys=function(w,d){if(t(w))x(d)||(d=Z(d));else throw new TypeError;return M(w,d)};
O.getOwnMetadataKeys=function(w,d){if(t(w))x(d)||(d=Z(d));else throw new TypeError;return R(w,d)};
O.deleteMetadata=function(w,d,D){if(t(d))x(D)||(D=Z(D));else throw new TypeError;var OS=m(d,D,!1);if(!x(OS)){if(!OS.delete(w))return!1;if(OS.size>0)return!0;w=P.get(d);w.delete(D);if(w.size>0)return!0;P.delete(d);return!0}};
(function(w){if(typeof w.Reflect!=="undefined"){if(w.Reflect!==O)for(var d in O)w.Reflect[d]=O[d]}else w.Reflect=O})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Cu3||(Cu3={}));var ixN=self;var oHs=[0,_.Aw,_.GD,_.Aw];var lk9=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(lk9,_.MP);var ak8=_.zc(lk9,[0,_.ZoI,_.H4,oHs,_.GD,_.$7]);_.MQ(_.M5,_.Iw);_.v=_.M5.prototype;_.v.start=function(){this.stop();this.usingListeners_=!1;var O=kLj(this),m=yV$(this);O&&!m&&this.JSC$11317_win_.mozRequestAnimationFrame?(this.JSC$11317_id_=_.Cm(this.JSC$11317_win_,"MozBeforePaint",this.callback_),this.JSC$11317_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11317_id_=O&&m?O.call(this.JSC$11317_win_,this.callback_):this.JSC$11317_win_.setTimeout(IHm(this.callback_),20)};
_.v.stop=function(){if(this.isActive()){var O=kLj(this),m=yV$(this);O&&!m&&this.JSC$11317_win_.mozRequestAnimationFrame?Sg(this.JSC$11317_id_):O&&m?m.call(this.JSC$11317_win_,this.JSC$11317_id_):this.JSC$11317_win_.clearTimeout(this.JSC$11317_id_)}this.JSC$11317_id_=null};
_.v.fire=function(){this.stop();this.JSC$11319_doAction_()};
_.v.isActive=function(){return this.JSC$11317_id_!=null};
_.v.JSC$11319_doAction_=function(){this.usingListeners_&&this.JSC$11317_id_&&Sg(this.JSC$11317_id_);this.JSC$11317_id_=null;this.JSC$11317_listener_.call(this.handler_,_.$F())};
_.v.disposeInternal=function(){this.stop();_.M5.superClass_.disposeInternal.call(this)};
var kLj=function(O){O=O.JSC$11317_win_;return O.requestAnimationFrame||O.webkitRequestAnimationFrame||O.mozRequestAnimationFrame||O.oRequestAnimationFrame||O.msRequestAnimationFrame||null},yV$=function(O){O=O.JSC$11317_win_;
return O.cancelAnimationFrame||O.cancelRequestAnimationFrame||O.webkitCancelRequestAnimationFrame||O.mozCancelRequestAnimationFrame||O.oCancelRequestAnimationFrame||O.msCancelRequestAnimationFrame||null};_.Pu=function(O,m,G){_.Iw.call(this);this.JSC$11320_listener_=G!=null?O.bind(G):O;this.JSC$11320_interval_=m;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11320_timer_=null};
_.X(_.Pu,_.Iw);_.v=_.Pu.prototype;_.v.fire=function(O){this.args_=arguments;this.JSC$11320_timer_||this.pauseCount_?this.shouldFire_=!0:cV8(this)};
_.v.stop=function(){this.JSC$11320_timer_&&(_.Qf.clearTimeout(this.JSC$11320_timer_),this.JSC$11320_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.v.pause=function(){this.pauseCount_++};
_.v.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11320_timer_||(this.shouldFire_=!1,cV8(this))};
_.v.disposeInternal=function(){_.Iw.prototype.disposeInternal.call(this);this.stop()};
var cV8=function(O){O.JSC$11320_timer_=kN(function(){O.JSC$11320_timer_=null;O.shouldFire_&&!O.pauseCount_&&(O.shouldFire_=!1,cV8(O))},O.JSC$11320_interval_);
var m=O.args_;O.args_=null;O.JSC$11320_listener_.apply(null,m)};var YKu=function(O,m){this.childIterator_=O[_.Qf.Symbol.iterator]();this.mapFn_=m};
YKu.prototype[Symbol.iterator]=function(){return this};
YKu.prototype.next=function(){var O=this.childIterator_.next();return{value:O.done?void 0:this.mapFn_.call(void 0,O.value),done:O.done}};
var dBC=function(O,m){return new YKu(O,m)};var wX_={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 ckf=function(O){var m=eao(O);if(!m)throw Error("Vd`"+O);return m},eao=function(O){var m={};
O=String(O);var G=O.charAt(0)=="#"?O:"#"+O;if(DBe.test(G))return m.hex=Cx6(G),m.type="hex",m;G=enz(O);return G.length?(m.hex=uOO(G[0],G[1],G[2]),m.type="rgb",m):wX_&&(O=wX_[O.toLowerCase()])?(m.hex=O,m.type="named",m):null},shs=/#(.)(.)(.)/,Cx6=function(O){if(!DBe.test(O))throw Error("Xd`"+O);
O.length==4&&(O=O.replace(shs,"#$1$1$2$2$3$3"));return O.toLowerCase()},YYN=function(O){O=Cx6(O);
O=parseInt(O.slice(1),16);return[O>>16,O>>8&255,O&255]},uOO=function(O,m,G){O=Number(O);
m=Number(m);G=Number(G);if(O!=(O&255)||m!=(m&255)||G!=(G&255))throw Error("Yd`"+O+"`"+m+"`"+G);m=O<<16|m<<8|G;return O<16?"#"+(16777216|m).toString(16).slice(1):"#"+m.toString(16)},DBe=/^#(?:[0-9a-f]{3}){1,2}$/i,NHj=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,enz=function(O){var m=O.match(NHj);
if(m){O=Number(m[1]);var G=Number(m[2]);m=Number(m[3]);if(O>=0&&O<=255&&G>=0&&G<=255&&m>=0&&m<=255)return[O,G,m]}return[]};var Puj={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},VQ=Puj;VQ=Puj;var hDp,FZH,AVp;hDp=function(O,m){switch(m){case 1:return O%4!=0||O%100==0&&O%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
FZH=function(O,m,G,B,Q){O=new Date(O,m,G);Q=Q||0;return O.valueOf()+(((B!==void 0?B:3)-Q+7)%7-((O.getDay()+6)%7-Q+7)%7)*864E5};
_.kJ=function(O,m,G){typeof O==="number"?(this.date=AVp(O,m||0,G||1),O7H(this,G||1)):_.Dp(O)?(this.date=AVp(O.getFullYear(),O.getMonth(),O.getDate()),O7H(this,O.getDate())):(this.date=new Date(_.$F()),O=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),O7H(this,O))};
AVp=function(O,m,G){m=new Date(O,m,G);O>=0&&O<100&&m.setFullYear(m.getFullYear()-1900);return m};
_.v=_.kJ.prototype;_.v.firstDayOfWeek_=VQ.FIRSTDAYOFWEEK;_.v.firstWeekCutOffDay_=VQ.FIRSTWEEKCUTOFFDAY;_.v.clone=function(){var O=new _.kJ(this.date);O.firstDayOfWeek_=this.firstDayOfWeek_;O.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return O};
_.v.getFullYear=function(){return this.date.getFullYear()};
_.v.getYear=function(){return this.getFullYear()};
_.v.getMonth=function(){return this.date.getMonth()};
_.v.getDate=function(){return this.date.getDate()};
_.v.getTime=function(){return this.date.getTime()};
_.v.getDay=function(){return this.date.getDay()};
_.v.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.v.getUTCMonth=function(){return this.date.getUTCMonth()};
_.v.getUTCDate=function(){return this.date.getUTCDate()};
_.v.getUTCDay=function(){return this.date.getDay()};
_.v.getUTCHours=function(){return this.date.getUTCHours()};
_.v.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.v.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.v.set=function(O){this.date=new Date(O.getFullYear(),O.getMonth(),O.getDate())};
_.v.setFullYear=function(O){this.date.setFullYear(O)};
_.v.setYear=function(O){this.setFullYear(O)};
_.v.setMonth=function(O){this.date.setMonth(O)};
_.v.setDate=function(O){this.date.setDate(O)};
_.v.setTime=function(O){this.date.setTime(O)};
_.v.setUTCFullYear=function(O){this.date.setUTCFullYear(O)};
_.v.setUTCMonth=function(O){this.date.setUTCMonth(O)};
_.v.setUTCDate=function(O){this.date.setUTCDate(O)};
_.v.add=function(O){if(O.years||O.months){var m=this.getMonth()+O.months+O.years*12,G=this.getYear()+Math.floor(m/12);m%=12;m<0&&(m+=12);var B=Math.min(hDp(G,m),this.getDate());this.setDate(1);this.setFullYear(G);this.setMonth(m);this.setDate(B)}O.days&&(G=this.getYear(),m=G>=0&&G<=99?-1900:0,O=new Date((new Date(G,this.getMonth(),this.getDate(),12)).getTime()+O.days*864E5),this.setDate(1),this.setFullYear(O.getFullYear()+m),this.setMonth(O.getMonth()),this.setDate(O.getDate()),O7H(this,O.getDate()))};
_.v.JSC$11333_toIsoString=function(O){var m=this.getFullYear(),G=m<0?"-":m>=1E4?"+":"";return[G+_.Ub(Math.abs(m),G?6:4),_.Ub(this.getMonth()+1,2),_.Ub(this.getDate(),2)].join(O?"-":"")};
_.v.equals=function(O){return!(!O||this.getYear()!=O.getYear()||this.getMonth()!=O.getMonth()||this.getDate()!=O.getDate())};
_.v.toString=function(){return this.JSC$11333_toIsoString()};
var O7H=function(O,m){O.getDate()!=m&&O.date.setUTCHours(O.date.getUTCHours()+(O.getDate()<m?1:-1))};
_.kJ.prototype.valueOf=function(){return this.date.valueOf()};var cv=function(O,m,G,B,Q){this.reversed=!!m;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!G;O&&yY(this,O,B);this.depth=Q!=void 0?Q:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.MQ(cv,Vq);var yY=function(O,m,G,B){if(O.node=m)O.tagType=typeof G==="number"?G:O.node.nodeType!=1?0:O.reversed?-1:1;typeof B==="number"&&(O.depth=B)};
_.v=cv.prototype;_.v.JSC$11348_copyFrom=function(O){this.node=O.node;this.tagType=O.tagType;this.depth=O.depth;this.reversed=O.reversed;this.constrained=O.constrained};
_.v.clone=function(){return new cv(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.v.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return ba;var O=this.node;var m=this.reversed?-1:1;if(this.tagType==m){var G=this.reversed?O.lastChild:O.firstChild;G?yY(this,G):yY(this,O,m*-1)}else(G=this.reversed?O.previousSibling:O.nextSibling)?yY(this,G):yY(this,O.parentNode,m*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(O=this.node)?nT(O):ba};
_.v.equals=function(O){return O.node==this.node&&(!this.node||O.tagType==this.tagType)};
_.v.splice=function(O){var m=this.node,G=this.reversed?1:-1;this.tagType==G&&(this.tagType=G*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;cv.prototype.next.call(this);this.reversed=!this.reversed;G=_.YO(arguments[0])?arguments[0]:arguments;for(var B=G.length-1;B>=0;B--)_.ds(G[B],m);_.hF(m)};var mj$=function(){},YJ=function(O){for(var m=[],G=O.getTextRangeCount(),B=0;B<G;B++)m.push(O.getTextRange(B));
return m};
mj$.prototype.isReversed=function(){return!1};
mj$.prototype.getWindow=function(){return cY(_.Y6(this.JSC$11350_getStartNode()))};
var Gwo=function(O,m){cv.call(this,O,m,!0)};
_.MQ(Gwo,cv);var dw=function(O,m,G,B,Q){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!Q;if(O){this.startNode_=O;this.startOffset_=m;this.endNode_=G;this.endOffset_=B;if(O.nodeType==1&&O.tagName!="BR")if(O=O.childNodes,m=O[m])this.startNode_=m,this.startOffset_=0;else{O.length&&(this.startNode_=_.Sr(O));var H=!0}G.nodeType==1&&((this.endNode_=G.childNodes[B])?this.endOffset_=0:this.endNode_=G)}cv.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);H&&this.next()};
_.MQ(dw,Gwo);_.v=dw.prototype;_.v.JSC$11356_getStartNode=function(){return this.startNode_};
_.v.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)};
_.v.next=function(){return this.isLast()?ba:dw.superClass_.next.call(this)};
_.v.JSC$11348_copyFrom=function(O){this.startNode_=O.startNode_;this.endNode_=O.endNode_;this.startOffset_=O.startOffset_;this.endOffset_=O.endOffset_;this.isReversed_=O.isReversed_;dw.superClass_.JSC$11348_copyFrom.call(this,O)};
_.v.clone=function(){var O=new dw(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);O.JSC$11348_copyFrom(this);return O};var BX$=function(){};
BX$.prototype.__iterator__=function(){return new dw(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var ww=function(O){this.range_=O};
_.MQ(ww,BX$);var Quu=function(O){var m=_.Y6(O).createRange();if(O.nodeType==3)m.setStart(O,0),m.setEnd(O,O.length);else if(y7(O)||O.nodeType==3){for(var G,B=O;(G=B.firstChild)&&(y7(G)||G.nodeType==3);)B=G;m.setStart(B,0);for(B=O;(G=B.lastChild)&&(y7(G)||G.nodeType==3);)B=G;m.setEnd(B,B.nodeType==1?B.childNodes.length:B.length)}else G=O.parentNode,O=Array.prototype.indexOf.call(G.childNodes,O),m.setStart(G,O),m.setEnd(G,O+1);return m},H7u=function(O,m,G,B){var Q=_.Y6(O).createRange();
Q.setStart(O,m);Q.setEnd(G,B);return Q};
_.v=ww.prototype;_.v.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.v.getContainer=function(){return this.range_.commonAncestorContainer};
_.v.compareBrowserRangeEndpoints=function(O,m,G){return this.range_.compareBoundaryPoints(G==1?m==1?_.Qf.Range.START_TO_START:_.Qf.Range.START_TO_END:m==1?_.Qf.Range.END_TO_START:_.Qf.Range.END_TO_END,O)};
_.v.isCollapsed=function(){return this.range_.collapsed};
_.v.select=function(O){this.selectInternal(cY(_.Y6(this.range_.startContainer)).getSelection(),O)};
_.v.selectInternal=function(O){O.removeAllRanges();O.addRange(this.range_)};
_.v.insertNode=function(O,m){var G=this.range_.cloneRange();G.collapse(m);G.insertNode(O);G.detach();return O};
_.v.collapse=function(O){this.range_.collapse(O)};_.MQ(rK,ww);rK.prototype.selectInternal=function(O,m){!m||this.isCollapsed()?rK.superClass_.selectInternal.call(this,O,m):(O.collapse(this.range_.endContainer,this.range_.endOffset),O.extend(this.range_.startContainer,this.range_.startOffset))};_.MQ(Rq,ww);Rq.prototype.compareBrowserRangeEndpoints=function(O,m,G){return Rq.superClass_.compareBrowserRangeEndpoints.call(this,O,m,G)};
Rq.prototype.selectInternal=function(O,m){m?O.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):O.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var vZ_=function(O){return _.Ug?new Rq(O):_.qQ?new rK(O):new ww(O)};var e8=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},K$u;
_.MQ(e8,mj$);K$u=function(O,m){var G=new e8;G.browserRangeWrapper_=O;G.isReversed_=!!m;return G};
_.$js=function(O){O=_.Ug?new Rq(Quu(O)):_.qQ?new rK(Quu(O)):new ww(Quu(O));return K$u(O)};
_.Dd=function(O,m,G,B){var Q=new e8;Q.isReversed_=Mie(O,m,G,B);if(_.GH(O)&&!y7(O)){var H=O.parentNode;m=Array.prototype.indexOf.call(H.childNodes,O);O=H}_.GH(G)&&!y7(G)&&(H=G.parentNode,B=Array.prototype.indexOf.call(H.childNodes,G),G=H);Q.isReversed_?(Q.startNode_=G,Q.startOffset_=B,Q.endNode_=O,Q.endOffset_=m):(Q.startNode_=O,Q.startOffset_=m,Q.endNode_=G,Q.endOffset_=B);return Q};
_.v=e8.prototype;_.v.clone=function(){var O=new e8;O.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();O.startNode_=this.startNode_;O.startOffset_=this.startOffset_;O.endNode_=this.endNode_;O.endOffset_=this.endOffset_;O.isReversed_=this.isReversed_;return O};
_.v.JSC$11350_getType=function(){return"text"};
_.v.getBrowserRangeObject=function(){return si(this).range_};
_.v.getTextRangeCount=function(){return 1};
_.v.getTextRange=function(){return this};
var si=function(O){var m;if(!(m=O.browserRangeWrapper_)){m=O.JSC$11350_getStartNode();var G=O.JSC$11350_getStartOffset(),B=O.JSC$11350_getEndNode(),Q=O.JSC$11350_getEndOffset();m=_.Ug?new Rq(H7u(m,G,B,Q)):_.qQ?new rK(H7u(m,G,B,Q)):new ww(H7u(m,G,B,Q));m=O.browserRangeWrapper_=m}return m};
_.v=e8.prototype;_.v.getContainer=function(){return si(this).getContainer()};
_.v.JSC$11350_getStartNode=function(){return this.startNode_||(this.startNode_=si(this).range_.startContainer)};
_.v.JSC$11350_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=si(this).range_.startOffset};
_.v.JSC$11350_getEndNode=function(){return this.endNode_||(this.endNode_=si(this).range_.endContainer)};
_.v.JSC$11350_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=si(this).range_.endOffset};
_.v.isReversed=function(){return this.isReversed_};
_.v.JSC$11350_containsRange=function(O,m){if(O.JSC$11350_getType()=="text"){var G=si(this);O=si(O);m=m&&!O.isCollapsed();O=O.range_;G=m?G.compareBrowserRangeEndpoints(O,0,1)>=0&&G.compareBrowserRangeEndpoints(O,1,0)<=0:G.compareBrowserRangeEndpoints(O,0,0)>=0&&G.compareBrowserRangeEndpoints(O,1,1)<=0}else G=!1;return G};
_.v.isCollapsed=function(){return si(this).isCollapsed()};
_.v.JSC$11350_getText=function(){return si(this).range_.toString()};
_.v.__iterator__=function(){return new dw(this.JSC$11350_getStartNode(),this.JSC$11350_getStartOffset(),this.JSC$11350_getEndNode(),this.JSC$11350_getEndOffset())};
_.v.select=function(){si(this).select(this.isReversed_)};
_.v.JSC$11350_removeContents=function(){var O=si(this).range_;O.extractContents();if(O.startContainer.hasChildNodes()&&(O=O.startContainer.childNodes[O.startOffset])){var m=O.previousSibling;j38(O)==""&&_.hF(O);m&&j38(m)==""&&_.hF(m)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.v.insertNode=function(O,m){O=si(this).insertNode(O,m);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return O};
_.v.collapse=function(O){O=this.isReversed()?!O:O;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(O);O?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var rG9=function(){};
_.MQ(rG9,mj$);rG9.prototype.JSC$11350_containsRange=function(O,m){var G=YJ(this);O=YJ(O);return(m?Av:_.j0s)(O,function(B){return Av(G,function(Q){return Q.JSC$11350_containsRange(B,m)})})};
rG9.prototype.insertNode=function(O,m){m?_.Y7(O,this.JSC$11350_getStartNode()):_.ds(O,this.JSC$11350_getEndNode());return O};var RSj,i7j=jS().JSC$9327_document_.documentElement;RSj=i7j.requestFullscreen?"fullscreenchange":i7j.webkitRequestFullscreen?"webkitfullscreenchange":i7j.mozRequestFullScreen?"mozfullscreenchange":i7j.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var xju=function(){var O=jS().JSC$9327_document_;return!!(O.webkitIsFullScreen||O.mozFullScreen||O.msFullscreenElement||O.fullscreenElement)};var Ns=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.MQ(Ns,rG9);_.v=Ns.prototype;_.v.clone=function(){var O=new Ns;O.browserRanges_=_.cM(this.browserRanges_);return O};
_.v.JSC$11350_getType=function(){return"mutli"};
_.v.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.v.getTextRangeCount=function(){return this.browserRanges_.length};
_.v.getTextRange=function(O){this.ranges_[O]||(this.ranges_[O]=K$u(vZ_(this.browserRanges_[O])));return this.ranges_[O]};
_.v.getContainer=function(){if(!this.container_){for(var O=[],m=this.getTextRangeCount(),G=0;G<m;G++)O.push(this.getTextRange(G).getContainer());this.container_=nho.apply(null,O)}return this.container_};
var Pv=function(O){O.sortedRanges_||(O.sortedRanges_=YJ(O),O.sortedRanges_.sort(function(m,G){var B=m.JSC$11350_getStartNode();m=m.JSC$11350_getStartOffset();var Q=G.JSC$11350_getStartNode();G=G.JSC$11350_getStartOffset();return B==Q&&m==G?0:Mie(B,m,Q,G)?1:-1}));
return O.sortedRanges_};
_.v=Ns.prototype;_.v.JSC$11350_getStartNode=function(){return Pv(this)[0].JSC$11350_getStartNode()};
_.v.JSC$11350_getStartOffset=function(){return Pv(this)[0].JSC$11350_getStartOffset()};
_.v.JSC$11350_getEndNode=function(){return _.Sr(Pv(this)).JSC$11350_getEndNode()};
_.v.JSC$11350_getEndOffset=function(){return _.Sr(Pv(this)).JSC$11350_getEndOffset()};
_.v.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.v.JSC$11350_getText=function(){return YJ(this).map(function(O){return O.JSC$11350_getText()}).join("")};
_.v.__iterator__=function(){return new Fu(this)};
_.v.select=function(){var O=this.getWindow().getSelection();O.removeAllRanges();for(var m=this.getTextRangeCount(),G=0;G<m;G++)O.addRange(this.getTextRange(G).getBrowserRangeObject())};
_.v.JSC$11350_removeContents=function(){YJ(this).forEach(function(O){O.JSC$11350_removeContents()})};
_.v.collapse=function(O){if(!this.isCollapsed()){var m=O?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;m.collapse(O);this.ranges_=[m];this.sortedRanges_=[m];this.browserRanges_=[m.getBrowserRangeObject()]}};
var Fu=function(O){this.iterators_=null;this.currentIdx_=0;O&&(this.iterators_=Pv(O).map(function(m){return _.f1U(m)}));
cv.call(this,O?this.JSC$11356_getStartNode():null,!1,!0)};
_.MQ(Fu,Gwo);_.v=Fu.prototype;_.v.JSC$11356_getStartNode=function(){return this.iterators_[0].JSC$11356_getStartNode()};
_.v.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.v.next=function(){for(;this.currentIdx_<this.iterators_.length;){var O=this.iterators_[this.currentIdx_],m=O.next();if(m.done)this.currentIdx_++;else return yY(this,O.node,O.tagType,O.depth),m}return ba};
_.v.JSC$11348_copyFrom=function(O){this.iterators_=_.cM(O.iterators_);Fu.superClass_.JSC$11348_copyFrom.call(this,O)};
_.v.clone=function(){var O=new Fu(null);O.JSC$11348_copyFrom(this);return O};var qco,Mie;_.tI=function(){var O=window.getSelection();return O&&qco(O)};
qco=function(O){var m=!1;if(O.createRange)try{var G=O.createRange()}catch(Q){return null}else if(O.rangeCount){if(O.rangeCount>1){G=new Ns;m=O.rangeCount;for(var B=0;B<m;B++)G.browserRanges_.push(O.getRangeAt(B));return G}G=O.getRangeAt(0);m=Mie(O.anchorNode,O.anchorOffset,O.focusNode,O.focusOffset)}else return null;return K$u(vZ_(G),m)};
_.Ax=function(O,m){return _.Dd(O,m,O,m)};
_.Oo=function(O,m,G,B){return _.Dd(O,m,G,B)};
Mie=function(O,m,G,B){if(O==G)return B<m;var Q;if(O.nodeType==1&&m)if(Q=O.childNodes[m])O=Q,m=0;else if(_.DZ(O,G))return!0;if(G.nodeType==1&&B)if(Q=G.childNodes[B])G=Q,B=0;else if(_.DZ(G,O))return!1;return(bB2(O,G)||m-B)>0};var mO=function(){_.Ly.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.pd)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.pd)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.pd)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.pd)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.pd)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.pd)(this.dispatchProgressEvent_,this)};
_.MQ(mO,_.Ly);mO.prototype.abort=function(){try{this.reader_.abort()}catch(O){throw new jyp(O,"aborting read");}};
mO.prototype.getError=function(){return this.reader_.error&&new jyp(this.reader_.error,"reading file")};
mO.prototype.dispatchProgressEvent_=function(O){this.dispatchEvent(new Ib$(O,this))};
mO.prototype.disposeInternal=function(){mO.superClass_.disposeInternal.call(this);delete this.reader_};
var tiU=function(O){var m=new mO,G=Uj3(m);m.reader_.readAsArrayBuffer(O);return G},W$u=function(O){var m=new mO,G=Uj3(m);
m.reader_.readAsDataURL(O);return G},Uj3=function(O){var m=new vG;
O.listen("loadend",_.hK(function(G,B){var Q=B.reader_.result,H=B.getError();Q==null||H?G.errback(H):G.callback(Q);B.dispose()},m,O));
return m};var Gv=function(){_.Ly.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11390_eventHandler_=new _.xf(this);this.JSC$11390_isInitialized_=!1};
_.MQ(Gv,_.Ly);var Z7o=new _.ul("d"),zS9=new _.ul("beforedragstart"),JG2=new _.ul("dragstart"),Vip=new _.ul("beforedragmove"),b7e=new _.ul("dragmove"),nZC=new _.ul("beforedragend"),XCU=new _.ul("dragend"),fO9=new _.ul("e");Gv.prototype.isDragging=function(){return!!this.JSC$11390_dragger_};
var hSH=function(O,m){m.dlgGrowthDirection_=0;m.dlgDragHoverClass_=void 0;m.dlgDragPermission=0;O.dragLists_.push(m)},TX_=function(O,m){O.getHandleForDragItem_=m};
Gv.prototype.init=function(){if(!this.JSC$11390_isInitialized_){for(var O=this.dragLists_.length,m=0;m<O;m++)for(var G=_.ws(this.dragLists_[m]),B=G.length,Q=0;Q<B;++Q){var H=G[Q],M=this.getHandleForDragItem_(H),R=_.sS(M);this.dragItemForHandle_[R]=H;this.dragItemHoverClasses_&&(this.JSC$11390_eventHandler_.listen(H,"mouseover",this.handleDragItemMouseover_),this.JSC$11390_eventHandler_.listen(H,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11390_eventHandler_.listen(M,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11390_eventHandler_.listen(M,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(H);this.JSC$11390_eventHandler_.listen(M,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11390_isInitialized_=!0}};
Gv.prototype.disposeInternal=function(){this.JSC$11390_eventHandler_.dispose();for(var O=this.dragLists_.length,m=0;m<O;m++){var G=this.dragLists_[m];G.dlgGrowthDirection_=void 0;G.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;gZ8(this);Gv.superClass_.disposeInternal.call(this)};
var uV8=function(O,m){for(var G=O.dragLists_.length,B=0;B<G;B++){var Q=O.dragLists_[B];Q.dlgBounds_=P46(Q)}G=O.dragItems_.length;for(B=0;B<G;B++)Q=O.dragItems_[B],Q!=m&&(Q.dlgBounds_=P46(Q))};
_.v=Gv.prototype;
_.v.handlePotentialDragStart_=function(O){var m=_.sS(O.currentTarget);m=this.dragItemForHandle_[m];if(m.parentElement.dlgDragPermission!=2){this.currDragItem_=m;a:{m=this.currDragItem_;for(var G=m.cloneNode(!0),B=Ty("TEXTAREA",m),Q=Ty("TEXTAREA",G),H=0;H<B.length;H++)Q[H].value=B[H].value;switch(m.tagName){case "TR":m=_.aD("TABLE",null,_.aD("TBODY",null,G));break a;case "TD":case "TH":m=_.aD("TABLE",null,_.aD("TBODY",null,_.aD("TR",null,G)));break a;case "TEXTAREA":G.value=m.value;default:m=G;break a}m=
void 0}this.draggerEl_=m;this.draggerElClasses_&&Qn(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Y6(this.currDragItem_).body.appendChild(this.draggerEl_);G=_.d9(this.currDragItem_);m=this.draggerEl_;B=_.d9(m);if(G instanceof _.yD){var M=G.y;G=G.x}P4(m,m.offsetLeft+(G-B.x),m.offsetTop+(Number(M)-B.y));this.JSC$11390_dragger_=new _.F0(this.draggerEl_);_.uF9(this.JSC$11390_dragger_,this.hysteresisDistance_);
_.Cm(this.JSC$11390_dragger_,"start",this.handleDragStart_,!1,this);_.Cm(this.JSC$11390_dragger_,"end",this.handleDragEnd_,!1,this);_.Cm(this.JSC$11390_dragger_,"earlycancel",this.JSC$11392_cleanup_,!1,this);this.dispatchEvent(new BK(Z7o,this,O,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_));this.JSC$11390_dragger_.startDrag(O)}};
_.v.handleDragStart_=function(O){if(this.dispatchEvent(new BK(zS9,this,O.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.z0e(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Qn(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var m=Cys(this.draggerEl_);this.draggerEl_.halfWidth=m.width/2;this.draggerEl_.halfHeight=m.height/2;m=this.draggerEl_.getBoundingClientRect();
var G=O.clientY,B=jOm(this.JSC$11390_dragger_,O.clientX);if(B>m.right){var Q=this.currDragItem_.getBoundingClientRect();this.JSC$11390_dragger_.deltaX=B-(B-Q.left)/Q.width*m.width}G=IDC(this.JSC$11390_dragger_,G);G>m.bottom&&(this.JSC$11390_dragger_.deltaY+=G-m.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";uV8(this,this.currDragItem_);this.currDragItem_.style.display="";_.Cm(this.JSC$11390_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new BK(JG2,
this,O.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_))}else O.preventDefault(),this.JSC$11392_cleanup_()};
_.v.handleDragMove_=function(O){var m=_.d9(this.draggerEl_);m=new _.yD(m.x+this.draggerEl_.halfWidth,m.y+this.draggerEl_.halfHeight);a:{var G=null;if(this.currDragItem_.style.display!="none"){G=this.currDragItem_.parentNode;var B=P46(G);if(juU(m,B))break a}B=this.dragLists_.length;for(var Q=0;Q<B;Q++){var H=this.dragLists_[Q];if(H!=G&&juU(m,H.dlgBounds_)){G=H;break a}}G=null}if(G){if(G==null)throw Error("Zd");B=0;Q=!1;H=void 0;switch(G.dlgGrowthDirection_){case 0:B=m.y;var M=IO3;var R=pCp;break;case 4:Q=
!0;case 2:B=m.x;M=Sc$;R=pCp;break;case 5:Q=!0;case 3:B=m.x,M=EZu,R=L$9}for(var x=null,t,W=_.ws(G),Z=W.length,z=0;z<Z;z++){var J=W[z];if(J!=this.currDragItem_){var n=M(J.dlgBounds_);if(Q){var I=CcC(J,m);H===void 0&&(H=I);R(B,n)&&(t==void 0||I<H||I==H&&(R(n,t)||n==t))&&(x=J,t=n);I<H&&(H=I)}else R(B,n)&&(t==void 0||R(n,t))&&(x=J,t=n)}}M=x!==null&&CcC(x,m)>H?null:x}else M=null;if(!this.dispatchEvent(new BK(Vip,this,O,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_,m,G,M)))return!1;if(G&&G.dlgDragPermission!=
1)this.currDragItem_.parentNode==G&&_.z0e(this.currDragItem_)==M||G.insertBefore(this.currDragItem_,M),this.currDragItem_.style.display="",G.dlgDragHoverClass_&&_.$g(G,G.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",R=this.dragLists_.length,t=0;t<R;t++)B=this.dragLists_[t],B.dlgDragHoverClass_&&_.v6(B,B.dlgDragHoverClass_);G!=this.currHoverList_&&(this.currHoverList_=G,uV8(this,this.currDragItem_));this.dispatchEvent(new BK(b7e,this,O,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_,
m,G,M));return!1};
_.v.JSC$11392_cleanup_=function(){gZ8(this);this.JSC$11390_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var O=this.dragLists_.length,m=0;m<O;m++)this.dragLists_[m].dlgBounds_=null;O=this.dragItems_.length;for(m=0;m<O;m++)this.dragItems_[m].dlgBounds_=null};
_.v.handleDragEnd_=function(O){if(!this.dispatchEvent(new BK(nZC,this,O,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_)))return!1;gZ8(this);this.dispatchEvent(new BK(XCU,this,O,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_));this.JSC$11392_cleanup_();return!0};
var gZ8=function(O){_.Kd(O.JSC$11390_dragger_);var m=O.draggerEl_&&O.draggerEl_.parentElement;O.draggerEl_&&_.hF(O.draggerEl_);O.currDragItem_&&O.currDragItem_.style.display=="none"&&(O.origList_.insertBefore(O.currDragItem_,O.origNextItem_),O.currDragItem_.style.display="");O.currDragItemClasses_&&O.currDragItem_?Thm(O.currDragItem_,O.currDragItemClasses_||[]):O.currDragItem_&&(O.currDragItem_.style.visibility="");for(var G=O.dragLists_.length,B=0;B<G;B++){var Q=O.dragLists_[B];Q.dlgDragHoverClass_&&
_.v6(Q,Q.dlgDragHoverClass_)}m&&O.dispatchEvent(new BK(fO9,O,null,O.currDragItem_,O.draggerEl_,O.JSC$11390_dragger_))};
_.v=Gv.prototype;_.v.getHandleForDragItem_=function(O){return O};
_.v.handleDragItemMouseover_=function(O){Qn(O.currentTarget,this.dragItemHoverClasses_||[])};
_.v.handleDragItemMouseout_=function(O){Thm(O.currentTarget,this.dragItemHoverClasses_||[])};
_.v.handleDragItemHandleMouseover_=function(O){Qn(O.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.v.handleDragItemHandleMouseout_=function(O){Thm(O.currentTarget,this.dragItemHandleHoverClasses_||[])};
var juU=function(O,m){return O.x>m.left&&O.x<m.left+m.width&&O.y>m.top&&O.y<m.top+m.height},CcC=function(O,m){O=O.dlgBounds_;
return Math.abs(m.y-(O.top+(O.height-1)/2))},IO3=function(O){return O.top+O.height-1},Sc$=function(O){return O.left+O.width-1},EZu=function(O){return O.left||0},pCp=function(O,m){return O<m},L$9=function(O,m){return O>m},BK=function(O,m,G,B,Q,H){_.jB.call(this,O);
this.event=G;this.currDragItem=B;this.draggerEl=Q;this.JSC$11394_dragger=H};
_.MQ(BK,_.jB);_.MQ(q5,_.Iw);var oZC=new _.yD(0,0);q5.prototype.JSC$11398_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
q5.prototype.JSC$11398_onMouseMove=function(O){var m=this.containerIsActuallyContent_?oZC:uC(jS(this.containerNode_)),G=this.horizontalScrolling_?this.calculateScrollDelta(O.clientX+m.x,this.scrollBounds_.left,this.scrollBounds_.width):0,B=this.calculateScrollDelta(O.clientY+m.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=G;this.scrollDelta_.y=B;!(G=!G&&!B)&&(G=this.constrainScroll_)&&(G=O.clientX+m.x,O=O.clientY+m.y,m=this.containerBounds_,G=!(m.left<=G&&m.left+m.width>=
G&&m.top<=O&&m.top+m.height>=O));G?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
q5.prototype.calculateScrollDelta=function(O,m,G){var B=0;O<m?B=-8:O>m+G&&(B=8);return B};
q5.prototype.disposeInternal=function(){q5.superClass_.disposeInternal.call(this);this.JSC$11396_eventHandler_.dispose();this.scrollTimer_.dispose()};var lO_={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"}}},Qx=lO_;Qx=lO_;var HK={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 aOH=function(){},GL=function(O){if(typeof O=="number"){var m=new aOH;
m.standardOffset_=O;var G=O;if(G==0)G="Etc/GMT";else{var B=["Etc/GMT",G<0?"-":"+"];G=Math.abs(G);B.push(Math.floor(G/60)%100);G%=60;G!=0&&B.push(":",_.Ub(G,2));G=B.join("")}m.timeZoneId_=G;G=O;G==0?G="UTC":(B=["UTC",G<0?"+":"-"],G=Math.abs(G),B.push(Math.floor(G/60)%100),G%=60,G!=0&&B.push(":",G),G=B.join(""));O=kw3(O);m.tzNames_=[G,G];m.tzNamesExt_={STD_LONG_NAME_GMT:O,STD_GENERIC_LOCATION:O};m.transitions_=[];return m}m=new aOH;m.timeZoneId_=O.id;m.standardOffset_=-O.std_offset;m.tzNames_=O.names;
m.tzNamesExt_=O.names_ext;m.transitions_=O.transitions;return m},kw3=function(O){var m=["GMT"];
m.push(O<=0?"+":"-");O=Math.abs(O);m.push(_.Ub(Math.floor(O/60)%100,2),":",_.Ub(O%60,2));return m.join("")},yGj=function(O,m){m=Date.UTC(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate(),m.getUTCHours(),m.getUTCMinutes())/36E5;
for(var G=0;G<O.transitions_.length&&m>=O.transitions_[G];)G+=2;return G==0?0:O.transitions_[G-1]},cG_=function(O,m){O=O.standardOffset_-yGj(O,m);
return O===-1440?0:O};var BX=function(O,m){this.patternParts_=[];this.JSC$11409_dateTimeSymbols_=m||VQ;typeof O=="number"?YcH(this,O):dj8(this,O)},wCm=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],vK=function(O){return O.getHours?O.getHours():0},dj8=function(O,m){for(NS6&&(m=m.replace(/\u200f/g,""));m;){for(var G=m,B=0;B<wCm.length;++B){var Q=m.match(wCm[B]);
if(Q){var H=Q[0];m=m.substring(H.length);B==0&&(H=="''"?H="'":(H=H.substring(1,Q[1]=="'"?H.length-1:H.length),H=H.replace(/''/g,"'")));O.patternParts_.push({text:H,type:B});break}}if(G===m)throw Error("$d`"+m);}};
BX.prototype.format=function(O,m){if(!O)throw Error("ae");var G=m?(O.getTimezoneOffset()-cG_(m,O))*6E4:0,B=G?new Date(O.getTime()+G):O,Q=B;m&&B.getTimezoneOffset()!=O.getTimezoneOffset()&&(B=new Date(B.getTime()+(B.getTimezoneOffset()-O.getTimezoneOffset())*6E4),Q=new Date(O.getTime()+(G+(G>0?-864E5:864E5))));G=[];for(var H=0;H<this.patternParts_.length;++H){var M=this.patternParts_[H].text;1==this.patternParts_[H].type?G.push(eSu(this,M,O,B,Q,m)):G.push(M)}return G.join("")};
var YcH=function(O,m){if(m<4)var G=O.JSC$11409_dateTimeSymbols_.DATEFORMATS[m];else if(m<8)G=O.JSC$11409_dateTimeSymbols_.TIMEFORMATS[m-4];else if(m<12)G=O.JSC$11409_dateTimeSymbols_.DATETIMEFORMATS[m-8],G=G.replace("{1}",O.JSC$11409_dateTimeSymbols_.DATEFORMATS[m-8]),G=G.replace("{0}",O.JSC$11409_dateTimeSymbols_.TIMEFORMATS[m-8]);else if(m===12)G=O.JSC$11409_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(m===13)G=O.JSC$11409_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{YcH(O,10);return}dj8(O,G)},KG=function(O,m){m=String(m);
O=O.JSC$11409_dateTimeSymbols_||VQ;if(O.ZERODIGIT!==void 0&&!sts){for(var G=[],B=0;B<m.length;B++){var Q=m.charCodeAt(B);G.push(48<=Q&&Q<=57?String.fromCharCode(O.ZERODIGIT+Q-48):m.charAt(B))}m=G.join("")}return m},sts=!1,NS6=!1,suj=function(O,m,G,B){G=G.getFullYear();
G<=0&&B&&(G=1-G);return KG(O,Dj9(G,m))},Dj9=function(O,m){m==2&&(O%=100);
O<0&&m++;return _.Ub(O,m)},$L=function(O){if(!(O.getHours&&O.getSeconds&&O.getMinutes))throw Error("be");
},NXC=function(O,m){$L(m);
m=vK(m);return O.JSC$11409_dateTimeSymbols_.AMPMS[m>=12&&m<24?1:0]},eSu=function(O,m,G,B,Q,H){var M=m.length;
switch(m.charAt(0)){case "G":return G=B.getFullYear()>0?1:0,M>=4?O.JSC$11409_dateTimeSymbols_.ERANAMES[G]:O.JSC$11409_dateTimeSymbols_.ERAS[G];case "y":return suj(O,M,B,!0);case "Y":return G=(new Date(FZH(B.getFullYear(),B.getMonth(),B.getDate(),O.JSC$11409_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,O.JSC$11409_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),M==2&&(G%=100),KG(O,Dj9(G,M));case "u":return suj(O,M,B,!1);case "M":a:switch(G=B.getMonth(),M){case 5:M=O.JSC$11409_dateTimeSymbols_.NARROWMONTHS[G];
break a;case 4:M=O.JSC$11409_dateTimeSymbols_.MONTHS[G];break a;case 3:M=O.JSC$11409_dateTimeSymbols_.SHORTMONTHS[G];break a;default:M=KG(O,_.Ub(G+1,M))}return M;case "k":return $L(Q),KG(O,_.Ub(vK(Q)||24,M));case "S":return KG(O,(Q.getMilliseconds()/1E3).toFixed(Math.min(3,M)).slice(2)+(M>3?_.Ub(0,M-3):""));case "E":return G=B.getDay(),M>=4?O.JSC$11409_dateTimeSymbols_.WEEKDAYS[G]:O.JSC$11409_dateTimeSymbols_.SHORTWEEKDAYS[G];case "a":return NXC(O,Q);case "b":return NXC(O,Q);case "B":return NXC(O,
Q);case "h":return $L(Q),KG(O,_.Ub(vK(Q)%12||12,M));case "K":return $L(Q),KG(O,_.Ub(vK(Q)%12,M));case "H":return $L(Q),KG(O,_.Ub(vK(Q),M));case "c":a:switch(G=B.getDay(),M){case 5:M=O.JSC$11409_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[G];break a;case 4:M=O.JSC$11409_dateTimeSymbols_.STANDALONEWEEKDAYS[G];break a;case 3:M=O.JSC$11409_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[G];break a;default:M=KG(O,_.Ub(G,1))}return M;case "L":a:switch(G=B.getMonth(),M){case 5:M=O.JSC$11409_dateTimeSymbols_.STANDALONENARROWMONTHS[G];
break a;case 4:M=O.JSC$11409_dateTimeSymbols_.STANDALONEMONTHS[G];break a;case 3:M=O.JSC$11409_dateTimeSymbols_.STANDALONESHORTMONTHS[G];break a;default:M=KG(O,_.Ub(G+1,M))}return M;case "Q":return G=Math.floor(B.getMonth()/3),M<4?O.JSC$11409_dateTimeSymbols_.SHORTQUARTERS[G]:O.JSC$11409_dateTimeSymbols_.QUARTERS[G];case "d":return KG(O,_.Ub(B.getDate(),M));case "m":return $L(Q),KG(O,_.Ub(Q.getMinutes?Q.getMinutes():0,M));case "s":return $L(Q),KG(O,_.Ub(Q.getSeconds(),M));case "v":return(H||GL(G.getTimezoneOffset())).timeZoneId_;
case "V":return O=H||GL(G.getTimezoneOffset()),M<=2?O.timeZoneId_:yGj(O,G)>0?O.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?O.tzNamesExt_.DST_GENERIC_LOCATION:O.tzNamesExt_.DST_GENERIC_LOCATION:O.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?O.tzNamesExt_.STD_GENERIC_LOCATION:O.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return G=FZH(Q.getFullYear(),Q.getMonth(),Q.getDate(),O.JSC$11409_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,O.JSC$11409_dateTimeSymbols_.FIRSTDAYOFWEEK),KG(O,_.Ub(Math.floor(Math.round((G-(new Date((new Date(G)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,M));case "z":return O=H||GL(G.getTimezoneOffset()),M<4?O.tzNames_[yGj(O,G)>0?2:0]:O.tzNames_[yGj(O,G)>0?3:1];case "Z":return m=H||GL(G.getTimezoneOffset()),M<4?(M=-cG_(m,G),O=[M<0?"-":"+"],M=Math.abs(M),O.push(_.Ub(Math.floor(M/60)%100,2),_.Ub(M%60,2)),M=O.join("")):M=KG(O,kw3(cG_(m,G))),M;default:return""}};var Pc8=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,F$2=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,FQY=function(O){this.patternParts_=[];this.JSC$11418_dateTimeSymbols_=VQ;if(typeof O=="number"){O>11&&(O=10);if(O<4)var m=this.JSC$11418_dateTimeSymbols_.DATEFORMATS[O];else O<8?m=this.JSC$11418_dateTimeSymbols_.TIMEFORMATS[O-4]:(m=this.JSC$11418_dateTimeSymbols_.DATETIMEFORMATS[O-8],m=m.replace("{1}",this.JSC$11418_dateTimeSymbols_.DATEFORMATS[O-8]),m=m.replace("{0}",this.JSC$11418_dateTimeSymbols_.TIMEFORMATS[O-
8]));AGC(this,m)}else AGC(this,O)},AGC=function(O,m){for(var G=!1,B="",Q=0;Q<m.length;Q++){var H=m.charAt(Q);
if(Pc8.test(H))for(B.length>0&&(O.patternParts_.push({text:B,count:0,abutStart:!1,numeric:!1}),B=""),O.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});Q<m.length-1&&m.charAt(Q+1)==" ";)Q++;else if(G)H=="'"?Q+1<m.length&&m.charAt(Q+1)=="'"?(B+="'",Q++):G=!1:B+=H;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(H)>=0){B.length>0&&(O.patternParts_.push({text:B,count:0,abutStart:!1,numeric:!1}),B="");for(var M=m.charAt(Q),R=Q+1;R<m.length&&m.charAt(R)==M;)R++;M=R-Q;M<=0?R=!1:(R="MydhHmsSDkK".indexOf(H),
R=R>0||R==0&&M<3);O.patternParts_.push({text:H,count:M,abutStart:!1,numeric:R});Q+=M-1}else H=="'"?Q+1<m.length&&m.charAt(Q+1)=="'"?(B+="'",Q++):G=!0:B+=H}B.length>0&&O.patternParts_.push({text:B,count:0,abutStart:!1,numeric:!1});m=!1;for(G=0;G<O.patternParts_.length;G++)O.patternParts_[G].numeric?!m&&G+1<O.patternParts_.length&&O.patternParts_[G+1].numeric&&(m=!0,O.patternParts_[G].abutStart=!0):m=!1};
FQY.prototype.parse=function(O,m,G){var B=!1,Q=!1;G&&(B=G.predictive||!1,Q=G.validate||!1);if(B)for(G=0;G<this.patternParts_.length;G++){var H=this.patternParts_[G];if(H.count>0&&("abBhHkKm".indexOf(H.text.charAt(0))<0||H.count>2||H.abutStart))throw Error("ce`"+H.text.charAt(0));}H=new Om9;G=[0];H.dayPeriodIndex=-1;for(var M=0;M<this.patternParts_.length&&!(B&&G[0]>=O.length);M++){if(this.patternParts_[M].count==0){a:{var R=O;var x=G,t=this.patternParts_[M],W=B;if(t.text.match(Pc8)!=null){if(t=x[0],
mN8(R,x),x[0]>t){R=!0;break a}}else{if(R.indexOf(t.text,x[0])==x[0]){x[0]+=t.text.length;R=!0;break a}if(W&&t.text.indexOf(R.substring(x[0]))==0){x[0]+=R.length-x[0];R=!0;break a}}R=!1}if(R)continue;return 0}if(this.patternParts_[M].abutStart){a:{x=O;t=G;W=M;var Z=t[0],z=0;for(R=W;R<this.patternParts_.length;R++){var J=this.patternParts_[R],n=J.count;if(n===0)break;if(R==W&&(n-=z,z++,n==0)){R=0;break a}var I=R>W&&J.numeric,S=t[0];if(!GS3(this,x,t,J,n,H,!1)||I&&t[0]-S<n)R=W-1,t[0]=Z}R-=W}if(R<=0)return 0;
M+=R-1}else if(!GS3(this,O,G,this.patternParts_[M],0,H,B))return 0}a:{O=Q;if(m==null)throw Error("de");H.era!=void 0&&H.year!=void 0&&H.era==0&&H.year>0&&(H.year=-(H.year-1));H.year!=void 0&&m.setFullYear(H.year);B=m.getDate();m.setDate(1);H.month!=void 0&&m.setMonth(H.month);H.day!=void 0?m.setDate(H.day):(Q=hDp(m.getFullYear(),m.getMonth()),m.setDate(B>Q?Q:B));typeof m.setHours==="function"&&(H.hours==void 0&&(H.hours=m.getHours()),H.hours<12&&(H.ampm!=void 0&&H.ampm>0?H.hours+=12:H.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(H.dayPeriodName)||["night1","night2"].includes(H.dayPeriodName)&&H.hours>=6)&&(H.hours+=12)),m.setHours(H.hours));typeof m.setMinutes==="function"&&H.minutes!=void 0&&m.setMinutes(H.minutes);typeof m.setSeconds==="function"&&H.seconds!=void 0&&m.setSeconds(H.seconds);typeof m.setMilliseconds==="function"&&H.milliseconds!=void 0&&m.setMilliseconds(H.milliseconds);if(O&&(H.year&&H.year!=m.getFullYear()||H.month&&H.month!=
m.getMonth()||H.day&&H.day!=m.getDate()||H.hours&&H.hours>=24||H.minutes&&H.minutes>=60||H.seconds&&H.seconds>=60||H.milliseconds&&H.milliseconds>=1E3))m=!1;else{H.tzOffset!=void 0&&m.setTime(m.getTime()+(H.tzOffset-m.getTimezoneOffset())*60*1E3);H.ambiguousYear&&(O=new Date,O.setFullYear(O.getFullYear()-80),m.getTime()<O.getTime()&&m.setFullYear(O.getFullYear()+100));if(H.dayOfWeek!=void 0)if(H.day==void 0)H=(7+H.dayOfWeek-m.getDay())%7,H>3&&(H-=7),O=m.getMonth(),m.setDate(m.getDate()+H),m.getMonth()!=
O&&m.setDate(m.getDate()+(H>0?-7:7));else if(H.dayOfWeek!=m.getDay()){m=!1;break a}m=!0}}return m?G[0]:0};
var GS3=function(O,m,G,B,Q,H,M){mN8(m,G);if(B.numeric&&Q>0&&G[0]+Q>m.length)return!1;switch(B.text.charAt(0)){case "G":return M4(m,G,[O.JSC$11418_dateTimeSymbols_.ERAS],function(R){return H.era=R}),!0;
case "M":case "L":return Buu(O,m,G,Q,B,H);case "E":return M4(m,G,[O.JSC$11418_dateTimeSymbols_.WEEKDAYS,O.JSC$11418_dateTimeSymbols_.SHORTWEEKDAYS],function(R){return H.dayOfWeek=R});
case "B":case "b":return Q=[],O=[[].concat(O.JSC$11418_dateTimeSymbols_.AMPMS)],Q.push("isAm"),Q.push("isPm"),m=M4(m,G,O,function(R){return H.dayPeriodIndex=R},M),H.dayPeriodName=Q[H.dayPeriodIndex],M?m:!0;
case "a":return m=M4(m,G,[O.JSC$11418_dateTimeSymbols_.AMPMS],function(R){return H.ampm=R},M),M?m:!0;
case "y":return Qpo(O,m,G,B,Q,H);case "Q":return M4(m,G,[O.JSC$11418_dateTimeSymbols_.QUARTERS,O.JSC$11418_dateTimeSymbols_.SHORTQUARTERS],function(R){H.month=R*3;H.day=1});
case "d":return r2(O,m,G,B,Q,function(R){H.day=R}),!0;
case "S":return HmU(O,m,G,Q,H);case "h":case "K":case "H":case "k":return m=r2(O,m,G,B,Q,function(R){H.hours=B.text.charAt(0)==="h"&&R===12?0:R},M),M?m:!0;
case "m":return m=r2(O,m,G,B,Q,function(R){H.minutes=R},M),M?m:!0;
case "s":return r2(O,m,G,B,Q,function(R){H.seconds=R}),!0;
case "z":case "Z":case "v":return vn_(O,m,G,H);default:return!1}},Qpo=function(O,m,G,B,Q,H){var M=G[0];
Q=Ri(O,m,G,Q);Q===null&&(Q=Ri(O,m,G,0,!0));if(Q===null)return!1;Q>=0&&G[0]-M==2&&B.count==2?(O=Q,m=(new Date).getFullYear()-80,G=m%100,H.ambiguousYear=O==G,O+=Math.floor(m/100)*100+(O<G?100:0),H.year=O):H.year=Q;return!0},Buu=function(O,m,G,B,Q,H){return Q.numeric&&r2(O,m,G,Q,B,function(M){H.month=M-1})?!0:M4(m,G,[O.JSC$11418_dateTimeSymbols_.MONTHS,
O.JSC$11418_dateTimeSymbols_.STANDALONEMONTHS,O.JSC$11418_dateTimeSymbols_.SHORTMONTHS,O.JSC$11418_dateTimeSymbols_.STANDALONESHORTMONTHS],function(M){H.month=M})},HmU=function(O,m,G,B,Q){var H=G[0];
O=Ri(O,m,G,B);if(O===null)return!1;G=G[0]-H;Q.milliseconds=G<3?O*Math.pow(10,3-G):Math.round(O/Math.pow(10,G-3));return!0},vn_=function(O,m,G,B){m.indexOf("GMT",G[0])==G[0]&&(G[0]+=3);
if(G[0]>=m.length)return B.tzOffset=0,!0;var Q=G[0],H=Ri(O,m,G,0,!0);if(H===null)return!1;if(G[0]<m.length&&m.charAt(G[0])==":"){var M=H*60;G[0]++;H=Ri(O,m,G,0);if(H===null)return!1;M+=H}else M=H,M=M<24&&G[0]-Q<=3?M*60:M%100+M/100*60;B.tzOffset=-M;return!0},r2=function(O,m,G,B,Q,H,M){M=M||!1;
var R=G[0];O=Ri(O,m,G,Q);if(O===null)return!1;if(M&&G[0]-R<B.count){if(G[0]<m.length)return!1;O*=Math.pow(10,B.count-(G[0]-R))}H(O);return!0},M4=function(O,m,G,B,Q){Q=Q||!1;
for(var H,M=0;M<G.length;M++){H=m;for(var R=G[M],x=Q,t=0,W=null,Z=O.substring(H[0]).toLowerCase(),z=0;z<R.length;z++){var J=R[z].toLowerCase();if(x&&J.indexOf(Z)==0){t=Z.length;W=z;break}R[z].length>t&&Z.indexOf(J)==0&&(t=R[z].length,W=z)}W!==null&&(H[0]+=t);H=W;if(H!==null)return B(H),!0}return!1},mN8=function(O,m){(O=O.substring(m[0]).match(F$2))&&(m[0]+=O[0].length)},Ri=function(O,m,G,B,Q){m=B>0?m.substring(0,G[0]+B):m;
Q=Q||!1;if(O.JSC$11418_dateTimeSymbols_.ZERODIGIT){B=[];for(var H=G[0];H<m.length;H++){var M=m.charCodeAt(H)-O.JSC$11418_dateTimeSymbols_.ZERODIGIT;B.push(0<=M&&M<=9?String.fromCharCode(M+48):m.charAt(H))}m=B.join("")}else m=m.substring(G[0]);O=m.match(new RegExp("^"+(Q?"[+-]?":"")+"\\d+"));if(!O)return null;G[0]+=O[0].length;return parseInt(O[0],10)},Om9=function(){};
Om9.prototype.ambiguousYear=!1;var Kpm;
Kpm={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 $Nu={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}"]};
$Nu={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 Mg_=function(){var O={type:"unit",style:"narrow"};this.listType_=O&&O.type?O.type:"conjunction";this.listStyle_=O&&O.style?O.style:"long";this.listSymbols_=$Nu;O=0;switch(this.listStyle_){case "short":O=1;break;case "narrow":O=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[O];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[O];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[O];this.listEndPattern_=
this.listSymbols_.AND_END[O];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[O];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[O];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[O];this.listEndPattern_=this.listSymbols_.OR_END[O];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[O],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[O],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[O],this.listEndPattern_=this.listSymbols_.UNIT_END[O]}};
Mg_.prototype.format=function(O){return r18(this,O)};
var r18=function(O,m){var G=m.length;switch(G){case 0:return"";case 1:return String(m[0]);case 2:return O.listTwoPattern_.replace("{0}",String(m[0])).replace("{1}",String(m[1]))}for(var B=O.listStartPattern_.replace("{0}",String(m[0])).replace("{1}",String(m[1])),Q=2;Q<G-1;++Q)B=O.listMiddlePattern_.replace("{0}",B).replace("{1}",String(m[Q]));return O.listEndPattern_.replace("{0}",B).replace("{1}",String(m[G-1]))};var RBp={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"},im8=RBp,xN$=RBp;xN$=im8=RBp;var UNC,i8,q4,J3z,xL,qzC;
_.Aa=function(O,m,G,B){var Q;if(Q=m){a:if(m&&m.length===3){for(Q=0;Q<3;Q++){var H=m[Q];if(H<"A"||H>"Z"&&H<"a"||H>"z"){Q=!1;break a}}Q=!0}else Q=!1;Q=!Q}if(Q)throw new TypeError("ee");this.intlCurrencyCode_=m?m.toUpperCase():null;this.currencyStyle_=G||0;this.overrideNumberFormatSymbols_=B||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_=i8(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof O==="number")switch(O){case 1:xL(this,i8(this).DECIMAL_PATTERN);break;case 2:xL(this,i8(this).SCIENTIFIC_PATTERN);break;case 3:xL(this,i8(this).PERCENT_PATTERN);break;case 4:O=i8(this).CURRENCY_PATTERN;m=["0"];if(G=
HK[q4(this)]){G=G[0]&7;if(G>0)for(m.push("."),B=0;B<G;B++)m.push("0");O=O.replace(/0.00/g,m.join(""))}xL(this,O);break;case 5:qzC(this,1);break;case 6:qzC(this,2);break;default:throw Error("he");}else xL(this,O)};
UNC=!1;i8=function(O){return O.overrideNumberFormatSymbols_||(UNC?xN$:im8)};
q4=function(O){return O.intlCurrencyCode_||i8(O).DEF_CURRENCY_CODE};
J3z=function(O,m){if(m>308)throw Error("ge`"+m);O.maximumFractionDigits_=m;return O};
xL=function(O,m){var G=[0];O.positivePrefix_=tgC(O,m,G);for(var B=G[0],Q=-1,H=0,M=0,R=0,x=-1,t=m.length,W=!0;G[0]<t&&W;G[0]++)switch(m.charAt(G[0])){case "#":M>0?R++:H++;x>=0&&Q<0&&x++;break;case "0":if(R>0)throw Error("ne`"+m);M++;x>=0&&Q<0&&x++;break;case ",":x>0&&O.groupingArray_.push(x);x=0;break;case ".":if(Q>=0)throw Error("oe`"+m);Q=H+M+R;break;case "E":if(O.useExponentialNotation_)throw Error("pe`"+m);O.useExponentialNotation_=!0;O.minExponentDigits_=0;G[0]+1<t&&m.charAt(G[0]+1)=="+"&&(G[0]++,
O.useSignForPositiveExponent_=!0);for(;G[0]+1<t&&m.charAt(G[0]+1)=="0";)G[0]++,O.minExponentDigits_++;if(H+M<1||O.minExponentDigits_<1)throw Error("qe`"+m);W=!1;break;default:G[0]--,W=!1}M==0&&H>0&&Q>=0&&(M=Q,M==0&&M++,R=H-M,H=M-1,M=1);if(Q<0&&R>0||Q>=0&&(Q<H||Q>H+M)||x==0)throw Error("re`"+m);R=H+M+R;O.maximumFractionDigits_=Q>=0?R-Q:0;Q>=0&&(O.minimumFractionDigits_=H+M-Q,O.minimumFractionDigits_<0&&(O.minimumFractionDigits_=0));O.minimumIntegerDigits_=(Q>=0?Q:R)-H;O.useExponentialNotation_&&(O.maximumIntegerDigits_=
H+O.minimumIntegerDigits_,O.maximumFractionDigits_==0&&O.minimumIntegerDigits_==0&&(O.minimumIntegerDigits_=1));O.groupingArray_.push(Math.max(0,x));O.decimalSeparatorAlwaysShown_=Q==0||Q==R;B=G[0]-B;O.positiveSuffix_=tgC(O,m,G);G[0]<m.length&&m.charAt(G[0])==";"?(G[0]++,O.multiplier_!=1&&(O.negativePercentSignExpected_=!0),O.negativePrefix_=tgC(O,m,G),G[0]+=B,O.negativeSuffix_=tgC(O,m,G)):(O.negativePrefix_+=O.positivePrefix_,O.negativeSuffix_+=O.positiveSuffix_)};
qzC=function(O,m){O.compactStyle_=m;xL(O,i8(O).DECIMAL_PATTERN);O.minimumFractionDigits_=0;J3z(O,2);if(O.minimumFractionDigits_>0)throw Error("fe");O.significantDigits_=2};
_.Aa.prototype.parse=function(O,m){m=m||[0];if(this.compactStyle_!==0)throw Error("ie");O=O.replace(/ |\u202f/g,"\u00a0");var G=O.indexOf(this.positivePrefix_,m[0])==m[0],B=O.indexOf(this.negativePrefix_,m[0])==m[0];G&&B&&(this.positivePrefix_.length>this.negativePrefix_.length?B=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(G=!1));G?m[0]+=this.positivePrefix_.length:B&&(m[0]+=this.negativePrefix_.length);if(O.indexOf(i8(this).INFINITY,m[0])==m[0]){m[0]+=i8(this).INFINITY.length;var Q=
Infinity}else{Q=O;var H=!1,M=!1,R=!1,x=-1,t=1,W=i8(this).DECIMAL_SEP,Z=i8(this).GROUP_SEP,z=i8(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("je");Z=Z.replace(/\u202f/g,"\u00a0");for(var J="";m[0]<Q.length;m[0]++){var n=Q.charAt(m[0]),I=Wp2(this,n);if(I>=0&&I<=9)J+=I,R=!0;else if(n==W.charAt(0)){if(H||M)break;J+=".";H=!0}else if(n==Z.charAt(0)&&("\u00a0"!=Z.charAt(0)||m[0]+1<Q.length&&Wp2(this,Q.charAt(m[0]+1))>=0)){if(H||M)break}else if(n==z.charAt(0)){if(M)break;J+="E";M=!0;x=m[0]}else if(n==
"+"||n=="-"){if(R&&x!=m[0]-1)break;J+=n}else if(this.multiplier_==1&&n==i8(this).PERCENT.charAt(0)){if(t!=1)break;t=100;if(R){m[0]++;break}}else if(this.multiplier_==1&&n==i8(this).PERMILL.charAt(0)){if(t!=1)break;t=1E3;if(R){m[0]++;break}}else break}this.multiplier_!=1&&(t=this.multiplier_);Q=parseFloat(J)/t}if(G){if(O.indexOf(this.positiveSuffix_,m[0])!=m[0])return NaN;m[0]+=this.positiveSuffix_.length}else if(B){if(O.indexOf(this.negativeSuffix_,m[0])!=m[0])return NaN;m[0]+=this.negativeSuffix_.length}return B?
-Q:Q};
_.Aa.prototype.format=function(O){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ke");if(isNaN(O))return i8(this).NAN;var m=[];var G=O;if(this.compactStyle_==0)G=Uo;else{G=Math.abs(G);var B=ZmC(this,G<=1?0:zB$(G)).divisorBase;G=ZmC(this,B+zB$(J1s(this,te(G,-B)).intValue))}O=te(O,-G.divisorBase);(B=O<0||O==0&&1/O<0)?G.negative_prefix?m.push(G.negative_prefix):(m.push(G.prefix),m.push(this.negativePrefix_)):(m.push(G.prefix),m.push(this.positivePrefix_));if(isFinite(O))if(O*=
B?-1:1,O*=this.multiplier_,this.useExponentialNotation_){var Q=O;if(Q==0)Vge(this,Q,this.minimumIntegerDigits_,m),bmC(this,0,m);else{var H=Math.floor(Math.log(Q)/Math.log(10)+2E-15);Q=te(Q,-H);var M=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(M=H%this.maximumIntegerDigits_,M<0&&(M=this.maximumIntegerDigits_+M),Q=te(Q,M),H-=M,M=1):this.minimumIntegerDigits_<1?(H++,Q=te(Q,-1)):(H-=this.minimumIntegerDigits_-1,Q=te(Q,this.minimumIntegerDigits_-
1));Vge(this,Q,M,m);bmC(this,H,m)}}else Vge(this,O,this.minimumIntegerDigits_,m);else m.push(i8(this).INFINITY);B?G.negative_suffix?m.push(G.negative_suffix):(isFinite(O)&&m.push(G.suffix),m.push(this.negativeSuffix_)):(isFinite(O)&&m.push(G.suffix),m.push(this.positiveSuffix_));return m.join("")};
var J1s=function(O,m){var G=te(m,O.maximumFractionDigits_);O.significantDigits_>0&&(G=nnH(G,O.significantDigits_,O.maximumFractionDigits_));G=Math.round(G);if(isFinite(G)){var B=Math.floor(te(G,-O.maximumFractionDigits_));G=Math.floor(G-te(B,O.maximumFractionDigits_));if(G<0||G>=te(1,O.maximumFractionDigits_))B=Math.round(m),G=0}else B=m,G=0;return{intValue:B,fracValue:G}},Vge=function(O,m,G,B){if(O.minimumFractionDigits_>O.maximumFractionDigits_)throw Error("ke");
B||(B=[]);m=J1s(O,m);var Q=m.intValue,H=m.fracValue,M=O.minimumFractionDigits_>0||H>0||!1;m=O.minimumFractionDigits_;M&&(m=O.minimumFractionDigits_);for(var R="",x=Q;x>1E20;)R="0"+R,x=Math.round(te(x,-1));R=x+R;var t=i8(O).DECIMAL_SEP;x=i8(O).ZERO_DIGIT.codePointAt(0);var W=R.length,Z=0;if(Q>0||G>0){for(Q=W;Q<G;Q++)B.push(String.fromCodePoint(x));if(O.groupingArray_.length>=2)for(G=1;G<O.groupingArray_.length;G++)Z+=O.groupingArray_[G];G=W-Z;if(G>0){Q=O.groupingArray_;Z=W=0;for(var z,J=i8(O).GROUP_SEP,
n=R.length,I=0;I<n;I++)if(B.push(String.fromCodePoint(x+Number(R.charAt(I)))),n-I>1)if(z=Q[Z],I<G){var S=G-I;(z===1||z>0&&S%z===1)&&B.push(J)}else Z<Q.length&&(I===G?Z+=1:z===I-G-W+1&&(B.push(J),W+=z,Z+=1))}else{G=R;R=O.groupingArray_;Q=i8(O).GROUP_SEP;z=G.length;J=[];for(W=R.length-1;W>=0&&z>0;W--){Z=R[W];for(n=0;n<Z&&z-n-1>=0;n++)J.push(String.fromCodePoint(x+Number(G.charAt(z-n-1))));z-=Z;z>0&&J.push(Q)}B.push.apply(B,J.reverse())}}else M||B.push(String.fromCodePoint(x));(O.decimalSeparatorAlwaysShown_||
M)&&B.push(t);H=String(H);M=H.split("e+");M.length==2&&(H=String(nnH(parseFloat(M[0]),O.significantDigits_,1)),H=H.replace(".",""),H+=(0,_.meo)("0",parseInt(M[1],10)-H.length+1));O.maximumFractionDigits_+1>H.length&&(H="1"+(0,_.meo)("0",O.maximumFractionDigits_-H.length)+H);for(O=H.length;H.charAt(O-1)=="0"&&O>m+1;)O--;for(m=1;m<O;m++)B.push(String.fromCodePoint(x+Number(H.charAt(m))))},bmC=function(O,m,G){G.push(i8(O).EXP_SYMBOL);
m<0?(m=-m,G.push(i8(O).MINUS_SIGN)):O.useSignForPositiveExponent_&&G.push(i8(O).PLUS_SIGN);m=""+m;for(var B=i8(O).ZERO_DIGIT,Q=m.length;Q<O.minExponentDigits_;Q++)G.push(B);O=B.codePointAt(0)-XEp;for(B=0;B<m.length;B++)G.push(String.fromCodePoint(O+m.codePointAt(B)))},Wp2=function(O,m){m=m.codePointAt(0);
if(48<=m&&m<58)return m-48;O=i8(O).ZERO_DIGIT.codePointAt(0);return O<=m&&m<O+10?m-O:-1},XEp="0".codePointAt(0),tgC=function(O,m,G){for(var B="",Q=!1,H=m.length;G[0]<H;G[0]++){var M=m.charAt(G[0]);
if(M=="'")G[0]+1<H&&m.charAt(G[0]+1)=="'"?(G[0]++,B+="'"):Q=!Q;else if(Q)B+=M;else switch(M){case "#":case "0":case ",":case ".":case ";":return B;case "\u00a4":if(G[0]+1<H&&m.charAt(G[0]+1)=="\u00a4")G[0]++,B+=q4(O);else switch(O.currencyStyle_){case 0:M=q4(O);B+=M in HK?HK[M][1]:M;break;case 2:M=q4(O);var R=HK[M];B+=R?M==R[1]?M:M+" "+R[1]:M;break;case 1:M=q4(O),B+=M in HK?HK[M][2]:M}break;case "%":if(!O.negativePercentSignExpected_&&O.multiplier_!=1)throw Error("le");if(O.negativePercentSignExpected_&&
O.multiplier_!=100)throw Error("me");O.multiplier_=100;O.negativePercentSignExpected_=!1;B+=i8(O).PERCENT;break;case "\u2030":if(!O.negativePercentSignExpected_&&O.multiplier_!=1)throw Error("le");if(O.negativePercentSignExpected_&&O.multiplier_!=1E3)throw Error("me");O.multiplier_=1E3;O.negativePercentSignExpected_=!1;B+=i8(O).PERMILL;break;default:B+=M}}return B},Uo={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},ZmC=function(O,m){O=O.compactStyle_==1?Qx.COMPACT_DECIMAL_SHORT_PATTERN:Qx.COMPACT_DECIMAL_LONG_PATTERN;O==null&&(O=Qx.COMPACT_DECIMAL_SHORT_PATTERN);if(m<3)return Uo;m=Math.min(14,m);var G=O[te(1,m)];for(--m;!G&&m>=3;)G=O[te(1,m)],m--;if(!G)return Uo;G=G.other;var B=O="",Q=G.indexOf(";");Q>=0&&(G=G.substring(0,Q),Q=G.substring(Q+1))&&(B=/([^0]*)(0+)(.*)/.exec(Q),O=B[1],B=B[3]);return G&&G!="0"?(G=/([^0]*)(0+)(.*)/.exec(G))?{divisorBase:m+
1-(G[2].length-1),negative_prefix:O,negative_suffix:B,prefix:G[1],suffix:G[3]}:Uo:Uo},zB$=function(O){if(!isFinite(O))return O>0?O:0;
for(var m=0;(O/=10)>=1;)m++;return m},te=function(O,m){if(!O||!isFinite(O)||m==0)return O;
O=String(O).split("e");return parseFloat(O[0]+"e"+(parseInt(O[1]||0,10)+m))},fBo=function(O,m){return O&&isFinite(O)?te(Math.round(te(O,m)),-m):O},nnH=function(O,m,G){if(!O)return O;
m=m-zB$(O)-1;return m<-G?fBo(O,-G):fBo(O,m)};var hBU=function(O){return O%10==1&&O%100!=11?"one":O%10==2&&O%100!=12?"two":O%10==3&&O%100!=13?"few":"other"},TuH=hBU;
TuH=hBU;var gns=function(O,m){var G=O|0;if(void 0===m){m=Math;var B=m.min,Q=O+"",H=Q.indexOf(".");m=B.call(m,H===-1?0:Q.length-H-1,3)}B=Math.pow(10,m);O={v:m,f:(O*B|0)%B};return G==1&&O.v==0?"one":"other"},FZ=gns;
FZ=gns;var pEj=function(O){this.JSC$11461_pattern_=O;this.parsedPattern_=this.literals_=this.initialLiterals_=null;O=im8;var m=Qx;if(uJ8!==O||jpm!==m)uJ8=O,jpm=m,IBe=new _.Aa(1);this.numberFormatter_=IBe},uJ8=null,jpm=null,IBe=null,Sz_=RegExp("'([{}#].*?)'","g"),En9=RegExp("''","g");
pEj.prototype.format=function(O){if(this.JSC$11461_pattern_){this.initialLiterals_=[];var m=Lpu(this,this.JSC$11461_pattern_);this.parsedPattern_=CKo(this,m);this.JSC$11461_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.cM(this.initialLiterals_),m=[],on8(this,this.parsedPattern_,O,!1,m),O=m.join("");this.literals_.length>0;)O=O.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else O="";return O};
var on8=function(O,m,G,B,Q){for(var H=0;H<m.length;H++)switch(m[H].type){case 4:Q.push(m[H].value);break;case 3:var M=m[H].value;var R=O,x=Q,t=G[M];t===void 0?x.push("Undefined parameter - "+M):(R.literals_.push(t),x.push(R.buildPlaceholder_(R.literals_)));break;case 2:M=m[H].value;R=O;x=G;t=B;var W=Q,Z=M.argumentIndex;x[Z]===void 0?W.push("Undefined parameter - "+Z):(Z=M[x[Z]],Z===void 0&&(Z=M.other),on8(R,Z,x,t,W));break;case 0:M=m[H].value;lB8(O,M,G,FZ,B,Q);break;case 1:M=m[H].value,lB8(O,M,G,
TuH,B,Q)}},lB8=function(O,m,G,B,Q,H){var M=m.argumentIndex,R=m.argumentOffset,x=+G[M];
isNaN(x)?H.push("Undefined or invalid parameter - "+M):(R=x-R,M=m[G[M]],M===void 0&&(B=B(Math.abs(R)),M=m[B],M===void 0&&(M=m.other)),m=[],on8(O,M,G,Q,m),G=m.join(""),Q?H.push(G):(O=O.numberFormatter_.format(R),H.push(G.replace(/#/g,O))))},Lpu=function(O,m){var G=O.initialLiterals_,B=O.buildPlaceholder_.bind(O);
m=m.replace(En9,function(){G.push("'");return B(G)});
return m=m.replace(Sz_,function(Q,H){G.push(H);return B(G)})},aBU=function(O){var m=0,G=[],B=[],Q=/[{}]/g;
Q.lastIndex=0;for(var H;H=Q.exec(O);){var M=H.index;H[0]=="}"?(G.pop(),G.length==0&&(H={type:1},H.value=O.substring(m,M),B.push(H),m=M+1)):(G.length==0&&(m=O.substring(m,M),m!=""&&B.push({type:0,value:m}),m=M+1),G.push("{"))}O=O.substring(m);O!=""&&B.push({type:0,value:O});return B},kSu=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,y1C=/^\s*(\w+)\s*,\s*selectordinal\s*,/,c1j=/^\s*(\w+)\s*,\s*select\s*,/,CKo=function(O,m){var G=[];
m=aBU(m);for(var B=0;B<m.length;B++){var Q={};if(0==m[B].type)Q.type=4,Q.value=m[B].value;else if(1==m[B].type){var H=m[B].value;switch(kSu.test(H)?0:y1C.test(H)?1:c1j.test(H)?2:/^\s*\w+\s*/.test(H)?3:5){case 2:Q.type=2;Q.value=Yze(O,m[B].value);break;case 0:Q.type=0;Q.value=dNC(O,m[B].value);break;case 1:Q.type=1;Q.value=wE_(O,m[B].value);break;case 3:Q.type=3,Q.value=m[B].value}}G.push(Q)}return G},Yze=function(O,m){var G="";
m=m.replace(c1j,function(R,x){G=x;return""});
var B={};B.argumentIndex=G;m=aBU(m);for(var Q=0;Q<m.length;){var H=m[Q].value;Q++;var M=void 0;1==m[Q].type&&(M=CKo(O,m[Q].value));B[H.replace(/\s/g,"")]=M;Q++}return B},dNC=function(O,m){var G="",B=0;
m=m.replace(kSu,function(x,t,W){G=t;W&&(B=parseInt(W,10));return""});
var Q={};Q.argumentIndex=G;Q.argumentOffset=B;m=aBU(m);for(var H=0;H<m.length;){var M=m[H].value;H++;var R=void 0;1==m[H].type&&(R=CKo(O,m[H].value));Q[M.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=R;H++}return Q},wE_=function(O,m){var G="";
m=m.replace(y1C,function(R,x){G=x;return""});
var B={};B.argumentIndex=G;B.argumentOffset=0;m=aBU(m);for(var Q=0;Q<m.length;){var H=m[Q].value;Q++;var M=void 0;1==m[Q].type&&(M=CKo(O,m[Q].value));B[H.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=M;Q++}return B};
pEj.prototype.buildPlaceholder_=function(O){return"\ufddf_"+(O.length-1).toString(10)+"_"};var LGp=function(){var O={style:1},m=eB$;this.style_=(O==null?void 0:O.style)||0;this.durationSymbols_=m||Kpm},DNH=function(O,m){switch(m){default:case "years":return O.durationSymbols_.YEAR;
case "months":return O.durationSymbols_.MONTH;case "weeks":return O.durationSymbols_.WEEK;case "days":return O.durationSymbols_.DAY;case "hours":return O.durationSymbols_.HOUR;case "minutes":return O.durationSymbols_.MINUTE;case "seconds":return O.durationSymbols_.SECOND}},WK=function(O,m,G){a:{G=DNH(O,G);
switch(O.style_){case 1:if(G.LONG!=void 0){O=G.LONG;break a}case 2:if(G.NARROW!=void 0){O=G.NARROW;break a}default:O=G.SHORT;break a}O=void 0}return O?(new pEj("{DURATION_VALUE,plural,"+O+"}")).format({DURATION_VALUE:m}):""};
LGp.prototype.format=function(O){var m=[],G=O.years,B=O.months,Q=O.weeks,H=O.days,M=O.hours,R=O.minutes;O=O.seconds;G!=null&&m.push(WK(this,G,"years"));B!=null&&m.push(WK(this,B,"months"));Q!=null&&m.push(WK(this,Q,"weeks"));H!=null&&m.push(WK(this,H,"days"));M!=null&&m.push(WK(this,M,"hours"));R!=null&&m.push(WK(this,R,"minutes"));O!=null&&m.push(WK(this,O,"seconds"));return(new Mg_).format(m)};var spo;
spo={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 FGs=function(){this.rdtfSymbols_=Nuj||spo;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
FGs.prototype.format=function(O,m){a:{m=PK9(this,m);switch(this.style_){case 2:if(m.NARROW!=void 0){m=m.NARROW;break a}case 1:if(m.SHORT!=void 0){m=m.SHORT;break a}default:m=m.LONG;break a}m=void 0}if(!this.alwaysNumeric_&&m&&m.R&&m.R[""+O])O=m.R[""+O];else if(m){var G=Math.abs(O);O=(new pEj("{N,plural,"+(O>0||O==0&&1/O==Infinity?m.F:m.P)+"}")).format({N:G})}else O="";return O};
var PK9=function(O,m){switch(m){default:case 0:return O.rdtfSymbols_.YEAR;case 1:return O.rdtfSymbols_.QUARTER;case 2:return O.rdtfSymbols_.MONTH;case 3:return O.rdtfSymbols_.WEEK;case 4:return O.rdtfSymbols_.DAY;case 5:return O.rdtfSymbols_.HOUR;case 6:return O.rdtfSymbols_.MINUTE;case 7:return O.rdtfSymbols_.SECOND}};var FpC=function(O,m,G,B,Q,H,M,R){this.x0=O;this.y0=m;this.x1=G;this.y1=B;this.x2=Q;this.y2=H;this.x3=M;this.y3=R};
FpC.prototype.clone=function(){return new FpC(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
FpC.prototype.equals=function(O){return this.x0==O.x0&&this.y0==O.y0&&this.x1==O.x1&&this.y1==O.y1&&this.x2==O.x2&&this.y2==O.y2&&this.x3==O.x3&&this.y3==O.y3};
var A1H=function(O,m){if(m==0)return O.x0;if(m==1)return O.x3;var G=L4(O.x0,O.x1,m),B=L4(O.x1,O.x2,m);O=L4(O.x2,O.x3,m);G=L4(G,B,m);B=L4(B,O,m);return L4(G,B,m)},OH3=function(O,m){var G=(m-O.x0)/(O.x3-O.x0);
if(G<=0)return 0;if(G>=1)return 1;for(var B=0,Q=1,H=0,M=0;M<8;M++){H=A1H(O,G);var R=(A1H(O,G+1E-6)-H)/1E-6;if(Math.abs(H-m)<1E-6)return G;if(Math.abs(R)<1E-6)break;else H<m?B=G:Q=G,G-=(H-m)/R}for(M=0;Math.abs(H-m)>1E-6&&M<8;M++)H<m?(B=G,G=(G+Q)/2):(Q=G,G=(G+B)/2),H=A1H(O,G);return G};var Zm=function(){_.Ly.call(this);this.JSC$11482_name_="closure_frame"+miH++;this.iframesForDisposal_=[];G$u[this.JSC$11482_name_]=this},zv;
_.MQ(Zm,_.Ly);var G$u={},miH=0,Bg8=function(O,m){var G=jS(O);$r_(m,function(B,Q){Array.isArray(B)||(B=[B]);_.Nr(B,function(H){H=G.JSC$9329_createDom("INPUT",{type:"hidden",name:Q,value:H});O.appendChild(H)})})};
_.v=Zm.prototype;_.v.JSC$11484_form_=null;_.v.JSC$11484_iframe_=null;_.v.iframeName_=null;_.v.nextIframeId_=0;_.v.JSC$11484_active_=!1;_.v.complete_=!1;_.v.success_=!1;_.v.lastContent_=null;_.v.JSC$11484_lastErrorCode_=0;_.v.iframeDisposalTimer_=null;
_.v.send=function(O,m,G,B){if(this.JSC$11484_active_)throw Error("se");O=new _.Bd(O);m=m?m.toUpperCase():"GET";G&&_.be(O);zv||(zv=_.aD("FORM"),zv.acceptCharset="utf-8",G=zv.style,G.position="absolute",G.visibility="hidden",G.top=G.left="-10px",G.width=G.height="10px",G.overflow="hidden",document.body.appendChild(zv));this.JSC$11484_form_=zv;m=="GET"&&Bg8(this.JSC$11484_form_,O.JSC$10033_queryData_);B&&Bg8(this.JSC$11484_form_,B);G=O.toString();G=gRY(G);B=this.JSC$11484_form_;G=_.Dq(on(G));G!==void 0&&
(B.action=G);this.JSC$11484_form_.method=m;QZC(this);HHp(this)};
_.v.abort=function(O){if(this.JSC$11484_active_){var m=Je(this);if(m)if(py(m))m.removeAllListeners(void 0);else if(m=SB(m)){var G=0,B;for(B in m.listeners)for(var Q=m.listeners[B].concat(),H=0;H<Q.length;++H)Sg(Q[H])&&++G}this.success_=this.JSC$11484_active_=this.complete_=!1;this.JSC$11484_lastErrorCode_=O||7;this.dispatchEvent("abort");vg3(this)}};
_.v.disposeInternal=function(){this.JSC$11484_active_&&this.abort();Zm.superClass_.disposeInternal.call(this);this.JSC$11484_iframe_&&Kw3(this);HHp(this);this.JSC$11484_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11484_form_=null;this.JSC$11484_lastErrorCode_=0;delete G$u[this.JSC$11482_name_]};
_.v.isComplete=function(){return this.complete_};
_.v.isSuccess=function(){return this.success_};
_.v.isActive=function(){return this.JSC$11484_active_};
_.v.getResponseText=function(){return this.lastContent_};
_.v.getLastError=function(){return _.ln$(this.JSC$11484_lastErrorCode_)};
var QZC=function(O){O.JSC$11484_active_=!0;O.complete_=!1;O.JSC$11484_lastErrorCode_=0;O.iframeName_=O.JSC$11482_name_+"_"+(O.nextIframeId_++).toString(36);O.JSC$11484_iframe_=jS(O.JSC$11484_form_).JSC$9329_createDom("IFRAME",{name:O.iframeName_,id:O.iframeName_});var m=O.JSC$11484_iframe_.style;m.visibility="hidden";m.width=m.height="10px";m.display="none";_.Ug?m.marginTop=m.marginLeft="-10px":(m.position="absolute",m.top=m.left="-10px");jS(O.JSC$11484_form_).JSC$9327_document_.body.appendChild(O.JSC$11484_iframe_);
m=O.iframeName_+"_inner";var G=XbC(O.JSC$11484_iframe_);if(document.baseURI){var B=Wu(m);B='<head><base href="'+Wu(document.baseURI)+'"></head><body><iframe id="'+B+'" name="'+B+'"></iframe>';B=P8(B)}else B=Wu(m),B=P8('<body><iframe id="'+B+'" name="'+B+'"></iframe>');G.write(OI(B));_.Cm(G.getElementById(m),"load",O.onIframeLoaded_,!1,O);B=Ty("TEXTAREA",O.JSC$11484_form_);for(var Q=0,H=B.length;Q<H;Q++){var M=B[Q].value;j38(B[Q])!=M&&(_.eG(B[Q],M),B[Q].value=M)}B=G.importNode(O.JSC$11484_form_,!0);
B.target=m;B.action=O.JSC$11484_form_.action;G.body.appendChild(B);Q=Ty("SELECT",O.JSC$11484_form_);H=Ty("SELECT",B);M=0;for(var R=Q.length;M<R;M++)for(var x=Ty("OPTION",Q[M]),t=Ty("OPTION",H[M]),W=0,Z=x.length;W<Z;W++)t[W].selected=x[W].selected;Q=Ty("INPUT",O.JSC$11484_form_);H=Ty("INPUT",B);M=0;for(R=Q.length;M<R;M++)if(Q[M].type=="file"&&Q[M].value!=H[M].value){O.JSC$11484_form_.target=m;B=O.JSC$11484_form_;break}try{O.errorHandled_=!1,B.submit(),G.close(),_.qQ&&setTimeout(O.testForFirefoxSilentError_.bind(O),
250)}catch(z){_.E2(G.getElementById(m),"load",O.onIframeLoaded_,!1,O),G.close(),Vx(O,2)}};
Zm.prototype.onIframeLoaded_=function(){_.E2(Je(this),"load",this.onIframeLoaded_,!1,this);try{var O=this.JSC$11484_iframe_?XbC(Je(this)):null;this.complete_=!0;this.JSC$11484_active_=!1;try{var m=O.body;this.lastContent_=m.textContent||m.innerText}catch(Q){var G=1}var B;G||typeof this.errorChecker_!="function"||(B=this.errorChecker_(O))&&(G=4);G?Vx(this,G):(this.success_=!0,this.JSC$11484_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),vg3(this))}catch(Q){Vx(this,1)}};
var Vx=function(O,m){O.errorHandled_||(O.success_=!1,O.JSC$11484_active_=!1,O.complete_=!0,O.JSC$11484_lastErrorCode_=m,O.dispatchEvent("complete"),O.dispatchEvent("error"),vg3(O),O.errorHandled_=!0)},vg3=function(O){Kw3(O);
HHp(O);O.JSC$11484_form_=null;O.dispatchEvent("ready")},Kw3=function(O){var m=O.JSC$11484_iframe_;
m&&(m.onreadystatechange=null,m.onload=null,m.onerror=null,O.iframesForDisposal_.push(m));O.iframeDisposalTimer_&&(clearTimeout(O.iframeDisposalTimer_),O.iframeDisposalTimer_=null);_.qQ?O.iframeDisposalTimer_=setTimeout(O.disposeIframes_.bind(O),2E3):O.disposeIframes_();O.JSC$11484_iframe_=null;O.iframeName_=null};
Zm.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var O=this.iframesForDisposal_.pop();_.hF(O)}};
var HHp=function(O){O.JSC$11484_form_&&O.JSC$11484_form_==zv&&_.c4(O.JSC$11484_form_)},Je=function(O){return O.JSC$11484_iframe_?XbC(O.JSC$11484_iframe_).getElementById(O.iframeName_+"_inner"):null};
Zm.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11484_active_){var O=this.JSC$11484_iframe_?XbC(Je(this)):null;O&&!n6I(O,"documentUri")?(_.E2(Je(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Vx(this,3):Vx(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.b8=function(O){return O=="\r"||O=="\n"||O==" "||O=="\t"};var $i2;_.nG=function(O){this.errorMessage_=null;this.result_=[];this.JSC$11486_buffer_="";this.stack_=[];this.JSC$11486_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!O||!O.deliverMessageAsRawString)};
$i2={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};_.nG.prototype.isInputValid=function(){return this.streamState_!=3};
_.nG.prototype.done=function(){return this.streamState_===2};
var Xd=function(O,m,G){O.streamState_=3;O.errorMessage_="The stream is broken @"+O.JSC$11486_pos_+"/"+G+". With input:\n"+m;throw Error(O.errorMessage_);};
_.nG.prototype.acceptsBinaryInput=function(){return!1};
_.nG.prototype.parse=function(O){function m(){for(;z<O.length;)if(_.b8(O[z]))z++,H.JSC$11486_pos_++;else break;return z<t}
function G(){for(var n;;){n=O[z++];if(!n)break;H.JSC$11486_pos_++;switch(H.state_){case x.INIT:n==="{"?H.state_=x.OBJECT_OPEN:n==="["?H.state_=x.ARRAY_OPEN:_.b8(n)||Xd(H,O,z);continue;case x.KEY_START:case x.OBJECT_OPEN:if(_.b8(n))continue;if(H.state_===x.KEY_START)M.push(x.KEY_END);else if(n==="}"){Q("{}");H.state_=B();continue}else M.push(x.OBJECT_END);n==='"'?H.state_=x.STRING:Xd(H,O,z);continue;case x.KEY_END:case x.OBJECT_END:if(_.b8(n))continue;n===":"?(H.state_===x.OBJECT_END&&(M.push(x.OBJECT_END),
H.depth_++),H.state_=x.VALUE):n==="}"?(H.depth_--,Q(),H.state_=B()):n===","?(H.state_===x.OBJECT_END&&M.push(x.OBJECT_END),H.state_=x.KEY_START):Xd(H,O,z);continue;case x.ARRAY_OPEN:case x.VALUE:if(_.b8(n))continue;if(H.state_===x.ARRAY_OPEN)if(H.depth_++,H.state_=x.VALUE,n==="]"){H.depth_--;if(H.depth_===0){H.state_=x.ARRAY_END;return}Q("[]");H.state_=B();continue}else M.push(x.ARRAY_END);n==='"'?H.state_=x.STRING:n==="{"?H.state_=x.OBJECT_OPEN:n==="["?H.state_=x.ARRAY_OPEN:n==="t"?H.state_=x.TRUE1:
n==="f"?H.state_=x.FALSE1:n==="n"?H.state_=x.NULL1:n!=="-"&&("0123456789".indexOf(n)!==-1?H.state_=x.NUM_DIGIT:Xd(H,O,z));continue;case x.ARRAY_END:if(n===",")M.push(x.ARRAY_END),H.state_=x.VALUE,H.depth_===1&&(Z=z);else if(n==="]"){H.depth_--;if(H.depth_===0)return;Q();H.state_=B()}else if(_.b8(n))continue;else Xd(H,O,z);continue;case x.STRING:var I=z;a:for(;;){for(;H.unicodeCount_>0;)if(n=O[z++],H.unicodeCount_===4?H.unicodeCount_=0:H.unicodeCount_++,!n)break a;if(n==='"'&&!H.slashed_){H.state_=
B();break}if(n==="\\"&&!H.slashed_&&(H.slashed_=!0,n=O[z++],!n))break;if(H.slashed_)if(H.slashed_=!1,n==="u"&&(H.unicodeCount_=1),n=O[z++])continue;else break;R.lastIndex=z;n=R.exec(O);if(!n){z=O.length+1;break}z=n.index+1;n=O[n.index];if(!n)break}H.JSC$11486_pos_+=z-I;continue;case x.TRUE1:if(!n)continue;n==="r"?H.state_=x.TRUE2:Xd(H,O,z);continue;case x.TRUE2:if(!n)continue;n==="u"?H.state_=x.TRUE3:Xd(H,O,z);continue;case x.TRUE3:if(!n)continue;n==="e"?H.state_=B():Xd(H,O,z);continue;case x.FALSE1:if(!n)continue;
n==="a"?H.state_=x.FALSE2:Xd(H,O,z);continue;case x.FALSE2:if(!n)continue;n==="l"?H.state_=x.FALSE3:Xd(H,O,z);continue;case x.FALSE3:if(!n)continue;n==="s"?H.state_=x.FALSE4:Xd(H,O,z);continue;case x.FALSE4:if(!n)continue;n==="e"?H.state_=B():Xd(H,O,z);continue;case x.NULL1:if(!n)continue;n==="u"?H.state_=x.NULL2:Xd(H,O,z);continue;case x.NULL2:if(!n)continue;n==="l"?H.state_=x.NULL3:Xd(H,O,z);continue;case x.NULL3:if(!n)continue;n==="l"?H.state_=B():Xd(H,O,z);continue;case x.NUM_DECIMAL_POINT:n===
"."?H.state_=x.NUM_DIGIT:Xd(H,O,z);continue;case x.NUM_DIGIT:if("0123456789.eE+-".indexOf(n)!==-1)continue;else z--,H.JSC$11486_pos_--,H.state_=B();continue;default:Xd(H,O,z)}}}
function B(){var n=M.pop();return n!=null?n:x.VALUE}
function Q(n){H.depth_>1||(n||(n=Z===-1?H.JSC$11486_buffer_+O.substring(W,z):O.substring(Z,z)),H.deliverMessageAsRawString_?H.result_.push(n):H.result_.push(JSON.parse(n)),Z=z)}
for(var H=this,M=H.stack_,R=H.stringInputPattern_,x=$i2,t=O.length,W=0,Z=-1,z=0;z<t;)switch(H.streamState_){case 3:return Xd(H,O,z),null;case 2:return m()&&Xd(H,O,z),null;case 0:if(m()){var J=O[z++];H.JSC$11486_pos_++;if(J==="["){H.streamState_=1;W=z;H.state_=x.ARRAY_OPEN;continue}else Xd(H,O,z)}return null;case 1:return G(),H.depth_===0&&H.state_==x.ARRAY_END?(H.streamState_=2,H.JSC$11486_buffer_=O.substring(z)):H.JSC$11486_buffer_=Z===-1?H.JSC$11486_buffer_+O.substring(W):O.substring(Z),H.result_.length>
0?(J=H.result_,H.result_=[],J):null}return null};_.MQ(_.UF,pR);tc.prototype.getValue=function(){return this.JSC$11494_value_};
tc.prototype.clone=function(){return new tc(this.JSC$11494_key_,this.JSC$11494_value_)};var fG=function(O){this.nodes_=[];if(O)a:{if(O instanceof fG){var m=O.getKeys();O=O.getValues();if(this.getCount()<=0){for(var G=this.nodes_,B=0;B<m.length;B++)G.push(new tc(m[B],O[B]));break a}}else m=_.aM.getKeys(O),O=_.aM.getValues(O);for(G=0;G<m.length;G++)this.insert(m[G],O[G])}};
_.v=fG.prototype;_.v.insert=function(O,m){var G=this.nodes_;G.push(new tc(O,m));O=G.length-1;m=this.nodes_;for(G=m[O];O>0;){var B=O-1>>1;if(m[B].JSC$11494_key_>G.JSC$11494_key_)m[O]=m[B],O=B;else break}m[O]=G};
_.v.remove=function(){var O=this.nodes_,m=O.length,G=O[0];if(!(m<=0)){if(m==1)O.length=0;else{O[0]=O.pop();O=0;m=this.nodes_;for(var B=m.length,Q=m[O];O<B>>1;){var H=O*2+1,M=O*2+2;H=M<B&&m[M].JSC$11494_key_<m[H].JSC$11494_key_?M:H;if(m[H].JSC$11494_key_>Q.JSC$11494_key_)break;m[O]=m[H];O=H}m[O]=Q}return G.getValue()}};
_.v.peek=function(){var O=this.nodes_;if(O.length!=0)return O[0].getValue()};
_.v.getValues=function(){for(var O=this.nodes_,m=[],G=O.length,B=0;B<G;B++)m.push(O[B].getValue());return m};
_.v.getKeys=function(){for(var O=this.nodes_,m=[],G=O.length,B=0;B<G;B++)m.push(O[B].JSC$11494_key_);return m};
_.v.containsValue=function(O){return this.nodes_.some(function(m){return m.getValue()==O})};
_.v.containsKey=function(O){return this.nodes_.some(function(m){return m.JSC$11494_key_==O})};
_.v.clone=function(){return new fG(this)};
_.v.getCount=function(){return this.nodes_.length};
_.v.isEmpty=function(){return this.nodes_.length===0};
_.v.clear=function(){this.nodes_.length=0};_.he=function(O,m){this.JSC$11500_map_={};this.JSC$11500_keys_=[];this.version_=this.size=0;var G=arguments.length;if(G>1){if(G%2)throw Error("ka");for(var B=0;B<G;B+=2)this.set(arguments[B],arguments[B+1])}else O&&this.addAll(O)};
_.v=_.he.prototype;_.v.getCount=function(){return this.size};
_.v.getValues=function(){Tv(this);for(var O=[],m=0;m<this.JSC$11500_keys_.length;m++)O.push(this.JSC$11500_map_[this.JSC$11500_keys_[m]]);return O};
_.v.getKeys=function(){Tv(this);return this.JSC$11500_keys_.concat()};
_.v.containsKey=function(O){return this.has(O)};
_.v.has=function(O){return g2(this.JSC$11500_map_,O)};
_.v.containsValue=function(O){for(var m=0;m<this.JSC$11500_keys_.length;m++){var G=this.JSC$11500_keys_[m];if(g2(this.JSC$11500_map_,G)&&this.JSC$11500_map_[G]==O)return!0}return!1};
_.v.equals=function(O,m){if(this===O)return!0;if(this.size!=O.getCount())return!1;m=m||MVC;Tv(this);for(var G,B=0;G=this.JSC$11500_keys_[B];B++)if(!m(this.get(G),O.get(G)))return!1;return!0};
var MVC=function(O,m){return O===m};
_.he.prototype.isEmpty=function(){return this.size==0};
_.he.prototype.clear=function(){this.JSC$11500_map_={};this.version_=this.size=this.JSC$11500_keys_.length=0};
_.he.prototype.remove=function(O){return this.delete(O)};
_.he.prototype.delete=function(O){return g2(this.JSC$11500_map_,O)?(delete this.JSC$11500_map_[O],--this.size,this.version_++,this.JSC$11500_keys_.length>2*this.size&&Tv(this),!0):!1};
var Tv=function(O){if(O.size!=O.JSC$11500_keys_.length){for(var m=0,G=0;m<O.JSC$11500_keys_.length;){var B=O.JSC$11500_keys_[m];g2(O.JSC$11500_map_,B)&&(O.JSC$11500_keys_[G++]=B);m++}O.JSC$11500_keys_.length=G}if(O.size!=O.JSC$11500_keys_.length){m={};for(B=G=0;G<O.JSC$11500_keys_.length;){var Q=O.JSC$11500_keys_[G];g2(m,Q)||(O.JSC$11500_keys_[B++]=Q,m[Q]=1);G++}O.JSC$11500_keys_.length=B}};
_.v=_.he.prototype;_.v.get=function(O,m){return g2(this.JSC$11500_map_,O)?this.JSC$11500_map_[O]:m};
_.v.set=function(O,m){g2(this.JSC$11500_map_,O)||(this.size+=1,this.JSC$11500_keys_.push(O),this.version_++);this.JSC$11500_map_[O]=m};
_.v.addAll=function(O){if(O instanceof _.he)for(var m=O.getKeys(),G=0;G<m.length;G++)this.set(m[G],O.get(m[G]));else for(m in O)this.set(m,O[m])};
_.v.forEach=function(O,m){for(var G=this.getKeys(),B=0;B<G.length;B++){var Q=G[B],H=this.get(Q);O.call(m,H,Q,this)}};
_.v.clone=function(){return new _.he(this)};
_.v.transpose=function(){for(var O=new _.he,m=0;m<this.JSC$11500_keys_.length;m++){var G=this.JSC$11500_keys_[m];O.set(this.JSC$11500_map_[G],G)}return O};
_.v.keys=function(){return hWp(this.__iterator__(!0)).toEs6()};
_.v.values=function(){return hWp(this.__iterator__(!1)).toEs6()};
_.v.entries=function(){var O=this;return dBC(this.keys(),function(m){return[m,O.get(m)]})};
_.v.__iterator__=function(O){Tv(this);var m=0,G=this.version_,B=this,Q=new Vq;Q.next=function(){if(G!=B.version_)throw Error("te");if(m>=B.JSC$11500_keys_.length)return ba;var H=B.JSC$11500_keys_[m++];return nT(O?H:B.JSC$11500_map_[H])};
return Q};
var g2=function(O,m){return Object.prototype.hasOwnProperty.call(O,m)};var R$j=function(){this.JSC$11503_map_=new _.he;this.JSC$11503_head_=new rHm("");this.JSC$11503_head_.next=this.JSC$11503_head_.prev=this.JSC$11503_head_},iHm=function(O,m){if(m=O.JSC$11503_map_.get(m))m.remove(),O.insert_(m);
return m};
_.v=R$j.prototype;_.v.get=function(O,m){return(O=iHm(this,O))?O.value:m};
_.v.set=function(O,m){var G=iHm(this,O);G?G.value=m:(G=new rHm(O,m),this.JSC$11503_map_.set(O,G),this.insert_(G))};
_.v.peek=function(){return this.JSC$11503_head_.next.value};
_.v.shift=function(){return xi_(this,this.JSC$11503_head_.next)};
_.v.pop=function(){return xi_(this,this.JSC$11503_head_.prev)};
_.v.remove=function(O){return(O=this.JSC$11503_map_.get(O))?(this.removeNode(O),!0):!1};
_.v.removeNode=function(O){O.remove();this.JSC$11503_map_.remove(O.key)};
_.v.getCount=function(){return this.JSC$11503_map_.getCount()};
_.v.isEmpty=function(){return this.JSC$11503_map_.isEmpty()};
_.v.getKeys=function(){return this.map(function(O,m){return m})};
_.v.getValues=function(){return this.map(function(O){return O})};
_.v.contains=function(O){return this.some(function(m){return m==O})};
_.v.containsKey=function(O){return this.JSC$11503_map_.containsKey(O)};
_.v.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11503_head_.prev)};
_.v.forEach=function(O,m){for(var G=this.JSC$11503_head_.next;G!=this.JSC$11503_head_;G=G.next)O.call(m,G.value,G.key,this)};
_.v.map=function(O,m){for(var G=[],B=this.JSC$11503_head_.next;B!=this.JSC$11503_head_;B=B.next)G.push(O.call(m,B.value,B.key,this));return G};
_.v.some=function(O,m){for(var G=this.JSC$11503_head_.next;G!=this.JSC$11503_head_;G=G.next)if(O.call(m,G.value,G.key,this))return!0;return!1};
_.v.every=function(O,m){for(var G=this.JSC$11503_head_.next;G!=this.JSC$11503_head_;G=G.next)if(!O.call(m,G.value,G.key,this))return!1;return!0};
_.v.insert_=function(O){O.next=this.JSC$11503_head_.next;O.prev=this.JSC$11503_head_;this.JSC$11503_head_.next=O;for(O.next.prev=O;this.getCount()>100;)this.removeNode(this.JSC$11503_head_.prev)};
var xi_=function(O,m){O.JSC$11503_head_!=m&&O.removeNode(m);return m.value},rHm=function(O,m){this.key=O;
this.value=m};
rHm.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var qfU=function(){fG.apply(this,arguments)};
_.X(qfU,fG);qfU.prototype.enqueue=function(O,m){this.insert(O,m)};var Ui3=function(){var O=Error();O.name="SecurityError";throw O;},Otp=function(){return{get opener(){return null},
get closed(){return!0},get location(){Ui3()},get document(){Ui3()},postMessage:function(){},
close:function(){},
focus:function(){}}};var FgY={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 mvf={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 tV_={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(mvf).join("|");var WwH=function(){function O(R){R.substr(-1)!==";"&&(R+=";");return M(R)}
for(var m=Object.keys(tV_).sort(OyM),G=Object.keys(mvf).sort(OyM),B=0,Q=0;B<G.length;B++)m[Q]===G[B]?(G[B]+=";?",Q++):G[B]+=";";var H=new RegExp("&(?:"+G.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),M=GZs();return function(R){return String(R).replace(H,O)}}();/*

 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 ZHp={};var z$U=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"),JH8=/[\\&]/,VVC=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),bHm=RegExp('[&<>"]',"g"),ngC=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),X6_=function(O){return O.charCodeAt(0)===92?O.charAt(1):WwH(O)},fwu=function(O){return JH8.test(O)?O.replace(VVC,X6_):O},h$U=function(O){try{var m,G="";
if(typeof Q!=="string"){var B=Q;var Q=";/?:@&=+$,-_.!~*'()#"}typeof B==="undefined"&&(B=!0);var H,M=ZHp[Q];if(M)var R=M;else{M=ZHp[Q]=[];for(H=0;H<128;H++){var x=String.fromCharCode(H);/^[0-9a-z]$/i.test(x)?M.push(x):M.push("%"+("0"+H.toString(16).toUpperCase()).slice(-2))}for(H=0;H<Q.length;H++)M[Q.charCodeAt(H)]=Q[H];R=M}var t=0;for(m=O.length;t<m;t++){var W=O.charCodeAt(t);if(B&&W===37&&t+2<m&&/^[0-9a-f]{2}$/i.test(O.slice(t+1,t+3)))G+=O.slice(t,t+3),t+=2;else if(W<128)G+=R[W];else if(W>=55296&&
W<=57343){if(W>=55296&&W<=56319&&t+1<m){var Z=O.charCodeAt(t+1);if(Z>=56320&&Z<=57343){G+=encodeURIComponent(O[t]+O[t+1]);t++;continue}}G+="%EF%BF%BD"}else G+=encodeURIComponent(O[t])}return G}catch(z){return O}},Tgm=function(O){switch(O){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return O}},u8=function(O,m){return bHm.test(O)?m?O.replace(ngC,Tgm):O.replace(bHm,Tgm):O};/*

 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 jL;if(String.fromCodePoint)jL=function(O){try{return String.fromCodePoint(O)}catch(m){if(m instanceof RangeError)return String.fromCharCode(65533);throw m;}};
else{var ggH=String.fromCharCode,uw_=Math.floor;jL=function(){var O=[],m=-1,G=arguments.length;if(!G)return"";for(var B="";++m<G;){var Q=Number(arguments[m]);if(!isFinite(Q)||Q<0||Q>1114111||uw_(Q)!==Q)return String.fromCharCode(65533);if(Q<=65535)O.push(Q);else{Q-=65536;var H=(Q>>10)+55296;Q=Q%1024+56320;O.push(H,Q)}if(m+1===G||O.length>16384)B+=ggH.apply(null,O),O.length=0}return B}};var jZu=function(O){this.root=this.current=O;this.entering=!0};
jZu.prototype.next=function(){var O=this.current,m=this.entering;if(O===null)return null;a:switch(O._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 G=!0;break a;default:G=!1}m&&G?O._firstChild?(this.current=O._firstChild,this.entering=!0):this.entering=!1:O===this.root?this.current=null:O._next===null?(this.current=
O._parent,this.entering=!1):(this.current=O._next,this.entering=!0);return{entering:m,node:O}};
var Jc=function(O,m){this._type=O;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=m;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};
Jc.prototype.appendChild=function(O){O.unlink();O._parent=this;this._lastChild?(this._lastChild._next=O,O._prev=this._lastChild):this._firstChild=O;this._lastChild=O};
Jc.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 Iw2=function(O,m){m.unlink();m._next=O._next;m._next&&(m._next._prev=m);m._prev=O;O._next=m;m._parent=O._parent;m._next||(m._parent._lastChild=m)};
Jc.prototype.insertBefore=function(O){O.unlink();O._prev=this._prev;O._prev&&(O._prev._next=O);O._next=this;this._prev=O;O._parent=this._parent;O._prev||(O._parent._firstChild=O)};
_.vr.Object.defineProperties(Jc.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(O){this._literal=O}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(O){this._destination=O}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(O){this._title=O}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(O){this._info=O}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(O){this._level=O}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(O){this._listData.type=O}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(O){this._listData.tight=O}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(O){this._listData.start=O}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(O){this._onEnter=O}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(O){this._onExit=O}}});var B6I=/[ \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,
Q7O={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 p6_=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]/),
Sfu=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Egp=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),Lws=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),CE_=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),og9=/`+/,lws=/^`+/,awU=/\.\.\./g,k$p=/--+/g,yH8=/^<([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])?)*)>/,
cHu=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Yfm=/^ *(?:\n *)?/,dio=/^[ \t\n\x0b\x0c\x0d]/,w6$=/[ \t\n\x0b\x0c\x0d]+/g,e$2=/^\s/,Di2=/ *$/,sZ2=/^ */,Ng3=/^ *(?:\n|$)/,PE$=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Fwo=/^[^\n`\[\]\\!<&*_'"]+/m,Ii=function(O){var m=new Jc("text");m._literal=O;return m},pG=function(O){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=O||{}};
pG.prototype.match=function(O){O=O.exec(this.subject.slice(this.pos));if(O===null)return null;this.pos+=O.index+O[0].length;return O[0]};
pG.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var SL=function(O){O.match(Yfm);return!0},AHU=function(O,m,G){var B=0;
var Q=O.pos;if(m===39||m===34)B++,O.pos++;else for(;O.peek()===m;)B++,O.pos++;if(B===0)B=null;else{var H=Q===0?"\n":O.subject.charAt(Q-1);var M=O.peek();M=M===-1?"\n":jL(M);var R=e$2.test(M);M=p6_.test(M);var x=e$2.test(H);var t=p6_.test(H);H=!R&&!(M&&!x&&!t);R=!x&&!(t&&!R&&!M);m===95?(x=H&&(!R||t),M=R&&(!H||M)):(x=m===39||m===34?H&&!R:H,M=R);O.pos=Q;B={numdelims:B,can_open:x,can_close:M}}if(!B)return!1;Q=B.numdelims;M=O.pos;O.pos+=Q;M=m===39?"\u2019":m===34?"\u201c":O.subject.slice(M,O.pos);M=Ii(M);
G.appendChild(M);O.delimiters={cc:m,numdelims:Q,origdelims:Q,node:M,previous:O.delimiters,next:null,can_open:B.can_open,can_close:B.can_close};O.delimiters.previous!==null&&(O.delimiters.previous.next=O.delimiters);return!0},OJ9=function(O,m){m.previous!==null&&(m.previous.next=m.next);
m.next===null?O.delimiters=m.previous:m.next.previous=m.previous},m1o=function(O,m){var G,B,Q=[],H=!1;
Q[95]=m;Q[42]=m;Q[39]=m;Q[34]=m;for(G=O.delimiters;G!==null&&G.previous!==m;)G=G.previous;for(;G!==null;){var M=G.cc;if(G.can_close){var R=G.previous;for(B=!1;R!==null&&R!==m&&R!==Q[M];){H=(G.can_open||R.can_close)&&(R.origdelims+G.origdelims)%3===0;if(R.cc===G.cc&&R.can_open&&!H){B=!0;break}R=R.previous}var x=G;if(M===42||M===95)if(B){var t=G.numdelims>=2&&R.numdelims>=2?2:1;var W=R.node;var Z=G.node;R.numdelims-=t;G.numdelims-=t;W._literal=W._literal.slice(0,W._literal.length-t);Z._literal=Z._literal.slice(0,
Z._literal.length-t);var z=new Jc(t===1?"emph":"strong");for(t=W._next;t&&t!==Z;){var J=t._next;t.unlink();z.appendChild(t);t=J}Iw2(W,z);t=R;J=G;t.next!==J&&(t.next=J,J.previous=t);R.numdelims===0&&(W.unlink(),OJ9(O,R));G.numdelims===0&&(Z.unlink(),R=G.next,OJ9(O,G),G=R)}else G=G.next;else M===39?(G.node._literal="\u2019",B&&(R.node._literal="\u2018"),G=G.next):M===34&&(G.node._literal="\u201d",B&&(R.node.literal="\u201c"),G=G.next);B||H||(Q[M]=x.previous,x.can_open||OJ9(O,x))}else G=G.next}for(;O.delimiters!==
null&&O.delimiters!==m;)OJ9(O,O.delimiters)},GM$=function(O){O=O.match(Sfu);
return O===null?null:fwu(O.substr(1,O.length-2))},BRe=function(O){var m=O.match(Egp);
if(m===null){m=O.pos;for(var G=0,B;(B=O.peek())!==-1;)if(B===92)O.pos+=1,O.peek()!==-1&&(O.pos+=1);else if(B===40)O.pos+=1,G+=1;else if(B===41)if(G<1)break;else O.pos+=1,--G;else if(dio.exec(jL(B))!==null)break;else O.pos+=1;m=O.subject.substr(m,O.pos-m);return h$U(fwu(m))}return h$U(fwu(m.substr(1,m.length-2)))},Q_H=function(O){O=O.match(PE$);
return O===null||O.length>1001?0:O.length},HJs=function(O,m,G,B){O.brackets!==null&&(O.brackets.bracketAfter=!0);
O.brackets={node:m,previous:O.brackets,previousDelimiter:O.delimiters,index:G,image:B,active:!0}},vi8=function(O,m){var G;
return(G=O.match(Fwo))?(O.options.smart?m.appendChild(Ii(G.replace(awU,"\u2026").replace(k$p,function(B){var Q=0,H=0;B.length%3===0?H=B.length/3:B.length%2===0?Q=B.length/2:B.length%3===2?(Q=1,H=(B.length-2)/3):(Q=2,H=(B.length-4)/3);B="";var M;for(M=0;M<H;M++)B+="\u2014";for(M=0;M<Q;M++)B+="\u2013";return B}))):m.appendChild(Ii(G)),!0):!1},K3o=function(O,m,G){O.subject=m;
O.pos=0;m=O.pos;var B=Q_H(O);if(B===0)return 0;var Q=O.subject.substr(0,B);if(O.peek()===58)O.pos++;else return O.pos=m,0;SL(O);B=BRe(O);if(B===null||B.length===0)return O.pos=m,0;var H=O.pos;SL(O);var M=GM$(O);M===null&&(M="",O.pos=H);var R=!0;O.match(Ng3)===null&&(M===""?R=!1:(M="",O.pos=H,R=O.match(Ng3)!==null));if(!R)return O.pos=m,0;Q=Hyr(Q);if(Q==="")return O.pos=m,0;G[Q]||(G[Q]={destination:B,title:M});return O.pos-m},$1j=function(O,m){var G,B=O.peek();
if(B===-1)return!1;switch(B){case 10:O.pos+=1;if((G=m._lastChild)&&G.type==="text"&&G._literal[G._literal.length-1]===" "){var Q=G._literal[G._literal.length-2]===" ";G._literal=G._literal.replace(Di2,"");m.appendChild(new Jc(Q?"linebreak":"softbreak"))}else m.appendChild(new Jc("softbreak"));O.match(sZ2);G=!0;break;case 92:G=O.subject;O.pos+=1;O.peek()===10?(O.pos+=1,G=new Jc("linebreak"),m.appendChild(G)):Lws.test(G.charAt(O.pos))?(m.appendChild(Ii(G.charAt(O.pos))),O.pos+=1):m.appendChild(Ii("\\"));
G=!0;break;case 96:a:if(G=O.match(lws),G===null)G=!1;else{Q=O.pos;for(var H;(H=O.match(og9))!==null;)if(H===G){H=new Jc("code");H._literal=O.subject.slice(Q,O.pos-G.length).trim().replace(w6$," ");m.appendChild(H);G=!0;break a}O.pos=Q;m.appendChild(Ii(G));G=!0}break;case 42:case 95:G=AHU(O,B,m);break;case 39:case 34:G=O.options.smart&&AHU(O,B,m);break;case 91:G=O.pos;O.pos+=1;Q=Ii("[");m.appendChild(Q);HJs(O,Q,G,!1);G=!0;break;case 33:G=O.pos;O.pos+=1;O.peek()===91?(O.pos+=1,Q=Ii("!["),m.appendChild(Q),
HJs(O,Q,G+1,!0)):m.appendChild(Ii("!"));G=!0;break;case 93:var M,R=!1,x;O.pos+=1;var t=O.pos;Q=O.brackets;if(Q===null)m.appendChild(Ii("]"));else if(Q.active){G=Q.image;var W=O.pos;O.peek()===40&&(O.pos++,SL(O)&&(H=BRe(O))!==null&&SL(O)&&(dio.test(O.subject.charAt(O.pos-1))&&(M=GM$(O)),1)&&SL(O)&&O.peek()===41?(O.pos+=1,R=!0):O.pos=W);if(!R){var Z=O.pos,z=Q_H(O);z>2?x=O.subject.slice(Z,Z+z):Q.bracketAfter||(x=O.subject.slice(Q.index,t));z===0&&(O.pos=W);x&&(x=O.refmap[Hyr(x)])&&(H=x.destination,M=
x.title,R=!0)}if(R){t=new Jc(G?"image":"link");t._destination=H;t._title=M||"";for(H=Q.node._next;H;)M=H._next,H.unlink(),t.appendChild(H),H=M;m.appendChild(t);m1o(O,Q.previousDelimiter);O.brackets=O.brackets.previous;Q.node.unlink();if(!G)for(Q=O.brackets;Q!==null;)Q.image||(Q.active=!1),Q=Q.previous}else O.brackets=O.brackets.previous,O.pos=t,m.appendChild(Ii("]"))}else m.appendChild(Ii("]")),O.brackets=O.brackets.previous;G=!0;break;case 60:(G=O.match(yH8))?(G=G.slice(1,G.length-1),Q=new Jc("link"),
Q._destination=h$U("mailto:"+G),Q._title="",Q.appendChild(Ii(G)),m.appendChild(Q),G=!0):(G=O.match(cHu))?(G=G.slice(1,G.length-1),Q=new Jc("link"),Q._destination=h$U(G),Q._title="",Q.appendChild(Ii(G)),m.appendChild(Q),G=!0):G=!1;G||(G=O.match(z$U),G===null?G=!1:(Q=new Jc("html_inline"),Q._literal=G,m.appendChild(Q),G=!0));break;case 38:(G=O.match(CE_))?(m.appendChild(Ii(WwH(G))),G=!0):G=!1;break;default:G=vi8(O,m)}G||(O.pos+=1,m.appendChild(Ii(jL(B))));return!0};
pG.prototype.parseInlines=function(O){this.subject=O._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;$1j(this,O););O._string_content=null;m1o(this,null)};
pG.prototype.parse=pG.prototype.parseInlines;var Mhj=[/./,/^<(?: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")],rto=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],RX8=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,iJj=/^[#`~*+_=<>0-9-\|]|\|/,x1o=/[^ \t\f\v\r\n]/,qvj=/^[*+-]/,U1e=/^(\d{1,9})([.)])/,th_=/^#{1,6}(?:[ \t]+|$)/,W3s=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,ZJe=/^(?:`{3,}|~{3,})(?= *$)/,zXC=/^(?:=+|-+)[ \t]*$/,Jtu=/\r\n|\n|\r/,Kif=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,$vp=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Vho={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(O){return O!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(O,m){for(O=m._firstChild;O;){if(vNN(O)&&O._next){m._listData.tight=!1;break}for(var G=O._firstChild;G;){if(vNN(G)&&(O._next||G._next)){m._listData.tight=!1;break}G=G._next}O=O._next}},
canContain:function(O){return O==="item"},
acceptsLines:!1},block_quote:{continue:function(O){var m=O.currentLine;if(O.indented||Zf(m,O.nextNonspace)!==62)return 1;Eo(O);LG(O,1,!1);Wr(Zf(m,O.offset))&&LG(O,1,!0);return 0},
finalize:function(){},
canContain:function(O){return O!=="item"},
acceptsLines:!1},item:{continue:function(O,m){if(O.blank){if(m._firstChild==null)return 1;Eo(O)}else if(O.indent>=m._listData.markerOffset+m._listData.padding)LG(O,m._listData.markerOffset+m._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(O){return O!=="item"&&!MBS(O)},
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(O,m){var G=O.currentLine,B=O.indent;if(m._isFenced){if((B=B<=3&&G.charAt(O.nextNonspace)===m._fenceChar&&G.slice(O.nextNonspace).match(ZJe))&&B[0].length>=m._fenceLength)return O.finalize(m,O.lineNumber),2;for(m=m._fenceOffset;m>0&&Wr(Zf(G,O.offset));)LG(O,1,!0),m--}else if(B>=4)LG(O,4,!0);else if(O.blank)Eo(O);else return 1;return 0},
finalize:function(O,m){if(m._isFenced){var G=m._string_content,B=G.indexOf("\n");O=G.slice(0,B);G=G.slice(B+1);m.info=fwu(O.trim());m._literal=G}else m._literal=m._string_content.replace(/(\n *)+$/,"\n");m._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(O,m){return!O.blank||m._htmlBlockType!==6&&m._htmlBlockType!==7?0:1},
finalize:function(O,m){m._literal=m._string_content.replace(/(\n *)+$/,"");m._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(O){return O.blank?1:0},
finalize:function(O,m){for(var G,B=!1;Zf(m._string_content,0)===91&&(G=K3o(O.inlineParser,m._string_content,O.refmap));)m._string_content=m._string_content.slice(G),B=!0;B&&!x1o.test(m._string_content)&&m.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(O){return zA(O.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(O){return O=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(O,m){if(!m._rowIsDelimiter){O=m._isHeader?"th":"td";for(var G=m._parent._tableColumns,B=m._string_content,Q=0,H="",M,R=m._sourcepos[0][0];Q<B.length;){switch(B[Q]){case "|":M&&(M._string_content=H.trim(),H="",M=null,G--,G<=0&&(Q=B.length));break;default:if(!M){M=new Jc(O,[[R,Q],[R,Q]]);var x=m._parent._columnAlignment,t=m._parent._tableColumns-G;x&&t<=x.length&&t>=0&&(M._alignment=x[t]);m.appendChild(M)}H+=B[Q];M._sourcepos[1][1]=Q}Q++}M&&(M._string_content=H.trim());m._string_content=
""}},
canContain:function(O){return O!=="row"},
acceptsLines:!1}},bJu=[function(O){if(O.indented||Zf(O.currentLine,O.nextNonspace)!==62)return 0;Eo(O);LG(O,1,!1);Wr(Zf(O.currentLine,O.offset))&&LG(O,1,!0);CG(O);O.addChild("block_quote",O.nextNonspace);return 1},
function(O){var m;if(!O.indented&&(m=O.currentLine.slice(O.nextNonspace).match(th_))){Eo(O);LG(O,m[0].length,!1);CG(O);var G=O.addChild("heading",O.nextNonspace);G.level=m[0].trim().length;G._string_content=O.currentLine.slice(O.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");LG(O,O.currentLine.length-O.offset);return 2}return 0},
function(O){var m;if(!O.indented&&(m=O.currentLine.slice(O.nextNonspace).match(W3s))){var G=m[0].length;CG(O);var B=O.addChild("code_block",O.nextNonspace);B._isFenced=!0;B._fenceLength=G;B._fenceChar=m[0][0];B._fenceOffset=O.indent;Eo(O);LG(O,G,!1);return 2}return 0},
function(O,m){if(!O.indented&&Zf(O.currentLine,O.nextNonspace)===60){var G=O.currentLine.slice(O.nextNonspace),B;for(B=1;B<=7;B++)if(Mhj[B].test(G)&&(B<7||m.type!=="paragraph"))return CG(O),O.addChild("html_block",O.offset)._htmlBlockType=B,2}return 0},
function(O,m){var G;if(!O.indented&&m.type==="paragraph"&&(G=O.currentLine.slice(O.nextNonspace).match(zXC))){CG(O);var B=new Jc("heading",m.sourcepos);B.level=G[0][0]==="="?1:2;B._string_content=m._string_content;Iw2(m,B);m.unlink();O.tip=B;LG(O,O.currentLine.length-O.offset,!1);return 2}return 0},
function(O){return!O.indented&&RX8.test(O.currentLine.slice(O.nextNonspace))?(CG(O),O.addChild("thematic_break",O.nextNonspace),LG(O,O.currentLine.length-O.offset,!1),2):0},
function(O,m){var G,B;if(!(B=O.indented&&m.type!=="list")){a:{var Q=m,H=O.currentLine.slice(O.nextNonspace);B={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:O.indent};if(G=H.match(qvj))B.type="bullet",B.bulletChar=G[0][0];else{if(!(G=H.match(U1e))||Q.type==="paragraph"&&G[1]!=="1"){G=null;break a}B.type="ordered";B.start=parseInt(G[1],10);B.delimiter=G[2]}var M=Zf(O.currentLine,O.nextNonspace+G[0].length);if(M!==-1&&M!==9&&M!==32||Q.type==="paragraph"&&!O.currentLine.slice(O.nextNonspace+
G[0].length).match(x1o))G=null;else{Eo(O);LG(O,G[0].length,!0);Q=O.column;H=O.offset;do LG(O,1,!0),M=Zf(O.currentLine,O.offset);while(O.column-Q<5&&Wr(M));M=Zf(O.currentLine,O.offset)===-1;var R=O.column-Q;R>=5||R<1||M?(B.padding=G[0].length+1,O.column=Q,O.offset=H,Wr(Zf(O.currentLine,O.offset))&&LG(O,1,!0)):B.padding=G[0].length+R;G=B}}B=!G}if(B)return 0;CG(O);(B=O.tip.type!=="list")||(m=m._listData,B=!(m.type===G.type&&m.delimiter===G.delimiter&&m.bulletChar===G.bulletChar));B&&(m=O.addChild("list",
O.nextNonspace),m._listData=G);m=O.addChild("item",O.nextNonspace);m._listData=G;return 1},
function(O){var m;return((m=O.options.shouldParseIndentAsCodeBlock)!=null?m:1)&&O.indented&&O.tip.type!=="paragraph"&&!O.blank?(LG(O,4,!0),CG(O),O.addChild("code_block",O.offset),2):0},
function(O,m){var G=zA(O.currentLine),B=zA(O.lookahead);if(G!==0&&B<0&&Math.abs(G)==Math.abs(B)&&!MBS(m.type)){CG(O);m=O.addChild("table",O.nextNonspace);m._tableRows=1;m._tableColumns=Math.abs(G);G=O.lookahead;if($vp.test(G)){B=[];for(var Q=0,H=!1,M=0,R=void 0;Q<G.length;){var x=M>=3;switch(G[Q]){case "-":M++;break;case "|":H&&(B.push(R),R=void 0,M=0);H=!0;break;case ":":R||x||(R="left"),!R&&x&&(R="right"),R==="left"&&x&&(R="center")}Q++}G=B}else G=void 0;m._columnAlignment=G;m=O.addChild("row",
O.nextNonspace);m._isHeader=!0;LG(O,O.currentLine.length-O.offset,!1);m._string_content=O.currentLine;return 1}return 0},
function(O,m){if(m.type=="table"&&zA(O.currentLine)!==0){CG(O);var G=m;m=O.addChild("row",O.nextNonspace);zA(O.currentLine)<0?m._rowIsDelimiter=!0:G._tableRows+=1;LG(O,O.currentLine.length-O.offset,!1);m._string_content=O.currentLine;return 2}return 0}],oyI=function(){var O={shouldParseIndentAsCodeBlock:!1};
O=O===void 0?{}:O;this.lastMatchedContainer=this.doc=RI6();this.refmap={};this.lastLineLength=0;this.inlineParser=new pG(O);this.options=O;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=Vho;this.blockStarts=bJu},ni$=function(O){O.partiallyConsumedTab&&(O.offset+=1,O.tip._string_content+=" ".repeat(4-O.column%
4));
O.tip._string_content+=O.currentLine.slice(O.offset)+"\n"};
oyI.prototype.addChild=function(O,m){for(;!this.blocks[this.tip.type].canContain(O);)this.finalize(this.tip,this.lineNumber-1);O=new Jc(O,[[this.lineNumber,m+1],[0,0]]);O._string_content="";this.tip.appendChild(O);return this.tip=O};
var CG=function(O){if(!O.allClosed){for(;O.oldtip!==O.lastMatchedContainer;){var m=O.oldtip._parent;O.finalize(O.oldtip,O.lineNumber-1);O.oldtip=m}O.allClosed=!0}},LG=function(O,m,G){for(var B=O.currentLine,Q,H;m>0&&(H=B[O.offset]);)H==="\t"?(Q=4-O.column%4,G?(O.partiallyConsumedTab=Q>m,Q=Q>m?m:Q,O.column+=Q,O.offset+=O.partiallyConsumedTab?0:1,m-=Q):(O.partiallyConsumedTab=!1,O.column+=Q,O.offset+=1,--m)):(O.partiallyConsumedTab=!1,O.offset+=1,O.column+=1,--m)},Eo=function(O){O.offset=O.nextNonspace;
O.column=O.nextNonspaceColumn;O.partiallyConsumedTab=!1},Xuu=function(O){for(var m=O.currentLine,G=O.offset,B=O.column,Q;(Q=m.charAt(G))!=="";)if(Q===" ")G++,B++;
else if(Q==="\t")G++,B+=4-B%4;else break;O.blank=Q==="\n"||Q==="\r"||Q==="";O.nextNonspace=G;O.nextNonspaceColumn=B;O.indent=O.nextNonspaceColumn-O.column;O.indented=O.indent>=4};
oyI.prototype.finalize=function(O,m){var G=O._parent;O._open=!1;O.sourcepos[1]=[m,this.lastLineLength];this.blocks[O.type].finalize(this,O);this.tip=G};
oyI.prototype.parse=function(O){this.tip=this.doc=RI6();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!O)return this.doc;this.options.time&&console.time("preparing input");var m=O.split(Jtu),G=m.length;O.charCodeAt(O.length-1)===10&&--G;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(O=0;O<G;O++)a:{var B=void 0,Q=m[O],H=m[O+1],M=!0,R=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=H;(B=R._lastChild)&&B._open;){R=B;Xuu(this);switch(this.blocks[R.type].continue(this,R)){case 0:break;case 1:M=!1;break;case 2:this.lastLineLength=Q.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!M){R=R._parent;break}}this.allClosed=R===this.oldtip;this.lastMatchedContainer=
R;B=R.type!=="paragraph"&&Vho[R.type].acceptsLines;H=this.blockStarts;for(M=H.length;!B;){Xuu(this);if(!this.indented&&!iJj.test(Q.slice(this.nextNonspace))){Eo(this);break}for(var x=0;x<M;){var t=H[x](this,R);if(t===1){R=this.tip;break}else if(t===2){R=this.tip;B=!0;break}else x++}if(x===M){Eo(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){CG(this);this.blank&&R.lastChild&&(R.lastChild._lastLineBlank=!0);B=R.type;H=this.blank&&!(B==="block_quote"||B==="code_block"&&R._isFenced||
B==="item"&&!R._firstChild&&R.sourcepos[0][0]===this.lineNumber);for(M=R;M;)M._lastLineBlank=H,M=M._parent;this.blocks[B].acceptsLines?(ni$(this),B==="html_block"&&R._htmlBlockType>=1&&R._htmlBlockType<=5&&rto[R._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(R,this.lineNumber)):this.offset<Q.length&&!this.blank&&(this.addChild("paragraph",this.offset),Eo(this),ni$(this))}else ni$(this);this.lastLineLength=Q.length}for(;this.tip;)this.finalize(this.tip,G);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");Q=new jZu(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;G=Q.next();)m=G.node,O=m.type,G.entering||O!=="paragraph"&&O!=="heading"&&O!=="th"&&O!="td"||this.inlineParser.parse(m);this.options.time&&console.timeEnd("inline parsing");return this.doc};iyp.prototype.render=function(O){O=new jZu(O);var m;this.buffer="";for(this.lastOut="\n";m=O.next();){var G=m.node.type;if(this[G])this[G](m.node,m.entering)}return this.buffer};
iyp.prototype.out=function(O){oi(this,O)};
var oi=function(O,m){O.buffer+=m;O.lastOut=m};
iyp.prototype.cr=function(){this.lastOut!=="\n"&&oi(this,"\n")};var fvm=/^javascript:|vbscript:|file:|data:/i,hX3=/^data:image\/(?:png|gif|jpeg|webp)/i,TR$=function(O){return fvm.test(O)&&!hX3.test(O)};
VA.prototype=Object.create(iyp.prototype);_.v=VA.prototype;_.v.text=function(O){this.out(O.literal)};
_.v.html_inline=function(O){this.options.safe?oi(this,"\x3c!-- raw HTML omitted --\x3e"):oi(this,O.literal)};
_.v.html_block=function(O){this.cr();this.options.safe?oi(this,"\x3c!-- raw HTML omitted --\x3e"):oi(this,O.literal);this.cr()};
_.v.softbreak=function(){oi(this,this.options.softbreak)};
_.v.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.v.link=function(O,m){var G=this.attrs(O);m?(this.options.safe&&TR$(O.destination)||G.push(["href",u8(O.destination,!0)]),O.title&&G.push(["title",u8(O.title,!0)]),this.tag("a",G)):this.tag("/a")};
_.v.image=function(O,m){m?(this.disableTags===0&&(this.options.safe&&TR$(O.destination)?oi(this,'<img src="" alt="'):oi(this,'<img src="'+u8(O.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(O.title&&oi(this,'" title="'+u8(O.title,!0)),oi(this,'" />')))};
_.v.emph=function(O,m){this.tag(m?"em":"/em")};
_.v.strong=function(O,m){this.tag(m?"strong":"/strong")};
_.v.paragraph=function(O,m){var G=O.parent.parent;O=this.attrs(O);G!==null&&G.type==="list"&&G.listTight||(m?(this.cr(),this.tag("p",O)):(this.tag("/p"),this.cr()))};
_.v.heading=function(O,m){var G="h"+O.level;O=this.attrs(O);m?(this.cr(),this.tag(G,O)):(this.tag("/"+G),this.cr())};
_.v.code=function(O){this.tag("code");this.out(O.literal);this.tag("/code")};
_.v.code_block=function(O){var m=O.info?O.info.split(/\s+/):[],G=this.attrs(O);m.length>0&&m[0].length>0&&G.push(["class","language-"+u8(m[0],!0)]);this.cr();this.tag("pre");this.tag("code",G);this.out(O.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.v.thematic_break=function(O){O=this.attrs(O);this.cr();this.tag("hr",O,!0);this.cr()};
_.v.block_quote=function(O,m){O=this.attrs(O);m?(this.cr(),this.tag("blockquote",O)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.v.list=function(O,m){var G=O.listType==="bullet"?"ul":"ol",B=this.attrs(O);m?(O=O.listStart,O!==null&&O!==1&&B.push(["start",O.toString()]),this.cr(),this.tag(G,B)):(this.cr(),this.tag("/"+G));this.cr()};
_.v.item=function(O,m){O=this.attrs(O);m?this.tag("li",O):(this.tag("/li"),this.cr())};
_.v.custom_inline=function(O,m){m&&O.onEnter?oi(this,O.onEnter):!m&&O.onExit&&oi(this,O.onExit)};
_.v.custom_block=function(O,m){this.cr();m&&O.onEnter?oi(this,O.onEnter):!m&&O.onExit&&oi(this,O.onExit);this.cr()};
_.v.table=function(O,m){O=this.attrs(O);m?(this.cr(),this.tag("table",O)):(this.tag("/table"),this.cr())};
_.v.row=function(O,m){O._rowIsDelimiter||(O=this.attrs(O),m?this.tag("tr",O):this.tag("/tr"))};
_.v.td=function(O,m){var G=this.attrs(O);O._alignment&&G.push(["align",O._alignment]);m?this.tag("td",G):this.tag("/td")};
_.v.th=function(O,m){var G=this.attrs(O);O._alignment&&G.push(["align",O._alignment]);m?this.tag("th",G):this.tag("/th")};
_.v.out=function(O){oi(this,u8(O,!1))};
_.v.tag=function(O,m,G){if(!(this.disableTags>0)){this.buffer+="<"+O;if(m&&m.length>0){O=0;for(var B;(B=m[O])!==void 0;)this.buffer+=" "+B[0]+'="'+B[1]+'"',O++}G&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.v.attrs=function(O){var m=[];this.options.sourcepos&&(O=O.sourcepos)&&m.push(["data-sourcepos",String(O[0][0])+":"+String(O[0][1])+"-"+String(O[1][0])+":"+String(O[1][1])]);return m};
VA.prototype.text=VA.prototype.text;VA.prototype.html_inline=VA.prototype.html_inline;VA.prototype.html_block=VA.prototype.html_block;VA.prototype.softbreak=VA.prototype.softbreak;VA.prototype.linebreak=VA.prototype.linebreak;VA.prototype.link=VA.prototype.link;VA.prototype.image=VA.prototype.image;VA.prototype.emph=VA.prototype.emph;VA.prototype.strong=VA.prototype.strong;VA.prototype.paragraph=VA.prototype.paragraph;VA.prototype.heading=VA.prototype.heading;VA.prototype.code=VA.prototype.code;
VA.prototype.code_block=VA.prototype.code_block;VA.prototype.thematic_break=VA.prototype.thematic_break;VA.prototype.block_quote=VA.prototype.block_quote;VA.prototype.list=VA.prototype.list;VA.prototype.item=VA.prototype.item;VA.prototype.custom_inline=VA.prototype.custom_inline;VA.prototype.custom_block=VA.prototype.custom_block;VA.prototype.table=VA.prototype.table;VA.prototype.row=VA.prototype.row;VA.prototype.td=VA.prototype.td;VA.prototype.th=VA.prototype.th;VA.prototype.out=VA.prototype.out;
VA.prototype.tag=VA.prototype.tag;VA.prototype.attrs=VA.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 gi$,u4p,w_6;(function(){function O(E,p){return E<p?-1:E>p?1:E>=p?0:NaN}
function m(E){return function(p,k){return O(E(p),k)}}
function G(){for(var E=0,p=arguments.length,k={},m5;E<p;++E){if(!(m5=arguments[E]+"")||m5 in k)throw Error("ve`"+m5);k[m5]=[]}return new B(k)}
function B(E){this._=E}
function Q(E,p){return E.trim().split(/^|\s+/).map(function(k){var m5="",Mp=k.indexOf(".");Mp>=0&&(m5=k.slice(Mp+1),k=k.slice(0,Mp));if(k&&!p.hasOwnProperty(k))throw Error("we`"+k);return{type:k,name:m5}})}
function H(E,p,k){for(var m5=0,Mp=E.length;m5<Mp;++m5)if(E[m5].name===p){E[m5]=NTB;E=E.slice(0,m5).concat(E.slice(m5+1));break}k!=null&&E.push({name:p,value:k});return E}
function M(E){var p=E,k=p.indexOf(":");k>=0&&(p=E.slice(0,k))!=="xmlns"&&(E=E.slice(k+1));return Ck.hasOwnProperty(p)?{space:Ck[p],local:E}:E}
function R(E){return function(){var p=this.ownerDocument,k=this.namespaceURI;return k==="http://www.w3.org/1999/xhtml"&&p.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?p.createElement(E):p.createElementNS(k,E)}}
function x(E){return function(){return this.ownerDocument.createElementNS(E.space,E.local)}}
function t(E){E=M(E);return(E.local?x:R)(E)}
function W(){}
function Z(E){return E==null?W:function(){return this.querySelector(E)}}
function z(E){return Array(E.length)}
function J(E,p){this.ownerDocument=E.ownerDocument;this.namespaceURI=E.namespaceURI;this._next=null;this._parent=E;this.__data__=p}
function n(E){return function(){return E}}
function I(E,p,k,m5,Mp,Zp){for(var nN=0,pN,mU=p.length,FI=Zp.length;nN<FI;++nN)(pN=p[nN])?(pN.__data__=Zp[nN],m5[nN]=pN):k[nN]=new J(E,Zp[nN]);for(;nN<mU;++nN)if(pN=p[nN])Mp[nN]=pN}
function S(E,p,k,m5,Mp,Zp,nN){var pN,mU,FI={},Bs=p.length,tm=Zp.length,s3=Array(Bs),hs;for(pN=0;pN<Bs;++pN)if(mU=p[pN])s3[pN]=hs="$"+nN.call(mU,mU.__data__,pN,p),hs in FI?Mp[pN]=mU:FI[hs]=mU;for(pN=0;pN<tm;++pN)hs="$"+nN.call(E,Zp[pN],pN,Zp),(mU=FI[hs])?(m5[pN]=mU,mU.__data__=Zp[pN],FI[hs]=null):k[pN]=new J(E,Zp[pN]);for(pN=0;pN<Bs;++pN)(mU=p[pN])&&FI[s3[pN]]===mU&&(Mp[pN]=mU)}
function L(E,p){return E<p?-1:E>p?1:E>=p?0:NaN}
function C(E){return function(){this.removeAttribute(E)}}
function P(E){return function(){this.removeAttributeNS(E.space,E.local)}}
function w(E,p){return function(){this.setAttribute(E,p)}}
function d(E,p){return function(){this.setAttributeNS(E.space,E.local,p)}}
function D(E,p){return function(){var k=p.apply(this,arguments);k==null?this.removeAttribute(E):this.setAttribute(E,k)}}
function OS(E,p){return function(){var k=p.apply(this,arguments);k==null?this.removeAttributeNS(E.space,E.local):this.setAttributeNS(E.space,E.local,k)}}
function rN(E){return function(){this.style.removeProperty(E)}}
function xO(E,p,k){return function(){this.style.setProperty(E,p,k)}}
function XI(E,p,k){return function(){var m5=p.apply(this,arguments);m5==null?this.style.removeProperty(E):this.style.setProperty(E,m5,k)}}
function Vf(E,p){return E.style.getPropertyValue(p)||(E.ownerDocument&&E.ownerDocument.defaultView||E.document&&E||E.defaultView).getComputedStyle(E,null).getPropertyValue(p)}
function US(E){return function(){delete this[E]}}
function CN(E,p){return function(){this[E]=p}}
function oe(E,p){return function(){var k=p.apply(this,arguments);k==null?delete this[E]:this[E]=k}}
function K$(){this.textContent=""}
function n$(E){return function(){this.textContent=E}}
function qe(E){return function(){var p=E.apply(this,arguments);this.textContent=p==null?"":p}}
function PM(){this.innerHTML=""}
function ZH(E){return function(){this.innerHTML=E}}
function U3(E){return function(){var p=E.apply(this,arguments);this.innerHTML=p==null?"":p}}
function p$(){return null}
function uy(){var E=this.parentNode;E&&E.removeChild(this)}
function vb(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function vM(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Gp(E,p,k){E=Vu(E,p,k);return function(m5){var Mp=m5.relatedTarget;Mp&&(Mp===this||Mp.compareDocumentPosition(this)&8)||E.call(this,m5)}}
function Vu(E,p,k){return function(){E.call(this,this.__data__,p,k)}}
function Gu(E){return E.trim().split(/^|\s+/).map(function(p){var k="",m5=p.indexOf(".");m5>=0&&(k=p.slice(m5+1),p=p.slice(0,m5));return{type:p,name:k}})}
function x9(E){return function(){var p=this.__on;if(p){for(var k=0,m5=-1,Mp=p.length,Zp;k<Mp;++k)(Zp=p[k],E.type&&Zp.type!==E.type||Zp.name!==E.name)?p[++m5]=Zp:this.removeEventListener(Zp.type,Zp.listener,Zp.capture);++m5?p.length=m5:delete this.__on}}}
function Am(E,p,k){var m5=bio.hasOwnProperty(E.type)?Gp:Vu;return function(Mp,Zp,nN){Mp=this.__on;var pN;Zp=m5(p,Zp,nN);if(Mp){nN=0;for(var mU=Mp.length;nN<mU;++nN)if((pN=Mp[nN]).type===E.type&&pN.name===E.name){this.removeEventListener(pN.type,pN.listener,pN.capture);this.addEventListener(pN.type,pN.listener=Zp,pN.capture=k);pN.value=p;return}}this.addEventListener(E.type,Zp,k);pN={type:E.type,name:E.name,value:p,listener:Zp,capture:k};Mp?Mp.push(pN):this.__on=[pN]}}
function Fc(E,p,k){var m5=E.ownerDocument&&E.ownerDocument.defaultView||E.document&&E||E.defaultView,Mp=m5.CustomEvent;typeof Mp==="function"?Mp=new Mp(p,k):(Mp=m5.document.createEvent("Event"),k?(Mp.initEvent(p,k.bubbles,k.cancelable),Mp.detail=k.detail):Mp.initEvent(p,!1,!1));E.dispatchEvent(Mp)}
function O9(E,p){return function(){return Fc(this,E,p)}}
function Rj(E,p){return function(){return Fc(this,E,p.apply(this,arguments))}}
function DH(E,p){this._groups=E;this._parents=p}
function zu(){return new DH([[document.documentElement]],Pqr)}
function jo(){this._="@"+(++Ftr).toString(36)}
function f$(E,p,k){E.prototype=p.prototype=k;k.constructor=E}
function Wb(E,p){E=Object.create(E.prototype);for(var k in p)E[k]=p[k];return E}
function G9(){}
function U9(E){var p;E=(E+"").trim().toLowerCase();return(p=AfA.exec(E))?(p=parseInt(p[1],16),new s9(p>>8&15|p>>4&240,p>>4&15|p&240,(p&15)<<4|p&15,1)):(p=OKB.exec(E))?IM(parseInt(p[1],16)):(p=mOB.exec(E))?new s9(p[1],p[2],p[3],1):(p=G_o.exec(E))?new s9(p[1]*255/100,p[2]*255/100,p[3]*255/100,1):(p=Bcx.exec(E))?pI(p[1],p[2],p[3],p[4]):(p=QSy.exec(E))?pI(p[1]*255/100,p[2]*255/100,p[3]*255/100,p[4]):(p=HKs.exec(E))?xR(p[1],p[2]/100,p[3]/100,1):(p=vzy.exec(E))?xR(p[1],p[2]/100,p[3]/100,p[4]):nA2.hasOwnProperty(E)?
IM(nA2[E]):E==="transparent"?new s9(NaN,NaN,NaN,0):null}
function IM(E){return new s9(E>>16&255,E>>8&255,E&255,1)}
function pI(E,p,k,m5){m5<=0&&(E=p=k=NaN);return new s9(E,p,k,m5)}
function yu(E){E instanceof G9||(E=U9(E));if(!E)return new s9;E=E.rgb();return new s9(E.r,E.g,E.b,E.opacity)}
function SK(E,p,k,m5){return arguments.length===1?yu(E):new s9(E,p,k,m5==null?1:m5)}
function s9(E,p,k,m5){this.r=+E;this.g=+p;this.b=+k;this.opacity=+m5}
function Xc(E){E=Math.max(0,Math.min(255,Math.round(E)||0));return(E<16?"0":"")+E.toString(16)}
function xR(E,p,k,m5){m5<=0?E=p=k=NaN:k<=0||k>=1?E=p=NaN:p<=0&&(E=NaN);return new pS(E,p,k,m5)}
function vY(E){if(E instanceof pS)return new pS(E.h,E.s,E.l,E.opacity);E instanceof G9||(E=U9(E));if(!E)return new pS;if(E instanceof pS)return E;E=E.rgb();var p=E.r/255,k=E.g/255,m5=E.b/255,Mp=Math.min(p,k,m5),Zp=Math.max(p,k,m5),nN=NaN,pN=Zp-Mp,mU=(Zp+Mp)/2;pN?(nN=p===Zp?(k-m5)/pN+(k<m5)*6:k===Zp?(m5-p)/pN+2:(p-k)/pN+4,pN/=mU<.5?Zp+Mp:2-Zp-Mp,nN*=60):pN=mU>0&&mU<1?0:nN;return new pS(nN,pN,mU,E.opacity)}
function Sj(E,p,k,m5){return arguments.length===1?vY(E):new pS(E,p,k,m5==null?1:m5)}
function pS(E,p,k,m5){this.h=+E;this.s=+p;this.l=+k;this.opacity=+m5}
function ms(E,p,k){return(E<60?p+(k-p)*E/60:E<180?k:E<240?p+(k-p)*(240-E)/60:p)*255}
function MB(E){if(E instanceof TY)return new TY(E.l,E.a,E.b,E.opacity);if(E instanceof XC){if(isNaN(E.h))return new TY(E.l,0,0,E.opacity);var p=E.h*XDe;return new TY(E.l,Math.cos(p)*E.c,Math.sin(p)*E.c,E.opacity)}E instanceof s9||(E=yu(E));var k=ts(E.r),m5=ts(E.g),Mp=ts(E.b);p=ls(.2225045*k+.7168786*m5+.0606169*Mp);if(k===m5&&m5===Mp)var Zp=k=p;else Zp=ls((.4360747*k+.3850649*m5+.1430804*Mp)/.96422),k=ls((.0139322*k+.0971045*m5+.7141733*Mp)/.82521);return new TY(116*p-16,500*(Zp-p),200*(p-k),E.opacity)}
function TY(E,p,k,m5){this.l=+E;this.a=+p;this.b=+k;this.opacity=+m5}
function ls(E){return E>KEr?Math.pow(E,1/3):E/fUp+h99}
function wN(E){return E>Zj?E*E*E:fUp*(E-h99)}
function zp(E){return 255*(E<=.0031308?12.92*E:1.055*Math.pow(E,1/2.4)-.055)}
function ts(E){return(E/=255)<=.04045?E/12.92:Math.pow((E+.055)/1.055,2.4)}
function SA(E){if(E instanceof XC)return new XC(E.h,E.c,E.l,E.opacity);E instanceof TY||(E=MB(E));if(E.a===0&&E.b===0)return new XC(NaN,0,E.l,E.opacity);var p=Math.atan2(E.b,E.a)*TS3;return new XC(p<0?p+360:p,Math.sqrt(E.a*E.a+E.b*E.b),E.l,E.opacity)}
function Xr(E,p,k,m5){return arguments.length===1?SA(E):new XC(E,p,k,m5==null?1:m5)}
function XC(E,p,k,m5){this.h=+E;this.c=+p;this.l=+k;this.opacity=+m5}
function b2(E,p,k,m5){if(arguments.length===1){var Mp=E;if(Mp instanceof E9)Mp=new E9(Mp.h,Mp.s,Mp.l,Mp.opacity);else{Mp instanceof s9||(Mp=yu(Mp));var Zp=Mp.g/255,nN=Mp.b/255,pN=(gAe*nN+Mp.r/255*-1.7884503806-3.5172982438*Zp)/(gAe+-1.7884503806-3.5172982438);nN-=pN;var mU=(1.97294*(Zp-pN)- -.29227*nN)/-.90649;nN=(Zp=Math.sqrt(mU*mU+nN*nN)/(1.97294*pN*(1-pN)))?Math.atan2(mU,nN)*TS3-120:NaN;Mp=new E9(nN<0?nN+360:nN,Zp,pN,Mp.opacity)}}else Mp=new E9(E,p,k,m5==null?1:m5);return Mp}
function E9(E,p,k,m5){this.h=+E;this.s=+p;this.l=+k;this.opacity=+m5}
function VO(E,p,k,m5,Mp){var Zp=E*E,nN=Zp*E;return((1-3*E+3*Zp-nN)*p+(4-6*Zp+3*nN)*k+(1+3*E+3*Zp-3*nN)*m5+nN*Mp)/6}
function Ws(E){return function(){return E}}
function g9(E,p){return function(k){return E+k*p}}
function ch(E,p,k){return E=Math.pow(E,k),p=Math.pow(p,k)-E,k=1/k,function(m5){return Math.pow(E+m5*p,k)}}
function c8(E,p){var k=p-E;return k?g9(E,k>180||k<-180?k-360*Math.round(k/360):k):Ws(isNaN(E)?p:E)}
function dh(E){return(E=+E)===1?e0:function(p,k){return k-p?ch(p,k,E):Ws(isNaN(p)?k:p)}}
function e0(E,p){var k=p-E;return k?g9(E,k):Ws(isNaN(E)?p:E)}
function Gm(E){return function(p){var k=p.length,m5=Array(k),Mp=Array(k),Zp=Array(k),nN;for(nN=0;nN<k;++nN){var pN=SK(p[nN]);m5[nN]=pN.r||0;Mp[nN]=pN.g||0;Zp[nN]=pN.b||0}m5=E(m5);Mp=E(Mp);Zp=E(Zp);pN.opacity=1;return function(mU){pN.r=m5(mU);pN.g=Mp(mU);pN.b=Zp(mU);return pN+""}}}
function pL(E,p){return E=+E,p-=E,function(k){return E+p*k}}
function v4(E){return function(){return E}}
function bh(E){return function(p){return E(p)+""}}
function er(E,p){var k=V1r.lastIndex=b36.lastIndex=0,m5,Mp,Zp,nN=-1,pN=[],mU=[];E+="";for(p+="";(m5=V1r.exec(E))&&(Mp=b36.exec(p));)(Zp=Mp.index)>k&&(Zp=p.slice(k,Zp),pN[nN]?pN[nN]+=Zp:pN[++nN]=Zp),(m5=m5[0])===(Mp=Mp[0])?pN[nN]?pN[nN]+=Mp:pN[++nN]=Mp:(pN[++nN]=null,mU.push({i:nN,x:pL(m5,Mp)})),k=b36.lastIndex;k<p.length&&(Zp=p.slice(k),pN[nN]?pN[nN]+=Zp:pN[++nN]=Zp);return pN.length<2?mU[0]?bh(mU[0].x):v4(p):(p=mU.length,function(FI){for(var Bs=0,tm;Bs<p;++Bs)pN[(tm=mU[Bs]).i]=tm.x(FI);return pN.join("")})}
function Js(E,p,k,m5,Mp,Zp){var nN,pN,mU;if(nN=Math.sqrt(E*E+p*p))E/=nN,p/=nN;if(mU=E*k+p*m5)k-=E*mU,m5-=p*mU;if(pN=Math.sqrt(k*k+m5*m5))k/=pN,m5/=pN,mU/=pN;E*m5<p*k&&(E=-E,p=-p,mU=-mU,nN=-nN);return{translateX:Mp,translateY:Zp,rotate:Math.atan2(p,E)*u5$,skewX:Math.atan(mU)*u5$,scaleX:nN,scaleY:pN}}
function ly(E,p,k,m5){function Mp(FI){return FI.length?FI.pop()+" ":""}
function Zp(FI,Bs,tm,s3,hs,f9){FI!==tm||Bs!==s3?(hs=hs.push("translate(",null,p,null,k),f9.push({i:hs-4,x:pL(FI,tm)},{i:hs-2,x:pL(Bs,s3)})):(tm||s3)&&hs.push("translate("+tm+p+s3+k)}
function nN(FI,Bs,tm,s3){FI!==Bs?(FI-Bs>180?Bs+=360:Bs-FI>180&&(FI+=360),s3.push({i:tm.push(Mp(tm)+"rotate(",null,m5)-2,x:pL(FI,Bs)})):Bs&&tm.push(Mp(tm)+"rotate("+Bs+m5)}
function pN(FI,Bs,tm,s3){FI!==Bs?s3.push({i:tm.push(Mp(tm)+"skewX(",null,m5)-2,x:pL(FI,Bs)}):Bs&&tm.push(Mp(tm)+"skewX("+Bs+m5)}
function mU(FI,Bs,tm,s3,hs,f9){FI!==tm||Bs!==s3?(hs=hs.push(Mp(hs)+"scale(",null,",",null,")"),f9.push({i:hs-4,x:pL(FI,tm)},{i:hs-2,x:pL(Bs,s3)})):tm===1&&s3===1||hs.push(Mp(hs)+"scale("+tm+","+s3+")")}
return function(FI,Bs){var tm=[],s3=[];FI=E(FI);Bs=E(Bs);Zp(FI.translateX,FI.translateY,Bs.translateX,Bs.translateY,tm,s3);nN(FI.rotate,Bs.rotate,tm,s3);pN(FI.skewX,Bs.skewX,tm,s3);mU(FI.scaleX,FI.scaleY,Bs.scaleX,Bs.scaleY,tm,s3);FI=Bs=null;return function(hs){for(var f9=-1,wC=s3.length,gC;++f9<wC;)tm[(gC=s3[f9]).i]=gC.x(hs);return tm.join("")}}}
function $h(E){return function(p,k){var m5=E((p=Sj(p)).h,(k=Sj(k)).h),Mp=e0(p.s,k.s),Zp=e0(p.l,k.l),nN=e0(p.opacity,k.opacity);return function(pN){p.h=m5(pN);p.s=Mp(pN);p.l=Zp(pN);p.opacity=nN(pN);return p+""}}}
function qM(E){return function(p,k){var m5=E((p=Xr(p)).h,(k=Xr(k)).h),Mp=e0(p.c,k.c),Zp=e0(p.l,k.l),nN=e0(p.opacity,k.opacity);return function(pN){p.h=m5(pN);p.c=Mp(pN);p.l=Zp(pN);p.opacity=nN(pN);return p+""}}}
function s_(E){return function m5(k){function Mp(Zp,nN){var pN=E((Zp=b2(Zp)).h,(nN=b2(nN)).h),mU=e0(Zp.s,nN.s),FI=e0(Zp.l,nN.l),Bs=e0(Zp.opacity,nN.opacity);return function(tm){Zp.h=pN(tm);Zp.s=mU(tm);Zp.l=FI(Math.pow(tm,k));Zp.opacity=Bs(tm);return Zp+""}}
k=+k;Mp.gamma=m5;return Mp}(1)}
function Ya(){return O8||(jte(FJ),O8=ax.now()+Pbr)}
function FJ(){O8=0}
function gR(){this._call=this._time=this._next=null}
function I1(E,p,k){var m5=new gR;m5.restart(E,p,k);return m5}
function p2(){O8=(FMS=ax.now())+Pbr;zW=kW=0;try{Ya();++zW;for(var E=AEp,p;E;)(p=O8-E._time)>=0&&E._call.call(null,p),E=E._next;--zW}finally{zW=0;E=AEp;for(var k=Infinity;E;)if(E._call){k>E._time&&(k=E._time);var m5=E;E=E._next}else p=E._next,E._next=null,E=m5?m5._next=p:AEp=p;yB=m5;Sz(k);O8=0}}
function r$s(){var E=ax.now(),p=E-FMS;p>1E3&&(Pbr-=p,FMS=E)}
function Sz(E){zW||(kW&&(kW=clearTimeout(kW)),E-O8>24?(E<Infinity&&(kW=setTimeout(p2,E-ax.now()-Pbr)),cJ&&(cJ=clearInterval(cJ))):(cJ||(FMS=ax.now(),cJ=setInterval(r$s,1E3)),zW=1,jte(p2)))}
function IU3(E,p,k){var m5=new gR;p=p==null?0:+p;m5.restart(function(Mp){m5.stop();E(Mp+p)},p,k);
return m5}
function noN(E,p,k,m5,Mp,Zp){var nN=E.__transition;if(!nN)E.__transition={};else if(k in nN)return;$Ob(E,k,{name:p,index:m5,group:Mp,on:MIy,tween:rQK,time:Zp.time,delay:Zp.delay,duration:Zp.duration,ease:Zp.ease,timer:null,state:0})}
function XgI(E,p){E=jf(E,p);if(E.state>0)throw Error("xe");return E}
function mV(E,p){E=jf(E,p);if(E.state>2)throw Error("ye");return E}
function jf(E,p){E=E.__transition;if(!E||!(E=E[p]))throw Error("ze");return E}
function $Ob(E,p,k){function m5(mU){var FI,Bs;if(k.state!==1)return Zp();for(s3 in nN){var tm=nN[s3];if(tm.name===k.name){if(tm.state===3)return IU3(m5);tm.state===4?(tm.state=6,tm.timer.stop(),tm.on.call("interrupt",E,E.__data__,tm.index,tm.group),delete nN[s3]):+s3<p&&(tm.state=6,tm.timer.stop(),delete nN[s3])}}IU3(function(){k.state===3&&(k.state=4,k.timer.restart(Mp,k.delay,k.time),Mp(mU))});
k.state=2;k.on.call("start",E,E.__data__,k.index,k.group);if(k.state===2){k.state=3;pN=Array(Bs=k.tween.length);var s3=0;for(FI=-1;s3<Bs;++s3)if(tm=k.tween[s3].value.call(E,E.__data__,k.index,k.group))pN[++FI]=tm;pN.length=FI+1}}
function Mp(mU){mU=mU<k.duration?k.ease.call(null,mU/k.duration):(k.timer.restart(Zp),k.state=5,1);for(var FI=-1,Bs=pN.length;++FI<Bs;)pN[FI].call(null,mU);k.state===5&&(k.on.call("end",E,E.__data__,k.index,k.group),Zp())}
function Zp(){k.state=6;k.timer.stop();delete nN[p];for(var mU in nN)return;delete E.__transition}
var nN=E.__transition,pN;nN[p]=k;k.timer=I1(function(mU){k.state=1;k.timer.restart(m5,k.delay,k.time);k.delay<=mU&&m5(mU-k.delay)},0,k.time)}
function RAA(E,p){var k,m5;return function(){var Mp=mV(this,E),Zp=Mp.tween;if(Zp!==k){m5=k=Zp;Zp=0;for(var nN=m5.length;Zp<nN;++Zp)if(m5[Zp].name===p){m5=m5.slice();m5.splice(Zp,1);break}}Mp.tween=m5}}
function iKK(E,p,k){var m5,Mp;if(typeof k!=="function")throw Error();return function(){var Zp=mV(this,E),nN=Zp.tween;if(nN!==m5){Mp=(m5=nN).slice();nN={name:p,value:k};for(var pN=0,mU=Mp.length;pN<mU;++pN)if(Mp[pN].name===p){Mp[pN]=nN;break}pN===mU&&Mp.push(nN)}Zp.tween=Mp}}
function fRO(E,p,k){var m5=E._id;E.each(function(){var Mp=mV(this,m5);(Mp.value||(Mp.value={}))[p]=k.apply(this,arguments)});
return function(Mp){return jf(Mp,m5).value[p]}}
function pDu(E,p){var k;return(typeof p==="number"?pL:p instanceof U9?SE3:(k=U9(p))?(p=k,SE3):er)(E,p)}
function xOs(E){return function(){this.removeAttribute(E)}}
function q1K(E){return function(){this.removeAttributeNS(E.space,E.local)}}
function UOs(E,p,k){var m5,Mp;return function(){var Zp=this.getAttribute(E);return Zp===k?null:Zp===m5?Mp:Mp=p(m5=Zp,k)}}
function tIB(E,p,k){var m5,Mp;return function(){var Zp=this.getAttributeNS(E.space,E.local);return Zp===k?null:Zp===m5?Mp:Mp=p(m5=Zp,k)}}
function WEJ(E,p,k){var m5,Mp,Zp;return function(){var nN=k(this);if(nN==null)return void this.removeAttribute(E);var pN=this.getAttribute(E);return pN===nN?null:pN===m5&&nN===Mp?Zp:Zp=p(m5=pN,Mp=nN)}}
function ZKb(E,p,k){var m5,Mp,Zp;return function(){var nN=k(this);if(nN==null)return void this.removeAttributeNS(E.space,E.local);var pN=this.getAttributeNS(E.space,E.local);return pN===nN?null:pN===m5&&nN===Mp?Zp:Zp=p(m5=pN,Mp=nN)}}
function zAh(E,p){function k(){var m5=this,Mp=p.apply(m5,arguments);return Mp&&function(Zp){m5.setAttributeNS(E.space,E.local,Mp(Zp))}}
k._value=p;return k}
function JQx(E,p){function k(){var m5=this,Mp=p.apply(m5,arguments);return Mp&&function(Zp){m5.setAttribute(E,Mp(Zp))}}
k._value=p;return k}
function VIr(E,p){return function(){XgI(this,E).delay=+p.apply(this,arguments)}}
function bKb(E,p){return p=+p,function(){XgI(this,E).delay=p}}
function nzu(E,p){return function(){mV(this,E).duration=+p.apply(this,arguments)}}
function X3A(E,p){return p=+p,function(){mV(this,E).duration=p}}
function fNh(E,p){if(typeof p!=="function")throw Error();return function(){mV(this,E).ease=p}}
function hAJ(E){return(E+"").trim().split(/^|\s+/).every(function(p){var k=p.indexOf(".");k>=0&&(p=p.slice(0,k));return!p||p==="start"})}
function Tcs(E,p,k){var m5,Mp,Zp=hAJ(p)?XgI:mV;return function(){var nN=Zp(this,E),pN=nN.on;if(pN!==m5)(Mp=(m5=pN).copy()).on(p,k);nN.on=Mp}}
function gz0(E){return function(){var p=this.parentNode,k;for(k in this.__transition)if(+k!==E)return;p&&p.removeChild(this)}}
function uWo(E,p){var k,m5,Mp;return function(){var Zp=Vf(this,E),nN=(this.style.removeProperty(E),Vf(this,E));return Zp===nN?null:Zp===k&&nN===m5?Mp:Mp=p(k=Zp,m5=nN)}}
function jSb(E){return function(){this.style.removeProperty(E)}}
function INA(E,p,k){var m5,Mp;return function(){var Zp=Vf(this,E);return Zp===k?null:Zp===m5?Mp:Mp=p(m5=Zp,k)}}
function p30(E,p,k){var m5,Mp,Zp;return function(){var nN=Vf(this,E),pN=k(this);pN==null&&(pN=(this.style.removeProperty(E),Vf(this,E)));return nN===pN?null:nN===m5&&pN===Mp?Zp:Zp=p(m5=nN,Mp=pN)}}
function S10(E,p,k){function m5(){var Mp=this,Zp=p.apply(Mp,arguments);return Zp&&function(nN){Mp.style.setProperty(E,Zp(nN),k)}}
m5._value=p;return m5}
function Ezs(E){return function(){this.textContent=E}}
function LEo(E){return function(){var p=E(this);this.textContent=p==null?"":p}}
function Nx(E,p,k,m5){this._groups=E;this._parents=p;this._name=k;this._id=m5}
function hRf(E){return{type:E}}
function TyS(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function Opp(){}
function EAj(E,p){var k=new Opp;if(E instanceof Opp)E.each(function(nN,pN){k.set(pN,nN)});
else if(Array.isArray(E)){var m5=-1,Mp=E.length,Zp;if(p==null)for(;++m5<Mp;)k.set(m5,E[m5]);else for(;++m5<Mp;)k.set(p(Zp=E[m5],m5,E),Zp)}else if(E)for(m5 in E)k.set(m5,E[m5]);return k}
function mIY(){}
function LGH(E){return function(p){for(var k={},m5=0;m5<E.length;m5++)k[E[m5]]=p[m5]||"";return k}}
function CRs(E,p){var k=LGH(E);return function(m5,Mp){return p(k(m5),Mp,E)}}
function oz0(E){var p=Object.create(null),k=[];E.forEach(function(m5){for(var Mp in m5)Mp in p||k.push(p[Mp]=Mp)});
return k}
function CAp(E){function p(nN,pN){function mU(){if(f9)return goI;if(wC)return wC=!1,oA$;var OD,DK=tm,Wq;if(nN.charCodeAt(DK)===34){for(;tm++<Bs&&nN.charCodeAt(tm)!==34||nN.charCodeAt(++tm)===34;);(OD=tm)>=Bs?f9=!0:(Wq=nN.charCodeAt(tm++))===10?wC=!0:Wq===13&&(wC=!0,nN.charCodeAt(tm)===10&&++tm);return nN.slice(DK+1,OD-1).replace(/""/g,'"')}for(;tm<Bs;){if((Wq=nN.charCodeAt(OD=tm++))===10)wC=!0;else if(Wq===13)wC=!0,nN.charCodeAt(tm)===10&&++tm;else if(Wq!==Zp)continue;return nN.slice(DK,OD)}return f9=
!0,nN.slice(DK,Bs)}
var FI=[],Bs=nN.length,tm=0,s3=0,hs,f9=Bs<=0,wC=!1;nN.charCodeAt(Bs-1)===10&&--Bs;for(nN.charCodeAt(Bs-1)===13&&--Bs;(hs=mU())!==goI;){for(var gC=[];hs!==oA$&&hs!==goI;)gC.push(hs),hs=mU();pN&&(gC=pN(gC,s3++))==null||FI.push(gC)}return FI}
function k(nN){return nN.map(m5).join(E)}
function m5(nN){return nN==null?"":Mp.test(nN)?'"'+nN.replace(/"/g,'""')+'"':nN}
var Mp=new RegExp('["'+E+"\n\r]"),Zp=E.charCodeAt(0);return{parse:function(nN,pN){var mU,FI;nN=p(nN,function(Bs,tm){if(mU)return mU(Bs,tm-1);FI=Bs;mU=pN?CRs(Bs,pN):LGH(Bs)});
nN.columns=FI||[];return nN},
parseRows:p,format:function(nN,pN){pN==null&&(pN=oz0(nN));return[pN.map(m5).join(E)].concat(nN.map(function(mU){return pN.map(function(FI){return m5(mU[FI])}).join(E)})).join("\n")},
formatRows:function(nN){return nN.map(k).join("\n")}}}
function lNy(E){if(!E.ok)throw Error("Ae`"+E.status+"`"+E.statusText);return E.text()}
function lU8(E){return function(p,k,m5){arguments.length===2&&typeof k==="function"&&(m5=k,k=void 0);return fetch(p,k).then(lNy).then(function(Mp){return E(Mp,m5)})}}
function aU_(E,p,k,m5){if(isNaN(p)||isNaN(k))return E;var Mp,Zp=E._root;m5={data:m5};var nN=E._x0,pN=E._y0,mU=E._x1,FI=E._y1,Bs,tm,s3,hs,f9;if(!Zp)return E._root=m5,E;for(;Zp.length;)if((s3=p>=(Bs=(nN+mU)/2))?nN=Bs:mU=Bs,(hs=k>=(tm=(pN+FI)/2))?pN=tm:FI=tm,Mp=Zp,!(Zp=Zp[f9=hs<<1|s3]))return Mp[f9]=m5,E;var wC=+E._x.call(null,Zp.data);var gC=+E._y.call(null,Zp.data);if(p===wC&&k===gC)return m5.next=Zp,Mp?Mp[f9]=m5:E._root=m5,E;do Mp=Mp?Mp[f9]=Array(4):E._root=Array(4),(s3=p>=(Bs=(nN+mU)/2))?nN=Bs:mU=
Bs,(hs=k>=(tm=(pN+FI)/2))?pN=tm:FI=tm;while((f9=hs<<1|s3)===(s3=(gC>=tm)<<1|wC>=Bs));return Mp[s3]=Zp,Mp[f9]=m5,E}
function yM(E,p,k,m5,Mp){this.node=E;this.x0=p;this.y0=k;this.x1=m5;this.y1=Mp}
function aNb(E){return E[0]}
function k_s(E){return E[1]}
function uLO(E,p,k,m5,Mp,Zp){this._x=E;this._y=p;this._x0=k;this._y0=m5;this._x1=Mp;this._y1=Zp;this._root=void 0}
function kb$(E){for(var p={data:E.data},k=p;E=E.next;)k=k.next={data:E.data};return p}
function GVp(E,p){if((p=(E=p?E.toExponential(p-1):E.toExponential()).indexOf("e"))<0)return null;var k=E.slice(0,p);return[k.length>1?k[0]+k.slice(2):k,+E.slice(p+1)]}
function yQx(E){return E=GVp(Math.abs(E)),E?E[1]:NaN}
function cQr(E,p){return function(k,m5){for(var Mp=k.length,Zp=[],nN=0,pN=E[0],mU=0;Mp>0&&pN>0;){mU+pN+1>m5&&(pN=Math.max(1,m5-mU));Zp.push(k.substring(Mp-=pN,Mp+pN));if((mU+=pN+1)>m5)break;pN=E[nN=(nN+1)%E.length]}return Zp.reverse().join(p)}}
function Y1K(E){return function(p){return p.replace(/[0-9]/g,function(k){return E[+k]})}}
function jF6(E){return new IRp(E)}
function IRp(E){if(!(p=dOr.exec(E)))throw Error("Be`"+E);var p;this.fill=p[1]||" ";this.align=p[2]||">";this.sign=p[3]||"-";this.symbol=p[4]||"";this.zero=!!p[5];this.width=p[6]&&+p[6];this.comma=!!p[7];this.precision=p[8]&&+p[8].slice(1);this.trim=!!p[9];this.type=p[10]||""}
function yCC(E,p){p=GVp(E,p);if(!p)return E+"";E=p[0];p=p[1];return p<0?"0."+Array(-p).join("0")+E:E.length>p+1?E.slice(0,p+1)+"."+E.slice(p+1):E+Array(p-E.length+2).join("0")}
function cCU(E){return E}
function w3J(E){function p(pN){function mU(AL){var $t=Wq,Yh=N1,n9,Rn;if(DK==="c")Yh=sR(AL)+Yh,AL="";else{AL=+AL;var I3=AL<0;AL=sR(Math.abs(AL),gC);if(OD){var cx=AL.length,ye=1,md=-1;a:for(;ye<cx;++ye)switch(AL[ye]){case ".":md=n9=ye;break;case "0":md===0&&(md=ye);n9=ye;break;default:if(!+AL[ye])break a;md>0&&(md=0)}AL=md>0?AL.slice(0,md)+AL.slice(n9+1):AL}I3&&+AL===0&&(I3=!1);$t=(I3?tm==="("?tm:"-":tm==="-"||tm==="("?"":tm)+$t;Yh=(DK==="s"?YEu[8+d2C/3]:"")+Yh+(I3&&tm==="("?")":"");if(JF)for(I3=-1,
n9=AL.length;++I3<n9;)if(Rn=AL.charCodeAt(I3),48>Rn||Rn>57){Yh=(Rn===46?Mp+AL.slice(I3+1):AL.slice(I3))+Yh;AL=AL.slice(0,I3);break}}wC&&!hs&&(AL=k(AL,Infinity));Rn=$t.length+AL.length+Yh.length;I3=Rn<f9?Array(f9-Rn+1).join(FI):"";wC&&hs&&(AL=k(I3+AL,I3.length?f9-Yh.length:Infinity),I3="");switch(Bs){case "<":AL=$t+AL+Yh+I3;break;case "=":AL=$t+I3+AL+Yh;break;case "^":AL=I3.slice(0,Rn=I3.length>>1)+$t+AL+Yh+I3.slice(Rn);break;default:AL=I3+$t+AL+Yh}return Zp(AL)}
pN=jF6(pN);var FI=pN.fill,Bs=pN.align,tm=pN.sign,s3=pN.symbol,hs=pN.zero,f9=pN.width,wC=pN.comma,gC=pN.precision,OD=pN.trim,DK=pN.type;DK==="n"?(wC=!0,DK="g"):wDe[DK]||(gC==null&&(gC=12),OD=!0,DK="g");if(hs||FI==="0"&&Bs==="=")hs=!0,FI="0",Bs="=";var Wq=s3==="$"?m5[0]:s3==="#"&&/[boxX]/.test(DK)?"0"+DK.toLowerCase():"",N1=s3==="$"?m5[1]:/[%p]/.test(DK)?nN:"",sR=wDe[DK],JF=/[defgprs%]/.test(DK);gC=gC==null?6:/[gprs]/.test(DK)?Math.max(1,Math.min(21,gC)):Math.max(0,Math.min(20,gC));mU.toString=function(){return pN+
""};
return mU}
var k=E.grouping&&E.thousands?cQr(E.grouping,E.thousands):cCU,m5=E.currency,Mp=E.decimal,Zp=E.numerals?Y1K(E.numerals):cCU,nN=E.percent||"%";return{format:p,formatPrefix:function(pN,mU){var FI=p((pN=jF6(pN),pN.type="f",pN));pN=Math.max(-8,Math.min(8,Math.floor(yQx(mU)/3)))*3;var Bs=Math.pow(10,-pN),tm=YEu[8+pN/3];return function(s3){return FI(Bs*s3)+tm}}}}
function f4(){this.reset()}
function e9$(E,p,k){var m5=E.s=p+k,Mp=m5-p;E.t=p-(m5-Mp)+(k-Mp)}
function BYp(E){return E>1?o6:E<-1?-o6:Math.asin(E)}
function eAb(){}
function D2s(E){var p=E[0];E=E[1];var k=lW(E);return[k*lW(p),k*hV(p),hV(E)]}
function st2(E,p){return[E[1]*p[2]-E[2]*p[1],E[2]*p[0]-E[0]*p[2],E[0]*p[1]-E[1]*p[0]]}
function NS_(E){var p=QOs(E[0]*E[0]+E[1]*E[1]+E[2]*E[2]);E[0]/=p;E[1]/=p;E[2]/=p}
function DOJ(){var E=[],p;return{point:function(k,m5){p.push([k,m5])},
lineStart:function(){E.push(p=[])},
lineEnd:eAb,rejoin:function(){E.length>1&&E.push(E.pop().concat(E.shift()))},
result:function(){var k=E;E=[];p=null;return k}}}
function Hpz(E,p,k,m5){this.x=E;this.z=p;this.o=k;this.e=m5;this.v=!1;this.n=this.p=null}
function sS9(E,p,k,m5,Mp){var Zp=[],nN=[];E.forEach(function(tm){if(!((s3=tm.length-1)<=0)){var s3,hs=tm[0],f9=tm[s3],wC=hs;if(Pg(wC[0]-f9[0])<1E-6&&Pg(wC[1]-f9[1])<1E-6){Mp.lineStart();for(pN=0;pN<s3;++pN)Mp.point((hs=tm[pN])[0],hs[1]);Mp.lineEnd()}else Zp.push(s3=new Hpz(hs,tm,null,!0)),nN.push(s3.o=new Hpz(hs,null,s3,!1)),Zp.push(s3=new Hpz(f9,tm,null,!1)),nN.push(s3.o=new Hpz(f9,null,s3,!0))}});
if(Zp.length){nN.sort(p);PA_(Zp);PA_(nN);var pN=0;for(E=nN.length;pN<E;++pN)nN[pN].e=k=!k;k=Zp[0];for(var mU;;){for(var FI=k,Bs=!0;FI.v;)if((FI=FI.n)===k)return;p=FI.z;Mp.lineStart();do{FI.v=FI.o.v=!0;if(FI.e){if(Bs)for(pN=0,E=p.length;pN<E;++pN)Mp.point((mU=p[pN])[0],mU[1]);else m5(FI.x,FI.n.x,1,Mp);FI=FI.n}else{if(Bs)for(p=FI.p.z,pN=p.length-1;pN>=0;--pN)Mp.point((mU=p[pN])[0],mU[1]);else m5(FI.x,FI.p.x,-1,Mp);FI=FI.p}FI=FI.o;p=FI.z;Bs=!Bs}while(!FI.v);Mp.lineEnd()}}}
function PA_(E){if(p=E.length){for(var p,k=0,m5=E[0],Mp;++k<p;)m5.n=Mp=E[k],Mp.p=m5,m5=Mp;m5.n=Mp=E[0];Mp.p=m5}}
function Nc0(E){return E.length>1}
function PRu(E,p){return((E=E.x)[0]<0?E[1]-o6-1E-6:o6-E[1])-((p=p.x)[0]<0?p[1]-o6-1E-6:o6-p[1])}
function pge(){}
function FG2(E){return function(p,k){var m5=lW(p),Mp=lW(k);m5=E(m5*Mp);return[m5*Mp*hV(p),m5*hV(k)]}}
function YW(E){return function(p,k){var m5=QOs(p*p+k*k),Mp=E(m5),Zp=hV(Mp);Mp=lW(Mp);return[ACo(p*Zp,m5*Mp),BYp(m5&&k*Zp/m5)]}}
function FEb(E){var p=0,k=E.children,m5=k&&k.length;if(m5)for(;--m5>=0;)p+=k[m5].value;else p=1;E.value=p}
function O3_(E,p){var k=new dx(E);E=+E.value&&(k.value=E.value);var m5,Mp=[k],Zp,nN,pN,mU;for(p==null&&(p=AQs);m5=Mp.pop();)if(E&&(m5.value=+m5.data.value),(nN=p(m5.data))&&(mU=nN.length))for(m5.children=Array(mU),pN=mU-1;pN>=0;--pN)Mp.push(Zp=m5.children[pN]=new dx(nN[pN])),Zp.parent=m5,Zp.depth=m5.depth+1;return k.eachBefore(Oiy)}
function AQs(E){return E.children}
function m2J(E){E.data=E.data.data}
function Oiy(E){var p=0;do E.height=p;while((E=E.parent)&&E.height<++p)}
function dx(E){this.data=E;this.depth=this.height=0;this.parent=null}
function qC(E,p,k,m5){function Mp(Zp){return E(Zp=new Date(+Zp)),Zp}
Mp.floor=Mp;Mp.ceil=function(Zp){return E(Zp=new Date(Zp-1)),p(Zp,1),E(Zp),Zp};
Mp.round=function(Zp){var nN=Mp(Zp),pN=Mp.ceil(Zp);return Zp-nN<pN-Zp?nN:pN};
Mp.offset=function(Zp,nN){return p(Zp=new Date(+Zp),nN==null?1:Math.floor(nN)),Zp};
Mp.range=function(Zp,nN,pN){var mU=[],FI;Zp=Mp.ceil(Zp);pN=pN==null?1:Math.floor(pN);if(!(Zp<nN&&pN>0))return mU;do mU.push(FI=new Date(+Zp)),p(Zp,pN),E(Zp);while(FI<Zp&&Zp<nN);return mU};
Mp.filter=function(Zp){return qC(function(nN){if(nN>=nN)for(;E(nN),!Zp(nN);)nN.setTime(nN-1)},function(nN,pN){if(nN>=nN)if(pN<0)for(;++pN<=0;)for(;p(nN,-1),!Zp(nN););
else for(;--pN>=0;)for(;p(nN,1),!Zp(nN););})};
k&&(Mp.count=function(Zp,nN){SXS.setTime(+Zp);Eop.setTime(+nN);E(SXS);E(Eop);return Math.floor(k(SXS,Eop))},Mp.every=function(Zp){Zp=Math.floor(Zp);
return isFinite(Zp)&&Zp>0?Zp>1?Mp.filter(m5?function(nN){return m5(nN)%Zp===0}:function(nN){return Mp.count(0,nN)%Zp===0}):Mp:null});
return Mp}
function GQ(E){return qC(function(p){p.setDate(p.getDate()-(p.getDay()+7-E)%7);p.setHours(0,0,0,0)},function(p,k){p.setDate(p.getDate()+k*7)},function(p,k){return(k-p-(k.getTimezoneOffset()-p.getTimezoneOffset())*6E4)/6048E5})}
function BF(E){return qC(function(p){p.setUTCDate(p.getUTCDate()-(p.getUTCDay()+7-E)%7);p.setUTCHours(0,0,0,0)},function(p,k){p.setUTCDate(p.getUTCDate()+k*7)},function(p,k){return(k-p)/6048E5})}
function Gbs(E){if(0<=E.y&&E.y<100){var p=new Date(-1,E.m,E.d,E.H,E.M,E.S,E.L);p.setFullYear(E.y);return p}return new Date(E.y,E.m,E.d,E.H,E.M,E.S,E.L)}
function vGr(E){if(0<=E.y&&E.y<100){var p=new Date(Date.UTC(-1,E.m,E.d,E.H,E.M,E.S,E.L));p.setUTCFullYear(E.y);return p}return new Date(Date.UTC(E.y,E.m,E.d,E.H,E.M,E.S,E.L))}
function wx(E){return{y:E,m:0,d:1,H:0,M:0,S:0,L:0}}
function BSx(E){function p(Yh,n9){return function(Rn){var I3=[],cx=-1,ye=0,md=Yh.length,qu,QC;for(Rn instanceof Date||(Rn=new Date(+Rn));++cx<md;)if(Yh.charCodeAt(cx)===37){I3.push(Yh.slice(ye,cx));(ye=mxu[qu=Yh.charAt(++cx)])!=null?qu=Yh.charAt(++cx):ye=qu==="e"?" ":"0";if(QC=n9[qu])qu=QC(Rn,ye);I3.push(qu);ye=cx+1}I3.push(Yh.slice(ye,cx));return I3.join("")}}
function k(Yh,n9){return function(Rn){var I3=wx(1900);if(m5(I3,Yh,Rn,0)!=Rn.length)return null;if("Q"in I3)return new Date(I3.Q);"p"in I3&&(I3.H=I3.H%12+I3.p*12);if("V"in I3){if(I3.V<1||I3.V>53)return null;"w"in I3||(I3.w=1);if("Z"in I3){Rn=vGr(wx(I3.y));var cx=Rn.getUTCDay();Rn=cx>4||cx===0?L26.ceil(Rn):L26(Rn);Rn=Ghe.offset(Rn,(I3.V-1)*7);I3.y=Rn.getUTCFullYear();I3.m=Rn.getUTCMonth();I3.d=Rn.getUTCDate()+(I3.w+6)%7}else Rn=n9(wx(I3.y)),cx=Rn.getDay(),Rn=cx>4||cx===0?CLp.ceil(Rn):CLp(Rn),Rn=Bym.offset(Rn,
(I3.V-1)*7),I3.y=Rn.getFullYear(),I3.m=Rn.getMonth(),I3.d=Rn.getDate()+(I3.w+6)%7}else if("W"in I3||"U"in I3)"w"in I3||(I3.w="u"in I3?I3.u%7:"W"in I3?1:0),cx="Z"in I3?vGr(wx(I3.y)).getUTCDay():n9(wx(I3.y)).getDay(),I3.m=0,I3.d="W"in I3?(I3.w+6)%7+I3.W*7-(cx+5)%7:I3.w+I3.U*7-(cx+6)%7;return"Z"in I3?(I3.H+=I3.Z/100|0,I3.M+=I3.Z%100,vGr(I3)):n9(I3)}}
function m5(Yh,n9,Rn,I3){for(var cx=0,ye=n9.length,md=Rn.length,qu;cx<ye;){if(I3>=md)return-1;qu=n9.charCodeAt(cx++);if(qu===37){if(qu=n9.charAt(cx++),qu=$t[qu in mxu?n9.charAt(cx++):qu],!qu||(I3=qu(Yh,Rn,I3))<0)return-1}else if(qu!=Rn.charCodeAt(I3++))return-1}return I3}
var Mp=E.dateTime,Zp=E.date,nN=E.time,pN=E.periods,mU=E.days,FI=E.shortDays,Bs=E.months,tm=E.shortMonths,s3=eR(pN),hs=D0(pN),f9=eR(mU),wC=D0(mU),gC=eR(FI),OD=D0(FI),DK=eR(Bs),Wq=D0(Bs),N1=eR(tm),sR=D0(tm),JF={a:function(Yh){return FI[Yh.getDay()]},
A:function(Yh){return mU[Yh.getDay()]},
b:function(Yh){return tm[Yh.getMonth()]},
B:function(Yh){return Bs[Yh.getMonth()]},
c:null,d:QF3,e:QF3,f:Qtu,H:Hi9,I:vAr,j:KGB,L:H3j,m:$2s,M:Mtx,p:function(Yh){return pN[+(Yh.getHours()>=12)]},
Q:vou,s:K2o,S:rCA,u:R9B,U:iiy,V:x29,w:qEy,W:U2J,x:null,X:null,y:tt9,Y:WGs,Z:Ziy,"%":$xC},AL={a:function(Yh){return FI[Yh.getUTCDay()]},
A:function(Yh){return mU[Yh.getUTCDay()]},
b:function(Yh){return tm[Yh.getUTCMonth()]},
B:function(Yh){return Bs[Yh.getUTCMonth()]},
c:null,d:M1p,e:M1p,f:z9r,H:JCr,I:VtJ,j:biK,L:rgo,m:nAy,M:XDJ,p:function(Yh){return pN[+(Yh.getUTCHours()>=12)]},
Q:vou,s:K2o,S:fUu,u:h9h,U:TS9,V:gAJ,w:u5B,W:jtJ,x:null,X:null,y:IU9,Y:pDr,Z:SE9,"%":$xC},$t={a:function(Yh,n9,Rn){return(n9=gC.exec(n9.slice(Rn)))?(Yh.w=OD[n9[0].toLowerCase()],Rn+n9[0].length):-1},
A:function(Yh,n9,Rn){return(n9=f9.exec(n9.slice(Rn)))?(Yh.w=wC[n9[0].toLowerCase()],Rn+n9[0].length):-1},
b:function(Yh,n9,Rn){return(n9=N1.exec(n9.slice(Rn)))?(Yh.m=sR[n9[0].toLowerCase()],Rn+n9[0].length):-1},
B:function(Yh,n9,Rn){return(n9=DK.exec(n9.slice(Rn)))?(Yh.m=Wq[n9[0].toLowerCase()],Rn+n9[0].length):-1},
c:function(Yh,n9,Rn){return m5(Yh,Mp,n9,Rn)},
d:RR8,e:RR8,f:EA3,H:i3s,I:i3s,j:LGx,L:CAu,m:oAB,M:lUo,p:function(Yh,n9,Rn){return(n9=s3.exec(n9.slice(Rn)))?(Yh.p=hs[n9[0].toLowerCase()],Rn+n9[0].length):-1},
Q:aU0,s:kbB,S:yCr,u:cCA,U:YEr,V:d2r,w:wDJ,W:e9B,x:function(Yh,n9,Rn){return m5(Yh,Zp,n9,Rn)},
X:function(Yh,n9,Rn){return m5(Yh,nN,n9,Rn)},
y:D2b,Y:sty,Z:NS0,"%":PA0};JF.x=p(Zp,JF);JF.X=p(nN,JF);JF.c=p(Mp,JF);AL.x=p(Zp,AL);AL.X=p(nN,AL);AL.c=p(Mp,AL);return{format:function(Yh){var n9=p(Yh,JF);n9.toString=function(){return Yh};
return n9},
parse:function(Yh){var n9=k(Yh,Gbs);n9.toString=function(){return Yh};
return n9},
utcFormat:function(Yh){var n9=p(Yh,AL);n9.toString=function(){return Yh};
return n9},
utcParse:function(Yh){var n9=k(Yh,vGr);n9.toString=function(){return Yh};
return n9}}}
function Zy(E,p,k){var m5=E<0?"-":"";E=(m5?-E:E)+"";var Mp=E.length;return m5+(Mp<k?Array(k-Mp+1).join(p)+E:E)}
function FGy(E){return E.replace(ACK,"\\$&")}
function eR(E){return new RegExp("^(?:"+E.map(FGy).join("|")+")","i")}
function D0(E){for(var p={},k=-1,m5=E.length;++k<m5;)p[E[k].toLowerCase()]=k;return p}
function wDJ(E,p,k){return(p=Zh.exec(p.slice(k,k+1)))?(E.w=+p[0],k+p[0].length):-1}
function cCA(E,p,k){return(p=Zh.exec(p.slice(k,k+1)))?(E.u=+p[0],k+p[0].length):-1}
function YEr(E,p,k){return(p=Zh.exec(p.slice(k,k+2)))?(E.U=+p[0],k+p[0].length):-1}
function d2r(E,p,k){return(p=Zh.exec(p.slice(k,k+2)))?(E.V=+p[0],k+p[0].length):-1}
function e9B(E,p,k){return(p=Zh.exec(p.slice(k,k+2)))?(E.W=+p[0],k+p[0].length):-1}
function sty(E,p,k){return(p=Zh.exec(p.slice(k,k+4)))?(E.y=+p[0],k+p[0].length):-1}
function D2b(E,p,k){return(p=Zh.exec(p.slice(k,k+2)))?(E.y=+p[0]+(+p[0]>68?1900:2E3),k+p[0].length):-1}
function NS0(E,p,k){return(p=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(p.slice(k,k+6)))?(E.Z=p[1]?0:-(p[2]+(p[3]||"00")),k+p[0].length):-1}
function oAB(E,p,k){return(p=Zh.exec(p.slice(k,k+2)))?(E.m=p[0]-1,k+p[0].length):-1}
function RR8(E,p,k){return(p=Zh.exec(p.slice(k,k+2)))?(E.d=+p[0],k+p[0].length):-1}
function LGx(E,p,k){return(p=Zh.exec(p.slice(k,k+3)))?(E.m=0,E.d=+p[0],k+p[0].length):-1}
function i3s(E,p,k){return(p=Zh.exec(p.slice(k,k+2)))?(E.H=+p[0],k+p[0].length):-1}
function lUo(E,p,k){return(p=Zh.exec(p.slice(k,k+2)))?(E.M=+p[0],k+p[0].length):-1}
function yCr(E,p,k){return(p=Zh.exec(p.slice(k,k+2)))?(E.S=+p[0],k+p[0].length):-1}
function CAu(E,p,k){return(p=Zh.exec(p.slice(k,k+3)))?(E.L=+p[0],k+p[0].length):-1}
function EA3(E,p,k){return(p=Zh.exec(p.slice(k,k+6)))?(E.L=Math.floor(p[0]/1E3),k+p[0].length):-1}
function PA0(E,p,k){return(E=O30.exec(p.slice(k,k+1)))?k+E[0].length:-1}
function aU0(E,p,k){return(p=Zh.exec(p.slice(k)))?(E.Q=+p[0],k+p[0].length):-1}
function kbB(E,p,k){return(p=Zh.exec(p.slice(k)))?(E.Q=+p[0]*1E3,k+p[0].length):-1}
function QF3(E,p){return Zy(E.getDate(),p,2)}
function Hi9(E,p){return Zy(E.getHours(),p,2)}
function vAr(E,p){return Zy(E.getHours()%12||12,p,2)}
function KGB(E,p){return Zy(1+Bym.count(Jr(E),E),p,3)}
function H3j(E,p){return Zy(E.getMilliseconds(),p,3)}
function Qtu(E,p){return H3j(E,p)+"000"}
function $2s(E,p){return Zy(E.getMonth()+1,p,2)}
function Mtx(E,p){return Zy(E.getMinutes(),p,2)}
function rCA(E,p){return Zy(E.getSeconds(),p,2)}
function R9B(E){E=E.getDay();return E===0?7:E}
function iiy(E,p){return Zy(mxr.count(Jr(E),E),p,2)}
function x29(E,p){var k=E.getDay();E=k>=4||k===0?oos(E):oos.ceil(E);return Zy(oos.count(Jr(E),E)+(Jr(E).getDay()===4),p,2)}
function qEy(E){return E.getDay()}
function U2J(E,p){return Zy(CLp.count(Jr(E),E),p,2)}
function tt9(E,p){return Zy(E.getFullYear()%100,p,2)}
function WGs(E,p){return Zy(E.getFullYear()%1E4,p,4)}
function Ziy(E){E=E.getTimezoneOffset();return(E>0?"-":(E*=-1,"+"))+Zy(E/60|0,"0",2)+Zy(E%60,"0",2)}
function M1p(E,p){return Zy(E.getUTCDate(),p,2)}
function JCr(E,p){return Zy(E.getUTCHours(),p,2)}
function VtJ(E,p){return Zy(E.getUTCHours()%12||12,p,2)}
function biK(E,p){return Zy(1+Ghe.count(Vl(E),E),p,3)}
function rgo(E,p){return Zy(E.getUTCMilliseconds(),p,3)}
function z9r(E,p){return rgo(E,p)+"000"}
function nAy(E,p){return Zy(E.getUTCMonth()+1,p,2)}
function XDJ(E,p){return Zy(E.getUTCMinutes(),p,2)}
function fUu(E,p){return Zy(E.getUTCSeconds(),p,2)}
function h9h(E){E=E.getUTCDay();return E===0?7:E}
function TS9(E,p){return Zy(GhJ.count(Vl(E),E),p,2)}
function gAJ(E,p){var k=E.getUTCDay();E=k>=4||k===0?lRe(E):lRe.ceil(E);return Zy(lRe.count(Vl(E),E)+(Vl(E).getUTCDay()===4),p,2)}
function u5B(E){return E.getUTCDay()}
function jtJ(E,p){return Zy(L26.count(Vl(E),E),p,2)}
function IU9(E,p){return Zy(E.getUTCFullYear()%100,p,2)}
function pDr(E,p){return Zy(E.getUTCFullYear()%1E4,p,4)}
function SE9(){return"+0000"}
function $xC(){return"%"}
function vou(E){return+E}
function K2o(E){return Math.floor(+E/1E3)}
function tY(E){for(var p=E.length/6|0,k=Array(p),m5=0;m5<p;)k[m5]="#"+E.slice(m5*6,++m5*6);return k}
function YB(E){return Bys(E[E.length-1])}
function Kor(E){var p=E.length;return function(k){return E[Math.max(0,Math.min(p-1,Math.floor(k*p)))]}}
function xxu(E){this._context=E}
function qXU(E){this._curve=E}
function Uxu(E,p,k){var m5=E._x1-E._x0;p-=E._x1;var Mp=(E._y1-E._y0)/(m5||p<0&&-0);E=(k-E._y1)/(p||m5<0&&-0);return((Mp<0?-1:1)+(E<0?-1:1))*Math.min(Math.abs(Mp),Math.abs(E),.5*Math.abs((Mp*p+E*m5)/(m5+p)))||0}
function t1o(E,p){var k=E._x1-E._x0;return k?(3*(E._y1-E._y0)/k-p)/2:p}
function aR5(E,p,k){var m5=E._x0,Mp=E._x1,Zp=E._y1,nN=(Mp-m5)/3;E._context.bezierCurveTo(m5+nN,E._y0+nN*p,Mp-nN,Zp-nN*k,Mp,Zp)}
function kh5(E){this._context=E}
function W23(E){this._context=E}
function sd(E,p,k){this.k=E;this.x=p;this.y=k}
(function(E){E.length===1&&(E=m(E));return{left:function(p,k,m5,Mp){m5==null&&(m5=0);Mp==null&&(Mp=p.length);for(;m5<Mp;){var Zp=m5+Mp>>>1;E(p[Zp],k)<0?m5=Zp+1:Mp=Zp}return m5},
right:function(p,k,m5,Mp){m5==null&&(m5=0);Mp==null&&(Mp=p.length);for(;m5<Mp;){var Zp=m5+Mp>>>1;E(p[Zp],k)>0?Mp=Zp:m5=Zp+1}return m5}}})(O);
var NTB={value:function(){}};
B.prototype=G.prototype={constructor:B,on:function(E,p){var k=this._,m5=Q(E+"",k),Mp,Zp=-1,nN=m5.length;if(arguments.length<2)for(;++Zp<nN;){var pN;if(pN=Mp=(E=m5[Zp]).type){a:{pN=k[Mp];for(var mU=0,FI=pN.length;mU<FI;++mU)if((Mp=pN[mU]).name===E.name){Mp=Mp.value;break a}Mp=void 0}pN=Mp}if(pN)return Mp}else{if(p!=null&&typeof p!=="function")throw Error("Ce`"+p);for(;++Zp<nN;)if(Mp=(E=m5[Zp]).type)k[Mp]=H(k[Mp],E.name,p);else if(p==null)for(Mp in k)k[Mp]=H(k[Mp],E.name,null);return this}},
copy:function(){var E={},p=this._,k;for(k in p)E[k]=p[k].slice();return new B(E)},
call:function(E,p){if((Mp=arguments.length-2)>0)for(var k=Array(Mp),m5=0,Mp,Zp;m5<Mp;++m5)k[m5]=arguments[m5+2];if(!this._.hasOwnProperty(E))throw Error("we`"+E);Zp=this._[E];m5=0;for(Mp=Zp.length;m5<Mp;++m5)Zp[m5].value.apply(p,k)},
apply:function(E,p,k){if(!this._.hasOwnProperty(E))throw Error("we`"+E);E=this._[E];for(var m5=0,Mp=E.length;m5<Mp;++m5)E[m5].value.apply(p,k)}};
var Ck={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/"},Z3m=function(E){return function(){return this.matches(E)}};
if(typeof document!=="undefined"){var NV=document.documentElement;if(!NV.matches){var QF9=NV.webkitMatchesSelector||NV.msMatchesSelector||NV.mozMatchesSelector||NV.oMatchesSelector;Z3m=function(E){return function(){return QF9.call(this,E)}}}}var zR9=Z3m;
J.prototype={constructor:J,appendChild:function(E){return this._parent.insertBefore(E,this._next)},
insertBefore:function(E,p){return this._parent.insertBefore(E,p)},
querySelector:function(E){return this._parent.querySelector(E)},
querySelectorAll:function(E){return this._parent.querySelectorAll(E)}};
var bio={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(bio={mouseenter:"mouseover",mouseleave:"mouseout"}));var Pqr=[null];DH.prototype=zu.prototype={constructor:DH,select:function(E){typeof E!=="function"&&(E=Z(E));for(var p=this._groups,k=p.length,m5=Array(k),Mp=0;Mp<k;++Mp)for(var Zp=p[Mp],nN=Zp.length,pN=m5[Mp]=Array(nN),mU,FI,Bs=0;Bs<nN;++Bs)(mU=Zp[Bs])&&(FI=E.call(mU,mU.__data__,Bs,Zp))&&("__data__"in mU&&(FI.__data__=mU.__data__),pN[Bs]=FI);return new DH(m5,
this._parents)},
filter:function(E){typeof E!=="function"&&(E=zR9(E));for(var p=this._groups,k=p.length,m5=Array(k),Mp=0;Mp<k;++Mp)for(var Zp=p[Mp],nN=Zp.length,pN=m5[Mp]=[],mU,FI=0;FI<nN;++FI)(mU=Zp[FI])&&E.call(mU,mU.__data__,FI,Zp)&&pN.push(mU);return new DH(m5,this._parents)},
data:function(E,p){if(!E)return hs=Array(this.size()),FI=-1,this.each(function(DK){hs[++FI]=DK}),hs;
var k=p?S:I,m5=this._parents,Mp=this._groups;typeof E!=="function"&&(E=n(E));for(var Zp=Mp.length,nN=Array(Zp),pN=Array(Zp),mU=Array(Zp),FI=0;FI<Zp;++FI){var Bs=m5[FI],tm=Mp[FI],s3=tm.length,hs=E.call(Bs,Bs&&Bs.__data__,FI,m5),f9=hs.length,wC=pN[FI]=Array(f9),gC=nN[FI]=Array(f9);s3=mU[FI]=Array(s3);k(Bs,tm,wC,gC,s3,hs,p);tm=Bs=0;for(var OD;Bs<f9;++Bs)if(s3=wC[Bs]){for(Bs>=tm&&(tm=Bs+1);!(OD=gC[tm])&&++tm<f9;);s3._next=OD||null}}nN=new DH(nN,m5);nN._enter=pN;nN._exit=mU;return nN},
enter:function(){return new DH(this._enter||this._groups.map(z),this._parents)},
exit:function(){return new DH(this._exit||this._groups.map(z),this._parents)},
merge:function(E){var p=this._groups;E=E._groups;for(var k=p.length,m5=Math.min(k,E.length),Mp=Array(k),Zp=0;Zp<m5;++Zp)for(var nN=p[Zp],pN=E[Zp],mU=nN.length,FI=Mp[Zp]=Array(mU),Bs,tm=0;tm<mU;++tm)if(Bs=nN[tm]||pN[tm])FI[tm]=Bs;for(;Zp<k;++Zp)Mp[Zp]=p[Zp];return new DH(Mp,this._parents)},
order:function(){for(var E=this._groups,p=-1,k=E.length;++p<k;)for(var m5=E[p],Mp=m5.length-1,Zp=m5[Mp],nN;--Mp>=0;)if(nN=m5[Mp])Zp&&Zp!==nN.nextSibling&&Zp.parentNode.insertBefore(nN,Zp),Zp=nN;return this},
sort:function(E){function p(tm,s3){return tm&&s3?E(tm.__data__,s3.__data__):!tm-!s3}
E||(E=L);for(var k=this._groups,m5=k.length,Mp=Array(m5),Zp=0;Zp<m5;++Zp){for(var nN=k[Zp],pN=nN.length,mU=Mp[Zp]=Array(pN),FI,Bs=0;Bs<pN;++Bs)if(FI=nN[Bs])mU[Bs]=FI;mU.sort(p)}return(new DH(Mp,this._parents)).order()},
call:function(){var E=arguments[0];arguments[0]=this;E.apply(null,arguments);return this},
nodes:function(){var E=Array(this.size()),p=-1;this.each(function(){E[++p]=this});
return E},
node:function(){for(var E=this._groups,p=0,k=E.length;p<k;++p)for(var m5=E[p],Mp=0,Zp=m5.length;Mp<Zp;++Mp){var nN=m5[Mp];if(nN)return nN}return null},
size:function(){var E=0;this.each(function(){++E});
return E},
empty:function(){return!this.node()},
each:function(E){for(var p=this._groups,k=0,m5=p.length;k<m5;++k)for(var Mp=p[k],Zp=0,nN=Mp.length,pN;Zp<nN;++Zp)(pN=Mp[Zp])&&E.call(pN,pN.__data__,Zp,Mp);return this},
attr:function(E,p){var k=M(E);if(arguments.length<2){var m5=this.node();return k.local?m5.getAttributeNS(k.space,k.local):m5.getAttribute(k)}return this.each((p==null?k.local?P:C:typeof p==="function"?k.local?OS:D:k.local?d:w)(k,p))},
style:function(E,p,k){return arguments.length>1?this.each((p==null?rN:typeof p==="function"?XI:xO)(E,p,k==null?"":k)):Vf(this.node(),E)},
property:function(E,p){return arguments.length>1?this.each((p==null?US:typeof p==="function"?oe:CN)(E,p)):this.node()[E]},
text:function(E){return arguments.length?this.each(E==null?K$:(typeof E==="function"?qe:n$)(E)):this.node().textContent},
html:function(E){return arguments.length?this.each(E==null?PM:(typeof E==="function"?U3:ZH)(E)):this.node().innerHTML},
append:function(E){var p=typeof E==="function"?E:t(E);return this.select(function(){return this.appendChild(p.apply(this,arguments))})},
insert:function(E,p){var k=typeof E==="function"?E:t(E),m5=p==null?p$:typeof p==="function"?p:Z(p);return this.select(function(){return this.insertBefore(k.apply(this,arguments),m5.apply(this,arguments)||null)})},
remove:function(){return this.each(uy)},
clone:function(E){return this.select(E?vM:vb)},
datum:function(E){return arguments.length?this.property("__data__",E):this.node().__data__},
on:function(E,p,k){var m5=Gu(E+""),Mp=m5.length,Zp;if(arguments.length<2){var nN=this.node().__on;if(nN)for(var pN=0,mU=nN.length,FI;pN<mU;++pN){var Bs=0;for(FI=nN[pN];Bs<Mp;++Bs)if((Zp=m5[Bs]).type===FI.type&&Zp.name===FI.name)return FI.value}}else{nN=p?Am:x9;k==null&&(k=!1);for(Bs=0;Bs<Mp;++Bs)this.each(nN(m5[Bs],p,k));return this}},
dispatch:function(E,p){return this.each((typeof p==="function"?Rj:O9)(E,p))}};
var Ftr=0;jo.prototype=function(){return new jo}.prototype={constructor:jo,
get:function(E){for(var p=this._;!(p in E);)if(!(E=E.parentNode))return;return E[p]},
set:function(E,p){return E[this._]=p},
remove:function(E){return this._ in E&&delete E[this._]},
toString:function(){return this._}};
var bo=1/.7,AfA=/^#([0-9a-f]{3})$/,OKB=/^#([0-9a-f]{6})$/,mOB=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),G_o=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Bcx=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),QSy=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*\\)$"),
HKs=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),vzy=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*\\)$"),nA2={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};
f$(G9,U9,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
f$(s9,SK,Wb(G9,{brighter:function(E){E=E==null?bo:Math.pow(bo,E);return new s9(this.r*E,this.g*E,this.b*E,this.opacity)},
darker:function(E){E=E==null?.7:Math.pow(.7,E);return new s9(this.r*E,this.g*E,this.b*E,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"#"+Xc(this.r)+Xc(this.g)+Xc(this.b)},
toString:function(){var E=this.opacity;E=isNaN(E)?1:Math.max(0,Math.min(1,E));return(E===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))+(E===1?")":", "+E+")")}}));
f$(pS,Sj,Wb(G9,{brighter:function(E){E=E==null?bo:Math.pow(bo,E);return new pS(this.h,this.s,this.l*E,this.opacity)},
darker:function(E){E=E==null?.7:Math.pow(.7,E);return new pS(this.h,this.s,this.l*E,this.opacity)},
rgb:function(){var E=this.h%360+(this.h<0)*360,p=this.l,k=p+(p<.5?p:1-p)*(isNaN(E)||isNaN(this.s)?0:this.s);p=2*p-k;return new s9(ms(E>=240?E-240:E+120,p,k),ms(E,p,k),ms(E<120?E+240:E-120,p,k),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 XDe=Math.PI/180,TS3=180/Math.PI,h99=4/29,Zj=6/29,fUp=3*Zj*Zj,KEr=Zj*Zj*Zj;f$(TY,function(E,p,k,m5){return arguments.length===1?MB(E):new TY(E,p,k,m5==null?1:m5)},Wb(G9,{brighter:function(E){return new TY(this.l+18*(E==null?1:E),this.a,this.b,this.opacity)},
darker:function(E){return new TY(this.l-18*(E==null?1:E),this.a,this.b,this.opacity)},
rgb:function(){var E=(this.l+16)/116,p=isNaN(this.a)?E:E+this.a/500,k=isNaN(this.b)?E:E-this.b/200;p=.96422*wN(p);E=1*wN(E);k=.82521*wN(k);return new s9(zp(3.1338561*p-1.6168667*E-.4906146*k),zp(-.9787684*p+1.9161415*E+.033454*k),zp(.0719453*p-.2289914*E+1.4052427*k),this.opacity)}}));
f$(XC,Xr,Wb(G9,{brighter:function(E){return new XC(this.h,this.c,this.l+18*(E==null?1:E),this.opacity)},
darker:function(E){return new XC(this.h,this.c,this.l-18*(E==null?1:E),this.opacity)},
rgb:function(){return MB(this).rgb()}}));
var gAe=1.78277*-.29227-.1347134789;f$(E9,b2,Wb(G9,{brighter:function(E){E=E==null?bo:Math.pow(bo,E);return new E9(this.h,this.s,this.l*E,this.opacity)},
darker:function(E){E=E==null?.7:Math.pow(.7,E);return new E9(this.h,this.s,this.l*E,this.opacity)},
rgb:function(){var E=isNaN(this.h)?0:(this.h+120)*XDe,p=+this.l,k=isNaN(this.s)?0:this.s*p*(1-p),m5=Math.cos(E);E=Math.sin(E);return new s9(255*(p+k*(-.14861*m5+1.78277*E)),255*(p+k*(-.29227*m5+-.90649*E)),255*(p+1.97294*m5*k),this.opacity)}}));
var SE3=function k(p){function m5(Zp,nN){var pN=Mp((Zp=SK(Zp)).r,(nN=SK(nN)).r),mU=Mp(Zp.g,nN.g),FI=Mp(Zp.b,nN.b),Bs=e0(Zp.opacity,nN.opacity);return function(tm){Zp.r=pN(tm);Zp.g=mU(tm);Zp.b=FI(tm);Zp.opacity=Bs(tm);return Zp+""}}
var Mp=dh(p);m5.gamma=k;return m5}(1),Bys=Gm(function(p){var k=p.length-1;
return function(m5){var Mp=m5<=0?m5=0:m5>=1?(m5=1,k-1):Math.floor(m5*k),Zp=p[Mp],nN=p[Mp+1];return VO((m5-Mp/k)*k,Mp>0?p[Mp-1]:2*Zp-nN,Zp,nN,Mp<k-1?p[Mp+2]:2*nN-Zp)}});
Gm(function(p){var k=p.length;return function(m5){var Mp=Math.floor(((m5%=1)<0?++m5:m5)*k);return VO((m5-Mp/k)*k,p[(Mp+k-1)%k],p[Mp%k],p[(Mp+1)%k],p[(Mp+2)%k])}});
var V1r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,b36=new RegExp(V1r.source,"g"),u5$=180/Math.PI,ygS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},PJ,cgI,Jg3,$I6,H33=ly(function(p){if(p==="none")return ygS;PJ||(PJ=document.createElement("DIV"),cgI=document.documentElement,Jg3=document.defaultView);PJ.style.transform=p;p=Jg3.getComputedStyle(cgI.appendChild(PJ),null).getPropertyValue("transform");cgI.removeChild(PJ);p=p.slice(7,-1).split(",");return Js(+p[0],+p[1],+p[2],+p[3],
+p[4],+p[5])},"px, ","px)","deg)"),vor=ly(function(p){if(p==null)return ygS;
$I6||($I6=document.createElementNS("http://www.w3.org/2000/svg","g"));$I6.setAttribute("transform",p);if(!(p=$I6.transform.baseVal.consolidate()))return ygS;p=p.matrix;return Js(p.a,p.b,p.c,p.d,p.e,p.f)},", ",")",")");
$h(c8);$h(e0);qM(c8);qM(e0);s_(c8);var YX6=s_(e0),zW=0,kW=0,cJ=0,AEp,yB,FMS=0,O8=0,Pbr=0,ax=typeof performance==="object"&&performance.now?performance:Date,jte=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(p){setTimeout(p,17)};
gR.prototype=I1.prototype={constructor:gR,restart:function(p,k,m5){if(typeof p!=="function")throw new TypeError("De");m5=(m5==null?Ya():+m5)+(k==null?0:+k);this._next||yB===this||(yB?yB._next=this:AEp=this,yB=this);this._call=p;this._time=m5;Sz()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Sz())}};
var MIy=G("start","end","interrupt"),rQK=[],K2K=zu.prototype.constructor,V1o=0,n8=zu.prototype;Nx.prototype=function(p){return zu().transition(p)}.prototype={constructor:Nx,
select:function(p){var k=this._name,m5=this._id;typeof p!=="function"&&(p=Z(p));for(var Mp=this._groups,Zp=Mp.length,nN=Array(Zp),pN=0;pN<Zp;++pN)for(var mU=Mp[pN],FI=mU.length,Bs=nN[pN]=Array(FI),tm,s3,hs=0;hs<FI;++hs)(tm=mU[hs])&&(s3=p.call(tm,tm.__data__,hs,mU))&&("__data__"in tm&&(s3.__data__=tm.__data__),Bs[hs]=s3,noN(Bs[hs],k,m5,hs,Bs,jf(tm,m5)));return new Nx(nN,this._parents,k,m5)},
filter:function(p){typeof p!=="function"&&(p=zR9(p));for(var k=this._groups,m5=k.length,Mp=Array(m5),Zp=0;Zp<m5;++Zp)for(var nN=k[Zp],pN=nN.length,mU=Mp[Zp]=[],FI,Bs=0;Bs<pN;++Bs)(FI=nN[Bs])&&p.call(FI,FI.__data__,Bs,nN)&&mU.push(FI);return new Nx(Mp,this._parents,this._name,this._id)},
merge:function(p){if(p._id!==this._id)throw Error();var k=this._groups;p=p._groups;for(var m5=k.length,Mp=Math.min(m5,p.length),Zp=Array(m5),nN=0;nN<Mp;++nN)for(var pN=k[nN],mU=p[nN],FI=pN.length,Bs=Zp[nN]=Array(FI),tm,s3=0;s3<FI;++s3)if(tm=pN[s3]||mU[s3])Bs[s3]=tm;for(;nN<m5;++nN)Zp[nN]=k[nN];return new Nx(Zp,this._parents,this._name,this._id)},
selection:function(){return new K2K(this._groups,this._parents)},
transition:function(){for(var p=this._name,k=this._id,m5=++V1o,Mp=this._groups,Zp=Mp.length,nN=0;nN<Zp;++nN)for(var pN=Mp[nN],mU=pN.length,FI,Bs=0;Bs<mU;++Bs)if(FI=pN[Bs]){var tm=jf(FI,k);noN(FI,p,m5,Bs,pN,{time:tm.time+tm.delay+tm.duration,delay:0,duration:tm.duration,ease:tm.ease})}return new Nx(Mp,this._parents,p,m5)},
call:n8.call,nodes:n8.nodes,node:n8.node,size:n8.size,empty:n8.empty,each:n8.each,on:function(p,k){var m5=this._id;return arguments.length<2?jf(this.node(),m5).on.on(p):this.each(Tcs(m5,p,k))},
attr:function(p,k){var m5=M(p),Mp=m5==="transform"?vor:pDu;return this.attrTween(p,typeof k==="function"?(m5.local?ZKb:WEJ)(m5,Mp,fRO(this,"attr."+p,k)):k==null?(m5.local?q1K:xOs)(m5):(m5.local?tIB:UOs)(m5,Mp,k+""))},
attrTween:function(p,k){var m5="attr."+p;if(arguments.length<2)return(m5=this.tween(m5))&&m5._value;if(k==null)return this.tween(m5,null);if(typeof k!=="function")throw Error();var Mp=M(p);return this.tween(m5,(Mp.local?zAh:JQx)(Mp,k))},
style:function(p,k,m5){var Mp=p==="transform"?H33:pDu;return k==null?this.styleTween(p,uWo(p,Mp)).on("end.style."+p,jSb(p)):this.styleTween(p,typeof k==="function"?p30(p,Mp,fRO(this,"style."+p,k)):INA(p,Mp,k+""),m5)},
styleTween:function(p,k,m5){var Mp="style."+p;if(arguments.length<2)return(Mp=this.tween(Mp))&&Mp._value;if(k==null)return this.tween(Mp,null);if(typeof k!=="function")throw Error();return this.tween(Mp,S10(p,k,m5==null?"":m5))},
text:function(p){return this.tween("text",typeof p==="function"?LEo(fRO(this,"text",p)):Ezs(p==null?"":p+""))},
remove:function(){return this.on("end.remove",gz0(this._id))},
tween:function(p,k){var m5=this._id;if(arguments.length<2){m5=jf(this.node(),m5).tween;for(var Mp=0,Zp=m5.length,nN;Mp<Zp;++Mp)if((nN=m5[Mp]).name===p)return nN.value;return null}return this.each((k==null?RAA:iKK)(m5,p,k))},
delay:function(p){var k=this._id;return arguments.length?this.each((typeof p==="function"?VIr:bKb)(k,p)):jf(this.node(),k).delay},
duration:function(p){var k=this._id;return arguments.length?this.each((typeof p==="function"?nzu:X3A)(k,p)):jf(this.node(),k).duration},
ease:function(p){var k=this._id;return arguments.length?this.each(fNh(k,p)):jf(this.node(),k).ease}};
var dxp={time:null,delay:0,duration:250,ease:function(p){return((p*=2)<=1?p*p*p:(p-=2)*p*p+2)/2}};
zu.prototype.transition=function(p){var k;if(p instanceof Nx){var m5=p._id;p=p._name}else m5=++V1o,(k=dxp).time=Ya(),p=p==null?null:p+"";for(var Mp=this._groups,Zp=Mp.length,nN=0;nN<Zp;++nN)for(var pN=Mp[nN],mU=pN.length,FI,Bs=0;Bs<mU;++Bs)if(FI=pN[Bs]){var tm=FI,s3=p,hs=m5,f9=Bs,wC=pN,gC;if(!(gC=k))a:{gC=void 0;for(var OD=m5;!(gC=FI.__transition)||!(gC=gC[OD]);)if(!(FI=FI.parentNode)){gC=(dxp.time=Ya(),dxp);break a}}noN(tm,s3,hs,f9,wC,gC)}return new Nx(Mp,this._parents,p,m5)};
["e","w"].map(hRf);["n","s"].map(hRf);"n e s w nw ne se sw".split(" ").map(hRf);TyS.prototype=function(){return new TyS}.prototype={constructor:TyS,
moveTo:function(p,k){this._+="M"+(this._x0=this._x1=+p)+","+(this._y0=this._y1=+k)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(p,k){this._+="L"+(this._x1=+p)+","+(this._y1=+k)},
bezierCurveTo:function(p,k,m5,Mp,Zp,nN){this._+="C"+ +p+","+ +k+","+ +m5+","+ +Mp+","+(this._x1=+Zp)+","+(this._y1=+nN)},
rect:function(p,k,m5,Mp){this._+="M"+(this._x0=this._x1=+p)+","+(this._y0=this._y1=+k)+"h"+ +m5+"v"+ +Mp+"h"+-m5+"Z"},
toString:function(){return this._}};
Opp.prototype=EAj.prototype={constructor:Opp,has:function(p){return" "+p in this},
get:function(p){return this[" "+p]},
set:function(p,k){this[" "+p]=k;return this},
remove:function(p){p=" "+p;return p in this&&delete this[p]},
clear:function(){for(var p in this)p[0]===" "&&delete this[p]},
keys:function(){var p=[],k;for(k in this)k[0]===" "&&p.push(k.slice(1));return p},
values:function(){var p=[],k;for(k in this)k[0]===" "&&p.push(this[k]);return p},
entries:function(){var p=[],k;for(k in this)k[0]===" "&&p.push({key:k.slice(1),value:this[k]});return p},
size:function(){var p=0,k;for(k in this)k[0]===" "&&++p;return p},
empty:function(){for(var p in this)if(p[0]===" ")return!1;return!0},
each:function(p){for(var k in this)k[0]===" "&&p(this[k],k.slice(1),this)}};
var QW=EAj.prototype;mIY.prototype=function(p,k){var m5=new mIY;if(p instanceof mIY)p.each(function(nN){m5.add(nN)});
else if(p){var Mp=-1,Zp=p.length;if(k==null)for(;++Mp<Zp;)m5.add(p[Mp]);else for(;++Mp<Zp;)m5.add(k(p[Mp],Mp,p))}return m5}.prototype={constructor:mIY,
has:QW.has,add:function(p){this[" "+p]=p;return this},
remove:QW.remove,clear:QW.clear,values:QW.keys,size:QW.size,empty:QW.empty,each:QW.each};var oA$={},goI={},$xr=CAp(",").parse,M1u=CAp("\t").parse;lU8($xr);lU8(M1u);var cC=function(p,k,m5){k=new uLO(k==null?aNb:k,m5==null?k_s:m5,NaN,NaN,NaN,NaN);return p==null?k:k.addAll(p)}.prototype=uLO.prototype;
cC.copy=function(){var p=new uLO(this._x,this._y,this._x0,this._y0,this._x1,this._y1),k=this._root,m5,Mp;if(!k)return p;if(!k.length)return p._root=kb$(k),p;for(m5=[{source:k,target:p._root=Array(4)}];k=m5.pop();)for(var Zp=0;Zp<4;++Zp)if(Mp=k.source[Zp])Mp.length?m5.push({source:Mp,target:k.target[Zp]=Array(4)}):k.target[Zp]=kb$(Mp);return p};
cC.add=function(p){var k=+this._x.call(null,p),m5=+this._y.call(null,p);return aU_(this.cover(k,m5),k,m5,p)};
cC.addAll=function(p){var k,m5,Mp=p.length,Zp,nN,pN=Array(Mp),mU=Array(Mp),FI=Infinity,Bs=Infinity,tm=-Infinity,s3=-Infinity;for(m5=0;m5<Mp;++m5)isNaN(Zp=+this._x.call(null,k=p[m5]))||isNaN(nN=+this._y.call(null,k))||(pN[m5]=Zp,mU[m5]=nN,Zp<FI&&(FI=Zp),Zp>tm&&(tm=Zp),nN<Bs&&(Bs=nN),nN>s3&&(s3=nN));tm<FI&&(FI=this._x0,tm=this._x1);s3<Bs&&(Bs=this._y0,s3=this._y1);this.cover(FI,Bs).cover(tm,s3);for(m5=0;m5<Mp;++m5)aU_(this,pN[m5],mU[m5],p[m5]);return this};
cC.cover=function(p,k){if(isNaN(p=+p)||isNaN(k=+k))return this;var m5=this._x0,Mp=this._y0,Zp=this._x1,nN=this._y1;if(isNaN(m5))Zp=(m5=Math.floor(p))+1,nN=(Mp=Math.floor(k))+1;else if(m5>p||p>Zp||Mp>k||k>nN){var pN=Zp-m5,mU=this._root,FI;switch(FI=(k<(Mp+nN)/2)<<1|p<(m5+Zp)/2){case 0:do{var Bs=Array(4);Bs[FI]=mU;mU=Bs}while(pN*=2,Zp=m5+pN,nN=Mp+pN,p>Zp||k>nN);break;case 1:do Bs=Array(4),Bs[FI]=mU,mU=Bs;while(pN*=2,m5=Zp-pN,nN=Mp+pN,m5>p||k>nN);break;case 2:do Bs=Array(4),Bs[FI]=mU,mU=Bs;while(pN*=
2,Zp=m5+pN,Mp=nN-pN,p>Zp||Mp>k);break;case 3:do Bs=Array(4),Bs[FI]=mU,mU=Bs;while(pN*=2,m5=Zp-pN,Mp=nN-pN,m5>p||Mp>k)}this._root&&this._root.length&&(this._root=mU)}else return this;this._x0=m5;this._y0=Mp;this._x1=Zp;this._y1=nN;return this};
cC.data=function(){var p=[];this.visit(function(k){if(!k.length){do p.push(k.data);while(k=k.next)}});
return p};
cC.extent=function(p){return arguments.length?this.cover(+p[0][0],+p[0][1]).cover(+p[1][0],+p[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
cC.find=function(p,k,m5){var Mp=this._x0,Zp=this._y0,nN,pN,mU,FI,Bs=this._x1,tm=this._y1,s3=[],hs=this._root,f9;hs&&s3.push(new yM(hs,Mp,Zp,Bs,tm));m5==null?m5=Infinity:(Mp=p-m5,Zp=k-m5,Bs=p+m5,tm=k+m5,m5*=m5);for(;f9=s3.pop();)if(!(!(hs=f9.node)||(nN=f9.x0)>Bs||(pN=f9.y0)>tm||(mU=f9.x1)<Mp||(FI=f9.y1)<Zp))if(hs.length){f9=(nN+mU)/2;var wC=(pN+FI)/2;s3.push(new yM(hs[3],f9,wC,mU,FI),new yM(hs[2],nN,wC,f9,FI),new yM(hs[1],f9,pN,mU,wC),new yM(hs[0],nN,pN,f9,wC));if(hs=(k>=wC)<<1|p>=f9)f9=s3[s3.length-
1],s3[s3.length-1]=s3[s3.length-1-hs],s3[s3.length-1-hs]=f9}else if(f9=p-+this._x.call(null,hs.data),wC=k-+this._y.call(null,hs.data),f9=f9*f9+wC*wC,f9<m5){var gC=Math.sqrt(m5=f9);Mp=p-gC;Zp=k-gC;Bs=p+gC;tm=k+gC;gC=hs.data}return gC};
cC.remove=function(p){if(isNaN(FI=+this._x.call(null,p))||isNaN(Bs=+this._y.call(null,p)))return this;var k,m5=this._root,Mp,Zp=this._x0,nN=this._y0,pN=this._x1,mU=this._y1,FI,Bs,tm,s3,hs,f9,wC;if(!m5)return this;if(m5.length)for(;;){(hs=FI>=(tm=(Zp+pN)/2))?Zp=tm:pN=tm;(f9=Bs>=(s3=(nN+mU)/2))?nN=s3:mU=s3;if(!(k=m5,m5=m5[wC=f9<<1|hs]))return this;if(!m5.length)break;if(k[wC+1&3]||k[wC+2&3]||k[wC+3&3]){var gC=k;var OD=wC}}for(;m5.data!==p;)if(!(Mp=m5,m5=m5.next))return this;(p=m5.next)&&delete m5.next;
if(Mp)return p?Mp.next=p:delete Mp.next,this;if(!k)return this._root=p,this;p?k[wC]=p:delete k[wC];(m5=k[0]||k[1]||k[2]||k[3])&&m5===(k[3]||k[2]||k[1]||k[0])&&!m5.length&&(gC?gC[OD]=m5:this._root=m5);return this};
cC.removeAll=function(p){for(var k=0,m5=p.length;k<m5;++k)this.remove(p[k]);return this};
cC.root=function(){return this._root};
cC.size=function(){var p=0;this.visit(function(k){if(!k.length){do++p;while(k=k.next)}});
return p};
cC.visit=function(p){var k=[],m5,Mp=this._root,Zp,nN,pN,mU,FI;for(Mp&&k.push(new yM(Mp,this._x0,this._y0,this._x1,this._y1));m5=k.pop();)if(!p(Mp=m5.node,nN=m5.x0,pN=m5.y0,mU=m5.x1,FI=m5.y1)&&Mp.length){m5=(nN+mU)/2;var Bs=(pN+FI)/2;(Zp=Mp[3])&&k.push(new yM(Zp,m5,Bs,mU,FI));(Zp=Mp[2])&&k.push(new yM(Zp,nN,Bs,m5,FI));(Zp=Mp[1])&&k.push(new yM(Zp,m5,pN,mU,Bs));(Zp=Mp[0])&&k.push(new yM(Zp,nN,pN,m5,Bs))}};
cC.visitAfter=function(p){var k=[],m5=[],Mp;for(this._root&&k.push(new yM(this._root,this._x0,this._y0,this._x1,this._y1));Mp=k.pop();){var Zp=Mp.node;if(Zp.length){var nN,pN=Mp.x0,mU=Mp.y0,FI=Mp.x1,Bs=Mp.y1,tm=(pN+FI)/2,s3=(mU+Bs)/2;(nN=Zp[0])&&k.push(new yM(nN,pN,mU,tm,s3));(nN=Zp[1])&&k.push(new yM(nN,tm,mU,FI,s3));(nN=Zp[2])&&k.push(new yM(nN,pN,s3,tm,Bs));(nN=Zp[3])&&k.push(new yM(nN,tm,s3,FI,Bs))}m5.push(Mp)}for(;Mp=m5.pop();)p(Mp.node,Mp.x0,Mp.y0,Mp.x1,Mp.y1);return this};
cC.x=function(p){return arguments.length?(this._x=p,this):this._x};
cC.y=function(p){return arguments.length?(this._y=p,this):this._y};
var dOr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;jF6.prototype=IRp.prototype;IRp.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 d2C,wDe={"%":function(p,k){return(p*100).toFixed(k)},
b:function(p){return Math.round(p).toString(2)},
c:function(p){return p+""},
d:function(p){return Math.round(p).toString(10)},
e:function(p,k){return p.toExponential(k)},
f:function(p,k){return p.toFixed(k)},
g:function(p,k){return p.toPrecision(k)},
o:function(p){return Math.round(p).toString(8)},
p:function(p,k){return yCC(p*100,k)},
r:yCC,s:function(p,k){var m5=GVp(p,k);if(!m5)return p+"";var Mp=m5[0];m5=m5[1];m5=m5-(d2C=Math.max(-8,Math.min(8,Math.floor(m5/3)))*3)+1;var Zp=Mp.length;return m5===Zp?Mp:m5>Zp?Mp+Array(m5-Zp+1).join("0"):m5>0?Mp.slice(0,m5)+"."+Mp.slice(m5):"0."+Array(1-m5).join("0")+GVp(p,Math.max(0,k+m5-1))[0]},
X:function(p){return Math.round(p).toString(16).toUpperCase()},
x:function(p){return Math.round(p).toString(16)}},YEu="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),rgK;
(function(p){return rgK=w3J(p)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});f4.prototype={constructor:f4,reset:function(){this.s=this.t=0},
add:function(p){e9$(MaS,p,this.t);e9$(this,MaS.s,this.s);this.s?this.t+=MaS.t:this.s=MaS.t},
valueOf:function(){return this.s}};
var MaS=new f4,ce=Math.PI,o6=ce/2,b3_=ce/4,RRo=ce*2,wg6=ce/180,Pg=Math.abs,eRM=Math.atan,ACo=Math.atan2,lW=Math.cos,hV=Math.sin,QOs=Math.sqrt;new f4;new f4;new f4;var Dx5=new f4;(function(p,k,m5,Mp){return function(Zp){function nN(sR,JF){p(sR,JF)&&Zp.point(sR,JF)}
function pN(sR,JF){hs.point(sR,JF)}
function mU(){N1.point=pN;hs.lineStart()}
function FI(){N1.point=nN;hs.lineEnd()}
function Bs(sR,JF){Wq.push([sR,JF]);wC.point(sR,JF)}
function tm(){wC.lineStart();Wq=[]}
function s3(){Bs(Wq[0][0],Wq[0][1]);wC.lineEnd();var sR=wC.clean(),JF=f9.result(),AL=JF.length,$t;Wq.pop();OD.push(Wq);Wq=null;if(AL)if(sR&1){if(AL=JF[0],(JF=AL.length-1)>0){gC||(Zp.polygonStart(),gC=!0);Zp.lineStart();for(sR=0;sR<JF;++sR)Zp.point(($t=AL[sR])[0],$t[1]);Zp.lineEnd()}}else AL>1&&sR&2&&JF.push(JF.pop().concat(JF.shift())),DK.push(JF.filter(Nc0))}
var hs=k(Zp),f9=DOJ(),wC=k(f9),gC=!1,OD,DK,Wq,N1={point:nN,lineStart:mU,lineEnd:FI,polygonStart:function(){N1.point=Bs;N1.lineStart=tm;N1.lineEnd=s3;DK=[];OD=[]},
polygonEnd:function(){N1.point=nN;N1.lineStart=mU;N1.lineEnd=FI;var sR=DK,JF=sR.length;var AL=-1;for(var $t=0,Yh,n9;++AL<JF;)$t+=sR[AL].length;for(Yh=Array($t);--JF>=0;)for(n9=sR[JF],AL=n9.length;--AL>=0;)Yh[--$t]=n9[AL];DK=Yh;sR=OD;JF=Mp[0];$t=Mp[1];var Rn=hV($t);AL=[hV(JF),-lW(JF),0];n9=Yh=0;Dx5.reset();Rn===1?$t=o6+1E-6:Rn===-1&&($t=-o6-1E-6);Rn=0;for(var I3=sR.length;Rn<I3;++Rn)if(ye=(cx=sR[Rn]).length){var cx,ye,md=cx[ye-1],qu=md[0],QC=md[1]/2+b3_,rvI=hV(QC),no8=lW(QC);for(QC=0;QC<ye;++QC,qu=
sF6,rvI=XgC,no8=FA,md=RtI){var RtI=cx[QC],sF6=RtI[0];FA=RtI[1]/2+b3_;var XgC=hV(FA),FA=lW(FA),Xb=sF6-qu,Nyp=Xb>=0?1:-1,PLN=Nyp*Xb,ipN=PLN>ce;rvI*=XgC;Dx5.add(ACo(rvI*Nyp*hV(PLN),no8*FA+rvI*lW(PLN)));Yh+=ipN?Xb+Nyp*RRo:Xb;ipN^qu>=JF^sF6>=JF&&(md=st2(D2s(md),D2s(RtI)),NS_(md),qu=st2(AL,md),NS_(qu),qu=(ipN^Xb>=0?-1:1)*BYp(qu[2]),$t>qu||$t===qu&&(md[0]||md[1]))&&(n9+=ipN^Xb>=0?1:-1)}}sR=(Yh<-1E-6||Yh<1E-6&&Dx5<-1E-6)^n9&1;DK.length?(gC||(Zp.polygonStart(),gC=!0),sS9(DK,PRu,sR,m5,Zp)):sR&&(gC||(Zp.polygonStart(),
gC=!0),Zp.lineStart(),m5(null,null,1,Zp),Zp.lineEnd());gC&&(Zp.polygonEnd(),gC=!1);DK=OD=null},
sphere:function(){Zp.polygonStart();Zp.lineStart();m5(null,null,1,Zp);Zp.lineEnd();Zp.polygonEnd()}};
return N1}})(function(){return!0},function(p){var k=NaN,m5=NaN,Mp=NaN,Zp;
return{lineStart:function(){p.lineStart();Zp=1},
point:function(nN,pN){var mU=nN>0?ce:-ce,FI=Pg(nN-k);if(Pg(FI-ce)<1E-6)p.point(k,m5=(m5+pN)/2>0?o6:-o6),p.point(Mp,m5),p.lineEnd(),p.lineStart(),p.point(mU,m5),p.point(nN,m5),Zp=0;else if(Mp!==mU&&FI>=ce){Pg(k-Mp)<1E-6&&(k-=Mp*1E-6);Pg(nN-mU)<1E-6&&(nN-=mU*1E-6);FI=k;var Bs=m5,tm=nN,s3,hs,f9=hV(FI-tm);m5=Pg(f9)>1E-6?eRM((hV(Bs)*(hs=lW(pN))*hV(tm)-hV(pN)*(s3=lW(Bs))*hV(FI))/(s3*hs*f9)):(Bs+pN)/2;p.point(Mp,m5);p.lineEnd();p.lineStart();p.point(mU,m5);Zp=0}p.point(k=nN,m5=pN);Mp=mU},
lineEnd:function(){p.lineEnd();k=m5=NaN},
clean:function(){return 2-Zp}}},function(p,k,m5,Mp){p==null?(m5*=o6,Mp.point(-ce,m5),Mp.point(0,m5),Mp.point(ce,m5),Mp.point(ce,0),Mp.point(ce,-m5),Mp.point(0,-m5),Mp.point(-ce,-m5),Mp.point(-ce,0),Mp.point(-ce,m5)):Pg(p[0]-k[0])>1E-6?(p=p[0]<k[0]?ce:-ce,m5=m5*p/2,Mp.point(-p,m5),Mp.point(0,m5),Mp.point(p,m5)):Mp.point(k[0],k[1])},[-ce,
-o6]);new f4;new f4;new f4;new f4;pge.prototype={constructor:pge,point:function(p,k){this.stream.point(p,k)},
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()}};
lW(30*wg6);(function(p){return function(k){var m5=new pge,Mp;for(Mp in p)m5[Mp]=p[Mp];m5.stream=k;return m5}})({point:function(p,k){this.stream.point(p*wg6,k*wg6)}});
FG2(function(p){return QOs(2/(1+p))}).invert=YW(function(p){return 2*BYp(p/2)});
FG2(function(p){return(p=p>1?0:p<-1?ce:Math.acos(p))&&p/hV(p)}).invert=YW(function(p){return p});
QOs(3);YW(eRM);YW(BYp);YW(function(p){return 2*eRM(p)});
dx.prototype=O3_.prototype={constructor:dx,count:function(){return this.eachAfter(FEb)},
each:function(p){var k,m5=[this],Mp;do{var Zp=m5.reverse();for(m5=[];k=Zp.pop();)if(p(k),k=k.children){var nN=0;for(Mp=k.length;nN<Mp;++nN)m5.push(k[nN])}}while(m5.length);return this},
eachAfter:function(p){for(var k,m5=[this],Mp=[],Zp,nN;k=m5.pop();)if(Mp.push(k),k=k.children)for(Zp=0,nN=k.length;Zp<nN;++Zp)m5.push(k[Zp]);for(;k=Mp.pop();)p(k);return this},
eachBefore:function(p){for(var k,m5=[this],Mp;k=m5.pop();)if(p(k),k=k.children)for(Mp=k.length-1;Mp>=0;--Mp)m5.push(k[Mp]);return this},
sum:function(p){return this.eachAfter(function(k){for(var m5=+p(k.data)||0,Mp=k.children,Zp=Mp&&Mp.length;--Zp>=0;)m5+=Mp[Zp].value;k.value=m5})},
sort:function(p){return this.eachBefore(function(k){k.children&&k.children.sort(p)})},
path:function(p){var k=this;var m5=k;var Mp=p;if(m5!==Mp){var Zp=m5.ancestors(),nN=Mp.ancestors(),pN=null;m5=Zp.pop();for(Mp=nN.pop();m5===Mp;)pN=m5,m5=Zp.pop(),Mp=nN.pop();m5=pN}for(Mp=[k];k!==m5;)k=k.parent,Mp.push(k);for(k=Mp.length;p!==m5;)Mp.splice(k,0,p),p=p.parent;return Mp},
ancestors:function(){for(var p=this,k=[p];p=p.parent;)k.push(p);return k},
links:function(){var p=this,k=[];p.each(function(m5){m5!==p&&k.push({source:m5.parent,target:m5})});
return k},
copy:function(){return O3_(this).eachBefore(m2J)}};
(function(p,k){this._=p;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=k}).prototype=Object.create(dx.prototype);
var SXS=new Date,Eop=new Date,fR9=qC(function(){},function(p,k){p.setTime(+p+k)},function(p,k){return k-p});
fR9.every=function(p){p=Math.floor(p);return isFinite(p)&&p>0?p>1?qC(function(k){k.setTime(Math.floor(k/p)*p)},function(k,m5){k.setTime(+k+m5*p)},function(k,m5){return(m5-k)/p}):fR9:null};
qC(function(p){p.setTime(Math.floor(p/1E3)*1E3)},function(p,k){p.setTime(+p+k*1E3)},function(p,k){return(k-p)/1E3},function(p){return p.getUTCSeconds()});
qC(function(p){p.setTime(Math.floor(p/6E4)*6E4)},function(p,k){p.setTime(+p+k*6E4)},function(p,k){return(k-p)/6E4},function(p){return p.getMinutes()});
qC(function(p){var k=p.getTimezoneOffset()*6E4%36E5;k<0&&(k+=36E5);p.setTime(Math.floor((+p-k)/36E5)*36E5+k)},function(p,k){p.setTime(+p+k*36E5)},function(p,k){return(k-p)/36E5},function(p){return p.getHours()});
var Bym=qC(function(p){p.setHours(0,0,0,0)},function(p,k){p.setDate(p.getDate()+k)},function(p,k){return(k-p-(k.getTimezoneOffset()-p.getTimezoneOffset())*6E4)/864E5},function(p){return p.getDate()-1}),mxr=GQ(0),CLp=GQ(1);
GQ(2);GQ(3);var oos=GQ(4);GQ(5);GQ(6);qC(function(p){p.setDate(1);p.setHours(0,0,0,0)},function(p,k){p.setMonth(p.getMonth()+k)},function(p,k){return k.getMonth()-p.getMonth()+(k.getFullYear()-p.getFullYear())*12},function(p){return p.getMonth()});
var Jr=qC(function(p){p.setMonth(0,1);p.setHours(0,0,0,0)},function(p,k){p.setFullYear(p.getFullYear()+k)},function(p,k){return k.getFullYear()-p.getFullYear()},function(p){return p.getFullYear()});
Jr.every=function(p){return isFinite(p=Math.floor(p))&&p>0?qC(function(k){k.setFullYear(Math.floor(k.getFullYear()/p)*p);k.setMonth(0,1);k.setHours(0,0,0,0)},function(k,m5){k.setFullYear(k.getFullYear()+m5*p)}):null};
qC(function(p){p.setUTCSeconds(0,0)},function(p,k){p.setTime(+p+k*6E4)},function(p,k){return(k-p)/6E4},function(p){return p.getUTCMinutes()});
qC(function(p){p.setUTCMinutes(0,0,0)},function(p,k){p.setTime(+p+k*36E5)},function(p,k){return(k-p)/36E5},function(p){return p.getUTCHours()});
var Ghe=qC(function(p){p.setUTCHours(0,0,0,0)},function(p,k){p.setUTCDate(p.getUTCDate()+k)},function(p,k){return(k-p)/864E5},function(p){return p.getUTCDate()-1}),GhJ=BF(0),L26=BF(1);
BF(2);BF(3);var lRe=BF(4);BF(5);BF(6);qC(function(p){p.setUTCDate(1);p.setUTCHours(0,0,0,0)},function(p,k){p.setUTCMonth(p.getUTCMonth()+k)},function(p,k){return k.getUTCMonth()-p.getUTCMonth()+(k.getUTCFullYear()-p.getUTCFullYear())*12},function(p){return p.getUTCMonth()});
var Vl=qC(function(p){p.setUTCMonth(0,1);p.setUTCHours(0,0,0,0)},function(p,k){p.setUTCFullYear(p.getUTCFullYear()+k)},function(p,k){return k.getUTCFullYear()-p.getUTCFullYear()},function(p){return p.getUTCFullYear()});
Vl.every=function(p){return isFinite(p=Math.floor(p))&&p>0?qC(function(k){k.setUTCFullYear(Math.floor(k.getUTCFullYear()/p)*p);k.setUTCMonth(0,1);k.setUTCHours(0,0,0,0)},function(k,m5){k.setUTCFullYear(k.getUTCFullYear()+m5*p)}):null};
var mxu={"-":"",_:" ",0:"0"},Zh=/^\s*\d+/,O30=/^%/,ACK=/[\\^$*+?|[\]().{}]/g,xIM;(function(p){xIM=BSx(p);gi$=xIM.utcFormat;u4p=xIM.utcParse;return xIM})({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||gi$("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||u4p("%Y-%m-%dT%H:%M:%S.%LZ");tY("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
tY("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");tY("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");tY("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");tY("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");tY("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");tY("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
tY("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");tY("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");tY("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");tY("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");tY("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var i3b=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(tY);YB(i3b);var xxr=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(tY);YB(xxr);var qXA=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(tY);YB(qXA);var Uxr=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(tY);
YB(Uxr);var t1K=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(tY);YB(t1K);var W29=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(tY);YB(W29);var Z3s=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(tY);YB(Z3s);var zRh=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(tY);YB(zRh);var Jg9=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(tY);YB(Jg9);var V1K=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(tY);YB(V1K);var b30=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(tY);YB(b30);var noo=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(tY);YB(noo);var Xgr=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(tY);YB(Xgr);var fRh=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(tY);YB(fRh);var hRr=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(tY);YB(hRr);var Ty9=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(tY);YB(Ty9);var gor=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(tY);YB(gor);var uLh=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(tY);YB(uLh);var jF0=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(tY);YB(jF0);var IRx=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(tY);YB(IRx);var pg3=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(tY);YB(pg3);var SX9=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(tY);YB(SX9);var EoJ=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(tY);YB(EoJ);var L20=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(tY);YB(L20);var CLJ=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(tY);YB(CLJ);var ooy=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(tY);YB(ooy);var lR3=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(tY);YB(lR3);YX6(b2(300,.5,0),b2(-240,.5,1));YX6(b2(-100,.75,.35),b2(80,1.5,.8));YX6(b2(260,.75,.35),b2(80,1.5,.8));b2();SK();Kor(tY("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
Kor(tY("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
Kor(tY("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
Kor(tY("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
xxu.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(p,k){p=+p;k=+k;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(p,k):this._context.moveTo(p,k);break;case 1:this._point=2;default:this._context.lineTo(p,k)}}};
(function(p){function k(m5){return new qXU(p(m5))}
k._curve=p;return k})(function(p){return new xxu(p)});
qXU.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(p,k){this._curve.point(k*Math.sin(p),k*-Math.cos(p))}};
kh5.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:aR5(this,this._t0,t1o(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(p,k){var m5=NaN;p=+p;k=+k;if(p!==this._x1||k!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(p,k):this._context.moveTo(p,k);break;case 1:this._point=2;break;case 2:this._point=3;aR5(this,t1o(this,m5=Uxu(this,p,k)),m5);break;default:aR5(this,this._t0,m5=Uxu(this,p,k))}this._x0=this._x1;this._x1=p;this._y0=this._y1;this._y1=k;this._t0=m5}}};
(function(p){this._context=new W23(p)}.prototype=Object.create(kh5.prototype)).point=function(p,k){kh5.prototype.point.call(this,k,p)};
W23.prototype={moveTo:function(p,k){this._context.moveTo(k,p)},
closePath:function(){this._context.closePath()},
lineTo:function(p,k){this._context.lineTo(k,p)},
bezierCurveTo:function(p,k,m5,Mp,Zp,nN){this._context.bezierCurveTo(k,p,Mp,m5,nN,Zp)}};
sd.prototype={constructor:sd,scale:function(p){return p===1?this:new sd(this.k*p,this.x,this.y)},
translate:function(p,k){return p===0&k===0?this:new sd(this.k,this.x+this.k*p,this.y+this.k*k)},
apply:function(p){return[p[0]*this.k+this.x,p[1]*this.k+this.y]},
invert:function(p){return[(p[0]-this.x)/this.k,(p[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new sd(1,0,0);w_6=U9;Ck.svg=Ck.svg;Ck.xhtml=Ck.xhtml;Ck.xlink=Ck.xlink;Ck.xml=Ck.xml;Ck.xmlns=Ck.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 j_o="hammer_"+(Math.random()*1E6|0),IvC=function(){var O=document||document;if(!O[j_o]){var m=function(){(function(G,B,Q,H){function M(TY,ls,wN){return setTimeout(z(TY,wN),ls)}
function R(TY,ls,wN){return Array.isArray(TY)?(x(TY,wN[ls],wN),!0):!1}
function x(TY,ls,wN){var zp;if(TY)if(TY.forEach)TY.forEach(ls,wN);else if(TY.length!==H){var ts=0;for(zp=TY.length;ts<zp;ts++)ls.call(wN,TY[ts],ts,TY)}else for(ts in TY)TY.hasOwnProperty(ts)&&ls.call(wN,TY[ts],ts,TY)}
function t(TY,ls,wN){for(var zp=Object.keys(ls),ts=0,SA=zp.length;ts<SA;ts++)if(!wN||wN&&TY[zp[ts]]===H)TY[zp[ts]]=ls[zp[ts]];return TY}
function W(TY,ls){return t(TY,ls,!0)}
function Z(TY,ls,wN){ls=ls.prototype;var zp=TY.prototype=Object.create(ls);zp.constructor=TY;zp._super=ls;wN&&t(zp,wN)}
function z(TY,ls){return function(){return TY.apply(ls,arguments)}}
function J(TY,ls){return typeof TY=="function"?TY.apply(ls?ls[0]||H:H,ls):TY}
function n(TY,ls,wN){x(S(ls),function(zp){TY.addEventListener(zp,wN,!1)})}
function I(TY,ls,wN){x(S(ls),function(zp){TY.removeEventListener(zp,wN,!1)})}
function S(TY){return TY.trim().split(/\s+/g)}
function L(TY,ls,wN){if(TY.indexOf&&!wN)return TY.indexOf(ls);for(var zp=0,ts=TY.length;zp<ts;zp++)if(wN&&TY[zp][wN]==ls||!wN&&TY[zp]===ls)return zp;return-1}
function C(TY,ls,wN){for(var zp=[],ts=[],SA=0,Xr=TY.length;SA<Xr;SA++){var XC=ls?TY[SA][ls]:TY[SA];L(ts,XC)<0&&zp.push(TY[SA]);ts[SA]=XC}wN&&(zp=ls?zp.sort(function(b2,E9){return b2[ls]>E9[ls]}):zp.sort());
return zp}
function P(TY,ls){for(var wN,zp=ls[0].toUpperCase()+ls.slice(1),ts=0,SA=Rj.length;ts<SA;ts++)if(wN=(wN=Rj[ts])?wN+zp:ls,wN in TY)return wN;return H}
function w(TY,ls){var wN=this;this.manager=TY;this.callback=ls;this.element=TY.element;this.target=TY.options.inputTarget;this.domHandler=function(zp){J(TY.options.enable,[TY])&&wN.handler(zp)};
this.evEl&&n(this.element,this.evEl,this.domHandler);this.evTarget&&n(this.target,this.evTarget,this.domHandler);this.evWin&&n(G,this.evWin,this.domHandler)}
function d(TY){var ls;IM?ls=CN:pI?ls=oe:U9?ls=K$:ls=US;return new ls(TY,D)}
function D(TY,ls,wN){var zp=wN.pointers.length,ts=wN.changedPointers.length,SA=ls&1&&zp-ts===0;wN.isFirst=!!SA;wN.isFinal=!!(ls&12&&zp-ts===0);SA&&(TY.session={});wN.eventType=ls;ls=TY.session;zp=wN.pointers;ts=zp.length;ls.firstInput||(ls.firstInput=OS(wN));ts>1&&!ls.firstMultiple?ls.firstMultiple=OS(wN):ts===1&&(ls.firstMultiple=!1);SA=ls.firstInput;var Xr=(ts=ls.firstMultiple)?ts.center:SA.center,XC=wN.center=rN(zp);wN.timeStamp=f$();wN.deltaTime=wN.timeStamp-SA.timeStamp;wN.angle=Vf(Xr,XC);wN.distance=
XI(Xr,XC);SA=wN.center;Xr=ls.offsetDelta||{};XC=ls.prevDelta||{};var b2=ls.prevInput||{};if(wN.eventType===1||b2.eventType===4)XC=ls.prevDelta={x:b2.deltaX||0,y:b2.deltaY||0},Xr=ls.offsetDelta={x:SA.x,y:SA.y};wN.deltaX=XC.x+(SA.x-Xr.x);wN.deltaY=XC.y+(SA.y-Xr.y);wN.offsetDirection=xO(wN.deltaX,wN.deltaY);ts?(SA=ts.pointers,SA=XI(zp[0],zp[1],SK)/XI(SA[0],SA[1],SK)):SA=1;wN.scale=SA;ts?(ts=ts.pointers,zp=Vf(zp[1],zp[0],SK)-Vf(ts[1],ts[0],SK)):zp=0;wN.rotation=zp;Xr=ls.lastInterval||wN;zp=wN.timeStamp-
Xr.timeStamp;wN.eventType!=8&&(zp>25||Xr.velocity===H)?(SA=Xr.deltaX-wN.deltaX,Xr=Xr.deltaY-wN.deltaY,XC=SA/zp||0,b2=Xr/zp||0,zp=XC,ts=b2,XC=jo(XC)>jo(b2)?XC:b2,SA=xO(SA,Xr),ls.lastInterval=wN):(XC=Xr.velocity,zp=Xr.velocityX,ts=Xr.velocityY,SA=Xr.direction);wN.velocity=XC;wN.velocityX=zp;wN.velocityY=ts;wN.direction=SA;ls=TY.element;a:{for(zp=wN.srcEvent.target;zp;){if(zp==ls){zp=!0;break a}zp=zp.parentNode}zp=!1}zp&&(ls=wN.srcEvent.target);wN.target=ls;TY.emit("hammer.input",wN);TY.recognize(wN);
TY.session.prevInput=wN}
function OS(TY){for(var ls=[],wN=0;wN<TY.pointers.length;wN++)ls[wN]={clientX:zu(TY.pointers[wN].clientX),clientY:zu(TY.pointers[wN].clientY)};return{timeStamp:f$(),pointers:ls,center:rN(ls),deltaX:TY.deltaX,deltaY:TY.deltaY}}
function rN(TY){var ls=TY.length;if(ls===1)return{x:zu(TY[0].clientX),y:zu(TY[0].clientY)};for(var wN=0,zp=0,ts=0;ts<ls;ts++)wN+=TY[ts].clientX,zp+=TY[ts].clientY;return{x:zu(wN/ls),y:zu(zp/ls)}}
function xO(TY,ls){return TY===ls?1:jo(TY)>=jo(ls)?TY>0?2:4:ls>0?8:16}
function XI(TY,ls,wN){wN||(wN=yu);var zp=ls[wN[0]]-TY[wN[0]];TY=ls[wN[1]]-TY[wN[1]];return Math.sqrt(zp*zp+TY*TY)}
function Vf(TY,ls,wN){wN||(wN=yu);return Math.atan2(ls[wN[1]]-TY[wN[1]],ls[wN[0]]-TY[wN[0]])*180/Math.PI}
function US(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;w.apply(this,arguments)}
function CN(){this.evEl=vY;this.evWin=Sj;w.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function oe(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};w.apply(this,arguments)}
function K$(){w.apply(this,arguments);var TY=z(this.handler,this);this.touch=new oe(this.manager,TY);this.mouse=new US(this.manager,TY)}
function n$(TY,ls){this.manager=TY;this.set(ls)}
function qe(TY){if(TY.indexOf("none")>-1)return"none";var ls=TY.indexOf("pan-x")>-1,wN=TY.indexOf("pan-y")>-1;return ls&&wN?"pan-x pan-y":ls||wN?ls?"pan-x":"pan-y":TY.indexOf("manipulation")>-1?"manipulation":"auto"}
function PM(TY){this.id=Wb++;this.manager=null;this.options=W(TY||{},this.defaults);TY=this.options.enable;this.options.enable=TY===H?!0:TY;this.state=1;this.simultaneous={};this.requireFail=[]}
function ZH(TY){return TY==16?"down":TY==8?"up":TY==2?"left":TY==4?"right":""}
function U3(TY,ls){return(ls=ls.manager)?ls.get(TY):TY}
function p$(){PM.apply(this,arguments)}
function uy(){p$.apply(this,arguments);this.pY=this.pX=null}
function vb(){p$.apply(this,arguments)}
function vM(){PM.apply(this,arguments);this._input=this._timer=null}
function Gp(){p$.apply(this,arguments)}
function Vu(){p$.apply(this,arguments)}
function Gu(){PM.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function x9(TY,ls){ls=ls||{};var wN=ls.recognizers;ls.recognizers=wN===H?x9.defaults.preset:wN;return new Am(TY,ls)}
function Am(TY,ls){ls=ls||{};this.options=W(ls,x9.defaults);this.options.inputTarget=this.options.inputTarget||TY;this.handlers={};this.session={};this.recognizers=[];this.element=TY;this.input=d(this);this.touchAction=new n$(this,this.options.touchAction);Fc(this,!0);x(ls.recognizers,function(wN){var zp=this.add(new wN[0](wN[1]));wN[2]&&zp.recognizeWith(wN[2]);wN[3]&&zp.requireFailure(wN[2])},this)}
function Fc(TY,ls){var wN=TY.element;x(TY.options.cssProps,function(zp,ts){wN.style[P(wN.style,ts)]=ls?zp:""})}
function O9(TY,ls){var wN=B.createEvent("Event");wN.initEvent(TY,!0,!0);wN.gesture=ls;ls.target.dispatchEvent(wN)}
var Rj=" webkit moz MS ms o".split(" "),DH=B.createElement("div"),zu=Math.round,jo=Math.abs,f$=Date.now,Wb=1,G9=/mobile|tablet|ip(ad|hone|od)|android/i,U9="ontouchstart"in G,IM=P(G,"PointerEvent")!==H,pI=U9&&G9.test(navigator.userAgent),yu=["x","y"],SK=["clientX","clientY"];w.prototype={handler:function(){},
destroy:function(){this.evEl&&I(this.element,this.evEl,this.domHandler);this.evTarget&&I(this.target,this.evTarget,this.domHandler);this.evWin&&I(G,this.evWin,this.domHandler)}};
var s9={mousedown:1,mousemove:2,mouseup:4};Z(US,w,{handler:function(TY){var ls=s9[TY.type];ls&1&&TY.button===0&&(this.pressed=!0);ls&2&&TY.which!==1&&(ls=4);this.pressed&&this.allow&&(ls&4&&(this.pressed=!1),this.callback(this.manager,ls,{pointers:[TY],changedPointers:[TY],pointerType:"mouse",srcEvent:TY}))}});
var Xc={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},xR={2:"touch",3:"pen",4:"mouse",5:"kinect"},vY="pointerdown",Sj="pointermove pointerup pointercancel";G.MSPointerEvent&&(vY="MSPointerDown",Sj="MSPointerMove MSPointerUp MSPointerCancel");Z(CN,w,{handler:function(TY){var ls=this.store,wN=!1,zp=TY.type.toLowerCase().replace("ms","");zp=Xc[zp];var ts=xR[TY.pointerType]||TY.pointerType;zp&1&&(TY.button===0||ts=="touch")?ls.push(TY):zp&12&&(wN=!0);var SA=L(ls,TY.pointerId,"pointerId");
SA<0||(ls[SA]=TY,this.callback(this.manager,zp,{pointers:ls,changedPointers:[TY],pointerType:ts,srcEvent:TY}),wN&&ls.splice(SA,1))}});
var pS={touchstart:1,touchmove:2,touchend:4,touchcancel:8};Z(oe,w,{handler:function(TY){var ls=pS[TY.type];var wN=Array.prototype.slice.call(TY.touches,0);var zp=this.targetIds;if(ls&3&&wN.length===1)zp[wN[0].identifier]=!0,zp=[wN,wN];else{var ts,SA=Array.prototype.slice.call(TY.targetTouches,0),Xr=Array.prototype.slice.call(TY.changedTouches,0),XC=[];if(ls===1)for(wN=0,ts=SA.length;wN<ts;wN++)zp[SA[wN].identifier]=!0;wN=0;for(ts=Xr.length;wN<ts;wN++)zp[Xr[wN].identifier]&&XC.push(Xr[wN]),ls&12&&
delete zp[Xr[wN].identifier];zp=XC.length?[C(SA.concat(XC),"identifier",!0),XC]:void 0}zp&&this.callback(this.manager,ls,{pointers:zp[0],changedPointers:zp[1],pointerType:"touch",srcEvent:TY})}});
Z(K$,w,{handler:function(TY,ls,wN){var zp=wN.pointerType=="mouse";if(wN.pointerType=="touch")this.mouse.allow=!1;else if(zp&&!this.mouse.allow)return;ls&12&&(this.mouse.allow=!0);this.callback(TY,ls,wN)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var ms=P(DH.style,"touchAction"),MB=ms!==H;n$.prototype={set:function(TY){TY=="compute"&&(TY=this.compute());MB&&(this.manager.element.style[ms]=TY);this.actions=TY.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var TY=[];x(this.manager.recognizers,function(ls){J(ls.options.enable,[ls])&&(TY=TY.concat(ls.getTouchAction()))});
return qe(TY.join(" "))},
preventDefaults:function(TY){if(!MB){var ls=TY.srcEvent;TY=TY.offsetDirection;if(this.manager.session.prevented)ls.preventDefault();else{var wN=this.actions,zp=wN.indexOf("none")>-1,ts=wN.indexOf("pan-y")>-1;wN=wN.indexOf("pan-x")>-1;if(zp||ts&&wN||ts&&TY&6||wN&&TY&24)return this.preventSrc(ls)}}},
preventSrc:function(TY){this.manager.session.prevented=!0;TY.preventDefault()}};
PM.prototype={defaults:{},set:function(TY){t(this.options,TY);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(TY){if(R(TY,"recognizeWith",this))return this;var ls=this.simultaneous;TY=U3(TY,this);ls[TY.id]||(ls[TY.id]=TY,TY.recognizeWith(this));return this},
dropRecognizeWith:function(TY){if(R(TY,"dropRecognizeWith",this))return this;TY=U3(TY,this);delete this.simultaneous[TY.id];return this},
requireFailure:function(TY){if(R(TY,"requireFailure",this))return this;var ls=this.requireFail;TY=U3(TY,this);L(ls,TY)===-1&&(ls.push(TY),TY.requireFailure(this));return this},
dropRequireFailure:function(TY){if(R(TY,"dropRequireFailure",this))return this;TY=U3(TY,this);TY=L(this.requireFail,TY);TY>-1&&this.requireFail.splice(TY,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(TY){return!!this.simultaneous[TY.id]},
emit:function(TY){function ls(ts){wN.manager.emit(wN.options.event+(ts?zp&16?"cancel":zp&8?"end":zp&4?"move":zp&2?"start":"":""),TY)}
var wN=this,zp=this.state;zp<8&&ls(!0);ls();zp>=8&&ls(!0)},
tryEmit:function(TY){if(this.canEmit())return this.emit(TY);this.state=32},
canEmit:function(){for(var TY=0;TY<this.requireFail.length;TY++)if(!(this.requireFail[TY].state&33))return!1;return!0},
recognize:function(TY){TY=t({},TY);J(this.options.enable,[this,TY])?(this.state&56&&(this.state=1),this.state=this.process(TY),this.state&30&&this.tryEmit(TY)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
Z(p$,PM,{defaults:{pointers:1},attrTest:function(TY){var ls=this.options.pointers;return ls===0||TY.pointers.length===ls},
process:function(TY){var ls=this.state,wN=TY.eventType,zp=ls&6;TY=this.attrTest(TY);return zp&&(wN&8||!TY)?ls|16:zp||TY?wN&4?ls|8:ls&2?ls|4:2:32}});
Z(uy,p$,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var TY=this.options.direction;if(TY===30)return["none"];var ls=[];TY&6&&ls.push("pan-y");TY&24&&ls.push("pan-x");return ls},
directionTest:function(TY){var ls=this.options,wN=!0,zp=TY.distance,ts=TY.direction,SA=TY.deltaX,Xr=TY.deltaY;ts&ls.direction||(ls.direction&6?(ts=SA===0?1:SA<0?2:4,wN=SA!=this.pX,zp=Math.abs(TY.deltaX)):(ts=Xr===0?1:Xr<0?8:16,wN=Xr!=this.pY,zp=Math.abs(TY.deltaY)));TY.direction=ts;return wN&&zp>ls.threshold&&ts&ls.direction},
attrTest:function(TY){return p$.prototype.attrTest.call(this,TY)&&(this.state&2||!(this.state&2)&&this.directionTest(TY))},
emit:function(TY){this.pX=TY.deltaX;this.pY=TY.deltaY;var ls=ZH(TY.direction);ls&&this.manager.emit(this.options.event+ls,TY);this._super.emit.call(this,TY)}});
Z(vb,p$,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(TY){return this._super.attrTest.call(this,TY)&&(Math.abs(TY.scale-1)>this.options.threshold||this.state&2)},
emit:function(TY){this._super.emit.call(this,TY);TY.scale!==1&&this.manager.emit(this.options.event+(TY.scale<1?"in":"out"),TY)}});
Z(vM,PM,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(TY){var ls=this.options,wN=TY.pointers.length===ls.pointers,zp=TY.distance<ls.threshold,ts=TY.deltaTime>ls.time;this._input=TY;if(!zp||!wN||TY.eventType&12&&!ts)this.reset();else if(TY.eventType&1)this.reset(),this._timer=M(function(){this.state=8;this.tryEmit()},ls.time,this);
else if(TY.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(TY){this.state===8&&(TY&&TY.eventType&4?this.manager.emit(this.options.event+"up",TY):(this._input.timeStamp=f$(),this.manager.emit(this.options.event,this._input)))}});
Z(Gp,p$,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(TY){return this._super.attrTest.call(this,TY)&&(Math.abs(TY.rotation)>this.options.threshold||this.state&2)}});
Z(Vu,p$,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return uy.prototype.getTouchAction.call(this)},
attrTest:function(TY){var ls=this.options.direction;if(ls&30)var wN=TY.velocity;else ls&6?wN=TY.velocityX:ls&24&&(wN=TY.velocityY);return this._super.attrTest.call(this,TY)&&ls&TY.direction&&jo(wN)>this.options.velocity&&TY.eventType&4},
emit:function(TY){var ls=ZH(TY.direction);ls&&this.manager.emit(this.options.event+ls,TY);this.manager.emit(this.options.event,TY)}});
Z(Gu,PM,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(TY){var ls=this.options,wN=TY.pointers.length===ls.pointers,zp=TY.distance<ls.threshold,ts=TY.deltaTime<ls.time;this.reset();if(TY.eventType&1&&this.count===0)return this.failTimeout();if(zp&&ts&&wN){if(TY.eventType!=4)return this.failTimeout();wN=this.pTime?TY.timeStamp-this.pTime<ls.interval:!0;zp=!this.pCenter||XI(this.pCenter,TY.center)<ls.posThreshold;this.pTime=TY.timeStamp;this.pCenter=TY.center;zp&&wN?this.count+=1:this.count=1;this._input=TY;if(this.count%ls.taps===0)return this.hasRequireFailures()?
(this._timer=M(function(){this.state=8;this.tryEmit()},ls.interval,this),2):8}return 32},
failTimeout:function(){this._timer=M(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))}});
x9.VERSION="2.0.2";x9.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Gp,{enable:!1}],[vb,{enable:!1},["rotate"]],[Vu,{direction:6}],[uy,{direction:6},["swipe"]],[Gu],[Gu,{event:"doubletap",taps:2},["tap"]],[vM]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Am.prototype={set:function(TY){t(this.options,TY);return this},
stop:function(TY){this.session.stopped=TY?2:1},
recognize:function(TY){var ls=this.session;if(!ls.stopped){this.touchAction.preventDefaults(TY);var wN=this.recognizers,zp=ls.curRecognizer;if(!zp||zp&&zp.state&8)zp=ls.curRecognizer=null;for(var ts=0,SA=wN.length;ts<SA;ts++){var Xr=wN[ts];ls.stopped===2||zp&&Xr!=zp&&!Xr.canRecognizeWith(zp)?Xr.reset():Xr.recognize(TY);!zp&&Xr.state&14&&(zp=ls.curRecognizer=Xr)}}},
get:function(TY){if(TY instanceof PM)return TY;for(var ls=this.recognizers,wN=0;wN<ls.length;wN++)if(ls[wN].options.event==TY)return ls[wN];return null},
add:function(TY){if(R(TY,"add",this))return this;var ls=this.get(TY.options.event);ls&&this.remove(ls);this.recognizers.push(TY);TY.manager=this;this.touchAction.update();return TY},
remove:function(TY){if(R(TY,"remove",this))return this;var ls=this.recognizers;TY=this.get(TY);ls.splice(L(ls,TY),1);this.touchAction.update();return this},
on:function(TY,ls){var wN=this.handlers;x(S(TY),function(zp){wN[zp]=wN[zp]||[];wN[zp].push(ls)});
return this},
off:function(TY,ls){var wN=this.handlers;x(S(TY),function(zp){ls?wN[zp].splice(L(wN[zp],ls),1):delete wN[zp]});
return this},
emit:function(TY,ls){this.options.domEvents&&O9(TY,ls);var wN=this.handlers[TY]&&this.handlers[TY].slice();if(wN&&wN.length){ls.type=TY;ls.preventDefault=function(){ls.srcEvent.preventDefault()};
TY=0;for(var zp=wN.length;TY<zp;TY++)wN[TY](ls)}},
destroy:function(){this.element&&Fc(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
t(x9,{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:Am,Input:w,TouchAction:n$,Recognizer:PM,AttrRecognizer:p$,Tap:Gu,Pan:uy,Swipe:Vu,Pinch:vb,Rotate:Gp,Press:vM,on:n,off:I,each:x,merge:W,extend:t,inherit:Z,bindFn:z,prefixed:P});
G[Q]=x9})(window,document,"Hammer");
return window.Hammer}.call({});
m.DOCUMENT=O;O[j_o]=m}return O[j_o]};/*

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

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 GUH;_.mkC="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");GUH=function(){var O=[],m;var G=G||_.mkC.length;for(m=0;m<8;m++)O[m]=_.mkC[0|Math.random()*G];return O.join("")};var unr=function(){return Math.random().toString(36).substring(7).split("").join(".")},gNN="@@redux/INIT"+unr(),pkI="@@redux/REPLACE"+unr();var S2Y=typeof Symbol==="function"&&Symbol.observable||"@@observable";var BDu=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var Q$9="top right bottom left width height size weight".split(" "),Hzm=typeof MutationObserver!=="undefined",vKp=BDu&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,KHU=function(){this.mutationEventsAdded_=this.JSC$11759_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=ENs(this.refresh.bind(this))},$kp=function(O,
m){var G=O.observers_;
m=G.indexOf(m);~m&&G.splice(m,1);!G.length&&O.JSC$11759_connected_&&BDu&&O.JSC$11759_connected_&&(document.removeEventListener("transitionend",O.onTransitionEnd_),window.removeEventListener("resize",O.refresh),O.mutationsObserver_&&(O.mutationsObserver_.disconnect(),vKp&&(HTMLElement.prototype.attachShadow=vKp)),O.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",O.refresh),O.mutationsObserver_=null,O.mutationEventsAdded_=!1,O.JSC$11759_connected_=!1)};
KHU.prototype.refresh=function(){MlC(this)&&this.refresh()};
var MlC=function(O){O=O.observers_.filter(function(m){return rIH(m),m.activeObservations_.length>0});
O.forEach(function(m){return RCo(m)});
return O.length>0},izU=function(O){if(BDu&&!O.JSC$11759_connected_){document.addEventListener("transitionend",O.onTransitionEnd_);
window.addEventListener("resize",O.refresh);if(Hzm){O.mutationsObserver_=new MutationObserver(O.refresh);var m={attributes:!0,childList:!0,characterData:!0,subtree:!0};O.mutationsObserver_.observe(document,m);vKp&&(function Q(B){var H=B.shadowRoot;H&&(O.mutationsObserver_.observe(H,m),Q(H));for(B=B.firstElementChild;B;)Q(B),B=B.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var B=vKp.apply(this,_.eA.apply(0,arguments));
O.mutationsObserver_.observe(B,m);return B})}else document.addEventListener("DOMSubtreeModified",O.refresh),O.mutationEventsAdded_=!0;
O.JSC$11759_connected_=!0}};
KHU.prototype.onTransitionEnd_=function(O){var m=O.propertyName===void 0?"":O.propertyName;Q$9.some(function(G){return!!~m.indexOf(G)})&&this.refresh()};
var xk$=null;var qpj=function(O,m){for(var G=_.K(Object.keys(m)),B=G.next();!B.done;B=G.next())B=B.value,Object.defineProperty(O,B,{value:m[B],enumerable:!1,writable:!1,configurable:!0})};var PK=function(O){var m;return(O==null?void 0:(m=O.ownerDocument)==null?void 0:m.defaultView)||globalThis};var Uk8={x:0,y:0,width:0,height:0},tlH=typeof SVGGraphicsElement!=="undefined"?function(O){return O instanceof PK(O).SVGGraphicsElement}:function(O){return O instanceof PK(O).SVGElement&&typeof O.getBBox==="function"};var WHU=function(O){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=O};
WHU.prototype.isActive=function(){var O=this.target;if(BDu)if(tlH(O)){var m=O.getBBox();m={x:0,y:0,width:m.width,height:m.height}}else{var G=O.clientWidth,B=O.clientHeight;if(G||B){var Q=PK(O).getComputedStyle(O);m=XE(Q["padding-top"]);var H=XE(Q["padding-left"]),M=H+XE(Q["padding-right"]),R=m+XE(Q["padding-bottom"]),x=XE(Q.width),t=XE(Q.height);Q.boxSizing==="border-box"&&(Math.round(x+M)!==G&&(x-=Lir(Q,"left","right")+M),Math.round(t+R)!==B&&(t-=Lir(Q,"top","bottom")+R));O!==PK(O).document.documentElement&&
(O=Math.round(x+M)-G,B=Math.round(t+R)-B,Math.abs(O)!==1&&(x-=O),Math.abs(B)!==1&&(t-=B));m={x:H,y:m,width:x,height:t}}else m=Uk8}else m=Uk8;this.contentRect_=m;return m.width!==this.broadcastWidth||m.height!==this.broadcastHeight};var Zze=function(O,m){var G=m.x;var B=m.y;var Q=m.width;m=m.height;var H=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);qpj(H,{x:G,y:B,width:Q,height:m,top:B,right:G+Q,bottom:m+B,left:G});qpj(this,{target:O,contentRect:H})};var zC3=function(O,m){var G=xk$;this.activeObservations_=[];this.observations_=new Map;if(typeof O!=="function")throw new TypeError("Ue");this.callback_=O;this.controller_=G;this.callbackCtx_=m};
zC3.prototype.observe=function(O){if(O===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(O instanceof PK(O).Element))throw new TypeError("We");var m=this.observations_;m.has(O)||(m.set(O,new WHU(O)),O=this.controller_,~O.observers_.indexOf(this)||O.observers_.push(this),O.JSC$11759_connected_||izU(O),this.controller_.refresh())}};
zC3.prototype.unobserve=function(O){if(O===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(O instanceof PK(O).Element))throw new TypeError("We");var m=this.observations_;m.has(O)&&(m.delete(O),m.size||$kp(this.controller_,this))}};
zC3.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();$kp(this.controller_,this)};
var rIH=function(O){O.activeObservations_.splice(0);O.observations_.forEach(function(m){m.isActive()&&O.activeObservations_.push(m)})},RCo=function(O){if(O.activeObservations_.length>0){var m=O.callbackCtx_,G=O.activeObservations_.map(function(B){var Q=B.target,H=B.contentRect_;
B.broadcastWidth=H.width;B.broadcastHeight=H.height;return new Zze(Q,H)});
O.callback_.call(m,G,m);O.activeObservations_.splice(0)}};var Fd=function(O){if(!(this instanceof Fd))throw new TypeError("Xe");if(!arguments.length)throw new TypeError("Ve");xk$||(xk$=new KHU);this.observer_=new zC3(O,this)};
Fd.prototype.observe=function(O){this.observer_.observe(O)};
Fd.prototype.unobserve=function(O){this.observer_.unobserve(O)};
Fd.prototype.disconnect=function(){this.observer_.disconnect()};var Prz=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:Fd;var Y25="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(" "),c$N={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},y$f=null,Clp=null;var dvp={},wkN=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 A$p={text:1},s7N={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var JIp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Vlo={CONSTANT:{isUnwrappable:function(O){return O instanceof yT},
unwrap:vhp},JAVASCRIPT:{isUnwrappable:function(O){return O instanceof _.Hi},
unwrap:H_r},HTML:{isUnwrappable:function(O){return O instanceof NP},
unwrap:function(O){return OI(O)}},
RESOURCE_URL:{isUnwrappable:function(O){return O instanceof In},
unwrap:_.Eh},STRING:{isUnwrappable:function(O){return O instanceof Object},
unwrap:function(O){return String(O)}},
STYLE:{isUnwrappable:function(O){return typeof O==="string"},
unwrap:function(O){return O}},
URL:{isUnwrappable:function(O){return lG(O)},
unwrap:_.an}},bz$={CONSTANT:OYf,JAVASCRIPT:OYf,HTML:function(O){O=O instanceof NP?O:P8(String(O).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return OI(O)},
RESOURCE_URL:OYf,STRING:String,STYLE:OYf,URL:function(O,m){O=JIp.test(O)?O:void 0;return O===void 0?m:O}};var R7r=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,mmr=/[\t\n\f\r ]+/,BWf=/[\t\n\f\r ,]+/g,HYs=function(O,m,G){return G},gK={},nKe=function(){var O=function(){var B={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",B):B}(),m=O.createHTML(""),G=O.createScript("");
O=O.createScriptURL("");return{INNOCUOUS_STRING:m,INNOCUOUS_SCRIPT:G,INNOCUOUS_URL:O}}(),TA=nKe.INNOCUOUS_STRING,rZI=nKe.INNOCUOUS_SCRIPT,Mfp=nKe.INNOCUOUS_URL;var Xc_=function(O){var m=iYM(O);return function(G,B,Q,H){return H?m(H,B,Q,G):TA}}({reportHandler:function(O,m){if(O)try{throw Error(m);
}catch(G){_.oy(G)}},
safeTypesBridge:function(O,m,G){var B=Vlo[m];return B.isUnwrappable(O)&&(B=B.unwrap(O,G),B!==G)?B:(0,bz$[m])(String(O),G)},
allowedIdentifierPrefixes:[""]});if(fI!==void 0)throw Error("Ye");fI=Xc_;if(fI!==Xc_)throw Error("Ze");uH("Injectable",[]);var lIY=uH("Inject",[["token",void 0]]),kmf=uH("Optional",[]);uH("Injectable",[]);var yZI=uH("Self",[]),cZ5=uH("SkipSelf",[]);uH("Host",[]);var fL_={},hC2=function(){};
hC2.prototype.resolve=function(){throw Error("af");};
hC2.prototype.addProvider=function(){throw Error("af");};var Cer=Function;var TDH=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,gK$=function(){this._reflect=window.Reflect};
_.v=gK$.prototype;_.v.factory=function(O){return function(){return new (Function.prototype.bind.apply(O,[null].concat(_.lS(_.eA.apply(0,arguments)))))}};
_.v._zipTypesAndAnnotations=function(O,m){var G=typeof O==="undefined"?Array(m.length):Array(O.length);for(var B=0;B<G.length;B++)G[B]=typeof O==="undefined"?[]:O[B]!=Object?[O[B]]:[],m&&q6s(m[B])&&(G[B]=G[B].concat(m[B]));return G};
_.v._ownParameters=function(O,m){if(TDH.exec(O.toString()))return null;if(O.parameters&&O.parameters!==m.parameters)return O.parameters;var G=O.ctorParameters;return G&&G!==m.ctorParameters?(m=typeof G==="function"?G():G,O=m.map(function(B){return B&&B.type}),m=m.map(function(B){return B&&tfp(B.decorators)}),this._zipTypesAndAnnotations(O,m)):q6s(this._reflect)&&q6s(this._reflect.getOwnMetadata)&&(m=this._reflect.getOwnMetadata("parameters",O),(G=this._reflect.getOwnMetadata("design:paramtypes",O))||
m)?this._zipTypesAndAnnotations(G,m):Array(O.length).fill(void 0)};
_.v.parameters=function(O){if(!O.prototype)return[];var m=Object.getPrototypeOf(O.prototype).constructor;(O=this._ownParameters(O,m))||m===Object||(O=this.parameters(m));return O||[]};
_.v._ownAnnotations=function(O,m){if(O.annotations&&O.annotations!==m.annotations)return O=O.annotations,typeof O==="function"&&O.annotations&&(O=O.annotations),O;if(O.decorators&&O.decorators!==m.decorators)return tfp(O.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",O)};
_.v.annotations=function(O){var m=Object.getPrototypeOf(O.prototype).constructor;O=this._ownAnnotations(O,m)||[];return(m!==Object?this.annotations(m):[]).concat(O)};
_.v._ownPropMetadata=function(O,m){if(O.propMetadata&&O.propMetadata!==m.propMetadata)return O=O.propMetadata,typeof O==="function"&&O.propMetadata&&(O=O.propMetadata),O;if(O.propDecorators&&O.propDecorators!==m.propDecorators){var G=O.propDecorators,B={};Object.keys(G).forEach(function(Q){B[Q]=tfp(G[Q])});
return B}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",O)};
_.v.propMetadata=function(O){var m=Object.getPrototypeOf(O.prototype).constructor,G={};if(m!==Object){var B=this.propMetadata(m);Object.keys(B).forEach(function(H){G[H]=B[H]})}var Q=this._ownPropMetadata(O,m);
Q&&Object.keys(Q).forEach(function(H){var M=[];G.hasOwnProperty(H)&&M.push.apply(M,_.lS(G[H]));M.push.apply(M,_.lS(Q[H]));G[H]=M});
return G};
_.v.getter=function(O){return function(m){return m[O]}};
_.v.setter=function(O){return function(m,G){return m[O]=G}};
_.v.method=function(O){return function(m,G){if(!m[O])throw Error("bf`"+O);return m[O].apply(m,G)}};var uv_=function(){};var j$2=function(O){this.reflectionCapabilities=O};
_.X(j$2,uv_);_.v=j$2.prototype;_.v.factory=function(O){return this.reflectionCapabilities.factory(O)};
_.v.parameters=function(O){return this.reflectionCapabilities.parameters(O)};
_.v.annotations=function(O){return this.reflectionCapabilities.annotations(O)};
_.v.propMetadata=function(O){return this.reflectionCapabilities.propMetadata(O)};
_.v.getter=function(O){return this.reflectionCapabilities.getter(O)};
_.v.setter=function(O){return this.reflectionCapabilities.setter(O)};
_.v.method=function(O){return this.reflectionCapabilities.method(O)};var fIN=new j$2(new gK$);var Ae=function(O,m){this.token=O;this.id=m;if(O===void 0||O===null)throw Error("gf");};
_.vr.Object.defineProperties(Ae.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return jU(this.token)}}});
_.vr.Object.defineProperties(Ae,{JSC$11801_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return pC.JSC$11805_numberOfKeys}}});
var ILe=function(){this._allKeys=new Map};
ILe.prototype.get=function(O){if(O instanceof Ae)return O;if(this._allKeys.has(O))return this._allKeys.get(O);var m=new Ae(O,Ae.JSC$11801_numberOfKeys);this._allKeys.set(O,m);return m};
_.vr.Object.defineProperties(ILe.prototype,{JSC$11805_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var pC=new ILe;var Y6O=function(O,m,G){this.key=O;this.optional=m;this.visibility=G},TWO=function(O){return new Y6O(O,!1,null)},u0N=[],pGp=function(O,m,G){this.key=O;
this.resolvedFactories=m;this.multiProvider=G},jKp=function(O,m,G,B){this.factory=O;
this.dependencies=m;this.providerClass=G;this.providerValue=B};var Oa={},mt=function(O,m){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=m===void 0?null:m;O=_.K(O);for(m=O.next();!m.done;m=O.next())this.addProvider(m.value)};
_.v=mt.prototype;_.v.addProvider=function(O){this.keyIdToIndex.set(O.key.id,this.keyIds.length);this.providers.push(O);this.keyIds.push(O.key.id);this.objs.push(Oa)};
_.v.resolve=function(O,m){m=m===void 0?fL_:m;return this._getByKey(pC.get(Iq(O)),null,m)};
_.v._new=function(O){if(this.constructedKeyIds[O.key.id])throw bYN(this,O.key);this.constructedKeyIds[O.key.id]=!0;return this._instantiateProvider(O)};
_.v._instantiateProvider=function(O){if(O.multiProvider){for(var m=Array(O.resolvedFactories.length),G=0;G<O.resolvedFactories.length;++G)m[G]=this._instantiate(O,O.resolvedFactories[G]);return m}return this._instantiate(O,O.resolvedFactories[0])};
_.v._instantiate=function(O,m){var G=this,B=m.factory;try{var Q=m.dependencies.map(function(M){return G._getByReflectiveDependency(M)})}catch(M){throw M.addKey&&M.addKey(this,O.key),M;
}try{var H=B.apply(null,_.lS(Q))}catch(M){throw nre(this,M,O.key);}return H};
_.v._getByReflectiveDependency=function(O){return this._getByKey(O.key,O.visibility,O.optional?null:fL_)};
_.v._getByKey=function(O,m,G){return O===pc8?this:m instanceof yZI?this._getByKeySelf(O,G):this._getByKeyDefault(O,G,m)};
_.v._getObjByKeyId=function(O){for(var m=0;m<this.keyIds.length;m++)if(this.keyIds[m]===O)return this.objs[m]===Oa&&(this.objs[m]=this._new(this.providers[m])),this.objs[m];return Oa};
_.v._throwOrNull=function(O,m){if(m!==fL_)return m;throw Vfz(this,O);};
_.v._getByKeySelf=function(O,m){var G=this._getObjByKeyId(O.id);return G!==Oa?G:this._throwOrNull(O,m)};
_.v._getByKeyDefault=function(O,m,G){for(var B=G=G instanceof cZ5?this.parent:this;G instanceof mt;){var Q=G._getObjByKeyId(O.id);if(Q!==Oa)return Q;G=G.parent}Q=void 0;if(G!==null)try{var H=G.resolve(O.token,m);if(H!==Oa)return H}catch(M){Q=M}if(!(B instanceof mt&&wGp(O.token))){if(Q)throw Q;return this._throwOrNull(O,m)}for(H=B;H.parent instanceof mt;)H=H.parent;H.addProvider(S6r({provide:O.token,useClass:O.token}));return H.resolve(O.token,m)};
_.v.toString=function(){return this.displayName};
_.vr.Object.defineProperties(mt.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+dmI(this,function(O){return' "'+O.key.displayName+'" '}).join(", ")+"])"}}});
var pc8=pC.get(Iq(hC2));(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 Spu=window.XRegExp;var EKj=-1,LH8=function(O){addEventListener("pageshow",function(m){m.persisted&&(EKj=m.timeStamp,O(m))},!0)};var oKe=function(O,m,G){var B=Cme,Q,H;return function(M){if(m.value>=0&&(M||G)){var R;if((H=m.value-((R=Q)!=null?R:0))||Q===void 0)Q=m.value,m.delta=H,M=m.value,m.rating=M>B[1]?"poor":M>B[0]?"needs-improvement":"good",O(m)}}};var lLC=function(O){requestAnimationFrame(function(){return requestAnimationFrame(function(){return O()})})};var aLU=function(){var O=performance.getEntriesByType("navigation")[0];if(O&&O.responseStart>0&&O.responseStart<performance.now())return O};var kUm=function(){var O,m;return(m=(O=aLU())==null?void 0:O.activationStart)!=null?m:0};var G0=-1,yI8=new Set,cIu=function(O){if(document.visibilityState==="hidden"){if(O.type==="visibilitychange")for(var m=_.K(yI8),G=m.next();!G.done;G=m.next())G=G.value,G();isFinite(G0)||(G0=O.type==="visibilitychange"?O.timeStamp:0,removeEventListener("prerenderingchange",cIu,!0))}},Yp3=function(){if(G0<0){var O=kUm(),m,G;
G0=(G=document.prerendering?void 0:(m=globalThis.performance.getEntriesByType("visibility-state").filter(function(B){return B.name==="hidden"&&B.startTime>O})[0])==null?void 0:m.startTime)!=null?G:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",cIu,!0);addEventListener("prerenderingchange",cIu,!0);LH8(function(){setTimeout(function(){G0=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return G0},
onHidden:function(B){yI8.add(B)}}};var dk$=function(){var O=O===void 0?-1:O;var m=aLU(),G="navigate";EKj>=0?G="back-forward-cache":m&&(document.prerendering||kUm()>0?G="prerender":document.wasDiscarded?G="restore":m.type&&(G=m.type.replace(/_/g,"-")));return{name:"LCP",value:O,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:G}};var Dme=new WeakMap;var wcj=function(O){var m=m===void 0?{}:m;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var G=new PerformanceObserver(function(B){Promise.resolve().then(function(){O(B.getEntries())})});
G.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},m));return G}}catch(B){}};var eCo=function(O){var m=!1;return function(){m||(O(),m=!0)}};var Dks=function(O){document.prerendering?addEventListener("prerenderingchange",function(){return O()},!0):O()};var s$9=function(O){var m=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?O():(O=eCo(O),addEventListener("visibilitychange",O,{once:!0,capture:!0}),m(function(){O();removeEventListener("visibilitychange",O,{capture:!0})}))};var e7Y=function(){};
e7Y.prototype._processEntry=function(O){var m;(m=this._onBeforeProcessingEntry)==null||m.call(this,O)};var Cme=[2500,4E3],M3s=function(O){var m=m===void 0?{}:m;Dks(function(){var G=Yp3(),B=dk$(),Q=sKz(m),H=function(z){m.reportAllChanges||(z=z.slice(-1));z=_.K(z);for(var J=z.next();!J.done;J=z.next())J=J.value,Q._processEntry(J),J.startTime<G.firstHiddenTime&&(B.value=Math.max(J.startTime-kUm(),0),B.entries=[J],R())},M=wcj(H);
if(M){var R=oKe(O,B,m.reportAllChanges);for(var x=eCo(function(){H(M.takeRecords());M.disconnect();R(!0)}),t=function(z){z.isTrusted&&(s$9(x),removeEventListener(z.type,t,{capture:!0}))},W=_.K(["keydown",
"click","visibilitychange"]),Z=W.next();!Z.done;Z=W.next())addEventListener(Z.value,t,{capture:!0});LH8(function(z){B=dk$();R=oKe(O,B,m.reportAllChanges);lLC(function(){B.value=performance.now()-z.timeStamp;R(!0)})})}})};var NDU;var Pmo;_.e=function(){return Pmo!==void 0?Pmo:Pmo=document.createElement("template")};
document.head.appendChild(_.e().content);var FH3;_.kZ({_template:function(){if(FH3!==void 0)return FH3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
var m=O.content,G=m.insertBefore;NDU===void 0&&(NDU=document.createElement("template"));var B=NDU;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return FH3=O},
is:"tp-yt-app-toolbar"});var AI_;var Oko;_.Bz=function(){};
_.Bz=_.kZ({_template:function(){if(Oko!==void 0)return Oko;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;AI_===void 0&&(AI_=document.createElement("template"));var B=AI_;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return Oko=O},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.Bz.instance||(_.Bz.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(O){this._text===O&&(O+="\u00a0");this._text="";this.async(function(){this._text=O},this.timeout)},
_onIronAnnounce:function(O){O.detail&&O.detail.text&&this.announce(O.detail.text)}});
_.Bz.instance=null;_.Bz.requestAvailability=function(){_.Bz.instance||(_.Bz.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.Bz.instance):document.addEventListener("load",function(){document.body.appendChild(_.Bz.instance)})};var mXp;var GK$;/*

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

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var Hz,Mk_,r8$;Hz=Element.prototype;Mk_=Hz.matches||Hz.matchesSelector||Hz.mozMatchesSelector||Hz.msMatchesSelector||Hz.oMatchesSelector||Hz.webkitMatchesSelector;r8$=function(){};
_.iks=function(O){var m=Rvs,G=[];return m._collectTabbableNodes(O,G)?m._sortByTabIndex(G):G};
_.v=r8$.prototype;_.v.isFocusable=function(O){return Mk_.call(O,"input, select, textarea, button, object")?Mk_.call(O,":not([disabled])"):Mk_.call(O,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.v._normalizedTabIndex=function(O){return this.isFocusable(O)?(O=O.getAttribute("tabindex")||0,Number(O)):-1};
_.v._collectTabbableNodes=function(O,m){if(O.nodeType!==Node.ELEMENT_NODE||!this._isVisible(O))return!1;var G=this._normalizedTabIndex(O),B=G>0;G>=0&&m.push(O);if(O.localName==="content"||O.localName==="slot")G=_.SU(O).getDistributedNodes();else{var Q;G=((Q=_.SU(O).shadowRoot)!=null?Q:_.SU(O.root||O)).children}for(O=0;O<G.length;O++)B=this._collectTabbableNodes(G[O],m)||B;return B};
_.v._isVisible=function(O){var m=O.style;return m.visibility!=="hidden"&&m.display!=="none"?(m=window.getComputedStyle(O),m.visibility!=="hidden"&&m.display!=="none"):!1};
_.v._sortByTabIndex=function(O){var m=O.length;if(m<2)return O;var G=Math.ceil(m/2);m=this._sortByTabIndex(O.slice(0,G));O=this._sortByTabIndex(O.slice(G));return this._mergeSortByTabIndex(m,O)};
_.v._mergeSortByTabIndex=function(O,m){for(var G=[];O.length>0&&m.length>0;)this._hasLowerTabOrder(O[0],m[0])?G.push(m.shift()):G.push(O.shift());return G.concat(O,m)};
_.v._hasLowerTabOrder=function(O,m){O=Math.max(O.tabIndex,0);m=Math.max(m.tabIndex,0);return O===0||m===0?m>O:O>m};
var Rvs=new r8$;var xXj;var qQu;_.kZ({_template:function(){if(qQu!==void 0)return qQu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;xXj===void 0&&(xXj=document.createElement("template"));var B=xXj;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return qQu=O},
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&&_.SU(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.SU(this.parentNode).removeChild(this)},
_onTransitionend:function(O){O&&O.target===this&&this.complete()},
_openedChanged:function(O){O?this.prepare():(O=window.getComputedStyle(this),O.transitionDuration!=="0s"&&O.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 vz=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;l_(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)};
vz.prototype._bringOverlayAtIndexToFront=function(O){var m=this._overlays[O];if(m){var G=this._overlays.length-1,B=this._overlays[G];B&&this._shouldBeBehindOverlay(m,B)&&G--;if(!(O>=G)){B=Math.max(this._getZ(_.UXs(this)),this._minimumZ);for(this._getZ(m)<=B&&this._applyOverlayZ(m,B);O<G;)this._overlays[O]=this._overlays[O+1],O++;this._overlays[G]=m}}};
vz.prototype.addOverlay=function(O){var m=this._overlays.indexOf(O);if(m>=0)this._bringOverlayAtIndexToFront(m);else{m=this._overlays.length;var G=this._overlays[m-1],B=Math.max(this._getZ(G),this._minimumZ),Q=this._getZ(O);G&&this._shouldBeBehindOverlay(O,G)&&(this._applyOverlayZ(G,B),m--,B=Math.max(this._getZ(this._overlays[m-1]),this._minimumZ));Q<=B&&this._applyOverlayZ(O,B);this._overlays.splice(m,0,O)}this.trackBackdrop()};
vz.prototype.removeOverlay=function(O){O=this._overlays.indexOf(O);O!==-1&&(this._overlays.splice(O,1),this.trackBackdrop())};
_.UXs=function(O){return O._overlays[O._overlays.length-1]};
_.v=vz.prototype;_.v.trackBackdrop=function(){var O=this._overlayWithBackdrop();if(O||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(O)-1,this.backdropElement.opened=!!O,this.backdropElement.prepare()};
_.v._overlayWithBackdrop=function(){for(var O=this._overlays.length-1;O>=0;O--)if(this._overlays[O].withBackdrop)return this._overlays[O]};
_.v._getZ=function(O){var m=this._minimumZ;if(O){var G,B,Q=Number(((G=O.hostElement)!=null?G:O).style.zIndex||window.getComputedStyle((B=O.hostElement)!=null?B:O).zIndex);Q===Q&&(m=Q)}return m};
_.v._setZ=function(O,m){var G;((G=O.hostElement)!=null?G:O).style.zIndex=m};
_.v._applyOverlayZ=function(O,m){this._setZ(O,m+2)};
_.v._overlayInPath=function(O){O=O||[];for(var m=0;m<O.length;m++){var G=void 0;if(((G=O[m].polymerController)!=null?G:O[m])._manager===this)return O[m]}};
_.v._onCaptureClick=function(O){var m=this._overlays.length-1;if(m!==-1)for(var G=_.SU(O).path,B,Q;(B=this._overlays[m])&&this._overlayInPath(G)!==((Q=B.hostElement)!=null?Q:B);)if(B._onCaptureClick(O),B.allowClickThrough)m--;else break};
_.v._onCaptureFocus=function(O){var m=_.UXs(this);m&&m._onCaptureFocus(O)};
_.v._onCaptureKeyDown=function(O){var m=_.UXs(this);m&&(_.l8.keyboardEventMatchesKeys(O,"esc")?m._onCaptureEsc(O):_.l8.keyboardEventMatchesKeys(O,"tab")&&m._onCaptureTab(O))};
_.v._shouldBeBehindOverlay=function(O,m){return!O.alwaysOnTop&&m.alwaysOnTop&&!m.contains(O)};
_.vr.Object.defineProperties(vz.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 O=document.activeElement;O&&O instanceof Element!==!1||(O=document.body);for(;O.root&&_.SU(O.root).activeElement;)O=_.SU(O.root).activeElement;return O}}});
_.Kj=new vz;var NWI=0,Pe6=0,F7p=null,AZM=[],EF=["wheel","mousewheel","DOMMouseScroll"],OTY;_.V("web_no_lock_on_touchstart_killswitch")&&(EF.push("touchstart"),EF.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;_.$4={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:_.Kj},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var O;return this._focusedChild||_.SU((O=this.hostElement)!=null?O:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var O;return _.iks((O=this.hostElement)!=null?O: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 O;this._observer=_.SU((O=this.hostElement)!=null?O:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var O;_.SU((O=this.hostElement)!=null?O:this).unobserveNodes(this._observer)}this._observer=null;for(var m in this.__rafs)this.__rafs[m]!==null&&cancelAnimationFrame(this.__rafs[m]);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(O){this.fire("iron-overlay-canceled",O,{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 O;((O=this.hostElement)!=null?O:this).style.outline="none";var m;((m=this.hostElement)!=null?m:this).style.display="none"}},
_openedChanged:function(O){if(O){var m;((m=this.hostElement)!=null?m:this).removeAttribute("aria-hidden")}else{var G;((G=this.hostElement)!=null?G: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 O;if(this.withBackdrop&&!((O=this.hostElement)!=null?O:this).hasAttribute("tabindex")){var m;((m=this.hostElement)!=null?m:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var G;((G=this.hostElement)!=null?G: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 O;((O=this.hostElement)!=null?O:this).style.display="none";var m;((m=this.hostElement)!=null?m:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var O,m;((O=this.hostElement)!=null?O:this).style.transition=((m=this.hostElement)!=null?m:this).style.webkitTransition="none";var G,B;((G=this.hostElement)!=null?G:this).style.transform=((B=this.hostElement)!=null?B:this).style.webkitTransform="none";var Q;((Q=this.hostElement)!=null?Q:this).style.display=""},
_finishPositioning:function(){var O;((O=this.hostElement)!=null?O:this).style.display="none";this.scrollTop=this.scrollTop;var m,G;((m=this.hostElement)!=null?m:this).style.transition=((G=this.hostElement)!=null?G:this).style.webkitTransition="";var B,Q;((B=this.hostElement)!=null?B:this).style.transform=((Q=this.hostElement)!=null?Q:this).style.webkitTransform="";var H;((H=this.hostElement)!=null?H:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var O=this._manager.deepActiveElement,m;if(!(m=O===document.body))a:{for(;O;O=O.assignedSlot||O.parentNode||O.host)if(O===this){m=!0;break a}m=!1}m&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(O){this.noCancelOnOutsideClick||this.cancel(O)},
_onCaptureFocus:function(O){if(this.withBackdrop){var m=_.SU(O).path;m.indexOf(this)===-1?(O.stopPropagation(),this._applyFocus()):this._focusedChild=m[0]}},
_onCaptureEsc:function(O){this.noCancelOnEscKey||this.cancel(O)},
_onCaptureTab:function(O){if(this.withBackdrop){this.__ensureFirstLastFocusables();var m=O.shiftKey,G=m?this.__firstFocusableNode:this.__lastFocusableNode;m=m?this.__lastFocusableNode:this.__firstFocusableNode;if(G===m)G=!0;else{var B=this._manager.deepActiveElement;G=B===G||B===this}G&&(O.preventDefault(),this._focusedChild=m,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 O=this._focusableNodes;this.__firstFocusableNode=O[0];this.__lastFocusableNode=O[O.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(O,m){var G=this.__rafs;G[O]!==null&&cancelAnimationFrame(G[O]);G[O]=requestAnimationFrame(function(){G[O]=null;m.call(this)}.bind(this))},
__updateScrollObservers:function(O,m,G){O&&m&&this.__isValidScrollAction(G)?(G==="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),OTY=_._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()):(O=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),O!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(O,1),OTY=_._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(ej)for(var O=this;O;)O.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&O.host&&this.__rootNodes.push(O),O=O.host||O.assignedSlot||O.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(m){m.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(O){O.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(O){return O==="lock"||O==="refit"||O==="cancel"},
__onCaptureScroll:function(O){if(!(this.__isAnimating||_.SU(O).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(O)}},
__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)}};
_.Mc=[$XH,_.Dm,_.$4];_.kZ({_template:function(){if(vpu!==void 0)return vpu;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Hkj===void 0&&(Hkj=document.createElement("template"));var B=Hkj;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return vpu=O},
is:"tp-yt-iron-dropdown",behaviors:[_.ai,_.l8,_.Mc,NRH],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 O=_.SU(this.$.content).getDistributedNodes(),m=0,G=O.length;m<G;m++)if(O[m].nodeType===Node.ELEMENT_NODE)return O[m]},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(),_.$4._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.$4._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.$4._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var O=this.containedElement,m=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),G=0;G<m.length;G++)m[G].node=O;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(O){this._readied&&(O?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var O=this.focusTarget||this.containedElement;O&&this.opened&&!this.noAutoFocus?O.focus():_.$4._applyFocus.apply(this,arguments)}});var tkH;var Wk$;/*

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 Zkp=new _.YL({type:"iconset"});
_.kZ({_template:function(){if(Wk$!==void 0)return Wk$;var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;tkH===void 0&&(tkH=document.createElement("template"));
var B=tkH;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return Wk$=O},
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(O){O=(O||"").split(":");this._iconName=O.pop();this._iconsetName=O.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&&_.SU(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Zkp.byKey(this._iconsetName)){var O=this._iconset.applyIcon(this,this._iconName,this.theme);O&&O.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,_.SU(this.root).appendChild(this._img)}});var zv9;var J8u;_.kZ({_template:function(){if(J8u!==void 0)return J8u;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
var m=O.content,G=m.insertBefore;zv9===void 0&&(zv9=document.createElement("template"));var B=zv9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return J8u=O},
is:"tp-yt-iron-input",behaviors:[_.w2],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(){_.Bz.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.SU(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.SU(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 O=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":O=/[0-9.,e-]/}return O},_bindValueChanged:function(O,m){m&&(O===void 0?m.value=null:O!==m.value&&(this.inputElement.value=O),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:O}))},
_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(O){var m=O.keyCode==19||O.keyCode==20||O.keyCode==45||O.keyCode==46||O.keyCode==144||O.keyCode==145||O.keyCode>32&&O.keyCode<41||O.keyCode>111&&O.keyCode<124;return!(O.keyCode==8||O.keyCode==9||O.keyCode==13||O.keyCode==27)&&!(O.charCode==0&&m)},
_onKeypress:function(O){if(this.allowedPattern||this.inputElement.type==="number"){var m=this._patternRegExp;if(m&&!(O.metaKey||O.ctrlKey||O.altKey)){this._patternAlreadyChecked=!0;var G=String.fromCharCode(O.charCode);this._isPrintable(O)&&!m.test(G)&&(O.preventDefault(),this._announceInvalidCharacter("Invalid character "+G+" not entered."))}}},
_checkPatternValidity:function(){var O=this._patternRegExp;if(!O)return!0;for(var m=0;m<this.inputElement.value.length;m++)if(!O.test(this.inputElement.value[m]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var O=this.inputElement.checkValidity();O&&(this.required&&this.bindValue===""?O=!1:this.hasValidator()&&(O=_.w2.validate.call(this,this.bindValue)));this.invalid=!O;this.fire("iron-input-validate");return O},
_announceInvalidCharacter:function(O){this.fire("iron-announce",{text:O})},
_computeValue:function(O){return O}});var Vk3;var bkm;var np9=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),X$9=np9&&np9[1]>=8;
_.kZ({_template:function(){if(bkm!==void 0)return bkm;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Vk3===void 0&&(Vk3=document.createElement("template"));var B=Vk3;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return bkm=O},
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:[g5I,_.Dm,_.s_9,pX8],_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 _.SU(_.SU(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var O=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,O-this._physicalCount)},set _virtualStart(O){O=this._clamp(O,0,this._maxVirtualStart);this.grid&&(O-=O%this._itemsPerRow);this._virtualStartVal=O},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(O){O%=this._physicalCount;O<0&&(O=this._physicalCount+O);this.grid&&(O-=O%this._itemsPerRow);this._physicalStartVal=O},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(O){this._physicalCountVal=O},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 O=this._firstVisibleIndexVal;if(O==null){var m=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
O=this._iterateItems(function(G,B){m+=this._getPhysicalSizeIncrement(G);if(m>this._scrollPosition)return this.grid?B-B%this._itemsPerRow:B;if(this.grid&&this._virtualCount-1===B)return B-B%this._itemsPerRow})||0}return O},
get lastVisibleIndex(){var O=this._lastVisibleIndexVal;if(O==null){if(this.grid)O=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var m=this._physicalTop+this._scrollOffset;this._iterateItems(function(G,B){m<this._scrollBottom&&(O=B);m+=this._getPhysicalSizeIncrement(G)})}this._lastVisibleIndexVal=O}return O},
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,_.op);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(O){this.style.webkitOverflowScrolling=O===this?"touch":"";this.style.overflowY=O===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.op)},
updateViewportBoundaries:function(){var O=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(O["padding-top"],10);this._isRTL=O.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var O=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),m=O-this._scrollPosition,G=m>=0;this._scrollPosition=O;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(m)>this._physicalSize&&this._physicalSize>0?(m-=this._scrollOffset,G=Math.round(m/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=G,this._physicalStart+=G,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(O=this._getReusables(G),G?(this._physicalTop=O.physicalTop,this._virtualStart+=O.indexes.length,this._physicalStart+=O.indexes.length):(this._virtualStart=this._virtualStart-O.indexes.length,this._physicalStart=this._physicalStart-O.indexes.length),this._update(O.indexes,G?null:O.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),YV))},
_getReusables:function(O){var m=[],G=this._hiddenContentSize*this._ratio,B=this._virtualStart,Q=this._virtualEnd,H=this._physicalCount,M=this._physicalTop+this._scrollOffset;var R=this._physicalBottom+this._scrollOffset;var x=this._scrollPosition,t=this._scrollBottom;if(O){var W=this._physicalStart;R=x-M}else W=this._physicalEnd,R-=t;for(;;){var Z=this._getPhysicalSizeIncrement(W);R-=Z;if(m.length>=H||R<=G)break;if(O){if(Q+m.length+1>=this._virtualCount)break;if(M+Z>=x-this._scrollOffset)break;m.push(W);
M+=Z;W=(W+1)%H}else{if(B-m.length<=0)break;if(M+this._physicalSize-Z<=t)break;m.push(W);M-=Z;W=W===0?H-1:W-1}}return{indexes:m,physicalTop:M-this._scrollOffset}},
_update:function(O,m){if(!(O&&O.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(O);this._updateMetrics(O);if(m)for(;m.length;)O=m.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(O);this._positionItems();this._updateScrollerSize()}},
_createPool:function(O){this._ensureTemplatized();var m,G=Array(O);for(m=0;m<O;m++){var B=this.stamp(null);G[m]=B.root.querySelector("*");this._itemsParent.appendChild(B.root)}return G},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(O){O=this._clamp(this._physicalCount+O,3,this._virtualCount-this._virtualStart);O=this._convertIndexToCompleteRow(O);if(this.grid){var m=O%this._itemsPerRow;m&&O-m<=this._physicalCount&&(O+=this._itemsPerRow);O-=m}O-=this._physicalCount;m=Math.round(this._physicalCount*.5);if(!(O<0)){if(O>0){m=window.performance.now();[].push.apply(this._physicalItems,this._createPool(O));for(var G=0;G<O;G++)this._physicalSizes.push(0);this._physicalCount+=O;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=O);this._update();this._templateCost=(window.performance.now()-m)/O;m=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||m===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,m)),qr3):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,m),YV))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var O=this._getReusables(!0);this._physicalTop=O.physicalTop;this._virtualStart+=O.indexes.length;this._physicalStart+=O.indexes.length;this._update(O.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 O={__key__:!0};O[this.as]=!0;O[this.indexAs]=!0;O[this.selectedAs]=!0;O.tabIndex=!0;this._instanceProps=O;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(O,m){typeof m!=="undefined"&&(this.notifyResize(),_.uU(),O&&this._updateGridMetrics())},
_itemsChanged:function(O){if(O.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,
_.op);else if(O.path==="items.splices"){this._adjustVirtualIndex(O.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(O.value.indexSplices.some(function(G){return G.addedCount>0||G.removed.length>0})){var m=this._getActiveElement();
this.contains(m)&&m.blur()}O=O.value.indexSplices.some(function(G){return G.index+G.addedCount>=this._virtualStart&&G.index<=this._virtualEnd},this);
this._isClientFull()&&!O||this._debounce("_render",this._render,_.op)}else O.path!=="items.length"&&this._forwardItemPath(O.path,O.value)},
_forwardItemPath:function(O,m){O=O.slice(6);var G=O.indexOf(".");G===-1&&(G=O.length);var B,Q=this.modelForElement(this._offscreenFocusedItem),H=parseInt(O.substring(0,G),10);if(B=this._isIndexRendered(H)){var M=this._getPhysicalIndex(H);var R=this.modelForElement(this._physicalItems[M])}else Q&&(R=Q);R&&R[this.indexAs]===H&&(O=O.substring(G+1),O=this.as+(O?"."+O:""),R._setPendingPropertyOrPath(O,m,!1,!0),R._flushProperties&&R._flushProperties(),B&&(this._updateMetrics([M]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(O){O.forEach(function(m){m.removed.forEach(this._removeItem,this);m.index<this._virtualStart&&(m=Math.max(m.addedCount-m.removed.length,m.index-this._virtualStart),this._virtualStart+=m,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=m))},this)},
_removeItem:function(O){this.$.selector.deselect(O);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===O&&this._removeFocusedItem()},
_iterateItems:function(O,m){var G,B;if(arguments.length===2&&m)for(B=0;B<m.length;B++){var Q=m[B];var H=this._computeVidx(Q);if((G=O.call(this,Q,H))!=null)return G}else{Q=this._physicalStart;for(H=this._virtualStart;Q<this._physicalCount;Q++,H++)if((G=O.call(this,Q,H))!=null)return G;for(Q=0;Q<this._physicalStart;Q++,H++)if((G=O.call(this,Q,H))!=null)return G}},
_computeVidx:function(O){return O>=this._physicalStart?this._virtualStart+(O-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+O},
_assignModels:function(O){this._iterateItems(function(m,G){var B=this._physicalItems[m],Q=this.items&&this.items[G];if(Q!=null){var H=this.modelForElement(B);H.__key__=null;this._forwardProperty(H,this.as,Q);this._forwardProperty(H,this.selectedAs,this.$.selector.isSelected(Q));this._forwardProperty(H,this.indexAs,G);this._forwardProperty(H,"tabIndex",this._focusedVirtualIndex===G?0:-1);this._physicalIndexForKey[H.__key__]=m;H._flushProperties&&H._flushProperties(!0);B.removeAttribute("hidden")}else B.setAttribute("hidden",
"")},O)},
_updateMetrics:function(O){_.uU();var m=0,G=0,B=this._physicalAverageCount,Q=this._physicalAverage;this._iterateItems(function(H){G+=this._physicalSizes[H];this._physicalSizes[H]=this._physicalItems[H].offsetHeight;m+=this._physicalSizes[H];this._physicalAverageCount+=this._physicalSizes[H]?1:0},O);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(G=this._itemsPerRow===1?G:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+m-G,this._itemsPerRow=1);this._physicalAverageCount!==B&&(this._physicalAverage=Math.round((Q*B+m)/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 O=this._physicalTop;if(this.grid){var m=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(G,B){var Q=Math.floor(B%this._itemsPerRow*this._itemWidth+m);this._isRTL&&(Q*=-1);this.translate3d(Q+"px",O+"px",0,this._physicalItems[G]);this._shouldRenderNextRow(B)&&(O+=this._rowHeight)})}else this._iterateItems(function(G){this.translate3d(0,O+"px",0,this._physicalItems[G]);
O+=this._physicalSizes[G]})},
_getPhysicalSizeIncrement:function(O){return this.grid?this._computeVidx(O)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[O]},
_shouldRenderNextRow:function(O){return O%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var O=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(O!==0){this._physicalTop=this._physicalTop-O;var m=this._scrollPosition;!X$9&&m>0&&this._resetScrollPosition(m-O)}},
_resetScrollPosition:function(O){this.scrollTarget&&O>=0&&(this._scrollPosition=this._scrollTop=O)},
_updateScrollerSize:function(O){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((O=(O=(O=O||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(O){return this.scrollToIndex(this.items.indexOf(O))},
scrollToIndex:function(O){if(!(typeof O!=="number"||O<0||O>this.items.length-1)&&(_.uU(),this._physicalCount!==0)){O=this._clamp(O,0,this._virtualCount-1);if(!this._isIndexRendered(O)||O>=this._maxVirtualStart)this._virtualStart=this.grid?O-this._itemsPerRow*2:O-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var m=this._physicalStart,G=this._virtualStart,B=0,Q=this._hiddenContentSize;G<O&&
B<=Q;)B+=this._getPhysicalSizeIncrement(m),m=(m+1)%this._physicalCount,G++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+B);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)},_.op)},
selectItem:function(O){return this.selectIndex(this.items.indexOf(O))},
selectIndex:function(O){if(!(O<0||O>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(O)){var m=this.modelForElement(this._physicalItems[this._getPhysicalIndex(O)]);m&&(m[this.selectedAs]=!0);this.updateSizeForIndex(O)}this.$.selector.selectIndex(O)}},
deselectItem:function(O){return this.deselectIndex(this.items.indexOf(O))},
deselectIndex:function(O){O<0||O>=this._virtualCount||(this._isIndexRendered(O)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(O)])[this.selectedAs]=!1,this.updateSizeForIndex(O)),this.$.selector.deselectIndex(O))},
toggleSelectionForItem:function(O){return this.toggleSelectionForIndex(this.items.indexOf(O))},
toggleSelectionForIndex:function(O){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(O):this.$.selector.isSelected(this.items[O]))?this.deselectIndex(O):this.selectIndex(O)},
clearSelection:function(){this._iterateItems(function(O){this.modelForElement(this._physicalItems[O])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(O){(O?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(O){var m=this.modelForElement(O.target);if(m){var G=_.SU(O).path[0];O=this._getActiveElement();var B=this._physicalItems[this._getPhysicalIndex(m[this.indexAs])];if(G.localName!=="input"&&G.localName!=="button"&&G.localName!=="select"){G=m.tabIndex;m.tabIndex=-100;var Q=O?O.tabIndex:-1;m.tabIndex=G;O&&B!==O&&B.contains(O)&&Q!==-100||this.toggleSelectionForItem(m[this.as])}}},
_multiSelectionChanged:function(O){this.clearSelection();this.$.selector.multi=O},
updateSizeForItem:function(O){return this.updateSizeForIndex(this.items.indexOf(O))},
updateSizeForIndex:function(O){if(!this._isIndexRendered(O))return null;this._updateMetrics([this._getPhysicalIndex(O)]);this._positionItems();return null},
_manageFocus:function(){var O=this._focusedVirtualIndex;O>=0&&O<this._virtualCount?this._isIndexRendered(O)?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(O){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(O/this._itemsPerRow)*this._itemsPerRow:O},
_isIndexRendered:function(O){return O>=this._virtualStart&&O<=this._virtualEnd},
_isIndexVisible:function(O){return O>=this.firstVisibleIndex&&O<=this.lastVisibleIndex},
_getPhysicalIndex:function(O){return(this._physicalStart+(O-this._virtualStart))%this._physicalCount},
focusItem:function(O){this._focusPhysicalItem(O)},
_focusPhysicalItem:function(O){if(!(O<0||O>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(O)||this.scrollToIndex(O);var m=this._physicalItems[this._getPhysicalIndex(O)],G=this.modelForElement(m),B;G.tabIndex=-100;m.tabIndex===-100&&(B=m);B||(B=_.SU(m).querySelector('[tabindex="-100"]'));G.tabIndex=0;this._focusedVirtualIndex=O;B&&B.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 O=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var m=this.stamp(null);this._focusBackfillItem=m.root.querySelector("*");this._itemsParent.appendChild(m.root)}this._offscreenFocusedItem=this._physicalItems[O];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[O]=this._focusBackfillItem;this._focusedPhysicalIndex=O;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var O=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),m=this._physicalItems[O];if(m){var G=this.modelForElement(m),B=this.modelForElement(this._offscreenFocusedItem);G[this.as]===B[this.as]?(this._focusBackfillItem=m,G.tabIndex=-1,this._physicalItems[O]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(O){O=this.modelForElement(O.target);var m=this.modelForElement(this._focusedItem),G=this._offscreenFocusedItem!==null,B=this._focusedVirtualIndex;O&&(m===O?this._isIndexVisible(B)||this.scrollToIndex(B):(this._restoreFocusedItem(),m&&(m.tabIndex=-1),O.tabIndex=0,this._focusedVirtualIndex=B=O[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(B),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],G&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(O){switch(O.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&O.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&&O.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(O)}},
_clamp:function(O,m,G){return Math.min(G,Math.max(m,O))},
_debounce:function(O,m,G){this._debouncers=this._debouncers||{};this._debouncers[O]=_.Xu(this._debouncers[O],G,m.bind(this));_.fU(this._debouncers[O])},
_forwardProperty:function(O,m,G){O._setPendingProperty(m,G)},
_forwardHostPropV2:function(O,m){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(G){G&&this.modelForElement(G).forwardHostProp(O,m)},this)},
_notifyInstancePropV2:function(O,m,G){Kkz(this.as,m)&&(O=O[this.indexAs],m==this.as&&(this.items[O]=G),this.notifyPath(zX(this.as,"items."+O,m),G))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(O,m,G){m.indexOf(this.as+".")===0&&this.notifyPath("items."+O.__key__+"."+m.slice(this.as.length+1),G)},
_forwardParentPath:function(O,m){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(G){G&&this.modelForElement(G).notifyPath(O,m)},this)},
_forwardParentProp:function(O,m){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(G){G&&(this.modelForElement(G)[O]=m)},this)},
_getActiveElement:function(){var O=this._itemsParent.node.domHost;return _.SU(O?O.root:document).activeElement},
_scrollTargetChanged:function(O,m){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(m)if(O==="document")this.scrollTarget=this._doc;else if(typeof O==="string"){var G,B;this.scrollTarget=(m=(B=(G=this.domHost)==null?void 0:G.polymerController)!=null?B:this.domHost)&&m.$?m.$[O]:_.SU(this.ownerDocument).querySelector("#"+O)}else this._isValidScrollTarget()&&(this._oldScrollTarget=O,this._toggleScrollListener(this._shouldHaveListener,O))}});var fom;var hv8;var TJp=function(O,m,G,B){O-=G;m-=B;return Math.sqrt(O*O+m*m)},gp3=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
m$5.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var GBY=function(O){O.maxRadius=0;O.mouseDownStart=0;O.mouseUpStart=0;O.xStart=0;O.yStart=0;O.xEnd=0;O.yEnd=0;O.containerMetrics=new m$5(O.element)};
BkS.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var O=gp3()-this.mouseDownStart;this.mouseUpStart&&(O-=this.mouseUpElapsed);return O},get mouseUpElapsed(){return this.mouseUpStart?gp3()-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 O=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(O*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-O/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var O=this.radius/(this.containerMetrics.size/2);var m=this.xNow-this.containerMetrics.width/2;var G=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+m+"px, "+G+"px)";this.waveContainer.style.transform="translate3d("+m+"px, "+G+"px, 0)";this.wave.style.webkitTransform="scale("+O+","+O+")";this.wave.style.transform="scale3d("+O+","+O+",1)"},
downAction:function(O){var m=this.containerMetrics.width/2,G=this.containerMetrics.height/2;GBY(this);this.mouseDownStart=gp3();this.center?(this.xStart=m,this.yStart=G):(this.xStart=O?O.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=O?O.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=m,this.yEnd=G);O=this.containerMetrics;m=this.xStart;G=this.yStart;this.maxRadius=Math.max(TJp(m,G,0,0),TJp(m,G,
O.width,0),TJp(m,G,0,O.height),TJp(m,G,O.width,O.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=gp3())},
remove:function(){_.SU(_.SU(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.kZ({_template:function(){if(hv8!==void 0)return hv8;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;fom===void 0&&(fom=document.createElement("template"));var B=fom;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return hv8=O},
is:"tp-yt-paper-ripple",behaviors:[_.l8],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(){_.SU(this).parentNode.nodeType==11?this.keyEventTarget=_.SU(this).getOwnerRoot().host:this.keyEventTarget=_.SU(this).parentNode;var O=this.keyEventTarget;this.listen(O,"up","uiUpAction");this.listen(O,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(O){O.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var O=0;O<this.ripples.length;++O)if(!this.ripples[O].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(O){this.noink||this.downAction(O)},
downAction:function(O){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(O),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(O){this.noink||this.upAction(O)},
upAction:function(O){this.holdDown||(this.ripples.forEach(function(m){m.upAction(O)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var O=0;O<this.ripples.length;++O){var m=this.ripples[O];m.isOpacityFullyDecayed&&!m.isRestingAtMaxRadius&&this.removeRipple(m)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var O=new BkS(this);_.SU(this.$.waves).appendChild(O.waveContainer);this.$.background.style.backgroundColor=O.color;this.ripples.push(O);this._setAnimating(!0);return O},
removeRipple:function(O){var m=this.ripples.indexOf(O);m<0||(this.ripples.splice(m,1),O.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var O;for(O=0;O<this.ripples.length;++O){var m=this.ripples[O];m.draw();this.$.background.style.opacity=m.outerOpacity;m.isOpacityFullyDecayed&&!m.isRestingAtMaxRadius&&this.removeRipple(m)}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(O,m){m!==void 0&&(O?this.downAction():this.upAction())}});var rT={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(O){kL._downHandler.call(this,O);this.pressed&&this.ensureRipple(O)},
ensureRipple:function(O){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var m=this._rippleContainer||this.root;m&&_.SU(m).appendChild(this._ripple);if(O){m=_.SU(this._rippleContainer||this);var G=_.SU(O).rootTarget;m.deepContains(G)&&this._ripple.uiDownAction(O)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(O){this.hasRipple()&&(this._ripple.noink=O)}};var uY2={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 O=1;this.disabled?O=0:this.active||this.pressed?O=4:this.receivedFocusFromKeyboard&&(O=3);this._setElevation(O)},
_computeKeyboardClass:function(O){this.toggleClass("keyboard-focus",O)},
_spaceKeyDownHandler:function(O){kL._spaceKeyDownHandler.call(this,O);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(O){kL._spaceKeyUpHandler.call(this,O);this.hasRipple()&&this._ripple.uiUpAction()}},j62=[oi2,
_.ai,rT,uY2];_.Iop={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(O){O&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=O)},
_createRipple:function(){var O=rT._createRipple();O.id="ink";O.setAttribute("center","");O.classList.add("circle");return O}};
_.p$o=[oi2,_.ai,rT,_.Iop];_.SQ_=[_.p$o,kM_,{_checkedChanged:function(){avs._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){rT._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var Ep_;var Lkj;var CWm=function(){};
_.v=CWm.prototype;_.v.registered=function(){};
_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._tapHandler=function(){};
_.v._focusChanged=function(){};
_.v._detectKeyboardFocus=function(){};
_.v._userActivate=function(){};
_.v._upHandler=function(){};
_.v._asyncClick=function(){};
_.v._pressedChanged=function(){};
_.v._ariaActiveAttributeChanged=function(){};
_.v._activeChanged=function(){};
_.v._controlStateChanged=function(){};
_.v._changedButtonState=function(){};
_.v._focusBlurHandler=function(){};
_.v._disabledChanged=function(){};
_.v._changedControlState=function(){};
_.v._buttonStateChanged=function(){};
_.v._downHandler=function(){};
_.v.ensureRipple=function(){};
_.v.getRipple=function(){};
_.v.hasRipple=function(){};
_.v._createRipple=function(){};
_.v._noinkChanged=function(){};
_.v._computeKeyboardClass=function(){};
_.v._spaceKeyDownHandler=function(){};
_.v._spaceKeyUpHandler=function(){};
_.v._setPressed=function(){};
_.v._setPointerDown=function(){};
_.v._setReceivedFocusFromKeyboard=function(){};
_.v._setFocused=function(){};
_.v._setElevation=function(){};
CWm=_.kZ({_template:function(){if(Lkj!==void 0)return Lkj;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
var m=O.content,G=m.insertBefore;Ep_===void 0&&(Ep_=document.createElement("template"));var B=Ep_;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return Lkj=O},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[j62],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?uY2._calculateElevation.apply(this):this._setElevation(0)}});var opo;var lou;var aoo={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(O){_.V("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(O)},
_onDialogClickWrapped:function(O){_.V("dialog_behavior_no_tap_killswitch")||this._onDialogClick(O)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(O,m){m&&(O?(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(O){if(O){var m;((m=this.hostElement)!=null?m:this).setAttribute("aria-modal","true")}else{var G;((G=this.hostElement)!=null?G:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(O){this.closingReason=this.closingReason||{};this.closingReason.confirmed=O},
_onDialogClick:function(O){for(var m=_.SU(O).path,G=0,B,Q=m.indexOf((B=this.hostElement)!=null?B:this);G<Q;G++)if(B=m[G],B.hasAttribute&&(B.hasAttribute("dialog-dismiss")||B.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(B.hasAttribute("dialog-confirm"));this.close();O.stopPropagation();break}}},kK2=[_.Mc,
aoo];var y83=document.createElement("template");_.f(y83,'<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(y83.content);var c8U=document.createElement("template");_.f(c8U,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(c8U.content);_.kZ({_template:function(){if(lou!==void 0)return lou;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
var m=O.content,G=m.insertBefore;opo===void 0&&(opo=document.createElement("template"));var B=opo;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return lou=O},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[kK2,NRH],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 YQu;var dX_;_.kZ({_template:function(){if(dX_!==void 0)return dX_;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;YQu===void 0&&(YQu=document.createElement("template"));var B=YQu;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return dX_=O},
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 O,m,G;if(((O=window.ShadyDOM)==null?void 0:O.noPatch)!==!0&&((m=window.ShadyDOM)==null?void 0:m.noPatch)!=="on-demand"||((G=this.__shady_parentNode)==null?void 0:G.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(aoo)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var w$p=_.FY(['<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>']),ev$=_.osm(w$p);ev$.setAttribute("style","display: none;");document.head.appendChild(ev$.content);var DX9;var s69;var NJm;var PWH;_.kZ({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[so],configure:function(O){var m=O.node,G=m.getBoundingClientRect().height;return this._effect=new KeyframeEffect(m,[{height:G/2+"px"},{height:G+"px"}],this.timingFromConfig(O))}});
_.kZ({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[so],configure:function(O){var m=O.node,G=m.getBoundingClientRect().width;return this._effect=new KeyframeEffect(m,[{width:G/2+"px"},{width:G+"px"}],this.timingFromConfig(O))}});
_.kZ({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[so],configure:function(O){var m=O.node,G=m.getBoundingClientRect().width;return this._effect=new KeyframeEffect(m,[{width:G+"px"},{width:G-G/20+"px"}],this.timingFromConfig(O))}});
_.kZ({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[so],configure:function(O){var m=O.node,G=m.getBoundingClientRect().height;this.setPrefixedProperty(m,"transformOrigin","0 0");return this._effect=new KeyframeEffect(m,[{height:G+"px",transform:"translateY(0)"},{height:G/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(O))}});var RC={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},Fku=function(){};
_.v=Fku.prototype;_.v.registered=function(){};
_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._focusBlurHandler=function(){};
_.v._changedControlState=function(){};
_.v._setFocused=function(){};
Fku=_.kZ({_template:function(){if(PWH!==void 0)return PWH;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;NJm===void 0&&(NJm=document.createElement("template"));var B=NJm;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return PWH=O},
is:"tp-yt-paper-menu-button",behaviors:[_.l8,_.ai],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:RC.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:RC.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:RC.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 O=_.SU(this.$.content).getDistributedNodes(),m=0,G=O.length;m<G;m++)if(O[m].nodeType===Node.ELEMENT_NODE)return O[m]},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(O,m){O?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):m!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(O){_.ai._disabledChanged.apply(this,arguments);O&&this.opened&&this.close()},
__onIronOverlayCanceled:function(O){var m=this.$.trigger;_.SU(O.detail).path.indexOf(m)>-1&&O.preventDefault()}});
Object.keys(RC).forEach(function(O){Fku[O]=RC[O]});var A8o=_.yx.IronButtonState,Oq2=(0,_.lU)(HTMLElement);
_.kZ({_template:function(){if(s69!==void 0)return s69;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;DX9===void 0&&(DX9=document.createElement("template"));var B=DX9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return s69=O},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[A8o,_.ai,rT,_.cK,_.w2],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(O){var m=(0,_.X2)(this);m.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:O});m.shadowRoot.appendChild(O);return Oq2.prototype._attachDom.call(this,O)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var O=this.contentElement;O&&O.selectedItem&&this._setSelectedItem(O.selectedItem)},
get contentElement(){for(var O=_.SU(this.$.content).getDistributedNodes(),m=0,G=O.length;m<G;m++)if(O[m].nodeType===Node.ELEMENT_NODE)return O[m]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(O){this._setSelectedItem(O.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(O){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O)===this&&this.open()},
_selectedItemChanged:function(O){var m="";O?m=O.label||O.getAttribute("label")||O.textContent.trim():m="";this.value=m;this._setSelectedItemLabel(m)},
_computeMenuVerticalOffset:function(O,m){return m?m:O?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var O=this.opened?"true":"false",m=this.contentElement;m&&m.setAttribute("aria-expanded",O)},
_computeLabelClass:function(O,m,G){var B="label";if(O)G&&(B+=" label-is-hidden");else if(G||m)B+=" label-is-floating";return B},
_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 mQU;var Gi_;_.kZ({is:"tp-yt-paper-icon-button",_template:function(){if(Gi_!==void 0)return Gi_;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;mQU===void 0&&(mQU=document.createElement("template"));var B=mQU;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return Gi_=O},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.p$o],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(O,m){var G=this.getAttribute("aria-label");G&&m!=G||this.setAttribute("aria-label",O)}});var B7p;var QE3;_.iq=[oi2,_.ai,{hostAttributes:{role:"option",tabindex:"0"}}];_.kZ({_template:function(){if(QE3!==void 0)return QE3;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;B7p===void 0&&(B7p=document.createElement("template"));var B=B7p;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return QE3=O},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.iq]});var HqC;var vF_;var K08={attached:function(){this.fire("addon-attached")},
update:function(){}};var $Q2=1,MZH=1,rwj=1,RTC=[_.ai,_.l8,{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();!Wv&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(O,m){O?O=O+" "+m:O=m;return O},
_onAddonAttached:function(O){O=_.SU(O).rootTarget;if(O.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,O.id);else{var m="paper-input-add-on-"+MZH++;O.id=m;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,m)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(O){_.ai._focusBlurHandler.call(this,O);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var O=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",O);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(O){try{var m=this.inputElement.selectionStart;this.value=O;this.inputElement.selectionStart=m;this.inputElement.selectionEnd=m}catch(G){this.value=O}},
_computeAlwaysFloatLabel:function(O,m){return m||O},
_updateAriaLabelledBy:function(){var O=_.SU(this.root).querySelector("label");if(O){if(O.id)var m=O.id;else m="paper-input-label-"+$Q2++,O.id=m;this._ariaLabelledBy=m}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+rwj++)},
_onChange:function(O){this.shadowRoot&&this.fire(O.type,{sourceEvent:O},{node:this,bubbles:O.bubbles,cancelable:O.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var O=document.activeElement;O instanceof HTMLElement&&O!==document.body&&O!==document.documentElement||this._focusableElement.focus()}}}];var iq$;var xQ3;_.kZ({_template:function(){if(xQ3!==void 0)return xQ3;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;iq$===void 0&&(iq$=document.createElement("template"));var B=iq$;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return xQ3=O},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[K08],properties:{_charCounterStr:{type:String,value:"0"}},update:function(O){if(O.inputElement){O.value=O.value||"";var m=O.value.toString().length.toString();O.inputElement.hasAttribute("maxlength")&&(m+="/"+O.inputElement.getAttribute("maxlength"));this._charCounterStr=m}}});var qg3;var UQe;_.kZ({_template:function(){if(UQe!==void 0)return UQe;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;qg3===void 0&&(qg3=document.createElement("template"));var B=qg3;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return UQe=O},
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 qD(this.attrForValue)},get _inputElement(){return _.SU(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(O){this._addons||(this._addons=[]);O=O.target;this._addons.indexOf(O)===-1&&(this._addons.push(O),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(O){this._handleValueAndAutoValidate(O.target)},
_onValueChanged:function(O){var m=O.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,m.value===void 0||m.value===""))return;this._handleValueAndAutoValidate(O.target)},
_handleValue:function(O){var m=this._inputElementValue;m||m===0||O.type==="number"&&!O.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:O,value:m,invalid:this.invalid})},
_handleValueAndAutoValidate:function(O){this.autoValidate&&O&&(this.invalid=!(O.validate?O.validate(this._inputElementValue):O.checkValidity()));this._handleValue(O)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(O){if(this._addons)for(var m,G=0;m=this._addons[G];G++)m.update(O)},
_computeInputContentClass:function(O,m,G,B,Q){var H="input-content";O?(Q&&(H+=" label-is-hidden"),B&&!this.noUnfloatedLabelError&&(H+=" is-invalid")):(O=this.querySelector("label"),m||Q?(H+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",B?H+=" is-invalid":G&&(H+=" label-is-highlighted")):(O&&(this.$.labelAndInputContainer.style.position="relative"),B&&!this.noUnfloatedLabelError&&(H+=" is-invalid")));G&&(H+=" focused");return H},
_computeUnderlineClass:function(O,m){var G="underline";m?G+=" is-invalid":O&&(G+=" is-highlighted");return G},
_computeAddOnContentClass:function(O,m){var G="add-on-content";m?G+=" is-invalid":O&&(G+=" is-highlighted");return G}});var tZ_;var W0H;_.kZ({_template:function(){if(W0H!==void 0)return W0H;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;tZ_===void 0&&(tZ_=document.createElement("template"));var B=tZ_;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return W0H=O},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[K08],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(O){this._setInvalid(O.invalid)}});_.kZ({is:"tp-yt-paper-input",_template:function(){if(vF_!==void 0)return vF_;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;HqC===void 0&&(HqC=document.createElement("template"));var B=HqC;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return vF_=O},
behaviors:[RTC,_.cK],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 ZqU;var zTu;_.kZ({_template:function(){if(zTu!==void 0)return zTu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=
O.content,G=m.insertBefore;ZqU===void 0&&(ZqU=document.createElement("template"));var B=ZqU;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return zTu=O},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.iq]});var Jwe;var VZm;_.kZ({_template:function(){if(VZm!==void 0)return VZm;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
var m=O.content,G=m.insertBefore;Jwe===void 0&&(Jwe=document.createElement("template"));var B=Jwe;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return VZm=O},
is:"tp-yt-paper-item-body"});var bqo;var nFU;var XpC=function(){};
_.v=XpC.prototype;_.v.indexOf=function(){};
_.v.selectPrevious=function(){};
_.v.selectNext=function(){};
_.v.selectIndex=function(){};
_.v.forceSynchronousItemUpdate=function(){};
_.v._checkFallback=function(){};
_.v._addListener=function(){};
_.v._removeListener=function(){};
_.v._activateEventChanged=function(){};
_.v._updateItems=function(){};
_.v._selectSelected=function(){};
_.v._filterItem=function(){};
_.v._valueToItem=function(){};
_.v._valueToIndex=function(){};
_.v._indexToValue=function(){};
_.v._valueForItem=function(){};
_.v._observeItems=function(){};
_.v._itemActivate=function(){};
_.v.multiChanged=function(){};
_.v._updateAttrForSelected=function(){};
_.v._updateSelected=function(){};
_.v._selectMulti=function(){};
_.v._selectionChange=function(){};
_.v._toggleSelected=function(){};
_.v._valuesToItems=function(){};
_.v.registered=function(){};
_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v.select=function(){};
_.v._resetTabindices=function(){};
_.v._updateMultiselectable=function(){};
_.v._focusWithKeyboardEvent=function(){};
_.v._clearSearchText=function(){};
_.v._focusPrevious=function(){};
_.v._focusNext=function(){};
_.v._applySelection=function(){};
_.v._focusedItemChanged=function(){};
_.v._onIronItemsChanged=function(){};
_.v._onShiftTabDown=function(){};
_.v._onFocus=function(){};
_.v._onUpKey=function(){};
_.v._onDownKey=function(){};
_.v._onEscKey=function(){};
_.v._onKeydown=function(){};
_.v._activateHandler=function(){};
_.v._disabledChanged=function(){};
_.v._setSelectedItem=function(){};
_.v._setItems=function(){};
_.v._setSelectedItems=function(){};
_.v._setFocusedItem=function(){};
XpC=_.kZ({_template:function(){if(nFU!==void 0)return nFU;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
var m=O.content,G=m.insertBefore;bqo===void 0&&(bqo=document.createElement("template"));var B=bqo;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return nFU=O},
is:"tp-yt-paper-listbox",behaviors:[d19],hostAttributes:{role:"listbox"}});var fMH;var hTU;var T7p={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(O,m){return[O||m?"active":"",m?"cooldown":""].join(" ")},
__activeChanged:function(O,m){this.__setAriaHidden(!O);this.__coolingDown=!O&&m},
__altChanged:function(O){this.setAttribute("aria-label",O||"loading")},
__setAriaHidden:function(O){O?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.kZ({_template:function(){if(hTU!==void 0)return hTU;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;fMH===void 0&&(fMH=document.createElement("template"));var B=fMH;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return hTU=O},
is:"tp-yt-paper-spinner",behaviors:[T7p]});var gFH;var uS$;_.kZ({_template:function(){if(uS$!==void 0)return uS$;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;gFH===void 0&&(gFH=document.createElement("template"));var B=gFH;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return uS$=O},
is:"tp-yt-paper-spinner-lite",behaviors:[T7p]});var jE$;var IM9;_.kZ({_template:function(){if(IM9!==void 0)return IM9;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;jE$===void 0&&(jE$=document.createElement("template"));var B=jE$;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return IM9=O},
is:"tp-yt-paper-tab",behaviors:[_.ai,_.yx.IronButtonState,rT],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 O=_.SU(this).parentNode;return!!O&&!!O.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(O){if(this.link){var m=this.queryEffectiveChildren("a");m&&O.target!==m&&m.click()}}});var ppU;var Sg9;var EFp=_.FY(['<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>']),L0m=_.osm(EFp);document.head.appendChild(L0m.content);_.kZ({_template:function(){if(Sg9!==void 0)return Sg9;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;ppU===void 0&&(ppU=document.createElement("template"));var B=ppU;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return Sg9=O},
is:"tp-yt-paper-tabs",behaviors:[_.Dm,_.eXs],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(O){_.SU(this).querySelectorAll("tp-yt-paper-tab").forEach(O?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(O){O.setAttribute("noink","")},
_removeNoinkAttribute:function(O){O.removeAttribute("noink")},
_computeScrollButtonClass:function(O,m,G,B){return!m||G?"hidden":O?B?"hidden":"not-visible":""},
_computeTabsContentClass:function(O,m){var G="tabs-content";O&&(G+=" scrollable");if(!O||m)G+=" fit-container";return G},
_computeSelectionBarClass:function(O,m){var G="selection-bar";O?G+=" hidden":m&&(G+=" align-bottom");return G},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(O){return""+O},
_onIronSelect:function(O){this._tabChanged(O.detail.item,this._previousTab);this._previousTab=O.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();_.eL._activateHandler.apply(this,arguments)},
_scheduleActivation:function(O,m){this._pendingActivationItem=O;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,m)},
_delayedActivationHandler:function(){var O=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;O.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(O){O.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(O,m){this.scrollable&&this._affectScroll(m&&-m.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(O){this.$.tabsContainer.scrollLeft+=O;O=this.$.tabsContainer.scrollLeft;this._leftHidden=O===0||this.hideScrollButtons;this._rightHidden=O===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(O,m){if(O){var G=this.$.tabsContent.getBoundingClientRect(),B=G.width,Q=O.getBoundingClientRect();G=Q.left-G.left;this._pos={width:this._calcPercent(Q.width,B),left:this._calcPercent(G,B)};if(this.noSlide||m==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var H=m.getBoundingClientRect();m=this.items.indexOf(m);O=this.items.indexOf(O);this.$.selectionBar.classList.add("expand");
O=m<O;this._isRTL&&(O=!O);O?this._positionBar(this._calcPercent(Q.left+Q.width-H.left,B)-5,this._left):this._positionBar(this._calcPercent(H.left+H.width-Q.left,B)-5,this._calcPercent(G,B)+5);this.scrollable&&this._scrollToSelectedIfNeeded(Q.width,G)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(O,m){m-=this.$.tabsContainer.scrollLeft;m<0?this.$.tabsContainer.scrollLeft+=m:(m+=O-this.$.tabsContainer.offsetWidth,m>0&&(this.$.tabsContainer.scrollLeft+=m))},
_calcPercent:function(O,m){return 100*O/m},
_positionBar:function(O,m){O=O||0;m=m||0;this._width=O;this._left=m;this.transform("translateX("+m+"%) scaleX("+O/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var O=this.$.selectionBar.classList;O.contains("expand")?(O.remove("expand"),O.add("contract"),this._positionBar(this._pos.width,this._pos.left)):O.contains("contract")&&O.remove("contract")}});var Cg$;var oFs;_.kZ({_template:function(){if(oFs!==void 0)return oFs;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Cg$===void 0&&(Cg$=document.createElement("template"));var B=Cg$;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return oFs=O},
is:"tp-yt-paper-textarea",behaviors:[RTC,_.cK],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(O){this.$.input.textarea.selectionStart=O},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(O){this.$.input.textarea.selectionEnd=O},_ariaLabelledByChanged:function(O){this._focusableElement.setAttribute("aria-labelledby",O)},
_ariaDescribedByChanged:function(O){this._focusableElement.setAttribute("aria-describedby",O)},
get _focusableElement(){return this.inputElement.textarea}});var lMo;var aMo;/*

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 ki3=function(){};
_.v=ki3.prototype;_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._tapHandler=function(){};
_.v._focusChanged=function(){};
_.v._detectKeyboardFocus=function(){};
_.v._userActivate=function(){};
_.v._upHandler=function(){};
_.v._spaceKeyDownHandler=function(){};
_.v._spaceKeyUpHandler=function(){};
_.v._asyncClick=function(){};
_.v._pressedChanged=function(){};
_.v._ariaActiveAttributeChanged=function(){};
_.v._activeChanged=function(){};
_.v._controlStateChanged=function(){};
_.v._changedButtonState=function(){};
_.v._focusBlurHandler=function(){};
_.v._disabledChanged=function(){};
_.v._changedControlState=function(){};
_.v._downHandler=function(){};
_.v.ensureRipple=function(){};
_.v.getRipple=function(){};
_.v.hasRipple=function(){};
_.v._noinkChanged=function(){};
_.v._focusedChanged=function(){};
_.v.registered=function(){};
_.v._invalidChanged=function(){};
_.v.hasValidator=function(){};
_.v.validate=function(){};
_.v._getValidity=function(){};
_.v._requiredChanged=function(){};
_.v._valueChanged=function(){};
_.v._checkedChanged=function(){};
_.v._buttonStateChanged=function(){};
_.v._setPressed=function(){};
_.v._setPointerDown=function(){};
_.v._setReceivedFocusFromKeyboard=function(){};
_.v._setFocused=function(){};
ki3=_.kZ({is:"tp-yt-paper-toggle-button",_template:function(){if(aMo!==void 0)return aMo;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;lMo===void 0&&(lMo=document.createElement("template"));var B=lMo;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return aMo=O},
behaviors:[_.SQ_],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");_.QA(this,function(){_.kV(this,"pan-y")})},
_ontrack:function(O){O=O.detail;O.state==="start"?this._trackStart(O):O.state==="track"?this._trackMove(O):O.state==="end"&&this._trackEnd(O)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(O){O=O.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+O:O)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+O:O));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 O=rT._createRipple();O.id="ink";O.setAttribute("recenters","");O.classList.add("circle","toggle-ink");return O}});var ywU;var cws;_.kZ({_template:function(){if(cws!==void 0)return cws;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;ywU===void 0&&(ywU=document.createElement("template"));var B=ywU;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return cws=O},
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 O=_.SU(this).parentNode,m=_.SU(this).getOwnerRoot(),G;this.for?G=_.SU(m).querySelector("#"+this.for):G=O.nodeType==Node.DOCUMENT_FRAGMENT_NODE?m.host:O;return G},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(O){O==="entry"?this.show():O==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.SU(this).textContent.trim()===""){for(var O=!0,m=_.SU(this).getEffectiveChildNodes(),G=0;G<m.length;G++)if(m[G].textContent.trim()!==""){O=!1;break}if(O)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 O=this.offset;this.marginTop!=14&&this.offset==14&&(O=this.marginTop);var m=this.offsetParent.getBoundingClientRect(),G=this._target.getBoundingClientRect(),B=this.getBoundingClientRect(),Q=(G.width-B.width)/2,H=(G.height-B.height)/2,M=G.left-m.left,R=G.top-m.top;switch(this.position){case "top":var x=M+Q;var t=R-B.height-O;break;case "bottom":x=M+Q;t=R+G.height+O;break;case "left":x=M-B.width-O;t=R+H;break;case "right":x=M+G.width+
O,t=R+H}this.fitToVisibleBounds?(m.left+x+B.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,x)+"px",this.style.right="auto"),m.top+t+B.height>window.innerHeight?(this.style.bottom=m.height+"px",this.style.top="auto"):(this.style.top=Math.max(-m.top,t)+"px",this.style.bottom="auto")):(this.style.left=x+"px",this.style.top=t+"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(O){O!==500&&this.updateStyles({"--paper-tooltip-delay-in":O+"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(O){if(O==="entry"&&this.animationEntry!=="")return this.animationEntry;if(O==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[O]&&typeof this.animationConfig[O][0].name==="string"){if(this.animationConfig[O][0].timing&&this.animationConfig[O][0].timing.delay&&this.animationConfig[O][0].timing.delay!==0){var m=this.animationConfig[O][0].timing.delay;O==="entry"?this.updateStyles({"--paper-tooltip-delay-in":m+"ms"}):O==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":m+
"ms"})}return this.animationConfig[O][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 Ygu=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Ygu,_.MP);var dQs=_.zc(Ygu,[0,_.$7]);var x4=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(x4,_.MP);var wpH=[3,4],eTC=[5,6];var DQ_=[0,wpH,eTC,_.il,-1,_.K4,_.xN,-1,zjp,VNM];var sEs=_.zc(x4,DQ_),N7U=_.JL(DQ_);var Pg2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Pg2,_.MP);var F0_=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(F0_,_.MP);var Awo=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Awo,_.MP);var O4j=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(O4j,_.MP);var m0_=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(m0_,_.MP);var qc=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(qc,_.MP);qc.prototype.getSource=function(){return _.Lq(this,1)};
qc.prototype.getMessage=function(){return _.Eg(this,4)};
qc.prototype.getData=function(){return _.RO(this,m0_,8)};var GDp=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(GDp,_.MP);var Ua=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Ua,_.MP);var tf=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(tf,_.MP);var Wz=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Wz,_.MP);Wz.prototype.getUrl=function(){return _.Eg(this,1)};
Wz.prototype.setUrl=function(O){return _.SS(this,1,O)};
Wz.prototype.hasUrl=function(){return _.by(_.bg(this,1))!=null};var Bs$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Bs$,_.MP);var QDU=[3];var H4$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(H4$,_.MP);var Zs=function(O){var m=new H4$;return _.xG(m,2,O)};
H4$.prototype.getLanguage=function(){return oE(this,4,z0)};
var v7o=function(O){var m=Zs(1);return _.g5(m,6,z0,O)},z0=[3,
4,5,6];var Kg2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Kg2,_.MP);var Jf=function(O){var m=new Kg2;return _.xG(m,1,O)},VC=function(O,m){return _.g5(O,2,$0p,m)},$0p=[2,
3,4,5];var MGU=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(MGU,_.MP);var bq=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(bq,_.MP);var rRm=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(rRm,_.MP);var RVU=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(RVU,_.MP);var i4o=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(i4o,_.MP);var x0j=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(x0j,_.MP);var qbj=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(qbj,_.MP);var nj=function(O){return _.RO(O,tf,5)};var U0s=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(U0s,_.MP);U0s.prototype.getValue=function(){return pq(this,1)};var tG$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(tG$,_.MP);var X_=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(X_,_.MP);X_.prototype.getMetadata=function(){return _.lg(this,i4o,7,fj)};
X_.prototype.hasMetadata=function(){return _.XS(this,i4o,7,fj)};
var Wg9=_.o0z(X_),fj=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var hf=function(O){this.JSC$12026_name_=O;this.files_=[];this.directories_=[];this.directoryMap_={}};
hf.prototype.getName=function(){return this.JSC$12026_name_};var gT=function(O,m){this.callback_=m;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new hf("");Z42(this,O,this.rootDirectory_);T0(this)},Z42=function(O,m,G){for(var B=0;B<m.length;B++){var Q=m[B];
Q.isFile?(O.fileOps_++,Q.file((0,_.pd)(O.handleFileSuccess_,O,G),(0,_.pd)(O.handleFileError_,O))):O.unscannedDirectories_.push(new zVe(Q,G))}},T0=function(O){if(O.unscannedDirectories_.length>0&&O.directoryOps_<5&&!O.hasError_){O.directoryOps_++;
var m=O.unscannedDirectories_.shift(),G=m.entry,B=new hf(G.name);m=m.parent;m.directoryMap_[B.getName()]=B;m.directories_.push(B);G=G.createReader();G.readEntries((0,_.pd)(O.handleDirectorySuccess_,O,G,B),(0,_.pd)(O.handleDirectoryError_,O))}O.directoryOps_!=0||O.fileOps_!=0||O.unscannedDirectories_.length!=0&&!O.hasError_||O.callback_(O.rootDirectory_.files_,O.rootDirectory_.directories_,O.hasError_)};
gT.prototype.handleDirectorySuccess_=function(O,m,G){Z42(this,G,m);G.length==0?(this.directoryOps_--,T0(this)):O.readEntries((0,_.pd)(this.handleDirectorySuccess_,this,O,m),(0,_.pd)(this.handleDirectoryError_,this))};
gT.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;T0(this)};
gT.prototype.handleFileSuccess_=function(O,m){O.files_.push(m);this.fileOps_--;T0(this)};
gT.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;T0(this)};
var zVe=function(O,m){this.entry=O;this.parent=m};var uq=function(O){_.Ly.call(this);_.Cm(O,"drop",this.onObjectsDropped_,!1,this);_.Cm(O,"dragenter",this.onFilesDragged_,!1,this);_.Cm(O,"dragover",this.onFilesDragged_,!1,this);_.Cm(O,"dragleave",this.onDragLeave_,!1,this);_.Cm(O,"dragend",this.onDragLeave_,!1,this)};
_.MQ(uq,_.Ly);var JRH=function(O,m){_.jB.call(this,"f");this.files=O;this.directories=m};
_.MQ(JRH,_.jB);var VGC=function(){_.jB.call(this,"h")};
_.MQ(VGC,_.jB);var b4$=function(){_.jB.call(this,"i")};
_.MQ(b4$,_.jB);var n7U=function(){_.jB.call(this,"g")};
_.MQ(n7U,_.jB);uq.prototype.onObjectsDropped_=function(O){var m=this;O.preventDefault();var G=O.event_.dataTransfer;if((O=G&&G.items)&&O.length>0&&O[0].webkitGetAsEntry){G=[];for(var B=[],Q=0;Q<O.length;Q++){var H=O[Q].webkitGetAsEntry();H?G.push(H):B.push(O[Q])}new gT(G,function(M,R,x){x?m.dispatchEvent(new n7U("Error occurred while reading from the file system.")):m.dispatchEvent(new JRH(M,R,B))})}else(O=G&&G.files)&&this.dispatchEvent(new JRH(Array.from(O),[]))};
uq.prototype.onFilesDragged_=function(O){O.type==="dragenter"&&this.dispatchEvent(new VGC);O.preventDefault()};
uq.prototype.onDragLeave_=function(){this.dispatchEvent(new b4$)};var X4s=function(O,m){this.JSC$12049_name_=O;this.inputElement_=m};
X4s.prototype.getName=function(){return this.JSC$12049_name_};
X4s.prototype.getInputElement=function(){return this.inputElement_};var jP=function(O,m,G){m=m===void 0?"single_file":m;G=G===void 0?[]:G;_.Ly.call(this);this.overlayTarget_=O;this.parentOverlay_=O!=null?O.parentNode:_.fd("scotty-overlay-parent");this.selectorType_=m;this.acceptTypes_=G;this.overlay_=fep(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.X(jP,_.Ly);
var fep=function(O,m,G,B){var Q=document.createElement("input");Q.setAttribute("type","file");Q.setAttribute("name","Filedata");_.Cm(Q,"change",O.onFilesSelected_,!1,O);G==="multiple_file"&&(Q.multiple="true");G==="single_directory"&&(Q.webkitdirectory="true");B.length>0&&Q.setAttribute("accept",B.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(O.overlayTarget_!=
null)return Q.style.height=m.offsetHeight+"px",Q.style.width=m.offsetWidth+"px",O.parentOverlay_&&(O.parentOverlay_.style.position="relative"),_.ds(Q,m),P4(Q,new _.yD(m.offsetLeft,m.offsetTop)),Q;O.parentOverlay_.appendChild(Q);return Q};
jP.prototype.click=function(){this.overlay_.click()};
jP.prototype.onFilesSelected_=function(O){a:{try{var m=(new XMLHttpRequest).upload!==void 0;break a}catch(t){}m=!1}if(m){var G;O=Array.from((G=O.target.files)!=null?G:[]);G=[];if(this.selectorType_==="single_directory"&&(_.Ug||BI||_.qQ)){G=new hf("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(m=0;m<O.length;m++)for(var B=O[m],Q=B.webkitRelativePath.split("/"),H=G,M=0;M<Q.length;M++){var R=Q[M];if(M==Q.length-1){R!="."&&H.files_.push(B);break}var x=H.directoryMap_[R];x==void 0&&(R=
x=new hf(R),H.directoryMap_[R.getName()]=R,H.directories_.push(R));H=x}G=G.directories_}this.dispatchEvent(new hVj(O,G,null))}else O=O.target.value,O.match(/^c:\\fakepath\\/i)&&(O=O.substring(12)),this.dispatchEvent(new hVj([],[],new X4s(O,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=fep(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var hVj=function(O,m){_.jB.call(this,"j");this.files=O;this.directories=m};
_.X(hVj,_.jB);var Ts$=function(O){this.uploadUrl_=O};var g72=function(){_.Ly.call(this)};
_.MQ(g72,_.Ly);var IC=function(O){_.jB.call(this,O)};
_.MQ(IC,_.jB);var pj=function(O){_.jB.call(this,O)};
_.MQ(pj,_.jB);var u9o=function(O,m,G,B,Q){_.Ly.call(this);G=document.createElement("form");G.setAttribute("method",m);G.setAttribute("enctype","multipart/form-data");G.setAttribute("encoding","multipart/form-data");m=document.createElement("input");m.setAttribute("type","hidden");m.setAttribute("name","metadata");m.setAttribute("value",Q);G.appendChild(m);G.appendChild(B);this.JSC$12066_form_=G;O=new _.Bd(O);_.AF(O,"upload_protocol","multipart");this.JSC$12066_url_=O.toString();this.JSC$12066_request_=new Zm;this.state_=
"Ready";this.JSC$12066_errorDescription_=null;this.JSC$12066_eventHandler_=new _.xf(this);_.VV(this,this.JSC$12066_eventHandler_);this.JSC$12066_eventHandler_.listen(this.JSC$12066_request_,"success",this.onTransferSuccess_);this.JSC$12066_eventHandler_.listen(this.JSC$12066_request_,"error",this.onTransferError_)};
_.X(u9o,g72);_.v=u9o.prototype;_.v.run=function(){this.state_="Transferring";var O=this.JSC$12066_request_,m=this.JSC$12066_form_;if(O.JSC$11484_active_)throw Error("se");var G=new _.Bd(this.JSC$12066_url_||m.action);O.JSC$11484_form_=m;m=O.JSC$11484_form_;G=_.Dq(G.toString());G!==void 0&&(m.action=G);QZC(O)};
_.v.getResponseCode=function(){return null};
_.v.getResponseText=function(){return this.JSC$12066_request_&&this.JSC$12066_request_.getResponseText()||null};
_.v.JSC$29492_getErrorDescription=function(){return this.JSC$12066_errorDescription_};
_.v.cancel=function(){this.JSC$12066_request_&&this.JSC$12066_request_.abort();this.state_="Cancelled";this.dispatchEvent(new IC("o"))};
_.v.pause=function(){};
_.v.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new IC("l"))};
_.v.onTransferError_=function(){this.JSC$12066_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new IC("n"))};var SP=function(){_.YN.call(this)};
_.X(SP,_.YN);SP.prototype.createXhr=function(){var O=_.YN.prototype.createXhr.call(this);O.upload&&(O.upload.onprogress=(0,_.pd)(this.onProgress_,this));return O};
SP.prototype.onProgress_=function(O){this.dispatchEvent(O)};var jD9=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},p4m=function(O,m){var G=O.attempt_+1;
if(O.maxAttempts_>0&&G>O.maxAttempts_)return!1;G==0?m():O.delayCallId_=kN(function(){O.delayCallId_=null;m()},Ie3(O),O);
O.attempt_=G;return!0};
jD9.prototype.reset=function(){this.delayCallId_&&_.Qf.clearTimeout(this.delayCallId_);this.attempt_=-1};
var Ie3=function(O){var m=250*Math.pow(2,O.attempt_);O.maxDelayMs_>=0&&(m=Math.min(m,O.maxDelayMs_));return m};var HTM=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Ea=function(){_.Ly.call(this);this.JSC$12076_request_=this.state_=null;this.JSC$12076_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12076_bytesTransferred_=0;this.retryIterator_=new jD9;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12076_errorDescription_=null;this.JSC$12076_eventHandler_=new _.xf(this);_.VV(this,this.JSC$12076_eventHandler_);this.JSC$12076_url_=this.blob_=null;this.JSC$12076_method_=void 0;this.chunkSize_=this.JSC$12076_metadata_=
this.JSC$12076_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12076_responseText_=this.JSC$12076_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.MQ(Ea,g72);_.v=Ea.prototype;_.v.run=function(){Lj(this)};
_.v.getResponseCode=function(){return this.JSC$12076_responseCode_};
_.v.getResponseText=function(){return this.JSC$12076_responseText_};
_.v.JSC$29492_getErrorDescription=function(){return this.JSC$12076_errorDescription_};
_.v.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12076_eventHandler_.removeAll();this.JSC$12076_request_&&this.JSC$12076_request_.abort();this.retryIterator_.reset();var O=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(O==="Upload"||O==="Query")O=new SP,O.JSC$9797_withCredentials_=this.JSC$12076_withCredentials_,O.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12076_bytesTransferred_=
0;this.dispatchEvent(new IC("o"))}};
_.v.pause=function(){this.pauseRequested_=!0};
var Lj=function(O){var m=O.state_;O.pauseRequested_?(O.pauseRequested_=!1,O.stateAfterUnpausing_=m,O.state_="Paused"):p4m(O.retryIterator_,function(){switch(O.state_){case "Start":O.JSC$12076_request_=new SP;var G=_.aM.clone(O.JSC$12076_headers_);O.blob_.size!=null&&(G["Content-Length"]=O.blob_.size);G=vIY(G);G["X-Goog-Upload-Protocol"]="resumable";G["X-Goog-Upload-Command"]="start";O.JSC$12076_eventHandler_.removeAll();O.JSC$12076_eventHandler_.listen(O.JSC$12076_request_,"complete",O.onStartComplete_);
O.JSC$12076_request_.JSC$9797_withCredentials_=O.JSC$12076_withCredentials_;O.JSC$12076_request_.send(O.JSC$12076_url_,O.JSC$12076_method_,O.JSC$12076_metadata_,G);O.lastCommandResponseCode_=null;O.dispatchEvent(new pj("q"));break;case "Upload":G=O.transferHandle_.uploadUrl_;var B=O.blob_.size;if(SJs()){var Q=O.chunkSize_;var H=O.offset_+Q>=B;B=pH8(O.blob_,O.offset_,H?B:O.offset_+Q)}else O.offset_=0,B=O.blob_,H=!0;O.JSC$12076_request_=new SP;O.JSC$12076_request_.JSC$9797_withCredentials_=O.JSC$12076_withCredentials_;
O.JSC$12076_eventHandler_.removeAll();O.JSC$12076_eventHandler_.listen(O.JSC$12076_request_,"progress",O.onUploadProgress_);Q=(0,_.pd)(O.JSC$12078_onUploadComplete_,O,O.offset_+B.size,H);O.JSC$12076_eventHandler_.listen(O.JSC$12076_request_,"complete",Q);O.lastCommandResponseCode_=null;O.dispatchEvent(new pj("q"));H=Object.assign({},O.JSC$12076_headers_||{},{"X-Goog-Upload-Command":"upload"+(H?", finalize":""),"X-Goog-Upload-Offset":O.offset_});O.JSC$12076_request_.send(G,"POST",B,H);break;case "Query":O.JSC$12076_request_=
new SP;O.JSC$12076_eventHandler_.removeAll();O.JSC$12076_eventHandler_.listen(O.JSC$12076_request_,"complete",O.onQueryComplete_);G=Object.assign({},O.JSC$12076_headers_||{},{"X-Goog-Upload-Command":"query"});O.JSC$12076_request_.send(O.transferHandle_.uploadUrl_,"POST","",G);O.lastCommandResponseCode_=null;O.dispatchEvent(new pj("q"));break;default:throw Error("hf");}})||Cj(O,"Transfer encountered too many consecutive failures.")},Cj=function(O,m){O.state_="Error";
O.JSC$12076_errorDescription_=m;O.dispatchEvent(new IC("n"))};
Ea.prototype.onStartComplete_=function(O){var m=O.target;this.lastCommandResponseCode_=m.getStatus();this.dispatchEvent(new pj("r"));if(SbH(m))E7j(this,m);else if(Lg3(m)){O=Bf(O.target.getAllResponseHeaders());for(var G in O)_.KN(G.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new IC("m"));G=LC(O,"X-Goog-Upload-URL");O=(O=LC(O,"X-Goog-Upload-Chunk-Granularity"))?parseInt(O,10):1;G===void 0||isNaN(O)||O<=0?Cj(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
O)*O,this.transferHandle_=new Ts$(G),this.dispatchEvent(new IC("p")),this.state_="Upload",this.retryIterator_.reset(),Lj(this))}else Lj(this)};
Ea.prototype.onUploadProgress_=function(O){this.JSC$12076_bytesTransferred_=this.offset_+O.loaded;this.dispatchEvent(new IC("k"))};
Ea.prototype.JSC$12078_onUploadComplete_=function(O,m,G){var B=this,Q,H;return _.r(function(M){switch(M.nextAddress){case 1:Q=G.target;B.lastCommandResponseCode_=Q.getStatus();B.dispatchEvent(new pj("r"));if(C43(Q)||Q.getStatus()==404)return B.JSC$12076_bytesTransferred_=O,E7j(B,Q),M.return();if(Lg3(Q)){M.jumpTo(2);break}if(!(H=B.detectCorruptedBlobEnabled_)){M.jumpTo(3);break}return M.yield(o7C(B),4);case 4:H=M.yieldResult;case 3:if(H)return Cj(B,"Blob has been modified or corrupted."),M.return();
B.requireUploadRequestModification_=Q.getStatus()==400;B.state_="Query";Lj(B);return M.return();case 2:if(m)return Cj(B,"Got a non-final success response after issuing a finalize command."),M.return();B.JSC$12076_bytesTransferred_=O;B.offset_=O;B.retryIterator_.reset();Lj(B);return M.return()}})};
Ea.prototype.onQueryComplete_=function(O){var m=O.target;this.lastCommandResponseCode_=m.getStatus();this.dispatchEvent(new pj("r"));SbH(m)?(m.getStatus()===200&&(this.JSC$12076_bytesTransferred_=this.blob_.size),E7j(this,m)):Lg3(m)?(O=Bf(O.target.getAllResponseHeaders()),O=parseInt(LC(O,"X-Goog-Upload-Size-Received"),10),isNaN(O)?Cj(this,"Server did not respond with current offset."):O<this.offset_?Cj(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
O+"."):this.requireUploadRequestModification_&&this.offset_===O?Cj(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<O&&this.retryIterator_.reset(),this.offset_=this.JSC$12076_bytesTransferred_=O,this.state_="Upload",Lj(this))):Lj(this)};
var E7j=function(O,m){O.JSC$12076_responseCode_=m.getStatus();var G=Bf(m.getAllResponseHeaders());KbS(G);O.JSC$12076_responseText_=m.getResponseText();O.state_="Response received";O.dispatchEvent(new IC("l"))},Lg3=function(O){var m=O.getStatus();
O=Bf(O.getAllResponseHeaders());O=LC(O,"X-Goog-Upload-Status");return m===200&&O==="active"},C43=function(O){O=Bf(O.getAllResponseHeaders());
return LC(O,"X-Goog-Upload-Status")==="final"},SbH=function(O){if(C43(O))return!0;
O=O.getStatus();return O>=400&&O<500},o7C=function(O){var m;
return _.r(function(G){if(G.nextAddress==1){if(!O.blob_||O.originalBlobSize_<=0)return G.return(!1);if(O.blob_.size!==O.originalBlobSize_)return G.return(!0);_.n_(G,2);if(m=pH8(O.blob_,0,1)){var B=G.yield,Q=new mO,H=Uj3(Q);Q.reader_.readAsBinaryString(m);G=B.call(G,H,4)}else G=G.return(!0);return G}if(G.nextAddress!=2)return G.return(O.blob_.size!==O.originalBlobSize_);_.uS(G);return G.return(!0)})};var leU=function(O,m,G,B,Q,H){_.Ly.call(this);this.payload_=B;this.JSC$12079_url_=O;this.JSC$12079_method_=m;this.JSC$12079_headers_=G;this.JSC$12079_metadata_=Q;this.encoding_=H||"binary";O=new _.kJ;this.boundary_="uploader-"+NZ()+"-"+O.JSC$11333_toIsoString();this.JSC$12079_responseText_=this.JSC$12079_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12079_errorDescription_=null;this.JSC$12079_eventHandler_=new _.xf(this);_.VV(this,this.JSC$12079_eventHandler_)};
_.X(leU,g72);_.v=leU.prototype;
_.v.run=function(){var O=_.aM.clone(this.JSC$12079_headers_);this.payload_.length!=null&&(O["Content-Length"]=this.payload_.length);O=vIY(O);O["X-Goog-Upload-Protocol"]="multipart";O["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new SP;this.JSC$12079_eventHandler_.removeAll();this.JSC$12079_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12079_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12079_url_,this.JSC$12079_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12079_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",O)};
_.v.getResponseCode=function(){return this.JSC$12079_responseCode_};
_.v.getResponseText=function(){return this.JSC$12079_responseText_};
_.v.JSC$29492_getErrorDescription=function(){return this.JSC$12079_errorDescription_};
_.v.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12079_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new IC("o")))};
_.v.pause=function(){};
_.v.onTransferProgress_=function(){this.dispatchEvent(new IC("k"))};
_.v.onTransferComplete_=function(O){var m=O.target.getStatus();m===void 0||m===-1?(this.JSC$12079_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new IC("n"))):(this.JSC$12079_responseCode_=m,O=O.target,m=Bf(O.getAllResponseHeaders()),KbS(m),this.JSC$12079_responseText_=O.getResponseText(),this.state_="Complete",this.dispatchEvent(new IC("l")))};_.aeC=function(O,m,G,B){B=B===void 0?!1:B;if(G instanceof X4s)return new u9o(O,"POST",m,G.getInputElement(),"");if(typeof G==="string"||G instanceof String)return new leU(O,"POST",m,G,"");var Q=new Ea(void 0);Q.JSC$12076_url_=O;Q.JSC$12076_method_="POST";Q.JSC$12076_headers_=m;Q.blob_=G;Q.originalBlobSize_=G.size;Q.JSC$12076_metadata_="";B&&(Q.JSC$12076_withCredentials_=B);Q.state_="Start";return Q};var oC=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(oC,_.MP);_.v=oC.prototype;_.v.getEnableSsEngine=function(){return _.IE(this,2)};
_.v.getEnableAwr=function(){return _.IE(this,3)};
_.v.getAlohaAutoGaRollout=function(){return _.IE(this,5)};
_.v.getEnableConfigurator=function(){return _.IE(this,6)};
_.v.getEnableMweb=function(){return _.IE(this,7)};
var yRH=function(){var O=kDe();return _.oq(O,7,!0)};
oC.prototype.getEnableCtlConsentCheckbox=function(){return _.IE(this,8)};
oC.prototype.getEnableIframe=function(){return _.IE(this,9)};
var kDe=function(){var O=new oC;O=_.oq(O,5,!0);O=_.oq(O,2,!0);O=_.oq(O,4,!1);O=_.oq(O,8,!0);return _.oq(O,9,!0)};
oC.prototype.getEnableScreenshotNudge=function(){return _.IE(this,10)};
var cRp=function(){var O=yRH();return _.oq(O,10,!0)};
oC.prototype.getEnableWebStartupConfigEndpoint=function(){return _.IE(this,11)};
oC.prototype.getEnableJunkNudge=function(){return _.IE(this,12)};
var hbf=function(){var O=cRp();return _.oq(O,12,!0)};
_.v=oC.prototype;_.v.getEnableConfiguratorLocale=function(){return _.IE(this,13)};
_.v.getEnableTinyNoPointer=function(){return _.IE(this,14)};
_.v.getEnableSupportSessionLogging=function(){return _.IE(this,15)};
_.v.getEnableFileUploadForScreenshot=function(){return _.IE(this,16)};
_.v.getEnableDirectDeflectionForSingleCategory=function(){return _.IE(this,17)};
_.v.getEnableImageSanitization=function(){return _.IE(this,18)};
_.v.getEnableAlohaBinarySplit=function(){return _.IE(this,19)};
_.v.getEnableDbFeedbackIntents=function(){return _.IE(this,20)};
_.v.getEnableMarkMandatoryFieldsWithRequired=function(){return _.IE(this,21)};
_.v.getEnableFeedbackCategoryCustomUi=function(){return _.IE(this,22)};
_.v.getEnableRealtimeCtl=function(){return _.IE(this,23)};var fV6=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(fV6,_.MP);var $$O=[/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 rSI="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 Rbs=_.FY(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),iTs=_.FY(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var qsr,Wb6,U$r,ZTr;var Yb9,d0p;
Yb9=function(O,m,G){O.timeOfStartCall=(new Date).getTime();var B=G||_.Qf,Q=B.document,H=O.nonce||_.Qv(B.document);H&&!O.nonce&&(O.nonce=H);if(O.flow=="help"){var M=_.ex("document.location.href",B);!O.helpCenterContext&&M&&(O.helpCenterContext=M.substring(0,1200));M=!0;if(m&&JSON&&JSON.stringify){var R=JSON.stringify(m);(M=R.length<=1200)&&(O.psdJson=R)}M||(m={invalidPsd:!0})}m=[O,m,G];B.GOOGLE_FEEDBACK_START_ARGUMENTS=m;G=O.feedbackServerUri||"//www.google.com/tools/feedback";if(M=B.GOOGLE_FEEDBACK_START)M.apply(B,m);
else{B=G+"/load.js?";for(var x in O)m=O[x],m==null||_.Dp(m)||(B+=encodeURIComponent(x)+"="+encodeURIComponent(m)+"&");O=jS(Q).createElement("SCRIPT");H&&O.setAttribute("nonce",H);_.$3(O,_.p9(B));Q.body.appendChild(O)}};
d0p=function(O,m,G,B){var Q,H;_.r(function(M){Q=G||_.Qf;var R=O.serverEnvironment==="DEV",x=G||_.Qf;x=O.nonce||_.Qv(x.document);R={integrationKeys:{productId:O.productId,feedbackBucket:O.bucket,triggerId:O.triggerId},callbacks:{onClose:O.callback,onLoad:O.onLoadCallback},formContent:{locale:O.locale,disableScreenshot:O.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:O.abuseLink,additionalDataConsent:O.additionalDataConsent},initializationData:{isLocalServer:R,nonce:x,useNightlyRelease:R,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:O.feedbackServerUri,colorScheme:O.colorScheme},extraData:{productVersion:O.productVersion,authUser:O.authuser,configuratorId:O.configuratorId,customZIndex:O.customZIndex,tinyNoPointer:O.tinyNoPointer,
allowNonLoggedInFeedback:O.allowNonLoggedInFeedback,enableAnonymousFeedback:O.enableAnonymousFeedback}};m&&(x=new Map(Object.entries(m)),R.extraData.productSpecificData=x);H=R;return M.yield(bTS(H,B,Q),0)})};
_.w48=function(O,m,G){try{if(O.flow==="help"){var B=O.helpCenterPath.replace(/^\//,"");_.Bi(G||window,"https://support.google.com/"+B)}else O.flow==="submit"?Yb9(O,m,G):TkS(O.productId,O.feedbackServerUri).then(function(Q){Q=_.RO(Q,oC,1);var H=!CIM||(Q==null?void 0:Q.getEnableMweb()),M=!O.tinyNoPointer||(Q==null?void 0:Q.getEnableTinyNoPointer());!Q||Q.getAlohaAutoGaRollout()&&H&&M?d0p(O,m,G,Q):Yb9(O,m,G)},function(Q){Q&&Q.name!=="DuplicateFormError"&&Yb9(O,m,G)})}catch(Q){d0p(O,m,G,null)}};
_.HI("userfeedback.api.startFeedback",_.w48);var gIO=/https?:\/\/\S+\.\S+/,ukI=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],jRM=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var PDp=function(O){var m=O.split(""),G=[-263237435,15,m,function(B,Q,H){var M=Q.length;H.forEach(function(R,x,t){this.push(t[x]=Q[(Q.indexOf(R)-Q.indexOf(this[x])+x+M--)%Q.length])},B.split(""))},
function(B,Q){B=(B%Q.length+Q.length)%Q.length;Q.splice(-B).reverse().forEach(function(H){Q.unshift(H)})},
"response",function(){for(var B=64,Q=[];++B-Q.length-32;){switch(B){case 58:B-=14;case 91:case 92:case 93:continue;case 123:B=47;case 94:case 95:case 96:continue;case 46:B=95}Q.push(String.fromCharCode(B))}return Q},
null,12,1540023973,65941107,null,m,function(B,Q){for(B=(B%Q.length+Q.length)%Q.length;B--;)Q.unshift(Q.pop())},
695603893,function(B){for(var Q=B.length;Q;)B.push(B.splice(--Q,1)[0])},
"'[;'[(",function(B,Q){B.push(Q)},
null,function(B,Q,H,M,R){return Q(H,M,R)},
"continuation",m,function(B,Q){if(B.length!=0){Q=(Q%B.length+B.length)%B.length;var H=B[0];B[0]=B[Q];B[Q]=H}},
function(){for(var B=64,Q=[];++B-Q.length-32;){switch(B){case 91:B=44;continue;case 123:B=65;break;case 65:B-=18;continue;case 58:B=96;continue;case 46:B=95}Q.push(String.fromCharCode(B))}return Q},
'"),/]];'];G[7]=G;G[11]=G;G[18]=G;try{(((0,G[15])(G[21]),G[22])(G[11],G[9]),G[22])(G[new Date("1970-01-01T04:30:12.000+04:30")/1E3],G[1]),((0,G[22])(G[11],G[23]),G[4])(G[10],G[18]),(0,G[20])(G[21],G[14])<<(0,G[17])(G[18],G[1]),(0,G[4])(G[8],G[21]),(0,G[19])((0,G[19])((0,G[17])(G[7],G[9]),G[3],G[20],(0,G[6])(),G[2]),G[3],G[5],(0,G[15])(),G[2])}catch(B){return"aTlOUOubTO4AP____8P_"+O}return m.join("")};_.eVo=new _.q$("runAttestationCommand");var D08=new _.q$("verifyCommand");_.gD=new _.q$("accessibilityContext");var sDm=new _.q$("accessibilityData");var Nsp=new _.q$("profileCardCommand");var QW6=new _.q$("signInEndpoint");var B$s=new _.q$("signOutEndpoint");var Fgp;_.P4_=new _.q$("accountItemSectionRenderer");Fgp=new _.q$("accountItemRenderer");_.AR_=new _.q$("saveCommandToSessionStorageAction");var Oys=new _.q$("crossAccountChannelTransferEndpoint");var ArY=new _.q$("getAccountMenuEndpoint");_.OwN=new _.q$("getAccountSwitcherEndpoint");var F6I=new _.q$("getAccountsListEndpoint");var mvu=new _.q$("getAccountsListInnertubeEndpoint");_.lq=new _.q$("addToToastAction");var GZ2=new _.q$("hideEnclosingAction");_.aC=new _.q$("replaceEnclosingAction");var B6C=new _.q$("buttonRefreshAction");var Q79=new _.q$("adsControlFlowOpportunityReceivedCommand");var Hyo=new _.q$("openAdAllowlistInstructionCommand");var vN$=new _.q$("videoMastheadAdPrimaryVideoRenderer");var Kiu=new _.q$("displayAdRenderer");_.$vH=new _.q$("inFeedAdLayoutRenderer");var MB3=new _.q$("sequenceItemInPlayerAdLayoutRenderer");_.r$2=new _.q$("adSlotRenderer");var RI_=new _.q$("adAvatarViewModel");var iye=new _.q$("adBadgeViewModel");var xvo=new _.q$("adButtonViewModel");var q2j=new _.q$("adImageViewModel");var ZOp=new _.q$("reelsAdCardButtonedViewModel");var Uv9=new _.q$("reelsPlayerOverlayLayoutViewModel");var tB8=new _.q$("showSchedulingPanelCommand");var Wis=new _.q$("backstageCommentsRenderer");var ZyU=new _.q$("backstageImageRenderer");var zIe=new _.q$("backstagePostRenderer");var J$o=new _.q$("backstageZeroStateRenderer");var VBu=new _.q$("postRenderer");var bys=new _.q$("sharedPostRenderer");var nN9=new _.q$("createBackstagePostEndpoint");var Xkp=new _.q$("getPostVideoPreviewEndpoint");var frj=new _.q$("updateBackstagePostEndpoint");var hI2=new _.q$("filterChipTransformCommand");var T6H=new _.q$("insertRichSectionCommand");var xYY=new _.q$("talkToRecsDeselectCommand");var gN8=new _.q$("talkToRecsNextCommand");var iX5=new _.q$("talkToRecsSelectCommand");var uno=new _.q$("talkToRecsUpdateTextCommand");_.gH=new _.q$("browseEndpoint");_.j7u=new _.q$("confirmDialogEndpoint");var Irp=new _.q$("expandOnHoverCardRenderer");var pkC=new _.q$("lumiereShelfDetailsRenderer");var S2p=new _.q$("revealBusinessEmailCommand");var EN2=new _.q$("validateChannelHandleCommand");var Lio=new _.q$("channelCreationFormEndpoint");var ClH=new _.q$("aboutChannelViewModel");var oNe=new _.q$("channelThumbnailWithLinkRenderer");var lr9=new _.q$("channelCreationServiceEndpoint");var ar2=new _.q$("updateChannelPageSettingsEndpoint");var k4=function(O){this.delegate=O},yC=function(){k4.apply(this,arguments)};
_.X(yC,k4);_.vr.Object.defineProperties(yC.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(O){this.delegate.entityMetadata=O}}});var kZu=function(){yC.apply(this,arguments)};
_.X(kZu,yC);kZu.prototype.getAssociations=function(){return[]};
kZu.prototype.getTypeName=function(){return"channelHandle"};var QTI=new _.q$("webThumbnailDetailsExtensionData");var Vcp=new _.q$("commandContext");var y$u=new _.q$("addVideoLinkAction");var c$$=new _.q$("banAuthorAction");var Y2U=new _.q$("createCommentAction");var dve=new _.q$("createCommentReplyAction");var wk$=new _.q$("createPollAction");var eI$=new _.q$("hideIdentityChipAction");var Dvm=new _.q$("openUpdateCommentDialogAction");var s78=new _.q$("pinCommentAction");var N63=new _.q$("removeCommentAction");var Plp=new _.q$("unpinCommentAction");var cz=new _.q$("updateBackstagePollAction");var Fiu=new _.q$("updateCommentVoteAction");var A$e=new _.q$("commentThreadRenderer");var OYu=function(){yC.apply(this,arguments)};
_.X(OYu,yC);OYu.prototype.getAssociations=function(){return[]};
OYu.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var mmo=function(){yC.apply(this,arguments)};
_.X(mmo,yC);mmo.prototype.getAssociations=function(){return[]};
mmo.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Gmu=new _.q$("commentDialogRenderer");var BWu=new _.q$("reloadCommentsCommand");var QK2=new _.q$("updateCommentsSettingsEndpoint");var HY2=new _.q$("commentViewModel");var vrU=new _.q$("triStateButtonViewModel");var K7e=new _.q$("voiceReplyContainerViewModel");_.zC=new _.q$("commandExecutorCommand");var Yn=new _.q$("emoji");var $mH=new _.q$("updateCreatorChannelInnertubeCommand");_.Mfe=new _.q$("appendContinuationItemsAction");_.rZC=new _.q$("changeEngagementPanelVisibilityAction");_.Dw=new _.q$("continuationCommand");var R7o=new _.q$("hideReportedCommentAction");var iYs=new _.q$("listMutationCommand");_.Y4=new _.q$("openPopupAction");var xm9=new _.q$("persistSubscriptionsDisplayPreferencesCommand");var Vfm;_.q62=new _.q$("playlistRemoveVideosAction");_.Um2=new _.q$("updatePlaylistAction");_.tfe=new _.q$("addToPlaylistCommand");_.W7o=new _.q$("endPlaylistCommand");_.ZYj=new _.q$("recoverPlaylistCommand");_.z7o=new _.q$("refreshPlaylistCommand");_.JZ8=new _.q$("refreshFormCommand");Vfm=new _.q$("openOnePickAddVideoModalCommand");_.v15=new _.q$("reloadContinuationItemsCommand");_.bY8=new _.q$("scrollToEngagementPanelCommand");var nrj=new _.q$("selectCountryCommand");var XGo=new _.q$("showReloadUiCommand");var fI$=new _.q$("undoFeedbackAction");var h79=new _.q$("updateButtonAction");var TW9=new _.q$("updateSubscribeButtonAction");var grj=new _.q$("updateToggleAction");var u0$=new _.q$("webNativeShareCommand");_.bP=new _.q$("webCommandMetadata");_.dT=new _.q$("webHandleServiceEndpointExtension");var O6s=new _.q$("webNavigationEndpointData");var jKH=new _.q$("backgroundAudioPlaybackCommand");var IIp=new _.q$("copyLinkCommand");var pGH=new _.q$("playlistVotingRefreshPopupCommand");var S6o=new _.q$("selectChipCommand");var Erm=new _.q$("setCookieCommand");var L7m=new _.q$("setLocalStorageCommand");var Ceo=new _.q$("setPrefStorageEntryCommand");var kmu;_.or8=new _.q$("settingsUpdateCheckboxCommand");_.lIp=new _.q$("settingsUpdateTextCommand");_.aIs=new _.q$("settingsUpdateOptionsCommand");kmu=new _.q$("settingsUpdateSwitchCommand");_.yZC=new _.q$("settingsUpdateConnectedAppRendererCommand");var cZU=new _.q$("showCreatorChatbotEngagementPanelCommand");var Y69=new _.q$("updateTextInputFormFieldRendererCommand");var dmC=new _.q$("updateToggleButtonStateCommand");var wGH=new _.q$("updateUrlParamCommand");var e7p=new _.q$("webSubmitFormCommand");var Dmj=new _.q$("channelSwitcherPageRenderer"),sKm=new _.q$("updateChannelSwitcherPageAction");_.GK=new _.q$("continuationItemRenderer");_.wT=new _.q$("richItemRenderer");var NWC=new _.q$("richSectionRenderer");_.Pe_=new _.q$("richShelfRenderer");_.F7e=new _.q$("metadataBadgeRenderer");_.AZs=new _.q$("multiPageMenuNotificationSectionRenderer");_.OTp=new _.q$("playlistLoopButtonStateRenderer");var m$U=new _.q$("claimLegacyYoutubeChannelEndpoint");var GBp=new _.q$("getNotificationMenuEndpoint");var Bk3=new _.q$("getSearchInVideoCommand");_.QR_=new _.q$("getTranscriptEndpoint");_.Vs=new _.q$("signalServiceEndpoint");var HTs=new _.q$("verifyAgeEndpoint");var ODs=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(ODs,_.MP);ODs.prototype.getPath=function(){return _.Eg(this,1)};
ODs.prototype.getValue=function(){return _.Eg(this,2)};var vIp=[0,_.GD,-1];var Kb3=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Kb3,_.MP);var A3f=_.zc(Kb3,[0,_.H4,vIp]);var $$9=new _.q$("dismissalEndpoint");var Mq_=new _.q$("elementsCommand");_.wu=new _.q$("innertubeCommand");var rSC=new _.q$("multipleInlinePlaybackCommand");var olS=new _.q$("loggingDirectives");var Rb2=new _.q$("acknowledgeChannelTouStrikeCommand");var iT2=function(){yC.apply(this,arguments)};
_.X(iT2,yC);iT2.prototype.getAssociations=function(){return[]};
iT2.prototype.getTypeName=function(){return"booleanEntity"};var x$s=function(){yC.apply(this,arguments)};
_.X(x$s,yC);x$s.prototype.getAssociations=function(){return[]};
x$s.prototype.getTypeName=function(){return"stringEntity"};var Bu=new _.q$("entityBatchUpdate");_.qso=new _.q$("entityUpdateCommand");var U$o=function(){yC.apply(this,arguments)};
_.X(U$o,yC);U$o.prototype.getAssociations=function(){var O=[];this.delegate.alternateChannel&&O.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&O.push.apply(O,_.lS(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&O.push(this.delegate.oneofChannelEntity);return[].concat(_.lS(new Set(O)))};
U$o.prototype.getTypeName=function(){return"fakeChannel"};var tq$=function(){yC.apply(this,arguments)};
_.X(tq$,yC);tq$.prototype.getAssociations=function(){var O=[];this.delegate.entryCollection&&O.push(this.delegate.entryCollection);return[].concat(_.lS(new Set(O)))};
tq$.prototype.getTypeName=function(){return"fakePlaylist"};
var Wb_=function(){yC.apply(this,arguments)};
_.X(Wb_,yC);Wb_.prototype.getAssociations=function(){var O=[];this.delegate.parentPlaylist&&O.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var m=_.K(this.delegate.entries),G=m.next();!G.done;G=m.next())O.push.apply(O,_.lS((new ZTo(G.value)).getAssociations()));return[].concat(_.lS(new Set(O)))};
Wb_.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var ZTo=function(){k4.apply(this,arguments)};
_.X(ZTo,k4);ZTo.prototype.getAssociations=function(){var O=[];this.delegate.video&&O.push(this.delegate.video);return[].concat(_.lS(new Set(O)))};var zb8=function(){yC.apply(this,arguments)};
_.X(zb8,yC);zb8.prototype.getAssociations=function(){var O=[];this.delegate.descriptionEntity&&O.push(this.delegate.descriptionEntity);this.delegate.creators&&O.push.apply(O,_.lS(this.delegate.creators));this.delegate.theBiggestFan&&O.push(this.delegate.theBiggestFan);return[].concat(_.lS(new Set(O)))};
zb8.prototype.getTypeName=function(){return"fakeVideo"};
var JS8=function(){yC.apply(this,arguments)};
_.X(JS8,yC);JS8.prototype.getAssociations=function(){return[]};
JS8.prototype.getTypeName=function(){return"fakeVideoDescription"};var Vq_=new _.q$("fantasyRosterViewModel");var bT3=new _.q$("addFollowUpSurveyCommand");var nIo=new _.q$("getSurveyCommand");var X1e=new _.q$("ratingSurveyOptionRenderer");_.Sk=new _.q$("feedbackEndpoint");var fV_=new _.q$("reportHistoryTableCellRenderer"),hbu=new _.q$("reportHistoryTableTextCellRenderer"),Tk3=new _.q$("reportHistoryTableReasonCellRenderer");_.gI9=new _.q$("flagEndpoint");var ukC=new _.q$("getFlowCommand");var jRs=new _.q$("submitFormWithValidationFlowCommand");var IV3=function(){yC.apply(this,arguments)};
_.X(IV3,yC);IV3.prototype.getAssociations=function(){return[]};
IV3.prototype.getTypeName=function(){return"flowStateEntity"};var p1e=new _.q$("flowFormState");var Sss=new _.q$("gameCardRenderer");var EI3=new _.q$("accountLinkingStateChangedCommand");var Lb3=function(){yC.apply(this,arguments)};
_.X(Lb3,yC);Lb3.prototype.getAssociations=function(){return[]};
Lb3.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var Cao=new _.q$("changeMiniAppPlayStateCommand");var oI2=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(oI2,_.MP);var eP=[1,2,3];var lV3=[0,eP,U3N,_.Q7,MNp];var aV_=_.zc(oI2,lV3),kBC=_.JL(lV3);var ySC=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(ySC,_.MP);var cS9=[0,_.NQ,_.GD];var Ys_=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Ys_,_.MP);var d$U=[0,_.GD,_.NQ,-1];var Ds=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Ds,_.MP);var w1U=_.JL([0,1,cS9,_.$7,d$U]);var eb8=new _.q$("miniAppScoreChallengeViewModel");var D$8=new _.q$("miniGameCardViewModel");var sRo=new _.q$("teaserCardViewModel");var NkU=function(){yC.apply(this,arguments)};
_.X(NkU,yC);NkU.prototype.getAssociations=function(){return[]};
NkU.prototype.getTypeName=function(){return"logoEntity"};var Pa2=new _.q$("feedbackItemRenderer");var Fbp=function(){yC.apply(this,arguments)};
_.X(Fbp,yC);Fbp.prototype.getAssociations=function(){return[]};
Fbp.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.AS2=new _.q$("playerInterstitialRenderer");var OUC=new _.q$("getKidsBlocklistPickerCommand");_.mss=new _.q$("updateKidsBlacklistEndpoint");_.cc=new _.q$("likeEndpoint");var GE9,Bwj,Qcp;GE9=new _.q$("addChatItemAction");Bwj=new _.q$("removeChatItemAction");Qcp=new _.q$("markChatItemAsDeletedAction");_.HUm=new _.q$("setLiveChatCollapsedStateAction");var vJj=function(){yC.apply(this,arguments)};
_.X(vJj,yC);vJj.prototype.getAssociations=function(){return[]};
vJj.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var Kxo=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Kxo,_.MP);var $sj=[0,_.H4,[0,[1,2],_.Q7,_.K4,[0,_.B4,1,_.B4]]];var M83=[0,_.GD,-1];var rx9=[0,[1],_.Q7];var sa=[0,[1,2],_.Q7,_.K4,[0,_.$7]];var Nc=[0,_.GD];var Rh_=[0,[0,_.Ob,_.Aw,[0,_.B4,_.M0,_.B4]],1,[0,_.Ob]];var iU$=[0,Pp];var xsC=[0,Pp];var qi2=[0,xsC,iU$];var UsU=[0,_.H4,[0,[1,2],_.Q7,-1],_.Ob];var t8C=[0,[2],1,_.K4,[0,_.B4,-1,UsU]];var WxC=[0,[1],_.K4,[0,_.B4,_.GD,_.M0,1,UsU]];var ZU8=[0,_.Aw,-1,$3s,_.$7];var zhm=[0,[0,sg,-3],-4];var Pz=[0,_.Ob,-3,_.GD,_.Ob,_.il,_.Ob,$sj,_.Ob,-2];var F_=[0,_.H4,[0,[1,2],_.Q7,-1],_.Ob,_.GD];var Jxp=[0,[3],sa,[0,[2,3,4],boI,_.Q7,-2],_.K4,[0,_.GD],_.NQ];var V8U=[0,[3,5],_.GD,FS,_.K4,[0,1,_.NQ,_.$7],_.$7,_.K4,[0,_.$7,_.NQ]];var bUo=[0,2,FS,_.GD,-1];var nJm=[0,x3Y];var Xv_=[0,[3,4],2,rMp,_.Q7,_.GD];var fdp=[0,_.$7,-2,1,_.GD];var hhp=[0,_.GD,-1,_.$7];var Twe=[0,Nc,function(){return Af},
Nc,_.GD],gJH=[0,_.$7,Nc,sa,function(){return Af},
_.GD],Af=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],Nc,FS,[0,_.Ob,1,_.Ob,1,_.Ob,1,_.$7,-1,Nc],[0,1,_.Ob,2,_.Ob,_.$7,_.Ob],1,FS,-1,_.GD,FS,2,sg,[0,sg,FS],_.GD,1,Rh_,1,sa,_.il,1,[0,[0,_.H4,[0,_.GD,_.Ob,_.$7]]],[0,_.Ob,[0,_.NQ,[0,_.M0]],_.NQ,1,[0,Rjr,-1]],_.GD,[0,1,_.GD],76,_.K4,[0,sa,F_,Rh_,1,[0,_.H4,F_]],1,_.K4,[0,sa,_.GD,_.Ob],_.K4,
[0,sa,rx9],_.K4,[0,sa,rx9,FS],_.K4,[0,sa,rx9],_.K4,[0,sa,_.H4,Nc,sa,tNf],_.K4,[0,sa,Nc,_.GD],_.K4,[0,sa,_.Ob,Pz,-1,_.Ob],4,_.K4,[0,sa,_.Ob,FS,Pz,_.Ob],_.K4,[0,[4,9],sa,_.$7,FS,_.Q7,F_,1,Rh_,_.GD,_.Q7,fdp],_.K4,[0,sa,Nc,sa,_.$7,_.GD],_.K4,[0,_.Ob,sa,Pz,_.Ob,_.GD],_.K4,[0,sa,Nc,sa,_.$7,_.GD],1,_.K4,[0,sa,_.$7,_.GD,Pz],_.K4,[0,sa,_.$7,[0,_.GD,FS],_.GD,FS,_.GD,JMO,-2,3,hhp,_.H4,hhp,hhp,fdp],_.K4,[0,sa,_.$7,WxC,_.H4,[0,xsC,t8C],Nc,_.H4,qi2,_.GD,1,_.$7,ZU8,zhm,KqN,-1],_.K4,[0,sa,[0,_.M0,-1,WxC,_.H4,[0,
xsC,t8C,iU$],[0,_.xN],1,_.B4],Nc,_.GD],_.K4,[0,sa,F_,_.GD,[0,_.Aw]],_.K4,function(){return gJH},
_.K4,[0,sa,FS,_.GD,-1,_.Ob],_.K4,[0,[6,7],sa,_.H4,bUo,_.$7,F_,1,_.K4,Xv_,_.K4,nJm],_.K4,[0,_.H4,bUo,_.$7,_.Ob],_.K4,[0,_.GD,J0j,-1],_.K4,[0,Nc,_.H4,qi2,_.GD],_.K4,[0,sa,Nc,_.GD],_.K4,[0,JMO,_.GD],_.K4,[0,M83],_.K4,[0,M83],_.K4,[0,F_],_.K4,[0,Nc,F_],_.K4,function(){return Twe},
_.K4,[0,Nc,_.GD],_.K4,[0,Nc,_.GD],1,_.K4,[0,_.Ob,sa,Pz,_.Ob,Pz],_.K4,[0,_.xN],1,_.K4,[0],1,_.K4,[0,Nc,_.$7,sa,_.$7],_.K4,[0,[1,2],_.K4,Xv_,_.K4,nJm,FS],_.K4,[0,_.xN,F_,V8U,_.GD,FS],_.K4,[0,V8U,_.GD,FS],_.K4,[0,ZU8,F_,_.Ob,zhm],_.K4,Jxp,_.K4,[0],_.K4,[0,_.GD,-1,_.NQ],_.K4,[0,Nc,_.GD],_.K4,[0,Jxp,_.NQ,_.GD],_.K4,[0,sa,Pz,_.Ob],_.K4,[0,sa,Pz,_.Ob],_.K4,[0,ZU8,zhm,F_,_.il,_.Ob,KqN,-1],_.K4,[0,sa,Pz,_.Ob]];var uup=[0,_.H4,Af];var jcm=_.zc(Kxo,[0,1,_.NQ,[0,[18,22,24],uup,3,[0,uup],1,_.NQ,[0,_.H4,[0,FS,sg],FS],1,Af,-1,[0,_.mg,-2,_.il,_.mg,-1,_.il,_.mg,$sj,_.mg,-2],Ho5,[!0,_.GD,[0,rx9,2,_.GD,FS,_.Ob,2,_.GD,JMO]],[0,[1,2,3],[5,6],_.K4,[0,_.B4],_.K4,[0,_.B4,-1],_.K4,[0,_.B4],1,_.K4,M83,_.K4,[0,_.GD]],[0,Af,-1],_.xN,Af,_.K4,Af,[0,uup],_.NQ,Af,_.K4,Af,_.GD,_.K4,Af]]);var Id9=new _.q$("liveChatEndpoint");var pve=new _.q$("liveChatItemContextMenuEndpoint");var SiC=new _.q$("liveChatReplayEndpoint");_.EJ_=new _.q$("emojiPickerRenderer");var Lxe=new _.q$("liveChatAuthorBadgeViewModel");var CU9=new _.q$("deleteLiveChatMessageCommand");var oJo=new _.q$("liveChatActionEndpoint");var ldp=new _.q$("createLiveChatPollEndpoint");var adH=new _.q$("manageLiveChatUserEndpoint");var kEm=new _.q$("moderateLiveChatEndpoint");_.yxC=new _.q$("sendLiveChatMessageEndpoint");var cx_=new _.q$("sendLiveChatVoteEndpoint");var Yiu=new _.q$("clearLocationCommand");var dsu=new _.q$("resolveLocationCommand");var wvC=new _.q$("interactionLoggingCommandMetadata");var ehe=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(ehe,_.MP);var Dsu=function(O,m){return _.tF(O,1,m)};var scu=[0,_.Ob];var Nwu=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Nwu,_.MP);var PUm=function(O,m){return nE(O,1,ehe,m)};Nwu.prototype.JSC$12173_serializeBinary=CGY([0,_.H4,scu]);var ASs={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 FxH={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"},
Axo={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 DpY={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM"};_.XZs=new _.q$("logFlowLoggingEventCommand");_.jg=new _.q$("loggingContext");var OG2=new _.q$("audioTrackSelectActionCommand");var m4s=new _.q$("captionLanguageSelectActionCommand");var Gvo=new _.q$("showAudioTrackPickerActionCommand");var B2u=new _.q$("showCaptionLanguageSelectActionCommand");var Qi9=new _.q$("dismissDialogEndpoint");var HG$=new _.q$("dismissPlayerOverlayCommand");var vLU=new _.q$("hideItemSectionVideosByIdCommand");var KOs=new _.q$("showMiniplayerCommand");var $4e=function(){yC.apply(this,arguments)};
_.X($4e,yC);$4e.prototype.getAssociations=function(){return[]};
$4e.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var MLp=function(){yC.apply(this,arguments)};
_.X(MLp,yC);MLp.prototype.getAssociations=function(){return[]};
MLp.prototype.getTypeName=function(){return"downloadStatusEntity"};var reU=function(){yC.apply(this,arguments)};
_.X(reU,yC);reU.prototype.getAssociations=function(){return[]};
reU.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var ReC=function(){yC.apply(this,arguments)};
_.X(ReC,yC);ReC.prototype.getAssociations=function(){var O=[];this.delegate.downloadsList&&O.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&O.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&O.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&O.push(this.delegate.refresh);return[].concat(_.lS(new Set(O)))};
ReC.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var iGu=function(){yC.apply(this,arguments)};
_.X(iGu,yC);iGu.prototype.getAssociations=function(){var O=[];this.delegate.refresh&&O.push(this.delegate.refresh);if(this.delegate.downloads)for(var m=_.K(this.delegate.downloads),G=m.next();!G.done;G=m.next())O.push.apply(O,_.lS((new x4u(G.value)).getAssociations()));return[].concat(_.lS(new Set(O)))};
iGu.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var x4u=function(){k4.apply(this,arguments)};
_.X(x4u,k4);x4u.prototype.getAssociations=function(){var O=[];this.delegate.video&&O.push(this.delegate.video);this.delegate.playlist&&O.push(this.delegate.playlist);this.delegate.videoItem&&O.push(this.delegate.videoItem);this.delegate.playlistItem&&O.push(this.delegate.playlistItem);return[].concat(_.lS(new Set(O)))};var qo9=function(){yC.apply(this,arguments)};
_.X(qo9,yC);qo9.prototype.getAssociations=function(){var O=[];this.delegate.localImageEntities&&O.push.apply(O,_.lS(this.delegate.localImageEntities));return[].concat(_.lS(new Set(O)))};
qo9.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var U42=function(){yC.apply(this,arguments)};
_.X(U42,yC);U42.prototype.getAssociations=function(){var O=[];this.delegate.playbackData&&O.push(this.delegate.playbackData);this.delegate.localImageEntities&&O.push.apply(O,_.lS(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&O.push(this.delegate.videoDownloadContextEntity);return[].concat(_.lS(new Set(O)))};
U42.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var tL2=function(){yC.apply(this,arguments)};
_.X(tL2,yC);tL2.prototype.getAssociations=function(){return[]};
tL2.prototype.getTypeName=function(){return"offlineabilityEntity"};var WO_=function(){yC.apply(this,arguments)};
_.X(WO_,yC);WO_.prototype.getAssociations=function(){var O=[];this.delegate.fakeChildren&&O.push.apply(O,_.lS(this.delegate.fakeChildren));return[].concat(_.lS(new Set(O)))};
WO_.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var ZGs=function(){yC.apply(this,arguments)};
_.X(ZGs,yC);ZGs.prototype.getAssociations=function(){var O=[];this.delegate.video&&O.push(this.delegate.video);this.delegate.playbackData&&O.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&O.push(this.delegate.offlineVideoPolicy);return[].concat(_.lS(new Set(O)))};
ZGs.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var ze2=function(){yC.apply(this,arguments)};
_.X(ze2,yC);ze2.prototype.getAssociations=function(){return[]};
ze2.prototype.getTypeName=function(){return"continuationTokenEntity"};var JeH=function(){yC.apply(this,arguments)};
_.X(JeH,yC);JeH.prototype.getAssociations=function(){var O=[];this.delegate.channelOwner&&O.push(this.delegate.channelOwner);this.delegate.videos&&O.push.apply(O,_.lS(this.delegate.videos));this.delegate.collaboratorChannels&&O.push.apply(O,_.lS(this.delegate.collaboratorChannels));this.delegate.downloadState&&O.push(this.delegate.downloadState);this.delegate.refresh&&O.push(this.delegate.refresh);return[].concat(_.lS(new Set(O)))};
JeH.prototype.getTypeName=function(){return"mainPlaylistEntity"};var VL_=function(){yC.apply(this,arguments)};
_.X(VL_,yC);VL_.prototype.getAssociations=function(){var O=[];this.delegate.video&&O.push(this.delegate.video);this.delegate.channelContributor&&O.push(this.delegate.channelContributor);return[].concat(_.lS(new Set(O)))};
VL_.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var bGj=function(){k4.apply(this,arguments)};
_.X(bGj,k4);bGj.prototype.getAssociations=function(){var O=[];this.delegate.recommendedVideoMetadata&&O.push.apply(O,_.lS((new nLm(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.lS(new Set(O)))};
var nLm=function(){k4.apply(this,arguments)};
_.X(nLm,k4);nLm.prototype.getAssociations=function(){var O=[];this.delegate.localImageEntities&&O.push.apply(O,_.lS(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&O.push(this.delegate.videoDownloadContextEntity);return[].concat(_.lS(new Set(O)))};var XK9=function(){k4.apply(this,arguments)};
_.X(XK9,k4);XK9.prototype.getAssociations=function(){var O=[];this.delegate.playbackPosition&&O.push(this.delegate.playbackPosition);return[].concat(_.lS(new Set(O)))};var fm2=function(){yC.apply(this,arguments)};
_.X(fm2,yC);fm2.prototype.getAssociations=function(){var O=[];this.delegate.owner&&O.push(this.delegate.owner);this.delegate.downloadState&&O.push(this.delegate.downloadState);this.delegate.userState&&O.push.apply(O,_.lS((new XK9(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&O.push.apply(O,_.lS((new bGj(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.lS(new Set(O)))};
fm2.prototype.getTypeName=function(){return"mainVideoEntity"};var hej=function(){yC.apply(this,arguments)};
_.X(hej,yC);hej.prototype.getAssociations=function(){var O=[];this.delegate.userChannelDetails&&O.push(this.delegate.userChannelDetails);return[].concat(_.lS(new Set(O)))};
hej.prototype.getTypeName=function(){return"ytMainChannelEntity"};var T28=function(){yC.apply(this,arguments)};
_.X(T28,yC);T28.prototype.getAssociations=function(){var O=[];this.delegate.channelOwner&&O.push(this.delegate.channelOwner);this.delegate.playbackPosition&&O.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&O.push.apply(O,_.lS(this.delegate.localImageEntities));this.delegate.downloadStatus&&O.push(this.delegate.downloadStatus);return[].concat(_.lS(new Set(O)))};
T28.prototype.getTypeName=function(){return"ytMainVideoEntity"};var w3p=new _.q$("downloadsPageSmartDownloadsOptInBannerParams");var Nc6=new _.q$("downloadsPageUpsellBannerParams");var gLs=function(){yC.apply(this,arguments)};
_.X(gLs,yC);gLs.prototype.getAssociations=function(){return[]};
gLs.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var uds=function(){yC.apply(this,arguments)};
_.X(uds,yC);uds.prototype.getAssociations=function(){return[]};
uds.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var jio=function(){yC.apply(this,arguments)};
_.X(jio,yC);jio.prototype.getAssociations=function(){return[]};
jio.prototype.getTypeName=function(){return"macroMarkerEntity"};var Ime=function(){yC.apply(this,arguments)};
_.X(Ime,yC);Ime.prototype.getAssociations=function(){return[]};
Ime.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var pK8=function(){yC.apply(this,arguments)};
_.X(pK8,yC);pK8.prototype.getAssociations=function(){return[]};
pK8.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var SoU=function(){yC.apply(this,arguments)};
_.X(SoU,yC);SoU.prototype.getAssociations=function(){return[]};
SoU.prototype.getTypeName=function(){return"playerStateEntity"};var ELC=function(){yC.apply(this,arguments)};
_.X(ELC,yC);ELC.prototype.getAssociations=function(){return[]};
ELC.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var LOo=function(){yC.apply(this,arguments)};
_.X(LOo,yC);LOo.prototype.getAssociations=function(){return[]};
LOo.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var C8p=function(){yC.apply(this,arguments)};
_.X(C8p,yC);C8p.prototype.getAssociations=function(){return[]};
C8p.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.O1=new _.q$("dislikeButtonViewModel");_.mE=new _.q$("likeButtonViewModel");var oLj=new _.q$("videoSummaryContentViewModel");var lmo=new _.q$("videoSummaryParagraphViewModel");var am8=new _.q$("changeTimelyActionVisibilityCommand");var kv_=new _.q$("hideEngagementPanelEndpoint");var yem=new _.q$("refreshPanelEndpoint");var cep=new _.q$("scrollToSectionEndpoint");var Yoj=new _.q$("seekToVideoTimestampCommand");_.pk=new _.q$("showEngagementPanelEndpoint");var d4C=new _.q$("showTransientPlayerScrimOverlayCommand");var wKu=new _.q$("toggleEngagementPanelCommand");_.eej=new _.q$("createBroadcastCommand");var D4m=new _.q$("metadataUpdateCommand");var si8=function(){yC.apply(this,arguments)};
_.X(si8,yC);si8.prototype.getAssociations=function(){return[]};
si8.prototype.getTypeName=function(){return"featuredProductsEntity"};var N2U=function(){yC.apply(this,arguments)};
_.X(N2U,yC);N2U.prototype.getAssociations=function(){return[]};
N2U.prototype.getTypeName=function(){return"pinnedProductEntity"};var P83=function(){yC.apply(this,arguments)};
_.X(P83,yC);P83.prototype.getAssociations=function(){return[]};
P83.prototype.getTypeName=function(){return"trendingOfferEntity"};_.FO$=new _.q$("merchandiseShelfRenderer");var Ae$=new _.q$("shoppingContentLineItemViewModel");var Ojm=new _.q$("gridMovieRenderer");_.mc8=new _.q$("movieRenderer");var G0u=function(){yC.apply(this,arguments)};
_.X(G0u,yC);G0u.prototype.getAssociations=function(){var O=[];this.delegate.trackDownloadMetadatas&&O.push.apply(O,_.lS(this.delegate.trackDownloadMetadatas));return[].concat(_.lS(new Set(O)))};
G0u.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var BT$=function(){yC.apply(this,arguments)};
_.X(BT$,yC);
BT$.prototype.getAssociations=function(){var O=[];this.delegate.downloadedTracks&&O.push.apply(O,_.lS(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&O.push.apply(O,_.lS(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&O.push.apply(O,_.lS(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&O.push.apply(O,_.lS(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&O.push.apply(O,_.lS(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
O.push.apply(O,_.lS(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&O.push.apply(O,_.lS(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&O.push.apply(O,_.lS(this.delegate.metadataOnlyTracks));return[].concat(_.lS(new Set(O)))};
BT$.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var QCe=function(){yC.apply(this,arguments)};
_.X(QCe,yC);QCe.prototype.getAssociations=function(){var O=[];this.delegate.trackDownloadMetadatas&&O.push.apply(O,_.lS(this.delegate.trackDownloadMetadatas));return[].concat(_.lS(new Set(O)))};
QCe.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var Hjm=function(){yC.apply(this,arguments)};
_.X(Hjm,yC);Hjm.prototype.getAssociations=function(){var O=[];this.delegate.playbackData&&O.push(this.delegate.playbackData);this.delegate.localImageEntities&&O.push.apply(O,_.lS(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&O.push(this.delegate.videoDownloadContextEntity);return[].concat(_.lS(new Set(O)))};
Hjm.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var v42=function(){yC.apply(this,arguments)};
_.X(v42,yC);
v42.prototype.getAssociations=function(){var O=[];this.delegate.musicLibraryStatusEntity&&O.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&O.push.apply(O,_.lS(this.delegate.primaryArtists));this.delegate.details&&O.push(this.delegate.details);this.delegate.userDetails&&O.push(this.delegate.userDetails);this.delegate.tracks&&O.push.apply(O,_.lS(this.delegate.tracks));this.delegate.share&&O.push(this.delegate.share);this.delegate.downloadMetadata&&O.push(this.delegate.downloadMetadata);this.delegate.refresh&&
O.push(this.delegate.refresh);return[].concat(_.lS(new Set(O)))};
v42.prototype.getTypeName=function(){return"musicAlbumRelease"};
var Kt2=function(){yC.apply(this,arguments)};
_.X(Kt2,yC);Kt2.prototype.getAssociations=function(){var O=[];this.delegate.albumRelease&&O.push(this.delegate.albumRelease);this.delegate.tracks&&O.push.apply(O,_.lS(this.delegate.tracks));return[].concat(_.lS(new Set(O)))};
Kt2.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var $c2=function(){yC.apply(this,arguments)};
_.X($c2,yC);$c2.prototype.getAssociations=function(){var O=[];this.delegate.albumRelease&&O.push(this.delegate.albumRelease);return[].concat(_.lS(new Set(O)))};
$c2.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var MP3=function(){yC.apply(this,arguments)};
_.X(MP3,yC);MP3.prototype.getAssociations=function(){var O=[];this.delegate.details&&O.push(this.delegate.details);this.delegate.userDetails&&O.push(this.delegate.userDetails);return[].concat(_.lS(new Set(O)))};
MP3.prototype.getTypeName=function(){return"musicArtist"};
var rf2=function(){yC.apply(this,arguments)};
_.X(rf2,yC);rf2.prototype.getAssociations=function(){var O=[];this.delegate.parentArtist&&O.push(this.delegate.parentArtist);return[].concat(_.lS(new Set(O)))};
rf2.prototype.getTypeName=function(){return"musicArtistDetail"};
var R5u=function(){yC.apply(this,arguments)};
_.X(R5u,yC);R5u.prototype.getAssociations=function(){var O=[];this.delegate.parentArtist&&O.push(this.delegate.parentArtist);return[].concat(_.lS(new Set(O)))};
R5u.prototype.getTypeName=function(){return"musicArtistUserDetail"};var ijj=function(){yC.apply(this,arguments)};
_.X(ijj,yC);ijj.prototype.getAssociations=function(){return[]};
ijj.prototype.getTypeName=function(){return"musicLibraryEdit"};var xcp=function(){yC.apply(this,arguments)};
_.X(xcp,yC);xcp.prototype.getAssociations=function(){return[]};
xcp.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var qao=function(){yC.apply(this,arguments)};
_.X(qao,yC);
qao.prototype.getAssociations=function(){var O=[];this.delegate.tracks&&O.push.apply(O,_.lS(this.delegate.tracks));this.delegate.refresh&&O.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&O.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&O.push(this.delegate.details);this.delegate.downloadMetadata&&O.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&O.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&O.push(this.delegate.userDetails);this.delegate.entryCollection&&
O.push(this.delegate.entryCollection);this.delegate.share&&O.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&O.push.apply(O,_.lS((new Ucm(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.lS(new Set(O)))};
qao.prototype.getTypeName=function(){return"musicPlaylist"};
var Ucm=function(){k4.apply(this,arguments)};
_.X(Ucm,k4);Ucm.prototype.getAssociations=function(){var O=[];this.delegate.creatorEntity&&O.push(this.delegate.creatorEntity);return[].concat(_.lS(new Set(O)))};var tPo=function(){yC.apply(this,arguments)};
_.X(tPo,yC);tPo.prototype.getAssociations=function(){return[]};
tPo.prototype.getTypeName=function(){return"musicShare"};var Wt8=function(){yC.apply(this,arguments)};
_.X(Wt8,yC);
Wt8.prototype.getAssociations=function(){var O=[];this.delegate.musicLibraryStatusEntity&&O.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&O.push.apply(O,_.lS(this.delegate.artists));this.delegate.audioModeVersion&&O.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&O.push(this.delegate.videoModeVersion);this.delegate.userDetails&&O.push(this.delegate.userDetails);this.delegate.details&&O.push(this.delegate.details);this.delegate.albumRelease&&O.push(this.delegate.albumRelease);this.delegate.share&&
O.push(this.delegate.share);this.delegate.libraryEdit&&O.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&O.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&O.push(this.delegate.playbackPosition);this.delegate.lyrics&&O.push(this.delegate.lyrics);return[].concat(_.lS(new Set(O)))};
Wt8.prototype.getTypeName=function(){return"musicTrack"};
var ZjC=function(){yC.apply(this,arguments)};
_.X(ZjC,yC);ZjC.prototype.getAssociations=function(){var O=[];this.delegate.parentTrack&&O.push(this.delegate.parentTrack);return[].concat(_.lS(new Set(O)))};
ZjC.prototype.getTypeName=function(){return"musicTrackDetail"};
var z59=function(){yC.apply(this,arguments)};
_.X(z59,yC);z59.prototype.getAssociations=function(){var O=[];this.delegate.parentTrack&&O.push(this.delegate.parentTrack);return[].concat(_.lS(new Set(O)))};
z59.prototype.getTypeName=function(){return"musicTrackUserDetail"};var AI=new _.q$("musicResponsiveListItemRenderer");var rBN=new _.q$("addToPlaylistEndpoint");var Jfp=new _.q$("captionPickerEndpoint");var VPo=new _.q$("suggestStats");var bj8=new _.q$("backstageImageUploadEndpoint");var n4$=new _.q$("createBackstagePostDialogEndpoint");_.XzC=new _.q$("createCommentReplyDialogEndpoint");_.fs3=new _.q$("updateCommentDialogEndpoint");_.h5u=new _.q$("updateCommentReplyDialogEndpoint");var TT8=new _.q$("menuEndpoint");var Px5=new _.q$("modalEndpoint");var g4u=new _.q$("playlistEditorEndpoint");var u_$=new _.q$("copyTextEndpoint");var jCC,Is8;jCC=new _.q$("shareEndpoint");Is8=new _.q$("shareEntityEndpoint");_.pzC=new _.q$("shareEntityServiceEndpoint");_.NeO=new _.q$("userFeedbackEndpoint");_.GC=new _.q$("watchEndpoint");var LFp=new _.q$("watchPlaylistEndpoint");var Sa_=new _.q$("addUpcomingEventReminderEndpoint");_.G_=new _.q$("getCommentsFromInboxCommand");var E4p=new _.q$("notificationOptOutEndpoint");var Lt3=new _.q$("recordNotificationInteractionsEndpoint");var CqC=new _.q$("removeUpcomingEventReminderEndpoint");var $y5=new _.q$("getDownloadActionCommand");_.o4U=new _.q$("offlineOrchestrationActionCommand");var ls$=function(){yC.apply(this,arguments)};
_.X(ls$,yC);ls$.prototype.getAssociations=function(){return[]};
ls$.prototype.getTypeName=function(){return"captionTrack"};var ass=function(){yC.apply(this,arguments)};
_.X(ass,yC);ass.prototype.getAssociations=function(){return[]};
ass.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var k0u=function(){yC.apply(this,arguments)};
_.X(k0u,yC);k0u.prototype.getAssociations=function(){return[]};
k0u.prototype.getTypeName=function(){return"offlineVideoPolicy"};var yf$=function(){yC.apply(this,arguments)};
_.X(yf$,yC);yf$.prototype.getAssociations=function(){return[]};
yf$.prototype.getTypeName=function(){return"offlineVideoStreams"};var cfj=function(){yC.apply(this,arguments)};
_.X(cfj,yC);cfj.prototype.getAssociations=function(){var O=[];this.delegate.transfer&&O.push(this.delegate.transfer);this.delegate.adsPlaybackData&&O.push.apply(O,_.lS(this.delegate.adsPlaybackData));this.delegate.drmLicense&&O.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&O.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&O.push(this.delegate.videoDownloadContextEntity);return[].concat(_.lS(new Set(O)))};
cfj.prototype.getTypeName=function(){return"playbackData"};var Yao=function(){yC.apply(this,arguments)};
_.X(Yao,yC);Yao.prototype.getAssociations=function(){return[]};
Yao.prototype.getTypeName=function(){return"refresh"};var dc$=function(){yC.apply(this,arguments)};
_.X(dc$,yC);dc$.prototype.getAssociations=function(){var O=[];this.delegate.offlineVideoStreams&&O.push.apply(O,_.lS(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&O.push.apply(O,_.lS(this.delegate.captionTrack));return[].concat(_.lS(new Set(O)))};
dc$.prototype.getTypeName=function(){return"transfer"};var wz8=function(){yC.apply(this,arguments)};
_.X(wz8,yC);wz8.prototype.getAssociations=function(){return[]};
wz8.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var e5j=new _.q$("showMoreDrawerCommand");var DcH=new _.q$("updateEngagementPanelContentCommand");var sCC=new _.q$("getPdgBuyFlowCommand");var NT$=new _.q$("liveChatPurchaseMessageEndpoint");var PqC=new _.q$("openSuperStickerBuyFlowCommand");var FtC=new _.q$("updatePdgFeatureEnablementCommand");var AfU=function(){yC.apply(this,arguments)};
_.X(AfU,yC);AfU.prototype.getAssociations=function(){return[]};
AfU.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var OK$=function(){yC.apply(this,arguments)};
_.X(OK$,yC);OK$.prototype.getAssociations=function(){return[]};
OK$.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.mO$=new _.q$("pdgCommentChipRenderer");_.G_8=new _.q$("permissionRoleBottomBarRenderer");_.BcH=new _.q$("updatePermissionRoleCommand");var QS2=new _.q$("prefetchWatchCommand");var HKm=new _.q$("updatePlayerErrorMessageCommand");var my6=new _.q$("toggleCaptionsVisibilityCommand");_.vz2=new _.q$("quickActionsViewModel");var KEC=new _.q$("playerResponse");var $Os=new _.q$("playlistRenderer");_.MI2=new _.q$("playlistVideoListRenderer");_.B3=new _.q$("playlistEditEndpoint");var rQo=new _.q$("createImagePollCommand");var RAU=new _.q$("createQuizCommand");var iKo=new _.q$("quizRenderer");var xOm=new _.q$("uploadedVideoRenderer");var q1o=new _.q$("decorateMessageEndpoint");var UOm=new _.q$("lpOfferCardOptionViewModel");var tI$=new _.q$("sfvAudioItemPlaybackCommand");var WEe=function(){yC.apply(this,arguments)};
_.X(WEe,yC);WEe.prototype.getAssociations=function(){return[]};
WEe.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Q0=new _.q$("reelNonVideoContentEndpoint");_.pf=new _.q$("reelWatchEndpoint");_.H3=new _.q$("reelItemRenderer");_.ZKs=new _.q$("reelMetapanelViewModel");_.zA9=new _.q$("reelNonVideoContentRenderer");_.JQH=new _.q$("reelPlayerOverlayRenderer");var VIu=new _.q$("shortsLockupViewModel");var bKs=new _.q$("sponsorButtonViewModel");var nzp=new _.q$("reelItemWatchResponse");var X3U=new _.q$("textBadgeRenderer");_.v3=new _.q$("buttonRenderer");_.KK=new _.q$("toggleButtonRenderer");var $Le=new _.q$("switchButtonViewModel");_.fN9=new _.q$("confirmDialogRenderer");var hAe;hAe=new _.q$("menuRenderer");_.Tcm=new _.q$("menuFlexibleItemRenderer");var gz_=new _.q$("pollRenderer");_.uW8=new _.q$("backgroundPromoRenderer");var INU;_.jSs=new _.q$("chipCloudRenderer");INU=new _.q$("chipCloudChipRenderer");var p3_=new _.q$("dropdownRenderer");var S1_=new _.q$("gridVideoRenderer");_.Ezm=new _.q$("itemSectionRenderer");_.LE8=new _.q$("messageRenderer");var CRm=new _.q$("sortFilterHeaderRenderer");_.$z=new _.q$("videoRenderer");var oz_=new _.q$("resolveUrlCommandMetadata");var lN2=function(){yC.apply(this,arguments)};
_.X(lN2,yC);lN2.prototype.getAssociations=function(){return[]};
lN2.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.aNs=new _.q$("getAnswerCommand");_.uu=new _.q$("searchEndpoint");var k_m=new _.q$("genAiRichTextViewModel");var KXM=new _.q$("overviewAnswerViewModel");var yQH=new _.q$("videoOverviewViewModel");var cQC=new _.q$("addToPlaylistServiceEndpoint");var Y1o=new _.q$("clearSearchHistoryEndpoint");var dOu=new _.q$("clearWatchHistoryEndpoint");var w3e=new _.q$("webSerializedServiceEndpointExtension");_.eAs=new _.q$("createCommentEndpoint");var DOe=new _.q$("createCommentReplyEndpoint");var sS3=new _.q$("performCommentActionEndpoint");var Nc_=new _.q$("updateCommentEndpoint");var PRp=new _.q$("updateCommentReplyEndpoint");_.MO=new _.q$("createPlaylistServiceEndpoint");var FEs=new _.q$("deletePlaylistEndpoint");var AQm=new _.q$("deleteVideoEndpoint");var Mys=new _.q$("getReportFormEndpoint");var Oi2=new _.q$("modifyChannelNotificationPreferenceEndpoint");var fuO;_.X4=new _.q$("offlinePlaylistEndpoint");fuO={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 hMp;_.nJ=new _.q$("offlineVideoEndpoint");hMp={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 m2e=new _.q$("pingingEndpoint");_.Gbm=new _.q$("selectActiveIdentityEndpoint");var BSH=new _.q$("setSettingEndpoint");var qkN=new _.q$("undoFeedbackEndpoint");var Qtp=new _.q$("unsubscribeEndpoint");_.Hi3=new _.q$("updatedMetadataEndpoint");var vAu=function(){yC.apply(this,arguments)};
_.X(vAu,yC);vAu.prototype.getAssociations=function(){return[]};
vAu.prototype.getTypeName=function(){return"settingEntity"};_.KG$=new _.q$("updateLocalAppSettingCommand");var $2m=new _.q$("saveImageToDeviceEndpoint");var MtH=new _.q$("shareImageCommand");var rCU=new _.q$("sharingProviderDataCommand");var R9$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(R9$,_.MP);var ii2=[0,_.GD,-1];R9$.prototype.JSC$12374_serializeBinary=CGY(ii2);var x23=_.JL(ii2);var qE2=new _.q$("userMentionSuggestionRenderer");var U2e=new _.q$("liveChatTunnelCommand");var tt3=new _.q$("showSponsorshipsGiftOfferDialogCommand");var WGm=new _.q$("sponsorshipsScrollableShelfViewModel");var Zi2=new _.q$("updateUpcomingEventReminderButtonStateCommand");var z9C=new _.q$("upcomingEventReminderButtonStateRenderer");var JCC=new _.q$("subscribeEndpoint");var Vte=new _.q$("registerTasksCommand");var hRu=new _.q$("hideSheetCommand");var Ty3=new _.q$("hideSnackbarCommand");var goC=new _.q$("showDialogCommand");_.I_=new _.q$("showSheetCommand");var uL9=new _.q$("showSnackbarCommand");var jF_=function(){yC.apply(this,arguments)};
_.X(jF_,yC);jF_.prototype.getAssociations=function(){return[]};
jF_.prototype.getTypeName=function(){return"chipEntity"};var IRH=function(){yC.apply(this,arguments)};
_.X(IRH,yC);IRH.prototype.getAssociations=function(){return[]};
IRH.prototype.getTypeName=function(){return"dismissState"};_.cu=new _.q$("avatarViewModel");var pgj=new _.q$("badgeViewModel");_.rc=new _.q$("buttonViewModel");_.RS=new _.q$("chipViewModel");var b2z=new _.q$("collectionThumbnailViewModel");var SX3=new _.q$("contentPreviewImageViewModel");var Eoe=new _.q$("decoratedAvatarViewModel");_.UaI=new _.q$("engagementBarViewModel");_.L2_=new _.q$("imageBannerViewModel");var CLe=new _.q$("lockupContentMetadataRowExtension");_.oo2=new _.q$("lockupMetadataViewModel");_.lRj=new _.q$("lockupViewModel");var aRU=new _.q$("avatarStackViewModel");_.khU=new _.q$("contentMetadataViewModel");var yg3=function(){yC.apply(this,arguments)};
_.X(yg3,yC);yg3.prototype.getAssociations=function(){return[]};
yg3.prototype.getTypeName=function(){return"pageHeaderEntity"};_.cgC=new _.q$("pageHeaderViewModel");var YX_=new _.q$("snackbarViewModel");var dxe=new _.q$("thumbnailHoverOverlayToggleActionsViewModel");_.iR=new _.q$("toggleButtonViewModel");var wg_=function(){yC.apply(this,arguments)};
_.X(wg_,yC);wg_.prototype.getAssociations=function(){return[]};
wg_.prototype.getTypeName=function(){return"votingEntity"};_.tbM=new _.q$("votingViewModel");var eRs=new _.q$("sectionHeaderViewModel");var DxU=new _.q$("notifyDropdownOptionSelectedCommand");var C76=new _.q$("listViewModel");_.pJ=new _.q$("listItemViewModel");var Vz5=new _.q$("toggleableListItemViewModel");var sF_=new _.q$("dialogHeaderViewModel");var NyH=function(){yC.apply(this,arguments)};
_.X(NyH,yC);NyH.prototype.getAssociations=function(){return[]};
NyH.prototype.getTypeName=function(){return"dataFreshnessEntity"};var e1e=new _.q$("suspenseViewModel");var PL8=function(){yC.apply(this,arguments)};
_.X(PL8,yC);PL8.prototype.getAssociations=function(){return[]};
PL8.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var F2s=function(){yC.apply(this,arguments)};
_.X(F2s,yC);F2s.prototype.getAssociations=function(){return[]};
F2s.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var Agj=function(){yC.apply(this,arguments)};
_.X(Agj,yC);Agj.prototype.getAssociations=function(){return[]};
Agj.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.OQj=new _.q$("transcriptSubmitCaptionCorrectionCommand");var md3=function(){yC.apply(this,arguments)};
_.X(md3,yC);md3.prototype.getAssociations=function(){return[]};
md3.prototype.getTypeName=function(){return"buttonEntity"};var llN=new _.q$("unpluggedStringRunImage");var GRj=new _.q$("tabViewModel");var Bte=new _.q$("tabbedViewModel");var Q48=function(){yC.apply(this,arguments)};
_.X(Q48,yC);Q48.prototype.getAssociations=function(){return[]};
Q48.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.HQ3=new _.q$("updateDescriptionAction");var vk3=new _.q$("updateToggleButtonTextAction");_.KTe=new _.q$("autoplaySwitchButtonRenderer");var a6;_.$d9=new _.q$("multiMarkersPlayerBarRenderer");a6=new _.q$("chapterRenderer");var M6o=new _.q$("heatMarkerRenderer");var fze=new _.q$("heatmapRenderer");var rn3=new _.q$("smartSkipPlayerScrimOverlayRenderer");var RHm=new _.q$("timedMarkerDecorationRenderer");var mzY=new _.q$("postWebToNativeMessageCommand");var lm=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(lm,_.MP);lm.prototype.getMethodName=function(){return _.Eg(this,1)};var iQ9=[0,_.GD,-2];lm.prototype.JSC$12396_serializeBinary=CGY(iQ9);var xdC=_.zc(lm,iQ9);var qL3=new _.q$("whitelistEditEndpoint");var Udj=new _.q$("clearUrlParamCommand");var t6j=new _.q$("commerceActionCommand");_.WTC=new _.q$("getPaymentInstrumentsParamsCommand");var ZQ$=new _.q$("getPaymentsClientTokenCommand");var zHm=new _.q$("googlePaymentBillingCommand");var JnU=new _.q$("googlePaymentPurchaseManagerCommand");_.V68=new _.q$("logGtmCommand");var bQe=new _.q$("updateCardItemOnClickCommand");_.nk8=new _.q$("ypcPauseSubscriptionCommand");_.XT9=new _.q$("ypcResumeSubscriptionCommand");var fc$=function(){yC.apply(this,arguments)};
_.X(fc$,yC);fc$.prototype.getAssociations=function(){return[]};
fc$.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var hHU=function(){yC.apply(this,arguments)};
_.X(hHU,yC);hHU.prototype.getAssociations=function(){return[]};
hHU.prototype.getTypeName=function(){return"commerceCartListEntity"};var Ttm=function(){yC.apply(this,arguments)};
_.X(Ttm,yC);Ttm.prototype.getAssociations=function(){return[]};
Ttm.prototype.getTypeName=function(){return"iconBadgeEntity"};var gk_=function(){yC.apply(this,arguments)};
_.X(gk_,yC);gk_.prototype.getAssociations=function(){return[]};
gk_.prototype.getTypeName=function(){return"pdpStateEntity"};var ut9=function(){yC.apply(this,arguments)};
_.X(ut9,yC);ut9.prototype.getAssociations=function(){return[]};
ut9.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var dwN=new _.q$("ypcOffersEndpoint");var j4s=new _.q$("cardItemRenderer"),Icm=new _.q$("cardItemTextRenderer");var pTC=new _.q$("commerceCartItemQuantityPickerRenderer");var SLu=new _.q$("linkCardRenderer");var s1N=new _.q$("quantityIncrementerButtonViewModel");var Ek$=new _.q$("quantityIncrementerViewModel");var LTp=new _.q$("themedImageViewModel");_.COu=new _.q$("ypcCancelRecurrenceEndpoint");var ok9=new _.q$("ypcCompleteTransactionEndpoint");_.lc8=new _.q$("ypcGetCartEndpoint");_.GU=new _.q$("ypcGetOffersEndpoint");_.xz=new _.q$("ypcHandleTransactionEndpoint");var acj=new _.q$("ypcLogWalletAnalyticDataEndpoint");_.kRU=new _.q$("ypcRedeemCodeEndpoint");var yn8=new _.q$("ypcUpdateFopEndpoint");VC(Jf(1),Zs(4));PVS((new MessageChannel).port2);var cn9=function(){this.register=new Map},msM=function(O,m,G){O=O+"_"+m;
qO.register.has(O)?G=qO.register.get(O):(G=G(),qO.register.set(O,G));return G},YLu=function(O){O=_.K(O.register.values());
for(var m=O.next();!m.done;m=O.next())_.qX(m.value,"ABORTED")};
cn9.prototype.clear=function(){YLu(this);this.register.clear()};
var qO=new cn9;var EIS=Date.now().toString();var oIs=Car();var w15={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 ddU,aq;ddU=1;aq=function(O){this.veData=O};
_.Ez=function(O){return new aq({trackingParams:O})};
_.Zv=function(O,m,G,B,Q,H){var M=ddU++;return new aq({veType:O,veCounter:M,elementIndex:G,dataElement:m,youtubeData:B,jspbYoutubeData:Q,loggingDirectives:H})};
_.v=aq.prototype;
_.v.getAsJson=function(){var O={};this.veData.trackingParams!==void 0?O.trackingParams=this.veData.trackingParams:(O.veType=this.veData.veType,this.veData.veCounter!==void 0&&(O.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(O.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(O.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(O.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(O.isCounterfactual=!0);
return O};
_.v.getAsJspb=function(){var O=new tjo;this.veData.trackingParams!==void 0?O.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.aE(O,2,this.veData.veType),this.veData.veCounter!==void 0&&_.aE(O,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.aE(O,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.tF(O,5,!0));if(this.veData.dataElement!==void 0){var m=this.veData.dataElement.getAsJspb();_.Tc(O,7,m)}this.veData.youtubeData!==void 0&&_.Tc(O,8,this.veData.jspbYoutubeData);
return O};
_.v.toString=function(){return JSON.stringify(this.getAsJson())};
_.v.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.v.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.HI("yt_logging_screen.getRootVeType",cSO);_.HI("yt_logging_screen.getCurrentCsn",_.yA);_.HI("yt_logging_screen.getCttAuthInfo",cr);_.HI("yt_logging_screen.setCurrentScreen",_.Yf);var wT2=function(){this.events=new Map},eHC=function(O){var m=[];
O=_.K(O.events.values());for(var G=O.next();!G.done;G=O.next())m.push(G.value);return m};
wT2.prototype.clear=function(){this.events.clear()};var s4$=function(){this.logTransport=new DdU;this.loggedEventRegister=new wT2;this.unloggedEventRegister=new wT2;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12433_flushTimer=new _.iH(this.flushInterval);this.JSC$12433_flushTimer.listen("tick",this.flush,!1,this)};
s4$.prototype.flush=function(){if(this.eventsCount){var O={loggedEvents:eHC(this.loggedEventRegister),unloggedEvents:eHC(this.unloggedEventRegister)};if(_.V("export_player_version_to_ytconfig")){var m;(m=_.kB("PLAYER_CLIENT_VERSION"))?(m=m.split("-")[0].replace(/\./g,""),m=isNaN(Number(m))?"0":m):m="";var G=_.kB("PLAYER_CLIENT_VERSION");if(G){G=G.split("-");var B="";G.length>1&&(B=G[G.length-1]);G=SsM(B.startsWith("canary_experiment")?"canary":B.startsWith("canary_control")?"control":"none")}else G=
"CLIENT_CANARY_STATE_UNKNOWN";O.dimensions={playerClientVersion:m,playerCanaryState:G}}this.logTransport.flush(O);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12433_flushTimer.enabled&&this.JSC$12433_flushTimer.stop()}};
var Nt_=function(O){U1==null&&(U1=new s4$);var m=U1;var G=m.loggedEventRegister;O.dimensions=O.dimensions||{};O.dimensions.csn=_.yA()||"";var B=sRr(O.dimensions).join(";");if(O.records!=null)if(G.events.has(B)){var Q;(Q=G.events.get(B).records)==null||Q.push.apply(Q,_.lS(O.records))}else G.events.set(B,O);m.JSC$12433_flushTimer.enabled||m.JSC$12433_flushTimer.start();m.eventsCount++;m.eventsCount>=100&&m.flush()};var DdU=function(){};
DdU.prototype.flush=function(O,m){_.V("enable_client_sli_logging")&&_.LE("sliEventBatch",O,{sendIsolatedPayload:!!m})};var U1;var FT$;FT$=function(O){var m=PO$;O=O===void 0?{}:O;m=m.name;var G=OUI("SUCCESS");Nt_({dimensions:O,records:[{name:m,state:"SLI_STATE_END",status:G}]})};
_.GEO=function(O,m,G,B){this.name=O;this.sliId=m;this.timeoutMs=G;this.statusOnTimeout=B;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.GEO.prototype.getId=function(){return this.sliId};
_.xp=function(O,m){m=m===void 0?{}:m;O.ongoing||(O.ongoing=!0,O.dimensions=m,O.logSliId=GUH(),Nt_({dimensions:O.dimensions,records:[{name:O.name,state:"SLI_STATE_START",sliId:O.logSliId}]}),O.timeoutMs>0&&(O.timeoutHandle=setTimeout(function(){_.qX(O,O.statusOnTimeout)},O.timeoutMs)))};
_.qX=function(O,m){O.ongoing&&(O.timeoutMs>0&&clearTimeout(O.timeoutHandle),O.ongoing=!1,m={dimensions:O.dimensions,records:[{name:O.name,status:OUI(m),state:"SLI_STATE_END",sliId:O.logSliId}]},qO.register.delete(O.name+"_"+O.sliId),Nt_(m))};var PO$=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var Anu=function(){yC.apply(this,arguments)};
_.X(Anu,yC);Anu.prototype.getAssociations=function(){return[]};
Anu.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var VdN=new _.q$("highlightTextDecoratorColorMapExtension");var zGM=new _.q$("styleRunColorMapExtension");var M8S=_.FY(["data-"]),iUN={};var qis={};var tQ=function(O){this.wrappedPromise_=O===void 0?null:O;this.state_=0;this.JSC$12465_value_=null};
tQ.prototype.then=function(O,m,G){return this.wrappedPromise_?this.wrappedPromise_.then(O,m,G):this.state_===1&&O?(O=O.call(G,this.JSC$12465_value_))&&typeof O.then==="function"?O:_.W3(O):this.state_===2&&m?(O=m.call(G,this.JSC$12465_value_))&&typeof O.then==="function"?O:_.OW$(O):this};
tQ.prototype.getValue=function(){return this.JSC$12465_value_};
tQ.prototype.isRejected=function(){return this.state_==2};
xMo(tQ);_.OW$=function(O){var m=new tQ;O=O===void 0?null:O;m.state_=2;m.JSC$12465_value_=O===void 0?null:O;return m};
_.W3=function(O){var m=new tQ;O=O===void 0?null:O;m.state_=1;m.JSC$12465_value_=O===void 0?null:O;return m};var uuY="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var mK_=["load","abort","error"],ZN=function(O,m,G){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12485_maxAspectRatio_=O;this.disableAnimation_=m===void 0?!1:m;this.disableExifRotation_=G===void 0?!1:G;this.JSC$12485_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12485_reject_=this.resolve_=null};
ZN.prototype.transform=function(O){var m=this;this.mime_=O.type;$r(W$u(O),this.dataUrlRead_,this.readError_,this);$r(tiU(O.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(G,B){m.resolve_=G;m.JSC$12485_reject_=B})};
ZN.prototype.dataUrlRead_=function(O){this.dataUrl_=O;this.angle_!=null&&GjH(this)};
ZN.prototype.exifRead_=function(O){if(this.disableExifRotation_)this.angle_=0;else{a:if(O=new DataView(O),O.byteLength<2||O.getUint16(0)!==65496)O=-2;else{for(var m=2,G=O.byteLength;m<G;){var B=O.getUint16(m),Q=O.getUint16(m+2);if(B===65505){m+=4;B=O.getUint32(m);Q=O.getUint16(m+4);if(B!==1165519206||Q!==0)break;m+=6;B=O.getUint16(m)===18761;m+=O.getUint32(m+4,B);Q=O.getUint16(m,B);m+=2;for(var H=0;H<Q;H++){if(O.getUint16(m,B)===274){m+=8;O=O.getUint16(m,B);break a}m+=12}}else if(B>>8!==255)break;
else m+=Q+2}O=-1}switch(O){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&&GjH(this)};
ZN.prototype.readError_=function(){this.JSC$12485_reject_()};
var GjH=function(O){pm(O.JSC$12485_image_,mK_,O.completeTransform_,!1,O);O.JSC$12485_image_.src=_.d5(O.dataUrl_).toString();O.JSC$12485_image_.src!=Y0.toString()&&O.JSC$12485_image_.src.substr(0,11)==="data:image/"||O.JSC$12485_reject_()};
ZN.prototype.completeTransform_=function(){if(this.JSC$12485_image_.src!=Y0.toString()){var O=_.d5(this.dataUrl_),m=this.JSC$12485_image_.naturalHeight?this.JSC$12485_image_.naturalWidth/this.JSC$12485_image_.naturalHeight:null;this.invalidAspectRatio=m>this.JSC$12485_maxAspectRatio_||m<1/this.JSC$12485_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var G=this.JSC$12485_image_.naturalWidth,B=this.JSC$12485_image_.naturalHeight,Q=m=0,H=this.JSC$12485_image_.naturalHeight?this.JSC$12485_image_.naturalWidth/
this.JSC$12485_image_.naturalHeight:null;H>this.JSC$12485_maxAspectRatio_?(G=this.JSC$12485_maxAspectRatio_*B,m=(G-this.JSC$12485_image_.naturalWidth)/2,this.cropped=!0):H<1/this.JSC$12485_maxAspectRatio_?(B=this.JSC$12485_maxAspectRatio_*G,Q=(B-this.JSC$12485_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)H=G,G=B,B=H,H=m,m=Q,Q=H;switch(this.angle_){case 90:Q-=G;break;case 180:m-=G;Q-=B;break;case 270:m-=
B}this.cropped||this.angle_%360!==0?(O=document.createElement("canvas"),O.width=G||1,O.height=B||1,this.JSC$12485_image_.naturalWidth&&this.JSC$12485_image_.naturalHeight&&(G=O.getContext("2d"),G.rotate(Math.PI/180*this.angle_),G.drawImage(this.JSC$12485_image_,m,Q,this.JSC$12485_image_.naturalWidth,this.JSC$12485_image_.naturalHeight)),this.transformedData=_.d5(O.toDataURL(this.mime_))):this.transformedData=O}else this.transformedData=O;this.resolve_(this)}};var z_=function(O,m){_.jB.call(this,O);this.value=m};
_.X(z_,_.jB);
var JQ=function(O,m,G,B,Q,H,M){M=M===void 0?!1:M;_.Ly.call(this);var R=this;this.JSC$12490_url_=O;this.channelId_=m;this.maxFileSizeMb_=G;this.JSC$12490_maxAspectRatio_=B;this.dropZoneEl_=Q;this.rejectInvalidAspectRatio_=M;this.selectButtonEl_=H;this.JSC$12490_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new uq(this.dropZoneEl_);this.selectOverlay_=new jP(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12490_image_=this.transfer_=null;this.handler_=new _.xf(this);_.VV(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(H,"click",function(){R.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.X(JQ,_.Ly);JQ.prototype.disposeInternal=function(){for(var O=this.selectButtonEl_.nextSibling;O&&O.parentNode&&O.tagName=="INPUT";)O.parentNode.removeChild(O),O=this.selectButtonEl_.nextSibling;this.cancel();_.Ly.prototype.disposeInternal.call(this)};
JQ.prototype.uploadPromise=function(){if(this.JSC$12490_image_==null)return null;this.uploadPromise_||Bmu(this);return this.uploadPromise_};
JQ.prototype.cancel=function(){QrC(this);this.JSC$12490_image_=null};
var QrC=function(O){O.transfer_&&O.transfer_.cancel();O.transfer_=null;O.uploadPromise_=null;O.resolve_=null;O.JSC$12490_reject_=null},Bmu=function(O){QrC(O);
O.transfer_=_.aeC(O.JSC$12490_url_,{"X-YouTube-ChannelId":O.channelId_},O.JSC$12490_image_);O.handler_.listenOnce(O.transfer_,"l",O.JSC$12492_onUploadComplete_);O.handler_.listenOnce(O.transfer_,"n",O.onUploadError_);O.transfer_.run();O.uploadPromise_=new Promise(function(m,G){O.resolve_=m;O.JSC$12490_reject_=G})};
_.v=JQ.prototype;_.v.onChange_=function(O){O.files.length&&(this.JSC$12490_image_=O.files[0],this.JSC$12490_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12490_image_=null,this.dispatchEvent(new z_("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(Bmu(this),(new ZN(this.JSC$12490_maxAspectRatio_)).transform(this.JSC$12490_image_).then((0,_.pd)(this.onPreview_,this),(0,_.pd)(this.onPreviewError_,this))))};
_.v.onPreview_=function(O){if(O.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12490_image_=null),this.dispatchEvent(new z_("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;O.cropped&&this.dispatchEvent(new z_("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new z_("yt.comments.ImageUploadOverlay.CHANGE_EVENT",O.transformedData))};
_.v.onPreviewError_=function(){this.JSC$12490_image_=null;this.dispatchEvent(new z_("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.v.onHover_=function(O){O.stopPropagation();O.preventDefault();if(O.type==="dragover")O=!0;else if(O.type==="dragleave")O=!1;else return;this.dispatchEvent(new z_("yt.comments.ImageUploadOverlay.HOVER_EVENT",O))};
_.v.JSC$12492_onUploadComplete_=function(){var O=(0,_.o63)(this.transfer_.getResponseText());this.resolve_(O.encryptedBlobId)};
_.v.onUploadError_=function(){this.JSC$12490_reject_();QrC(this)};var HW$=function(O){O=O||{};var m={},G={};this.url=O.url||"";this.args=O.args||_.aM.clone(m);this.assets=O.assets||{};this.attrs=O.attrs||_.aM.clone(G);this.fallback=O.fallback||null;this.fallbackMessage=O.fallbackMessage||null;this.html5=!!O.html5;this.disable=O.disable||{};this.loaded=!!O.loaded;this.messages=O.messages||{}};
HW$.prototype.clone=function(){var O=new HW$,m;for(m in this)if(this.hasOwnProperty(m)){var G=this[m];_.Ne(G)=="object"?O[m]=_.aM.clone(G):O[m]=G}return O};var vmm,KF8,$K9,Fv,rh_,RL$,iWU,xKH,qHH,UK2,tQm,WFU,ZWU,zLs,Jh8,VQs,bWs,nmC,XLU,f2u,hLs,Tm8,gm9,u$8,jr9,I2s,pLu,SHe,Em2,RUz,LFe,Cp_,om_,l2u,a29,kj_,yhm,chm,YHe,dKp,r4O,wLo,eLC,DKu,sr9,Nm$,PpH,FFe,Ahu,Oxp,mfU,GFj,Bae,Q0U,Hx8,vUH,V0,KcC,$fm,MCp,rWU,Ru$,ix8,xfU,q5H,Ufs,tCC,Wc8,Zxu,zu2,JWe,VC9,bxU,nU3,Xop,fSH,$aN,hu3,Ta2,gU8,uO9,j02,IS9,poe,S59,EUU,Lc$,C38,oUu,lSm,aS_,kF3,yW_,cWu,Y5s,df9,wo8,eu9,DfU,s08,Nap,P3H;vmm=["account/accounts_list"];KF8=["acknowledge_channel_tou_strike"];$K9=["notification/add_upcoming_event_reminder"];
_.MQ3=["att/get"];Fv=["browse","music/browse","unplugged/browse"];rh_=["channel/claim_legacy_youtube_channel"];RL$=["history/clear_search_history"];iWU=["history/clear_watch_history"];xKH=["comment/perform_comment_action"];qHH=["comment/get_comment_replies"];UK2=["ypc/commerce_action"];tQm=["backstage/create_post"];WFU=["live/create_broadcast"];ZWU=["channel/create_channel"];zLs=["comment/create_comment_reply"];Jh8=["comment/create_comment"];VQs=["live_chat/create_poll"];bWs=["playlist/create"];
nmC=["decorate_message"];XLU=["live_chat/delete_message"];f2u=["playlist/delete"];hLs=["video/delete"];Tm8=["like/dislike"];gm9=["dismissal/dismiss"];u$8=["flag/flag"];jr9=["flow"];I2s=["account/account_menu"];pLu=["playlist/get_add_to_playlist"];SHe=["get_answer"];Em2=["channel/get_channel_creation_form"];RUz=["offline/get_download_action"];LFe=["kids/get_kids_blocklist_picker"];Cp_=["live_chat/get_item_context_menu"];om_=["live_chat/get_live_chat_message_buy_flow"];l2u=["live_chat/get_live_chat_replay"];
a29=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];kj_=["live_chat/get_live_chat_super_sticker_buy_flow"];yhm=["notification/get_notification_menu"];chm=["playlist/get_settings_editor"];YHe=["backstage/get_post_video_preview"];dKp=["account/get_profile_card"];r4O=["share/get_share_panel"];wLo=["share/get_sharing_provider_data"];eLC=["get_survey"];DKu=["notification/get_unseen_count"];sr9=["get_user_mention_suggestions"];Nm$=["get_watch"];PpH=["guide"];
FFe=["feedback"];Ahu=["kids/update_blacklist"];Oxp=["like/like"];mfU=["live_chat/live_chat_action"];GFj=["live_chat/manage_user"];Bae=["video_manager/metadata_update"];Q0U=["live_chat/moderate"];Hx8=["notification/modify_channel_preference"];vUH=["notification/opt_out"];V0=["get_panel","get_posts_by_host_panel"];KcC=["player"];$fm=["browse/edit_playlist"];MCp=["notification/record_interactions"];rWU=["reel/reel_item_watch"];Ru$=["reel/reel_watch_sequence"];ix8=["like/removelike"];xfU=["notification/remove_upcoming_event_reminder"];
q5H=["flag/get_form"];Ufs=["miniapp/report_value"];tCC=["navigation/resolve_url"];Wc8=["channel/reveal_business_email"];Zxu=["in_video/search"];zu2=["search","sfv/search","unplugged/search"];JWe=["live_chat/send_message"];VC9=["live_chat/send_live_chat_vote"];bxU=["account/set_setting"];nU3=["submit_caption_correction"];Xop=["submit_form"];fSH=["subscription/subscribe"];$aN=["get_transcript"];hu3=["resolve_location","unplugged/resolve_location"];Ta2=["subscription/unsubscribe"];gU8=["backstage/update_post"];
uO9=["channel_edit/update_channel_page_settings"];j02=["comment/update_comment_reply"];IS9=["comment/update_comment"];poe=["comment/update_comments_settings"];S59=["creator/update_creator_channel"];EUU=["pdg/update_enablement"];Lc$=["updated_metadata"];C38=["channel_edit/validate_channel_handle"];oUu=["verify_age"];lSm=["next","unplugged/watch_next"];aS_=["whitelist/edit"];kF3=["ypc/cancel_recurrence"];yW_=["ypc/complete_transaction"];cWu=["ypc/get_cart"];Y5s=["ypc/get_fix_instrument_params"];
df9=["ypc/get_offers"];wo8=["ypc/get_payment_instruments_params"];eu9=["ypc/handle_transaction"];DfU=["ypc/log_payment_server_analytics"];s08=["ypc/pause_subscription"];Nap=["ypc/redeem_code"];P3H=["ypc/resume_subscription"];var Fcp=[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,276243,93911,274188,106531,257234,252598,252597,252600,252599,252596,225031,177843,
27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,
83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,
243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,
121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,
98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,
17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,
242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,
191885,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,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,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,
78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,
235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var nr=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.HI("yt.msgs_",nr);var bR=new _.Us("ACTION_ROUTER_TOKEN");_.nK=function(){this.autonavState_=_.V("kevlar_is_pupi_enabled")?2:yxI()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.nK.prototype.getState=function(){return this.autonavState_};
_.nK.prototype.pause=function(O){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=O):this.autonavState_==1&&(this.disabledAutonavPauseReason_=O)};
_.nK.prototype.setState=function(O,m,G){m&&(this.autoplayChangedByUser=!0);m=this.autonavState_===3||O===3;this.autonavState_!=O&&(this.autonavState_=O,O!=3&&_.cx6(O==2),O=_.V("kevlar_is_pupi_enabled")?G||m:!0,_.sJ.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,O,G))};
_.nK.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Kq(_.nK);var XW=function(){this.hasRun=!1};var fK={},OGs=(fK.auto_search="LATENCY_ACTION_AUTO_SEARCH",fK.ad_to_ad="LATENCY_ACTION_AD_TO_AD",fK.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",fK.app_startup="LATENCY_ACTION_APP_STARTUP",fK.browse="LATENCY_ACTION_BROWSE",fK.cast_splash="LATENCY_ACTION_CAST_SPLASH",fK.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",fK.channels="LATENCY_ACTION_CHANNELS",fK.chips="LATENCY_ACTION_CHIPS",fK.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",fK.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
fK.editor="LATENCY_ACTION_EDITOR",fK.embed="LATENCY_ACTION_EMBED",fK.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",fK.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",fK.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",fK.explore="LATENCY_ACTION_EXPLORE",fK.favorites="LATENCY_ACTION_FAVORITES",fK.home="LATENCY_ACTION_HOME",fK.inboarding="LATENCY_ACTION_INBOARDING",fK.landing="LATENCY_ACTION_LANDING",fK.learning="LATENCY_ACTION_LEARNING",
fK.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",fK.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",fK.library="LATENCY_ACTION_LIBRARY",fK.live="LATENCY_ACTION_LIVE",fK.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",fK.management="LATENCY_ACTION_MANAGEMENT",fK.mini_app="LATENCY_ACTION_MINI_APP_PLAY",fK.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",fK.onboarding="LATENCY_ACTION_ONBOARDING",fK.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
fK.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",fK.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",fK.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",fK.prebuffer="LATENCY_ACTION_PREBUFFER",fK.prefetch="LATENCY_ACTION_PREFETCH",fK.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",fK.profile_switcher="LATENCY_ACTION_LOGIN",fK.projects="LATENCY_ACTION_PROJECTS",fK.reel_watch="LATENCY_ACTION_REEL_WATCH",fK.results="LATENCY_ACTION_RESULTS",fK.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
fK.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",fK.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",fK.review="LATENCY_ACTION_REVIEW",fK.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",fK.search_ui="LATENCY_ACTION_SEARCH_UI",fK.search_suggest="LATENCY_ACTION_SUGGEST",fK.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",fK.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",fK.seek="LATENCY_ACTION_PLAYER_SEEK",fK.settings="LATENCY_ACTION_SETTINGS",fK.store="LATENCY_ACTION_STORE",
fK.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",fK.tenx="LATENCY_ACTION_TENX",fK.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",fK.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",fK.watch="LATENCY_ACTION_WATCH",fK.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",fK["watch,watch7"]="LATENCY_ACTION_WATCH",fK["watch,watch7_html5"]="LATENCY_ACTION_WATCH",fK["watch,watch7ad"]="LATENCY_ACTION_WATCH",fK["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",fK.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
fK.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",fK.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",fK.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",fK.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",fK.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",fK.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",fK.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",fK),U4s=0;var VL6=function(O,m){kI.call(this,1,arguments);this.timer=m};
_.X(VL6,kI);var Jep=new ViY("aft-recorded",VL6);var QiO=_.Qf.ytLoggingGelSequenceIdObj_||{};_.HI("ytLoggingGelSequenceIdObj_",QiO);var hQ=_.Qf.ytLoggingLatencyUsageStats_||{};_.HI("ytLoggingLatencyUsageStats_",hQ);var T_=function(){this.cleanupJob=0},KOM=function(){T_.instance||(T_.instance=new T_);
return T_.instance};
_.v=T_.prototype;_.v.baseline=function(O,m,G){uR(this,"baseline_"+O)||_.LE("latencyActionBaselined",{clientActionNonce:O},{timestamp:m,cttAuthInfo:G})};
_.v.tick=function(O,m,G,B){uR(this,"tick_"+O+"_"+m)||_.LE("latencyActionTicked",{tickName:O,clientActionNonce:m},{timestamp:G,cttAuthInfo:B})};
_.v.info=function(O,m,G){var B=Object.keys(O).join("");uR(this,"info_"+B+"_"+m)||(O=Object.assign({},O),O.clientActionNonce=m,_.LE("latencyActionInfo",O,{cttAuthInfo:G}))};
_.v.jspbInfo=function(O,m,G){for(var B="",Q=0;Q<CB(O).length;Q++)CB(O)[Q]!==void 0&&(B=Q===0?B.concat(""+Q):B.concat("_"+Q));uR(this,"info_"+B+"_"+m)||(_.SS(O,2,m),m={cttAuthInfo:G},G=_.V("jspb_sparse_encoded_pivot")?new gE([{}]):new gE,_.g5(G,7,Ifo,O),HGN("latencyActionInfo",G,m))};
_.v.span=function(O,m,G){var B=Object.keys(O).join("");uR(this,"span_"+B+"_"+m)||(O.clientActionNonce=m,_.LE("latencyActionSpan",O,{cttAuthInfo:G}))};
var uR=function(O,m){hQ[m]=hQ[m]||{count:0};var G=hQ[m];G.count++;G.time=(0,_.$G)();O.cleanupJob||(O.cleanupJob=_.uT(_.ln,function(){var B=(0,_.$G)(),Q;for(Q in hQ)hQ[Q]&&B-hQ[Q].time>6E4&&delete hQ[Q];O&&(O.cleanupJob=0)},5E3));
return G.count>5?(G.count===6&&Math.random()*1E5<1&&(G=new _.j9("CSI data exceeded logging limit with key",m.split("_")),m.indexOf("plev")>=0||_.ay(G)),!0):!1};var AWC,O5$;AWC=window;O5$=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.pr=AWC.performance||AWC.mozPerformance||AWC.msPerformance||AWC.webkitPerformance||new O5$;var zes=!1,MLY=!1,bGe=(0,_.pd)(_.pr.clearResourceTimings||_.pr.webkitClearResourceTimings||_.pr.mozClearResourceTimings||_.pr.msClearResourceTimings||_.pr.oClearResourceTimings||_.ID,_.pr);var mb_=window;mb_.ytcsi&&(mb_.ytcsi.infoGel=_.as,mb_.ytcsi.tick=_.cd);var So5=function(O){kI.call(this,1,arguments);this.csn=O};
_.X(So5,kI);var hSp=new ViY("screen-created",So5),N25=[],pKN=siN,P8S=0,DY=new Map,ELI=new Map,LOr=new Map;var wa5=Symbol("Af"),Hq=new WeakMap;var jI=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Ip=function(){jI.instance||(jI.instance=new jI);
return jI.instance};
_.v=jI.prototype;_.v.setClient=function(O){this.client=O};
_.v.JSC$12571_newScreen=function(){this.clear();this.csn=_.yA()};
_.v.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.v.reportShown=function(O,m,G){var B=this.JSC$12571_getTrackingParams(O),Q=O.visualElement?O.visualElement:B;m=this.shownElements.has(Q);var H=this.visibleState.get(Q);this.shownElements.add(Q);this.visibleState.set(Q,!0);O.impressionLog&&!m&&O.impressionLog();if(B||O.visualElement)if(G=Gao(this,O,G))if(Q=BO8(this,O),IS(this,O)||Q){B=O.visualElement?O.visualElement:_.Ez(B);var M=O.interactionLoggingClientData;Q||m?IS(this,O)&4?H||Yoe(this.client,G,B,M):IS(this,O)&1&&!m&&kv6(this.client,G,B,M):kv6(this.client,
G,B,M)}};
_.v.reportHidden=function(O,m,G){var B=this.JSC$12571_getTrackingParams(O),Q=O.visualElement?O.visualElement:B;m=this.hiddenElements.has(Q);var H=this.visibleState.get(Q);this.hiddenElements.add(Q);this.visibleState.set(Q,!1);if(H===!1)return!0;if(!B&&!O.visualElement)return!1;G=Gao(this,O,G);if(!G||!IS(this,O)&&BO8(this,O))return!1;B=O.visualElement?O.visualElement:_.Ez(B);IS(this,O)&8?d4I(this.client,G,B):IS(this,O)&2&&!m&&(O=this.client,m=eY({cttAuthInfo:cr(G)||void 0},G),B={csn:G,ve:B.getAsJson(),
eventType:2},G==="UNDEFINED_CSN"?NC("visualElementHidden",m,B):O?S0("visualElementHidden",B,O,m):_.LE("visualElementHidden",B,m));return!0};
_.v.JSC$12571_getTrackingParams=function(O){var m=this.getData(O),G,B;if(_.V("il_use_view_model_logging_context")&&(m==null?0:(G=m.context)==null?0:(B=G.loggingContext)==null?0:B.loggingDirectives))return m.context.loggingContext.loggingDirectives.trackingParams||"";var Q,H;if(m==null?0:(Q=m.rendererContext)==null?0:(H=Q.loggingContext)==null?0:H.loggingDirectives)return m.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(m==null?0:m.loggingDirectives)return m.loggingDirectives.trackingParams||
"";var M;return((M=O.veContainer)==null?0:M.trackingParams)?O.veContainer.trackingParams:(m==null?void 0:m.trackingParams)||""};
_.v.JSC$12571_elementShouldLogGesture=function(O,m){O=this.getData(O);return!!((Math.floor(Number(O&&O.loggingDirectives&&O.loggingDirectives.gestures&&O.loggingDirectives.gestures.types||""))||0)&m)};
_.v.JSC$12571_getNearestParentVe=function(O){var m=this.JSC$12571_getTrackingParams(O);return O.visualElement?O.visualElement:m?_.Ez(m):O.parentElement?this.JSC$12571_getNearestParentVe(O.parentElement):null};
var Gao=function(O,m,G){var B=_.yA(G);return O.csn===null||B===O.csn||G?B:(O=new _.j9("VisibilityLogger called before newScreen",{caller:m.tagName,previous_csn:O.csn,current_csn:B}),_.ay(O),null)};
jI.prototype.getData=function(O){var m,G=O.data||((m=O.props)==null?void 0:m.data);if(!G||O.isWebComponentWrapper){var B;G=(B=Hq.get(O))==null?void 0:B[wa5]}return G};
var BO8=function(O,m){var G;return!((G=O.getData(m))==null||!G.loggingDirectives)},IS=function(O,m){O=O.getData(m);
return Math.floor(Number(O&&O.loggingDirectives&&O.loggingDirectives.visibility&&O.loggingDirectives.visibility.types||""))||1};var pK;pK=function(){};
_.TS=function(){pK.instance||(pK.instance=new pK);return pK.instance};
pK.prototype.setClient=function(O){_.wi(Ip().setClient).bind(Ip())(O)};
_.QUs=function(){_.TS();_.wi(Ip().JSC$12571_newScreen).bind(Ip())()};
pK.prototype.clear=function(){_.wi(Ip().clear).bind(Ip())()};
pK.prototype.reportShown=function(O,m,G){_.wi(Ip().reportShown).bind(Ip())(O,m,G)};
pK.prototype.reportHidden=function(O,m,G){return _.wi(Ip().reportHidden).bind(Ip())(O,m,G)};
var J9Y=function(O,m){return _.wi(Ip().JSC$12571_getTrackingParams).bind(Ip())(m)},eQf=function(O,m){return _.wi(Ip().JSC$12571_getNearestParentVe).bind(Ip())(m)};var SI,H52;SI=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};
_.uK=function(){SI.instance||(SI.instance=new SI);return SI.instance};
SI.prototype.setClient=function(O){this.client=O};
H52=function(O,m,G){G=G===void 0?{}:G;_.wi(function(){var B,Q,H,M=((B=_.b(m==null?void 0:m.commandMetadata,_.bP))==null?void 0:B.rootVe)||((Q=_.b(m==null?void 0:m.commandMetadata,wvC))==null?void 0:(H=Q.screenVisualElement)==null?void 0:H.uiType);if(M){B=_.b(m==null?void 0:m.commandMetadata,oz_);if(B==null?0:B.parentTrackingParams){var R=_.Ez(B.parentTrackingParams);if(B.parentCsn)var x=B.parentCsn}else G.clickedVisualElement?R=G.clickedVisualElement:m.clickTrackingParams&&(R=_.Ez(m.clickTrackingParams));
a:{B=_.b(m,_.GC);Q=_.b(m,LFp);if(B){if(Q=Yif(B,"VIDEO")){B={token:Q,videoId:B.videoId};break a}}else if(Q&&(B=Yif(Q,"PLAYLIST"))){B={token:B,playlistId:Q.playlistId};break a}B=void 0}G=Object.assign({},{cttAuthInfo:B,parentCsn:x},G);if(_.V("expectation_logging")){var t;G.loggingExpectations=((t=_.b(m==null?void 0:m.commandMetadata,wvC))==null?void 0:t.loggingExpectations)||void 0}_.E1(O,M,R,G)}else _.ay(new _.j9("Error: Trying to create a new screen without a rootVeType",m))})()};
_.E1=function(O,m,G,B){B=B===void 0?{}:B;_.wi(function(){Fcp.includes(m)||(_.ay(new _.j9("createClientScreen() called with a non-page VE",m)),m=83769);B.isHistoryNavigation||(O.forwardHistoryStack=[],O.backHistoryStack.push({rootVe:m,key:B.key||""}));O.graftQueue=[];O.stateChangedQueue=[];B.dataPromises?vS$(O,m,G,B):K1o(O,m,G,B)})()};
_.$bs=function(O,m,G){G=G===void 0?0:G;_.wi(function(){m.then(function(B){O.pendingScreenCreation.has(G)&&O.pendingScreenFn&&O.pendingScreenFn();var Q=_.yA(G),H=_.kf(G);if(Q&&H){var M={automatedLogEventSource:3},R;(B==null?0:(R=B.response)==null?0:R.trackingParams)&&sB(O.client,Q,H,_.Ez(B.response.trackingParams),!1,M);var x;(B==null?0:(x=B.playerResponse)==null?0:x.trackingParams)&&sB(O.client,Q,H,_.Ez(B.playerResponse.trackingParams),!1,M)}})})()};
SI.prototype.graftServerVe=function(O,m,G){var B=this;return _.wi(function(){var Q=_.Ez(O);_.LK(B,Q,m,G);return Q})()};
_.DUz=function(O,m,G,B){return _.V("enable_client_ve_spec")&&m.clientVeSpec?(m=_.Zv(m.clientVeSpec.uiType,void 0,m.clientVeSpec.elementIndex,m.clientVeSpec.clientYoutubeData,void 0,m),_.LK(O,m,G,B)?m:null):m.trackingParams?O.graftServerVe(m.trackingParams,G,B):null};
_.gu=function(O,m,G,B){return _.wi(function(){if(!m.veType)return _.lT(new _.j9("Error: Trying to graft a client VE without a veType.")),null;if(m.visibilityTypes){var Q=m.visibilityTypes.reduce(function(H,M){return H|M});
Q={visibility:{types:String(Q)}}}Q=_.Zv(m.veType,m.visualElement,m.elementIndex,m.clientYouTubeData,void 0,Q);return _.LK(O,Q,G,B)?Q:null})()};
_.LK=function(O,m,G,B){B=B===void 0?0:B;return _.wi(function(){if(O.pendingScreenCreation.has(B))return O.graftQueue.push([m,G]),!0;var Q=_.yA(B),H=G||_.kf(B);if(Q&&H){if(_.V("combine_ve_grafts")){var M=O.cachedVisualElements.get(H.toString());M?M.push(m):(O.cachedRootVisualElements.set(H.toString(),H),O.cachedVisualElements.set(H.toString(),[m]));O.attachTimeout||(O.attachTimeout=_.uT(_.ln,function(){MF2(O,Q)},1200))}else sB(O.client,Q,H,m);
return!0}return!1})()};
_.CK=function(O,m,G){G=G===void 0?0:G;var B=O.recurringGrafts.get(G)||new Map;if(_.V("smarter_ve_dedupping"))for(var Q=Array.from(B.keys()),H=0;H<Q.length;H++){var M=void 0,R=void 0;var x=m;var t=Q[H];t.isClientVe()&&x.isClientVe()?(M=x.getAsJson(),R=t.getAsJson(),x=M.veType!==R.veType||M.elementIndex!==R.elementIndex||M.dataElement!==R.dataElement||x.getLoggingDirectives()!==t.getLoggingDirectives()?!1:!0):x=t.veData.trackingParams!==void 0&&x.veData.trackingParams!==void 0?((R=x.veData)==null?void 0:
R.trackingParams)===((M=t.veData)==null?void 0:M.trackingParams):!1;if(x)return}else if(B.has(m))return;B.set(m,void 0);O.recurringGrafts.set(G,B);_.yA(G)==="UNDEFINED_CSN"||O.pendingScreenCreation.has(G)||_.LK(O,m,void 0,G)};
_.oS=function(O,m,G,B){B=_.yA(B===void 0?0:B);if(!B)return!1;eee(O.client,B,m,G);return!0};
_.lR=function(O,m,G,B){if(!m)return!1;B=_.yA(B===void 0?0:B);if(!B)return!1;eee(O.client,B,_.Ez(m),G);return!0};
_.P6=function(O,m){var G=m.getScreenLayer&&m.getScreenLayer();if(m.visualElement)return _.oS(O,m.visualElement,void 0,G);m=J9Y(_.TS(),m);return _.lR(O,m,void 0,G)};
SI.prototype.clickCommand=function(O,m,G){return _.lR(this,O.clickTrackingParams,m,G===void 0?0:G)};
SI.prototype.stateChanged=function(O,m,G){this.visualElementStateChanged(_.Ez(O),m,G===void 0?0:G)};
SI.prototype.visualElementStateChanged=function(O,m,G){G=G===void 0?0:G;G===0&&this.pendingScreenCreation.has(G)?this.stateChangedQueue.push([O,m]):this.logStateChanged(O,m,G)};
SI.prototype.logStateChanged=function(O,m,G){G=G===void 0?0:G;var B=_.yA(G);O=O||_.kf(G);return B&&O?(D4z(this.client,B,O,m),!0):!1};
var vS$=function(O,m,G,B){B=B===void 0?{}:B;O.pendingScreenCreation.add(B.layer||0);O.pendingScreenFn=function(){K1o(O,m,G,B);var M=_.kf(B.layer);if(M){for(var R=_.K(O.graftQueue),x=R.next();!x.done;x=R.next())x=x.value,_.LK(O,x[0],x[1]||M,B.layer);M=_.K(O.stateChangedQueue);for(R=M.next();!R.done;R=M.next())R=R.value,O.logStateChanged(R[0],R[1])}};
G||_.yA(B.layer)||O.pendingScreenFn();if(B.dataPromises)for(var Q=_.K(B.dataPromises),H=Q.next();!H.done;H=Q.next())_.$bs(O,H.value,B.layer);else _.oy(Error("Bf"))},K1o=function(O,m,G,B){B=B===void 0?{}:B;
var Q=void 0;B.layer||(B.layer=0);Q=B.parentLayer!==void 0?B.parentLayer:B.layer;var H=_.yA(Q);Q=_.kf(Q);var M=G||Q,R;M&&(B.parentCsn!==void 0?R={clientScreenNonce:B.parentCsn,visualElement:M}:H&&H!=="UNDEFINED_CSN"&&(R={clientScreenNonce:H,visualElement:M}));var x,t=_.kB("EVENT_ID");H==="UNDEFINED_CSN"&&t&&(x={servletData:{serializedServletEventId:t}});_.V("combine_ve_grafts")&&H&&MF2(O,H);_.V("no_client_ve_attach_unless_shown")&&M&&H&&amN(M,H);try{var W=_.C8Y(O.client,m,R,B.csnToClone,B.cttAuthInfo,
x,B.implicitGestureType,void 0,B.loggingExpectations)}catch(J){_.kt(J,{rootVeType:m,rootVe:Q,parentVisualElement:G,currentCsn:H,parentEl:R,csnToClone:B.csnToClone});_.oy(J);return}_.Yf(W,m,B.layer,B.cttAuthInfo);H&&H!=="UNDEFINED_CSN"&&Q&&!ebN(H)&&d4I(O.client,H,Q,!0);O.backHistoryStack[O.backHistoryStack.length-1]&&!O.backHistoryStack[O.backHistoryStack.length-1].csn&&(O.backHistoryStack[O.backHistoryStack.length-1].csn=W||"");_.as({clientScreenNonce:W});_.QUs();var Z=_.kf(B.layer);H&&H!=="UNDEFINED_CSN"&&
Z&&(_.V("web_mark_root_visible")||_.V("music_web_mark_root_visible"))&&_.AK(W,Z);O.pendingScreenCreation.delete(B.layer||0);O.pendingScreenFn=void 0;var z;(z=O.recurringGrafts.get(B.layer))==null||z.forEach(function(J,n){J?_.LK(O,n,J,B.layer):Z&&_.LK(O,n,Z,B.layer)});
rTu(O)},rTu=function(O){for(var m=0;m<O.afterNewScreenOneOffJobs.length;m++){var G=O.afterNewScreenOneOffJobs[m];
try{G()}catch(B){_.oy(B)}}for(m=O.afterNewScreenOneOffJobs.length=0;m<O.afterNewScreenRecurringJobs.length;m++){G=O.afterNewScreenRecurringJobs[m];try{G()}catch(B){_.oy(B)}}},MF2=function(O,m){if(m===void 0)for(var G=d$5(),B=0;B<G.length;B++)G[B]!==void 0&&MF2(O,G[B]);
else O.cachedVisualElements.forEach(function(Q,H){(H=O.cachedRootVisualElements.get(H))&&oLe(O.client,m,H,Q)}),O.cachedVisualElements.clear(),O.cachedRootVisualElements.clear(),O.attachTimeout=void 0};var aS=function(O){O=O===void 0?{layer:0}:O;this.hasRun=!1;this.createScreenConfig=O;O={};this.gBI=(O.response=!1,O.playerResponse=!1,O)};
_.X(aS,XW);aS.prototype.validate=function(O){return!(!O.data||!O.data.response&&!O.data.playerResponse)};
aS.prototype.handle=function(O){var m=_.uK(),G=this.createScreenConfig.layer;O.data.response&&O.data.response.trackingParams&&!this.gBI.response&&(m.graftServerVe(O.data.response.trackingParams,void 0,G),this.gBI.response=!0);O.data.playerResponse&&O.data.playerResponse.trackingParams&&!this.gBI.playerResponse&&(m.graftServerVe(O.data.playerResponse.trackingParams,void 0,G),this.gBI.playerResponse=!0)};var kz=function(){this.hC=_.m3();this.qH=[];this.qSl=0};
kz.prototype.processChunk=function(O){if(O){for(var m=_.K(this.qH),G=m.next();!G.done;G=m.next())G=G.value,G.validate(O)&&(G.handle(O),G.hasRun=!0);_.cd("np"+this.qSl);this.qSl++}};var vq={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[]};var i5C=function(){var O=Rs2;this.observers=[];this.value=O};
_.v=i5C.prototype;_.v.subscribe=function(O){var m=this;if(O.idx!=null)throw Error("Df");O.idx=this.observers.length;this.observers.push(O);return function(){var G=m.observers[m.observers.length-1];m.observers[O.idx]=G;G.idx=O.idx;m.observers.pop()}};
_.v.update=function(O){this.value=O(this.value);this.notify()};
_.v.mutate=function(O){O(this.value);this.notify()};
_.v.set=function(O){this.value=O;this.notify()};
_.v.notify=function(){for(var O=_.K(this.observers),m=O.next();!m.done;m=O.next()){m=m.value;try{m(this.value)}catch(G){}}};var UYI,xbu,tF2;_.XJ=function(O,m,G,B,Q,H,M){M=M===void 0?[]:M;this.buildCommandPayload=O;this.navigate=m;this.handleServiceRequest=G;this.sendAction=B;this.JSC$12617_screenManager=Q;this.commandResolverMap=H;this.autoLogResolverAllowlist=M;this.pendingCommands=new Set;this.isTracingEnabled=!1;xbu(this)};
UYI=function(O,m,G){var B=mYS,Q=Gq6,H=_.uK(),M=qM_;G=G===void 0?[]:G;_.XJ.instance=new _.XJ(O,m,B,Q,H,M,G)};
xbu=function(O){if(!O.isTracingEnabled&&AeN("command")){var m=O.resolveCommand;O.resolveCommand=function(G,B){a:{for(Q in G)if(Object.prototype.hasOwnProperty.call(G,Q)){var Q={commandType:Q};break a}Q={}}return mcN("command",Q,m.bind(this,G,B))};
O.isTracingEnabled=!0}};
tF2=function(O,m,G){if(!O.commandResolverMap)return!1;var B=v4s(m,O.commandResolverMap);return B?((O.autoLogResolverAllowlist.some(function(Q){return!!_.b(m,Q)})||(G==null?0:G.forceClickLogging))&&UbU(O,m,G),B instanceof Promise?B.then(function(Q){Q.resolve(m,G)}):B.resolve(m,G),!0):!1};
_.XJ.prototype.resolveCommand=function(O,m){var G=this,B=W1m(O);if(tF2(this,O,m))return!0;if(B)return Z5j(this,O,m);if(!this.buildCommandPayload)return BTN(O,"Unhandled command by buildCommandPayload"),!1;var Q=this.buildCommandPayload(O,m);if(m==null?0:m.commandController)Q.commandController=m.commandController;if(Q.type===0){if(!this.navigate)return QCp(O,"navigate"),!1;if(!zsH(Q.command))return BTN(O,"Page requests need to specify a url"),!1;_.V("logging_avoid_blocking_during_navigation")&&_.rtr().transition("application_navigating");
O=this.navigate(Q)||[];JYp(O).then(function(){G.pendingCommands.delete(Q.command)});
return!0}if(Q.type===1){if(!this.handleServiceRequest)return QCp(O,"handleServiceRequest"),!1;(m==null?0:m.forceClickLogging)&&UbU(this,Q.command,m);O=this.handleServiceRequest(Q);JYp(O).then(function(){G.pendingCommands.delete(Q.command)});
return!0}if(Q.type===2){if(!this.sendAction)return QCp(O,"sendAction"),!1;UbU(this,Q.command,m);this.sendAction(Q);return!0}return!1};
var UbU=function(O,m,G){if((G==null||!G.disableClickTracking)&&O.JSC$12617_screenManager)if(m.clickTrackingParams&&_.V("log_click_with_layer_from_element_in_command_handler")){var B;G=G==null?void 0:(B=G.form)==null?void 0:B.element;O.JSC$12617_screenManager.clickCommand(m,null,G&&G.getScreenLayer&&G.getScreenLayer())}else m.clickTrackingParams?O.JSC$12617_screenManager.clickCommand(m):!_.V("disable_clicked_visual_element_in_command_handler")&&(G==null?0:G.clickedVisualElement)&&_.oS(O.JSC$12617_screenManager,
G.clickedVisualElement)},W1m=function(O){var m=!!_.b(O,_.zC),G;
O=((G=_.b(O,_.Vs))==null?void 0:G.signal)==="CLIENT_SIGNAL";return m||O},Z5j=function(O,m,G){var B=_.b(m,_.zC);
if(B)var Q=(B==null?void 0:B.commands)||[];else{var H;if(((H=_.b(m,_.Vs))==null?void 0:H.signal)==="CLIENT_SIGNAL"){var M;Q=((M=_.b(m,_.Vs))==null?void 0:M.actions)||[]}}if(Q){m=_.K(Q);for(Q=m.next();!Q.done;Q=m.next()){Q=Q.value;try{O.resolveCommand(Q,G)}catch(R){R instanceof Error&&_.oy(R)}}return!0}BTN(m,"Could not handle the meta command");return!1},zsH=function(O){var m;
return!((m=_.b(O==null?void 0:O.commandMetadata,_.bP))==null||!m.url)};var y0=function(){XW.apply(this,arguments)};
_.X(y0,XW);y0.prototype.validate=function(O){var m,G;return!this.hasRun&&!!((m=O.data.response)==null?0:(G=m.onResponseReceivedEndpoints)==null?0:G.length)};
y0.prototype.handle=function(O){var m=_.XJ.instance;O=_.K(O.data.response.onResponseReceivedEndpoints);for(var G=O.next();!G.done;G=O.next())m.resolveCommand(G.value)};var JT2,VFU,b5$;
JT2=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=_.ZY();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.c3=function(){VFU||(VFU=new JT2);return VFU};
b5$=function(){var O=_.c3();O.miniplayerButtonActivation=!1;O.userActivation=!1;O.playlistWatchPageActivation=!1;O.productDetailsPageActivation=!1;O.miniAppPageActivation=!1;O.playablesDestPageActivation=!1;O.lockupActivation=!1;O.showMiniplayerCommandActivation=!1;O.playlistSuggestionsShelfActivation=!1;O.mediaSessionPipActivation=!1;O.watchPipActivation=!1;O.watchWhileActivation=!1;O.shortsPipActivation=!1};
_.nS8=function(){var O=_.c3(),m=O.mediaSessionPipActivation,G=O.watchPipActivation,B=O.watchWhileActivation,Q=O.playlistWatchPageActivation,H=O.lockupActivation,M=O.showMiniplayerCommandActivation,R=O.navigatingAwayFromWatchDeletedVideo,x=O.shortsPipActivation,t=O.playlistSuggestionsShelfActivation,W=O.productDetailsPageActivation,Z=O.miniAppPageActivation,z=O.playablesDestPageActivation;return!O.miniplayerButtonActivation&&!Q&&!t&&!W&&!Z&&!z&&!H&&!M&&!m&&!G&&!B&&!x||R};var xH6;_.Yz=_.$s("FEwhat_to_watch","/",3854);_.qyf=_.$s("FEdownloads","/feed/downloads",42352);xH6=_.$s("FEmusic_offline","browse/FEmusic_offline",42352);var vX=function(O,m){m=m===void 0?[]:m;var G=G===void 0?[]:G;m=hIs.apply(null,[T6p.apply(null,_.lS(m))].concat(_.lS(G)));this.store=IrY(O,void 0,m)};
vX.prototype.getState=function(){return this.store.getState()};
vX.prototype.dispatch=function(O){return this.store.dispatch(O)};
vX.prototype.subscribe=function(O){return this.store.subscribe(O)};
vX.prototype.replaceReducer=function(O){return this.store.replaceReducer(O)};
vX.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.dc=function(O,m,G){var B=m(O.getState());return O.subscribe(function(){var Q=m(O.getState());if(Q!==B){var H=B;B=Q;G(Q,H)}})};var PqI;_.jh=function(O,m,G){return _.xs({type:"REPLACE_ENTITY",payload:{entityPayload:G,entityType:O,key:m}})};
PqI=function(O){return _.xs({type:"REPLACE_ENTITIES",payload:O})};
_.Cz=function(O,m,G,B){return _.xs({type:"UPDATE_ENTITY",payload:{entityPayload:G,entityType:O,key:m,mergeOption:B}})};var z5O=function(O){var m=this;O=O===void 0?[]:O;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;O.forEach(function(G){m.append(G)})};
_.v=z5O.prototype;_.v.getLength=function(){return this.totalLength};
_.v.append=function(O){var m=this.arrays.length===0?!1:(m=this.arrays[this.arrays.length-1])&&m.buffer===O.buffer&&m.byteOffset+m.length===O.byteOffset;m?(m=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(m.buffer,m.byteOffset,m.length+O.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(O);this.totalLength+=O.length};
_.v.split=function(O){for(var m=new z5O,G=new z5O,B=_.K(this.arrays),Q=B.next();!Q.done;Q=B.next())Q=Q.value,O>=Q.length?(m.append(Q),O-=Q.length):O?(m.append(new Uint8Array(Q.buffer,Q.byteOffset,O)),G.append(new Uint8Array(Q.buffer,Q.byteOffset+O,Q.length-O)),O=0):G.append(Q);return{headView:m,tailView:G}};
_.v.extract=function(O,m){return this.split(O).tailView.split(m).headView};
_.v.isFocused=function(O){return O>=this.arrayPos&&O<this.arrayPos+this.arrays[this.arrayIdx].length};
_.v.focus=function(O){if(!this.isFocused(O))for(O<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=O&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var XPm=function(O,m){O.focus(m);return O.arrays[O.arrayIdx][m-O.arrayPos]};(function(){var O=function(B){return new Uint8Array(B)},m=function(B){for(var Q=new Uint8Array(B.length),H=0;H<B.length;H++)Q[H]=B[H];
return Q},G=new Uint8Array([1]);
return G.length===1&&G[0]===1?O:m})();
var xcY=Array(1024),ije=window.TextDecoder?new TextDecoder:void 0,Ucz=window.TextEncoder?new TextEncoder:void 0;var ZjI=function(O){this.arrayView=O;this.pos=0;this.pendingTagAndType=-1},qo=function(O){var m=XPm(O.arrayView,O.pos);
++O.pos;if(m<128)return m;for(var G=m&127,B=1;m>=128;)m=XPm(O.arrayView,O.pos),++O.pos,B*=128,G+=(m&127)*B;return G},JfY=function(O,m){var G=O.pendingTagAndType;
for(O.pendingTagAndType=-1;O.pos+1<=O.arrayView.totalLength;){G<0&&(G=qo(O));var B=G>>3,Q=G&7;if(B===m)return!0;if(B>m){O.pendingTagAndType=G;break}G=-1;switch(Q){case 0:qo(O);break;case 1:O.pos+=8;break;case 2:B=qo(O);O.pos+=B;break;case 5:O.pos+=4}}return!1};var bjN=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=WtN(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},zk=function(O,m){m=O.pos+m;
if(!(O.buf.length>=m)){for(var G=O.buf.length*2;G<m;)G*=2;O.buf=WtN(G,O.wasm,O.buf.subarray(0,O.pos));O.view=new DataView(O.buf.buffer,O.buf.byteOffset,O.buf.byteLength)}},ta=function(O,m){if(m>268435455){zk(O,4);
for(var G=m&1073741823,B=0;B<4;B++)O.view.setUint8(O.pos,G&127|128),G>>=7,O.pos+=1;m=Math.floor(m/268435456)}for(zk(O,4);m>127;)O.view.setUint8(O.pos,m&127|128),m>>=7,O.pos+=1;O.view.setUint8(O.pos,m);O.pos+=1};for(var n4N={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},VPr={},fam=_.K(Object.entries(n4N)),hs3=fam.next();!hs3.done;hs3=fam.next()){var TO3=_.K(hs3.value),gS3=TO3.next().value,u32=TO3.next().value,jUo=gS3,Ia9=u32;Ia9&&(VPr[Ia9]=jUo)};var fsS=function(O,m){O=O===void 0?{}:O;switch(m.type){case "ENTITY_LOADED":return m.payload.reduce(function(B,Q){var H,M=(H=Q.options)==null?void 0:H.persistenceOption;if(M&&M!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&M!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return B;if(!Q.entityKey)return _.oy(Error("Ff")),B;if(Q.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Q.payload)return Q=new _.j9("REPLACE entity mutation is missing a payload",{entityKey:Q.entityKey}),_.oy(Q),B;var R=(0,_.aM.getAnyKey)(Q.payload);
return TTN(B,R,Q.entityKey,Q.payload[R])}if(Q.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Q=Q.entityKey;try{var x=_.Ur(Q).entityType;R=TTN(B,x,Q);break a}catch(Z){if(Z instanceof Error){Q=new _.j9("Failed to deserialize entity key",{entityKey:Q,originalMessage:Z.message});_.oy(Q);R=B;break a}throw Z;}R=void 0}return R}if(Q.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Q.payload)return Q=new _.j9("UPDATE entity mutation is missing a payload",{entityKey:Q.entityKey}),_.oy(Q),B;R=(0,_.aM.getAnyKey)(Q.payload);
var t,W;return g4f(B,R,Q.entityKey,Q.payload[R],(t=Q.fieldMask)==null?void 0:(W=t.mergeOptions)==null?void 0:W.repeatedFieldsMergeOption)}return B},O);
case "REPLACE_ENTITY":var G=m.payload;return TTN(O,G.entityType,G.key,G.entityPayload);case "REPLACE_ENTITIES":return Object.keys(m.payload).reduce(function(B,Q){var H=m.payload[Q];return Object.keys(H).reduce(function(M,R){return TTN(M,Q,R,H[R])},B)},O);
case "UPDATE_ENTITY":return G=m.payload,g4f(O,G.entityType,G.key,G.entityPayload,G.mergeOption);default:return O}};var u_N;var pPu=!1,wc,eI,DN,s1,NO,SMU=function(O){_.Iw.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!pPu){var m,G=new Uint8Array(256),B=new Uint8Array(256);var Q=1;for(m=0;m<256;m++)G[Q]=m,B[m]=Q,Q^=Q<<1^(Q>>7&&283);wc=new Uint8Array(256);eI=bQ(256);DN=bQ(256);s1=bQ(256);NO=bQ(256);for(var H=0;H<256;H++){Q=H?B[255^G[H]]:0;Q^=Q<<1^Q<<2^Q<<3^Q<<4;Q=Q&255^Q>>>8^99;wc[H]=Q;m=Q<<1^(Q>>7&&283);var M=m^Q;eI[H]=m<<24|Q<<16|Q<<8|M;DN[H]=M<<24|eI[H]>>>8;s1[H]=Q<<24|DN[H]>>>
8;NO[H]=Q<<24|s1[H]>>>8}pPu=!0}Q=bQ(44);for(G=0;G<4;G++)Q[G]=O[4*G]<<24|O[4*G+1]<<16|O[4*G+2]<<8|O[4*G+3];for(B=1;G<44;G++)O=Q[G-1],G%4||(O=(wc[O>>16&255]^B)<<24|wc[O>>8&255]<<16|wc[O&255]<<8|wc[O>>>24],B=B<<1^(B>>7&&283)),Q[G]=Q[G-4]^O;this.key=Q};
_.X(SMU,_.Iw);
SMU.prototype.encrypt=function(O){var m=O.length;O=new Uint8Array(O.buffer.slice(O.byteOffset,O.byteOffset+m));for(var G=this.cipherBlock,B=0;B<m&&this.blockOffset<16;)O[B++]^=G[this.blockOffset++];for(var Q=m-(m-B)%16;B<Q;)ESu(this),O[B++]^=G[0],O[B++]^=G[1],O[B++]^=G[2],O[B++]^=G[3],O[B++]^=G[4],O[B++]^=G[5],O[B++]^=G[6],O[B++]^=G[7],O[B++]^=G[8],O[B++]^=G[9],O[B++]^=G[10],O[B++]^=G[11],O[B++]^=G[12],O[B++]^=G[13],O[B++]^=G[14],O[B++]^=G[15];if(B<m)for(ESu(this),this.blockOffset=0;B<m;)O[B++]^=
G[this.blockOffset++];return O};
var ESu=function(O){for(var m=O.key,G=O.counter[0]^m[0],B=O.counter[1]^m[1],Q=O.counter[2]^m[2],H=O.counter[3]^m[3],M=3;M>=0&&!(O.counter[M]=-~O.counter[M]);M--);for(var R,x,t=4;t<40;)M=eI[G>>>24]^DN[B>>16&255]^s1[Q>>8&255]^NO[H&255]^m[t++],R=eI[B>>>24]^DN[Q>>16&255]^s1[H>>8&255]^NO[G&255]^m[t++],x=eI[Q>>>24]^DN[H>>16&255]^s1[G>>8&255]^NO[B&255]^m[t++],H=eI[H>>>24]^DN[G>>16&255]^s1[B>>8&255]^NO[Q&255]^m[t++],G=M,B=R,Q=x;O=O.cipherBlock;M=m[40];O[0]=wc[G>>>24]^M>>>24;O[1]=wc[B>>16&255]^M>>16&255;O[2]=
wc[Q>>8&255]^M>>8&255;O[3]=wc[H&255]^M&255;M=m[41];O[4]=wc[B>>>24]^M>>>24;O[5]=wc[Q>>16&255]^M>>16&255;O[6]=wc[H>>8&255]^M>>8&255;O[7]=wc[G&255]^M&255;M=m[42];O[8]=wc[Q>>>24]^M>>>24;O[9]=wc[H>>16&255]^M>>16&255;O[10]=wc[G>>8&255]^M>>8&255;O[11]=wc[B&255]^M&255;M=m[43];O[12]=wc[H>>>24]^M>>>24;O[13]=wc[G>>16&255]^M>>16&255;O[14]=wc[B>>8&255]^M>>8&255;O[15]=wc[Q&255]^M&255};var L1p=!1;(function(){var O=function(B){return new Uint8Array(B)},m=function(B){for(var Q=new Uint8Array(B.length),H=0;H<B.length;H++)Q[H]=B[H];
return Q},G=new Uint8Array([1]);
return G.length===1&&G[0]===1?O:m})();
var P3;var laU=function(O){a:{if(!L1p&&!BI){if(P3){var m=P3;break a}P3=(m=window.crypto)==null?void 0:m.subtle;var G,B,Q;if(((G=P3)==null?0:G.importKey)&&((B=P3)==null?0:B.sign)&&((Q=P3)==null?0:Q.encrypt)){m=P3;break a}P3=void 0}m=void 0}m&&(this.nativeEncryptor=new Cdu(O,m));this.encryptorPolyfill=new oSC(O)};
laU.prototype.encrypt=function(O,m){var G=this,B;return _.r(function(Q){switch(Q.nextAddress){case 1:if(!G.nativeEncryptor){Q.jumpTo(2);break}_.n_(Q,3);return Q.yield(G.nativeEncryptor.encrypt(O,m),5);case 5:return Q.return(Q.yieldResult);case 3:B=_.uS(Q),_.ay(B),L1p=!0,G.nativeEncryptor=void 0;case 2:return Q.return(G.encryptorPolyfill.encrypt(O,m))}})};
laU.prototype.decrypt=function(O,m){return this.encrypt(O,m)};
var Cdu=function(O,m){this.JSC$12690_aesKey=O;this.subtleCrypto=m};
Cdu.prototype.encrypt=function(O,m){var G=this,B;return _.r(function(Q){if(Q.nextAddress==1)return _.n_(Q,2),Q.yield(aa2(G,O,m),4);if(Q.nextAddress!=2)return Q.return(Q.yieldResult);B=_.uS(Q);_.ay(B);L1p=!0;throw B;})};
var aa2=function(O,m,G){var B,Q;return _.r(function(H){switch(H.nextAddress){case 1:if(O.cryptoKey){H.jumpTo(2);break}return H.yield(O.subtleCrypto.importKey("raw",O.JSC$12690_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:O.cryptoKey=H.yieldResult;case 2:return B={name:"AES-CTR",counter:G,length:128},H.yield(O.subtleCrypto.encrypt(B,O.cryptoKey,m),4);case 4:return Q=H.yieldResult,H.return(new Uint8Array(Q))}})},oSC=function(O){this.JSC$12693_aesKey=O};
oSC.prototype.encrypt=function(O,m){this.encryptor||(this.encryptor=new SMU(this.JSC$12693_aesKey));for(var G=this.encryptor,B=0;B<4;B++)G.counter[B]=m[B*4]<<24|m[B*4+1]<<16|m[B*4+2]<<8|m[B*4+3];G.blockOffset=16;return this.encryptor.encrypt(O)};
oSC.prototype.decrypt=function(O,m){return this.encrypt(O,m)};var kam={},pzI=Kp("yt-idb-pref-storage",{objectStores:(kam.prefs={addedAtVersion:1},kam),shared:!1,upgrade:function(O,m){m(1)&&ea(wY(O,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.FW=function(O){this.token=O};
_.FW.getInstance=function(){return _.r(function(O){return O.return(new Promise(function(m){_.vI().then(function(G){G?(_.FW.instance||(_.FW.instance=new _.FW(G)),m(_.FW.instance)):m(void 0)})}))})};
_.FW.prototype.get=function(O){var m=this,G,B,Q;return _.r(function(H){if(H.nextAddress==1)return H.yield(Sa6(m.token),2);if(H.nextAddress!=3)return G=H.yieldResult,H.yield(G.get("prefs",O),3);B=H.yieldResult;if(!B)return H.return();Q=(0,_.$G)();return B.expirationTimestampMs<=Q?H.return():H.return(B.value)})};
_.FW.prototype.set=function(O,m,G){G=G===void 0?31536E3:G;var B=this,Q,H,M;return _.r(function(R){if(R.nextAddress==1)return Q=(0,_.$G)(),H={key:O,value:m,expirationTimestampMs:Q+G*1E3},R.yield(Sa6(B.token),2);M=R.yieldResult;return R.yield(M.put("prefs",H),0)})};
_.FW.prototype.remove=function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(Sa6(m.token),2);G=B.yieldResult;return B.yield(G.delete("prefs",O),0)})};var AQ={},yT9=(AQ.INVALID_ENCODER_VERSION="Invalid encoder version",AQ.KEY_CREATION_FAILED="Failed to create encoder key",AQ.UNKNOWN_DECODE_ERROR="Failed to decode PES data",AQ.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",AQ.WRONG_DATA_TYPE="Encoder cannot process the data type",AQ),ns=function(O,m){m=m===void 0?{}:m;_.j9.call(this,yT9[O],Object.assign({},{name:"PESEncoderError",type:O},m));this.type=O;this.level="WARNING";Object.setPrototypeOf(this,ns.prototype)};
_.X(ns,_.j9);var OE=function(){};
OE.prototype.encode=function(O,m){try{return this.encodeImpl(O,m)}catch(G){o45(G,LtS)}};
OE.prototype.decode=function(O,m){try{return this.decodeImpl(O,m)}catch(G){o45(G,CqI)}};
var cT9=function(O,m,G){var B;return _.r(function(Q){if(Q.nextAddress==1)return _.n_(Q,2),Q.yield(O.decodeAsyncImpl(m,G),4);if(Q.nextAddress!=2)return Q.return(Q.yieldResult);B=_.uS(Q);o45(B,CqI);_.ju(Q)})};
OE.prototype.decodeAsyncImpl=function(O,m){return Promise.resolve(this.decodeImpl(O,m))};var mG=function(O,m){this.aesEncryptor=O;this.aesEncryptorAsync=m};
_.X(mG,OE);mG.prototype.encodeImpl=function(O,m){m=lsN(m);O=(new TextEncoder).encode(JSON.stringify(O));return this.aesEncryptor.encrypt(O,m)};
mG.prototype.decodeImpl=function(O,m){if(!(O instanceof Uint8Array))throw E4Y(1);var G=new TextDecoder;m=lsN(m);O=this.aesEncryptor.decrypt(O,m);return JSON.parse(G.decode(O))};
mG.prototype.decodeAsyncImpl=function(O,m){var G=this,B,Q,H;return _.r(function(M){if(M.nextAddress==1){if(!(O instanceof Uint8Array))throw E4Y(1);B=new TextDecoder;Q=lsN(m);return M.yield(G.aesEncryptorAsync.decrypt(O,Q),2)}H=M.yieldResult;return M.return(JSON.parse(B.decode(H)))})};var asM={accountLinkStatusEntity:Lb3,booleanEntity:iT2,buttonEntity:md3,captionTrack:ls$,channelHandle:kZu,chipEntity:jF_,commerceAcquisitionClientPayloadEntity:fc$,commerceCartListEntity:hHU,contextNoteFeedEntityPayload:OYu,contextNoteUserRatingEntityPayload:mmo,continuationTokenEntity:ze2,downloadQualityPickerEntity:$4e,downloadsPageRefreshTokenEntity:reU,downloadsPageViewConfigurationEntity:gLs,downloadStatusEntity:MLp,dismissState:IRH,sfvAudioItemCurrentlyPlayingEntity:WEe,emojiFountainDataEntity:F2s,
emojiCustomizationSetEntity:PL8,fakeChannel:U$o,fakePlaylist:tq$,fakePlaylistEntryCollection:Wb_,fakeVideo:zb8,fakeVideoDescription:JS8,featuredProductsEntity:si8,flowStateEntity:IV3,iconBadgeEntity:Ttm,interstitialInteractionStateEntity:Fbp,likeButtonAnimationEntity:uds,liveChatPollStateEntity:vJj,dataFreshnessEntity:NyH,liveViewerLeaderboardChatEntryPointStateEntity:AfU,liveViewerLeaderboardPointsEntity:OK$,liveReactionsDataEntity:Agj,logoEntity:NkU,macroMarkerEntity:jio,mainDownloadsLibraryEntity:ReC,
mainDownloadsListEntity:iGu,mainPlaylistDownloadStateEntity:qo9,mainPlaylistEntity:JeH,mainPlaylistVideoEntity:VL_,mainVideoDownloadStateEntity:U42,mainVideoEntity:fm2,markersEngagementPanelSyncEntity:Ime,markersVisibilityOverrideEntity:pK8,musicAlbumReleaseDetail:Kt2,musicAlbumReleaseDownloadMetadataEntity:G0u,musicAlbumRelease:v42,musicAlbumReleaseUserDetail:$c2,musicArtistDetail:rf2,musicArtist:MP3,musicArtistUserDetail:R5u,musicDownloadsLibraryEntity:BT$,musicLibraryEdit:ijj,musicLibraryStatusEntity:xcp,
musicPlaylist:qao,musicPlaylistDownloadMetadataEntity:QCe,musicShare:tPo,musicTrackDetail:ZjC,musicTrackDownloadMetadataEntity:Hjm,musicTrack:Wt8,musicTrackUserDetail:z59,offlineOrchestrationActionWrapperEntity:ass,offlineVideoPolicy:k0u,offlineVideoStreams:yf$,offlineabilityEntity:tL2,orchestrationWebSamplingEntity:WO_,pageHeaderEntity:yg3,pdpStateEntity:gk_,pinnedProductEntity:N2U,playbackData:cfj,playerStateEntity:SoU,quantityIncrementerEntity:ut9,refresh:Yao,saveToPlaylistListEntity:lN2,selectedChipIndexEntityPayload:ELC,
settingEntity:vAu,stringEntity:x$s,suggestedFeedbackChipStateEntity:LOo,transfer:dc$,trendingOfferEntity:P83,videoDownloadContextEntity:wz8,videoOverviewAsyncDataEntity:Anu,videoPlaybackPositionEntity:Q48,votingEntity:wg_,ytMainChannelEntity:hej,youchatPendingResponseEntity:C8p,ytMainDownloadedVideoEntity:ZGs,ytMainVideoEntity:T28};var YM2,wPH,uQ,Dcp,sCI,sUU,Pds,NO9,Dbu;YM2=function(O,m){this.JSC$12712_wrapped=O;this.JSC$12712_encoderRegistry=m;this.changedKeys={}};
wPH=function(O,m){return dbU(O.JSC$12712_encoderRegistry,m.version).decode(m.data,m.key)};
_.esu=function(O,m,G){return O.JSC$12712_wrapped.objectStore("EntityStore").get(m).then(function(B){if(B){if(G&&B.entityType!==G)throw Error("Gf");return wPH(O,B)}})};
uQ=function(O,m,G){return G?(G=G.map(function(B){return _.esu(O,B,m)}),wI.all(G)):O.JSC$12712_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(m)).then(function(B){return B.map(function(Q){return wPH(O,Q)})})};
_.e5e=function(O,m,G){var B=XzI(m),Q=dbU(O.JSC$12712_encoderRegistry,1),H=Object.assign({},m);return O.JSC$12712_wrapped.objectStore("EntityStore").get(B).then(function(M){if(M){if(M.entityType!==G)throw Error("Gf");H.entityMetadata||(M=wPH(O,M),H.entityMetadata=M.entityMetadata)}}).then(function(){var M={key:B,
entityType:G,data:Q.encode(H,B),version:1};return wI.all([O.JSC$12712_wrapped.objectStore("EntityStore").put(M),Dbu(O,H,G)])}).then(function(){sUU(O,B,G);
return B})};
Dcp=function(O,m){var G=_.Ur(m).entityType;return wI.all([O.JSC$12712_wrapped.objectStore("EntityStore").delete(m),NO9(O,m)]).then(function(){sUU(O,m,G)})};
sCI=function(O,m,G,B){var Q=dbU(O.JSC$12712_encoderRegistry,1);return _.esu(O,m,B).then(function(H){if(H){H=R5f(H,G);var M={key:m,entityType:B,data:Q.encode(H,m),version:1};return wI.all([O.JSC$12712_wrapped.objectStore("EntityStore").put(M),Dbu(O,H,B)])}}).then(function(){sUU(O,m,B);
return m})};
sUU=function(O,m,G){var B=O.changedKeys[G];B||(B=new Set,O.changedKeys[G]=B);B.add(m)};
Pds=function(O,m,G){var B=XzI(m);G=k0f(G);if(!G)return wI.resolve([]);G=new G(m);O=O.JSC$12712_wrapped.objectStore("EntityAssociationStore");m=[];G=_.K(G.getAssociations());for(var Q=G.next();!Q.done;Q=G.next())m.push(O.put({parentEntityKey:B,childEntityKey:Q.value}));return wI.all(m).then(function(H){return H.map(function(M){return M[1]})})};
NO9=function(O,m){return O.JSC$12712_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(m))};
Dbu=function(O,m,G){var B=XzI(m);return NO9(O,B).then(function(){return Pds(O,m,G)})};var F13=function(){};
_.X(F13,OE);F13.prototype.encodeImpl=function(O){return O};
F13.prototype.decodeImpl=function(O){if(O instanceof Uint8Array)throw E4Y(0);return O};var Yar=function(){this.cacheMap={};this.cacheMap[0]=new F13;if(!_.V("aes_pes_encoder_killswitch")){var O=this.cacheMap;try{var m=_.gI();var G=lsN(m);var B=new mG(new oSC(G),new laU(G))}catch(Q){throw O=Q instanceof Error?new ns("KEY_CREATION_FAILED",{originalMessage:Q.message}):new ns("KEY_CREATION_FAILED"),_.oy(O),O;}O[1]=B}},dbU=function(O,m){m=m===void 0?0:m;
O=O.cacheMap[m];if(!O)throw m=new ns("INVALID_ENCODER_VERSION",{encoderVersion:m}),_.oy(m),m;return O};var ha=function(O,m){_.Iw.call(this);this.token=O;this.JSC$12726_encoderRegistry=m;this.observers=[];O=new _.Qf.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.gI());O.onmessage=this.handleMessage.bind(this);this.channel=O};
_.X(ha,_.Iw);_.gv=function(O,m,G){var B,Q,H,M;return _.r(function(R){if(R.nextAddress==1)return R.yield(IsN(O.token),2);if(R.nextAddress!=3)return B=R.yieldResult,R.yield(_.OO(B,["EntityStore","EntityAssociationStore"],m,function(x){Q=new YM2(x,O.JSC$12726_encoderRegistry);return G(Q)}),3);
H=R.yieldResult;Q&&(M=Q.changedKeys,Object.keys(M).length>0&&(O.channel.postMessage(M),ATs(O,M)));return R.return(H)})};
ha.prototype.observe=function(O){var m=this;this.observers.push(O);return function(){var G=m.observers.indexOf(O);G>=0&&m.observers.splice(G,1)}};
var XJz=function(O){var m;return _.r(function(G){if(G.nextAddress==1)return G.yield(_.gv(O,{mode:"readonly",enableRetries:!0},function(B){return B.JSC$12712_wrapped.objectStore("EntityStore").getAll()}),2);
m=G.yieldResult;return G.return(Promise.all(m.filter(function(B){return!!B}).map(function(B){var Q,H;
return _.r(function(M){if(M.nextAddress==1){Q=B.key;H=B.entityType;var R=M.yield;var x=cT9(dbU(O.JSC$12726_encoderRegistry,B.version),B.data,B.key);return R.call(M,x,2)}return M.return({key:Q,entityType:H,data:M.yieldResult})})})))})};
ha.prototype.handleMessage=function(O){ATs(this,O.data)};
var ATs=function(O,m){O=_.K(O.observers);for(var G=O.next();!G.done;G=O.next())G=G.value,G(m)};
ha.prototype.disposeInternal=function(){this.channel.close()};
var yfN;var Gb,mR8,q1r;Gb={};_.OMu=(Gb.mainVideoEntity="mainVideoEntityActionMetadata",Gb.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Gb.musicTrack="musicTrackEntityActionMetadata",Gb.musicPlaylist="musicPlaylistEntityActionMetadata",Gb);mR8=new _.Us("DOWNLOADS_ENTITY_TYPE_MAP");_.oQ=_.Ja("","downloadsPageViewConfigurationEntity");q1r=_.Ja("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.DOp=_.Ja("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Ja("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Ja("SMART_DOWNLOADS_ENABLED","settingEntity");_.Ja("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var OKN=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var KEI=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.G4U={isLeaderTab:!0};var LEN={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var BD=window,Pq=BD.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",EAe=BD.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||FZ,kbN=BD.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||VQ,Nuj=BD.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||spo,eB$=BD.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||Kpm,Vnp=BD.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||xN$;var SES;GL({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 O36=yCI(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(O){return O}}}),mlp=yCI(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(O){return O}}}),wDp=new Map;var Ghp=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],PA6;var BMs=function(O){return _.xs({type:"SET_EPHEMERAL_ACTION",payload:O})};_.QIU={ephemeralAction:null};var HM$=function(O){return _.xs({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:O})};_.v5e={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var Q4N={sharedUi:function(O,m){O=O===void 0?_.v5e:O;switch(m.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},O,{animatedThumbnailEnabled:m.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},O,{inlinePreviewEnabled:m.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},O,{currentPageType:m.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},O,{currentPageSubType:m.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
O,{persistentPanelVisible:m.payload});default:return O}},
a11y:nC({ephemeralAction:function(O,m){O=O===void 0?_.QIU.ephemeralAction:O;switch(m.type){case "SET_EPHEMERAL_ACTION":return m.payload;default:return O}}}),
entities:h5f};_.$xI={playlistId:"",inviteLinkURL:""};_.KLs={continuationCommand:{}};var zRO=nC({continuationCommand:function(O,m){O=O===void 0?_.KLs.continuationCommand:O;switch(m.type){case "SET_CONTINUATION_COMMAND":return m.payload.continuationCommand;default:return O}}});_.rgr={currentFormId:"",commandsMap:{}};var JgS=nC({isLeaderTab:function(O,m){O=O===void 0?_.G4U.isLeaderTab:O;switch(m.type){case "SET_IS_LEADER_TAB":var G,B;return(B=m==null?void 0:(G=m.payload)==null?void 0:G.isLeaderTab)!=null?B:O;default:return O}}});var MXU;_.$Rm=function(O){return _.xs({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:O}})};
MXU=function(O){return _.xs({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:O}})};_.Qm={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var Btp=nC({isDesktopSmallWidth:function(O,m){O=O===void 0?_.Qm.isDesktopSmallWidth:O;switch(m.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return m.payload.isDesktopSmallWidth;default:return O}},
isShortsActive:function(O,m){O=O===void 0?_.Qm.isShortsActive:O;switch(m.type){case "SET_IS_SHORTS_ACTIVE":return m.payload.isShortsActive;default:return O}},
isWatchWhileMode:function(O,m){O=O===void 0?_.Qm.isWatchWhileMode:O;switch(m.type){case "SET_IS_WATCH_WHILE_MODE":return m.payload.isWatchWhileMode;default:return O}},
playerState:function(O,m){O=O===void 0?_.Qm.playerState:O;switch(m.type){case "SET_PLAYER_STATE":return m.payload.playerState;default:return O}},
isFullscreen:function(O,m){O=O===void 0?_.Qm.isFullscreen:O;switch(m.type){case "SET_IS_FULLSCREEN":return m.payload.isFullscreen;default:return O}},
isSmallScreenSqueezeback:function(O,m){O=O===void 0?_.Qm.isSmallScreenSqueezeback:O;switch(m.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return m.payload.isSmallScreenSqueezeback;default:return O}},
isShortsPipActive:function(O,m){O=O===void 0?_.Qm.isShortsPipActive:O;switch(m.type){case "SET_IS_SHORTS_PIP_ACTIVE":return m.payload.isShortsPipActive;default:return O}},
isPlaybackStarted:function(O,m){O=O===void 0?_.Qm.isPlaybackStarted:O;switch(m.type){case "SET_IS_PLAYBACK_STARTED":return m.payload.isPlaybackStarted;default:return O}}});_.i3M={currentMode:"canvas-hidden"};var vkS=function(){return function(O){return function(m){var G=O(m);_.xc(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[m],!0);return G}}};var ro8,WSe;ro8=new _.Vg;_.q1=new _.Us("WATCH_PLAYER_PROMISE_TOKEN");_.Rks=new _.Vg;_.iM2=new _.Us("SHORTS_PLAYER_PROMISE_TOKEN");WSe=new _.Us("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var KTp=function(){return function(O){return function(m){m.type==="ENTITY_LOADED"&&_.KR().resolve(_.q1).then(function(G){var B;(B=G.dispatchReduxAction)==null||B.call(G,m)});
return O(m)}}};_.xRU={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var F2M=nC({additionalContext:function(O,m){O=O===void 0?_.xRU.additionalContext:O;switch(m.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var G;return(G=m.payload)!=null?G:"";default:return O}},
impersonatedChannelUrl:function(O,m){O=O===void 0?_.xRU.impersonatedChannelUrl:O;switch(m.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var G;return(G=m.payload)!=null?G:"";default:return O}},
selectedVideoIds:function(O,m){O=O===void 0?_.xRU.selectedVideoIds:O;switch(m.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var G={};return Object.assign({},O,(G[m.payload]=!0,G));case "VIDEO_UNSELECTED":return m=m.payload,O=Object.assign({},O),delete O[m],O;default:return O}}});_.qA$={parentClickTrackingParams:""};var Age=nC({parentClickTrackingParams:function(O,m){O=O===void 0?_.qA$.parentClickTrackingParams:O;switch(m.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return m.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return O}}});var URs=function(O){return _.xs({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:O})};_.tXo={stepStates:{}};var OQe=nC({stepStates:function(O,m){O=O===void 0?_.tXo.stepStates:O;switch(m.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var G=O,B=m.payload,Q,H,M;O={};m={selectionStates:Object.assign({},(M=(Q=G[B.stepId])==null?void 0:Q.selectionStates)!=null?M:{},(O[B.token]={isSelected:B.isSelected},O)),userQuery:(H=G[B.stepId])==null?void 0:H.userQuery};Q={};return Object.assign({},G,(Q[B.stepId]=m,Q));case "TALK_TO_RECS_UPDATE_USER_QUERY":return Q=O,H=m.payload,
M={selectionStates:Object.assign({},(B=(G=Q[H.stepId])==null?void 0:G.selectionStates)!=null?B:{}),userQuery:{userQuery:H.userQuery,token:H.userQueryToken}},G={},Object.assign({},Q,(G[H.stepId]=M,G));default:return O}}});var WL8,ZMu,JoH;WL8=function(O){return _.xs({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:O})};
ZMu=function(O){return _.xs({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:O})};
_.jk=function(O){return _.xs({type:"SET_CURRENT_PAGE_TYPE",payload:O})};
_.zko=function(O){return _.xs({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:O})};
JoH=function(O){return _.xs({type:"SET_CHIP_BAR_IS_STICKY",payload:O})};_.qX5={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"};_.VX9=function(O){return _.xs({type:"SET_PLAYER_STATE",payload:{playerState:O}})};_.HD={isWatchActive:!1,isLearningJourneyActive:!1,isTheaterMode:t1r(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var mdS=nC({isTheaterMode:function(O,m){O=O===void 0?t1r():O;switch(m.type){case "SET_IS_THEATER_MODE":return m.payload.isTheaterMode;default:return O}},
isWatchActive:function(O,m){O=O===void 0?_.HD.isWatchActive:O;switch(m.type){case "SET_IS_WATCH_ACTIVE":return m.payload.isWatchActive;default:return O}},
isLearningJourneyActive:function(O,m){O=O===void 0?_.HD.isLearningJourneyActive:O;switch(m.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return m.payload.isLearningJourneyActive;default:return O}},
isWatchFullscreen:function(O,m){O=O===void 0?_.HD.isWatchFullscreen:O;switch(m.type){case "SET_IS_WATCH_FULLSCREEN":return m.payload.isWatchFullscreen;default:return O}},
isWatchNarrowWidth:function(O,m){O=O===void 0?_.HD.isWatchNarrowWidth:O;switch(m.type){case "SET_IS_WATCH_NARROW_WIDTH":return m.payload.isWatchNarrowWidth;default:return O}},
isWatchRetroMode:function(O,m){O=O===void 0?_.HD.isWatchRetroMode:O;switch(m.type){case "SET_IS_WATCH_RETRO_MODE":return m.payload.isWatchRetroMode;default:return O}},
isLiveChatCollapsed:function(O,m){O=O===void 0?_.HD.isLiveChatCollapsed:O;switch(m.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return m.payload.isLiveChatCollapsed;default:return O}},
openEngagementPanels:function(O,m){O=O===void 0?_.HD.openEngagementPanels:O;var G=[].concat(_.lS(O));switch(m.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return G.push(m.payload.panelToAdd),G;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return G.splice(G.indexOf(m.payload.panelToRemove),1),G;default:return O}},
playerState:function(O,m){O=O===void 0?_.HD.playerState:O;switch(m.type){case "SET_PLAYER_STATE":return m.payload.playerState;default:return O}},
watchScrollTop:function(O,m){O=O===void 0?_.HD.watchScrollTop:O;switch(m.type){case "SET_WATCH_SCROLL_TOP":return m.payload.watchScrollTop;default:return O}},
watchWindowSize:function(O,m){O=O===void 0?_.HD.watchWindowSize:O;switch(m.type){case "SET_WATCH_WINDOW_SIZE":return m.payload.watchWindowSize;default:return O}}});_.bM8={surveyFeedbackData:{feedbackTokens:[]}};var GRe=nC({surveyFeedbackData:function(O,m){O=O===void 0?_.bM8.surveyFeedbackData:O;switch(m.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return m.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},O,m.payload);default:return O}}});_.W2S={};var M6r=void 0;_.V("web_enable_redux_store_on_demand")||(M6r=$dO());var n5u=function(O,m,G){var B=this;this.listId=O;this.JSC$12869_updateCallback=m;this.isOfflineVideoCallback=G;_.Kf().subscribe(function(){B.handleUpdate()})};
n5u.prototype.getPlaylistData=function(){var O=_.Kf().getState().entities;if(this.listId&&this.listId!=="PPSV"){var m=X35(O,this.listId,!0),G=_.Ja(this.listId,"mainPlaylistEntity"),B,Q;O=O==null?void 0:(B=O.mainPlaylistEntity)==null?void 0:(Q=B[G])==null?void 0:Q.title;return rnS(m,O,this.listId)}m=_.$OM(Ois(O));O=_.$OM(_.lQ(O));O=m.concat(O);return rnS(O)};
n5u.prototype.getPlaylistId=function(){return this.listId};
n5u.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12869_updateCallback(this.listId,this.getPlaylistData(),{})};var vD=function(O,m,G,B){B=B===void 0?[]:B;this.JSC$12872_playlistNetworkManager=O;this.listId=m;this.JSC$12872_updateCallback=G;this.videoIds=B;this.pendingUpdates=[];this.currentIndex=0};
vD.prototype.JSC$12872_setCurrentIndex=function(O){this.currentIndex=O};
vD.prototype.setListId=function(O){this.listId=O};
var Xwo=function(O,m){O.currentCreateRequest&&O.currentCreateRequest.cancel(m);O.currentUpdateRequest&&O.currentUpdateRequest.cancel(m);O.currentRefreshRequest&&O.currentRefreshRequest.cancel(m)};
vD.prototype.delete=function(){Xwo(this,"PROXY DELETED")};
vD.prototype.addVideos=function(O,m,G){var B=this;G!==void 0?this.videoIds.splice.apply(this.videoIds,[G,0].concat(_.lS(O))):this.videoIds.push.apply(this.videoIds,_.lS(O));this.listId||this.currentCreateRequest?(O.forEach(function(Q,H){Q={addedVideoId:Q,action:"ACTION_ADD_VIDEO"};G&&(Q.addedVideoPosition=G+H);B.pendingUpdates.push(Q)}),Ki(this)):f8j(this,m.onCreateListCommand)};
var hk9=function(O,m,G,B,Q){jes(O.videoIds,m,G);m>O.currentIndex&&G<=O.currentIndex?O.JSC$12872_setCurrentIndex(O.currentIndex+1):m===O.currentIndex?O.JSC$12872_setCurrentIndex(G):m<O.currentIndex&&G>=O.currentIndex&&O.JSC$12872_setCurrentIndex(O.currentIndex-1);O.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:B,movedSetVideoIdPredecessor:Q});Ki(O)},f8j=function(O,m){Xwo(O,"OBSOLETE");
O.currentCreateRequest=TMj(O.JSC$12872_playlistNetworkManager,m,O.videoIds);_.a7(O.currentCreateRequest,function(){O.currentCreateRequest=void 0}).then(function(G){O.setListId(G.playlistId);
O.pendingUpdates.length>0?Ki(O):g5C(O)})},Ki=function(O){if(O.pendingUpdates.length!==0&&(O.currentRefreshRequest&&O.currentRefreshRequest.cancel("OBSOLETE"),!O.currentUpdateRequest&&!O.currentCreateRequest)){var m=O.pendingUpdates.splice(0,O.pendingUpdates.length);
O.currentUpdateRequest=O.JSC$12872_playlistNetworkManager.updatePlaylist(O.listId,m);_.a7(O.currentUpdateRequest,function(){O.currentUpdateRequest=void 0}).then(function(){O.pendingUpdates.length>0?Ki(O):g5C(O)}).thenCatch(function(){O.pendingUpdates.unshift.apply(O.pendingUpdates,_.lS(m))})}},g5C=function(O){O.currentRefreshRequest=_.uhC(O.JSC$12872_playlistNetworkManager,O.listId,O.currentIndex,O.videoIds[O.currentIndex]);
_.a7(O.currentRefreshRequest,function(){O.currentRefreshRequest=void 0}).then(function(m){O.JSC$12872_updateCallback(m.playlistId,m.playlistPanelRenderer,m.autoplayRenderer)})};
vD.prototype.size=function(){return this.videoIds.length};var jIu=function(O,m,G,B){B=B===void 0?[]:B;vD.call(this,O,m,G,B);this.JSC$12872_playlistNetworkManager=O;this.listId=m;this.JSC$12872_updateCallback=G;this.videoIds=B};
_.X(jIu,vD);_.$A=function(O,m,G,B,Q,H,M){Q=Q===void 0?[]:Q;M=M===void 0?zZ:M;vD.call(this,O,m,G,Q);this.JSC$12872_playlistNetworkManager=O;this.listId=m;this.JSC$12872_updateCallback=G;this.onAuthChange=B;this.videoIds=Q;this.storage=H;this.cookieReader=M;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.z$(_.ln,this.checkLoggedInStatusChange.bind(this),1E3)};
_.X(_.$A,vD);_.v=_.$A.prototype;_.v.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.z$(_.ln,this.checkLoggedInStatusChange.bind(this),1E3)};
_.v.JSC$12872_setCurrentIndex=function(O){vD.prototype.JSC$12872_setCurrentIndex.call(this,O);this.store()};
_.v.delete=function(){_.ln.cancelJob(this.queueSapisIdJob);vD.prototype.delete.call(this)};
_.v.setListId=function(O){vD.prototype.setListId.call(this,O);this.store()};
_.v.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var I8u=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],pwj=["playerResponse","videoDetails"],SAH=["response","currentVideoEndpoint","watchEndpoint","videoId"],E5o=["response","currentVideoEndpoint","watchEndpoint","playlistId"],LL9=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],C92=["response","contents","twoColumnWatchNextResults","playlist","playlist"],o53=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
l8$=["response","contents","twoColumnWatchNextResults"];var M2={},Ude=(M2.WEB_UNPLUGGED="^unplugged/",M2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",M2.WEB_UNPLUGGED_OPS="^unplugged/",M2.WEB_UNPLUGGED_PUBLIC="^unplugged/",M2.WEB_CREATOR="^creator/",M2.WEB_KIDS="^kids/",M2.WEB_EXPERIMENTS="^experiments/",M2.WEB_MUSIC="^music/",M2.WEB_REMIX="^music/",M2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",M2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",M2);var OxY,TMj;OxY=function(O,m){this.networkManager=O;this.innertubeTransportService=m};
TMj=function(O,m,G){if(!_.b(m,_.MO))return _.lK(Error("Kf"));_.b(m,_.MO).videoIds=G;G={create_playlist_title:_.Xm("QUEUE",void 0,"Queue")};return xdI(_.Ov(O.innertubeTransportService,m,G),RHz)};
_.uhC=function(O,m,G,B){m={videoId:B,playlistId:m,playlistIndex:G};G=_.$H(lSm);return xdI(_.rS(O.innertubeTransportService,m,G),qLS)};
OxY.prototype.updatePlaylist=function(O,m){return xdI(_.Ov(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:O,actions:m}}),iQO)};var a89=function(O){this.storage=O},k49;
a89.prototype.store=function(O,m){m=m===void 0?0:m;if(this.storage&&O.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",O),this.storage.set("TLPQindex",String(m)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(G){}};
a89.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
a89.prototype.getPlaylistId=function(){if(!this.storage)return null;var O=null;try{O=this.storage.get("TLPQplaylist")}catch(m){}return O};var zHz=["navigationEndpoint","watchEndpoint","videoId"],ZQN=["nextButtonVideo","watchEndpoint","videoId"];_.ew=new _.Us("NETWORK_TOKEN");_.KJ=new _.Us("PAGE_TOKEN");_.Rt=new _.Us("PLAYLIST_TOKEN");var yo$;yo$=new _.Us("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Dk=new _.Us("INNERTUBE_TRANSPORT_TOKEN");var cos,iA,dRu,wwU,DRs,sI_;cos=new Set(["ci","cr","carml"]);iA=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12919_parkedJobs=new Map;this.parkedProcessors=new Map};
_.xA=function(){iA.instance||(iA.instance=new iA);return iA.instance};
iA.prototype.onAny=function(O){return _.YAH(this,O,2)};
iA.prototype.parkOrScheduleJob=function(O,m,G,B,Q){_.q2(this,G)?_.uW().addJob(O,m,B):(Q&&(O=dRu(O),wwU(this,O,m,G,Q)),Q=this.JSC$12919_parkedJobs.get(G),Q||(this.JSC$12919_parkedJobs.set(G,[]),Q=this.JSC$12919_parkedJobs.get(G)),Q.push({job:O,priority:m,delay:B}))};
iA.prototype.addListener=function(O,m,G){G&&(m=dRu(m),wwU(this,m,0,O,G));G=this.parkedProcessors.get(O);G||(this.parkedProcessors.set(O,[]),G=this.parkedProcessors.get(O));G.push(m)};
iA.prototype.processSignal=function(O){if(!_.q2(this,O)){this.inProgressSignals.add(O);var m=this.JSC$12919_parkedJobs.get(O);if(m){m=_.K(m);for(var G=m.next();!G.done;G=m.next())G=G.value,_.uW().addJob(G.job,G.priority,G.delay);this.JSC$12919_parkedJobs.delete(O)}if(m=this.parkedProcessors.get(O)){m=_.K(m);for(G=m.next();!G.done;G=m.next())G=G.value,G();this.parkedProcessors.delete(O)}this.signals.push(O);this.inProgressSignals.delete(O)}};
_.q2=function(O,m){return cos.has(m)||_.yE("IS_HOMEPAGE_COLD")||_.yE("IS_RESULTS_PAGE_COLD")||_.yE("IS_WATCH_PAGE_COLD")?O.signals.indexOf(m)>=0:!0};
dRu=function(O){var m=!1;return function(){m||(m=!0,O())}};
wwU=function(O,m,G,B,Q){if(ek$.has(B))_.uW().addJob(m,G,Q);else{var H=O.compoundSignals.get(B);H&&_.uW().addJob(function(){_.q2(O,B)||(H.isTimeoutConditionSatisfied?_.uW().addJob(m,G):H.timeoutConditionObservers.push(function(){_.uW().addJob(m,G)}))},G,Q)}};
_.YAH=function(O,m,G){if(m.length>1){var B=[],Q=Object.create(null);m=_.K(m);for(var H=m.next();!H.done;H=m.next())H=H.value,Q[H]||(B.push(H),Q[H]=!0);m=B}if(m.length===1)return m[0];H=m;B="";Q=G===2?"|":"&";H.sort();H=_.K(H);for(var M=H.next();!M.done;M=H.next())B+=M.value+Q;if(!O.compoundSignals.get(B)){Q=0;H=[];M=_.K(m);for(var R=M.next();!R.done;R=M.next())R=R.value,Q++,_.q2(O,R)||H.push(R);(G=G===2)&&Q>H.length||!G&&!H.length?O.signals.push(B):DRs(O,B,G,m,H)}return B};
DRs=function(O,m,G,B,Q){var H=Q.length,M=function(){G||--H===0?O.processSignal(m):sI_(O,m)};
Q=_.K(Q);for(var R=Q.next();!R.done;R=Q.next())O.addListener(R.value,M);O.compoundSignals.set(m,{signals:B,isOnAny:G,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});sI_(O,m)};
sI_=function(O,m){if(!_.q2(O,m)){var G=O.compoundSignals.get(m);if(G&&!G.isTimeoutConditionSatisfied){for(var B=!1,Q=0,H=0,M=_.K(G.signals),R=M.next();!R.done;R=M.next()){var x=R.value;R=!_.q2(O,x);ek$.has(x)?B=!0:(x=O.compoundSignals.get(x))?R&&!x.isTimeoutConditionSatisfied&&(H++,G.isInitialized||x.timeoutConditionObservers.push(function(){sI_(O,m)})):R&&Q++}G.isInitialized=!0;
G.isOnAny?B&&(G.isTimeoutConditionSatisfied=!0):Q===0&&H===0&&(G.isTimeoutConditionSatisfied=!0);if(G.isTimeoutConditionSatisfied)for(G=_.K(G.timeoutConditionObservers),B=G.next();!B.done;B=G.next())B=B.value,B()}}};
iA.prototype.processSignal=iA.prototype.processSignal;iA.prototype.parkOrScheduleJob=iA.prototype.parkOrScheduleJob;iA.prototype.onAny=iA.prototype.onAny;_.HI("ytsignals.getInstance",_.xA);iA.prototype.onAny=iA.prototype.onAny;iA.prototype.parkOrScheduleJob=iA.prototype.parkOrScheduleJob;iA.prototype.processSignal=iA.prototype.processSignal;var ek$=new Set(["eop","eocs","dl","pcl"]);_.c$=new _.Us("MINIPLAYER_SERVICE");var UE,NMo,P9o;UE=function(O,m,G){var B=_.sJ.getInstance();if(!k49){var Q=new hZN;var H=void 0,M=_.kB("ID_TOKEN");M&&Q.isAvailable()&&(H=new Ee(Q,"yt-queue"+M));k49=new a89(H)}Q=k49;H=_.xA();this.JSC$12926_actionRouter=B;this.pageManager=O;this.playlistManager=m;this.JSC$12926_playlistNetworkManager=G;this.storage=Q;this.signals=H;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.tC=function(){if(!NMo){var O=_.KR(),m=O.resolve(_.v7(_.KJ)),G=O.resolve(_.v7(_.ew)),B=O.resolve(_.v7(_.Rt));O=O.resolve(_.Dk);NMo=new UE(m,B,new OxY(G,O))}return NMo};
P9o=function(O,m,G){if(G){var B;if(((B=O.responsePlaylistData)==null?void 0:B.playlistId)!==G)return}O.responsePlaylistData&&(G=fcN(m,O.responsePlaylistData),O.responsePlaylistData=(0,_.aM.unsafeClone)(O.responsePlaylistData),Ttz(O.responsePlaylistData,G));G=O.temporaryItems.findIndex(function(Q){return Q.videoId===m});
G>-1&&O.temporaryItems.splice(G,1);_.WD(O,_.ZU(O,O.response?O.response.autoplayRenderer:void 0))};
_.FLo=function(O,m){if(O.responsePlaylistData){var G=hH5(m,O.responsePlaylistData);Ttz(O.responsePlaylistData,G);if(O.queueProxy){var B=O.queueProxy;G<0||(B.videoIds.splice(G,1),G<B.currentIndex&&B.JSC$12872_setCurrentIndex(B.currentIndex-1),B.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:m}),Ki(B))}}_.WD(O,_.ZU(O,O.response?O.response.autoplayRenderer:void 0))};
UE.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.WD(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
UE.prototype.setPlaylistData=function(O,m,G){this.temporaryItems=[];this.listId=O;this.responsePlaylistData=m;_.WD(this,_.ZU(this,G))};
var Ao$=function(O){return(O==null?0:O.playlistId)?O.playlistId:"PPSV"},Oa$=function(O){return O&&O.playlistId?O.playlistId==="PPSV"?!0:bKM(_.Kf().getState().entities,O.playlistId):!1};
UE.prototype.isPlayingOfflineVideo=function(){return this.response?Oa$(this.response):!1};
UE.prototype.closeMiniplayer=function(O){var m=this.queueProxy&&this.queueProxy.size()<=1,G=_.KR().resolve(_.c$);if(!this.queueProxy||m)this.queueProxy&&this.clearQueue(),G.close(!0);else{G.pipController.getWindow()&&window.focus();m=this.responsePlaylistData;var B=this.temporaryItems.length+(m&&m.contents?m.contents.length:0);m=_.Xm("QUEUE_CLEARED_UNPLURALIZED")||_.fr("QUEUE_CLEARED",B);m=_.Rh(m);G=_.Xm("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");B=_.Xm("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.fr("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",B);var Q=_.Xm("MINIPLAYER_CLOSE",void 0,"Close"),H=_.Xm("CANCEL",void 0,"Cancel");_.P1(this.JSC$12926_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Qg(G),dialogMessages:[_.Qg(B)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Qg(Q),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
m]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Qg(H)}}}}}}],O)}};
_.ZU=function(O,m){var G={},B=O.response;G.autoplayRenderer=m;if(!O.responsePlaylistData&&!O.temporaryItems.length)return!B||!B.hasRelatedVideoData&&_.V("kevlar_prefetch_data_augments_network_data")||(G.playerData={rvs:B.relatedVideoArgs,endScreenRenderer:B.endScreenRenderer}),G;G.playerData={};if(O.index===void 0)return _.oy(Error("Mf")),G;G.panel=O.responsePlaylistData?(0,_.aM.unsafeClone)(O.responsePlaylistData):{titleText:_.Qg(_.Xm("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
m=G.panel;if(m.contents)for(var Q=_.K(O.temporaryItems),H=Q.next();!H.done;H=Q.next())m.contents.push({playlistPanelVideoRenderer:H.value});O.queueProxy&&B&&B.playingVideo&&B.playingVideoId&&!XTO(B.playingVideoId,G.panel)&&(m=B.playingVideo,Q=G.panel,H=O.index,Q.contents&&Q.contents.splice(H===void 0?0:H,0,{playlistPanelVideoRenderer:m}));B&&B.playingVideoId&&(m=O.index,Q=G.panel,m=!Q.contents||m>=Q.contents.length?void 0:Q.contents[m].playlistPanelVideoRenderer,m&&m.videoId===B.playingVideoId||(m=
fcN(B.playingVideoId,G.panel),O.index=m!==-1?m:O.index?O.index-1:0));m=nkN(O.index+1,G.panel);Q=void 0;O.index>0&&(Q=nkN(O.index-1,G.panel));if(Q||m)G.autoplayRenderer=Jn5(m,Q,G.autoplayRenderer);!m&&(B==null?0:B.relatedVideoArgs)&&(G.playerData.rvs=B.relatedVideoArgs);B=B?B.playlistIndexOffset:0;O.queueProxy?j4M(G.panel,O.index,B,bQp,!0,!0,!0):j4M(G.panel,O.index,B);G.playerData.playlistPanelRenderer=G.panel;return G};
UE.prototype.openToast=function(O){_.KR().resolve(_.c$).openToast(O,_.Xm("ADDED_TO_QUEUE",void 0,"Added to queue"))};
UE.prototype.isMiniplayerActive=function(){return _.KR().resolve(_.c$).isMiniplayerActive()};
_.WD=function(O,m){O.playlistManager.setAutoplayRenderer(m.autoplayRenderer||null);O.playlistManager.setPlaylistData(m.panel||null);m.playerData&&O.playlistManager.setPlayerPlaybackControlData(m.playerData)};var pTI="#";var mWu={},GQp={},B4o={},QAo={},Ha2={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:(mWu.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",mWu),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:(GQp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",GQp),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:(B4o.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",B4o),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:(QAo.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",QAo),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 UKs=[{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:Ha2},{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:Ha2}}];var HWN;_.JV=[[["amRhamdraW5kIzgwaXdrdA==","eXZhbHVlI3ZtbWt3d2g2YWxh"],"OUFEX1BMQUNFTUVOVF9LSU5EX1NUQVJUI3lneXNzNnJkZWJt"]];
HWN=[[["bWFyeSN5cmZ1bXlvbXczZGZwcmk=",null,null],[null,["LWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyIzV0Y3A0a2hsc3Z1NXl0ZC10d28tY29sdW1u","cGUjeDQ5dnJheGxic3RzdHlsZS1zY28="],null],["I255ZXMzNnVtZjhjNW1hc3RoZWFkLWFk",["aDF5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2NuNDk2bHluMnQ="],null],[null,["cnl5dGQtcmljaC1ncmlkLXJlbmRlcmVyIzd3YWF4ODU0Zm8=","Izd0Z29kdXlnYnI1YnN0eWxlLXNjb3Bl"],null],[null,["dGQtYmFubmVyLXByb21vLXJlbmRlcmVyI3ppZTVwbGwyZWZ5enk=","I2Nuc3pmcDZxdzVrbnN0eWxlLXNjb3Bl"],null],[null,["Mm54bHl0ZC1hZC1zbG90LXJlbmRlcmVyI2o1bDR0enUz"],
null]],[["cyNzOHYydzN1bWNqMjZwbGF5ZXItYWQ=",null,null]]];_.zL=["cGtoeXptN3NrZ2xvYmFsQ2FsbGJhY2tzI2Jiaw==","bW85b25BYm5vcm1hbGl0eURldGVjdGVkI3UzaGc2YnB1Nw==","a2lwI2V2M21uM3dsMWtid29uQWRT","c25qeTZyYXdfcGxheWVyX3Jlc3BvbnNlI3JiZHVremk=","bG90cyNkbjc5OTFudTllcnRhZFM="];_.zb="cGtoeXptN3NrZ2xvYmFsQ2FsbGJhY2tzI2Jiaw== bW85b25BYm5vcm1hbGl0eURldGVjdGVkI3UzaGc2YnB1Nw== a2lwI2V2M21uM3dsMWtid29uQWRT c25qeTZyYXdfcGxheWVyX3Jlc3BvbnNlI3JiZHVremk= X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2d0dnRyZ2Vwd28wM3dlYl9wbGF5bGlzdA== X2VmI2doYWd4ZnR5cDN2Z2FiX3Nh bG90cyNkbjc5OTFudTllcnRhZFM=".split(" ");var JC;JC=function(O,m,G){this.rFp=O;this.isAsync=m;this.lcI=G};
_.TmN=[new JC("b.f_",!1,0),new JC("j.s_",!1,2),new JC("r.s_",!1,4),new JC("e.h_",!1,6),new JC("i.s_",!0,8),new JC("s.t_",!1,10),new JC("p.h_",!1,12),new JC("s.i_",!1,14),new JC("f.i_",!1,16),new JC("a.b_",!1,18),new JC("a.o_",!1),new JC("g.o_",!1,22),new JC("p.i_",!1,24),new JC("p.m_",!1),new JC("n.k_",!0,20),new JC("i.f_",!1),new JC("a.s_",!0),new JC("m.c_",!1),new JC("n.h_",!1,26),new JC("o.p_",!1),new JC("m.p_",!0,28),new JC("o.a_",!1),new JC("d.p_",!1),new JC("e.i_",!1)].reduce(function(O,m){O[m.rFp]=
m;return O},{});var vee=function(){};
vee.prototype.flush=function(O,m){O=O===void 0?[]:O;m=m===void 0?!1:m;if(_.V("enable_client_streamz_web")){O=_.K(O);for(var G=O.next();!G.done;G=O.next())G=rXj(G.value),this.rootSpec&&_.Tc(G,2,this.rootSpec),G={serializedIncrementBatch:_.pB(G.JSC$9608_serializeBinary())},_.LE("streamzIncremented",G,{sendIsolatedPayload:m})}};
var okO=function(){};
_.X(okO,vee);var KVu=function(O){var m=new BCH;var G=new O_8;G=_.SS(G,1,"botguard");O=_.SS(G,2,O);this.rootSpec=_.g5(m,1,Qo_,O)};
_.X(KVu,vee);var tV,$WH=new Map;var MQS,ace,s4N,cnO,wTs,Bmf,RLN,mK6;MQS=2;ace=2;s4N=2;cnO=2;wTs=2;Bmf=2;RLN=2;mK6=new Q9p;var rue,R3p,ia8;rue=function(){this.ongoingFlowNonces=new Map};
_.Xs=function(){R3p||(R3p=new rue);return R3p};
_.bu=function(O,m,G){return{eventType:{flowEventNamespace:O,flowEventType:m},metadata:G,statusCode:void 0,csn:void 0,can:void 0}};
_.u$N=function(O,m){var G=_.Xs(),B=ia8(G,m,!0);_.nf(G,O,m,B)};
_.nf=function(O,m,G,B){O={flowNonce:B||ia8(O,G),flowType:G,flowEventType:m.eventType};m.metadata&&(O.flowMetadata=m.metadata);m.statusCode!==void 0&&(O.flowEventStatus=m.statusCode);m.csn&&(O.csn=m.csn);m.can&&(O.can=m.can);_.LE("flowEvent",O,void 0)};
ia8=function(O,m,G){G=G===void 0?!1:G;var B=O.ongoingFlowNonces.get(m);if(!B||G)B=lH(16),O.ongoingFlowNonces.set(m,B);return B};_.xWe=new BhC;var Ems={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var Vm=function(O,m,G,B,Q,H,M){G=G===void 0?!1:G;B=B===void 0?!1:B;H=H===void 0?_.tC():H;this.hasRun=!1;this.eVG=O;this.bPb=m;this.w8u=G;this.fromHistory=B;this.previousVideoId=Q;this.okZ=H;this.tempData=M;this.vkj=new _.HSj};
_.X(Vm,XW);Vm.prototype.validate=function(O){return!(!O.data.playerResponse||O.data.page!=="watch"&&O.data.page!=="learning_journey_watch"&&O.data.page!=="shorts"||this.hasRun)};
Vm.prototype.handle=function(O){var m=this,G=_.b(O.endpoint,_.GC),B=_.b(O.endpoint,_.pf);if(_.V("kevlar_continue_playback_without_player_response")&&(G==null?0:G.videoId)&&this.previousVideoId&&(G==null?void 0:G.videoId)===this.previousVideoId&&(G==null?0:G.continuePlayback)&&!this.fromHistory)this.eVG.resolve();else{var Q={};G?Q.watch_endpoint=G:B&&(Q.watch_endpoint=B,B.endTimeSeconds&&(Q.end=B.endTimeSeconds));O.data.page==="watch"?(O.data.filler||this.w8u||(_.Yc("cfg"),_.sJ.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(Q,q8j(this,O.endpoint)),_.V("enable_masthead_quartile_ping_fix")&&Object.assign(Q,UWC(this)),Object.assign(Q,void 0),O.data.forceExternalPlaylist&&(Q.external_list=!0)):O.data.page==="shorts"?_.sJ.getInstance().triggerAction("yt-start-loading-shorts"):O.data.page==="learning_journey_watch"&&_.sJ.getInstance().triggerAction("yt-start-loading-learning-journey");if(G=this.bPb()){try{G.loadVideoWithPlayerResponse(O.data.playerResponse,Q),G.getPlayerPromise().then(this.eVG.resolve)}catch(H){_.oy(H),
this.eVG.resolve()}this.hasRun=!0;G.getPlayerPromise().then(function(H){H.addEventListener("onAbnormalityDetected",function(){var M=O.data.playerResponse,R=H.getVideoData().cpn;RLN=0;_.MOe=R;if(R=hLM(M))m.vkj.increment("IN_PLAYER"),_.ff(5),_.V("ab_st_vid_ks")?H.pauseVideo(!0):H.stopVideo(),M.playabilityStatus=Object.assign({},M.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:R}}),M.videoDetails=void 0,_.sJ.getInstance().triggerOptionalAction("yt-updated-playability-status",
M.playabilityStatus)})})}else _.ay(Error("Pf"))}};
var q8j=function(O,m){var G=_.b(m,_.GC);if(m&&G&&G.playlistId&&G.videoId&&(O=O.okZ,O.queueProxy?(O=O.queueProxy,G=O.listId===G.playlistId?O.attributionData.get(G.videoId):void 0):G=void 0,G))return{queue_info:G}},UWC=function(O){var m;
if((m=O.tempData)==null?0:m.adpings)return{adpings:O.tempData.adpings}};var bA=function(O,m,G){this.hasRun=!1;this.izq=O;this.jV8=m;this.xKz=G};
_.X(bA,XW);bA.prototype.validate=function(O){return!!_.aM.getValueByKeys.apply(null,[O.data].concat(_.lS(l8$)))};
bA.prototype.handle=function(O){var m=this;this.izq.promise.then(function(){var G=O.data;var B=_.aM.getValueByKeys.apply(null,[G].concat(_.lS(I8u))),Q=_.aM.getValueByKeys.apply(null,[G].concat(_.lS(C92))),H=_.aM.getValueByKeys.apply(null,[G].concat(_.lS(SAH)));var M=(M=_.aM.getValueByKeys.apply(null,[G].concat(_.lS(pwj))))?{videoId:M.videoId,thumbnail:M.thumbnail,title:M.title?_.Qg(M.title):void 0,shortBylineText:M.author?_.Qg(M.author):void 0}:void 0;var R=void 0;_.V("web_get_playlist_id_from_current_endpoint_ks")||
(R=_.aM.getValueByKeys.apply(null,[G].concat(_.lS(E5o))));var x=_.aM.getValueByKeys.apply(null,[G].concat(_.lS(o53))),t=_.aM.getValueByKeys.apply(null,[G].concat(_.lS(LL9))),W=!!x||!!t&&!!t.results&&t.results.length>0,Z=0;Q&&Q.currentIndex&&Q.localCurrentIndex&&(Z=Q.currentIndex-Q.localCurrentIndex);Q&&Q.playlistId&&(R=Q.playlistId);G={rawResponse:G,autoplayRenderer:B,hasRelatedVideoData:W,playingVideo:M,playingVideoId:H,playlistPanelRenderer:Q,playlistId:R,playlistIndex:Q&&Q.currentIndex,relatedVideoArgs:x,
endScreenRenderer:t,playlistIndexOffset:Z};a:{B=m.xKz;Q=m.jV8;B.response=G;if(Oa$(G))B.downloadPlaylistProxy&&B.downloadPlaylistProxy.getPlaylistId()===Ao$(G)||(B.downloadPlaylistProxy=new n5u(Ao$(G),B.setPlaylistData.bind(B),B.isPlayingOfflineVideo.bind(B))),B.responsePlaylistData=B.downloadPlaylistProxy.getPlaylistData(),B.listId=Ao$(G),B.index=0;else if(G.playlistPanelRenderer&&G.playlistId&&G.autoplayRenderer)G.playlistId.startsWith("TLPQ")?B.queueProxy?B.listId===G.playlistId?(B.index=G.playlistIndex,
B.responsePlaylistData=G.playlistPanelRenderer,B.queueProxy.JSC$12872_setCurrentIndex(B.index)):G.playingVideoId&&B.index!==void 0&&Q.clientParams.autoSaveToQueue&&(B.index+=1,B.queueProxy.JSC$12872_setCurrentIndex(B.index),B.queueProxy.addVideos([G.playingVideoId],{},B.index)):(B.queueProxy=new _.$A(B.JSC$12926_playlistNetworkManager,G.playlistId,B.setPlaylistData.bind(B),B.clearQueue.bind(B),_.gk6(G.playlistPanelRenderer),B.storage),B.responsePlaylistData=G.playlistPanelRenderer,B.listId=G.playlistId,
B.index=G.playlistIndex):(B.index=G.playlistIndex,B.listId!==G.playlistId&&B.clearQueue(),B.responsePlaylistData=G.playlistPanelRenderer,B.listId=G.playlistId,B.playlistProxy=new jIu(B.JSC$12926_playlistNetworkManager,G.playlistId,B.setPlaylistData.bind(B),_.gk6(G.playlistPanelRenderer)));else if(!B.queueProxy)B.responsePlaylistData=void 0;else if(G.playingVideoId&&Q.clientParams.autoSaveToQueue){if(B.index===void 0){_.oy(Error("Lf"));B.clearQueue();break a}B.queueProxy.videoIds.includes(G.playingVideoId)||
(B.index+=1,B.queueProxy.JSC$12872_setCurrentIndex(B.index),B.queueProxy.addVideos([G.playingVideoId],{},B.index))}_.WD(B,_.ZU(B,B.response.autoplayRenderer))}})};var tOs=function(O,m){m=m===void 0?_.tC():m;kz.call(this);this.qH.push(new bA(this.hC,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},m));this.qH.push(new Vm(this.hC,O,!1,!1));_.V("web_response_commands_chunk_processor")&&this.qH.push(new y0)};
_.X(tOs,kz);tOs.prototype.processChunk=function(O){O&&O.data.player===void 0&&this.hC.resolve();kz.prototype.processChunk.call(this,O)};var ni=function(O,m){O=O===void 0?{layer:0}:O;this.hasRun=!1;this.createScreenConfig=O;this.iyE=m};
_.X(ni,XW);ni.prototype.validate=function(O){return!(this.hasRun||!O.endpoint)};
ni.prototype.handle=function(O){var m=_.uK(),G,B,Q=(B=_.b((G=O.endpoint)==null?void 0:G.commandMetadata,_.bP))==null?void 0:B.rootVe;this.iyE&&Q?_.E1(m,Q,this.iyE,this.createScreenConfig):H52(m,O.endpoint,this.createScreenConfig);this.hasRun=!0};var X5=function(O,m){this.hasRun=!1;this.zPg=O;this.previousVideoId=m};
_.X(X5,XW);X5.prototype.validate=function(O){return _.V("kevlar_continue_playback_without_player_response")&&(O=_.b(O.endpoint,_.GC),(O==null?0:O.videoId)&&this.previousVideoId&&(O==null?void 0:O.videoId)===this.previousVideoId&&(O==null?0:O.continuePlayback))?!1:this.zPg.qSl===0};
X5.prototype.handle=function(O){_.sJ.getInstance().triggerAction("yt-stop-old-player",O.data,!0)};var WV8=function(O){O=O===void 0?{layer:0}:O;kz.call(this);this.qH.push(new X5(this));this.qH.push(new ni(O));this.qH.push(new aS(O))};
_.X(WV8,kz);var fi=function(){XW.apply(this,arguments)};
_.X(fi,XW);fi.prototype.validate=function(O){return!!O.data.preconnect};
fi.prototype.handle=function(O){_.cd("bc");O=_.K(O.data.preconnect);for(var m=O.next();!m.done;m=O.next())m=m.value,(new Image).src=m};var Za8=function(O,m,G,B,Q,H,M){G=G===void 0?{layer:0}:G;H=H===void 0?_.tC():H;kz.call(this);if(B)if(Q){Q=H;this.qH.push(new bA(this.hC,m,Q));this.qH.push(new fi);var R,x;this.qH.push(new Vm(this.hC,O,!1,!((R=m.clientParams)==null||!R.fromHistory),(x=m.clientParams)==null?void 0:x.previousVideoId,Q,m.tempData));var t;this.qH.push(new X5(this,(t=m.clientParams)==null?void 0:t.previousVideoId));var W;(W=m.clientParams)!=null&&W.fromHistory||(G.layer||(G=Object.assign({},G,{layer:0})),this.qH.push(new ni(G,
M)),this.qH.push(new aS(G)))}else this.qH.push(new bA(this.hC,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},H)),this.qH.push(new Vm(this.hC,O,!1,!1));else this.qH.push(new X5(this)),this.qH.push(new ni(G)),this.qH.push(new aS(G));_.V("web_response_commands_chunk_processor")&&B&&this.qH.push(new y0)};
_.X(Za8,kz);Za8.prototype.processChunk=function(O){O&&O.data.player===void 0&&this.hC.resolve();kz.prototype.processChunk.call(this,O)};var z3$=function(){this.hasRun=this.hasRun=!1};
_.X(z3$,XW);z3$.prototype.validate=function(O){return!this.hasRun&&!(!O.data.csn||!O.data.rootVe)};
z3$.prototype.handle=function(O){this.hasRun=!0;_.Yf(O.data.csn,O.data.rootVe,3)};var Ju2=function(O,m,G){G=G===void 0?{layer:0}:G;kz.call(this);this.qH.push(new Vm(this.hC,O));this.qH.push(new ni(G));this.qH.push(new aS(G))};
_.X(Ju2,kz);var VO8=function(O,m,G,B,Q){G=G===void 0?{layer:0}:G;B=B===void 0?_.tC():B;kz.call(this);var H=!!m&&!!m.clientParams&&!!m.clientParams.miniplayer;H&&this.qH.push(new z3$);this.qH.push(new bA(this.hC,m,B));this.qH.push(new fi);var M,R;this.qH.push(new Vm(this.hC,O,H,!((M=m.clientParams)==null||!M.fromHistory),(R=m.clientParams)==null?void 0:R.previousVideoId,B,m.tempData));var x;this.qH.push(new X5(this,(x=m.clientParams)==null?void 0:x.previousVideoId));var t;(t=m.clientParams)!=null&&t.fromHistory||
(G.layer||(G=Object.assign({},G,{layer:H?3:0})),this.qH.push(new ni(G,Q)),this.qH.push(new aS(G)));_.V("web_response_commands_chunk_processor")&&this.qH.push(new y0)};
_.X(VO8,kz);var hC,XF$;hC={};
_.baU=(hC["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},hC["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},hC["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},hC["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},hC["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},hC["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},hC["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},hC);_.Tb=new _.YG("yt-edu");_.neU=function(){this.JSC$13024_eduDisplayedThisLoad_={}};
XF$=function(O){var m=_.neU.getInstance();var G=_.Rd("kevlar_tooltip_impression_cap");m=G&&parseInt(_.Tb.get(O+"-impression")||0,10)>=G||_.Tb.get(O+"-dismissed")?!1:(G=_.baU[O])&&!m.JSC$13024_eduDisplayedThisLoad_[G.setKey||O]&&(G.titleText&&_.Xm(G.titleText)||G.bodyText&&_.Xm(G.bodyText))?!0:!1;if(!m)return null;m=_.baU[O];if(!m)return null;G=m.bodyText?_.Xm(m.bodyText):void 0;var B=m.titleText?_.Xm(m.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:m.position,popup:{bubbleHintRenderer:{text:B?
_.Qg(B):void 0,detailsText:G?_.Qg(G):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Qg(_.Xm("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:O}}]}}}}}}}},{eduImpressionAction:{key:O}}]};
_.Kq(_.neU);var jrO=!1;for(var fGU="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),h3u=[],gS=6;gS>=1;gS--)h3u.push({columnCount:gS,query:gS==1?0:gS*2*107-4+32,className:"grid-"+gS+"-columns",width:gS*2*107+"px"});_.uA=function(O){this.actionRouter_=O=O===void 0?_.sJ.getInstance():O;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.T49(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.T49=function(O){var m=O.documentWidth_-(O.miniGuideVisible_?72:0)-(O.guidePersistentAndVisible_?240:0)-(O.persistentPanelVisible_?400:0);return h3u.find(function(G){return m>G.query})};
_.Kq(_.uA);var geC=function(){var O=this;this.JSC$13036_keyboardInUse=!1;document.addEventListener("keydown",function(){O.onKeydown()});
document.addEventListener("mousedown",function(){O.JSC$13036_keyboardInUse=!1})},uMs;
geC.prototype.isKeyBoardInUse=function(){return this.JSC$13036_keyboardInUse};
geC.prototype.onKeydown=function(){this.JSC$13036_keyboardInUse=!0};var jAU,pi;_.jt=new _.YG("yt-mentions");_.It=function(){};
jAU=function(O,m){return pi(m,"drag-to-reorder-edu-displayed")};
pi=function(O,m,G,B,Q,H){G=G===void 0?"OPEN_POPUP_POSITION_TOP":G;if(m){if(_.jt.get(m))return;_.jt.set(m,!0,B)}if(Q&&H!==void 0){m=Number(_.jt.get(Q)||0);if(m>=H)return;_.jt.set(Q,m+1)}return[{openPopupAction:{popupType:"HINT",position:G,popup:{bubbleHintRenderer:{detailsText:O,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Kq(_.It);var IG3,pFm,S8e;IG3=function(O,m,G,B){this.JSC$13046_taskManager_=O;this.onFulfilled_=typeof m==="function"?m:null;this.onRejected_=typeof G==="function"?G:null;this.JSC$13046_context_=B};
pFm=function(O,m){O.onFulfilled_&&_.Sh(O.JSC$13046_taskManager_,function(){O.onFulfilled_.call(O.JSC$13046_context_,m)})};
S8e=function(O,m){O.onRejected_&&_.Sh(O.JSC$13046_taskManager_,function(){O.onRejected_.call(O.JSC$13046_context_,m)})};
_.St=function(O){this.JSC$13049_taskManager_=O;this.callbacks_=[]};
_.St.prototype.then=function(O,m,G){this.callbacks_.push(new IG3(this.JSC$13049_taskManager_,O,m,G));return this};
_.St.prototype.onSuccess=function(O){this.callbacks_.forEach(function(m){pFm(m,O)})};
_.St.prototype.onFailure=function(O){this.callbacks_.forEach(function(m){S8e(m,O)})};
_.St.prototype.cancel=function(){this.callbacks_.length=0};
xMo(_.St);_.Cp6=null;_.pH=new _.Us("ACTIVITY_TOKEN");var EE=function(O,m){this.serviceId=new xue(O,m)};
EE.prototype.toString=function(){return this.serviceId.toString()};var Eem=function(){this.internalMap={}};
_.v=Eem.prototype;_.v.contains=function(O){return Object.prototype.hasOwnProperty.call(this.internalMap,O)};
_.v.get=function(O){if(this.contains(O))return this.internalMap[O]};
_.v.set=function(O,m){this.internalMap[O]=m};
_.v.getKeys=function(){return Object.keys(this.internalMap)};
_.v.remove=function(O){delete this.internalMap[O]};var Li=function(){this.mappings=new Eem;this.errorCallbacks=new Set};
Li.prototype.getModuleId=function(O){return O.serviceId.getModuleId()};
Li.prototype.get=function(O){var m=this.mappings.get(O.toString());return LVC(this,m,O)};
Li.prototype.getMultipleAsync=function(){var O=_.eA.apply(0,arguments),m=this,G=O.map(function(x){return m.getModuleId(x)}),B=O.map(function(x){return m.mappings.get(x.toString())}).filter(function(x){return x});
if(B.length===O.length)return _.ZY(B.map(function(x,t){return LVC(m,x,O[t])}));
var Q=ow().loadMultiple(G);B=_.ll(G.map(function(x){return Q[x]}));
var H=document.hidden,M=-1,R=_.Rd("get_async_timeout_ms",-1);R>-1&&(M=setTimeout(function(){_.ay(new _.j9("Module timeout.",G,H,document.hidden))},R));
return _.a7(B.then(function(){return O.map(function(x){return LVC(m,m.mappings.get(x.toString()),x)})}).thenCatch(function(x){for(var t=_.K(m.errorCallbacks),W=t.next();!W.done;W=t.next())W=W.value,W(x);
throw x;}),function(){clearTimeout(M)})};
Li.prototype.registerService=function(O,m){this.mappings.set(O.toString(),{type:"mapping",value:m});return O};
var LVC=function(O,m,G){switch(m.type){case "mapping":return m.value;case "factory":return m=m.value(),O.mappings.set(G.toString(),{type:"mapping",value:m}),m;default:return _.d8(m)}};
Li.prototype.onLoadError=function(O){var m=this;this.errorCallbacks.add(O);return function(){m.errorCallbacks.delete(O)}};
_.Ci=new Li;var yhz=/^[a-zA-Z0-9_\-]{11}$/;var chz=_.p4(function(){var O,m;return(m=(O=window).matchMedia)==null?void 0:m.call(O,"(prefers-reduced-motion: reduce)").matches});var C$3=_.p4(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 O=_.ex("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");O||(O=_.fd("VIDEO"),_.HI("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
O));return!!(O&&O.canPlayType&&O.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var srO=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var ot;ot=function(){this.tokenJars={};if(this.cookiesEnabled=_.Tg()){var O=_.fR.get("CONSISTENCY",void 0);O&&oe$(this,{encryptedTokenJarContents:O})}};
_.Ppp=function(){ot.instance||(ot.instance=new ot);return ot.instance};
ot.prototype.handleResponse=function(O,m){if(!m)throw Error("Vf");var G,B;m=((G=m.innerTubeRequest.context)==null?void 0:(B=G.request)==null?void 0:B.consistencyTokenJars)||[];var Q;(O=(Q=O.responseContext)==null?void 0:Q.consistencyTokenJar)&&this.replace(m,O)};
ot.prototype.replace=function(O,m){O=_.K(O);for(var G=O.next();!G.done;G=O.next())delete this.tokenJars[G.value.encryptedTokenJarContents];oe$(this,m)};
var oe$=function(O,m){if(m.encryptedTokenJarContents&&(O.tokenJars[m.encryptedTokenJarContents]=m,typeof m.expirationSeconds==="string")){var G=Number(m.expirationSeconds);setTimeout(function(){delete O.tokenJars[m.encryptedTokenJarContents]},G*1E3);
O.cookiesEnabled&&_.hE("CONSISTENCY",m.encryptedTokenJarContents,G,void 0,!0)}};var lG3,lA;lG3=window.location.hostname.split(".").slice(-2).join(".");_.kH=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var O=_.kB("LOCATION_PLAYABILITY_TOKEN");_.kB("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=aGH(this))&&(O=this.localStorage.get("yt-location-playability-token"));O&&(this.locationPlayabilityToken=O,this.mostRecentPosition=void 0)};
_.kH.getInstance=function(){lA=_.ex("yt.clientLocationService.instance");lA||(lA=new _.kH,_.HI("yt.clientLocationService.instance",lA));return lA};
_.kH.prototype.setLocationOnInnerTubeContext=function(O){O.client||(O.client={});if(this.mostRecentPosition)O.client.locationInfo||(O.client.locationInfo={}),O.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),O.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),O.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),O.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)O.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.kH.prototype.handleResponse=function(O){var m;O=(m=O.responseContext)==null?void 0:m.locationPlayabilityToken;O!==void 0&&(this.locationPlayabilityToken=O,this.mostRecentPosition=void 0,_.kB("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=aGH(this))&&this.localStorage.set("yt-location-playability-token",O,15552E3):_.hE("YT_CL",JSON.stringify({loctok:O}),15552E3,lG3,!0))};
var aGH=function(O){return O.localStorage===void 0?new _.YG("yt-client-location"):O.localStorage};
_.kH.prototype.clearLocationPlayabilityToken=function(O){O==="TVHTML5"?(this.localStorage=aGH(this))&&this.localStorage.remove("yt-location-playability-token"):_.ZsN("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.kH.prototype.getCurrentPositionFromGeolocation=function(){var O=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Wf"));var m=!1,G=1E4;_.kB("INNERTUBE_CLIENT_NAME")==="MWEB"&&(m=!0,G=15E3);return new Promise(function(B,Q){navigator.geolocation.getCurrentPosition(function(H){O.mostRecentPosition=H;B(H)},function(H){Q(H)},{enableHighAccuracy:m,
maximumAge:0,timeout:G})})};
_.kH.prototype.createUnpluggedLocationInfo=function(O){var m={};O=O.coords;if(O==null?0:O.latitude)m.latitudeE7=Math.floor(O.latitude*1E7);if(O==null?0:O.longitude)m.longitudeE7=Math.floor(O.longitude*1E7);if(O==null?0:O.accuracy)m.locationRadiusMeters=Math.round(O.accuracy);return m};
_.kH.prototype.createLocationInfo=function(O){var m={};O=O.coords;if(O==null?0:O.latitude)m.latitudeE7=Math.floor(O.latitude*1E7);if(O==null?0:O.longitude)m.longitudeE7=Math.floor(O.longitude*1E7);return m};var kQ3=function(){};
_.v=kQ3.prototype;
_.v.JSC$13116_getRequest=function(O,m,G){m=m===void 0?{}:m;G=G===void 0?Wdm:G;var B=m;if(this.isNavigationCommand()){var Q,H=(Q=_.b(O==null?void 0:O.commandMetadata,_.bP))==null?void 0:Q.url;B=_.FFp(O.clickTrackingParams,!0,!1,H,this.JSC$13116_getClientScreen(B))}else B=_.FFp(O.clickTrackingParams,!1,this.includeCsn);B={context:B};if(Q=this.getExtension(O))return this.JSC$13116_buildRequest(B,Q,m),Q=this.getApiUrl(O),H=Object.assign({},{command:O},this.getRequestConfig(O,m)),B={input:Q,requestShell:OB(Q),
innerTubeRequest:B,config:H},B.config.authStrategy?B.config.authStrategy.identity=G:B.config.authStrategy={identity:G},(O=this.JSC$13116_getRequestKey(O,m))&&!B.config.requestKey&&(B.config.requestKey=O),B;O=new _.j9("Error: Failed to create Request from Command.",O);_.oy(O)};
_.v.getApiUrl=function(O){var m=_.$H(this.getApiPaths(O)),G;(O=(G=_.b(O.commandMetadata,_.bP))==null?void 0:G.apiUrl)&&(m=O);return zhz(ZUN(m))};
_.v.isNavigationCommand=function(){return!1};
_.v.JSC$13116_getClientScreen=function(){};
_.v.JSC$13116_getRequestKey=function(){};
_.v.getRequestConfig=function(){};
_.vr.Object.defineProperties(kQ3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var at=function(){};
_.X(at,kQ3);at.prototype.JSC$13123_getStoreKey=function(){};
at.prototype.JSC$13116_getRequestKey=function(O,m){m=m===void 0?{}:m;return this.JSC$13123_getStoreKey(O,m)};_.yg={getLocalStorage:_.p4(function(){try{var O=new fhM;var m=O.isAvailable()?O:null}catch(G){return null}return m?new _.UF(m):null}),
getSessionStorage:_.p4(function(){var O=new hZN;return O.isAvailable()?new _.UF(O):null})};var $p=new _.Us("ENTITY_STATE_TOKEN"),kA=new _.Us("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var yum=XMLHttpRequest.prototype.fetch,cu2=yum&&yum.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!BI?!0:!1;var ym=function(O){this.JSC$13129_storeWithEntities=O};
_.X(ym,at);_.v=ym.prototype;_.v.getApiPaths=function(){return KcC};
_.v.getExtension=function(O){return _.b(O,_.GC)||_.b(O,_.pf)||_.b(O,QS2)};
_.v.isNavigationCommand=function(){return!0};
_.v.JSC$13123_getStoreKey=function(O){if((_.V("kevlar_cache_on_ttl_player")||_.V("mweb_enable_shorts_innertube_player_prefetch")||_.V("mweb_use_new_history_manager")||_.V("web_shorts_prefetch_service_enabled"))&&(O=this.getExtension(O))&&O.videoId){var m={videoId:O.videoId};O.playlistId&&(m.playlistId=O.playlistId);O.playerParams&&(m.params=O.playerParams);return _.m8("player",m)}};
_.v.JSC$13116_getClientScreen=function(O){var m;return((m=O.contentPlaybackContext)==null?void 0:m.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.v.JSC$13116_buildRequest=function(O,m,G){if(_.V("enable_interstitial_entity_check")){var B=this.JSC$13129_storeWithEntities;if(m.videoId)for(var Q=_.K(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),H=Q.next();!H.done;H=Q.next()){H=H.value;var M;var R=void 0,x=void 0,t=m.videoId,W=H;(M=B)?(t=_.Ja(t+W,"interstitialInteractionStateEntity"),M=(R=(x=_.Vh(M.getState().entities,"interstitialInteractionStateEntity",t))==null?void 0:x.primaryButtonClicked)!=null?R:!1):M=!1;if(M)switch(H){case "CONTENT_CHECK_REQUIRED":m.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":m.racyCheckOk=!0}}}m.videoId&&(O.videoId=m.videoId);m.playlistId&&(O.playlistId=m.playlistId);m.index!==void 0&&(O.playlistIndex=m.index+1);m.playerParams&&(O.params=m.playerParams);"startTimeSeconds"in m&&m.startTimeSeconds&&(_.V("enable_player_request_builder_start_time_floor")?O.startTimeSecs=Math.floor(m.startTimeSeconds):O.startTimeSecs=m.startTimeSeconds);G.contentPlaybackContext&&(O.playbackContext={contentPlaybackContext:G.contentPlaybackContext});G.prefetchPlaybackContext&&
(O.playbackContext=Object.assign({},O.playbackContext,{prefetchPlaybackContext:G.prefetchPlaybackContext}),O.context.request||(O.context.request={}),O.context.request.isPrefetch=!0);O.playbackContext||(O.playbackContext={});B=C$3();O.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!B,supportXhr:cu2};G.overrideMutedAtStart&&(O.overrideMutedAtStart=G.overrideMutedAtStart);O.racyCheckOk=!!m.racyCheckOk;O.contentCheckOk=!!m.contentCheckOk;!_.V("captions_prefs_killswitch")&&(G=(G=_.YH("yt-player-caption-language-preferences"))?
G:[],G==null?0:G.length)&&(O.captionParams={viewerSelectedCaptionLangs:G})};
_.v.getRequestConfig=function(O){O=this.JSC$13123_getStoreKey(O);var m;O&&(m={storeStrategy:{storeKey:O}});_.V("web_log_player_watch_next_ticks")&&(m=m||{},m.requestTick="ps_s",m.responseTick="ps_r");return m};
ym[$R]=[$p];var cD=function(){};
_.X(cD,at);_.v=cD.prototype;_.v.getApiPaths=function(){return lSm};
_.v.getExtension=function(O){return _.b(O,_.GC)};
_.v.isNavigationCommand=function(){return!0};
_.v.JSC$13123_getStoreKey=function(O){if((O=this.getExtension(O))&&O.videoId){var m={videoId:O.videoId};O.playlistId&&(m.playlistId=O.playlistId);O.index&&(m.index=O.index);O.params&&(m.params=O.params);return _.m8("next",m)}};
_.v.JSC$13116_getClientScreen=function(O){var m;return((m=O.contentPlaybackContext)==null?void 0:m.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.v.JSC$13116_buildRequest=function(O,m,G){m.videoId&&(O.videoId=m.videoId);m.playlistId&&(O.playlistId=m.playlistId);m.params&&(O.params=m.params);m.index!==void 0&&(O.playlistIndex=m.index);O.racyCheckOk=!(!G.racyCheckOk&&!m.racyCheckOk);O.contentCheckOk=!!m.contentCheckOk;G.contentPlaybackContext&&(O.autonavState=G.contentPlaybackContext.autonavState,O.playbackContext={vis:G.contentPlaybackContext.vis,lactMilliseconds:G.contentPlaybackContext.lactMilliseconds});G.prefetchPlaybackContext&&(O.context.request||
(O.context.request={}),O.context.request.isPrefetch=!0);_.V("captions_hats_killswitch")||(m=_.TC().getFlag(65),m=m!=null?!m:!1,G=!!_.YH("yt-player-sticky-caption"),O.captionsRequested=m&&G)};
_.v.getRequestConfig=function(O){O=this.JSC$13123_getStoreKey(O);var m;O&&(m={storeStrategy:{storeKey:O}});_.V("web_log_player_watch_next_ticks")&&(m=m||{},m.requestTick="wn_s",m.responseTick="wn_r");return m};
var YA=function(){};
_.X(YA,at);YA.prototype.getApiPaths=function(){return lSm};
YA.prototype.getExtension=function(O){return _.b(O,_.Dw)};
YA.prototype.JSC$13116_buildRequest=function(O,m){m.token&&(O.continuation=m.token)};var dS=function(O,m){this.playerRequestBuilder=O;this.watchNextRequestBuilder=m};
_.X(dS,at);dS.prototype.getApiPaths=function(){return Nm$};
dS.prototype.getExtension=function(O){return _.b(O,_.GC)};
dS.prototype.isNavigationCommand=function(){return!0};
dS.prototype.JSC$13116_buildRequest=function(O,m,G){O.playerRequest={};this.playerRequestBuilder.JSC$13116_buildRequest(O.playerRequest,m,G);_.V("web_streaming_watch")&&(O.watchNextRequest={},this.watchNextRequestBuilder.JSC$13116_buildRequest(O.watchNextRequest,m,G))};
dS[$R]=[ym,cD];var Y89;_.wS=new _.Us("SHORTS_CONTROLLER_TOKEN");Y89=new _.Us("SHORTS_STATE_STORE_TOKEN");var et=function(O,m){var G=_.eA.apply(2,arguments);O=O===void 0?0:O;_.j9.call(this,m,G);this.errorType=O;Object.setPrototypeOf(this,this.constructor.prototype)};
_.X(et,_.j9);var dW_,wFs,DWp,HXO,wJ,nq6,FVo,P$j,Q58,m8$,Ovu;dW_=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(O){return O+"="}).join("|"));
wFs=RegExp(".*\\?.*playnext=1.*");_.DU=function(O,m,G,B){this.watchEndpointMap=O;this.reelWatchEndpointMap=m;this.innerTubeTransportService=G;this.fetchPbj=B};
DWp=function(O,m,G){var B=_.KR().resolve(_.v7(e38));_.DU.instance=new _.DU(O,m,G,B)};
_.sAH=function(O,m){var G=_.Rd("web_pbj_log_warning_rate",0);G=G>0&&Math.random()<G;var B;if((B=_.b(m.commandMetadata,_.bP))==null||!B.rootVe)return G&&_.ay(Error("Yf")),!1;var Q;B=(Q=_.b(m.commandMetadata,_.bP))==null?void 0:Q.url;if(!B)return G&&_.ay(Error("Zf")),!1;if(wFs.test(B))return!0;if(dW_.test(B))return G&&_.ay(Error("$f`"+B)),!1;if(_.b(m,_.GC)){if(!(O.watchEndpointMap.watchNext&&O.watchEndpointMap.player||_.V("kevlar_fetch_initial_data_op_watch_client")))return G&&_.ay(Error("Rf")),!1;
O=_.Rd("web_pbj_log_warning_rate",0);O=O>0&&Math.random()<O;_.b(m,_.GC)?a2O(m)?m=!0:(O&&_.ay(Error("Sf")),m=!1):(O&&_.ay(Error("Rf")),m=!1);return m}if(_.b(m,_.pf))return kj6(m);if(_.b(m,_.Q0))return!0;O=_.AH(O.innerTubeTransportService,m);!O&&G&&_.oy(Error("ag"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(m)});return O};
HXO=function(O,m,G,B,Q,H){m={url:m};if(G==null?0:G.itct)m.parentTrackingParams=G.itct;var M=_.$H(tCC);return _.rS(O.innerTubeTransportService,m,M).then(function(R){(R=R.endpoint)||(R=_.Yz);(G==null?0:G.itct)&&R&&!R.trackingParams&&(R.trackingParams=G.itct);var x=jw(R);return wJ(O,R,G,B,x,Q,H)})};
wJ=function(O,m,G,B,Q,H,M,R){R=R===void 0?{}:R;if(O.fetchPbj&&!_.sAH(O,m)&&!_.V("force_one_platform")){R=O.fetchPbj(m);var x=_.ZY(R.then(function(w){if(!w)throw Error("bg");M(x)||H(m,w);return w}));
return x}var t,W,Z={rootVe:(t=_.b(m.commandMetadata,_.bP))==null?void 0:t.rootVe,url:(W=_.b(m.commandMetadata,_.bP))==null?void 0:W.url,endpoint:m,page:Q};if(_.b(m,_.GC)){var z,J={contentPlaybackContext:_.Lf(G,(z=_.b(m.commandMetadata,_.bP))==null?void 0:z.url,B)},n=_.m3();_.V("web_streaming_watch")&&window.TextDecoderStream?(R=N4C(O.innerTubeTransportService,m,J,function(w){!Z.response&&w.content&&(Z.response=w.content);!Z.playerResponse&&w.player&&(Z.playerResponse=w.player);H(m,Z)}),t=JxY(m),t.length&&
(Z.preconnect=t,H(m,Z)),P$j(R,n,Z).catch(function(w){w instanceof et&&w.errorType===2&&_.V("web_streaming_watch_fallback")&&FVo(O,m,J,Z,H,M,n)})):FVo(O,m,J,Z,H,M,n);
return n.promise}if(_.b(m,_.pf)){var I;if(((I=_.b(m,_.pf))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var S=_.m3();_.AuU(_.KR().resolve(_.wS),m).then(function(w){Ovu(O,G,B,Q,H,S,w)});
return S.promise}R=_.ZY();var L;t={contentPlaybackContext:_.Lf(G,(L=_.b(m.commandMetadata,_.bP))==null?void 0:L.url,B)};(L=O.reelWatchEndpointMap.player)&&(L=L().JSC$13116_getRequest(m,t))&&(R=_.rS(O.innerTubeTransportService,L.innerTubeRequest,L.input,m.clickTrackingParams,L.config));L=_.ZY();(W=O.reelWatchEndpointMap.reelItemWatch)&&(W=W().JSC$13116_getRequest(m))&&(L=_.rS(O.innerTubeTransportService,W.innerTubeRequest,W.input,m.clickTrackingParams,W.config));W=_.ZY();_.V("web_enable_delay_shorts_sequence_call_new")||
(z=O.reelWatchEndpointMap.reelWatchSequence)&&_.b(m,_.pf).sequenceParams&&(t=z().JSC$13116_getRequest(m,t))&&(W=_.rS(O.innerTubeTransportService,t.innerTubeRequest,t.input,m.clickTrackingParams,t.config));t=_.ZY(Z);z=_.m3();m8$(m,t,R,L,W,H,M,z);return z.promise}var C;if(_.b(m,LFp)&&((C=_.b(m.commandMetadata,_.bP))==null?0:C.url))return R=NmN(_.Ph(cY().location.href),_.Ph(_.b(m.commandMetadata,_.bP).url)).toString(),HXO(O,R,G,B,H,function(){return!1});
if(_.b(m,_.Q0))return H(m,Z),_.ZY(Z);if(_.AH(O.innerTubeTransportService,m)){R=Object.assign({},{tempData:G,disableCache:G.disableCache},R);var P=_.Ov(O.innerTubeTransportService,m,R).then(function(w){Z.response=w;M(P)||H(m,Z);return Z});
return P}return _.ZY(Z)};
_.BF$=function(O,m,G,B){if(_.b(m,_.GC)||_.b(m,_.pf)&&(_.V("mweb_enable_shorts_innertube_player_prefetch")||_.V("kevlar_enable_shorts_prefetch_in_sequence"))||_.b(m,QS2)&&_.V("web_enable_prefetching_videos_on_home")){var Q,H={contentPlaybackContext:_.Lf(G,(Q=_.b(m.commandMetadata,_.bP))==null?void 0:Q.url,B),prefetchPlaybackContext:dKY(G)},M,R,x;if(((M=_.b(m,_.GC))==null?void 0:(R=M.watchEndpointSupportedPrefetchConfig)==null?void 0:(x=R.prefetchHintConfig)==null?void 0:x.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(G=
O.watchEndpointMap.watchNext)if(H=G().JSC$13116_getRequest(m,H))return Promise.resolve(_.rS(O.innerTubeTransportService,H.innerTubeRequest,H.input,void 0,H.config).then(function(Z){return Z}))}else if(G=O.watchEndpointMap.player)if(H=G().JSC$13116_getRequest(m,H))return Promise.resolve(_.rS(O.innerTubeTransportService,H.innerTubeRequest,H.input,void 0,H.config).then(function(Z){return Z}))}else if(_.AH(O.innerTubeTransportService,m)){var t={tempData:G},W=GTU(O.innerTubeTransportService,m);
return W?new Promise(function(Z,z){var J,n;return _.r(function(I){if(I.nextAddress==1)return I.yield(W,2);if(I.nextAddress!=4)return J=I.yieldResult,J.JSC$13123_getStoreKey(m,t)?I.yield(_.Ov(O.innerTubeTransportService,m,t),4):(z(new _.j9("Prefetching request builder with no store key.",m)),I.jumpTo(0));n=I.yieldResult;Z(n);_.ju(I)})}):Promise.reject(new _.j9("Prefetching unregistered request builder.",m))}return Promise.reject(new _.j9("No request builder available to prefetch endpoint.",m))};
nq6=function(O,m){var G,B,Q;if(_.b(m,_.GC)){var H=O.watchEndpointMap.watchNext;H&&(G=H());(O=O.watchEndpointMap.player)&&(B=O())}else if(_.b(m,_.pf))(H=O.reelWatchEndpointMap.reelItemWatch)&&(G=H()),(H=O.reelWatchEndpointMap.player)&&(B=H()),(O=O.reelWatchEndpointMap.reelWatchSequence)&&(Q=O());else{a:{O=kWp(m,O.innerTubeTransportService.endpointMap);if(O!==void 0)if(typeof O.then==="function")_.oy(new _.j9("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",m));else break a;
O=void 0}O&&(G=O)}var M,R,x;return{content:(M=G)==null?void 0:M.JSC$13123_getStoreKey(m),player:(R=B)==null?void 0:R.JSC$13123_getStoreKey(m),reelSequence:(x=Q)==null?void 0:x.JSC$13123_getStoreKey(m)}};
FVo=function(O,m,G,B,Q,H,M){var R=_.ZY(),x=O.watchEndpointMap.player;_.V("web_streaming_player")&&(x=EK(dS));x&&(x=x().JSC$13116_getRequest(m,G))&&(R=_.rS(O.innerTubeTransportService,x.innerTubeRequest,x.input,m.clickTrackingParams,x.config));x=_.ZY();var t=O.watchEndpointMap.watchNext;t&&(G=t().JSC$13116_getRequest(m,G))&&(x=_.rS(O.innerTubeTransportService,G.innerTubeRequest,G.input,m.clickTrackingParams,G.config));O=_.ZY(B);Q58(m,O,R,x,Q,H,M)};
P$j=function(O,m,G){return _.r(function(B){if(B.nextAddress==1)return B.yield(O,2);m.resolve(G);_.ju(B)})};
Q58=function(O,m,G,B,Q,H,M){var R,x,t,W,Z;_.r(function(z){switch(z.nextAddress){case 1:return z.yield(m,2);case 2:R=z.yieldResult;if(H(M.promise))return M.resolve(R),z.return();Q(O,R);x=JxY(O);if(!x.length){z.jumpTo(3);break}return z.yield(m,4);case 4:R.preconnect=x,Q(O,R);case 3:return _.n_(z,5),z.yield(G,7);case 7:t=z.yieldResult;_.P7(z,6);break;case 5:return W=_.uS(z),M.reject(W),z.return();case 6:if(t===void 0)return R.reload=!0,Q(O,R),M.resolve(R),z.return();if(H(M.promise))return M.resolve(R),
z.return();R.playerResponse=t;Q(O,R);_.n_(z,8);return z.yield(B,10);case 10:Z=z.yieldResult;_.P7(z,9);break;case 8:_.uS(z);case 9:if(Z===void 0)return R.response={responseContext:{}},M.resolve(R),z.return();if(H(M.promise))return M.resolve(R),z.return();R.response=Z;Q(O,R);M.resolve(R);_.ju(z)}})};
m8$=function(O,m,G,B,Q,H,M,R){var x,t,W,Z,z,J;_.r(function(n){switch(n.nextAddress){case 1:return n.yield(m,2);case 2:x=n.yieldResult;if(M(R.promise))return R.resolve(x),n.return();H(O,x);t=JxY(O);if(!t.length){n.jumpTo(3);break}return n.yield(m,4);case 4:x.preconnect=t,H(O,x);case 3:return _.n_(n,5),n.yield(G,7);case 7:W=n.yieldResult;_.P7(n,6);break;case 5:return Z=_.uS(n),R.reject(Z),n.return();case 6:if(W===void 0)return x.reload=!0,H(O,x),R.resolve(x),n.return();if(M(R.promise))return R.resolve(x),
n.return();x.playerResponse=W;H(O,x);_.n_(n,8);return n.yield(B,10);case 10:z=n.yieldResult;_.P7(n,9);break;case 8:_.uS(n);case 9:if(z===void 0)return x.response={responseContext:{}},R.resolve(x),n.return();if(M(R.promise))return R.resolve(x),n.return();x.response=z;H(O,x);_.n_(n,11);return n.yield(Q,13);case 13:J=n.yieldResult;_.P7(n,12);break;case 11:_.uS(n);case 12:if(M(R.promise))return R.resolve(x),n.return();J&&(x.reelWatchSequenceResponse=J);H(O,x);R.resolve(x);_.ju(n)}})};
Ovu=function(O,m,G,B,Q,H,M){var R,x,t,W,Z,z;_.r(function(J){if((R=M)==null||!R.replacementEndpoint)return H.reject(),J.return();x=M.replacementEndpoint;(t=_.b(x,_.pf))?(M.sequenceContinuation&&(t.sequenceParams=M.sequenceContinuation),W=_.KR().resolve(_.wS),Z=t.sequenceParams,HvH(W,x)&&delete t.sequenceParams,z=wJ(O,x,m,G,B,Q,function(){return!1}),z.then(function(n){return _.r(function(I){if(I.nextAddress==1)return vQj(W,{reelWatchEndpoint:{sequenceParams:Z}},n),I.yield(0,2);
H.resolve(n);_.ju(I)})})):H.reject();
_.ju(J)})};_.KDH=function(O){if(O.validatedFragments_.length==0)return null;if(!O.mergedPrefetchedData_){for(var m=[],G=_.K(O.validatedFragments_),B=G.next();!B.done;B=G.next()){B=_.K(O.fragmentConfiguration_[B.value].graftedKeys);for(var Q=B.next();!Q.done;Q=B.next())(Q=O.prefetchedData_[Q.value].trackingParams)&&m.push(Q)}O.mergedPrefetchedData_={};Object.assign(O.mergedPrefetchedData_,O.prefetchedData_,{clientSideGrafts:m})}return O.mergedPrefetchedData_};var $82;_.sE=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
$82=function(O,m,G){if(_.om6(m))return O.prefetchCache_.get(_.l2f(m,G))};_.N2=new _.Us("NAVIGATION_TOKEN");var M$s=function(O){var m=this;var G=G===void 0?mf5():G;var B=B===void 0?_.KR().resolve(_.N2):B;this.onePickCommand=O;this.JSC$13227_playlistNetworkManager=G;this.navigationManager=B;this.videoPickerBuilder=_.Ahf("yt-addtoplaylist");_.SeH(hN$(TE9(fb3(this.videoPickerBuilder.setTitle(O.modalTitle).setSize(1E3).addView(uz2()).addView(gRp())).addView("youtube"),O.selectButtonLabel)),function(Q){m.handleAction(Q)})};
M$s.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
M$s.prototype.handleAction=function(O){var m=this;if(O&&this.onePickCommand.listId&&O.action==="picked"&&O.docs){var G=[];O.docs.forEach(function(B){G.push({addedVideoId:B.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13227_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,G).then(function(){_.V("playlist_add_video_hard_reload_killswitch")?m.navigationManager.reload():rDs(m.navigationManager)})}};var R4e=function(){if(this.constructor===R4e)throw new TypeError("cg");};
_.v=R4e.prototype;_.v.dispose=function(){};
_.v.disconnect=function(){};
_.v.reconnect=function(){};
_.v.observe=function(O,m,G){return{element:O,option:G}};
_.v.unobserveByKey=function(){};var GFe=function(O,m){m=m===void 0?0:m;R4e.call(this);this.viewroot=O;this.defaultPrescanHeight=m;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),O?{root:O,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.X(GFe,R4e);_.v=GFe.prototype;_.v.dispose=function(){this.disconnect();this.handlers.clear()};
_.v.disconnect=function(O){this.isConnected=!1;this.pauseObservingUntilReconnect=O===void 0?!1:O;this.observer.disconnect();O=_.K(this.prescanObservers.values());for(var m=O.next();!m.done;m=O.next())m.value.disconnect()};
_.v.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var O=_.K(this.handlers),m=O.next();!m.done;m=O.next()){var G=_.K(m.value);m=G.next().value;var B=G.next().value;G=!1;B=_.K(B.keys());for(var Q=B.next();!Q.done;Q=B.next())if((Q=Q.value)&&Q.state==="prescan"){G=!0;break}G&&ivH(this,m).observe(m);this.observer.observe(m)}}};
_.v.handleObserveEvent=function(O){O=_.K(O);for(var m=O.next();!m.done;m=O.next()){m=m.value;var G=this.handlers.get(m.target);if(G){var B=m.isIntersecting;G=_.K(G);for(var Q=G.next();!Q.done;Q=G.next()){var H=_.K(Q.value);Q=H.next().value;H=H.next().value;Q&&(Q.state==="visible"&&B||Q.state==="hidden"&&!B)&&(H(m.target,Q.state),Q.calledOnce&&this.unobserveByKey({element:m.target,option:Q}))}}}};
_.v.handlePrescanEvent=function(O){O=_.K(O);for(var m=O.next();!m.done;m=O.next()){m=m.value;var G=this.handlers.get(m.target);if(G&&m.isIntersecting){G=_.K(G);for(var B=G.next();!B.done;B=G.next()){var Q=_.K(B.value);B=Q.next().value;Q=Q.next().value;B&&B.state==="prescan"&&(Q(m.target,B.state),B.calledOnce&&this.unobserveByKey({element:m.target,option:B}))}}}};
_.v.observe=function(O,m,G){var B=(B=this.handlers.get(O))&&B.has(G)?{element:O,option:G}:void 0;if(B)return B;B={element:O,option:G};this.handlers.has(O)||this.handlers.set(O,new Map);var Q=this.handlers.get(O);Q&&!Q.has(G)&&Q.set(G,m);this.pauseObservingUntilReconnect||(G.state==="prescan"&&ivH(this,O).observe(O),this.observer.observe(O));return B};
_.v.unobserveByKey=function(O){var m=this.handlers.get(O.element);if(m&&m.has(O.option)){m.delete(O.option);if(O&&O.option.state==="prescan")for(var G=_.K(this.prescanObservers.values()),B=G.next();!B.done;B=G.next())B.value.unobserve(O.element);m.size===0&&(this.handlers.delete(O.element),this.observer.unobserve(O.element))}};
var ivH=function(O,m){var G=O.defaultPrescanHeight;m.hasAttribute("prescan-height")&&(m=Number(m.getAttribute("prescan-height")),isNaN(m)||(G=m));if(O.prescanObservers.has(G))return O.prescanObservers.get(G);m="-0.1px -0.1px "+G+"px -0.1px";m=new IntersectionObserver(O.handlePrescanEvent.bind(O),O.viewroot?{root:O.viewroot,rootMargin:m}:{rootMargin:m});O.prescanObservers.set(G,m);return m};var x8u=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],qlC=function(){var O,m=this;this.JSC$13244_actionRouter=O=O===void 0?_.sJ.getInstance():O;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return m.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return m.visibilityObservedElementHandlerKeys}}},U8s,WDj,JDo;
qlC.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.V("kevlar_use_vimio_behavior")&&_.kB("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=Bap())};
qlC.prototype.dispose=function(){this.visibilityMonitor&&_.E2(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
qlC.prototype.handleVisibilityRefreshed=function(){for(var O=_.K(this.targetMap.entries()),m=O.next();!m.done;m=O.next()){var G=_.K(m.value);m=G.next().value;G=G.next().value;_.t$p(this,m,G)}};
_.z43=function(O,m,G){WDj(O,G);var B=_.ZvC(O,m);B.element=G;O.targetedElements.set(G,m);_.t$p(O,m,B)};
WDj=function(O,m){var G=O.targetedElements.get(m);if(G){var B=O.targetMap.get(G);B&&(delete B.element,O.targetMap.set(G,B));O.targetedElements.delete(m);O.visibilityObserver&&O.visibilityObservedElementHandlerKeys&&(G=O.visibilityObservedElementHandlerKeys.get(m))&&(O.visibilityObserver.unobserveByKey(G),O.visibilityObservedElementHandlerKeys.delete(m))}};
_.t$p=function(O,m,G){var B=G.action,Q=G.element;Q&&B&&(x8u.includes(m)||_.kB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||O.visibilityMonitor&&O.visibilityMonitor.isNodeVisible(Q)?JDo(O,m,G):O.visibilityObserver&&(O.visibilityObservedElementHandlerKeys||(O.visibilityObservedElementHandlerKeys=new WeakMap),B=O.visibilityObserver.observe(Q,function(){JDo(O,m,G);O.visibilityObservedElementHandlerKeys.delete(Q)},{calledOnce:!0,
state:"visible"}),O.visibilityObservedElementHandlerKeys.set(Q,B)))};
JDo=function(O,m,G){var B=G.action;(G=G.element)&&B&&(_.P1(O.JSC$13244_actionRouter,[B],G),O.targetMap.delete(m),O.targetedElements.delete(G),O.triggeredTargets.add(m))};
_.ZvC=function(O,m){var G=O.targetMap.get(m);G||(G={},O.targetMap.set(m,G));return G};
_.PD=function(){U8s||(U8s=new qlC);return U8s};var V$u=document.createElement("div");V$u.style.touchAction="pan-down";var Q05=V$u.style.touchAction==="pan-down";var bvu,nQ3;bvu=function(){this.hammerFn=IvC();this.JSC$13252_screenManager=_.uK();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Zv(83615);_.CK(this.JSC$13252_screenManager,this.ve);HxN()};
_.F5=function(){nQ3||(nQ3=new bvu);return nQ3};
bvu.prototype.registerTouchEvents=function(O,m,G){var B=_.eA.apply(3,arguments),Q=this.hammerFn(O,{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}]]});G&&Q.set({touchAction:G});this.nodeManagerMapping.set(O,Q);var H=
vUp(m);B=_.K(B);for(var M=B.next();!M.done;M=B.next()){M=M.value;if(M.includes("swipe")||M.includes("pinch")||M.includes("pan"))M.includes("swipe")?Q.get("swipe").set({enable:!0,direction:H,velocity:.2}):M.includes("pinch")?Q.get("pinch").set({enable:!0}):M.includes("pan")&&(Q.get("pan").set({enable:!0,direction:H}),Q.get("swipe").set({enable:!0,direction:H,velocity:.2}),Q.get("swipe").recognizeWith("pan"));XRU(this,O,Q,M)}};
var XRU=function(O,m,G,B){G.on(B,function(Q){if(B.includes("pinch"))O.lastPinchTime=Date.now();else if(B.includes("swipe")&&Date.now()-O.lastPinchTime<400)return;Q.pointerType!=="mouse"&&(Q=B==="doubletap"?{coordinates:Q.center}:B.includes("pan")?Q:B.includes("swipe")?{target:Q.target}:{},m.dispatchEvent(new CustomEvent(B,{bubbles:!0,composed:!0,detail:Q})))})};
bvu.prototype.unregisterTouchEvents=function(O){var m=_.eA.apply(1,arguments),G=this.nodeManagerMapping.get(O);if(G){m=_.K(m);for(var B=m.next();!B.done;B=m.next())G.off(B.value);this.nodeManagerMapping.delete(O);O.style.touchAction="unset"}};var fQC=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var KcI=null;var h4u=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},fSp=function(){h4u.instance||(h4u.instance=new h4u);
return h4u.instance},huS=function(O){var m=O.networkEvents;
O.networkEvents=[];return _.V("enable_network_monitoring")?m:[]};var TF8;TF8={};_.gQ3=Kp("yt-serviceworker-metadata",{objectStores:(TF8.auth={addedAtVersion:1},TF8["resource-manifest-assets"]={addedAtVersion:2},TF8),shared:!0,upgrade:function(O,m){m(1)&&wY(O,"resource-manifest-assets");m(2)&&wY(O,"auth")},
version:2});var xf5=self.location.origin+"/";q5p([/\.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\//]);q5p([/purge_shell=1/]);var uiu=void 0;uiu=uiu===void 0?[]:uiu;for(var j5e=[],IQH=_.K(rJp),pR$=IQH.next();!pR$.done;pR$=IQH.next())j5e.push({key:pR$.value});for(var Sl_=_.K(uiu),EQ_=Sl_.next();!EQ_.done;EQ_=Sl_.next())j5e.push(EQ_.value);var LDs,sK=_.Qf==null?void 0:(LDs=_.Qf.performance)==null?void 0:LDs.memory,WcN=!1,Tas={},JWp={},NB={},PX=navigator;var AC=function(O){this.JSC$13296_expiringStorage=new pR(O)};
AC.prototype.set=function(O,m,G){G=G!==void 0?Date.now()+G:void 0;this.JSC$13296_expiringStorage.set(O,m,G)};
AC.prototype.get=function(O){return this.JSC$13296_expiringStorage.get(O)};
AC.prototype.remove=function(O){this.JSC$13296_expiringStorage.remove(O)};var LcN=_.FY(["https://www.youtube.com/",""]),C3N=_.FY(["https://studio.youtube.com/",""]),yW6="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",lSz=null,euO;var CYm=_.FY(["https://www.youtube.com/iframe_api"]),OX=function(){this.playerResolver_=_.m3();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.ID;this.playbackDurationSeconds_=0},oQ9=function(O){var m=function(){return window.YT&&typeof window.YT.ready==="function"};
if(m())return _.ZY(window.YT);var G=_.m3(),B=_.fd("SCRIPT");B.onload=B.onreadystatechange=function(){B.readyState&&B.readyState!="loaded"&&B.readyState!="complete"||(B.onload=_.ID,B.onreadystatechange=_.ID,B.onerror=_.ID,m()?G.resolve(window.YT):G.reject(new _.j9("Failed to load the iframe player library","script.onload",B.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
B.onerror=function(Q){B.onload=_.ID;B.onreadystatechange=_.ID;B.onerror=_.ID;G.reject(new _.j9("Failed to load the iframe player library","script.onerror",Q&&Q.target&&Q.target.src))};
_.$3(B,_.WY(CYm));O.insertBefore(B,O.firstChild);return G.promise},lQC=function(O,m,G){var B,Q;
_.r(function(H){switch(H.nextAddress){case 1:return O.playbackEndedCallback_=G,_.n_(H,2),H.yield(oQ9(m.parentElement||null),4);case 4:B=H.yieldResult;_.P7(H,3);break;case 2:return Q=_.uS(H),Q instanceof _.j9&&Q.args&&Q.args[0]=="script.onerror"?_.ay(Q):_.oy(Q),H.return();case 3:B.ready(function(){return new B.Player(m,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:O.onPlayerReady_.bind(O),onStateChange:O.onPlayerStateChange_.bind(O),
onCueRangeExit:O.onCueRangeExit_.bind(O)}})}),_.ju(H)}})};
_.v=OX.prototype;_.v.getPlayerPromise=function(){return this.playerPromise_};
_.v.onPlayerReady_=function(O){this.playerResolver_.resolve(O.target)};
_.v.onPlayerStateChange_=function(O){if(O.data==YT.PlayerState.PLAYING){O=O.target;var m=O.getCurrentTime();O.addCueRange("playback",m,m+this.playbackDurationSeconds_)}};
_.v.onCueRangeExit_=function(O){O.data=="playback"&&(O.target.stopVideo(),this.playbackEndedCallback_())};
_.v.stopVideo=function(){this.playerPromise_.then(function(O){O.stopVideo()})};
var aQU=function(O){O.playerVars_&&O.playerPromise_.then(function(m){typeof m.cueVideoByPlayerVars!="function"?_.ay(new _.j9("vmh: player API not ready","cueVideoByPlayerVars",typeof m.cueVideoByPlayerVars)):m.cueVideoByPlayerVars(O.playerVars_)})};
OX.prototype.playVideo=function(){var O=this;this.playerVars_&&this.playerPromise_.then(function(m){typeof m.loadVideoByPlayerVars!="function"?(m=new _.j9("vmh: player API not ready","loadVideoByPlayerVars",typeof m.loadVideoByPlayerVars),_.oy(m)):m.loadVideoByPlayerVars(O.playerVars_)})};
var kTp=function(O,m,G,B,Q){m&&(G===void 0&&(G=0),B===void 0&&(B=0),O.playbackDurationSeconds_=B/1E3,O.playerVars_={adformat:"17_8",videoId:m,suggestedQuality:"hd720",startSeconds:G/1E3,player_params:Q})};
OX.prototype.mute=function(){this.playerPromise_.then(function(O){O.mute()})};
OX.prototype.unMute=function(){this.playerPromise_.then(function(O){O.unMute()})};var yD$=function(O,m){var G=Df();O||(O="unknown");m||(m="unknown");O="MAIN_APP_WEB_PAGE_TYPE_"+O.toUpperCase();O in FxH||(O="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");m="MAIN_APP_WEB_REQUEST_TYPE_"+m.toUpperCase();m in Axo||(m="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.xp(G,{mainAppWeb:{pageType:O,requestType:m,isShellLoad:_.yE("IS_SHELL_LOAD",!1)}})},cD3={start:function(){_.xp(QcY(),{mainAppWeb:_.QM()})},
success:function(){_.qX(QcY(),"SUCCESS")},
failure:function(){_.qX(QcY(),"FAILURE")},
cancelled:function(){_.qX(QcY(),"CANCELLED")}};var Yl3,d8m,O5N;Yl3=_.FY(["/sw.js"]);d8m=_.FY(["/sw.js?0"]);_.wR_=_.WY(Yl3);O5N=_.WY(d8m);var e43=function(){var O=Error.apply(this,arguments);this.message=O.message;"stack"in O&&(this.stack=O.stack)};
_.X(e43,Error);_.K7.prototype.load=function(O){this.megabloxUrl_=_.kB("YPC_MB_URL");_.sF(this.megabloxUrl_,(0,_.pd)(function(){O&&O()},this))};
_.O0z=function(O,m,G,B,Q,H,M,R,x,t,W){_.Gar(x);O.load((0,_.pd)(function(){try{var Z=H?H:_.kB("HL"),z=_.kB("SESSION_INDEX");_.CUO("client",function(){WNo("59",{helpCenterPath:"/youtube",locale:Z,window:window}).JSC$9976_loadChatSupport({authuser:String(z)})})}catch(J){throw HC(10,W,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),Q&&Q(J),_.oy(J),J;
}D89(this,m,G,B,Q,H,M,R,x,t,W)},O))};
_.K7.prototype.openFixFlowDialog=function(O,m,G,B){this.load((0,_.pd)(function(){try{s5o(this,_.ex("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(O).withIntegratorCallback(m).load(G,B)}catch(Q){throw _.oy(Q),Q;}},this))};
var s5o=function(O,m,G,B){var Q=m.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.V("enable_window_constrained_buy_flow_dialog")&&(Q=Q.usingPopupStyle(_.ex("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));B&&(Q=Q.usingCloseCallback(B));m.bootstrap.fromPaymentsUrl(O.megabloxUrl_);O=m.bootstrap.asMashupMode(Q);G=G?G:_.kB("HL");O.usingGaiaIndex(_.kB("SESSION_INDEX")).usingLocale(G).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.V("enable_google_payments_buyflow_material2_style_web")?
O.usingStyle(":m2;pc=#444;ac=#065fd4"):O.usingStyle(":md;pc=#444;ac=#065fd4");return O},D89=function(O,m,G,B,Q,H,M,R,x,t,W){try{var Z=_.ex("payments.business.integration");
if(!Z)throw new e43("payments.business.integration is undefined");var z=Z.standaloneContextAuthId.forUserId(),J=s5o(O,Z,H,function(){QUM(!1);R&&R()});
M&&J.usingServerAnalyticsEventHandler(M);var n=J.inStandaloneContext(z).buyFlow(function(I){if(I&&(!I.integratorData||I.integratorData===""||I.error))if(I.error!=null)if(String(I.error)==="-1")_.BON(x);else{var S=String(I.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";HC(10,W,S,I.debugCode);_.vC(S,x,I.debugCode);S=new _.j9("PAYMENT_ERROR_MESSAGE::"+I.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+I.internalErrorDetails);
_.oy(S)}else HC(10,W,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.vC("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",x,"EMPTY_INTEGRATOR_DATA"),_.oy(Error("hg"));G&&(QUM(!1),G(I))}).withEncryptedParameters(m);
t&&n.withClientParameters(qT5(_.FWM(t)));n.load(function(){HC(24,W);_.dr("ttc",void 0,"commerce_transaction");kc("commerce_transaction");B&&(B(),QUM(!0))},function(I){if(I==null?0:I.debugCode)var S=I==null?void 0:I.debugCode;
else if(!I||(I==null?0:I.debugCode))S="EMPTY_LOAD_FAILURE_ERROR",_.oy(Error(S));else{S="EMPTY_LOAD_FAILURE_DEBUG_CODE";var L=new _.j9("LOAD_FAILURE:"+I.message," DEBUG_CODE:"+S);_.oy(L)}HC(10,W,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",S);_.vC("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",x,S);_.oy(I);Q&&Q(I)})}catch(I){throw I instanceof e43&&(HC(10,W,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),Q&&Q(I)),_.oy(I),I;
}};var NFo;NFo=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.PJ6=function(O,m){m=m===void 0?!1:m;O=NFo.test(O)?_.p9(O):null;!m&&window.payments||!O?(O=_.m3(),m=O.promise,O.resolve()):m=_.QO2(O,{attributes:{"data-payments-main":"",id:"payment-lib"}});return m};var PYo;PYo=_.FY(["//www.googletagmanager.com/gtm.js?id=",""]);_.m2=function(O,m){_.R_(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:m}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.kB("GL")}),m=_.fd("SCRIPT"),m.async=!0,_.$3(m,_.WY(PYo,O)),m.id="gtm",O=document.getElementsByTagName("script"),O.length==0?document.head.appendChild(m):(O=O[0],O.parentNode.insertBefore(m,O)))};
_.Gh=function(O){if(O=JSON.parse(O))window.dataLayer=window.dataLayer||[],window.dataLayer.push(O)};var FDp,ADj;FDp=_.FY(["https://clients2.google.com/gr/gr_sync.js"]);_.sgS=function(){};
_.sgS.prototype.init=function(){if(ADj()){var O=_.m3();O.resolve();return O.promise}return _.QO2(_.WY(FDp)).then(function(){if(!ADj())throw Error("ig");},function(){throw Error("jg");
})};
_.NAO=function(){if(!ADj())return"";var O=window.google.gr;O.init({async:{schedule:"sync"},merchantId:"youtube"});O.start();O=O.finish();return O==null?"":O};
ADj=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.u=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.X(_.u,PolymerFakeBaseClassWithoutHtml);_.Iu=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.X(_.Iu,PolymerFakeBaseClassWithoutHtml);var H5s=window.ShadyDOM;var aas,oSI,yTO,cTO,db5,wPp,Bg,WC;aas=_.V("enable_shadydom_free_scoped_query_methods");oSI=_.V("enable_shadydom_free_scoped_node_methods");yTO=_.V("enable_shadydom_free_scoped_readonly_properties_batch_one");cTO=_.V("enable_shadydom_free_parent_node");db5=_.V("enable_shadydom_free_children");wPp=_.V("enable_shadydom_free_last_child");Bg=window.ShadyDOM;_.bc=Bg&&Bg.noPatch&&Bg.wrap?Bg.wrap:Bg?function(O){return Bg.patch(O)}:function(O){return O};
WC=function(O){if(O instanceof ShadowRoot)this.host=(0,_.bc)(O.host),this.root=O;else if(O.$$){this.host=(0,_.bc)(O);var m;this.root=(m=O.root)!=null?m:this.host}else if(O.polymerController){this.host=(0,_.bc)(O);var G;this.root=(G=this.host.shadowRoot)!=null?G:this.host}else this.root=this.host=(0,_.bc)(O)};
la5();kaz();esf();Dbf();YMs();var O1m={querySelector:function(O,m){m=K1r(m,Ru(O));O=_.ic(O);return xZ(O).prototype.querySelector.call(O,m)},
querySelectorAll:function(O,m){m=K1r(m,Ru(O));O=_.ic(O);return xZ(O).prototype.querySelectorAll.call(O,m)}},mE3={appendChild:function(O,m){var G=Ru(O),B=_.rX(m);
return _.L1Y(_.ic(O),G?_.Uc(m,G,B):m)},
cloneNode:function(O,m){var G=_.rX(O);O=_.ic(O);m=xZ(O).prototype.cloneNode.call(O,m);return G?tG(m,G):m},
contains:function(O,m){var G=Ru(O),B=_.rX(m);return G!==B?!1:Cdf(O,m)},
insertBefore:function(O,m,G){var B=Ru(O),Q=_.rX(m);O=_.ic(O);m=B?_.Uc(m,B,Q):m;return xZ(O).prototype.insertBefore.call(O,m,G)},
removeChild:function(O,m){var G=Ru(O);O=_.ic(O);m=G?tG(m,G):m;return xZ(O).prototype.removeChild.call(O,m)},
replaceChild:function(O,m,G){var B=Ru(O),Q=_.rX(m);m=B?_.Uc(m,B,Q):Q?tG(m,Q):m;G=B?tG(G,B):G;O=_.ic(O);return xZ(O).prototype.replaceChild.call(O,m,G)},
getRootNode:function(O,m){m=m===void 0?{composed:!0}:m;var G;if(((G=m)!=null?G:{}).composed)O=Z5e(O);else{m=O;for(O=MFs(O);O;)m=O,O=Rss(O);O=m}return O}},NOO=yTO?{firstChild:u3s,
nextSibling:hsS,previousSibling:gSS,firstElementChild:jUr,lastElementChild:pPf,nextElementSibling:faz,previousElementSibling:TOS,childNodes:SM5}:{};cTO&&(NOO.parentNode=XPz);db5&&(NOO.children=ESf);wPp&&(NOO.lastChild=IaO);aas&&sU5(O1m);oSI&&sU5(mE3);PdM();var F1S=function(O){this.node=O instanceof ShadowRoot?O.host:O};
ATM();OMf();var BMM=new WeakMap;var HMN=Symbol("Ad");var roN=new Set(["tap","track","down","up"]),RkM=_.V("pbcm_fi_query_decorators");var QZ=function(){return _.Iu.apply(this,arguments)||this};
_.X(QZ,_.Iu);_.v=QZ.prototype;_.v.getState=function(){return this.store.getState()};
_.v.dispatch=function(O){this.store.dispatch(O)};
_.v.beforeRegister=function(){if(this&&typeof this==="object"){var O;var m=!!this.useSignals||!((O=this.polymerController)==null||!O.useSignals)}else m=!1;if(!m&&this.properties)for(m=_.K(Object.keys(this.properties)),O=m.next();!O.done;O=m.next()){var G=O.value;O=this.properties[G];if(O.selector){if(O.computed)throw Error("pg");G=["reduxPropertiesRecomputeTrigger",'"'+G+'"'].concat(_.lS(O.selectorArgs||[])).join(",");O.computed="recomputeReduxSelector("+G+")"}}};
_.v.attached=function(){var O=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){O.reduxPropertiesRecomputeTrigger++}));
_.V("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.v.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.v.recomputeReduxSelector=function(O,m){var G=_.eA.apply(2,arguments),B=this.properties[m].selector;if(!B)throw Error("ng`"+m);return B.apply(null,[this.store.getState()].concat(_.lS(G)))};
_.v.select=function(O){var m=_.eA.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return O.apply(null,[this.store.getState()].concat(_.lS(m)))};
_.vr.Object.defineProperties(QZ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("og");}}});
QZ.prototype.recomputeReduxSelector=QZ.prototype.recomputeReduxSelector;_.c([_.g(),_.Y("design:type",Number)],QZ.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.c([_.p7()],QZ);var Hg=[],URM={},ei=function(){return $f.apply(this,arguments)||this};
_.X(ei,$f);ei.prototype._addPropertyEffect=function(O,m,G){if(m==="__observeEffects"&&G){var B,Q=(B=G.info.method)!=null?B:G.info.methodName;if(Q){var H=this[Q];this[Q]=function(){Hg.push(Q);try{H==null||H.apply(this,arguments)}finally{Hg.pop()}}}}_.ac._addPropertyEffect.apply(this,[O,
m,G])};
ei.prototype._setPendingProperty=function(O,m,G){if(Hg.length){var B=Hg[Hg.length-1],Q;(Q=URM[this.is])!=null&&Q.has(B)||(tXr(this.is,B),_.LE("polymerPropertyChangedInObserver",{componentName:this.is,observerName:B}))}return _.ac._setPendingProperty.apply(this,[O,m,G])};
_.c([le5()],ei);var WLN=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),zkr,L7={};_.V("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=L7);var lc=function(){return _.Iu.apply(this,arguments)||this};
_.X(lc,_.Iu);lc.prototype._setUnmanagedPropertyToNode=function(O,m,G){O.loggingStatus&&(O.loggingStatus.isDeclarativeExternal=!0);if(G!==O[m]||typeof G==="object")O[m]=G;O.is&&O.polymerController&&O.polymerController!==O&&C7(O.is,m,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");O.loggingStatus&&(O.loggingStatus.isDeclarativeExternal=!1)};
_.c([_.p7()],lc);ZMf()&&(D1.prototype._setUnmanagedPropertyToNode=(new lc)._setUnmanagedPropertyToNode);_.SAp={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(O){},set polymerController(O){}}]};var wX=function(){var O=$f.apply(this,arguments)||this;O.json=function(){};
return O};
_.X(wX,$f);wX.prototype.equals=function(O,m){return O===m};
wX.prototype.isEmpty=function(O){var m;(m=!O)||(m=_.YO(O)&&O.length===0);return m};
_.c([le5()],wX);var Go_=function(O){O=L7z(O);mt.call(this,O)};
_.X(Go_,mt);Go_.prototype.addProvider=function(O){O=O.key?O:L7z([O])[0];var m=this.keyIdToIndex.get(O.key.id);if(m){if(Xwr(O,this.providers[m]))throw Error("qg`"+O.key.displayName);}else mt.prototype.addProvider.call(this,O)};
var BQ3=new Go_([]);var Q2m=!1;var jIf={};Q2m||(uhI(),Q2m=!0);
jIf.InjectBehavior={initializeInjection:function(){var O=this.provide;try{if((O=O!=null?O:[])&&O.length>0)for(var m=L7z(O),G=_.K(m),B=G.next();!B.done;B=G.next())BQ3.addProvider(B.value);var Q=new Set;f8e(this.behaviors||[],Q);m={};for(var H=_.K(Q),M=H.next();!M.done;M=H.next()){var R=M.value;R.inject&&Object.assign(m,R.inject)}this.inject&&Object.assign(m,this.inject);for(var x=_.K(Object.keys(m)),t=x.next();!t.done;t=x.next()){var W=t.value,Z=m[W];try{this[W]=BQ3.resolve(Z)}catch(z){throw z;}}}catch(z){throw Error(z.message);
}}};var pwe;var E5r=/\bclass\b/.test(function(){}.toString()),o5S=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var H1j=function(O){this.wasDefined=!0;Array.isArray(O)||O instanceof Array?(this.JSC$13425_getImpl=O[0],this.JSC$13425_setImpl=O[1]):this.JSC$13425_getImpl=O};
_.v=H1j.prototype;_.v.getWithPath=function(O){return k4O(this.JSC$13425_getImpl(),O)};
_.v.setWithPath=function(O,m){var G=this;if(O.length)throw Error("rg");if(!this.JSC$13425_setImpl)throw Error("sg");nS(function(){G.JSC$13425_setImpl(m)})};
_.v.notifyPath=function(){throw Error("tg");};
_.v.notifySplices=function(){throw Error("ug");};
_.v.getChangeRecordSignal=function(O,m){var G=this;if(O.length)throw Error("vg");return function(){var B=G.getWithPath(O);return{path:m!=null?m:"",base:B,value:B}}};
_.v.getSplicesSignal=function(){throw Error("wg");};
_.v.getPathMutationSignal=function(){throw Error("xg");};
_.v.pop=function(){throw Error("yg");};
_.v.push=function(){throw Error("zg");};
_.v.splice=function(){throw Error("Ag");};
_.v.unshift=function(){throw Error("Bg");};var vg=function(O){var m=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(O)||O instanceof Array?(this.JSC$13430_getImpl=O[0],this.JSC$13430_setImpl=O[1]):this.JSC$13430_getImpl=O;this.wasDefined=!1;t0(function(){m.wasDefined=m.JSC$13430_getImpl()!==void 0})};
vg.prototype.getWithPath=function(O){return k4O(this.JSC$13430_getImpl(),O)};
vg.prototype.setWithPath=function(O,m){var G=this;if(O[O.length-1]!=="*"&&O[O.length-1]!=="splices"){var B=t0(function(){return G.getWithPath([])});
if(O.length===0){if(!this.JSC$13430_setImpl)throw Error("Cg");if(B===m)return;this.wasDefined||(this.wasDefined=m!==void 0);nS(function(){G.JSC$13430_setImpl(m)})}else{for(var Q=0;Q<O.length-1;Q++){if(!B)return;
B=B[O[Q]]}Q=O[O.length-1];B&&(B[Q]=m);this.wasDefined||(this.wasDefined=O.length>1||m!==void 0)}vTs(this,O,{pathComponents:O,value:m})}};
vg.prototype.notifyPath=function(O,m){O.length===0?m&&this.setWithPath(O,m.value):vTs(this,O,{pathComponents:O,value:m==null?void 0:m.value,fallbackWhenUndefined:m==null?void 0:m.value})};
var vTs=function(O,m,G,B){if(O.setMutationSignal){var Q=++O.mutationIndex,H=[O.observedPath],M=O.observedPath,R;m.length===0&&(R=M);for(var x=0;x<m.length;x++){var t=M.subPaths[m[x]];if(!t)break;H.push(t);M=t;x===m.length-1&&(R=t)}for(m=!1;H.length;)M=H.shift(),M.data={index:Q,mutation:G,spliceMutationIndex:B},m||(m=M===R),m&&H.push.apply(H,_.lS(Object.values(M.subPaths)));nS(function(){O.setMutationSignal(Q)})}};
vg.prototype.notifySplices=function(O,m){var G=this,B=t0(function(){return G.getWithPath(O)}),Q=[].concat(_.lS(O),["splices"]);
vTs(this,Q,{pathComponents:Q,value:{indexSplices:m}});if(B==null?0:B.length)m=this.mutationIndex,Q=[].concat(_.lS(O),["length"]),vTs(this,Q,{pathComponents:Q,value:B.length},m)};
var KCH=function(O,m,G,B,Q,H){O.notifySplices(G,[{index:B,addedCount:Q,removed:H,object:m,type:"splice"}])},$E$=function(O,m){O=O.observedPath;
for(var G=0;G<m.length;G++){var B=m[G],Q=O.subPaths[B];Q||(Q={pathComponents:m.slice(0,G+1),subPaths:{}},O.subPaths[B]=Q);O=Q}},rku=function(O,m,G){$E$(O,m);
if(!O.getMutationSignal){var B=_.K(_.Wf(O.mutationIndex,void 0,"sNBMCd"));O.getMutationSignal=B.next().value;O.setMutationSignal=B.next().value}var Q=O.getMutationSignal;return _.bF(function(){Q();return G(MvU(O,m))},void 0,"zvsXEd")};
vg.prototype.getChangeRecordSignal=function(O,m){var G=this,B=this.mutationIndex,Q;return rku(this,O,function(H){if(H&&H.index>B){var M=H.mutation;B=H.index;Q=void 0}H=t0(function(){return G.getWithPath(O)});
if(M){var R=M.pathComponents[M.pathComponents.length-1],x=[].concat(_.lS(M.pathComponents));if(R==="splices"||R==="length")return{base:H,path:(m?[m].concat(_.lS(x)):x).join("."),value:M.value};var t=O.length>x.length?O:x,W;return{base:H!=null?H:M.fallbackWhenUndefined,path:(m?[m].concat(_.lS(t)):t).join("."),value:(W=t0(function(){return G.getWithPath(t)}))!=null?W:M.fallbackWhenUndefined}}Q||(Q={base:H,
path:(m?[m].concat(_.lS(O)):O).join("."),value:H});return Q})};
vg.prototype.getSplicesSignal=function(O){var m=this.mutationIndex,G;return rku(this,O,function(B){if(B&&B.index>m&&B.spliceMutationIndex!==m){var Q=B.mutation;m=B.index;G=void 0}return Q&&Q.pathComponents[Q.pathComponents.length-1]==="splices"?G=B=Q.value:G})};
vg.prototype.getPathMutationSignal=function(O){var m=this;$E$(this,O);if(!this.getMutationSignal){var G=_.K(_.Wf(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=G.next().value;this.setMutationSignal=G.next().value}var B=this.getMutationSignal,Q=this.mutationIndex,H;return _.bF(function(){B();var M=MvU(m,O);if(M&&M.index>Q&&M.mutation&&yoN(M.mutation.pathComponents,O)){var R=M.mutation;Q=M.index}if(!H||Q!==H.index){var x,t;M=(t=t0(function(){return m.getWithPath(O)}))!=null?t:(x=R)==null?
void 0:x.fallbackWhenUndefined;
H={index:Q,value:M}}return H},void 0,"RXYC9b")};
var MvU=function(O,m){O=O.observedPath;m=_.K(m);for(var G=m.next();!G.done;G=m.next())O=O.subPaths[G.value];return O.data};
vg.prototype.pop=function(O){var m=this,G=t0(function(){return m.getWithPath(O)});
if(!(G instanceof Array))throw Error("Dg");var B=G.length>0,Q=G.pop();B&&KCH(this,G,O,G.length,0,[Q]);return Q};
vg.prototype.push=function(O){var m=_.eA.apply(1,arguments),G=this,B=t0(function(){return G.getWithPath(O)});
if(!(B instanceof Array))throw Error("Eg");var Q=B.length,H=B.push.apply(B,_.lS(m));m.length&&KCH(this,B,O,Q,m.length,[]);return H};
vg.prototype.splice=function(O,m,G){var B=_.eA.apply(3,arguments),Q=this,H=t0(function(){return Q.getWithPath(O)});
if(!(H instanceof Array))throw Error("Fg");m<0?m=H.length-Math.floor(-m):m&&(m=Math.floor(m));var M=H.splice.apply(H,[m,G].concat(_.lS(B)));(B.length||M.length)&&KCH(this,H,O,m,B.length,M);return M};
vg.prototype.unshift=function(O){var m=_.eA.apply(1,arguments),G=this,B=t0(function(){return G.getWithPath(O)});
if(!(B instanceof Array))throw Error("Gg");var Q=B.unshift.apply(B,_.lS(m));m.length&&KCH(this,B,O,0,m.length,[]);return Q};var K3=function(O,m,G){this.model=O;this.unknownSignalResolver=m;this.options=G;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];m=_.K(P9r());O=m.next().value;m=m.next().value;this.owner=O;this.disposeImpl=m};
K3.prototype.dispose=function(){if(!this.isDisposed){for(var O=_.K(this.childSignalProxies),m=O.next();!m.done;m=O.next())m.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Rnm=function(O,m){O=_.Hf(O.owner);try{m()}finally{_.Hf(O)}};
K3.prototype.effect=function(O){Rnm(this,function(){_.lF(O)})};
var i1m=function(O,m){O.options!=null||(O.options={});var G;(G=O.options).immutableProps!=null||(G.immutableProps=new Set);O.options.immutableProps.add(m)},ba5=function(O,m){m=""+m;
xE3(O,m);var G,B;if((G=O.options)==null?0:(B=G.immutableProps)==null?0:B.has(m))return!0;var Q;if((Q=O.model.__signalCache)==null?0:Q.has(m))G=O.model.__signalCache.get(m),Array.isArray(G)&&i1m(O,m);var H,M,R;return(R=(H=O.options)==null?void 0:(M=H.immutableProps)==null?void 0:M.has(m))!=null?R:!1},qYU=function(O,m){var G;
O.unknownSignalResolver&&(G=O.unknownSignalResolver(m));var B,Q;((B=O.options)==null?0:(Q=B.immutableProps)==null?0:Q.has(m))?G!=null||(G=new H1j(_.Wf(O.model[m],void 0,"By5iP"))):G!=null||(G=new vg(_.Wf(O.model[m],void 0,"CXghNc")));var H=O.model.hostElement;Object.defineProperty(O.model,m,{get:function(){VXO(H,m);return G.getWithPath([])},
set:function(M){ou(H,m);O.setWithPath([m],M)},
configurable:!0});return G},xE3=function(O,m){var G,B,Q;
((G=O.model.__signalCache)==null||!G.has(m))&&((B=O.options)==null?0:(Q=B.externalSignalProps)==null?0:Q.has(m))&&O.model[m]},PC=function(O,m){m=""+m;
var G=O.signalCache[m];if(G!==void 0)return G;G=!1;xE3(O,m);var B;if((B=O.model.__signalCache)==null?0:B.has(m))if(G=O.model.__signalCache.get(m),Array.isArray(G))G=!0,i1m(O,m);else return O.signalCache[m]=O.model.__signalCache.get(m).signal,O.signalCache[m];var Q,H;B=(H=(Q=O.options)==null?void 0:Q.reactivityMode)!=null?H:0;var M,R;if(!((M=O.options)==null?0:(R=M.reactiveProps)==null?0:R.has(m))&&!G&&B===1)throw Error("Hg`"+m);Q=G?UE3(O,m):qYU(O,m);return O.signalCache[m]=Q},UE3=function(O,m){var G=
Object.getOwnPropertyDescriptor(O.model.constructor.prototype,m),B=function(){return O.model[m]};
return new H1j(G&&G.get&&!G.set?B:[B,function(Q){O.model[m]=Q}])};
K3.prototype.getWithPath=function(O){var m=_.K(O);O=m.next().value;m=GJ(m);VXO(this.model.hostElement,""+O);return PC(this,O).getWithPath(m)};
K3.prototype.setWithPath=function(O,m){if(O.length){ou(this.model.hostElement,O.join("."));var G=_.K(O);O=G.next().value;G=GJ(G);PC(this,O).setWithPath(G,m)}};
K3.prototype.getPathMutationSignal=function(O){var m=_.K(O);O=m.next().value;m=GJ(m);return PC(this,O).getPathMutationSignal(m)};
K3.prototype.notifyPath=function(O,m){var G=_.K(O);O=G.next().value;G=GJ(G);PC(this,O).notifyPath(G,m)};
var tvm=function(O,m){if(m.type==="literal")return function(){return{rootWasDefined:!0,value:m.value}};
var G=sc(m.path),B=_.K(G),Q=B.next().value;B=GJ(B);var H,M;if(m.type==="path"&&(G.length===1||((H=O.options)==null?0:(M=H.immutableProps)==null?0:M.has(Q))))return function(){var Z=O.getWithPath(G.slice(0,1));Z=k4O(Z,G.slice(1));return{rootWasDefined:PC(O,G[0]).wasDefined,value:Z}};
var R=PC(O,Q);if(m.type==="path"){var x=R.getPathMutationSignal(B);return function(){var Z,z=(Z=x())==null?void 0:Z.value;return{rootWasDefined:R.wasDefined,value:z}}}if(m.type==="splices"){var t=R.getSplicesSignal(B);
return function(){var Z=t();return{rootWasDefined:R.wasDefined,value:Z}}}var W=R.getChangeRecordSignal(B,""+Q);
return function(){var Z=W();return{rootWasDefined:R.wasDefined,value:Z}}},DRM=function(O,m,G){var B=G.map(function(R){return tvm(O,R)}),Q=G.length===0,H=[],M=G.length!==1||G[0].type!=="path"?!1:!0;
O.effect(function(){for(var R=B.length,x=[],t=!!H.length,W=0;W<R;W++){var Z=B[W](),z=Z.rootWasDefined;Z=Z.value;Q||(Q=z);x[W]=Z;M&&(x[W+R]=t?H[W]:x[W],H[W]=Z)}Q&&a9(O.owner,function(){return void m.apply(null,_.lS(x))})})},coM=function(O,m,G,B,Q){var H=PC(O,m);
Q!==void 0&&H.setWithPath([],Q);DRM(O,function(){var M=_.eA.apply(0,arguments);ou(O.model.hostElement,m,!0);H.setWithPath([],G.apply(null,_.lS(M)))},B)};
K3.prototype.arrayPush=function(O){var m=_.eA.apply(1,arguments),G=_.K(O),B=G.next().value;G=GJ(G);B=PC(this,B);return B.push.apply(B,[G].concat(_.lS(m)))};
K3.prototype.arraySplice=function(O,m,G){var B=_.eA.apply(3,arguments),Q=_.K(O),H=Q.next().value;Q=GJ(Q);H=PC(this,H);return H.splice.apply(H,[Q,m,G].concat(_.lS(B)))};
K3.prototype.arrayUnshift=function(O){var m=_.eA.apply(1,arguments),G=_.K(O),B=G.next().value;G=GJ(G);B=PC(this,B);return B.unshift.apply(B,[G].concat(_.lS(m)))};
K3.prototype.notifySplices=function(O,m){var G=_.K(O);O=G.next().value;G=GJ(G);PC(this,O).notifySplices(G,m)};var WCH=!0,Z1u=!1,nQS=!1,zn$=!1,Jkj=0;zn$=!1;Jkj=0;WCH=!0;Z1u=nQS=!1;var B4r=/([^\s]+?)\(([\s\S]*)\)/,OaN=/\.([^.]+)$/,Has=/\\,/g,FLr=/&comma;/g,AoN=/\\(.)/g,QAr=[],mWf={"*":"wildcard",splices:"splices"};var UWI=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"),R3Y=/[A-Z]/,Vv$=["class","hidden","id","on-dom-change"],WVN=new Set([].concat(_.lS(Vv$),
["if","notify-dom-change","restamp"])),ZaN=new Set([].concat(_.lS(Vv$),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),z3N=new Set(["restamp"]);var znN=new Set(["className","id"]);var XFN=Symbol(),IGS=window;var aGp=window;var e3N=0,cus=0,FV=[],wFM=0,yuz=!1,dW6=document.createTextNode("");(new window.MutationObserver(Y8O)).observe(dW6,{characterData:!0});var Oz=new Map,AG=0,b1p=function(O){this.mappedHandleId=O},sAp=function(O,m,G,B){this.mappedHandleId=O;
var Q=this;this.mappedHandleId=O;this.callback=m;this.waitTime=G;this.schedulerPriority=B;this.handleId=_.ln.addJob(function(){Q.callback();Oz.delete(Q.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.X(sAp,b1p);sAp.prototype.cancel=function(){_.ln.cancelJob(this.handleId);Oz.delete(this.mappedHandleId)};
var N4I=function(O,m){this.mappedHandleId=O;var G=this;this.mappedHandleId=O;this.callback=m;this.handleId=DWY(function(){G.callback();Oz.delete(G.mappedHandleId)})};
_.X(N4I,b1p);N4I.prototype.cancel=function(){var O=this.handleId-cus;O<0||FV.length<=O||(FV[O]=null);Oz.delete(this.mappedHandleId)};var Ovf=function(){};
Ovf.prototype.cancel=function(){this.jobHandle!==void 0&&(P$e(this.jobHandle),this.jobHandle=void 0)};
Ovf.prototype.run=function(O,m,G){var B=this;this.cancel();this.callback=O;this.jobHandle=_.mp(function(){O();B.callback=void 0},m,G)};
Ovf.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var FVr=new WeakMap;var nT3=xJ(function(O){for(var m=O,G=0;G<3;G++)m=Object.getPrototypeOf(m);delete m.prototype.connectedCallback;var B=function(){return O.apply(this,arguments)||this};
_.X(B,O);B.prototype._attachDom=function(Q){if(!Q)return null;var H=(0,_.bc)(this.hostElement);H.attachShadow({mode:"open",shadyUpgradeFragment:Q});H.shadowRoot.appendChild(Q);return H.shadowRoot};
B.prototype._takeAttributes=function(){for(var Q=this.hostElement.attributes,H=0;H<Q.length;H++){var M=Q[H],R=void 0,x=void 0;(x=(R=this).__attributeReaction)==null||x.call(R,M.name,null,M.value)}};
B.prototype._readyClients=function(){O.prototype._readyClients.call(this);this.root=this};
B.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);O.prototype.connectedCallback.call(this)};
_.vr.Object.defineProperties(B,{template:{configurable:!0,enumerable:!0,get:function(){return B.prototype._template}}});
return B}),X_U=xJ(function(O){var m=function(){return O.apply(this,arguments)||this};
_.X(m,O);m.prototype.created=function(){if(this.__notifyEffects)for(var G=_.K(Object.values(this.__notifyEffects)),B=G.next();!B.done;B=G.next()){B=_.K(B.value);for(var Q=B.next();!Q.done;Q=B.next())Q.value.fn=Q5N}if(this.__reflectEffects)for(G=_.K(Object.values(this.__reflectEffects)),B=G.next();!B.done;B=G.next())for(B=_.K(B.value),Q=B.next();!Q.done;Q=B.next())Q.value.fn=Hvp};
m.prototype._addEventListenerToNode=function(G,B,Q){G=BE(G);l_(G,B,Q)||O.prototype._addEventListenerToNode.call(this,G,B,Q)};
m.prototype._removeEventListenerFromNode=function(G,B,Q){G=BE(G);aa(G,B,Q)||O.prototype._removeEventListenerFromNode.call(this,G,B,Q)};
m.prototype._propertiesChanged=function(G,B,Q){if(this.__dataToNotify&&this.__notifyEffects)for(var H=_.K(Object.keys(this.__dataToNotify)),M=H.next();!M.done;M=H.next()){M=M.value;var R=BFN(M);this.__notifyEffects[R]||delete this.__dataToNotify[M]}else this.__dataToNotify=null;O.prototype._propertiesChanged.call(this,G,B,Q)};
m.prototype.fire=function(G,B,Q){B=B===void 0?{}:B;var H;return _.iP(BE((H=Q==null?void 0:Q.node)!=null?H:this),G,B,Q)};
m.prototype._ensureAttribute=function(G,B){var Q=BE(this);Q.hasAttribute(G)||Nj(Q,B,G)};
m.prototype.isLightDescendant=function(G){var B=BE(this);return BE(B)!==G&&_.ZO(B).contains(G)&&_.ZO(B).getRootNode()===_.ZO(G).getRootNode()};
return m});
_.ai.ready=function(){var O;((O=this.hostElement)!=null?O:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var m;((m=this.hostElement)!=null?m:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Dm._subscribeIronResize=function(O){var m;((m=O.hostElement)!=null?m:O).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Dm._unsubscribeIronResize=function(O){var m;((m=O.hostElement)!=null?m:O).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var $8s=[Array,Boolean,Date,Number,Object,String],HE=function(O,m,G,B){this.polySiInfo=O;this.polySiParams=m;this.polySiContext=G;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;B||this instanceof HTMLElement&&(B=this);if(!B)throw Error("Og");this.allowedProps=m.allowedProps;this.hostElement=B;this.is=O.is;this.upgradeDisabled=!!m.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");O=new Set(m.reactiveSchemas.filter(function(Q){return Q.type!==
"observe"}).map(function(Q){return Q.propertyKey}));
this.signalProxy=new K3(this,void 0,{reactiveProps:O,reactivityMode:m.reactivityMode});this.__dataHasAccessor={};m=_.K(m.reactiveSchemas);for(O=m.next();!O.done;O=m.next())O=O.value,O.type==="signal"&&(this.__dataHasAccessor[O.propertyKey]=!0);this.upgradeDisabled||fi2(this)};
HE.prototype.getExtraMethodsToForward=function(){return[]};
var fi2=function(O){O.polySiContext.didRegister||(O.registered(),O.polySiContext.didRegister=!0);O.polySiContext.finalizedTemplate||(O.polySiContext.finalizedTemplate={},O.polySiParams.templateGetter&&(O.polySiContext.finalizedTemplate.processedTemplate=kQS(O.polySiParams.templateGetter,O.polySiParams.is)));hno(O);var m=O.hostElement;m.loggingStatus!=null||(m.loggingStatus={});m.loggingStatus.isInitializing=!0;t0(function(){return void O.created()});
m.loggingStatus.isInitializing=!1;O.isPolySiElementConnected&&TQ_(O)},TQ_=function(O){O.didCallReady||(t0(function(){return void O.ready()}),O.didCallReady=!0);
O.isAttached=!0;O.attached()};
_.v=HE.prototype;_.v.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||TQ_(this)};
_.v.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.v.attributeChangedCallback=function(O,m,G){if(this.upgradeDisabled)O==="disable-upgrade"&&G===null&&(this.upgradeDisabled=!1,fi2(this));else if(m!==G){var B=_.hc(O),Q=this.polySiContext.typesForSignals[B];if(Q&&(!this.reflecting||_.V("polysi_attribute_changed_serializing_killswitch"))){switch(Q){case Object:try{var H=JSON.parse(G)}catch(R){H=G}break;case Array:try{H=JSON.parse(G)}catch(R){H=null}break;case Date:H=isNaN(G)?String(G):Number(G);H=new Date(H);break;case Boolean:H=G!==null;break;case Number:H=
Number(G);break;default:H=G}this[B]=H}B=_.K(this.polySiParams.behaviors);for(Q=B.next();!Q.done;Q=B.next())H=void 0,(H=Q.value.attributeChanged)==null||H.call(this,O,m,G);var M;(M=this.attributeChanged)==null||M.call(this,O,m,G)}};
_.v.attributeChangedCallbackWrapper=function(O,m,G){this.attributeChangedCallback(O,m,G)};
_.v.setPropertiesFromInitialAttributeValues=function(){for(var O=0;O<this.hostElement.attributes.length;O++){var m=this.hostElement.attributes[O];(m.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(m.name))&&this.attributeChangedCallback(m.name,null,m.value)}};
_.v.created=function(){this.provide=this.polySiParams.provide;var O;(O=this.initializeInjection)==null||O.call(this);O=_.K(this.polySiParams.reactiveSchemas);for(var m=O.next();!m.done;m=O.next())m=m.value,m.type==="signal"&&(this.mutablePropNames.add(m.propertyKey),PC(this.signalProxy,m.propertyKey));KDp(this,this.polySiInfo,this.polySiParams.behaviors);O=_.K(this.polySiParams.reactiveSchemas);for(m=O.next();!m.done;m=O.next())m=m.value,m.type==="signal"&&m.value!==void 0&&(this.signalProxy.model[m.propertyKey]=
typeof m.value==="function"?m.value.call(this):m.value);if(this.polySiParams.signalProperties)for(O=_.K(this.polySiParams.signalProperties),m=O.next();!m.done;m=O.next()){m=m.value;var G=void 0;((G=this.__signalCache)==null?0:G.has(m))||(this.signalProxy.model[m]=void 0)}zn$||gTj(this);vQe(this);O=_.K(this.polySiParams.behaviors);for(m=O.next();!m.done;m=O.next())G=void 0,(G=m.value.created)==null||G.call(this);var B;(B=this.polySiInfo.created)==null||B.call(this)};
_.v.registered=function(){var O=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var m=Object.getPrototypeOf(this);m.addReactiveSchema=function(R){O.polySiParams.reactiveSchemas.push(R)};
for(var G=_.K(this.polySiParams.behaviors),B=G.next();!B.done;B=G.next()){var Q=void 0;(Q=B.value.beforeRegister)==null||Q.call(m)}var H;(H=this.polySiInfo.beforeRegister)==null||H.call(m);m.addReactiveSchema=rDM;G=_.K(this.polySiParams.behaviors);for(B=G.next();!B.done;B=G.next())Q=void 0,(Q=B.value.registered)==null||Q.call(m);var M;(M=this.polySiInfo.registered)==null||M.call(m)};
_.v.ready=function(){var O;(O=this.beforeReady)==null||O.call(this);zn$&&gTj(this);var m;if(O=(m=this.polySiContext.finalizedTemplate)==null?void 0:m.processedTemplate){O=lGS(O.template,O.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:O.hasInsertionPoint,thisCtx:this});m=O.nodesById;O=O.root;var G=this.hostElement;var B=B===void 0?!1:B;G=(0,_.bc)(G);if(!G.attachShadow)throw Error("Gd");if(!G.shadowRoot||B)G.attachShadow({mode:"open",shadyUpgradeFragment:O}),G.shadowRoot.appendChild(O);
this.root=G.shadowRoot;this.$=m}uxj(this);B=_.K(this.polySiParams.behaviors);for(m=B.next();!m.done;m=B.next())O=void 0,(O=m.value.ready)==null||O.call(this);var Q;(Q=this.polySiInfo.ready)==null||Q.call(this)};
_.v.attached=function(){for(var O=_.K(this.polySiParams.behaviors),m=O.next();!m.done;m=O.next()){var G=void 0;(G=m.value.attached)==null||G.call(this)}var B;(B=this.polySiInfo.attached)==null||B.call(this)};
_.v.detached=function(){for(var O=_.K(this.polySiParams.behaviors),m=O.next();!m.done;m=O.next()){var G=void 0;(G=m.value.detached)==null||G.call(this)}var B;(B=this.polySiInfo.detached)==null||B.call(this)};
var hno=function(O){for(var m=_.K(O.polySiParams.behaviors),G=m.next();!G.done;G=m.next())if(G=G.value,G.listeners)for(var B in G.listeners)oeN(O,O.hostElement,B,G.listeners[B]);if(O.polySiInfo.listeners)for(var Q in O.polySiInfo.listeners)oeN(O,O.hostElement,Q,O.polySiInfo.listeners[Q])},oeN=function(O,m,G,B,Q){O=a8O(O,B,Q);
l_(m,G,O)||m.addEventListener(G,O);return O},gTj=function(O){for(var m=_.K(O.polySiParams.reactiveSchemas),G=m.next();!G.done;G=m.next())G=G.value,G.type==="compute"||G.type==="computeWithMethod"?YAp(O.signalProxy,G,O):G.type==="redux"?ekN(O.signalProxy,G,O.store):G.type==="signal"&&G.readOnly&&ww5(O.signalProxy,G)},uxj=function(O){for(var m=_.K(O.polySiParams.reactiveSchemas),G=m.next(),B={};!G.done;B={schema$jscomp$12:void 0},G=m.next())B.schema$jscomp$12=G.value,B.schema$jscomp$12.type==="notify"?
sI6(O.signalProxy,B.schema$jscomp$12,O.hostElement):B.schema$jscomp$12.type==="observe"?NMr(O.signalProxy,B.schema$jscomp$12,O):B.schema$jscomp$12.type==="reflect"&&O.signalProxy.effect(function(H){return function(){var M=O.signalProxy.getWithPath([H.schema$jscomp$12.propertyKey]);
O.reflecting=!0;KVf(O.hostElement,H.schema$jscomp$12.propertyKey,M,!0);O.reflecting=!1}}(B));
if(O.reflectedAttributes)for(m=_.K(Object.entries(O.reflectedAttributes)),B=m.next(),G={};!B.done;G={key$jscomp$936:void 0,value$jscomp$9826:void 0},B=m.next()){var Q=_.K(B.value);B=Q.next().value;Q=Q.next().value;G.key$jscomp$936=B;G.value$jscomp$9826=Q;O.signalProxy.effect(function(H){return function(){O.reflecting=!0;KVf(O.hostElement,H.key$jscomp$936,(0,H.value$jscomp$9826)(),!0);O.reflecting=!1}}(G))}};
_.v=HE.prototype;_.v._setPendingProperty=function(O,m){this.set(O,m);return!1};
_.v._enableProperties=function(){};
_.v._setPendingPropertyOrPath=function(O,m){this.notifyPath(O,m);return!1};
_.v._addPropertyEffect=function(){};
_.v._stampTemplate=function(){throw Error("Pg");};
_.v.fire=function(O,m,G){m=m===void 0?{}:m;G=G===void 0?{}:G;var B,Q,H={bubbles:(B=G.bubbles)!=null?B:!0,cancelable:!!G.cancelable,composed:(Q=G.composed)!=null?Q:!0},M;return _.iP(R4p((M=G.node)!=null?M:this.hostElement),O,m,H)};
_.v.get=function(O,m){var G=sc(O);return m?k4O(m,G):O==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(G)};
_.v.linkPaths=function(){};
_.v.listen=function(O,m,G){O=R4p(O);this.boundListeners!=null||(this.boundListeners=new WeakMap);var B=this.boundListeners.get(O);B||(B={},this.boundListeners.set(O,B));var Q=m+G;B[Q]||(B[Q]=oeN(this,O,m,G))};
_.v.notifyPath=function(O,m){this.signalProxy.notifyPath(sc(O),arguments.length===2?{value:m}:void 0)};
_.v.canNotifyPath=function(O){return this.mutablePropNames.has(O)&&!ba5(this.signalProxy,O)};
_.v.notifySplices=function(O,m){this.signalProxy.notifySplices(sc(O),m)};
_.v.pop=function(O){var m=this.signalProxy;O=sc(O);var G=_.K(O);O=G.next().value;G=GJ(G);return PC(m,O).pop(G)};
_.v.push=function(O){var m=_.eA.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[sc(O)].concat(_.lS(m)))};
_.v.set=function(O,m,G){if(G)throw Error("Qg");O==="hidden"?this.hostElement.hidden=!!m:this.signalProxy.setWithPath(sc(O),m)};
_.v.setProperties=function(O){O=_.K(Object.entries(O));for(var m=O.next();!m.done;m=O.next()){var G=_.K(m.value);m=G.next().value;G=G.next().value;this[m]=G}};
_.v.splice=function(O,m,G){var B=_.eA.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[sc(O),m,G].concat(_.lS(B)))};
_.v.unlinkPaths=function(){};
_.v.unlisten=function(O,m,G){O=R4p(O);if(this.boundListeners){var B=this.boundListeners.get(O);if(B){G=m+G;var Q=B[G];Q&&(aa(O,m,Q)||O.removeEventListener(m,Q),delete B[G])}}};
_.v.unshift=function(O){var m=_.eA.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[sc(O)].concat(_.lS(m)))};
_.vr.Object.defineProperties(HE.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 bvf=[Array,Boolean,Date,Number,Object,String];var fQI=!1;var $o=function(){var O=HTMLElement.apply(this,arguments)||this;O.restamp=!1;O.notifyDomChange=!1;O.JSC$13538_didCallConnected=!1;O.JSC$13538_renderDebouncer=null;O.disableTemplateUpdateSignalImpl=vE()?void 0:_.Wf(!1,void 0,"Ofhkwb");var m;O.getDisableTemplateUpdate=(m=O.disableTemplateUpdateSignalImpl)==null?void 0:m[0];var G;O.setDisableTemplateUpdate=(G=O.disableTemplateUpdateSignalImpl)==null?void 0:G[1];return O};
_.X($o,HTMLElement);var j2s=function(O){O.conditionSignalImpl!=null||(O.conditionSignalImpl=new vg(_.Wf(!1,void 0,"gE52Fb")));return O.conditionSignalImpl};
_.v=$o.prototype;_.v.showHideChildren=function(O){Iip(this,O,this.if)};
_.v.attributeChangedCallback=function(O,m,G){if(this.JSC$13538_didCallConnected)throw Error("Ug`"+O);O==="notify-dom-change"?this.notifyDomChange=G!==null:O==="restamp"&&(this.restamp=G!==null)};
_.v.debounceRender=function(){this.JSC$13538_renderDebouncer=_.Xu(this.JSC$13538_renderDebouncer,YV,this.JSC$13538_renderImpl.bind(this));_.fU(this.JSC$13538_renderDebouncer)};
_.v.disconnectedCallback=function(){var O=(0,_.bc)(this).parentNode;(!O||O.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in O&&!O.host)&&p_8(this)};
_.v.connectedCallback=function(){var O=this;this.JSC$13538_didCallConnected=!0;WCH?h4f():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.V("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){j2s(O).getWithPath([]);O.debounceRender()})};
_.v.render=function(){_.uU()};
_.v.JSC$13538_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var O=this.if,m=!1;if(O){this.hasInstance()||(SY3(this),m=!0);a:{var G=(0,_.bc)(this).parentNode;if(this.hasInstance()){var B=this.instance.children;if((B==null?0:B.length)&&(0,_.bc)(this).previousSibling!==B[B.length-1])for(var Q=0;Q<B.length;Q++)(0,_.bc)(G).insertBefore(B[Q],this)}else{if(!G){G=!1;break a}ETu(this,G)}G=!0}if(!G)return}else this.restamp&&p_8(this);Iip(this,!1,O);O&&!m&&SY3(this);Z1u&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.v.hasInstance=function(){return!!this.instance};
var ETu=function(O,m){var G=O.parentSignalProxy;if(vE()){var B=_.K(_.Wf(!0,void 0,"dkzufd"));var Q=B.next().value;B=B.next().value;G=O.parentSignalProxy}else{var H;var M=new K3((H=LC3(O))!=null?H:{},function(x){var t=PC(O.parentSignalProxy,x).getChangeRecordSignal([]);x=_.Wf(void 0,void 0,"iG8Uwe");var W=new vg(x);M.effect(function(){if(O.getDisableTemplateUpdate&&!O.getDisableTemplateUpdate()){var Z=t();W.notifyPath(sc(Z.path),{value:Z.value})}});
return W});
O.parentSignalProxy.childSignalProxies.push(M);var R=G=M}G=lGS(O.templateInfo,O.templateInfo.nodeInfoList,G,{eventListenerHost:O.eventListenerHost,hasInsertionPoint:O.templateInfo.hasInsertionPoint,thisCtx:O.eventListenerHost,enabledSignal:vE()?Q:void 0,getModel:function(){return LC3(O)}}).root;
O.instance={root:G,children:[],hidden:!1,signalProxy:R,getTemplateUpdatesEnabled:Q,setTemplateUpdatesEnabled:B};R=_.K(G.childNodes);for(Q=R.next();!Q.done;Q=R.next())O.instance.children.push(Q.value);(0,_.bc)(m).insertBefore(O.instance.root,O)},LC3=function(O){if((O=O.parentSignalProxy.model)&&!O.hostElement){var m={},G;
for(G in O)O.hasOwnProperty(G)&&(m[G]=O[G]);return m}},p_8=function(O){if(O.instance){var m=O.instance.children;
if(m.length){var G=(0,_.bc)(m[0]).parentNode;if(G){G=(0,_.bc)(G);for(var B=0;B<m.length;B++)G.removeChild(m[B])}}vE()?O.instance.setTemplateUpdatesEnabled(!1):O.instance.signalProxy.dispose();O.instance=void 0}},Iip=function(O,m,G){m=m||!G;
O.instance&&O.instance.hidden!==m&&(O.instance.hidden=m,XR5(m,O.instance.children))},SY3=function(O){if(vE()){var m=O.instance;
m&&a9(O.parentSignalProxy.owner,function(){return!m.getTemplateUpdatesEnabled()})&&m.setTemplateUpdatesEnabled(!0)}else O.setDisableTemplateUpdate(!1)};
_.vr.Object.defineProperties($o.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var O=this;return a9(this.parentSignalProxy.owner,function(){return j2s(O).getWithPath([])})},
set:function(O){O||(vE()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));j2s(this).setWithPath([],!!O)}}});
_.vr.Object.defineProperties($o,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",$o);var Cip=[],Mx=function(){var O=HTMLElement.apply(this,arguments)||this;O.as="item";O.indexAs="index";O.itemsIndexAs="itemsIndex";O.targetFramerate=20;O.notifyDomChange=!1;O.isDetached=!1;O.JSC$13545_renderDebouncer=null;O.instances=[];O.chunkingId=null;O.chunkCount=null;O.shouldMeasureChunk=!1;O.shouldContinueChunking=!1;O.renderStartTime=null;O.JSC$13545_didCallConnected=!1;return O};
_.X(Mx,HTMLElement);var oTu=function(O){O.itemSignalImpl!=null||(O.itemSignalImpl=new vg(_.Wf(Cip,void 0,"YBrqgf")));return O.itemSignalImpl},lis=function(O,m){Array.isArray(m)||(m=Cip);
oTu(O).setWithPath([],m)};
_.v=Mx.prototype;_.v.showHideChildren=function(O){for(var m=_.K(this.instances),G=m.next();!G.done;G=m.next())XR5(O,G.value.children)};
_.v.notifyPath=function(O,m){O=sc(O);O[0]==="items"&&(O.length===1?lis(this,m):oTu(this).setWithPath(O.slice(1),m))};
_.v.canNotifyPath=function(O){return O==="items"};
_.v.attributeChangedCallback=function(O,m,G){if(this.JSC$13545_didCallConnected)throw Error("Vg`"+O);O==="as"?this.as=G:O==="index-as"?this.indexAs=G:O==="items-index-as"?this.itemsIndexAs=G:O==="initial-count"?this.initialCount=Number(G):O==="notify-dom-change"?this.notifyDomChange=G!==null:O==="target-framerate"&&(this.targetFramerate=Number(G))};
_.v.disconnectedCallback=function(){this.isDetached=!0;for(var O=0;O<this.instances.length;O++)ai_(this,O);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.v.connectedCallback=function(){var O=this,m=oTu(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var Q=m(),H=sc(Q.path);if(H[0]===void 0||H[0]==="splices"||H[0]==="length")O.debounceRender();else{var M=H[0];if(M=O.instances[typeof M==="string"?Math.floor(Number(M)):M])H=[O.as].concat(_.lS(H.slice(1))),M.signalProxy.notifyPath(H,Q)}});
this.JSC$13545_didCallConnected=!0;WCH?h4f():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var G=(0,_.bc)((0,_.bc)(this).parentNode),B=0;B<this.instances.length;B++)G.insertBefore(this.instances[B].root,this);this.chunkingId&&this.render()}};
_.v.debounceRender=function(){this.JSC$13545_renderDebouncer=_.Xu(this.JSC$13545_renderDebouncer,YV,this.JSC$13545_renderImpl.bind(this));_.fU(this.JSC$13545_renderDebouncer)};
_.v.render=function(){this.debounceRender();_.uU()};
_.v.JSC$13545_renderImpl=function(){var O=this;if(!this.parentSignalProxy.isDisposed){var m=this.items,G=ko8(this,m.length);yk8(this,m,G);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){O.chunkingId=null;if(O.shouldMeasureChunk){var B=performance.now()-O.renderStartTime;O.chunkCount=Math.round(Math.ceil(1E3/O.targetFramerate)/B*O.chunkCount)||1}O.shouldContinueChunking&&O.debounceRender()}));
Z1u&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var ko8=function(O,m){var G=m,B=O.instances.length;if(O.initialCount){if(O.chunkCount){var Q=Math.min(Math.max(m-B,0),O.chunkCount);G=Math.min(B+Q,m)}else G=Math.min(m,O.initialCount),Q=Math.max(G-B,0),O.chunkCount=Q||1;O.shouldMeasureChunk=Q===O.chunkCount;O.shouldContinueChunking=G<m;O.renderStartTime=performance.now()}return G},yk8=function(O,m,G){for(var B=0;B<G;B++){var Q=O.instances[B],H=m[B];
Q?(Q.signalProxy.setWithPath([O.as],H),Q.signalProxy.setWithPath([O.indexAs],B)):cku(O,H,B)}for(m=O.instances.length-1;m>=B;m--)G=O,Q=m,ai_(G,Q),_.K(G.instances.splice(Q,1)).next().value.signalProxy.dispose()},ai_=function(O,m){O=O.instances[m];
m=(0,_.bc)(O.root);for(var G=0;G<O.children.length;G++)m.appendChild(O.children[G])},cku=function(O,m,G){var B={};
m=Object.assign({},YY8(O),(B[O.as]=m,B[O.indexAs]=G,B[O.itemsIndexAs]=G,B));var Q=new K3(m,function(M){if(M!==O.as&&M!==O.indexAs){if(M===O.itemsIndexAs)return PC(Q,O.indexAs);var R=PC(O.parentSignalProxy,M).getChangeRecordSignal([]);M=_.Wf(void 0,void 0,"T21Pqc");var x=new vg(M);Q.effect(function(){var t=R();x.notifyPath(sc(t.path),{value:t.value})});
return x}});
O.parentSignalProxy.childSignalProxies.push(Q);B=lGS(O.templateInfo,O.templateInfo.nodeInfoList,Q,{eventListenerHost:O.eventListenerHost,getModel:function(){var M={};return Object.assign({},YY8(O),(M[O.as]=Q.model[O.as],M[O.indexAs]=Q.model[O.indexAs],M[O.itemsIndexAs]=Q.model[O.indexAs],M))},
hasInsertionPoint:O.templateInfo.hasInsertionPoint,thisCtx:O.eventListenerHost,methodInvocationRequirement:Jkj,enabledSignal:O.stampingEnabled}).root;m={root:B,children:[],signalProxy:Q};B=_.K(B.childNodes);for(var H=B.next();!H.done;H=B.next())m.children.push(H.value);B=(B=O.instances[G+1])?B.children[0]:O;(0,_.bc)((0,_.bc)(O).parentNode).insertBefore(m.root,B);O.instances[G]=m},YY8=function(O){if((O=O.parentSignalProxy.model)&&!O.hostElement){var m={},G;
for(G in O)O.hasOwnProperty(G)&&(m[G]=O[G]);return m}};
Mx.prototype.itemForElement=function(O){var m=this,G=this.instances.find(function(B){return B.children.includes(O)});
if(G)return a9(this.parentSignalProxy.owner,function(){return G.signalProxy.getWithPath([m.as])})};
Mx.prototype.indexForElement=function(O){var m=this.instances.findIndex(function(G){return G.children.includes(O)});
return m>=0?m:void 0};
_.vr.Object.defineProperties(Mx.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var O=this;return a9(this.parentSignalProxy.owner,function(){return oTu(O).getWithPath([])})},
set:function(O){lis(this,O)}},
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}}});
_.vr.Object.defineProperties(Mx,{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",Mx);var dE9,w__;_.ry=new _.Us("STATE_STORE_TOKEN");dE9=new _.Us("SELECT_TOKEN");w__=new _.Us("DISPATCH_TOKEN");var pRN={getSelectFn:function(){var O;return(O=_.KR().resolve(_.v7(dE9)))!=null?O:TFN},
getDispatchFn:function(){var O;return(O=_.KR().resolve(_.v7(w__)))!=null?O:_.Km().dispatch.bind(_.Km())},
getAppStore:function(){return _.KR().resolve(_.ry)}},gQS,IQp=!1;var CYz,Rs2={traceAllComponents:_.V("web_tracing_all_components"),exportToCsi:_.V("web_tracing_export_to_csi"),exportBreadcrumbs:_.V("web_enable_tracing"),bufferSize:_.Rd("web_max_tracing_events"),enabledSpansArray:_.Ue("web_tracing_enabled_spans"),exportToDevTools:_.V("web_tracing_export_to_devtools")};CYz=new i5C;var yDN=function(){};var lQI=void 0;var enm=function(){};
enm.prototype.hasAttribute=function(O){if(O==="dir")return!1;if(O==="disable-upgrade"){var m,G;return(G=(m=this.hostElement)==null?void 0:m.hasAttribute("disable-upgrade"))!=null?G:!1}throw Error("Wg`"+O);};
enm.prototype.attributeChangedCallbackWrapper=function(O,m,G){if(O==="disable-upgrade"&&this.__isUpgradeDisabled&&G===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var B;((B=this.hostElement)!=null?B:this).isConnected&&this.connectedCallback()}else m===G||this.__isReflecting||this.attributeChangedCallback(O,m,G)};
enm.prototype.getExtraMethodsToForward=function(){for(var O=this,m=[],G=_.K(DE2),B=G.next(),Q={};!B.done;Q={tagName$jscomp$54:void 0,name$jscomp$598:void 0},B=G.next())Q.name$jscomp$598=B.value,B=void 0,Q.name$jscomp$598==="_setPendingProperty"?(Q.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),B=function(H){return function(M,R,x){C7(H.tagName$jscomp$54,M,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return O._setPendingProperty(M,R,x)}}(Q)):B=function(H){return function(){return O[H.name$jscomp$598].apply(O,
_.lS(_.eA.apply(0,arguments)))}}(Q),m.push([Q.name$jscomp$598,
B]);return m};
for(var d8z=X_U(nT3((0,_.lU)(enm))),s5r=["disabled","disable-upgrade"],s23=(0,_.lU)(function(){}),NQm=new Set(Object.getOwnPropertyNames(s23.prototype)),O1z=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.lS(NQm))),PYr=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),DE2=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),PiH=new Set([].concat(_.lS(PYr),_.lS(DE2),_.lS(NQm))),FCe=_.K(PiH),Ak_=FCe.next();!Ak_.done;Ak_=FCe.next())WLN.add(Ak_.value);var ADe={created:function(){vQe(this);this.initializeInjection()}};var Mv5=!1,qN=window.ShadyDOM,WCp=["appendChild","insertBefore","removeChild","replaceChild"],tvz=[Node];qN&&tvz.push(qN.Wrapper);var nTS,X_5,TQ6={};var Uz,t1=new Set;var LCS=new Set("context didCallReady is info params signalProxy".split(" ")),oTf="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),liM="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var OFj=nC({entities:h5f}),mAU=new vX(OFj);var GG2=function(){return _.Iu.apply(this,arguments)||this};
_.X(GG2,_.Iu);_.vr.Object.defineProperties(GG2.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return mAU}}});
_.c([_.p7()],GG2);_.RF=[QZ.prototype,GG2.prototype];_.iL={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var O=this,m={};setTimeout(function(){var G;return _.iP((G=O.hostElement)!=null?G:O,"yt-live-chat-add-tooltip-target",m)},0);
this.handler_=m.handler},
detached:function(){if(this.handler_){var O;this.handler_.removeElementFromSupportingTooltips((O=this.hostElement)!=null?O:this)}this.handler_=null}}};_.nm=new _.Us("ICON_MANAGER_TOKEN");var BPU=[48,20,18,16,15,13,12],Kjp=new Map,mA5=new Set,FCp=new Set,OFe=new Set,Pip=new Set,Ak6=new Set,BP5=new Promise(function(O){var m=!1,G=!1,B=!1,Q=[],H=function(M){if("detail"in M)if(M=M.detail,M.name==="yt-icons")GGs(M),m=!0;else if(M.name==="yt-sys-icons")GGs(M),G=!0;else{var R;((R=M.name)==null?0:R.includes("yt-sys-icons"))&&M.size!==24&&(GGs(M,!0),Q.push(M.size),Q.length===BPU.length&&(B=!0))}m&&G&&B&&(window.removeEventListener("iron-iconset-added",H),O())};
window.addEventListener("iron-iconset-added",H)}),HFM=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"]]);_.xo={};_.xo.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.HX,computeHref_:function(O,m){m=m===void 0?!1:m;if(!O||O.commandExecutorCommand)return null;var G=P5s(O,m);return m||G!==null?G?_.V("enable_polymer_resin")?_.d5(G).toString():G:null:(_.ay(new _.j9("computeHref was null",this.is,O)),null)},
computeOptionalHref_:function(O){return this.computeHref_(O,!0)},
computeNofollow_:function(O){return O?ytI(O)?"nofollow":null:null},
computeIcon_:function(O){return O&&O.iconType?_.bK(O.iconType):""},
resolveCommand:function(O,m,G){m=m===void 0?{}:m;return _.fm(O,this.hostElement,m,G===void 0?!1:G)}};var HFs,qx;_.QzH={};HFs=null;
qx={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_=Bap(this.viewroot));_.mp(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var O=this;this.unobserve_();if(_.V("kevlar_vimio_use_shared_monitor"))iFr(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 m=[];this.visibilityOptionVisible_&&m.push(this.visibilityObserver.observe(this.hostElement,function(){return O.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&m.push(this.visibilityObserver.observe(this.hostElement,function(){return O.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&m.push(this.visibilityObserver.observe(this.hostElement,function(){return O.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=m}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){$AN(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 O=_.w9(this.parentNode,function(G){var B,Q=(B=G.polymerController)!=null?B:G;return!!Q.getVisibilityObserverForChild&&Q.getVisibilityObserverForChild()},!0);
if(O){var m;this.localVisibilityObserver_=((m=O.polymerController)!=null?m:O).getVisibilityObserverForChild()}else HFs||(HFs=Bap()),this.localVisibilityObserver_=HFs;return this.localVisibilityObserver_},visibilityCallback:function(O){O?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.V("kevlar_use_vimio_behavior")||(qx={});qx&&!_.V("kevlar_use_vimio_behavior")&&(delete qx.attached,delete qx.detached);_.QzH.YtVisibilityObserverBehavior=[qx];var vl8={};vl8.YtVisualElementBehavior=[_.QzH.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.V("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.V("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var O=this.getScreenLayer&&this.getScreenLayer(),m=this.getVisibilityLogger();m&&m.reportShown(this,void 0,O)}},
onHidden:function(){if(_.V("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.V("kevlar_vimio_use_shared_monitor")){var O=this.getScreenLayer&&this.getScreenLayer(),m=this.getVisibilityLogger();m&&m.reportHidden(this,void 0,O)}},
getVisibilityLogger:function(){return _.V("kevlar_use_vimio_behavior")?_.TS():null},
shouldSkipLogging:function(){if(_.kB("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var O=this.getParentRenderer&&this.getParentRenderer();if(!O)return!1;var m,G=(m=O.polymerController)!=null?m:O;if(!G.data)return!1;O=this.data.trackingParams;O=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:O;var B;m=(B=G.data)==null?void 0:B.trackingParams;var Q,H;m=((Q=G.data)==null?0:Q.loggingDirectives)?(H=G.data)==null?void 0:H.loggingDirectives.trackingParams:m;return O&&m&&O===
m}}];var UAI=new Map,Lm;var dUN=function(O){this.layer=O},UQ=function(O){return O.layer!==void 0?O.layer:O.parent?UQ(O.parent):O.layer=0};var VmN;_.N={};VmN=0;_.N.YtRendererBehavior=[_.xo.YtComponentBehavior,vl8.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_:_.V("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var O,m;(m=(O=this.monitorScrollElement)!=null?O:this.hostElement)==null||m.removeEventListener("scroll",_.f7(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();xAz(this.hostElement);WDj(_.PD(),this.hostElement);Hq.delete(this.hostElement)},
registerRenderer:function(O){var m;((m=O.polymerController)!=null?m:O).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(O),this.markDirty())},
unregisterRenderer_:function(O){this.useVimio_||(this.childCache_.delete(O),this.markDirty())},
attached:function(){var O=this,m=this.getParentRenderer();if(m){var G,B,Q;(B=(G=(Q=m.polymerController)!=null?Q:m).registerRenderer)==null||B.call(G,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var H,M;(M=(H=this.monitorScrollElement)!=null?H:this.hostElement)==null||M.addEventListener("scroll",_.f7(this,this.onScroll))}_.ln.addJob(function(){tm6(O.hostElement)},8);
G=new dUN(this.screenLayer||void 0);(m=Hq.get(m))&&m.layerNode&&(G.parent=m.layerNode);m={};FON(this.hostElement,(m.isRenderer=!0,m.layerNode=G,m[wa5]=this.data,m))},
getParentRenderer:function(){for(var O=this.hostElement.parentNode,m,G;O&&((m=Hq.get(O))==null||!m.isRenderer)&&!((G=O.polymerController)!=null?G:O).isRenderer_;)O=O.parentNode||O.host;return O},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.V("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.yE("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.V("debug_web_ve_data")&&this.data.trackingParams){var O="";try{O=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(G){_.oy(G)}if(O){var m=qrS(O,1);m!==void 0&&(this.hostElement.dataset.veIndex=String(m));O=qrS(O,2);
O!==void 0&&(this.hostElement.dataset.ve=String(O))}}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,_.V("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Ez(this.data.loggingDirectives.trackingParams)),this.visualElement=_.gu(_.uK(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var O=this.data.targetId;_.z43(_.PD(),O,this.hostElement)}else WDj(_.PD(),this.hostElement)},
onScroll:function(){var O=Date.now();O-this.lastHandledScroll_<50||(this.lastHandledScroll_=O,this.markDirty())},
markDirty:function(){_.V("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():bFf(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var O=this.getParentRenderer();if(O&&(O=Hq.get(O))&&O.layerNode)return UQ(O.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.lS(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var O=0;O<this.data.impressionEndpoints.length;O++)this.sendImpression(this.data.impressionEndpoints[O]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(O){O.clickTrackingParams&&delete O.clickTrackingParams;var m,G;(O==null?0:(m=O.commandMetadata)==null?0:(G=m.webCommandMetadata)==null?0:G.sendPost)?_.tK(this.hostElement,[O,{impression:!0}]):_.Wd(this.hostElement,[O],this.hostElement)},
logExplicitClick:function(O){var m=_.yA(this.getScreenLayer());if(m){var G,B=(G=O.polymerController)!=null?G:O;O=B.visualElement;B=B.trackingParams||B.clickTrackingParams;!O&&B&&(O=_.Ez(B));O&&_.Gk(m,O)}}}];var Kje={},UX=function(){return _.Iu.apply(this,arguments)||this};
_.X(UX,_.Iu);UX.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
UX.prototype.onPdgItemBehaviorClick=UX.prototype.onPdgItemBehaviorClick;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],UX.prototype,"data",void 0);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],UX.prototype,"onPdgItemBehaviorClick",null);_.c([_.p7()],UX);Kje.YtPdgLiveChatItemBehavior=[UX.prototype,_.N.YtRendererBehavior];var $A$;var Mmj;_.tg={};_.tg.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Wg=function(){var O=$f.apply(this,arguments)||this;O.switchTemplateAtRegistration=!1;return O};
_.X(Wg,$f);Wg.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||hg5(this),_.m8N(this,"doRender"),this.doRender())};
Wg.prototype.debounceRender=function(){this.templatingFn&&_.GS(this,"doRender",this.doRender)};
Wg.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.oy(Error("fh"))};
Wg.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.c([le5()],Wg);var r9U=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ZR={},jzM=(ZR[1]={filterString:null,isUnwrappable:null,unwrap:null},ZR[2]={filterString:function(O,m,G){return Wu(G)},
isUnwrappable:function(O){return O instanceof NP},
unwrap:function(O){return OI(O)}},ZR[3]={filterString:function(O,m,G){return r9U.test(G)?G:Y0.toString()},
isUnwrappable:function(O){return lG(O)},
unwrap:function(O){return _.an(O)}},ZR[4]={filterString:function(){return Y0.toString()},
isUnwrappable:function(O){return O instanceof In},
unwrap:function(O){return _.Eh(O).toString()}},ZR[5]={filterString:function(O,m,G){return G},
isUnwrappable:function(O){return typeof O==="string"},
unwrap:function(O){return O.toString()}},ZR[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(O){return O instanceof _.Hi},
unwrap:function(O){return H_r(O)}},ZR[8]={filterString:function(O,m,G){G=String(G).toLowerCase();
return qD5(O,m,G)?G:"zClosurez"},
isUnwrappable:null,unwrap:null},ZR[10]={filterString:null,isUnwrappable:null,unwrap:null},ZR);He[Yv["default"]]=pZS;var S4e=[];(function(){var O=Bx;Bx=function(m){O==null||O(m);ap(function(){for(var G=0;G<m.length;G++)Elz(m[G])})}})();var Rgo=function(){var O=_.Iu.apply(this,arguments)||this;O.hasUnmounted=!1;return O};
_.X(Rgo,_.Iu);_.v=Rgo.prototype;_.v.beforeRegister=function(){var O=this.doIdomRender;this.templatingFn?_.oy(Error("eh")):(this.templatingFn=O,this.switchTemplateAtRegistration=!0,u65(this))};
_.v.attached=function(){};
_.v.detached=function(){Elz(this.hostElement)};
_.v.renderIdom=function(){throw Error("hh");};
_.v.doIdomRender=function(){var O=this;MlI(this.hostElement,function(){O.renderIdom()})};
_.c([_.p7()],Rgo);var iFo=[Wg.prototype,Rgo.prototype];var xAm,q48=function(){return xAm!==void 0?xAm:xAm=document.createElement("template")};
document.head.appendChild(q48().content);var UAC;var tm_,Wjs=function(){return tm_!==void 0?tm_:tm_=document.createElement("template")};
document.head.appendChild(Wjs().content);var ZF$;var zg9=document.head,J9p=zg9.appendChild,Vm$;if(ZF$===void 0){var bFu=document.createElement("template");_.f(bFu,"\x3c!--css-build:shady--\x3e");bFu.content.insertBefore(Wjs().content.cloneNode(!0),bFu.content.firstChild);ZF$=bFu}Vm$=ZF$;J9p.call(zg9,Vm$.content);var nlH,XZ2=function(){return nlH!==void 0?nlH:nlH=document.createElement("template")};
document.head.appendChild(XZ2().content);var flu;var hgU=document.head,TPo=hgU.appendChild,glC;if(flu===void 0){var u6U=document.createElement("template");_.f(u6U,"\x3c!--css-build:shady--\x3e");u6U.content.insertBefore(XZ2().content.cloneNode(!0),u6U.content.firstChild);flu=u6U}glC=flu;TPo.call(hgU,glC.content);var jzs=document.head,Ilu=jzs.appendChild,pZ3;if(UAC===void 0){var S4j=document.createElement("template");_.f(S4j,"\x3c!--css-build:shady--\x3e");S4j.content.insertBefore(q48().content.cloneNode(!0),S4j.content.firstChild);UAC=S4j}pZ3=UAC;Ilu.call(jzs,pZ3.content);var Elm,Ljo=function(){return Elm!==void 0?Elm:Elm=document.createElement("template")};
document.head.appendChild(Ljo().content);var Cx_;_.B6=new _.Us("DARK_THEME_TOKEN");var nDf=new _.q$("accessibilityProperties");var b6M=new _.q$("layoutProperties");var XU5=new _.q$("imageType");var ol3={};if("ytAttributedStringLinkHoverColor"in ol3)throw Error("kh`ytAttributedStringLinkHoverColor");(function(O,m){ol3[O]="value"in m&&"unit"in m?kGI(O,m):function(G){try{return m(G)}catch(B){throw Error("ih`"+O+"`"+B.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var ll8=function(O){var m=this;this.holdTime=O===void 0?500:O;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(G){var B=new CustomEvent("LONG_PRESS"),Q;(Q=G.changedTouches[0].target)==null||Q.dispatchEvent(B)};
this.ontouchstart=function(G){m.longPressTimeout=_.t8(_.ln,function(){m.onlongpress(G);m.longPressOccurred=!0},m.holdTime)};
this.ontouchmove=function(){_.ln.cancelJob(m.longPressTimeout);m.longPressTimeout=NaN;m.longPressOccurred=!1;m.moveOccurred=!0};
this.ontouchend=function(G){if(m.longPressTimeout&&!m.longPressOccurred&&!m.moveOccurred){var B;(B=G.changedTouches[0].target)==null||B.dispatchEvent(new Event("click"))}_.ln.cancelJob(m.longPressTimeout);m.longPressTimeout=NaN;m.longPressOccurred=!1;m.moveOccurred=!1}};var H6N=function(O,m){ll8.call(this,m);var G=this;this.callback=O;this.onlongpress=function(B){var Q;(Q=G.callback)==null||Q.call(G,B)}};
_.X(H6N,ll8);var vDp=function(O,m){var G=Object.assign({},m);O=_.K(new Map([["ontouchstart",O.ontouchstart],["ontouchend",O.ontouchend],["ontouchmove",O.ontouchmove]]));for(var B=O.next(),Q={};!B.done;Q={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},B=O.next()){var H=_.K(B.value);B=H.next().value;H=H.next().value;Q.eventName$jscomp$101=B;Q.eventHandler$jscomp$1=H;m[Q.eventName$jscomp$101]=function(M){return function(R){var x;(x=G[M.eventName$jscomp$101])==null||x.call(G,R);(0,M.eventHandler$jscomp$1)(R)}}(Q)}};_.Mu=new _.Us("COMMAND_HANDLER_TOKEN");var c96=new _.q$("parallelCommand");var wZe=new _.q$("performOnceCommand");var dAI=new _.q$("serialCommand");var egp=void 0;var al2=function(){this.data=[];this.consumer=null};
al2.prototype.push=function(O){this.consumer?this.consumer(O):this.data.push(O)};var mH={};_.Wf(mH,void 0,"sgPmTd");_.Wf(null,void 0,"jypsq");_.Wf(null,void 0,"mWiOof");var FYe=new al2;var m9s=[ap2,kYu,yzp,YSp,cz2,lp9,dpu,wMU];var JiM=new _.q$("bracketTextDecorator");var mw=new _.q$("highlightTextDecorator");_.H6=new _.Us("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var U95=function(){},kGC;
(kGC=window.requestIdleCallback)==null||kGC.bind(window);var WKS={calledOnce:!1,state:"visible"},tdf={calledOnce:!1,state:"hidden"};var y9$=new _.Us("ICON_WIZ_COMPONENT_TOKEN");_.T$=_.a(function(O){var m=O.icon;var G=O.active;var B=O.className;var Q=O.style;var H=O.dataSelected;var M=O.dataDisabled;var R=O.role;var x=O.animateIcon;var t=O.themeOverride;var W=O.ariaHidden;var Z=O.ariaExpanded;var z=O.ariaLabel;var J=O.tabindex;var n=O.id;var I=O.size;var S=O.iconFilter;var L=O.onKeydown;return _.q(_.U,{cond:m,then:function(){var C=_.KR().resolve(y9$);return _.q(C,{icon:m,dataSelected:H,dataDisabled:M,animateIcon:x,themeOverride:t,ariaExpanded:Z,tabindex:J,id:n,active:G,size:I,
role:R,className:B,ariaHidden:W,ariaLabel:z,style:function(){return Q!=null&&Q()||I==null||!I()?Q==null?void 0:Q():"width: "+(I==null?void 0:I())+"px;height: "+((I==null?void 0:I())+"px;")},
iconFilter:S,onKeydown:L})}})},"b");
_.T$.idomCompat={callbacks:{onKeydown:!0}};var kIN=window.devicePixelRatio||1;var d9N=new Map([["yt_outline_bag_black_24","bag"]]);var zh=function(O){var m=this;this.margin=.1;this.whenInViewportWithMargin=O;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){m.requestScan()});
window.addEventListener("touchend",function(){m.requestScan()});
window.addEventListener("updateui",function(){m.requestScan()});
var G=new _.Pu((0,_.pd)(this.requestScan,this),100);window.addEventListener("scroll",function(){G.fire()},!0);
window.addEventListener("resize",(0,_.pd)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){m.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.pd)(this.requestScan,this))};
zh.prototype.observe=function(O){this.observationTargets.includes(O)||this.observationTargets.push(O)};
zh.prototype.unobserve=function(O){this.observationTargets=this.observationTargets.filter(function(m){return m!==O})};
zh.prototype.requestScan=function(){var O=this;this.scanRequested||(ap(function(){c9_(O)}),this.scanRequested=!0)};
var c9_=function(O){var m=(1+O.margin)*(document.documentElement.clientHeight||window.innerHeight);O.observationTargets=O.observationTargets.filter(function(G){var B=G.getBoundingClientRect();(B=m>B.top&&!!B.height)&&O.whenInViewportWithMargin(G);return!B&&G.parentNode});
O.scanRequested=!1};
zh.prototype.disconnect=function(){this.observationTargets=[]};var Y4j,wZj;Y4j=_.K(_.Wf(N05(),void 0,"O3X2wd"));_.dAC=Y4j.next().value;wZj=Y4j.next().value;window.addEventListener("resize",function(){wZj(N05())});var egH={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},DAH=void 0,szU=window.innerWidth,NP9=window.innerHeight;window.addEventListener("resize",function(){DAH=void 0});var PxU;if("IntersectionObserver"in window)PxU=AiN();else{if(DAH===void 0){var Fju;Fju="matchMedia"in window?window.matchMedia(egH.landscape+","+egH.portrait).matches:void 0;DAH=Fju!==void 0?Fju:szU>=930&&NP9>=550||szU>=550&&NP9>=930}PxU=DAH?{observe:function(O){ap(function(){var m;(m=O.onViewportEntered)==null||m.call(O)})},
unobserve:function(){}}:new zh(function(O){ap(function(){var m;
(m=O.onViewportEntered)==null||m.call(O)})})}var PfO=PxU;var A9U=_.a(function(O){var m=!1,G=_.Al("img",function(B){_.LS(function(){m=!0;B.onload=null})});
_.ER(function(){var B,Q=(B=O.data)==null?void 0:B.call(O),H,M=(H=O.getSrc)==null?void 0:H.call(O).cb,R;B=(R=O.config)==null?void 0:R.call(O);if(R=G.value)if(H=function(t,W){if(!m)return M?M(t,W):t},Gtp(R,B),_.V("web_image_dont_reload_same_src")&&mqO(R,Q,H))_.V("web_image_dont_reload_same_src_simulate_load")&&R.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var x;Obp(R,Q||null,H,B,(x=O.lazy)==null?void 0:x.call(O))}},"zS0jKb");
return _.q("img",{el:G})},"c");
A9U.idomCompat=!0;_.KH=_.a(function(O){var m=function(){var G,B=O.data(),Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P,w,d,D,OS,rN,xO,XI,Vf,US,CN,oe,K$,n$;var qe={contentMode:(Q=O.contentMode)==null?void 0:Q.call(O),loadedClass:(H=O.loadedClass)==null?void 0:H.call(O),isPreloaded:(M=O.isPreloaded)==null?void 0:M.call(O),notifyOnLoaded:(R=O.notifyOnLoaded)==null?void 0:R.call(O),notifyOnUnloaded:(x=O.notifyOnUnloaded)==null?void 0:x.call(O),preferredThumbnail:(t=O.preferredThumbnail)==null?void 0:t.call(O),preserveHeight:(W=O.preserveHeight)==
null?void 0:W.call(O),preserveWidth:(Z=O.preserveWidth)==null?void 0:Z.call(O),objectPosition:(z=O.objectPosition)==null?void 0:z.call(O),targetWidth:(J=O.targetWidth)==null?void 0:J.call(O),targetHeight:(n=O.targetHeight)==null?void 0:n.call(O),shouldShowPlaceholder:(I=O.shouldShowPlaceholder)==null?void 0:I.call(O),useWidth:(S=O.useWidth)==null?void 0:S.call(O),isToggled:(L=O.isToggled)==null?void 0:L.call(O),alt:(C=O.alt)==null?void 0:C.call(O),className:(P=O.className)==null?void 0:P.call(O),
onerror:O.onerror,onload:O.onload,style$:((w=O.style$)==null?void 0:w.call(O))||((d=O.style)==null?void 0:d.call(O)),color:(D=O.color)==null?void 0:D.call(O),width:(OS=O.width)==null?void 0:OS.call(O),height:(rN=O.height)==null?void 0:rN.call(O),"aria-hidden$":(K$=(xO=O["aria-hidden$"])==null?void 0:xO.call(O))!=null?K$:(XI=O.ariaHidden)==null?void 0:XI.call(O),draggable:(Vf=O.draggable)==null?void 0:Vf.call(O),"data-disabled$":(n$=(US=O["data-disabled$"])==null?void 0:US.call(O))!=null?n$:(CN=O.dataDisabled)==
null?void 0:CN.call(O),size:(oe=O.size)==null?void 0:oe.call(O)};return Hb5(B,qe,(G=O.hideOn404)==null?void 0:G.call(O))};
return _.q(_.I8,null,_.q(_.uz,{when:function(){var G;return((G=m())==null?void 0:G.type)==="image"}},function(){return _.q(A9U,{data:function(){return m().image},
getSrc:{cb:function(G,B){var Q=m().image.sources,H=m().config.isPreloaded,M=m().config.useWidth,R=m().config.targetWidth,x=m().config.targetHeight,t=m().config.preferredThumbnail;return _.yiN(B,Q,H,M,R,x,t)||""}},
config:function(){var G=m().config,B;for(B in G)G[B]===void 0&&delete G[B];return G},
lazy:O.renderLazy})}),_.q(_.uz,{when:function(){var G;
return((G=m())==null?void 0:G.type)==="icon"}},function(){return _.q(_.T$,{icon:function(){return m().iconName},
role:function(){return m().config.role},
className:function(){return m().config.className},
style:function(){return m().config.style$+";width: "+(m().config.width+"px;height: ")+(m().config.height+"px;color: ")+(m().config.color+";")},
ariaLabel:function(){return m().config["aria-label$"]},
ariaHidden:function(){return m().config["aria-hidden$"]},
dataDisabled:function(){return m().config["data-disabled$"]},
active:function(){return m().config.isToggled},
size:function(){return m().config.size}})}))},"d");
_.KH.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var O62=function(O){return function(m){return _.q(hCs,null,function(){var G=m.data(),B=_.o9(m.config);return _.q(Be,null,function(){return void O(G,B)})})}}(rOI),$qr=_.a(function(O){var m=function(B){var Q,H=_.Mi(function(z){Q=CS(function(){for(var J=_.K(W()),n=J.next();!n.done;n=J.next()){n=RF6(n.value);
n=typeof n==="string"?document.createTextNode(n):n;if(!(n instanceof Node)){J=new _.j9("Part is not a node",n,typeof n);_.oy(J);break}z.appendChild(n)}})}),M=rg(function(){return hGS(B())},{isEqual:Klz}),R=_.MN(O.config),x=function(){var z,J=M();
return!((z=R())==null||!z.ariaLabel)||!(J.commandRuns&&J.commandRuns.length!==0||J.paragraphStyleRuns&&J.paragraphStyleRuns.length!==0)},t=rg(R,{isEqual:xqz}),W=function(){var z=fTN(M(),t());
gDs(z,t());return M().content?EDf(M().content,z).parts:[]},Z=!0;
_.ER(function(){M();t();if(Z)Z=!1;else{var z=W();Promise.resolve().then(function(){var J=H.value;if(J){J.innerText="";var n;(n=Q)==null||n();Q=_.Sx(J,function(){return _.q(ibr,{parts:z})},"e")}})}},"YlhjWd");
return _.q("span",{el:H,class:function(){return M()&&RGr(M(),R())},
dir:function(){var z;return((z=R())==null?0:z.userInput)?"auto":void 0},
"aria-label":function(){var z;return x()?(z=R())==null?void 0:z.ariaLabel:void 0},
role:function(){return x()?"text":void 0}})},G;
return((G=O.config)==null?0:G.renderedFromFormattedString)?m(O.text):_.q(_.U,{cond:O.text,then:m})},"f");
$qr.idomCompat=!0;_.Jg=_.a(function(O){var m=_.MN(O.text),G=qxI(O);O.renderedFromFormattedString!==void 0&&(G.renderedFromFormattedString=!0);return _.V("attr_string_reactive")?_.q($qr,{text:m,config:G}):_.q(_.U,{cond:function(){var B;return m()&&((B=hGS(m()))==null?void 0:B.content)},
then:function(){return _.q(O62,{data:O.text,config:G})},
debugInstance:"Apcuac"})},"g");
_.Jg.idomCompat=!0;var Vse="";gfM({beforeVisit:function(O){O.type.TAG_NAME&&(Vse=O.type.TAG_NAME)},
afterRender:function(O,m){var G;Vse=(G=m==null?void 0:m.type)!=null?G:""},
didPatch:function(){Vse=""}});var Uqz=function(O,m,G){m=m===void 0?"unknown":m;G=G===void 0?{}:G;_.j9.call(this,O+" ("+m+")",Object.assign({},{name:"YtWcwError",tagName:m},G));Object.setPrototypeOf(this,this.constructor.prototype)};
_.X(Uqz,_.j9);_.xg=new WeakMap;_.iE=!1;var JOS,bbM,zFz;_.VZ=Symbol("mh");_.RZ=Symbol("nh");JOS=Symbol("oh");bbM=new Set(Object.getOwnPropertyNames(Element.prototype));zFz=Symbol("ph");var m92=_.a(function(O){return _.q("yt-attributed-string",{"aria-label":O.ariaLabel,hidden:O.hidden,id:O.id,class:O.className,"force-default-style":O.forceDefaultStyle},_.q(_.Jg,{text:O.data,ariaLabel:O.ariaLabel,ellipsisTruncate:O.ellipsisTruncate,isOverlay:O.isOverlay,linkInheritColor:O.linkInheritColor,noPreWrap:O.noPreWrap,noWrap:O.noWrap,userInput:O.userInput,noEndpoints:O.noEndpoints,headerRuns:O.headerRuns,isHeadline:O.isHeadline}))},"h");
_.V("web_wiz_attributed_string")&&_.qi(m92,"yt-attributed-string",{props:{ariaHidden:_.VZ,ariaLabel:_.VZ,className:_.VZ,ellipsisTruncate:_.VZ,isOverlay:_.VZ,linkInheritColor:_.VZ,noEndpoints:_.VZ,noStyleRuns:_.VZ,noLinkColor:_.VZ,noPreWrap:_.VZ,noWrap:_.VZ,skipOnClick:_.VZ,userInput:_.VZ,headerRuns:_.VZ,isHeadline:_.VZ,id:_.VZ,data:_.VZ,hidden:_.VZ,forceDefaultStyle:_.VZ,text:_.RZ,disableUpgrade:_.RZ,disable:_.RZ,slot:_.RZ}});var bL=function(){return _.u.apply(this,arguments)||this};
_.X(bL,_.u);bL.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},rOI(this.data,this.config))};
_.c([_.h(iFo),_.Y("design:type",Object)],bL.prototype,"ytIdomTemplatingBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],bL.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],bL.prototype,"ariaLabel",void 0);_.c([_.g(),_.Y("design:type",Boolean)],bL.prototype,"disable",void 0);_.c([_.g(),_.Y("design:type",Boolean)],bL.prototype,"ellipsisTruncate",void 0);_.c([_.g(),_.Y("design:type",Boolean)],bL.prototype,"isOverlay",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],bL.prototype,"linkInheritColor",void 0);_.c([_.g(),_.Y("design:type",Boolean)],bL.prototype,"noPreWrap",void 0);_.c([_.g(),_.Y("design:type",Boolean)],bL.prototype,"noWrap",void 0);_.c([_.g(),_.Y("design:type",Boolean)],bL.prototype,"userInput",void 0);_.c([_.g(),_.Y("design:type",Boolean)],bL.prototype,"noEndpoints",void 0);_.c([_.g(),_.Y("design:type",Array)],bL.prototype,"headerRuns",void 0);
_.c([_.DO({is:"yt-attributed-string",disableElementRegistration:!0})],bL);
_.V("web_wiz_attributed_string")||_.y(bL,"yt-attributed-string",function(){if(Cx_===void 0){var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
O.content.insertBefore(Ljo().content.cloneNode(!0),O.content.firstChild);Cx_=O}O=Cx_;return O},{mode:2});var GIj,B0u,uQI;GIj=function(){this.firstThumbnailLoaded=!1};
_.QfH=function(){B0u||(B0u=new GIj);return B0u};
uQI=function(O){var m=_.QfH();m.firstThumbnailLoaded||(m.firstThumbnailLoaded=!0,_.cd("ftl",O))};
GIj.prototype.reset=function(){this.firstThumbnailLoaded=!1};var XA6=0,gxN=new WeakMap,hFf=0,W6=new Set;var H6$,vDH=function(){return H6$!==void 0?H6$:H6$=document.createElement("template")};
document.head.appendChild(vDH().content);var KK$;var Sxp,LlO,n3;_.JH=_.Qf.caches;n3=function(){};
n3.prototype.open=function(O){return _.JH.open($9u(O))};
n3.prototype.has=function(O){return _.JH.has($9u(O))};
n3.prototype.delete=function(O){return _.JH.delete($9u(O))};
n3.prototype.match=function(O,m){var G=this,B,Q,H,M,R,x;return _.r(function(t){switch(t.nextAddress){case 1:return t.yield(G.keys(),2);case 2:B=t.yieldResult,Q=_.K(B),H=Q.next();case 3:if(H.done){t.jumpTo(5);break}M=H.value;return t.yield(G.open(M),6);case 6:return R=t.yieldResult,t.yield(R.match(O,m),7);case 7:if(x=t.yieldResult)return t.return(x);H=Q.next();t.jumpTo(3);break;case 5:return t.return()}})};
var Chp=function(){};
_.X(Chp,n3);var $9u=function(O){if(O.includes(":"))throw Error("sh`"+O);return O+":"+_.gI("CacheStorage get")};
Chp.prototype.keys=function(){var O,m,G,B,Q,H,M,R,x;return _.r(function(t){if(t.nextAddress==1)return O=[],m=_.gI("CacheStorage keys"),t.yield(_.JH.keys(),2);G=t.yieldResult;B=_.K(G);for(Q=B.next();!Q.done;Q=B.next())H=Q.value,M=_.pAN(H),R=M.originalName,x=M.datasyncId,x===m&&O.push(R);return t.return(O)})};var XL=function(){var O=_.u.apply(this,arguments)||this;O.objectURL=null;O.loadTime=Infinity;return O};
_.X(XL,_.u);_.v=XL.prototype;_.v.renderIdom=function(){I3N(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("vh");this.setConfig();this.config&&BbI(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.v.objectFitToContentMode=function(O){switch(O){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.v.logThumbnailFailureVe=function(){var O=_.Zv(197497);_.LK(_.uK(),O);var m=_.yA();m&&O&&m&&_.Or(m,[O])};
_.v.loadImageFromCacheIfExists=function(O){var m=this,G=O.target;(G==null?0:G.src)&&l3O(G.src).then(function(B){m.objectURL=_.w5(B).toString();m.setSrc(G,m.objectURL)}).catch(function(){})};
_.v.onError=function(O){var m=this;if(_.V("web_use_cache_for_image_fallback")){var G=O.target;G&&l3O(G.src).then(function(B){m.objectURL=_.w5(B).toString();m.setSrc(G,m.objectURL)}).catch(function(){_.V("kevlar_woffle_log_thumbnail_failure_ve")&&m.logThumbnailFailureVe();
_.V("kevlar_woffle_fallback_image")&&m.setSrc(G,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.v.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.v.setConfig=function(){var O=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(m){O.loadImageFromCacheIfExists(m);O.revokeObjectURL();jT5(O.hostElement)},
onerror:function(m){O.onError(m)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.V("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.v.setSrc=function(O,m){m&&(O.src=m)};
_.c([_.h(iFo),_.Y("design:type",Object)],XL.prototype,"ytIdomTemplatingBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],XL.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],XL.prototype,"alt",void 0);_.c([_.g(),_.Y("design:type",Boolean)],XL.prototype,"ftlEligible",void 0);_.c([_.g(),_.Y("design:type",Number)],XL.prototype,"height",void 0);_.c([_.g(),_.Y("design:type",Boolean)],XL.prototype,"notifyOnLoaded",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],XL.prototype,"notifyOnUnloaded",void 0);_.c([_.g(),_.Y("design:type",String)],XL.prototype,"objectFit",void 0);_.c([_.g(),_.Y("design:type",String)],XL.prototype,"objectPosition",void 0);_.c([_.g(),_.Y("design:type",String)],XL.prototype,"preferredThumbnail",void 0);_.c([_.g(),_.Y("design:type",Boolean)],XL.prototype,"preserveHeight",void 0);_.c([_.g(),_.Y("design:type",Boolean)],XL.prototype,"preserveWidth",void 0);
_.c([_.g({value:!0}),_.Y("design:type",Boolean)],XL.prototype,"useWidth",void 0);_.c([_.g({value:function(){return!_.yE("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.Y("design:type",Boolean)],XL.prototype,"shouldRenderLazy",void 0);_.c([_.g(),_.Y("design:type",Number)],XL.prototype,"width",void 0);_.c([_.DO({is:"yt-image",disableElementRegistration:!0})],XL);
_.y(XL,"yt-image",function(){if(KK$===void 0){var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);O.content.insertBefore(vDH().content.cloneNode(!0),O.content.firstChild);
KK$=O}O=KK$;return O},{mode:2});var f3=function(){return _.u.apply(this,arguments)||this};
_.X(f3,_.u);f3.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var O=_.eg(this.data.onVisibleCommand);O&&this.ytComponentBehavior.resolveCommand(O)}};
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],f3.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.tg.YtVisibilityBehavior),_.Y("design:type",Object)],f3.prototype,"ytVisibilityBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],f3.prototype,"data",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],f3);
_.y(f3,"yt-bumper-user-edu-content-view-model",function(){if(Mmj===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;$A$===void 0&&($A$=document.createElement("template"));var B=$A$;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Mmj=O}O=Mmj;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var Mdu;var rip,RGo=function(){if(rip!==void 0)return rip;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Mdu===void 0&&(Mdu=document.createElement("template"));var B=Mdu;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return rip=O};var i6C;_.hg={};i6C=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"]);_.hg.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var O=this.getContext_();return O?O.getTaskManager():_.ln},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var O=_.iP(this.hostElement,"yt-get-context-provider",{});O.detail&&O.detail.contextProvider?this.cachedProviderNode_=O.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return i6C.has(this.hostElement.localName)},
getNetworkManager:function(){var O=this.getContext_();if(O)return O.getNetworkManager()}};var dqN,x9u,U9U,qGo;_.Th=function(O){var m=x9u.get(O);if(m&&(m=m.pop()))return qGo++,m;U9U++;try{var G=document.createElement(O)}catch(B){throw new _.j9("ElementPool failed to create element",O,B.message);}return G};
dqN=function(O){var m=O.is;if(m){var G=x9u.get(m);G||(G=[],x9u.set(m,G));var B=_.kB("ELEMENT_POOL_CONFIG")||{};G.length>=(B[m]!==void 0?B[m]:_.kB("ELEMENT_POOL_DEFAULT_CAP",0))||G.push(O)}else _.ay(new _.j9("Element pool should only handle custom elements:",O.nodeName))};
x9u=new Map;U9U=0;qGo=0;var VX=new WeakMap,YxN=new WeakMap;var WK3;_.gy=function(O,m,G){G=G===void 0?_.uW():G;this.JSC$13811_defaultPriority=O;this.signal=m;this.scheduler=G;this.nextJobDescriptor=0;this.JSC$13811_parkedJobs=[];this.scheduledJobs=new Map};
_.uL=function(O,m){if(m){var G=_.xA();O.signal&&!_.q2(G,O.signal)?(G.addListener(O.signal,function(){O.processSignal()}),O.JSC$13811_parkedJobs.push({job:m,
priority:void 0})):tdu(O,m)}};
WK3=function(O,m){if(m!==O.JSC$13811_defaultPriority){O.JSC$13811_defaultPriority=m;for(var G=_.K(O.scheduledJobs.values()),B=G.next();!B.done;B=G.next())B=B.value,O.scheduler.cancelJob(B.jobId),B.jobId=O.scheduler.addJob(B.jobWrapper,m)}};
_.gy.prototype.flushJobs=function(){WK3(this,10);this.processSignal()};
_.gy.prototype.cancel=function(){for(var O=_.K(this.scheduledJobs),m=O.next();!m.done;m=O.next()){var G=_.K(m.value);m=G.next().value;G=G.next().value;this.scheduler.cancelJob(G.jobId);this.scheduledJobs.delete(m)}this.JSC$13811_parkedJobs=[]};
_.gy.prototype.processSignal=function(){for(var O=_.K(this.JSC$13811_parkedJobs),m=O.next();!m.done;m=O.next())m=m.value,tdu(this,m.job,m.priority);this.JSC$13811_parkedJobs=[]};
var tdu=function(O,m,G){G=G||O.JSC$13811_defaultPriority;if(G===10)Zw(m);else{var B=O.nextJobDescriptor++,Q=function(){m();O.scheduledJobs.delete(B)},H=O.scheduler.addJob(Q,G);
O.scheduledJobs.set(B,{jobWrapper:Q,jobId:H,priority:G})}};var Z6u;_.j1={};Z6u={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.j1.YtRendererstamperBehavior=[_.hg.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 O in this.stampDom){var m=this.stampDom[O];m&&m.id&&this.addReactiveSchema({type:"observe",method:{methodName:ktr(m.id),args:[{type:"wildcard",path:O}]}})}else{(O=(this.constructor.generatedFrom||this).observers)||(O=[]);for(m in this.stampDom){var G=this.stampDom[m];G&&G.id&&O.push(ktr(G.id)+"("+m+".*)")}this.constructor.generatedFrom.observers=O}},
addStampDomObserverFns_:function(){for(var O in this.stampDom){var m=this.stampDom[O];m.id?(this[ktr(m.id)]=this.rendererStamperObserver_.bind(this,O,m.id),this.hasDataPath_[O]=!1):(m=new _.j9("Bad rendererstamper config",this.is+":"+O),_.oy(m))}},
rendererStamperObserver_:function(O,m,G){if(G.path==O){if(G.value===void 0&&!this.hasDataPath_[O])return;this.hasDataPath_[O]=G.value!==void 0}this.rendererStamperApplyChangeRecord_(O,m,G)},
rendererStamperApplyChangeRecord_:function(O,m,G){var B=this.renderJobsMap_[m],Q=null;O==G.path?(G=G.value,_.YO(G)||(G=G===void 0||G===null?[]:[G]),O=this.stampDom[O],O.mapping&&(Q=this.stampDomArray_.bind(this,G,m,O.mapping,O.reuseComponents,O.events,O.stamperStableList)),B&&B.cancel(),G=O.usePageScheduler?this.getTaskManager():void 0,B||O.initialRenderPriority==void 0)?O.renderPriority==void 0||B||(B=new _.gy(O.renderPriority,O.waitForSignal,G),this.renderJobsMap_[m]=B):(B=new _.gy(O.initialRenderPriority,
O.waitForSignal,G),this.renderJobsMap_[m]=B,Q=function(H,M){H();WK3(M,10)}.bind(this,Q,B)):Q=O+".splices"==G.path?this.stampDomArraySplices_.bind(this,O,m,G.value):this.forwardRendererStamperChanges_.bind(this,O,m,G);
B?_.uL(B,Q):Q()},
forwardRendererStamperChanges_:function(O,m,G){var B=G.path.slice(O.length+1),Q=this.getStampContainer_(m),H=B.indexOf("."),M=B.substring(0,H),R=!1,x=0,t=parseInt(M,0);if(M[0]=="#"){R=parseInt(M.substring(1),0);t=this.get(O);var W=this.get([O,M]);t[R]==W?x=R:x=t.indexOf(W);R=!0}else isNaN(t)||(x=t,R=!0);R&&(B=B.substring(M.length+1),H=B.indexOf("."));M=_.SU(Q).children[x];var Z;if(Q=(Z=M==null?void 0:M.polymerController)!=null?Z:M)B="data"+B.slice(H),typeof Q.notifyPath!=="function"?_.ay(new _.j9("notifyPath missing",
this.is+": "+O+", "+m)):G.value?Q.notifyPath(B,G.value):Q.notifyPath(B)},
stampDomArraySplices_:function(O,m,G){if(G&&G.indexSplices){var B=this.getStampContainer_(m);if(B){for(var Q=_.SU(B),H=cOS(this.stampDom[O].reuseComponents),M=G.indexSplices.length,R=0;R<M;R++){for(var x=G.indexSplices[R],t=Q.children[x.index],W=x.removed.length;W>0;W--)t&&t.parentElement&&(_.SU(t.parentElement).removeChild(t),H&&dqN(t),t=Q.children[x.index]);W=this.stampDom[O].mapping;for(var Z=x.index+x.addedCount,z=document.createDocumentFragment(),J=H,n=x.index;n<Z;n++){var I=x.object[n],S=a3S(W,
I);if(S){var L=W[S];I=I[S];S=this.getComponentName_(L,I);var C=t?VX.has(t):!1;J&&t&&t.is==S&&C?(S=t,this.telemetry_.reuse++,t=t.nextElementSibling):J&&t&&C?(S=this.createComponent_(L,I,H),C=_.SU(t).nextElementSibling,Q.insertBefore(S,C),eFr(this.is,Q,t,H),t=C):(J=!1,S=this.createComponent_(L,I,H),z.appendChild(S));this.deferRenderStamperBinding_(S,L,I)}else L=new _.j9("Unimplemented type",O,m,B.tagName,Object.keys(I)[0]),_.oy(L)}Q.insertBefore(z,t)}this.flushRenderStamperComponentBindings_();this.stampDom[O].events&&
_.iP(this.hostElement,"yt-rendererstamper-finished",{container:B})}else O=new _.j9("Container object not found",m,this.hostElement?this.hostElement.is:""),_.oy(O)}},
stampDomArray_:function(O,m,G,B,Q,H){var M=this.getStampContainer_(m);if(M)if(m=_.SU(M),B=cOS(B),O){var R=0,x=0,t;if(H=H===void 0?_.yE("STAMPER_STABLE_LIST",!1):H||!1)for(t=m.firstElementChild;t&&!VX.has(t)&&O.length>x;){H=O[x];var W=a3S(G,H);if(W){if(this.getComponentName_(G[W],H[W])!=t.is){var Z=this.createComponent_(G[W],H[W],B),z=_.SU(t).nextElementSibling;z?m.insertBefore(Z,z):m.appendChild(Z);eFr(this.is,m,t,B);t=Z}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(t,G[W],H[W]);R++;
x++;t=_.SU(t).nextElementSibling}else x++}Dqe(this.is,m,R,B);R=t;if(O.length>x){H=document.createDocumentFragment();for(W=O.length;x<W;x++)if(Z=O[x],z=a3S(G,Z))t=this.createComponent_(G[z],Z[z],B),this.deferRenderStamperBinding_(t,G[z],Z[z]),H.appendChild(t);R&&_.SU(R).parentNode&&t&&!VX.has(t)?m.insertBefore(H,R):m.appendChild(H)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();Q&&_.iP(this.hostElement,"yt-rendererstamper-finished",{container:M})}else Dqe(this.is,m,0,
B);else O=new _.j9("Container object not found",m,this.hostElement?this.hostElement.is:""),_.oy(O)},
getStampContainer_:function(O){return this.$&&this.$[O]||_.ZO(this.hostElement).querySelector("#"+O)},
getComponentName_:function(O,m){return typeof O==="string"?O:O.matcher?O.matcher.call(this,m):O.component},
createComponent_:function(O,m,G){O=this.getComponentName_(O,m);try{var B=t1.has(O);if(G&&!B){var Q=_.Th(O);try{_.n7(Q)}catch(H){G="Failed to clear styles for "+O+".",H.message&&(G+=" Original error: "+H.message),_.ay(new _.j9(G))}}else Q=document.createElement(O)}catch(H){return Q="YtRendererStamperBehavior failed to create "+O+".",H.message&&(Q+=" Original description: "+H.message),H.message="YtRendererStamperBehavior failed to create element",_.kt(H,Q),Z6u.hasOwnProperty(O)?_.ay(H):_.oy(H),document.createElement("SPAN")}this.telemetry_.create++;
return Q},
deferRenderStamperBinding_:function(O,m,G){this.deferredBindingTasks_.push({component:O,typeOrConfig:m,data:G})},
flushRenderStamperComponentBindings_:function(){for(var O=0,m=this.deferredBindingTasks_.length;O<m;O++){var G=this.deferredBindingTasks_[O];if(!G)break;var B=void 0,Q=void 0,H=void 0,M=void 0,R=G.component,x=G.typeOrConfig;G=G.data;var t=(M=R.polymerController)!=null?M:R;M=R.loggingStatus;try{M&&(M.isRendererStamper=!0);if(typeof x!=="string"){for(H in x.attributes)x.attributes[H]===!0?R.setAttribute(H,""):x.attributes[H]===!1?R.removeAttribute(H):R.setAttribute(H,x.attributes[H]);for(Q in x.params)t[Q]=
x.params[Q],R!==t&&C7(R.localName,Q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(B in x.properties){var W=x.properties[B];if(W){var Z=yOM(W);t[B]=this.get(Z);R!==t&&C7(R.localName,B,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(B==="on-tap"||B==="on-click"){var z=this.get(Z);R.addEventListener("click",z);YxN.set(R,{property:B,listener:{type:"element",eventName:"click",handler:z}})}}else{var J=new _.j9("Undefined property binding",B);_.oy(J)}}}if(x.classListBinding){var n=yOM(x.classListBinding),
I=n?this[n]:null;if(I)for(B=0;B<I.length;B++)_.JG(R,I[B],!0)}t.data=G}finally{M&&(M.isRendererStamper=!1)}if(B=VX.get(R))R.hidden=!1,VX.delete(R),_.ln.cancelJob(B)}this.deferredBindingTasks_.length=0}}];_.qi(_.a(function(O){function m(){G().seconds&&H(jtp({seconds:Number(G().seconds)-Date.now()/1E3}))}
var G=O.targetTimestamp;O=O.className;var B=_.K(_.Wf("",void 0,"TM9kjd")),Q=B.next().value,H=B.next().value;_.EZ(function(){m();var M=setInterval(function(){m()},1E3);
_.LS(function(){clearInterval(M)})});
return _.q("yt-countdown",{class:_.bE("ytCountDownHost",O)},_.q("div",null,Q))},"i"),"yt-countdown",{props:{targetTimestamp:_.VZ,
className:_.RZ}});_.IF=new _.Us("KEY_MANAGER_TOKEN");var sTY={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"};_.p3=_.a(function(O){var m=_.Al("a",O.ref),G=O.aTagConfig?O.aTagConfig:_.bF(function(){var B,Q,H,M,R;var x=(R=_.eg((H=O.command)==null?void 0:H.call(O)))!=null?R:(M=O.command)==null?void 0:M.call(O);return _.sz({innertubeCommand:x,skipOnClick:(B=O.skipOnClick)==null?void 0:B.call(O),defaultTarget:(Q=O.target)==null?void 0:Q.call(O)})||{}},void 0,"TAvz0");
_.ER(function(){_.V("mweb_enable_keto_batch_pages")||(m.value._data=G()._data,m.value.params=G().params)},"dcjvAe");
return _.q("a",{el:m,href:function(){return G().href$},
rel:function(){return G().rel$},
class:function(){var B,Q;return(Q=G().className)!=null?Q:(B=O.className)==null?void 0:B.call(O)},
style:function(){var B;if((B=O.style)==null?0:B.call(O))return O.style();var Q;return((Q=O.disabled)==null?0:Q.call(O))?"pointer-events:none":""},
"aria-haspopup":function(){return!!G()["aria-haspopup$"]},
"force-new-state":Xw(function(){return G()["force-new-state$"]}),
title:Xw(function(){var B,Q;return(Q=G().title$)!=null?Q:(B=O.title)==null?void 0:B.call(O)}),
role:Xw(function(){var B;return((B=O.role)==null?void 0:B.call(O))||G().role$}),
target:Xw(function(){return G().target$}),
dir:Xw(function(){var B;return((B=O.dir)==null?void 0:B.call(O))||G().dir}),
tabindex:function(){var B;return G().tabindex$?Number(G().tabindex$):(B=O.tabIndex)==null?void 0:B.call(O)},
"aria-hidden":function(){var B,Q;return(Q=G()["aria-hidden$"])!=null?Q:(B=O.ariaHidden)==null?void 0:B.call(O)},
"aria-label":function(){var B,Q;return(Q=G()["aria-label$"])!=null?Q:(B=O.ariaLabel)==null?void 0:B.call(O)},
"aria-current":O.ariaCurrent,"aria-disabled":O.disabled,"aria-labelledby":O.ariaLabelledby,"aria-describedby":O.ariaDescribedby,"aria-selected":O.ariaSelected,"tab-identifier":O.tabIdentifier,"on:pointerdown":_.nH(function(B){var Q,H;return void((H=(Q=G()).onpointerdown)==null?void 0:H.call(Q,B))}),
"on:click":_.nH(function(B){var Q,H;(H=(Q=G()).onclick)==null||H.call(Q,B);var M;(M=O.onClick)==null||M.call(O,B)}),
"on:focusin":_.nH(function(B){var Q;(Q=O.onFocusin)==null||Q.call(O,B)}),
"on:focusout":_.nH(function(B){var Q;(Q=O.onFocusout)==null||Q.call(O,B)})},O.children)},"j");var Be5={duration:1E3,easing:"ease",fill:"forwards"};G8I.componentType=uF;var vXf={duration:1E3,easing:"ease",fill:"forwards"},Vd$=_.a(function(O){var m=_.Al("animated-rolling-character"),G=void 0,B=function(){var R,x;return Qs((R=O.character)==null?void 0:R.call(O))||Qs((x=O.previousCharacter)==null?void 0:x.call(O))},Q=_.K(_.Wf(0,void 0,"Dgrnr")),H=Q.next().value,M=Q.next().value;
_.EZ(function(){if(window.ResizeObserver&&_.V("web_fix_rolling_numbers_zoom_safari")){var R=new ResizeObserver(function(){var x,t,W=Math.round(((t=(x=m.value.querySelector("div"))==null?void 0:x.getBoundingClientRect().height)!=null?t:0)*100)/100;W&&M(W)});
R.observe(m.value);_.LS(function(){R.disconnect()})}});
_.ER(function(){var R=_.V("web_fix_rolling_numbers_zoom_safari")?H:O.marginMultiplier;if(R()){var x;(x=G)==null||x.cancel();if(B()){var t;x=((t=O.previousCharacter)==null?0:t.call(O))?Number(O.previousCharacter())+10:O.rollUp()?0:30;var W;if((W=O.shouldAnimate)==null||!W.call(O)){var Z,z;x-=HAN((Z=O.character)==null?void 0:Z.call(O),(z=O.previousCharacter)==null?void 0:z.call(O),O.rollUp(),x)}}else{x=O.rollUp()?0:2;var J;(J=O.shouldAnimate)!=null&&J.call(O)||(t=x,W=O.rollUp()?-1:1,x=t-W)}m.value.style.marginTop=
"-"+x*R()+"px";var n;if((n=O.shouldAnimate)==null?0:n.call(O)){var I,S;G=K4z(m.value,(I=O.character)==null?void 0:I.call(O),(S=O.previousCharacter)==null?void 0:S.call(O),O.rollUp(),x,B(),R())}else{var L;m.value.style.display=((L=O.character)==null?0:L.call(O))?"":"none"}}},"jKjMhe");
return _.q("animated-rolling-character",{el:m,class:"animatedRollingCharacterHost"},_.q(_.U,{cond:B,then:function(){return _.q(zGs,null)},
else:function(){return _.q(Jis,{character:O.character})}}))},"k");
Vd$.idomCompat=!0;var $ge=_.V("web_enable_sink_animated_rolling_character_and_number")?Vd$:G8I,b6s=_.V("web_enable_sink_animated_rolling_character_and_number")?Vd$:QNe(G8I),zGs=_.a(function(){for(var O=[],m=1;m<30;m++)O.push(_.q("div",null,m%10));return _.q(_.Mr,null,_.q("div",null,"\u00a0"),O,_.q("div",null,"\u00a0"))},"l"),Jis=_.a(function(O){var m=O.character;
return _.q(_.Mr,null,_.q("div",null,"\u00a0"),_.q(_.U,{cond:function(){return!(m==null?0:m())||_.Re(m==null?void 0:m())},
then:function(){return _.q("div",null,"\u00a0")},
else:function(){return _.q("div",null,m)}}),_.q("div",null,"\u00a0"))},"m");MDf.componentType=uF;var nDu=_.a(function(O){var m=void 0,G=void 0,B=function(){var H;return((H=O.fontSizeMultiplier)==null?0:H.call(O))?O.heightPx()*O.fontSizeMultiplier():O.heightPx()},Q=_.bF(function(){if(!O.numberText())return[];
var H,M,R=((H=O.forceRollUp)==null?void 0:H.call(O))||!G||!((M=O.numberValue)==null?0:M.call(O))||G<O.numberValue(),x,t=O.numberText();H=B();M=!((x=O.shouldAnimate)==null||!x.call(O));x=[];var W=0,Z=0,z=(m?m.replace(/\D/g,"").length:0)-(t?t.replace(/\D/g,"").length:0),J=m?m.split(/(\d)/).filter(Boolean):[];for(t=t.split(/(\d)/).filter(Boolean);z<0;){var n=t[Z];x.push({character:n,rollUp:R,marginMultiplier:H,shouldAnimate:M});Z++;Qs(n)&&z++}for(;W<z;)n=J[W],x.push({previousCharacter:n,rollUp:R,marginMultiplier:H,
shouldAnimate:M}),W++,Qs(n)||z++;for(;Z<t.length;)z=t[Z],n=J[W],Qs(z)===Qs(n)?(Z++,W++):Qs(z)?(W++,z=void 0):Qs(n)&&(Z++,n=void 0),x.push({character:z,previousCharacter:n,rollUp:R,marginMultiplier:H,shouldAnimate:M});m=O.numberText();var I;G=(I=O.numberValue)==null?void 0:I.call(O);return x},void 0,"kWiBv");
return _.q("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return O.numberText()?["height: "+B()+"px;","line-height: "+O.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.q(_.gi,{each:Q,keyBy:"INDEX"},function(H){return _.q(b6s,{character:function(){return H().character},
previousCharacter:function(){return H().previousCharacter},
marginMultiplier:function(){return H().marginMultiplier},
rollUp:function(){return H().rollUp},
shouldAnimate:function(){return H().shouldAnimate}})}))},"n");
nDu.idomCompat=!0;_.XUU=_.V("web_enable_sink_animated_rolling_character_and_number")?nDu:QNe(MDf);var fT$=function(O,m){this.fillAnimation=new Animation(xgM(O),document.timeline);this.strokeAnimation=new Animation(qnz(m),document.timeline)};
fT$.prototype.play=function(){var O,m;(m=(O=this.fillAnimation).play)==null||m.call(O);var G,B;(B=(G=this.strokeAnimation).play)==null||B.call(G)};
fT$.prototype.cancel=function(){var O,m;(m=(O=this.fillAnimation).cancel)==null||m.call(O);var G,B;(B=(G=this.strokeAnimation).cancel)==null||B.call(G)};_.S1=_.a(function(O){var m=O.model;var G=O.pointerDownEvent;var B=O.pointerUpEvent;var Q=O.pointerLeaveEvent;var H=O.hovered;O=_.Al("yt-touch-feedback-shape");var M=_.Al("div"),R=_.Al("div"),x=_.K(_.fH(function(){return(B==null?0:B())||(Q==null?0:Q())?!1:!(G==null||!G())||!1})),t=x.next().value,W=x.next().value,Z=void 0,z=function(){!Z&&R.value&&M.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(Z=new fT$(R.value,M.value));
var C;(C=Z)==null||C.play()},J=function(){var C;
(C=Z)==null||C.cancel()},n=function(){var C;
(C=Z)==null||C.cancel()};
_.ER(function(){(B==null?0:B())&&z()},"bg756c");
_.ER(function(){(G==null?0:G())&&J()},"QAes8c");
_.ER(function(){(Q==null?0:Q())&&n()},"YaFbrc");
x=_.nH(function(){z();W(!1)});
var I=_.nH(function(){J();W(!0)}),S=_.nH(function(){n();
W(!1)});
_.LS(function(){if(Z){var C;(C=Z)==null||C.cancel();Z=void 0}});
var L={};t=_.bE("yt-spec-touch-feedback-shape",function(){return UgO(m().color)},function(){return tD6(m().thumbnailSize,!!m().isExtended)},(L["yt-spec-touch-feedback-shape--focused"]=function(){return!!m().focused&&!m().disabled},L["yt-spec-touch-feedback-shape--circular"]=function(){return!!m().circular},L["yt-spec-touch-feedback-shape--down"]=t,L["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!m().triggerEvents},L["yt-spec-touch-feedback-shape--hovered"]=function(){return H==
null?void 0:H()},L));
return _.q("yt-touch-feedback-shape",{el:O,class:t,style:_.hH({"margin-top":function(){return m().customTopExtend?"-"+m().customTopExtend+"px":void 0}}),
"on:mousedown":I,"on:mouseup":x,"on:pointerleave":S,"on:touchstart":I,"on:touchend":x,"aria-hidden":!0},_.q(_.U,{cond:function(){return!!m().hoverEffect},
then:function(){return _.q("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.hH({"border-radius":function(){return m().borderRadius},
background:function(){var C;if(C=m().hoverEffect){for(var P=[],w=_.K((C==null?void 0:C.lightingTechniques)||[]),d=w.next();!d.done;d=w.next())switch(d.value){case 2:var D=d=void 0;P.push("linear-gradient(135deg, "+((d=C)==null?void 0:(D=d.palette)==null?void 0:D.keyLight)+",transparent)")}var OS,rN;P.push((OS=m().hoverEffect)==null?void 0:(rN=OS.palette)==null?void 0:rN.background);C=P.join(", ")}else C=void 0;return C}})})}}),_.q("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.hH({"border-radius":function(){return m().borderRadius},
"border-color":function(){var C,P;return(C=m().touchEffect)==null?void 0:(P=C.palette)==null?void 0:P.background}}),
el:M}),_.q("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.hH({"border-radius":function(){return m().borderRadius},
"background-color":function(){var C,P;return(C=m().touchEffect)==null?void 0:(P=C.palette)==null?void 0:P.background}}),
el:R}))},"o");
_.S1.idomCompat=!0;var hG3={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 EX=_.zY();EX=EX.toLowerCase();if(_.is(EX,"android")){var T0o=EX.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);T0o&&parseFloat(T0o[1])<100||EX.match("("+Object.keys(hG3).join("|")+")")};var gD2=_.a(function(O){return _.q(_.U,{cond:O.aTagConfig,then:function(m){return _.q(_.p3,{aTagConfig:m,disabled:O.disabled,className:O.className,style:O.style,title:O.title,ariaLabel:O.ariaLabel,ariaCurrent:function(){var G,B;return((G=O.toggleable)==null?void 0:G.call(O))&&((B=O.toggled)==null?void 0:B.call(O))},
ref:O.ref},O.children)},
else:function(){return _.q("button",{el:_.Mi(O.ref),"on:click":_.nH(function(m){var G;return(G=O.onClick)==null?void 0:G.call(O,m)}),
class:O.className,title:O.title,style:O.style,disabled:O.disabled,"aria-pressed":function(){var m,G;return((m=O.toggleable)==null?0:m.call(O))?!((G=O.toggled)==null||!G.call(O)):void 0},
"aria-label":O.ariaLabel,"aria-disabled":O.visiblyDisabled,"aria-hidden":O.ariaHidden,tabindex:O.tabIndex},O.children)}})},"p"),jf3=_.a(function(O){var m=O.data;
var G=O.hasIconLeading;var B=O.hasIconLeadingTrailing;var Q=O.hasIconTrailing;var H=O.iconButton;var M=O.iconClassName;var R=O.secondaryIconClassName;var x=O.icon;var t=O.secondaryIcon;var W=O.textContentClassName;return _.q(L3,{className:"",style:"display: inherit; justify-content: center"},_.q(_.U,{debugInstance:"V4z1Uc",cond:function(){return x&&(G()||B()||(H==null?void 0:H()))},
then:function(){return _.q(L3,null,_.q("div",{class:M,"aria-hidden":"true"},x==null?void 0:x()))}}),_.q(_.U,{debugInstance:"ok3btb",
cond:function(){return(m().buttonText||m().animatedTextProps||m().formattedButtonText)&&!(H==null?0:H())},
then:function(){return _.q(L3,null,_.q(uBm,{className:W,iconPosition:function(){return m().iconPosition},
text:function(){return m().buttonText},
oneOffCustomTextWrap:function(){return m().oneOffCustomTextWrap},
formattedButtonText:function(){return m().formattedButtonText},
animatedTextProps:function(){return m().animatedTextProps}}))}}),_.q(_.U,{debugInstance:"DO5Rz",
cond:Q,then:function(){return _.q(L3,null,_.q("div",{class:M},x==null?void 0:x()))}}),_.q(_.U,{debugInstance:"bnojSc",
cond:B,then:function(){return _.q(L3,null,_.q("div",{class:R},t==null?void 0:t()))}}),_.q(_.U,{debugInstance:"HN3kad",
cond:function(){return!m().disabled&&!0},
then:function(){return _.q(_.S1,{model:function(){var Z=m();return{color:Z.style==="overlay-dark"?4:Z.style==="overlay"?Z.type==="filled"?4:3:Z.type==="filled"||Z.style==="call-to-action-inverse"||Z.style==="mono-inverse"?2:1}}})}}))},"q"),uBm=_.a(function(O){var m=function(){var G,B;
return((G=O.iconPosition)==null?void 0:G.call(O))==="icon-with-label"||((B=O.oneOffCustomTextWrap)==null?void 0:B.call(O))};
return _.q("div",{class:O.className,"aria-hidden":function(){var G,B,Q;return((G=O.ariaHidden)==null?void 0:G.call(O))&&(!((B=O.animatedTextProps)==null||!B.call(O))||!((Q=O.formattedButtonText)==null||!Q.call(O)))}},_.q(_.I8,null,_.q(_.uz,{when:function(){var G;
return(G=O.animatedTextProps)==null?void 0:G.call(O)}},function(){return _.q(_.XUU,{numberText:function(){return O.animatedTextProps().numberText},
numberValue:function(){return O.animatedTextProps().numberValue},
heightPx:function(){return O.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return O.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return O.animatedTextProps().shouldAnimate},
forceRollUp:function(){return O.animatedTextProps().forceRollUp}})}),_.q(_.uz,{when:function(){var G;
return(G=O.formattedButtonText)==null?void 0:G.call(O)}},function(){return _.q(_.Jg,{text:function(){return Object.assign({},O.formattedButtonText(),{lineBreakMode:m()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":O.formattedButtonText().lineBreakMode,
alignment:m()?"TEXT_ALIGNMENT_CENTER":O.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!m()}})}),_.q(_.uz,{when:function(){var G,B;
return((G=O.iconPosition)==null?void 0:G.call(O))==="icon-with-label"&&((B=O.text)==null?void 0:B.call(O))}},function(){return _.q(_.Jg,{text:function(){return{content:O.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.q(_.jx,null,function(){return O.text})))},"r"),IT$=_.a(function(O){return _.q(_.U,{debugInstance:"kM7Sgc",
cond:O.hasLabel,then:function(){var m;return _.q("label",{class:O.className},O.children,(m=O.textContent)==null?void 0:m.call(O))},
else:function(){return O.children}})},"s"),L3=_.a(function(O){return O.children},"t");var pUu=_.a(function(O){var m=_.Mi(),G=_.K(_.Wf(void 0,void 0,"Ug77pc")),B=G.next().value,Q=G.next().value;G=_.K(_.Wf(void 0,void 0,"XGf7Zb"));var H=G.next().value,M=G.next().value;G=_.K(_.Wf(0,void 0,"Ygnx7b"));var R=G.next().value,x=G.next().value;G=_.nH(function(){switch(R()){case 1:x(2);break;case 3:var W,Z;(Z=(W=m.value).hidePopover)==null||Z.call(W);x(0);Q(void 0);M(void 0)}});
_.ER(function(){if(O.show()){var W;Q((W=O.children)==null?void 0:W.call(O));var Z;M((Z=O.location)==null?void 0:Z.call(O));switch(R()){case 0:var z,J;(J=(z=m.value).showPopover)==null||J.call(z);x(1);break;case 3:x(1);var n,I;(I=(n=m.value).hidePopover)==null||I.call(n);var S,L;(L=(S=m.value).showPopover)==null||L.call(S)}}else switch(R()){case 2:x(3);break;case 1:var C,P;(P=(C=m.value).hidePopover)==null||P.call(C);Q(void 0);M(void 0);x(0)}},"lOyibf");
_.Ln(function(){});
var t={};return _.q("yt-popover",{popover:"manual",el:m,style:_.hH({left:function(){var W;return(W=H())==null?void 0:W.left},
top:function(){var W;return(W=H())==null?void 0:W.top},
bottom:function(){var W;return(W=H())==null?void 0:W.bottom},
right:function(){var W;return(W=H())==null?void 0:W.right}}),
class:_.bE("ytPopoverComponentHost",O.classNames,(t.ytPopoverComponentHostClosing=function(){return R()===3},t.ytPopoverComponentHostSeeThrough=function(){var W;
return((W=O.seeThrough)==null?void 0:W.call(O))===!0},t)),
"on:animationend":G},B)},"u");var SGH={left:"0px",right:"auto",top:"0px",bottom:"auto"},EDu=function(){var O=this;this.registerTooltipElement=function(G){var B;O.tooltipElement=(B=G.querySelector("yt-popover"))!=null?B:void 0};
var m=_.K(_.Wf(void 0,void 0,"z4iHWd"));this.state=m.next().value;this.setState=m.next().value;m=_.K(_.Wf(void 0,void 0,"uKDcaf"));this.schedulerJobID=m.next().value;this.setSchedulerJobID=m.next().value},f6I=function(O,m){var G=uE,B=_.ln.addJob(function(){var Q=LKo(G,O,m);
G.setState({text:m.text,location:Q,anchor:O,offset:m.offset})},4,m.delay);
G.setSchedulerJobID(B)},hwS=function(){var O=uE,m=O.schedulerJobID();
m&&(_.ln.cancelJob(m),O.setSchedulerJobID(void 0));O.setState(void 0)};
EDu.prototype.notify=function(O,m){var G;((G=this.state())==null?void 0:G.anchor)===O&&(G=LKo(this,O,m),this.setState({text:m.text,location:G,anchor:O,offset:m.offset}))};
var LKo=function(O,m,G){var B=m.getBoundingClientRect();m=window.innerWidth;var Q=window.innerHeight,H=G.location,M=G.offset;G=G.text;if(O=O.tooltipElement){var R=getComputedStyle(O);O=R.font;var x=gg(R.lineHeight),t=gg(R.paddingLeft),W=gg(R.paddingRight),Z=gg(R.paddingTop);R=gg(R.paddingBottom);var z=document.createElement("canvas").getContext("2d");z.font=O;G={width:z.measureText(G).width+t+W,height:x+Z+R}}else G=void 0;O=G;if(!O)return SGH;G=O.width;O=O.height;t=M+O;Z=M+G;x=B.top>=t;t=Q-B.bottom>=
t;W=B.left>=Z;Z=m-B.right>=Z;R=H;switch(H){case "top":!x&&t&&(R="bottom");break;case "bottom":!t&&x&&(R="top");break;case "left":!W&&Z&&(R="right");break;case "right":!Z&&W&&(R="left")}switch(R){case "top":H=B.left+B.width/2-G/2;B=B.top-O-M;break;case "bottom":H=B.left+B.width/2-G/2;B=B.bottom+M;break;case "left":H=B.left-G-M;B=B.top+B.height/2-O/2;break;case "right":H=B.right+M;B=B.top+B.height/2-O/2;break;default:H=B.left+B.width/2-G/2,B=B.bottom+M}M=Object.assign({},SGH);H+G>m?(M.right="0px",M.left=
"auto"):(M.left=Math.round(Math.max(0,H)+window.scrollX)+"px",M.right="auto");B+O>Q?(M.bottom="0px",M.top="auto"):(M.top=Math.round(Math.max(0,B)+window.scrollY)+"px",M.bottom="auto");return M};var uE;uE=new EDu;_.CfH=_.a(function(){var O=_.bF(function(){var G;return(G=uE.state())==null?void 0:G.text},void 0,"jgLmfd"),m=_.bF(function(){var G;
return(G=uE.state())==null?void 0:G.location},void 0,"zV1Udb");
return _.q("yt-tooltip",{class:"ytTooltipContainerHost",el:_.Mi(uE.registerTooltipElement),"aria-hidden":"true"},_.q(pUu,{classNames:"ytTooltipContainerContent",location:m,show:function(){return!!O()},
seeThrough:!0},O))},"v");var Vlr=KS("stamper-context");_.C3=_.a(function(O){var m=O.data;var G=O.icon;var B=O.iconName;var Q=O.animateIcon;var H=O.secondaryIcon;var M=O.secondaryIconName;var R=O.focusedOverride;var x=O.clientOnlyWizTooltipsEnabled;gXr();var t=W4r(m),W=t.size,Z=t.style;O=t.disabled;var z=t.onTap,J=t.alignByText,n=t.aTagConfig,I=t.customColors,S=t.segmentedPosition,L=t.toggled,C=t.toggleable,P=t.accessibilityLabel,w=t.onToggle,d=t.iconPosition,D=t.oneOffCustomTextWrap,OS=t.disableTextEllipsis,rN=t.disableBackdropFilter,xO=t.tooltipText,
XI=t.ariaHidden,Vf=t.tabIndex,US=t.buttonText,CN=t.formattedButtonText,oe=t.animatedTextProps,K$=t.onClickRateLimitMs,n$=VD6(m,G,H,B,M,R,Q),qe=n$.type;G=n$.shouldFocus;B=n$.hasIconLeading;Q=n$.hasIconTrailing;var PM=n$.hasIconLeadingTrailing,ZH=n$.hasIconOnly;H=n$.hasIconOnly40;var U3=n$.hasIconWithLabel;M=n$.iconButton;var p$=n$.visiblyDisabled;R=n$.overrideSmallSizeIcon;t=n$.iconToRender;n$=n$.secondaryIconToRender;var uy=_.K(TeY(xO)).next().value,vb=function(x9){z==null||z(x9);C()&&(w==null||w(x9))},
vM=_.bF(function(){return K$==null?void 0:K$()},void 0,"wrF7V"),Gp=_.bF(function(){return vM()?ps8(vb,vM()):vb},void 0,"fG5dyf"),Vu={},Gu={};
return _.q(IT$,{className:_.bE("yt-spec-button-shape-with-label",(Vu["yt-spec-button-shape-with-label--is-overlay"]=function(){return Z()==="overlay"||Z()==="overlay-dark"},Vu)),
hasLabel:U3,textContent:function(){return _.q(uBm,{text:US,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:D,iconPosition:d,formattedButtonText:CN,animatedTextProps:oe})}},_.q(gD2,{aTagConfig:n,
className:_.bE("yt-spec-button-shape-next",function(){return bAe(qe())},function(){return p$()?void 0:nXe(Z())},function(){return X0N(W())},(Gu["yt-spec-button-shape-next--disabled"]=p$,Gu["yt-spec-button-shape-next--focused"]=G,Gu["yt-spec-button-shape-next--icon-trailing"]=Q,Gu["yt-spec-button-shape-next--icon-leading"]=B,Gu["yt-spec-button-shape-next--icon-leading-trailing"]=PM,Gu["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return PM()&&!(US()||CN())},Gu["yt-spec-button-shape-next--icon-button"]=
function(){return ZH()||U3()},Gu["yt-spec-button-shape-next--icon-only-default"]=H,Gu["yt-spec-button-shape-next--align-by-text"]=J,Gu["yt-spec-button-shape-next--segmented-start"]=function(){return S()==="start"},Gu["yt-spec-button-shape-next--segmented-end"]=function(){return S()==="end"},Gu["yt-spec-button-shape-next--override-small-size-icon"]=R,Gu["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=D,Gu["yt-spec-button-shape-next--disable-text-ellipsis"]=OS,Gu["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!rN()&&!_.V("web_disable_backdrop_filter")},Gu)),
style:function(){var x9=I();if(x9){var Am=x9.color;var Fc=x9.backgroundColor;x9=x9.borderColor;var O9="";Am&&(O9+="color: "+Am+";");Fc&&(O9+="background-color: "+Fc+";");x9&&(O9+="border-color: "+x9+";");Am={style:O9}}else Am={};return Am.style},
onClick:function(x9){Gp()(x9)},
disabled:O,ariaLabel:P,toggleable:C,toggled:L,title:function(){return(x==null?0:x())||!xO()?"":xO()},
visiblyDisabled:p$,ariaHidden:XI,tabIndex:Vf,ref:function(x9){(x==null?0:x())&&uy(x9)}},_.q(jf3,{data:m,
hasIconLeading:B,hasIconLeadingTrailing:PM,hasIconTrailing:Q,iconButton:M,icon:t,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:n$})))},"w");
_.C3.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.oF=_.a(function(O){var m=O.data;var G=O.className;var B=O.style;var Q=O.useOutlinedIcon;var H=O.buttonOverrides;var M=O.animatedTextProps;var R=O.onClick;var x=O.target;var t=_.Al("button-view-model",function(C){C.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var P=m().targetId;P&&_.z43(_.PD(),P,C);return function(){WDj(_.PD(),C)}}),W=function(){return m().iconName},Z,z=(Z=_.KR().resolve(_.v7(_.B6)))==null?void 0:Z(),J=function(){var C=m();
var P=H==null?void 0:H(),w=M==null?void 0:M(),d=x==null?void 0:x();if(C){var D=L4M(C.type);var OS=!!C.title||!!C.titleFormatted;var rN=!(!C.iconName&&!C.iconImage);OS=rN&&!OS?"icon-only":rN?C.iconTrailing||C.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;OS==="icon-only-40"&&(D="text");var xO;rN=(xO=P==null?void 0:P.state)!=null?xO:C1M(C.state);var XI,Vf=(XI=P==null?void 0:P.disabled)!=null?XI:C.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||C.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.V("web_button_vm_refactor_disabled")){var US;Vf=(US=P==null?void 0:P.disabled)!=null?US:rN==="disabled"}w=w&&w.numberText&&!isNaN(Number(w.numberValue))?w:void 0;XI=Object;US=XI.assign;xO=C.title;var CN=C.titleFormatted,oe=C.accessibilityText,K$=EXI(C.style),n$=oXI(C.buttonSize);d=Snf(C,t,Vf,R,d);Vf=Vf&&!C.onDisabledTap;var qe=I6M(C,t),PM=C.customFontColor,ZH=C.customBackgroundColor;var U3=C.customBorderColor;var p$=C.customDarkThemeFontColor,uy=C.customDarkThemeBackgroundColor,vb=C.customDarkThemeBorderColor;
PM=z&&p$?p$:PM;ZH=z&&uy?uy:ZH;U3=z&&vb?vb:U3;U3={color:PM?_.AV(PM):void 0,backgroundColor:ZH?_.AV(ZH):void 0,borderColor:U3?_.AV(U3):void 0};C=US.call(XI,{},{buttonText:xO,formattedButtonText:CN,animatedTextProps:w,accessibilityLabel:oe,style:K$,type:D,state:rN,size:n$,iconPosition:OS,onTap:d,disabled:Vf,aTagConfig:qe,customColors:U3,tooltipText:C.tooltip},P)}else C={style:"mono",type:"text",state:"active",size:"M"};C.focused=S();return C},n=function(){return zw6(J(),!!m().iconName)};
O=_.K(_.Wf(!1,void 0,"WVXhrd"));Z=O.next().value;var I=O.next().value,S=Z;O=_.nH(function(){var C=_.KR().resolve(_.v7(_.IF));C&&I(C.isKeyBoardInUse());return!1});
Z=_.nH(function(){I(!1);return!1});
_.ER(function(){var C,P=_.b(m==null?void 0:(C=m())==null?void 0:C.onVisible,_.wu);P&&_.DB(P,{disableClickTracking:!0})},"w0lGYc");
var L=_.V("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.q("button-view-model",{el:t,class:_.bE("ytSpecButtonViewModelHost",G),"on:focusin":O,"on:focusout":Z},_.q(_.U,{cond:function(){var C;return(m==null?0:(C=m())==null?0:C.iconImage)?{sources:[m().iconImage]}:void 0},
then:function(C){return _.q(_.C3,{data:J,icon:function(){return _.q(_.KH,{data:C,alt:"",targetWidth:n,targetHeight:n,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:L})},
else:function(){return _.q(_.C3,{data:J,icon:function(){return _.q(_.T$,{icon:W,active:function(){return(Q==null?0:Q())?!1:J().toggled},
animateIcon:function(){var C;return!!(B==null?0:(C=B())==null?0:C.animateIcon)},
size:n})},
clientOnlyWizTooltipsEnabled:L})}}))},"x");
_.oF.idomCompat={callbacks:{onClick:!0}};_.qi(_.a(function(O){return _.q("yt-button-view-model",{id:O.id,class:_.bE(O.scopingClassName,O.classes),icon:function(){var m;return(m=O.icon)==null?void 0:m.call(O)},
"dialog-dismiss":function(){var m;return((m=O.dialogDismiss)==null?0:m.call(O))?"":void 0}},_.q(_.oF,{data:function(){var m;
return(m=O.data)==null?void 0:m.call(O)},
className:function(){var m;return(m=O.className)==null?void 0:m.call(O)},
style:function(){var m;return(m=O.style)==null?void 0:m.call(O)},
useOutlinedIcon:function(){var m;return(m=O.useOutlinedIcon)==null?void 0:m.call(O)},
buttonOverrides:function(){var m;return(m=O.buttonOverrides)==null?void 0:m.call(O)},
animatedTextProps:function(){var m;return(m=O.animatedTextProps)==null?void 0:m.call(O)},
onClick:function(m){var G;return(G=O.onClick)==null?void 0:G.call(O,m)}}))},"y"),"yt-button-view-model",{props:{data:_.VZ,
className:_.VZ,style:_.VZ,useOutlinedIcon:_.VZ,buttonOverrides:_.VZ,animatedTextProps:_.VZ,onClick:_.RZ,scopingClassName:_.VZ,id:_.VZ,icon:_.VZ,dialogDismiss:_.VZ,classes:_.VZ,target:_.RZ}});_.qi(_.a(function(O){var m=O.data;var G=O.id;var B=O.className;var Q=O.iconName;var H=O.animateIcon;var M=O.secondaryIconName;O=_.K(_.Wf(!1,void 0,"TtJl8"));var R=O.next().value,x=O.next().value,t=function(){var Z=_.KR().resolve(_.v7(_.IF));Z&&x(Z.isKeyBoardInUse())},W=function(){x(!1)};
O=_.Al("yt-button-shape",function(Z){if(_.KR().resolve(_.v7(_.IF)))return Z.addEventListener("focusin",t),Z.addEventListener("focusout",W),function(){Z.removeEventListener("focusin",t);Z.removeEventListener("focusout",W)}});
return _.q("yt-button-shape",{el:O,id:G,class:B},_.q(_.U,{cond:m,then:function(){return _.q(_.C3,{data:m,iconName:Q,secondaryIconName:M,focusedOverride:R,animateIcon:H})}}))},"z"),"yt-button-shape",{props:{data:_.VZ,
id:_.VZ,className:_.VZ,iconName:_.VZ,animateIcon:_.VZ,secondaryIconName:_.VZ,clientOnlyWizTooltipsEnabled:_.VZ,disableUpgrade:_.VZ},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var lL=function(){var O=_.u.apply(this,arguments)||this;O.isGoalActive=!0;return O};
_.X(lL,_.u);lL.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
lL.prototype.progressBarChanged=function(){var O=_.ZO(this.hostElement).querySelector("#progress-bar-progress"),m,G,B,Q=(B=Number((m=this.creatorGoalState)==null?void 0:m.currentGoalCount)/Number((G=this.creatorGoalState)==null?void 0:G.totalGoalCount)*100)!=null?B:0,H;O.style.width=((H=Math.min(Q,100))!=null?H:0)+"%"};
lL.prototype.goalStateChanged=function(){var O;this.isGoalActive=((O=this.creatorGoalState)==null?void 0:O.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var m;O={"--yt-progress-bar-color":nlp((m=this.creatorGoalState)==null?void 0:m.progressBarColor)};_.n7(this.hostElement,O)};
lL.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.vr.Object.defineProperties(lL.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var O;return this.isGoalActive&&!((O=this.creatorGoalState)==null||!O.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.creatorGoalState)==null?0:O.endTimestampMs){var m;O=Number((m=this.creatorGoalState)==null?void 0:m.endTimestampMs)/1E3;return{seconds:String(O)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.creatorGoalState)==null?0:O.themedTargetImage){var m;O=_.b((m=this.creatorGoalState)==null?void 0:m.themedTargetImage,LTp);return this.isAppDarkTheme()?O==null?void 0:O.imageDark:O==null?void 0:O.imageLight}}}});
_.vr.Object.defineProperties(lL,{template:{configurable:!0,enumerable:!0,get:function(){return RGo()}}});
lL.prototype.goalStateChanged=lL.prototype.goalStateChanged;lL.prototype.progressBarChanged=lL.prototype.progressBarChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],lL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.RF),_.Y("design:type",Object)],lL.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],lL.prototype,"ytRendererBehavior",void 0);
_.c([_.g({selectorArgs:["data.creatorGoalEntityKey"],selector:function(O,m){return _.Vh(O.entities,"creatorGoalEntity",m)}}),
_.Y("design:type",Object)],lL.prototype,"creatorGoalState",void 0);_.c([_.g(),_.Y("design:type",Object)],lL.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],lL.prototype,"isGoalActive",void 0);_.c([_.T("creatorGoalState","isGoalActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],lL.prototype,"shouldShowCountdown",null);_.c([_.T("creatorGoalState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],lL.prototype,"endTimestamp",null);
_.c([_.T("creatorGoalState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],lL.prototype,"targetIconThemedImage",null);_.c([_.Tw("creatorGoalState.currentGoalCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lL.prototype,"progressBarChanged",null);_.c([_.Tw("creatorGoalState.creatorGoalState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lL.prototype,"goalStateChanged",null);
_.c([_.DO({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],lL);_.y(lL,"yt-creator-goal-progress-flow-view-model",function(){return RGo()},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var oDp;var lTu;var aF=function(){return _.u.apply(this,arguments)||this};
_.X(aF,_.u);aF.prototype.attached=function(){var O,m,G;if(this==null?0:(O=this.data)==null?0:(m=O.pdgPurchasedBumperLoggingDirectives)==null?0:(G=m.loggingDirectives)==null?0:G.trackingParams){var B,Q,H;k8p(this==null?void 0:(B=this.data)==null?void 0:(Q=B.pdgPurchasedBumperLoggingDirectives)==null?void 0:(H=Q.loggingDirectives)==null?void 0:H.trackingParams)}};
aF.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],aF.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],aF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],aF.prototype,"data",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],aF);
_.y(aF,"yt-live-chat-item-bumper-view-model",function(){if(lTu===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;oDp===void 0&&(oDp=document.createElement("template"));var B=oDp;G.call(m,B.content.cloneNode(!0),O.content.firstChild);lTu=O}O=lTu;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var aT9;var kI$;_.Qp=function(O,m){this.data=O;this.actions=m;this.data=O;this.actions=m};
_.Ni=function(){};_.ko={};_.ko.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(O,m){y7z(this.hostElement,O,m)},
getNavigationEndpointPopupAction:function(O){return c7N(O,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(O,m){Yn6(this.hostElement,O,m,this.openPopupConfig)}};var O86=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.yZ={};
_.yZ.YtEndpointBehavior=[_.ko.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.kB("openPopupConfig");(this.useClickHandler=_.yE("useClickHandler",!1))?this.hostElement.addEventListener("click",XV(this,this.onEndpointClick_)):(l_(this.hostElement,"tap",XV(this,this.onEndpointTap_)),l_(this.hostElement,"touchend",XV(this,this.onEndpointTouchEnd_)));l_(this.hostElement,"touchstart",XV(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
XV(this,this.onEndpointTapStart_))},
onEndpointClick_:function(O){ewN(this.hostElement,O,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(O){var m=this.hostElement,G=this.openPopupConfig,B=this.disableCommandHandlerOverride;B=B===void 0?!1:B;var Q=dgS(O);if(Q){Q.href&&Gw(Q.href);var H=O.detail;var M=H.sourceEvent;H=H.preventer;M=M.button!==void 0?M.button===0&&!IZ(M):H?!IZ(H):!0;Q.data&&M&&w0Y(m,Q,O,G,B)}},
onEndpointTouchEnd_:function(O){IZ(O)||dgS(O)&&O.preventDefault()},
onEndpointTapStart_:function(O){F4Y(O)}}];_.cg={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(O){for(var m=_.sJ.getInstance(),G=_.K(Object.keys(O)),B=G.next();!B.done;B=G.next()){var Q=B.value;B=O[Q];if(this&&this[B]){var H=m.actionRoutingMap.get(Q);H||(H=new Map,m.actionRoutingMap.set(Q,H));m.registerActionHandler(this,Q,this[B].bind(this),H)}else Q=Error("ld"),Q.params=B,_.di(Q)}},
unregisterActionMap:function(O){_.PH(_.sJ.getInstance(),O,this)}}]};var Ef=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_"+(_.V("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.V("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.V("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.V("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:_.V("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:_.V("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var SV;var LH=new Map;var qNM=window.matchMedia("(forced-colors: active)").matches;var yi$;var cio;var YG9=new _.Us("LOTTIE_LOADER_TOKEN");_.Yo=_.a(function(O){var m=O.data;var G=O.className;var B=O.animationName;var Q=O.animationRef;var H=O.elRefForInterop;var M=_.GX("lottie-component"),R;_.LS(function(){var t;return void((t=R)==null?void 0:t.destroy())});
var x;_.ER(function(){var t=_.o9(B);if(t!==x){x=t;var W=Object.assign({},{animationName:t,animationRef:_.o9(Q)},_.o9(m));try{_.KR().resolve(YG9)().then(function(J){var n;(n=R)==null||n.destroy();var I,S;n=(S=H==null?void 0:(I=H())==null?void 0:I.value)!=null?S:M.value;I=W.animationRef;S=W.listeners;J=J.loadAnimation(Object.assign({},{container:n},W.animationConfig));I&&(I.lottieEl=J);if(S)for(n=_.K(Object.entries(S)),I=n.next();!I.done;I=n.next())S=_.K(I.value),I=S.next().value,(S=S.next().value)&&
J.addEventListener(I,S);R=J})}catch(J){t=J;
var Z="LottieComponent error.";t.message&&(Z+=" Original description: "+t.message);_.kt(t,Z);_.ay(t);var z;((z=W.listeners)==null?0:z.error)&&W.listeners.error(t)}}},"nrJISd");
return _.q(sqr,{cond:function(){return!(H==null?0:H())},
then:function(){return _.q("lottie-component",{class:_.bE("ytLottieComponentHost",G),el:M})}})},"A");_.qi(_.a(function(O){return _.q("ytd-lottie-player",{id:O.id,hidden:O.hidden,class:O.className,"aria-label":O.ariaLabel,style:"display: block;"},_.q(_.Yo,{data:O.data,animationName:function(){var m;return((m=O.data().animationConfig)==null?void 0:m.name)||""},
animationRef:function(){return O.data().animationRef}}))},"B"),"ytd-lottie-player",{props:{data:_.VZ,
id:_.VZ,hidden:_.VZ,className:_.VZ,ariaLabel:_.VZ}});var dy=function(){var O=_.u.apply(this,arguments)||this;O.animationRef={};O.delhiIconsEnabled=_.V("enable_web_delhi_icons");return O};
_.X(dy,_.u);_.v=dy.prototype;
_.v.handlePropertyChange=function(){var O=this.animatedIcon,m=this.active,G=this.isDarkTheme;if(O){var B=this.previousActive!==m;this.previousActive=m;this.animationRef.lottieEl?B&&this.toggleAnimation(m,O.totalFrames):m?this.initializeAnimationAsToggled(O.lottiePlayerProps,O.totalFrames):this.initializeAnimationAsUntoggled(O.lottiePlayerProps);O.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=O.type;this.lottiePlayerProps=this.computeLottiePlayerProps(O,G)}};
_.v.computeLottiePlayerProps=function(O,m){var G=this.deepCloneLottiePlayerProps(O);m?(m=O.nameDarkTheme,O=O.pathDarkTheme):(m=O.name,O=O.path);G.animationConfig.name=m;(m=LH.get(O))?G.animationConfig.animationData=m:G.animationConfig.path=O;return G};
_.v.initializeAnimationAsToggled=function(O,m){O.animationConfig.initialSegment=[m-1,m]};
_.v.initializeAnimationAsUntoggled=function(O){O.animationConfig.initialSegment=void 0};
_.v.toggleAnimation=function(O,m){if(O){var G;(G=this.animationRef.lottieEl)==null||G.playSegments([0,m],!0)}else{var B;(B=this.animationRef.lottieEl)==null||B.playSegments([0,1],!0)}};
_.v.deepCloneLottiePlayerProps=function(O){var m=Object.assign({},O.lottiePlayerProps.animationConfig);O=Object.assign({},O.lottiePlayerProps);O.animationConfig=m;return O};
dy.prototype.handlePropertyChange=dy.prototype.handlePropertyChange;_.c([_.g(),_.Y("design:type",Object)],dy.prototype,"animatedIcon",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],dy.prototype,"active",void 0);_.c([_.g(),_.Y("design:type",Boolean)],dy.prototype,"isDarkTheme",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],dy.prototype,"animatedIconType",void 0);_.c([_.g(),_.Y("design:type",Boolean)],dy.prototype,"previousActive",void 0);
_.c([_.g(),_.Y("design:type",Object)],dy.prototype,"lottiePlayerProps",void 0);_.c([_.g(),_.Y("design:type",Object)],dy.prototype,"animationRef",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],dy.prototype,"delhiIconsEnabled",void 0);_.c([_.Tw("animatedIcon","active","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dy.prototype,"handlePropertyChange",null);_.c([_.DO({is:"yt-animated-icon",disableElementRegistration:!0})],dy);
_.y(dy,"yt-animated-icon",function(){if(cio===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;yi$===void 0&&(yi$=document.createElement("template"));var B=yi$;G.call(m,B.content.cloneNode(!0),O.content.firstChild);cio=O}O=cio;return O},{mode:2});var d9$;var wU_;var JrS=_.a(function(O){var m=_.GX("span"),G=Cn(function(){return{value:null,cancelled:!1}});
_.LS(function(){G.cancelled=!0});
var B=_.bF(O.data,{equals:function(Q,H){return Q.iconName===H.iconName&&Q.iconStyle===H.iconStyle&&Q.iconSize===H.iconSize&&Q.iconSetName===H.iconSetName&&Q.iconSelected===H.iconSelected}},"AoOoyf");
_.ER(function(){var Q,H=(Q=O.options)==null?void 0:Q.call(O);zdr(m,G,B(),H)},"Tie9e");
return _.q("span",{class:"yt-icon-shape",el:m})},"C");
JrS.idomCompat=!0;var zUI=["youtube_fill","youtube_outline"];var eG2=new _.YL({type:"iconset",value:void 0}),wy=function(){var O=_.u.apply(this,arguments)||this;O.isDarkTheme=document.documentElement.hasAttribute("dark");O.iconName="";O.iconsetName="yt-icons";O.iconset=null;O.missingIconSet=!1;O.iconType=null;O.iconShapeDataSignal=_.Wf(void 0,void 0,"b0v7Ac");O.renderingOptionsSignal=_.Wf({iconWidth:"100%",iconHeight:"100%",iconFilter:O.iconFilter},void 0,"Ls6l3e");O.wizHasRendered=!1;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.X(wy,_.u);wy.prototype.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&(this.isDarkTheme=O)};
wy.prototype.handlePropertyChange=function(){var O=this,m,G,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L;return _.r(function(C){switch(C.nextAddress){case 1:if(m=!O.icon&&!O.iconName||!O.isAttached)return C.return();G=O;B=G.icon;Q=G.size;H=G.defaultToFilled;M=G.active;R=G.targetContainer;O.toggleContainerClass(R);_.V("kevlar_use_wil_icons")&&B&&(x=NQz(B),O.iconType=x.length?x[1]:null);if(B){C.jumpTo(2);break}O.iconsetName="";O.iconName="";return C.yield(O.renderIcon(R,B),3);case 3:return C.return();case 2:t=D93(B);
W=NQz(t);W.length&&(O.iconsetName=W[0],O.iconName=W[1]);if(!_.V("kevlar_use_wil_icons")){C.jumpTo(4);break}Z=wy;z=sf9;J=O.iconType;n=O.active;I=O.defaultToFilled;S=O.size;L=O.iconsetName;return C.yield(N0U(),6);case 6:return C.yield(z.call(Z,J,n,I,S,L,C.yieldResult),5);case 5:O.iconShapeData=C.yieldResult;case 4:if(O.shouldRenderIconShape(R)){C.jumpTo(7);break}return C.yield(O.determineIconSet(t,M,H,Q,R),7);case 7:return C.yield(O.renderIcon(R,B),0)}})};
wy.prototype.toggleContainerClass=function(O){O?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var D93=function(O){return!_.V("default_to_innertube_icon")||O.indexOf(":")>0?O:_.bK(O)};
_.v=wy.prototype;_.v.determineIconSet=function(O,m,G,B){var Q=this;return _.r(function(H){return H.nextAddress==1?_.V("kevlar_system_icons")||_.kB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.kB("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?H.yield(Q.switchToYtSysIconset(O,m,G,B),3):H.jumpTo(2):H.nextAddress!=2?H.return():H.yield(Q.useYtSysIconsetForMissingIcons(O,m,G,B),0)})};
_.v.switchToYtSysIconset=function(O,m,G,B){var Q=this,H,M,R,x,t,W,Z;return _.r(function(z){switch(z.nextAddress){case 1:if(!O||Q.iconsetName!=="yt-icons"&&Q.iconsetName!=="yt-sys-icons"){z.jumpTo(0);break}H=NQz(O);M=H[1];M=_.vlN(M);_.V("enable_polymer_icons_replace_underscores_dash")&&M.includes("_filled")&&(M=M.replace(/_filled/g,"-filled"));return z.yield(Va(M,!0),3);case 3:return R=z.yieldResult,z.yield(Va(M,!1),4);case 4:if((x=z.yieldResult)||m&&R)Q.iconsetName="yt-sys-icons";Q.iconName=Q.getIconName(M,
m,G,x,R);if(B===24){z.jumpTo(0);break}t="yt-sys-icons"+B+":"+Q.iconName;return z.yield(Va(t,!1,!0),6);case 6:return W=z.yieldResult,z.yield(Va(t,!0,!0),7);case 7:Z=z.yieldResult;Q.iconName=Q.getIconName(M,m,G,W,Z);if(!m&&W||m&&Z)Q.iconsetName="yt-sys-icons"+B;_.ju(z)}})};
_.v.getIconName=function(O,m,G,B,Q){O.includes("-filled")&&(O=O.replace("-filled",""));return Q&&(m||G)?O+"-filled":O};
_.v.useYtSysIconsetForMissingIcons=function(O,m,G,B){var Q=this,H,M;return _.r(function(R){if(R.nextAddress==1)return Q.iconsetName!=="yt-icons"?R.jumpTo(0):R.yield(Va(Q.iconName,!1,!1,!0),3);if(R.nextAddress!=4)return H=R.yieldResult,R.yield(Va(Q.iconName,!1),4);M=R.yieldResult;if(H||!M)return R.jumpTo(0);Q.iconsetName="yt-sys-icons";return R.yield(Q.switchToYtSysIconset(O,m,G,B),0)})};
_.v.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var N0U=function(){return _.r(function(O){try{return O.return(_.KR().resolve(_.nm))}catch(m){return O.return(new Promise(function(G){_.xA().parkOrScheduleJob(function(){G(_.KR().resolve(_.nm))},2,"ci")}))}})},sf9=function(O,m,G,B,Q,H){B=B===void 0?24:B;
if(O){O=O.toLowerCase();var M=O.endsWith("_filled")||O.endsWith("-filled");m={iconName:O,iconStyle:(m===void 0?0:m)||(G===void 0?0:G)||M?"youtube_fill":"youtube_outline",iconSize:B,iconSetName:Q===void 0?"yt-icons":Q};G=!!H.resolveIcon(m);G||(m.iconSize=void 0,G=!!H.resolveIcon(m));!G&&M&&(m.iconName=O.substring(0,O.length-7),m.iconSize=B,G=!!H.resolveIcon(m),G||(m.iconSize=void 0,G=!!H.resolveIcon(m)));G||(m.iconStyle=void 0,G=!!H.resolveIcon(m));G||_.ay(new _.j9("Icon not supported",{iconName:m.iconName,
iconStyle:m.iconStyle,iconSize:m.iconSize,iconType:O}));return G?m:void 0}};
_.v=wy.prototype;_.v.shouldRenderIconShape=function(O){if(!_.V("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;O=this.getContainer(O);return!UnI(O,this.icon)};
_.v.renderIcon=function(O,m){var G=this,B,Q,H,M,R,x,t,W;return _.r(function(Z){switch(Z.nextAddress){case 1:if(m&&G.icon!==m)return Z.return();B=G.getContainer(O);Q=UnI(B,G.icon);if(G.shouldRenderIconShape(O)&&G.iconType)return G.applyIconShape(Q,B),Z.return();G.removeIconShape();if(!B)return Z.return();G.iconName===""&&G.iconset&&B&&(G.removeStaticIcon(G.iconset,B),Q&&G.removeAnimatedIcon(B));if(G.iconName===""&&G.iconset||!G.iconsetName||!eG2)return Z.return();G.iconset=eG2.byKey(G.iconsetName);
if(!G.iconset)return G.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.f7(G,G.onIconsetAdded)),Z.return();G.missingIconSet&&(G.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.f7(G,G.onIconsetAdded)));M=(H=Q||G.isAnimatedIcon?i8r(G.icon):void 0)&&!H.lazyLoad;x=H&&((R=H)==null?void 0:R.lazyLoad)&&(H.lottiePlayerProps.animationConfig.animationData?!0:LH.get(G.isDarkTheme?H.pathDarkTheme:H.path)?!0:!1);if(M||x)return G.applyAnimatedIcon(B,H,G.iconset),Z.return();if(x||
(t=H)==null||!t.lazyLoad){Z.jumpTo(2);break}W=W6N(H,G.isDarkTheme);G.applyStaticIcon(G.iconset,B,G.iconName,O,Q);return Z.yield(W,3);case 3:return Z.yield(G.renderIcon(G.targetContainer,G.icon),4);case 4:return Z.return();case 2:G.applyStaticIcon(G.iconset,B,G.iconName,O,Q),_.ju(Z)}})};
_.v.getContainer=function(O){var m,G=(m=Z5e(this.hostElement))==null?void 0:m.host;m=!!G&&!!G.polymerController;if(!O||m)return O?this.getTargetContainer(O,G):this.hostElement};
_.v.getTargetContainer=function(O,m){var G=_.ZO(m).querySelector("#"+O);G||(O=new _.j9("yt-icon container missing",m.is,O),_.oy(O));return G};
_.v.applyStaticIcon=function(O,m,G,B,Q){Q&&this.removeAnimatedIcon(m);this.removeIconShape();Q=Q&&!!this.iconType&&!!this.iconShapeData&&_.V("kevlar_use_wil_icons");try{Q?this.applyIconShape(!1,m):O.applyIcon(m,G)}catch(H){this.handleError(H,B,m)}};
_.v.applyIconShape=function(O,m){this.iconset&&m&&(this.removeStaticIcon(this.iconset,m),O&&this.removeAnimatedIcon(m));O={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var G=_.K(this.iconShapeDataSignal);m=G.next().value;G=G.next().value;var B=_.K(this.renderingOptionsSignal),Q=B.next().value;B=B.next().value;G(this.iconShapeData);B(O);if(!this.wizHasRendered)for(this.wizHasRendered=!0,O=_.K(V4p(m,Q)).next().value;O.firstChild;)_.ZO(this.hostElement).appendChild(O.firstChild)};
_.v.removeIconShape=function(){if(_.V("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.v.removeStaticIcon=function(O,m){O.removeIcon(m)};
_.v.applyAnimatedIcon=function(O,m,G){this.removeStaticIcon(G,O);this.removeIconShape();var B;G=this.animatedIconElement&&((B=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:B.type)===m.type;if(this.animatedIconElement&&G){this.animatedIconElement.polymerController.animatedIcon=m;var Q;((Q=this.animatedIconElement)==null?void 0:Q.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(O),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=m,this.animatedIconElement.polymerController.active=this.active,_.V("delhi_modern_web_player_icons")?(m=xnf(O,this.icon)&&O.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=m?m.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.V("kevlar_use_wil_icons")?
O.insertBefore(this.animatedIconElement,O.childNodes[0]):(O=_.ZO(O),O.insertBefore(this.animatedIconElement,O.childNodes[0]))};
_.v.removeAnimatedIcon=function(O){_.V("kevlar_use_wil_icons")?this.animatedIconElement&&O.contains(this.animatedIconElement)&&O.removeChild(this.animatedIconElement):(O=_.ZO(O),this.animatedIconElement&&O.contains(this.animatedIconElement)&&O.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.v.handleError=function(O,m,G){_.kt(O,this.iconName,m,G);m=UnI(G,this.icon);var B=!1;window.location.href.includes("JpymaW6Lh2w")?B=!0:G._svgIcon&&(G=(G=G._svgIcon.parentNode)?G.tagName:"unknown",_.kt(O,G),G==="YT-ICON"&&O.name==="NotFoundError"?B=!0:O.name==="NotFoundError"&&m&&(B=!0));B?_.ay(O):_.oy(O)};
_.vr.Object.defineProperties(wy,{template:{configurable:!0,enumerable:!0,get:function(){if(wU_===void 0){var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;
d9$===void 0&&(d9$=document.createElement("template"));var B=d9$;G.call(m,B.content.cloneNode(!0),O.content.firstChild);wU_=O}O=wU_;return O}}});
wy.prototype.handlePropertyChange=wy.prototype.handlePropertyChange;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],wy.prototype,"actionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",String)],wy.prototype,"icon",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],wy.prototype,"active",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],wy.prototype,"defaultToFilled",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],wy.prototype,"isAnimatedIcon",void 0);
_.c([_.g({value:24}),_.Y("design:type",Number)],wy.prototype,"size",void 0);_.c([_.g({value:""}),_.Y("design:type",String)],wy.prototype,"targetContainer",void 0);_.c([_.g(),_.Y("design:type",Object)],wy.prototype,"animatedIconElement",void 0);_.c([_.g(),_.Y("design:type",Object)],wy.prototype,"isDarkTheme",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wy.prototype,"ariaHidden",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],wy.prototype,"ariaLabel",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],wy.prototype,"role",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],wy.prototype,"tabindex",void 0);_.c([_.g(),_.Y("design:type",String)],wy.prototype,"style",void 0);_.c([_.g(),_.Y("design:type",String)],wy.prototype,"iconFilter",void 0);
_.c([_.Tw("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],wy.prototype,"handlePropertyChange",null);_.c([_.DO({is:"yt-icon",noInjection:!0})],wy);var b8Y="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),XVp=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Pf9={};Pf9.YtPlaintextBehavior=[_.l8,{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(O){O.preventDefault();O=O.clipboardData.getData("text/plain");document.execCommand("insertText",!1,O)},
preventRichTextFormatting_:function(O){_.ZM&&(O=O.detail.keyboardEvent,O.stopImmediatePropagation(),O.preventDefault())}}];var FKj;var Ai8;var e1=function(){var O=_.u.apply(this,arguments)||this;O.ignoreShadyDom=!1;O.hasChange_=!1;O.hasSetTitle_=!1;O.useIOObserverForVisibilityLogging_=_.V("kevlar_use_vimio_behavior")&&_.kB("INNERTUBE_CLIENT_NAME")==="WEB";O.ytFormattedStringObserverHandlerKeys_=void 0;return O};
_.X(e1,_.u);_.v=e1.prototype;_.v.created=function(){this.useIOObserverForVisibilityLogging_=_.V("kevlar_use_vimio_behavior")&&_.kB("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.v.ready=function(){_.kB("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_()};
_.v.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.v.detached=function(){this.unobserveIOObservers_()};
_.v.clearContents_=function(){for(var O=this.getRoot(),m=O.lastChild;m&&m.tagName!=="STYLE";){try{O.removeChild(m)}catch(G){break}m=O.lastChild}};
_.v.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var O=_.K(this.ytFormattedStringObserverHandlerKeys_),m=O.next();!m.done;m=O.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(m.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.v.resetForAttributedString=function(){var O=this.getRoot();!O.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),O.appendChild(this.ytAttributedStringElementRef))};
_.v.resetForFormattedString=function(){var O=this.getRoot(),m=O.querySelector("yt-attributed-string");m&&(this.ytAttributedStringElementRef=O.removeChild(m))};
_.v.textChanged=function(){this.textChanged_(this.text)};
_.v.textChanged_=function(O){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!O||!O.runs&&!O.simpleText;if(_.V("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var m=this.hostElement.firstChild;m&&m.nodeName==="FONT";){var G=m;m=m.nextSibling;this.hostElement.removeChild(G)}m=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
G=O.simpleText;var B;!G&&((B=O.runs)==null?void 0:B.length)===1&&this.isSimpleString_(O.runs[0])&&(G=O.runs[0].text);G!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.kB("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(G!==void 0){try{m.textContent=G}catch(Q){}m.textContent||(this.isEmpty=!0)}else O=O.runs,G!==void 0&&(O=[{text:G}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),O&&this.updateText_(O),
m.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.v.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)};
_.v.computeAriaLabel_=function(O){return O};
_.v.computeEllipsisTruncateStyling=function(O,m){return O&&!m};
_.v.computeUseAttributedString=function(O){return _.V("web_replace_formatted_with_attributed_string")&&als(O)&&!this.disableAttributedString&&!this.enableContentEditable};
_.v.setNodeStyle_=function(O,m){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.V("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?m.removeAttribute("dir"):m.setAttribute("dir","auto");m.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");m.style.color="";var G=null;this.noStyles||(O.bold&&(m.classList.add("bold"),G="bold"),O.deemphasize&&(m.classList.add("deemphasize"),G="deemphasize"),O.italics&&m.classList.add("italic"),
O.strikethrough&&m.classList.add("strikethrough"),O.errorUnderline&&(m.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),O.bracket&&m.classList.add("bracket"),O.textColor&&(m.style.color=_.Fs(O.textColor)));G!==m.getAttribute("style-target")&&(G?m.setAttribute("style-target",G):m.removeAttribute("style-target"))};
_.v.setUpVisibilityLogging_=function(O,m){var G=this;this.setNodeTrackingParams_(O,m);var B;((B=m.data)==null?0:B.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(O=this.ytRendererBehavior.visibilityObserver.observe(m,function(Q){var H=G.ytRendererBehavior.getVisibilityLogger();H&&H.reportShown(Q)},this.ytRendererBehavior.visibilityOptionVisible_),m=this.ytRendererBehavior.visibilityObserver.observe(m,function(Q){var H=G.ytRendererBehavior.getVisibilityLogger();
H&&H.reportHidden(Q)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(O),this.ytFormattedStringObserverHandlerKeys_.push(m))};
_.v.setNodeTrackingParams_=function(O,m){m.data||(m.data={});if((O=O.loggingDirectives?O.loggingDirectives.trackingParams:null)||m.data.trackingParams)m.data.trackingParams=O};
_.v.computeHasLinkOnly_=function(O){return!(!O||O.length!==1||this.noEndpoints||!O[0].navigationEndpoint)};
_.v.getRoot=function(){var O=this.buildScopeDomOptions();return this.enableContentEditable?_.ZO(_.ZO(this.hostElement,O).querySelector("[contenteditable]")):_.ZO(this.hostElement,O)};
_.v.fixContenteditableScope=function(){var O=function(m){m&&(m.nodeType===1&&m.classList&&(m.classList.add("style-scope"),m.classList.add("yt-formatted-string")),m.childNodes&&m.childNodes.forEach(function(G){O(G)}))};
O(this.getRoot())};
_.v.updateText_=function(O){for(var m=O.length,G=this.getRoot(),B=G.firstChild;B&&B.nodeName==="STYLE";)B=B.nextSibling;for(var Q=0;Q<m&&B;){var H=O[Q],M=_.V("remove_cr_char")&&H.text?H.text.replace("\r",""):H.text;if(this.isSimpleString_(H)&&!this.useMixedDirectionFormattedStrings)if(B.nodeName==="#text"){B.textContent!=M&&(B.textContent=M);Q++;B=B.nextSibling;continue}else break;if(_.b(H,Yn))break;else if(!this.noEndpoints&&H.navigationEndpoint){if(B.nodeName!=="A")break;this.setDataOnAnchor_(B,
H.navigationEndpoint)}else if(B.nodeName!=="SPAN")break;this.setNodeStyle_(H,B);this.setUpVisibilityLogging_(H,B);B.textContent!=M&&(B.textContent=M);Q++;B=B.nextSibling}if(B)for(H=G.lastChild,B=Q?B.previousSibling:null;H&&H!=B;){try{G.removeChild(H)}catch(R){break}H=G.lastChild}Q!==m&&this.addTextNodes_(O,Q)};
_.v.addTextNodes_=function(O,m){for(var G=document.createDocumentFragment(),B=O.length;m<B;m++){var Q=O[m],H=_.V("remove_cr_char")&&Q.text?Q.text.replace("\r",""):Q.text;if(this.isSimpleString_(Q)&&!this.useMixedDirectionFormattedStrings)G.appendChild(document.createTextNode(H));else{var M=_.b(Q,Yn);if(M){if(M.image){var R=document.createElement("img");M.isCustomEmoji||R.classList.add("small-emoji");R.classList.add("emoji");M.isCustomEmoji&&(R.dataset.emojiId=M.emojiId);R.src=_.Uf(M.image.thumbnails,
this.emojiSize);(Q=this.get("image.accessibility.accessibilityData.label",M))?R.alt=Q:M.shortcuts&&M.shortcuts.length>0?R.alt=M.shortcuts[0]:M.emojiId&&(R.alt=M.emojiId);G.appendChild(R);this.hasEmoji=!0}}else!this.noEndpoints&&Q.navigationEndpoint?(R=document.createElement("a"),R.classList.add("yt-simple-endpoint"),R.setAttribute("spellcheck","false"),this.setDataOnAnchor_(R,Q.navigationEndpoint)):R=document.createElement("span"),this.setNodeStyle_(Q,R),this.setUpVisibilityLogging_(Q,R),R.appendChild(document.createTextNode(H)),
G.appendChild(R)}}this.getRoot().appendChild(G)};
_.v.isSimpleString_=function(O){return(this.noEndpoints||!O.navigationEndpoint)&&!_.b(O,Yn)&&(this.noStyles||!(O.bold||O.deemphasize||O.italics||O.strikethrough||O.errorUnderline||O.bracket||O.textColor))&&!O.loggingDirectives};
_.v.getRawText=function(){return _.HX(this.text)};
_.v.getFirstRunText=function(){var O;if(((O=this.text)==null?0:O.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.v.setFirstRunText=function(O){var m;((m=this.text)==null?0:m.runs)&&this.text.runs[0]&&(this.text.runs[0].text=O,this.textChanged_(this.text))};
_.v.setDataOnAnchor_=function(O,m){var G=this;!_.V("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(m)||this.isSignalServiceEndpoint_(m)?(O.onclick=this.serviceEndpointHandler_(m),sh(O,"#")):avM({text:this.text,command:m},function(){F3Y(O,m,G.target)})};
_.v.isServiceEndpoint_=function(O){var m;return!((m=_.b(O==null?void 0:O.commandMetadata,_.bP))==null||!m.sendPost)};
_.v.isSignalServiceEndpoint_=function(O){return!!_.b(O,_.Vs)};
_.v.serviceEndpointHandler_=function(O){var m=this;return function(G){_.tK(m.hostElement,[O]);G.preventDefault()}};
_.v.overrideAriaLabelChanged_=function(){var O=this.getRoot();this.enableContentEditable&&O&&O.setAttribute("aria-label",this.overrideAriaLabel)};
_.v.enableContentEditableChanged_=function(){var O=this,m=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),m=_.ZO(this.hostElement,m),!m.lastChild||m.lastChild instanceof HTMLElement&&m.lastChild.id!=="contenteditable-root"){var G=document.createElement("div");G.id="contenteditable-root";G.setAttribute("contenteditable","true");G.setAttribute("dir","auto");G.onfocus=function(){O.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
m.appendChild(G);this.overrideAriaLabel&&G.setAttribute("aria-label",this.overrideAriaLabel)}}else G=_.zw(this.hostElement).firstChild,G instanceof HTMLElement&&G.id==="contenteditable-root"&&_.ZO(this.hostElement,m).removeChild(G)};
_.v.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.v.getNodesForVisibilityLogging_=function(){return _.RE(this.getRoot().childNodes,function(O){var m;return!((m=O.data)==null||!m.trackingParams)})};
_.v.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.v.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var O=this.ytRendererBehavior.getVisibilityLogger();O&&this.getNodesForVisibilityLogging_().forEach(function(m){O.reportShown(m)})}};
_.v.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var O=this.ytRendererBehavior.getVisibilityLogger();O&&this.getNodesForVisibilityLogging_().forEach(function(m){O.reportHidden(m)})}};
_.vr.Object.defineProperties(e1.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.V("enable_mixed_direction_formatted_strings")}}});
e1.prototype.enableContentEditableChanged_=e1.prototype.enableContentEditableChanged_;e1.prototype.overrideAriaLabelChanged_=e1.prototype.overrideAriaLabelChanged_;e1.prototype.ellipsisTruncateChanged_=e1.prototype.ellipsisTruncateChanged_;e1.prototype.textChanged=e1.prototype.textChanged;_.c([_.h(Pf9.YtPlaintextBehavior),_.Y("design:type",Object)],e1.prototype,"ytPlaintextBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],e1.prototype,"ytComponentBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],e1.prototype,"text",void 0);_.c([_.g(),_.Y("design:type",Boolean)],e1.prototype,"noEndpoints",void 0);_.c([_.g(),_.Y("design:type",Boolean)],e1.prototype,"noStyles",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],e1.prototype,"isDarkTheme",void 0);
_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],e1.prototype,"splitLines",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],e1.prototype,"forceDefaultStyle",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],e1.prototype,"ellipsisTruncate",void 0);_.c([_.g(),_.Y("design:type",Object)],e1.prototype,"ignoreShadyDom",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.Y("design:type",Boolean)],e1.prototype,"ellipsisTruncateStyling",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.Y("design:type",String)],e1.prototype,"ariaLabel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],e1.prototype,"isEmpty",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.Y("design:type",Boolean)],e1.prototype,"hasLinkOnly_",void 0);_.c([_.g(),_.Y("design:type",Boolean)],e1.prototype,"hasEmoji",void 0);_.c([_.g(),_.Y("design:type",Boolean)],e1.prototype,"disableAttributedString",void 0);_.c([_.g(),_.Y("design:type",Boolean)],e1.prototype,"isOverlay",void 0);_.c([_.g(),_.Y("design:type",Boolean)],e1.prototype,"linkInheritColor",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],e1.prototype,"noPreWrap",void 0);_.c([_.g(),_.Y("design:type",Boolean)],e1.prototype,"userInput",void 0);_.c([_.g({value:16}),_.Y("design:type",Number)],e1.prototype,"emojiSize",void 0);_.c([_.g(),_.Y("design:type",String)],e1.prototype,"target",void 0);_.c([_.g(),_.Y("design:type",Boolean)],e1.prototype,"enableContentEditable",void 0);_.c([_.g(),_.Y("design:type",String)],e1.prototype,"overrideAriaLabel",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],e1.prototype,"respectHtmlDir",void 0);_.c([_.g(),_.Y("design:type",Boolean)],e1.prototype,"respectLangDir",void 0);_.c([_.T("plaintextOnly"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],e1.prototype,"useMixedDirectionFormattedStrings",null);_.c([_.g({computed:"computeUseAttributedString(text)"}),_.Y("design:type",Boolean)],e1.prototype,"useYtAttributedString",void 0);
_.c([_.Tw("text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e1.prototype,"textChanged",null);_.c([_.Tw("ellipsisTruncate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e1.prototype,"ellipsisTruncateChanged_",null);_.c([_.Tw("overrideAriaLabel"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e1.prototype,"overrideAriaLabelChanged_",null);
_.c([_.Tw("enableContentEditable"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e1.prototype,"enableContentEditableChanged_",null);_.c([_.DO({is:"yt-formatted-string",disableElementRegistration:!0})],e1);
_.y(e1,"yt-formatted-string",function(){if(Ai8===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;FKj===void 0&&(FKj=document.createElement("template"));var B=FKj;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Ai8=O}O=Ai8;return O});var ObH;var mq9;var Gte;var BbC;var DR=function(){var O=_.u.apply(this,arguments)||this;O.focused=!1;O.disabled=!1;O.isOverlay=!1;return O};
_.X(DR,_.u);DR.prototype.triggerDown=function(){if(!this.disabled){_.JG(this.hostElement,"down",!0);var O;(O=this.currentAnimation)==null||O.cancel()}};
DR.prototype.triggerUp=function(){if(!this.disabled){_.JG(this.hostElement,"down",!1);var O=this.fillElement;var m=this.strokeElement;typeof GroupEffect==="function"?(O=new GroupEffect([xgM(O),qnz(m)]),O=new Animation(O,document.timeline)):O=new fT$(O,m);this.currentAnimation=O;var G;(G=this.currentAnimation)==null||G.play()}};
_.c([_.uc(".stroke"),_.Y("design:type",HTMLElement)],DR.prototype,"strokeElement",void 0);_.c([_.uc(".fill"),_.Y("design:type",HTMLElement)],DR.prototype,"fillElement",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],DR.prototype,"focused",void 0);_.c([_.g(),_.Y("design:type",Object)],DR.prototype,"disabled",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],DR.prototype,"isOverlay",void 0);_.c([_.DO({is:"yt-interaction",disableElementRegistration:!0})],DR);
_.y(DR,"yt-interaction",function(){if(BbC===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Gte===void 0&&(Gte=document.createElement("template"));var B=Gte;G.call(m,B.content.cloneNode(!0),O.content.firstChild);BbC=O}O=BbC;return O},{mode:2});var sX=function(){return _.u.apply(this,arguments)||this};
_.X(sX,_.u);_.v=sX.prototype;_.v.ready=function(){var O=this,m=_.ZO(this.hostElement).querySelector("#button");m.addEventListener("focus",function(){uMs||(uMs=new geC);O.keyboardFocused=uMs.isKeyBoardInUse()});
m.addEventListener("blur",function(){O.keyboardFocused=!1;O.rippleUp_()})};
_.v.computeTabIndex_=function(O){return O?-1:0};
_.v.computeButtonAriaPressed_=function(O){if(this.toggleable)return O?"true":"false"};
_.v.rippleDown_=function(){_.ZO(this.hostElement).querySelector("#interaction").triggerDown()};
_.v.rippleUp_=function(){_.ZO(this.hostElement).querySelector("#interaction").triggerUp()};
_.v.onPressedChanged_=function(){var O=_.zw(_.ZO(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.zw(_.ZO(this.hostElement).querySelector("#button")).children[0];O&&(O.active=this.pressed)};
sX.prototype.onPressedChanged_=sX.prototype.onPressedChanged_;sX.prototype.rippleUp_=sX.prototype.rippleUp_;sX.prototype.rippleDown_=sX.prototype.rippleDown_;_.c([_.g(),_.Y("design:type",String)],sX.prototype,"label",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],sX.prototype,"disabled",void 0);_.c([_.g(),_.Y("design:type",Boolean)],sX.prototype,"pressed",void 0);_.c([_.g(),_.Y("design:type",Object)],sX.prototype,"toggleable",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],sX.prototype,"untabbable",void 0);_.c([_.g(),_.Y("design:type",Boolean)],sX.prototype,"keyboardFocused",void 0);_.c([_.hG("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sX.prototype,"rippleDown_",null);_.c([_.hG("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sX.prototype,"rippleUp_",null);
_.c([_.Tw("pressed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sX.prototype,"onPressedChanged_",null);_.c([_.DO({is:"yt-icon-button",disableElementRegistration:!0})],sX);
_.y(sX,"yt-icon-button",function(){if(mq9===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;ObH===void 0&&(ObH=document.createElement("template"));var B=ObH;G.call(m,B.content.cloneNode(!0),O.content.firstChild);mq9=O}O=mq9;return O},{mode:2});var QTC;var HbU=function(){var O=document.body,m=O.appendChild;if(QTC===void 0){var G=document.createElement("template");_.f(G,'\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>');
QTC=G}G=QTC;m.call(O,G.content)};
document.body?HbU():window.addEventListener("DOMContentLoaded",HbU);var vx2=_.FY(["aria-"]),FL={};FL.YtRenderButtonBehavior=[_.N.YtRendererBehavior,_.yZ.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!!_.KR().resolve(_.v7(_.IF))&&_.V("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 O=this.computeHref_(this.endpoint,!0);O?sh(this.elements_.endpoint,O):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){O=this.buttonClass.split(" ");O=_.K(O);for(var m=O.next();!m.done;m=O.next())m=m.value,_.JG(this.hostElement,m,!0),this.elements_.button&&_.JG(this.elements_.button,m,!0),this.elements_.text&&_.JG(this.elements_.text,m,!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&&(O=null,this.buttonAccessibility&&(O=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=O:O?_.rC([_.x6(vx2)],this.elements_.button,"aria-label",O):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var O=_.KR().resolve(_.v7(_.IF));O&&(this.keyboardFocused=O.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Th("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,_.SU(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.SU(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(O,m){if(m)for(O=m.split(" "),O=_.K(O),m=O.next();!m.done;m=O.next())m=m.value,_.JG(this.hostElement,m,!1),this.elements_.button&&_.JG(this.elements_.button,m,!1),this.elements_.text&&_.JG(this.elements_.text,m,!1)},
buttonIconChanged_:function(O){this.elements_.icon?O?(this.elements_.icon.icon=O,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.SU(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.VM(this.hostElement,"is-paper-button-with-icon",!1)):O&&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"&&_.SU(this.elements_.button).appendChild(this.elements_.icon):_.SU(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.VM(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(O){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,O){var m=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(O){case "yt_icon_button_with_label":m=!0;_.JG(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();O=_.SU(this.elements_.button).firstElementChild;
this.elements_.icon=O;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.SU(this.elements_.endpoint).appendChild(this.elements_.button);_.SU(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Th("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;_.SU(this.elements_.button).appendChild(this.elements_.text);_.SU(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":m=!0,this.elements_.button=this.getYtIconButton_(),O=_.SU(this.elements_.button).firstElementChild,this.elements_.icon=O,this.setIconActive_(this.elements_.icon),
_.SU(this.elements_.endpoint).appendChild(this.elements_.button)}_.VM(this.hostElement,"is-icon-button",m);_.VM(this.hostElement,"is-paper-button",!m);_.VM(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 G;_.ZO((G=this.container.hostElement)!=null?G:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.SU(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(O){if(O!=void 0||this.disabled)this.disabled=O,this.elements_.button&&(this.elements_.button.disabled=O)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(O){_.V("kevlar_system_icons")&&O&&this.data&&(this.data.isSelected!==void 0?O.active=this.data.isSelected:this.data.isToggled!==void 0&&(O.active=this.data.isToggled))},
observeBasicPalette_:function(O){_.CH(this.hostElement,O)},
disabledChanged_:function(O){this.data&&this.set("data.isDisabled",O)},
onYtButtonTap_:function(O){if(this.disabled)O.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.tK(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(O=this.disableCommandHandlerOverride,!this.data||!this.data.command||O||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.V("handle_service_request_actions")||_.tK(this.hostElement,[this.serviceEndpoint]),
_.iP(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.V("handle_service_request_actions")?(O=[],this.serviceEndpoint&&O.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&O.push(this.data.command),O.length&&_.Wd(this.hostElement,O,this.hostElement)):this.data&&this.data.command&&(O=this.data.command,O.accountUnlinkCommand||O.accountLinkCommand||O.insertAdCommand||O.insertHighlightMarkerCommand||
O.createLivestreamHighlightClipCommand||O.getVideoUploadFeedbackCommand||O.musicDeletePrivatelyOwnedEntityCommand||O.ypcCancelRecurrenceEndpoint||O.getMultiSelectCommandEndpoint?_.tK(this.hostElement,[O]):_.Wd(this.hostElement,[O],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 O,m=_.ZO((O=this.container.hostElement)!=null?O:this.container);m.lastChild&&m.lastChild.tagName!="STYLE";)try{m.removeChild(m.lastChild)}catch(G){break}},
getYtIconButton_:function(){var O=this.reuseEnabled_()?_.Th("yt-icon-button"):document.createElement("yt-icon-button"),m=_.SU(O).firstElementChild;if(m&&m.is!="yt-icon"){for(m=_.SU(O);m.lastChild;)m.removeChild(m.lastChild);m=null}m||(m=this.getIcon_(),this.setIconActive_(m),_.SU(O).appendChild(m));return O},
reuseEnabled_:function(){return _.V("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Th("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Th("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Klm={};
_.Klm.YtButtonBehavior=[FL.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var O=this.data;O&&(this._setEndpoint(this.computeEndpoint_(O)),this._setServiceEndpoint(this.computeServiceEndpoint_(O)),this._setCommand(this.computeCommand_(O)),this._setButtonIcon(this.computeButtonIcon_(O)),this._setButtonText(this.computeButtonText_(O,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(O)),this._setButtonTooltip(this.computeTooltip_(O)),this._setButtonClass(this.computeButtonClass_(O)),this._setIconPositionType(this.computeIconPositionType_(O)),this.updateRenderedElements())},
setPressedState:function(O){var m;if((m=this.elements_)==null?0:m.button)this.elements_.button.pressed=!!O},
computeIconPositionType_:function(O){return O&&O.iconPosition||null},
computeEndpoint_:function(O){var m=O&&O.navigationEndpoint,G=this.get("data.command.commandMetadata.webCommandMetadata.url"),B=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return m?m:O&&O.command&&O.command.modalEndpoint?O.command:G&&!B&&O.command?O.command:null},
computeServiceEndpoint_:function(O){var m=O&&O.serviceEndpoint,G=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return m?m:G&&O.command?O.command:null},
computeCommand_:function(O){return O&&O.command||null},
computeButtonIcon_:function(O){return O&&O.icon&&O.icon.iconType?_.bK(O.icon.iconType):null},
computeButtonText_:function(O,m){return!m&&O&&O.text||null},
computeAccessibility_:function(O){return this.get("accessibilityData.accessibilityData",O)||O&&O.accessibility||(O&&O.text?{label:this.getSimpleString(O.text)}:null)},
computeTooltip_:function(O){return O?O.isDisabled&&O.disabledTooltip||O.tooltip||null:null},
computeButtonClass_:function(O){var m=O&&O.style?O.style.toLowerCase().replace(/_/g,"-")+" ":"";m+=O&&O.size?O.size.toLowerCase().replace(/_/g,"-")+" ":"";O.colorData&&O.colorData.basicColorPaletteData&&O.colorData.basicColorPaletteData.borderColor&&(m+="palette-with-border");return m.trim()}}];var oZ={};var $qo;var Msj;var rOC,RF_=function(){return rOC!==void 0?rOC:rOC=document.createElement("template")};
document.head.appendChild(RF_().content);var ibo;var xqm,qxC=function(){return xqm!==void 0?xqm:xqm=document.createElement("template")};
document.head.appendChild(qxC().content);var Uqm;var ts_,Wl$=function(){return ts_!==void 0?ts_:ts_=document.createElement("template")};
document.head.appendChild(Wl$().content);var ZbC;var zFm=document.head,JO3=zFm.appendChild,Vsj;if(ZbC===void 0){var bbs=document.createElement("template");_.f(bbs,"\x3c!--css-build:shady--\x3e");bbs.content.insertBefore(Wl$().content.cloneNode(!0),bbs.content.firstChild);ZbC=bbs}Vsj=ZbC;JO3.call(zFm,Vsj.content);var nxe=document.head,XA_=nxe.appendChild,f33;if(Uqm===void 0){var hFu=document.createElement("template");_.f(hFu,"\x3c!--css-build:shady--\x3e");hFu.content.insertBefore(qxC().content.cloneNode(!0),hFu.content.firstChild);Uqm=hFu}f33=Uqm;XA_.call(nxe,f33.content);var Tbe=document.head,gx$=Tbe.appendChild,uQC;if(ibo===void 0){var jTU=document.createElement("template");_.f(jTU,"\x3c!--css-build:shady--\x3e");jTU.content.insertBefore(RF_().content.cloneNode(!0),jTU.content.firstChild);ibo=jTU}uQC=ibo;gx$.call(Tbe,uQC.content);var I38;_.lE("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");I38=_.V("web_button_rework")&&_.yE("BUTTON_REWORK")||_.V("web_button_rework_with_live");_.Ag=function(){return _.u.apply(this,arguments)||this};
_.X(_.Ag,_.u);_.Ag.prototype.created=function(){this.openPopupConfig=_.kB("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Ag.prototype.onYtNavigate_=function(O){var m=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(O.detail.endpoint);m&&(this.ytOpenPopupBehavior.openPopup(m),O.stopPropagation(),O.preventDefault())};
_.vr.Object.defineProperties(_.Ag,{template:{configurable:!0,enumerable:!0,get:function(){if(Msj===void 0){var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
var m=O.content,G=m.insertBefore;$qo===void 0&&($qo=document.createElement("template"));var B=$qo;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Msj=O}O=Msj;return O}}});
_.Ag.prototype.onYtNavigate_=_.Ag.prototype.onYtNavigate_;_.c([_.h(_.ko.YtOpenPopupBehavior),_.Y("design:type",Object)],_.Ag.prototype,"ytOpenPopupBehavior",void 0);_.c([_.h(_.Klm.YtButtonBehavior),_.Y("design:type",Object)],_.Ag.prototype,"ytButtonBehavior",void 0);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],_.Ag.prototype,"onYtNavigate_",null);
_.c([_.DO({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:I38})],_.Ag);var pA$;var Sxe=_.V("web_button_rework")&&_.yE("BUTTON_REWORK")||_.V("web_button_rework_with_live"),OL=function(){var O=_.u.apply(this,arguments)||this;O.isPressed=!1;O.forceIconButton=!1;O.forceIconOnly=!1;O.forceModernIconButton=!1;O.skipCommandHandling=!1;O.alignByText=!1;O.fitToVisibleBounds=!0;O.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};O.onTap=function(m){_.iP(O.hostElement,"yt-service-request-sent-button-renderer",m)};
return O};
_.X(OL,_.u);_.v=OL.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.v.onClick=function(O){var m,G=this.disabled||((m=this.data)==null?void 0:m.isDisabled);m=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");G&&m&&O.stopPropagation()};
_.v.computeIcon=function(){var O,m,G=(O=this.data)==null?void 0:(m=O.icon)==null?void 0:m.iconType;if(G)return _.bK(G)};
_.v.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.v.handleUpdateButtonAction=function(O){O=_.b(O,h79);var m=_.b(O==null?void 0:O.updatedButton,_.v3);if(this.data&&O&&m){var G=this.data;G.targetId&&O.targetId&&G.targetId===O.targetId&&(this.data=m)}};
_.vr.Object.defineProperties(OL.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var O=this;if(this.data){var m=jlN({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.iP(O.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.iP(O.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});m.alignByText=this.alignByText;return m}}}});
_.vr.Object.defineProperties(OL,{template:{configurable:!0,enumerable:!0,get:function(){if(pA$===void 0){var O=document.createElement("template");_.f(O,'\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>');pA$=O}O=pA$;return O}}});
OL.prototype.onClick=OL.prototype.onClick;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],OL.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],OL.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],OL.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],OL.prototype,"isPressed",void 0);
_.c([_.g(),_.Y("design:type",Object)],OL.prototype,"forceIconButton",void 0);_.c([_.g(),_.Y("design:type",Object)],OL.prototype,"forceIconOnly",void 0);_.c([_.g(),_.Y("design:type",Object)],OL.prototype,"forceModernIconButton",void 0);_.c([_.g(),_.Y("design:type",Object)],OL.prototype,"skipCommandHandling",void 0);_.c([_.g(),_.Y("design:type",Object)],OL.prototype,"alignByText",void 0);_.c([_.g(),_.Y("design:type",Object)],OL.prototype,"buttonTooltipPosition",void 0);
_.c([_.g(),_.Y("design:type",Object)],OL.prototype,"fitToVisibleBounds",void 0);_.c([_.g({computed:"computeTooltip(data)"}),_.Y("design:type",Object)],OL.prototype,"tooltip",void 0);_.c([_.g(),_.Y("design:type",Object)],OL.prototype,"overrides",void 0);_.c([_.g(),_.Y("design:type",Boolean)],OL.prototype,"disabled",void 0);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],OL.prototype,"onClick",null);
_.c([_.T("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OL.prototype,"computedButtonShape",null);_.c([_.DO({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Sxe,cssBuildOptOut:!0}),_.DO({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Sxe,cssBuildOptOut:!0})],OL);var Exm;var Ll9;var mT=function(){var O=_.u.apply(this,arguments)||this;O.empty_=!0;O.loadTime=Infinity;O.pendingPaint=!1;O.hasChange_=!1;O.oldThumbnail_=null;O.oldDelayedSrc_="";O.objectURL_=null;return O};
_.X(mT,_.u);_.v=mT.prototype;_.v.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.v.ready=function(){var O=this.shouldShowPlaceholder_();_.JG(this.hostElement,"no-transition",!0);O&&this.hostElement.classList.add("with-placeholder")};
_.v.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.v.isThumbPreloaded_=function(O){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",O)};
_.v.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||ChH};
_.v.computeThumbnailSrc_=function(O){return O&&O.thumbnails?_.Uf(O.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.v.computeAlt_=function(){var O=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&O||""};
_.v.thumbnailChanged_=function(){var O=_.K([this.thumbnail,this.oldThumbnail_]),m=O.next().value;O=O.next().value;this.oldThumbnail_=m;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(O=this.computeThumbnailSrc_(O),this.computeThumbnailSrc_(m)===O))return;_.V("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(m)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):m&&_.yE("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.QA(this,this.onReload_):_.QA(this,this.onShow_):this.resetImage_();m&&(this.hostElement.style.opacity=""+m.opacity)}};
_.v.delayedSrcChanged_=function(){var O=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===O||this.resetImage_()};
_.v.setSrc_=function(O){O?(_.ZO(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.ZO(this.hostElement).querySelector("#img").src=O):(_.ZO(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.v.resetImage_=function(){I3N(this.hostElement);this.empty_=!0;this.setSrc_(ChH);this.ytRendererBehavior.invalidate(!1)};
_.v.observePlaceholderColor_=function(){var O=this.thumbnail&&this.thumbnail.placeholderColor;O?this.hostElement.style.backgroundColor=_.Fs(O):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.v.onLoad_=function(){_.ZO(this.hostElement).querySelector("#img").src&&_.ZO(this.hostElement).querySelector("#img").src!==ChH&&(jT5(this.hostElement),this.notifyOnLoaded&&_.iP(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.v.onError_=function(){var O=this;if(_.V("web_use_cache_for_image_fallback"))l3O(_.ZO(this.hostElement).querySelector("#img").src).then(function(m){O.objectURL_=_.w5(m).toString();O.setSrc_(O.objectURL_)}).catch(function(){_.V("kevlar_woffle_fallback_image")&&O.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.v.onPrescanVisible=function(){this.onShow_()};
_.v.onVisible=function(){if(_.V("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.v.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var O=this.computeSrc_();O!==_.ZO(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(O))}};
_.v.onReload_=function(){this.empty_=!1;var O=this.computeSrc_();O!==_.ZO(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(O))};
_.v.shouldShowPlaceholder_=function(){return _.V("kevlar_thumbnail_bg")};
mT.prototype.observePlaceholderColor_=mT.prototype.observePlaceholderColor_;mT.prototype.delayedSrcChanged_=mT.prototype.delayedSrcChanged_;mT.prototype.thumbnailChanged_=mT.prototype.thumbnailChanged_;_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],mT.prototype,"alt",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],mT.prototype,"ariaHidden",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],mT.prototype,"ariaLabel",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mT.prototype,"hidden",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],mT.prototype,"id",void 0);_.c([_.h(_.tg.YtVisibilityBehavior),_.Y("design:type",Object)],mT.prototype,"ytVisibilityBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",String)],mT.prototype,"delayedSrc",void 0);
_.c([_.g(),_.Y("design:type",Object)],mT.prototype,"thumbnail",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],mT.prototype,"loaded",void 0);_.c([_.g(),_.Y("design:type",Boolean)],mT.prototype,"notifyOnLoaded",void 0);_.c([_.g(),_.Y("design:type",Number)],mT.prototype,"height",void 0);_.c([_.g(),_.Y("design:type",Number)],mT.prototype,"width",void 0);_.c([_.g({value:function(){return"width"}}),
_.Y("design:type",String)],mT.prototype,"dimension",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mT.prototype,"fit",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mT.prototype,"fitHeight",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mT.prototype,"fitWidth",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],mT.prototype,"objectFit",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],mT.prototype,"objectPosition",void 0);_.c([_.g(),_.Y("design:type",String)],mT.prototype,"preferredThumbnail",void 0);_.c([_.g({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.Y("design:type",String)],mT.prototype,"alt_",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],mT.prototype,"sharedTooltipText",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],mT.prototype,"ftlEligible",void 0);_.c([_.g({value:void 0}),_.Y("design:type",String)],mT.prototype,"observeHiddenOption",void 0);_.c([_.g({value:"observe_once"}),_.Y("design:type",String)],mT.prototype,"observePrescanOption",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mT.prototype,"roundedContainer",void 0);
_.c([_.Si("thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mT.prototype,"thumbnailChanged_",null);_.c([_.Si("delayedSrc"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mT.prototype,"delayedSrcChanged_",null);_.c([_.Tw("thumbnail.placeholderColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mT.prototype,"observePlaceholderColor_",null);
_.c([_.DO({is:"yt-img-shadow",disableElementRegistration:!0})],mT);var ChH=_.yE("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.WE()(mT,"yt-img-shadow",function(){if(Ll9===void 0){var O=document.createElement("template");_.f(O,'\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">');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Exm===void 0&&(Exm=document.createElement("template"));var B=Exm;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Ll9=O}O=Ll9;return O},{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 KRe;_.GR=new _.Us("SCREEN_MANAGER_TOKEN");KRe=new _.Us("LOG_INITIAL_SCREEN_TOKEN");var oxC=_.kg({entities:{}});var l39=_.yX(oxC)(oxC.entities,{selectSfvAudioItemPlaybackState:function(O,m){var G,B;O=(B=_.Vh(O,"sfvAudioItemCurrentlyPlayingEntity",m))!=null?B:void 0;return(G=O==null?void 0:O.sfvAudioItemPlaybackState)!=null?G:void 0},
playlistLoopStateEntitySelector:function(O,m){var G;return(G=_.Vh(O,"playlistLoopStateEntity",m))!=null?G:void 0}});_.BT=_.a(function(O){function m(OS){return _.b(OS,_.rc)}
function G(){var OS=B().isTogglingDisabled||I()&&B().toggledIsTogglingDisabled,rN=OS||z()?I():!I();S(rN);C(!1);if(!OS){var xO;(xO=M)==null||xO(!!rN)}var XI;((XI=H)==null?0:XI())||_.lR(_.KR().resolve(_.GR),B().trackingParams);var Vf;if(!rN||!m(B().defaultButtonViewModel)||(Vf=H)!=null&&Vf()){var US;!m(B().toggledButtonViewModel)||((US=H)==null?0:US())||_.lR(_.KR().resolve(_.GR),m(B().toggledButtonViewModel).trackingParams)}else _.lR(_.KR().resolve(_.GR),m(B().defaultButtonViewModel).trackingParams)}
var B=O.data,Q=O.buttonShapeOverrides,H=O.disableExplicitClickLogging,M=O.onToggle,R=O.style,x=O.useOutlinedIcon,t=O.className,W=function(){var OS,rN;return I()?(OS=O.animatedTextPropsToggled)==null?void 0:OS.call(O):(rN=O.animatedTextPropsDefault)==null?void 0:rN.call(O)},Z=_.bF(function(){return W()?Object.assign({},W(),{shouldAnimate:L()}):void 0},void 0,"Zp4uoe"),z=function(){var OS;
return((OS=d())==null?void 0:OS.isToggled)!==void 0},J=_.K(_.fH(function(){var OS,rN,xO;
return z()?(OS=d())==null?void 0:OS.isToggled:(xO=Q==null?void 0:(rN=Q())==null?void 0:rN.toggled)!=null?xO:B().isToggled})),n=J.next().value;
J=J.next().value;var I=n,S=J;J=_.K(_.fH(function(){var OS,rN;return(OS=O.animatedTextPropsToggled)==null?void 0:(rN=OS.call(O))==null?void 0:rN.shouldAnimate}));
n=J.next().value;J=J.next().value;var L=n,C=J;n=_.K(_.Wf(!1,void 0,"mq3Zfe"));var P=n.next().value,w=n.next().value,d=_.wg(function(OS){a:{var rN=B().entityKey,xO=B().toggledStateEntitySelectorType;if(xO)switch(xO){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!rN)break;OS=l39.selectSfvAudioItemPlaybackState(OS,rN);if(OS==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){OS={isToggled:!0};break a}if(OS){OS={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":OS=
{isToggled:_.EjM(OS).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":OS={isToggled:_.EjM(OS).includes("engagement-panel-live-chat-item-section")};break a;default:_.ay(new _.j9("Error: entitySelectorType defined but not matched in selector.",OS,xO))}OS=void 0}return OS}),D=function(){return Object.assign({},Q==null?void 0:Q(),{onToggle:G,
toggleable:!0,toggled:I(),focused:P()})};
return _.q("toggle-button-view-model",{"on:focusin":_.nH(function(){var OS=_.KR().resolve(_.v7(_.IF));OS&&w(OS.isKeyBoardInUse());return!1}),
"on:focusout":_.nH(function(){w(!1);return!1})},_.q(_.U,{cond:function(){return I()?m(B().toggledButtonViewModel):m(B().defaultButtonViewModel)},
then:function(OS){return _.q(_.oF,{data:OS,className:t,style:R,useOutlinedIcon:x,buttonOverrides:D,animatedTextProps:Z})}}))},"E");
_.BT.idomCompat={callbacks:{onToggle:!0}};_.qi(_.a(function(O){return _.q("yt-toggle-button-view-model",{class:function(){var m;return(m=O.scopingClassName)==null?void 0:m.call(O)}},_.q(_.BT,{data:function(){var m;
return(m=O.data)==null?void 0:m.call(O)},
buttonShapeOverrides:function(){var m;return(m=O.overrides)==null?void 0:m.call(O)},
animatedTextPropsDefault:function(){var m;return(m=O.animatedTextPropsDefault)==null?void 0:m.call(O)},
animatedTextPropsToggled:function(){var m;return(m=O.animatedTextPropsToggled)==null?void 0:m.call(O)},
disableExplicitClickLogging:function(){var m;return(m=O.disableExplicitClickLogging)==null?void 0:m.call(O)},
onToggle:function(m){var G;return(G=O.onToggle)==null?void 0:G.call(O,m)},
style:function(){var m;return(m=O.style)==null?void 0:m.call(O)},
useOutlinedIcon:function(){var m;return(m=O.useOutlinedIcon)==null?void 0:m.call(O)},
className:function(){var m;return(m=O.className)==null?void 0:m.call(O)}}))},"F"),"yt-toggle-button-view-model",{props:{data:_.VZ,
buttonShapeOverrides:_.VZ,overrides:_.VZ,animatedTextPropsDefault:_.VZ,animatedTextPropsToggled:_.VZ,disableExplicitClickLogging:_.VZ,onToggle:_.RZ,style:_.VZ,useOutlinedIcon:_.VZ,className:_.VZ,scopingClassName:_.VZ}});var Qi=function(){return _.u.apply(this,arguments)||this};
_.X(Qi,_.u);Qi.prototype.onTap=function(O){O.stopPropagation();O=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Cz("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:O})):this.ytLiveChatReduxBehavior.dispatch(_.jh("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:O}))};
_.vr.Object.defineProperties(Qi.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.engagementState)==null?void 0:O.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var O=_.b(this.data.toggleButton,_.iR),m;if(Number(((m=this.likeCountState)==null?void 0:m.likeCountIfIndifferentNumber)||"0")===0){var G;m=((G=this.data.likeCountPlaceholder)==null?void 0:G.content)||""}else{var B,Q,H;m=((B=this.likeCountState)==null?void 0:(Q=B.likeCountIfIndifferent)==null?void 0:Q.content)||((H=this.data.likeCountPlaceholder)==null?void 0:H.content)||""}var M,R;G=((M=this.likeCountState)==null?void 0:(R=
M.likeCountIfLiked)==null?void 0:R.content)||"1";M=_.b(O.toggledButtonViewModel,_.rc);return Object.assign({},O,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.b(O.defaultButtonViewModel,_.rc),{title:m})},toggledButtonViewModel:{buttonViewModel:Object.assign({},M,{title:G})}})}}}});
Qi.prototype.onTap=Qi.prototype.onTap;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Qi.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.RF),_.Y("design:type",Object)],Qi.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Qi.prototype,"data",void 0);
_.c([_.g({selectorArgs:["data.likeCountEntityKey"],selector:L66}),_.Y("design:type",Object)],Qi.prototype,"likeCountState",void 0);_.c([_.g({selectorArgs:["data.engagementStateKey"],selector:l6e}),_.Y("design:type",Object)],Qi.prototype,"engagementState",void 0);_.c([_.T("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Qi.prototype,"isLiked",null);
_.c([_.T("data","likeCountState","isLiked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qi.prototype,"toggleButton",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Qi.prototype,"onTap",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Qi);
_.y(Qi,"yt-live-chat-like-button-view-model",function(){if(kI$===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;aT9===void 0&&(aT9=document.createElement("template"));var B=aT9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);kI$=O}O=kI$;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var a33;var kto;var HT=function(){return _.u.apply(this,arguments)||this};
_.X(HT,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],HT.prototype,"data",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],HT);
_.y(HT,"yt-live-chat-paid-message-footer-renderer",function(){if(kto===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;a33===void 0&&(a33=document.createElement("template"));var B=a33;G.call(m,B.content.cloneNode(!0),O.content.firstChild);kto=O}O=kto;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var yOs;var cO3;var Yx8;var dq$,wAe=function(){if(dq$!==void 0)return dq$;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Yx8===void 0&&(Yx8=document.createElement("template"));var B=Yx8;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return dq$=O};var vT=function(){return _.u.apply(this,arguments)||this};
_.X(vT,_.u);vT.prototype.onTap=function(O){O.stopPropagation()};
_.vr.Object.defineProperties(vT.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var O=_.b(this.data.replyButton,_.rc),m,G,B,Q,H,M,R,x=Number(((m=this.replyCountState)==null?void 0:m.replyCountNumber)||"0")===0?(G=this.data)==null?void 0:(B=G.replyCountPlaceholder)==null?void 0:B.content:((Q=this.replyCountState)==null?void 0:(H=Q.replyCount)==null?void 0:H.content)||((M=this.data)==null?void 0:(R=M.replyCountPlaceholder)==null?void 0:R.content)||"",t;return Object.assign({},
O,{title:x,accessibilityText:(t=this.replyCountState)==null?void 0:t.replyButtonAccessibilityText})}}}});
_.vr.Object.defineProperties(vT,{template:{configurable:!0,enumerable:!0,get:function(){return wAe()}}});
vT.prototype.onTap=vT.prototype.onTap;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],vT.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.RF),_.Y("design:type",Object)],vT.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],vT.prototype,"data",void 0);
_.c([_.g({selectorArgs:["data.replyCountEntityKey"],selector:function(O,m){return _.Vh(O.entities,"replyCountEntity",m)}}),
_.Y("design:type",Object)],vT.prototype,"replyCountState",void 0);_.c([_.T("data","replyCountState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vT.prototype,"buttonViewModel",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],vT.prototype,"onTap",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],vT);
_.y(vT,"yt-live-chat-reply-button-view-model",function(){return wAe()},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var eFo;var Dqj;var KQ=function(){var O=_.u.apply(this,arguments)||this;O.ariaLabel="";return O};
_.X(KQ,_.u);
KQ.prototype.dataChanged=function(){for(var O=(0,_.bc)(_.ZO(this.hostElement).querySelector("#image"));O.firstChild;)O.removeChild(O.firstChild);if(this.data)if(this.data.icon){var m=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(m.polymerController.icon="yt-sys-icons:shield-filled",m.polymerController.defaultToFilled=!0):m.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();O.appendChild(m)}else if(this.data.customThumbnail){m=document.createElement("img");
var G=_.nxp(this.data.customThumbnail.thumbnails,16);G?(m.src=G,O.appendChild(m),m.setAttribute("alt",this.hostElement.ariaLabel||"")):_.ay(new _.j9("Could not compute URL for thumbnail",this.data.customThumbnail))}};
KQ.prototype.identity=function(O){return O};
KQ.prototype.computeType=function(O){return zS(O||void 0)};
KQ.prototype.dataChanged=KQ.prototype.dataChanged;_.c([_.g(),_.Y("design:type",Object)],KQ.prototype,"data",void 0);_.c([_.g({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.Y("design:type",Object)],KQ.prototype,"ariaLabel",void 0);_.c([_.g({computed:"computeType(data)",reflectToAttribute:!0}),_.Y("design:type",String)],KQ.prototype,"type",void 0);
_.c([_.g({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.Y("design:type",String)],KQ.prototype,"sharedTooltipText",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("live_chat_enable_new_moderator_badge")}}),
_.Y("design:type",Boolean)],KQ.prototype,"enableNewModeratorBadge",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KQ.prototype,"dataChanged",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],KQ);
_.y(KQ,"yt-live-chat-author-badge-renderer",function(){if(Dqj===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;eFo===void 0&&(eFo=document.createElement("template"));var B=eFo;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Dqj=O}O=Dqj;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var sTp;var Nbp;var $k=function(){return _.u.apply(this,arguments)||this};
_.X($k,_.u);_.v=$k.prototype;_.v.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"}}}}};
_.v.computeBadgesInsideChip=function(O){return O?O.filter(function(m){return zS(m.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.v.computeBadgesOutsideChip=function(O){return this.prependChatBadges||!O?[]:O.filter(function(m){m=zS(m.liveChatAuthorBadgeRenderer);return m!=="verified"&&m!=="owner"})};
_.v.computeBadgesBeforeChip=function(O){return this.prependChatBadges&&O?O.filter(function(m){m=zS(m.liveChatAuthorBadgeRenderer);return m!=="verified"&&m!=="owner"}):[]};
_.v.computeIsHighlighted=function(O,m){var G=!!ykN(O,"owner"),B=!!ykN(O,"verified");O=!!ykN(O,"moderator");return(G||B&&!O)&&!m};
_.v.computeAuthorType=function(O){return koN(O)};
_.v.computeAuthorClass=function(O,m){return m?(O?O+" ":"")+"single-line":O};
_.v.onSeedColorChanged=function(){_.V("live_chat_author_name_color_usernames")||_.V("live_chat_seed_color_usernames")||_.V("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):_.V("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
$k.prototype.onSeedColorChanged=$k.prototype.onSeedColorChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],$k.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$k.prototype,"authorName",void 0);_.c([_.g(),_.Y("design:type",Array)],$k.prototype,"authorBadges",void 0);
_.c([_.g({computed:"computeAuthorType(authorBadges)"}),_.Y("design:type",String)],$k.prototype,"authorType",void 0);_.c([_.g({computed:"computeAuthorClass(authorType, singleLine)"}),_.Y("design:type",String)],$k.prototype,"authorClass",void 0);_.c([_.g({computed:"computeBadgesInsideChip(authorBadges)"}),_.Y("design:type",Array)],$k.prototype,"badgesInsideChip",void 0);_.c([_.g({computed:"computeBadgesOutsideChip(authorBadges)"}),_.Y("design:type",Array)],$k.prototype,"badgesOutsideChip",void 0);
_.c([_.g({computed:"computeBadgesBeforeChip(authorBadges)"}),_.Y("design:type",Array)],$k.prototype,"badgesBeforeChip",void 0);_.c([_.g({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],$k.prototype,"isHighlighted",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],$k.prototype,"singleLine",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],$k.prototype,"disableHighlighting",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$k.prototype,"dashboardMoneyFeed",void 0);_.c([_.g({value:_.V("live_chat_prepend_badges"),reflectToAttribute:!0}),_.Y("design:type",Boolean)],$k.prototype,"prependChatBadges",void 0);_.c([_.g(),_.Y("design:type",String)],$k.prototype,"authorNameColor",void 0);_.c([_.uc("#author-name"),_.Y("design:type",HTMLDivElement)],$k.prototype,"username",void 0);
_.c([_.Tw("authorNameColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$k.prototype,"onSeedColorChanged",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],$k);
_.y($k,"yt-live-chat-author-chip",function(){if(Nbp===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;sTp===void 0&&(sTp=document.createElement("template"));var B=sTp;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Nbp=O}O=Nbp;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var Phu;var Fl2;var Md=function(){var O=_.u.apply(this,arguments)||this;O.debounceCommand=_.SG(function(m){O.ytComponentBehavior.resolveCommand(m)},1500);
return O};
_.X(Md,_.u);Md.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var O=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",m,G,B=this.isHearted?(m=this.data)==null?void 0:m.unheartCommand:(G=this.data)==null?void 0:G.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Cz("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:O}));(O=_.eg(B))&&this.debounceCommand(O)}};
_.vr.Object.defineProperties(Md.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var O,m;if(!((O=this.data)==null?0:(m=O.creatorThumbnail)==null?0:m.sources))return{};O={thumbnails:[]};m={};m.url=this.data.creatorThumbnail.sources[0].url;O.thumbnails.push(m);return O}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.engagementState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((m=this.engagementState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.engagementState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((m=this.engagementState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.engagementState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return((O=this.engagementState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((m=this.engagementState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((G=this.engagementState)==null?void 0:G.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}}});
Md.prototype.onTap=Md.prototype.onTap;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Md.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.RF),_.Y("design:type",Object)],Md.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Md.prototype,"data",void 0);
_.c([_.g({selectorArgs:["data.engagementStateKey"],selector:l6e}),_.Y("design:type",Object)],Md.prototype,"engagementState",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Md.prototype,"thumbnailDetails",null);_.c([_.T("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Md.prototype,"isHearted",null);_.c([_.T("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Md.prototype,"isEditable",null);
_.c([_.T("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Md.prototype,"showCreatorView",null);_.c([_.T("data","engagementState"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Md.prototype,"showButton",null);_.c([_.T("data","isHearted"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Md.prototype,"label",null);_.c([_.T("data","isHearted"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Md.prototype,"heartHoverText",null);
_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Md.prototype,"onTap",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Md);
_.y(Md,"yt-live-chat-creator-heart-view-model",function(){if(Fl2===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Phu===void 0&&(Phu=document.createElement("template"));var B=Phu;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Fl2=O}O=Fl2;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var rt=function(){};
_.X(rt,at);rt.prototype.JSC$13116_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:OB("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
rt.prototype.getApiPaths=function(){return[]};
rt.prototype.getExtension=function(){};
rt.prototype.JSC$13116_buildRequest=function(){};var AO_={},OAu=(AO_.GET_DATASYNC_IDS=Sw(rt),AO_);var mgC,G8C,BeU,N4C,R4,vXu,GTU,HA$,QNj;mgC="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");G8C=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Fw=function(O,m,G,B,Q,H,M,R,x){this.endpointMap=O;this.networkManager=m;this.authService=G;this.responseProcessorMap=B;this.innertubeResponseStore=Q;this.contextProcessors=H;this.asyncContextProcessors=M;this.localInnertubeRouter=R;this.requestSequencer=x;this.inflightRequests=new Map;O.signalEndpointMap||(O.signalEndpointMap={});O.signalEndpointMap=Object.assign({},OAu,O.signalEndpointMap)};
BeU=function(O,m,G,B,Q,H,M,R,x){if(_.Fw.instance!==void 0){if(B=_.Fw.instance,O=[O!==B.endpointMap,m!==B.networkManager,G!==B.authService,Q!==B.innertubeResponseStore,H!==B.contextProcessors,M!==B.asyncContextProcessors,R!==B.localInnertubeRouter],O.some(function(t){return t}))throw new _.j9("InnerTubeTransportService is already initialized",O);
}else _.Fw.instance=new _.Fw(O,m,G,B,Q,H,M,R,x)};
_.Ov=function(O,m,G){var B=B===void 0?Wdm:B;var Q=GTU(O,m);return Q?new _.zH(function(H,M){var R,x,t,W,Z;return _.r(function(z){switch(z.nextAddress){case 1:return z.yield(Q,2);case 2:R=z.yieldResult;x=R.JSC$13116_getRequest(m,G,B);if(!x){M(new _.j9("Error: Failed to build request for command.",m));z.jumpTo(0);break}Gw(x.input);W=((t=x.requestShell)==null?void 0:t.mode)==="cors"?"cors":void 0;if(O.authService.syncHeaders){Z=QNj(x.config,W);z.jumpTo(4);break}return z.yield(HA$(x.config,W),5);case 5:Z=
z.yieldResult;case 4:H(vXu(O,x,Z)),_.ju(z)}})}):_.lK(new _.j9("Error: No request builder found for command.",m))};
N4C=function(O,m,G,B){var Q=Q===void 0?Wdm:Q;var H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P,w,d,D;return _.r(function(OS){switch(OS.nextAddress){case 1:H=aj6(m,O.endpointMap);if(!H)throw new _.j9("Error: No streaming request builder found for command",m);M=H.JSC$13116_getRequest(m,G,Q);if(!M)throw new _.j9("Failed to build YtRequest for streaming Command",m);if((R=O.localInnertubeRouter)==null||!R.shouldPreferLocalResponse(M.input,M.innerTubeRequest)){OS.jumpTo(2);break}return OS.yield(O.localInnertubeRouter.localInnertubeResponse(M.input,
M.innerTubeRequest),3);case 3:return x=OS.yieldResult,t={},x.playerResponse&&(R4(O,x.playerResponse,M),t.player=x.playerResponse,(W=B)==null||W(t,x)),x.watchNextResponse&&(R4(O,x.watchNextResponse,M),t.content=x.watchNextResponse,(Z=B)==null||Z(t,x)),OS.return(t);case 2:J=((z=M.requestShell)==null?void 0:z.mode)==="cors"?"cors":void 0;if(O.authService.syncHeaders){n=QNj(M.config,J);OS.jumpTo(4);break}return OS.yield(HA$(M.config,J),5);case 5:n=OS.yieldResult;case 4:return L=(S=(I=M.requestShell)==
null?void 0:I.headers)!=null?S:{},M.requestShell=Object.assign({},M.requestShell,{headers:Object.assign({},L,n)}),C=Object.assign({},M.requestShell),P=JSON.stringify(M.innerTubeRequest),M.requestShell.method==="POST"&&(C=Object.assign({},C,{body:P})),w=function(rN,xO){R4(O,xO.playerResponse||xO.watchNextResponse||xO.reelItemWatchResponse||xO.reelWatchSequenceResponse,M);B==null||B(rN,xO)},d={},OS.yield(K4m(O.networkManager,M.input,C,w),6);
case 6:return d=OS.yieldResult,((D=M.config)==null?0:D.responseTick)&&_.cd(M.config.responseTick),OS.return(d)}})};
_.rS=function(O,m,G,B,Q){Q=Q===void 0?{authStrategy:{identity:Wdm}}:Q;var H=H===void 0?!0:H;var M=function(){};
M=Imp(udM(G));m.context||(m.context=_.FFp(B,H));return new _.zH(function(R){var x,t,W,Z,z;return _.r(function(J){if(J.nextAddress==1)return x=ZUN(G),t=_.Ac(x),O.authService.syncHeaders?(W=QNj(Q,t),J.jumpTo(2)):J.yield(HA$(Q,t),3);J.nextAddress!=2&&(W=J.yieldResult);Z=zhz(ZUN(G));z={input:Z,requestShell:OB(Z),innerTubeRequest:m,config:Q};R(vXu(O,z,W,M));_.ju(J)})})};
R4=function(O,m,G){var B;if(m&&!(m==null?0:(B=m.sequenceMetaData)==null?0:B.skipProcessing)&&O.responseProcessorMap){B=_.K(mgC);for(var Q=B.next();!Q.done;Q=B.next())Q=Q.value,O.responseProcessorMap[Q]&&O.responseProcessorMap[Q].handleResponse(m,G)}};
vXu=function(O,m,G,B){B=B===void 0?function(){}:B;
var Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P,w,d,D,OS,rN,xO,XI,Vf,US,CN,oe,K$,n$,qe,PM,ZH,U3,p$,uy,vb,vM,Gp,Vu,Gu;return _.r(function(x9){switch(x9.nextAddress){case 1:M=(Q=m.config)==null?void 0:(H=Q.storeStrategy)==null?void 0:H.storeKey;if(!(M&&O.innertubeResponseStore&&O.innertubeResponseStore.has(M))||((R=m.config)==null?0:(x=R.storeStrategy)==null?0:x.disableCache)){x9.jumpTo(2);break}return x9.yield(O.innertubeResponseStore.get(M),3);case 3:if((t=x9.yieldResult)&&!t.isExpired())return x9.return(Promise.resolve(_.v$(t)));
case 2:if(!((W=m)==null?0:(Z=W.innerTubeRequest)==null?0:Z.context)){x9.jumpTo(4);break}z=m.innerTubeRequest.context;if(!(O.asyncContextProcessors&&O.asyncContextProcessors.length>0)){x9.jumpTo(5);break}J=[];n=_.K(O.asyncContextProcessors);for(I=n.next();!I.done;I=n.next())S=I.value,L=S.processContext(m),L.wrappedPromise_&&J.push(L.wrappedPromise_);if(!(J.length>0)){x9.jumpTo(5);break}return x9.yield(Promise.all(J),5);case 5:C=_.K(O.contextProcessors||[]),P=C.next();case 8:if(P.done){x9.jumpTo(4);
break}w=P.value;return x9.yield(w.processContext(z),9);case 9:P=C.next();x9.jumpTo(8);break;case 4:if((d=O.localInnertubeRouter)==null||!d.shouldPreferLocalResponse(m.input,m.innerTubeRequest)){x9.jumpTo(12);break}return x9.yield(O.localInnertubeRouter.localInnertubeResponse(m.input,m.innerTubeRequest),13);case 13:return D=x9.yieldResult,R4(O,D,m),x9.return(D);case 12:return(xO=(rN=m.config)==null?void 0:rN.requestKey)&&O.inflightRequests.has(xO)?OS=O.inflightRequests.get(xO):(XI=JSON.stringify(m.innerTubeRequest),
CN=(US=(Vf=m.requestShell)==null?void 0:Vf.headers)!=null?US:{},m.requestShell=Object.assign({},m.requestShell,{headers:Object.assign({},CN,G)}),oe=Object.assign({},m.requestShell),m.requestShell.method==="POST"&&(oe=Object.assign({},oe,{body:XI})),((K$=m.config)==null?0:K$.requestTick)&&_.cd(m.config.requestTick),n$=function(){return O.networkManager.fetch(m.input,oe,m.config)},OS=O.requestSequencer?$gj(O.requestSequencer,m,n$):n$(),xO&&O.inflightRequests.set(xO,OS)),x9.yield(OS,14);
case 14:(qe=x9.yieldResult)&&_.V("web_streaming_player")&&Array.isArray(qe)&&(qe=qe[0].playerResponse);if(qe&&"error"in qe&&((PM=qe)==null?0:(ZH=PM.error)==null?0:ZH.details))for(U3=qe.error.details,p$=_.K(U3),uy=p$.next();!uy.done;uy=p$.next())vb=uy.value,(vM=vb["@type"])&&G8C.indexOf(vM)>-1&&(delete vb["@type"],qe=vb);xO&&O.inflightRequests.has(xO)&&O.inflightRequests.delete(xO);((Gp=m.config)==null?0:Gp.responseTick)&&_.cd(m.config.responseTick);if(qe||(Vu=O.localInnertubeRouter)==null||!Vu.canProvideFallbackResponse(m.input,
m.innerTubeRequest)){x9.jumpTo(15);break}return x9.yield(O.localInnertubeRouter.localFallbackInnertubeResponse(m.input,m.innerTubeRequest),16);case 16:qe=x9.yieldResult;case 15:return R4(O,qe,m),((Gu=m.config)==null?0:Gu.processorTick)&&_.cd(m.config.processorTick),B(),x9.return(qe||void 0)}})};
_.AH=function(O,m){return ljI(m,O.endpointMap)};
GTU=function(O,m){O=kWp(m,O.endpointMap);if(O!==void 0)return Promise.resolve(O)};
HA$=function(O,m){var G,B,Q,H;return _.r(function(M){if(M.nextAddress==1){Q=(G=O)==null?void 0:(B=G.authStrategy)==null?void 0:B.sessionIndex;var R=M.yield;var x=_.ZY(pXN({sessionIndex:Q}));return R.call(M,x,2)}H=M.yieldResult;return M.return(Promise.resolve(Object.assign({},yrI(m),H)))})};
QNj=function(O,m){var G;O=O==null?void 0:(G=O.authStrategy)==null?void 0:G.sessionIndex;G=pXN({sessionIndex:O});return Object.assign({},yrI(m),G)};var MDu,r7C,Rwe,iA3,xgs,qnm,W4o,ZAC,qd,zw_,J7e,tD_,VD_;MDu=0;r7C=/tone[1-5]/;Rwe=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");iA3="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
xgs=Number.MAX_SAFE_INTEGER;qnm=RegExp("\ufe0f","g");_.iO=function(O){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;O&&_.Ug9(this,O)};
_.Ug9=function(O,m){try{_.Vb(m,{context:O,onSuccess:function(B,Q){Array.isArray(Q)?O.load(Q):(B=new _.j9("Emoji manager JSON response was not an array!",{response:Q}),_.oy(B))},
onError:function(B){B=new _.j9("Failed to retrieve emoji manager initial JSON data!",{url:m,statusCode:_.tE(B).toString()});_.ay(B)}})}catch(B){var G=new _.j9("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:m});
_.ay(G)}};
_.iO.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.iO.prototype.load=function(O,m){if(m)if(O.length)O=O.concat(m.emojis);else{this.emojis=m.emojis;this.emojiMap=m.emojiMap;this.emojiShortcutMap=m.emojiShortcutMap;this.emojiShortcutCharMap=tD_(m);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=m.emojiRegex;return}this.emojis=[].concat(_.lS(new Set(this.emojis.concat(O))));this.hasInitializedShortcutCharMap=!1;O=Array(this.emojis.length);for(m=0;m<this.emojis.length;m++){var G=this.emojis[m];if(G.emojiId){this.emojiMap[G.emojiId]=G;this.emojiMap[G.emojiId].index=
m;for(var B=0;G.shortcuts&&B<G.shortcuts.length;B++)this.emojiShortcutMap[G.shortcuts[B].toLocaleLowerCase()]=G;O[m]=G.isCustomEmoji&&G.shortcuts?G.shortcuts[0]:G.emojiId}}O.sort(function(Q,H){return H.length-Q.length});
if(O.length)try{this.emojiRegex=new RegExp(O.join("|").replace("*","\\*"),"gi")}catch(Q){this.emojiRegex=/$./}else this.emojiRegex=/$./};
W4o=function(O,m){m=_.K(m);for(var G=m.next();!G.done;G=m.next()){var B=G.value;if(B.emojiId&&O.emojiMap[B.emojiId]){G=Object.assign({},O.emojiMap[B.emojiId],B);O.emojiMap[B.emojiId]=G;var Q=void 0;G.index&&((Q=O.emojis[G.index])==null?void 0:Q.emojiId)===B.emojiId&&(O.emojis[G.index]=G);B=void 0;if((B=G.shortcuts)==null?0:B.length)for(O.hasInitializedShortcutCharMap=!1,B=_.K(G.shortcuts),Q=B.next();!Q.done;Q=B.next())O.emojiShortcutMap[Q.value.toLocaleLowerCase()]=G}}};
ZAC=function(O){var m,G;_.r(function(B){if(B.nextAddress==1)return B.yield(_.FW.getInstance(),2);if(B.nextAddress!=3)return(m=B.yieldResult)?B.yield(m.get("ytlc-emoji-pref"),3):B.return();(G=B.yieldResult)&&W4o(O,Object.keys(G).map(function(Q){return{emojiId:Q,stickyPrefId:G[Q]}}).filter(function(Q){return!!Q.emojiId&&!!Q.stickyPrefId}));
_.ju(B)})};
_.xk=function(O,m,G){return(O=O.emojiMap[m])&&(!O.isLocked||G!==void 0&&G)?O:void 0};
qd=function(O,m,G){G=_.xk(O,m,G===void 0?!1:G);var B=m.match("\u200d");G&&O.skinTone!==0&&(O=(B==null?void 0:B.length)===1?_.xk(O,m.replace("\u200d",Rwe[O.skinTone]+"\u200d")):_.xk(O,m+Rwe[O.skinTone]))&&(G=O);return G};
zw_=function(O,m){var G=O.emojiMap[m];return(G==null?0:G.stickyPrefId)?O.emojiMap[G.stickyPrefId]:qd(O,m)};
_.qk=function(O,m){O=O.emojiShortcutMap[m.toLocaleLowerCase()];return!O||O.isLocked?null:O};
J7e=function(O,m,G){return tD_(O,G===void 0?!1:G)[m]||{}};
tD_=function(O,m){m=m===void 0?!1:m;if(!O.hasInitializedShortcutCharMap){O.hasInitializedShortcutCharMap=!0;for(var G=0;G<O.emojis.length;G++){var B=O.emojis[G];if(!(B.isLocked||m&&B.isCustomEmoji&&B.emojiId&&!O.pickerCustomEmojiIds.includes(B.emojiId)))for(var Q=0;B.shortcuts&&Q<B.shortcuts.length;Q++){var H=B.shortcuts[Q];H.startsWith(":_")&&B.isCustomEmoji&&(O.emojiShortcutCharMap[":_"]==null&&(O.emojiShortcutCharMap[":_"]=Object.create(null)),O.emojiShortcutCharMap[":_"][H]=B);if(!(H.length<3||
!B.isCustomEmoji&&r7C.test(H))){var M=H.substr(0,3).toLocaleLowerCase();O.emojiShortcutCharMap[M]==null&&(O.emojiShortcutCharMap[M]=Object.create(null));O.emojiShortcutCharMap[M][H]=B}}}}return O.emojiShortcutCharMap};
_.iO.prototype.createEmoji=function(O,m){m=m===void 0?!0:m;var G=document.createElement("img");O.isCustomEmoji||G.classList.add("small-emoji");G.classList.add("emoji");G.classList.add("yt-formatted-string");G.src=O.image?_.Uf(O.image.thumbnails,this.emojiSize)||"":"";var B=void 0;O.image&&O.image.accessibility&&O.image.accessibility.accessibilityData&&(B=O.image.accessibility.accessibilityData.label);G.alt=B?B:(O.isCustomEmoji&&O.shortcuts?O.shortcuts[0]:O.emojiId)||"";O.isCustomEmoji&&(G.dataset.emojiId=
O.emojiId);_.xF&&(G.setAttribute("contenteditable","false"),G.setAttribute("unselectable","on"));m&&(O.shortcuts&&O.shortcuts.length&&G.setAttribute("shared-tooltip-text",O.shortcuts[0]),G.id="emoji-"+MDu++);return G};
_.iO.prototype.createDocumentFragment=function(O,m,G,B){m=m===void 0?!1:m;G=G===void 0?!0:G;B=B===void 0?!1:B;O=O.replace(qnm,"");for(var Q=document.createDocumentFragment(),H=0,M,R=0;(M=this.emojiRegex.exec(O))!=null;){var x=_.xk(this,M[0])||_.qk(this,M[0]);!x||x.isCustomEmoji&&!m||(x=this.createEmoji(x,G),H!==M.index&&Q.appendChild(document.createTextNode(O.substring(H,M.index))),Q.appendChild(x),H=M.index+M[0].length,R++)}if(!B||R)return Q.appendChild(document.createTextNode(O.substr(H))),Q};
VD_=function(O,m,G){var B,Q,H,M,R,x,t,W,Z;return _.r(function(z){if(z.nextAddress==1){if(!m.emojiId||!O.emojiMap[m.emojiId])return z.return();B=Object.assign({},O.emojiMap[m.emojiId],{stickyPrefId:G});O.emojiMap[m.emojiId]=B;m.index&&((Q=O.emojis[m.index])==null?void 0:Q.emojiId)===m.emojiId&&(O.emojis[m.index]=B);if((H=m.shortcuts)==null?0:H.length)for(O.hasInitializedShortcutCharMap=!1,M=_.K(m.shortcuts),R=M.next();!R.done;R=M.next())x=R.value,O.emojiShortcutMap[x.toLocaleLowerCase()]=B;return z.yield(_.FW.getInstance(),
2)}if(z.nextAddress!=4)return(t=z.yieldResult)?z.yield(t.get("ytlc-emoji-pref"),4):z.jumpTo(0);Z=(W=z.yieldResult)!=null?W:{};Z[m.emojiId]=G;return z.yield(t.set("ytlc-emoji-pref",Z,xgs),0)})};
_.UL=new _.iO;var X0$;_.tn={};
X0$={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.V("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:_.V("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 BX(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 O=_.ZO(this.hostElement||this).querySelector("#inline-action-button-container");O&&O.setAttribute("aria-hidden","true");this.menuButton=_.ZO(this.hostElement).querySelector("#menu-button")},
attached:function(){var O=this.menuButton;O&&(O.addEventListener("focusin",_.f7(this,this.onMenuButtonFocus_)),O.addEventListener("focusout",_.f7(this,this.onMenuButtonBlur_)))},
detached:function(){var O=this.menuButton;O&&(O.removeEventListener("focusin",_.f7(this,this.onMenuButtonFocus_)),O.removeEventListener("focusout",_.f7(this,this.onMenuButtonBlur_)))},
identity:_.LN,truthy:function(O){return!!O},
computeTimestampString:function(O){return O?O.timestampText?this.getSimpleString(O.timestampText):this.TIME_FORMATTER.format(new Date(O.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(O){return O},
computeMenuVisible_:function(O,m){return O||m},
computeHasInlineActionButtons:function(O){if(!O)return!1;var m,G;return!((m=O.inlineActionButtons)==null||!m.length)||!((G=O.additionalInlineActionButtons)==null||!G.length)},
createDocumentFragmentFromString:function(O){var m=_.UL.createDocumentFragment.bind(_.UL),G;if((G=this.participantsManager)==null||!G.viewerRegex)return m(O);G=document.createDocumentFragment();for(var B=0,Q;(Q=this.participantsManager.viewerRegex.exec(O))!=null;){if(Q.index>0){var H=":"+Q[0]+":";if((_.xk(_.UL,H)||_.qk(_.UL,H))&&O.indexOf(H)===Q.index-1)continue}G.appendChild(m(O.substring(B,Q.index)));B=document.createElement("span");B.appendChild(m(Q[0]));B.classList.add("mention");G.appendChild(B);
B=Q.index+Q[0].length}G.appendChild(m(O.substring(B)));return G},
createDocumentFragment:function(O){var m=document.createDocumentFragment();if(O.simpleText)return m.appendChild(this.createDocumentFragmentFromString(O.simpleText)),m;if(!O.runs)return m;for(var G=0;G<O.runs.length;G++){var B=O.runs[G];if(B.emoji)m.appendChild(_.UL.createEmoji(B.emoji));else if(B.text)if(B.navigationEndpoint){var Q=document.createElement("a");Q.classList.add("yt-simple-endpoint");F3Y(Q,B.navigationEndpoint);_.ZO(Q).appendChild(this.createDocumentFragmentFromString(B.text));m.appendChild(Q)}else m.appendChild(this.createDocumentFragmentFromString(B.text))}return m},
hasModerationOverlayVisible:function(){var O;return((O=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:O.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(O){O.composedPath().some(function(m){return(m=m instanceof Element?m:null)?m.tagName&&(m.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||m.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.V("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(O)},
colorFromDecimal:function(O){return nlp(O)},
markAsDeleted:function(O,m){this.set("data.deletedStateMessage",O);this.set("data.showOriginalContentMessage",m)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(O){if(this.data.contextMenuEndpoint){var m=_.KR().resolve(_.ew),G=this.data.contextMenuEndpoint,B;(B=_.Fw.instance)&&_.AH(B,G)?(m=bAj(m,G),B=_.rS(B,{},m)):B=_.nXj(m,G);B.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);O&&O.stopPropagation()}},
handleGetContextMenuResponse_:function(O){var m=_.Fw.instance;m&&_.AH(m,{liveChatEndpoint:{}})||(O=O.response);O.liveChatItemContextMenuSupportedRenderers&&O.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(O.liveChatItemContextMenuSupportedRenderers.menuRenderer);O.actions&&_.xc(this.hostElement,"yt-live-chat-actions",[O.actions])},
handleGetContextMenuError:function(O){if(O instanceof Error||O instanceof Object||O instanceof String)var m=O;_.oy(new _.j9("Error encountered calling GetLiveChatItemContextMenu",m))},
showContextMenu_:function(O){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:O}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.iP(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.iP(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.tn.YtLiveChatItemBehavior=[X0$,_.xo.YtComponentBehavior,_.ko.YtOpenPopupBehavior];_.WT=function(){};var f6C;var hw3;var Tep;var gXo;var Zc=function(){var O=_.u.apply(this,arguments)||this;O.active=!1;O.identity=_.LN;return O};
_.X(Zc,_.u);Zc.prototype.dataChanged=function(){this.active=!1};
Zc.prototype.onClick=function(){_.iP(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Zc.prototype.dataChanged=Zc.prototype.dataChanged;_.c([_.g(),_.Y("design:type",Object)],Zc.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Zc.prototype,"active",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zc.prototype,"dataChanged",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Zc);
_.y(Zc,"yt-live-chat-text-input-field-suggestion",function(){if(gXo===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Tep===void 0&&(Tep=document.createElement("template"));var B=Tep;G.call(m,B.content.cloneNode(!0),O.content.firstChild);gXo=O}O=gXo;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});_.zR=function(O,m,G){return CustomEvent.call(this,O,{detail:{value:m,path:G}})||this};
_.X(_.zR,CustomEvent);_.Jn=function(){var O=_.u.apply(this,arguments)||this;O.viewerName=null;O.actionMap={"yt-live-chat-actions":"onChatMessage_"};O.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];O.PARTICIPANT_TIME_USEC_=3E8;return O};
_.X(_.Jn,_.u);_.v=_.Jn.prototype;_.v.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.v.addParticipant=function(O){var m=_.gOe(this.participants,O,function(B,Q){B=B[Object.keys(B)[0]];Q=Q[Object.keys(Q)[0]];B=String(_.HX(B.authorName)).toLowerCase();Q=String(_.HX(Q.authorName)).toLowerCase();return B<Q?-1:B==Q?0:1}.bind(this));
if(m>=0){var G=this.participants[m];G[Object.keys(G)[0]].timestampUsec&&this.splice("participants",m,1,O)}else this.splice("participants",-m-1,0,O);O=O[Object.keys(O)[0]];m=_.HX(O.authorName).toLocaleLowerCase();G=m.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(G)||(this.allParticipantsCharMap_[G]={});this.allParticipantsCharMap_[G][m]=O};
_.v.getAuthorsFromPrefix=function(O){return this.allParticipantsCharMap_.hasOwnProperty(O)?this.allParticipantsCharMap_[O]:null};
_.v.computeViewerRegex_=function(O){if(!O)return null;O=O.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var m=O.indexOf("@")===0&&_.V("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(m+O.replace(/ /g,"\\s*")+"|^"+O.replace(/ /g,"\\s*")+"$|^"+O.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+O.replace(/ /g,"\\s*")+"$|(?<=\\s)"+O.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.v.checkForStaleParticipants_=function(){var O=this;this.trimOldParticipants_();this.asyncHandle_&&P$e(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.mp(function(){O.checkForStaleParticipants_()},3E4))};
_.v.onChatMessage_=function(O){var m=this,G=Date.now()*1E3;O.forEach(function(B){if(B=_.b(B,GE9)){B=B.item;var Q=Object.keys(B)[0];m.SUPPORTED_ITEM_TYPES_.indexOf(Q)!=-1&&B[Q].timestampUsec>=G-m.PARTICIPANT_TIME_USEC_&&m.addParticipant(B)}},this);
this.checkForStaleParticipants_()};
_.v.trimOldParticipants_=function(){for(var O=Date.now()*1E3,m=this.participants.length-1;m>=0;m--){var G=this.participants[m];G=G[Object.keys(G)[0]];G.timestampUsec&&G.timestampUsec<O-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",m,1)}};
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],_.Jn.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],_.Jn.prototype,"viewerName",void 0);_.c([_.g({computed:"computeViewerRegex_(viewerName)"}),_.Y("design:type",Object)],_.Jn.prototype,"viewerRegex",void 0);_.c([_.g({value:function(){return[]},
notify:!0}),_.Y("design:type",Array)],_.Jn.prototype,"participants",void 0);_.c([_.DO({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Jn);var uXp=/.*([:@#].*?)$/,Vi=/\u00a0/g,jNu=String.fromCharCode(160),I6s={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"},bO=function(){var O=_.u.apply(this,arguments)||this;O.disabled=!1;O.liveChatRichMessageInput=null;O.messageInput=null;O.isValidWithNoInputText=!1;O.suggestions=[];O.emojiManager=_.UL;O.inputMethodEditorActive=
!1;O.suggestionIndex=-1;O.JSC$14114_lastSuggestionRange=null;return O};
_.X(bO,_.u);_.v=bO.prototype;_.v.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.v.attached=function(){_.qQ&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.v.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.v.dataChanged=function(){if(!this.ignoreColorMapping){var O=!1,m={},G;for(G in I6s)this.data&&this.data.hasOwnProperty(G)&&(m[I6s[G]]=this.colorFromDecimal(this.data[G]),O=!0);O&&_.n7(this.hostElement,m)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.v.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.v.colorFromDecimal=function(O){O=Math.floor(Number(O));return"rgba("+[O>>16&255,O>>8&255,O&255,(O>>24&255)/255].join()+")"};
_.v.preventDrag=function(O){O.dataTransfer&&(O.dataTransfer.dropEffect="none");O.preventDefault()};
_.v.preventResize=function(O){O.returnValue=!1};
_.v.onInputChange=function(){var O=this.characterCount,m=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&m&&m.remove();if(!m&&this.characterCount>this.maxCharacterLimit){var G=window.getSelection();if(G){var B=G.getRangeAt(0);G.removeAllRanges();G.addRange(B)}}if(G=this.getCurrentRange())B=this.calculateTextBeforeRange(G),this.completeEmojisInRange(G,B,!0)||this.updateSuggestions(G,B);B=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(B);
_.iP(this.hostElement,"yt-live-chat-message-input-change",B);m&&this.characterCount===0&&m.remove();G&&G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>O):G&&!G.collapsed&&G.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(O=this.input.childNodes.length-1;O>=0;O--)this.input.childNodes[O].nodeName==="BR"&&this.input.childNodes[O].remove()};
_.v.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.v.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var O=this.getCurrentRange();O&&O.commonAncestorContainer.parentElement.id==="input"&&O.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.v.mergeOverflowText=function(O){if(O){var m=document.createRange();m.selectNodeContents(O);m=m.extractContents();this.input.insertBefore(m,O)}};
_.v.checkRangeAtEndOfInput=function(){var O=this.getCurrentRange();if(O){var m=_.ZO(this.hostElement).querySelector("#overflow-text"),G=document.createRange();m&&m.previousSibling?m.previousSibling instanceof HTMLImageElement?G.selectNode(m.previousSibling):G.selectNodeContents(m.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?G.selectNode(this.input.lastChild):G.selectNodeContents(this.input.lastChild));G.collapse(!1);return G.isPointInRange(O.startContainer,
O.startOffset)}return!1};
_.v.handleOverflowText=function(O){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var m=_.ZO(this.hostElement).querySelector("#overflow-text"),G=this.getCurrentRange();this.input.normalize();O=this.checkRangeAtEndOfInput()&&O;this.mergeOverflowText(m);for(var B,Q=0,H=0,M,R=this.input.childNodes,x=0;x<R.length;x++){var t=R[x];t instanceof Text?(H+=t.textContent.length,H>this.maxCharacterLimit&&(B=t,Q=this.maxCharacterLimit+t.textContent.length-H)):t instanceof HTMLImageElement&&
(B=void 0,H=t.dataset.emojiId&&((B=this.data)==null?0:B.emojiCharacterCount)?H+this.data.emojiCharacterCount:H+t.alt.length,B=this.input,Q=x);if(H>this.maxCharacterLimit&&B){M=document.createRange();M.collapse(!1);m?(H=this.input.lastChild.previousSibling,H instanceof Text?M.setEnd(this.input.lastChild.previousSibling,H.textContent.length):H instanceof HTMLImageElement&&M.setEnd(this.input,this.input.childNodes.length-1)):M.selectNodeContents(this.input);M.setStart(B,Q);break}}M&&(B=!1,G&&(O=M.isPointInRange(G.startContainer,
G.startOffset-1)),m||(m=document.createElement("span"),m.id="overflow-text",m.textContent="",m.setAttribute("contenteditable","true"),_.ZO(_.ZO(this.hostElement).querySelector("#input")).appendChild(m),B=!0),m&&(G=M.extractContents(),m.insertBefore(G,m.firstChild),O&&m.firstChild&&(G=document.createRange(),B?G.setStartAfter(m.lastChild):G.setStartAfter(m.firstChild),G.collapse(!0),m=window.getSelection(),m.removeAllRanges(),m.addRange(G))))}};
_.v.checkForDuplicateSpans=function(){for(var O=0;O<this.input.childNodes.length;O++){var m=this.input.childNodes[O];if(m.nodeName==="SPAN"){var G=document.createRange();G.selectNodeContents(m);G=G.extractContents();this.input.insertBefore(G,m);m.remove()}}this.handleOverflowText(!0)};
_.v.getCurrentRange=function(){var O=window.getSelection();return O&&O.rangeCount?O.getRangeAt(0).cloneRange():null};
_.v.getInputRange=function(){var O=this.getCurrentRange();if(O){for(var m=O.commonAncestorContainer,G=!1,B=_.ZO(this.hostElement).querySelector("#input");m;){if(m===B){G=!0;break}m=m.parentNode}G||(O=null)}O||(O=this.getRangeAtEnd());return O};
_.v.getRangeAtEnd=function(){var O=document.createRange(),m=_.ZO(this.hostElement).querySelector("#input").lastChild;!m||m.nodeName!=="#text"&&m.nodeName!=="SPAN"?(O.selectNodeContents(_.ZO(this.hostElement).querySelector("#input")),O.collapse(!1)):m.nodeName==="#text"?O.setStart(m,m.textContent.length):O.setStart(m,m.childNodes.length);return O};
_.v.getChatParticipantSuggestions=function(O,m,G,B){var Q=_.V("live_chat_enable_handles_web_text_input_update");if(m)for(var H in m)if(H.indexOf(O)===0||Q&&H.indexOf(G+O)===0){var M=m[H],R=_.HX(M.authorName);B.push({suggestion:{author:!0,authorType:G,image:M.authorPhoto,alt:R,text:R}});if(B.length>=64)break}};
_.v.getSuggestions=function(O){var m=[],G=O.substring(0,3),B=J7e(_.UL,G,!0);if(B)for(var Q in B)if(Q.toLocaleLowerCase().indexOf(O)===0){var H=B[Q];if(H&&H.emojiId){if(H=zw_(_.UL,H.emojiId)){var M=void 0,R=void 0,x=void 0,t=void 0,W=((M=H.image)==null?0:(R=M.accessibility)==null?0:(x=R.accessibilityData)==null?0:x.label)||H.isCustomEmoji?(t=H.shortcuts)==null?void 0:t[0]:H.emojiId;m.push({suggestion:{emoji:!0,image:H.image,alt:W,text:Q,textToInsertWhenSelected:H.isCustomEmoji?Q:W}})}if(m.length>=
64)break}}if(!this.participantsManager)return null;if(G.indexOf("@")===0||G.indexOf("#")===0)B=G.charAt(0),O=O.substring(1),Q=_.V("live_chat_enable_handles_web_text_input_update"),G.indexOf("@")===0&&Q&&(Q=this.participantsManager.getAuthorsFromPrefix(G.substring(0,2)),this.getChatParticipantSuggestions(O,Q,B,m)),G=G.substring(1),G=this.participantsManager.getAuthorsFromPrefix(G),this.getChatParticipantSuggestions(O,G,B,m);return m?m.sort(function(Z,z){return z.suggestion.text<Z.suggestion.text?-1:
z.suggestion.text===Z.suggestion.text?0:1}):null};
_.v.insertSuggestion=function(O){var m=_.V("live_chat_enable_handles_web_text_input_update"),G=O.authorType;m=O.text.indexOf(G)===0&&m?O.text+jNu:G+O.text+jNu;O.emoji?this.insertTextAtRange(this.JSC$14114_lastSuggestionRange,O.textToInsertWhenSelected||""):O.author&&this.insertTextAtRange(this.JSC$14114_lastSuggestionRange,m)};
_.v.updateSuggestionsAtCaret=function(){var O=this.getCurrentRange();O&&this.updateSuggestions(O,this.calculateTextBeforeRange(O))};
_.v.offsetStartOfRangeBy=function(O,m){for(;m>0;)if(O.startOffset-m>=0){O.setStart(O.startContainer,O.startOffset-m);break}else{m=O.startContainer instanceof HTMLImageElement?m-O.startContainer.alt.length:m-O.startOffset;var G=O.startContainer.previousSibling;if(!G){O.setStart(O.startContainer,0);break}if(_.V("live_chat_require_space_for_autocomplete_emoji")){var B=void 0,Q=void 0;O.setStart(G,((B=G)==null?void 0:(Q=B.textContent)==null?void 0:Q.length)||0)}else O.setStart(G,G.childNodes.length||
0)}};
_.v.updateSuggestions=function(O,m){var G=this;this.JSC$14114_lastSuggestionRange&&(this.JSC$14114_lastSuggestionRange.detach(),this.JSC$14114_lastSuggestionRange=null);if((m=uXp.exec(m))&&m.length&&(m=m[m.length-1].toLocaleLowerCase(),m.length>2&&(this.offsetStartOfRangeBy(O,m.length),this.JSC$14114_lastSuggestionRange=O,(O=this.getSuggestions(m))&&O.length))){this.suggestions=O;_.QA(this,function(){_.ZO(G.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(O.length-1);return}this.dropdown.opened=!1};
_.v.completeEmojisInRange=function(O,m,G){var B=m.replace(/[\s\xa0]+$/,"");m=m.length-B.length;B=B.split(" ");B=B[B.length-1].trim().toLocaleLowerCase();var Q=B.lastIndexOf(":");if(G&&!m&&Q!==B.length-1)return!1;Q!==-1&&(G=B.lastIndexOf(":",Q-1),G!==-1&&(B=B.substring(G)));if((G=_.qk(_.UL,B))&&G.emojiId){G=zw_(_.UL,G.emojiId)||null;this.offsetStartOfRangeBy(O,B.length+m);var H,M,R,x;B=(((H=G)==null?0:H.isCustomEmoji)?(M=G)==null?void 0:(R=M.shortcuts)==null?void 0:R[0]:(x=G)==null?void 0:x.emojiId)||
"";m&&(B+=jNu);this.insertTextAtRange(O,B);this.dropdown.opened=!1;return!0}return!1};
_.v.onSuggestion=function(O){this.insertSuggestion(O.detail);this.dropdown.opened=!1};
_.v.onKeyPress=function(O){O.keyCode===13&&(O.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.iP(this.hostElement,"yt-live-chat-send-message"))};
_.v.completeEmojis=function(){var O=document.createRange(),m=_.ZO(this.hostElement).querySelector("#input").lastChild;m?O.setStart(m,m.childNodes.length):(O.selectNodeContents(_.ZO(this.hostElement).querySelector("#input")),O.collapse(!1));this.completeEmojisInRange(O,this.calculateTextBeforeRange(O),_.V("live_chat_require_space_for_autocomplete_emoji"))};
_.v.maybePreventTextFormatting=function(O){!_.ZM||!O.ctrlKey&&!O.metaKey||O.keyCode!==66&&O.keyCode!==73||(O.stopImmediatePropagation(),O.preventDefault())};
_.v.onKeyDown=function(O){this.maybePreventTextFormatting(O);if(this.dropdown.opened)switch(O.keyCode){case 27:this.dropdown.opened=!1;O.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;O.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);O.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),O.preventDefault()}};
_.v.onKeyUp=function(O){switch(O.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.xF)this.onInputChange()};
_.v.changeSuggestionIndex=function(O){if(this.dropdown.opened){var m=_.ZO(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<m.children.length&&(m.children[this.suggestionIndex].active=!1);var G=this.suggestions.length;this.suggestionIndex=(O+G)%G;O=m.children[this.suggestionIndex];O.active=!0;m.scrollTop=O.offsetTop}};
_.v.onInputPaste=function(O){O.preventDefault();(O=O.clipboardData)&&O.types&&(O=O.getData("text/plain")||"",O=O.replace(/\n/g,""),this.insertText(O));(O=this.getCurrentRange())&&O.commonAncestorContainer.parentElement.id==="input"&&O.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.v.onFocus=function(){this._setFocused(!0)};
_.v.onBlur=function(){this._setFocused(!1)};
_.v.insertText=function(O){this.insertTextAtRange(this.getInputRange(),O)};
_.v.insertTextAtRange=function(O,m){if(O&&(O.collapsed||O.deleteContents(),m=_.UL.createDocumentFragment(m,!0,!1))){for(var G=_.K((m==null?void 0:m.childNodes)||[]),B=G.next();!B.done;B=G.next()){B=B.value;var Q=void 0,H=void 0,M=void 0,R=void 0,x=void 0;(M=(Q=window)==null?void 0:(H=Q.ShadyCSS)==null?void 0:H.ScopingShim)==null||(x=(R=M).scopeNode)==null||x.call(R,B,this.hostElement.localName)}G=m.lastChild;O.insertNode(m);this.focused||this.input.focus();if(this.focused){O=O.cloneRange();O.selectNodeContents(G);
O.collapse(!1);if(m=window.getSelection())m.removeAllRanges(),m.addRange(O);O.commonAncestorContainer.parentElement.id==="input"&&O.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}O=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(O);_.iP(this.hostElement,"yt-live-chat-message-input-change",O)}};
_.v.setLiveChatRichMessageInput=function(O){_.ZO(_.ZO(this.hostElement).querySelector("#input")).textContent="";if(O&&O.textSegments){for(var m=0;m<O.textSegments.length;m++){var G=O.textSegments[m];G.text?_.ZO(_.ZO(this.hostElement).querySelector("#input")).appendChild(_.UL.createDocumentFragment(G.text,!0,!1)):G.emojiId&&(G=_.xk(_.UL,G.emojiId))&&_.ZO(_.ZO(this.hostElement).querySelector("#input")).appendChild(_.UL.createEmoji(G,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.v.setText=function(O){this.setLiveChatRichMessageInput(O?{textSegments:[{text:O}]}:null)};
_.v.calculateTextBeforeRange=function(O){var m="",G=O.startContainer;if(G&&G instanceof Text){var B;m=((B=G.textContent)==null?void 0:B.substring(0,O.startOffset))||"";G=G.previousSibling}for(;G&&G instanceof Text;)m=G.textContent+m,G=G.previousSibling;return m.replace(Vi," ")};
_.v.calculateLiveChatRichMessageInput=function(){for(var O=[],m="",G=_.ZO(_.ZO(this.hostElement).querySelector("#input")).childNodes,B=0;B<G.length;B++){var Q=G[B];Q instanceof Text?m+=Q.textContent:Q instanceof HTMLImageElement&&(Q.dataset.emojiId?(m&&(O.push({text:m.replace(Vi," ")}),m=""),O.push({emojiId:Q.dataset.emojiId})):m+=Q.alt)}m&&O.push({text:m.replace(Vi," ")});if(G=_.ZO(this.hostElement).querySelector("#overflow-text")){m="";G=G.childNodes;for(B=0;B<G.length;B++)Q=G[B],Q instanceof Text?
m+=Q.textContent:Q instanceof HTMLImageElement&&(Q.dataset.emojiId?(m&&(O.push({text:m.replace(Vi," ")}),m=""),O.push({emojiId:Q.dataset.emojiId})):m+=Q.alt);m&&O.push({text:m.replace(Vi," ")})}return{textSegments:O}};
_.v.computeCharacterCount=function(O){if(!O||!O.textSegments)return 0;for(var m=0,G=0;G<O.textSegments.length;G++){var B=O.textSegments[G];if(B.text)m+=B.text.length;else if(B.emojiId){var Q=void 0;if((Q=this.data)==null?0:Q.emojiCharacterCount)m+=this.data.emojiCharacterCount;else{var H=Q=void 0,M=void 0;m+=((H=_.xk(_.UL,(Q=B)==null?void 0:Q.emojiId))==null?void 0:(M=H.shortcuts)==null?void 0:M[0].length)||0}}}return m};
_.v.characterCountChanged=function(){_.iP(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.v.focusedChanged=function(){this.hostElement.dispatchEvent(new _.zR("focused-changed",this.focused))};
_.v.focus=function(){this.setFocus(!1)};
_.v.focusAtEnd=function(){this.setFocus(!0)};
_.v.setFocus=function(O){O=O?this.getRangeAtEnd():this.getInputRange();_.ZO(this.hostElement).querySelector("#input").focus();var m=window.getSelection();m&&(m.removeAllRanges(),m.addRange(O))};
_.v.insertEmoji=function(O){var m,G=((O==null?0:O.isCustomEmoji)?(m=O.shortcuts)==null?void 0:m[0]:O==null?void 0:O.emojiId)||"";this.insertText(G)};
_.v.computeText=function(O){if(!O||!O.textSegments)return"";for(var m="",G=0;G<O.textSegments.length;G++){var B=O.textSegments[G];if(B.text)m+=B.text;else if(B.emojiId){var Q=void 0,H=void 0,M=void 0;m+=((H=_.xk(_.UL,(Q=B)==null?void 0:Q.emojiId))==null?void 0:(M=H.shortcuts)==null?void 0:M[0])||""}}return m};
_.v.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.vr.Object.defineProperties(bO.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.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}}});
bO.prototype.focusedChanged=bO.prototype.focusedChanged;bO.prototype.characterCountChanged=bO.prototype.characterCountChanged;bO.prototype.onSuggestion=bO.prototype.onSuggestion;bO.prototype.onMessageSet=bO.prototype.onMessageSet;bO.prototype.dataChanged=bO.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],bO.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],bO.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],bO.prototype,"disabled",void 0);_.c([_.T("disabled"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],bO.prototype,"inputTabIndex",null);_.c([_.T("data.maxCharacterLimit"),_.g({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],bO.prototype,"maxCharacterLimit",null);
_.c([_.T("liveChatRichMessageInput"),_.g({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],bO.prototype,"characterCount",null);_.c([_.T("maxCharacterLimit, characterCount"),_.g({readOnly:!0,notify:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],bO.prototype,"remainingCharacterCount",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],bO.prototype,"isChatMessageInput",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],bO.prototype,"inputExpanded",void 0);_.c([_.g({readOnly:!0,notify:!0}),_.Y("design:type",Object)],bO.prototype,"liveChatRichMessageInput",void 0);_.c([_.g(),_.Y("design:type",Object)],bO.prototype,"messageInput",void 0);_.c([_.g(),_.Y("design:type",Boolean)],bO.prototype,"ignoreColorMapping",void 0);_.c([_.T("characterCount"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bO.prototype,"hasText",null);
_.c([_.g(),_.Y("design:type",Object)],bO.prototype,"isValidWithNoInputText",void 0);_.c([_.T("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.g(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bO.prototype,"isInputValid",null);_.c([_.g({readOnly:!0,value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],bO.prototype,"focused",void 0);_.c([_.g(),_.Y("design:type",Array)],bO.prototype,"suggestions",void 0);
_.c([_.g(),_.Y("design:type",_.iO)],bO.prototype,"emojiManager",void 0);_.c([_.g(),_.Y("design:type",_.Jn)],bO.prototype,"participantsManager",void 0);_.c([_.g(),_.Y("design:type",Boolean)],bO.prototype,"noUnderline",void 0);_.c([_.g(),_.Y("design:type",Object)],bO.prototype,"inputMethodEditorActive",void 0);_.c([_.uc("#dropdown"),_.Y("design:type",Object)],bO.prototype,"dropdown",void 0);_.c([_.uc("#input"),_.Y("design:type",HTMLElement)],bO.prototype,"input",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bO.prototype,"dataChanged",null);_.c([_.Tw("messageInput"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bO.prototype,"onMessageSet",null);_.c([_.hG("yt-live-chat-select-suggestion"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],bO.prototype,"onSuggestion",null);
_.c([_.Tw("characterCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bO.prototype,"characterCountChanged",null);_.c([_.Tw("focused"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bO.prototype,"focusedChanged",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],bO);
_.p0p=_.y(bO,"yt-live-chat-text-input-field-renderer",function(){if(hw3===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;f6C===void 0&&(f6C=document.createElement("template"));var B=f6C;G.call(m,B.content.cloneNode(!0),O.content.firstChild);hw3=O}O=hw3;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var nQ=function(){var O=_.u.apply(this,arguments)||this;O.buttonOverrides={style:"overlay",type:"filled"};O.allowAnimations=!1;O.modern=_.V("web_button_rework_with_live");O.noPadding=!1;return O};
_.X(nQ,_.u);_.v=nQ.prototype;_.v.shouldSupportInlineActionButtons=function(){return!0};
_.v.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"}}}}};
_.v.ready=function(){var O=document.querySelector("yt-live-chat-app");O&&O.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.v.attached=function(){this.allowAnimations=!1};
_.v.dataChanged=function(){if(this.data){var O={"--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)};_.n7(this.hostElement,O);this.allowAnimations=!0}};
_.v.messageChanged=function(){var O,m=(O=this.data)==null?void 0:O.message;O=_.ZO(_.ZO(this.hostElement).querySelector("#message"));O.textContent="";m&&O.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(m))};
_.v.computeShowOnlyHeader=function(O,m){return!O||O.pdgLikeButton||O.replyButton||O.buyFlowButton?!1:this.isEmpty(O,m)&&!O.footer};
_.v.computeShowFooterDivider=function(O,m,G){return O?!!O.footer&&!this.isEmpty(O,m)&&!G:!1};
_.v.computeIsUserEditable=function(O){return!!O.inputField};
_.v.computeHasHeartButton=function(O){return(O==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(O==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(O==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.v.computeNoveltyImage=function(O){if(O.headerOverlayImage&&O.headerOverlayImage.thumbnails.length){var m=O.headerOverlayImage.thumbnails[0],G,B;if((G=O.pdgPurchasedNoveltyLoggingDirectives)==null?0:(B=G.loggingDirectives)==null?0:B.trackingParams){var Q,H;k8p((Q=O.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(H=Q.loggingDirectives)==null?void 0:H.trackingParams)}return m.width||0}return 0};
_.v.computeAuthorPhotoSize=function(O){return(O==null?0:O.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.v.inputFocus=function(){var O=_.ZO(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");O&&O.focus()};
_.v.inputInsertEmoji=function(O){var m=_.ZO(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");m&&m.insertEmoji(O)};
_.v.inputMessage=function(){var O=_.ZO(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),m;return O&&((m=this.data)==null?0:m.inputField)?(O.completeEmojis(),_.sf(O.liveChatRichMessageInput)):null};
_.v.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.v.isEmpty=function(O,m){return O?O.empty||!(O.message||O.inputField||m):!0};
_.v.onLowerBuyButtonClick=function(){var O,m=_.b((O=this.data)==null?void 0:O.buyButton,_.v3);m&&m.trackingParams&&!flf(m.command)&&(O=_.Ez(m.trackingParams))&&(m=_.yA())&&_.Gk(m,O)};
_.v.shouldSupportWholeItemClick=function(){return!0};
_.vr.Object.defineProperties(nQ.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
nQ.prototype.isDeletedChanged=nQ.prototype.isDeletedChanged;nQ.prototype.messageChanged=nQ.prototype.messageChanged;nQ.prototype.dataChanged=nQ.prototype.dataChanged;_.c([_.h(Kje.YtPdgLiveChatItemBehavior),_.Y("design:type",Object)],nQ.prototype,"ytPdgLiveChatItemBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.RF),_.Y("design:type",Object)],nQ.prototype,"ytLiveChatReduxBehavior",void 0);
_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],nQ.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],nQ.prototype,"data",void 0);_.c([_.g({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:l6e}),_.Y("design:type",Object)],nQ.prototype,"engagementState",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.Y("design:type",Boolean)],nQ.prototype,"isUserEditable",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.Y("design:type",Boolean)],nQ.prototype,"hasHeartButton",void 0);_.c([_.g({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],nQ.prototype,"showOnlyHeader",void 0);
_.c([_.g({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],nQ.prototype,"showFooterDivider",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],nQ.prototype,"allowAnimations",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],nQ.prototype,"dashboardMoneyFeed",void 0);_.c([_.g({computed:"computeNoveltyImage(data)"}),_.Y("design:type",Number)],nQ.prototype,"noveltyWidth",void 0);
_.c([_.g({computed:"computeAuthorPhotoSize(data)"}),_.Y("design:type",Number)],nQ.prototype,"authorPhotoSize",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],nQ.prototype,"modern",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],nQ.prototype,"noPadding",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nQ.prototype,"dataChanged",null);
_.c([_.Tw("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nQ.prototype,"messageChanged",null);_.c([_.T("data","dashboardMoneyFeed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],nQ.prototype,"hideLowerBumper",null);_.c([_.Tw("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nQ.prototype,"isDeletedChanged",null);
_.c([_.l({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],nQ);
_.y(nQ,"yt-live-chat-paid-message-renderer",function(){if(cO3===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;yOs===void 0&&(yOs=document.createElement("template"));var B=yOs;G.call(m,B.content.cloneNode(!0),O.content.firstChild);cO3=O}O=cO3;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var Snu;var EXC;var Xt=function(){var O=_.Iu.apply(this,arguments)||this;O._noAccessors=!0;return O};
_.X(Xt,_.Iu);Xt.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.kB("openPopupConfig")};
_.c([_.h(_.ko.YtOpenPopupBehavior),_.Y("design:type",Object)],Xt.prototype,"ytOpenPopupBehavior",void 0);_.c([_.p7()],Xt);_.fQ=[_.ko.YtOpenPopupBehavior,Xt.prototype];var L4s;var GM=[_.gH,Lio,_.B3,_.uu,_.GC,_.QR_,_.pf,_.aNs,_.Sk,$y5];_.V("web_watch_get_updated_metadata_response_processing")&&GM.push(_.Hi3);_.V("web_continuation_response_processing")&&GM.push(_.Dw);var uUp=new _.Us("RESPONSE_RECEIVED_COMMANDS"),Qvz=new _.Us("RESPONSE_RECEIVED_COMMANDS");var PoI="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),NUr=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],slO=["GET_UNSEEN_NOTIFICATION_COUNT"];var hn=function(){var O=_.Iu.apply(this,arguments)||this;O._noAccessors=!0;O.serviceEndpointHandlers=[];return O};
_.X(hn,_.Iu);hn.prototype.created=function(){var O=this;this.endpointHandlerActionMap={"yt-service-request":function(m,G,B,Q){var H;return Dn6(O.hostElement,m,G,B,Q,O.serviceEndpointHandlers,(H=O.onEntitiesUpdated)==null?void 0:H.bind(O))}}};
hn.prototype.attached=function(){_.NT(_.sJ.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
hn.prototype.detached=function(){_.PH(_.sJ.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.c([_.p7()],hn);_.C1s=[hn.prototype];var oXC,l6j=function(){return oXC!==void 0?oXC:oXC=document.createElement("template")};
document.head.appendChild(l6j().content);var a63;var k8e=document.head,y7m=k8e.appendChild,c78;if(a63===void 0){var Yn_=document.createElement("template");_.f(Yn_,"\x3c!--css-build:shady--\x3e");Yn_.content.insertBefore(l6j().content.cloneNode(!0),Yn_.content.firstChild);a63=Yn_}c78=a63;y7m.call(k8e,c78.content);var dg3,w0p=function(){return dg3!==void 0?dg3:dg3=document.createElement("template")};
document.head.appendChild(w0p().content);var ew$;var Dgj=document.head,sNs=Dgj.appendChild,Ne9;if(ew$===void 0){var P12=document.createElement("template");_.f(P12,"\x3c!--css-build:shady--\x3e");P12.content.insertBefore(w0p().content.cloneNode(!0),P12.content.firstChild);ew$=P12}Ne9=ew$;sNs.call(Dgj,Ne9.content);var F4p;_.lE("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.lE("sharingRendererButtons","buttonRenderer","ytd-button-renderer");F4p=_.V("web_button_rework")&&_.yE("BUTTON_REWORK")||_.V("web_button_rework_with_live");_.TR=function(){var O=_.u.apply(this,arguments)||this;O.isPressed=!1;O.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return O};
_.X(_.TR,_.u);_.v=_.TR.prototype;_.v.created=function(){this.showTooltips=!0};
_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.onHintIdChanged=function(){var O=this,m,G,B=(m=this.ytButtonBehavior.data)==null?void 0:(G=m.hint)==null?void 0:G.hintRenderer;if(B&&B.hintId){m=_.UB(this.hostElement,"yt-get-opened-popups-action");m=(m&&m.length===1?m[0]:[]).length>0;var Q=null;B.hintId!=="sponsor-pre-purchase"||m?B.hintId.startsWith("sponsor-post-purchase")&&!m?Q=XF$("membership-manage"):B.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!m&&(Q=XF$("membership-freebie-join")):Q=XF$("membership-join");Q&&_.ln.addLowPriorityJob(function(){for(var H=
_.K(Q),M=H.next();!M.done;M=H.next())O.ytComponentBehavior.resolveCommand(M.value)})}};
_.v.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.v.onYtNavigate=function(O){var m=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(O.detail.endpoint);m&&(O.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(m))};
_.v.onYtServiceRequestSent=function(O,m){this.handleServiceRequestActions(m);_.iP(this.hostElement,"yt-service-request-sent-button-renderer")};
_.v.onServiceRequestCompleted=function(O,m){this.handleServiceRequestActions(m);_.iP(this.hostElement,"yt-service-request-completed-button-renderer")};
_.v.updateButton=function(O){var m;if(O=(m=_.b(O,h79))==null?void 0:m.updatedButton)this.ytButtonBehavior.data=_.b(O,_.v3)};
_.v.handleUpdateButtonAction=function(O){var m=this.ytButtonBehavior.data;m.targetId&&O.updateButtonAction.targetId&&m.targetId===O.updateButtonAction.targetId&&this.updateButton(O)};
_.v.handleServiceRequestActions=function(O){if(O=O.actions)for(var m=0;m<O.length;m++)this.updateButton(O[m])};
_.vr.Object.defineProperties(_.TR,{template:{configurable:!0,enumerable:!0,get:function(){if(L4s===void 0){var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);L4s=O}O=L4s;return O}}});
_.TR.prototype.onServiceRequestCompleted=_.TR.prototype.onServiceRequestCompleted;_.TR.prototype.onYtServiceRequestSent=_.TR.prototype.onYtServiceRequestSent;_.TR.prototype.onYtNavigate=_.TR.prototype.onYtNavigate;_.TR.prototype.onPressedStateChanged=_.TR.prototype.onPressedStateChanged;_.TR.prototype.onHintIdChanged=_.TR.prototype.onHintIdChanged;_.c([_.g(),_.Y("design:type",Object)],_.TR.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],_.TR.prototype,"isPressed",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],_.TR.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.Klm.YtButtonBehavior),_.Y("design:type",Object)],_.TR.prototype,"ytButtonBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],_.TR.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],_.TR.prototype,"ytComponentBehavior",void 0);
_.c([_.h(FL.YtRenderButtonBehavior),_.Y("design:type",Object)],_.TR.prototype,"ytRenderButtonBehavior",void 0);_.c([_.Tw("data.hint.hintRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],_.TR.prototype,"onHintIdChanged",null);_.c([_.Tw("isPressed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],_.TR.prototype,"onPressedStateChanged",null);
_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],_.TR.prototype,"onYtNavigate",null);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],_.TR.prototype,"onYtServiceRequestSent",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],_.TR.prototype,"onServiceRequestCompleted",null);_.c([_.l({is:"ytd-button-renderer",disableElementRegistration:F4p})],_.TR);var gt=function(){var O=_.u.apply(this,arguments)||this;O.modern=_.V("web_button_rework_with_live");O.buttonOverrides={style:"overlay",type:"filled"};return O};
_.X(gt,_.u);_.v=gt.prototype;_.v.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"}}}}};
_.v.ready=function(){var O=document.querySelector("yt-live-chat-app");O&&O.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.v.dataChanged=function(){if(this.data&&this.data.sticker){var O=_.Uf(this.data.sticker.thumbnails,this.stickerWidth);O||_.Rrz(O).thenCatch(function(){_.ay(new _.j9("Failed to load Super Sticker with url",O))})}};
_.v.computeAuthorPhotoSize=function(O){return(O==null?0:O.isV2Style)?32:40};
_.v.computeIsV2Style=function(O){return(O==null?0:O.isV2Style)?!0:!1};
_.v.onStickerLoaded=function(O){var m,G,B;(m=_.Mj(O))==null||(G=m.parentNode)==null||(B=G.classList)==null||B.add("sticker-loaded")};
_.v.computeNoveltyImageWidth=function(O){var m,G;if(O==null?0:(m=O.headerOverlayImage)==null?0:(G=m.thumbnails)==null?0:G.length){m=O.headerOverlayImage.thumbnails[0];var B,Q;if((B=O.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Q=B.loggingDirectives)==null?0:Q.trackingParams){var H,M;k8p((H=O.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(M=H.loggingDirectives)==null?void 0:M.trackingParams)}return m.width||0}return 0};
_.v.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.v.updateStickerStyles=function(){var O=this.data;O&&(O={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(O.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(O.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(O.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(O.authorNameTextColor)},
_.n7(this.hostElement,O))};
_.v.onBuyButtonClick=function(){var O,m=_.b((O=this.data)==null?void 0:O.buyButton,_.v3);m&&!flf(m.command)&&this.ytRendererBehavior.logExplicitClick(m)};
_.v.shouldSupportWholeItemClick=function(){return!0};
_.vr.Object.defineProperties(gt.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 O;return((O=this.data)==null?0:O.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
gt.prototype.updateStickerStyles=gt.prototype.updateStickerStyles;gt.prototype.isDeletedChanged=gt.prototype.isDeletedChanged;gt.prototype.onStickerLoaded=gt.prototype.onStickerLoaded;gt.prototype.dataChanged=gt.prototype.dataChanged;_.c([_.h(Kje.YtPdgLiveChatItemBehavior),_.Y("design:type",Object)],gt.prototype,"ytPdgLiveChatItemBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],gt.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],gt.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],gt.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],gt.prototype,"data",void 0);
_.c([_.g({computed:"computeAuthorPhotoSize(data)"}),_.Y("design:type",Number)],gt.prototype,"authorPhotoSize",void 0);_.c([_.g(),_.Y("design:type",Boolean)],gt.prototype,"isDeleted",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],gt.prototype,"dashboardMoneyFeed",void 0);_.c([_.g({computed:"computeNoveltyImageWidth(data)"}),_.Y("design:type",Number)],gt.prototype,"noveltyWidth",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],gt.prototype,"modern",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.Y("design:type",Boolean)],gt.prototype,"isV2Style",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gt.prototype,"dataChanged",null);_.c([_.hG("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],gt.prototype,"onStickerLoaded",null);
_.c([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],gt.prototype,"stickerWidth",null);_.c([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],gt.prototype,"stickerHeight",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gt.prototype,"hasHeartButton",null);_.c([_.T("data","dashboardMoneyFeed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gt.prototype,"hideLowerBumper",null);
_.c([_.Tw("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gt.prototype,"isDeletedChanged",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gt.prototype,"updateStickerStyles",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],gt);
_.y(gt,"yt-live-chat-paid-sticker-renderer",function(){if(EXC===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Snu===void 0&&(Snu=document.createElement("template"));var B=Snu;G.call(m,B.content.cloneNode(!0),O.content.firstChild);EXC=O}O=EXC;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var A72;var O8_;var mnC,GWp=function(){return mnC!==void 0?mnC:mnC=document.createElement("template")};
document.head.appendChild(GWp().content);var BU8,Ql3=function(){return BU8!==void 0?BU8:BU8=document.createElement("template")};
document.head.appendChild(Ql3().content);var H88;var vj3,K6C=function(){return vj3!==void 0?vj3:vj3=document.createElement("template")};
document.head.appendChild(K6C().content);var $np;var M4U=document.head,rrs=M4U.appendChild,Rdp;if($np===void 0){var i8o=document.createElement("template");_.f(i8o,"\x3c!--css-build:shady--\x3e");i8o.content.insertBefore(K6C().content.cloneNode(!0),i8o.content.firstChild);$np=i8o}Rdp=$np;rrs.call(M4U,Rdp.content);var xnu=document.head,qNs=xnu.appendChild,UnC;if(H88===void 0){var uO=document.createElement("template");_.f(uO,"\x3c!--css-build:shady--\x3e");uO.content.insertBefore(Ql3().content.cloneNode(!0),uO.content.firstChild);uO.content.insertBefore(GWp().content.cloneNode(!0),uO.content.firstChild);H88=uO}UnC=H88;qNs.call(xnu,UnC.content);var j6=function(){var O=_.Iu.apply(this,arguments)||this;O.focusedIndex=0;O.verticalOffset=0;O.verticalAlign="top";O.dynamicAlign=!0;return O};
_.X(j6,_.Iu);j6.prototype.emojiUrl=function(O){O=_.xk(this.emojiManager,O);if(!O)return"";var m;O=(m=O.image)==null?void 0:m.thumbnails;return _.Uf(O,24)||""};
var t4_=function(O){var m;O.emojiVariants&&(m=O.data)!=null&&m.target&&_.QA(O,function(){O.set("verticalOffset",-1*O.hostElement.clientHeight);var G=_.ZO(O.hostElement).querySelector("img");G&&G.focus()})};
_.v=j6.prototype;_.v.onKeyboardEnter=function(){};
_.v.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.v.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.v.onKeyDown=function(O){switch(O.keyCode){case 13:this.onKeyboardEnter();O.preventDefault();break;case 40:this.changeFocus(1);O.preventDefault();break;case 38:this.changeFocus(-1);O.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.v.onYtEmojiSelect=function(O){var m=this,G,B,Q,H,M,R,x,t;return _.r(function(W){if(W.nextAddress==1)return B=(G=m.data)==null?void 0:G.emoji,M=((Q=B)==null?void 0:Q.stickyPrefId)||((H=B)==null?void 0:H.emojiId),x=(R=O.detail)==null?void 0:R.emojiId,M&&x&&M!==x?W.yield((t=m.emojiManager)==null?void 0:VD_(t,B,x),2):W.return();_.xc(m.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[B,x]);_.ju(W)})};
_.v.changeFocus=function(O){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+O+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(O=_.ZO(this.hostElement).querySelector("#variants"))&&O.children[this.focusedIndex].focus())};
_.vr.Object.defineProperties(j6.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
j6.prototype.onYtEmojiSelect=j6.prototype.onYtEmojiSelect;j6.prototype.onKeyDown=j6.prototype.onKeyDown;j6.prototype.onEmojiVariantsChanged=j6.prototype.onEmojiVariantsChanged;j6.prototype.onVerticalOffsetOrPositionTargetChanged=j6.prototype.onVerticalOffsetOrPositionTargetChanged;_.c([_.h(_.Mc),_.Y("design:type",Object)],j6.prototype,"ironOverlayBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],j6.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",_.iO)],j6.prototype,"emojiManager",void 0);
_.c([_.g(),_.Y("design:type",Object)],j6.prototype,"emojiVariants",void 0);_.c([_.g(),_.Y("design:type",Object)],j6.prototype,"focusedIndex",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j6.prototype,"positionTarget",null);_.c([_.g({reflectToAttribute:!0}),_.T("verticalOffset","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],j6.prototype,"isPositioned",null);_.c([_.g(),_.Y("design:type",Object)],j6.prototype,"verticalOffset",void 0);
_.c([_.g(),_.Y("design:type",Object)],j6.prototype,"verticalAlign",void 0);_.c([_.g(),_.Y("design:type",Object)],j6.prototype,"dynamicAlign",void 0);_.c([_.Tw("verticalOffset","positionTarget"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j6.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.c([_.Tw("emojiVariants"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j6.prototype,"onEmojiVariantsChanged",null);
_.c([_.hG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],j6.prototype,"onKeyDown",null);_.c([_.hG("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype",Promise)],j6.prototype,"onYtEmojiSelect",null);_.c([_.p7()],j6);var W6$=[j6.prototype];var Z8H;var zdo;var Jr3=/medium-light|medium-dark|light|medium|dark/,V4e=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,b8p=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),I4=function(){var O=_.u.apply(this,arguments)||this;O.userSelection={left:null,right:null};O.scrollAction="lock";O.isEmojiDraftInProgress=!1;return O};
_.X(I4,_.u);_.v=I4.prototype;_.v.onClick=function(O){O=_.Mj(O);O instanceof HTMLImageElement&&this.selectOrUpdateEmoji(O)};
_.v.selectOrUpdateEmoji=function(O){var m=O.getAttribute("selection");m&&(m==="default"?_.iP(this.hostElement,"yt-emoji-select",_.xk(this.emojiManager,O.id)):m==="left"?this.userSelection=Object.assign({},this.userSelection,{left:O.src}):m==="right"?this.userSelection=Object.assign({},this.userSelection,{right:O.src}):m==="user"&&this.userSelection.left&&this.userSelection.right&&_.iP(this.hostElement,"yt-emoji-select",_.xk(this.emojiManager,O.id)))};
_.v.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.v.onMultiSelectorThumbnailRowChanged=function(){var O,m,G;((O=this.data)==null?0:(m=O.emoji)==null?0:(G=m.multiSelectorThumbnailRow)==null?0:G.length)&&this.openSelector()};
_.v.getThumbnailFromEmojiRow=function(O){var m,G;return(O==null?void 0:(m=O.thumbnails)==null?void 0:(G=m[0])==null?void 0:G.url)||""};
_.v.getEmojiAltTextForPartialSelector=function(O){var m;return((m=this.getThumbnailFromEmojiRow(O).match(V4e))==null?void 0:m[0])||""};
_.v.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.v.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.v.getRowSelection=function(O){return["left","right"][O]};
_.v.getIdFromComposedEmoji=function(O){return(O==null?void 0:O.emojiId)||""};
_.v.getEmojiFromPartialSelections=function(O,m){if(!O&&!m)return null;var G,B,Q=(G=this.data)==null?void 0:(B=G.emoji)==null?void 0:B.variantIds;if(!Q||!Q.length)return null;var H;O=(H=O.match(Jr3))==null?void 0:H[0];var M;m=(M=m.match(Jr3))==null?void 0:M[0];if(!O||!m)return null;var R=b8p.get(O);M=b8p.get(m);if(R===M){M=Array.from(b8p.values()).filter(function(t){return t!==R}).join("|");
var x=new RegExp("^((?!("+M+")).)*"+R+"$")}else x=new RegExp(R+".*"+M);return(Q=Q.find(function(t){return x.test(t)}))&&_.xk(this.emojiManager,Q)||null};
_.v.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var O,m=this.ytEmojiSelectorBehavior.emojiUrl(((O=this.data.emoji)==null?void 0:O.emojiId)||"");_.ZO(this.hostElement).querySelector('[selection="user"]').src.includes(m)||(this.isEmojiDraftInProgress=!0)}};
_.v.onDomChange=function(){t4_(this.ytEmojiSelectorBehavior)};
_.v.getFocusableElements=function(){return _.ZO(this.hostElement).querySelectorAll("img").filter(function(O){return O.getAttribute("role")==="option"})};
_.v.changeFocus=function(O){var m=this.getFocusableElements();m!=null&&m.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+O+m.length)%m.length,this.ytEmojiSelectorBehavior.focusedIndex<m.length&&(O=m[this.ytEmojiSelectorBehavior.focusedIndex])&&O.focus())};
_.v.onKeyboardEnter=function(){var O=this.getFocusableElements();O!=null&&O.length&&(O=O[this.ytEmojiSelectorBehavior.focusedIndex])&&O instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(O),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.vr.Object.defineProperties(I4.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var O=this,m,G,B;return this.emojiManager&&((m=this.data)==null?0:(G=m.emoji)==null?0:(B=G.variantIds)==null?0:B.length)?this.data.emoji.variantIds.map(function(Q){return!!Q&&_.xk(O.emojiManager,Q)}).filter(function(Q){return!!Q}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var O,m=(O=this.userSelection)==null?void 0:O.left,G;O=(G=this.userSelection)==null?void 0:G.right;return m&&O?this.getEmojiFromPartialSelections(m,O):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.composedEmojiSelection)==null?0:O.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var m;O=(m=this.userSelection)==null?void 0:m.left;var G;m=(G=this.userSelection)==null?void 0:G.right;if(!O&&!m){var B;return this.ytEmojiSelectorBehavior.emojiUrl(((B=this.data.emoji)==null?void 0:B.emojiId)||"")}return O&&!m?O:!O&&m?m:""}}});
I4.prototype.onMultiSelectorThumbnailRowChanged=I4.prototype.onMultiSelectorThumbnailRowChanged;I4.prototype.onClick=I4.prototype.onClick;_.c([_.h(_.Mc),_.Y("design:type",Object)],I4.prototype,"ironOverlayBehavior",void 0);_.c([_.h(W6$),_.Y("design:type",Object)],I4.prototype,"ytEmojiSelectorBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],I4.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",_.iO)],I4.prototype,"emojiManager",void 0);
_.c([_.g(),_.Y("design:type",Object)],I4.prototype,"userSelection",void 0);_.c([_.g(),_.Y("design:type",Object)],I4.prototype,"scrollAction",void 0);_.c([_.g(),_.Y("design:type",Object)],I4.prototype,"isEmojiDraftInProgress",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I4.prototype,"emojiVariants",null);_.c([_.T("data","userSelection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I4.prototype,"composedEmojiSelection",null);
_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],I4.prototype,"onClick",null);_.c([_.Tw("data.emoji.multiSelectorThumbnailRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I4.prototype,"onMultiSelectorThumbnailRowChanged",null);_.c([_.T("data","userSelection","composedEmojiSelection"),_.Y("design:type",String),_.Y("design:paramtypes",[])],I4.prototype,"draftEmojiUrl",null);
_.c([_.DO({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],I4);
_.y(I4,"yt-emoji-multi-person-selector",function(){if(zdo===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Z8H===void 0&&(Z8H=document.createElement("template"));var B=Z8H;G.call(m,B.content.cloneNode(!0),O.content.firstChild);zdo=O}O=zdo;return O},{mode:2});var njH;var XVH;var pQ=function(){var O=_.u.apply(this,arguments)||this;O.tooltip_=null;return O};
_.X(pQ,_.u);_.v=pQ.prototype;_.v.dataChanged_=function(){var O;if((O=this.data)==null?0:O.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.ZO(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.bc)(this.tooltip_).textContent=this.data.tooltip};
_.v.computeTargetId=function(){var O;return((O=this.data)==null?void 0:O.targetId)||""};
_.v.computeId_=function(O){return O};
_.v.computeIcon_=function(O){return _.bK(O)};
_.v.onTap_=function(){this.active=!this.active;_.iP(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.v.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("active-changed",this.active))};
_.vr.Object.defineProperties(pQ.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var O,m;if((O=this.data)==null?0:(m=O.icon)==null?0:m.iconType)return this.data.icon.iconType==="SUPER_STICKER";var G,B;return((G=this.data)==null?void 0:(B=G.icon)==null?void 0:B.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
pQ.prototype.activeChangedForBinding=pQ.prototype.activeChangedForBinding;pQ.prototype.dataChanged_=pQ.prototype.dataChanged_;_.c([_.h(_.iL.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],pQ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],pQ.prototype,"data",void 0);_.c([_.g({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.Y("design:type",String)],pQ.prototype,"id",void 0);
_.c([_.g({computed:"computeTargetId(data.targetId)"}),_.Y("design:type",String)],pQ.prototype,"targetId",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],pQ.prototype,"active",void 0);_.c([_.g({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.Y("design:type",String)],pQ.prototype,"icon",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pQ.prototype,"dataChanged_",null);
_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],pQ.prototype,"iconFilled",null);_.c([_.Tw("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pQ.prototype,"activeChangedForBinding",null);_.c([_.DO({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],pQ);
_.y(pQ,"yt-emoji-picker-category-button-renderer",function(){if(XVH===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;njH===void 0&&(njH=document.createElement("template"));var B=njH;G.call(m,B.content.cloneNode(!0),O.content.firstChild);XVH=O}O=XVH;return O},{mode:2});var fjC;var hdH;var S6=function(){var O=_.u.apply(this,arguments)||this;O.ariaLabel=null;O.ariaActivedescendant=null;O.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};O.JSC$14179_ignoreNextFocus_=!1;O.longPressTimeoutId=-1;return O};
_.X(S6,_.u);_.v=S6.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.v.emojiChanged_=function(){this.changeFocus_(0,!1);for(var O=_.uK(),m=0;m<this.emoji.length;m++){var G={veType:88013,elementIndex:m},B=this.emoji[m];B.isCustomEmoji&&(B=document.querySelector(("#"+B.emojiId).replace("/","\\/")))&&(G=_.gu(O,G))&&(B.visualElement=G)}};
_.v.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.v.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.v.emojiSkinToneChanged_=function(O){this.skinTone=O};
_.v.dataChanged=function(){this.data&&this.data.emojiData&&W4o(this.emojiManager,this.data.emojiData)};
_.v.emojiUrl=function(O){O=this.getEmoji(O);if(!O)return"";var m;O=(m=O.image)==null?void 0:m.thumbnails;return _.Uf(O,24)||""};
_.v.emojiAlt=function(O){var m=this.get("image.accessibility.accessibilityData.label",O);return m?m:O.isCustomEmoji?O.shortcuts[0]:O.emojiId};
_.v.emojiAriaLabel=function(O){return O.shortcuts?O.shortcuts[0]:""};
_.v.emojiAriaSelected=function(O,m,G){return O&&G==m?"true":"false"};
_.v.getEmoji=function(O){if(this.emojiManager)return this.shouldUseStickyPreferences?zw_(this.emojiManager,O):qd(this.emojiManager,O)};
_.v.computeId_=function(O){return O.categoryId||""};
_.v.computeEmoji=function(O){var m=this;return this.emojiManager?O.emojiIds?O.emojiIds.map(function(G){return G?_.xk(m.emojiManager,G):null}).filter(iw5):O.emojiData?O.emojiData.map(function(G){var B=!!G.emojiId&&_.xk(m.emojiManager,G.emojiId);
return B?Object.assign({},B,G):null}).filter(iw5):[]:[]};
_.v.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.v.computeAriaLabel_=function(O){return _.HX(O)};
_.v.computeAriaActivedescendant_=function(O,m){return O&&O[m]?O[m].emojiId||"":""};
_.v.handleLongPressEmojiWithVariants=function(O,m){this.changeFocusToEmoji(O.emojiId,!1);this.openVariantSelector(O,m)};
_.v.onMouseDown=function(O){var m=this;this.hostElement!==document.activeElement&&(this.JSC$14179_ignoreNextFocus_=!0);if(O.button===0){var G=_.Mj(O);if(G instanceof HTMLImageElement){var B=_.ZO(this.hostElement).querySelector("#repeat").itemForElement(G);this.emojiContainsVariants(B)&&(this.longPressTimeoutId=setTimeout(function(){m.handleLongPressEmojiWithVariants(B,G)},500))}}};
_.v.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.v.onFocus=function(){this.JSC$14179_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14179_ignoreNextFocus_=!1};
_.v.onBlur_=function(){this.showFocus=!1};
_.v.emojiContainsVariants=function(O){return!!(O&&O.variantIds&&O.variantIds.length)};
_.v.onClick=function(O){clearTimeout(this.longPressTimeoutId);O=_.Mj(O);if(O instanceof HTMLImageElement){var m=O.id;this.changeFocusToEmoji(m,!1);var G=this.getEmoji(m),B;if(B=this.shouldUseStickyPreferences&&this.emojiContainsVariants(G)){var Q;B=!((Q=this.emojiManager.emojiMap[m])!=null&&Q.stickyPrefId)}B?(Q=_.ZO(this.hostElement).querySelector("#repeat").itemForElement(O),this.openVariantSelector(Q,O)):_.iP(this.hostElement,"yt-emoji-select",G)}};
_.v.isActiveEmojiWithVariants=function(O,m){return O&&m?m.stickyPrefId?O===m.stickyPrefId:O===m.emojiId:!1};
_.v.onCloseEmojiVariantSelector=function(O){this.activeEmojiWithVariantsId===O&&(this.activeEmojiWithVariantsId="")};
_.v.onMouseOver_=function(O){O=_.Mj(O);O instanceof HTMLImageElement&&_.iP(this.hostElement,"yt-emoji-hover",_.xk(this.emojiManager,O.id))};
_.v.changeFocus_=function(O,m){this.focusedIndex=(this.focusedIndex+O+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(O=this.emoji[this.focusedIndex],m&&(this.showFocus=!0,_.ZO(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.iP(this.hostElement,"yt-emoji-hover",O)))};
_.v.changeFocusToEmoji=function(O,m){if(O){var G=this.emoji.findIndex(function(B){return B.emojiId===O});
G!==-1&&this.changeFocus_(G-this.focusedIndex,m)}};
_.v.onKeyDown_=function(O){switch(O.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var m=this.emoji[this.focusedIndex];if(m&&m.emojiId){if(this.emojiContainsVariants(m)){var G=_.ZO(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(m,G)}else _.iP(this.hostElement,"yt-emoji-select",qd(this.emojiManager,m.emojiId)),this.hostElement.focus();O.preventDefault()}}break;case 40:this.changeFocus_(1,!0);O.preventDefault();break;case 38:this.changeFocus_(-1,!0),
O.preventDefault()}};
_.v.onEmojiStickyPreferenceChanged=function(O,m){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&O.emojiId&&O.variantIds&&O.variantIds.includes(m)&&this.activeEmojiWithVariantsId!==m&&this.setStickyEmojiPreference(O.emojiId,m)};
_.v.openVariantSelector=function(O,m){this.activeEmojiWithVariantsId=O.stickyPrefId||O.emojiId||"";_.iP(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:O,target:m})};
_.v.setStickyEmojiPreference=function(O,m){if(this.data){var G=this.emoji.findIndex(function(Q){return Q.emojiId===O});
if(G!==-1){var B=this.emoji[G];B.stickyPrefId=m;this.set("emoji."+G,Object.assign({},B));this.activeEmojiWithVariantsId=m}}};
S6.prototype.onKeyDown_=S6.prototype.onKeyDown_;S6.prototype.onMouseOver_=S6.prototype.onMouseOver_;S6.prototype.onClick=S6.prototype.onClick;S6.prototype.onBlur_=S6.prototype.onBlur_;S6.prototype.onFocus=S6.prototype.onFocus;S6.prototype.onMouseUp=S6.prototype.onMouseUp;S6.prototype.onMouseDown=S6.prototype.onMouseDown;S6.prototype.dataChanged=S6.prototype.dataChanged;S6.prototype.disableIncrementalLoadingChanged_=S6.prototype.disableIncrementalLoadingChanged_;S6.prototype.emojiManagerChanged_=S6.prototype.emojiManagerChanged_;
S6.prototype.emojiChanged_=S6.prototype.emojiChanged_;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],S6.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],S6.prototype,"data",void 0);_.c([_.g({computed:"computeId_(data)"}),_.Y("design:type",String)],S6.prototype,"id",void 0);_.c([_.g({computed:"computeEmoji(data)"}),_.Y("design:type",Array)],S6.prototype,"emoji",void 0);_.c([_.g(),_.Y("design:type",Number)],S6.prototype,"skinTone",void 0);
_.c([_.g(),_.Y("design:type",_.iO)],S6.prototype,"emojiManager",void 0);_.c([_.g(),_.Y("design:type",Boolean)],S6.prototype,"disableIncrementalLoading",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],S6.prototype,"focusedIndex",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],S6.prototype,"showFocus",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.Y("design:type",Object)],S6.prototype,"ariaLabel",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.Y("design:type",Object)],S6.prototype,"ariaActivedescendant",void 0);_.c([_.g({value:60}),_.Y("design:type",Number)],S6.prototype,"domRepeatTargetFramerate",void 0);_.c([_.g({value:1}),_.Y("design:type",Number)],S6.prototype,"domRepeatInitialCount",void 0);_.c([_.g({value:""}),_.Y("design:type",String)],S6.prototype,"activeEmojiWithVariantsId",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],S6.prototype,"shouldUseStickyPreferences",void 0);_.c([_.Tw("emoji"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S6.prototype,"emojiChanged_",null);_.c([_.Tw("emojiManager"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S6.prototype,"emojiManagerChanged_",null);
_.c([_.Tw("disableIncrementalLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S6.prototype,"disableIncrementalLoadingChanged_",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S6.prototype,"dataChanged",null);_.c([_.hG("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],S6.prototype,"onMouseDown",null);
_.c([_.hG("mouseup"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S6.prototype,"onMouseUp",null);_.c([_.hG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S6.prototype,"onFocus",null);_.c([_.hG("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S6.prototype,"onBlur_",null);
_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],S6.prototype,"onClick",null);_.c([_.hG("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],S6.prototype,"onMouseOver_",null);_.c([_.hG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],S6.prototype,"onKeyDown_",null);
_.c([_.DO({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],S6);
_.y(S6,"yt-emoji-picker-category-renderer",function(){if(hdH===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;fjC===void 0&&(fjC=document.createElement("template"));var B=fjC;G.call(m,B.content.cloneNode(!0),O.content.firstChild);hdH=O}O=hdH;return O},{mode:2});var TUo;var gjH;var ubm;var jl$;var EL=function(){var O=_.u.apply(this,arguments)||this;O.ariaLabel=null;O.ariaActivedescendant=null;O.getFormattedStringRawText=_.HX;O.JSC$14185_ignoreNextFocus_=!1;return O};
_.X(EL,_.u);_.v=EL.prototype;_.v.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")};
_.v.emojiUrl=function(O){var m,G;O=(m=qd(this.emojiManager,O,!0))==null?void 0:(G=m.image)==null?void 0:G.thumbnails;return _.Uf(O,24)||""};
_.v.emojiAlt=function(O){var m=this.get("image.accessibility.accessibilityData.label",O);return m?m:O.isCustomEmoji?O.shortcuts[0]:O.emojiId};
_.v.emojiId=function(O){return"emoji"+O};
_.v.computeId_=function(O){return O.categoryId||""};
_.v.computeAriaActivedescendant_=function(O){return this.emoji&&O<this.emoji.length?this.emojiId(O):""};
_.v.emojiChanged_=function(){this.changeFocus_(0,!1);for(var O=_.uK(),m=0;m<this.emoji.length;m++){var G={veType:88013,elementIndex:m},B=this.emoji[m];B.isCustomEmoji&&(B=document.querySelector(("#"+B.emojiId).replace("/","\\/")))&&(G=_.gu(O,G))&&(B.visualElement=G)}};
_.v.computeEmoji_=function(O){var m=this;return this.emojiManager?O.emojiIds.map(function(G){return _.xk(m.emojiManager,G,!0)}).filter(xye):[]};
_.v.titleOffsetChanged_=function(){var O=this.hostElement.getBoundingClientRect(),m=_.ZO(this.hostElement).querySelector("#title").getBoundingClientRect();O=Math.max(0,Math.min(this.titleOffset,O.height-m.height));_.ZO(this.hostElement).querySelector("#title").style.top=O+"px"};
_.v.onEmojiMouseOver_=function(O){_.iP(this.hostElement,"yt-emoji-hover",O.model.item)};
_.v.onEmojiTap_=function(O){this.data.command&&(O=sNM(_.KR().resolve(_.v7(wE)),this.data.command,O),_.iP(this.hostElement,"yt-navigate",O))};
_.v.emojiAriaLabel=function(O){return O.shortcuts[0]};
_.v.emojiAriaSelected=function(O,m,G){return O&&G==m?"true":"false"};
_.v.changeFocus_=function(O,m){var G=this.emoji.length;this.focusedIndex=(this.focusedIndex+O+G)%G;O=this.emoji[this.focusedIndex];if(m){var B;(B=_.ZO(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||B.scrollIntoView(!1);_.iP(this.hostElement,"yt-emoji-hover",O)}};
_.v.onMouseDown_=function(){this.JSC$14185_ignoreNextFocus_=!0};
_.v.onFocus_=function(){this.JSC$14185_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14185_ignoreNextFocus_=!1};
_.v.onBlur_=function(){this.showFocus=!1};
_.v.onKeyDown_=function(O){switch(O.keyCode){case 13:this.onEmojiTap_(O);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);O.preventDefault();break;case 38:this.changeFocus_(-1,!0),O.preventDefault()}};
EL.prototype.onKeyDown_=EL.prototype.onKeyDown_;EL.prototype.onBlur_=EL.prototype.onBlur_;EL.prototype.onFocus_=EL.prototype.onFocus_;EL.prototype.onMouseDown_=EL.prototype.onMouseDown_;EL.prototype.onEmojiTap_=EL.prototype.onEmojiTap_;EL.prototype.titleOffsetChanged_=EL.prototype.titleOffsetChanged_;EL.prototype.emojiChanged_=EL.prototype.emojiChanged_;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],EL.prototype,"ytComponentBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],EL.prototype,"data",void 0);_.c([_.g({computed:"computeId_(data)"}),_.Y("design:type",String)],EL.prototype,"id",void 0);_.c([_.g({computed:"computeEmoji_(data)"}),_.Y("design:type",Array)],EL.prototype,"emoji",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],EL.prototype,"titleOffset",void 0);_.c([_.g({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.Y("design:type",Object)],EL.prototype,"ariaLabel",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.Y("design:type",Object)],EL.prototype,"ariaActivedescendant",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],EL.prototype,"showFocus",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],EL.prototype,"focusedIndex",void 0);_.c([_.g(),_.Y("design:type",_.iO)],EL.prototype,"emojiManager",void 0);
_.c([_.Tw("emoji"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EL.prototype,"emojiChanged_",null);_.c([_.Tw("titleOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EL.prototype,"titleOffsetChanged_",null);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],EL.prototype,"onEmojiTap_",null);
_.c([_.hG("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EL.prototype,"onMouseDown_",null);_.c([_.hG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EL.prototype,"onFocus_",null);_.c([_.hG("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EL.prototype,"onBlur_",null);
_.c([_.hG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],EL.prototype,"onKeyDown_",null);_.c([_.DO({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],EL);
_.y(EL,"yt-emoji-picker-upsell-category-renderer",function(){if(jl$===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;ubm===void 0&&(ubm=document.createElement("template"));var B=ubm;G.call(m,B.content.cloneNode(!0),O.content.firstChild);jl$=O}O=jl$;return O},{mode:2});var Ijm;var pV_;var LQ=function(){var O=_.u.apply(this,arguments)||this;O.scrollAction="lock";O.verticalAlign="top";return O};
_.X(LQ,_.u);_.v=LQ.prototype;_.v.onClick=function(O){O=_.Mj(O);O instanceof HTMLImageElement&&_.iP(this.hostElement,"yt-emoji-select",_.xk(this.emojiManager,O.id))};
_.v.openSelector=function(){this.ironOverlayBehavior.open()};
_.v.onDomChange=function(){t4_(this.ytEmojiSelectorBehavior)};
_.v.computeIsFamilySelector=function(O){var m;return(O==null?void 0:(m=O.emoji)==null?void 0:m.emojiId)==="\ud83d\udc6a"};
_.v.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var O=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];O&&O.emojiId&&(_.iP(this.hostElement,"yt-emoji-select",_.xk(this.emojiManager,O.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.vr.Object.defineProperties(LQ.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var O=this,m,G,B;return this.emojiManager&&((m=this.data)==null?0:(G=m.emoji)==null?0:(B=G.variantIds)==null?0:B.length)?this.data.emoji.variantIds.map(function(Q){return!!Q&&_.xk(O.emojiManager,Q)}).filter(function(Q){return!!Q}):[]}}});
LQ.prototype.onClick=LQ.prototype.onClick;_.c([_.h(_.Mc),_.Y("design:type",Object)],LQ.prototype,"ironOverlayBehavior",void 0);_.c([_.h(W6$),_.Y("design:type",Object)],LQ.prototype,"ytEmojiSelectorBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],LQ.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",_.iO)],LQ.prototype,"emojiManager",void 0);_.c([_.g(),_.Y("design:type",Object)],LQ.prototype,"scrollAction",void 0);_.c([_.g(),_.Y("design:type",Object)],LQ.prototype,"verticalAlign",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.Y("design:type",Boolean)],LQ.prototype,"isFamilySelector",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],LQ.prototype,"emojiVariants",null);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],LQ.prototype,"onClick",null);_.c([_.DO({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],LQ);
_.y(LQ,"yt-emoji-variant-selector",function(){if(pV_===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Ijm===void 0&&(Ijm=document.createElement("template"));var B=Ijm;G.call(m,B.content.cloneNode(!0),O.content.firstChild);pV_=O}O=pV_;return O},{mode:2});var SN2=/:/g,Ejs=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],CQ=function(){var O=_.u.apply(this,arguments)||this;O.emojiVariantSelector=null;O.emojiMultiPersonSelector=null;O.identity=_.LN;O.lastAnimationTime_=0;O.animationStart_=null;O.animationEnd_=null;return O};
_.X(CQ,_.u);_.v=CQ.prototype;
_.v.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}}};
_.v.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.UL)};
_.v.attached=function(){_.xF&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&ZAC(this.emojiManager)};
_.v.dataChanged=function(){var O;if((O=this.data)==null?0:O.categories){O=this.emojiManager;var m=this.getCustomEmojiIds();O.pickerCustomEmojiIds=[].concat(_.lS(iA3),_.lS(m))}};
_.v.getCustomEmojiIds=function(){var O,m=(O=this.data.categories)==null?void 0:O.find(function(H){var M;return((M=H.emojiPickerCategoryRenderer)==null?void 0:M.categoryId)&&Ejs.includes(H.emojiPickerCategoryRenderer.categoryId)}),G;
O=(G=this.data.categories)==null?void 0:G.find(function(H){return H.emojiPickerUpsellCategoryRenderer});
var B,Q;return[m==null?void 0:(B=m.emojiPickerCategoryRenderer)==null?void 0:B.emojiIds,O==null?void 0:(Q=O.emojiPickerUpsellCategoryRenderer)==null?void 0:Q.emojiIds].flat().filter(function(H){return!!H})};
_.v.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.v.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.v.updateCategoriesAndPlaceholderInternal=function(O,m){var G=this;O&&m&&(this.categories=O.categories||[],this.categoryButtons=O.categoryButtons||[],this.resetPlaceholder(),this.search="",_.mp(function(){G.updateButtons_()}))};
_.v.computeId_=function(O){return O.id||""};
_.v.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(O){return O.emojiPickerCategoryRenderer&&O.emojiPickerCategoryRenderer.emojiData}):!1};
_.v.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.v.onShowEmojiVariantSelector=function(O){var m=O.detail.emojiData;m.variantIds&&m.variantIds.length&&(m.multiSelectorThumbnailRow&&m.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:m,target:O.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:m,target:O.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.v.onIronOverlayClosed=function(O){var m=zw_(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");m&&O.composedPath&&(O.composedPath().includes(_.ZO(this.hostElement).querySelector("#emoji-variant-selector"))||O.composedPath().includes(_.ZO(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.xc(this.hostElement,"yt-close-emoji-variant-selector",[m.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.v.onEmojiVariantSelectorMouseup=function(O){var m=O.target.firstChild;this.variantSelectorOpened&&m&&_.mp(function(){m.noCancelOnOutsideClick=!1},100)};
_.v.onEmojiVariantSelectorMousedown=function(O){O=O.target.firstChild;this.variantSelectorOpened&&O&&(O.noCancelOnOutsideClick=!1)};
_.v.onSelectCategory_=function(O){var m=this.search!="";this.search="";for(var G=_.ZO(this.hostElement).querySelector("#categories").children,B=0;B<G.length;B++){var Q=G[B];if(Q.id==O.detail.categoryId){m?(_.ZO(this.hostElement).querySelector("#categories").scrollTop=Q.offsetTop,this.updateButtons_()):(this.animationStart_=_.ZO(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=Q.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.v.onEmojiHover_=function(O){this.placeholder=O.detail.shortcuts?O.detail.shortcuts[0]:""};
_.v.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.v.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.v.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.v.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.v.computeSearchCategory_=function(O){O=O.replace(SN2,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();O=O.split(" ");for(var m=[],G=this.emojiManager.emojis,B=0;B<G.length;B++){var Q=G[B];if(Q.searchTerms)for(var H=0;H<Q.searchTerms.length;H++){for(var M=Q.searchTerms[H].toLocaleLowerCase(),R=!1,x=0;x<O.length;x++)if(M.indexOf(O[x])!=-1){R=!0;break}if(R&&(!Q.isCustomEmoji||!Q.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(Q.emojiId))){m.push(Q.emojiId);
break}}}return{categoryId:-1,emojiIds:m}};
_.v.computeSearchEmptyMessage_=function(O,m){return O&&m&&m.emojiIds&&m.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.v.computeSearching_=function(O){return this.emojiManager&&O.replace(SN2,"").length>1};
_.v.computeSkinToneHidden=function(){var O;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((O=this.data)==null||!O.hideSkinTonePicker)};
_.v.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.v.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.v.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.v.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.v.selectSkinTone_=function(O){O=Number(O.target.getAttribute("tone"));this.set("emojiManager.skinTone",O);_.xc(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[O]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.v.skinToneChanged_=function(){_.ZO(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var O=_.ZO(this.hostElement).querySelector("#dropdown-content").children,m=0;m<O.length;m++)m===this.skinTone?O[m].setAttribute("selected",""):O[m].removeAttribute("selected")};
_.v.animateScroll_=function(O){this.lastAnimationTime_||(this.lastAnimationTime_=O);O-=this.lastAnimationTime_;O<200?(_.ZO(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*O/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.ZO(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.v.searchChanged_=function(){this.updateButtons_()};
_.v.updateButtons_=function(){var O=null;if(!this.search)for(var m=_.ZO(this.hostElement).querySelector("#categories").scrollTop,G=_.ZO(this.hostElement).querySelector("#categories").children,B=0;B<G.length;B++){var Q=G[B];Q.offsetTop<=m&&(O=Q.id)}m=_.ZO(this.hostElement).querySelector("#category-buttons").children;for(G=0;G<m.length;G++)B=m[G],B.active=B.id===O};
CQ.prototype.searchChanged_=CQ.prototype.searchChanged_;CQ.prototype.skinToneChanged_=CQ.prototype.skinToneChanged_;CQ.prototype.onEmojiHover_=CQ.prototype.onEmojiHover_;CQ.prototype.onSelectCategory_=CQ.prototype.onSelectCategory_;CQ.prototype.onShowEmojiVariantSelector=CQ.prototype.onShowEmojiVariantSelector;CQ.prototype.updateCategoriesAndPlaceholder_=CQ.prototype.updateCategoriesAndPlaceholder_;CQ.prototype.dataChanged=CQ.prototype.dataChanged;
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],CQ.prototype,"data",void 0);_.c([_.g({value:function(){return[]}}),
_.Y("design:type",Array)],CQ.prototype,"categories",void 0);_.c([_.g({value:function(){return[]}}),
_.Y("design:type",Array)],CQ.prototype,"categoryButtons",void 0);_.c([_.g({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],CQ.prototype,"disableScroll",void 0);_.c([_.g({computed:"computeId_(data)",reflectToAttribute:!0}),_.Y("design:type",String)],CQ.prototype,"id",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],CQ.prototype,"selected",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],CQ.prototype,"disableIncrementalLoading",void 0);_.c([_.g(),_.Y("design:type",String)],CQ.prototype,"placeholder",void 0);_.c([_.g({value:""}),_.Y("design:type",String)],CQ.prototype,"search",void 0);_.c([_.g({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],CQ.prototype,"searching",void 0);_.c([_.g({computed:"computeSearchCategory_(search)"}),_.Y("design:type",Object)],CQ.prototype,"searchCategory",void 0);
_.c([_.g({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.Y("design:type",Object)],CQ.prototype,"searchEmptyMessage",void 0);_.c([_.g({computed:"identity(emojiManager.skinTone)"}),_.Y("design:type",Number)],CQ.prototype,"skinTone",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],CQ.prototype,"skinToneOpened",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],CQ.prototype,"variantSelectorOpened",void 0);
_.c([_.g({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.Y("design:type",Boolean)],CQ.prototype,"skinToneHidden",void 0);_.c([_.g(),_.Y("design:type",_.iO)],CQ.prototype,"emojiManager",void 0);_.c([_.g(),_.Y("design:type",Object)],CQ.prototype,"emojiVariantSelector",void 0);_.c([_.g(),_.Y("design:type",Object)],CQ.prototype,"emojiMultiPersonSelector",void 0);
_.c([_.g({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.Y("design:type",Boolean)],CQ.prototype,"shouldUseStickyPreferences",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CQ.prototype,"dataChanged",null);_.c([_.Tw("data","selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CQ.prototype,"updateCategoriesAndPlaceholder_",null);
_.c([_.hG("yt-show-emoji-variant-selector"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],CQ.prototype,"onShowEmojiVariantSelector",null);_.c([_.hG("yt-emoji-picker-select-category"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],CQ.prototype,"onSelectCategory_",null);_.c([_.hG("yt-emoji-hover"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],CQ.prototype,"onEmojiHover_",null);
_.c([_.Tw("skinTone"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CQ.prototype,"skinToneChanged_",null);_.c([_.Tw("search"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CQ.prototype,"searchChanged_",null);_.c([_.DO({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],CQ);
_.y(CQ,"yt-emoji-picker-renderer",function(){if(gjH===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;TUo===void 0&&(TUo=document.createElement("template"));var B=TUo;G.call(m,B.content.cloneNode(!0),O.content.firstChild);gjH=O}O=gjH;return O},{mode:2});var o4=function(){var O=_.u.apply(this,arguments)||this;O.emojiManager=_.UL;O.isDarkTheme=document.documentElement.hasAttribute("dark");O.selectedIndex=1;O.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return O};
_.X(o4,_.u);_.v=o4.prototype;_.v.handleEmojiCustomizationVisible=function(O){this.emojiPickerRenderer.selected=O;this.selectedIndex=1;O?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.v.emojiCustomizationSetChanged=function(){var O;(O=this.data)!=null&&O.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Np(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.v.updateSaveButtonState=function(O){var m;(m=this.data)!=null&&m.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.jh("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:O}))};
_.v.emojiUrl=function(O){O=_.xk(this.emojiManager,O);if(!O)return"";var m;O=(m=O.image)==null?void 0:m.thumbnails;return _.Uf(O,24)||""};
_.v.emojiAlt=function(O){var m=_.xk(this.emojiManager,O);if(!m)return O;var G,B,Q,H=(m==null?void 0:(G=m.image)==null?void 0:(B=G.accessibility)==null?void 0:(Q=B.accessibilityData)==null?void 0:Q.label)||"";return H?H:m.isCustomEmoji?m.shortcuts[0]:m.emojiId||O};
_.v.emojiAriaLabel=function(O){var m,G;return((m=_.xk(this.emojiManager,O))==null?void 0:(G=m.shortcuts)==null?void 0:G[0])||O};
_.v.onEmojiClick=function(O){O.model.index!==0&&(this.selectedIndex=O.model.index)};
_.v.onEmojiSelect=function(O){O=O.detail;var m,G;((m=this.data)==null?0:m.emojiCustomizationSetEntityKey)&&((G=this.emojiCustomizationSet)==null?0:G.emojiId)&&O.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,O.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.jh("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,O.emojiId,this.selectedIndex)}))};
_.v.canEditEmoji=function(O,m,G){O=O.indexOf(m);return O===G||O===0||G===0?!1:!0};
_.v.getUpdatedEmojiIdList=function(O,m,G){var B=O.indexOf(m);O=[].concat(_.lS(O));B>=0&&(O[B]=O[G]);O[G]=m;return O};
_.vr.Object.defineProperties(o4,{template:{configurable:!0,enumerable:!0,get:function(){if(O8_===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;A72===void 0&&(A72=document.createElement("template"));var B=A72;G.call(m,B.content.cloneNode(!0),O.content.firstChild);O8_=O}O=O8_;return O}}});
o4.prototype.onEmojiSelect=o4.prototype.onEmojiSelect;_.c([_.h(_.RF),_.Y("design:type",Object)],o4.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],o4.prototype,"ytActionHandlerBehavior",void 0);_.c([_.uc("yt-emoji-picker-renderer"),_.Y("design:type",Object)],o4.prototype,"emojiPickerRenderer",void 0);
_.c([_.g({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(O,m){return _.Vh(O.entities,"emojiCustomizationSetEntity",m)},
observer:"emojiCustomizationSetChanged"}),_.Y("design:type",Object)],o4.prototype,"emojiCustomizationSet",void 0);_.c([_.g(),_.Y("design:type",Object)],o4.prototype,"originalEmojiSet",void 0);_.c([_.g(),_.Y("design:type",_.iO)],o4.prototype,"emojiManager",void 0);_.c([_.g(),_.Y("design:type",Object)],o4.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],o4.prototype,"isDarkTheme",void 0);_.c([_.g(),_.Y("design:type",Object)],o4.prototype,"selectedIndex",void 0);
_.c([_.hG("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],o4.prototype,"onEmojiSelect",null);_.c([_.DO({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],o4);var L6_;var Com;var oj3;var ljC;var lO=function(){var O=_.u.apply(this,arguments)||this;O.authorBadges=[];return O};
_.X(lO,_.u);_.v=lO.prototype;_.v.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.v.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]]"}}}}}};
_.v.dataChanged=function(){var O=koN(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",O)};
_.v.updateMessage=function(){var O=this.data.message,m=_.ZO(_.ZO(this.hostElement).querySelector("#message"));m.textContent="";O&&m.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(O))};
_.v.shouldSupportWholeItemClick=function(){return!0};
_.v.onShowOriginalClick=function(O){O.preventDefault();this.showOriginal=!0};
_.v.computeShowBar=function(O,m,G){return O&&m||G};
_.v.computeAuthorBadges=function(O){return O.authorBadges||[]};
_.v.computeAuthorIsOwner=function(O){return!!ykN(O.authorBadges,"owner")};
_.v.computeAuthorNameColor=function(O){var m;if(_.V("live_chat_author_name_color_usernames")&&(O==null?0:(m=O.authorName)==null?0:m.simpleText))return _.DEs(_.s2S(O.authorName.simpleText));if(_.V("live_chat_seed_color_usernames")&&(O==null?0:O.authorSeedColorArgb))return _.DEs(_.J1(O.authorSeedColorArgb));if(_.V("live_chat_colored_usernames"))return"#cc0000";var G;return _.V("live_chat_simple_color_usernames")&&(O==null?0:(G=O.authorName)==null?0:G.simpleText)&&(O==null?0:O.authorUsernameColorLight)&&
(O==null?0:O.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.J1(O.authorUsernameColorDark):_.J1(O.authorUsernameColorLight):""};
lO.prototype.updateMessage=lO.prototype.updateMessage;lO.prototype.dataChanged=lO.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],lO.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],lO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],lO.prototype,"data",void 0);
_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],lO.prototype,"showOriginal",void 0);_.c([_.g({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],lO.prototype,"isDimmed",void 0);_.c([_.g({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],lO.prototype,"showBar",void 0);
_.c([_.g({computed:"computeAuthorBadges(data)"}),_.Y("design:type",Array)],lO.prototype,"authorBadges",void 0);_.c([_.g({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],lO.prototype,"authorIsOwner",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],lO.prototype,"inCollapsedBanner",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],lO.prototype,"inBanner",void 0);
_.c([_.g({value:_.V("live_chat_hide_avatars"),reflectToAttribute:!0}),_.Y("design:type",Boolean)],lO.prototype,"avatarHidden",void 0);_.c([_.g({computed:"computeAuthorNameColor(data)"}),_.Y("design:type",String)],lO.prototype,"authorNameColor",void 0);_.c([_.g(),_.Y("design:type",_.Jn)],lO.prototype,"participantsManager",void 0);_.c([_.g({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.Y("design:type",Object)],lO.prototype,"filledButtonOverrides",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lO.prototype,"dataChanged",null);_.c([_.Tw("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lO.prototype,"updateMessage",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],lO);
_.y(lO,"yt-live-chat-text-message-renderer",function(){if(ljC===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;oj3===void 0&&(oj3=document.createElement("template"));var B=oj3;G.call(m,B.content.cloneNode(!0),O.content.firstChild);ljC=O}O=ljC;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var a4=function(){var O=_.u.apply(this,arguments)||this;O.tonalButtonOverrides={type:"tonal",style:"overlay"};return O};
_.X(a4,_.u);
a4.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]]"}}}}}};
a4.prototype.shouldSupportInlineActionButtons=function(){return!0};
a4.prototype.shouldSupportWholeItemClick=function(){return!0};
_.vr.Object.defineProperties(a4.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],a4.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],a4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],a4.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",_.Jn)],a4.prototype,"participantsManager",void 0);
_.c([_.g(),_.Y("design:type",Object)],a4.prototype,"tonalButtonOverrides",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data.infoDialogButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],a4.prototype,"hasInfoDialogButton",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],a4);
_.y(a4,"yt-live-chat-auto-mod-message-renderer",function(){if(Com===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;L6_===void 0&&(L6_=document.createElement("template"));var B=L6_;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Com=O}O=Com;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var aj_;var kWH;var yrC;var crC=function(){return _.u.apply(this,arguments)||this};
_.X(crC,_.u);_.c([_.g(),_.Y("design:type",Object)],crC.prototype,"data",void 0);_.c([_.l({is:"ytd-factoid-renderer",disableElementRegistration:!0})],crC);
_.y(crC,"ytd-factoid-renderer",function(){if(yrC!==void 0)return yrC;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return yrC=O},{mode:1});var kk=function(){return _.u.apply(this,arguments)||this};
_.X(kk,_.u);kk.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.c([_.g(),_.Y("design:type",Object)],kk.prototype,"data",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],kk);
_.y(kk,"yt-live-chat-channel-activity-reputation-renderer",function(){if(kWH===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;aj_===void 0&&(aj_=document.createElement("template"));var B=aj_;G.call(m,B.content.cloneNode(!0),O.content.firstChild);kWH=O}O=kWH;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var YNs;var dnU;var yi=function(){return _.u.apply(this,arguments)||this};
_.X(yi,_.u);yi.prototype.ready=function(){var O=document.querySelector("yt-live-chat-app");O&&O.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Boolean)],yi.prototype,"menuFocused",void 0);_.c([_.g(),_.Y("design:type",Object)],yi.prototype,"data",void 0);_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],yi.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],yi);
_.y(yi,"yt-live-chat-donation-announcement-renderer",function(){if(dnU===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;YNs===void 0&&(YNs=document.createElement("template"));var B=YNs;G.call(m,B.content.cloneNode(!0),O.content.firstChild);dnU=O}O=dnU;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var wVs;var edU,Dn_=function(){if(edU!==void 0)return edU;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;wVs===void 0&&(wVs=document.createElement("template"));var B=wVs;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return edU=O};var cT=function(){return _.u.apply(this,arguments)||this};
_.X(cT,_.u);_.vr.Object.defineProperties(cT,{template:{configurable:!0,enumerable:!0,get:function(){return Dn_()}}});
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],cT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],cT.prototype,"data",void 0);_.c([_.DO({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],cT);_.y(cT,"yt-live-chat-empty-feed-view-model",function(){return Dn_()},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var sl9;var NUo;var Yk=function(){return _.u.apply(this,arguments)||this};
_.X(Yk,_.u);Yk.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"}}}}}};
_.vr.Object.defineProperties(Yk.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var O,m;return{runs:[{text:(O=this.data)==null?void 0:(m=O.channelName)==null?void 0:m.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var O=[],m;if((m=this.data)==null||!m.channelBadges)return O;var G;m=_.K((G=this.data)==null?void 0:G.channelBadges);for(G=m.next();!G.done;G=m.next()){G=_.b(G.value,Lxe);var B=void 0,Q=void 0;if((B=G)==null?0:(Q=B.badgeImage)==null?0:Q.sources)B=void 0,Q={liveChatAuthorBadgeRenderer:{tooltip:G.tooltip,accessibility:{accessibilityData:{label:(B=_.b(G.rendererContext,_.gD))==null?void 0:B.label}}}},G.badgeImage.sources[0].clientResource?Q.liveChatAuthorBadgeRenderer.icon=
{iconType:G.badgeImage.sources[0].clientResource.imageName}:Q.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:G.badgeImage.sources},O.push(Q)}return O}}});
_.c([_.g(),_.Y("design:type",Object)],Yk.prototype,"data",void 0);_.c([_.T("data.channelName"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Yk.prototype,"channelName",null);_.c([_.T("data.channelBadges"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Yk.prototype,"channelBadges",null);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Yk.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Yk);
_.y(Yk,"yt-live-chat-identity-view-model",function(){if(NUo===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;sl9===void 0&&(sl9=document.createElement("template"));var B=sl9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);NUo=O}O=NUo;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var PoC;var F6C;var Arp;var Ow8;var dt=function(){var O=_.u.apply(this,arguments)||this;O.hidden=!1;O.supportsInlineActionButtons=!0;return O};
_.X(dt,_.u);dt.prototype.ready=function(){var O;((O=document.querySelector("yt-live-chat-app"))==null?0:O.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
dt.prototype.dataChanged=function(O){var m=(0,_.bc)(_.ZO(this.hostElement).querySelector("#detail-text"));m.textContent="";(O==null?0:O.detailText)&&m.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(O.detailText))};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],dt.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],dt.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g({observer:"dataChanged"}),_.Y("design:type",Object)],dt.prototype,"data",void 0);
_.c([_.g({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Object)],dt.prototype,"hidden",void 0);_.c([_.l({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],dt);
_.y(dt,"yt-live-chat-legacy-paid-message-renderer",function(){if(Ow8===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Arp===void 0&&(Arp=document.createElement("template"));var B=Arp;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Ow8=O}O=Ow8;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var my_;var Gds;var Bd$={},wt=function(){return _.Iu.apply(this,arguments)||this};
_.X(wt,_.Iu);wt.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
wt.prototype.onLiveChatMembershipItemBehaviorClick=wt.prototype.onLiveChatMembershipItemBehaviorClick;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],wt.prototype,"data",void 0);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],wt.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.c([_.p7()],wt);
Bd$.YtLiveChatMembershipItemBehavior=[wt.prototype,_.N.YtRendererBehavior];var e6=function(){var O=_.u.apply(this,arguments)||this;O.supportsInlineActionButtons=!0;O.hasPrimaryHeaderText=!1;O.showOnlyHeader=!1;O.authorBadges=[];O.modern=_.V("web_button_rework_with_live");O.buttonOverrides={style:"overlay",type:"filled"};return O};
_.X(e6,_.u);_.v=e6.prototype;_.v.shouldSupportInlineActionButtons=function(){return!0};
_.v.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.v.ready=function(){var O=document.querySelector("yt-live-chat-app");O&&O.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.v.messageChanged=function(){var O=this.data.message,m=(0,_.bc)(_.ZO(this.hostElement).querySelector("#message"));m.textContent="";O&&m.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(O))};
_.v.computeHasPrimaryHeaderText=function(O){return!(!O||!O.headerPrimaryText)};
_.v.computeShowOnlyHeader=function(O,m){return this.isMessageEmpty(O,m)};
_.v.computeAuthorBadges=function(O){return O.authorBadges||[]};
_.v.isMessageEmpty=function(O,m){return!O||O.empty?!0:!O.message&&!O.inputField&&!m};
_.v.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.v.getInputElement=function(){return _.ZO(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.v.inputFocus=function(){var O=this.getInputElement();O&&O.focus()};
_.v.inputInsertEmoji=function(O){var m=this.getInputElement();m&&m.insertEmoji(O)};
_.v.inputMessage=function(){var O=this.getInputElement();return O&&this.data.inputField?(O.completeEmojis(),_.sf(O.liveChatRichMessageInput)):null};
_.v.onFooterButtonClick=function(){this.data.footerButton&&_.iP(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.v.shouldSupportWholeItemClick=function(){return!0};
e6.prototype.isDeletedChanged=e6.prototype.isDeletedChanged;e6.prototype.messageChanged=e6.prototype.messageChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],e6.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.h(Bd$.YtLiveChatMembershipItemBehavior),_.Y("design:type",Object)],e6.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],e6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],e6.prototype,"data",void 0);_.c([_.g({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],e6.prototype,"hasPrimaryHeaderText",void 0);_.c([_.g({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.Y("design:type",Object)],e6.prototype,"showOnlyHeader",void 0);
_.c([_.g({computed:"computeAuthorBadges(data)"}),_.Y("design:type",Array)],e6.prototype,"authorBadges",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],e6.prototype,"modern",void 0);_.c([_.Tw("data.message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e6.prototype,"messageChanged",null);_.c([_.Tw("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e6.prototype,"isDeletedChanged",null);
_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],e6);
_.y(e6,"yt-live-chat-membership-item-renderer",function(){if(Gds===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;my_===void 0&&(my_=document.createElement("template"));var B=my_;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Gds=O}O=Gds;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var Qvm;var Hwp;var Dc=function(){return _.u.apply(this,arguments)||this};
_.X(Dc,_.u);Dc.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Dc.prototype,"data",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Dc);
_.y(Dc,"yt-live-chat-mode-change-message-renderer",function(){if(Hwp===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Qvm===void 0&&(Qvm=document.createElement("template"));var B=Qvm;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Hwp=O}O=Hwp;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var v1U;var KXs;var sL=function(){return _.u.apply(this,arguments)||this};
_.X(sL,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],sL.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],sL.prototype,"data",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],sL);
_.y(sL,"yt-live-chat-moderation-message-renderer",function(){if(KXs===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;v1U===void 0&&(v1U=document.createElement("template"));var B=v1U;G.call(m,B.content.cloneNode(!0),O.content.firstChild);KXs=O}O=KXs;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var $yU;var My2;var Nd=function(){var O=_.u.apply(this,arguments)||this;O.modern=_.V("web_button_rework");return O};
_.X(Nd,_.u);Nd.prototype.onClick=function(){var O;if((O=this.data)!=null&&O.onClickCommand){var m;_.XJ.instance.resolveCommand((m=this.data)==null?void 0:m.onClickCommand)}};
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Nd.prototype,"modern",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.RF),_.Y("design:type",Object)],Nd.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],Nd.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Nd.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],Nd.prototype,"data",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Nd);
_.y(Nd,"yt-live-chat-offer-click-count-message-renderer",function(){if(My2===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;$yU===void 0&&($yU=document.createElement("template"));var B=$yU;G.call(m,B.content.cloneNode(!0),O.content.firstChild);My2=O}O=My2;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var rB8;var Rrm=function(){return _.u.apply(this,arguments)||this};
_.X(Rrm,_.u);_.c([_.g(),_.Y("design:type",Object)],Rrm.prototype,"data",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Rrm);
_.y(Rrm,"yt-live-chat-placeholder-item-renderer",function(){if(rB8===void 0){var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);rB8=O}O=rB8;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var iwU;var xyj;var q$9=new BX(7),PT=function(){var O=_.u.apply(this,arguments)||this;O.data={};return O};
_.X(PT,_.u);PT.prototype.dataChanged=function(){var O;((O=this.data)==null?0:O.class)&&_.JG(this.hostElement,this.data.class,!0);var m;((m=this.oldData)==null?0:m.class)&&_.JG(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
PT.prototype.computeTimestampString=function(O){return q$9.format(new Date(O/1E3))};
PT.prototype.dataChanged=PT.prototype.dataChanged;_.c([_.g(),_.Y("design:type",Object)],PT.prototype,"data",void 0);_.c([_.g({computed:"computeTimestampString(data.timestampUsec)"}),_.Y("design:type",String)],PT.prototype,"timestampString",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PT.prototype,"dataChanged",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],PT);
_.y(PT,"yt-live-chat-server-error-message",function(){if(xyj===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;iwU===void 0&&(iwU=document.createElement("template"));var B=iwU;G.call(m,B.content.cloneNode(!0),O.content.firstChild);xyj=O}O=xyj;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var Uyp;var ty9;var Ft=function(){var O=_.u.apply(this,arguments)||this;O.defaultToFilledIcon=!1;return O};
_.X(Ft,_.u);Ft.prototype.computeHasPrimaryColorIcon=function(O){return O==="SPARK"||O==="SPONSORSHIP_STAR"};
Ft.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],Ft.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ft.prototype,"defaultToFilledIcon",void 0);_.c([_.g(),_.Y("design:type",Object)],Ft.prototype,"data",void 0);
_.c([_.g({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ft.prototype,"hasPrimaryColorIcon",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Ft);
_.y(Ft,"yt-live-chat-viewer-engagement-message-renderer",function(){if(ty9===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Uyp===void 0&&(Uyp=document.createElement("template"));var B=Uyp;G.call(m,B.content.cloneNode(!0),O.content.firstChild);ty9=O}O=ty9;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var WXC;var An=function(){var O=_.u.apply(this,arguments)||this;O.modernUpdate=!1;O.buttonStyle="overlay";O.buttonType="filled";return O};
_.X(An,_.u);An.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
An.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],An.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],An.prototype,"modernUpdate",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],An.prototype,"buttonStyle",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],An.prototype,"buttonType",void 0);
_.c([_.l({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],An);
_.y(An,"ytd-ad-hover-text-button-renderer",function(){if(WXC!==void 0)return WXC;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return WXC=O},{mode:1});var Zwp;var OH=function(){var O=_.u.apply(this,arguments)||this;O.buttonOverrides={size:"XS"};O.modern=_.V("web_button_rework");return O};
_.X(OH,_.u);OH.prototype.onHelpTap=function(O){this.data&&this.data.informationDialog&&(_.iP(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),O.preventDefault(),O.stopPropagation())};
_.c([_.g(),_.Y("design:type",Object)],OH.prototype,"buttonOverrides",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],OH.prototype,"modern",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],OH.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],OH.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],OH);
_.y(OH,"ytd-live-chat-purchased-product-message-renderer",function(){if(Zwp!==void 0)return Zwp;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Zwp=O},{mode:1});var zrC;var JB$;var mF=function(){var O=_.u.apply(this,arguments)||this;O.isContainerDeleted=!1;return O};
_.X(mF,_.u);mF.prototype.onContextMenuClick=function(O){this.ytLiveChatItemBehavior.showContextMenu(O)};
mF.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))};
mF.prototype.isContainerDeletedChanged=mF.prototype.isContainerDeletedChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],mF.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mF.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],mF.prototype,"isContainerDeleted",void 0);
_.c([_.g(),_.Y("design:type",String)],mF.prototype,"deletedStateMessage",void 0);_.c([_.Tw("isContainerDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mF.prototype,"isContainerDeletedChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],mF);
_.y(mF,"ytd-sponsorships-live-chat-header-renderer",function(){if(JB$!==void 0)return JB$;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return JB$=O},{mode:1});var Gj=function(){var O=_.u.apply(this,arguments)||this;O.modern=_.V("web_button_rework_with_live");O.buttonOverrides={style:"overlay",type:"filled"};return O};
_.X(Gj,_.u);Gj.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]]"}}}}}};
Gj.prototype.onCtaButtonClick=function(){var O,m=_.b((O=this.data)==null?void 0:O.optInPrompt,_.v3);if(O=this.maybeGetButtonCommand(m)){var G;(G=_.uK())==null||G.clickCommand(O)}};
Gj.prototype.maybeGetButtonCommand=function(O){return!O||!O.command||_.b(O.command,tt3)===void 0&&_.b(O.command,U2e)===void 0?null:O.command};
Gj.prototype.shouldHideOptinPrompt=function(O,m){return!O||m};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Gj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],Gj.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Gj.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Gj.prototype,"modern",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Gj);
_.y(Gj,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(zrC!==void 0)return zrC;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return zrC=O},{mode:1});var Vyo;var BL=function(){return _.u.apply(this,arguments)||this};
_.X(BL,_.u);BL.prototype.onContextMenuClick=function(O){this.ytLiveChatItemBehavior.showContextMenu(O)};
BL.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))};
BL.prototype.isDeletedChanged=BL.prototype.isDeletedChanged;_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],BL.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],BL.prototype,"data",void 0);_.c([_.Tw("isDeleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BL.prototype,"isDeletedChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],BL);
_.y(BL,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Vyo!==void 0)return Vyo;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Vyo=O},{mode:1});var Qw=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return O};
_.X(Qw,_.u);_.v=Qw.prototype;
_.v.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"}}}};
_.v.handleLiveChatAction=function(O){_.b(O,Qcp)?this.handleMarkChatItemAsDeletedAction(_.b(O,Qcp)):_.b(O,Bwj)&&this.handleRemoveChatItemAction(_.b(O,Bwj))};
_.v.handleLiveChatActions=function(O){O.forEach(this.handleLiveChatAction,this)};
_.v.handleMarkChatItemAsDeletedAction=function(O){var m=this,G;((G=this.data)==null?0:G.items)&&this.data.items.forEach(function(B,Q){var H=Object.keys(B)[0];Object.values(B)[0].id===O.targetItemId&&m.markAsDeleted("data.items",Q,H,O.deletedStateMessage,O.showOriginalContentMessage)})};
_.v.handleRemoveChatItemAction=function(O){var m=this,G;((G=this.data)==null?0:G.items)&&this.data.items.forEach(function(B,Q){Object.values(B)[0].id===O.targetItemId&&m.splice("data.items",Q,1)})};
_.v.markAsDeleted=function(O,m,G,B,Q){O=[O,m,G].join(".");this.set(O+".deletedStateMessage",B);this.set(O+".showOriginalContentMessage",Q)};
_.c([_.g(),_.Y("design:type",Object)],Qw.prototype,"data",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Qw.prototype,"ytActionHandlerBehavior",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Qw);
_.y(Qw,"yt-live-chat-item-display-list-renderer",function(){if(F6C===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;PoC===void 0&&(PoC=document.createElement("template"));var B=PoC;G.call(m,B.content.cloneNode(!0),O.content.firstChild);F6C=O}O=F6C;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var bwj;var n1s,XNm=function(){if(n1s!==void 0)return n1s;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;bwj===void 0&&(bwj=document.createElement("template"));var B=bwj;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return n1s=O};var HL=function(){var O=_.u.apply(this,arguments)||this;O.isHeader=!1;return O};
_.X(HL,_.u);HL.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.vr.Object.defineProperties(HL,{template:{configurable:!0,enumerable:!0,get:function(){return XNm()}}});
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],HL.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],HL.prototype,"isHeader",void 0);_.c([_.DO({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],HL);_.y(HL,"yt-live-chat-item-display-renderer",function(){return XNm()},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var fW_,hr9,IWH,jv_;
fW_={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}};hr9={home:"eohps",search:"eosps",watch:"eowps"};_.Tdu=["watch","search","home"];
_.vL=function(){this.JSC$14296_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14296_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.kB("PRECONSTRUCTION_DELAY",0);this.signals_=_.xA();this.targetPage_=""};
_.vL.prototype.init=function(O,m){O=O===void 0?"":O;m=m===void 0?null:m;if(this.JSC$14296_isInitialized_)this.abort();else if(this.JSC$14296_isInitialized_=!0,O&&_.g1H(this,O),m){var G=_.q2(this.signals_,"pcl")?0:10,B=function(){for(var Q=0,H;H=_.Tdu[Q++];)H!=O&&H!=m&&this.pendingPages_.push(H);_.uTm(this)}.bind(this);
this.signals_.parkOrScheduleJob(B,G,"pcl")}};
_.vL.prototype.abort=function(){this.fragmentJobId_&&(_.ln.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);jv_(this)};
_.g1H=function(O,m){O.JSC$14296_isInitialized_&&!O.targetPage_&&(O.targetPage_=m,IWH(O,m),O.isInitialPass_=!1,IWH(O,m),O.signals_.processSignal(hr9[O.targetPage_]),jv_(O),_.uTm(O))};
_.uTm=function(O){O.pendingPages_.length&&!O.pagePreparerJobId_&&(O.pagePreparerJobId_=_.uT(_.ln,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.g1H(this,this.pendingPages_.shift())}.bind(O),O.DEFAULT_DELAY_))};
IWH=function(O,m){if(m=fW_[m])for(var G in m){var B=!1,Q=G;G.charAt(0)=="~"&&(B=!0,Q=G.substring(1));var H=m[G];H=typeof H=="object"?H:{count:H};m[G]=H;H.componentName=Q;H.count>0&&(O.isInitialPass_?B||O.isSeenDuringInitialPass_[Q]||(O.JSC$14296_queue_.push({componentName:Q,count:1,signals:H.signals}),O.isSeenDuringInitialPass_[Q]=!0,H.count--):O.JSC$14296_queue_.push(H))}};
jv_=function(O){O.JSC$14296_queue_.length=0;O.targetPage_="";O.isInitialPass_=!0;O.signals_.processSignal("eop")};
_.vL.getInstance=function(){return _.Q4(_.vL)};var pN$=function(){this.signals=_.xA();this.init()};
pN$.prototype.startPreconstruction=function(){_.vL.getInstance().init(_.yE("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
pN$.prototype.init=function(){S$C(this);window.Polymer&&GXo&&I2M();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var O=_.Qf.ytcsi;if(O&&O.gt&&(O=O.gt())&&O.tick&&(O.tick.aft>0||O.tick.pbs>0)&&(_.yE("IS_HOMEPAGE_COLD")||_.yE("IS_RESULTS_PAGE_COLD")||_.yE("IS_WATCH_PAGE_COLD"))){E1u(this);break a}XC5(Jep,this.onNotifications,this)}};
var S$C=function(O){var m=function(){O.signals.processSignal("dl")};
document.readyState==="complete"?(_.Dy(Error("yh"),"WARNING"),m()):_.OHS(window,"load",m)};
pN$.prototype.onNotifications=function(O){O.timer||(_.yE("IS_HOMEPAGE_COLD")||_.yE("IS_RESULTS_PAGE_COLD")||_.yE("IS_WATCH_PAGE_COLD"))&&E1u(this)};
var E1u=function(O){O.signals.parkOrScheduleJob(function(){O.signals.processSignal("eocs")},10,"eor")};
new pN$;var KW,LX8=function(){return _.Iu.apply(this,arguments)||this};
_.X(LX8,_.Iu);_.v=LX8.prototype;_.v.enableActiveViewMeasurement=function(O){if(this.isActiveViewEnabled(O)){var m=this.getUrlPrefixesFromCommand(O.viewableCommands);O=this.getUrlPrefixesFromCommand(O.endOfSessionCommands);if(!KW){var G=_.Rd("custom_active_view_tos_timeout_ms");KW=G>0&&G!==36E5?new $FO(this.getVersion(),G):new $FO(this.getVersion())}rPI(KW,this.hostElement);RDf(KW,this.hostElement,m,O)}};
_.v.stopActiveViewMeasurement=function(){KW&&rPI(KW,this.hostElement)};
_.v.isActiveViewEnabled=function(O){return!!O&&(this.hasAtLeastOneUrl(O.viewableCommands)||this.hasAtLeastOneUrl(O.endOfSessionCommands))};
_.v.hasAtLeastOneUrl=function(O){return!!O&&O.length>0&&O[0].loggingUrls!=null&&O[0].loggingUrls.length>0};
_.v.getVersion=function(){var O=_.kB("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(O==null?void 0:O.length)===2?O[1]:null};
_.v.getUrlPrefixesFromCommand=function(O){if(!O)return[];var m=[];O=_.K(O);for(var G=O.next();!G.done;G=O.next())if(G=G.value,G.loggingUrls){G=_.K(G.loggingUrls);for(var B=G.next();!B.done;B=G.next())B=B.value,B.baseUrl&&m.push(B.baseUrl)}return m};
_.c([_.p7()],LX8);var $m=[LX8.prototype];var C02=function(){return _.Iu.apply(this,arguments)||this};
_.X(C02,_.Iu);_.vr.Object.defineProperties(C02.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_entity_store_from_dependency_injection")?_.Km():_.Kf()}}});
_.c([_.p7()],C02);_.MK=[QZ.prototype,C02.prototype];var o1u=["ytd-rich-shelf-renderer"],rm=function(){var O=_.Iu.apply(this,arguments)||this;O._noAccessors=!0;O.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";O.followUpDialogPromise=null;O.followUpDialogPromiseResolve=null;O.followUpDialogPromiseReject=null;return O};
_.X(rm,_.Iu);_.v=rm.prototype;_.v.dismissibleItemIsDismissedChanged_=function(O){_.V("kevlar_fluid_dismiss")&&(O?_.iP(this.hostElement,"yt-dismissible-item-dismissed"):_.iP(this.hostElement,"yt-dismissible-item-undismissed"))};
_.v.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.v.dismissibleItemReset_=function(){var O=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 _.zH(function(m,G){O.followUpDialogPromiseResolve=m;O.followUpDialogPromiseReject=G});
_.iP(this.hostElement,"yt-enable-lockup-interaction")};
_.v.dismissibleItemOnYtServiceRequestSent_=function(O,m){m.actions&&this.dismissibleItemProcessActions(m.actions,O)};
_.v.dismissibleItemOnRequestSent=function(O){if(_.V("web_button_rework"))for(var m=_.K(O.detail),G=m.next();!G.done;G=m.next()){var B=void 0;(G=(B=_.b(G.value,_.Vs))==null?void 0:B.actions)&&this.dismissibleItemProcessActions(G,O)}};
_.v.dismissibleItemOnCommandSent=function(O,m){m&&this.dismissibleItemProcessActions(m,O)};
_.v.setAndGetDismissedContentId=function(O){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+O};
_.v.replayDismissAction=function(O){this.dismissibleItemProcessActions([O])};
_.v.dismissibleItemProcessActions=function(O,m){for(var G=0;G<O.length;G++){var B=O[G],Q=void 0;((Q=_.b(B,_.zC))==null?0:Q.commands)&&this.dismissibleItemProcessActions(_.b(B,_.zC).commands,m);if(_.b(B,_.aC)){if(Q=_.b(B,_.aC),!Q.replaceParentSection||o1u.includes(this.hostElement.nodeName.toLowerCase()))Q.groupDismissal&&q$O(this,Q.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(Q),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.jh("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:B})),B=void 0,(B=m)==null||B.stopPropagation()}else if(_.b(B,GZ2))this.dismissibleItemHandleHideEnclosingAction_(),B=void 0,(B=m)==null||B.stopPropagation();else if(_.b(B,fI$))B=_.b(B,fI$),Q=void 0,((Q=B)==null?0:Q.targetGroupId)&&q$O(this,{targetGroupId:B.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.jh("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
B=void 0,(B=m)==null||B.stopPropagation();else if(_.b(B,_.Vs))(B=_.b(B,_.Vs).actions)&&_.Wd(this.hostElement,B,this.hostElement),B=void 0,(B=m)==null||B.stopPropagation();else{var H=Q=void 0;((Q=_.b(B,_.dE))==null?void 0:Q.signal)!=="TELL_US_WHY"||((H=_.b(B,_.dE))==null?0:H.targetId)&&_.V("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),B=void 0,(B=m)==null||B.stopPropagation())}}};
_.v.dismissibleItemOnYtServiceRequestCompleted_=function(O,m){var G=this.get("feedbackResponses.0.followUpDialog",m.data);G?this.followUpDialogPromiseResolve(G):m.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(m.actions,O)};
_.v.dismissibleItemHandleReplaceEnclosingAction_=function(O){this.dismissedRenderer=O.item;this.isDismissed=!0;var m=null;(m=_.ZO(this.hostElement).querySelector("#dismissed"))&&_.QA(this,function(){_.mP(m)});
_.iP(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.v.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.v.dismissibleItemHandleUndoFeedbackAction_=function(){_.iP(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.v.dismissibleItemHandleTellUsWhySignalAction_=function(){var O=this;this.followUpDialogPromise.then(function(m){O.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:m}})})};
rm.prototype.dismissibleItemOnYtServiceRequestCompleted_=rm.prototype.dismissibleItemOnYtServiceRequestCompleted_;rm.prototype.dismissibleItemOnCommandSent=rm.prototype.dismissibleItemOnCommandSent;rm.prototype.dismissibleItemOnRequestSent=rm.prototype.dismissibleItemOnRequestSent;rm.prototype.dismissibleItemOnYtServiceRequestSent_=rm.prototype.dismissibleItemOnYtServiceRequestSent_;rm.prototype.dismissibleItemDataChanged_=rm.prototype.dismissibleItemDataChanged_;
rm.prototype.dismissibleItemIsDismissedChanged_=rm.prototype.dismissibleItemIsDismissedChanged_;_.c([_.h(_.fQ),_.Y("design:type",Object)],rm.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],rm.prototype,"ytdReduxBehavior",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],rm.prototype,"isDismissed",void 0);_.c([_.g(),_.Y("design:type",Object)],rm.prototype,"dismissedRenderer",void 0);
_.c([_.Tw("isDismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],rm.prototype,"dismissibleItemIsDismissedChanged_",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rm.prototype,"dismissibleItemDataChanged_",null);
_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],rm.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.c([_.hG("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rm.prototype,"dismissibleItemOnRequestSent",null);
_.c([_.hG("yt-dismissible-item-action"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Array]),_.Y("design:returntype")],rm.prototype,"dismissibleItemOnCommandSent",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],rm.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.c([_.p7()],rm);_.Rr=[_.fQ,_.MK,rm.prototype];var ip=function(){var O=_.Iu.apply(this,arguments)||this;O.disableGridStateAware=!1;O.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};O.currentGridClass="";return O};
_.X(ip,_.Iu);ip.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.QA(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var O=this.gridStateAwareGetElement();_.JG(O,"grid",!0)}};
ip.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
ip.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.ZO(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
ip.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var O="grid-disabled";else{O=_.uA.getInstance();var m=this.get("pageSubtype");O=m&&fGU.includes(m)?"grid-disabled":O.currentSnapState_?O.currentSnapState_.className:null}(m=this.gridStateAwareGetElement())&&O!==this.currentGridClass&&(O&&_.JG(m,O,!0),this.currentGridClass&&_.JG(m,this.currentGridClass,!1),this.currentGridClass=O)};
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],ip.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",String)],ip.prototype,"gridStateAwareSizingElementSelector",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ip.prototype,"disableGridStateAware",void 0);_.c([_.p7()],ip);_.xm=[ip.prototype,_.cg.YtActionHandlerBehavior];_.qK=new _.Us("GUIDE_TOKEN");var th;_.UH={};th=function(){var O=_.Iu.apply(this,arguments)||this;O.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 O};
_.X(th,_.Iu);_.v=th.prototype;_.v.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.v.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var O=_.KR().resolve(_.v7(_.qK));O&&(this.guidePersistentAndVisible=O.getGuidePersistentAndVisible(),this.activeEndpoint=O.getActiveEndpoint(),this.guideOpened=O.getGuideOpened(),this.miniGuideVisible=O.getMiniGuideVisible())};
_.v.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.v.handleGuideStateAction=function(O){this.guidePersistentAndVisible=O};
_.v.handleMiniGuideStateAction=function(O){this.miniGuideVisible=O};
_.v.handleGuideOpenedAction=function(O){this.guideOpened=O};
_.v.handleActiveEndpointAction=function(O){this.activeEndpoint=O};
th.prototype.onActiveEndpointChange=th.prototype.onActiveEndpointChange;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],th.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],th.prototype,"guidePersistentAndVisible",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],th.prototype,"miniGuideVisible",void 0);_.c([_.g(),_.Y("design:type",Object)],th.prototype,"activeEndpoint",void 0);
_.c([_.Tw("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],th.prototype,"onActiveEndpointChange",null);_.c([_.g(),_.Y("design:type",Boolean)],th.prototype,"guideOpened",void 0);_.c([_.p7()],th);_.UH.YtdGuideStateAwareBehavior=[];_.UH.YtdGuideStateAwareBehavior.push(th.prototype,_.cg.YtActionHandlerBehavior);var lW$=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],WL=function(){var O=_.Iu.apply(this,arguments)||this;O.hoverJobId=0;O.JSC$14327_touched=!1;return O};
_.X(WL,_.Iu);_.v=WL.prototype;_.v.created=function(){this.useExpandableTooltip=!lW$.includes(this.is)};
_.v.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.v.detached=function(){this.useExpandableTooltip=!1};
_.v.lockupOnDown=function(O){this.interactionElement&&!_.Hu(_.$Z(O),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.v.lockupOnUp=function(O){this.interactionElement&&!_.Hu(_.$Z(O),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.v.onTouchStart=function(){this.JSC$14327_touched=!0};
_.v.lockupOnMouseEnter=function(){var O=this,m=_.Rd("kevlar_lockup_hover_delay",-1);this.JSC$14327_touched&&m>=0?(_.ln.cancelJob(this.hoverJobId),this.hoverJobId=_.ln.addJob(function(){O.lockupIsHovered=!0},8,m),this.JSC$14327_touched=!1):this.lockupIsHovered=!0};
_.v.lockupOnMouseLeave=function(){this.hoverJobId&&(_.ln.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.v.lockupOnPopupClosed=function(O,m){var G;((G=m.popupRenderer)==null?void 0:G.is)==="ytd-menu-popup-renderer"&&(O=m.popupRenderer.veData,m=_.yA(),O&&m&&_.mf(m,[O]))};
_.v.lockupOnLockupRequested=function(O){var m=O.detail.videoIds[0],G;O.detail&&m===((G=this.data)==null?void 0:G.videoId)&&(O.detail.returnValue=[this.data])};
_.v.lockupOnYtServiceRequestSent=function(O,m){if(O=m.actions)for(var G=0;G<O.length;G++){var B=O[G];if(B.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&m.ajaxPromise){var Q=void 0,H=(Q=_.b(m.endpoint,_.B3))==null?void 0:Q.playlistId;Q=void 0;B=(Q=B.removedVideoId)!=null?Q:"";P9o(_.tC(),B,H)}else B.action==="ACTION_REMOVE_VIDEO"&&m.ajaxPromise&&(H=void 0,B=(H=B.setVideoId)!=null?H:"",_.FLo(_.tC(),B))}};
_.v.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.v.lockupOnLockupEnabled=function(){if(!this.$){var O=_.KR().resolve(_.KJ).getCurrentPage(),m=this.getParentRenderer?this.getParentRenderer():void 0;_.ay(new _.j9("component not ready",this.is,this.isAttached,O==null?void 0:O.is,m==null?void 0:m.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
WL.prototype.lockupOnLockupEnabled=WL.prototype.lockupOnLockupEnabled;WL.prototype.lockupOnLockupDisabled=WL.prototype.lockupOnLockupDisabled;WL.prototype.lockupOnYtServiceRequestSent=WL.prototype.lockupOnYtServiceRequestSent;WL.prototype.lockupOnLockupRequested=WL.prototype.lockupOnLockupRequested;WL.prototype.lockupOnPopupClosed=WL.prototype.lockupOnPopupClosed;WL.prototype.lockupOnMouseLeave=WL.prototype.lockupOnMouseLeave;WL.prototype.lockupOnMouseEnter=WL.prototype.lockupOnMouseEnter;
WL.prototype.onTouchStart=WL.prototype.onTouchStart;WL.prototype.lockupOnUp=WL.prototype.lockupOnUp;WL.prototype.lockupOnDown=WL.prototype.lockupOnDown;_.c([_.g(),_.Y("design:type",Object)],WL.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],WL.prototype,"lockupIsHovered",void 0);_.c([_.g(),_.Y("design:type",Boolean)],WL.prototype,"lockupTouchTriggered",void 0);_.c([_.g(),_.Y("design:type",Boolean)],WL.prototype,"useExpandableTooltip",void 0);
_.c([_.uc("#interaction"),_.Y("design:type",Object)],WL.prototype,"interactionElement",void 0);_.c([_.hG("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],WL.prototype,"lockupOnDown",null);_.c([_.hG("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],WL.prototype,"lockupOnUp",null);
_.c([_.hG("touchstart"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WL.prototype,"onTouchStart",null);_.c([_.hG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WL.prototype,"lockupOnMouseEnter",null);_.c([_.hG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WL.prototype,"lockupOnMouseLeave",null);
_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],WL.prototype,"lockupOnPopupClosed",null);_.c([_.hG("yt-lockup-requested"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],WL.prototype,"lockupOnLockupRequested",null);
_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],WL.prototype,"lockupOnYtServiceRequestSent",null);_.c([_.hG("yt-disable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WL.prototype,"lockupOnLockupDisabled",null);
_.c([_.hG("yt-enable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WL.prototype,"lockupOnLockupEnabled",null);_.c([_.p7()],WL);_.Z2=[WL.prototype];_.aW8={YtdReduxBehavior:[]};_.aW8.YtdReduxBehavior.push.apply(_.aW8.YtdReduxBehavior,_.MK);var zj=function(){var O=_.Iu.apply(this,arguments)||this;O._noAccessors=!0;O.disableNowPlaying=!1;O.disableTooltips=!1;O.useHoveredProperty=!1;O.hovered=!1;O.isThumbnailHovered_=!1;O.addBackground=_.V("kevlar_thumbnail_bg");O.nowPlaying=!1;O.disableRounding=!1;O.size="small";return O};
_.X(zj,_.Iu);_.v=zj.prototype;_.v.computeThumbnailOverlaySidePanelWidth_=function(O,m){return O-m};
_.v.computeSize=function(O,m){if(!this.disableRounding){if(!O&&!m)return"small";O=Math.max(O||0,m||0);return O>=256?"large":O>=96?"medium":"small"}};
_.v.computeFinalHoveredState_=function(O,m,G){return this.nowPlaying?!1:_.V("kevlar_thumbnail_fluid")&&O?m:G};
_.v.computeHoverOverlays_=function(O,m){return O&&m?m:void 0};
_.v.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.v.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.v.checkMiniplayer_=function(){var O;if(((O=this.data)==null?0:O.playlistSetVideoId)&&_.V("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{O=_.c3();var m=O.currentEndpoint;!this.disableNowPlaying&&m&&_.b(m,_.GC)&&this.data?(m=_.b(m,_.GC),this.nowPlaying=this.data.playlistId?m.playlistId===this.data.playlistId:m.videoId===this.data.videoId,this.isVideoPlaying=O==null?void 0:O.isVideoPlaying):this.nowPlaying=!1}};
zj.prototype.checkMiniplayer_=zj.prototype.checkMiniplayer_;zj.prototype.onMouseLeave_=zj.prototype.onMouseLeave_;zj.prototype.onMouseEnter_=zj.prototype.onMouseEnter_;zj.prototype.computeHoverOverlays_=zj.prototype.computeHoverOverlays_;zj.prototype.computeFinalHoveredState_=zj.prototype.computeFinalHoveredState_;zj.prototype.computeSize=zj.prototype.computeSize;zj.prototype.computeThumbnailOverlaySidePanelWidth_=zj.prototype.computeThumbnailOverlaySidePanelWidth_;
_.c([_.h(_.MK),_.Y("design:type",Object)],zj.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],zj.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Number)],zj.prototype,"height",void 0);_.c([_.g(),_.Y("design:type",Boolean)],zj.prototype,"bottomSidePanel",void 0);_.c([_.g(),_.Y("design:type",Number)],zj.prototype,"width",void 0);_.c([_.g(),_.Y("design:type",Object)],zj.prototype,"disableNowPlaying",void 0);
_.c([_.g({selector:_.Ys}),_.Y("design:type",Boolean)],zj.prototype,"miniplayerIsActive",void 0);_.c([_.g(),_.Y("design:type",Object)],zj.prototype,"disableTooltips",void 0);_.c([_.g(),_.Y("design:type",Object)],zj.prototype,"useHoveredProperty",void 0);_.c([_.g(),_.Y("design:type",Object)],zj.prototype,"hovered",void 0);_.c([_.g(),_.Y("design:type",Object)],zj.prototype,"isThumbnailHovered_",void 0);
_.c([_.g({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.Y("design:type",Boolean)],zj.prototype,"finalHoveredState_",void 0);_.c([_.g({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.Y("design:type",Number)],zj.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],zj.prototype,"addBackground",void 0);
_.c([_.g({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.Y("design:type",Object)],zj.prototype,"hoverOverlays_",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],zj.prototype,"nowPlaying",void 0);_.c([_.g(),_.Y("design:type",Boolean)],zj.prototype,"isVideoPlaying",void 0);_.c([_.g(),_.Y("design:type",Object)],zj.prototype,"disableRounding",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.Y("design:type",Object)],zj.prototype,"size",void 0);_.c([_.hG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zj.prototype,"onMouseEnter_",null);_.c([_.hG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zj.prototype,"onMouseLeave_",null);
_.c([_.Tw("data","disableNowPlaying","miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zj.prototype,"checkMiniplayer_",null);_.c([_.p7()],zj);var kdo=[zj.prototype];_.Jh={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(O,m){return O+":"+_.sS(m)},
getPlayerListener_:function(O,m,G){O=this.getPlayerListenerKey_(O,m);m=this.playerListeners_.get(O);G&&this.playerListeners_.delete(O);return m},
savePlayerListener_:function(O,m){var G=m.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(O,m),G);return G},
listenToPlayerEvent:function(O,m,G){G=this.savePlayerListener_(m,G);O.addEventListener(m,G)},
listenToPlayerEvents:function(O,m){m.forEach(function(G,B){this.listenToPlayerEvent(O,B,G)}.bind(this))},
unlistenFromPlayerEvent:function(O,m,G){G=this.getPlayerListener_(m,G,!0);O.removeEventListener(m,G)},
unlistenFromPlayerEvents:function(O,m){m.forEach(function(G,B){this.unlistenFromPlayerEvent(O,B,G)}.bind(this))}}};
_.Vw=function(){};_.yBu=new _.Us("PLAYER_API_TOKEN");var ZwY=!1,bwe,JBN=!1,XNz;var i5=function(O,m,G,B,Q){_.Iw.call(this);var H=this;this.playerId=m;this.webPlayerContextConfig=B;this.xO5=Q;this.xDV=!1;this.api={};this.nPG=this.oMd=null;this.o2h=new _.nR;this.hJ={};this.a9I=this.yh0=this.elementId=this.llU=this.config=null;this.cte=!1;this.ke=this.nWa=null;this.zbI={};this.kxg=["onReady"];this.lastError=null;this.q4w=NaN;this.soq={};this.mNI=0;this.yq=this.targetElement=O;_.VV(this,this.o2h);cBe(this);G?this.mNI=setTimeout(function(){H.loadNewVideoConfig(G)},0):B&&(Y$j(this),
dye(this))};
_.X(i5,_.Iw);i5.prototype.getId=function(){return this.playerId};
i5.prototype.loadNewVideoConfig=function(O){if(!this.isDisposed()){this.mNI&&(clearTimeout(this.mNI),this.mNI=0);var m=O||{};m instanceof HW$||(m=new HW$(m));this.config=m;this.setConfig(O);dye(this);this.isReady()&&wN9(this)}};
var Y$j=function(O){var m;O.webPlayerContextConfig?m=O.webPlayerContextConfig.rootElementId:m=O.config.attrs.id;O.elementId=m||O.elementId;O.elementId==="video-player"&&(O.elementId=O.playerId,O.webPlayerContextConfig?O.webPlayerContextConfig.rootElementId=O.playerId:O.config.attrs.id=O.playerId);var G;((G=O.yq)==null?void 0:G.id)===O.elementId&&(O.elementId+="-player",O.webPlayerContextConfig?O.webPlayerContextConfig.rootElementId=O.elementId:O.config.attrs.id=O.elementId)};
i5.prototype.setConfig=function(O){this.llU=O;this.config=erH(O);Y$j(this);if(!this.yh0){var m;this.yh0=Dym(this,((m=this.config.args)==null?void 0:m.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var G;if((G=this.config)==null?0:G.attrs)O=this.config.attrs,(m=O.width)&&this.yq&&(this.yq.style.width=N0(Number(m)||m,!0)),(O=O.height)&&this.yq&&(this.yq.style.height=N0(Number(O)||O,!0))};
i5.prototype.getConfig=function(){return this.llU};
var wN9=function(O){if(O.config&&O.config.loaded!==!0)if(O.config.loaded=!0,!O.config.args||O.config.args.autoplay!=="0"&&O.config.args.autoplay!==0&&O.config.args.autoplay!==!1){var m;O.api.loadVideoByPlayerVars((m=O.config.args)!=null?m:null)}else O.api.cueVideoByPlayerVars(O.config.args)},NdU=function(O){var m=!0,G=O.getPlayerElement();
G&&O.config&&(m=G.dataset.version===sv9(O));return m&&!!_.ex("yt.player.Application.create")},dye=function(O){if(!O.isDisposed()&&!O.cte){var m=NdU(O);
if(m&&(O.getPlayerElement()?"html5":null)==="html5")O.a9I="html5",O.isReady()||P0$(O);else if(FX9(O),O.a9I="html5",m&&O.ke&&O.targetElement)O.targetElement.appendChild(O.ke),P0$(O);else{O.config&&(O.config.loaded=!0);var G=!1;O.nWa=function(){G=!0;var B=ABp(O,"player_bootstrap_method")?_.ex("yt.player.Application.createAlternate")||_.ex("yt.player.Application.create"):_.ex("yt.player.Application.create");var Q=O.config?erH(O.config):void 0;B&&B(O.targetElement,Q,O.webPlayerContextConfig,O.xO5);P0$(O)};
O.cte=!0;m?O.nWa():(_.sF(sv9(O),O.nWa),(m=Ote(O))&&kEz(m||""),mSe(O)&&!G&&_.HI("yt.player.Application.create",null))}}};
i5.prototype.getPlayerElement=function(){var O=_.R_(document,this.elementId);!O&&this.yq&&this.yq.querySelector&&(O=this.yq.querySelector("#"+this.elementId));return O};
var P0$=function(O){if(!O.isDisposed()){var m=O.getPlayerElement(),G=!1;m&&m.getApiInterface&&m.getApiInterface()&&(G=!0);if(G){O.cte=!1;if(!ABp(O,"html5_remove_not_servable_check_killswitch")){var B;if((m==null?0:m.isNotServable)&&O.config&&(m==null?0:m.isNotServable((B=O.config.args)==null?void 0:B.video_id)))return}G5C(O)}else O.q4w=setTimeout(function(){P0$(O)},50)}},G5C=function(O){cBe(O);
O.xDV=!0;var m=O.getPlayerElement();if(m){O.oMd=B$2(O,m,"addEventListener");O.nPG=B$2(O,m,"removeEventListener");var G=m.getApiInterface();G=G.concat(m.getInternalApiInterface());for(var B=O.api,Q=0;Q<G.length;Q++){var H=G[Q];B[H]||(B[H]=B$2(O,m,H))}}for(var M in O.hJ)O.hJ.hasOwnProperty(M)&&O.oMd&&O.oMd(M,O.hJ[M]);wN9(O);O.yh0&&O.yh0(O.api);O.o2h.publish("onReady",O.api)},B$2=function(O,m,G){var B=m[G];
return function(){var Q=_.eA.apply(0,arguments);try{return O.lastError=null,B.apply(m,Q)}catch(H){if(G!=="sendAbandonmentPing")throw H.params=G,O.lastError=H,Q=new _.j9("PlayerProxy error in method call",{error:H,method:G,playerId:O.playerId}),Q.level="WARNING",Q;}}},cBe=function(O){O.xDV=!1;
if(O.nPG)for(var m in O.hJ)O.hJ.hasOwnProperty(m)&&O.nPG(m,O.hJ[m]);for(var G in O.soq)O.soq.hasOwnProperty(G)&&clearTimeout(Number(G));O.soq={};O.oMd=null;O.nPG=null;m=O.api;for(var B in m)m.hasOwnProperty(B)&&(m[B]=null);m.addEventListener=function(Q,H){O.addEventListener(Q,H)};
m.removeEventListener=function(Q,H){O.removeEventListener(Q,H)};
m.destroy=function(){O.dispose()};
m.getLastError=function(){return O.getLastError()};
m.getPlayerType=function(){return O.getPlayerType()};
m.getCurrentVideoConfig=function(){return O.getConfig()};
m.loadNewVideoConfig=function(Q){O.loadNewVideoConfig(Q)};
m.isReady=function(){return O.isReady()}};
i5.prototype.isReady=function(){return this.xDV};
i5.prototype.addEventListener=function(O,m){var G=this;this.isDisposed();var B=Dym(this,m);B&&(_.kO(this.kxg,O)||this.hJ[O]||(m=QW_(this,O),this.oMd&&this.oMd(O,m)),this.o2h.subscribe(O,B),O==="onReady"&&this.isReady()&&setTimeout(function(){B(G.api)},0))};
i5.prototype.removeEventListener=function(O,m){this.isDisposed()||(m=Dym(this,m))&&this.o2h.unsubscribe(O,m)};
var Dym=function(O,m){var G=m;if(typeof m==="string"){if(O.zbI[m])return O.zbI[m];G=function(){var B=_.eA.apply(0,arguments),Q=_.ex(m);if(Q)try{Q.apply(_.Qf,B)}catch(H){throw B=new _.j9("PlayerProxy error when executing callback",{error:H}),B.level="ERROR",B;}};
O.zbI[m]=G}return G?G:null},QW_=function(O,m){var G=function(B){var Q=function(){O.isDisposed();
if(!O.isDisposed())try{O.o2h.publish(m,B!=null?B:void 0)}catch(R){var M=new _.j9("PlayerProxy error when creating global callback",{error:R.message,event:m,playerId:O.playerId,data:B,originalStack:R.stack,componentStack:R.componentStack});M.level="WARNING";throw M;}};
if(ABp(O,"web_player_publish_events_immediately"))Q();else{var H=setTimeout(function(){Q();_.aM.remove(O.soq,String(H))},0);
_.aM.add(O.soq,String(H),!0)}};
return O.hJ[m]=G};
i5.prototype.getPlayerType=function(){return this.a9I||(this.getPlayerElement()?"html5":null)};
i5.prototype.getLastError=function(){return this.lastError};
var FX9=function(O){O.cancel();cBe(O);O.a9I=null;O.config&&(O.config.loaded=!1);var m=O.getPlayerElement();m&&(NdU(O)||!mSe(O)?O.ke=m:(m&&m.destroy&&m.destroy(),O.ke=null));O.targetElement&&_.c4(O.targetElement)};
i5.prototype.cancel=function(){this.nWa&&_.Us5(sv9(this),this.nWa);clearTimeout(this.q4w);this.cte=!1};
i5.prototype.disposeInternal=function(){FX9(this);if(this.ke&&this.config&&this.ke.destroy)try{this.ke.destroy()}catch(m){var O=new _.j9("PlayerProxy error during disposal",{error:m});O.level="ERROR";throw O;}this.zbI=null;for(O in this.hJ)this.hJ.hasOwnProperty(O)&&delete this.hJ[O];this.llU=this.config=this.api=null;delete this.targetElement;delete this.yq;_.Iw.prototype.disposeInternal.call(this)};
var mSe=function(O){var m,G;O=(m=O.config)==null?void 0:(G=m.args)==null?void 0:G.fflags;return!!O&&O.indexOf("player_destroy_old_version=true")!==-1},sv9=function(O){return O.webPlayerContextConfig?O.webPlayerContextConfig.jsUrl:(O=O.config.assets)?O.js:""},Ote=function(O){return O.webPlayerContextConfig?O.webPlayerContextConfig.cssUrl:(O=O.config.assets)?O.css:""},ABp=function(O,m){if(O.webPlayerContextConfig)var G=O.webPlayerContextConfig.serializedExperimentFlags;
else{var B;if((B=O.config)==null?0:B.args)G=O.config.args.fflags}return(G||"").split("&").includes(m+"=true")},erH=function(O){for(var m={},G=_.K(Object.keys(O)),B=G.next();!B.done;B=G.next()){B=B.value;
var Q=O[B];m[B]=typeof Q==="object"?_.aM.clone(Q):Q}return m};var uTz={},g1p="player_uid_"+(Math.random()*1E9>>>0);var bp=function(O,m,G,B,Q,H){m=m===void 0?document.createElement("div"):m;this.webPlayerContextConfig=O;this.container=m;this.commandResolver=G;this.apiResolver=pNN();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.Vg;B||H?Hto(this):vMU(this);this.pendingPlayerResponse=B;this.pendingWatchNextResponse=Q;this.pendingPlayerVars=H;KSH(this)};
bp.prototype.loadVideoWithPlayerResponse=function(O,m,G){this.loadVideo(O,m,G)};
bp.prototype.loadVideoWithPlayerVars=function(O){return this.loadVideo(void 0,void 0,O)};
bp.prototype.destroy=function(O){if(O=_.R_(document,O))O=g1p+"_"+_.sS(O),(O=uTz[O])&&O.dispose()};
var M7$=function(O,m){var G;_.r(function(B){if(B.nextAddress==1)return O.pendingWatchNextResponse=m,O.synchronousApi?(G=O.synchronousApi,B.jumpTo(2)):B.yield(O.api,3);B.nextAddress!=2&&(G=B.yieldResult);if(!$Sj(O,G))return B.return();O.pendingWatchNextResponse&&(G.updateVideoData({raw_watch_next_response:O.pendingWatchNextResponse}),O.pendingWatchNextResponse=void 0);_.ju(B)})},$Sj=function(O,m){var G;
if(!(m==null?0:(G=m.isReady)==null?0:G.call(m))){var B;_.ay(new _.j9("playerApi is falsey",{synchronousApi:O.synchronousApi,apiResolved:O.apiResolver.resolved,playerApiUndefined:m===void 0,playerApiNull:m===null,playerApiReady:(m==null?void 0:(B=m.isReady)==null?void 0:B.call(m))===!0,playerApiMethods:m?Object.keys(m):[]}));return!1}return!0},r22=function(O,m){if(typeof O[m]==="function")return O[m]()},RMp=function(O){var m=window,G,B=(G=m.ytplayer)==null?void 0:G.bootstrapPlayerContainer;
if((G=B==null?void 0:B.firstElementChild)&&_.BG(G,"html5-video-player")){var Q,H,M=(Q=m.ytplayer)==null?void 0:(H=Q.bootstrapWebPlayerContextConfig)==null?void 0:H.contextId;Q=O.webPlayerContextConfig.contextId;if(M&&M===Q){B!==O.container&&(B=!1,r22(G,"getPlayerState")===2&&(B=!0),O.container.appendChild(G),B||r22(G,"playVideo"));var R;if((R=m.ytplayer)==null?0:R.bootstrapPlayerResponse)O.bootstrapPlayerResponse=m.ytplayer.bootstrapPlayerResponse}}},KSH=function(O){var m,G,B,Q,H;
_.r(function(M){if(M.nextAddress==1)return O.pageReadyOrDataAvailable?M.jumpTo(2):M.yield(O.pageReadyOrDataAvailableResolver.promise,2);if(M.nextAddress!=4)return!_.V("kevlar_player_unified_player_loading")||zrI()&&Vyr()?M.jumpTo(4):M.yield(hrO(),4);RMp(O);if(O.pendingPlayerResponse||O.pendingPlayerVars)m=Tdf(O.pendingPlayerResponse,O.pendingWatchNextResponse,O.pendingPlayerVars),O.pendingPlayerResponse&&O.pendingPlayerResponse===O.bootstrapPlayerResponse&&(m.loaded=!0),O.bootstrapPlayerResponse=
void 0;G=IWp(O.container,m,O.webPlayerContextConfig);((B=m)==null?0:B.loaded)&&O.pendingWatchNextResponse?(M7$(O,O.pendingWatchNextResponse),O.pendingPlayerResponse=void 0,O.pendingPlayerVars=void 0):it2(O);Q=function(R){G.removeEventListener("onReady",Q);O.synchronousApi=R;O.apiResolver.resolve(R)};
G.addEventListener("onReady",Q);O.commandResolver!==void 0&&(H=O.commandResolver,G.addEventListener("innertubeCommand",function(R){H(R)}));
_.ju(M)})};
bp.prototype.loadVideo=function(O,m,G){var B=this,Q,H,M,R,x,t,W,Z,z;return _.r(function(J){if(J.nextAddress==1)return B.pendingPlayerResponse=O,B.pendingWatchNextResponse=m,B.pendingPlayerVars=G,Hto(B),B.synchronousApi?(Q=B.synchronousApi,J.jumpTo(2)):J.yield(B.api,3);J.nextAddress!=2&&(Q=J.yieldResult);if(!$Sj(B,Q))return J.return(new Promise(function(){}));
M=new Promise(function(n){H=n});
R=function(){var n=Q.getPlayerResponse();n&&(Q.removeEventListener("onVideoDataChange",R),H(n))};
Q.addEventListener("onVideoDataChange",R);if(B.pendingPlayerResponse||B.pendingPlayerVars)B.pendingPlayerResponse&&B.pendingPlayerResponse===B.bootstrapPlayerResponse?(H(B.pendingPlayerResponse),B.pendingWatchNextResponse&&M7$(B,B.pendingWatchNextResponse)):(x=Tdf(B.pendingPlayerResponse,B.pendingWatchNextResponse,B.pendingPlayerVars),(z=(t=B.pendingPlayerResponse)==null?void 0:(W=t.playerConfig)==null?void 0:(Z=W.playbackStartConfig)==null?void 0:Z.startPaused)?Q.cueVideoByPlayerVars(x.args):Q.loadVideoByPlayerVars(x.args)),
it2(B),B.bootstrapPlayerResponse=void 0;return J.return(M)})};
var vMU=function(O){if(document.readyState==="complete"||document.readyState==="interactive")Hto(O);else{var m=function(){document.removeEventListener("DOMContentLoaded",m);Hto(O)};
document.addEventListener("DOMContentLoaded",m)}},Hto=function(O){O.pageReadyOrDataAvailable=!0;
O.pageReadyOrDataAvailableResolver.resolve()},it2=function(O){O.pendingPlayerResponse=void 0;
O.pendingWatchNextResponse=void 0;O.pendingPlayerVars=void 0};
_.vr.Object.defineProperties(bp.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var nW=function(O){ss.call(this,O===void 0?"document_active":O);var m=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(G){m.transition("document_disposed",{event:G})});
window.addEventListener("beforeunload",function(G){m.transition("document_disposed_preventable",{event:G})});
window.addEventListener("unload",function(G){m.transition("document_disposed",{event:G});m.hasRun=new Map})};
_.X(nW,ss);
nW.prototype.runPreventableDispose=function(O,m){if(!this.hasRun.get("document_disposed_preventable")){O(m==null?void 0:m.event);var G,B;if((m==null?0:(G=m.event)==null?0:G.defaultPrevented)||(m==null?0:(B=m.event)==null?0:B.returnValue)){m.event.returnValue||(m.event.returnValue=!0);m.event.defaultPrevented||m.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")};
nW.prototype.runDispose=function(O,m){this.hasRun.get("document_disposed")?this.transition("document_active"):(O(m==null?void 0:m.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
nW.prototype.runFlush=function(O,m){O(m==null?void 0:m.event);this.transition("document_active")};
nW.prototype.runActive=function(){};var X$=function(O){ss.call(this,O===void 0?"document_visibility_unknown":O);var m=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(G){document.visibilityState==="visible"?m.transition("document_visible",{event:G}):m.transition("document_hidden",
{event:G})});
_.V("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(G){m.transition("document_backgrounded",{event:G})}),window.addEventListener("focus",function(G){m.transition("document_foregrounded",{event:G})}))};
_.X(X$,ss);X$.prototype.runVisible=function(O,m){O(m==null?void 0:m.event);_.V("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
X$.prototype.runHidden=function(O,m){O(m==null?void 0:m.event);_.V("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
X$.prototype.runBackgrounded=function(O,m){O(m==null?void 0:m.event)};
X$.prototype.runForegrounded=function(O,m){O(m==null?void 0:m.event)};var fW=function(){this.teardownLifecycle=new nW;this.visibilityLifecycle=new X$};
fW.prototype.install=function(){var O=_.eA.apply(0,arguments),m=this;O.forEach(function(G){m.teardownLifecycle.install(G)});
O.forEach(function(G){m.visibilityLifecycle.install(G)})};var hh=function(){fW.call(this);var O={};this.install((O.document_disposed={callback:this.abortSlisAndFlush},O));_.V("combine_ve_grafts")&&(O={},this.install((O.document_disposed={callback:this.flushInteractionLoggingAttachVes},O)));O={};this.install((O.flush_logs={callback:this.logFinalPayload},O));_.V("web_log_cfg_cee_ks")||_.uT(_.ln,xSo)};
_.X(hh,fW);var S$I=function(){hh.loggingInstance||(hh.loggingInstance=new hh);return hh.loggingInstance};
hh.prototype.logFinalPayload=function(){if(_.V("web_fp_via_jspb")){var O=new jqs,m=_.yA();m&&_.SS(O,1,m);m=_.V("jspb_sparse_encoded_pivot")?new gE([{}]):new gE;_.g5(m,380,Ifo,O);HGN("finalPayload",m);_.V("web_fp_via_jspb_and_json")&&_.LE("finalPayload",{csn:_.yA()})}else _.LE("finalPayload",{csn:_.yA()})};
hh.prototype.abortSlisAndFlush=function(){YLu(qO);U1!=null&&U1.flush()};
hh.prototype.flushInteractionLoggingAttachVes=function(){MF2(_.uK())};
var xSo=function(){var O=_.kB("CLIENT_EXPERIMENT_EVENTS");if(O){var m=sep();O=_.K(O);for(var G=O.next();!G.done;G=O.next())G=G.value,m(G)&&_.LE("genericClientExperimentEvent",{eventType:G});delete _.lz.CLIENT_EXPERIMENT_EVENTS}};var qmu={};
qmu.YtPlayerBehavior=[_.Jh.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 O=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.Vg;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;E1f(function(){O.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.kV(this,"pan-down"),_.V("kevlar_pinch_fullscreen")&&_.F5().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.V("kevlar_pinch_fullscreen")&&_.F5().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(O,m,G){var B=this;xi(this.useUnifiedPlayer_());if(this.mainAppPlayer_)xi(!1,"MainAppPlayer already created.");else{var Q=_.V("kevlar_player_container_query_killswitch")?this.$.container:_.ZO(this.hostElement).querySelector("#container");this.mainAppPlayer_=new bp(this.getWebPlayerContextConfig_(),Q,function(H){return _.fm(H,B.hostElement)},O,m,G);
this.mainAppPlayer_.api.then(function(H){B.player_=H;B.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&ro8.resolve(H)})}},
loadVideoWithPlayerResponse:function(O,m){var G=this;if(this.useUnifiedPlayer_()){var B=this.watchNextData,Q,H=(Q=O.videoDetails)==null?void 0:Q.videoId,M,R,x;(Q=(M=this.watchNextData)==null?void 0:(R=M.currentVideoEndpoint)==null?void 0:(x=R.watchEndpoint)==null?void 0:x.videoId)&&H!=Q&&(B=void 0,_.V("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(O,B,m):this.createMainAppPlayer_(O,B,m);this.mainAppPlayer_.api.then(function(){_.iP(G.hostElement,
"yt-player-updated")})}else this.update(UyY(O,m))},
loadVideoWithPlayerVars:function(O){var m=this;this.useUnifiedPlayer_()?(_.V("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(O):this.createMainAppPlayer_(void 0,void 0,O),this.mainAppPlayer_.api.then(function(){_.iP(m.hostElement,"yt-player-updated")})):this.update({args:O})},
update:function(O){var m=this;if(this.useUnifiedPlayer_())xi(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(O);var G=Xv6(O.args);G&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==G&&Object.assign(O.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(O).then(function(B){_.iP(m.hostElement,"yt-player-updated",_.V("kevlar_player_updated_obsolete_player_killswitch")?
B:void 0)})}_.lT(new _.j9("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(m.getPlayerPromise(),2);G=B.yieldResult;if(!G)throw Error("Ah");O&&m.updatePlayerPlaylist_(O);_.ju(B)})},
acquireApi_:function(O){var m=this;if(this.useUnifiedPlayer_())xi(!1,"Invalid method call in kevlar_unified_player.");else return _.ln.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(xi(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(G){m.shouldAutoplay_(O)?G.loadVideoByPlayerVars(O.args):G.cueVideoByPlayerVars(O.args)})):this.initPlayerPromise_=this.initPlayerContainer_(O),this.initPlayerPromise_},
initPlayerContainer_:function(O){var m=this;if(this.useUnifiedPlayer_())xi(!1,"Invalid method call in kevlar_unified_player.");else return xi(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.ay(Error("Bh")),xi(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.V("kevlar_player_container_query_killswitch")?this.$.container:_.ZO(this.hostElement).querySelector("#container"),hrO().then(function(){var G=m.initPlayer_(O);m.playerResolver_.resolve(G);
return G})},
onPlayerReady_:function(O,m){this.useUnifiedPlayer_()?xi(!1,"Invalid method call in kevlar_unified_player."):(O.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&ro8.resolve(O),m(O))},
maybeCallApiMethodOnElement_:function(O,m){if(typeof O[m]==="function")return O[m]()},
maybeAdoptBootstrapPlayer_:function(){var O=window,m,G=(m=O.ytplayer)==null?void 0:m.bootstrapPlayerContainer;if((m=G==null?void 0:G.firstElementChild)&&m.classList.contains("html5-video-player")){var B,Q,H=(B=O.ytplayer)==null?void 0:(Q=B.bootstrapWebPlayerContextConfig)==null?void 0:Q.contextId;B=this.getWebPlayerContextConfig_().contextId;if(H&&H===B){G!==this.playerContainer_&&(G=!1,this.maybeCallApiMethodOnElement_(m,"getPlayerState")===2&&(G=!0),this.playerContainer_.appendChild(m),G||this.maybeCallApiMethodOnElement_(m,
"playVideo"));var M;if((M=O.ytplayer)==null?0:M.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=O.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(O){var m=this;if(this.useUnifiedPlayer_())xi(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(G){m.maybeAdoptBootstrapPlayer_();var B=O?tyO(O):void 0;B&&B==m.bootstrapPlayerResponse_&&(O.loaded=!0);B=m.playerContainer_;var Q=m.getWebPlayerContextConfig_();B=IWp(B,O,Q);m.player_=B;m.onPlayerReadyEvent_=m.onPlayerReady_.bind(m,m.player_,G);m.player_.addEventListener("onReady",m.onPlayerReadyEvent_);m.player_.addEventListener("innertubeCommand",
m.onPlayerInnerTubeCommand_.bind(m))})},
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(O){O.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(O){O.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var O=_.KR().resolve(_.KJ).getCurrentPage();O&&O.getScrollTop()<=0?_.kV(this,"pan-down"):_.kV(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(O){O.isFullscreen()||O.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(O){O.isFullscreen()&&O.toggleFullscreen()})},
updatePlayerPlaylist_:function(O){var m=this,G,B,Q;return _.r(function(H){if(H.nextAddress==1)return G=_.KR().resolve(_.v7(_.Rt)),B=!!(G&&G.playlistComponent&&G.playlistComponent.loopOn),H.yield(m.getPlayerPromise(),2);var M=Q=H.yieldResult,R=M.updatePlaylist,x=[];if(_.V("kevlar_player_playlist_use_local_index")){var t,W;var Z=(W=(t=O.localCurrentIndex)!=null?t:O.currentIndex)!=null?W:0}else{var z;Z=(z=O.currentIndex)!=null?z:0}if(O.contents)for(t=0;t<O.contents.length;t++)if((W=O.contents[t])&&W.playlistPanelVideoRenderer)if(V6N(W)){W=
W.playlistPanelVideoRenderer;z="";W.shortBylineText&&(z=_.HX(W.shortBylineText));var J="";W.title?J=_.HX(W.title):W.unplayableText&&(J=_.HX(W.unplayableText));x.push({author:z,title:J,encrypted_id:W.videoId})}else t<Z&&--Z;R.call(M,{index:Z,list:O.playlistId?O.playlistId:"",loop:B,playlist_title:O.title,playlist_length:x.length,video:x,fetch:0,external_list:"1",title:O.title?O.title:"",playlist_author:O.ownerName?_.HX(O.ownerName):void 0});_.ju(H)})},
focusOnPlayer:function(){_.QA(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var O=this.playerContainer_.querySelector(".html5-video-player");O&&(_.Tj(_.KR().resolve(_.pH)),O.focus())}})},
preparePlayer:function(){var O=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(m){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")m();else{var G=function(){document.removeEventListener("DOMContentLoaded",G);m()};
document.addEventListener("DOMContentLoaded",G)}})).then(function(){return hrO()}).then(function(){O.initPlayerPromise_||O.preparePlayerJobId_||(O.preparePlayerJobId_=_.uT(_.ln,function(){O.initPlayerPromise_||(O.initPlayerPromise_=O.initPlayerContainer_())}))}):_.lT(new _.j9("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(O){this.useUnifiedPlayer_()?xi(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(O)||(O.args.autoplay="0")},
shouldAutoplay_:function(O){if(this.useUnifiedPlayer_())xi(!1,"Invalid method call in kevlar_unified_player.");else{var m=this.get("args.el",O);return m&&m!="detailpage"&&this.isMiniplayerActive_()||m&&(m=="sponsorshipsoffer"||m=="handlesclaiming")&&this.get("args.autoplay",O)=="0"?!1:(O=tyO(O))&&this.get("playerConfig.playbackStartConfig.startPaused",O)?!1:!0}},
isMiniplayerActive_:function(){return _.KR().resolve(_.c$).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var O=this.getPlayer();if(O){var m=O.getPlayerState();_.V("kevlar_player_check_ad_state_on_stop")&&(m=O.getPlayerState(O.getPresentingPlayerType()));m!=5&&O.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(O,m,G){G=G===void 0?!1:G;var B=this,Q,H,M,R;return _.r(function(x){if(x.nextAddress==1)return m||(m=B.hostElement),Q=B.useUnifiedPlayer_()?!!B.mainAppPlayer_:!!B.initPlayerPromise_,Q?x.yield(B.getPlayerPromise(),2):(G?O.insertBefore(m,O.firstChild):O.appendChild(m),x.return());H=x.yieldResult;M=H.getPlayerState(H.getPresentingPlayerType());R=!1;if(M==-1||M==1||M==3)R=!0;G?O.insertBefore(m,O.firstChild):O.appendChild(m);R&&H.playVideo();H.setSize(NaN,NaN);_.ju(x)})},
watchNextDataChanged_:function(O){var m=this;O&&(this.useUnifiedPlayer_()&&_.V("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&M7$(this.mainAppPlayer_,O):this.getPlayerPromise().then(function(G){G.updateVideoData(m.computeWatchNextPlayerVars_(O))}))},
computeWatchNextPlayerVars_:function(O){if(this.useUnifiedPlayer_()&&_.V("kevlar_unified_player_update_watch_next_killswitch"))xi(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:O}},
maybeSendAbandonmentPing_:function(){var O=this.getPlayer();O&&O.getPlayerState()!=5&&O.getPlayerState()!=0&&O.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var O=_.kB("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(O=Object.assign({},O),O.rootElementId=this.playerId);O.serializedExperimentIds&&O.serializedExperimentFlags||_.ay(Error("Ch"));return O},
hasWebPlayerContextConfig_:function(){return!!_.kB("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(O){this.useUnifiedPlayer_()?xi(!1,"Invalid method call in kevlar_unified_player."):_.fm(O,this.hostElement)},
useUnifiedPlayer_:function(){var O=_.V("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.V("kevlar_unified_player")||O}}];var USC={};USC.YtPlaylistPanelBehavior=[_.N.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(O){O=O.detail;if(O.actions.loop!=void 0||O.actions["yt-icons:loop"]!=void 0)this.loopOn=O.actions.loop||O.actions["yt-icons:loop"];if(O.actions.shuffle!=void 0||O.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=O.actions.shuffle||O.actions["yt-icons:shuffle"]},
setMenuData_:function(O){if(!O||!O.playlistButtons||O.isInfinite)return null;for(var m=O.playlistButtons.menuRenderer.topLevelButtons,G=m.length,B=0;B<G;B++)if(m[B].toggleButtonRenderer){var Q=m[B].toggleButtonRenderer;Q.defaultIcon.iconType=="LOOP"&&this.loopOn?Q.isToggled=this.loopOn:Q.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(Q.isToggled=this.shuffleOn)}return O.playlistButtons}}];var t7U=function(O){q5.call(this,O,132);this.isDocument=O===document.documentElement};
_.X(t7U,q5);t7U.prototype.calculateScrollDelta=function(O,m,G){var B=0;O<m?B=O<m-100?-48:-8:O>m+G&&(B=O>m+G+100?48:8);return B};
t7U.prototype.JSC$11398_onMouseMove=function(O){this.isDocument||(O.clientX=O.event_.pageX,O.clientY=O.event_.pageY);q5.prototype.JSC$11398_onMouseMove.call(this,O)};var gm=function(){var O=_.Iu.apply(this,arguments)||this;O._noAccessors=!0;O.scrollElement=document.documentElement;O.JSC$14386_dragListGroup=null;O.dragScrollSupport=null;O.onDraggerCreated=function(m){var G=m.JSC$11394_dragger;G.scrollTarget_=O.scrollElement;m=m.draggerEl;G&&m.menuOpened&&G.setEnabled(!1)};
O.onDragStart=function(m){var G=m.draggerEl;m=m.currDragItem;var B=Object.assign({},m==null?void 0:m.data);B.trackingParams=void 0;G.data=B;G.style.position="absolute";G.style.width=(m==null?void 0:m.clientWidth)+"px";G.style.zIndex="2030";G.onDrag&&G.onDrag();_.V("web_owner_document_fallback_killswitch")?(m=document.querySelector("ytd-app"))&&_.ZO(m).appendChild(G):(m=_.Y6(G),(B=m.querySelector("ytd-app"))?_.ZO(B).appendChild(G):m.body.appendChild(G));O.dragScrollSupport=new t7U(O.scrollElement);
O.dragScrollSupport.horizontalScrolling_=!1;G=O.dragScrollSupport;G.constrainScroll_=!!G.margin_&&!1};
O.onDrop=function(m){O.handleDrop(m);O.dragScrollSupport&&(_.Kd(O.dragScrollSupport),O.dragScrollSupport=null)};
O.onReorderableScroll=function(){if(O.JSC$14386_dragListGroup){var m=O.JSC$14386_dragListGroup;uV8(m,m.currDragItem_)}};
return O};
_.X(gm,_.Iu);gm.prototype.detached=function(){_.WSj(this)};
_.WSj=function(O){O.JSC$14386_dragListGroup&&(_.E2(O.JSC$14386_dragListGroup,JG2,O.onDragStart),_.E2(O.JSC$14386_dragListGroup,XCU,O.onDragStart),O.JSC$14386_dragListGroup.dispose(),O.JSC$14386_dragListGroup=null);O.dragScrollSupport&&(_.Kd(O.dragScrollSupport),O.dragScrollSupport=null);O.scrollElement.removeEventListener("scroll",O.onReorderableScroll)};
_.Zts=function(O,m,G,B){B=B===void 0?"":B;_.WSj(O);G&&(O.scrollElement=G);O.JSC$14386_dragListGroup=new Gv;O.JSC$14386_dragListGroup.hysteresisDistance_=2;hSH(O.JSC$14386_dragListGroup,m);O.JSC$14386_dragListGroup.draggerElClasses_=tz("dragging").split(" ");B&&TX_(O.JSC$14386_dragListGroup,function(Q){var H=Q||document,M=null;H.getElementsByClassName?M=H.getElementsByClassName(B)[0]:M=KAe("*",B,Q);return M||Q});
_.Cm(O.JSC$14386_dragListGroup,Z7o,O.onDraggerCreated);_.Cm(O.JSC$14386_dragListGroup,JG2,O.onDragStart);_.Cm(O.JSC$14386_dragListGroup,XCU,O.onDrop);O.JSC$14386_dragListGroup.init();O.scrollElement.addEventListener("scroll",O.onReorderableScroll,{passive:!0})};
gm.prototype.handleDrop=function(){};
_.vr.Object.defineProperties(gm.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.c([_.g({value:100}),_.Y("design:type",Number)],gm.prototype,"scrollMargin",void 0);_.c([_.p7()],gm);_.zM9=[gm.prototype];_.up={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(O,m,G){var B=this.getClickTarget_(m);if(B&&this.isClickAllowed_(B)){m.preventDefault();O=(0,_.aM.unsafeClone)(O);var Q=this.getContainerBoundingRect();m=this.getRelativeClickXy_(m,Q);this.expandEndpointUrlMacros_(O,{NX:m[0],NY:m[1],NB:B.code});G&&this.truncateWebCommendMetadataUrl_(O);_.iP(this.hostElement,"yt-navigate",{endpoint:O})}},
getClickTarget_:function(O){if(!this.clickTargetMap)return null;O=_.$Z(O)||[];O=_.K(O);for(var m=O.next();!m.done;m=O.next()){m=m.value;if(m===_.ZO(this.hostElement).querySelector("#menu"))break;if(m=this.clickTargetMap.get(m.id))return m}return null},
getRelativeClickXy_:function(O,m){var G=O.detail.x,B=O.detail.y;_.V("use_on_click_for_desktop_display_ad")&&O.clientX!=null&&O.clientY!=null&&(G=O.clientX,B=O.clientY);O=Math.round(G-m.left);m=Math.round(B-m.top);return O<0||m<0?[null,null]:[O,m]},
getContainerBoundingRect:function(){return _.ZO(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(O,m){for(var G=_.K(O.loggingUrls||[]),B=G.next();!B.done;B=G.next())B=B.value,B.baseUrl&&(B.baseUrl=F_r(B.baseUrl,m));O.urlEndpoint&&O.urlEndpoint.url&&(O.urlEndpoint.url=F_r(O.urlEndpoint.url,m));O.commandMetadata&&O.commandMetadata.webCommandMetadata&&O.commandMetadata.webCommandMetadata.url&&(O.commandMetadata.webCommandMetadata.url=F_r(O.commandMetadata.webCommandMetadata.url,m))},
truncateWebCommendMetadataUrl_:function(O){if(O.commandMetadata&&O.commandMetadata.webCommandMetadata&&O.commandMetadata.webCommandMetadata.url){var m=O.commandMetadata.webCommandMetadata.url,G=m.indexOf("&pp=");if(G>0){var B=m.indexOf("&",G+1);O.commandMetadata.webCommandMetadata.url=B>G&&B<m.length?m.slice(0,G)+m.slice(B):m.slice(0,G)}}},
configureClickTargets:function(O,m,G){this.containerId=O;this.clickTargetMap=new Map;O=_.K(m);for(m=O.next();!m.done;m=O.next())if(m=m.value,m.location){var B=G.get(m.location);B&&(_.JG(_.ZO(this.hostElement).querySelector("#"+B),"yt-simple-endpoint",this.isClickAllowed_(m)),this.clickTargetMap.set(B,m))}},
isClickAllowed_:function(O){return O.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||O.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||O.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||O.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.jQ={};
_.jQ.YtLazyListBehavior=[_.hg.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 O=(this.constructor.generatedFrom||this).observers;O||(O=[]);O.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
O}},
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 O=this.renderElementsOutsideVisibleArea_;O&&(WK3(O,4),O.processSignal())},
deepLazyListObserver_:function(O){var m=this;if(O){var G=O.value||[];if(this.itemsPath==O.path){var B=this.nonDeferredItemCount;O=0;B>-1&&G.length>B&&(O=_.kB("REMAINING_DOVA_DEFERRED_CHUNKS",-1));O>0?(B>0&&(B=G.slice(0,B),this.setInitialItemsOnDataChanged(B)),(B=this.renderElementsOutsideVisibleArea_)?B.cancel():(B=this.renderElementsOutsideVisibleArea_=new _.gy(2,"eocs"),_.OHS(window,"scroll",function(){return m.renderDeferredElements()})),_.uL(B,function(){m.setInitialItemsOnDataChanged(G)}),_.a8("REMAINING_DOVA_DEFERRED_CHUNKS",
O-1)):this.setInitialItemsOnDataChanged(G)}else if(this.itemsPath+".splices"==O.path)this.onItemsUpdated_(G);
else B="shownItems"+O.path.substr(this.itemsPath.length),this.useSignals&&B==="shownItems.length"||this.notifyPath(B,O.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(O){O&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(O),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(O){O=O.indexSplices;for(var m=0,G=O.length;m<G;m++){var B=O[m];if(B.index<this.shownCount&&(B.removed&&this.splice("shownItems",B.index,B.removed.length),B.addedCount)){var Q=B.object.slice(B.index,B.index+B.addedCount);B=["shownItems",B.index,0];B.push.apply(B,Q);this.splice.apply(this,B)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(O){this.cancelPendingTasks_();O||(O=[]);this.items_=O;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&&(_.yE("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.QA(this,this.tryRenderChunk_)))},
fillRange_:function(O,m){this.canShowMore&&this.items_&&(O=this.items_.slice(O,m),O.unshift("shownItems"),this.push.apply(this,O),this.shownCount=m,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var O=this;this.canShowMore&&_.GS(this,"renderChunk",function(){O.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.yE("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Sh(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var O=this.renderElementsOutsideVisibleArea_;O&&(O.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var O=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(O-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=O;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(O){return Math.ceil(1E3/O)},
onCanShowMoreUpdated_:function(O){this.data&&this.items_!==null&&(O?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(O){!this.shouldUseTaskManager()&&this.data&&(!O&&this.canShowMore?(_.m8N(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):O&&this.partiallyRenderedItems_.has(this.items_)&&(_.V("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var SQ;_.Ir={};
SQ=function(){var O=_.Iu.apply(this,arguments)||this;O.atStart=!0;O.atEnd=!0;O.startIndex=0;O.endIndex=0;O.scrollCount=0;O.initialStartIndex=0;O.disableScrollEventListener=!1;O.useFloorScrolling=!1;O.isSearch=!1;O.dragging=!1;O.dragMouseStart=0;O.dragOffsetStart=0;O.disableWheelScroll=!1;O.centerListItems=!1;O.offset=0;O.minComponentWidth=0;O.marginWidthRight=0;O.marginWidthLeft=0;O.setButtonsStateRequested=!1;O.itemsVisibilityObserver=null;O.fullyVisibleItemsIndices=[];O.JSC$14397_onWheelScroll=function(m){if(O.isSearch&&
!O.disableWheelScroll&&_.V("desktop_enable_dmpanel_wheel_scroll")){var G=m.shiftKey?Math.abs(m.deltaY)>Math.abs(m.deltaX)?m.deltaY:m.deltaX:m.deltaX;G!==0&&(m.preventDefault(),O.ytLazyListBehavior.fillRemainingListItems(),O.offset+=G,pW(O),O.reposition_())}};
O.onPointerDown=function(m){J23(O)&&(O.dragMouseStart=m.clientX,O.dragOffsetStart=O.offset,O.dragging=!0)};
O.onPointerMove=function(m){J23(O)&&O.dragging&&(O.ytLazyListBehavior.fillRemainingListItems(),O.offset=O.dragOffsetStart-(m.clientX-O.dragMouseStart),pW(O),O.reposition_())};
O.onPointerUp=function(){J23(O)&&(O.dragging=!1)};
return O};
_.X(SQ,_.Iu);var V7U=function(O){var m=_.ZO(O.hostElement).querySelector("#items").children;if(!m)return 0;var G=0;O=_.K(O.fullyVisibleItemsIndices);for(var B=O.next();!B.done;B=O.next())G+=m[B.value].clientWidth;return G},J23=function(O){return O.isSearch&&_.V("desktop_enable_dmpanel_click_drag_scroll")};
SQ.prototype.created=function(){this.cachedViewportWidth=_.kB("initialInnerWidth")||window.innerWidth;this.JSC$14397_cachedViewportHeight=_.kB("initialInnerHeight")||window.innerHeight;_.kB("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.a8("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
SQ.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.V("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();btU(this)};
SQ.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.V("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var O;(O=this.itemsVisibilityObserver)==null||O.disconnect();this.itemsVisibilityObserver=null;var m;(m=this.itemsObserver)==null||m.disconnect()};
var btU=function(O){var m=_.ZO(O.hostElement).querySelector("#scroll-container");if(m){if(!O.itemsVisibilityObserver){var G=window.getComputedStyle(m).marginRight;O.itemsVisibilityObserver=new IntersectionObserver(function(B){nM3(O,B)},{root:m,
rootMargin:G,threshold:.98})}if(m=_.ZO(O.hostElement).querySelector("#items"))O.itemsObserver=new KZ3(m,function(B){Xnj(O,B)})}},Xnj=function(O,m){fu9(O)&&(Array.from(m.addedNodes).filter(function(G){return G.nodeType===Node.ELEMENT_NODE}).forEach(function(G){O.itemsVisibilityObserver&&O.itemsVisibilityObserver.observe(G)}),Array.from(m.removedNodes).filter(function(G){return G.nodeType===Node.ELEMENT_NODE}).forEach(function(G){O.itemsVisibilityObserver&&O.itemsVisibilityObserver.unobserve(G)}))},
nM3=function(O,m){var G=new Set(O.fullyVisibleItemsIndices);
m=_.K(m);for(var B=m.next();!B.done;B=m.next()){B=B.value;var Q=B.target.parentElement;Q?(Q=Array.from(Q.children).indexOf(B.target),B.isIntersecting?G.add(Q):G.has(Q)&&G.delete(Q)):_.ay(new _.j9("Parent element not found",B.target.nodeName))}O.fullyVisibleItemsIndices=Array.from(G).sort(function(H,M){return H-M});
G.size===0?_.ay(new _.j9("No visible entries in horizontal list")):(O.startIndex=O.fullyVisibleItemsIndices[0],O.endIndex=O.fullyVisibleItemsIndices[O.fullyVisibleItemsIndices.length-1])},fu9=function(O){O.data?O=(O=O.data)&&O.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===O.itemSizeConstraint:!1:O=!1;
return O};
_.v=SQ.prototype;_.v.addScrollEventListeners=function(){var O=_.ZO(this.hostElement).querySelector("#scroll-container");O.style.touchAction="pan-y";O.addEventListener("wheel",this.JSC$14397_onWheelScroll);O.addEventListener("pointerdown",this.onPointerDown);O.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.v.removeScrollEventListeners=function(){var O=_.ZO(this.hostElement).querySelector("#scroll-container");O.removeEventListener("wheel",this.JSC$14397_onWheelScroll);O.removeEventListener("pointerdown",this.onPointerDown);O.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.v.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.QA(this,this.setStartIndex,[this.initialStartIndex])};
_.v.reposition_=function(){var O=_.kB("HTML_DIR")=="rtl"?"":"-",m=_.ZO(this.hostElement).querySelector("#items");m&&(m.style.transform="translateX("+O+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.v.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.QA(this,this.setButtonsState_))};
_.v.setButtonsState_=function(){this.setButtonsStateRequested=!1;var O=_.ZO(this.hostElement).querySelector("#items").firstElementChild;if(O){this.minComponentWidth||(this.minComponentWidth=hMe(this,O));O=_.ZO(this.hostElement).querySelector("#scroll-container").clientWidth;var m=_.ZO(this.hostElement).querySelector("#items");m=_.V("kevlar_horizontal_list_scroll_width_killswitch")?m.clientWidth:m.scrollWidth;var G=this.get(this.ytLazyListBehavior.itemsPath,this);if(G){var B=Math.round(O/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+B,G.length)-1)}this.ytLazyListBehavior.canShowMore?m+this.minComponentWidth>=this.offset+O&&(this.atEnd=!1):this.atEnd=this.offset+O>=m-20?!0:!1;this.atStart=this.offset<=20}};
_.v.setStartIndex=function(O){if(!this.minComponentWidth){var m=_.ZO(this.hostElement).querySelector("#items").firstElementChild;if(!m)return;this.minComponentWidth=hMe(this,m)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*O;pW(this);this.reposition_()};
_.v.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.uU();var O=_.ZO(this.hostElement).querySelector("#scroll-container").clientWidth;_.V("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=hMe(this,_.ZO(this.hostElement).querySelector("#items").firstElementChild));O=this.useFloorScrolling?Math.floor(O/this.minComponentWidth)||1:Math.round(O/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&T$p(this);this.offset+=fu9(this)?
V7U(this):O*this.minComponentWidth;pW(this);this.reposition_();this.scrollCount++};
_.v.prevClick_=function(){var O=_.ZO(this.hostElement).querySelector("#scroll-container").clientWidth;O=this.useFloorScrolling?Math.floor(O/this.minComponentWidth)||1:Math.round(O/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=fu9(this)?V7U(this):this.minComponentWidth*this.scrollCount-1):this.offset-=fu9(this)?V7U(this):O*this.minComponentWidth;this.centerListItems&&T$p(this);pW(this);this.reposition_()};
_.v.onIronResize_=function(){this.resizeSupportEnabled&&_.QA(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.v.onItemsTransitionEnd_=function(O){_.Mj(O)===_.ZO(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.v.onChildElementFocus_=function(O){O=O.target.closest("#items > *");var m=_.ZO(this.hostElement).querySelector("#scroll-container");if(m.contains(O)){if(_.V("web_horizontal_list_behavior_focus_killswitch"))if(O.offsetLeft<this.offset)this.offset=Math.abs(O.offsetLeft)<O.clientWidth?0:O.offsetLeft;else if(O.offsetLeft+O.clientWidth>this.offset+m.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.uU(),this.offset=O.offsetLeft+O.clientWidth-m.clientWidth;else return;else{var G=_.ZO(this.hostElement).querySelector("#items"),
B=_.kB("HTML_DIR")==="rtl",Q=B?G.clientWidth-O.offsetLeft:O.offsetLeft;G=B?G.clientWidth-(O.offsetLeft+O.clientWidth):O.offsetLeft+O.clientWidth;var H=B?Q>this.offset+m.clientWidth:Q<this.offset,M=B?G<this.offset:G>this.offset+m.clientWidth,R=B?H:M;if(B?M:H)m=B?G:Q,this.offset=Math.abs(m)<O.clientWidth?0:m;else if(R)this.ytLazyListBehavior.fillRemainingListItems(),_.uU(),this.offset=(B?Q:G)-m.clientWidth;else return}pW(this);this.reposition_()}};
_.v.observeShownItems_=function(){this.reset()};
_.v.checkComponentWidthResize=function(){var O=_.ZO(this.hostElement).querySelector("#items").firstElementChild;O&&(O=hMe(this,O),this.centerListItems||O!==this.minComponentWidth)&&(this.minComponentWidth=O,this.offset=O*this.scrollCount,this.centerListItems&&T$p(this),pW(this),this.reposition_())};
var hMe=function(O,m){var G=window.getComputedStyle(m).marginRight;G=Math.floor(Number(G.replace("px","")));var B=window.getComputedStyle(m).marginLeft;B=Math.floor(Number(B.replace("px","")));O.centerListItems&&!O.marginWidthRight&&(O.marginWidthRight=G,O.marginWidthLeft=B);return O.resizeSupportEnabled?m.getBoundingClientRect().width+G:m.offsetWidth+G},pW=function(O){var m=_.ZO(O.hostElement).querySelector("#scroll-container").clientWidth,G=_.ZO(O.hostElement).querySelector("#items").clientWidth;
O.offset<0?O.offset=0:O.offset+m>=G&&(O.offset=G-m)},T$p=function(O){O.offset-=(_.ZO(O.hostElement).querySelector("#scroll-container").clientWidth+O.marginWidthRight-O.minComponentWidth)/2-O.marginWidthLeft};
_.vr.Object.defineProperties(SQ.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var O=_.kB("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(O==-1)O=this.JSC$14397_cachedViewportHeight,O=O>1320?5:O>1020?4:O>730?3:O>430?2:1;else if(O==0)return 0;_.a8("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",O-1);O=_.kB("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(O>-1)return O;O=this.cachedViewportWidth;O=O>1600?6:O>1400?5:O>1300?4:O>1090?5:O>870?4:O>660?3:2;_.a8("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
O);return O},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.V("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
SQ.prototype.observeShownItems_=SQ.prototype.observeShownItems_;SQ.prototype.onChildElementFocus_=SQ.prototype.onChildElementFocus_;SQ.prototype.onItemsTransitionEnd_=SQ.prototype.onItemsTransitionEnd_;SQ.prototype.onIronResize_=SQ.prototype.onIronResize_;SQ.prototype.prevClick_=SQ.prototype.prevClick_;SQ.prototype.nextClick_=SQ.prototype.nextClick_;SQ.prototype.setButtonsState_=SQ.prototype.setButtonsState_;SQ.prototype.requestButtonsStateUpdate_=SQ.prototype.requestButtonsStateUpdate_;
SQ.prototype.reposition_=SQ.prototype.reposition_;SQ.prototype.reset=SQ.prototype.reset;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.jQ.YtLazyListBehavior),_.Y("design:type",Object)],SQ.prototype,"ytLazyListBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],SQ.prototype,"atStart",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],SQ.prototype,"atEnd",void 0);_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"startIndex",void 0);_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"endIndex",void 0);_.c([_.g({value:6}),_.Y("design:type",Number)],SQ.prototype,"initialCount",void 0);_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"scrollCount",void 0);_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"initialStartIndex",void 0);
_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"disableScrollEventListener",void 0);_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"supportComponentResize",void 0);_.c([_.g({value:function(){var O=this;return function(){return O.prevClick_()}}}),
_.Y("design:type",Function)],SQ.prototype,"boundPrevClick",void 0);_.c([_.g({value:function(){var O=this;return function(){return O.nextClick_()}}}),
_.Y("design:type",Function)],SQ.prototype,"boundNextClick",void 0);_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"useFloorScrolling",void 0);_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"isSearch",void 0);_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"dragging",void 0);_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"dragMouseStart",void 0);_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"dragOffsetStart",void 0);
_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"disableWheelScroll",void 0);_.c([_.g(),_.Y("design:type",Object)],SQ.prototype,"centerListItems",void 0);_.c([_.hG("iron-resize"),_.Tw("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SQ.prototype,"onIronResize_",null);_.c([_.hG("transitionend"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],SQ.prototype,"onItemsTransitionEnd_",null);
_.c([_.hG("focusin"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],SQ.prototype,"onChildElementFocus_",null);_.c([_.Tw("shownItems"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SQ.prototype,"observeShownItems_",null);_.c([_.p7()],SQ);_.Ir.YtdHorizontalListBehavior=[];_.Ir.YtdHorizontalListBehavior.push(_.Dm,_.N.YtRendererBehavior,_.jQ.YtLazyListBehavior,_.UH.YtdGuideStateAwareBehavior,SQ.prototype);var C0s=["APP_STATE","PI"];var gM2=_.FY(["about:blank"]),uGp={pushState:window.history.pushState,replaceState:window.history.replaceState};var EH=function(O){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=O;this.internalPushState=O.pushState.bind(O);this.internalReplaceState=O.replaceState.bind(O)};
EH.prototype.init=function(){this.initialized=!0};
EH.prototype.pushState=function(O,m){this.initialized||this.init();this.internalPushState&&this.internalPushState(O,"",m)};
EH.prototype.replaceState=function(O,m){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(O,"",m)};
EH.prototype.getState=function(){return this.history&&this.history.state};var jWU=function(O){var m=function(){var G=O.apply(this,arguments)||this;G.boundHistoryPushState=!1;G.boundHistoryReplaceState=!1;G.debugInfo={};return G};
_.X(m,O);m.prototype.init=function(){var G=_.fd("IFRAME");_.mI(G,_.WY(gM2));G.sandbox="allow-same-origin";G.style.display="none";this.iframe=G;document.body.appendChild(G);this.bindHistoryStateFunctions();O.prototype.init.call(this)};
m.prototype.bindHistoryStateFunctions=function(){var G=this,B=[],Q;this.iframe&&((Q=this.iframe.contentWindow)==null?0:Q.history)&&(Q=this.iframe.contentWindow.history)&&(B.push(Q),Object.getPrototypeOf(Q)&&B.push(Object.getPrototypeOf(Q)));window.history&&B.push(window.history);Q=window.history;Object.getPrototypeOf(Q)&&B.push(Object.getPrototypeOf(Q));B.push(uGp);Q=function(M){for(var R=null,x=0;x<B.length;x++){var t=B[x][M];if(typeof t==="function"){R=t.bind(window.history);G.debugInfo[M]=x;break}}return R};
if(!this.boundHistoryReplaceState){var H=Q("replaceState");H&&(this.internalReplaceState=H,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(Q=Q("pushState"))&&(this.internalPushState=Q,this.boundHistoryPushState=!0)};
return m}(EH),Iuj=function(){return jWU.call(this,window.history)||this};
_.X(Iuj,jWU);Iuj.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var LW=function(O){this.browserHistory=O;this.initialized=!1};
LW.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
LW.prototype.pushState=function(O,m){this.initialized||this.init();this.browserHistory.pushState(O,m)};
LW.prototype.replaceState=function(O,m){this.initialized||this.init();this.browserHistory.replaceState(O,m)};
LW.prototype.handlePopstate=function(O){return O.state};_.pn2=function(O,m,G,B,Q){this.endpoint=O;this.forward=m;this.historyEntry=G;this.JSC$30199_savedComponentState=B;this.legacyBorder=Q===void 0?!1:Q};var Sm_=function(O,m){this.rootData=O;this.scrollTop=m};var h8=new _.Us("PAGE_REQUEST_TOKEN"),e38=new _.Us("FETCH_PBJ_TOKEN");_.CW=new _.Us("EPHEMERAL_STORE_TOKEN");_.or=function(O){this.data=Object.assign({},O);var m;(m=this.data.innertubeResponse)==null||delete m.frameworkUpdates};
_.or.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.$G)()};
_.v$=function(O){return Object.assign({},O.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var EM_=function(){this.maxSize=100;this.timeToDataCache=new Map};
EM_.prototype.get=function(O){var m=this.timeToDataCache.get(O);m&&(this.timeToDataCache.delete(O),this.timeToDataCache.set(O,m));if(m&&m.rootData&&(_.V("web_use_response_store_for_history_cache")||_.V("mweb_use_new_history_manager"))){var G=_.KR().resolve(_.CW),B=LSH(m),Q=!!B;if(B){if(B.content){var H=lp(G,B.content);Q&&H?m.rootData.response=_.v$(H):Q=!1}B.player&&(H=lp(G,B.player),Q&&H?m.rootData.playerResponse=_.v$(H):Q=!1);B.reelSequence&&(G=lp(G,B.reelSequence),Q&&G?m.rootData.reelWatchSequenceResponse=
_.v$(G):Q=!1)}Q||(this.timeToDataCache.delete(O),m=void 0)}return m};
EM_.prototype.set=function(O,m){if(m.rootData&&(_.V("web_use_response_store_for_history_cache")||_.V("mweb_use_new_history_manager"))){var G=LSH(m),B=Object.assign({},m.rootData);G&&(G.content&&m.rootData.response&&(CXC(this,G.content,m.rootData.response),B.response=null),G.player&&m.rootData.playerResponse&&(CXC(this,G.player,m.rootData.playerResponse),B.playerResponse=null),G.reelSequence&&m.rootData.reelWatchSequenceResponse&&(CXC(this,G.reelSequence,m.rootData.reelWatchSequenceResponse),B.reelWatchSequenceResponse=
null));m=new Sm_(B,m.scrollTop)}this.timeToDataCache.has(O)?this.timeToDataCache.delete(O):this.timeToDataCache.size>=this.maxSize&&(G=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(G.value));this.maxSize!==0&&this.timeToDataCache.set(O,m)};
EM_.prototype.clear=function(){this.timeToDataCache.clear()};
var LSH=function(O){var m=_.KR().resolve(_.v7(h8)),G;if((G=O.rootData)==null?0:G.endpoint)return m==null?void 0:nq6(m,O.rootData.endpoint);var B;_.ay(new _.j9("History snapshot response data does not contain endpoint",(B=O.rootData)==null?void 0:B.url));return null},CXC=function(O,m,G){if(O.maxSize>0){var B;
(O=(B=G.responseContext)==null?void 0:B.maxAgeSeconds)&&Number(O)>0&&(B=_.KR().resolve(_.CW),G=tt(G,O),B.put(m,new _.or(G)))}};var oMC=function(O,m,G){this.endpoint=m;this.JSC$30204_savedComponentState=G===void 0?null:G;this.entryTime=O};var cBp=1;var ar=function(O){var m=function(){var G=O.apply(this,[].concat(_.lS(_.eA.apply(0,arguments))))||this;G.historyEntryTime=0;G.historySnapshotCache=G.createHistoryCache();return G};
_.X(m,O);m.prototype.createHistoryCache=function(){return new EM_};
m.prototype.saveAndReplace=function(G,B,Q){var H=window.location.href;var M=M===void 0?{}:M;var R=(R=this.browserHistory.getState())&&R.entryTime?R.entryTime:Y$e();G=this.createNewHistoryEntry(G,M,R);this.saveSnapshot(R,B,Q);this.replaceState(G,H||window.location.href)};
m.prototype.saveAndPush=function(G,B,Q,H,M){M=M===void 0?{}:M;this.saveSnapshot(this.historyEntryTime,Q,H);Q=this.historySnapshotCache;H=this.historyEntryTime;var R=Q.timeToDataCache.keys();R=_.K(R);for(var x=R.next();!x.done;x=R.next())x=x.value,x>H&&Q.timeToDataCache.delete(x);B=this.createNewHistoryEntry(B,M);this.pushState(B,G)};
m.prototype.saveSnapshot=function(G,B,Q){this.historySnapshotCache.set(G,new Sm_(B,Q))};
m.prototype.createNewHistoryEntry=function(G,B,Q){Q=Q===void 0?Y$e():Q;return new oMC(Q,G,B)};
m.prototype.handlePopstate=function(G){var B=O.prototype.handlePopstate.call(this,G),Q=null,H=null,M=!1,R=null;B&&B.entryTime&&(R=this.historySnapshotCache.get(B.entryTime)||null,M=B.entryTime>this.historyEntryTime,this.historyEntryTime=B.entryTime,Q=B.endpoint,H=B.JSC$30204_savedComponentState);this.handleHistoryCacheLoad(new _.pn2(Q,M,R,H),G);return B};
m.prototype.pushState=function(G,B){Number(G==null?void 0:G.entryTime)>=0&&(this.historyEntryTime=G.entryTime);O.prototype.pushState.call(this,G,B)};
m.prototype.replaceState=function(G,B){Number(G==null?void 0:G.entryTime)>=0&&(this.historyEntryTime=G.entryTime);O.prototype.replaceState.call(this,G,B)};
m.prototype.handleHistoryCacheLoad=function(){};
return m}(LW),luH=function(){var O=ar.call(this,new Iuj)||this;
O.dispatchElement=null;O.entryIndex=0;return O};
_.X(luH,ar);_.v=luH.prototype;_.v.init=function(O){O=O===void 0?!0:O;ar.prototype.init.call(this);this.initialized||(O||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.v.handlePopstate=function(O){var m=null;O.state||(m="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return ar.prototype.handlePopstate.call(this,O);var G=new CustomEvent("yt-history-pop",{cancelable:!0});_.xc(this.dispatchElement,"yt-history-pop",[G,{errorMsg:m}]);_.UB(this.dispatchElement,"yt-close-all-popups-action");if(!G.defaultPrevented){G=_.KR().resolve(_.KJ);m=G.getCurrentData();var B=G.getCurrentPage();G=0;B?(B=_.xc(this.dispatchElement,"yt-get-page-offset",
[B]),B.length>0&&(G=B[0])):_.ay(new _.j9("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:m?m.page:"undefined"}));m&&(m.csn=_.yA());this.saveSnapshot(this.historyEntryTime,m,G)}return ar.prototype.handlePopstate.call(this,O)};
_.v.handleHistoryCacheLoad=function(O,m){O.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.K(_.UB(this.dispatchElement,"yt-history-will-navigate",[m])).next().value||_.xc(this.dispatchElement,"yt-history-load",[m,O]))};
_.v.pushState=function(O,m){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var G=new _.j9("history.pushState is not a function",this.getDebugString());_.oy(G)}ar.prototype.pushState.call(this,O,m)};
_.v.replaceState=function(O,m){if(!this.browserHistory.boundHistoryReplaceState){var G=new _.j9("history.replaceState is not a function",this.getDebugString());_.oy(G)}ar.prototype.replaceState.call(this,O,m)};
_.v.saveAndPush=function(O,m,G,B,Q){Q=Q===void 0?{}:Q;G&&(G.csn=_.yA());ar.prototype.saveAndPush.call(this,O,m,G,B,Q)};
_.v.getDebugString=function(){var O=[];this.initialized&&O.push("i");this.browserHistory.boundHistoryReplaceState&&O.push("bhr");this.browserHistory.boundHistoryPushState&&O.push("bhs");"replaceState"in this.browserHistory.debugInfo&&O.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&O.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&O.push("ei:"+String(this.entryIndex));return O.join(",")};
_.km=function(O,m){O.init(!0);var G=O.browserHistory.getState();O.replaceState(G,Uv(m))};
luH.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.yw=new _.Us("DESKTOP_HISTORY_MANAGER_TOKEN");var auo=[10,20,30,40,50,60],cL=function(){this.currentPartitionIndex=0},k5s=function(O){FT$({mainAppWeb:_.QM(),
survivalSli:{partitionMinute:O,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},y2p=function(O){FT$({mainAppWeb:_.QM(),
survivalSli:{partitionMinute:O,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},c2o=function(O){return O.currentPartitionIndex>=0&&O.currentPartitionIndex<auo.length?auo[O.currentPartitionIndex]:-1},Ymj=function(O){return O.currentPartitionIndex>0&&O.currentPartitionIndex-1<auo.length?auo[O.currentPartitionIndex-1]:-1};
cL.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var O=Ymj(this);O>0&&y2p(O);O=c2o(this);O>0&&k5s(O);dS$(this)}};
var dS$=function(O){var m=c2o(O);if(m>0){var G=Ymj(O);G<0&&(G=0);O.intervalId=_.ln.addJob(function(){var B=Ymj(O);B>0&&y2p(B);B=c2o(O);B>0&&k5s(B);dS$(O)},3,(m-G)*6E4);
O.currentPartitionIndex+=1}else O.currentPartitionIndex=-1};var wn9=function(){this.skipNextNavigation=!1},eM8=function(O,m,G){if(!m)return!1;
if(O.skipNextNavigation)return O.skipNextNavigation=!1;if(_.b(G,_.Db))return!1;var B,Q,H;if((B=_.b(G,_.gH))==null?0:(Q=B.browseEndpointContextSupportedConfigs)==null?0:(H=Q.browseEndpointContextMainConfig)==null?0:H.skipConfirmation)return!1;var M;return((M=_.b(m.commandMetadata,_.bP))==null?void 0:M.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
wn9.prototype.showConfirmationDialog=function(O,m){this.navigateParams=m;this.customConfirmationCommand?_.KR().resolve(_.Mu).resolveCommand(this.customConfirmationCommand):(m={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Qg(_.Xm("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Qg(_.Xm("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Qg(_.Xm("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Qg(_.Xm("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.sJ.getInstance().triggerAction("yt-open-popup-action",m,O))};
wn9.prototype.cancelPendingNavigation=function(){var O;((O=this.navigateParams)==null?void 0:O.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var DSe=function(){},N$3=function(O,m,G,B,Q,H,M){G=G===void 0?{}:G;
M=M===void 0?{}:M;var R=_.DU.instance,x,t=(x=_.b(m,_.Db))==null?void 0:x.url;return t?HXO(R,t,G,window.location.href,function(W,Z){sWp(O,W,Z,!1,!0,G,H,B)},function(){return!1}):wJ(R,m,G,window.location.href,jw(m),function(W,Z){sWp(O,W,Z,!1,!0,G,H,B)},Q,M)},sWp=function(O,m,G,B,Q,H,M,R){if(!O.JSC$14455_chunkHandler)if(G.page==="learning_journey_watch"&&_.V("web_enable_canvas_on_learning_journey")){var x=!_.b(R,_.gH);
Q=Q||B;if(x)if(Q){if(_.V("kevlar_continue_playback_without_player_response")){var t;var W=(t=_.b(R,_.GC))==null?void 0:t.videoId}B={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:B,previousVideoId:W},tempData:H}}else B={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else B={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};O.JSC$14455_chunkHandler=new Za8(_.M1,B,M,x,Q)}else if(G.page==="watch"||G.page==="learning_journey_watch")if(Q||B){if(_.V("kevlar_continue_playback_without_player_response")){var Z;
x=(Z=_.b(R,_.GC))==null?void 0:Z.videoId}O.JSC$14455_chunkHandler=new VO8(_.M1,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:B,previousVideoId:x},tempData:H},M)}else O.JSC$14455_chunkHandler=new tOs(_.M1);else G.page==="shorts"&&Q&&!B?O.JSC$14455_chunkHandler=new Ju2(_.M1,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:H},M):O.JSC$14455_chunkHandler=new WV8(M);O.JSC$14455_chunkHandler.processChunk({endpoint:m,data:G});return O.JSC$14455_chunkHandler.hC.promise},
PX3=function(O,m,G,B,Q){(G=_.KDH(G))&&sWp(O,m,G,!1,!0,B,void 0,Q)};_.FS9=new _.Us("NAVIGATION_SERVICE_TOKEN");var A28=function(){this.pendingNavigationPromise=null};
_.v=A28.prototype;_.v.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.v.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.v.addEventListener=function(){throw Error("Dh");};
_.v.dispatchEvent=function(){throw Error("Dh");};
_.v.removeEventListener=function(){throw Error("Dh");};var Oh8=new _.Us("APP_ROOT");var wNO=null;var mh3=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],Ym=function(){_.Ly.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];GzC(this)};
_.X(Ym,_.Ly);Ym.prototype.verifyUser=function(){var O=GzC(this),m=O.logout;if(!O.sessionChange)return!0;this.dispatchEvent("ytsessionchange");m&&this.dispatchEvent("ytuserinvalid");return!1};
var GzC=function(O){var m=mh3.map(function(Q){var H;return(H=_.fR.get(Q))!=null?H:""}),G=m.some(function(Q,H){return O.sessionCookies&&O.sessionCookies[H]!==""&&Q===""}),B=m.some(function(Q,H){return O.sessionCookies&&O.sessionCookies[H]!==Q});
O.sessionCookies=m;return{logout:G,sessionChange:B}};
Ym.prototype.clearTimeout=function(){this.scheduledJobId&&(_.ln.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var FXO=new _.Us("POSTMESSAGE_TUNNEL_TOKEN");var svO=["/parent_tools","/file_download","/artist_roster"],mSp=[ap2,kYu,yzp,YSp,cz2,lp9,dpu,wMU];var dm=new _.Us("NAVIGATION_CONFIRMATION_SERVICE");var BB$="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),QXU=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],wm=function(O,m){this.pendingNavigationPromise=null;this.JSC$14478_clientRoot=O;this.historyManager=m;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 DSe;this.debugString=O.is;O={"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};_.NT(_.sJ.getInstance(),O,this.JSC$14478_clientRoot)},M5e,rp$,RK3,ihj,$hC;
_.X(wm,A28);wm.prototype.reload=function(){_.BC(window.location.href)};
var rDs=function(O){O.currentEndpoint&&_.b(O.currentEndpoint,_.pf)?O.reload():O.currentEndpoint&&O.navigate(O.currentEndpoint,!0,void 0,{disableCache:!0})};
wm.prototype.navigate=function(O,m,G,B,Q,H,M,R){m=m===void 0?!1:m;G=G===void 0?{}:G;B=B===void 0?{}:B;var x=_.KR().resolve(dm),t;if(!M&&eM8(x,(t=this.currentEndpoint)!=null?t:void 0,O))return x.showConfirmationDialog(this.JSC$14478_clientRoot.parentElement,{endpoint:O,reload:m,params:G,tempData:B,requestType:Q,createScreenConfig:H}),!1;var W=_.xA();_.q2(W,"eocs")||W.parkOrScheduleJob(function(){W.processSignal("eocs")},10,"eor");
erp();M=jw(O);x=B.autonav==="1";t=_.yA();Ym.instance||(Ym.instance=new Ym);var Z=Ym.instance.verifyUser(),z;if(_.V("enable_dark_theme_only_on_shorts")){var J=document.documentElement.hasAttribute("dark"),n=_.oh(!0)==="USER_INTERFACE_THEME_DARK";if(M==="shorts"){if(!J)if(_.V("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var I;_.BC((I=_.b(O==null?void 0:O.commandMetadata,_.bP))==null?void 0:I.url,void 0,void 0,window.top)}}else{var S;_.BC(_.AN((S=_.b(O==
null?void 0:O.commandMetadata,_.bP))==null?void 0:S.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.V("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!J){var L;_.BC(_.AN((L=_.b(O==null?void 0:O.commandMetadata,_.bP))==null?void 0:L.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(n!==J){var C;_.BC(_.AN((C=_.b(O==null?void 0:O.commandMetadata,_.bP))==null?void 0:C.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(M==="watch"){if(Hh3(_.KR().resolve(_.c$),
O)&&(Z||_.V("fix_miniplayer_navigation_killswitch")))return!1;_.V("block_all_player_prefetch_requests")||(z=$82(_.Q4(_.sE),O,x))}else{var P,w=(P=_.b(this.currentEndpoint,_.GC))==null?void 0:P.videoId;w&&_.FW.getInstance().then(function(US){US&&US.set("yt-miniplayer-shown-video-id",w)})}z&&(G.frags=z.missingFragments_.join(","));
I=null;var d;S=(d=_.b(O==null?void 0:O.commandMetadata,_.bP))==null?void 0:d.ignoreNavigation;if(!S)if(_.V("kevlar_command_url")){var D;I=(D=_.b(O==null?void 0:O.commandMetadata,_.bP))==null?void 0:D.url}else I=_.kM6(O,G);if(I&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&I==this.lastNavigationUrl)return _.as({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.qX(Df(),"CANCELLED")}I&&(this.lastNavigationUrl=I);gmO();_.a8("IS_HOMEPAGE_COLD",
!1);_.a8("IS_RESULTS_PAGE_COLD",!1);_.a8("IS_WATCH_PAGE_COLD",!1);O.loggingUrls&&O.loggingUrls.forEach(function(US){US.baseUrl&&_.sO(US.baseUrl)});
_.Htr(O,H?H.layer:0)&&_.V("kevlar_flush_logs_on_away_navigation")&&_.CE();if(G5I(O))return!1;yD$(M,Q);if(!I)return S||_.ay(new _.j9("Can't construct url for endpoint",O)),_.qX(Df(),"FAILURE"),!1;_.Dyz();d=O&&_.b(O,_.gH)&&_.b(O,_.gH).browseId.startsWith("UC");G=(D=_.V("enable_dark_theme_only_on_shorts")&&M==="shorts"?!1:_.lu()&&document.documentElement.hasAttribute("dark")!==_.Cf())?{themeRefresh:1}:{};D&&!_.Tg()&&_.oh()==="USER_INTERFACE_THEME_DARK"&&(G.theme="dark");d=D||vdp(I)&&!d&&!_.V("kevlar_disable_url_allowlist");
Z||(d=!0);if(d||_.kB("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var OS;var rN=(OS=window.top)==null?void 0:OS.location.href}catch(US){var xO;rN=(xO=US)==null?void 0:xO.message}_.ay(new _.j9("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:rN}))}O=_.V("kevlar_redirect_on_window_killswitch")?window.top:window;Gw(I);_.BC(_.AN(I,G),void 0,void 0,O);_.qX(Df(),"ABORTED");return!1}_.V("kevlar_early_popup_close")&&_.xc(this.JSC$14478_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14455_chunkHandler=void 0;var XI;rN=jw((XI=this.currentEndpoint)!=null?XI:void 0);(XI=M==="shorts"&&rN==="shorts")||_.XKO();_.wi(re5)("nr",void 0);x&&_.as({webInfo:{navigationReason:"an"}});O.clickTrackingParams&&(B.itct=O.clickTrackingParams,B.csn=t);kFS(B);B.endpoint=JSON.stringify(O);_.V("enable_unknown_lact_fix_on_html5")&&(_.KR().resolve(_.pH),B.lact=_.MT());_.aM.isEmpty(B)||_.vd(I,B);!_.V("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(H=Object.assign({},{layer:0},H,{parentLayer:3}));this.pendingNavigationPromise=H=N$3(this.pageFetcher,O,B,this.currentEndpoint,this.JSC$14478_isNetworkPromiseStale.bind(this),H,R);H=H.then(this.handleNavigateSuccess.bind(this,H,O,z,B),this.handleNavigateFail.bind(this,H,O));_.c3().navigationFinishPromise=H;m={endpoint:O,pageType:M,url:Uv(I),reload:!!m,noProgressBar:XI};Q&&(m.type=Q);this.fireEvent("yt-navigate-start",m);var Vf;(Vf=_.KR().resolve(_.v7(_.FS9)))==null||Vf.publish("navigation-start");
z&&PX3(this.pageFetcher,O,z,B,this.currentEndpoint);return!0};
wm.prototype.JSC$14478_isNetworkPromiseStale=function(O){return O!=this.pendingNavigationPromise};
var Ky8=function(O,m,G,B,Q){var H=jw(m);m={endpoint:m,pageType:H};Q&&(m.errorMessage=Q);_.ay(G);m.navigationDoneMs=_.cd("nd");m.navigationErrorReason=B;O.fireEvent("yt-navigate-error",m)};
wm.prototype.handleNavigateFail=function(O,m,G){var B=void 0;G instanceof _.YK&&(B=G,lvS(G));if(this.JSC$14478_isNetworkPromiseStale(O))return _.lK(B);_.qX(Df(),"FAILURE");Ky8(this,m,G,"101");return _.lK(G)};
wm.prototype.handleNavigateSuccess=function(O,m,G,B,Q){if(this.JSC$14478_isNetworkPromiseStale(O))return _.ZY();this.pendingNavigationPromise=null;if(!Q)return m=new _.j9("Missing data in response for navigation endpoint",m),_.lK(m);if(Q.reload)return window.location.reload(!0),_.ZY();G&&(O={},_.aM.extend(O,_.KDH(G),Q),Q=O);var H,M;G=(H=Q)==null?void 0:(M=H.timing)==null?void 0:M.responseStart;G!=null&&_.cd("srt",G);_.cd("pdc");var R,x;H=(R=Q)==null?void 0:(x=R.timing)==null?void 0:x.info;H!=null&&
(R=_.wi(_.qoO)(H),_.as(R));_.qX(Df(),"SUCCESS");$hC(this,m,Q,1,B);return _.ZY()};
var vdp=function(O){var m=O;_.V("kevlar_no_redirect_to_classic_2_ks")||(m=(new _.Bd(O)).getPath());if(m==="/"||m==="/red")return!1;var G=!0;BB$.forEach(function(B){O.indexOf(B)===0&&(G=!1)});
QXU.forEach(function(B){var Q=B.url;_.V(B.expFlag)&&O.indexOf(Q)===0&&(G=!1)});
return G};
wm.prototype.publishPageData=function(O){this.fireEvent("yt-page-data-fetched",{pageData:O})};
M5e=function(O,m,G,B,Q,H){var M=null;m.page!=="watch"&&m.page!=="learning_journey_watch"||B?m.filler||_.xc(O.JSC$14478_clientRoot,"yt-stop-old-player",[m]):M=sWp(O.pageFetcher,Q,m,G,!1,H,void 0,O.currentEndpoint);if(M)return M.then(O.publishPageData.bind(O,m));O.publishPageData(m);return _.ZY()};
rp$=function(O,m,G){var B=null;if(!G)return B=new _.j9("Empty data",O.debugString,m);var Q=G.response;if(!Q)return B;var H={endpointType:jw(m)||"unknown"};Q.responseContext?(Q=Q.responseContext.errors)&&(B=new _.j9("Errors in response context",O.debugString,m,Q,H)):B=Q.error||Q.errorMetadata?new _.j9("Errors in response",O.debugString,m,Q.error,Q.errorMetadata,H):new _.j9("responseContext missing",O.debugString,m,Object.keys(Q).sort().join(","),H);var M,R,x,t;if(O=G==null?void 0:(M=G.response)==null?
void 0:(R=M.responseContext)==null?void 0:(x=R.webResponseContextExtensionData)==null?void 0:(t=x.webResponseContextDebugData)==null?void 0:t.debugErrorMessages)for(M=0;M<O.length;M++);return B};
RK3=function(O){var m,G,B,Q;return O==null?void 0:(m=O.response)==null?void 0:(G=m.responseContext)==null?void 0:(B=G.errors)==null?void 0:(Q=B.error)==null?void 0:Q["0"]};
ihj=function(O,m){var G;if(G=m.url&&!m.url.startsWith("/clip"))G=m.url,G=!_.V("webfe_parse_debug_param_in_resolveurl_service")&&O.searchDebugUrlMatcher.test(G)||ePp(G)?!0:!1;if(G)ePp(m.url)&&_.Fq(window.location.href).themeRefresh?(m=_.Kr(m.url,"themeRefresh"),_.km(O.historyManager,m)):m.url&&!kdr(m.url)&&_.km(O.historyManager,m.url);else if(m.endpoint){var B,Q,H;(G=(B=m.endpoint)==null?void 0:(Q=B.commandMetadata)==null?void 0:(H=Q.webCommandMetadata)==null?void 0:H.url)&&!kdr(G)&&_.km(O.historyManager,
G);G&&m.url&&G!=m.url&&!m.url.match("playnext=1")&&new _.j9("Response url mismatch in response data",O.debugString,G,m.url)}};
_.xhp=function(O,m,G,B,Q,H,M,R){H=H===void 0?!1:H;var x=_.KR().resolve(dm),t;if(!R&&eM8(x,(t=O.currentEndpoint)!=null?t:void 0,m))return x.showConfirmationDialog(O.JSC$14478_clientRoot.parentElement,{endpoint:m,data:G,navigationType:B,tempData:Q,isMiniplayer:H,isForwardHistoryNavigation:M==null?void 0:M.forward}),_.ZY();O.pageFetcher.JSC$14455_chunkHandler=void 0;return $hC(O,m,G,B,Q,H)};
$hC=function(O,m,G,B,Q,H){H=H===void 0?!1:H;O.isMiniplayerExpansion=H;var M=B===2;O.currentEndpoint=m;O.numNavigations++;O.numNavigations&&(Tas.navigationCount=O.numNavigations);_.a8("NUM_NAV",O.numNavigations);var R=rp$(O,m,G);if(R)return Ky8(O,m,R,"102",RK3(G)),_.lK(R);var x,t,W,Z;R=G.rootVe||(G==null?void 0:(x=G.response)==null?void 0:(t=x.responseContext)==null?void 0:(W=t.webResponseContextExtensionData)==null?void 0:(Z=W.ytConfigData)==null?void 0:Z.rootVisualElementType);!M&&G&&ihj(O,G);var z,
J;x=G==null?void 0:(z=G.response)==null?void 0:(J=z.responseContext)==null?void 0:J.maxAgeSeconds;if(!M&&!isNaN(x)){var n;_.V("kevlar_use_response_ttl_to_invalidate_cache")?n=(0,_.$G)()+1E3*x:_.V("kevlar_always_invalidate_cache")&&(n=0);isNaN(n)||(G.expirationTime=n)}_.Q4(_.sE).prefetchCache_.clear();M||G.page!=="watch"||G.type!=="reduced"&&B!==1?B=M5e(O,G,M,!!H,m,Q):(O.publishPageData(G),B=_.ZY());Q=B.then(function(){var I=jw(m);I={endpoint:m,pageType:I,fromHistory:M,response:G};I.navigationDoneMs=
_.cd("nd");O.fireEvent("yt-navigate-finish",I);var S;(S=_.KR().resolve(_.v7(_.FS9)))==null||S.publish("navigation-end")});
G.csn&&R&&G.clientSideGrafts&&B.then(O.attachClientSideGrafts.bind(O,G,_.kf()));return Q};
_.v=wm.prototype;_.v.attachClientSideGrafts=function(O,m){O.clientSideGrafts&&m&&O.clientSideGrafts.forEach(function(G){if(m&&G){var B=_.Ez(G);_.V("combine_ve_grafts")?_.uK().graftServerVe(G,m):_.Pd(O.csn,m,B)}})};
_.v.handleSignalActionHistoryBack=function(){window.history.back()};
_.v.handleSignalActionCloseWindow=function(){window.close()};
_.v.handleSignalActionReloadPage=function(){this.reload()};
_.v.handleSignalActionSoftReloadPage=function(){rDs(this)};
_.v.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.v.fireEvent=function(O,m){O=new CustomEvent(O,{bubbles:!0,cancelable:!1,composed:!0,detail:m});this.dispatchEvent(O)};
_.v.addEventListener=function(O,m){this.JSC$14478_clientRoot.addEventListener(O,m)};
_.v.dispatchEvent=function(O){return this.JSC$14478_clientRoot.dispatchEvent(O)};
_.v.removeEventListener=function(O,m){this.JSC$14478_clientRoot.removeEventListener(O,m)};
wm[$R]=[Oh8,_.yw];_.$7p=new EE("browse","h8y2qb");_.MTs=new EE("search","JzFVk");_.rbp=new EE("shorts","xwEKAe");_.RYS=new EE("watchFixie","nmfa2d");_.icN=new EE("watchFlexy","CF909");_.x7N=new EE("watchGrid","Tm0L3c");_.qPp=new EE("watchLearningJourney","L3n37");var qtp;var Uhu=function(){return _.u.apply(this,arguments)||this};
_.X(Uhu,_.u);_.vr.Object.defineProperties(Uhu,{template:{configurable:!0,enumerable:!0,get:function(){if(qtp===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);qtp=O}O=qtp;return O}}});
_.c([_.h(qmu.YtPlayerBehavior),_.Y("design:type",Object)],Uhu.prototype,"ytPlayerBehavior",void 0);_.c([_.l({is:"ytd-player"})],Uhu);var t5e;var Wyu;var Zh$;var eQ=function(){var O=_.u.apply(this,arguments)||this;O.forceModernIconButton=!1;O.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return O};
_.X(eQ,_.u);eQ.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]]"}}}}}};
eQ.prototype.handleAccountLinkingStateChangedCommand=function(O){if(O=_.b(O,EI3)){var m,G=(m=this.data)==null?void 0:m.providerKey;m=O.providerKey;G&&m&&G.id===m.id&&G.subject===m.subject&&(O=O.linked,O!==void 0&&(this.set("data.linked",O),this.notifyPath("data.linked"),_.V("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(O)))}};
eQ.prototype.setPlayerAccountLinkState=function(O){var m=new Nwu;PUm(m,Dsu(new ehe,O));var G=_.M1();G&&G.getPlayerPromise().then(function(B){B.setAccountLinkState(_.pB(m.JSC$12173_serializeBinary(),4));B.updateAccountLinkingConfig(O)})};
eQ.prototype.handleShowAccountLinkDialog=function(){var O=this.get("button.buttonRenderer.command");O&&_.JK([O],this.hostElement)};
_.vr.Object.defineProperties(eQ.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.c([_.h([_.cg.YtActionHandlerBehavior]),_.Y("design:type",Object)],eQ.prototype,"actionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],eQ.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],eQ.prototype,"overrides",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],eQ.prototype,"forceModernIconButton",void 0);_.c([_.g({value:"bottom"}),_.Y("design:type",String)],eQ.prototype,"buttonTooltipPosition",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],eQ.prototype,"forceIconButton",void 0);_.c([_.g(),_.Y("design:type",Boolean)],eQ.prototype,"disableTextTransform",void 0);
_.c([_.T("data","data.linked","data.isWarning"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],eQ.prototype,"button",null);_.c([_.l({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],eQ);
_.y(eQ,"ytd-account-link-button-renderer",function(){if(Zh$!==void 0)return Zh$;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Zh$=O},{mode:1});var zKp;var Jpo=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],D2=function(){return _.u.apply(this,arguments)||this};
_.X(D2,_.u);D2.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
D2.prototype.updateButtonActiveState=function(){var O=this,m=!!Jpo.find(function(G){return O.currentState===G});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.V("enable_web_delhi_icons")&&(m=!1);this.button&&(this.button.isPressed=m)};
_.vr.Object.defineProperties(D2.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.playlistLoopStateEntity)==null?void 0:O.state)||((m=this.data)==null?void 0:m.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var O=void 0,m;if(this.currentState&&((m=this.data)==null?0:m.states)){m=_.K(this.data.states);for(var G=m.next();!G.done;G=m.next()){G=_.b(G.value,_.OTp);var B=void 0;if(((B=G)==null?void 0:B.state)===this.currentState){O=G;break}}}return O}}});
D2.prototype.updateButtonActiveState=D2.prototype.updateButtonActiveState;_.c([_.h(_.MK),_.Y("design:type",Object)],D2.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],D2.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.its}),_.Y("design:type",Object)],D2.prototype,"playlistLoopStateEntity",void 0);_.c([_.g(),_.Y("design:type",Object)],D2.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],D2.prototype,"forceIconOnly",void 0);_.c([_.uc("ytd-button-renderer"),_.Y("design:type",_.TR)],D2.prototype,"button",void 0);
_.c([_.T("data","playlistLoopStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],D2.prototype,"currentState",null);_.c([_.Tw("currentButtonStateRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D2.prototype,"updateButtonActiveState",null);_.c([_.T("currentState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],D2.prototype,"currentButtonStateRenderer",null);
_.c([_.l({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],D2);
_.y(D2,"ytd-playlist-loop-button-renderer",function(){if(zKp!==void 0)return zKp;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return zKp=O},
{mode:1});var V5C;var bhH=_.Xm("DOWNLOAD",{},"Download"),nd_=_.Xm("DOWNLOADING",{},"Downloading"),XOp=_.Xm("DOWNLOADED",{},"Downloaded"),f52=_.Xm("RETRY",{},"Retry"),sH=function(){var O=_.u.apply(this,arguments)||this;O.forceIconButton=!1;O.forceIconOnly=!1;O.overrides=!1;O.buttonTooltipPosition=!1;O.styleActionButton=!1;O.disableTextTransform=!1;O.downloadProgress=0;O.isDownloadComplete=!1;O.isHidden=!0;O.transferState="TRANSFER_STATE_UNKNOWN";O.isVideoDeletedByUser=!1;O.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return O};
_.X(sH,_.u);_.v=sH.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.dataChanged=function(){var O;(O=this.data)!=null&&O.text||(O=_.eH(_.Kf().getState(),this.videoId),this.updateButtonState(O))};
_.v.computeVideoId=function(O){return O};
_.v.computePlayerStateEntityKey=function(O){return O};
_.v.showHideButton=function(){this.updateButtonVisibility()};
_.v.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var O;((O=this.playerStateEntity)==null?void 0:O.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0: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};
_.v.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.v.updateButtonState=function(O){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==nd_||!_.IQ(O))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(O){case "TRANSFER_STATE_UNKNOWN":O=bhH;var m="OFFLINE_DOWNLOAD";var G="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":O=f52;m="OFFLINE_DOWNLOAD";G="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":O=XOp;m="OFFLINE_PIN";G="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":O=
nd_;m="OFFLINE_DOWNLOADING_ZERO";G="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":O=f52;m="OFFLINE_DOWNLOAD";G="ACTION_RETRY";break;default:O=bhH,m="OFFLINE_DOWNLOAD",G="ACTION_ADD"}this.isVideoDeletedByUser&&(O=bhH,m="OFFLINE_DOWNLOAD",G="ACTION_ADD");var B=Object.assign({},this.data);B.text=_.Qg(O);B.tooltip=O;B.icon={iconType:m};B.size="SIZE_DEFAULT";B.style="STYLE_DEFAULT";_.b(B.command,_.nJ)&&(_.b(B.command,_.nJ).action=G);this.set("data",B)}};
_.v.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var O="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?O="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?O="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?O="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?O="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?O="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(O="OFFLINE_PIN",this.isDownloadComplete=!0);var m;O!==((m=this.data.icon)==null?void 0:m.iconType)&&(m=Object.assign({},this.data),m.text=_.Qg(nd_),m.tooltip=nd_,m.icon={iconType:O},_.b(m.command,_.nJ)&&(_.b(m.command,_.nJ).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",m))}};
sH.prototype.updateProgress=sH.prototype.updateProgress;sH.prototype.onTransferStateChanged=sH.prototype.onTransferStateChanged;sH.prototype.showHideButton=sH.prototype.showHideButton;sH.prototype.dataChanged=sH.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],sH.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],sH.prototype,"forceIconButton",void 0);
_.c([_.g(),_.Y("design:type",Object)],sH.prototype,"forceIconOnly",void 0);_.c([_.g(),_.Y("design:type",Object)],sH.prototype,"overrides",void 0);_.c([_.g(),_.Y("design:type",Object)],sH.prototype,"buttonTooltipPosition",void 0);_.c([_.g(),_.Y("design:type",Object)],sH.prototype,"styleActionButton",void 0);_.c([_.g(),_.Y("design:type",Object)],sH.prototype,"disableTextTransform",void 0);
_.c([_.g({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.Y("design:type",String)],sH.prototype,"videoId",void 0);_.c([_.g({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.Y("design:type",String)],sH.prototype,"playerStateEntityKey",void 0);_.c([_.g(),_.Y("design:type",Object)],sH.prototype,"data",void 0);_.c([_.g({selector:sr,selectorArgs:["videoId"]}),_.Y("design:type",Object)],sH.prototype,"downloadProgress",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],sH.prototype,"isDownloadComplete",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],sH.prototype,"isHidden",void 0);_.c([_.g({selector:_.eH,selectorArgs:["videoId"]}),_.Y("design:type",String)],sH.prototype,"transferState",void 0);_.c([_.g({selector:_.fUY,selectorArgs:["videoId"]}),_.Y("design:type",Object)],sH.prototype,"isVideoDeletedByUser",void 0);
_.c([_.g({selector:z9I,selectorArgs:["videoId"]}),_.Y("design:type",Object)],sH.prototype,"offlineabilityState",void 0);_.c([_.g({selector:GWY,selectorArgs:["playerStateEntityKey"]}),_.Y("design:type",Object)],sH.prototype,"playerStateEntity",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],sH.prototype,"showTooltips",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],sH.prototype,"sendCommandWhenDisabled",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],sH.prototype,"disabled",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sH.prototype,"dataChanged",null);_.c([_.Si("offlineabilityState","playerStateEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sH.prototype,"showHideButton",null);
_.c([_.Si("transferState","isVideoDeletedByUser"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sH.prototype,"onTransferStateChanged",null);_.c([_.Si("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sH.prototype,"updateProgress",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],sH);
_.y(sH,"ytd-download-button-renderer",function(){if(V5C!==void 0)return V5C;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return V5C=O},{mode:2});var hK8;var TB2,gd$=function(){if(TB2!==void 0)return TB2;var O=document.createElement("template");_.f(O,'\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 TB2=O};var uR8=_.V("web_button_rework")&&_.yE("BUTTON_REWORK")||_.V("web_button_rework_with_live"),jXj=_.Rd("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,NK=function(){var O=_.u.apply(this,arguments)||this;O.isPressed=!1;O.forceIconButton=!1;O.forceIconOnly=!1;O.forceModernIconButton=!1;O.alignByText=!1;O.isShorts=!1;O.animatedText=!1;O.shouldAnimate=!1;O.JSC$14516_browserSupportsAnimation=_.V("web_supports_animations_api");O.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};O.onTap=function(){var m;if((m=O.data)==null||!m.defaultNavigationEndpoint){var G;m=!((G=O.data)==null?0:G.isToggled);var B;if((B=O.data)==null||!B.preventAutoToggle){O.shouldAnimate=!1;O.disableTextUpdateJobId&&_.ln.cancelJob(O.disableTextUpdateJobId);O.disableTextUpdateJobId=_.ln.addLowPriorityJob(function(){O.disableTextUpdateJobId=void 0},jXj);
var Q;O.set("data.isToggled",!((Q=O.data)==null?0:Q.isToggled));G=O.getInnertubeIcon();B={toggled:m,actions:{}};G&&(B.actions[G.toLowerCase()]=m);_.iP(O.hostElement,"yt-toggle-button",B)}}};
return O};
_.X(NK,_.u);_.v=NK.prototype;_.v.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.ln.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.toggle=function(O){var m;this.set("data.isToggled",O!==void 0?O:!((m=this.data)==null?0:m.isToggled))};
_.v.handleUpdateToggleButtonStateCommand=function(O){if(this.data){O=_.b(O,dmC);var m,G,B,Q=(m=this.data)==null?void 0:(G=m.toggleButtonSupportedData)==null?void 0:(B=G.toggleButtonIdData)==null?void 0:B.id;Q&&O&&Q===(O==null?void 0:O.buttonId)&&this.set("data.isToggled",O.toggled)}};
_.v.handleUpdateToggleButtonTextAction=function(O){if(this.data){O=_.b(O,vk3);var m,G,B,Q=(m=this.data)==null?void 0:(G=m.toggleButtonSupportedData)==null?void 0:(B=G.toggleButtonIdData)==null?void 0:B.id;Q&&O&&Q===(O==null?void 0:O.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=O.defaultNumericalValue,this.set("data.defaultText",O.defaultText),this.set("data.toggledText",O.toggledText),this.shouldAnimate=!1)}};
_.v.getInnertubeIcon=function(){var O=this.data;if(O){var m,G,B=((m=O.defaultIcon)==null?0:m.iconType)?(G=O.defaultIcon)==null?void 0:G.iconType:null,Q,H;m=((Q=O.toggledIcon)==null?0:Q.iconType)?(H=O.toggledIcon)==null?void 0:H.iconType:B;return O.isToggled?m:B}};
_.v.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.vr.Object.defineProperties(NK.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var O={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$14516_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var m=O.renderer;var G=O.element;var B=O.toggled;var Q=O.onTapCallback;var H=O.commandClientArgs;var M=O.overrides;var R=O.forceIcon;var x=O.forceModernIconButton;var t=O.forceDisabled;var W=O.useAnimatedText;var Z=O.animatedTextProps;O=t75(m,B);R=!m.defaultIcon||!R&&m.defaultText?m.defaultIcon?"leading":void 0:x?"icon-only":"icon-only-40";R==="icon-only-40"&&(O.type="text");var z;x=Object;var J=x.assign,n;a:switch((n=
m.style)==null?void 0:n.styleType){case "STYLE_COMPACT_GRAY":n={size:"S"};break a;default:n={size:"M"}}var I=!!B;var S=(S=B&&m.toggledText||m.defaultText)?_.cE(S):void 0;W?(W=_.HX(B&&m.toggledText||m.defaultText))&&Z&&!isNaN(Number(Z.numberValue))?(Z.numberText=W,B&&(Z.numberValue+=1),W=Z):W=void 0:W=void 0;var L,C,P,w;var d=(Z=((C=B?m.toggledAccessibilityData||((d=m.toggledText)==null?void 0:d.accessibility):m.accessibilityData||((L=m.defaultText)==null?void 0:L.accessibility))==null?void 0:(P=C.accessibilityData)==
null?void 0:P.label)||((w=m.accessibility)==null?void 0:w.label))?Z:_.HX(B&&m.toggledText||m.defaultText);t=t===void 0?m.isDisabled:t;G=USI(m,B,Q,G,H);B=qmf(m,B);B!=null&&B.length?(B=_.sz({innertubeCommand:A95(B),forceNewState:!0}),B=NN(B)?B:void 0):B=void 0;m=J.call(x,{},O,n,{iconPosition:R},M,{focused:!1,toggled:I,toggleable:!0,formattedButtonText:S,animatedTextProps:W,accessibilityLabel:d,disabled:t,onTap:G,aTagConfig:B},fjI((z=m.colorData)==null?void 0:z.basicColorPaletteData));m.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(m.type="filled");return m}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var O=this.getInnertubeIcon();if(O)return _.bK(O)}}});
NK.prototype.resetAnimation=NK.prototype.resetAnimation;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],NK.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],NK.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],NK.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],NK.prototype,"isPressed",void 0);_.c([_.g(),_.Y("design:type",Object)],NK.prototype,"forceIconButton",void 0);_.c([_.g(),_.Y("design:type",Object)],NK.prototype,"forceIconOnly",void 0);_.c([_.g(),_.Y("design:type",Object)],NK.prototype,"forceModernIconButton",void 0);_.c([_.g(),_.Y("design:type",Object)],NK.prototype,"alignByText",void 0);_.c([_.g(),_.Y("design:type",Object)],NK.prototype,"overrides",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],NK.prototype,"disabled",void 0);_.c([_.g(),_.Y("design:type",Object)],NK.prototype,"isShorts",void 0);_.c([_.g(),_.Y("design:type",Object)],NK.prototype,"buttonTooltipPosition",void 0);_.c([_.g(),_.Y("design:type",Object)],NK.prototype,"animatedText",void 0);_.c([_.g(),_.Y("design:type",String)],NK.prototype,"textNumberValue",void 0);_.c([_.g({computed:"computeTooltip(data, data.isToggled)"}),_.Y("design:type",Object)],NK.prototype,"tooltip",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NK.prototype,"resetAnimation",null);_.c([_.T("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],NK.prototype,"computedButtonShape",null);_.c([_.T("data.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],NK.prototype,"computedIcon",null);
_.c([_.l({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],NK);uR8&&_.y(NK,"ytd-toggle-button-renderer",gd$,{mode:_.ZB("kevlar_poly_si_batch_j081")?1:2});var I59=_.a(function(O){function m(t){var W;return _.r(function(Z){if(Z.nextAddress==1)return(W=!ZtM(t,R())||!R().enabled)?Z.jumpTo(2):Z.yield(nMS(),3);Z.nextAddress!=2&&(W=Z.yieldResult);if(W)return Z.return();G();setTimeout(function(){M(!1)},1500);
_.ju(Z)})}
function G(){setTimeout(function(){M(!0);var t;(t=B.lottieEl)==null||t.goToAndPlay(0)},150)}
var B=_.Vp(),Q=_.K(_.Wf(!1,void 0,"UfUosc")),H=Q.next().value,M=Q.next().value,R=_.MN(O.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.Ln(function(){var t,W;((t=O.settings)==null?void 0:(W=t.call(O))==null?void 0:W.uniqueId)==="this is not intended behavior"&&_.ay(new _.j9("Smartimation Settings is undefined"))});
_.ER(function(){R().experimentEnabled&&(R().enabled?zMO(m):(M(!1),J2S(m)),_.LS(function(){J2S(m)}))},"IHhVmc");
_.ER(function(){R().timings.join("");R().experimentEnabled&&(V75(R()),_.LS(function(){bt5(R())}))},"fsfhOe");
var x=_.bF(function(){var t=B,W=R().uniqueId+"-border",Z,z;var J="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((z=(Z=_.KR().resolve(_.v7(_.B6)))==null?void 0:Z())!=null&&z?"dark":"light")+"_v2.json";return{animationRef:t,animationConfig:{name:W,autoplay:!1,loop:!1,path:J}}},void 0,"UWvUGe");
Q={};return _.q("yt-smartimation",{class:_.bE(O.className,"smartimation",(Q["smartimation--experiment-enabled"]=function(){return R().experimentEnabled},Q["smartimation--active-border"]=H,Q["smartimation--enable-masking"]=Xne(),Q))},_.q(_.U,{cond:function(){return R().experimentEnabled},
then:function(){return _.q("div",{class:"smartimation__border"},_.q(_.Yo,{className:"smartimation__border-gradient",data:x,animationName:function(){return x().animationConfig.name}}))}}),_.q("div",{class:"smartimation__content"},O.children))},"G");
I59.idomCompat=!0;_.qi(I59,"yt-smartimation",{props:{className:_.VZ,settings:_.VZ}});var PL=function(){var O=_.u.apply(this,arguments)||this;O.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};O.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};O.shouldEnableSmartimation=!1;return O};
_.X(PL,_.u);PL.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
PL.prototype.onDataChanged=function(){var O,m;this.shouldEnableSmartimation=(((O=this.data)==null?void 0:(m=O.timedAnimationData)==null?void 0:m.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
PL.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var O=_.b(this.data.likeButton,_.KK),m=_.b(this.data.dislikeButton,_.KK);return!!((O==null?0:O.isToggled)||(m==null?0:m.isToggled))};
PL.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]]"}}}}}};
_.vr.Object.defineProperties(PL.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var O,m,G=((O=this.data)==null?void 0:(m=O.timedAnimationData)==null?void 0:m.animationTiming)||[];return{uniqueId:"like-dislike",timings:G,enabled:this.shouldEnableSmartimation,experimentEnabled:G.length>0}}}});
PL.prototype.onDataChanged=PL.prototype.onDataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],PL.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],PL.prototype,"likeButtonOverride",void 0);_.c([_.g(),_.Y("design:type",Object)],PL.prototype,"dislikeButtonOverride",void 0);
_.c([_.T("shouldEnableSmartimation"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PL.prototype,"smartimationSettings",null);_.c([_.Tw("data"),_.hG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PL.prototype,"onDataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],PL);
_.y(PL,"ytd-segmented-like-dislike-button-renderer",function(){if(hK8!==void 0)return hK8;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return hK8=O},{mode:1});var pOe;var St_;(St_=document.body)==null||St_.setAttribute("rounded-container","");var Edm={};Edm.YtToggleButtonBehavior=[_.cg.YtActionHandlerBehavior,FL.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 O=this.data.isToggled;if(!this.isModal_(O)){if(!this.data.preventAutoToggle){this.toggle();var m={toggled:this.data.isToggled,actions:{}};m.actions[this.buttonIcon]=this.data.isToggled;_.iP(this.hostElement,"yt-toggle-button",m)}m=this.data.defaultServiceEndpoint||null;var G=this.data.toggledServiceEndpoint||null;if(m&&G||m&&this.data.preventAutoToggle)O=O?G:m,m=this.disableCommandHandlerOverride,_.V("killswitch_toggle_button_behavior_resolve_command")||m?_.tK(this.hostElement,
[O]):_.fm(O,this.hostElement),_.iP(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:O})}},
stateChanged_:function(){var O=this.data;if(O){var m=O.isToggled;this._setEndpoint(this.computeEndpoint_(O));this._setServiceEndpoint(this.computeServiceEndpoint_(O));this._setButtonIcon(this.computeButtonIcon_(O,m));this._setButtonText(this.computeButtonText_(O,m));this._setButtonAccessibility(this.computeAccessibility_(O,m));this._setButtonTooltip(this.computeTooltip_(O,m));this._setButtonClass(this.computeButtonClass_(O,m));this._setIconPositionType(this.computeIconPositionType_(O));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=m):this.elements_.button.setAttribute("aria-pressed",m));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=m)}},
shouldSetIconActiveState_:function(){return _.V("kevlar_system_icons")},
toggle:function(O){this.set("data.isToggled",O!==void 0?O:!this.data.isToggled);_.V("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(O){if(O){var m,G;return!!((m=this.data)==null?0:(G=m.toggledServiceEndpoint)==null?0:G.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(O){return O&&O.defaultNavigationEndpoint||null},
computeButtonIcon_:function(O,m){var G=O&&O.defaultIcon?_.bK(O.defaultIcon.iconType):null;O=O&&O.toggledIcon?_.bK(O.toggledIcon.iconType):G;return m?O:G},
handleUpdateToggleButtonStateCommand_:function(O){O=O.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==O.buttonId&&this.toggle(O.toggled)},
computeButtonText_:function(O,m){return O?m&&O.toggledText||O.defaultText||null:null},
computeAccessibility_:function(O,m){return O?(m?this.get("toggledAccessibilityData.accessibilityData",O):this.get("accessibilityData.accessibilityData",O))||O.accessibility||null:null},
computeTooltip_:function(O,m){return O?m&&O.toggledTooltip||O.defaultTooltip||null:null},
computeButtonClass_:function(O,m){if(!O)return"";var G="",B=O.toggledStyle||O.style;if(m=m?B:O.style){m.styleType&&(m=m.styleType);try{G+=m.toLowerCase().replace(/_/g,"-")+" "}catch(Q){_.kt(Q,m,typeof m),_.ay(Q)}}if(O=O.size){O.sizeType&&(O=O.sizeType);try{G+=O.toLowerCase().replace(/_/g,"-")+" "}catch(Q){_.kt(Q,O,typeof O),_.ay(Q)}}return G.trim()},
computeIconPositionType_:function(O){return O&&O.iconPosition||null},
computeServiceEndpoint_:function(O){var m=O&&O.serviceEndpoint,G=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return m?m:G&&O.command?O.command:null},
handleUpdateToggleButtonTextAction_:function(O){O=O.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==O.buttonId&&(this.set("data.defaultText",O.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",O.toggledText),this.notifyPath("data.toggledText"))}}];_.lE("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Lym=_.V("web_button_rework")&&_.yE("BUTTON_REWORK")||_.V("web_button_rework_with_live"),F$=function(){var O=_.u.apply(this,arguments)||this;O.systemIcons=_.V("kevlar_system_icons");O.roundedContainer=!0;return O};
_.X(F$,_.u);F$.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
F$.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var O=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var m={toggled:!!this.data.isToggled,actions:{}};m.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var G,B;m.actions.playlistId=(G=this.data.defaultServiceEndpoint)==null?void 0:(B=G.playlistEditEndpoint)==null?void 0:B.playlistId;_.iP(this.hostElement,"yt-toggle-button",m)}(O=O?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(O)}};
F$.prototype.onYtNavigate=function(O){var m=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(O.detail.endpoint);m&&(O.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(m))};
_.vr.Object.defineProperties(F$,{template:{configurable:!0,enumerable:!0,get:function(){if(pOe===void 0){var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);pOe=O}O=pOe;return O}}});
F$.prototype.onYtNavigate=F$.prototype.onYtNavigate;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],F$.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],F$.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(Edm.YtToggleButtonBehavior),_.Y("design:type",Object)],F$.prototype,"ytToggleButtonBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],F$.prototype,"data",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],F$.prototype,"showTooltips",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],F$.prototype,"systemIcons",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],F$.prototype,"roundedContainer",void 0);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],F$.prototype,"onYtNavigate",null);
_.c([_.l({is:"ytd-toggle-button-renderer",disableElementRegistration:Lym})],F$);var C7_,ods;_.Ah=new _.Us("PANEL_CONTROLLER_TOKEN");_.O5=new _.Us("SHEET_CONTROLLER_TOKEN");_.mc=new _.Us("DIALOG_CONTROLLER_TOKEN");C7_=new _.Us("DIALOG_CONTAINER_TOKEN");ods=new _.Us("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.GF=new _.Us("PERSISTENT_PANEL_CONTROLLER_TOKEN");var Sm6=_.Xm("DOWNLOAD",{},"Download"),EM6=_.Xm("DOWNLOADING",{},"Downloading"),LSp=_.Xm("DOWNLOADED",{},"Downloaded"),CXI=_.Xm("RETRY",{},"Retry");var l5o=_.a(function(O){var m=y2Y,G=function(){return""},B=oMI(O.data),Q=lup(O.data),H=aur(O.data),M=k5M(O.data);
m=function(){var R=O.data(),x=Iue(R,B(),Q(),H(),M()),t=!!R.videoId,W=x.text;return{title:t?W:void 0,tooltip:t?void 0:W,accessibilityText:W,onTap:x.onTap,iconName:x.iconType,style:R.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:x.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:R.buttonSize}};
G={};G=_.bE("ytDownloadButtonViewModelHost",(G.ytDownloadButtonViewModelIsHidden=function(){var R=O.data(),x=M();return R.playlistId||x()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||x()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},G));
return _.q("download-button-view-model",{class:G},_.q(_.oF,{data:m}))},"H");
l5o.idomCompat=!0;var PXS=new _.Us("SUBMIT_API_SERVICE_TOKEN");var DSp,sWY,FSO={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var xhY=new _.Us("RENDERER_LOGGER_TOKEN");var M5p=new _.Us("RENDERER_STAMPER_OPTIONS_TOKEN");var A2N;_.TM=new R$j;A2N=new Map;var rpN="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),ihe=["notificationTextRenderer","notificationMultiActionRenderer"],
RKS="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),$hI=OhN(function(O){return _.o9(O==null?void 0:O.targetId)}).useUpdatableData;var KyN=0;_.u5.debugName="EjJbCe";var a58=_.a(function(O){var m=O.data;O=O.className;_.EZ(function(){m().formId||_.oy(Error("Hh"))});
var G=_.eMN(function(){return m().formId},function(){return m().beforeSubmitCommand},function(){return m().afterSubmitCommand}),B=G.submitForm,Q=G.isValid,H=G.isSubmitting,M=function(){return{state:m().isDisabled||!Q()||H()?"disabled":"active"}};
return _.q("yt-submit-button-view-model",{class:_.bE("ytSubmitButtonViewModelHost",O)},_.q(_.u5,{data:function(){return m().button}},{buttonViewModel:function(R){return _.q(_.oF,{data:R.data,
buttonOverrides:M,onClick:B})}}))},"I");var ypp=_.a(function(O){var m=O.backgroundLottieRef;var G=O.foregroundLottieRef;var B=O.children;var Q=O.wrapperClass;var H=O.disableAnimation;O=function(){return(_.V("web_animated_actions")||_.V("web_animated_actions_v2"))&&!(H==null?0:H())};
return _.q("yt-animated-action",{class:_.bE("ytAnimatedActionHost",Q)},_.q("div",{class:"ytAnimatedActionContentWithBackground"},_.q(_.U,{cond:O,then:function(){return _.q(kzm,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:m==null?void 0:m(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(qtY()?"dark":"light")+"_v5.json"}}}})}}),B),_.q(_.U,{cond:O,
then:function(){return _.q(kzm,{lottiePlayerProps:function(){return{animationRef:G==null?void 0:G(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(qtY()?"dark":"light")+"_v4.json"}}}})}}))},"J");
ypp.idomCompat=!0;var kzm=_.a(function(O){var m=O.wrapperClass;var G=O.lottieClass;var B=O.lottiePlayerProps;return _.q("div",{class:_.bE("ytAnimatedActionLottie",m),"aria-hidden":"true"},_.q(_.Yo,{className:G,data:B,animationName:function(){return B().animationConfig.name}}))},"K");var Uhf={isOpen:!1};var Wyf={isAllowed:!1};var zKY={errorMessage:"",title:"",privacy:"",isDisabled:!0};var V5I={isOpen:!1};var nd6={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var cp$={response:void 0};var f5s=function(O,m){O=O===void 0?cp$:O;switch(m.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},O,{response:m.payload});default:return O}};var Yt8={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var hKN=function(O,m){O=O===void 0?Yt8:O;switch(m.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},O,{nextDisabled:m.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},O,{nextCommand:m.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},O,{footerSubmissionData:m.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},O,{isImpersonationValid:m.payload});default:return O}};var dhs={reportFormData:void 0,reportDetailsFormData:void 0};var TBs=function(O,m){O=O===void 0?dhs:O;switch(m.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},O,{reportFormData:m.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},O,{reportDetailsFormData:m.payload});default:return O}};var wOs=void 0;_.V("mweb_enable_redux_store_on_demand")||(wOs=new vX(gdN()));var Bo=_.V("enable_web_delhi_icons");var eK_=_.a(function(O){O=_.ru(O,{themeOverride:void 0,animationRef:{}});var m=O.animatedIconType,G=O.active,B=O.themeOverride,Q=O.animationRef;O=O.staticIconFn;var H=_.K(_.Wf(void 0,void 0,"l48agc")),M=H.next().value,R=H.next().value,x=function(){a:{var S=m();var L=B==null?void 0:B();var C;L=(L==null?void 0:L.useDarkTheme)||((C=_.KR().resolve(_.v7(_.B6)))==null?void 0:C());switch(S){case "LIKE":wOs||(wOs=new vX(gdN()));S=(S=$nY(wOs.getState()))&&S.animationLightUrl&&S.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:L?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:L?S.animationDarkUrl:S.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(S){L=S;break a}L="animated_like_icon_"+(L?"dark":"light")+"_"+(Bo?"v5":"v4");L={lottiePlayerProps:{animationConfig:{name:L,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+L+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(Bo?" animated-like-icon-delhi":"")}}},totalFrames:Bo?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":L={lottiePlayerProps:{animationConfig:{name:L?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(L?"dark":"light")+(Bo?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(Bo?" animated-subscribe-icon-delhi":"")}}},totalFrames:Bo?120:79,lazyLoad:!1};break a}L=
void 0}return L},t=function(){var S,L;
return(L=(S=x())==null?void 0:S.lottiePlayerProps.animationConfig.name)!=null?L:""},W=function(){if(x()){var S=x().lottiePlayerProps.animationConfig.path;
return LH.get(S)||M()}};
H=_.K(_.Wf(!1,void 0,"sDrGId"));var Z=H.next().value;H=H.next().value;var z=jXe(H),J=function(){var S=x(),L,C,P;return(P=S==null?void 0:(L=S.lottiePlayerProps.animationConfig)==null?void 0:(C=L.rendererSettings)==null?void 0:C.className)!=null?P:""},n=void 0,I=void 0;
_.ER(function(){var S=x(),L=t(),C=W(),P=Z(),w=G();if(S&&(I!==L&&(I=L,n=w,L=Q(),z.animationConfig=S.lottiePlayerProps.animationConfig,z.animationRef=L,C&&(z.animationConfig.animationData=C,z.animationConfig.path=void 0),L=S.lottiePlayerProps.animationConfig.path,!LH.get(L)&&S.lazyLoad&&L&&uRN(L,R)),!(P||S.lazyLoad&&!C))){if(C=!Q().lottieEl)w?(P=S.totalFrames,z.animationConfig.initialSegment=[P-1,P]):z.animationConfig.initialSegment=void 0;if(n!==w&&!C)if(C=Q(),w){var d;(d=C.lottieEl)==null||d.playSegments([0,
S.totalFrames],!0)}else{var D;(D=C.lottieEl)==null||D.playSegments([0,1],!0)}n=w}},"RQVZ1d");
return _.q("animated-icon",{class:"ytAnimatedIconHost"},_.q(_.U,{cond:function(){var S,L;return!((S=x())==null||!S.lottiePlayerProps.animationConfig.path||((L=x())==null?0:L.lazyLoad)&&!W()||Z())},
then:function(){return _.q(_.Yo,{data:z,animationName:t,className:J,animationRef:Q})},
else:O}))},"L");_.Q8=_.a(function(O){var m=_.Al("yt-subscribe-button-view-model"),G=_.Al("div"),B=_.Al("div"),Q=_.Vp(),H=_.Vp(),M=_.Vp(),R=_.fJ(vM5,function(){return O.data().stateEntityStoreKey}),x=_.fJ(KSp,function(){var PM,ZH;
return(ZH=(PM=O.data().notificationStateEntityStoreKeys)==null?void 0:PM.subsNotificationStateKey)!=null?ZH:""}),t=function(){return!O.data().enableSubscribeButtonPostClickAnimation},W=_.K(_.Wf(0,void 0,"YtsSKb")),Z=W.next().value,z=W.next().value;
W=_.K(_.Wf(0,void 0,"V6JxRe"));var J=W.next().value,n=W.next().value;W=_.K(_.Wf(!1,void 0,"JUCSZ"));var I=W.next().value,S=W.next().value;W=_.K(_.Wf(!1,void 0,"oV6jwf"));var L=W.next().value,C=W.next().value;W=_.K(_.Wf(!1,void 0,"hK1Whe"));var P=W.next().value,w=W.next().value,d;W=_.K(_.Wf(!1,void 0,"Asaolf"));var D=W.next().value,OS=W.next().value,rN=function(){C(!0);_.Sh(_.ln,function(){C(!1)},1500)};
_.ER(function(){var PM=L();t0(function(){PM&&!t()&&R()&&kzz(Q,H,M)})},"Qq6Hsf");
_.ER(function(){var PM=R();t0(function(){if(!t()&&PM){var ZH;((ZH=O.animateWidth)==null?0:ZH.call(O))&&a5N(m.value,!!PM.subscribed,Z(),J());var U3,p$;((U3=d)==null?0:U3.subscribed)||!PM.subscribed||PM.key!==((p$=d)==null?void 0:p$.key)||rN();d=PM}})},"hog8te");
W=_.bF(function(){var PM,ZH,U3,p$=O.data(),uy=!((PM=R())==null||!PM.subscribed);PM=!((ZH=O.isOverlay)==null||!ZH.call(O));ZH=I()?m:void 0;var vb=(U3=x())==null?void 0:U3.state;U3=D();l5r(p$,vb);return St6({model:p$,subscribed:uy,isOverlay:PM,element:ZH,notificationState:vb,disableTextEllipsis:!0,focused:U3})},void 0,"hc1PRd");
var xO=function(){var PM;if(!t()&&((PM=O.animateWidth)==null?0:PM.call(O))&&(G==null?0:G.value)&&(B==null?0:B.value)&&!P()){PM=R();var ZH=_.K((PM==null?0:PM.subscribed)?[G,B]:[B,G]),U3=ZH.next().value;ZH=ZH.next().value;U3=Math.ceil(U3.value.getBoundingClientRect().width);ZH=Math.ceil(ZH.value.getBoundingClientRect().width);z(U3);n(ZH);a5N(m.value,!(PM==null||!PM.subscribed),U3,ZH);w(!0)}},XI=_.nH(function(PM){xO();
var ZH=R();ZH&&(PM.detail.endpoint.subscribeEndpoint||PM.detail.endpoint.unsubscribeEndpoint)&&Lyz(m.value,!ZH.subscribed,ZH)}),Vf=function(){var PM=_.KR().resolve(_.v7(_.IF));
PM&&OS(PM.isKeyBoardInUse())},US=function(){OS(!1)};
_.Fg("yt-player-subscribe",function(PM){var ZH=R();ZH&&PM===O.data().channelId&&Lyz(m.value,!0,ZH)});
_.Fg("yt-player-unsubscribe",function(PM){var ZH=R();ZH&&PM===O.data().channelId&&Lyz(m.value,!1,ZH)});
_.Fg("yt-update-subscribe-button-action",function(PM){PM=_.b(PM,TW9);var ZH=R();ZH&&PM&&PM.channelId===O.data().channelId&&Lyz(m.value,!!PM.subscribed,ZH)});
_.Ln(function(){m.value&&(m.value.addEventListener("focusin",Vf),m.value.addEventListener("focusout",US));var PM=_.uT(_.ln,function(){xO()});
S(!0);_.LS(function(){_.ln.cancelJob(PM);m.value&&(m.value.removeEventListener("focusin",Vf),m.value.removeEventListener("focusout",US))})});
var CN=function(){var PM,ZH,U3;if(U3=!((PM=R())==null||!PM.subscribed))PM=!!O.data().disableNotificationBell,U3=(ZH=x())==null?void 0:ZH.state,U3=!PM&&!!U3;return U3},oe=function(){var PM;
return!((PM=R())==null?0:PM.subscribed)},K$=function(){var PM,ZH;
if(ZH=oe()){ZH=!!O.data().disableNotificationBell;var U3=(PM=x())==null?void 0:PM.state;ZH=!ZH&&!!U3}return ZH},n$={},qe={};
return _.q("yt-subscribe-button-view-model",{class:_.bE(O.className,"ytSubscribeButtonViewModelHost",(n$.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var PM,ZH;return!((PM=R())==null||!PM.subscribed)&&((ZH=O.animateWidth)==null?void 0:ZH.call(O))&&L()},n$.ytSubscribeButtonViewModelHostHidden=function(){var PM;
return!((PM=R())==null?0:PM.subscribed)&&O.data().hideWhenUnsubscribed},n$)),
el:m,"on:yt-service-request-sent":XI},_.q(ypp,{backgroundLottieRef:Q,foregroundLottieRef:H,wrapperClass:_.bE("ytSubscribeButtonViewModelAnimatedActionWrapper",(qe.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var PM;return((PM=O.animateWidth)==null?void 0:PM.call(O))&&L()},qe.ytSubscribeButtonViewModelStaticWidth=function(){var PM;
return!((PM=O.animateWidth)==null?0:PM.call(O))},qe)),
disableAnimation:t},_.q("div",{el:G,class:"ytSubscribeButtonViewModelContainer"},_.q(_.C3,{data:W,icon:function(){return _.q(_.U,{cond:CN,then:function(){var PM=function(){var ZH;return Edz((ZH=x())==null?void 0:ZH.state)};
return _.q(_.U,{cond:function(){return t()||PM()!=="NOTIFICATIONS_NONE"},
then:function(){return _.q(_.T$,{icon:PM})},
else:function(){return _.q(eK_,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:M})}})}})},
secondaryIconName:function(){return CN()?"EXPAND":void 0}}))),_.q("div",{el:B,
class:"ytSubscribeButtonViewModelInvisible"},_.q(_.U,{cond:function(){var PM;return((PM=O.animateWidth)==null?void 0:PM.call(O))&&!t()&&!P()},
then:function(){return _.q(_.C3,{data:_.bF(function(){var PM;return St6({model:O.data(),subscribed:oe(),isOverlay:!((PM=O.isOverlay)==null||!PM.call(O)),element:m,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var PM;return K$()?Edz((PM=x())==null?void 0:PM.state):void 0},
secondaryIconName:function(){return K$()?"EXPAND":void 0}})}})))},"M");
_.Q8.idomCompat=!0;var Dh2=_.a(function(O){var m=O.data;var G=_.fJ(vM5,function(){return m().subscriptionStateEntityKey});
return _.q(_.U,{cond:function(){var B=m(),Q=G();return!B.hideWhenUnsubscribed||(Q==null?0:Q.subscribed)?_.b(m().button,_.rc):void 0},
then:function(B){return _.q("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.q(_.oF,{data:B,buttonOverrides:function(){return{toggled:!0}}}))}})},"N");
Dh2.idomCompat=!0;var sX3,Ho;sX3=_.a(function(O){return _.q(_.u5,{data:function(){return O.actionRow().actions}},{buttonViewModel:function(m){var G=m.data;
return _.q(Ho,{isRow:O.isRow,isIconOnlyButton:function(){return ypY(G())},
useIntrinsicWidth:O.useIntrinsicWidth},_.q(_.oF,{data:G}))},
subscribeButtonViewModel:function(m){return _.q(Ho,{isRow:O.isRow},_.q(_.Q8,{data:m.data,isOverlay:!1,animateWidth:function(){return!O.isRow()}}))},
downloadButtonViewModel:function(m){var G=m.data;return _.q(Ho,{isRow:O.isRow,isIconOnlyButton:function(){return!!G().playlistId}},_.q(l5o,{data:G}))},
submitButtonViewModel:function(m){var G=m.data;return _.q(Ho,{isRow:O.isRow,isIconOnlyButton:function(){var B=G();return ypY(_.b(B==null?void 0:B.button,_.rc))}},_.q(a58,{data:G}))},
toggleButtonViewModel:function(m){var G=m.data;return _.q(Ho,{isRow:O.isRow,isIconOnlyButton:function(){var B=G();return ypY(_.b(B.isToggled?B.toggledButtonViewModel:B.defaultButtonViewModel,_.rc))}},_.q(_.BT,{data:G}))},
subscribePlusButtonViewModel:function(m){return _.q(Ho,{isRow:O.isRow},_.q(Dh2,{data:m.data}))}})},"O");
Ho=_.a(function(O){var m={};return _.q("div",{class:_.bE("ytFlexibleActionsViewModelAction",(m.ytFlexibleActionsViewModelActionRowAction=O.isRow,m.ytFlexibleActionsViewModelActionIntrinsicWidth=O.useIntrinsicWidth,m.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,m.ytFlexibleActionsViewModelActionIconOnlyButton=O.isIconOnlyButton,m))},O.children)},"P");
_.vo=_.a(function(O){var m=function(){var B;return((B=O.layout)==null?void 0:B.call(O))===1},G={};
return _.q("yt-flexible-actions-view-model",{class:_.bE("ytFlexibleActionsViewModelHost",O.className,(G.ytFlexibleActionsViewModelInline=function(){return!m()},G.ytFlexibleActionsViewModelScrollable=function(){return O.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},G))},_.q(_.gi,{each:function(){return O.data().actionsRows||[]}},function(B){return _.q(_.U,{cond:m,
then:function(){return _.q("div",{class:"ytFlexibleActionsViewModelActionRow"},_.q(sX3,{actionRow:B,isRow:m,useIntrinsicWidth:function(){return!!O.data().respectActionIntrinsicWidth}}))},
else:function(){return _.q(sX3,{actionRow:B,isRow:m})}})}))},"Q");_.qi(_.vo,"yt-flexible-actions-view-model",{props:{data:_.VZ,layout:_.VZ,justifyContentOverride:_.VZ,className:_.VZ}});_.Kx=_.a(function(O){var m=_.fJ(eV,function(){var Q;return(Q=O.data().dislikeEntityKey)!=null?Q:""}),G=_.bF(function(){var Q=m();
return Q?Q.likeStatus==="DISLIKE":_.b(O.data().toggleButtonViewModel,_.iR).isToggled},void 0,"fNr9he"),B=_.bF(function(){return Object.assign({},_.b(O.data().toggleButtonViewModel,_.iR),{isToggled:G()})},void 0,"AezoCc");
return _.q("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.q(_.BT,{data:B,buttonShapeOverrides:O.buttonShapeOverrideables,onToggle:function(Q){var H=m();H&&Q!==(H.likeStatus==="DISLIKE")&&H.key&&_.$n(_.Cz("likeStatusEntity",H.key,{likeStatus:Q?"DISLIKE":"INDIFFERENT",hadUserInteraction:Q}))}}))},"R");
_.Kx.idomCompat=!0;_.$U=_.a(function(O){var m=_.V("web_supports_animations_api"),G=rg(function(z){var J=t();if(!z){var n,I;return{numberText:(I=J==null?void 0:(n=J.likeCountIfIndifferent)==null?void 0:n.content)!=null?I:"",numberValue:Number(J==null?void 0:J.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var S;n=(J==null?void 0:(S=J.likeCountIfIndifferent)==null?void 0:S.content)!==z.numberText;if(R()||!n)return z;var L;return{numberText:(J==null?void 0:(L=J.likeCountIfIndifferent)==null?void 0:L.content)||
"",numberValue:Number(J==null?void 0:J.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!J}}),B=rg(function(z){var J=t();
if(!z){var n,I;return{numberText:(I=J==null?void 0:(n=J.likeCountIfLiked)==null?void 0:n.content)!=null?I:"",numberValue:Number(J==null?void 0:J.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var S;n=(J==null?void 0:(S=J.likeCountIfIndifferent)==null?void 0:S.content)!==z.numberText;if(R()||!n)return z;var L;return{numberText:(J==null?void 0:(L=J.likeCountIfLiked)==null?void 0:L.content)||"",numberValue:Number(J==null?void 0:J.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!J}}),Q=_.K(_.Wf(void 0,
void 0,"xldjge")),H=Q.next().value,M=Q.next().value,R=H,x=_.fJ(eV,function(){var z,J;
return(J=(z=O.data())==null?void 0:z.likeStatusEntityKey)!=null?J:""}),t=_.fJ(L66,function(){var z,J;
return((z=O.likeCountEntity)==null?void 0:(J=z.call(O))==null?void 0:J.key)||""}),W=_.bF(function(){var z;
return((z=x())==null?void 0:z.likeStatus)==="LIKE"},void 0,"B3od5e"),Z=function(){var z;
return m&&!((z=O.likeCountEntity)==null||!z.call(O))};
return _.q("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.q(_.BT,{data:function(){var z=Object,J=z.assign,n;var I=_.b((n=O.data())==null?void 0:n.toggleButtonViewModel,_.iR);return J.call(z,{},I||{},{isToggled:W()})},
buttonShapeOverrides:O.buttonShapeOverrideables,animatedTextPropsDefault:function(){return Z()?G():void 0},
animatedTextPropsToggled:function(){return Z()?B():void 0},
onToggle:function(z){cpN(z,x(),R(),M)},
style:function(){var z;return((z=O.disableIconAnimation)==null?0:z.call(O))?void 0:{animateIcon:"true"}}}))},"S");
_.$U.idomCompat=!0;var NBC=_.a(function(O){var m=function(){return _.b(O.data().likeButtonViewModel,_.mE)},G=function(){var Q;
return((Q=m())==null?void 0:Q.likeStatusEntityKey)||""},B=_.bF(function(){var Q,H;
var M=(H=_.fJ(eV,G)())!=null?H:(Q=m())==null?void 0:Q.likeStatusEntity;Q=O.data();var R;Q=(Q==null?void 0:(R=Q.timedAnimationData)==null?void 0:R.animationTiming)||[];return{uniqueId:"like-dislike",timings:Q,enabled:(M==null?void 0:M.likeStatus)==="INDIFFERENT"&&Q.length>0,experimentEnabled:Q.length>0}},void 0,"zZ3GQb");
return _.q("segmented-like-dislike-button-view-model",{class:_.bE("ytSegmentedLikeDislikeButtonViewModelHost",O.className),"button-renderer":!0},_.q(I59,{settings:B},_.q("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.q(_.U,{cond:m,then:function(Q){return _.q(_.$U,{data:Q,likeCountEntity:function(){return O.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.V("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.q(_.U,{cond:function(){return _.b(O.data().dislikeButtonViewModel,_.O1)},
then:function(Q){return _.q(_.Kx,{data:Q,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"T");
NBC.idomCompat=!0;_.qi(NBC,"segmented-like-dislike-button-view-model",{props:{data:_.VZ,className:_.VZ}});var P73=_.a(function(O){var m=O.data;var G=O.className;var B=O.setMinWidth;var Q=O.forceIconOnly;var H=_.Al("account-link-button-view-model"),M=_.fJ(_.YtN,function(){var z;return(z=m().accountLinkStatusEntityKey)!=null?z:""}),R=_.fJ(_.YtN,function(){var z;
return(z=m().accountLinkStatusSecondaryEntityKey)!=null?z:""}),x=function(){if(!_.V("web_account_link_secondary_killswitch")){var z,J;
return((z=M())==null?void 0:z.linked)||((J=R())==null?void 0:J.linked)}var n;return(n=M())==null?void 0:n.linked};
_.ER(function(){var z=M();if(z){var J=PUm(new Nwu,Dsu(new ehe,!!z.linked));_.zM().then(function(n){n&&(n.setAccountLinkState(_.pB(J.JSC$12173_serializeBinary(),4)),n.updateAccountLinkingConfig(!!z.linked))})}},"IvZF7");
var t=function(){return _.b(m().toggleButtonViewModel,_.iR)};
_.Fg("yt-signal-action-show-account-link-dialog",function(){if(t()){var z=x()?t().toggledButtonViewModel:t().defaultButtonViewModel;z=_.b(z,_.rc);var J;if((J=M())==null?0:J.isWarning){J=_.b(m().warningButtonViewModel,_.rc);if(!J){_.Dy(Error("Ih"));return}z=J}var n;(J=_.eg((n=z)==null?void 0:n.onTap))&&_.JK([J],H.value)}else _.Dy(Error("Jh"))});
var W=function(){var z=t();return Object.assign({},z,{isToggled:x()})},Z=function(){return(Q==null?0:Q())?{iconPosition:"icon-only"}:{}};
return _.q("account-link-button-view-model",{class:_.bE("ytwAccountLinkButtonViewModelHost",G,function(){return(B==null?0:B())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:H,"button-renderer":!0},_.q("div",null,_.q(_.U,{cond:function(){var z;if((z=M())==null?0:z.isWarning)return(z=_.b(m().warningButtonViewModel,_.rc))||_.Dy(Error("Ih")),z},
then:function(z){return _.q(_.oF,{data:z,buttonOverrides:Z})},
else:function(){return _.q(_.BT,{data:W,buttonShapeOverrides:Z})}})))},"U");_.qi(P73,"account-link-button-view-model",{props:{data:_.VZ,className:_.RZ,setMinWidth:_.RZ,forceIconOnly:_.RZ}});_.lE("menuRenderer","menuRenderer","ytd-menu-renderer");
var FyC={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"}},
Apu=_.V("web_fix_missing_action_buttons")?100:200,Mf=function(){var O=_.u.apply(this,arguments)||this;O.safeArea=!_.V("kevlar_flex_menu_safe_area_killswitch");O.tonalOverride=!1;O.threeDotSize="M";O.isOverlay=!1;O.useOverlayDark=!1;O.topLevelIconsOnly=!1;O.JSC$14648_lastWidth=0;O.maybeUpdateFlexibleMenu=function(){_.V("web_fix_missing_action_buttons")?requestAnimationFrame(O.maybeUpdateFlexibleMenuImpl):O.maybeUpdateFlexibleMenuImpl()};
O.maybeUpdateFlexibleMenuImpl=function(){var m;if((m=O.data)!=null&&m.flexibleItems){O.maybeFlushDebouncer();m=O.hostElement.clientWidth;var G=m>O.JSC$14648_lastWidth,B,Q=((B=O.topLevelButtonsContainer)==null?void 0:B.scrollHeight)||0,H;B=((H=O.flexibleItemButtonsContainer)==null?void 0:H.scrollHeight)||0;H=O.hostElement.scrollHeight>Math.max(Q,B)+8;G?(O.resetFlexibleItems(),O.JSC$14648_lastWidth=O.hostElement.clientWidth,O.maybeUpdateFlexibleMenu()):H&&(O.shrinkFlexibleMenu(),O.JSC$14648_lastWidth=
m)}};
O.computeThreeDotButtonShape=function(){if(O.tonalOverride)return Object.assign({},{onTap:function(){O.onOverflowTap()},
iconPosition:"icon-only",style:O.isOverlay?O.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:O.threeDotSize,state:"active",accessibilityLabel:O.computeAccessibilityLabel(O.data)},O.threeDotButtonOverride)};
O.onOverflowTap=function(){if(O.data.fetchMenuCommand)_.KR().resolve(_.Mu).resolveCommand(O.data.fetchMenuCommand,{form:{element:O.hostElement}});else if(O.data.isDisabled&&O.data.disabledCommand)_.fm(O.data.disabledCommand,O.hostElement);else{var m=O.createMenuRendererVe(),G={items:O.items};O.data.menuPopupAccessibility&&(G.menuPopupAccessibility=O.data.menuPopupAccessibility);O.data.footer&&(G.footer=O.data.footer);m={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:G},veData:m}};
_.KR().resolve(_.O5).openSheet({openPopupActionCommand:m},O.hostElement)}};
return O};
_.X(Mf,_.u);_.v=Mf.prototype;_.v.updateButtonOverrides=function(){if(!_.V("menu_renderer_label_update_upkillswitch")){var O=_.ZO(this.hostElement).querySelector("yt-button-view-model");O&&(O.buttonOverrides=this.buttonOverrides)}};
_.v.computeHasItems=function(){var O;return((O=this.topLevelButtonData)==null?void 0:O.length)||this.hasFlexibleItems};
_.v.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.v.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.n7(this.hostElement,{"--ytd-menu-renderer-button-color":_.Fs(this.data.iconColor)}))};
_.v.onStamperFinished=function(){this.JSC$14648_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.v.setupFlexibleMenu=function(){var O=this,m;(m=this.data)!=null&&m.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Pu(this.maybeUpdateFlexibleMenu,Apu,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){O.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))};
_.v.maybeFlushDebouncer=function(){if(_.V("web_replace_formatted_with_attributed_string")){var O;(O=this.topLevelButtons)==null||O.forEach(function(G){var B;(G=(B=G.getElementsByTagName("yt-attributed-string"))==null?void 0:B[0])&&GT5(G)});
var m;(m=this.flexibleItemButtons)==null||m.forEach(function(G){var B;(G=(B=G.getElementsByTagName("yt-attributed-string"))==null?void 0:B[0])&&GT5(G)})}};
_.v.resetFlexibleItems=function(){var O;if((O=this.data)!=null&&O.flexibleItems){_.V("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var m;this.flexAsTopLevelButtons=(m=this.data.flexibleItems)==null?void 0:m.map(function(G){return _.b(G,_.Tcm).topLevelButton});
_.V("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.v.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.v.shrinkFlexibleMenu=function(){var O;(O=this.flexAsTopLevelButtons)!=null&&O.length&&(this.flexAsTopLevelButtons=[].concat(_.lS(this.flexAsTopLevelButtons.slice(0,-1))))};
_.v.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:FyC,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:FyC,events:!0}}};
_.v.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.v.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.v.detached=function(){this.icon="MORE_VERT"};
_.v.computeTopLevelButtonData=function(O){if(!O)return[];var m;O=(m=O==null?void 0:O.topLevelButtons)!=null?m:[];return _.aM.unsafeClone([].concat(_.lS(O)))};
_.v.computeItems=function(O,m){if(!O)return[];var G=[];if(m){var B=(O.flexibleItems||[]).map(function(M){return _.b(M,_.Tcm)});
B=_.K(B);for(var Q=B.next();!Q.done;Q=B.next())Q=Q.value,m.includes(Q.topLevelButton)||(Q=Q.menuItem)&&G.push(Q)}var H;O=(H=O==null?void 0:O.items)!=null?H:[];return[].concat(_.lS(G),_.lS(O))};
_.v.computeMenuActive=function(O,m){return O||m};
_.v.onPopupOpened=function(){this.overlayOpen=!0;_.iP(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.v.onPopupClosed=function(){this.overlayOpen=!1;_.iP(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.v.onPopupCanceled=function(){this.overlayOpen=!1;_.iP(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.v.computeAccessibilityLabel=function(O){return this.get("accessibility.accessibilityData.label",O)};
_.v.isHidden=function(O,m){return this.tonalOverride||!O?!0:O.fetchMenuCommand||O.isDisabled&&O.disabledCommand?!1:!(m==null?0:m.length)};
_.v.isModernOverflowHidden=function(O,m){return this.tonalOverride&&O?O.fetchMenuCommand?!1:!(m==null?0:m.length):!0};
_.v.createMenuRendererVe=function(){var O=this.data.trackingParams,m=_.yA(),G=_.kf();return O&&m&&G?(O=_.Ez(O),G=_.Zv(7591),_.V("combine_ve_grafts")?_.LK(_.uK(),G,O):_.Pd(m,O,G),G):null};
_.vr.Object.defineProperties(Mf.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.flexAsTopLevelButtons)==null||!O.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Mf.prototype.onPopupCanceled=Mf.prototype.onPopupCanceled;Mf.prototype.onPopupClosed=Mf.prototype.onPopupClosed;Mf.prototype.onPopupOpened=Mf.prototype.onPopupOpened;Mf.prototype.tonalOverrideChanged=Mf.prototype.tonalOverrideChanged;Mf.prototype.resetFlexibleItems=Mf.prototype.resetFlexibleItems;Mf.prototype.setupFlexibleMenu=Mf.prototype.setupFlexibleMenu;Mf.prototype.iconButtonColorChanged=Mf.prototype.iconButtonColorChanged;Mf.prototype.updateButtonOverrides=Mf.prototype.updateButtonOverrides;
_.c([_.h(_.fQ),_.Y("design:type",Object)],Mf.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Mf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.uc("#button-shape"),_.Y("design:type",HTMLElement)],Mf.prototype,"buttonShape",void 0);_.c([_.uc("#button"),_.Y("design:type",Object)],Mf.prototype,"button",void 0);
_.c([_.g(),_.Y("design:type",Object)],Mf.prototype,"data",void 0);_.c([_.g({computed:"computeTopLevelButtonData(data)"}),_.Y("design:type",Array)],Mf.prototype,"topLevelButtonData",void 0);_.c([_.g(),_.Y("design:type",Array)],Mf.prototype,"flexAsTopLevelButtons",void 0);_.c([_.g({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.Y("design:type",Array)],Mf.prototype,"items",void 0);_.c([_.g({value:"MORE_VERT"}),_.Y("design:type",String)],Mf.prototype,"icon",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Mf.prototype,"safeArea",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.Y("design:type",Boolean)],Mf.prototype,"menuActive",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Mf.prototype,"menuFocused",void 0);_.c([_.g({value:"bottom"}),_.Y("design:type",String)],Mf.prototype,"buttonTooltipPosition",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Mf.prototype,"overlayOpen",void 0);
_.c([_.g({value:!0}),_.Y("design:type",Boolean)],Mf.prototype,"forceIconButton",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Mf.prototype,"styleActionButton",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Mf.prototype,"disableTextTransformOnButtons",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Mf.prototype,"tonalOverride",void 0);_.c([_.g(),_.Y("design:type",Object)],Mf.prototype,"threeDotSize",void 0);
_.c([_.g(),_.Y("design:type",Object)],Mf.prototype,"threeDotButtonOverride",void 0);_.c([_.g(),_.Y("design:type",Object)],Mf.prototype,"isOverlay",void 0);_.c([_.g(),_.Y("design:type",Object)],Mf.prototype,"useOverlayDark",void 0);_.c([_.g({computed:"computeButtonOverride(tonalOverride)"}),_.Y("design:type",Object)],Mf.prototype,"buttonOverride",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Mf.prototype,"hasCustomIconColor",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("flexAsTopLevelButtons"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Mf.prototype,"hasFlexibleItems",null);_.c([_.g({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.Y("design:type",Boolean)],Mf.prototype,"hasItems",void 0);_.c([_.g(),_.Y("design:type",Object)],Mf.prototype,"topLevelIconsOnly",void 0);
_.c([_.Tw("topLevelIconsOnly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mf.prototype,"updateButtonOverrides",null);_.c([_.T("topLevelIconsOnly"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Mf.prototype,"buttonOverrides",null);_.c([_.uc("#top-level-buttons-computed"),_.Y("design:type",HTMLElement)],Mf.prototype,"topLevelButtonsContainer",void 0);_.c([_.ji(".top-level-buttons > *"),_.Y("design:type",Array)],Mf.prototype,"topLevelButtons",void 0);
_.c([_.uc("#flexible-item-buttons"),_.Y("design:type",HTMLElement)],Mf.prototype,"flexibleItemButtonsContainer",void 0);_.c([_.ji("#flexible-item-buttons > *"),_.Y("design:type",Array)],Mf.prototype,"flexibleItemButtons",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mf.prototype,"iconButtonColorChanged",null);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mf.prototype,"setupFlexibleMenu",null);_.c([_.Si("topLevelIconsOnly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mf.prototype,"resetFlexibleItems",null);_.c([_.Tw("tonalOverride"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mf.prototype,"tonalOverrideChanged",null);
_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mf.prototype,"onPopupOpened",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mf.prototype,"onPopupClosed",null);_.c([_.hG("yt-popup-canceled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mf.prototype,"onPopupCanceled",null);
_.y(Mf,"ytd-menu-renderer",function(){if(Wyu===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);Wyu=O}O=Wyu;return O},{mode:2});var OZu;var mle;_.ra=_.a(function(O){var m=O.data;var G=function(){if(m().icon)a:{var Q={iconName:m().icon};for(var H=_.KR().resolve(_.nm),M=_.K([12,24]),R=M.next();!R.done;R=M.next()){var x=R.value;R=Object.assign({},Q,{iconStyle:"youtube_fill",iconSize:x});x=Object.assign({},Q,{iconStyle:"youtube_outline",iconSize:x});if(H.resolveIcon(R)){Q=R;break a}if(H.resolveIcon(x)){Q=x;break a}}Q=void 0}else Q=void 0;return Q};
O={};var B={};return _.q("badge-shape",{class:_.bE("yt-badge-shape",function(){return NBI(m().type)},(O["yt-badge-shape--overlay"]=function(){return m().isOverlay},O["yt-badge-shape--ads-include-dot"]=function(){return m().adsIncludeDot},O["yt-badge-shape--thumbnail-badge"]=function(){a:switch(m().type){case 17:case 18:case 19:var Q=!0;
break a;default:Q=!1}return Q},O["yt-badge-shape--status-badge"]=function(){a:switch(m().type){case 12:case 13:case 14:case 15:case 16:var Q=!0;
break a;default:Q=!1}return Q},O["yt-badge-shape--no-text"]=function(){return!m().text},O["yt-badge-shape--modern"]=function(){return m().modern||_.V("web_modern_badge_shape")},O)),
style:_.hH({"background-color":function(){var Q;return(Q=m().customColors)==null?void 0:Q.backgroundColor}}),
role:function(){return m().accessibilityText?"img":void 0},
"aria-label":function(){return m().accessibilityText}},_.q(_.U,{cond:function(){return m().animation},
then:function(Q){return _.q(_.Yo,{className:"yt-badge-shape__icon",data:Q,animationName:function(){return Q().animationConfig.name||""}})}}),_.q(_.U,{cond:function(){var Q;
return G()&&!((Q=m())==null?0:Q.animation)},
then:function(){return _.q("div",{class:"yt-badge-shape__icon"},_.q(JrS,{data:function(){return G()}}))}}),_.q("div",{class:_.bE("yt-badge-shape__text",(B["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(m().numBadgesInRow||0)>1},B))},function(){var Q;
return(Q=m())==null?void 0:Q.text}))},"V");
_.ra.idomCompat=!0;_.qi(_.ra,"badge-shape",{props:{data:_.VZ}});var R0=function(){var O=_.u.apply(this,arguments)||this;O.systemIcons=_.V("kevlar_system_icons");O.animated=_.V("animated_live_badge_icon");O.useBadgeShape=_.V("web_badge_shape_defrag");return O};
_.X(R0,_.u);_.v=R0.prototype;_.v.addTooltips=function(){for(var O=_.ZO(this.hostElement).querySelectorAll(".badge"),m=0,G;G=O[m++];){var B=this.repeatElement.itemForElement(G);G=_.ZO(G);G.lastChild&&G.lastChild.is==="tp-yt-paper-tooltip"&&G.removeChild(G.lastChild);if(B=B.metadataBadgeRenderer&&B.metadataBadgeRenderer.tooltip){var Q=_.Th("tp-yt-paper-tooltip");(0,_.bc)(Q).textContent=B;Q.setAttribute("position","top");Q.setAttribute("aria-hidden","true");G.appendChild(Q)}}};
_.v.badgesChanged=function(){var O=this;_.xA().parkOrScheduleJob(function(){O.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.v.standaloneRoundedBadgeChanged=function(){var O=this.useRoundedBadge?this.useRoundedBadge:void 0;O&&(this.useRoundedBadge=O)};
_.v.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.v.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.v.computeStyle=function(O){_.V("enable_html5_teal_ad_badge")&&O==="BADGE_STYLE_TYPE_AD"&&(O="badge-style-type-ad-alternate");_.V("kevlar_ytb_live_badges")&&O==="BADGE_STYLE_TYPE_LIVE_NOW"&&(O="badge-style-type-live-now-alternate");return O?O.toLowerCase().replace(/_/g,"-"):""};
_.v.computeRole=function(O){return this.computeAriaLabel(O)?"img":"status"};
_.v.computeAriaLabel=function(O){var m;return(O==null?void 0:(m=O.accessibilityData)==null?void 0:m.label)||(O==null?void 0:O.label)};
_.v.computeBadgeShape=function(O){if(O){var m,G;var B=Dhs(O.style);var Q=sXS(O.style),H=O.label,M=((m=O.accessibilityData)==null?void 0:m.label)||O.label;a:switch(O.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":m=!0;break a;default:m=!1}var R=(G=O.icon)==null?void 0:G.iconType;a:switch(O.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":O=!0;break a;default:O=!1}B={type:B,brNzRatingBadgeType:Q,text:H,accessibilityText:M,
isOverlay:m,icon:R!=="PREMIUM"?R:void 0,modern:_.V("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:O}}else B={};return B};
_.v.updateComputedBadges=function(O,m,G){var B=this;(m=m?[m]:G?[G]:void 0)?this.computedBadges=m:this.computedBadges=O==null?void 0:O.filter(function(Q){var H;if((H=Q.metadataBadgeRenderer)==null?0:H.groups){H=!1;Q=_.K(Q.metadataBadgeRenderer.groups);for(var M=Q.next();!M.done;M=Q.next()){M=M.value;var R=void 0;H=H||((R=B.hiddenBadgeGroups)==null?void 0:R.includes(M))}return!H}return!0})};
_.v.useFilledIcons=function(O){return _.V("kevlar_system_icons")&&(O==="AUDIO_BADGE"||O==="CHECK_CIRCLE_THICK"||O==="OFFICIAL_ARTIST_BADGE"||O==="SPONSORSHIP_STAR"||O==="PERSON_RADAR_FILLED"||O==="PERSON_RADAR")};
_.v.computeBadgeShapeStyle=function(O){return this.useBadgeShape?O==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||O==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.v.computeIcon=function(O){var m,G;O=O==null?void 0:(m=O.metadataBadgeRenderer)==null?void 0:(G=m.icon)==null?void 0:G.iconType;if(O!=="PREMIUM"&&O)return _.bK(O)};
_.v.computeStandaloneBadge=function(O){var m;O=O==null?void 0:(m=O.icon)==null?void 0:m.iconType;return O==="PREMIUM_STANDALONE"||O==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
R0.prototype.hiddenBadgeGroupsChanged=R0.prototype.hiddenBadgeGroupsChanged;R0.prototype.standaloneBadgeChanged=R0.prototype.standaloneBadgeChanged;R0.prototype.standaloneRoundedBadgeChanged=R0.prototype.standaloneRoundedBadgeChanged;R0.prototype.badgesChanged=R0.prototype.badgesChanged;_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],R0.prototype,"hidden",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],R0.prototype,"componentBehavior",void 0);
_.c([_.g(),_.Y("design:type",Array)],R0.prototype,"badges",void 0);_.c([_.g(),_.Y("design:type",Object)],R0.prototype,"topStandaloneBadge",void 0);_.c([_.g(),_.Y("design:type",Object)],R0.prototype,"bottomStandaloneBadge",void 0);_.c([_.g(),_.Y("design:type",Object)],R0.prototype,"computedBadges",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],R0.prototype,"mediumFontAdBadge",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],R0.prototype,"useRoundedBadge",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],R0.prototype,"largeFontAdBadge",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],R0.prototype,"overlayAd",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],R0.prototype,"overlayPremium",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],R0.prototype,"noDotAdBadge",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],R0.prototype,"collectionTruncate",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],R0.prototype,"isThumbnailBadge",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],R0.prototype,"wrapBadges",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Number)],R0.prototype,"numBadgesInRow",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],R0.prototype,"systemIcons",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],R0.prototype,"animated",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],R0.prototype,"useBadgeShape",void 0);_.c([_.g({value:[]}),_.Y("design:type",Array)],R0.prototype,"hiddenBadgeGroups",void 0);_.c([_.uc("#repeat"),_.Y("design:type",YZ)],R0.prototype,"repeatElement",void 0);_.c([_.Si("badges"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R0.prototype,"badgesChanged",null);
_.c([_.Si("useRoundedBadge"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R0.prototype,"standaloneRoundedBadgeChanged",null);_.c([_.Si("topStandaloneBadge","bottomStandaloneBadge"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R0.prototype,"standaloneBadgeChanged",null);_.c([_.Si("hiddenBadgeGroups"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R0.prototype,"hiddenBadgeGroupsChanged",null);
_.c([_.l({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],R0);
var GrH=_.WE()(R0,"ytd-badge-supported-renderer",function(){if(mle===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);mle=O}O=mle;return O},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.ZB("kevlar_poly_si_batch_j053")?1:2});var i3=function(){var O=_.u.apply(this,arguments)||this;O.iconType="STAR";O.standardizeIconSize=_.V("kevlar_system_icons");O.mediaHoverOverlayInitialVisibility=_.V("enable_top_landscape_image_button_command_web");O.noBottomMargin=!1;O.thumbnailObjectFit="CONTAIN";O.thumbnailFitHeight=!0;O.actionMap={"yt-mute-ad-action":"handleMuteAd"};return O};
_.X(i3,_.u);_.v=i3.prototype;
_.v.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"}}}};
_.v.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",i3.JSC$14660_DEFAULT_CLICK_LOCATION_BEHAVIOR,i3.JSC$14660_CLICK_LOCATION_ID_MAP))};
_.v.onTap=function(O){if(!_.V("use_on_click_for_desktop_display_ad"))this.onTapOrClick(O)};
_.v.onClick=function(O){if(_.V("use_on_click_for_desktop_display_ad"))this.onTapOrClick(O)};
_.v.onTapOrClick=function(O){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,O,!1)};
_.v.updateMediaBackgroundImage=function(){var O=this.get("data.image.thumbnail.thumbnails");O&&(O=_.Uf(O,0))&&_.n7(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+O+")"})};
_.v.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var O=0;O<this.data.impressionEndpoints.length;O++){var m=this.data.impressionEndpoints[O];m.clickTrackingParams&&delete m.clickTrackingParams;_.KR().resolve(_.Mu).resolveCommand(m,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var G;((G=this.data)==null?0:G.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.v.handleMuteAd=function(){};
_.v.attached=function(){var O=this;_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&O.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.v.detached=function(){_.V("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.vr.Object.defineProperties(i3.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.titleText)return"";var m;return _.Xm("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((m=this.data)==null?void 0:m.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.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 O;return!((O=this.data)==null||!O.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"}}});
i3.prototype.onClick=i3.prototype.onClick;i3.prototype.onTap=i3.prototype.onTap;i3.prototype.dataChanged=i3.prototype.dataChanged;
i3.JSC$14660_CLICK_LOCATION_ID_MAP=_.V("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"]]);
i3.JSC$14660_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.V("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.Rr),_.Y("design:type",Object)],i3.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],i3.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.up.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],i3.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.h($m),_.Y("design:type",Object)],i3.prototype,"ytdActiveViewBehavior",void 0);_.c([_.h([_.cg.YtActionHandlerBehavior]),_.Y("design:type",Object)],i3.prototype,"actionHandlerBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],i3.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],i3.prototype,"clickCommand",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.yh}),_.Y("design:type",Boolean)],i3.prototype,"miniMode",void 0);_.c([_.g(),_.Y("design:type",String)],i3.prototype,"iconType",void 0);_.c([_.T("data.titleText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],i3.prototype,"titleAriaLabel",null);
_.c([_.T("data.rating"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],i3.prototype,"getRating",null);_.c([_.T("data.price"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],i3.prototype,"getPrice",null);_.c([_.T("data.thirdLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],i3.prototype,"getThirdLine",null);_.c([_.T("data.fourthLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],i3.prototype,"getFourthLine",null);
_.c([_.T("data.fifthLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],i3.prototype,"getFifthLine",null);_.c([_.T("getRating"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],i3.prototype,"computeRatingHidden",null);_.c([_.T("getPrice"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],i3.prototype,"computePriceHidden",null);_.c([_.T("getThirdLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],i3.prototype,"computeThirdLineHidden",null);
_.c([_.T("getFourthLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],i3.prototype,"computeFourthLineHidden",null);_.c([_.T("getFifthLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],i3.prototype,"computeFifthLineHidden",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.energyIcon"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],i3.prototype,"hasEnergyIcon",null);
_.c([_.T("computePriceHidden","computeRatingHidden"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],i3.prototype,"computeSecondaryTextHidden",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],i3.prototype,"standardizeIconSize",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],i3.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],i3.prototype,"noBottomMargin",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("data.layout"),_.Y("design:type",String),_.Y("design:paramtypes",[])],i3.prototype,"layout",null);_.c([_.T("data.layout"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],i3.prototype,"mediaThumbnailWidth",null);_.c([_.T("layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],i3.prototype,"useRoundedBadge",null);_.c([_.g(),_.Y("design:type",String)],i3.prototype,"thumbnailObjectFit",void 0);
_.c([_.g(),_.Y("design:type",Object)],i3.prototype,"thumbnailFitHeight",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i3.prototype,"dataChanged",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],i3.prototype,"onTap",null);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],i3.prototype,"onClick",null);
_.c([_.l({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],i3);
_.y(i3,"ytd-display-ad-renderer",function(){if(OZu!==void 0)return OZu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return OZu=O},{mode:1});var Bf9;var QHC;var HZC;var P7S=new Map;var vPu=!1;var xU=function(){var O=_.u.apply(this,arguments)||this;O.DEFAULT_TOOLTIP_OFFSET="10";O.TOOLTIP_OFFSET_NO_BANNER="-8";O.badges=null;O.noEndpoints=!1;O.wrapText=!1;O.forceVerified=!1;O.tooltipPosition="top";O.compactStyle=!1;O.height=0;O.lineHeight=0;return O};
_.X(xU,_.u);_.v=xU.prototype;_.v.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.v.attached=function(){var O=this;this.observer=new MutationObserver(function(m,G){O.handleResized();G.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.v.detached=function(){this.observer&&this.observer.disconnect()};
_.v.logTooltipEvent=function(){_.V("kevlar_wiz_tooltip_event_killswitch")||vPu||(_.FyI("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),vPu=!0)};
_.v.handleWindowResized=function(){this.handleResized()};
_.v.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")))};
_.v.onHeightChanged=function(){if(this.verified){var O=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.kB("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=O:this.textContainerEl.style.marginRight=O}};
_.v.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.kB("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.v.handleResized=function(){var O=this;this.verified&&_.ln.addLowPriorityJob(function(){O.fitBackgroundToText();var m=getComputedStyle(O.hostElement).lineHeight;m&&(m=m.match(/\d+/))&&m.length&&(O.lineHeight=Number(m[0]));O.height=O.lineHeight&&!O.wrapText?O.lineHeight:O.textEl.offsetHeight})};
_.v.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var O=document.createRange(),m=_.ZO(this.textEl).children;m.length>0?O.selectNodeContents(m[0]):O.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(O.getBoundingClientRect().width)+"px"}};
_.v.computeChannelBadgeStyle=function(O){var m;if((O==null?0:(m=O.runs)==null?0:m.length)&&O.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Fs(O.runs[0].textColor)+";"};
_.vr.Object.defineProperties(xU.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"?_.Qg(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var O=this.get("badges.0.metadataBadgeRenderer.tooltip");if(O)return O}return _.HX(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
xU.prototype.onLineHeightChanged=xU.prototype.onLineHeightChanged;xU.prototype.onHeightChanged=xU.prototype.onHeightChanged;xU.prototype.onChannelNameChanged=xU.prototype.onChannelNameChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],xU.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],xU.prototype,"badges",void 0);_.c([_.g(),_.Y("design:type",Object)],xU.prototype,"channelName",void 0);
_.c([_.g(),_.Y("design:type",Object)],xU.prototype,"noEndpoints",void 0);_.c([_.g(),_.Y("design:type",Object)],xU.prototype,"wrapText",void 0);_.c([_.g(),_.Y("design:type",Object)],xU.prototype,"forceVerified",void 0);_.c([_.g(),_.Y("design:type",Object)],xU.prototype,"tooltipPosition",void 0);_.c([_.g(),_.Y("design:type",String)],xU.prototype,"tooltip",void 0);_.c([_.g(),_.Y("design:type",Boolean)],xU.prototype,"hasChannelArt",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],xU.prototype,"compactStyle",void 0);_.c([_.uc("#text-container"),_.Y("design:type",HTMLElement)],xU.prototype,"textContainerEl",void 0);_.c([_.uc("#text"),_.Y("design:type",Object)],xU.prototype,"textEl",void 0);_.c([_.uc("#verified-tooltip"),_.Y("design:type",HTMLElement)],xU.prototype,"verifiedTooltip",void 0);_.c([_.g(),_.Y("design:type",Object)],xU.prototype,"height",void 0);
_.c([_.g(),_.Y("design:type",Object)],xU.prototype,"lineHeight",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("badges","forceVerified"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xU.prototype,"verified",null);_.c([_.T("badges","verified"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xU.prototype,"hideBadges",null);_.c([_.T("channelName"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xU.prototype,"formattedName",null);
_.c([_.T("badges","verified","formattedName"),_.Y("design:type",String),_.Y("design:paramtypes",[])],xU.prototype,"tooltipText",null);_.c([_.T("hasChannelArt"),_.Y("design:type",String),_.Y("design:paramtypes",[])],xU.prototype,"tooltipOffset",null);_.c([_.Tw("channelName"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xU.prototype,"onChannelNameChanged",null);
_.c([_.Tw("height"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xU.prototype,"onHeightChanged",null);_.c([_.Tw("lineHeight","height"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xU.prototype,"onLineHeightChanged",null);_.c([_.l({is:"ytd-channel-name",disableElementRegistration:!0})],xU);
_.y(xU,"ytd-channel-name",function(){if(HZC!==void 0)return HZC;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return HZC=O},{mode:_.ZB("kevlar_poly_si_batch_j036")?1:2});var qf=function(){var O=_.u.apply(this,arguments)||this;O.standardizeIconSize=_.V("kevlar_system_icons");return O};
_.X(qf,_.u);qf.prototype.basicPaletteChanged=function(){var O;(O=this.data.color)!=null&&O.basicColorPaletteData&&_.CH(this.hostElement,this.data.color.basicColorPaletteData)};
qf.prototype.useFilledIcons=function(O){return _.V("kevlar_system_icons")&&(O==="CHECK_CIRCLE_THICK"||O==="OFFICIAL_ARTIST_BADGE")};
_.vr.Object.defineProperties(qf.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return this.data.authorCreator||((O=this.data)==null?void 0:(m=O.color)==null?void 0:(G=m.basicColorPaletteData)==null?void 0:G.backgroundColor)}}});
qf.prototype.basicPaletteChanged=qf.prototype.basicPaletteChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],qf.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qf.prototype,"standardizeIconSize",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data.authorUnifiedVerified"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qf.prototype,"verified",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qf.prototype,"creator",null);_.c([_.Tw("data.color.basicColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qf.prototype,"basicPaletteChanged",null);_.c([_.l({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],qf);
_.y(qf,"ytd-author-comment-badge-renderer",function(){if(QHC!==void 0)return QHC;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return QHC=O},{mode:1});var Krp;var U5=function(){return _.u.apply(this,arguments)||this};
_.X(U5,_.u);U5.prototype.computeThumbnailWidth=function(O){if(O==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],U5.prototype,"data",void 0);_.c([_.g({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],U5.prototype,"icon",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],U5.prototype,"surface",void 0);
_.c([_.g({reflectToAttribute:!0,value:_.V("enable_shrink_image_size_on_web_posts_singleton")}),_.Y("design:type",Boolean)],U5.prototype,"searchSxsUx",void 0);_.c([_.l({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],U5);
_.y(U5,"ytd-backstage-image-renderer",function(){if(Krp!==void 0)return Krp;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Krp=O},{mode:1});var $lu;var tW=function(){var O=_.u.apply(this,arguments)||this;O.isLoading=!1;O.selectedItemIndex=-1;return O};
_.X(tW,_.u);_.v=tW.prototype;_.v.computeIsChannelOwner=function(O){if(!O)return!0;O=O[0];return!(O&&(O.signinEndpoint||O.selectServiceEndpoint))};
_.v.computeIsImagePoll=function(O){return(O==null?void 0:O.type)==="POLL_TYPE_IMAGE"};
_.v.computeIsTotalVotesDisabled=function(O){return!(O==null?0:O.totalVotes)};
_.v.thumbnailSrc=function(O){var m,G,B,Q;return(O==null?0:(m=O.thumbnails)==null?0:(G=m[0])==null?0:G.url)?_.d5((B=O.thumbnails)==null?void 0:(Q=B[0])==null?void 0:Q.url):void 0};
_.v.progressWidth=function(O){return"width:"+(O?O*100:0)+"%;"};
_.v.textAreaWidth=function(O){return this.isImagePoll?null:"width:"+(O?O*100:0)+"%;"};
_.v.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.v.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var O=this.data.choices,m=0;m<O.length;m++)if(O[m].selected){this.selectedItemIndex=m;break}};
_.v.onPopupClosed=function(O,m){O=Number(this.pollVotes.selected);m.confirmed&&(this.selectChoice(O,!1),_.xc(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.v.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.v.onYtCommentPollRevert=function(O,m){m&&(this.selectChoice(m.selectedChoiceIndex,!0),this.set("data.totalVotes",m.totalVotes))};
_.v.onYtServiceRequestSent=function(O,m){if(m.actions)for(O=0;O<m.actions.length;O++){var G=m.actions[O];_.b(G,cz)&&this.set("data.totalVotes",_.b(G,cz).totalVotes)}};
_.v.onYtServiceRequestCompleted=function(O){var m=this.get("detail.data.actionResults.0.feedback",O);O=this.get("detail.data.actionResults.0.status",O);if(m==="FEEDBACK_DESELECT"||m==="FEEDBACK_SELECT")this.isLoading=!1,O==="STATUS_FAILED"?_.iP(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.v.getEndpoint=function(O,m){return m===O?this.data.choices[m].deselectServiceEndpoint||null:this.data.choices[O].selectServiceEndpoint||null};
_.v.selectChoice=function(O,m){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var G=0;G<this.data.choices.length;G++){var B;if(O===this.selectedItemIndex){var Q=!1;var H=B=null}else B=(Q=G===O)?this.data.choices[G].voteRatioIfSelected:this.data.choices[G].voteRatioIfNotSelected,H=Q?this.data.choices[G].votePercentageIfSelected:this.data.choices[G].votePercentageIfNotSelected;this.set("data.choices."+G+".voteRatio",B);
this.set("data.choices."+G+".votePercentage",H);this.set("data.choices."+G+".selected",Q)}m||(this.isLoading=!0,(m=this.getEndpoint(O,this.selectedItemIndex))&&_.KR().resolve(_.Mu).resolveCommand(m,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===O?-1:O};
_.vr.Object.defineProperties(tW.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
tW.prototype.onYtServiceRequestCompleted=tW.prototype.onYtServiceRequestCompleted;tW.prototype.onYtServiceRequestSent=tW.prototype.onYtServiceRequestSent;tW.prototype.onYtCommentPollRevert=tW.prototype.onYtCommentPollRevert;tW.prototype.onPopupClosed=tW.prototype.onPopupClosed;tW.prototype.dataChanged=tW.prototype.dataChanged;_.c([_.h(_.iq),_.Y("design:type",Object)],tW.prototype,"paperItemBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],tW.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],tW.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],tW.prototype,"isLoading",void 0);_.c([_.g({computed:"computeIsChannelOwner(data.choices)"}),_.Y("design:type",Boolean)],tW.prototype,"isChannelOwner",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.Y("design:type",Boolean)],tW.prototype,"isImagePoll",void 0);_.c([_.g({computed:"computeIsTotalVotesDisabled(data)"}),_.Y("design:type",Boolean)],tW.prototype,"isTotalVotesDisabled",void 0);_.c([_.g(),_.Y("design:type",Object)],tW.prototype,"previousPollInfo",void 0);_.c([_.g(),_.Y("design:type",Object)],tW.prototype,"selectedItemIndex",void 0);_.c([_.uc("#poll-votes"),_.Y("design:type",Object)],tW.prototype,"pollVotes",void 0);
_.c([_.T("isChannelOwner"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],tW.prototype,"endpointStyle",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tW.prototype,"dataChanged",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],tW.prototype,"onPopupClosed",null);
_.c([_.hG("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],tW.prototype,"onYtCommentPollRevert",null);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],tW.prototype,"onYtServiceRequestSent",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],tW.prototype,"onYtServiceRequestCompleted",null);_.c([_.l({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],tW);
_.y(tW,"ytd-backstage-poll-renderer",function(){if($lu!==void 0)return $lu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return $lu=O},{mode:2});var Mcj;var rqs={autoplay:!1,loop:!1},Rxu={simpleText:""},Wo=function(){var O=_.u.apply(this,arguments)||this;O.isLoading=!1;O.usesPanelLockup=!1;O.selectedItemIndex=-1;O.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},rqs,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});O.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},rqs,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});O.correctnessAnimationProps=[];O.correctnessAnimationRefs=[];return O};
_.X(Wo,_.u);_.v=Wo.prototype;_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.v.computeIsChannelOwner=function(O){if(!O)return!0;O=O[0];return!(O&&(O.signinEndpoint||O.selectServiceEndpoint))};
_.v.computeIsTotalVotesDisabled=function(O){return!(O==null?0:O.totalVotes)};
_.v.computeIsImageQuiz=function(O){return(O==null?void 0:O.type)==="POLL_TYPE_IMAGE"};
_.v.onExplanationChanged=function(){this.expander.reset()};
_.v.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var O=this.data.choices;if(O){this.maybeInitializeQuizLotties(O);for(var m=0;m<O.length;m++)if(O[m].isSelected||this.isChannelOwner&&O[m].isCorrect){this.selectedItemIndex=m;return}this.selectedItemIndex=-1}}};
_.v.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var O=this.selectedItemIndex,m=Number(this.quizVotes.selected);this.selectChoice(m);this.sendVoteAction(m,O);this.quizVotes.selected=-1;var G;O=!((G=this.data)==null?0:G.enableAnimation);this.maybePlayAnswerAnimations(O)}};
_.v.onYtCommentPollRevert=function(O,m){m&&(this.selectChoice(m.selectedChoiceIndex),this.set("data.totalVotes",m.totalVotes))};
_.v.onYtServiceRequestSent=function(O,m){if(m.actions)for(O=_.K(m.actions),m=O.next();!m.done;m=O.next())(m=_.b(m.value,cz))&&this.set("data.totalVotes",m.totalVotes)};
_.v.onYtServiceRequestCompleted=function(O){var m=this.get("detail.data.actionResults.0.feedback",O);O=this.get("detail.data.actionResults.0.status",O);if(m==="FEEDBACK_DESELECT"||m==="FEEDBACK_SELECT")this.isLoading=!1,O==="STATUS_FAILED"?_.iP(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.v.getAnimationPropsForChoiceIndex=function(O,m){return m[O]};
_.v.maybePlayAnswerAnimations=function(O){O=O===void 0?!1:O;var m;if((m=this.data)!=null&&m.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){m=_.K(this.correctnessAnimationRefs);for(var G=m.next();!G.done;G=m.next()){var B=void 0,Q=void 0;(B=G.value)==null||(Q=B.lottieEl)==null||Q.stop()}if(!(this.selectedItemIndex<0)){m=0;O&&(m=this.isCorrect?37:25);var H,M;(H=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(M=H.lottieEl)==null||M.goToAndPlay(O?m:0,!0);if(!(this.isCorrect||
(H=this.data.choices.findIndex(function(W){return W.isCorrect}),H<0))){var R,x;
(x=(R=this.correctnessAnimationRefs[H])==null?void 0:R.lottieEl)==null||x.goToAndPlay(37,!0);var t;R=(t=this.fadeContainers)==null?void 0:t.item(H);!O&&R&&this.fadeIn(R)}}}};
_.v.thumbnailSrc=function(O){var m,G,B,Q;return(O==null?0:(m=O.thumbnails)==null?0:(G=m[0])==null?0:G.url)?_.d5((B=O.thumbnails)==null?void 0:(Q=B[0])==null?void 0:Q.url):void 0};
_.v.a11yVotedText=function(O,m){var G,B,Q=((G=this.data)==null?void 0:(B=G.correctVotedText)==null?void 0:B.simpleText)||"",H,M;G=((H=this.data)==null?void 0:(M=H.votedText)==null?void 0:M.simpleText)||"";if(!m)return"";var R,x;if((R=this.data)==null?0:(x=R.choices)==null?0:x[O].isCorrect)return Q;var t,W;return((t=this.data)==null?0:(W=t.choices)==null?0:W[O].isSelected)?G:""};
_.v.getEndpoint=function(O,m){return m===O?this.data.choices[O].deselectServiceEndpoint||null:this.data.choices[O].selectServiceEndpoint||null};
_.v.sendVoteAction=function(O,m){if(O=this.getEndpoint(O,m))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(O)};
_.v.selectChoice=function(O){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var m=0;m<this.data.choices.length;m++)this.set("data.choices."+m+".isSelected",O===this.selectedItemIndex?!1:m===O);this.selectedItemIndex=this.selectedItemIndex===O?-1:O};
_.v.maybeInitializeQuizLotties=function(O){var m=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=O.map(function(G){return{animationConfig:G.isCorrect?m.baseCorrectLottiePlayerAnimationConfig:m.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){m.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(G){return G.animationRef||{}})};
_.v.fadeIn=function(O){O.classList.add("fade-in");_.z$(_.ln,function(){O.classList.remove("fade-in")},900)};
_.vr.Object.defineProperties(Wo.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.HX(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 O,m;return((O=this.data)==null?void 0:(m=O.choices)==null?void 0:m.some(function(G){return G.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null||!O.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?Rxu:this.data.choices[this.selectedItemIndex].explanation||Rxu}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null||!O.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Wo.prototype.onYtServiceRequestCompleted=Wo.prototype.onYtServiceRequestCompleted;Wo.prototype.onYtServiceRequestSent=Wo.prototype.onYtServiceRequestSent;Wo.prototype.onYtCommentPollRevert=Wo.prototype.onYtCommentPollRevert;Wo.prototype.dataChanged=Wo.prototype.dataChanged;Wo.prototype.onExplanationChanged=Wo.prototype.onExplanationChanged;_.c([_.h(_.iq),_.Y("design:type",Object)],Wo.prototype,"paperItemBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Wo.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.hg.YtTaskEmitterBehavior),_.Y("design:type",Object)],Wo.prototype,"ytTaskEmitterBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],Wo.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Wo.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],Wo.prototype,"isLoading",void 0);_.c([_.g(),_.Y("design:type",Object)],Wo.prototype,"usesPanelLockup",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.Y("design:type",Boolean)],Wo.prototype,"isChannelOwner",void 0);_.c([_.g({computed:"computeIsTotalVotesDisabled(data)"}),_.Y("design:type",Boolean)],Wo.prototype,"isTotalVotesDisabled",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.Y("design:type",Boolean)],Wo.prototype,"isImageQuiz",void 0);_.c([_.g(),_.Y("design:type",Object)],Wo.prototype,"previousQuizInfo",void 0);_.c([_.g(),_.Y("design:type",Object)],Wo.prototype,"selectedItemIndex",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data","usesPanelLockup"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Wo.prototype,"shouldUseModernUi",null);
_.c([_.ji(".fade-container"),_.Y("design:type",Object)],Wo.prototype,"fadeContainers",void 0);_.c([_.g(),_.Y("design:type",Array)],Wo.prototype,"correctnessAnimationProps",void 0);_.c([_.T("explanation","showCorrectAnswer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Wo.prototype,"showExplanation",null);_.c([_.T("isChannelOwner","isAttempted"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Wo.prototype,"showCorrectAnswer",null);
_.c([_.T("isChannelOwner","isAttempted","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Wo.prototype,"isQuizAnsweringDisabled",null);_.c([_.T("isQuizAnsweringDisabled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Wo.prototype,"endpointStyle",null);_.c([_.T("data","selectedItemIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Wo.prototype,"isAttempted",null);
_.c([_.T("data","selectedItemIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Wo.prototype,"explanation",null);_.c([_.T("data","selectedItemIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Wo.prototype,"isCorrect",null);_.c([_.uc("ytd-expander"),_.Y("design:type",Object)],Wo.prototype,"expander",void 0);_.c([_.uc("#quiz-votes"),_.Y("design:type",Object)],Wo.prototype,"quizVotes",void 0);
_.c([_.Tw("explanation"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wo.prototype,"onExplanationChanged",null);_.c([_.Tw("data","isChannelOwner"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wo.prototype,"dataChanged",null);_.c([_.hG("yt-comment-quiz-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Wo.prototype,"onYtCommentPollRevert",null);
_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],Wo.prototype,"onYtServiceRequestSent",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Wo.prototype,"onYtServiceRequestCompleted",null);_.c([_.l({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Wo);
_.y(Wo,"ytd-backstage-quiz-renderer",function(){if(Mcj!==void 0)return Mcj;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Mcj=O},{mode:1});var iZ2;var ZS=function(){return _.u.apply(this,arguments)||this};
_.X(ZS,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ZS.prototype,"data",void 0);_.c([_.l({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],ZS);
_.y(ZS,"ytd-post-uploaded-video-renderer",function(){if(iZ2!==void 0)return iZ2;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return iZ2=O},{mode:1});var xl_;var zF=function(){return _.u.apply(this,arguments)||this};
_.X(zF,_.u);zF.prototype.useFilledIcons=function(O){return O==="SPONSORSHIP_STAR"};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],zF.prototype,"data",void 0);_.c([_.l({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],zF);
var qjC=_.WE()(zF,"ytd-sponsors-only-badge-renderer",function(){if(xl_===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);xl_=O}O=xl_;return O},{allowedProps:["data"],
mode:1});var Ulj;var JW=function(){return _.u.apply(this,arguments)||this};
_.X(JW,_.u);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],JW.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],JW.prototype,"data",void 0);_.c([_.l({is:"ytd-child-video-renderer",disableElementRegistration:!0})],JW);
_.y(JW,"ytd-child-video-renderer",function(){if(Ulj!==void 0)return Ulj;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Ulj=O},{mode:1});var tcm;var WrC;var V8=function(){var O=_.u.apply(this,arguments)||this;O.size=0;O.enableWebModernCollectionsV2=_.V("web_modern_collections_v2");O.fallbackImageSize={height:void 0,width:9999};O.webModernCollections=!1;return O};
_.X(V8,_.u);_.v=V8.prototype;_.v.computeBlurredImageSize=function(O){return O?{height:O*2,width:O*2}:this.fallbackImageSize};
_.v.computeImageSize=function(O){return O?{height:O,width:O}:this.fallbackImageSize};
_.v.computeObjectFit=function(O){return O?"FILL":"CONTAIN"};
_.v.computePreserve=function(O){return O?!0:!1};
_.v.setBackground=function(){var O,m;_.V("web_modern_collections_v2")&&((O=this.data)==null?0:(m=O.thumbnail)==null?0:m.sampledThumbnailColor)&&(O=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+O.red+","+O.green+","+O.blue+",1)")};
V8.prototype.setBackground=V8.prototype.setBackground;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],V8.prototype,"watchFeedThumbnail",void 0);_.c([_.g(),_.Y("design:type",Object)],V8.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],V8.prototype,"size",void 0);
_.c([_.g({computed:"computeBlurredImageSize(size)"}),_.Y("design:type",Object)],V8.prototype,"blurredImageSize",void 0);_.c([_.g({computed:"computeImageSize(size)"}),_.Y("design:type",Object)],V8.prototype,"imageSize",void 0);_.c([_.g({computed:"computePreserve(size)"}),_.Y("design:type",String)],V8.prototype,"preserve",void 0);_.c([_.g({computed:"computeObjectFit(size)"}),_.Y("design:type",String)],V8.prototype,"objectFit",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],V8.prototype,"enableWebModernCollectionsV2",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],V8.prototype,"webModernCollections",void 0);_.c([_.Tw("data.thumbnail.sampledThumbnailColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],V8.prototype,"setBackground",null);_.c([_.l({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],V8);
_.y(V8,"ytd-playlist-custom-thumbnail-renderer",function(){if(WrC!==void 0)return WrC;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return WrC=O},{mode:1});var ZZ8;var b3=function(){return _.u.apply(this,arguments)||this};
_.X(b3,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],b3.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Number)],b3.prototype,"width",void 0);_.c([_.l({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],b3);
_.y(b3,"ytd-playlist-video-thumbnail-renderer",function(){if(ZZ8!==void 0)return ZZ8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ZZ8=O},{mode:1});var zxU;var nx=function(){return _.u.apply(this,arguments)||this};
_.X(nx,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],nx.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Number)],nx.prototype,"width",void 0);_.c([_.l({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],nx);
_.y(nx,"ytd-show-custom-thumbnail-renderer",function(){if(zxU!==void 0)return zxU;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return zxU=O},{mode:1});var Jqs;var XO=function(){return _.u.apply(this,arguments)||this};
_.X(XO,_.u);XO.prototype.useFilledIcons=function(O){return O==="MUSIC"||O==="COURSE"};
XO.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Oc(this.overlayColor,"0.8");else if(this.overlayColor){var O=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+O.red+","+O.green+","+O.blue+",0.8)"}};
_.vr.Object.defineProperties(XO.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)}}});
XO.prototype.overlayColorChanged=XO.prototype.overlayColorChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],XO.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],XO.prototype,"overlayColor",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data.icon","data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XO.prototype,"overlayStyle",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data.icon","data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XO.prototype,"overlayTextStyle",null);_.c([_.Tw("overlayColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XO.prototype,"overlayColorChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],XO);
_.y(XO,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(Jqs!==void 0)return Jqs;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Jqs=O},{mode:1});var VcH;var fx=function(){var O=_.u.apply(this,arguments)||this;O.active=!1;return O};
_.X(fx,_.u);fx.prototype.computeIsSpinnerHidden=function(O){return(O==null?void 0:O.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
fx.prototype.computeOverlayIcon=function(O){return(O==null?void 0:O.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(O==null?void 0:O.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],fx.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],fx.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],fx.prototype,"active",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],fx);
_.y(fx,"ytd-thumbnail-overlay-downloading-renderer",function(){if(VcH!==void 0)return VcH;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return VcH=O},{mode:1});var bZ3;var hW=function(){return _.u.apply(this,arguments)||this};
_.X(hW,_.u);_.vr.Object.defineProperties(hW.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],hW.prototype,"data",void 0);_.c([_.T("data.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hW.prototype,"text",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],hW);
_.y(hW,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(bZ3!==void 0)return bZ3;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return bZ3=O},{mode:1});var nPo,XB3=function(){if(nPo!==void 0)return nPo;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return nPo=O};var TF=function(){return _.u.apply(this,arguments)||this};
_.X(TF,_.u);_.vr.Object.defineProperties(TF,{template:{configurable:!0,enumerable:!0,get:function(){return XB3()}}});
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],TF.prototype,"animateEqualizer",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],TF);_.WE()(TF,"ytd-thumbnail-overlay-equalizer",function(){return XB3()},{allowedProps:["animateEqualizer"],
mode:1});var fFe;var u3=function(){var O=_.u.apply(this,arguments)||this;O.nowPlayingBadge=_.V("web_now_playing_badge");O.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return O};
_.X(u3,_.u);u3.prototype.activeChanged=function(){var O=this;_.V("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.QA(this,function(){_.iP(O.hostElement,"yt-playlist-lockup-now-playing-active",O)})};
u3.prototype.onMiniplayerPlayStateChanged=function(O){var m,G=(m=_.b(_.c3().currentEndpoint,_.GC))==null?void 0:m.videoId;this.isVideoPlaying=O&&(_.V("web_limit_now_playing_animation_killswitch")||this.videoId===G)};
u3.prototype.activeChanged=u3.prototype.activeChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],u3.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],u3.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],u3.prototype,"isVideoPlaying",void 0);_.c([_.g(),_.Y("design:type",String)],u3.prototype,"videoId",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],u3.prototype,"equalizerOnly",void 0);_.c([_.g(),_.Y("design:type",Boolean)],u3.prototype,"isActive",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],u3.prototype,"nowPlayingBadge",void 0);_.c([_.Tw("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u3.prototype,"activeChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],u3);
_.y(u3,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(fFe!==void 0)return fFe;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return fFe=O},{mode:1});var hx3;var jC=function(){return _.u.apply(this,arguments)||this};
_.X(jC,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],jC.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],jC);
_.y(jC,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(hx3!==void 0)return hx3;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return hx3=O},{mode:_.ZB("kevlar_poly_si_batch_j025")?1:2});var Tfj;var I0=function(){return _.u.apply(this,arguments)||this};
_.X(I0,_.u);I0.prototype.onDurationChanged=function(){var O,m;_.ZO(this.hostElement).querySelector("#progress").style.width=((m=(O=this.data)==null?void 0:O.percentDurationWatched)!=null?m:0)+"%"};
I0.prototype.onDurationChanged=I0.prototype.onDurationChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],I0.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],I0.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],I0.prototype,"isLive",void 0);_.c([_.Tw("data.percentDurationWatched"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I0.prototype,"onDurationChanged",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],I0);
_.y(I0,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(Tfj!==void 0)return Tfj;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Tfj=O},{mode:1});var gP2;var px=function(){var O=_.u.apply(this,arguments)||this;O.bottomPanel=!1;O.richGridOverlay=!1;O.watchFeedOverlay=!1;O.isCompact=!1;return O};
_.X(px,_.u);px.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.vr.Object.defineProperties(px.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?void 0:(m=O.icon)==null?void 0:m.iconType)==="PLAY_ALL"&&_.V("kevlar_system_icons")}}});
px.prototype.widthChanged=px.prototype.widthChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],px.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],px.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Number)],px.prototype,"width",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],px.prototype,"bottomPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],px.prototype,"richGridOverlay",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],px.prototype,"watchFeedOverlay",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],px.prototype,"isCompact",void 0);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],px.prototype,"isIconFilled",null);_.c([_.Tw("width","watchFeedOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],px.prototype,"widthChanged",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],px);
_.y(px,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(gP2!==void 0)return gP2;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return gP2=O},{mode:1});var up9;var jHm=["CLIP","SHORTS"],SC=function(){var O=_.u.apply(this,arguments)||this;O.animated=_.V("animated_live_badge_icon");O.hasIcon=!1;O.updateTimerIntervalId=0;O.timeSinceLive=0;return O};
_.X(SC,_.u);_.v=SC.prototype;_.v.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.v.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.v.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.v.hasIconOrText=function(){var O,m;return!!(((O=this.data)==null?0:O.icon)||((m=this.data)==null?0:m.text))};
_.v.initializeLiveBadgeTimer=function(){var O=this,m,G=(m=this.liveBadgeData)==null?void 0:m.startTimestampSec;if(G&&this.canShowLiveBadgeTimer()){var B;m=Number((B=this.liveBadgeData)==null?void 0:B.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(G);this.updateTimerIntervalId=_.Zg(function(){O.canShowLiveBadgeTimer()?O.timeSinceLive++:(O.timeSinceLive=0,window.clearInterval(O.updateTimerIntervalId))},m)}else this.timeSinceLive=0};
_.v.canShowLiveBadgeTimer=function(){var O=Date.now(),m,G;return O<(Number((m=this.liveBadgeData)==null?void 0:m.endTimestampSec)-1)*1E3&&O>Number((G=this.liveBadgeData)==null?void 0:G.startTimestampSec)*1E3};
_.vr.Object.defineProperties(SC.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var O=this.data;var m=this.timeSinceLive;var G,B,Q,H;a:{var M=O.style;if(M===void 0)M=17;else switch(M){case "LIVE":M=18;break a;default:M=17}}m={type:M,text:m?jtp({seconds:m}):_.HX(O.text),accessibilityText:(G=O.text)==null?void 0:(B=G.accessibility)==null?void 0:(Q=B.accessibilityData)==null?void 0:Q.label,icon:(H=O.icon)==null?void 0:H.iconType}}else m={};return m}},
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 O;return(O=this.data)==null?void 0:O.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 jHm.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
SC.prototype.initializeLiveBadgeTimer=SC.prototype.initializeLiveBadgeTimer;SC.prototype.dataChanged=SC.prototype.dataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],SC.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],SC.prototype,"data",void 0);_.c([_.g({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],SC.prototype,"icon",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],SC.prototype,"animated",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.Y("design:type",Boolean)],SC.prototype,"hideTimeStatus",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],SC.prototype,"hasIcon",void 0);_.c([_.g(),_.Y("design:type",Object)],SC.prototype,"timeSinceLive",void 0);_.c([_.T("data","timeSinceLive"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SC.prototype,"badgeShapeData",null);
_.c([_.T("data","overlayType"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],SC.prototype,"hideBadgeShape",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SC.prototype,"dataChanged",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SC.prototype,"overlayStyle",null);
_.c([_.T("data.liveBadgeData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SC.prototype,"liveBadgeData",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.type"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],SC.prototype,"overlayType",null);_.c([_.T("overlayType","overlayStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],SC.prototype,"useFilledIcon",null);
_.c([_.Si("liveBadgeData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SC.prototype,"initializeLiveBadgeTimer",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],SC);
_.y(SC,"ytd-thumbnail-overlay-time-status-renderer",function(){if(up9!==void 0)return up9;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return up9=O},{mode:_.ZB("kevlar_poly_si_batch_j035")?1:2});var IF3;var E5=function(){return _.u.apply(this,arguments)||this};
_.X(E5,_.u);E5.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"}}}}};
E5.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(O){if(this.hasPlaybackProgressBar)return{percentDurationWatched:O.percentDurationWatched}};
E5.prototype.computeHasPlaybackProgressBar=function(O){return!!O.percentDurationWatched&&O.percentDurationWatched>0};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],E5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],E5.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.Y("design:type",Boolean)],E5.prototype,"hasPlaybackProgressBar",void 0);
_.c([_.l({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],E5);
_.y(E5,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(IF3!==void 0)return IF3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return IF3=O},{mode:1});var pB2;var Sjo=_.a(function(O){var m=O.data;var G=O.children;var B=function(){return!!m().doubleStack},Q=function(){return!!m().includeStackHeight};
return _.q("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!m().experimentEnabled}},_.q(_.U,{cond:m,
then:function(){var H={};return _.q(_.Mr,null,_.q(_.U,{cond:Q,then:function(){var M={};return _.q("div",{class:_.bE("ytCollectionsStackSpacer",(M.ytCollectionsStackSpacerDoubleStack=B,M))})}}),_.q("div",{class:_.bE((H.ytCollectionsStackRelativeStack=Q,H))},_.q(_.U,{cond:B,
then:function(){var M={};return _.q("div",{class:_.bE("ytCollectionsStackCollectionStack2",function(){return m().customClassName2ndStack},(M.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return m().enableResponsiveMode},M)),
style:_.hH({"background-color":function(){return OZf(m())}})})}}),_.q("div",{class:_.bE("ytCollectionsStackCollectionStack1",function(){return m().customClassName1stStack},function(){return Apf(m().thumbnailSize?m().thumbnailSize:"medium")}),
style:_.hH({"background-color":function(){return OZf(m())}})}),G))}}))},"W");_.qi(Sjo,"yt-collections-stack",{props:{data:_.VZ}});var Lx=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};O.webModernCollections=!1;O.isSearch=!1;O.isDoubleStack=!1;O.thumbnailSize="medium";O.enableWebModernCollectionsV2=_.V("web_modern_collections_v2");return O};
_.X(Lx,_.u);_.v=Lx.prototype;
_.v.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]]"}}}}}};
_.v.getThumbnailDetails=function(O){if(O!=null&&O.thumbnailRenderer){var m=O.thumbnailRenderer,G;if((G=m.playlistVideoThumbnailRenderer)==null?0:G.thumbnail)return m.playlistVideoThumbnailRenderer.thumbnail;var B;if((B=m.playlistCustomThumbnailRenderer)==null?0:B.thumbnail)return m.playlistCustomThumbnailRenderer.thumbnail;O=O.thumbnailRenderer;var Q;if((Q=O.showCustomThumbnailRenderer)==null?0:Q.thumbnail)return O.showCustomThumbnailRenderer.thumbnail}};
_.v.computeOverlayColor=function(O){var m,G;if((m=this.getThumbnailDetails(O))==null?0:(G=m.darkColorPalette)==null?0:G.section2Color)return this.getThumbnailDetails(O).darkColorPalette.section2Color;var B;return(B=this.getThumbnailDetails(O))==null?void 0:B.sampledThumbnailColor};
_.v.computeWebModernCollections=function(O){if(O==null||!O.thumbnailOverlays)return!1;O=_.K(O.thumbnailOverlays);for(var m=O.next();!m.done;m=O.next()){var G=void 0;if((G=m.value)==null?0:G.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.v.computeNavigationEndpoint=function(O){return MPS(O==null?void 0:O.navigationEndpoint)};
_.vr.Object.defineProperties(Lx.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var O=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:O==null?void 0:O.sampledThumbnailColor,vibrantColorPalette:O==null?void 0:O.vibrantColorPalette,darkColorPalette:O==null?void 0:O.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Lx.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Lx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(kdo),_.Y("design:type",Object)],Lx.prototype,"ytdThumbnailBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Lx.prototype,"componentBehavior",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],Lx.prototype,"watchFeedThumbnail",void 0);_.c([_.g(),_.Y("design:type",Number)],Lx.prototype,"customThumbnailSize",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],Lx.prototype,"hideAria",void 0);_.c([_.g(),_.Y("design:type",Object)],Lx.prototype,"data",void 0);_.c([_.g({computed:"computeOverlayColor(data)"}),_.Y("design:type",Object)],Lx.prototype,"overlayColor",void 0);
_.c([_.g({computed:"computeWebModernCollections(data)"}),_.Y("design:type",Object)],Lx.prototype,"webModernCollections",void 0);_.c([_.g({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],Lx.prototype,"computedNavigationEndpoint",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Lx.prototype,"isSearch",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Lx.prototype,"isDoubleStack",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],Lx.prototype,"thumbnailSize",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Lx.prototype,"enableWebModernCollectionsV2",void 0);_.c([_.T("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Lx.prototype,"collectionStack",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Lx);
_.y(Lx,"ytd-playlist-thumbnail",function(){if(pB2!==void 0)return pB2;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return pB2=O},{mode:_.ZB("kevlar_poly_si_batch_j025")?1:2});var EPj;var Cx=function(){var O=_.u.apply(this,arguments)||this;O.noEndpoints=!1;O.amsterdamPostMvp=_.V("web_amsterdam_post_mvp_playlists");O.badges=[];O.transferState="TRANSFER_STATE_UNKNOWN";return O};
_.X(Cx,_.u);_.v=Cx.prototype;_.v.getMetadata=function(O){if(!O)return[];var m=[],G=O.shortViewCountText||O.viewCountText;G&&m.push(_.HX(G));O.publishedTimeText&&m.push(_.HX(O.publishedTimeText));O.upcomingEventData&&O.upcomingEventData.upcomingEventText&&m.push(_.Ev(_.HX(O.upcomingEventData.upcomingEventText),Number(O.upcomingEventData.startTime)));return m};
_.v.observeDataForBylineSeparator=function(){this.data&&_.JG(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.v.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Fs(this.metadataColor)};
_.v.getSimpleString=function(O){return _.HX(O)};
_.v.isBylineHidden=function(O){return this.noByline||!((O==null?0:O.longBylineText)||(O==null?0:O.shortBylineText))};
_.v.isMetadataHidden=function(O){var m;return((m=this.getMetadata(O))==null?void 0:m.length)===0};
_.v.isBylineMetadataSeparatorHidden=function(O){return this.isMetadataHidden(O)||!this.shouldShowVideoInfo};
_.v.isLongByline=function(O,m){return m&&!(O==null||!O.longBylineText)};
_.vr.Object.defineProperties(Cx.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var O;return this.amsterdamPostMvp&&!((O=this.data)==null||!O.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 _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Cx.prototype.metadataColorChanged=Cx.prototype.metadataColorChanged;Cx.prototype.observeDataForBylineSeparator=Cx.prototype.observeDataForBylineSeparator;_.c([_.h(_.MK),_.Y("design:type",Object)],Cx.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Cx.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Cx.prototype,"noEndpoints",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Cx.prototype,"isSlimShort",void 0);
_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Cx.prototype,"radioMeta",void 0);_.c([_.g({selector:_.dg}),_.Y("design:type",Object)],Cx.prototype,"isGridViewEnabled",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Cx.prototype,"richMeta",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Cx.prototype,"amsterdamPostMvp",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Cx.prototype,"noByline",void 0);
_.c([_.g({computed:"isLongByline(data, radioMeta)"}),_.Y("design:type",Boolean)],Cx.prototype,"longByline",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Cx.prototype,"truncateMetadataLine",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Cx.prototype,"miniMode",void 0);_.c([_.g(),_.Y("design:type",Number)],Cx.prototype,"metadataColor",void 0);_.c([_.g(),_.Y("design:type",Array)],Cx.prototype,"badges",void 0);
_.c([_.g({selector:_.eH,selectorArgs:["data.videoId"]}),_.Y("design:type",String)],Cx.prototype,"transferState",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Cx.prototype,"isDownloading",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Cx.prototype,"typographyBump",void 0);_.c([_.uc("#metadata-line"),_.Y("design:type",HTMLElement)],Cx.prototype,"metadataLine",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cx.prototype,"observeDataForBylineSeparator",null);_.c([_.Tw("metadataColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cx.prototype,"metadataColorChanged",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cx.prototype,"shouldShowVideoInfo",null);
_.c([_.T("badges"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Cx.prototype,"inlineBadgeClass",null);_.c([_.T("longByline"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Cx.prototype,"longBylineClass",null);_.c([_.T("data","longByline"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Cx.prototype,"bylineText",null);_.c([_.T("isGridViewEnabled","data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Cx.prototype,"watchFeedBigThumbs",null);
_.c([_.l({is:"ytd-video-meta-block",disableElementRegistration:!0})],Cx);
_.y(Cx,"ytd-video-meta-block",function(){if(EPj!==void 0)return EPj;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return EPj=O},{mode:_.ZB("kevlar_poly_si_batch_j080")?1:2});_.lE("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var o0=function(){var O=_.u.apply(this,arguments)||this;O.displayItemCount=2;O.isBackstagePlaylist=!1;O.isPostCompactPlaylist=!1;O.shouldShowChannelThumbnail=!1;O.useModernCollectionsV2=_.V("web_modern_collections_v2");return O};
_.X(o0,_.u);_.v=o0.prototype;_.v.computeFirstVideos=function(O,m){return O===void 0||m===void 0?[]:O.slice(0,m)};
_.v.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var O=this.data.thumbnailRenderer;O.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",O.playlistVideoThumbnailRenderer.thumbnail);O.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",O.playlistCustomThumbnailRenderer.thumbnail)}};
_.v.computeThumbnailHeight=function(O,m,G,B,Q){return B?Q==="BIG"?280:Q==="MASSIVE"?337:234:G?240:m?72:O?118:138};
_.v.computeThumbnailWidth=function(O,m,G,B,Q){return B?Q==="MEDIUM"?450:Q==="BIG"?500:Q==="MASSIVE"?600:420:G?360:m?128:O?210:246};
_.v.computeUseBiggerThumbs=function(O){return O&&_.V("enable_desktop_search_bigger_thumbs")};
_.v.computeShouldShowChannelThumbnail=function(O,m){return O&&!(m==null||!m.channelThumbnail)};
_.vr.Object.defineProperties(o0.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
o0.prototype.dataChanged=o0.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],o0.prototype,"ytdLockupBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],o0.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],o0.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],o0.prototype,"displayItemCount",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],o0.prototype,"isBackstagePlaylist",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],o0.prototype,"isPostCompactPlaylist",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],o0.prototype,"isSearch",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.Y("design:type",Boolean)],o0.prototype,"useBiggerThumbs",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.ib("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],o0.prototype,"biggerThumbsStyle",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],o0.prototype,"isDownloads",void 0);_.c([_.g({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.Y("design:type",Object)],o0.prototype,"shouldShowChannelThumbnail",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],o0.prototype,"useModernCollectionsV2",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],o0.prototype,"dataChanged",null);_.c([_.T("isSearch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],o0.prototype,"stackThumbnailSize",null);_.c([_.l({is:"ytd-playlist-renderer",disableElementRegistration:!0})],o0);
_.y(o0,"ytd-playlist-renderer",function(){if(tcm===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);tcm=O}O=tcm;return O},{mode:1});var LrH;var Ctu;var l3=function(){var O=_.u.apply(this,arguments)||this;O.collections=!!_.V("web_modern_collections_v2");O.startX=0;return O};
_.X(l3,_.u);l3.prototype.onEndpointMouseDown=function(O){this.startX=O.clientX};
l3.prototype.onEndpointClick=function(O){this.startX!==O.clientX&&(O.preventDefault(),O.stopPropagation())};
l3.prototype.computeObjectFit=function(O){return O==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||O==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||O==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
l3.prototype.computeCardStyle=function(O){return O?O.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.vr.Object.defineProperties(l3.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var O,m;return this.collections&&((O=this.data)==null?void 0:(m=O.searchRefinementCardRendererStyle)==null?void 0:m.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],l3.prototype,"data",void 0);_.c([_.g({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.Y("design:type",Number)],l3.prototype,"objectFit",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.Y("design:type",String)],l3.prototype,"cardStyle",void 0);
_.c([_.g({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],l3.prototype,"roundContainer",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],l3.prototype,"collections",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l3.prototype,"isAlbumCard",null);_.c([_.T("data","collections","isAlbumCard"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l3.prototype,"collectionStack",null);
_.c([_.l({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],l3);
_.y(l3,"ytd-search-refinement-card-renderer",function(){if(Ctu!==void 0)return Ctu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Ctu=O},{mode:1});var oPu;var a0=function(){var O=_.u.apply(this,arguments)||this;O.isRichGrid=!1;return O};
_.X(a0,_.u);_.c([_.g(),_.Y("design:type",Object)],a0.prototype,"data",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],a0.prototype,"componentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],a0.prototype,"ytdReduxBehavior",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],a0.prototype,"isRichGrid",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.yh}),_.Y("design:type",Boolean)],a0.prototype,"miniMode",void 0);
_.c([_.l({is:"ytd-game-details-renderer",disableElementRegistration:!0})],a0);
_.y(a0,"ytd-game-details-renderer",function(){if(oPu!==void 0)return oPu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return oPu=O},{mode:1});var lFu;var aFp;var kU=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return O};
_.X(kU,_.u);_.v=kU.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.currentStateData=function(O){var m=O||this.data;return m&&m.states&&m.currentStateId!=null?m.states.find(function(G){return G.stateId===m.currentStateId})||null:null};
_.v.currentStateRendererData=function(O){return(O=this.currentStateData(O))&&O.state&&O.state.buttonRenderer?O.state.buttonRenderer:null};
_.v.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())};
_.v.computeButtonIcon=function(O){O=this.currentStateRendererData(O);var m;return(O==null?0:(m=O.icon)==null?0:m.iconType)?O.icon.iconType.toLowerCase():null};
_.v.computeAccessibility=function(O){return(O=this.currentStateRendererData(O))&&O.accessibilityData?O.accessibilityData.accessibilityData||null:null};
_.v.computeButtonClass=function(O){var m=this.currentStateRendererData(O);if(!m)return"";O="";var G=m.style;G&&(O+=G.toLowerCase().replace(/_/g,"-")+" ");(m=m.size)&&(O+=m.toLowerCase().replace(/_/g,"-")+" ");return O.trim()};
_.v.computeServiceEndpoint=function(O){if(!O)return null;var m=O&&O.serviceEndpoint,G=this.get("command.commandMetadata.webCommandMetadata.sendPost",O);return m?m:G&&O.command?O.command:null};
_.v.computeBellMenuItemParams=function(O){var m;O=(m=_.b(O==null?void 0:O.command,_.zC))==null?void 0:m.commands;if(!O||O.length===0)return null;m=_.b(O[0],_.Y4);var G,B;return(m==null?0:(G=m.popup)==null?0:(B=G.menuPopupRenderer)==null?0:B.items)?m.popup.menuPopupRenderer.items.map(function(Q){return Q.menuServiceItemRenderer.trackingParams}):null};
_.v.handleBellMenuOpenSelectedAction=function(O){var m=O.trackingParams,G=this.computeBellMenuItemParams(this.data);this.data&&m&&G&&G.includes(m)&&this.ytRenderButtonBehavior._setButtonIcon(O.icon.iconType.toLowerCase())};
_.v.onYtServiceRequestCompleted=function(O,m){(O=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",m))&&this.set("data",O)};
_.v.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.v.resetState=function(){this.set("data.currentStateId",3)};
_.v.onYtButtonTapHandler=function(){if(this.data){var O=this.currentStateRendererData(this.data);O&&this.ytRendererBehavior.logExplicitClick(O)}};
kU.prototype.onYtServiceRequestError=kU.prototype.onYtServiceRequestError;kU.prototype.onYtServiceRequestCompleted=kU.prototype.onYtServiceRequestCompleted;kU.prototype.stateChanged=kU.prototype.stateChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],kU.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h(FL.YtRenderButtonBehavior),_.Y("design:type",Object)],kU.prototype,"ytRenderButtonBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],kU.prototype,"data",void 0);_.c([_.Si("data","data.currentStateId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kU.prototype,"stateChanged",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],kU.prototype,"onYtServiceRequestCompleted",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],kU.prototype,"onYtServiceRequestError",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],kU);
_.y(kU,"ytd-subscription-notification-toggle-button-renderer",function(){if(aFp!==void 0)return aFp;var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return aFp=O},{mode:1});var krs;var y8=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};O.tapHandler=function(){if(O.data){var m=O.currentStateRendererData();m&&O.ytRendererBehavior.logExplicitClick(m)}};
return O};
_.X(y8,_.u);_.v=y8.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.currentStateData=function(){var O=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(m){return m.stateId===O.data.currentStateId})||null:null};
_.v.currentStateRendererData=function(){var O=this.currentStateData();return O&&O.state&&O.state.buttonRenderer?O.state.buttonRenderer:null};
_.v.computeAccessibilityLabel=function(){var O,m,G;return(O=this.currentStateRendererData())==null?void 0:(m=O.accessibilityData)==null?void 0:(G=m.accessibilityData)==null?void 0:G.label};
_.v.computeBellMenuItemParams=function(){var O,m,G=(m=_.b((O=this.data)==null?void 0:O.command,_.zC))==null?void 0:m.commands;if(!G||G.length===0)return null;O=_.b(G[0],_.Y4);var B,Q;return(O==null?0:(B=O.popup)==null?0:(Q=B.menuPopupRenderer)==null?0:Q.items)?O.popup.menuPopupRenderer.items.map(function(H){return H.menuServiceItemRenderer.trackingParams}):null};
_.v.handleBellMenuOpenSelectedAction=function(O){var m=O.trackingParams,G=this.computeBellMenuItemParams();if(this.data&&m&&G&&G.includes(m)&&(O==null||!O.isDisabled)){var B;((B=_.b(O.serviceEndpoint,_.Vs))==null?void 0:B.signal)!=="CLIENT_SIGNAL"&&(this.icon=O.icon.iconType)}};
_.v.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.v.onYtServiceRequestCompleted=function(O,m){if(O=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",m))this.icon=void 0,this.set("data",O)};
_.v.onYtServiceRequestError=function(){this.icon=void 0};
_.vr.Object.defineProperties(y8.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var O=this.data,m=this.textLabel,G=this.hostElement,B=this.computeAccessibilityLabel(),Q=this.tapHandler,H=this.isOverlay?"overlay":"mono",M=(O==null?0:O.disableButton)?"disabled":"active";m=m?_.cE(m):void 0;return{style:H,type:"tonal",state:M,size:"M",focused:!1,formattedButtonText:m,iconPosition:"leading-trailing",onTap:Grp(O,Q,G),accessibilityLabel:B}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var O=this.currentStateRendererData(),m,G,B=(G=this.icon)!=null?G:O==null?void 0:(m=O.icon)==null?void 0:m.iconType;if(B)return _.bK(B)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var O,m,G=(O=this.data)==null?void 0:(m=O.secondaryIcon)==null?void 0:m.iconType;if(G)return _.bK(G)}}});
y8.prototype.onYtServiceRequestError=y8.prototype.onYtServiceRequestError;y8.prototype.onYtServiceRequestCompleted=y8.prototype.onYtServiceRequestCompleted;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],y8.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],y8.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],y8.prototype,"textLabel",void 0);
_.c([_.g(),_.Y("design:type",String)],y8.prototype,"icon",void 0);_.c([_.g(),_.Y("design:type",Boolean)],y8.prototype,"isOverlay",void 0);_.c([_.T("data.*","textLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],y8.prototype,"computedButtonShape",null);_.c([_.T("data.*","icon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],y8.prototype,"computedIcon",null);_.c([_.T("computedIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],y8.prototype,"computedAnimateIcon",null);
_.c([_.T("data.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],y8.prototype,"computedSecondaryIcon",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],y8.prototype,"onYtServiceRequestCompleted",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],y8.prototype,"onYtServiceRequestError",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],y8);
_.y(y8,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(krs!==void 0)return krs;var O=document.createElement("template");_.f(O,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return krs=O},{mode:_.ZB("kevlar_poly_si_batch_j081")?1:2});var yqH;_.qi(ypp,"yt-animated-action",{props:{backgroundLottieRef:_.VZ,foregroundLottieRef:_.VZ,wrapperClass:_.VZ,disableAnimation:_.VZ},unsafeExternallySettableAttributes:new Set(["key"])});var co=function(){var O=_.u.apply(this,arguments)||this;O.animatedActionEnabled=_.V("web_animated_actions");O.foregroundLottieRef={};O.backgroundLottieRef={};O.forceIconOnly=!1;O.showTextWhileAnimating=!1;O.keyboardFocused=!1;O.isAnimating=!1;O.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return O};
_.X(co,_.u);_.v=co.prototype;_.v.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.v.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]]"}}}}}};
_.v.attached=function(){this.keyboardFocused=!1};
_.v.onYtServiceRequestSent=function(O,m){(this.get("endpoint.subscribeEndpoint",m)||this.get("endpoint.unsubscribeEndpoint",m))&&this.updateSubscriptionState(!this.subscribed)};
_.v.onYtServiceRequestCompleted=function(O,m){(O=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",m.data))&&this.bellButton&&(this.bellButton.data=O)};
_.v.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.n7(this.hostElement)};
_.v.onPlayerSubscribe=function(O){this.isCompactRed()||O!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.v.onPlayerUnsubscribe=function(O){this.isCompactRed()||O!==this.data.channelId||this.updateSubscriptionState(!1)};
_.v.handleUpdateSubscribeButtonAction=function(O){O=_.b(O,TW9);var m;O&&O.channelId===((m=this.data)==null?void 0:m.channelId)&&this.updateSubscriptionState(!!O.subscribed)};
_.v.computeButtonStyle=function(O){return this.get("style.styleType",O)||null};
_.v.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.v.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.v.updateSubscriptionState=function(O){if(O!==this.subscribed){this.set("data.subscribed",O);var m,G=(m=this.data)==null?void 0:m.subscribedEntityKey;G&&this.ytdReduxBehavior.dispatch(_.jh("subscriptionStateEntity",G,{key:G,subscribed:O}));this.isCompactRed()||_.iP(this.hostElement,"yt-subscription-changed",O);O||(_.xc(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!O),O&&this.hasBellButton&&this.startAnimation())}};
_.v.startAnimation=function(){var O=this;if(!this.isAnimating){var m=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var G;(G=this.backgroundLottieRef.lottieEl)==null||G.goToAndPlay(0);var B;(B=this.foregroundLottieRef.lottieEl)==null||B.goToAndPlay(0);_.ln.addJob(function(){O.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.ln.addJob(function(){O.updateContainerToFitContent(!!O.subscribed,!0)},2,1500);
_.ln.addJob(function(){O.isAnimating=!1},2,m)}};
_.v.maybeAnimateBellIcon=function(){var O=_.zw(this.hostElement).querySelector("yt-animated-icon");if(O){var m;(m=O.animationRef.lottieEl)==null||m.goToAndPlay(0)}};
_.v.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.v.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.v.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var O;this.unsubscribedWidth=(O=this.subscribeButtonShape)==null?void 0:O.getBoundingClientRect().width}var m;this.subscribedWidth=(m=this.bellButton)==null?void 0:m.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.v.updateContainerToFitContent=function(O,m){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(O?(O=this.subscribedWidth,m=this.isAnimating&&!m,this.subscribedIconOnlyWidth===void 0||m||(O=this.subscribedIconOnlyWidth),this.hostElement.style.width=O+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.v.clearContainerSize=function(){this.hostElement.style.width=""};
_.v.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.v.maybeSetSubscribedButtonIconOnlyWidth=function(){var O=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 m;O.subscribedIconOnlyWidth=(m=O.bellButton)==null?void 0:m.getBoundingClientRect().width;requestAnimationFrame(function(){if(O.bellButton){var G;O.bellButton.textLabel=
(G=O.data)==null?void 0:G.subscribedButtonText}})})))};
_.vr.Object.defineProperties(co.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 O;return(O=this.data)==null?void 0:O.subscribedButtonText}var m;return this.forceIconOnly?void 0:(m=this.data)==null?void 0:m.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var O,m,G=((O=this.data)==null?void 0:(m=O.timedAnimationData)==null?void 0:m.animationTiming)||[];return{uniqueId:"subscribe",timings:G,enabled:G.length>0&&!this.subscribed,experimentEnabled:G.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var O;return!this.subscribed&&((O=this.data)==null?void 0:O.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 O={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var m=O.renderer;var G=O.element;var B=O.subscribed;var Q=O.commandController;var H=O.isOverlay;O=O.stopPropagation;var M=vPf(m,B);H&&(M.style="overlay");H=Object;var R=H.assign,x;a:switch((x=m.style)==null?void 0:x.styleType){case "COMPACT_GRAY":case "COMPACT_RED":x={size:"S"};break a;default:x={size:"M"}}var t=HZI(m,
B);var W=(W=B?m.subscribedButtonText:m.unsubscribedButtonText)?_.cE(W):void 0;return R.call(H,{},M,x,{focused:!1,toggled:B,accessibilityLabel:t,formattedButtonText:W,onTap:QHI(m,B,G,Q,O)})}}}});
co.prototype.onMouseDown=co.prototype.onMouseDown;co.prototype.onDataChanged=co.prototype.onDataChanged;co.prototype.observedSubscribed=co.prototype.observedSubscribed;co.prototype.onYtServiceRequestCompleted=co.prototype.onYtServiceRequestCompleted;co.prototype.onYtServiceRequestSent=co.prototype.onYtServiceRequestSent;co.prototype.maybeUpdateBellButtonText=co.prototype.maybeUpdateBellButtonText;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],co.prototype,"ytComponentBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],co.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],co.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],co.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],co.prototype,"data",void 0);
_.c([_.g({selectorArgs:["data.subscribedEntityKey"],selector:vM5}),_.Y("design:type",Object)],co.prototype,"subscriptionStateEntity",void 0);_.c([_.g({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],co.prototype,"subscribed",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],co.prototype,"branded",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],co.prototype,"animatedActionEnabled",void 0);
_.c([_.g(),_.Y("design:type",Object)],co.prototype,"foregroundLottieRef",void 0);_.c([_.g(),_.Y("design:type",Object)],co.prototype,"backgroundLottieRef",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],co.prototype,"overlayButton",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.Y("design:type",Object)],co.prototype,"buttonStyle",void 0);_.c([_.g(),_.Y("design:type",Object)],co.prototype,"forceIconOnly",void 0);
_.c([_.g(),_.Y("design:type",Object)],co.prototype,"showTextWhileAnimating",void 0);_.c([_.g({value:function(){return!!_.KR().resolve(_.v7(_.IF))&&_.V("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Y("design:type",Boolean)],co.prototype,"useKeyboardFocused",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],co.prototype,"keyboardFocused",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],co.prototype,"isAnimating",void 0);_.c([_.T("data.notificationPreferenceButton.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],co.prototype,"hasBellButton",null);
_.c([_.Tw("subscribedButtonText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"maybeUpdateBellButtonText",null);_.c([_.T("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],co.prototype,"subscribedButtonText",null);_.c([_.T("data.timedAnimationData.animationTiming","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],co.prototype,"smartimationSettings",null);
_.c([_.g({reflectToAttribute:!0}),_.T("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],co.prototype,"subscribeButtonHidden",null);_.c([_.g({reflectToAttribute:!0}),_.T("subscribed","hasBellButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],co.prototype,"subscribeButtonInvisible",null);
_.c([_.g({reflectToAttribute:!0}),_.T("subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],co.prototype,"unsubscribeButtonHidden",null);_.c([_.uc("ytd-subscription-notification-toggle-button-renderer-next"),_.Y("design:type",Object)],co.prototype,"bellButton",void 0);_.c([_.uc("#subscribe-button-shape"),_.Y("design:type",HTMLElement)],co.prototype,"subscribeButtonShape",void 0);
_.c([_.T("overlayButton","subscribed","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],co.prototype,"buttonShape",null);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],co.prototype,"onYtServiceRequestSent",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],co.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Tw("subscribed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"observedSubscribed",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],co.prototype,"onDataChanged",null);_.c([_.hG("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],co.prototype,"onMouseDown",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],co);
_.y(co,"ytd-subscribe-button-renderer",function(){if(yqH!==void 0)return yqH;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return yqH=O},{mode:1});var YU=function(){var O=_.u.apply(this,arguments)||this;O.isRichGrid=!1;return O};
_.X(YU,_.u);YU.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],YU.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],YU.prototype,"isRichGrid",void 0);_.c([_.l({is:"ytd-game-card-renderer",disableElementRegistration:!0})],YU);
_.y(YU,"ytd-game-card-renderer",function(){if(lFu!==void 0)return lFu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return lFu=O},{mode:1});var da={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.V("defer_menus")&&!fQC?0:void 0,waitForSignal:"eocs"};var cq2;var Yjs;var wa=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return O};
_.X(wa,_.u);_.v=wa.prototype;_.v.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.v.onSeriesReminderStateEntityChange=function(){var O,m,G;((O=this.eventReminderStateEntity)==null?0:O.key)&&((m=this.seriesReminderStateEntity)==null?void 0:m.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((G=this.eventReminderStateEntity)==null?void 0:G.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.jh("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.v.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.v.onYtServiceRequestError=function(){var O;this.updateReminderStateEntitiesFromButtonState((O=this.data)==null?void 0:O.currentState)};
_.v.handleUpdateUpcomingEventReminderButtonStateCommand=function(O){if(O=_.b(O,Zi2)){var m,G=(m=this.data)==null?void 0:m.targetId;G&&O.targetId===G&&_.mp(this.updateReminderStateEntitiesFromButtonState.bind(this,O.state))}};
_.v.getButtonStateFromReminderState=function(){var O;if(((O=this.seriesReminderStateEntity)==null?void 0:O.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var m;if(((m=this.eventReminderStateEntity)==null?void 0:m.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var G,B;if(((G=this.seriesReminderStateEntity)==null?void 0:G.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((B=this.eventReminderStateEntity)==
null?void 0:B.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var Q;return(Q=this.data)==null?void 0:Q.currentState};
_.v.updateReminderStateEntitiesFromButtonState=function(O){if(O){switch(O){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":O="UPCOMING_EVENT_REMINDER_STATE_NONE";var m="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":O="UPCOMING_EVENT_REMINDER_STATE_SINGLE";m="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":O="UPCOMING_EVENT_REMINDER_STATE_NONE";m="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var G;
((G=this.eventReminderStateEntity)==null?0:G.key)&&this.ytdReduxBehavior.dispatch(_.jh("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:O})));var B;((B=this.seriesReminderStateEntity)==null?0:B.key)&&this.ytdReduxBehavior.dispatch(_.jh("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:m})))}};
_.vr.Object.defineProperties(wa.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var O=this.getButtonStateFromReminderState(),m,G;if(O&&((m=this.data)==null?0:(G=m.states)==null?0:G.length))for(m=_.K(this.data.states),G=m.next();!G.done;G=m.next()){G=G.value;var B=void 0;if(((B=_.b(G,z9C))==null?void 0:B.state)===O)return _.b(G,z9C)}}}});
wa.prototype.onYtServiceRequestError=wa.prototype.onYtServiceRequestError;wa.prototype.onYtServiceRequestCompleted=wa.prototype.onYtServiceRequestCompleted;wa.prototype.onSeriesReminderStateEntityChange=wa.prototype.onSeriesReminderStateEntityChange;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],wa.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],wa.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],wa.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],wa.prototype,"data",void 0);_.c([_.g({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:$Se}),_.Y("design:type",Object)],wa.prototype,"eventReminderStateEntity",void 0);
_.c([_.g({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(O,m){return _.Vh(O.entities,"sportsSeriesReminderStateEntity",m)}}),
_.Y("design:type",Object)],wa.prototype,"seriesReminderStateEntity",void 0);_.c([_.T("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wa.prototype,"currentButtonStateRenderer",null);_.c([_.Tw("seriesReminderStateEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wa.prototype,"onSeriesReminderStateEntityChange",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wa.prototype,"onYtServiceRequestCompleted",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wa.prototype,"onYtServiceRequestError",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],wa);
_.y(wa,"ytd-upcoming-event-reminder-button-renderer",function(){if(Yjs!==void 0)return Yjs;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
return Yjs=O},{mode:1});var dls;var eC=function(){return _.u.apply(this,arguments)||this};
_.X(eC,_.u);eC.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.vr.Object.defineProperties(eC.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(_.V("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],eC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],eC.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],eC.prototype,"shelfDismissal",void 0);_.c([_.T("data.responseText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],eC.prototype,"text",null);
_.c([_.T("data.responseText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],eC.prototype,"textAriaLabel",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],eC);
_.y(eC,"ytd-notification-multi-action-renderer",function(){if(dls!==void 0)return dls;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return dls=O},{mode:1});var wB2;var DS=function(){return _.u.apply(this,arguments)||this};
_.X(DS,_.u);DS.prototype.ready=function(){var O=this;_.ZO(this.hostElement).querySelector("#undo").addEventListener("tap",function(){O.onUndoTap()})};
DS.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.KR().resolve(_.Mu).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],DS.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],DS);
_.y(DS,"ytd-notification-text-renderer",function(){if(wB2!==void 0)return wB2;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return wB2=O},{mode:1});var ex2;var s5=function(){var O=_.u.apply(this,arguments)||this;O.mouseOverDelayJobId=0;O.fadeInImageDelayJobId=0;O.startTimeMs=-1;O.loadingStartTimeMs=-1;O.loadingEndTimeMs=-1;O.hasVideoPreview=!1;return O};
_.X(s5,_.u);_.v=s5.prototype;_.v.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.v.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.v.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.v.showThumbnail=function(){var O=this;this.csn=_.yA();_.Yc("fmth");_.ln.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.z$(_.ln,function(){O.loadingStartTimeMs=(0,_.$G)();var m=_.ZO(O.hostElement).querySelector("#thumbnail");m.complete?O.displayMouseOverImage():m.addEventListener("load",_.f7(O,O.displayMouseOverImage))},150):_.JG(_.ZO(this.hostElement).querySelector("#play"),"show",!0)};
_.v.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.v.onTap=function(){this.removeVideoPreview()};
_.v.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var O=this.videoId,m=this.csn,G=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,B=this.startTimeMs,Q=this.hasVideoPreview,H=_.Ez(this.trackingParams),M={isMovingThumbnail:Q};Q&&B>0&&(G>0&&(M.movingThumbnailLoadingDurationMs=Math.round(G)),M.durationHoveredMs=Math.round((0,_.$G)()-B));O&&(M.videoId=O);_.Bq(m,H,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:M});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.v.removeVideoPreview=function(){_.ln.cancelJob(this.mouseOverDelayJobId);_.ln.cancelJob(this.fadeInImageDelayJobId);var O=_.ZO(this.hostElement).querySelector("#thumbnail");_.JG(O,"fade-in",!1);O.removeEventListener("load",_.f7(this,this.displayMouseOverImage));O=_.ZO(this.hostElement).querySelector("#play");_.JG(O,"fade-in",!1);_.JG(O,"show",!1)};
_.v.displayMouseOverImage=function(){var O=_.ZO(this.hostElement).querySelector("#thumbnail"),m=_.ZO(this.hostElement).querySelector("#play");this.isImageAvailable(O)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.$G)(),this.startTimeMs=(0,_.$G)(),this.fadeInImageDelayJobId=_.z$(_.ln,function(){_.JG(O,"fade-in",!0)},50)):_.JG(m,"fade-in",!0)};
_.v.computeThumbnail=function(O,m){var G;O&&O.movingThumbnailDetails&&O.movingThumbnailDetails.thumbnails&&m?G=_.Uf(O.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):G=m?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(G)return _.d5(G)};
_.v.isImageAvailable=function(O){return!(!O.src||O.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||O.naturalWidth===120)};
s5.prototype.onTap=s5.prototype.onTap;s5.prototype.dataChanged=s5.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],s5.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],s5.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],s5.prototype,"csn",void 0);_.c([_.g(),_.Y("design:type",Object)],s5.prototype,"trackingParams",void 0);
_.c([_.g(),_.Y("design:type",String)],s5.prototype,"videoId",void 0);_.c([_.g(),_.Y("design:type",Boolean)],s5.prototype,"isAttachedAndDataSet",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s5.prototype,"dataChanged",null);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s5.prototype,"onTap",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],s5);
_.y(s5,"ytd-moving-thumbnail-renderer",function(){if(ex2!==void 0)return ex2;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return ex2=O},{mode:1});var Dlo;_.rJ=function(O){this.hostElement=O;this.eventSink=null;this.eventList=[]};
_.rJ.prototype.shouldForward=function(){var O,m;return(m=(O=this.eventSink)==null?void 0:O.isConnected)!=null?m:document.body.contains(this.eventSink)};
_.rJ.prototype.start=function(O,m){this.eventSink&&this.stop();for(var G=0;G<O.length;G++)this.hostElement.addEventListener(O[G],_.f7(this,this.forwardEvent));var B;this.eventSink=(B=m.hostElement)!=null?B:m;this.eventList=O};
_.rJ.prototype.stop=function(){for(var O=0;O<this.eventList.length;O++)this.hostElement.removeEventListener(this.eventList[O],_.f7(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.rJ.prototype.forwardEvent=function(O,m){this.shouldForward()&&(O.stopPropagation(),this.eventSink instanceof Element?_.iP(this.eventSink,O.type,m):_.ay(new _.j9("eventSink is not an element")))};_.Nf={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.rJ(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(O,m){this.forwarder_.start(O,m)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Po=function(){return _.u.apply(this,arguments)||this};
_.X(Po,_.u);_.v=Po.prototype;_.v.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=_.kB("HTML_DIR")==="rtl"?"right":"left"};
_.v.dataChanged=function(){this.popupOpen=!1};
_.v.computeAriaLabel=function(O){return _.b(O,sDm).label};
_.v.onTap=function(O){O.stopPropagation();O.preventDefault();this.data.command&&_.KR().resolve(_.Mu).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.v.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.v.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Po.prototype.onPopupClosed=Po.prototype.onPopupClosed;Po.prototype.onPopupOpened=Po.prototype.onPopupOpened;Po.prototype.onTap=Po.prototype.onTap;Po.prototype.dataChanged=Po.prototype.dataChanged;_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],Po.prototype,"eventForwardingBehavior",void 0);_.c([_.h(_.N4),_.Y("design:type",Object)],Po.prototype,"ironButtonState",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Po.prototype,"componentBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],Po.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,value:-1}),_.Y("design:type",Number)],Po.prototype,"tabindex",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.Y("design:type",Object)],Po.prototype,"ariaLabel",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],Po.prototype,"disableTooltips",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Po.prototype,"popupOpen",void 0);
_.c([_.g(),_.Y("design:type",Element)],Po.prototype,"eventSink",void 0);_.c([_.uc("#tooltip"),_.Y("design:type",Object)],Po.prototype,"tooltip",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Po.prototype,"dataChanged",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Po.prototype,"onTap",null);
_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Po.prototype,"onPopupOpened",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Po.prototype,"onPopupClosed",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Po);
_.y(Po,"ytd-thumbnail-overlay-button-renderer",function(){if(Dlo!==void 0)return Dlo;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Dlo=O},{mode:1});var sHC;var FO=function(){return _.u.apply(this,arguments)||this};
_.X(FO,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],FO.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],FO.prototype,"disableAnimation",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],FO.prototype,"rounded",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],FO.prototype,"transparentBackground",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],FO.prototype,"noPadding",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],FO);
_.y(FO,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(sHC!==void 0)return sHC;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return sHC=O},{mode:1});var Nfm;var AW=function(){return _.u.apply(this,arguments)||this};
_.X(AW,_.u);AW.prototype.computeIconPosition=function(O){return this.get("iconPosition",O)||null};
AW.prototype.computeIconStyle=function(O){return this.get("iconStyle",O)||null};
AW.prototype.computeIsIconStyleFilled=function(O){if(!O)return!1;var m;return O.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((m=O.icon)==null?void 0:m.iconType)==="ERROR_BLACK"};
_.c([_.g(),_.Y("design:type",Object)],AW.prototype,"data",void 0);_.c([_.g({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],AW.prototype,"iconPosition",void 0);_.c([_.g({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],AW.prototype,"iconStyle",void 0);_.c([_.g({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],AW.prototype,"iconStyleFilled",void 0);
_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],AW);
_.y(AW,"ytd-thumbnail-overlay-icon-renderer",function(){if(Nfm!==void 0)return Nfm;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Nfm=O},{mode:1});var PtU;var OM=function(){return _.u.apply(this,arguments)||this};
_.X(OM,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],OM.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],OM);
_.y(OM,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(PtU!==void 0)return PtU;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return PtU=O},{mode:1});var Fr_;var m1=function(){var O=_.u.apply(this,arguments)||this;O.isPreviewLoading=!1;return O};
_.X(m1,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],m1.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],m1.prototype,"isPreviewLoading",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],m1);
_.y(m1,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Fr_!==void 0)return Fr_;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Fr_=O},{mode:1});var AqH;var Ga=function(){return _.u.apply(this,arguments)||this};
_.X(Ga,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ga.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Ga);
_.y(Ga,"ytd-thumbnail-overlay-pinking-renderer",function(){if(AqH!==void 0)return AqH;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return AqH=O},{mode:1});var Oee;var BP=function(){var O=_.u.apply(this,arguments)||this;O.disableTooltips=!1;O.isLoading=!1;O.useExpandableTooltip=!1;O.toggled=!1;O.hovered=!1;O.mouseoverDelayJobId=0;O.toggleDelayJobId=0;O.expandAnimationDelayJobId=0;return O};
_.X(BP,_.u);_.v=BP.prototype;_.v.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");_.ZO(this.hostElement).querySelector("#tooltip").position=_.kB("HTML_DIR")==="rtl"?"right":"left"};
_.v.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.ln.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.ln.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.ln.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.v.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.ln.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.ln.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.ln.cancelJob(this.expandAnimationDelayJobId)};
_.v.computeIcon=function(O,m,G){return(O=G?m:O)&&O.iconType?_.bK(O.iconType):void 0};
_.v.computeAriaLabel=function(O,m,G){return _.b(G?m:O,sDm).label};
_.v.computeTooltip=function(O,m,G){return G?m:O};
_.v.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.v.computeIconOnHover=function(O,m){if((O==null?0:O.iconType)&&!m)return _.bK(O.iconType)};
_.v.onTap=function(O){var m=this;O.stopPropagation();O.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(O=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(O),this.useExpandableTooltip&&(this.toggleDelayJobId=_.z$(_.ln,function(){m.hovered=!1;m.data&&!m.data.toggledServiceEndpoint&&(m.expandAnimationDelayJobId=_.z$(_.ln,function(){m.set("data.isToggled",
!1)},200))},2E3))};
_.v.onMouseenter=function(){var O=this;this.mouseoverDelayJobId=_.z$(_.ln,function(){O.hovered=!0},300)};
_.v.onMouseleave=function(){_.ln.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.v.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.v.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.v.onServiceRequestCompleted=function(O,m){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(m)||this.set("data.isToggled",!this.data.isToggled)};
_.v.serviceRequestWasSuccessful=function(O){return _.b(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.B3)?O.data.status==="STATUS_SUCCEEDED":!0};
BP.prototype.onServiceRequestCompleted=BP.prototype.onServiceRequestCompleted;BP.prototype.onPopupClosed=BP.prototype.onPopupClosed;BP.prototype.onPopupOpened=BP.prototype.onPopupOpened;BP.prototype.onMouseleave=BP.prototype.onMouseleave;BP.prototype.dataChanged=BP.prototype.dataChanged;_.c([_.h(_.N4),_.Y("design:type",Object)],BP.prototype,"ironButtonState",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],BP.prototype,"ytComponentBehavior",void 0);
_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],BP.prototype,"ytEventForwardingBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],BP.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.Y("design:type",Object)],BP.prototype,"ariaLabel",void 0);_.c([_.g(),_.Y("design:type",Object)],BP.prototype,"disableTooltips",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],BP.prototype,"popupOpen",void 0);_.c([_.g(),_.Y("design:type",Object)],BP.prototype,"isLoading",void 0);_.c([_.g(),_.Y("design:type",Element)],BP.prototype,"eventSink",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],BP.prototype,"useExpandableTooltip",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.Y("design:type",Object)],BP.prototype,"toggled",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],BP.prototype,"hovered",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.Y("design:type",Object)],BP.prototype,"iconOnHover",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BP.prototype,"dataChanged",null);
_.c([_.hG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BP.prototype,"onMouseleave",null);_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BP.prototype,"onPopupOpened",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BP.prototype,"onPopupClosed",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],BP.prototype,"onServiceRequestCompleted",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],BP);
_.y(BP,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(Oee!==void 0)return Oee;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Oee=O},{mode:_.ZB("kevlar_poly_si_batch_j053")?1:2});var mw8;var G7o=_.a(function(O){var m=O.data;var G=O.thumbnailSize;var B=function(){return m().enableSegmentView};
return _.q("yt-thumbnail-overlay-progress-bar-view-model",{class:_.bE("ytThumbnailOverlayProgressBarHost",function(){return KrY(G==null?void 0:G())})},_.q(_.U,{cond:B,
then:function(){return _.q("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.q("div",{class:_.CJ("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+m().startPercent+"%"}}),_.q("div",{class:_.CJ("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+m().segmentDurationPercent+"%"}},_.q("div",{class:_.CJ("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.q("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.q("div",null," ",function(){return m().segmentLabel})),_.q("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.q("div",{class:_.CJ("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.q(_.U,{cond:function(){return!B()&&m().startPercent},
then:function(){var Q={};return _.q("div",{class:_.CJ("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(Q.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.V("web_enable_modern_progress_bar_overlay"),Q))},_.q("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+m().startPercent+"%"}}))}}))},"X");
G7o.idomCompat=!0;var B19=_.a(function(O){var m=_.Vp(),G=_.wg(function(Q){var H,M,R;a:{var x=(H=O.data())==null?void 0:H.animationActivationTargetId;H=((M=O.data())==null?void 0:M.animationActivationEntityKey)||"";M=(R=O.data())==null?void 0:R.animationActivationEntitySelectorType;if(H&&x)switch(M){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":Q=GWY(Q,H);R=_.KR().resolve(_.v7(_.c$));x=!!(Q&&Q.videoId===x&&(R==null?0:R.isMiniplayerActive()));x={activated:x,playAnimation:x&&Q.playerState==="PLAYER_STATE_PLAYING"};
break a}x=void 0}return x});
_.ER(function(){var Q;if((Q=G())==null?0:Q.activated){var H;if((H=G())==null?0:H.playAnimation){var M;(M=m.lottieEl)==null||M.goToAndPlay(0)}else{var R;(R=m.lottieEl)==null||R.goToAndStop(0)}}},"DbQiXd");
var B=function(){var Q,H=!((Q=G())==null||!Q.activated);if(O.data()){Q=O.data();var M=void 0;Q.icon&&(M=_.lTf(Q.icon),M=wU6(M));var R=void 0,x;if((x=Q.backgroundColor)==null?0:x.lightTheme){var t;R={backgroundColor:Oc((t=Q.backgroundColor)==null?void 0:t.lightTheme,"0.8")}}if(Q.text||M||H){if(H&&Q.lottieData&&m){t=Q.lottieData;var W,Z,z;x={animationConfig:{name:t.url,path:t.url,autoplay:(W=t.settings)==null?void 0:W.autoplay,loop:(z=(Z=t.settings)==null?void 0:Z.loop)!=null?z:!0},animationRef:m}}else x=
void 0;if(H)W=17;else b:switch(Q.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":W=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":W=19;break b;default:W=17}H={type:W,text:H&&Q.animatedText?Q.animatedText:Q.text,icon:M,customColors:R,animation:x}}else H=void 0}else H=void 0;return H};
return _.q("yt-thumbnail-badge-view-model",{class:_.bE("ytThumbnailBadgeViewModelHost",O.class)},_.q(_.U,{cond:B,then:function(){return _.q(_.ra,{data:function(){return B()}})}}))},"Y");var QJ3=_.a(function(O){var m={},G={};return _.q("yt-thumbnail-bottom-overlay-view-model",{class:_.bE("ytThumbnailBottomOverlayViewModelHost",(m.ytThumbnailBottomOverlayViewModelHostBackground=function(){return O.data().enableGradientBackground},m))},_.q(_.u5,{data:function(){return O.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(B){return _.q(G7o,{data:B.data,
thumbnailSize:O.thumbnailSize})}}),_.q("div",{class:_.bE("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var B;
return $lf((B=O.thumbnailSize)==null?void 0:B.call(O))},(G.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var B;
return(B=O.isClip)==null?void 0:B.call(O)},G.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var B;
return!_.V("web_enable_modern_progress_bar_overlay")&&((B=O.thumbnailSize)==null?void 0:B.call(O))==="small"},G))},_.q(_.u5,{data:function(){return O.data().badge}},{thumbnailBadgeViewModel:function(B){return _.q(B19,{data:B.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.q(_.u5,{data:function(){return O.data().badges}},{thumbnailBadgeViewModel:function(B){return _.q(B19,{data:B.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Z");
QJ3.idomCompat=!0;_.qi(QJ3,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.RZ,thumbnailSize:_.RZ,isClip:_.RZ}});var ZZN={calledOnce:!1,state:"visible"},zx5={calledOnce:!1,state:"hidden"};var QN=_.a(function(O){var m=O.data;var G=O.className;O=O.alwaysShow;var B=_.Rxf(),Q={};return _.q("thumbnail-hover-overlay-view-model",{el:_.Mi(_.yp(function(){return m().rendererContext})),
class:_.bE("ytThumbnailHoverOverlayViewModelHost",G,(Q.ytThumbnailHoverOverlayViewModelHostForceHover=O,Q)),"aria-label":function(){var H;return(H=_.b(m().rendererContext,_.gD))==null?void 0:H.label},
role:function(){return _.a_(m().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.a_(m().rendererContext)!==void 0?0:void 0},
"on:keypress":B},_.q("div",{class:_.bE("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(m().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var H="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:H="ytThumbnailHoverOverlayViewModelStyleCover"}return H})},_.q(_.U,{cond:function(){return m().icon},
then:function(H){return _.q(_.KH,{data:H,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.q(_.U,{cond:function(){return m().text},
then:function(H){return _.q(_.Jg,{text:H,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"$");
QN.idomCompat=!0;var Heo=_.a(function(O){var m=O.data;return _.q(_.u5,{data:function(){return m==null?void 0:m().overlays}},{thumbnailHoverOverlayViewModel:QN})},"aa");
Heo.idomCompat=!0;var v$C={};var Kej=_.a(function(O){var m=O.data;var G=O.image;var B=O.state;var Q=O.iconType;var H=O.overlays;var M=O.isOverlay;var R=_.GX("div");O=_.K(_.Wf(!0,void 0,"AA4e7b"));var x=O.next().value,t=O.next().value,W=function(){return!!m().onTap},Z=_.MN(Q,"LIVE");
_.ER(function(){var J=m();requestAnimationFrame(function(){if(R.value===null)var n=!0;else{var I=R.value;n=J.badgeText;var S=bZS(J.size);n in v$C?I=v$C[n]:(I=I.clientWidth,v$C[n]=I);(n=I>S)?R.value.style.display="none":R.value.style.visibility="visible"}t(n)})},"vNdN8b");
var z=function(){var J={};return J["yt-spec-avatar-shape__image"]=!0,J["yt-spec-avatar-shape__image--ads-app"]=m().type===1,J["yt-spec-avatar-shape__image--inscribed-square"]=m().type===2,J};
return _.q("yt-avatar-shape",null,_.q("div",{el:_.Mi(XBS(W,{keydown:function(J){if(J.key==="Enter"){var n;(n=J.currentTarget)==null||n.click()}},
click:function(J){var n,I;return void((I=(n=m()).onTap)==null?void 0:I.call(n,J))}})),
class:function(){var J={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},n=m();J=(J[n.clusterLayoutConfig?Tfe(n.clusterLayoutConfig):gPs(n.size)]=!0,J["yt-spec-avatar-shape__button--tappable"]=W(),J);(n=m().avatarButtonCustomClassName)&&(J[n]=!0);return _.CJ(J)},
"aria-label":function(){return W()?m().accessibilityText:""},
role:function(){return W()?"button":void 0},
tabindex:function(){return W()?0:void 0}},_.q("div",{class:function(){var J,n=m(),I=B==null?void 0:B(),S=M==null?void 0:M(),L=!((J=n.decorations)==null||!J.includes(2)||n.size!=="medium"&&n.size!=="large"),C=n.size==="tiny"||n.size==="extra-small",P,w,d,D,OS={};
J=(OS["yt-spec-avatar-shape--live-ring"]=!!(((P=n.decorations)==null?0:P.includes(0))&&jHz(n.size)),OS["yt-spec-avatar-shape--stories-watched"]=L&&!(I==null||!I.storiesWatched),OS["yt-spec-avatar-shape--stories-unwatched"]=L&&!(I==null?0:I.storiesWatched),OS["yt-spec-avatar-shape--background-border"]=IFS(n.decorations)&&!C,OS["yt-spec-avatar-shape--background-border-thin"]=IFS(n.decorations)&&C,OS["yt-spec-avatar-shape__on-select-border"]=!((w=n.decorations)==null||!w.includes(4)),OS["yt-spec-avatar-shape__white-border"]=
!((d=n.decorations)==null||!d.includes(5)),OS["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((D=n.decorations)==null?0:D.includes(5))&&C),OS["yt-spec-avatar-shape--is-overlay"]=!!S,OS);return _.CJ(J)},
style:function(){a:{var J=m().clusterLayoutConfig;if(J){b:{var n=J.numAvatarsInCluster;var I=J.avatarIndex;if(I!==n-1){switch(J.clusterSize){case "small":J="32";break;case "medium":J="36";break;case "40":J="40";break;default:n=void 0;break b}n="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+J+"x"+J+"_avatars_"+n+"_index_"+I+".svg"}else n=void 0}if(n){n=_.hH({"-webkit-mask-image":"url("+n+")","mask-image":"url("+n+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}n=void 0}return n}},_.q("div",{class:function(){var J={};
var n=m();J=(J[n.clusterLayoutConfig?fFp(n.clusterLayoutConfig):hxS(n.size)]=!0,J["yt-spec-avatar-shape--no-margin"]=IFS(m().decorations),J["yt-spec-avatar-shape--square"]=m().type===2,J);return _.CJ(J)}},_.q(_.KH,{data:G,
alt:function(){return!W()&&m().accessibilityText?m().accessibilityText:""},
targetWidth:function(){return upO(m().size)},
targetHeight:function(){return upO(m().size)},
className:function(){return _.CJ(z())}}),_.q(_.U,{cond:function(){var J;
return((J=m().decorations)==null?void 0:J.includes(0))&&jHz(m().size)},
then:function(){return _.q("div",{class:function(){var J={};J=(J["yt-spec-avatar-shape__live-badge"]=!0,J["yt-spec-avatar-shape__live-badge--badge-small"]=m().size==="small",J["yt-spec-avatar-shape__live-badge--badge-medium"]=m().size==="medium"||m().size==="48",J["yt-spec-avatar-shape__live-badge--badge-large"]=m().size==="large",J["yt-spec-avatar-shape__live-badge--badge-extra-large"]=m().size==="extra-large"||m().size==="extra-extra-large"||m().size==="giant",J);return _.CJ(J)}},_.q(_.U,{cond:function(){return m().badgeText},
then:function(J){return _.q("div",{class:"yt-spec-avatar-shape__badge-text",el:R},J)}}),_.q(_.U,{cond:x,
then:function(){return _.q("div",{class:"yt-spec-avatar-shape__badge-icon"},_.q(_.T$,{icon:Z,size:function(){a:switch(m().size){case "extra-large":var J=16;break a;default:J=13}return J}}))}}))}}),_.q(_.U,{cond:function(){var J,n;
return((J=m().decorations)==null?void 0:J.includes(1))||((n=m().decorations)==null?void 0:n.includes(0))&&!jHz(m().size)},
then:function(){return _.q("div",{class:function(){var J=m(),n,I,S={};var L=(S["yt-spec-avatar-shape__live-dot"]=!((n=J.decorations)==null||!n.includes(0)||jHz(J.size)),S["yt-spec-avatar-shape__new-content"]=!((I=J.decorations)==null||!I.includes(1)),S);return _.CJ(L)}})}}),_.q(_.U,{cond:function(){return!!H},
then:function(){return _.q("div",{class:function(){var J={};J=Object.assign((J["yt-spec-avatar-shape__image-overlays"]=!0,J),z());return _.CJ(J)}},H==null?void 0:H())}})))))},"ba");
Kej.idomCompat={callbacks:{overlays:!0}};_.HP=_.a(function(O){function m(){G().endpoint&&_.PE(G().endpoint)}
var G=O.data;var B=O.decorations;var Q=O.avatarButtonCustomClassName;var H=O.isOverlay;var M=O.clusterLayoutConfig;return _.q("avatar-view-model",null,_.q(_.U,{cond:function(){return G().image},
then:function(R){return _.q(Kej,{data:function(){return Sjr({data:G(),onTap:G().endpoint?m:void 0,decorations:B==null?void 0:B(),badgeText:void 0,accessibilityText:G().accessibilityText,avatarButtonCustomClassName:Q==null?void 0:Q(),clusterLayoutConfig:M==null?void 0:M()})},
image:R,iconType:"RADAR_LIVE",overlays:function(){return _.q(Heo,{data:G})},
isOverlay:H})}}))},"ca");
_.HP.idomCompat=!0;_.vP=_.a(function(O){var m=O.data;O=O.className;var G=_.GX("yt-decorated-avatar-view-model"),B=function(){return _.b(m().avatar,_.cu)},Q=_.bF(function(){var H,M=m(),R=B(),x=_.a_(m().rendererContext),t=(H=G.value)!=null?H:void 0,W;
if(R){t={data:M,avatar:R,onTap:x,element:t};H=t.data;M=t.avatar;R=t.onTap;x=t.element;t=t.commandController;R=R?oPf(R,x,t):void 0;x=[];H.liveData&&x.push(0);var Z;t=(Z=H.liveData)==null?void 0:Z.liveBadgeText;Z=(W=_.b(H.rendererContext,_.gD))==null?void 0:W.label;W=Sjr({data:M,onTap:R,decorations:x,badgeText:t,accessibilityText:Z?Z:H.a11yLabel})}else W={size:"medium"};return W},void 0,"c00kWd");
return _.q("yt-decorated-avatar-view-model",{class:_.bE("ytDecoratedAvatarViewModelHost",O),el:G},_.q(_.U,{cond:function(){var H;return(H=B())==null?void 0:H.image},
then:function(H){return _.q(Kej,{data:Q,image:H,iconType:"RADAR_LIVE",overlays:function(){return _.q(Heo,{data:B})}})}}))},"da");
_.vP.idomCompat=!0;_.K5=_.a(function(O){var m=function(){var R;return Object.assign({},O.data(),(R=O.overrides)==null?void 0:R.call(O))},G=function(){return _.ki(m().rendererContext)},B=function(){var R=m().avatars,x,t;
return(t=(x=(R==null?0:R[0])?_.b(R[0],_.cu):void 0)==null?void 0:x.avatarImageSize)!=null?t:"AVATAR_SIZE_UNKNOWN"},Q=function(){return Ctf(m())},H=function(){if(m().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var R=void 0;
else if((R=O.decorations)==null?0:R.call(O))R=O.decorations();else{R=m();var x=0;R.avatars&&(x+=R.avatars.length);R.decoratedText&&(x+=1);R=x>1?[3]:[]}return R},M={};
return _.q("yt-avatar-stack-view-model",{el:_.Mi(_.yp(function(){return m().rendererContext})),
class:_.bE("yt-avatar-stack-view-model",O.className,(M["yt-avatar-stack-view-model--tappable"]=G,M["yt-avatar-stack-view-model--is-overlay"]=O.isOverlay,M["yt-avatar-stack-view-model--medium-text"]=O.useMediumText,M)),tabindex:function(){return G()?0:void 0},
role:function(){return G()?"link":void 0},
"aria-label":function(){var R,x;return(x=(R=_.b(m().rendererContext,_.gD))==null?void 0:R.label)!=null?x:""}},_.q(_.U,{cond:function(){var R;
return m().avatars&&!((R=O.hideAvatar)==null?0:R.call(O))},
then:function(){return _.q("div",{class:"yt-avatar-stack-view-model__avatars"},_.q(_.U,{cond:function(){return m().decoratedText},
then:function(R){var x={};return _.q("div",{class:_.bE("yt-avatar-stack-view-model__text-container",(x["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return B()==="AVATAR_SIZE_XXS"||B()==="AVATAR_SIZE_XS"},x["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var t;
return((t=O.isOverlay)==null?void 0:t.call(O))&&(B()==="AVATAR_SIZE_XXS"||B()==="AVATAR_SIZE_XS")},x)),
style:_.hH({width:function(){return Q().avatarSizeInPx+"px"},
height:function(){return Q().avatarSizeInPx+"px"}})},_.q(_.Jg,{text:R,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.q("div",{style:function(){return _.hH(Q().avatarStackStyle)()},
class:function(){return Q().avatarStackClass}},_.q(_.u5,{data:function(){return Q().avatars.reverse()}},{avatarViewModel:function(R,x){return _.q("div",{style:function(){var t,W;
return _.hH((W=(t=Q()).avatarStyle)==null?void 0:W.call(t,x()))()},
class:function(){return Q().avatarClass}},_.q(_.HP,{data:R.data,
decorations:H,avatarButtonCustomClassName:function(){return Q().avatarButtonCustomClassName},
isOverlay:O.isOverlay,clusterLayoutConfig:function(){var t,W;return(W=(t=Q()).clusterLayoutConfig)==null?void 0:W.call(t,x())}}))},
decoratedAvatarViewModel:function(R,x){return _.q("div",{style:function(){var t,W;return _.hH((W=(t=Q()).avatarStyle)==null?void 0:W.call(t,x()))()},
class:function(){return Q().avatarClass}},_.q(_.vP,{data:R.data}))}})))}}),_.q(_.U,{cond:function(){return m().text},
then:function(R){return _.q(_.Jg,{text:R,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"ea");
_.K5.idomCompat=!0;_.qi(_.a(function(O){var m=O.data;var G=O.thumbnailSize;return _.q("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.q("div",{class:_.bE("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return lFf(G==null?void 0:G())})},_.q(_.u5,{data:function(){return m().avatarStack}},{avatarStackViewModel:function(B){return _.q(_.K5,{data:B.data,
decorations:[5]})}})))},"fa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.VZ,
thumbnailSize:_.VZ}});var $wu=_.a(function(O){O=_.ru(O,{hidden:!1});var m=O.data;return _.q("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:O.hidden},_.q(_.Jg,{text:function(){return m().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.q(_.U,{cond:function(){return m().subtitle},
then:function(){return _.q(_.Jg,{text:function(){return m().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"ga");
$wu.idomCompat=!0;_.qi($wu,"yt-thumbnail-overlay-title-view-model",{props:{data:_.VZ,hidden:_.VZ}});var M_3=_.a(function(O){O=_.ru(O,{isClip:!1});var m=O.data,G=O.thumbnailSize,B={};return _.q("yt-thumbnail-overlay-badge-view-model",{class:_.bE("yt-thumbnail-overlay-badge-view-model",function(){a:switch(m().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var Q="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:Q="yt-thumbnail-overlay-badge-view-model--bottom-end"}return Q},function(){return aFY(G==null?void 0:G())},(B["yt-thumbnail-overlay-badge-view-model--clip"]=O.isClip,
B))},_.q(_.u5,{data:function(){return m().thumbnailBadges}},{thumbnailBadgeViewModel:function(Q){return _.q(B19,{data:Q.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"ha");
M_3.idomCompat=!0;_.qi(M_3,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.VZ,thumbnailSize:_.VZ,isClip:_.VZ}});var r52=_.a(function(O){var m=O.data;O=O.hidden;var G=_.bF(function(){return m().indicatorCount||0},void 0,"AbKnMc"),B={};
return _.q("yt-page-indicator-view-model",{class:_.bE("ytPageIndicatorViewModelHost",(B.ytPageIndicatorViewModelIndicatorHidden=function(){return!m().indicatorCount},B)),
hidden:O},_.q(_.gi,{each:function(){return Array(G())}},function(Q,H){var M={};
return _.q("div",{class:_.bE("ytPageIndicatorViewModelIndicator",(M.ytPageIndicatorViewModelIndicatorSelected=function(){return m().selectedIndex===H()},M))})}))},"ia");
r52.idomCompat=!0;_.qi(r52,"yt-page-indicator-view-model",{props:{data:_.VZ,hidden:_.VZ}});var $S=function(){var O=_.u.apply(this,arguments)||this;O.eventSink=function(){return O};
O.disableInteraction=!1;O.noRoundedCorners=!1;O.isPreviewLoading=!1;O.isOriginalAspectRatio=!1;O.computedObjectFit=!1;O.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return O};
_.X($S,_.u);_.v=$S.prototype;
_.v.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:_.V("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"}}};
_.v.onImageLoaded=function(){this.loaded=!0};
_.v.onImageUnloaded=function(){this.loaded=!1};
_.v.computeRichThumbnail=function(O,m,G,B){if(O&&m&&!B&&!_.V("disable_moving_thumbs_handling")&&!G)return m};
_.v.computeImageWidth=function(O,m){return m||9999};
_.v.computeIsOriginalAspectRatio=function(O){return O};
_.v.computeIsLive=function(O){if(O==null?0:O.badges)for(var m=0;m<O.badges.length;m++){var G=O.badges[m];if(G.metadataBadgeRenderer&&G.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(O==null?0:O.thumbnailOverlays)for(m=0;m<O.thumbnailOverlays.length;m++)if(G=O.thumbnailOverlays[m],G.thumbnailOverlayTimeStatusRenderer&&G.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.v.computeObjectFit=function(O,m){return m||(O?"CONTAIN":"")};
_.v.computeNavigationEndpoint=function(O,m,G){return O?m:G};
_.v.computeHasClip=function(O){O=_.K(O||[]);for(var m=O.next();!m.done;m=O.next())if(m.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.v.computeOverlayColor=function(O){var m;return(O==null?0:(m=O.darkColorPalette)==null?0:m.section2Color)?O.darkColorPalette.section2Color:O==null?void 0:O.sampledThumbnailColor};
_.vr.Object.defineProperties($S.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return Rwp(this.width)}}});
$S.prototype.onImageUnloaded=$S.prototype.onImageUnloaded;$S.prototype.onImageLoaded=$S.prototype.onImageLoaded;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],$S.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],$S.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(kdo),_.Y("design:type",Object)],$S.prototype,"ytdThumbnailBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],$S.prototype,"componentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],$S.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$S.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],$S.prototype,"circular",void 0);
_.c([_.g({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.Y("design:type",Object)],$S.prototype,"richThumbnail",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.Y("design:type",Boolean)],$S.prototype,"hasClip",void 0);_.c([_.g(),_.Y("design:type",Object)],$S.prototype,"eventSink",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$S.prototype,"queued",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],$S.prototype,"richGridThumbnail",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],$S.prototype,"useExpandableTooltip",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],$S.prototype,"useUntranslatedNavigationEndpoint",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],$S.prototype,"disableInteraction",void 0);
_.c([_.g({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.Y("design:type",Object)],$S.prototype,"computedNavigationEndpoint",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$S.prototype,"nowPlayingEqualizerOnly",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],$S.prototype,"hidePlaybackStatus",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],$S.prototype,"objectFit",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],$S.prototype,"noRoundedCorners",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],$S.prototype,"watchFeedThumbnail",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],$S.prototype,"isPreviewLoading",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.Y("design:type",Object)],$S.prototype,"isOriginalAspectRatio",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.Y("design:type",Object)],$S.prototype,"computedObjectFit",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.Y("design:type",Boolean)],$S.prototype,"isLiveVideo",void 0);
_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],$S.prototype,"loaded",void 0);_.c([_.g({computed:"computeOverlayColor(data.thumbnail)"}),_.Y("design:type",Object)],$S.prototype,"overlayColor",void 0);_.c([_.g({selector:_.$2z}),_.Y("design:type",Boolean)],$S.prototype,"inlinePreviewIsEnabled",void 0);_.c([_.g(),_.Y("design:type",Number)],$S.prototype,"width",void 0);
_.c([_.T("inlinePreviewIsEnabled"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$S.prototype,"isPreviewDisabled",null);_.c([_.T("width"),_.Y("design:type",String),_.Y("design:paramtypes",[])],$S.prototype,"thumbnailSize",null);_.c([_.hG("image-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$S.prototype,"onImageLoaded",null);
_.c([_.hG("image-unloaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$S.prototype,"onImageUnloaded",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-thumbnail"})],$S);
var R1s=_.WE()($S,"ytd-thumbnail",function(){if(mw8===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);mw8=O}O=mw8;return O},{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 cqs=function(O){var m=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14920_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14920_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(G){iee(m,G)};
this.onLockupMouseLeaveFn=function(G){G=G.relatedTarget;var B,Q;((B=document.getElementsByTagName("ytd-video-preview"))==null?0:(Q=B.item(0))==null?0:Q.contains(G))||(m.terminateVideoPreview(),Mb(m))};
this.onThumbnailMouseDownFn=function(){m.terminateVideoPreview();Mb(m)};
this.onTouchStart=function(){m.JSC$14920_touched=!0};
this.mediaRenderer=O.mediaRenderer;this.thumbnailElement=O.thumbnailElement;this.lockupElement=O.lockupElement;this.videoPreviewOptsInput=O.videoPreviewOpts;xw9(this);rO(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)):
_.ay(Error("Kh")):_.ay(Error("Lh")):qU2(this)},mk=function(O){qU2(O);
var m;(m=O.lockupElement)==null||m.removeEventListener("mouseenter",O.onMouseMoveFn);var G;(G=O.lockupElement)==null||G.removeEventListener("mouseleave",O.onLockupMouseLeaveFn);var B;(B=O.lockupElement)==null||B.removeEventListener("touchstart",O.onTouchStart);var Q;(Q=O.thumbnailElement)==null||Q.removeEventListener("mousedown",O.onThumbnailMouseDownFn);Mb(O)},xw9=function(O){O.inlinePreviewIsEnabledForUser=_.Kf().getState().ui.inlinePreviewIsEnabled;
O.unsubscribeFromInlinePreviewIsEnabled=_.dc(_.Kf(),_.$2z,function(m){(O.inlinePreviewIsEnabledForUser=m)||Mb(O)});
O.JSC$14920_unsubscribeFromInlinePreviewIsActive=_.dc(_.Kf(),_.KGN,function(m){(O.inlinePreviewIsActive=m)||Mb(O)})},qU2=function(O){O.unsubscribeFromInlinePreviewIsEnabled();
O.unsubscribeFromInlinePreviewIsEnabled=function(){};
O.JSC$14920_unsubscribeFromInlinePreviewIsActive();O.JSC$14920_unsubscribeFromInlinePreviewIsActive=function(){}},iee=function(O,m){m.buttons>0||(m=_.Rd("kevlar_lockup_hover_delay",-1),O.JSC$14920_touched&&m>=0?(_.ln.cancelJob(O.videoPreviewJobId),O.videoPreviewJobId=_.z$(_.ln,function(){Uwp(O)},m),O.JSC$14920_touched=!1):Uwp(O))},hUp=function(O){O.videoPreviewJobId=_.z$(_.ln,function(){return _.r(function(m){return m.yield(t_C(O,{isAutoplay:!0}),0)})})},Uwp=function(O){!O.previewTriggered&&rO(O)&&
(O.inlinePreviewIsActive&&O.terminateVideoPreview(),O.previewTriggered=!0,O.mediaRenderer.isInlinePreviewTriggered=!0,_.ln.cancelJob(O.videoPreviewJobId),O.videoPreviewJobId=_.z$(_.ln,function(){return _.r(function(m){return m.yield(t_C(O),0)})}))},t_C=function(O,m){m=m===void 0?{}:m;
var G=m.isAutoplay===void 0?!1:m.isAutoplay;var B,Q,H,M;return _.r(function(R){if(R.nextAddress==1){if(!rO(O))return R.return();B=O.getVideoPreviewOpts();if(!B)return R.return();G&&(B.isAutoplay=!0);return(H=(Q=_.UB(O.mediaRenderer.hostElement,"yt-open-video-preview-action",[B]))&&Q[0])?R.yield(Q[0],3):R.jumpTo(2)}R.nextAddress!=2&&(H=R.yieldResult===1);if(H){var x=(M=O.mediaRenderer)==null?void 0:M.data;x&&(yqp(x)?delete x.inlinePlayerData:"inlinePlaybackEndpoint"in x&&delete x.inlinePlaybackEndpoint)}_.ju(R)})};
cqs.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var O,m;if((m=(O=this.videoPreviewOptsInput)==null?void 0:O.videoPreviewData)!=null)O=m;else if(O=this.mediaRenderer.data)if(yqp(O))O={inlinePlaybackEndpoint:_.eg(O.inlinePlayerData.onVisible),navigationEndpoint:_.eg(O.onTap),thumbnail:"image"in O?O.image:O.thumbnail,thumbnailOverlays:void 0,accessibilityText:krM(O)};else if("multipleInlinePlaybackEndpoint"in O){var G=_.b(_.b(O.multipleInlinePlaybackEndpoint,Mq_),rSC);if(G!=
null&&G.playerDescriptors){m=[];G=_.K(G.playerDescriptors);for(var B=G.next();!B.done;B=G.next())B=B.value,m.push({inlinePlaybackEndpoint:B.inlinePlaybackEndpoint,navigationEndpoint:B.navigationEndpoint,thumbnail:B.thumbnail,thumbnailOverlays:B.thumbnailOverlays,accessibilityText:krM(O)});O=m}else O=void 0}else O={inlinePlaybackEndpoint:O.inlinePlaybackEndpoint,navigationEndpoint:O.navigationEndpoint,thumbnail:O.thumbnail,thumbnailOverlays:O.thumbnailOverlays,accessibilityText:krM(O)};else O=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:O,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var rO=function(O){var m;if(m=O.inlinePreviewIsEnabledForUser)m=(O=O.mediaRenderer.data)?"inlinePlaybackEndpoint"in O&&O.inlinePlaybackEndpoint||yqp(O)&&O.inlinePlayerData||"multipleInlinePlaybackEndpoint"in O&&O.multipleInlinePlaybackEndpoint?!0:!1:!1;return m};
cqs.prototype.terminateVideoPreview=function(){_.xc(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Mb=function(O){_.ln.cancelJob(O.videoPreviewJobId);O.inlinePreviewIsActive=!1;O.previewTriggered=!1;O.mediaRenderer.isInlinePreviewTriggered=!1};var WeH=_.FY(["#"]),RU=function(){var O=_.u.apply(this,arguments)||this;O.isDisabled=!1;return O};
_.X(RU,_.u);_.v=RU.prototype;_.v.configureRendererStamper=function(){return{"data.menu":da,"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"}}}};
_.v.attached=function(){this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.getMetadata=function(O){var m=[];if(O.metadataText&&Object.keys(O.metadataText).length>0){var G=this.ytRendererBehavior.getSimpleString(O.metadataText);O.upcomingEventData&&O.upcomingEventData.upcomingEventText&&(G=_.Ev(G,Number(O.upcomingEventData.startTime)));m.push(G)}else O.shortViewCountText&&m.push(this.ytRendererBehavior.getSimpleString(O.shortViewCountText)),O.publishedTimeText&&m.push(this.ytRendererBehavior.getSimpleString(O.publishedTimeText)),O.upcomingEventData&&O.upcomingEventData.upcomingEventText&&
(G=this.ytRendererBehavior.getSimpleString(O.upcomingEventData.upcomingEventText),m.push(_.Ev(G,Number(O.upcomingEventData.startTime))));return m};
_.v.calculateBylineText=function(O){return O.shortBylineText?O.shortBylineText:O.bylineText?O.bylineText:null};
_.v.calculateIsDisabled=function(O){return!!O.isDisabled};
_.v.computeHrefWithDefault=function(O){return this.ytComponentBehavior.computeHref_(O)||_.Fa6(WeH)};
_.v.onDetailsTap=function(O){var m=this.data&&this.data.navigationEndpoint;m&&!_.Hu(_.$Z(O)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.V("kevlar_grid_video_renderer_killswitch")?_.iP(this.hostElement,"yt-navigate",{endpoint:m}):this.ytComponentBehavior.resolveCommand(m))};
_.v.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14927_inlinePreviewHoverListener=Yi({mediaRenderer:this,lockupElement:_.ZO(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.ZO(this.hostElement).querySelector("ytd-thumbnail")})};
_.v.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$14927_inlinePreviewHoverListener)==null||mk(O)};
_.v.computeThumbnailWidth=function(O,m){return m&&m>0?m:O?360:210};
_.v.computeNumBadgesInRow=function(O){var m;return((m=O.badges)==null?void 0:m.length)||0};
_.v.computeShowChannelThumbnail=function(O,m){var G;return m&&!!(O==null?0:(G=O.channelThumbnailSupportedRenderers)==null?0:G.channelThumbnailWithLinkRenderer)};
_.vr.Object.defineProperties(RU.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$14927_inlinePreviewHoverListener)==null?0:rO(O))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
RU.prototype.dataChanged=RU.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],RU.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],RU.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],RU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],RU.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.h(_.Z2),_.Y("design:type",Object)],RU.prototype,"ytdLockupBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],RU.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],RU.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],RU.prototype,"noEndpoints",void 0);_.c([_.g({computed:"calculateBylineText(data)"}),_.Y("design:type",Object)],RU.prototype,"bylineText",void 0);
_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],RU.prototype,"isSearch",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],RU.prototype,"isDownloading",void 0);_.c([_.g({reflectToAttribute:!0,value:0}),_.Y("design:type",Number)],RU.prototype,"width",void 0);_.c([_.g({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.Y("design:type",Object)],RU.prototype,"isDisabled",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RU.prototype,"dataChanged",null);_.c([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],RU.prototype,"isHovered",null);_.c([_.l({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],RU);
_.y(RU,"ytd-grid-video-renderer",function(){if(cq2!==void 0)return cq2;var O=document.createElement("template");_.f(O,'\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]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" 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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return cq2=O},{mode:_.ZB("kevlar_poly_si_batch_j047")?1:2});var Ze3;var id=function(){var O=_.u.apply(this,arguments)||this;O.roundedContainer=!0;O.skipRoundingTop=!1;O.disableTopPadding=!1;O.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");O.extractOverlay=!1;return O};
_.X(id,_.u);id.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
id.prototype.onClick=function(O){var m,G=(m=this.data)==null?void 0:m.sourceEndpoint;!_.Hu(_.$Z(O),this.hostElement,["A".toString()])&&G&&_.iP(this.hostElement,"yt-navigate",{endpoint:G})};
_.vr.Object.defineProperties(id.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 O;return!((O=this.data)==null||!O.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var O,m;return(m=(O=this.data)==null?void 0:O.paragraphMaxLines)!=null?m:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],id.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],id.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],id.prototype,"showVerticalDividers",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],id.prototype,"roundedContainer",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],id.prototype,"skipRoundingTop",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],id.prototype,"disableTopPadding",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],id.prototype,"amsterdamEnabled",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],id.prototype,"extractOverlay",void 0);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],id.prototype,"showMetadataAtTop",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],id.prototype,"showMetadataBelowTitle",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],id.prototype,"hasMenu",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data.truncateParagraphs"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],id.prototype,"truncateParagraphs",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.paragraphMaxLines"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],id.prototype,"paragraphMaxLines",null);
_.c([_.g({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.T("data.background"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],id.prototype,"background",null);_.c([_.l({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],id);
_.y(id,"ytd-info-panel-content-renderer",function(){if(Ze3!==void 0)return Ze3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Ze3=O},{mode:_.ZB("kevlar_poly_si_batch_j076")?1:2});var z1$;var J5p;var V_9;var be8;var xS=function(){return _.u.apply(this,arguments)||this};
_.X(xS,_.u);xS.prototype.computeStyle=function(O){return O};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],xS.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],xS.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],xS.prototype,"style_",void 0);_.c([_.DO({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],xS);
_.y(xS,"yt-channel-thumbnail-with-link-renderer",function(){if(be8===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;V_9===void 0&&(V_9=document.createElement("template"));var B=V_9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);be8=O}O=be8;return O},{mode:2});var qb=function(){return _.u.apply(this,arguments)||this};
_.X(qb,_.u);qb.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"}}}};
qb.prototype.computeTitleStyle=function(O){return O||null};
qb.prototype.computeAvatarStyle=function(O){return O||null};
qb.prototype.computeShowNavigationButton=function(O,m){return!(O==null||!O.navigationButton||m)};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],qb.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.Y("design:type",String)],qb.prototype,"titleStyle",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.Y("design:type",String)],qb.prototype,"avatarStyle",void 0);_.c([_.g(),_.Y("design:type",Boolean)],qb.prototype,"hideNavigationButton",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qb.prototype,"isModernSd",void 0);_.c([_.l({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],qb);
_.y(qb,"ytd-rich-list-header-renderer",function(){if(J5p!==void 0)return J5p;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return J5p=O},{mode:_.ZB("kevlar_poly_si_batch_j058")?1:2});var UM=function(){return _.u.apply(this,arguments)||this};
_.X(UM,_.u);UM.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],UM.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],UM.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],UM.prototype,"isSearch",void 0);_.c([_.l({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],UM);
_.y(UM,"ytd-preview-card-renderer",function(){if(z1$!==void 0)return z1$;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return z1$=O},{mode:1});var n$_;var tT=function(){return _.u.apply(this,arguments)||this};
_.X(tT,_.u);tT.prototype.configureRendererStamper=function(){return{"data.menu":da}};
tT.prototype.dataChanged=function(){var O=this.get("colorExtractionPalette.section1Color",this.data);O=_.Fs(O);_.n7(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":O})};
tT.prototype.computeCardStyle=function(O){return this.get("style.value",O)||null};
tT.prototype.dataChanged=tT.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],tT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],tT.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],tT.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.Y("design:type",String)],tT.prototype,"cardStyle",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tT.prototype,"dataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],tT);
_.y(tT,"ytd-compact-channel-recommendation-card-renderer",function(){if(n$_!==void 0)return n$_;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return n$_=O},{mode:1});var Xto;var fA$;var WP=function(){var O=_.u.apply(this,arguments)||this;O.alignAuto=!1;O.collapsed=!0;O.isToggled=!1;O.alwaysCollapsed=!1;O.canToggle=!0;O.collapsedHeight=80;O.disableToggle=!1;O.alwaysToggleable=!1;O.reversed=!1;O.shouldUseNumberOfLines=!1;O.recomputeOnResize=!1;O.canToggleJobId=0;O.lastReversed=!1;return O};
_.X(WP,_.u);_.v=WP.prototype;_.v.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.v.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.v.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var O=_.ZO(this.hostElement),m=O.childNodes,G=document.createDocumentFragment(),B=O.childNodes.length-1;B>=0;B--)_.ZO(G).appendChild(m[B]);_.V("enable_shadydom_free_scoped_node_methods")?_.zw(this.hostElement).appendChild(G):O.appendChild(G)}};
_.v.ready=function(){var O=this;_.mp(function(){O.initChildrenObserver()},1)};
_.v.attached=function(){var O;(O=this.resizeObserver)==null||O.observe(this.content)};
_.v.detached=function(){this.detachObserver()};
_.v.toggle=function(O,m){this.canToggle&&(this.isToggled=m,_.iP(this.hostElement,"yt-refit"),O&&O.stopPropagation())};
_.v.reset=function(){this.childrenChanged()};
_.v.onIronResize=function(){this.recomputeOnResize&&!_.V("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.v.computeIsMoreVisible=function(O,m){return O&&!m};
_.v.computeShouldUseNumberOfLines=function(O){try{return!!O&&window.CSS.supports("-webkit-line-clamp","1")}catch(m){}return!1};
_.v.computeIsLessVisible=function(O,m){return O&&m};
_.v.observeCollapsedHeightAndMaxLines=function(){var O=this.collapsedHeight,m=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.n7(this.hostElement,{"--ytd-expander-max-lines":""+m,"--ytd-expander-collapsed-height":""}):_.n7(this.hostElement,{"--ytd-expander-collapsed-height":O+"px","--ytd-expander-max-lines":""})};
_.v.handleMoreTap=function(O){this.disableToggle||(_.iP(this.hostElement,"yt-expander-more-tapped"),this.toggle(O,!0))};
_.v.handleLessTap=function(O){_.iP(this.hostElement,"yt-expander-less-tapped");this.toggle(O,!1)};
_.v.initChildrenObserver=function(){var O=this;this.observer=new MutationObserver(function(){O.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.V("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.Pu(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var m;(m=O.resizeThrottle)==null||m.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.v.childrenChanged=function(){var O=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Zw(function(){O.canToggleJobId=0;O.calculateCanCollapse()})}))};
_.v.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};
_.v.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.v.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("collapsed-changed",this.collapsed))};
_.v.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("is-toggled-changed",this.isToggled))};
_.v.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("can-toggle-changed",this.canToggle))};
_.vr.Object.defineProperties(WP.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
WP.prototype.canToggleChangedForBinding=WP.prototype.canToggleChangedForBinding;WP.prototype.isToggledChangedForBinding=WP.prototype.isToggledChangedForBinding;WP.prototype.collapsedChangedForBinding=WP.prototype.collapsedChangedForBinding;WP.prototype.observeCollapsedHeightAndMaxLines=WP.prototype.observeCollapsedHeightAndMaxLines;WP.prototype.onIronResize=WP.prototype.onIronResize;WP.prototype.reversedChanged=WP.prototype.reversedChanged;WP.prototype.toggledChanged=WP.prototype.toggledChanged;
WP.prototype.alwaysToggleableChanged=WP.prototype.alwaysToggleableChanged;_.c([_.h(_.Dm),_.Y("design:type",Object)],WP.prototype,"ironResizableBehavior",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],WP.prototype,"alignAuto",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],WP.prototype,"collapsed",void 0);_.c([_.g(),_.Y("design:type",Object)],WP.prototype,"isToggled",void 0);_.c([_.g(),_.Y("design:type",Object)],WP.prototype,"alwaysCollapsed",void 0);
_.c([_.g(),_.Y("design:type",Object)],WP.prototype,"canToggle",void 0);_.c([_.g(),_.Y("design:type",Object)],WP.prototype,"collapsedHeight",void 0);_.c([_.g(),_.Y("design:type",Object)],WP.prototype,"disableToggle",void 0);_.c([_.g(),_.Y("design:type",Object)],WP.prototype,"alwaysToggleable",void 0);_.c([_.g(),_.Y("design:type",Object)],WP.prototype,"reversed",void 0);_.c([_.g(),_.Y("design:type",Number)],WP.prototype,"maxNumberOfLines",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.Y("design:type",Object)],WP.prototype,"shouldUseNumberOfLines",void 0);_.c([_.g(),_.Y("design:type",Object)],WP.prototype,"recomputeOnResize",void 0);_.c([_.uc("#content"),_.Y("design:type",HTMLDivElement)],WP.prototype,"content",void 0);_.c([_.Si("alwaysToggleable"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WP.prototype,"alwaysToggleableChanged",null);
_.c([_.Si("isToggled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WP.prototype,"toggledChanged",null);_.c([_.T("canToggleJobId"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WP.prototype,"isResetting",null);_.c([_.Tw("reversed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WP.prototype,"reversedChanged",null);
_.c([_.hG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WP.prototype,"onIronResize",null);_.c([_.Tw("maxNumberOfLines","collapsedHeight"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WP.prototype,"observeCollapsedHeightAndMaxLines",null);_.c([_.Tw("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WP.prototype,"collapsedChangedForBinding",null);
_.c([_.Tw("isToggled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WP.prototype,"isToggledChangedForBinding",null);_.c([_.Tw("canToggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WP.prototype,"canToggleChangedForBinding",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-expander"})],WP);
_.y(WP,"ytd-expander",function(){if(fA$!==void 0)return fA$;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return fA$=O},{mode:1});var Za=function(){return _.u.apply(this,arguments)||this};
_.X(Za,_.u);Za.prototype.computeIsCarousel=function(O){return!!O.isCarousel};
Za.prototype.observeLightsourcePalette=function(){var O,m=(O=this.data)==null?void 0:O.vibrantsourceColorPaletteData;m&&_.CH(this.hostElement,m)};
Za.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Za.prototype.observeLightsourcePalette=Za.prototype.observeLightsourcePalette;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Za.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Za.prototype,"data",void 0);_.c([_.g({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Za.prototype,"isCarousel",void 0);
_.c([_.Tw("data.vibrantsourceColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Za.prototype,"observeLightsourcePalette",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Za);
_.y(Za,"ytd-media-upsell-renderer",function(){if(Xto!==void 0)return Xto;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Xto=O},{mode:2});var h12;var za=function(){var O=_.u.apply(this,arguments)||this;O.JSC$14954_playerEvents=new Map;O.listeningToPlayer=!1;O.startX=0;O.active=!1;O.shouldShowButtons=_.V("web_buttons_hidden_killswitch");O.isHighlighted=!1;O.useHighlightStyling=_.V("web_enable_deeper_metadata_highlight_styling");O.modern=_.V("kevlar_modern_sd");O.enableProblemWalkthrough=_.V("problem_walkthrough_sd");return O};
_.X(za,_.u);_.v=za.prototype;
_.v.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}}}}}};
_.v.created=function(){this.JSC$14954_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.v.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.f7(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.f7(this,this.onActiveUpdate))};
_.v.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.f7(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.f7(this,this.onActiveUpdate))};
_.v.onDataChanged=function(){this.removePlayerListeners()};
_.v.onColorPaletteChange=function(){var O={},m;if(_.oh()==="USER_INTERFACE_THEME_DARK"&&((m=this.data)==null?0:m.darkColorPalette)){var G=this.data.darkColorPalette;O["--ytd-macro-markers-list-item-background-color"]=_.AV(this.get("section2Color",G))}else{var B;_.oh()==="USER_INTERFACE_THEME_LIGHT"&&((B=this.data)==null?0:B.lightColorPalette)&&(G=this.data.lightColorPalette,O["--ytd-macro-markers-list-item-background-color"]=_.AV(this.get("section3Color",G)))}G?(O["--ytd-macro-markers-list-item-title-color"]=
_.AV(this.get("primaryTitleColor",G)),O["--ytd-macro-markers-list-item-secondary-color"]=_.AV(this.get("secondaryTitleColor",G)),O["--ytd-macro-markers-list-item-timestamp-background-color"]=_.AV(this.get("section1Color",G)),this.customButtonProperties={customColors:{color:_.AV(this.get("primaryTitleColor",G))}},this.useColorSampling=!0):(O["--ytd-macro-markers-list-item-background-color"]="initial",O["--ytd-macro-markers-list-item-title-color"]="initial",O["--ytd-macro-markers-list-item-secondary-color"]=
"initial",O["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.n7(this.hostElement,O)};
_.v.onEndpointMouseDown=function(O){this.startX=O.clientX};
_.v.onEndpointClick=function(O){var m=this,G,B,Q;return _.r(function(H){if(H.nextAddress==1){if(m.startX!==O.clientX)return O.preventDefault(),H.return();m.data&&m.ytRendererBehavior.logExplicitClick(m.data);if(!m.seekWithAnimationOnClick)return H.jumpTo(0);if(O.button!==0||O.shiftKey||O.altKey||O.metaKey||O.ctrlKey||_.Hu(_.$Z(O),m.hostElement,["BUTTON".toString()]))return H.return();O.stopPropagation();O.preventDefault();return m.data?H.yield(_.rR().getPlayerPromise(),3):H.return()}G=H.yieldResult;
Q=(B=_.b(m.data.onTap,_.GC))==null?void 0:B.startTimeSeconds;Q!==void 0&&G.seekToTimeWithAnimation(Q*1E3,_.HX(m.data.title));_.ju(H)})};
_.v.computeLayout=function(O){return O};
_.v.computeIsHighlighted=function(O){return!!O};
_.v.computeCarouselType=function(O){return O};
_.v.hideModernCarousel=function(O){return this.modern&&this.hideThumbnail(O)};
_.v.hideThumbnail=function(O){return this.enableProblemWalkthrough&&O!==null&&O==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.v.onRepeatButtonToggle=function(O){var m=this;O.detail.toggled&&_.rR().getPlayerPromise().then(function(G){m.ytPlayerListenerBehavior.listenToPlayerEvents(G,m.JSC$14954_playerEvents);m.listeningToPlayer=!0})};
_.v.onLoopRangeChange=function(O){var m=_.ZO(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(m){var G=m.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",m.polymerController.data);if(G){var B=Number(G.endTimeMs);if(Number(G.startTimeMs)!==(O==null?void 0:O.startTimeMs)||B!==(O==null?void 0:O.endTimeMs))m.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.v.removePlayerListeners=function(){var O=this;this.listeningToPlayer&&_.rR().getPlayerPromise().then(function(m){O.ytPlayerListenerBehavior.unlistenFromPlayerEvents(m,O.JSC$14954_playerEvents);O.listeningToPlayer=!1})};
_.v.onActiveUpdate=function(O){this.active=O.detail.active};
za.prototype.onColorPaletteChange=za.prototype.onColorPaletteChange;za.prototype.onDataChanged=za.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],za.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],za.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",_.Vw)],za.prototype,"ytPlayerListenerBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],za.prototype,"data",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],za.prototype,"useCustomColors",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],za.prototype,"active",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],za.prototype,"shouldShowButtons",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.Y("design:type",String)],za.prototype,"layout",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.Y("design:type",Object)],za.prototype,"isHighlighted",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],za.prototype,"useHighlightStyling",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],za.prototype,"modern",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],za.prototype,"enableProblemWalkthrough",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.Y("design:type",String)],za.prototype,"carouselType",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],za.prototype,"useColorSampling",void 0);_.c([_.g(),_.Y("design:type",Boolean)],za.prototype,"seekWithAnimationOnClick",void 0);_.c([_.g(),_.Y("design:type",Object)],za.prototype,"customButtonProperties",void 0);
_.c([_.uc("#repeat-button"),_.Y("design:type",HTMLElement)],za.prototype,"repeatButton",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],za.prototype,"onDataChanged",null);_.c([_.Tw("data.lightColorPalette","data.darkColorPalette"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],za.prototype,"onColorPaletteChange",null);_.c([_.l({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],za);
_.y(za,"ytd-macro-markers-list-item-renderer",function(){if(h12!==void 0)return h12;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return h12=O},{mode:1});var T1s;var g$U;var JT=function(){return _.u.apply(this,arguments)||this};
_.X(JT,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],JT.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],JT);
_.y(JT,"ytd-title-and-button-list-header-renderer",function(){if(g$U!==void 0)return g$U;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return g$U=O},{mode:1});var u7$;var jJs=new _.Us("BUTTON_RENDERER_WIZ_TOKEN"),IAC=new _.Us("BUTTON_RENDERER_TOKEN");_.VN=_.a(function(O){var m=_.KR().resolve(_.v7(jJs));if(m)return _.q(m,Object.assign({},O));var G=_.KR().resolve(IAC);return G?_.q(hCs,null,function(){return _.q(Be,null,function(){var B,Q,H,M,R,x,t,W,Z,z,J,n;return void G(O.data(),{onButtonClickCallback:O.onButtonClickCallback,shouldShowIcons:(B=O.shouldShowIcons)==null?void 0:B.call(O),icon:(Q=O.icon)==null?void 0:Q.call(O),processAllEndpoints:(H=O.processAllEndpoints)==null?void 0:H.call(O),preventDefault:(M=O.preventDefault)==null?void 0:M.call(O),
stopPropagation:(R=O.stopPropagation)==null?void 0:R.call(O),disableButtonRendererClickHandling:(x=O.disableButtonRendererClickHandling)==null?void 0:x.call(O),className:(t=O.className)==null?void 0:t.call(O),buttonOverrides:(W=O.buttonOverrides)==null?void 0:W.call(O),forceModernIconButton:(Z=O.forceModernIconButton)==null?void 0:Z.call(O),isSubscribe:(z=O.isSubscribe)==null?void 0:z.call(O),alignByText:(J=O.alignByText)==null?void 0:J.call(O),forceDisabled:(n=O.forceDisabled)==null?void 0:n.call(O)})})}):
_.q(_.Mr,null)},"ja");
_.VN.idomCompat=!0;var pt9=_.a(function(O){var m=O.data,G=_.MN(O.useSquareAspectRatio,!1);return _.q("dismissed-mini-game-card-view-model",null,_.q(_.U,{cond:function(){var B,Q;return(B=m().responseText)==null?void 0:(Q=B.runs)==null?void 0:Q.length},
then:function(){var B={};return _.q("div",{class:_.bE("yt-mini-game-card-view-model__dismissed-card",(B["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!G()},B["yt-mini-game-card-view-model--dismissed-square-card"]=G,B))},_.q("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.q(_.U,{cond:function(){return m().responseText.runs[0].text},
then:function(Q){return _.q("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:Q},Q)}}),_.q(_.u5,{data:function(){return m().buttons}},{buttonRenderer:_.VN,
buttonViewModel:_.oF})))}}))},"ka");var aA3=_.a(function(O){O=_.ru(O,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var m=O.data,G=O.useFullWidth,B=O.isDesktopWeb,Q=O.addSearchResultTopMargin,H=function(){return m().layout},M=function(){return m().title},R=function(){return m().metadataText?m().metadataText:m().genre},x=function(){return m().channelName},t=function(){return m().image},W=function(){return m().colorPalette},Z=function(){return m().actionButton},z=function(){return m().overflowButton},
J=function(){return m().avatar},n=function(){var C={};
C=_.bE("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(C["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return B()},C));
return _.q("div",{class:C},_.q(SUj,{imageData:t,colorPalette:W}),_.q(E$_,{onTap:function(){return m().onTap},
imageData:t,accessibilityText:function(){return m().accessibilityText},
overlayBadgeText:function(){return m().overlayBadgeText},
iconName:function(){return m().iconName},
unplayableInlinePlaybackIconName:function(){return m().unplayableInlinePlaybackIconName},
isDesktopWeb:B}),_.q(_.U,{cond:function(){return!B()},
then:function(){return _.q(_.Mr,null,_.q(Leo,{layout:H,colorPalette:W,isDesktopWeb:B,overflowButton:z,avatar:J,onTap:function(){return m().onTap},
genre:R,title:M,channelName:x}),_.q(Cwo,{actionButton:Z}))}}))},I=function(){var C={};
C=_.bE((C["yt-mini-game-card-view-model--search-result-desktop"]=function(){return B()},C["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!B()},C["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return Q()},C));
return _.q("div",{class:C},n(),_.q(o$o,{description:function(){return m().description},
isDesktopWeb:B,title:M,genre:R,onTap:function(){return m().onTap},
actionButton:Z,overflowButton:z,avatar:J,channelName:x}))},S=function(){var C={};
C=_.bE("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(C["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return B()},C["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return B()&&m().width===135},C["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return B()},C["yt-mini-game-card-view-model--big-metadata-font"]=function(){return m().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},C["yt-mini-game-card-view-model--use-full-width"]=
function(){return G()},C["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!Z()},C));
return _.q("div",{class:C},_.q(lA$,{colorPalette:W,isDesktopWeb:B,onTap:function(){return m().onTap},
accessibilityText:function(){return m().accessibilityText},
overlayBadgeText:function(){return m().overlayBadgeText},
iconName:function(){return m().iconName},
unplayableInlinePlaybackIconName:function(){return m().unplayableInlinePlaybackIconName},
actionButton:Z,imageData:t}),_.q(Leo,{layout:H,colorPalette:W,isDesktopWeb:B,overflowButton:z,avatar:J,onTap:function(){return m().onTap},
genre:R,title:M,channelName:x}))},L=function(){var C={};
C=_.bE("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(C["yt-mini-game-card-view-model--square-card-desktop"]=function(){return B()},C["yt-mini-game-card-view-model--use-full-width"]=function(){return G()},C));
return _.q("div",{class:C},_.q(E$_,{onTap:function(){return m().onTap},
imageData:t,accessibilityText:function(){return m().accessibilityText},
overlayBadgeText:function(){return m().overlayBadgeText},
iconName:function(){return m().iconName},
unplayableInlinePlaybackIconName:function(){return m().unplayableInlinePlaybackIconName},
isDesktopWeb:B}),_.q(Leo,{layout:H,colorPalette:W,isDesktopWeb:B,overflowButton:z,avatar:J,onTap:function(){return m().onTap},
genre:R,title:M,channelName:x}))};
return _.q("mini-game-card-view-model",{class:O.className},_.q(_.I8,null,_.q(_.uz,{when:function(){return H()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return S()}),_.q(_.uz,{when:function(){return H()==="MINI_APP_LAYOUT_SQUARE"}},function(){return L()}),_.q(_.uz,{when:function(){return H()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return I()})))},"la");
aA3.idomCompat=!0;var Cwo=_.a(function(O){var m=_.MN(O.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.q(_.u5,{data:O.actionButton},{buttonViewModel:function(G){return _.q("div",{class:m},_.q(_.oF,{data:G.data}))}})},"ma"),E$_=_.a(function(O){var m=O.onTap;
var G=O.imageData;var B=O.accessibilityText;var Q=O.overlayBadgeText;var H=O.iconName;var M=O.unplayableInlinePlaybackIconName;O=O.isDesktopWeb;return _.q(_.p3,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:m},_.q(_.KH,{data:G,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(B==null?void 0:B())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.q(k78,{overlayBadgeText:Q,iconName:H,unplayableInlinePlaybackIconName:M,isDesktopWeb:O}))},"na"),k78=_.a(function(O){var m=O.overlayBadgeText;
var G=O.iconName;var B=O.unplayableInlinePlaybackIconName;var Q=O.isDesktopWeb;return _.q("div",{class:"yt-mini-game-card-view-model__badge-container"},_.q(_.U,{cond:G,then:function(H){return _.q("div",{class:"yt-mini-game-card-view-model__badge"},_.q("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.q(_.T$,{icon:H,className:"yt-mini-game-card-view-model__icon",size:12}),_.q("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},m)))}}),_.q(_.U,{cond:function(){return!G()&&
m()},
then:function(){return _.q("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},m)}}),_.q(_.U,{cond:function(){return B()&&Q()},
then:function(){return _.q("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.q(_.T$,{icon:B,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"oa"),SUj=_.a(function(O){var m=O.colorPalette;
var G=O.imageData;var B=function(){return m().vibrantColorPalette?m().vibrantColorPalette.section2Color:m().sectionTwoColor};
return _.q(_.Mr,null,_.q("div",{class:"yt-mini-game-card-view-model__background-base",style:_.hH({"background-color":function(){return Oc(B(),"1")}})}),_.q("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.hH({"background-image":function(){return"url("+G().sources[0].url+")"}})}),_.q("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.hH({background:function(){return"linear-gradient(180deg,\n    "+Oc(B(),".8")+" 0%,\n    "+Oc(B(),".4")+" 25%,\n    "+Oc(m().vibrantColorPalette?m().vibrantColorPalette.section4Color:m().sectionFourColor,".8")+" 100%)"}})}))},"pa"),Leo=_.a(function(O){var m=O.layout;
var G=O.colorPalette;var B=O.overflowButton;var Q=O.avatar;var H=O.onTap;var M=O.title;var R=O.channelName;var x=O.genre;var t=function(){var W;return m()!=="MINI_APP_LAYOUT_SQUARE"&&((W=G())==null?0:W.textPrimaryColor)?"color: "+Oc(G().textPrimaryColor,".7"):""};
return _.q("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.q(_.U,{cond:Q,then:function(){return _.q("div",{class:"yt-mini-game-card-view-model__avatar"},_.q(_.u5,{data:Q},{avatarViewModel:_.HP}))}}),_.q(_.p3,{command:H,
className:"yt-mini-game-card-view-model__metadata-details"},_.q("h3",{class:"yt-mini-game-card-view-model__title",title:M},M),_.q(_.U,{cond:Q,then:function(){return _.q("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.q("span",{class:"yt-mini-game-card-view-model__genre",title:R,style:t},R),_.q("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:t},x))},
else:function(){return _.q("span",{class:"yt-mini-game-card-view-model__genre",title:x},x)}})),_.q("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.q(_.u5,{data:B},{buttonViewModel:function(W){var Z=W.data;
return _.q(_.oF,{data:function(){return Object.assign({},Z(),{customFontColor:m()==="MINI_APP_LAYOUT_SINGLETON"?Z().customFontColor:void 0})}})}})))},"qa"),lA$=_.a(function(O){var m=O.colorPalette;
var G=O.isDesktopWeb;var B=O.onTap;var Q=O.accessibilityText;var H=O.overlayBadgeText;var M=O.iconName;var R=O.unplayableInlinePlaybackIconName;var x=O.actionButton;O=O.imageData;return _.q("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.q(SUj,{imageData:O,colorPalette:m}),_.q(E$_,{onTap:B,imageData:O,accessibilityText:Q,overlayBadgeText:H,iconName:M,unplayableInlinePlaybackIconName:R,isDesktopWeb:G}),_.q(_.U,{cond:function(){return x==null?void 0:x()},
then:function(){return _.q(Cwo,{actionButton:x})}}))},"ra"),o$o=_.a(function(O){var m=O.description;
var G=O.isDesktopWeb;var B=O.title;var Q=O.genre;var H=O.onTap;var M=O.actionButton;var R=O.overflowButton;var x=O.avatar;O=O.channelName;var t={};t=_.bE("yt-mini-game-card-view-model--search-result-metadata-wrapper",(t["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=G,t["yt-mini-game-card-view-model--show-unplayable-on-hover"]=G,t["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!G()},t));
var W={};W=_.bE("yt-mini-game-card-view-model__search-result-info-row",(W["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!G()},W));
return _.q("div",{class:t},_.q("div",{class:W},_.q(_.p3,{command:H,className:"yt-mini-game-card-view-model__metadata-details"},_.q("h3",{class:"yt-mini-game-card-view-model__title",title:B},B),_.q("span",{class:"yt-mini-game-card-view-model__genre",title:Q},Q)),_.q(Cwo,{actionButton:M,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.q("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.q(_.u5,{data:R},{buttonViewModel:_.oF}))),_.q("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.q("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.q("div",{class:"yt-mini-game-card-view-model__avatar"},_.q(_.u5,{data:x},{avatarViewModel:function(Z){var z=Z.data;return _.q(_.HP,{data:function(){return Object.assign({},z(),{avatarImageSize:G()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.q(_.p3,{command:H,
className:"yt-mini-game-card-view-model__description"},_.q("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},O)),_.q(_.p3,{command:H,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.q("div",null)))),_.q(_.U,{cond:G,then:function(){return _.q(_.p3,{command:H,className:"yt-mini-game-card-view-model__description"},m)}}))},"sa");_.qi(aA3,"mini-game-card-view-model",{props:{data:_.VZ,className:_.VZ,useFullWidth:_.VZ,isDesktopWeb:_.VZ,addSearchResultTopMargin:_.VZ}});_.qi(pt9,"dismissed-mini-game-card-view-model",{props:{data:_.VZ,useSquareAspectRatio:_.VZ}});var bd=function(){var O=_.u.apply(this,arguments)||this;O.isSearch=!1;O.isRichGrid=!1;return O};
_.X(bd,_.u);_.v=bd.prototype;_.v.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.v.dismissibleItemOnYtServiceRequestSent=function(O,m){m.actions&&this.dismissibleItemProcessActions(O,m.actions)};
_.v.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.v.dataChanged=function(){this.dismissibleItemReset()};
_.v.dismissibleItemProcessActions=function(O,m){for(var G=0;G<m.length;G++){var B=m[G];_.b(B,_.aC)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.b(B,_.aC)),O.stopPropagation())}};
_.v.dismissibleItemHandleReplaceEnclosingAction=function(O){this.dismissedRenderer=O.item;this.isDismissed=!0};
_.vr.Object.defineProperties(bd.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var O;return!!this.data&&!((O=this.dismissedRenderer)==null?0:O.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.dismissedRenderer)==null||!O.notificationMultiActionRenderer)}}});
bd.prototype.dataChanged=bd.prototype.dataChanged;bd.prototype.dismissibleItemOnRequestSent=bd.prototype.dismissibleItemOnRequestSent;bd.prototype.dismissibleItemOnYtServiceRequestSent=bd.prototype.dismissibleItemOnYtServiceRequestSent;_.c([_.g(),_.Y("design:type",Object)],bd.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],bd.prototype,"isSearch",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],bd.prototype,"isDismissed",void 0);
_.c([_.g(),_.Y("design:type",Object)],bd.prototype,"dismissedRenderer",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],bd.prototype,"isRichGrid",void 0);_.c([_.T("data.layout"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bd.prototype,"useSquareAspectRatio",null);_.c([_.T("data","dismissedRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bd.prototype,"showCard",null);
_.c([_.T("data","dismissedRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bd.prototype,"showDismissed",null);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],bd.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.c([_.hG("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],bd.prototype,"dismissibleItemOnRequestSent",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bd.prototype,"dataChanged",null);_.c([_.DO({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],bd);
_.y(bd,"ytd-mini-game-card-view-model",function(){if(u7$!==void 0)return u7$;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return u7$=O},{mode:_.ZB("kevlar_poly_si_batch_j081")?1:2});var y5$;var c5s;var n5=function(){return _.KC.apply(this,arguments)||this};
_.X(n5,_.KC);n5.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
n5.prototype.getContinuationUrl=function(O){var m={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(m.itct=this.data.clickTrackingParams);return _.Oe(O,m)};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],n5.prototype,"data",void 0);_.c([_.DO({is:"yt-reload-continuation",noInjection:!0})],n5);var YUu;var dw$;var X3=function(){var O=_.u.apply(this,arguments)||this;O.notificationData={};return O};
_.X(X3,_.u);_.v=X3.prototype;_.v.isMenuExpanded=function(O){return O&&O.length<=1?"undefined":"false"};
_.v.dataChanged_=function(){this.selected=void 0;var O=this.computeSelectedIndex_(this.data);O>=0&&(this.selected=O);O=this.data&&this.data.length>1;_.JG(this.hostElement,"has-items",O);_.ZO(this.hostElement).querySelector("#label").tabIndex=O?0:-1};
_.v.onDropdownOpen=function(){var O=_.yA();if(this.parentTrackingParams&&this.data){var m=_.Ez(this.parentTrackingParams);this.data.forEach(function(G){O&&m&&G.trackingParams&&(G=_.Ez(G.trackingParams),_.Pd(O,m,G),_.Or(O,[G]))})}else this.parentTrackingParams||_.ay(new _.j9("No parent tracking params passed in for yt-dropdown-menu."))};
_.v.hasNotification=function(O){var m;if(O.targetId&&((m=this.notificationData)==null?0:m.targetId)){var G;return O.targetId===((G=this.notificationData)==null?void 0:G.targetId)}};
_.v.computeSelectedIndex_=function(O){if(O)for(var m=0,G=O.length;m<G;m++)if(O[m].selected)return m;return-1};
_.v.computeLabel_=function(O){return this.data&&O!=void 0?this.data[O].title:""};
_.v.computeShowIcon_=function(O,m){return!m&&!!O};
_.v.computeVerticalOffset_=function(O){return O?36:0};
_.v.computeEndpoint_=function(O){return O.endpoint||O.navigationEndpoint};
_.v.onLabelClick_=function(O){this.data&&this.data.length<=1?O.stopPropagation():this.menuExpanded="true"};
_.v.onIronActivate_=function(O){O=O.detail.item;var m=_.ZO(this.hostElement).querySelector("#repeat").itemForElement(O);if(m&&m.trackingParams){var G=_.yA(),B=_.Ez(m.trackingParams);G&&_.Gk(G,B)}if(m&&m.serviceEndpoint)_.V("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(m.serviceEndpoint):_.tK(this.hostElement,[m.serviceEndpoint]),_.iP(this.hostElement,"yt-playlist-reloading");else a:{if((m=O.querySelector("yt-supported-renderers"))&&
(m=m.rendererElement)&&m.is=="yt-reload-continuation"){m.trigger();break a}(O=O.querySelector("yt-reload-continuation"))&&O.trigger()}};
_.v.onTap_=function(O){O.preventDefault()};
_.v.onItemTap_=function(O){this.ytEndpointBehavior.onEndpointTap_(O)};
_.v.onLinkFocus_=function(O){try{var m=O.target}catch(B){}if(m){var G=m.querySelector("tp-yt-paper-item");G&&_.GS(this,"focus",function(){G.focus()})}};
_.v.onMenuClose_=function(){this.menuExpanded="false"};
_.v.isLabelIconActive_=function(O){return O==="true"};
_.v.computeHasSubtitle_=function(O){return!!O};
_.v.computeHrefForItem_=function(O){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(O))};
_.v.updateSelectedFromBinding=function(O){this.selected=O.detail.value};
_.vr.Object.defineProperties(X3.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
X3.prototype.onMenuClose_=X3.prototype.onMenuClose_;X3.prototype.onTap_=X3.prototype.onTap_;X3.prototype.onIronActivate_=X3.prototype.onIronActivate_;X3.prototype.onDropdownOpen=X3.prototype.onDropdownOpen;X3.prototype.dataChanged_=X3.prototype.dataChanged_;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],X3.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.yZ.YtEndpointBehavior),_.Y("design:type",Object)],X3.prototype,"ytEndpointBehavior",void 0);
_.c([_.g(),_.Y("design:type",Array)],X3.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],X3.prototype,"parentTrackingParams",void 0);_.c([_.g(),_.Y("design:type",Object)],X3.prototype,"selected",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],X3.prototype,"useLabel",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],X3.prototype,"useComputedAriaLabel",void 0);_.c([_.g(),_.Y("design:type",String)],X3.prototype,"icon",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],X3.prototype,"iconLabel",void 0);_.c([_.g(),_.Y("design:type",String)],X3.prototype,"ariaLabel",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],X3.prototype,"disabled",void 0);_.c([_.g({computed:"isMenuExpanded(data)"}),_.Y("design:type",String)],X3.prototype,"menuExpanded",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],X3.prototype,"closeOnActivate",void 0);
_.c([_.g({reflectToAttribute:!0,value:_.V("web_modern_buttons")}),_.Y("design:type",Boolean)],X3.prototype,"modernButtons",void 0);_.c([_.g(),_.Y("design:type",Object)],X3.prototype,"notificationData",void 0);_.c([_.T("ariaLabel, selected"),_.g(),_.Y("design:type",String),_.Y("design:paramtypes",[])],X3.prototype,"computedAriaLabel",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X3.prototype,"dataChanged_",null);
_.c([_.hG("paper-dropdown-open"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],X3.prototype,"onDropdownOpen",null);_.c([_.hG("iron-activate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],X3.prototype,"onIronActivate_",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],X3.prototype,"onTap_",null);
_.c([_.hG("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],X3.prototype,"onMenuClose_",null);_.c([_.DO({is:"yt-dropdown-menu",disableElementRegistration:!0})],X3);
_.y(X3,"yt-dropdown-menu",function(){if(dw$===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;YUu===void 0&&(YUu=document.createElement("template"));var B=YUu;G.call(m,B.content.cloneNode(!0),O.content.firstChild);dw$=O}O=dw$;return O},{mode:2});var f5=function(){var O=_.u.apply(this,arguments)||this;O.hasNotification=!1;return O};
_.X(f5,_.u);f5.prototype.computeId=function(O){return O};
f5.prototype.computeHorizontalAlign=function(O){return O?"right":"left"};
f5.prototype.computeAccessibilityLabel=function(O){var m,G;return((m=O.accessibility)==null?void 0:(G=m.accessibilityData)==null?void 0:G.label)||null};
f5.prototype.notificationDataChanged=function(){var O;this.hasNotification=!!this.notificationData&&!((O=this.data)==null?0:O.icon)};
f5.prototype.notificationDataChanged=f5.prototype.notificationDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.iL.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],f5.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],f5.prototype,"data",void 0);_.c([_.g({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",String)],f5.prototype,"id",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],f5.prototype,"isRightAligned",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],f5.prototype,"disabled",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],f5.prototype,"closeOnActivate",void 0);_.c([_.g(),_.Y("design:type",Object)],f5.prototype,"notificationData",void 0);_.c([_.g(),_.Y("design:type",Object)],f5.prototype,"hasNotification",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],f5.prototype,"useComputedAriaLabel",void 0);_.c([_.Tw("notificationData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],f5.prototype,"notificationDataChanged",null);_.c([_.DO({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],f5);
_.y(f5,"yt-sort-filter-sub-menu-renderer",function(){if(c5s===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;y5$===void 0&&(y5$=document.createElement("template"));var B=y5$;G.call(m,B.content.cloneNode(!0),O.content.firstChild);c5s=O}O=c5s;return O},{mode:2});var wtp=_.a(function(O){var m=O.data;var G=_.nH(function(){var H=m().onTap;(H=_.b(H,_.wu))&&_.KR().resolve(_.Mu).resolveCommand(H);return!1}),B=function(){return{sources:[{url:m().thumbnailUrl,
width:120,height:90}]}},Q=function(){return m().rating&&m().ratingA11yLabel&&m().reviewsCount&&m().reviewsCountA11yLabel};
return _.q("place-data-view-model",null,_.q(_.U,{cond:function(){return m().placeName&&m().placeCategory},
then:function(){return _.q("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":G},_.q(_.KH,{data:B,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.q(_.p3,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return m().onTap}},_.q("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return m().placeName}},function(){return m().placeName})),_.q("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.q(_.U,{cond:Q,
then:function(){return _.q("div",{class:_.bE("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.q("span",{class:"score",title:function(){return m().ratingA11yLabel}},function(){return m().rating}),_.q("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.q(_.T$,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.q("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return m().reviewsCountA11yLabel}},function(){return m().reviewsCount}))},
else:function(){return _.q("div",{class:_.bE("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.q("div",{class:_.bE("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.q("span",{class:"category",
title:function(){return m().placeCategory}},function(){return m().placeCategory}))))}}))},"ta");
wtp.idomCompat=!0;_.qi(wtp,"place-data-view-model",{props:{data:_.VZ}});var e1j=new _.Us("INLINE_PLAYBACK_HOOK_TOKEN");var Dwo=_.kg({sharedUi:_.v5e});_.sv=_.yX(Dwo)(Dwo.sharedUi,{animatedThumbnailEnabledSelector:function(O){return O.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(O){return O.inlinePreviewEnabled},
currentPageTypeSelector:function(O){return O.currentPageType},
currentPageSubTypeSelector:function(O){return O.currentPageSubType},
persistentPanelVisibleSelector:function(O){return O.persistentPanelVisible}});var sJC=function(O){this.setActiveSlideIndex=O;this.jobIds=[];this.isSlideshowPlaying=!1},Fe2=function(O,m){O.isSlideshowPlaying||(O.isSlideshowPlaying=!0,N1p(O),Pw2(O,m,0))},N1p=function(O){_.z$(_.ln,function(){O.setActiveSlideIndex(0)},1)},Pw2=function(O,m,G){O.jobIds.push(_.z$(_.ln,function(){var B=G<m-1?G+1:0;
O.setActiveSlideIndex(B);Pw2(O,m,B)},1800))};var A52=new _.Us("IMAGE_ON_LOAD_HANDLER_TOKEN");var OO$=_.a(function(O){return _.q("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.q(_.U,{cond:function(){var m;return(m=O.data())==null?void 0:m.thumbnail},
then:function(m){return _.q(_.KH,{data:m,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ua");_.mF8=_.a(function(O){var m=O.data;var G=O.lockupExperiments;O={};return _.q("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.q("div",{class:_.bE("ytThumbnailOverlayButtonViewModelButton",(O.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var B;return G&&((B=G())==null?void 0:B.useLegacySizedIconButton)},O))},_.q(_.u5,{data:function(){return m().overlayButton}},{buttonViewModel:function(B){return _.q(_.oF,{data:B.data,
buttonOverrides:function(){var Q;return G&&((Q=G())==null?0:Q.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"va");
_.mF8.idomCompat=!0;var Gx$=_.a(function(O){return _.q("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.nH(function(m){m.preventDefault();return!1})},_.q(_.u5,{data:function(){return O.data().buttons}},{toggleButtonViewModel:function(m){return _.q("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.q(_.BT,{data:m.data}))}}))},"wa");
Gx$.idomCompat=!0;var Bq8=_.a(function(O){var m=function(){var G;return((G=_.b(O.data().rendererContext,_.gD))==null?void 0:G.label)||""};
return _.q("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.q(_.U,{cond:function(){return O.data().image},
then:function(){return _.q("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.q(_.KH,{data:function(){return O.data().image},
alt:m}))}}),_.q(_.U,{cond:function(){return O.data().text},
then:function(){return _.q("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return O.data().text})}}))},"xa");var Qb3;Qb3=_.sv.animatedThumbnailEnabledSelector;_.hT=_.a(function(O){var m=[],G=function(){var z,J;return Rwp((z=O.width)==null?void 0:z.call(O),(J=O.height)==null?void 0:J.call(O))},B=_.KR().resolve(_.v7(A52)),Q=_.Al("yt-thumbnail-view-model",function(){m.push("elRef.value set");
var z;(z=O.playbackRef)==null||z.call(O,{thumbnailElRef:Q,thumbnail:O.data().image,thumbnailOverlays:O.data().overlays,thumbnailSize:G()})});
_.Ln(function(){m.push("onInit");_.LS(function(){m.push("onCleanup")})});
var H=_.wg(Qb3),M=function(){var z,J;return(J=(z=O.aspectRatio)==null?void 0:z.call(O))!=null?J:0},R=function(){return(O.data().image?_.oDY(O.data().image):M())<=1&&M()===0},x=function(){return R()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},t=function(){Q.value||_.ay(new _.j9("Thumbnail elRef.value is null",m.join("\n")));
B&&Q.value&&B(Q.value)},W=function(){var z,J;
return((z=O.hovered)==null?void 0:z.call(O))&&G()!=="large"&&((J=O.data().overlays)==null?void 0:J.some(function(n){return _.b(n,dxe)}))},Z={};
return _.q("yt-thumbnail-view-model",{class:_.bE("ytThumbnailViewModelHost",O.className,function(){return dlM(M())},function(){var z,J;
a:{var n=G(),I=(z=O.disableRounding)==null?void 0:z.call(O);z=(J=O.isClip)==null?void 0:J.call(O);if(!I&&!z)switch(n){case "large":J="ytThumbnailViewModelLarge";break a;case "small":J="ytThumbnailViewModelSmall";break a;default:J="ytThumbnailViewModelMedium";break a}J=void 0}return J},(Z.ytThumbnailViewModelCinematic=R,Z)),
style:_.hH({"background-color":function(){var z,J=R()?(z=O.data().backgroundColor)==null?void 0:z.lightTheme:void 0;return J?Oc(J,"1"):void 0}}),
el:Q},_.q(_.U,{cond:R,then:function(){return _.q("div",{class:"ytThumbnailViewModelBlurredImage"},_.q(_.KH,{data:function(){return O.data().image},
alt:"",contentMode:x,targetWidth:O.width,onload:t}))}}),_.q("div",{class:"ytThumbnailViewModelImage"},_.q(_.KH,{data:function(){return O.data().image},
alt:"",contentMode:x,targetWidth:O.width,onload:t}),null),_.q(_.u5,{data:function(){return W()?void 0:O.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:$wu,thumbnailOverlayBadgeViewModel:function(z){return _.q(M_3,{data:z.data,thumbnailSize:G,isClip:O.isClip})},
thumbnailBottomOverlayViewModel:function(z){return _.q(QJ3,{data:z.data,thumbnailSize:G,isClip:O.isClip})},
thumbnailOverlayFullViewModel:Bq8,thumbnailOverlayButtonViewModel:function(z){return _.q(_.mF8,{data:z.data,lockupExperiments:O.lockupExperiments})}}),_.q(_.u5,{data:function(){var z;
return((z=O.hovered)==null?0:z.call(O))?O.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(z){return _.q(QN,{data:z.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Gx$}),_.q(_.u5,{data:function(){var z;return((z=O.hovered)==null?0:z.call(O))&&H()?O.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:OO$}),_.q(_.U,{cond:O.isClip,then:function(){return _.q("div",{class:"ytPinkingNsHost"},_.q("svg",{class:"ytPinkingNsPinkingLeft"},_.q("defs",null,_.q("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.q("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.q("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.q("svg",{class:"ytPinkingNsPinkingRight"},_.q("defs",null,_.q("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.q("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.q("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ya");
_.hT.idomCompat={callbacks:{playbackRef:!0}};var HO8=_.a(function(O){var m=_.K(_.Wf(-1,void 0,"RW2Ole")),G=m.next().value,B=m.next().value;_.Ln(function(){var Q=new sJC(B);Fe2(Q,O.data().thumbnails.length);_.LS(function(){if(Q.isSlideshowPlaying){Q.isSlideshowPlaying=!1;for(var H=Q.jobIds,M=0,R=H.length;M<R;M++)_.ln.cancelJob(H[M]);Q.jobIds.length=0}})});
return _.q("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.q(_.u5,{data:function(){return O.data().thumbnails}},{thumbnailViewModel:function(Q,H){return _.q("div",{class:function(){var M=!O.data().primaryThumbnail,R=H(),x=G(),t=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
M&&R===0&&t.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");R<=x&&t.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return t.join(" ")}},_.q(_.hT,{data:Q.data,
disableRounding:O.disableRounding}))}}))},"za");
HO8.idomCompat=!0;var wBs=new _.Us("DWELL_DETECTOR_REGISTRY_TOKEN");var KQ9=_.a(function(O){var m=exs(O.triggeringElement),G=function(){return!!O.data().primaryThumbnail},B=function(){var H,M=(H=O.data())==null?void 0:H.maxHeight,R;
H=(R=O.maxHeight)==null?void 0:R.call(O);return M!=null&&H!=null?Math.min(M,H):H!=null?H:M},Q=function(){var H=B();
if(H){var M;if(G()&&(M=O.includeStackHeight)!=null&&M.call(O)){var R;M=((R=O.doubleStack)==null?0:R.call(O))?8:4}else M=0;H=H-M-1;if(!(H<0)){R=Math;M=R.ceil;var x,t;var W=r7I((t=(x=O.aspectRatio)==null?void 0:x.call(O))!=null?t:0);return M.call(R,H*W)}}};
return _.q("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.hH({height:function(){return B()?B()+"px":void 0},
width:function(){return Q()?Q()+"px":void 0}})},_.q(v2j,{stackEnabled:G,
thumbnailSize:function(){var H,M;return Rwp((H=O.width)==null?void 0:H.call(O),(M=O.height)==null?void 0:M.call(O))},
doubleStack:O.doubleStack,stackColor:function(){return O.data().stackColor},
includeStackHeight:O.includeStackHeight},_.q(_.u5,{data:function(){return O.data().primaryThumbnail}},{thumbnailViewModel:function(H){var M={};
return _.q(_.hT,{data:H.data,width:O.width,height:O.height,aspectRatio:O.aspectRatio,disableRounding:O.disableRounding,className:_.bE((M.ytCollectionThumbnailViewModelHostHasStacks=G,M)),hovered:O.hovered,playbackRef:O.playbackRef})}}),_.q(_.U,{cond:function(){var H;
return m()&&((H=O.data().thumbnails)==null?void 0:H.length)},
then:function(){return _.q("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.q(HO8,{data:O.data,disableRounding:function(){return!G()}}))}})))},"Aa");
KQ9.idomCompat={callbacks:{playbackRef:!0}};
var v2j=_.a(function(O){var m=O.children;var G=O.stackEnabled;var B=O.thumbnailSize;var Q=O.doubleStack;var H=O.stackColor;var M=O.includeStackHeight;var R,x=(R=_.KR().resolve(_.v7(_.B6)))==null?void 0:R();return _.q(_.U,{cond:G,then:function(){return _.q(Sjo,{data:function(){var t,W;return{experimentEnabled:!0,thumbnailSize:B(),doubleStack:Q==null?void 0:Q(),color:x?H==null?void 0:(t=H())==null?void 0:t.darkTheme:H==null?void 0:(W=H())==null?void 0:W.lightTheme,enableResponsiveMode:!1,includeStackHeight:M==
null?void 0:M()}}},m)},
else:function(){return m}})},"Ba");var $F9=new _.Us("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var gO;_.Ta={calledOnce:!0,state:"visible"};gO={calledOnce:!0,state:"hidden"};_.ud=_.a(function(O){var m=O.data;var G=O.customCommandResolver;var B=O.className;var Q=O.delayedClassName;var H=O.animationEntityKey;var M=O.isCompactWidth;var R=O.isContentWidth;O=_.K(_.Wf(!1,void 0,"pC3tUb"));var x=O.next().value,t=O.next().value,W=_.MN(H,""),Z=_.fJ(vjS,W),z=function(){var US,CN;return(CN=(US=Z())==null?void 0:US.value)!=null?CN:!1},J=function(){_.$n(_.jh("booleanEntity",W(),{key:W(),
value:!0}));d=void 0};
H=_.K(_.fH(z));var n=H.next().value,I=H.next().value;H=_.K(_.fH(z));var S=H.next().value,L=H.next().value;H=_.K(_.fH(function(){var US;return z()?(US=m().styleTransitionConfig)==null?void 0:US.destinationStyle:void 0}));
var C=H.next().value,P=H.next().value,w=function(){var US=Object.assign({},m(),C()&&{style:C()});var CN,oe,K$=US.label,n$=(CN=US.interaction)==null?void 0:(oe=CN.accessibility)==null?void 0:oe.label;CN=US.iconImage?US.label&&US.label.content?US.iconLeading?"leading":"trailing":"icon-only":void 0;US={formattedButtonText:K$,accessibilityLabel:n$,style:Pt5(US.style),type:Fr6(US.style),state:"active",size:Nfz(US.size),iconPosition:CN,disabled:!1,aTagConfig:sHI(US,G)};_.V("enable_desktop_vdcbg_components")&&
(US.focused=x());return US},d;
H=_.$V({visibilityCallback:function(US){var CN,oe=(CN=m().interaction)==null?void 0:CN.onFirstVisible;US&&oe&&_.PE(oe)},
showOption:_.Ta});var D=function(){return zw6(w(),!!m().iconImage)};
O={};var OS={};B=_.bE(function(){return"ytwAdButtonViewModelHost"},function(){return m().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var US=!!m().delayedAppearanceConfig,CN=n();
return US?CN?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var US=!!m().delayedAppearanceConfig,CN=S();
return US?CN?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!m().delayedAppearanceConfig||n()?Q==null?void 0:Q():""},(O.ytwAdButtonViewModelHostCompactWidth=function(){return M==null?void 0:M()},O),(OS.ytwAdButtonViewModelHostContentWidth=function(){return R==null?void 0:R()},OS),B!=null?B:"");
var rN=function(){var US,CN=(US=m().delayedAppearanceConfig)==null?void 0:US.delayedInvisibleSeconds;CN&&(d=_.Sh(_.ln,function(){I(!0);xO()},CN*1E3))},xO=function(){var US,CN=(US=m().delayedAppearanceConfig)==null?void 0:US.delayedVisibleSeconds;
CN&&(d=_.Sh(_.ln,function(){L(!0);XI()},CN*1E3))},XI=function(){var US,CN=(US=m().styleTransitionConfig)==null?void 0:US.styleTransitionSeconds,oe,K$=(oe=m().styleTransitionConfig)==null?void 0:oe.destinationStyle;
CN&&K$?d=_.Sh(_.ln,function(){P(K$);J()},CN*1E3):J()},Vf=function(){var US;
return(US=m().delayedAppearanceConfig)==null?void 0:US.transitionDurationSeconds};
_.Ln(function(){rN()});
_.LS(function(){d&&_.ln.cancelJob(d)});
return _.q("ad-button-view-model",{"on:focusin":_.nH(_.V("enable_desktop_vdcbg_components")?function(){var US=_.KR().resolve(_.v7(_.IF));US&&t(US.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.nH(_.V("enable_desktop_vdcbg_components")?function(){t(!1);return!1}:void 0),
class:B,el:_.Mi(H),style:_.hH({"transition-duration":function(){return Vf()?Vf()+"s":void 0}})},_.q(_.U,{cond:w,
then:function(){return _.q(_.C3,{data:w,icon:function(){return _.q(_.U,{cond:function(){return m().iconImage},
then:function(US){return _.q(_.KH,{data:US,alt:"",targetWidth:D,targetHeight:D,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Ca");var Mpj=_.a(function(O){var m=O.data;O=function(){return m().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var G=_.$V({visibilityCallback:function(H){var M,R=(M=m().interaction)==null?void 0:M.onFirstVisible;H&&R&&_.PE(R)},
showOption:_.Ta}),B={},Q={};return _.q("ad-button-group-view-model",{class:_.bE("ytwAdButtonGroupViewModelHost",(B.ytwAdButtonGroupViewModelHostCompactWidth=O,B)),el:_.Mi(G)},_.q("div",{class:_.bE("ytwAdButtonGroupViewModelHostSecondaryButton",(Q.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=O,Q))},_.q(_.u5,{data:function(){return m().secondaryAdButton}},{adButtonViewModel:function(H){return _.q(_.ud,{data:H.data})}})),_.q("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.q(_.u5,
{data:function(){return m().primaryAdButton}},{adButtonViewModel:function(H){return _.q(_.ud,{data:H.data})}})))},"Da");var rPC=_.a(function(O){var m=function(){var G;return((G=O.data())==null?void 0:G.answers)||[]};
return _.q("yt-survey-icons",{class:"ytSurveyIconsHost"},_.q("div",{class:"ytSurveyIconsHeader"},_.q("div",{class:"ytSurveyIconsTitle"},function(){var G;return(G=O.data())==null?void 0:G.text}),_.q("div",null,_.q(_.C3,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var G;(G=O.onDismiss)==null||G.call(O)}}},
iconName:"DISMISSAL"}))),_.q("div",null,_.q("div",{class:"ytSurveyIconsAnswers"},_.q(_.gi,{each:function(){return m()},
keyBy:"INDEX"},function(G,B){return _.q("div",null,_.q(_.C3,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var Q;(Q=O.onSelect)==null||Q.call(O,G(),B)}}},
icon:function(){return _.q(_.T$,{icon:function(){var Q,H;return(Q=G())==null?void 0:(H=Q.icon)==null?void 0:H.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.q("div",{class:"ytSurveyIconsAnswersText"},_.q("div",null,function(){return m().length?m()[0].text:""}),_.q("div",null,function(){return m().length?m()[m().length-1].text:""}))))},"Ea");var RDu=_.a(function(O){var m=_.Mi(_.yp(function(){var x;return(x=O.data())==null?void 0:x.rendererContext},void 0,void 0,void 0,!0)),G=_.K(_.Wf(!1,void 0,"GW0yjf")),B=G.next().value,Q=G.next().value,H=_.fJ(dhM,function(){var x;
return(x=O.data().keys)==null?void 0:x.surveyEntityKey}),M=_.fJ(wOM,function(){var x;
return(x=O.data().keys)==null?void 0:x.surveyStateEntityKey});
_.Fg("ytd-slimline-survey-show-action",function(){Q(!1)});
var R=function(){var x,t;var W=(x=M())==null?void 0:(t=x.questionStack)==null?void 0:t[0];if(W!==void 0){var Z,z;return(Z=H())==null?void 0:(z=Z.questions)==null?void 0:z[W]}};
G={};return _.q("yt-slimline-survey-view-model",{el:m,class:_.bE("ytSlimlineSurveyViewModelHost",(G.ytSlimlineSurveyViewModelCollapsed=function(){return B()},G))},_.q("div",{class:"ytSlimlineSurveyViewModelContainer"},_.q(_.U,{cond:function(){var x;
return((x=R())==null?void 0:x.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.q(rPC,{data:function(){return R()},
onSelect:function(x,t){var W,Z;return _.r(function(z){Q(!0);if(Z=(W=O.data())==null?void 0:W.onSelectRating)_.PE(Z),_.$n(WL8(t));_.ju(z)})},
onDismiss:function(){Q(!0);var x;var t=(x=H())==null?void 0:x.dismissalFeedbackToken;x=t?{feedbackEndpoint:{feedbackToken:t}}:void 0;x&&_.DB(x,{form:{element:m.value}})}})}})))},"Fa");var iOH=_.a(function(O){return _.q("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.q(_.u5,{data:function(){var m;return(m=O.data())==null?void 0:m.attachments}},{flexibleActionsViewModel:function(m){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(_.vo,{data:m.data,
layout:function(){var G;return((G=O.lockupStyle())==null?void 0:G.arrangement)===1?0:1},
justifyContentOverride:function(){var G;return((G=O.lockupStyle())==null?void 0:G.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(m){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(RDu,{data:m.data}))},
expandableMetadataViewModel:function(m){m=m.data;var G;return _.q("div",{class:_.bE("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(G=_.KR().resolve(_.v7($F9)))==null?void 0:G({data:m}))},
adButtonGroupViewModel:function(m){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(Mpj,{data:m.data}))},
adButtonViewModel:function(m){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(_.ud,{data:m.data,isCompactWidth:!0}))}}))},"Ga");var QJS=_.Rd("rich_grid_min_item_width",310),G7r=_.Rd("rich_grid_max_item_width",500);var xF2=_.a(function(O){var m=O.data;return _.q("br-nz-badge-shape",{class:_.bE(function(){return iep(m().brNzRatingBadgeType)}),
role:function(){return m().accessibilityText?"img":void 0},
"aria-label":function(){return m().accessibilityText}},function(){var G;
return(G=m())==null?void 0:G.text})},"Ha");_.jF=_.a(function(O){var m=function(){var G=O.data(),B,Q,H;if(G){var M=!((B=O.workaroundShortsIsThumbnailBadge)==null||!B.call(O));B=(Q=O.modern)==null?void 0:Q.call(O);Q=(H=O.numBadgesInRow)==null?void 0:H.call(O);var R;a:switch(G.badgeStyle){case "BADGE_OVERLAY":H=!0;break a;default:H=!1}G={type:M?17:xwO(G.badgeStyle),brNzRatingBadgeType:qUs(G.badgeStyle),text:G.badgeText,icon:G.iconName,isOverlay:H,modern:B||_.V("web_modern_badge_view_model"),numBadgesInRow:Q,accessibilityText:G.accessibilityLabel||
((R=_.b(G.rendererContext,_.gD))==null?void 0:R.label)}}else G=void 0;return G};
return _.q("yt-badge-view-model",{class:_.bE("ytBadgeViewModelHost",O.class)},_.q(_.I8,null,_.q(_.uz,{when:function(){var G;return!((G=m())==null||!G.brNzRatingBadgeType)}},function(){return _.q(xF2,{data:function(){return m()}})}),_.q(_.uz,{when:function(){return!!m()&&!m().brNzRatingBadgeType}},function(){return _.q(_.ra,{data:function(){return m()}})})))},"Ia");
_.jF.idomCompat=!0;var t_I,UwY;t_I=16/9;UwY=2/3;_.IU=_.a(function(O){var m=O.data;var G=O.className;var B=O.imageSizeConfig;var Q=O.notifyOnLoaded;var H=function(){return m().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},M=function(){var z;
return _.ki((z=m())==null?void 0:z.rendererContext)};
O={};O=(O.ytContentPreviewImageViewModelHost=!0,O.ytContentPreviewImageViewModelCircleImage=function(){return H()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},O.ytContentPreviewImageViewModelTappable=function(){return M()},O);
var R=function(){var z,J;return(J=(z=_.b(m().rendererContext,_.gD))==null?void 0:z.label)!=null?J:""},x=function(){return ZeS(m())},t=function(){var z=Wep(H(),m().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",B==null?void 0:B(),z1N(x()),m().layoutWidth,m().layoutHeight),J=Object.assign({},z);
z.width&&(J.width=Math.round(z.width));z.height&&(J.height=Math.round(z.height));z.maxWidth&&(J.maxWidth=Math.round(z.maxWidth));z.maxHeight&&(J.maxHeight=Math.round(z.maxHeight));return J},W=_.bF(function(){return t().height},void 0,"CxFlJb"),Z=_.bF(function(){return t().width},void 0,"lb8Jhd");
return _.q("yt-content-preview-image-view-model",{el:_.Mi(_.yp(function(){var z;return(z=m())==null?void 0:z.rendererContext})),
role:function(){return M()?"link":void 0},
tabindex:function(){return M()?0:void 0},
class:_.bE(G,O,function(){var z=H();var J=B==null?void 0:B();z=z==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||z==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||z==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||z==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(J==null?void 0:J.size)!=null&&J.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(J==null?void 0:J.size)!=null&&J.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return z}),
style:function(){var z=t(),J=[];z.width&&J.push("width: "+z.width+"px");z.height&&J.push("height: "+z.height+"px");z.maxWidth&&J.push("max-width: "+z.maxWidth+"px");z.maxHeight&&J.push("max-height: "+z.maxHeight+"px");z.fullWidth&&J.push("width: 100%");return J.join(";")}},_.q(_.U,{cond:x,
then:function(z){return _.q(_.KH,{data:z,alt:R,"data-disabled$":function(){return!R()},
notifyOnLoaded:Q,targetWidth:Z,targetHeight:W,preserveWidth:function(){return!!Z()},
preserveHeight:function(){return!!W()}})}}),_.q(_.u5,{data:function(){var z;
return(z=m())==null?void 0:z.overlays}},{thumbnailHoverOverlayViewModel:QN,
thumbnailOverlayButtonViewModel:_.mF8}))},"Ja");
_.IU.idomCompat=!0;var UFC=_.a(function(O){var m=O.data;var G=O.className;var B=O.useSmallLayout;O=O.useMediumText;var Q={};return _.q("yt-attribution-view-model",{el:_.Mi(_.yp(function(){var H;return(H=m())==null?void 0:H.rendererContext})),
class:_.bE(G,(Q.ytAttributionViewModelHost=!0,Q.ytAttributionViewModelMediumText=O,Q))},_.q(_.U,{cond:function(){return _.ki(m().rendererContext)},
then:function(){return _.q("button",{class:"ytAttributionViewModelTappable"},_.q(qVs,{data:m,useSmallLayout:B}))},
else:function(){return _.q(qVs,{data:m,useSmallLayout:B})}}))},"Ka"),qVs=_.a(function(O){var m=O.data;
var G=O.useSmallLayout;var B=function(){return{size:(G==null?0:G())?16:24}};
return _.q(_.Mr,null,_.q(_.u5,{data:function(){return m().contentPreviewImage}},{contentPreviewImageViewModel:function(Q){return _.q(_.IU,{data:Q.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:B})}}),_.q(_.u5,{data:function(){return m().badge}},{badgeViewModel:function(Q){return _.q(_.jF,{data:Q.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.q(_.U,{cond:function(){return m().text},
then:function(){return _.q(_.Jg,{text:function(){return m().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.q(_.U,{cond:function(){return m().suffix},
then:function(){return _.q(_.Jg,{text:function(){return m().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"La");
UFC.idomCompat=!0;var tpp,WQH,ZOH,zDs,JP_;tpp=_.a(function(O){var m=O.delimiter;var G=O.max;var B=O.index;var Q=O.isStandalone;return _.q(_.U,{cond:function(){return G()-1>B()},
then:function(){var H={};return _.q("span",{class:_.bE("yt-content-metadata-view-model__delimiter",(H["yt-content-metadata-view-model__delimiter--standalone"]=Q,H)),"aria-hidden":!0},m)}})},"Ma");
WQH=_.a(function(O){var m=O.metadataPart;var G=O.maxLines;return _.q(_.Jg,{text:function(){return m().text},
linkInheritColor:!0,className:function(){return J5Y(G())},
userInput:!0})},"Na");
ZOH=_.a(function(O){var m=O.metadataPart;var G=O.maxLines;return _.q(_.U,{cond:function(){return m().tooltip},
then:function(B){return _.q("span",{title:B,role:"tooltip"},_.q(WQH,{metadataPart:m,maxLines:G}))},
else:function(){return _.q(WQH,{metadataPart:m,maxLines:G})}})},"Oa");
zDs=_.a(function(O){var m=O.metadataPart;var G=O.isOverlay;var B=O.useMediumText;var Q=O.hideAvatar;var H=function(){return m().maxLines!==void 0?m().maxLines:1};
return _.q(_.Mr,null,_.q(_.u5,{data:function(){return m().avatarStack}},{avatarStackViewModel:function(M){return _.q(_.K5,{data:M.data,
isOverlay:G,useMediumText:B,hideAvatar:Q})},
badgeViewModel:_.jF}),_.q(_.U,{cond:function(){return m().leadingIcon},
then:function(M){return _.q(_.T$,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return M().name},
size:function(){return M().width}})}}),_.q(_.U,{cond:function(){return m().text},
then:function(){return _.q(ZOH,{metadataPart:m,maxLines:H})}}),_.q(_.U,{cond:function(){return m().icon},
then:function(M){return _.q(_.T$,{className:"yt-content-metadata-view-model__icon",icon:function(){return M().name},
size:function(){return M().width}})}}))},"Pa");
JP_=_.a(function(O){var m=O.metadataRow;var G=O.isInline;var B=O.delimiter;var Q=O.isOverlay;var H=O.useMediumText;var M=O.extensions;var R=function(){var t,W=M==null?void 0:(t=M())==null?void 0:t.lockupMetadata;t=m();var Z,z;return!!((W==null?0:(Z=W.byline)==null?0:Z.hideAvatar)&&((z=_.b(t,CLe))==null?void 0:z.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},x=function(){return m().metadataParts||[]};
O={};return _.q("div",{class:_.bE("yt-content-metadata-view-model__metadata-row",(O["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=G,O["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var t,W=M==null?void 0:(t=M())==null?void 0:t.lockupMetadata;t=m();var Z,z;return!!((W==null?0:(Z=W.byline)==null?0:Z.addPadding)&&((z=_.b(t,CLe))==null?void 0:z.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},O["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var t;
return!!(M==null?0:(t=M())==null?0:t.lockupMetadata)&&m().badges&&!m().metadataParts},O))},_.q(_.u5,{data:function(){return m().badges}},{badgeViewModel:function(t){return _.q("div",{class:"yt-content-metadata-view-model__badge"},_.q(_.jF,{data:t.data,
numBadgesInRow:function(){var W,Z;return((W=m())==null?void 0:(Z=W.badges)==null?void 0:Z.length)||0}}))}}),_.q(_.gi,{each:x},function(t,W){return _.q(_.Mr,null,_.q(zDs,{metadataPart:t,
isOverlay:Q,useMediumText:H,hideAvatar:R}),_.q(tpp,{delimiter:B,max:function(){return x().length},
index:W,isStandalone:!1}))}),_.q(_.U,{cond:function(){return m().isSpacerRow&&!G()},
then:function(){return _.q("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Qa");
_.p5=_.a(function(O){O=_.ru(O,{layout:0,isOverlay:!1});var m=O.data,G=O.layout,B=O.isOverlay,Q=O.useMediumText,H=O.extensions,M=function(){return G()===0},R=function(){var t;
return((t=m().metadataRows)==null?void 0:t.filter(function(W){var Z,z=H==null?void 0:(Z=H())==null?void 0:Z.lockupMetadata,J,n;Z=!!((z==null?0:(J=z.description)==null?0:J.hideDescription)&&((n=_.b(W,CLe))==null?void 0:n.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var I,S;return!((z==null?0:(I=z.spacer)==null?0:I.hideSpacer)&&((S=_.b(W,CLe))==null?void 0:S.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||Z)}))||[]},x={};
return _.q("yt-content-metadata-view-model",{class:_.bE(O.className,"yt-content-metadata-view-model",(x["yt-content-metadata-view-model--inline"]=M,x["yt-content-metadata-view-model--tappable"]=function(){return _.ki(m().rendererContext)},x["yt-content-metadata-view-model--medium-text"]=Q,x)),
el:_.Mi(_.yp(function(){return m().rendererContext}))},_.q(_.gi,{each:R},function(t,W){return _.q(_.Mr,null,_.q(JP_,{metadataRow:t,
isInline:M,delimiter:function(){return m().delimiter},
isOverlay:B,useMediumText:Q,extensions:H}),_.q(_.U,{cond:function(){return M()&&!t.isSpacerRow},
then:function(){return _.q(tpp,{delimiter:function(){return m().delimiter},
max:function(){return R().length},
index:W,isStandalone:!0})}}))}))},"Ra");
_.p5.idomCompat=!0;var Vpj=_.a(function(O){var m={};return _.q("yt-lockup-metadata-view-model",{class:_.bE("yt-lockup-metadata-view-model",function(){a:{var G=O.lockupStyle();if(G==null?0:G.isOverlay)G="yt-lockup-metadata-view-model--overlay";else switch(G==null?void 0:G.arrangement){case 1:G="yt-lockup-metadata-view-model--horizontal";break a;default:G="yt-lockup-metadata-view-model--vertical"}}return G},function(){a:{var G=O.lockupStyle();
if(G==null?0:G.isTiny)G="yt-lockup-metadata-view-model--tiny";else switch(G==null?void 0:G.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":G="yt-lockup-metadata-view-model--compact";break a;default:G="yt-lockup-metadata-view-model--standard"}}return G},(m["yt-lockup-metadata-view-model--overlay"]=function(){var G;
return(G=O.lockupStyle())==null?void 0:G.isOverlay},m["yt-lockup-metadata-view-model--card"]=function(){var G;
return(G=O.lockupStyle())==null?void 0:G.isCard},m["yt-lockup-metadata-view-model--centered"]=function(){var G;
return(G=O.lockupStyle())==null?void 0:G.isCentered},m["yt-lockup-metadata-view-model--typography-bump"]=function(){var G;
return(G=O.lockupStyle())==null?void 0:G.typographyBump},m["yt-lockup-metadata-view-model--legacy-typography"]=function(){var G;
return(G=O.lockupStyle())==null?void 0:G.useLegacyTypography},m["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var G;
return(G=O.lockupStyle())==null?void 0:G.useRichGridLegacyTypography},m))},_.q(_.u5,{data:function(){return O.data().image}},{avatarStackViewModel:function(G){return _.q("div",{class:"yt-lockup-metadata-view-model__avatar"},_.q(_.K5,{data:G.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(G){return _.q("div",{class:"yt-lockup-metadata-view-model__avatar"},_.q(_.HP,{data:G.data}))},
decoratedAvatarViewModel:function(G){return _.q("div",{class:"yt-lockup-metadata-view-model__avatar"},_.q(_.vP,{data:G.data}))}}),_.q("div",{class:"yt-lockup-metadata-view-model__text-container"},_.q("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var G;return(G=O.data().title)==null?void 0:G.content}},_.q(_.U,{cond:function(){return O.data().title},
then:function(G){return _.q(_.p3,{command:O.lockupCommand,className:"yt-lockup-metadata-view-model__title",ariaLabel:O.lockupAccessibilityLabel},_.q(_.Jg,{text:G,userInput:!0}))}})),_.q("div",{class:"yt-lockup-metadata-view-model__metadata"},_.q(_.u5,{data:function(){return O.data().metadata}},{contentMetadataViewModel:function(G){return _.q(_.p5,{data:G.data,
layout:1,useMediumText:function(){var B,Q;return((B=O.lockupStyle())==null?void 0:B.typographyBump)||((Q=O.lockupStyle())==null?void 0:Q.useRichGridLegacyTypography)},
extensions:function(){var B,Q,H,M;return{lockupMetadata:{byline:{hideAvatar:((B=O.lockupStyle())==null?void 0:B.arrangement)===0,addPadding:((Q=O.lockupStyle())==null?void 0:Q.arrangement)===1},description:{hideDescription:!((H=O.lockupStyle())==null||!H.compactMetadata)},spacer:{hideSpacer:!((M=O.lockupStyle())==null||!M.compactMetadata)}}}}})}})),_.q(_.u5,{data:function(){return O.data().attribution}},{attributionViewModel:function(G){return _.q("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.q(UFC,{data:G.data,
useSmallLayout:!0}))}})),_.q("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.q(_.u5,{data:function(){return O.data().menuButton}},{buttonViewModel:function(G){return _.q(_.oF,{data:G.data,
buttonOverrides:function(){var B;return((B=O.lockupStyle())==null?0:B.isOverlay)?{style:"overlay"}:void 0}})}})))},"Sa");
Vpj.idomCompat=!0;var bOj=_.a(function(O){var m=_.Al("notification-multi-action-renderer");_.EZ(function(){requestAnimationFrame(function(){_.mP(m.value)})});
var G={},B={},Q={};return _.q("notification-multi-action-renderer",{class:_.bE("ytNotificationMultiActionRendererHost",(G.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var H;return(H=O.useLegacyShelfStyle)==null?void 0:H.call(O)},G)),
el:m},_.q("span",{"aria-live":"polite",class:_.bE("ytNotificationMultiActionRendererTextContainer",(B.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var H;return(H=O.useLegacyShelfStyle)==null?void 0:H.call(O)},B))},_.q(_.Jg,{text:function(){return O.data().responseText}})),_.q("div",{class:_.bE("ytNotificationMultiActionRendererButtonContainer",(Q.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var H;
return(H=O.useLegacyShelfStyle)==null?void 0:H.call(O)},Q))},_.q(_.u5,{data:function(){var H;
return(H=O.data().buttons)==null?void 0:H.map(function(M){if(M=M.buttonRenderer){var R,x=Object,t=x.assign,W=(R=M.icon)==null?void 0:R.iconType;R=(R=M.command||M.serviceEndpoint||M.navigationEndpoint)?{innertubeCommand:R}:void 0;M={buttonViewModel:t.call(x,{},{iconName:W,onTap:R,trackingParams:M.trackingParams,titleFormatted:M.text?_.cE(M.text):void 0},beN(M))}}else M=void 0;return M}).filter(function(M){return!!M})}},{buttonViewModel:function(H,M){return _.q("div",null,_.q(_.oF,{data:H.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var R;return((R=O.useModernStyles)==null?0:R.call(O))?{type:M()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ta");var n23=_.a(function(O){var m=_.Al("notification-text-renderer");_.EZ(function(){requestAnimationFrame(function(){_.mP(m.value)})});
return _.q("notification-text-renderer",{el:m,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.q(_.Jg,{text:function(){return O.data().successResponseText}}))},"Ua");_.SF=_.a(function(O){var m=_.fJ(xSr,function(){var B;return n$6((B=O.contentId)==null?void 0:B.call(O))}),G=function(){var B;
return _.b((B=m())==null?void 0:B.command,_.aC)};
return _.q(_.U,{cond:function(){var B;if(!(B=G())){var Q;B=_.b((Q=m())==null?void 0:Q.command,GZ2)}return B},
then:function(){return _.q(_.U,{cond:G,then:function(){var B={};return _.q("div",{class:_.bE("ytDismissibleItemReplacedContent",function(){var Q;return Xtr((Q=O.aspectRatio)==null?void 0:Q.call(O))})},_.q("div",{class:_.bE((B.ytDismissibleItemAspectRatioContainer=function(){var Q;
return((Q=O.aspectRatio)==null?void 0:Q.call(O))!==void 0},B))},_.q(_.u5,{data:function(){var Q;
return(Q=G())==null?void 0:Q.item}},{notificationMultiActionRenderer:function(Q){return _.q(bOj,{data:Q.data,
useModernStyles:O.useModernStyle,useLegacyShelfStyle:O.useLegacyShelfStyle})},
notificationTextRenderer:n23})))}})},
else:O.children})},"Va");_.X5C=_.a(function(O){var m=O.data;var G=O.customCommandResolver;O=_.Mi(_.$V({visibilityCallback:function(H){var M,R=(M=m().interaction)==null?void 0:M.onFirstVisible;H&&R&&_.PE(R)},
showOption:_.Ta}));var B=function(){var H;return((H=m().interaction)==null?0:H.onTap)?function(M){var R;Dlr(M,(R=m().interaction)==null?void 0:R.onTap,G)}:void 0},Q=function(){var H,M=m(),R=B(),x=(H=_.b(m().rendererContext,_.gD))==null?void 0:H.label;
a:switch(M.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":H=1;break a;default:H=0}return{size:T1M(M.size),type:H,onTap:R,accessibilityText:x}};
return _.q("ad-avatar-view-model",{class:function(){var H;return((H=m().interaction)==null?0:H.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:O},_.q(_.U,{cond:function(){return m().image},
then:function(H){return _.q(Kej,{data:Q,image:H})}}))},"Wa");_.EM=_.a(function(O){var m=_.ru(O,{hasDot:!1,usedInMasthead:!1}),G=Object.assign({},m),B=m.data,Q=m.hasDot;O=m.customCommandResolver;var H=m.usedInMasthead,M=(delete G.data,delete G.hasDot,delete G.customCommandResolver,delete G.usedInMasthead,G);m=function(){return B().style};
m!==void 0&&m!==null||_.Dy(Error("Mh"));O=_.wR(function(){return B().interaction},O);
return _.q("ad-badge-view-model",{class:_.bE(function(){var R;return((R=B().interaction)==null?0:R.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var R=M.adRenderingContextType(),x=H();
B();return R!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||x?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.Mi(O)},_.q(_.ra,{data:function(){var R;B();return{type:2,text:(R=B().label)==null?void 0:R.content,adsIncludeDot:Q(),isOverlay:B().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xa");var f49;_.L5=_.a(function(O){var m=O.data;var G=O.customCommandResolver;var B=O.adRenderingContextType;return _.q("ad-details-line-view-model",{class:function(){var Q;return((Q=m().interaction)==null?0:Q.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.Mi(_.$V({visibilityCallback:function(Q){var H,M=(H=m().interaction)==null?void 0:H.onFirstVisible;Q&&M&&_.PE(M)},
showOption:_.Ta}),_.wR(function(){return m().interaction},G))},_.q(_.U,{cond:function(){return m().style},
then:function(Q){return _.q(_.gi,{each:function(){var H;return((H=m())==null?void 0:H.attributes)||[]},
keyBy:"INDEX"},function(H){return _.q(f49,{attribute:H,style:Q,adRenderingContextType:function(){return B()}})})}}))},"Ya");
f49=_.a(function(O){var m=O.attribute;var G=O.style;var B=O.adRenderingContextType;return _.q(_.U,{cond:function(){return m().text},
then:function(Q){return _.q(_.Jg,{text:Q,className:function(){var H=B();G();return H==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Za");var hDH=_.a(function(O){var m=O.data;var G=O.typographyBump;var B=function(){return m().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
O={};return _.q(_.Mr,null,_.q("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.q(_.Jg,{text:function(){return m().headline},
className:_.bE("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(O.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return B==null?void 0:B()},O.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(G==null?void 0:G())&&!(B==null?0:B())},O)),
linkInheritColor:!0}),_.q(_.U,{cond:function(){return m().description},
then:function(Q){var H={};return _.q(_.Jg,{text:Q,className:_.bE("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(H.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return B==null?void 0:B()},H.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(G==null?void 0:G())&&!(B==null?0:B())},H)),
linkInheritColor:!0})}}),_.q(_.U,{cond:function(){return m().secondaryDescription},
then:function(Q){var H={};return _.q(_.Jg,{text:Q,className:_.bE("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(H.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return G==null?void 0:G()},H)),
linkInheritColor:!0})}}),_.q("div",{class:function(){return B()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.q(_.U,{cond:function(){return m().adAvatar},
then:function(){return _.q("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.q(_.u5,{data:function(){return m().adAvatar}},{adAvatarViewModel:_.X5C}))}}),_.q(_.u5,{data:function(){return m().adBadge}},{adBadgeViewModel:function(Q){return _.q(_.EM,{data:Q.data,
hasDot:function(){return!!m().adDetailsLine},
adRenderingContextType:function(){return m().adRenderingContextType}})}}),_.q(_.u5,{data:function(){return m().adDetailsLine}},{adDetailsLineViewModel:function(Q){return _.q(_.L5,{data:Q.data,
adRenderingContextType:function(){return m().adRenderingContextType}})}}))),_.q("div",{class:function(){return B()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.q(_.u5,{data:function(){return m().menu}},{buttonViewModel:function(Q){return _.q(_.oF,{data:Q.data,
buttonOverrides:function(){a:switch(m().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var H="S";break a;default:H="M"}return{size:H}}})}})))},"$a"),Tqs=_.a(function(O){var m=O.data;
var G=O.noBottomMargin;var B=O.useVideoLockupTopPadding;var Q=O.typographyBump;O={};O=_.bE("ytwFeedAdMetadataViewModelHostMetadata",(O.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return G==null?void 0:G()},O.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return B==null?void 0:B()},O));
var H=function(){return m().adBadge};
H!==void 0&&H!==null||_.Dy(Error("Nh"));H={};var M={};return _.q(_.Mr,null,_.q(_.U,{cond:function(){return m().adAvatar},
then:function(){return _.q("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.q(_.u5,{data:function(){return m().adAvatar}},{adAvatarViewModel:function(R){return _.q(_.X5C,{data:R.data})}}))}}),_.q("div",{class:O},_.q("div",{class:_.bE("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(H.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return Q==null?void 0:Q()},H.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(Q==
null?void 0:Q())&&_.V("web_enable_typography_bump_v2")},H))},_.q(_.Jg,{text:function(){return m().headline},
linkInheritColor:!0})),_.q(_.U,{cond:function(){return m().description},
then:function(R){return _.q(_.Jg,{text:R,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.q("div",{class:function(){return m().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.V("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.q(_.u5,{data:function(){return m().adBadge}},
{adBadgeViewModel:function(R){return _.q(_.EM,{data:R.data,
hasDot:function(){return!!m().adDetailsLine},
adRenderingContextType:function(){return m().adRenderingContextType}})}}),_.q(_.u5,{data:function(){return m().adDetailsLine}},{adDetailsLineViewModel:function(R){return _.q(_.L5,{data:R.data,
adRenderingContextType:function(){return m().adRenderingContextType}})}})),_.q(_.U,{cond:function(){return m().secondaryDescription},
then:function(R){return _.q(_.Jg,{text:R,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.q("div",{class:_.bE("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(M.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return B==null?void 0:B()},M))},_.q(_.u5,{data:function(){return m().menu}},{buttonViewModel:_.oF})))},"ab"),C5=_.a(function(O){var m=O.data;
var G=O.noBottomMargin;var B=O.listenToTapEvent;var Q=O.setTouchEndHandler;var H=O.useVideoLockupTopPadding;var M=O.typographyBump;O=_.$V({visibilityCallback:function(Z){var z,J=(z=m().interaction)==null?void 0:z.onFirstVisible;Z&&J&&_.PE(J)},
showOption:_.Ta});var R=_.wR(function(){return m().interaction},void 0,function(){return B==null?void 0:B()}),x=_.K(_.Wf(!1,void 0,"a2FSrb")),t=x.next().value,W=x.next().value;
x=_.nH(function(Z){(Q==null?0:Q())&&!t()&&(Z.currentTarget.click(),W(!0),setTimeout(function(){W(!1)},100));
return!1});
return _.q("feed-ad-metadata-view-model",{class:function(){var Z;return((Z=m().interaction)==null?0:Z.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.Mi(O,R),"on:touchend":x},_.q(_.I8,null,_.q(_.uz,{when:function(){return m().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.q(hDH,{data:m,
typographyBump:M})}),_.q(_.uz,{when:function(){return m().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.q(Tqs,{data:m,
noBottomMargin:G,useVideoLockupTopPadding:H,typographyBump:M})})))},"bb");var g2u,uf_;g2u=_.sv.inlinePreviewEnabledSelector;_.oU=_.a(function(O){return _.q("yt-lockup-view-model",{class:_.bE(O.className)},_.q(_.SF,{contentId:function(){return O.data().contentId},
useModernStyle:!0,aspectRatio:function(){var m,G;return((m=O.containerType)==null?void 0:m.call(O))!==3?r5s(O.data().contentType,(G=O.force16By9ThumbnailAspectRatio)==null?void 0:G.call(O)):void 0}},function(){return _.q(uf_,Object.assign({},O))}))},"cb");
uf_=_.a(function(O){O=_.ru(O,{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 m=O.data,G=O.containerLayoutConfig,B=O.containerType,Q=O.sizing,H=O.protectBackground,M=O.typographyBump,R=O.force16By9ThumbnailAspectRatio,x=O.thumbnailFixedWidth,t=O.thumbnailTargetWidth,W=O.lockupExperiments,Z=O.elementsPerRow;
O=_.Mi(_.yp(function(){var US;return(US=m())==null?void 0:US.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 z=_.wg(g2u),J=_.KR().resolve(_.v7(e1j)),n=J?{}:void 0,I=function(){var US,CN,oe;return(oe=(CN=_.b((US=m())==null?void 0:US.rendererContext,_.gD))==null?void 0:CN.label)!=null?oe:void 0},S=function(){var US=G==null?void 0:G(),CN;
if(US==null?0:US.containerType){var oe=(CN=m())==null?void 0:CN.contentType;CN=W();var K$=M(),n$=t(),qe=H();US=Object.assign({},R1M(Kee(US),Her(US.responsiveSize),K$,oe,US.force16By9ThumbnailAspectRatio,n$,qe,CN),{thumbnailFixedWidth:US.contentPreviewWidth})}else US=R1M(B(),Q(),M(),(oe=m())==null?void 0:oe.contentType,R(),t(),H(),W());return US};
J&&n&&J({enabled:function(){return z()},
itemPlaybackModel:function(){return m().itemPlayback},
thumbnailElRef:function(){return n.thumbnailElRef},
containerElRef:O,options:function(){var US,CN=(US=_.b(m().metadata,_.oo2))==null?void 0:US.endorsement;US=n.thumbnailOverlays||[];var oe;!CN||((oe=W())==null?0:oe.onFocusEffect)||US.push(CN);var K$,n$;return{thumbnail:n.thumbnail,thumbnailOverlays:US,accessibilityText:I(),thumbnailSize:n.thumbnailSize,enableRounding:S().isCollection,containPlayerWithinThumbnail:S().isCollection,trackingParams:(K$=_.b(m().rendererContext,_.jg))==null?void 0:(n$=K$.loggingDirectives)==null?void 0:n$.trackingParams}}});
var L=0;J=_.K(_.Wf(!1,void 0,"HzAs3"));var C=J.next().value,P=J.next().value;J=_.K(_.Wf(!1,void 0,"ujOXud"));var w=J.next().value,d=J.next().value;J=_.nH(function(){var US=z()&&m().itemPlayback;w()?(_.ln.cancelJob(L),L=_.ln.addJob(function(){P(!US)},8,32)):P(!US);
return!0});
var D=_.nH(function(){L&&(_.ln.cancelJob(L),L=0);P(!1)});
_.LS(function(){L&&(_.ln.cancelJob(L),L=0)});
var OS=h1s(function(){d(!0)}),rN=OS.touchFeedbackEvents,xO=OS.touchFeedbackOnPointerUp,XI=OS.touchFeedbackOnPointerDown;
OS=OS.touchFeedbackOnPointerLeave;var Vf={};return _.q(_.Mr,null,_.q("div",{el:O,class:_.bE("yt-lockup-view-model",function(){a:{var US=S();if(US.isOverlay)US="yt-lockup-view-model--overlay";else switch(US.arrangement){case 1:US="yt-lockup-view-model--horizontal";break a;default:US="yt-lockup-view-model--vertical"}}return US},function(){a:{var US=S();
if(US.isOverlay)US="yt-lockup-view-model--overlay";else{switch(US.collectionStackNumber){case 1:US="yt-lockup-view-model--collection-stack-1";break a;case 2:US="yt-lockup-view-model--collection-stack-2";break a}US=void 0}}return US},function(){var US;
return _.V_O((US=m())==null?void 0:US.contentId)},(Vf["yt-lockup-view-model--card"]=function(){return S().isCard},Vf["yt-lockup-view-model--compact"]=function(){return S().isTiny||S().sizing!=="STANDARD"},Vf["yt-lockup-view-model--protect-background"]=H,Vf["yt-lockup-view-model--add-margins"]=function(){return S().addMarginForFullbleed},Vf["yt-lockup-view-model--centered"]=function(){return S().isCentered},Vf["yt-lockup-view-model--fullbleed"]=function(){return S().fullbleed},Vf["yt-lockup-view-model--single-column-grid"]=
function(){return Z()===1&&B()===2},Vf["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var US;
return(US=W())==null?void 0:US.useRichGridLegacyMargin},Vf)),
"on:mousedown":XI,"on:mouseleave":D,"on:mouseup":xO,"on:mouseover":J,"on:touchstart":XI,"on:touchend":xO,"on:pointerleave":OS},_.q(_.S1,{model:function(){a:{switch(S().collectionStackNumber){case 1:var US=8;break a;case 2:US=12;break a}US=void 0}return{triggerEvents:!0,customTopExtend:US,thumbnailSize:(n==null?void 0:n.thumbnailSize)||"small"}},
pointerDownEvent:rN.pointerDownEvent,pointerUpEvent:rN.pointerUpEvent,pointerLeaveEvent:rN.pointerLeaveEvent}),_.q(_.p3,{command:function(){var US;return _.a_((US=m())==null?void 0:US.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return x()&&S().arrangement===1?"width: "+x():""}},_.q(_.u5,{data:function(){var US;
return(US=m())==null?void 0:US.contentImage}},{thumbnailViewModel:function(US){return _.q(_.hT,{data:US.data,
aspectRatio:function(){return S().aspectRatio},
disableRounding:function(){return S().disableRounding},
width:t,hovered:C,isClip:function(){var CN;return((CN=m())==null?void 0:CN.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:YjM(n),lockupExperiments:function(){return W()}})},
collectionThumbnailViewModel:function(US){return _.q(KQ9,{data:US.data,aspectRatio:function(){return S().aspectRatio},
disableRounding:function(){return S().disableRounding},
width:t,doubleStack:function(){return S().collectionStackNumber===2},
hovered:C,playbackRef:YjM(n)})},
decoratedAvatarViewModel:_.vP})),_.q("div",{class:"yt-lockup-view-model__metadata"},_.q(_.u5,{data:function(){var US;return(US=m())==null?void 0:US.metadata}},{lockupMetadataViewModel:function(US){return _.q(Vpj,{data:US.data,
lockupStyle:S,lockupCommand:function(){var CN;return _.a_((CN=m())==null?void 0:CN.rendererContext)},
lockupAccessibilityLabel:function(){return I()}})},
feedAdMetadataViewModel:function(US){return _.q(C5,{data:US.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:M})}}),_.q(_.u5,{data:function(){var US;
return(US=m())==null?void 0:US.attachmentSlot}},{lockupAttachmentsViewModel:function(US){return _.q(iOH,{data:US.data,
lockupStyle:S})}}))),_.q(_.u5,{data:function(){var US;
return(US=m())==null?void 0:US.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(US){return _.q(iOH,{data:US.data,
lockupStyle:S})}}))},"db");
_.oU.idomCompat=!0;_.qi(_.oU,"yt-lockup-view-model",{props:{data:_.VZ,containerLayoutConfig:_.VZ,containerType:_.VZ,sizing:_.VZ,protectBackground:_.VZ,typographyBump:_.VZ,thumbnailFixedWidth:_.VZ,thumbnailTargetWidth:_.VZ,force16By9ThumbnailAspectRatio:_.VZ,className:_.VZ,lockupExperiments:_.VZ,elementsPerRow:_.VZ}});var IAI,jb9=_.a(function(O){var m=_.ru(O,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),G=m.text,B=m.alwaysShowTruncationText;O=m.truncationText;var Q=m.onTextClick,H=m.maxLines,M=m.disableTextMask,R=m.textStyle,x=m.accessibilityLabel,t=m.textSize,W=m.alwaysTruncateAtMaxLines,Z=m.expandOnClick;m=_.K(_.Wf(!1,void 0,"EzA1q"));var z=m.next().value,J=m.next().value;m=_.nH(function(){Z()&&J(!z());Q==null||Q()});
var n=function(){a:switch(t()){case "medium":var D=2;break a;case "large":D=2.2;break a;default:D=1.8}return D},I=E$6(G,function(){return z()?Infinity:H()},n,M,W,z),S=I.isTruncated;
G=I.displayText;W=I.contentRef;var L=I.hiddenRef,C=I.placeholderTruncationTextRef,P=I.hiddenTruncationTextRef;I=I.truncationTextRef;var w={},d={};return _.q("truncated-text",{class:_.bE((w["yt-truncated-text"]=!0,w["yt-truncated-text--overlay"]=function(){return R()==="overlay"},w["yt-truncated-text--medium-text"]=function(){return t()==="medium"},w["yt-truncated-text--large-text"]=function(){return t()==="large"},w["yt-truncated-text--primary-text"]=function(){return R()==="primary-text"},w)),
"on:click":m,style:function(){return"line-height: "+n()+"rem;"}},_.q("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:W,style:function(){return z()?"":"max-height: "+H()*n()+"rem;"}},_.q(_.Jg,{text:G}),_.q("button",{"aria-disabled":!0,
disabled:!0,class:"yt-truncated-text__inline-button",el:C,style:function(){return"line-height: "+n()+"rem;"}},_.q(_.Jg,{text:O}))),_.q("truncated-text-content",{class:_.bE("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:L,style:function(){return z()?"":"max-height: "+H()*n()+"rem;"},
"aria-hidden":"true"},_.q(_.Jg,{text:G}),_.q("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:P,style:function(){return"line-height: "+n()+"rem;"}},_.q(_.Jg,{text:O}))),_.q("button",{"aria-label":x,
class:_.bE((d["yt-truncated-text__absolute-button"]=function(){return!M()},d["yt-truncated-text__bottom-button"]=function(){return M()},d["yt-truncated-text--hidden"]=function(){return!(!z()&&(B!=null&&B()||S()))},d)),
el:I,style:function(){return"line-height: "+n()+"rem;"}},_.q(_.Jg,{text:O})))},"eb");
jb9.idomCompat={callbacks:{onTextClick:!0}};var SVH=_.a(function(O){var m=O.data;O=O.className;var G=_.bF(function(){return Cwr(m())},void 0,"uDhDke"),B=_.q(_.Mr,null,_.q(_.U,{cond:function(){return m().heroText||m().image},
then:function(){return _.q(I4U,{data:m})}}),_.q(p53,{data:m,
sizeSmall:function(){return m().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.q("yt-video-attribute-view-model",{class:O},_.q("div",{class:function(){var Q=m();a:switch(Q.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var H="yt-video-attribute-view-model--vertical";break a;default:H="yt-video-attribute-view-model--horizontal"}a:switch(Q.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(Q.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var R=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":R="yt-video-attribute-view-model--image-avatar";break a;default:R=""}a:switch(Q.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var x="yt-video-attribute-view-model--metadata-header";break a;default:x=""}a:switch(Q.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var t="yt-video-attribute-view-model--container-card";break a;default:t=""}return["yt-video-attribute-view-model",H,M,
R,x,t,Cwr(Q)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.hH({"background-color":function(){var Q=m();if(Q.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var H="";else{H=Q.lightColorPalette;Q=Q.darkColorPalette;var M,R=((M=_.KR().resolve(_.v7(_.B6)))==null?0:M())&&Q?Q:H;H=(H=R==null?void 0:R.section2Color)?_.AV(H):""}return H}})},_.q(_.U,{cond:G,
then:function(){return _.q(_.p3,{className:"yt-video-attribute-view-model__content-container",command:G,role:"group",ariaLabel:function(){return m().title}},B)},
else:function(){return _.q("div",{class:"yt-video-attribute-view-model__content-container"},B)}})))},"fb");
SVH.idomCompat=!0;var I4U=_.a(function(O){var m=O.data;var G,B=(G=_.KR().resolve(_.v7(_.B6)))==null?void 0:G(),Q=function(){return B&&m().darkThemeImage?m().darkThemeImage:m().image},H=_.bF(function(){return o$r(m())},void 0,"UDqj0b");
return _.q("div",{class:"yt-video-attribute-view-model__hero-section"},_.q(_.I8,null,_.q(_.uz,{when:Q},function(){return _.q(_.KH,{data:function(){return Q()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.q(_.uz,{when:function(){return m().heroText}},function(){return _.q("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.q("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return m().heroText}))})),_.q(_.U,{cond:function(){return m().overflowMenuOnTap},
then:function(){return _.q("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.q(_.C3,{data:H,iconName:"MORE_VERT"}))}}))},"gb");
I4U.idomCompat=!0;var p53=_.a(function(O){var m=O.data;O=O.sizeSmall;var G=function(){return m().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},B=_.bF(function(){return NN(_.sz({innertubeCommand:Cwr(m())}))?"link":Cwr(m())?"button":"group"},void 0,"e2MmYe"),Q={};
return _.q("div",{class:_.bE("yt-video-attribute-view-model__metadata",(Q["yt-video-attribute-view-model--small-font"]=O,Q)),role:B},_.q("h1",{class:"yt-video-attribute-view-model__title"},function(){return m().title}),_.q(_.U,{cond:function(){return m().subtitle},
then:function(){return _.q("h4",{class:"yt-video-attribute-view-model__subtitle"},_.q(_.U,{cond:G,then:function(){return _.q(jb9,{text:function(){return Ler(m().subtitle)},
truncationText:function(){return Ler(m().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.q("span",null,function(){return m().subtitle})}}))}}),_.q(_.U,{cond:function(){return m().secondarySubtitle},
then:function(H){return _.q("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.q(_.Jg,{text:function(){var M=H();if(M!=null&&M.attachmentRuns){for(var R=[],x=_.K(M.attachmentRuns),t=x.next();!t.done;t=x.next())t=t.value,t.element&&R.push(Object.assign({},t,{element:Object.assign({},t.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));M=Object.assign({},M,{attachmentRuns:R})}return M}}))}}),_.q(_.u5,
{data:function(){return m().buttonViewModel}},{buttonViewModel:function(H){return _.q(_.oF,{data:H.data,
className:"yt-video-attribute-view-model__button"})}}))},"hb");
p53.idomCompat=!0;_.qi(SVH,"yt-video-attribute-view-model",{props:{data:_.VZ,className:_.VZ}});var ld=function(){var O=_.u.apply(this,arguments)||this;O.useHighlightStyling=_.V("web_enable_deeper_metadata_highlight_styling");O.isSearch=!1;O.JSC$15156_lastScrollContainerWidth=NaN;O.pageLoadingFromNavigation=!1;O.currentIndex=0;O.supportComponentResize=!1;return O};
_.X(ld,_.u);_.v=ld.prototype;
_.v.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}}}}}};
_.v.attached=function(){document.addEventListener("yt-page-type-changed",_.f7(this,this.onPageChange))};
_.v.detached=function(){document.removeEventListener("yt-page-type-changed",_.f7(this,this.onPageChange))};
_.v.getItemsPath=function(){return"data.cards"};
_.v.onIronResize=function(){this.updateListStyles()};
_.v.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var O;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(O=this.data)==null?void 0:O.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.V("problem_walkthrough_sd")&&!!this.centerItems};
_.v.computeCardListStyle=function(O){return O||null};
_.v.computeEmpty=function(O){return!this.get("cards.length",O)};
_.v.computeThumbnailStyle=function(O){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",O)||null};
_.v.computeHasSubtitle=function(O){return!!this.get("header.richListHeaderRenderer.subtitle",O)};
_.v.computeInitialCountNumber=function(O){return this.hasSquareMiniApp&&O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.v.computeUseFloorScrolling=function(O){return O==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.v.computeHasGameCard=function(O){return(O=this.get("cards",O))?O.some(function(m){return m.gameCardRenderer}):!1};
_.v.computeCenterHeaderTitle=function(O){return!(O==null||!O.centerHeaderTitle)};
_.v.computeHasPortraitMiniApp=function(O){return(O=O==null?void 0:O.cards)?O.some(function(m){return m.miniGameCardViewModel&&m.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.v.computeHasSquareMiniApp=function(O){return(O=O==null?void 0:O.cards)?O.some(function(m){return m.miniGameCardViewModel&&m.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.v.computeHasSkinnyWidthPortraitMiniApp=function(O){return(O=O==null?void 0:O.cards)?O.some(function(m){return m.miniGameCardViewModel&&m.miniGameCardViewModel.width===135}):!1};
_.v.computeCenterItems=function(O){return!!O};
_.v.computeHasInfoPanel=function(O){var m;return O==null?void 0:(m=O.cards)==null?void 0:m.some(function(G){return G.infoPanelContentRenderer})};
_.v.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.v.getItemByIndex=function(O){var m=this.items.children;return m&&m.length>O?m[O]:void 0};
_.v.onPageChange=function(){var O=this;this.pageLoadingFromNavigation=!0;_.ln.addJob(function(){O.pageLoadingFromNavigation=!1;_.UB(O.hostElement,"yt-terminate-video-preview-action")},8)};
_.v.updateListStyles=function(){if(_.V("problem_walkthrough_sd")&&this.JSC$15156_scrollContainer!==void 0){var O=this.JSC$15156_scrollContainer.clientWidth;O!==this.JSC$15156_lastScrollContainerWidth&&(this.JSC$15156_lastScrollContainerWidth=O,_.n7(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(O*.8,415)+"px"}),_.iP(this.hostElement,"iron-resize"))}};
_.vr.Object.defineProperties(ld.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.V("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return!!((O=this.data)==null?0:(m=O.cards)==null?0:(G=m[0])==null?0:G.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return!!((O=this.data)==null?0:(m=O.cards)==null?0:(G=m[0])==null?0:G.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return _.V("enable_desktop_amsterdam_info_panels")&&!!((O=this.data)==null?0:(m=O.cards)==null?0:(G=m[0])==null?0:G.infoPanelContentRenderer)}}});
ld.prototype.dataChanged=ld.prototype.dataChanged;ld.prototype.onIronResize=ld.prototype.onIronResize;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ld.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Ir.YtdHorizontalListBehavior),_.Y("design:type",Object)],ld.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.h(_.Rr),_.Y("design:type",Object)],ld.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ld.prototype,"data",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],ld.prototype,"useCustomColors",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ld.prototype,"useHighlightStyling",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.Y("design:type",Object)],ld.prototype,"cardListStyle",void 0);_.c([_.g({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.Y("design:type",Boolean)],ld.prototype,"empty",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.Y("design:type",Boolean)],ld.prototype,"hasSubtitle",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.Y("design:type",Boolean)],ld.prototype,"thumbnailStyle",void 0);_.c([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.Y("design:type",Boolean)],ld.prototype,"hasGameCard",void 0);_.c([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.Y("design:type",Boolean)],ld.prototype,"centerHeaderTitle",void 0);
_.c([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.Y("design:type",Boolean)],ld.prototype,"hasPortraitMiniApp",void 0);_.c([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.Y("design:type",Boolean)],ld.prototype,"hasSquareMiniApp",void 0);_.c([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.Y("design:type",Boolean)],ld.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.c([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.Y("design:type",Boolean)],ld.prototype,"hasInfoPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ld.prototype,"isSearch",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ld.prototype,"inlineStructuredDescription",void 0);_.c([_.uc("#scroll-container"),_.Y("design:type",HTMLDivElement)],ld.prototype,"JSC$15156_scrollContainer",void 0);
_.c([_.g({computed:"computeInitialCountNumber(data.style.type)"}),_.Y("design:type",Number)],ld.prototype,"initialCount",void 0);_.c([_.g({computed:"computeUseFloorScrolling(data.style.type)"}),_.Y("design:type",Boolean)],ld.prototype,"useFloorScrolling",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.Y("design:type",Boolean)],ld.prototype,"centerItems",void 0);_.c([_.g(),_.Y("design:type",Object)],ld.prototype,"pageLoadingFromNavigation",void 0);
_.c([_.g(),_.Y("design:type",Object)],ld.prototype,"currentIndex",void 0);_.c([_.g(),_.Y("design:type",Number)],ld.prototype,"scrollCount",void 0);_.c([_.g(),_.Y("design:type",Object)],ld.prototype,"supportComponentResize",void 0);_.c([_.uc("#items"),_.Y("design:type",HTMLDivElement)],ld.prototype,"items",void 0);_.c([_.hG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ld.prototype,"onIronResize",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ld.prototype,"dataChanged",null);_.c([_.g({reflectToAttribute:!0}),_.T("inlineStructuredDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ld.prototype,"hideNavigationButton",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ld.prototype,"modernChapters",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ld.prototype,"hasVideoAttributeViewModels",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ld.prototype,"modernInfoPanels",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],ld);
_.y(ld,"ytd-horizontal-card-list-renderer",function(){if(T1s!==void 0)return T1s;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return T1s=O},{mode:_.ZB("kevlar_poly_si_batch_j072")?1:2});var E2o=_.a(function(O){var m=O.data;var G={};return _.q("video-summary-content-view-model",{class:_.bE("videoSummaryContentViewModelHost",O.className,(G.videoSummaryContentViewModelHostIsSearch=O.isSearch,G))},_.q(_.gi,{each:function(){var B=[],Q=m().paragraphs;if(Q==null||!Q.length)return[];for(var H=0;H<Q.length;H++){var M=_.b(Q[H],lmo),R=void 0;H>0&&(R=_.b(Q[H-1],lmo));R&&!!R.marker===!!M.marker?B[B.length-1].paragraphs.push(M):B.push({isList:!!M.marker,paragraphs:[M]})}return B},
keyBy:"INDEX"},function(B){return _.q(_.U,{cond:function(){return B().isList},
then:function(){return _.q("ul",{class:"videoSummaryContentViewModelList"},_.q(_.gi,{each:function(){return B().paragraphs},
keyBy:"INDEX"},function(Q){return _.q("li",{class:"videoSummaryContentViewModelListItem"},_.q(_.Jg,{text:function(){return Q().text}}))}))},
else:function(){return _.q(_.gi,{each:function(){return B().paragraphs},
keyBy:"INDEX"},function(Q){return _.q("p",{class:"videoSummaryContentViewModelParagraph"},_.q(_.Jg,{text:function(){return Q().text}}))})}})}),_.q(_.U,{cond:function(){return!!_.b(m().likeButtonViewModel,_.mE)&&!!_.b(m().dislikeButtonViewModel,_.O1)},
then:function(){return _.q("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.q("div",{class:"videoSummaryContentViewModelLikeButton"},_.q(_.$U,{data:function(){return _.b(m().likeButtonViewModel,_.mE)},
disableIconAnimation:!0})),_.q(_.Kx,{data:function(){return _.b(m().dislikeButtonViewModel,_.O1)}}))}}))},"ib");
E2o.idomCompat=!0;_.qi(E2o,"video-summary-content-view-model",{props:{data:_.VZ,isSearch:_.VZ,className:_.VZ}});var aU=function(){var O=_.u.apply(this,arguments)||this;var m,G;O.isExpanded=(G=(m=O.data)==null?void 0:m.isExpanded)!=null?G:!1;O.disableExpand=!1;O.showProminentLabel=!1;O.showRightSideLabel=!0;O.toggleExpandableContent=function(B){O.disableExpand||(B.stopPropagation(),_.vu(_.$Z(B),O.hostElement,["info","expanded-subtitle"])||(O.isExpanded=!O.isExpanded,O.ytRendererBehavior.logExplicitClick(O.data),O.JSC$15167_cardList&&!_.V("expandable_metadata_a11y_fix_ks")&&_.QA(O,function(){_.OJ(O.hostElement)})))};
O.useSquareThumbnail=!1;O.startX=0;return O};
_.X(aU,_.u);_.v=aU.prototype;_.v.computeUseSquareThumbnail=function(){var O;return(O=this.data)==null?void 0:O.useSquareThumbnail};
_.v.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"}}}}};
_.v.dataChanged=function(){if(this.data){var O,m;this.isExpanded=(m=(O=this.data)==null?void 0:O.isExpanded)!=null?m:!1;var G,B,Q,H;if(O=this.isDarkTheme()?(G=this.data)==null?void 0:(B=G.colorData)==null?void 0:B.darkColorPalette:(Q=this.data)==null?void 0:(H=Q.colorData)==null?void 0:H.lightColorPalette){var M,R;if((M=this.data)==null?0:(R=M.colorData)==null?0:R.vibrantColorPalette)O.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.CH(this.hostElement,O)}}};
_.v.isExpandedChanged=function(){this.isExpanded&&this.JSC$15167_cardList&&_.iP(this.JSC$15167_cardList,"iron-resize")};
_.v.computeIsExpanded=function(O){return!!O.isExpanded};
_.v.computeShowProminentLabel=function(O,m){var G;return!!(O==null?0:(G=O.header)==null?0:G.showLeadingCollapsedLabel)&&!m};
_.v.computeShowRightSideLabel=function(O,m){var G;return!(O==null?0:(G=O.header)==null?0:G.showLeadingCollapsedLabel)&&!m};
_.v.captureContentClick=function(O){if(!this.disableExpand)if(_.V("expandable_metadata_fix_killswitch")){var m=O.target;_.Ix9(m,"ytd-macro-markers-list-item-renderer")||O.stopPropagation();(m==null?void 0:m.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.vu(_.$Z(O),this.hostElement,["items"])||_.Hu(_.$Z(O),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.v.timestampClick=function(O){O.stopPropagation();var m,G;(O=(m=this.data)==null?void 0:(G=m.header)==null?void 0:G.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(O)};
_.v.onDown=function(O){O.stopPropagation();this.startX=O.detail?O.detail.x:0};
_.v.onUp=function(O){this.skipKeyInteraction(O)&&O.stopPropagation()};
_.v.skipKeyInteraction=function(O){var m=O.target;if((m==null?void 0:m.id)==="scroll-container"||(m==null?void 0:m.id)==="items"||O.detail&&O.detail.x!==this.startX)return!0;O=_.$Z(O);O=_.K(O);for(m=O.next();!m.done;m=O.next()){m=m.value;if(m===this.hostElement)break;if(m.hasAttribute&&m.hasAttribute("skip-key-interaction"))return!0}return!1};
_.v.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.vr.Object.defineProperties(aU.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var O;return!!_.b((O=this.data)==null?void 0:O.expandedContent,oLj)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var O;return!!_.b((O=this.data)==null?void 0:O.expandedContent,_.lRj)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var O,m;return!((O=this.data)==null||!O.useCustomColors)&&!((m=this.data)==null||!m.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var O,m;return!!((O=this.data)==null?0:(m=O.header)==null?0:m.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var O,m;return!!((O=this.data)==null?0:(m=O.header)==null?0:m.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var O,m;return!!((O=this.data)==null?0:(m=O.header)==null?0:m.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
aU.prototype.onUp=aU.prototype.onUp;aU.prototype.onDown=aU.prototype.onDown;aU.prototype.isExpandedChanged=aU.prototype.isExpandedChanged;aU.prototype.dataChanged=aU.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],aU.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],aU.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],aU.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],aU.prototype,"isExpanded",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],aU.prototype,"disableExpand",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],aU.prototype,"isSearch",void 0);
_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],aU.prototype,"isWatch",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.Y("design:type",Object)],aU.prototype,"showProminentLabel",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.Y("design:type",Object)],aU.prototype,"showRightSideLabel",void 0);
_.c([_.g({value:!1,reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aU.prototype,"hasVideoSummary",null);_.c([_.g({value:!1,reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aU.prototype,"hasLockupViewModel",null);_.c([_.g({reflectToAttribute:!0}),_.T("data","isWatch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aU.prototype,"useCustomColors",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aU.prototype,"showInfoButton",null);_.c([_.T("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aU.prototype,"showTimestamp",null);_.c([_.T("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aU.prototype,"showExpandedSubtitle",null);
_.c([_.T("data","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],aU.prototype,"showThumbnail",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],aU.prototype,"useVppShoppingDestinationStyle",null);_.c([_.g(),_.Y("design:type",Object)],aU.prototype,"toggleExpandableContent",void 0);_.c([_.uc("ytd-horizontal-card-list-renderer"),_.Y("design:type",Object)],aU.prototype,"JSC$15167_cardList",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.Y("design:type",Object)],aU.prototype,"useSquareThumbnail",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aU.prototype,"dataChanged",null);_.c([_.Tw("isExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aU.prototype,"isExpandedChanged",null);
_.c([_.hG("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],aU.prototype,"onDown",null);_.c([_.hG("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],aU.prototype,"onUp",null);_.c([_.l({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],aU);
_.y(aU,"ytd-expandable-metadata-renderer",function(){if(LrH!==void 0)return LrH;var O=document.createElement("template");_.f(O,'\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="[[!isExpanded]]" 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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return LrH=O},{mode:1});var LQ9,CZC=function(){if(LQ9!==void 0)return LQ9;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return LQ9=O};_.qi(_.K5,"yt-avatar-stack-view-model",{props:{className:_.VZ,data:_.VZ,overrides:_.VZ,isOverlay:_.VZ,useMediumText:_.VZ,decorations:_.VZ,hideAvatar:_.VZ}});_.lE("itemSectionRenderer","videoRenderer","ytd-video-renderer");var kS=function(){var O=_.u.apply(this,arguments)||this;O.disableExpand=!1;O.shouldShowChannelInfo=!1;O.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return O};
_.X(kS,_.u);_.v=kS.prototype;_.v.computeUseSearchUi=function(){var O,m;return this.isSearch||((O=this.data)==null?void 0:(m=O.style)==null?void 0:m.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.v.computeUseThreeLineTitle=function(){var O;return((O=this.data)==null?void 0:O.maxTitleLines)===3};
_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.V("polymer_video_renderer_defer_menu")&&!fQC?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"}}}};
_.v.attached=function(){_.JG(this.hostElement,"blue-links",_.V("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.VM(_.ZO(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var O=this.get("data.buttons.buttonRenderer.serviceEndpoint"),m;O&&((m=_.b(O.commandMetadata,_.dT))==null?0:m.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(O);this.updateInlinePreviewHoverListeners()};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15172_inlinePreviewHoverListener=Yi({mediaRenderer:this,lockupElement:this.JSC$15172_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.v.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$15172_inlinePreviewHoverListener)==null||mk(O)};
_.v.onTextWrapperClick=function(O){var m,G,B=this.hideTranslation?(m=this.data)==null?void 0:m.untranslatedNavigationEndpoint:(G=this.data)==null?void 0:G.navigationEndpoint;m=_.vu(_.$Z(O),this.hostElement,["expandable-metadata"]);!B||m&&!_.V("expandable_metadata_fix_killswitch")||_.Hu(_.$Z(O),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.iP(this.hostElement,"yt-navigate",{endpoint:B})};
_.v.computeThumbnailWidth=function(O,m,G,B,Q){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:B?Q==="MASSIVE"?600:Q==="BIG"?500:Q==="MEDIUM"?450:420:G?360:m?128:O?210:246};
_.v.computeUseBiggerThumbs=function(O){return O&&_.V("enable_desktop_search_bigger_thumbs")};
_.v.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.v.computeVideoStyle=function(){if(_.V("enable_video_style")){var O,m;return(O=this.data)==null?void 0:(m=O.style)==null?void 0:m.value}};
_.v.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.v.handleHideItemSectionVideosByIdCommand=function(O){var m;O=(m=_.b(O,vLU))==null?void 0:m.videoId;this.data&&this.data.videoId===O&&(this.isHidden=!0)};
_.v.getMetadataSnippetContainerClass=function(O){return O?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.v.computeTitleText=function(O,m,G){return O?G:m};
_.v.computeDescriptionSnippet=function(O,m,G){return O?G:m};
_.v.computeSnippetText=function(O,m,G){return O?G:m};
_.v.computeNavigationEndpoint=function(O,m){return O?m==null?void 0:m.untranslatedNavigationEndpoint:m==null?void 0:m.navigationEndpoint};
_.v.hideInlineTitleIcon=function(O,m){return O||!m};
_.vr.Object.defineProperties(kS.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 O;return(O=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?O:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return!!(this==null?0:(O=this.data)==null?0:(m=O.channelThumbnailSupportedRenderers)==null?0:(G=m.channelThumbnailWithLinkRenderer)==null?0:G.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var O;return!!_.b((O=this.data)==null?void 0:O.avatar,aRU)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$15172_inlinePreviewHoverListener)==null?0:rO(O))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.vr.Object.defineProperties(kS,{template:{configurable:!0,enumerable:!0,get:function(){return CZC()}}});
kS.prototype.dataChanged=kS.prototype.dataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],kS.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],kS.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],kS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],kS.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.h(_.Z2),_.Y("design:type",Object)],kS.prototype,"ytdLockupBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],kS.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],kS.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],kS.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],kS.prototype,"isBackstageVideo",void 0);
_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],kS.prototype,"isPostCompactVideo",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],kS.prototype,"isHistory",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],kS.prototype,"isRichGridVideoPost",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],kS.prototype,"isHidden",void 0);
_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],kS.prototype,"isSearch",void 0);_.c([_.g({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.Y("design:type",Boolean)],kS.prototype,"useSearchUi",void 0);_.c([_.g({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.Y("design:type",Boolean)],kS.prototype,"useThreeLineTitle",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.Y("design:type",Boolean)],kS.prototype,"useBiggerThumbs",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.Y("design:type",Object)],kS.prototype,"videoStyle",void 0);_.c([_.g({computed:"computeDisableExpand(videoStyle)"}),_.Y("design:type",Object)],kS.prototype,"disableExpand",void 0);
_.c([_.g({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.Y("design:type",Object)],kS.prototype,"shouldShowChannelInfo",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.ib("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],kS.prototype,"biggerThumbsStyle",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.Y("design:type",String)],kS.prototype,"inlineTitleIcon",void 0);_.c([_.g({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.Y("design:type",Object)],kS.prototype,"computedNavigationEndpoint",void 0);_.c([_.g({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(O,m){return _.Vh(O.entities,"searchVideoResultEntity",m)}}),
_.Y("design:type",Object)],kS.prototype,"searchVideoResultEntity",void 0);_.c([_.uc("ytd-thumbnail"),_.Y("design:type",HTMLElement)],kS.prototype,"thumbnail",void 0);_.c([_.uc("#dismissible"),_.Y("design:type",HTMLElement)],kS.prototype,"JSC$15172_dismissibleMedia",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kS.prototype,"dataChanged",null);
_.c([_.T("searchVideoResultEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kS.prototype,"hideTranslation",null);_.c([_.T("searchVideoResultEntity"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],kS.prototype,"hiddenBadgeGroups",null);_.c([_.T("data","useAvatar"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kS.prototype,"shouldShowChannelThumbnail",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kS.prototype,"useAvatar",null);
_.c([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kS.prototype,"isHovered",null);_.c([_.l({is:"ytd-video-renderer",disableElementRegistration:!0})],kS);_.y(kS,"ytd-video-renderer",function(){return CZC()},{mode:_.ZB("kevlar_poly_si_batch_j047")?1:2});var yN=function(){var O=_.u.apply(this,arguments)||this;O.editDialog=null;O.roundedContainer=!0;O.isLoading=!1;O.isRichGrid=!1;O.isRichGridRepost=!1;O.reduceSidePaddings=_.V("reduce_side_paddings_in_shelf");O.JSC$15179_spinnerEl=null;return O};
_.X(yN,_.u);_.v=yN.prototype;
_.v.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"}}}};
_.v.contentTextChanged=function(){this.expander.reset()};
_.v.dataChanged=function(){var O=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var m=0,G=this.data.actions&&this.data.actions.length;m<G;m++)this.openEditDialog(_.b(this.data.actions[m],Dvm));if((m=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(m=this.get("buttonRenderer.hint.hintRenderer.hintId",m))&&m.startsWith("share-post-hint")){var B=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(B){_.It.getInstance();var Q=pi(_.Qg(_.Xm("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.ln.addLowPriorityJob(function(){_.Wd(O.hostElement,Q,B)})}}}};
_.v.updatePoll=function(O){O>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.v.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15179_spinnerEl||(this.JSC$15179_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ZO(this.hostElement).appendChild(this.JSC$15179_spinnerEl));this.JSC$15179_spinnerEl&&(this.JSC$15179_spinnerEl.active=this.isLoading)};
_.v.onYtNavigate=function(O){var m=this.get("updateCommentDialogEndpoint",O.detail.endpoint);m&&(this.openEditDialog(m),O.stopPropagation())};
_.v.onYtCommentboxDismiss=function(){this.editDialog=null};
_.v.onYtCommentPollRevert=function(O,m){m&&this.updatePoll(m.selectedChoiceIndex)};
_.v.onYtServiceRequestSent=function(O,m){var G;m.endpoint&&(_.b(m.endpoint,Nc_)||_.b(m.endpoint,sS3)&&((G=_.b(m.endpoint,sS3))==null||!G.clientActions))&&(this.isLoading=!0);if(m.actions)for(O=0;O<m.actions.length;O++)G=m.actions[O],_.b(G,cz)&&(G=this.get("updateBackstagePollAction.selectedChoiceIndex",G),G==void 0&&(G=-1),this.updatePoll(G))};
_.v.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.v.openEditDialog=function(O){O&&O.dialog&&(this.editDialog=O.dialog,O=this.editDialogEl.firstElementChild)&&(O.focus(),O.openDialog&&O.openDialog())};
_.v.computeIsPostHidden=function(O,m){return!!O||m};
_.v.computeSurfaceType=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.v.computeUsesCompactLockup=function(O){return O==="BACKSTAGE_SURFACE_TYPE_HOME"||O==="BACKSTAGE_SURFACE_TYPE_SEARCH"||O==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||O==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||O==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||O==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.v.computeShowWithoutToolbar=function(O){return!O.actionButtons&&!O.actionMenu};
_.v.computePostAttachment=function(O){if(O.backstageAttachment){if(_.b(O.backstageAttachment,gz_))return"poll";if(_.b(O.backstageAttachment,iKo))return"quiz";if(_.b(O.backstageAttachment,_.$z))return"video";if(_.b(O.backstageAttachment,xOm))return"uploaded-videos";if(_.b(O.backstageAttachment,ZyU))return O.contentText?"image":"image-only";if(_.b(O.backstageAttachment,$Os))return"playlist"}return"none"};
_.v.computePostTabIndex=function(O){return O?0:-1};
_.v.computeButtonTooltipPosition=function(O){return this.computeUsesCompactLockup(O)?"top":"bottom"};
_.v.computeHasText=function(O){return!(O==null||!O.contentText)};
_.v.onTap=function(O){var m,G;if(((m=this.data)==null?0:m.navigationEndpoint)&&((G=this.data)==null?void 0:G.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var B;((B=this.data)==null?0:B.navigationEndpoint)&&!_.Hu(_.$Z(O)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.vr.Object.defineProperties(yN.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.voteCount)||_.Qg("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,gz_))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,xOm))}}});
yN.prototype.onYtServiceRequestCompleted=yN.prototype.onYtServiceRequestCompleted;yN.prototype.onYtServiceRequestSent=yN.prototype.onYtServiceRequestSent;yN.prototype.onYtCommentPollRevert=yN.prototype.onYtCommentPollRevert;yN.prototype.onYtCommentboxDismiss=yN.prototype.onYtCommentboxDismiss;yN.prototype.onYtNavigate=yN.prototype.onYtNavigate;yN.prototype.isLoadingChanged=yN.prototype.isLoadingChanged;yN.prototype.dataChanged=yN.prototype.dataChanged;yN.prototype.contentTextChanged=yN.prototype.contentTextChanged;
_.c([_.h(_.Rr),_.Y("design:type",Object)],yN.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],yN.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],yN.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],yN.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],yN.prototype,"editDialog",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],yN.prototype,"roundedContainer",void 0);_.c([_.g(),_.Y("design:type",Object)],yN.prototype,"isLoading",void 0);_.c([_.g({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.Y("design:type",String)],yN.prototype,"surface",void 0);
_.c([_.g({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],yN.prototype,"usesCompactLockup",void 0);_.c([_.g({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],yN.prototype,"showWithoutToolbar",void 0);_.c([_.g({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.Y("design:type",String)],yN.prototype,"attachment",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],yN.prototype,"isRichGrid",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],yN.prototype,"isRichGridRepost",void 0);_.c([_.g({reflectToAttribute:!0,value:_.V("use_better_post_dismissals")}),_.Y("design:type",Boolean)],yN.prototype,"useBetterPostDismissals",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],yN.prototype,"reduceSidePaddings",void 0);
_.c([_.g({computed:"computeHasText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],yN.prototype,"hasText",void 0);_.c([_.uc("#expander"),_.Y("design:type",Object)],yN.prototype,"expander",void 0);_.c([_.uc("#action-buttons"),_.Y("design:type",Object)],yN.prototype,"actionButtons",void 0);_.c([_.uc("#edit-dialog"),_.Y("design:type",HTMLElement)],yN.prototype,"editDialogEl",void 0);
_.c([_.Tw("data.contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yN.prototype,"contentTextChanged",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yN.prototype,"dataChanged",null);_.c([_.Tw("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yN.prototype,"isLoadingChanged",null);
_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],yN.prototype,"onYtNavigate",null);_.c([_.hG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yN.prototype,"onYtCommentboxDismiss",null);_.c([_.hG("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],yN.prototype,"onYtCommentPollRevert",null);
_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],yN.prototype,"onYtServiceRequestSent",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],yN.prototype,"onYtServiceRequestCompleted",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yN.prototype,"voteCount",null);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yN.prototype,"commentCount",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],yN.prototype,"hasPoll",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],yN.prototype,"hasUploadedVideo",null);_.c([_.l({is:"ytd-post-renderer",disableElementRegistration:!0})],yN);
_.y(yN,"ytd-post-renderer",function(){if(Bf9!==void 0)return Bf9;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Bf9=O},{mode:1});var o2u;var l4u;var cP=function(){return _.u.apply(this,arguments)||this};
_.X(cP,_.u);cP.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Ir.YtdHorizontalListBehavior),_.Y("design:type",Object)],cP.prototype,"ytdHorizontalListBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],cP.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],cP.prototype,"data",void 0);
_.c([_.g({value:"$.items.children"}),_.Y("design:type",String)],cP.prototype,"itemsPath",void 0);_.c([_.g({value:1}),_.Y("design:type",Number)],cP.prototype,"initialCount",void 0);_.c([_.g(),_.Y("design:type",String)],cP.prototype,"surface",void 0);_.c([_.l({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],cP);
_.y(cP,"ytd-post-multi-image-renderer",function(){if(l4u!==void 0)return l4u;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return l4u=O},{mode:_.ZB("kevlar_poly_si_batch_j079")?1:2});var a4u={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"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"}}},YS=function(){var O=_.u.apply(this,arguments)||this;O.hasInlineCommentSection=!1;O.editDialog=null;O.isLoading=!1;O.shouldHideAuthor=!1;O.shouldShowVideoTime=!1;
O.isInEngagementPanel=!1;O.hideBorder=!1;O.usesFullLockup=!1;O.shouldShowMenuInCompactView=!1;O.JSC$15194_spinnerEl=null;O.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return O};
_.X(YS,_.u);_.v=YS.prototype;_.v.configureRendererStamper=function(){return a4u};
_.v.computeIsPollHeaderEnabled=function(O){return(O==null?void 0:O.pollMetadataIcon)!=null};
_.v.getPublishTimeStampString=function(O,m){m=new Date((Number(m)-60*((new Date).getTimezoneOffset()-(new Date(Number(m)*1E3)).getTimezoneOffset()))*1E3);m=(new BX(10)).format(m);if(O&&O.runs&&O.runs.length)for(var G=0;G<O.runs.length;G++)O.runs[G].text&&(O.runs[G].text=O.runs[G].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",m));return O};
_.v.created=function(){this.JSC$15194_spinnerEl=null};
_.v.contentTextChanged=function(){this.expander.reset()};
_.v.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var O;if((O=this.data)==null?0:O.actions){O=_.K(this.data.actions);for(var m=O.next();!m.done;m=O.next())this.openEditDialog(_.b(m.value,Dvm))}};
_.v.handleSignalActionOpenPostCommentDialogAction=function(){_.ZO(this.hostElement).querySelector("#action-buttons").reply()};
_.v.updatePoll=function(O,m){m&&this.set("data.pollMetadataVoteCountText",m);this.hasInlineCommentSection&&(O=O>=0,m=_.ZO(this.hostElement).querySelector("#action-buttons"),O?m.reply():m.hideReplyDialog())};
_.v.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15194_spinnerEl||(this.JSC$15194_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ZO(this.hostElement).appendChild(this.JSC$15194_spinnerEl));this.JSC$15194_spinnerEl&&(this.JSC$15194_spinnerEl.active=this.isLoading)};
_.v.onYtNavigate=function(O){var m=this.get("updateCommentDialogEndpoint",O.detail.endpoint);m&&(this.openEditDialog(m),O.stopPropagation())};
_.v.onYtCommentboxDismiss=function(){this.editDialog=null};
_.v.onYtCommentPollRevert=function(O,m){m&&this.updatePoll(m.selectedChoiceIndex,m.totalVotes)};
_.v.onYtServiceRequestSent=function(O,m){O.stopPropagation();O=_.b(m.endpoint,sS3);if(_.b(m.endpoint,Nc_)||O&&!O.clientActions)this.isLoading=!0;if(m.actions)for(O=0;O<m.actions.length;O++){var G=m.actions[O],B=_.b(G,cz);B&&(G=this.get("updateBackstagePollAction.selectedChoiceIndex",G),G===void 0&&(G=-1),this.updatePoll(G,B.totalVotes))}};
_.v.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.v.openEditDialog=function(O){O&&O.dialog&&(this.editDialog=O.dialog,O=this.editDialogElement.firstElementChild)&&(O.focus(),O.openDialog&&O.openDialog())};
_.v.computeIsBodyHidden=function(O,m){return!!O||m};
_.vr.Object.defineProperties(YS.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var O=this.data,m=O.showPostAuthorBackgroundHighlight,G=O.postAuthorBadgeType,B=O.authorEndpoint;if(!m&&G!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&G!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var Q,H,M;O=_.Qg(((Q=O.authorText)==null?void 0:(H=Q.runs)==null?void 0:(M=H[0])==null?void 0:M.text)||"");Q=void 0;switch(G){case "POST_AUTHOR_BADGE_TYPE_ARTIST":Q={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":Q={iconType:m?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:O,authorEndpoint:B,authorCreator:m,icon:Q}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var O,m;if((O=this.data)==null?0:(m=O.pollMetadataIcon)==null?0:m.iconType)return _.bK(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.voteCount)||_.Qg("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,gz_))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,iKo))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.b(this.data.backstageAttachment,xOm))}}});
YS.prototype.onYtServiceRequestCompleted=YS.prototype.onYtServiceRequestCompleted;YS.prototype.onYtServiceRequestSent=YS.prototype.onYtServiceRequestSent;YS.prototype.onYtCommentPollRevert=YS.prototype.onYtCommentPollRevert;YS.prototype.onYtCommentboxDismiss=YS.prototype.onYtCommentboxDismiss;YS.prototype.onYtNavigate=YS.prototype.onYtNavigate;YS.prototype.isLoadingChanged=YS.prototype.isLoadingChanged;YS.prototype.dataChanged=YS.prototype.dataChanged;YS.prototype.contentTextChanged=YS.prototype.contentTextChanged;
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],YS.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],YS.prototype,"rendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],YS.prototype,"rendererstamperBehavior",void 0);_.c([_.uc("#contentTextExpander"),_.Y("design:type",Object)],YS.prototype,"expander",void 0);
_.c([_.uc("#edit-dialog"),_.Y("design:type",Element)],YS.prototype,"editDialogElement",void 0);_.c([_.g(),_.Y("design:type",Object)],YS.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],YS.prototype,"hasInlineCommentSection",void 0);_.c([_.g(),_.Y("design:type",Object)],YS.prototype,"editDialog",void 0);_.c([_.g(),_.Y("design:type",Object)],YS.prototype,"isLoading",void 0);
_.c([_.g({computed:"computeIsPollHeaderEnabled(data)"}),_.Y("design:type",Boolean)],YS.prototype,"isPollHeaderEnabled",void 0);_.c([_.g(),_.Y("design:type",Object)],YS.prototype,"shouldHideAuthor",void 0);_.c([_.g(),_.Y("design:type",Object)],YS.prototype,"shouldShowVideoTime",void 0);_.c([_.g(),_.Y("design:type",Object)],YS.prototype,"isInEngagementPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],YS.prototype,"hideBorder",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],YS.prototype,"usesFullLockup",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],YS.prototype,"shouldShowMenuInCompactView",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],YS.prototype,"authorCommentBadge",null);_.c([_.T("isInEngagementPanel"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],YS.prototype,"postTextMaxLines",null);
_.c([_.T("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],YS.prototype,"pollIcon",null);_.c([_.Tw("data.contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YS.prototype,"contentTextChanged",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YS.prototype,"dataChanged",null);
_.c([_.Tw("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YS.prototype,"isLoadingChanged",null);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],YS.prototype,"onYtNavigate",null);_.c([_.hG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YS.prototype,"onYtCommentboxDismiss",null);
_.c([_.hG("yt-comment-poll-revert"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],YS.prototype,"onYtCommentPollRevert",null);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],YS.prototype,"onYtServiceRequestSent",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],YS.prototype,"onYtServiceRequestCompleted",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],YS.prototype,"voteCount",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],YS.prototype,"commentCount",null);
_.c([_.T("data.backstageAttachment"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YS.prototype,"hasPoll",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YS.prototype,"hasQuiz",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],YS.prototype,"hasUploadedVideo",null);_.c([_.l({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],YS);
_.y(YS,"ytd-backstage-post-renderer",function(){if(o2u!==void 0)return o2u;var O=document.createElement("template");_.f(O,'\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="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return o2u=O},{mode:1});var kxC;var dO=function(){var O=_.u.apply(this,arguments)||this;O.editDialog=null;O.showExpandButton=!1;O.isRichGrid=!1;O.usesFullLockup=!1;return O};
_.X(dO,_.u);_.v=dO.prototype;_.v.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"}}}};
_.v.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.v.computeShowExpandButton=function(O){return this.usesCompactLockup||O&&O.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.v.computeUsesCompactLockup=function(O){return!!O.condensedContent};
_.v.computeShowFullContentText=function(O){return!O};
_.v.onYtNavigate=function(O){O=this.get("updateCommentDialogEndpoint",O.detail.endpoint);this.openEditDialog(O)};
_.v.onYtCommentboxDismiss=function(){this.editDialog=null};
_.v.openEditDialog=function(O){O&&O.dialog&&(this.editDialog=O.dialog,O=this.repostEditDialogEl.firstElementChild)&&(O.focus(),O.openDialog&&O.openDialog())};
_.v.onTap=function(O){if(this.data){var m=null;this.usesCompactLockup&&!_.Hu(_.$Z(O)||[],this.hostElement,["YT-IMG-SHADOW"])?m=this.get("navigationEndpoint",this.data):O.target===this.moreButtonEl&&(m=this.get("navigationEndpoint",O.target.data));m&&_.iP(this.hostElement,"yt-navigate",{endpoint:m})}};
dO.prototype.onYtCommentboxDismiss=dO.prototype.onYtCommentboxDismiss;dO.prototype.onYtNavigate=dO.prototype.onYtNavigate;dO.prototype.dataChanged=dO.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],dO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],dO.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],dO.prototype,"editDialog",void 0);_.c([_.g({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],dO.prototype,"usesCompactLockup",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],dO.prototype,"showExpandButton",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],dO.prototype,"isRichGrid",void 0);
_.c([_.g({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],dO.prototype,"showFullContentText",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],dO.prototype,"usesFullLockup",void 0);_.c([_.uc("#more"),_.Y("design:type",Object)],dO.prototype,"moreButtonEl",void 0);_.c([_.uc("#repost-content-text"),_.Y("design:type",HTMLElement)],dO.prototype,"repostContentTextEl",void 0);
_.c([_.uc("#repost-edit-dialog"),_.Y("design:type",HTMLElement)],dO.prototype,"repostEditDialogEl",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dO.prototype,"dataChanged",null);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dO.prototype,"onYtNavigate",null);
_.c([_.hG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dO.prototype,"onYtCommentboxDismiss",null);_.c([_.l({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],dO);
_.y(dO,"ytd-shared-post-renderer",function(){if(kxC!==void 0)return kxC;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return kxC=O},{mode:1});var yPu;var cPp;var wO=function(){return _.u.apply(this,arguments)||this};
_.X(wO,_.u);wO.prototype.attached=function(){var O=this;this.networkStatusManager||(this.networkStatusManager=new _.PI,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){O.onlineHandler()}))};
wO.prototype.detached=function(){var O=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){O.onlineHandler()}),delete this.networkStatusManager)};
wO.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],wO.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],wO.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],wO);
_.y(wO,"ytd-reload-page-button-renderer",function(){if(cPp!==void 0)return cPp;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
return cPp=O},{mode:1});var YVU={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"},eF=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.X(eF,_.u);_.v=eF.prototype;_.v.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.v.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.v.computeHasBodyText=function(O){return!!O.bodyText};
_.v.computeButtons=function(O){var m=[];O.ctaButton&&m.push(O.ctaButton);O.secondaryButton&&m.push(O.secondaryButton);return m};
_.v.computeRendererStyle=function(O){return O.style?O.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():O.icon?"":"no-icon"};
_.v.getIconName=function(O,m){m=m===void 0?!1:m;if(O===void 0)return"";O=this.get("icon.iconType",O);var G;_.V("enable_hlp_client_icon_pick")?G=this.getThemedIcon(O,m):G=O;(m=YVU[G])||(m="yt-icons");return[m,G].join(":")};
_.v.getThemedIcon=function(O,m){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(O)?m?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(O)?m?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":O};
_.v.isThumbnail=function(O){return!!O.thumbnail};
_.v.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.v.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],eF.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],eF.prototype,"data",void 0);
_.c([_.g({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],eF.prototype,"rendererStyle",void 0);_.c([_.g({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.Y("design:type",String)],eF.prototype,"iconName",void 0);_.c([_.g({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],eF.prototype,"thumbnail",void 0);_.c([_.g({computed:"computeButtons(data)"}),_.Y("design:type",Array)],eF.prototype,"buttons",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eF.prototype,"isDarkTheme",void 0);_.c([_.g({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],eF.prototype,"hasBodyText",void 0);_.c([_.l({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],eF);
_.y(eF,"ytd-background-promo-renderer",function(){if(yPu!==void 0)return yPu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return yPu=O},{mode:1});var dFu;var Da=function(){var O=_.u.apply(this,arguments)||this;O.collections=_.V("web_modern_collections_v2");return O};
_.X(Da,_.u);_.vr.Object.defineProperties(Da.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B,Q,H;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(O=this.data)==null?void 0:(m=O.thumbnail)==null?void 0:m.sampledThumbnailColor,vibrantColorPalette:(G=this.data)==null?void 0:(B=G.thumbnail)==null?void 0:B.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(H=Q.thumbnail)==null?void 0:H.darkColorPalette,experimentEnabled:this.collections}}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Da.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Da.prototype,"collections",void 0);_.c([_.T("data","collections"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Da.prototype,"collectionStack",null);_.c([_.l({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Da);
_.y(Da,"ytd-compact-station-renderer",function(){if(dFu!==void 0)return dFu;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return dFu=O},{mode:1});var w5U;var sM=function(){var O=_.u.apply(this,arguments)||this;O.isRichGrid=!1;return O};
_.X(sM,_.u);sM.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],sM.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],sM.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],sM.prototype,"isRichGrid",void 0);_.c([_.l({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],sM);
_.y(sM,"ytd-grid-channel-renderer",function(){if(w5U!==void 0)return w5U;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return w5U=O},{mode:1});var eDp;var Nb=function(){return _.u.apply(this,arguments)||this};
_.X(Nb,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Nb.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Nb.prototype,"data",void 0);_.c([_.l({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Nb);
_.y(Nb,"ytd-grid-movie-playlist-renderer",function(){if(eDp!==void 0)return eDp;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return eDp=O},{mode:1});var DF2;var PP=function(){var O=_.u.apply(this,arguments)||this;O.downloadProgress=0;O.transferState="TRANSFER_STATE_UNKNOWN";O.modernButtons=_.V("web_modern_buttons");O.useModernCollectionsV2=_.V("web_modern_collections_v2");return O};
_.X(PP,_.u);PP.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
PP.prototype.configureRendererStamper=function(){return{"data.menu":da}};
PP.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
PP.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.V("woffle_playlist_renderer_killswitch")){var O,m=vof(this.entityInfo,this.transferState,this.downloadProgress,(O=this.data)==null?void 0:O.playlistId,this.isOnline);O=m.viewPlaylistText;var G=m.badges;m=m.thumbnailOverlays;this.isDownloads=!!O||!!G;this.set("data.viewPlaylistText",O);G&&G.length>0&&this.set("data.badges",G);m&&m.length>0&&this.set("data.thumbnailOverlays",
m)}};
_.vr.Object.defineProperties(PP.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 O;return!((O=this.data)==null?0:O.menu)}}});
PP.prototype.transferStateChanged=PP.prototype.transferStateChanged;PP.prototype.dataChanged=PP.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],PP.prototype,"ytdLockupBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],PP.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],PP.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g({selector:_.ttS,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],PP.prototype,"downloadProgress",void 0);_.c([_.g({selector:_.Dh,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],PP.prototype,"transferState",void 0);_.c([_.g({selector:U2p,selectorArgs:["data.playlistId"]}),_.Y("design:type",Object)],PP.prototype,"entityInfo",void 0);_.c([_.g({selector:_.wv}),_.Y("design:type",Boolean)],PP.prototype,"isOnline",void 0);
_.c([_.g(),_.Y("design:type",Object)],PP.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],PP.prototype,"downloadRenderData",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],PP.prototype,"modernButtons",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],PP.prototype,"isDownloads",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],PP.prototype,"useModernCollectionsV2",void 0);
_.c([_.T("transferState"),_.g({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],PP.prototype,"downloadState",null);_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],PP.prototype,"menuHidden",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"dataChanged",null);
_.c([_.Si("transferState","downloadProgress","isOnline"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PP.prototype,"transferStateChanged",null);_.c([_.l({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],PP);
_.y(PP,"ytd-grid-playlist-renderer",function(){if(DF2!==void 0)return DF2;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return DF2=O},{mode:1});var sb8;var F3=function(){var O=_.u.apply(this,arguments)||this;O.collections=_.V("web_modern_collections_v2");return O};
_.X(F3,_.u);F3.prototype.configureRendererStamper=function(){return{"data.menu":da,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.vr.Object.defineProperties(F3.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B,Q,H;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(O=this.data)==null?void 0:(m=O.thumbnail)==null?void 0:m.sampledThumbnailColor,vibrantColorPalette:(G=this.data)==null?void 0:(B=G.thumbnail)==null?void 0:B.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(H=Q.thumbnail)==null?void 0:H.darkColorPalette,experimentEnabled:this.collections}}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],F3.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],F3.prototype,"ytdLockupBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],F3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],F3.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],F3.prototype,"collections",void 0);_.c([_.T("data","collections"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],F3.prototype,"collectionStack",null);_.c([_.l({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],F3);
_.y(F3,"ytd-grid-radio-renderer",function(){if(sb8!==void 0)return sb8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return sb8=O},{mode:1});var Nqj;var AT=function(){var O=_.u.apply(this,arguments)||this;O.useModernCollectionsV2=_.V("web_modern_collections_v2");return O};
_.X(AT,_.u);AT.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
AT.prototype.computeNavigationEndpoint=function(O){return MPS(O==null?void 0:O.navigationEndpoint)};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],AT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],AT.prototype,"ytdLockupBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],AT.prototype,"data",void 0);_.c([_.g({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],AT.prototype,"computedNavigationEndpoint",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AT.prototype,"useModernCollectionsV2",void 0);_.c([_.l({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],AT);
_.y(AT,"ytd-grid-show-renderer",function(){if(Nqj!==void 0)return Nqj;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Nqj=O},{mode:1});var PZC;_.OA=function(O){this.playerClient=O};
_.FQp=function(O,m,G){G=G===void 0?{}:G;return O.playerClient.setOption("ad",m,G)};
_.OA.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.OA.prototype.executeCommand=function(O,m){this.getOptions().includes("executeCommand")?_.FQp(this,"executeCommand",{command:O,layoutId:m}):_.F4("Calling executeCommand when adModule is not loaded")};var mL=function(){return _.u.apply(this,arguments)||this};
_.X(mL,_.u);mL.prototype.getLayoutId=function(){var O=_.ex("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.layoutId:null};
mL.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var O=_.M1(),m=this.getLayoutId(),G=this.data.clickthroughEndpoint;O&&m&&_.V("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?O.getPlayerPromise().then(function(B){(new _.OA(B)).executeCommand(G,m)}):_.iP(this.hostElement,"yt-navigate",{endpoint:G})}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mL.prototype,"data",void 0);_.c([_.l({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],mL);
_.y(mL,"ytd-shopping-companion-item-renderer",function(){if(PZC!==void 0)return PZC;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return PZC=O},{mode:1});var AP9;var G4=function(){var O=_.u.apply(this,arguments)||this;O.isExpandableContent=!1;return O};
_.X(G4,_.u);_.vr.Object.defineProperties(G4.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return((O=this.data)==null?void 0:O.price)||((m=this.data)==null?void 0:(G=m.dealsData)==null?void 0:G.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var O,m;if((O=this.data)!=null&&O.dealsData&&((m=this.data)==null||!m.priceReplacementText)){O=this.data.dealsData;var G,B,Q;return((G=O.salesData)==null?void 0:G.originalPrice)||((B=O.priceDropData)==null?void 0:B.referencePrice)||((Q=O.promotionData)==null?void 0:Q.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var O,m;return(O=this.data)==null?void 0:(m=O.dealsData)==null?void 0:m.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],G4.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],G4.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],G4.prototype,"isExpandableContent",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G4.prototype,"showCta",null);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G4.prototype,"ctaText",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G4.prototype,"hasPriceTopPosition",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G4.prototype,"hasPriceBottomPosition",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G4.prototype,"useNewStyle",null);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G4.prototype,"showPriceReplacementText",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G4.prototype,"priceValue",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G4.prototype,"showDeal",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G4.prototype,"showAffiliateDisclaimer",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G4.prototype,"useSaleStyle",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G4.prototype,"useFromBrandCtaStyle",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G4.prototype,"useFromVendorCtaStyle",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],G4.prototype,"useShoppingCollectionCtaStyle",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],G4);
_.y(G4,"ytd-vertical-product-card-renderer",function(){if(AP9!==void 0)return AP9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return AP9=O},{mode:1});var OV2;var Bw=function(){return _.u.apply(this,arguments)||this};
_.X(Bw,_.u);Bw.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Bw.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],Bw.prototype,"ytdLockupBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Bw.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],Bw);
_.y(Bw,"ytd-grid-movie-renderer",function(){if(OV2!==void 0)return OV2;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return OV2=O},{mode:1});var mHH;var Q$=function(){var O=_.u.apply(this,arguments)||this;O.roundedFix=_.V("web_enable_merch_item_rounding_fix");O.itemStyle="small-item";return O};
_.X(Q$,_.u);Q$.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var O,m,G,B,Q=(m=_.b((O=this.data)==null?void 0:O.buttonCommand,_.lq))==null?void 0:(G=m.item)==null?void 0:(B=G.notificationTextRenderer)==null?void 0:B.successResponseText;Q&&_.lAN(this.hostElement,Q)}};
_.vr.Object.defineProperties(Q$.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?void 0:O.isProductPlaceholder)!==void 0&&((m=this.data)==null?void 0:m.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Q$.prototype,"ytRendererBehavior",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Q$.prototype,"roundedFix",void 0);_.c([_.g(),_.Y("design:type",Object)],Q$.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],Q$.prototype,"itemStyle",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Q$.prototype,"hasPrice",null);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Q$.prototype,"hasPriceReplacementText",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Q$.prototype,"hasAdditionalFeesText",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Q$.prototype,"hasAffiliateDisclaimer",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Q$.prototype,"isProductPlaceholder",null);
_.c([_.g(),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Q$.prototype,"hideOpenInNewIcon",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Q$.prototype,"ariaLabel",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],Q$);
_.y(Q$,"ytd-merch-shelf-item-renderer",function(){if(mHH!==void 0)return mHH;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return mHH=O},{mode:1});var G3j=_.a(function(O){return _.q("button-card-view-model",{el:_.Mi(_.yp(function(){return O.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return O.data().title},
role:"button"},_.q(_.S1,{model:{}}),_.q("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.q("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.q(_.U,{cond:function(){return O.data().image},
then:function(m){return _.q(_.KH,{data:m,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.q("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return O.data().title})))},"jb");_.V("web_button_view_model_wcw_registration_killswitch")||_.qi(G3j,"button-card-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){O=_.ru(O,{className:void 0});var m=O.data;O=O.className;var G=_.bF(function(){return m().onTapCommand},void 0,"SXkP9e");
return _.q("ytd-shopping-item-card",{class:_.bE("ytdShoppingItemCardHost",O)},_.q(_.p3,{command:G,className:"ytdShoppingItemCardHostLink"},_.q("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.q(_.u5,{data:function(){return m().thumbnailViewModel}},{thumbnailViewModel:function(B){return _.q(_.hT,{data:B.data,
aspectRatio:3})}})),_.q("div",null,_.q("p",{class:"ytdShoppingItemCardHostItemTitle"},_.q(_.Jg,{text:function(){return m().itemTitle}})),_.q("p",{class:"ytdShoppingItemCardHostPrice"},_.q(_.Jg,{text:function(){return m().priceOrStatus}})))))},"kb"),"ytd-shopping-item-card",{props:{data:_.VZ,
className:_.VZ}});var Bn9={isAdsVideo:!0},QVC={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},HV2={showPlayerControls:!1,videoPreviewDurationMs:15E3},vbm={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var Op=null,aAS={};var c5M="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(" "),Hw={},YUf=(Hw.FEwhat_to_watch="home",Hw.FEhashtag="hashtag",Hw.FEtrending="trending",Hw.FEhistory="history",Hw.SPunlimited="premium",Hw.FEmemberships_and_purchases="paid_memberships",Hw.SPredeem_code="redeem",Hw.SPverify_location="locate",Hw.SPminor_moment="minor_moment",
Hw.FEmini_app_container="mini_app",Hw.FEnews_destination="news",Hw.SPopen_in_app="open_in_app",Hw.FEexplore="explore",Hw.FEsubscriptions="subscriptions",Hw.FEsfv_audio_pivot="sfv_audio_pivot",Hw.FEplaylist_aggregation="playlist_aggregation",Hw);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");_.ZY("init");var Kn$=function(){},Rz3=_.a(function(O){var m=O.data;
var G=O.inlineMetadata;var B=O.aspectRatio;var Q=O.scrimStyle;var H=O.className;var M=O.useDefaultStyle;var R=O.titleStyle;var x=new Kn$,t=_.V("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",W=_.bF(function(){return(M==null?0:M())?t==="SHORTS_LOCKUP_STYLE_SLIM":m().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),Z=_.bF(function(){return _.o9(G)||W()||!1},void 0,"neizSe"),z=function(){return(Q==null?void 0:Q())!==void 0?Q==null?void 0:Q():1},
J=_.bF(function(){return m().belowThumbnailMetadata||!Z()},void 0,"HdmMMe");
O=_.$V({visibilityCallback:function(rN){var xO=m().onFirstVisible;rN&&xO&&_.PE(xO)},
showOption:{calledOnce:!0,state:"visible"}});var n=_.Mi(),I={},S=_.bE(function(){return W(),"shortsLockupViewModelHostThumbnailContainer"},(I.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.o9(B)===1},I.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.o9(B)===2},I.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.V("web_shorts_2_by_3_lockups_study")&&!_.V("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
I)),L=_.bF(function(){if(_.o9(B)===1)return 1;
_.o9(B);return 2},void 0,"ZRUa3c"),C,P=function(){if(x){var rN;
(rN=C)==null||mk(rN);var xO;if(x.hostElement&&((xO=x.data)==null?0:xO.inlinePlayerData)){rN=Object.assign({},vbm);var XI,Vf;((XI=x.data)==null?void 0:(Vf=XI.inlinePlayerData)==null?void 0:Vf.maxPlaybackLengthSec)!==void 0&&(rN.videoPreviewDurationMs=x.data.inlinePlayerData.maxPlaybackLengthSec*1E3);C=Yi({mediaRenderer:x,lockupElement:x.hostElement,thumbnailElement:n.value,videoPreviewOpts:rN})}}};
_.ER(function(){x&&(x.data=m(),P())},"c4oj4d");
var w=_.bF(function(){return m().thumbnail},void 0,"CJHyHc");
I=_.bF(function(){return m().badge},void 0,"g31PIe");
var d=_.bF(function(){return m().onTap},void 0,"CJCUBc"),D={},OS={};
return _.q("ytm-shorts-lockup-view-model",{el:_.Mi(function(rN){x&&(x.hostElement=rN)},P,O),
class:_.bE("shortsLockupViewModelHost",H)},_.q(_.Mr,null,_.q(_.p3,{command:d,className:_.bE("shortsLockupViewModelHostEndpoint",(D.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!J()},D),"reel-item-endpoint",""),
ariaHidden:function(){return!Z()},
tabIndex:function(){return Z()?0:-1}},_.q("div",{el:n,
class:_.bE("shortsLockupViewModelHostThumbnailParentContainer",(OS.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!W()},OS))},_.q(_.U,{cond:w,
then:function(){return _.q("div",{class:S},_.q(_.KH,{data:function(){var rN;return(rN=w==null?void 0:w())!=null?rN:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.q(_.u5,{data:function(){return m().thumbnailViewModel}},{thumbnailViewModel:function(rN){return _.q(_.hT,{data:rN.data,
aspectRatio:function(){return L()},
disableRounding:function(){return W()}})}}),null),_.q(_.U,{cond:Z,
then:function(){return _.q($H$,{data:m,scrimStyle:z,useDefaultStyle:M,titleStyle:R})}}),_.q(_.u5,{data:I},{badgeViewModel:function(rN){return _.q(_.jF,{data:rN.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.q(_.U,{cond:function(){return Z()&&m().menuOnTap},
then:function(){return _.q(MJe,{data:m,inlineMetadata:!0})}}),_.q(_.U,{cond:J,
then:function(){return _.q(rju,{data:m,useDefaultStyle:M,inlineMetadata:Z})}})))},"lb"),$H$=_.a(function(O){var m=O.data;
var G=O.scrimStyle;var B=O.useDefaultStyle;var Q=O.titleStyle;var H=_.V("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",M=B&&_.V("web_hide_primary_text_for_pivot_panel"),R=_.bF(function(){return(B==null?0:B())?H==="SHORTS_LOCKUP_STYLE_SLIM":m().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
O={};O=_.bE("shortsLockupViewModelHostInlineMetadata",(O.shortsLockupViewModelHostMetadataRounded=function(){return!R()},O.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(G==null?void 0:G())===3&&!_.V("enable_shorts_lockup_new_scrim")},O.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(G==null?void 0:G())===3&&_.V("enable_shorts_lockup_new_scrim")},O.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(G==null?void 0:G())===2||(G==null?void 0:
G())===4},O.shortsLockupViewModelHostShowOverPlayer=function(){return!0},O),"image-overlay-text");
var x={};return _.q("div",{class:O},_.q("h3",{class:_.bE("shortsLockupViewModelHostMetadataTitle",(x.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(G==null?void 0:G())===4},x.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return m().belowThumbnailMetadata},x.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(Q==null?void 0:Q())===1},x.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(Q==null?void 0:Q())===2},x)),
"aria-label":function(){return m().accessibilityText}},_.q(_.U,{cond:function(){var t;
return!((t=m().overlayMetadata)==null||!t.primaryText)&&!M},
then:function(){return _.q(_.Jg,{text:function(){var t;return(t=m().overlayMetadata)==null?void 0:t.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.q(_.U,{cond:function(){var t;
return(t=m().overlayMetadata)==null?void 0:t.secondaryText},
then:function(){return _.q(iV9,{data:m,scrimStyle:G,className:void 0})}}))},"mb"),rju=_.a(function(O){var m=O.data;
var G=O.useDefaultStyle;var B=O.inlineMetadata;var Q=_.V("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",H=_.bF(function(){return(G==null?0:G())?Q==="SHORTS_LOCKUP_STYLE_SLIM":m().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),M=_.Mi(),R;
O=_.nH(function(J){if(_.l5(_.o_(J),M.value,["AVATAR-VIEW-MODEL"]))return!1;var n;(n=R)==null||n.click();return!1});
var x=_.bF(function(){return m().belowThumbnailMetadata||m().overlayMetadata},void 0,"yJVuMb"),t=function(){return m().menuOnTap&&!B()},W=function(){var J;
return(J=x())==null?void 0:J.avatar},Z={},z={};
return _.q("div",{class:_.bE(function(){return H()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(Z.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!W()},Z.shortsLockupViewModelHostOutsideMetadataHasMenu=t,Z)),
"on:click":O,el:M,role:"presentation"},_.q(_.u5,{data:W},{avatarViewModel:function(J){return _.q("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.q(_.HP,{data:J.data}))}}),_.q("div",null,_.q("h3",{class:_.bE("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(z.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var J,n;
return!((J=x())==null?0:(n=J.primaryText)==null?0:n.content)},z.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=B,z)),
role:"presentation"},_.q(_.p3,{ref:function(J){return void(R=J)},
command:function(){return m().onTap},
className:_.bE("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var J,n;return(J=x())==null?void 0:(n=J.primaryText)==null?void 0:n.content},
"aria-label":function(){return m().accessibilityText}},_.q(_.U,{cond:function(){var J;
return(J=x())==null?void 0:J.primaryText},
then:function(J){return _.q(_.Jg,{text:J,noEndpoints:!0,noStyleRuns:!0})}}))),_.q(_.U,{cond:function(){var J;
return(J=x())==null?void 0:J.secondaryText},
then:function(J){return _.q("div",{class:_.bE("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.q(_.Jg,{text:J,noStyleRuns:!0}))}})),_.q(_.U,{cond:t,
then:function(){return _.q(MJe,{data:m,inlineMetadata:!1})}}))},"nb"),iV9=_.a(function(O){var m=O.data;
var G=O.scrimStyle;O=O.className;var B={};return _.q("div",{class:_.bE((B.shortsLockupViewModelHostMetadataSubhead=function(){return(G==null?void 0:G())!==4},B.shortsLockupViewModelHostMetadataSubheadNew=_.V("enable_shorts_lockup_new_scrim"),B.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(G==null?void 0:G())===4},B),O),
"aria-hidden":"true"},_.q(_.Jg,{text:function(){var Q;return(Q=m().overlayMetadata)==null?void 0:Q.secondaryText},
noStyleRuns:!0}))},"ob"),MJe=_.a(function(O){var m=O.data;
var G=O.inlineMetadata;O={};O=_.bE((O.shortsLockupViewModelHostInlineMetadataMenu=function(){return G()},O.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!G()},O.shortsLockupViewModelHostShowOverPlayer=function(){return!0},O),"image-overlay-text");
return _.q("div",{class:O},_.q(_.C3,{data:function(){return{style:G()?"overlay":"mono",accessibilityLabel:m().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(B){B.preventDefault();B.stopPropagation();var Q=_.sz({elementsCommand:m().menuOnTap,forceNewState:!0});if(Q==null?0:Q.onclick)Q.onclick(B)}}},
iconName:"MORE_VERT"}))},"pb");var xH_=_.a(function(O){var m=O.data;var G=O.inlineMetadata;var B=O.aspectRatio;var Q=O.scrimStyle;var H=O.className;var M=O.useDefaultStyle;O=_.bF(function(){var R=m().entityId;return R?R.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.q("ytm-shorts-lockup-view-model-v2",{class:_.bE("shortsLockupViewModelHost",H)},_.q(_.SF,{contentId:O,aspectRatio:function(){return(B==null?void 0:B())===1?1:(B==null?void 0:B())===2?2:4}},function(){return _.q(Rz3,{data:m,
inlineMetadata:G,aspectRatio:B,scrimStyle:Q,className:H,useDefaultStyle:M})}))},"qb");_.qi(xH_,"ytm-shorts-lockup-view-model-v2",{props:{data:_.RZ,inlineMetadata:_.RZ,aspectRatio:_.RZ,scrimStyle:_.RZ,className:_.RZ,useDefaultStyle:_.RZ,titleStyle:_.RZ}});var qyu=16/9*210,vw=function(){var O=_.u.apply(this,arguments)||this;O.isExpandableContent=!1;O.hideShelfHeader=!1;O.engagementPanel=!1;O.buttonClasses=["arrow"];O.isSearch=!1;O.disableScrollEventListener=!1;O.containsLockup=!1;O.overrideArrowPositionForProductCard=!1;O.overrideArrowPositionForShoppingItemCard=!1;O.overrideArrowPositionForReelItems=!1;O.overrideArrowPositionForGridMovie=!1;O.overrideArrowPositionToCenter=!1;O.isSearchPostShelf=!1;O.overrideArrowPositionForMixedShelf=!1;O.overrideArrowPositionForMixedShelfShortsOnly=
!1;O.hasBigThumbsReelItems=!1;O.shouldUseMixedListHeight=!1;O.shouldUseShortsListHeight=!1;O.gridVideoWidth=0;O.isSearchVodShelf=!1;O.disableWheelScroll=!1;O.sizing="COMPACT";O.shortsLockupAspectRatio=0;return O};
_.X(vw,_.u);_.v=vw.prototype;
_.v.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]]"}}}}};
_.v.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.V("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.v.computeInitialCountNumber=function(O){if(!O)return 6;var m=O.items.some(function(H){return!!H.topicRecommendationsChipRenderer}),G=O.items.some(function(H){return!!H.displayAdRenderer}),B=this.computeShouldListItemsHaveEqualHeight(O),Q=O.items.some(function(H){return!!H.gridPlaylistRenderer});
O=O.items.some(function(H){return!!H.shoppingItemCardViewModel});
return m?9:G?8:Q||B?10:O?7:6};
_.v.computeContainsPost=function(O){return!!O&&!!O.items&&O.items.some(function(m){return!!m.postRenderer})};
_.v.computeContainsLockup=function(){if(_.V("web_horizontal_list_lockup_arrow_killswitch"))return!1;var O,m;return(O=this.data)==null?void 0:(m=O.items)==null?void 0:m.some(function(G){return!!G.lockupViewModel})};
_.v.maybeUpdateLockupAspectRatio=function(){var O,m;if(this.computeContainsLockup()&&((O=this.data)==null?0:(m=O.items)==null?0:m.length)){var G;O=r5s((G=this.data.items[0].lockupViewModel)==null?void 0:G.contentType,this.data.force16By9ThumbnailAspectRatio);G=iAS(O);G=this.computeLockupWidth()/G;_.n7(this.hostElement,{"--yt-horizontal-list-content-height":G+"px"})}};
_.v.computeOverrideArrowPositionForProductCard=function(O){if(this.isExpandableContent)return!1;var m;return!!(O==null?0:(m=O.items)==null?0:m.some(function(G){return!!G.verticalProductCardRenderer}))};
_.v.computeOverrideArrowPositionForShoppingItemCard=function(O){var m;return!!(O==null?0:(m=O.items)==null?0:m.some(function(G){return!!G.shoppingItemCardViewModel}))};
_.v.computeOverrideArrowPositionForReelItemRenderer=function(O){return this.containsReelItemRenderer(O)};
_.v.computeHasBigThumbsReelItems=function(O,m){return O&&this.containsReelItemRenderer(m)};
_.v.computeShouldListItemsHaveEqualHeight=function(O){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(O==null?void 0:O.itemSizeConstraint)};
_.v.computeShouldListItemsHaveShortsHeight=function(O){return this.computeShouldListItemsHaveEqualHeight(O)&&!this.containsGridVideoRenderer(O)};
_.v.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.v.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.v.containsReelItemRenderer=function(O){var m;return!!(O==null?0:(m=O.items)==null?0:m.some(function(G){return!(!G.reelItemRenderer&&!G.shortsLockupViewModel)}))};
_.v.containsGridVideoRenderer=function(O){var m;return!!(O==null?0:(m=O.items)==null?0:m.some(function(G){return!!G.gridVideoRenderer||!!G.lockupViewModel}))};
_.v.computeContainsGridMovieRenderer=function(O){var m;return!!(O==null?0:(m=O.items)==null?0:m.some(function(G){return!!G.gridMovieRenderer}))};
_.v.computeOverrideArrowPositionToCenter=function(O){return this.computeIsSearchPostShelf(O)};
_.v.computeIsSearchPostShelf=function(O){var m;return!!(O==null?0:(m=O.items)==null?0:m.some(function(G){var B,Q;return((Q=(B=G.postRenderer)==null?void 0:B.surface)!=null?Q:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.v.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(O){var m;return!!(O==null?0:(m=O.items)==null?0:m.some(function(G){var B,Q,H;return((H=(B=G.backgroundPromoRenderer)==null?void 0:(Q=B.style)==null?void 0:Q.value)!=null?H:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.v.computeIsSearchVodShelf=function(O,m){return O&&this.containsGridVideoRenderer(m)};
_.v.computeDisableWheelScroll=function(O,m){return this.computeIsSearchVodShelf(O,m)};
_.v.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.v.computeShortsLockupAspectRatio=function(){return 1};
_.v.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.n7(this.hostElement,{"--ytd-reel-item-thumbnail-height":qyu+"px"})};
vw.prototype.dataChanged=vw.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],vw.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],vw.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Ir.YtdHorizontalListBehavior),_.Y("design:type",Object)],vw.prototype,"ytdHorizontalListBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],vw.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],vw.prototype,"isExpandableContent",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"hideShelfHeader",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"engagementPanel",void 0);_.c([_.g(),_.Y("design:type",Array)],vw.prototype,"buttonClasses",void 0);_.c([_.g(),_.Y("design:type",Object)],vw.prototype,"isSearch",void 0);
_.c([_.g(),_.Y("design:type",Object)],vw.prototype,"disableScrollEventListener",void 0);_.c([_.g({computed:"computeInitialCountNumber(data)"}),_.Y("design:type",Number)],vw.prototype,"initialCount",void 0);_.c([_.g({computed:"computeContainsPost(data)"}),_.Y("design:type",Boolean)],vw.prototype,"supportComponentResize",void 0);_.c([_.g({computed:"computeContainsPost(data)"}),_.Y("design:type",Boolean)],vw.prototype,"containsPost",void 0);
_.c([_.g({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"containsLockup",void 0);_.c([_.g({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],vw.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.c([_.g({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"overrideArrowPositionForProductCard",void 0);_.c([_.g({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.c([_.g({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"overrideArrowPositionForReelItems",void 0);_.c([_.g({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"overrideArrowPositionForGridMovie",void 0);
_.c([_.g({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"overrideArrowPositionToCenter",void 0);_.c([_.g({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"isSearchPostShelf",void 0);_.c([_.g({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.c([_.g({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.c([_.g({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"hasBigThumbsReelItems",void 0);
_.c([_.g({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"shouldUseMixedListHeight",void 0);_.c([_.g({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"shouldUseShortsListHeight",void 0);_.c([_.g({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"gridVideoWidth",void 0);
_.c([_.g({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"isSearchVodShelf",void 0);_.c([_.g({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.Y("design:type",Object)],vw.prototype,"disableWheelScroll",void 0);_.c([_.g({computed:"computeSizing(isSearch)"}),_.Y("design:type",Object)],vw.prototype,"sizing",void 0);
_.c([_.g({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.Y("design:type",Object)],vw.prototype,"shortsLockupAspectRatio",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vw.prototype,"dataChanged",null);
_.y(vw,"yt-horizontal-list-renderer",function(){if(t5e===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);t5e=O}O=t5e;return O},{mode:1});var UH_=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
UH_.prototype.subscribe=function(O,m){var G=this.subscriptions.get(O);if(!G)return function(){};
G.add(m);return function(){G.delete(m)}};
UH_.prototype.unsubscribe=function(O,m){(O=this.subscriptions.get(O))&&O.delete(m)};
UH_.prototype.publish=function(O){(O=this.subscriptions.get(O))&&O.forEach(function(m){m()})};var tJU;var Wn3=[10,12,14,16,18,20,24,28,32,36],ZVm=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],KM=function(){var O=_.u.apply(this,arguments)||this;O.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";O.hideOverflow=!1;O.useRoboto=!1;O.fontClass="";O.overflown=!1;O.actionMap={"yt-window-resized":"resize"};return O};
_.X(KM,_.u);_.v=KM.prototype;
_.v.attached=function(){var O=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();_.QA(this,function(){O.resize()});
if(!_.xF){var m,G,B;(m=document)==null||(G=m.fonts)==null||(B=G.ready)==null||B.then(function(){O.resize()})}};
_.v.dataChanged=function(){this.resize()};
_.v.guideIsExpandedChanged=function(){this.resize()};
_.v.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 O=this.getMaxNumLines(),m=this.getMinFont(),G=this.getMaxFont(),B=this.useRoboto?Wn3:ZVm;for(B=B.filter(function(H){return H<=G&&H>=m});B.length>1;){var Q=Math.floor(B.length/2);
this.updateFontSize(B[Q]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=O)B=B.slice(Q,B.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>O)B=B.slice(0,Q);else break}this.updateFontSize(B[B.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(O)}};
_.v.handleOverflow=function(O){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>O&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",O.toString()))};
_.v.updateFontSize=function(O){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+O;this.textNode.classList.add(this.fontClass)};
_.v.getMaxFont=function(){var O=this.useRoboto?Wn3:ZVm;O=O[O.length-1];return this.maxFontSize&&this.maxFontSize<=O?this.maxFontSize:O};
_.v.getMinFont=function(){var O=(this.useRoboto?Wn3:ZVm)[0];return this.minFontSize&&this.minFontSize>=O?this.minFontSize:O};
_.v.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.v.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.v.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.HX(this.text).split("\n").length-1:Infinity};
_.v.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("Oh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
KM.prototype.guideIsExpandedChanged=KM.prototype.guideIsExpandedChanged;KM.prototype.dataChanged=KM.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],KM.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],KM.prototype,"actionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],KM.prototype,"text",void 0);
_.c([_.g(),_.Y("design:type",String)],KM.prototype,"fontFamily",void 0);_.c([_.g(),_.Y("design:type",Number)],KM.prototype,"maxWidth",void 0);_.c([_.g(),_.Y("design:type",Number)],KM.prototype,"maxHeight",void 0);_.c([_.g(),_.Y("design:type",Number)],KM.prototype,"maxFontSize",void 0);_.c([_.g(),_.Y("design:type",Number)],KM.prototype,"minFontSize",void 0);_.c([_.g(),_.Y("design:type",Number)],KM.prototype,"maxLines",void 0);_.c([_.g(),_.Y("design:type",Object)],KM.prototype,"hideOverflow",void 0);
_.c([_.g({selector:_.BSp}),_.Y("design:type",Boolean)],KM.prototype,"guideIsExpanded",void 0);_.c([_.uc("#container"),_.Y("design:type",HTMLElement)],KM.prototype,"containerNode",void 0);_.c([_.uc("#text"),_.Y("design:type",HTMLElement)],KM.prototype,"textNode",void 0);_.c([_.Si("text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KM.prototype,"dataChanged",null);
_.c([_.Si("guideIsExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KM.prototype,"guideIsExpandedChanged",null);_.c([_.l({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],KM);
_.y(KM,"yt-dynamic-sizing-formatted-string",function(){if(tJU!==void 0)return tJU;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return tJU=O},{mode:1});var zzm;_.Jj9=function(O){_.GY.call(this,O)};
_.X(_.Jj9,_.GY);var VJe=function(O){_.GY.call(this,O)};
_.X(VJe,_.Jj9);var $5=function(){return _.u.apply(this,arguments)||this};
_.X($5,_.u);$5.prototype.onTapSuspendedChannel=function(){var O;if((O=this.data)!=null&&O.serviceEndpoint){var m,G;(O=(G=_.b((m=this.data)==null?void 0:m.serviceEndpoint,_.Db))==null?void 0:G.url)?_.BC(O,void 0,void 0,window.top):(m=new VJe("Did not handle suspended account tap. No appealUrl."),_.oy(m))}else m=new VJe("Did not handle suspended account tap. No serviceEndpoint."),_.oy(m)};
$5.prototype.onTap=function(){var O=this,m=_.uK(),G,B=(G=_.gu(m,{veType:7116}))!=null?G:void 0;_.P6(m,{visualElement:B});_.m$();this.saveRoleText();var Q;if((Q=this.data)==null?0:Q.youtubeSuspended)this.onTapSuspendedChannel();else{var H=!1,M,R;(m=(R=_.b((M=this.data)==null?void 0:M.serviceEndpoint,_.Gbm))==null?void 0:R.supportedTokens)&&m.forEach(function(x){if(x.accountSigninToken)if(H=!0,O.onAccountItemTap)O.onAccountItemTap(x.accountSigninToken.signinUrl);else _.BC(x.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!H){if(M=this.get("serviceEndpoint",this.data))H=!0,this.ytComponentBehavior.resolveCommand(M);H||_.lT(new VJe("Did not handle account switch tap. No token."))}}};
$5.prototype.saveRoleText=function(){if(this.data){var O=this.data,m=O.channelDelegationRole;if(m){var G,B=(G=_.b(O==null?void 0:O.serviceEndpoint,_.Gbm))==null?void 0:G.supportedTokens;if(!B){var Q,H,M,R;B=(Q=_.b(O==null?void 0:O.serviceEndpoint,_.Y4))==null?void 0:(H=Q.popup)==null?void 0:(M=H.confirmDialogRenderer)==null?void 0:(R=M.confirmButton)==null?void 0:R.buttonRenderer;var x;B=(x=_.b(B==null?void 0:B.command,_.zC))==null?void 0:x.commands;if(!B)return;var t;B=(t=_.b(B[1],_.Gbm))==null?
void 0:t.supportedTokens}if(B){x=void 0;t=_.K(B);for(B=t.next();!B.done;B=t.next())if(B=B.value,B.datasyncIdToken){x=B.datasyncIdToken.datasyncIdToken;break}if(x){var W;a:{if(_.S5O()&&(t=_.Tvs(x+"::pom"))){t=new AC(t);break a}t=void 0}(W=t)==null||W.set("role_text",m);if((euO?euO:window.location).href.indexOf("studio")!==-1&&(W=EU5())){t=W.src?(new URL(W.src)).origin:"*";var Z;(Z=W.contentWindow)==null||Z.postMessage({action:"save_pom_role",datasyncId:x,roleText:m},t)}}}}}};
_.vr.Object.defineProperties($5.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var O,m,G=(O=this.data)==null?void 0:(m=O.accountPhoto)==null?void 0:m.thumbnails;return G&&G.length>0&&(G[0].height===36||G[0].height===48)?G[0].height:40}}});
$5.prototype.onTap=$5.prototype.onTap;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],$5.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$5.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!1}),_.Y("design:type",Function)],$5.prototype,"onAccountItemTap",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],$5.prototype,"enableRingForActiveAccount",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],$5.prototype,"thumbnailSize",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$5.prototype,"onTap",null);_.c([_.l({is:"ytd-account-item-renderer",disableElementRegistration:!0})],$5);
_.y($5,"ytd-account-item-renderer",function(){if(zzm!==void 0)return zzm;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return zzm=O},{mode:1});var bVe;var MR=function(){return _.u.apply(this,arguments)||this};
_.X(MR,_.u);MR.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.KR().resolve(_.Mu).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],MR.prototype,"data",void 0);_.c([_.l({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],MR);
_.y(MR,"ytd-identity-chip-renderer",function(){if(bVe!==void 0)return bVe;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return bVe=O},{mode:1});var nb2;var Xj2;var fP_;var hzu;var rM=function(){var O=_.u.apply(this,arguments)||this;O.richItemMinWidth=_.Rd("wn_grid_min_item_width",310);O.isShorts=!1;O.isWatchNext=!1;O.isExploreHub=!1;return O};
_.X(rM,_.u);_.vr.Object.defineProperties(rM.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var O=[],m=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.n7(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var G;if(((G=this.data)==null?0:G.rows)&&m)for(m*=this.data.rows,G=0;G<m;G++)O.push({});return O}}});
_.c([_.h(_.MK),_.Y("design:type",Object)],rM.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],rM.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.cq,value:3}),_.Y("design:type",Number)],rM.prototype,"itemsPerRow",void 0);_.c([_.g({selector:_.Gbz,value:6}),_.Y("design:type",Number)],rM.prototype,"slimItemsPerRow",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Number)],rM.prototype,"richItemMinWidth",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.yh}),_.Y("design:type",Boolean)],rM.prototype,"miniMode",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],rM.prototype,"isShorts",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],rM.prototype,"isWatchNext",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],rM.prototype,"isExploreHub",void 0);
_.c([_.T("isExploreHub"),_.g({reflectToAttribute:!0}),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rM.prototype,"shimmerAnimation",null);_.c([_.T("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],rM.prototype,"cardItems",null);_.c([_.l({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],rM);
_.Tne=_.WE()(rM,"ytd-ghost-grid-renderer",function(){if(hzu===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);hzu=O}O=hzu;return O},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.qi(_.a(function(O){var m=_.ru(O,{numberOfComments:3}).numberOfComments,G=_.ru(O,{isInitialLoad:!1}).isInitialLoad,B=_.ru(O,{engagementPanel:!1}).engagementPanel,Q=function(){return Math.min(Number(m==null?void 0:m())||20,20)};
return _.q("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.q(_.U,{cond:function(){return!(B==null?0:B())&&(G==null?void 0:G())},
then:function(){return _.q("div",{class:"ytGhostCommentsComments"},_.q("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.q("div",{class:_.bE("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.q("div",{class:_.bE("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.q("div",{class:"ytGhostCommentsGhostCard"},_.q("div",{class:"ytGhostCommentsAvatar"},_.q("div",{class:"ytGhostCommentsCircle"})),_.q("div",{class:"ytGhostCommentsComments"},_.q("div",{class:"ytGhostCommentsMeta"},
_.q("div",{class:_.bE("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.q("div",{class:_.bE("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.q("div",{class:"ytGhostCommentsComments"},_.q(_.gi,{each:function(){return Array((Q==null?void 0:Q())||3)}},function(){return _.q("div",{class:"ytGhostCommentsGhostCard"},_.q("div",{class:"ytGhostCommentsAvatar"},_.q("div",{class:"ytGhostCommentsCircle"})),_.q("div",{class:"ytGhostCommentsHost"},_.q("div",{class:"ytGhostCommentsMeta"},
_.q("div",{class:_.bE("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.q("div",{class:_.bE("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.q("div",{class:_.bE("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.q("div",{class:"ytGhostCommentsGhostLikeDislike"},_.q("div",{class:_.bE("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.q("div",{class:_.bE("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"rb"),"yt-ghost-comments",{props:{numberOfComments:_.VZ,
isInitialLoad:_.VZ,engagementPanel:_.VZ}});_.lE("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var RI=function(){var O=_.u.apply(this,arguments)||this;O.isOverridable=!1;O.spinnerActive=!1;O.showButton=!1;O.isCommentsSection=!1;O.engagementPanel=!0;O.isShortsGrid=!1;O.isShortsPage=!1;O.isWatchPage=!1;O.ghostCardExperimentEnabled=_.V("show_ghost_comments_shorts_watch")||_.V("show_ghost_comments_desktop_watch");O.originalShowButton=!1;O.endOfList=!1;return O};
_.X(RI,_.u);_.v=RI.prototype;_.v.resetIntersectionObserver=function(){var O;(O=this.observer)==null||O.disconnect();this.observer=void 0};
_.v.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var O,m;((O=this.data)==null?void 0:O.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((m=this.data)==null?0:m.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.v.initializeIntersectionObserver=function(){var O=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(m){m=_.K(m);for(var G=m.next();!G.done;G=m.next())G.value.isIntersecting&&(O.triggerContinuation(),O.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.v.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]]"}}}}}};
_.v.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var O;((O=this.data)==null?0:O.continuationEndpoint)&&(O=_.b(this.data.continuationEndpoint,_.Dw))&&this.ytdReduxBehavior.dispatch(_.xs({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:O}}))};
_.v.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.v.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.v.onServiceRequestCompleted=function(O,m){if(!_.V("kevlar_hide_spinner_on_empty_continuation_killswitch")){var G;(G=m.actions)!=null&&G.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.v.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.v.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.v.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.v.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var O=3;if(this.engagementPanel){var m,G,B;O=Math.floor(((((m=this.hostElement)==null?void 0:(G=m.parentElement)==null?void 0:(B=G.parentElement)==null?void 0:B.scrollHeight)||108)-108)/108);O=this.isInitialLoad?Math.max(O,3):3}m=[].concat(_.lS(this.hostElement.querySelectorAll("yt-ghost-comments")));m=_.K(m);for(G=m.next();!G.done;G=m.next())G=G.value,G.numberOfComments=O,G.isInitialLoad=this.isInitialLoad,G.engagementPanel=
this.engagementPanel}};
_.v.detached=function(){this.resetIntersectionObserver()};
_.vr.Object.defineProperties(RI.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.V("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.V("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
RI.prototype.numberOfGhostCommentsChanged=RI.prototype.numberOfGhostCommentsChanged;RI.prototype.continuationTriggerOffsetChanged=RI.prototype.continuationTriggerOffsetChanged;RI.prototype.showButtonChanged=RI.prototype.showButtonChanged;RI.prototype.onYtServiceRequestCompletedForButtonRenderer=RI.prototype.onYtServiceRequestCompletedForButtonRenderer;RI.prototype.onServiceRequestCompleted=RI.prototype.onServiceRequestCompleted;RI.prototype.onYtServiceRequestSentForButtonRenderer=RI.prototype.onYtServiceRequestSentForButtonRenderer;
RI.prototype.observeData=RI.prototype.observeData;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],RI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],RI.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.tg.YtVisibilityBehavior),_.Y("design:type",Object)],RI.prototype,"ytVisibilityBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],RI.prototype,"ytComponentBehavior",void 0);
_.c([_.h(_.MK),_.Y("design:type",Object)],RI.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],RI.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],RI.prototype,"isOverridable",void 0);_.c([_.g(),_.Y("design:type",Object)],RI.prototype,"spinnerActive",void 0);_.c([_.g(),_.Y("design:type",Object)],RI.prototype,"showButton",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],RI.prototype,"isCommentsSection",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],RI.prototype,"engagementPanel",void 0);_.c([_.g(),_.Y("design:type",Object)],RI.prototype,"isShortsGrid",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.vAf}),_.Y("design:type",Object)],RI.prototype,"isShortsPage",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.HiS}),_.Y("design:type",Object)],RI.prototype,"isWatchPage",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],RI.prototype,"ghostCardExperimentEnabled",void 0);
_.c([_.g(),_.Y("design:type",Number)],RI.prototype,"continuationTriggerOffset",void 0);_.c([_.g(),_.Y("design:type",Object)],RI.prototype,"endOfList",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],RI.prototype,"isInitialLoad",void 0);_.c([_.uc("ytd-button-renderer"),_.Y("design:type",_.TR)],RI.prototype,"buttonRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],RI.prototype,"buttonOverrides",void 0);
_.c([_.g(),_.T("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],RI.prototype,"isShortsCommentsSection",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RI.prototype,"observeData",null);
_.c([_.hG("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RI.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],RI.prototype,"onServiceRequestCompleted",null);
_.c([_.hG("yt-service-request-completed-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RI.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.c([_.Si("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RI.prototype,"showButtonChanged",null);
_.c([_.Si("continuationTriggerOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RI.prototype,"continuationTriggerOffsetChanged",null);_.c([_.Tw("isInitialLoad","engagementPanel"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RI.prototype,"numberOfGhostCommentsChanged",null);_.c([_.l({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],RI);
_.y(RI,"ytd-continuation-item-renderer",function(){if(fP_!==void 0)return fP_;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return fP_=O},{mode:1});var gbo;var i9=function(){var O=_.u.apply(this,arguments)||this;O.downloadProgress=0;O.transferState="TRANSFER_STATE_UNKNOWN";O.downloadState="DOWNLOAD_STATE_UNKNOWN";O.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";O.offlineVideoPolicyExpirationTimestamp=0;O.downloadedVideoPlaybackPosition=0;return O};
_.X(i9,_.u);i9.prototype.dataChanged=function(){var O;this.videoData=_.b((O=this.data)==null?void 0:O.renderer,S1_);this.transferStateChanged()};
i9.prototype.downloadProgressChanged=function(){if(this.entityInfo){var O=Object.assign({},this.videoData),m=K2r(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),G=m.publishedTimeText,B=m.badges;O.shortViewCountText=m.shortViewCountText;O.publishedTimeText=G;O.badges=B;this.set("videoData",O)}};
i9.prototype.transferStateChanged=function(){if(this.entityInfo){var O=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",m=_.IQ(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!jH(this.entityInfo.policyEntity),G=Object.assign({},this.videoData),B=K2r(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Q=B.publishedTimeText,H=B.badges;G.shortViewCountText=
B.shortViewCountText;G.publishedTimeText=Q;G.badges=H;G.isDisabled=m;G.isWatched=this.downloadedVideoPlaybackPosition>0;G.navigationEndpoint=m?void 0:Kts(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var M;O&&((M=this.videoData)==null?0:M.videoId)&&!_.V("dl_resume_click_killswitch")&&(G.isDisabled=!1,G.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});G.thumbnailOverlays=H3e(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",G)}};
i9.prototype.transferStateChanged=i9.prototype.transferStateChanged;i9.prototype.downloadProgressChanged=i9.prototype.downloadProgressChanged;i9.prototype.dataChanged=i9.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],i9.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],i9.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],i9.prototype,"videoData",void 0);_.c([_.g({selector:sr,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],i9.prototype,"downloadProgress",void 0);_.c([_.g(),_.Y("design:type",Number)],i9.prototype,"relativeDateReference",void 0);_.c([_.g({selector:_.eH,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],i9.prototype,"transferState",void 0);
_.c([_.g({selector:h9O,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],i9.prototype,"downloadState",void 0);_.c([_.g({selector:R9N,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],i9.prototype,"offlinePolicyAction",void 0);_.c([_.g({selector:iis,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],i9.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.c([_.g({selector:No,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],i9.prototype,"downloadedVideoPlaybackPosition",void 0);_.c([_.g({selector:qEs,selectorArgs:["videoData.videoId"]}),_.Y("design:type",Object)],i9.prototype,"entityInfo",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],i9.prototype,"isDownloading",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i9.prototype,"dataChanged",null);
_.c([_.Si("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i9.prototype,"downloadProgressChanged",null);_.c([_.Si("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i9.prototype,"transferStateChanged",null);
_.c([_.l({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],i9);
_.y(i9,"ytd-downloaded-video-grid-video-renderer",function(){if(gbo!==void 0)return gbo;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return gbo=O},{mode:_.ZB("kevlar_poly_si_batch_j025")?1:2});var uj2;var x5=function(){};
x5.prototype.resolve=function(O,m){var G=this;return _.r(function(B){return B.yield(G.resolveCommand(O,m),0)})};var jVH,qR;jVH=OhN(function(O){return O.targetId},{shouldPersist:!1});
qR=jVH.updateData;_.IP9=jVH.useUpdatableData;var pjs,Sy8;pjs=OhN(function(O){return O.targetId});
Sy8=pjs.updateData;_.Eb9=pjs.useUpdatableData;var Lne=Dwr.bind(null,qR),Crp=Dwr.bind(null,Sy8);(function(O,m,G){var B=_.b(G==null?void 0:G.updatedRenderer,_.MI2);return B?O({targetId:m},function(){return B}):!1}).bind(null,qR);var UA=function(){};
_.X(UA,x5);UA.prototype.resolveCommand=function(O){var m;return _.r(function(G){m=_.b(O,_.v15);if(!m)return G.return();Lne(m.targetId,m);_.ju(G)})};var to=function(){var O=_.Iu.apply(this,arguments)||this;O.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return O};
_.X(to,_.Iu);_.v=to.prototype;_.v.configureContinuationPathMap=function(){return{}};
_.v.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.v.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.v.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.v.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.v.handleAppendContinuationItemsAction=function(O){var m=_.b(O,_.Mfe);if(this.data&&this.data.targetId&&m&&this.continuationPathMap&&m.targetId===this.data.targetId){var G=d1O(O),B=G&&this.continuationPathMap[G];if(B&&G)if(O=this.get(B,this.data)){a:{for(G=0;G<O.length;G++){var Q=O[G],H=void 0,M=!!_.b((H=_.b(Q,NWC))==null?void 0:H.content,_.uW8);if(_.b(Q,_.GK)||M)break a}G=O.length}B="data."+B;m.continuationItems?G===O.length-1?(this.pop(B),this.push.apply(this,[B].concat(_.lS(m.continuationItems)))):
G===O.length?this.push.apply(this,[B].concat(_.lS(m.continuationItems))):this.splice.apply(this,[B,G,1].concat(_.lS(m.continuationItems))):this.splice(B,G,1);(_.V("web_enable_voting_animation")||_.V("enable_music_web_cairo_voting_animation"))&&_.iP(this.hostElement,"yt-append-continuation-items-action-finished");_.iP(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.ay(new _.j9("append continuation items does not exist",G));else _.ay(new _.j9("append continuation path does not exist",
G))}};
_.v.handleReloadContinuationItemsCommand=function(O){var m=_.b(O,_.v15);if(this.data&&m){if(_.V("web_client_explore_hub")||_.V("web_explore_hub_on_hover")||_.V("web_client_explore_hub_on_hover"))try{_.KR().resolve(UA).resolveCommand(O)}catch(H){}if(this.data.targetId&&this.continuationPathMap&&m.targetId===this.data.targetId&&(!_.V("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||m.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var G,B=(G=m.slot)==null?void 0:
G.replace("RELOAD_CONTINUATION_SLOT_","");G=(O=d1O(O)+"-"+(B==null?void 0:B.toLowerCase()))&&this.continuationPathMap[O];if(!G||!O||!B)_.ay(new _.j9("reload continuation path does not exist",O));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(m)){if(m.replaceWithFirstItem){var Q;this.set("data."+G,((Q=m.continuationItems)==null?0:Q.length)?m.continuationItems[0]:{})}else this.set("data."+G,m.continuationItems?m.continuationItems:[]);this.continuationIsReloading=
!1;_.iP(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.v.handleShowReloadUiCommand=function(O){O=_.b(O,XGo);var m;((m=this.data)==null?0:m.targetId)&&(O==null?0:O.targetId)&&O.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
to.prototype.observeData=to.prototype.observeData;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],to.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],to.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],to.prototype,"data",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],to.prototype,"continuationIsReloading",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],to.prototype,"observeData",null);_.c([_.p7()],to);_.Ww=[_.xo.YtComponentBehavior,_.cg.YtActionHandlerBehavior,to.prototype];_.Z8={};_.Z8.YtNextContinuationBehavior=[_.hg.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",_.f7(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.f7(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(O,m){O.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,m,{}):(O={locationRetrieved:function(G){this.makeNextContinuationRequest_(G,m,{})}.bind(this)},_.iP(this.hostElement,"yt-retrieve-location",O))},
makeNextContinuationRequest_:function(O,m,G){_.Yc("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();O=m(O);var B;this.canUseContextualNetworkManager_()&&(B=this.getNetworkManager());B||(B=_.KR().resolve(_.ew));m=_.Fw.instance;if(_.kB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&m){B=_.$H([O.startsWith("/")?O.substr(1):O]);var Q,H;G=_.rS(m,{},B,G==null?void 0:(Q=G.context)==null?void 0:(H=Q.clickTracking)==null?void 0:H.clickTrackingParams).then(function(M){return{response:M}})}else G=
this.nextContinuation.usePost?B.postData(O,G):B.fetchData(O);
G.then(this.updateNextContinuationData_.bind(this,O));this.pendingContinuationRequest_=G;this.startListeningForNavigate_()},
updateNextContinuationData_:function(O,m){var G=this;_.Yc("ncl");this.pendingContinuationRequest_=void 0;if(m){var B={};this.nextContinuation&&(B=this.nextContinuation);if(m.response&&m.response.continuationContents&&m.response.continuationContents[B.continuationType]){O=m.response.continuationContents[B.continuationType];var Q=B.header||"data.header",H=O[B.responseHeaderKey||"header"];H&&this.set(Q,H);Q=B.contentsArray||"data.contents";H=this.getContents_(O,B.responseContentsKey||"contents")||[];
this.pathExists_(Q)?(H.unshift(Q),this.push.apply(this,H)):this.set(Q,H);H&&(sJI(_.uK(),m.response,this.hostElement,function(M){_.xc(G.hostElement,"yt-store-grafted-ve-action",[M])}),_.iP(this.hostElement,"yt-next-continuation-data-updated",{continuationData:m,
page:this,contentsArray:Q}));this.set(B.continuationsArray||"data.continuations",O[B.responseContinuationsKey||"continuations"]||[])}else m.reload?_.ay(new _.j9("Reloading from continuation is unsupported")):m.responseContext&&m.responseContext.errors||(delete m.xsrf_token,delete m.timing,delete m.endpoint,delete m.csn,m.responseContext&&delete m.responseContext.serviceTrackingParams,Q={request:_.AN(O,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(m).sort()},m.response&&(Q.responseContentKeys=
Object.keys(m.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(Q.continuationType=this.nextContinuation.continuationType.substr(0,256)),m=new _.j9("Malformed continuation",Q),O.indexOf("/comment_service_ajax")==0?_.ay(m):_.oy(m)),this.set(B.continuationsArray||"data.continuations",[])}else _.lT(new _.j9("Missing continuation response",O))},
getContents_:function(O,m){m=m.split(".");return _.aM.getValueByKeys(O,m)},
pathExists_:function(O){var m=this;O=O.toString().split(".");for(var G=0;G<O.length;G++)if(m=m[O[G]],m===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var ob2;var lPj;var z4=function(){var O=_.u.apply(this,arguments)||this;O.triggered_=!1;return O};
_.X(z4,_.u);_.v=z4.prototype;_.v.attached=function(){this.maybeTriggerAutoload()};
_.v.detached=function(){this.hasBeenTriggered_=!1};
_.v.onPrescanVisible=function(){this.onShow()};
_.v.onShow=function(){this.showButton||this.trigger()};
_.v.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.iP(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.v.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.v.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.v.computeLabel_=function(O,m){return O===void 0?null:O.label||!m?O.label:this.showMoreText_};
_.v.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.v.getContinuationUrl=function(O){var m={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(m.itct=this.data.clickTrackingParams);return _.Oe(O,m)};
_.v.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
z4.prototype.showButtonChanged_=z4.prototype.showButtonChanged_;z4.prototype.observeData_=z4.prototype.observeData_;_.c([_.h(_.tg.YtVisibilityBehavior),_.Y("design:type",Object)],z4.prototype,"ytVisibilityBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],z4.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],z4.prototype,"showButton",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],z4.prototype,"showIcon",void 0);_.c([_.g({computed:"computeLabel_(data, showButton)"}),_.Y("design:type",Object)],z4.prototype,"label",void 0);_.c([_.g({value:_.Qg(_.Xm("SHOW_MORE",void 0,"Show More"))}),_.Y("design:type",Object)],z4.prototype,"showMoreText_",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],z4.prototype,"spinnerActive_",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],z4.prototype,"hasBeenTriggered_",void 0);
_.c([_.g({value:void 0}),_.Y("design:type",String)],z4.prototype,"observeVisibleOption",void 0);_.c([_.g({value:void 0}),_.Y("design:type",String)],z4.prototype,"observeHiddenOption",void 0);_.c([_.g({value:"observe_once"}),_.Y("design:type",Object)],z4.prototype,"observePrescanOption",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],z4.prototype,"observeData_",null);
_.c([_.Tw("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],z4.prototype,"showButtonChanged_",null);_.c([_.DO({is:"yt-next-continuation",disableElementRegistration:!0})],z4);
_.y(z4,"yt-next-continuation",function(){if(lPj===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;ob2===void 0&&(ob2=document.createElement("template"));var B=ob2;G.call(m,B.content.cloneNode(!0),O.content.firstChild);lPj=O}O=lPj;return O},{mode:2});var aPm;var k38;var Jo=function(){return _.u.apply(this,arguments)||this};
_.X(Jo,_.u);Jo.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Jo.prototype,"data",void 0);_.c([_.DO({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],Jo);
_.y(Jo,"yt-music-pass-small-feature-info-renderer",function(){if(k38===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;aPm===void 0&&(aPm=document.createElement("template"));var B=aPm;G.call(m,B.content.cloneNode(!0),O.content.firstChild);k38=O}O=k38;return O},{mode:2});_.lE("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var V$=function(){var O=_.u.apply(this,arguments)||this;O.isCollapsible=!1;O.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return O};
_.X(V$,_.u);_.v=V$.prototype;_.v.computeIsCollapsible=function(O){return!!(((O==null?0:O.showMoreText)||(O==null?0:O.visibleRowCount))&&(O==null?0:O.isCollapsible))};
_.v.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"}}}};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.v.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.v.onIronResize=function(){var O=this;_.GS(this,"updateGridInitItems",function(){O.maybeUpdateInitialItemsDisplayed()})};
_.v.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var O=this.getVisibleWidth();O!==0&&(O=Math.floor(O/214)*(this.data.visibleRowCount||2),O!==this.initialCount&&(this.initialCount=O,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.v.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.v.computeExpandVisible=function(O,m,G,B){return O&&m&&G&&!!B&&!!B.showMoreText};
_.v.computeShowMoreButton=function(O){return{text:O,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.v.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.v.initCollapsed=function(){var O=this;this.ytLazyListBehavior.canShowMore=!1;var m;(this.collapsed=!((m=this.data)==null||!m.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.QA(this,function(){_.UB(O.hostElement,"yt-refit-popups-action")})};
_.v.fillRestIfNotCollapsible=function(){var O=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!O||this.ytLazyListBehavior.fillRemainingListItems()};
_.v.computeViewAllHidden=function(O,m){return O||!m.viewAllEndpoint};
V$.prototype.fillRestIfNotCollapsible=V$.prototype.fillRestIfNotCollapsible;V$.prototype.initCollapsed=V$.prototype.initCollapsed;V$.prototype.onIronResize=V$.prototype.onIronResize;V$.prototype.persistentGuideChanged=V$.prototype.persistentGuideChanged;_.c([_.h(_.Dm),_.Y("design:type",Object)],V$.prototype,"ironResizableBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],V$.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.jQ.YtLazyListBehavior),_.Y("design:type",Object)],V$.prototype,"ytLazyListBehavior",void 0);_.c([_.h(_.Z8.YtNextContinuationBehavior),_.Y("design:type",Object)],V$.prototype,"ytNextContinuationBehavior",void 0);_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],V$.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.h(_.Ww),_.Y("design:type",Object)],V$.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],V$.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],V$.prototype,"collapsed",void 0);_.c([_.g(),_.Y("design:type",Number)],V$.prototype,"initialCount",void 0);_.c([_.g({computed:"computeShowMoreButton(data.showMoreText)"}),_.Y("design:type",Object)],V$.prototype,"showMoreButton",void 0);
_.c([_.g({computed:"computeIsCollapsible(data)"}),_.Y("design:type",Object)],V$.prototype,"isCollapsible",void 0);_.c([_.uc("#items"),_.Y("design:type",HTMLElement)],V$.prototype,"items",void 0);_.c([_.Si("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],V$.prototype,"persistentGuideChanged",null);_.c([_.hG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],V$.prototype,"onIronResize",null);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],V$.prototype,"initCollapsed",null);_.c([_.Si("canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],V$.prototype,"fillRestIfNotCollapsible",null);_.c([_.l({is:"ytd-grid-renderer",disableElementRegistration:!0})],V$);
_.y(V$,"ytd-grid-renderer",function(){if(uj2!==void 0)return uj2;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return uj2=O},{mode:_.ZB("kevlar_poly_si_batch_j025")?1:2});var b9=function(){return _.u.apply(this,arguments)||this};
_.X(b9,_.u);
b9.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],b9.prototype,"data",void 0);_.c([_.l({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],b9);
_.y(b9,"ytd-carousel-ad-renderer",function(){if(Xj2!==void 0)return Xj2;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Xj2=O},{mode:1});var yju;var nM=function(){return _.u.apply(this,arguments)||this};
_.X(nM,_.u);_.v=nM.prototype;_.v.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"}}}};
_.v.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,nM.JSC$15376_CLICK_LOCATION_ID_MAP))};
_.v.onSitelinkTap=function(O){O.stopPropagation();var m,G,B=O==null?void 0:(m=O.model)==null?void 0:(G=m.item)==null?void 0:G.onTap;B&&this.ytSparklesClickLocationBehavior.handleClick(B,O,!1)};
_.v.onTap=function(O){var m=this.data&&this.data.content&&this.data.content.navigationEndpoint;m&&this.ytSparklesClickLocationBehavior.handleClick(m,O,!1)};
_.v.sendImpression=function(){if(this.data&&this.data.content)for(var O=_.K(this.data.content.impressionEndpoints||[]),m=O.next();!m.done;m=O.next()){m=_.K(m.value.loggingUrls||[]);for(var G=m.next();!G.done;G=m.next())G=G.value,G.baseUrl&&NI(G.baseUrl,G.attributionSrcMode)}};
nM.prototype.onTap=nM.prototype.onTap;nM.prototype.dataChanged=nM.prototype.dataChanged;nM.JSC$15376_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.up.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],nM.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],nM.prototype,"data",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nM.prototype,"dataChanged",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],nM.prototype,"onTap",null);_.c([_.l({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],nM);
_.y(nM,"ytd-promoted-sparkles-text-search-renderer",function(){if(yju!==void 0)return yju;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return yju=O},{mode:1});var cj2;var Xh=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-mute-ad-action":"handleMuteAd"};return O};
_.X(Xh,_.u);_.v=Xh.prototype;
_.v.configureRendererStamper=function(){return{"data.menu":{id:_.V("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]]"}}}}}};
_.v.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.v.computeHasAdBadge=function(O){return!(O==null||!O.adBadge)};
_.v.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Xh.JSC$15385_DEFAULT_AD_BADGE_RENDERER),_.JG(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Xh.JSC$15385_CLICK_LOCATION_ID_MAP))};
_.v.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var O;(((O=this.data)==null?void 0:O.impressionCommands)||[]).forEach(function(m){m=_.K(m.loggingUrls||[]);for(var G=m.next();!G.done;G=m.next())G=G.value,G.baseUrl&&NI(G.baseUrl,G.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.v.onTap=function(O){var m,G=(m=this.data)==null?void 0:m.navigationEndpoint,B;(m=(B=this.data)==null?void 0:B.thumbnailNavigationEndpoint)&&_.vu(_.$Z(O),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(m,O,!1):G&&this.ytSparklesClickLocationBehavior.handleClick(G,O,!1)};
_.v.handleMuteAd=function(){this.collapsed=!0};
_.v.attached=function(){var O=this;_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&O.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.v.detached=function(){_.V("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.vr.Object.defineProperties(Xh.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var O;return!(((O=this.data)==null?void 0:O.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var O;return!(((O=this.data)==null?void 0:O.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.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}}});
Xh.prototype.dataChanged=Xh.prototype.dataChanged;
Xh.JSC$15385_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"]]);
Xh.JSC$15385_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Xm("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Xh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.c([_.h($m),_.Y("design:type",Object)],Xh.prototype,"ytdActiveViewBehavior",void 0);
_.c([_.h([_.cg.YtActionHandlerBehavior]),_.Y("design:type",Object)],Xh.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.up.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],Xh.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Xh.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Xh.prototype,"collapsed",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],Xh.prototype,"useBiggerThumbs",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.ib("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],Xh.prototype,"biggerThumbsStyle",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.Y("design:type",Boolean)],Xh.prototype,"fixAlignmentSmallScreens",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs_square")}}),
_.Y("design:type",Boolean)],Xh.prototype,"useBiggerThumbsSquare",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data.mediaHoverOverlay"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xh.prototype,"hideHoverOverlay",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xh.prototype,"webSearchLayout",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xh.prototype,"webSearchLayoutLandscape",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xh.prototype,"webSearchLayoutSquare",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xh.prototype,"sparklesCtaNoBackground",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.actionButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xh.prototype,"hideActionButton",null);_.c([_.g({computed:"computeButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],Xh.prototype,"buttonOverride",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.Y("design:type",Boolean)],Xh.prototype,"hasNewAdBadge",void 0);_.c([_.T("data.promotedSparklesWebStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Xh.prototype,"useRoundedBadge",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xh.prototype,"dataChanged",null);_.c([_.l({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Xh);
_.y(Xh,"ytd-promoted-sparkles-web-renderer",function(){if(cj2!==void 0)return cj2;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return cj2=O},{mode:1});var Yye;var fM=function(){var O=_.u.apply(this,arguments)||this;O.isInlinePreviewTriggered=!1;O.enableMonoStyle=_.V("enable_default_mono_cta_migration_web_client");return O};
_.X(fM,_.u);_.v=fM.prototype;_.v.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]]"}}}}}};
_.v.computeShowCta=function(O){return!(O==null||!O.ctaRenderer)};
_.v.onCtaClick=function(){var O,m,G,B=(O=this.data)==null?void 0:(m=O.ctaRenderer)==null?void 0:(G=m.buttonRenderer)==null?void 0:G.command;B&&this.ytComponentBehavior.resolveCommand(B)};
_.v.onWatchButtonClick=function(){var O,m,G,B=(O=this.data)==null?void 0:(m=O.watchButtonRenderer)==null?void 0:(G=m.buttonRenderer)==null?void 0:G.command;B&&this.ytComponentBehavior.resolveCommand(B)};
_.v.onTap=function(){};
_.v.dataChanged=function(){if(this.data){var O;_.V("enable_inline_muted_playback_on_web_search")&&((O=this.data)==null?0:O.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",fM.JSC$15389_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",fM.JSC$15389_DEFAULT_CLICK_LOCATION_BEHAVIOR,fM.JSC$15389_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(O=this.thumbnail.getElementsByTagName("a"),O.length>0&&(O=O.namedItem("thumbnail"))&&O.removeAttribute("href"));var m;if(((m=this.data)==null?0:m.forceImpAutoplay)&&_.V("enable_force_imp_autoplay_on_desktop_search")){var G;(G=this.JSC$15390_inlinePreviewHoverListener)==null||hUp(G)}}};
_.v.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var O=_.K(this.data.impressionUrls),m=O.next();!m.done;m=O.next())m=m.value,gnM(m,jpz(m));this.data.impressionsFired=!0}};
_.v.maybeComputeHref=function(){return null};
_.v.computeIsShortDR=function(O){return!(O==null||!O.watchButtonRenderer)&&!(O==null||!O.ctaRenderer)&&!!this.enableShortDR};
_.v.computeIsNewUiOrShortDr=function(O){return!!this.enableUiUpdate||this.computeIsShortDR(O)};
_.v.computeIsNewUiAndNotShortDr=function(O){return!!this.enableUiUpdate&&!this.computeIsShortDR(O)};
_.v.computeHideAvatar=function(O){return!((O==null?0:O.channelThumbnail)&&this.computeIsNewUiOrShortDr(O))};
_.v.onClick=function(O){var m,G=(m=this.data)==null?void 0:m.navigationEndpoint;if(this.enableShortDR&&G&&(_.b(G,_.GC)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(G,O,!!_.b(G,_.GC)),O.stopPropagation();else if(G&&_.b(G,_.GC))this.ytSparklesClickLocationBehavior.handleClick(G,O,!0),O.stopPropagation();else if(G){var B,Q;((B=this.data)==null?0:B.navigationEndpoint)&&((Q=this.data)==null?0:Q.adPlaybackContextParams)&&(m=this.data.navigationEndpoint,O=this.data.adPlaybackContextParams,
m.commandMetadata&&_.b(m.commandMetadata,_.bP)&&_.b(m.commandMetadata,_.bP).url&&(m=_.Fq(_.b(m.commandMetadata,_.bP).url).adurl)&&_.jsM(m)&&_.vd(_.Pr(m),{encoded_ad_playback_context:O}));this.ytComponentBehavior.resolveCommand(G)}};
_.v.computeButtonOverride=function(O){if(this.computeIsNewUiOrShortDr(O))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.v.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.v.onThumbnailContainerClick=function(O){this.onClick(O)};
_.v.computeThumbnailWidth=function(O,m){return O?m==="MASSIVE"?600:m==="BIG"?500:m==="MEDIUM"?450:420:360};
_.v.attached=function(){var O=this,m;_.V("enable_inline_muted_playback_on_web_search")&&((m=this.data)==null?0:m.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&O.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.v.detached=function(){var O;_.V("enable_inline_muted_playback_on_web_search")&&((O=this.data)==null?0:O.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.V("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15390_inlinePreviewHoverListener=Yi({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:Bn9})};
_.v.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$15390_inlinePreviewHoverListener)==null||mk(O)};
fM.prototype.dataChanged=fM.prototype.dataChanged;fM.prototype.onTap=fM.prototype.onTap;fM.JSC$15389_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Xm("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};fM.JSC$15389_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
fM.JSC$15389_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.c([_.h($m),_.Y("design:type",Object)],fM.prototype,"ytdActiveViewBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],fM.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.up.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],fM.prototype,"ytSparklesClickLocationBehavior",void 0);
_.c([_.uc("#main-container"),_.Y("design:type",HTMLElement)],fM.prototype,"mainContainer",void 0);_.c([_.g(),_.Y("design:type",Object)],fM.prototype,"isInlinePreviewTriggered",void 0);_.c([_.g(),_.Y("design:type",Object)],fM.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],fM.prototype,"useBiggerThumbs",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("enable_video_display_compact_button_group_for_desktop_search")}}),
_.Y("design:type",Boolean)],fM.prototype,"enableShortDR",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("enable_vac_ui_update_for_desktop_search")}}),
_.Y("design:type",Boolean)],fM.prototype,"enableUiUpdate",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.ib("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],fM.prototype,"biggerThumbsStyle",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.Y("design:type",Boolean)],fM.prototype,"showCta",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.Y("design:type",Boolean)],fM.prototype,"isShortDr",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.Y("design:type",Boolean)],fM.prototype,"isShortDrOrNewUi",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.Y("design:type",Boolean)],fM.prototype,"isNewUiAndNotShortDr",void 0);_.c([_.g({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],fM.prototype,"buttonOverride",void 0);_.c([_.g({computed:"computeSecondaryButtonOverride(data)"}),_.Y("design:type",Object)],fM.prototype,"secondaryButtonOverride",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],fM.prototype,"enableMonoStyle",void 0);
_.c([_.uc("ytd-thumbnail"),_.Y("design:type",HTMLElement)],fM.prototype,"thumbnail",void 0);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fM.prototype,"onTap",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fM.prototype,"dataChanged",null);_.c([_.l({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],fM);
_.y(fM,"ytd-promoted-video-renderer",function(){if(Yye!==void 0)return Yye;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Yye=O},{mode:1});var dHu;var ho=function(){var O=_.u.apply(this,arguments)||this;O.useRoundedBadge=!0;O.sitelinkIds=[];return O};
_.X(ho,_.u);_.v=ho.prototype;
_.v.configureRendererStamper=function(){return{"data.menu":{id:_.V("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]]"}}}}}};
_.v.dataChanged=function(){var O;(O=this.data)!=null&&O.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,ho.JSC$15395_CLICK_LOCATION_ID_MAP)};
_.v.onTap=function(O){var m,G=(m=this.data)==null?void 0:m.navigationCommand;G&&!_.vu(_.$Z(O),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(G,O,!1)};
_.v.onSitelinkTap=function(O){var m,G,B=O==null?void 0:(m=O.model)==null?void 0:(G=m.item)==null?void 0:G.onTap;B&&this.ytSparklesClickLocationBehavior.handleClick(B,O,!1)};
_.v.configureSitelinkClickTargets=function(){var O=this,m,G,B=(m=this.data)==null?void 0:(G=m.clickLocationTargets)==null?void 0:G.find(function(Q){return Q.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
B&&_.ZO(this.hostElement).querySelectorAll(".sitelink").forEach(function(Q){_.JG(Q,"yt-simple-endpoint",!0);O.sitelinkIds.push(Q.id);var H,M;(H=O.ytSparklesClickLocationBehavior)==null||(M=H.clickTargetMap)==null||M.set(Q.id,B)})};
_.v.sendImpression=function(){var O,m,G=((O=this.data)==null?void 0:(m=O.impressionCommand)==null?void 0:m.loggingUrls)||[];O=_.K(G);for(m=O.next();!m.done;m=O.next())m=m.value,m.baseUrl&&NI(m.baseUrl,m.attributionSrcMode)};
_.v.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.vr.Object.defineProperties(ho.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
ho.prototype.onTap=ho.prototype.onTap;ho.prototype.dataChanged=ho.prototype.dataChanged;ho.JSC$15395_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.up.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],ho.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ho.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ho.prototype,"showFavicon",null);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],ho.prototype,"useBiggerThumbs",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.ib("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],ho.prototype,"biggerThumbsStyle",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.Y("design:type",Boolean)],ho.prototype,"enableThumbnailScalingFix",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ho.prototype,"dataChanged",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ho.prototype,"onTap",null);_.c([_.l({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],ho);
_.y(ho,"ytd-text-image-no-button-layout-renderer",function(){if(dHu!==void 0)return dHu;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return dHu=O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var wj_;var T4=function(){var O=_.u.apply(this,arguments)||this;O.isInlinePlaybackState=!1;O.uiUpdate=_.V("web_modern_buttons");O.hideCta=_.V("hide_cta_for_home_web_video_ads");O.noBottomMargin=!1;O.animateInTimeStamp=_.Rd("hide_cta_for_home_web_video_ads_animate_in_time");O.animateInCta=!1;O.isHovered=!1;O.enableMonoStyle=_.V("enable_default_mono_cta_migration_web_client");O.player=null;O.JSC$15402_playerEvents=new Map;O.JSC$15402_preventProgressSaveTimer=null;O.delayedCtaJobId=null;return O};
_.X(T4,_.u);_.v=T4.prototype;_.v.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]]"}}}}}};
_.v.attached=function(){this.JSC$15402_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15402_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.V("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.v.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15402_playerEvents)};
_.v.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",T4.JSC$15401_DEFAULT_CLICK_LOCATION_BEHAVIOR,T4.JSC$15401_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.v.hoverChanged=function(){var O=this;this.delayedCtaJobId&&(_.ln.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.V("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Sh(_.ln,function(){O.buttonContainer.classList.add("show-delayed-buttons")},_.Rd("delayed_cta_on_web_delay_milliseconds")))};
_.v.setPlayer=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return(m=_.UB(O.hostElement,"yt-get-inline-preview-player-action"))&&m[0]?G.yield(m[0].getPlayerPromise(),3):G.jumpTo(0);O.player=G.yieldResult;O.ytPlayerListenerBehavior.listenToPlayerEvents(O.player,O.JSC$15402_playerEvents);_.ju(G)})};
_.v.onPlaybackStart=function(){var O=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15402_preventProgressSaveTimer=_.z$(_.ln,function(){O.JSC$15402_preventProgressSaveTimer=null},1E4))};
_.v.onVideoProgress=function(O){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&O>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.v.resetPreventProgressSaveTimer=function(){_.ln.cancelJob(this.JSC$15402_preventProgressSaveTimer);this.JSC$15402_preventProgressSaveTimer=null};
_.v.getSimpleString=function(O){return _.HX(O)};
_.v.onClick=function(O){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var m,G=(m=this.data)==null?void 0:m.navigationEndpoint,B;m=(B=this.data)==null?void 0:B.channelEndpoint;var Q,H;((H=_.b((Q=this.data)==null?void 0:Q.adCtaButton,_.v3))==null?0:H.command)&&_.vu(_.$Z(O),this.hostElement,["call-to-action"])||(m&&_.vu(_.$Z(O),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(m,O,!1):!_.vu(_.$Z(O),this.hostElement,
["secondary-button"])&&G&&(_.V("enable_short_dr_for_desktop_launchable")?(B=!!_.b(G,_.GC),this.isInlinePlaybackState&&B&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(G,O,B)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(G,O,!0))))}};
_.v.updateWatchEndpointStartTime=function(){var O,m;this.player&&((O=this.data)==null?0:O.inlinePlaybackEndpoint)&&((m=this.data)==null?0:m.navigationEndpoint)&&!this.JSC$15402_preventProgressSaveTimer&&(O=Math.floor(this.player.getCurrentTime()),_.b(this.data.navigationEndpoint,_.GC).startTimeSeconds=O,_.b(this.data.inlinePlaybackEndpoint,_.GC).startTimeSeconds=O)};
_.v.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.v.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.vr.Object.defineProperties(T4.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.V("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var O,m;return!((O=this.data)==null||!O.watchButton)&&!((m=this.data)==null||!m.adCtaButton)}}});
T4.prototype.hoverChanged=T4.prototype.hoverChanged;T4.prototype.dataChanged=T4.prototype.dataChanged;
T4.JSC$15401_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"]]);
T4.JSC$15401_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],T4.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.up.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],T4.prototype,"ytSparklesClickLocationBehavior",void 0);
_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",_.Vw)],T4.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],T4.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],T4.prototype,"isInlinePlaybackState",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],T4.prototype,"miniMode",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],T4.prototype,"uiUpdate",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],T4.prototype,"hideCta",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],T4.prototype,"noBottomMargin",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],T4.prototype,"animateInCta",void 0);_.c([_.g({computed:"computeButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],T4.prototype,"buttonOverride",void 0);
_.c([_.g({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.Y("design:type",Object)],T4.prototype,"secondaryButtonOverride",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],T4.prototype,"isHovered",void 0);_.c([_.uc("#button-container"),_.Y("design:type",HTMLElement)],T4.prototype,"buttonContainer",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],T4.prototype,"typographyBump",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("typographyBump"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],T4.prototype,"typographyBumpV2",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],T4.prototype,"enableMonoStyle",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T4.prototype,"dataChanged",null);
_.c([_.Tw("isHovered"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T4.prototype,"hoverChanged",null);_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],T4.prototype,"isButtonGroup",null);_.c([_.l({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],T4);
_.y(T4,"ytd-ad-inline-playback-meta-block",function(){if(wj_!==void 0)return wj_;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return wj_=O},{mode:_.ZB("kevlar_poly_si_batch_j065")?1:2});var ez3;var gM=function(){var O=_.u.apply(this,arguments)||this;O.noBottomMargin=!1;O.isInlinePreviewTriggered=!1;O.JSC$15407_activeViewMeasurementDataResolver=_.m3();return O};
_.X(gM,_.u);_.v=gM.prototype;_.v.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.attached=function(){var O=this;this.updateInlinePreviewHoverListeners();this.JSC$15407_activeViewMeasurementDataResolver.promise.then(function(m){O.ytdActiveViewBehavior.enableActiveViewMeasurement(m,15)});
_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&O.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.v.detached=function(){this.clearInlinePreviewHoverListeners();_.V("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15407_inlinePreviewHoverListener=Yi({mediaRenderer:this,lockupElement:this.JSC$15407_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Bn9})};
_.v.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$15407_inlinePreviewHoverListener)==null||mk(O)};
_.v.onDataChanged=function(){var O;((O=this.data)==null?0:O.activeView)&&this.JSC$15407_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",gM.JSC$15406_DEFAULT_CLICK_LOCATION_BEHAVIOR,gM.JSC$15406_CLICK_LOCATION_ID_MAP);this.thumbnail&&(O=this.thumbnail.getElementsByTagName("a"),O.length>0&&(O=O.namedItem("thumbnail"))&&O.removeAttribute("href"));var m;if((m=this.data)==
null?0:m.forceImpAutoplay){var G;(G=this.JSC$15407_inlinePreviewHoverListener)==null||hUp(G)}};
_.v.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.v.onThumbnailContainerClick=function(O){if(this.data&&this.data.navigationEndpoint){var m,G=(m=this.data)==null?void 0:m.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(G,O,!!_.b(G,_.GC));O.stopPropagation()}};
_.v.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.v.impressionLog=function(){var O=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var m,G,B=(G=_.b((m=this.data)==null?void 0:m.onImpression,_.zC))==null?void 0:G.commands;B&&(B.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;O.ytComponentBehavior.resolveCommand(Q)}),this.data.impressionsFired=!0)}};
_.vr.Object.defineProperties(gM.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$15407_inlinePreviewHoverListener)==null?0:rO(O))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
gM.prototype.onTypographyBumpChanged=gM.prototype.onTypographyBumpChanged;gM.prototype.onDataChanged=gM.prototype.onDataChanged;gM.JSC$15406_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);gM.JSC$15406_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],gM.prototype,"ytComponentBehavior",void 0);_.c([_.h($m),_.Y("design:type",Object)],gM.prototype,"ytdActiveViewBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],gM.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.h(_.Z2),_.Y("design:type",Object)],gM.prototype,"ytdLockupBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],gM.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.up.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],gM.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],gM.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],gM.prototype,"noBottomMargin",void 0);
_.c([_.g(),_.Y("design:type",Object)],gM.prototype,"isInlinePreviewTriggered",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.yh}),_.Y("design:type",Boolean)],gM.prototype,"miniMode",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],gM.prototype,"typographyBump",void 0);_.c([_.uc("ytd-thumbnail"),_.Y("design:type",HTMLElement)],gM.prototype,"thumbnail",void 0);_.c([_.uc("#dismissible"),_.Y("design:type",HTMLElement)],gM.prototype,"JSC$15407_dismissibleMedia",void 0);
_.c([_.uc("ytd-ad-inline-playback-meta-block"),_.Y("design:type",HTMLElement)],gM.prototype,"adInlinePlaybackMetaBlock",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gM.prototype,"onDataChanged",null);_.c([_.Si("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gM.prototype,"onTypographyBumpChanged",null);
_.c([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],gM.prototype,"isHovered",null);_.c([_.l({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],gM);
_.y(gM,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(ez3!==void 0)return ez3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ez3=O},{mode:1});var DH$;var u9=function(){var O=_.u.apply(this,arguments)||this;O.isInlinePreviewTriggered=!1;O.JSC$15410_activeViewMeasurementDataResolver=_.m3();return O};
_.X(u9,_.u);_.v=u9.prototype;_.v.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.attached=function(){var O=this;this.updateInlinePreviewHoverListeners();this.JSC$15410_activeViewMeasurementDataResolver.promise.then(function(m){O.ytdActiveViewBehavior.enableActiveViewMeasurement(m,15)})};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15410_inlinePreviewHoverListener=Yi({mediaRenderer:this,lockupElement:this.JSC$15410_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Bn9})};
_.v.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$15410_inlinePreviewHoverListener)==null||mk(O)};
_.v.onDataChanged=function(){var O;((O=this.data)==null?0:O.activeView)&&this.JSC$15410_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",u9.JSC$15409_DEFAULT_CLICK_LOCATION_BEHAVIOR,u9.JSC$15409_CLICK_LOCATION_ID_MAP);this.thumbnail&&(O=this.thumbnail.getElementsByTagName("a"),O.length>0&&(O=O.namedItem("thumbnail"))&&O.removeAttribute("href"))};
_.v.onThumbnailContainerClick=function(O){if(this.data&&this.data.navigationEndpoint){var m,G=(m=this.data)==null?void 0:m.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(G,O,!0);O.stopPropagation()}};
_.v.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.v.impressionLog=function(){var O=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var m,G,B=(G=_.b((m=this.data)==null?void 0:m.onImpression,_.zC))==null?void 0:G.commands;B&&(B.forEach(function(Q){Q.clickTrackingParams&&delete Q.clickTrackingParams;_.KR().resolve(_.Mu).resolveCommand(Q,{form:{element:O.hostElement}})}),this.data.impressionsFired=!0)}};
_.vr.Object.defineProperties(u9.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$15410_inlinePreviewHoverListener)==null?0:rO(O))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
u9.prototype.onDataChanged=u9.prototype.onDataChanged;u9.JSC$15409_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);u9.JSC$15409_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.c([_.h($m),_.Y("design:type",Object)],u9.prototype,"ytdActiveViewBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],u9.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],u9.prototype,"ytdLockupBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],u9.prototype,"ytdReduxBehavior",void 0);
_.c([_.h(_.up.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],u9.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],u9.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],u9.prototype,"isInlinePreviewTriggered",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.yh}),_.Y("design:type",Boolean)],u9.prototype,"miniMode",void 0);_.c([_.uc("ytd-thumbnail"),_.Y("design:type",HTMLElement)],u9.prototype,"thumbnail",void 0);
_.c([_.uc("#dismissible"),_.Y("design:type",HTMLElement)],u9.prototype,"JSC$15410_dismissibleMedia",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u9.prototype,"onDataChanged",null);_.c([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],u9.prototype,"isHovered",null);_.c([_.l({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],u9);
_.y(u9,"ytd-video-display-full-buttoned-renderer",function(){if(DH$!==void 0)return DH$;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return DH$=O},{mode:1});var Kz=function(O,m,G,B){B=B===void 0?!1:B;_.GY.call(this,O);this.adsClientErrorMessage=G;this.aggressivelySample=B;this.args=[];m&&this.args.push(m)};
_.X(Kz,_.GY);var Hc=function(O,m,G,B){B=B===void 0?!1:B;_.GY.call(this,O);this.adsClientErrorMessage=G;this.aggressivelySample=B;this.args=[];m&&this.args.push(m)};
_.X(Hc,_.GY);var sVs=function(O){_.Iw.call(this);var m=this;this.initializationFunction=O;this.instance=null;this.addOnDisposeCallback(function(){_.Kd(m.instance);m.instance=null})};
_.X(sVs,_.Iw);sVs.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.F4("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var BqN=function(){var O=new Map;[].forEach(function(m){O.set(m.JSC$30506_getType(),m)});
this.getters=O};new Promise(function(){});var Fes=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"]]),N1Y=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"}]]),Nnm=function(O){this.experimentApiProvider=O;O=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=O<.1};var jX=function(O,m,G,B){_.Iw.call(this);this.adsControlFlowEventListeners=m;this.adEventLogger=G;this.experimentApiProvider=B;this.adsControlFlowManagerHelper=O(this,this,this,this,this);_.VV(this,this.adsControlFlowManagerHelper);O=_.K(m);for(m=O.next();!m.done;m=O.next())_.VV(this,m.value)};
_.X(jX,_.Iw);var Prm=function(O,m,G,B){II(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",m,G,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,B);O=_.K(O.adsControlFlowEventListeners);for(B=O.next();!B.done;B=O.next())Prm(B.value,m,G)};
_.v=jX.prototype;_.v.onOpportunityProcessedExternallyManaged=function(O,m,G,B){II(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",O,G,m,void 0,void 0,void 0,void 0,void 0,void 0,void 0,B)};
_.v.onSlotReceivedExternallyManaged=function(O,m){pM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",O,m)};
_.v.onSlotEntered=function(O){if(SX(this.adsControlFlowManagerHelper,O)!=null){pM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",O);this.adsControlFlowManagerHelper.onSlotEntered(O);for(var m=_.K(this.adsControlFlowEventListeners),G=m.next();!G.done;G=m.next())G.value.onSlotEntered(O);if(SX(this.adsControlFlowManagerHelper,O)!=null&&SX(this.adsControlFlowManagerHelper,O).isOccupyingSlotType()&&EA(this.adsControlFlowManagerHelper,O)&&!Fns(this.adsControlFlowManagerHelper,O)){var B;LM(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",O,(B=EA(this.adsControlFlowManagerHelper,O))!=null?B:void 0);O=SX(this.adsControlFlowManagerHelper,O);O.slotLifecycleStage!=="entered"&&CM(O.slot,O.slotLifecycleStage,"enterLayoutForSlot");O.slotLifecycleStage="rendering";O.registeredLayoutRenderingAdapter.startRendering(O.layout)}}};
_.v.onSlotExited=function(O){if(SX(this.adsControlFlowManagerHelper,O)!=null){pM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",O);this.adsControlFlowManagerHelper.onSlotExited(O);for(var m=_.K(this.adsControlFlowEventListeners),G=m.next();!G.done;G=m.next())G.value.onSlotExited(O);SX(this.adsControlFlowManagerHelper,O)!=null&&SX(this.adsControlFlowManagerHelper,O).markedForUnscheduleAfterOutboundAdapterRequests&&Aj_(this,O)}};
_.v.onLayoutReceivedExternallyManaged=function(O,m,G){O.managerLayer!=="core"&&LM(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",O,m,G)};
var O2$=function(O,m,G){if(SX(O.adsControlFlowManagerHelper,m)!=null){LM(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",m,G);O=_.K(O.adsControlFlowEventListeners);for(var B=O.next();!B.done;B=O.next())O2$(B.value,m,G)}};
jX.prototype.onLayoutExited=function(O,m,G){if(SX(this.adsControlFlowManagerHelper,O)!=null){LM(this.adEventLogger,Pws(G),O,m);this.adsControlFlowManagerHelper.onLayoutExited(O,m);for(var B=_.K(this.adsControlFlowEventListeners),Q=B.next();!Q.done;Q=B.next())Q.value.onLayoutExited(O,m,G);(G=EA(this.adsControlFlowManagerHelper,O))&&m.layoutId===G.layoutId&&mL9(this,O)}};
jX.prototype.disposeInternal=function(){var O=G1U(this.adsControlFlowManagerHelper);O=_.K(O);for(var m=O.next();!m.done;m=O.next())Aj_(this,m.value);_.Iw.prototype.disposeInternal.call(this)};
var Aj_=function(O,m){if(SX(O.adsControlFlowManagerHelper,m)!=null)if(SX(O.adsControlFlowManagerHelper,m).JSC$30536_isSlotExitRequested()||SX(O.adsControlFlowManagerHelper,m).JSC$30536_isLayoutExitRequested())SX(O.adsControlFlowManagerHelper,m).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(SX(O.adsControlFlowManagerHelper,m).isOccupyingSlotType())SX(O.adsControlFlowManagerHelper,m).markedForUnscheduleAfterOutboundAdapterRequests=!0,mL9(O,m);else if(SX(O.adsControlFlowManagerHelper,m).JSC$30536_isSlotFillRequested())SX(O.adsControlFlowManagerHelper,
m).markedForUnscheduleAfterOutboundAdapterRequests=!0,SX(O.adsControlFlowManagerHelper,m)!=null&&(pM(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",m),m=SX(O.adsControlFlowManagerHelper,m),m.fulfillmentLifecycleStage="fill_cancel_requested",m.registeredFulfillmentAdapter.cancelSlotFilling());else{var G=EA(O.adsControlFlowManagerHelper,m),B;O.experimentApiProvider.get();(B=_.V("h5_enable_layout_unscheduling_events"))&&(G?BG_(O,m,G):_.F4(Error("Qh"),m,G,void 0,!1));pM(O.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",m);var Q=SX(O.adsControlFlowManagerHelper,m),H=m.slotEntryTrigger,M=Q.registeredSlotEntryTriggerAdapters.get(H.triggerId);M&&(M.unregisterTrigger(H),Q.registeredSlotEntryTriggerAdapters.delete(H.triggerId));H=_.K(m.slotFulfillmentTriggers);for(M=H.next();!M.done;M=H.next()){M=M.value;var R=Q.registeredFulfillmentTriggerAdapters.get(M.triggerId);R&&(R.unregisterTrigger(M),Q.registeredFulfillmentTriggerAdapters.delete(M.triggerId))}H=_.K(m.slotExpirationTriggers);
for(M=H.next();!M.done;M=H.next())if(M=M.value,R=Q.registeredExpirationTriggerAdapters.get(M.triggerId))R.unregisterTrigger(M),Q.registeredExpirationTriggerAdapters.delete(M.triggerId);Q.hasLayout()&&(H=Q.layout,oI(Q,H.layoutExitNormalTriggers),oI(Q,H.layoutExitSkipTriggers),oI(Q,H.layoutExitMuteTriggers),oI(Q,H.layoutExitUserInputSubmittedTriggers),oI(Q,H.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=O.adsControlFlowManagerHelper;SX(Q,m)&&(Q=Q13(Q,m.slotType+"_"+m.slotPhysicalPosition))&&Q.delete(m.slotId);pM(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",m);O=_.K(O.adsControlFlowEventListeners);for(Q=O.next();!Q.done;Q=O.next())Q=Q.value,Q.onSlotUnscheduled(m),G&&!B&&BG_(Q,m,G)}},BG_=function(O,m,G){LM(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
m,G);
LM(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",m,G);O=_.K(O.adsControlFlowEventListeners);for(var B=O.next();!B.done;B=O.next())B=B.value,G&&BG_(B,m,G)},mL9=function(O,m){if(SX(O.adsControlFlowManagerHelper,m)!=null&&SX(O.adsControlFlowManagerHelper,m).isOccupyingSlotType()){var G=EA(O.adsControlFlowManagerHelper,m);
if(G&&Fns(O.adsControlFlowManagerHelper,m)){if(SX(O.adsControlFlowManagerHelper,m)!=null){var B=O.adEventLogger,Q;var H=((Q=N1Y.get("abandoned"))==null?void 0:Q.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";LM(B,H,m,G);O=SX(O.adsControlFlowManagerHelper,m);O.slotLifecycleStage!=="rendering"&&CM(O.slot,O.slotLifecycleStage,"exitLayout");O.slotLifecycleStage="rendering_stop_requested";O.registeredLayoutRenderingAdapter.stopRendering(G,"abandoned")}}else{pM(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
m);try{B=SX(O.adsControlFlowManagerHelper,m);if(!B)throw new Hc("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");B.slotLifecycleStage!=="enter_requested"&&B.slotLifecycleStage!=="entered"&&B.slotLifecycleStage!=="rendering"&&CM(B.slot,B.slotLifecycleStage,"exitSlot");B.slotLifecycleStage="exit_requested";if(B.registeredSlotAdapter===void 0)throw B.slotLifecycleStage="scheduled",new Hc("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
B.registeredSlotAdapter.exit()}catch(M){M instanceof Hc&&M.adsClientErrorMessage?(H28(O.adEventLogger,M.adsClientErrorMessage,m),_.F4(M,m,void 0,void 0,M.aggressivelySample)):(H28(O.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",m),_.F4(M,m))}}}};var l9=function(O,m,G,B,Q,H){_.Iw.call(this);this.registry=O;this.experimentApiProvider=H;this.slotMap=new Map};
_.X(l9,_.Iw);var Q13=function(O,m){return(O=O.slotMap.get(m))?O:new Map},SX=function(O,m){return Q13(O,m.slotType+"_"+m.slotPhysicalPosition).get(m.slotId)},G1U=function(O){var m=[];
O.slotMap.forEach(function(G){G=_.K(G.values());for(var B=G.next();!B.done;B=G.next())m.push(B.value.slot)});
return m};
l9.prototype.onSlotEntered=function(O){O=SX(this,O);O.slotLifecycleStage!=="enter_requested"&&CM(O.slot,O.slotLifecycleStage,"onSlotEntered");O.slotLifecycleStage="entered"};
var Fns=function(O,m){O=SX(O,m);return O.hasLayout()&&O.isRendering()},EA=function(O,m){(O=SX(O,m))?O.hasLayout()&&!O.layout&&_.F4("Unexpected empty layout",m):_.F4("Unexpected undefined slotState",m);
return(O==null?void 0:O.layout)||null};
l9.prototype.onSlotExited=function(O){O=SX(this,O);O.slotLifecycleStage!=="exit_requested"&&CM(O.slot,O.slotLifecycleStage,"onSlotExited");O.slotLifecycleStage="scheduled"};
l9.prototype.onLayoutExited=function(O,m){O=SX(this,O);O.isPrimaryLayout(m)&&(O.slotLifecycleStage!=="rendering_stop_requested"&&CM(O.slot,O.slotLifecycleStage,"onLayoutExited"),O.slotLifecycleStage="entered")};
var oI=function(O,m){m=_.K(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;var B=O.registeredLayoutExitTriggerAdapters.get(G.triggerId);B&&(B.unregisterTrigger(G),O.registeredLayoutExitTriggerAdapters.delete(G.triggerId))}},CM=function(O,m,G){_.F4("Slot stage was "+m+" when calling method "+G,O)};var KY2=function(O){_.Iw.call(this);this.deps=O;this.JSC$15460_adsControlFlowManager=vy_(this)};
_.X(KY2,_.Iw);var vy_=function(O){var m=new jX(function(G,B,Q,H){return new l9(O.deps.registry,G,B,Q,H,O.deps.experimentApiProvider)},new Set(GxN(O.deps.registry).concat(O.deps.listeners)),O.deps.adEventLogger,O.deps.experimentApiProvider);
_.VV(O,m);return m};var L8O=function(){};var $Lj=function(O,m){_.Iw.call(this);this.experimentApiProvider=O;this.eventLoggingSettingsProvider=m;this.eventCount=0;this.premiumAdSeenEventLogger=CPS()()};
_.X($Lj,_.Iw);$Lj.prototype.logEvent=function(O){II(this,O)};
var pM=function(O,m,G,B){II(O,m,void 0,void 0,void 0,G,void 0,void 0,void 0,G.adSlotLoggingData,void 0,void 0,B)},LM=function(O,m,G,B,Q){II(O,m,void 0,void 0,void 0,G,B?B:void 0,void 0,void 0,G.adSlotLoggingData,B?B.adLayoutLoggingData:void 0,void 0,Q);
G=_.KR().resolve(_.v7(j0))==null?void 0:Iy();m=G==null?void 0:G.adsSeenHotConfig;G=G==null?void 0:G.adsHotConfig;(m==null?0:m.logOnAdsSeen)&&(G==null?0:G.webEnablePremiumAdsSeenLogging)&&Mzm(O,B?B:void 0,Q)},H28=function(O,m,G){II(O,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,G,void 0,void 0,void 0,G.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:m})},II=function(O,m,G,B,Q,H,M,R,x,t,W,Z,z){z=z===void 0?0:z;
r_u(O.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+m,"slot:",H,"layout:",M,"ping:",R,"Opportunity:",{opportunityType:G,associatedSlotId:B,slotsFromOpportunity:Q,triggerBundle:x,adSlotLoggingData:t,adLayoutLoggingData:W});try{var J=function(){O.experimentApiProvider.get();if(m!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){m||_.F4("Empty PACF event type",H,M);var n=O.eventLoggingSettingsProvider.get();var I;(I=n.alwaysIncludeDebugData)||(n.experimentApiProvider.get(),I=
!1);n=I;I={eventType:m,eventOrder:++O.eventCount};var S={};H&&(S.slotData=OON(n,H));if(M){var L={type:M.layoutType,controlFlowManagerLayer:Fes.get(M.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};n&&(L.debugData={layoutId:M.layoutId});S.layoutData=L}R&&(S.pingData={pingDispatchStatus:R.dispatchStatus,serializedAdPingMetadata:R.ping.serializedAdPingMetadata,pingIndex:R.index});x&&(S.triggerData=A5s(x.trigger,x.category));G&&(S.opportunityData=mFN(n,G,B,Q));I.adClientData=S;t&&(I.serializedSlotAdServingData=
t.serializedSlotAdServingDataEntry);W&&(I.serializedAdServingData=W.serializedAdServingDataEntry);Z&&(I.errorInfo=Z);_.LE("adsClientStateChange",{adsClientEvent:I})}};
z&&z>0?_.uT(_.uW(),function(){return J()},z):J()}catch(n){r_u(O.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.uT(_.uW(),function(){_.F4(n instanceof Error?n:String(n),H,M,{pacf_message:"exception during pacf logging"})})}},Mzm=function(O,m,G){if(m){var B=m.adLayoutLoggingData;
_.uT(_.uW(),function(){O.premiumAdSeenEventLogger!=null&&B&&_.LE("adsSeenClientLogging",{serializedAdServingDataEntry:B.serializedAdServingDataEntry})},G!=null?G:0)}};var Rio=function(O,m){$Lj.call(this,O,m)};
_.X(Rio,$Lj);var i2C=function(){},r_u=function(O,m){return _.V(m)};var qWo=function(){var O=new xL$;this.JSC$15485_adsControlFlowManager=(new KY2(O)).JSC$15460_adsControlFlowManager},xL$=function(){_.Iw.call(this);
var O=this;this.experimentApiProvider=new sVs(function(){return new i2C});
var m=new sVs(function(){return new Nnm(O.experimentApiProvider)});
this.adEventLogger=new Rio(this.experimentApiProvider,m);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.X(xL$,_.Iw);var UL9=function(){},tz$,aI=function(){tz$||(tz$=new UL9);
return tz$},k5=function(O){if(!O.JSC$15496_externallyManagedSlotAdapterCallback){var m=(new qWo).JSC$15485_adsControlFlowManager;
O.JSC$15496_externallyManagedSlotAdapterCallback=m}return O.JSC$15496_externallyManagedSlotAdapterCallback},WYC=function(O,m,G){var B=m.opportunityType,Q=Error("Rh");
if(B!==void 0){var H=k5(O);Prm(H,B,void 0,G)}else _.F4(Q,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});H=[];if(m.adSlotAndLayoutMetadata!==void 0){m=_.K(m.adSlotAndLayoutMetadata);for(var M=m.next();!M.done;M=m.next()){var R=M.value;if(M=R.adSlotMetadata)if(H.push(M),O.onSlotReceivedExternallyManaged(M,G),R.adLayoutMetadata){R=_.K(R.adLayoutMetadata);for(var x=R.next();!x.done;x=R.next())O.onLayoutReceivedExternallyManaged(M,x.value,G)}else G>0&&_.F4("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
B,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else G>0&&_.F4("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+B,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else G>0&&_.F4("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+B,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(B!==void 0)O.onOpportunityProcessedExternallyManaged(B,H,void 0,G);else _.F4(Q,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
UL9.prototype.onSlotReceivedExternallyManaged=function(O,m){O=vc(O);if(O instanceof Hc)_.F4(O,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else k5(this).onSlotReceivedExternallyManaged(O,m)};
UL9.prototype.onLayoutReceivedExternallyManaged=function(O,m,G){O=vc(O);m=QbS(m);if(O instanceof Hc)_.F4(O,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(m instanceof Kz)_.F4(m,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else k5(this).onLayoutReceivedExternallyManaged(O,m,G)};
UL9.prototype.onOpportunityProcessedExternallyManaged=function(O,m,G,B){var Q=[];m=_.K(m);for(var H=m.next();!H.done;H=m.next())H=vc(H.value),H instanceof Hc?_.F4(H,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):Q.push(H);k5(this).onOpportunityProcessedExternallyManaged(O,Q,G,B)};
var Z23=function(O,m){m=vc(m);if(m instanceof Hc)_.F4(m,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var G=k5(O);pM(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",m);G=_.K(G.adsControlFlowEventListeners);for(var B=G.next();!B.done;B=G.next())B=SX(B.value,m),B.slotLifecycleStage!=="not_scheduled"&&CM(B.slot,B.slotLifecycleStage,"onSlotScheduled"),B.slotLifecycleStage="scheduled";O=k5(O);pM(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",m);O=_.K(O.adsControlFlowEventListeners);
for(G=O.next();!G.done;G=O.next())G.value.onSlotEntered(m)}},zij=function(O,m){m=vc(m);
if(m instanceof Hc)_.F4(m,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var G=k5(O);pM(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",m);G=_.K(G.adsControlFlowEventListeners);for(var B=G.next();!B.done;B=G.next())B.value.onSlotExited(m);O=k5(O);pM(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",m);O=_.K(O.adsControlFlowEventListeners);for(G=O.next();!G.done;G=O.next())G.value.onSlotUnscheduled(m)}},J_9=function(O,m,G){m=vc(m);
G=QbS(G);if(m instanceof Hc)_.F4(m,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(G instanceof Kz)_.F4(G,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var B=k5(O);LM(B.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",m,G);B=_.K(B.adsControlFlowEventListeners);for(var Q=B.next();!Q.done;Q=B.next())Q.value.onLayoutScheduled(m,G);O=k5(O);LM(O.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",m,G);O=_.K(O.adsControlFlowEventListeners);
for(B=O.next();!B.done;B=O.next())O2$(B.value,m,G)}},y$=function(O,m,G){m=vc(m);
G=QbS(G);if(m instanceof Hc)_.F4(m,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(G instanceof Kz)_.F4(G,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var B=k5(O);LM(B.adEventLogger,Pws("normal"),m,G);B=_.K(B.adsControlFlowEventListeners);for(var Q=B.next();!Q.done;Q=B.next())Q.value.onLayoutExited(m,G,"normal");O=k5(O);O=_.K(O.adsControlFlowEventListeners);for(B=O.next();!B.done;B=O.next())BG_(B.value,m,G)}};_.cw=_.a(function(O){var m=_.ru(O,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});O=Object.assign({},m);var G=m.data;m=m.customCommandResolver;var B=(delete O.data,delete O.customCommandResolver,O);O=_.$V({visibilityCallback:function(R,x){var t,W=(t=G().interaction)==null?void 0:t.onFirstVisible;R&&(W&&_.PE(W),B.setOnErrorHandler()&&HON(x))},
showOption:_.Ta});m=_.wR(function(){return G().interaction},m,function(){var R;
return(R=B.listenToTapEvent)==null?void 0:R.call(B)});
var Q=_.K(_.Wf(!1,void 0,"wAC0Lc")),H=Q.next().value,M=Q.next().value;Q=_.nH(function(R){var x;((x=B.setTouchEndHandler)==null?0:x.call(B))&&!H()&&(R.currentTarget.click(),M(!0),setTimeout(function(){M(!1)},100));
return!1});
return _.q("ad-image-view-model",{class:function(){var R,x=[((R=G().interaction)==null?0:R.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],t;((t=B.isGridViewEnabled)==null?0:t.call(B))&&x.push("ytwAdImageViewModelHostInGridView");return x.join(" ")},
el:_.Mi(O,m),"on:touchend":Q},_.q("div",{class:"ytwAdImageViewModelHostImageContainer"},_.q(_.KH,{data:function(){var R;return{sources:G().imageSources,contentMode:(R=G().imageProperties)==null?void 0:R.contentMode}},
alt:function(){var R,x;return((R=G().interaction)==null?void 0:(x=R.accessibility)==null?void 0:x.label)||""},
targetHeight:B.targetHeight,targetWidth:B.targetWidth,preserveHeight:B.preserveHeight,preserveWidth:B.preserveWidth,useWidth:B.useWidth,style:function(){var R,x;return"vertical-align: bottom;"+(((R=G().background)==null?0:R.color)?"background-color:"+_.Fs((x=G().background)==null?void 0:x.color)+";":"")},
className:function(){return B.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var R,x;return(x=(R=B.setDraggable)==null?void 0:R.call(B))!=null?x:void 0}})))},"sb");var VzU=_.a(function(O){var m=O.data,G=O.listenToTapEvent,B=function(){};
return _.q("ad-button-hover-overlay-view-model",{"on:click":_.nH(function(Q){if(_.V("enable_web_home_top_landscape_image_layout_legacy_click_command")){var H,M=(H=m().interaction)==null?void 0:H.onTap;M&&_.iP(Q.currentTarget,"yt-navigate",{endpoint:_.eg(M)})}}),
class:function(){var Q;return((Q=m().interaction)==null?0:Q.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.Mi(_.$V({visibilityCallback:function(Q){var H,M=(H=m().interaction)==null?void 0:H.onFirstVisible;Q&&M&&_.PE(M)},
showOption:_.Ta}),_.wR(function(){return m().interaction},void 0,function(){return!_.V("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(G==null?void 0:G())}))},function(){return _.V("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.q(_.u5,{data:function(){return m().button}},{adButtonViewModel:function(Q){return _.q(_.ud,{data:Q.data,
customCommandResolver:B})}}):_.q(_.u5,{data:function(){return m().button}},{adButtonViewModel:_.ud})}())},"tb");var $K;_.qi(_.a(function(O){var m=O.data;O=_.$V({visibilityCallback:function(R,x){if(R){var t;(R=(t=m().interaction)==null?void 0:t.onFirstVisible)&&_.PE(R);var W;if(t=(W=m().adLayoutData)==null?void 0:W.activeViewData)Mk(x,t),_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&rD(x)})}else _.V("stop_av_measurement_on_detach")&&rD(x)},
showOption:_.Ta,hideOption:gO});var G=_.wR(function(){return m().interaction},void 0,function(){return!0}),B=_.K(_.Wf(!1,void 0,"VNDDT")),Q=B.next().value,H=B.next().value;
B=_.nH(function(){H(!0)});
var M=_.nH(function(){H(!1)});
return _.q("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.Mi(O,iOp,G),"on:mouseenter":B,"on:mouseleave":M},_.q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.hH({"max-width":function(){return _.V("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.q("div",{class:function(){var R;
a:{var x;switch((R=_.b(m().thumbnailImage,q2j))==null?void 0:(x=R.imageProperties)==null?void 0:x.renderingAspect){case "RENDERING_ASPECT_SQUARE":R="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":R="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}R=void 0}return R}},_.q(_.u5,{data:function(){return m().thumbnailImage}},{adImageViewModel:function(R){return _.q(_.cw,
{data:R.data,
listenToTapEvent:!0,setTouchEndHandler:_.V("enable_top_landscape_image_experiment_dom_id_web")})}})),_.q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.q(_.U,{cond:function(){var R,x,t;
return(R=_.b(m().thumbnailImage,q2j))==null?void 0:(x=R.imageProperties)==null?void 0:(t=x.overlayIcon)==null?void 0:t.iconImage},
then:function(R){return _.q(_.KH,{data:R,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.q("div",{class:function(){return Q()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.q(_.u5,{data:function(){return m().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(R){return _.q(VzU,
{data:R.data,
listenToTapEvent:!0})}}))),_.q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.q(_.u5,{data:function(){return m().feedAdMetadata}},{feedAdMetadataViewModel:function(R){return _.q(C5,{data:R.data,
listenToTapEvent:!0,setTouchEndHandler:_.V("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ub"),"compact-landscape-no-button-layout-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=O.data;O=_.$V({visibilityCallback:function(R,x){if(R){var t;(R=(t=m().interaction)==null?void 0:t.onFirstVisible)&&_.PE(R);var W;if(t=(W=m().adLayoutData)==null?void 0:W.activeViewData)Mk(x,t),_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&rD(x)})}else _.V("stop_av_measurement_on_detach")&&rD(x)},
showOption:_.Ta,hideOption:gO});var G=_.wg(_.dg),B=_.wR(function(){return m().interaction}),Q={},H={},M={};
return _.q("square-image-layout-view-model",{class:_.bE("ytwSquareImageLayoutViewModelHost",(Q.ytwSquareImageLayoutViewModelHostColumn=G,Q)),el:_.Mi(O,xFs,B)},_.q("div",{class:_.bE("ytwSquareImageLayoutViewModelHostImage",(H.ytwSquareImageLayoutViewModelHostColumnImage=G,H))},function(){return _.q(_.u5,{data:function(){return m().adImage}},{adImageViewModel:function(R){return _.q(_.cw,{data:R.data,
isGridViewEnabled:G,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.q("div",{class:_.bE("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(M.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=G,M))},_.q(_.u5,{data:function(){return m().feedAdMetadata}},{feedAdMetadataViewModel:C5}),function(){return _.q(_.u5,{data:function(){return m().adButton}},{adButtonViewModel:function(R){var x={};
return _.q(_.ud,{data:R.data,className:_.bE((x.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,x.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=G,x))})}})}()))},"vb"),"square-image-layout-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=O.data;var G=O.noBottomMargin;var B=O.typographyBump;O=_.$V({visibilityCallback:function(Z,z){if(Z){var J;(Z=(J=m().interaction)==null?void 0:J.onFirstVisible)&&_.PE(Z);var n;if(J=(n=m().adLayoutData)==null?void 0:n.activeViewData)Mk(z,J),_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&rD(z)})}else _.V("stop_av_measurement_on_detach")&&rD(z)},
showOption:_.Ta,hideOption:gO});var Q=_.wR(function(){return m().interaction},void 0,function(){return _.V("enable_web_home_top_landscape_image_layout_level_click")}),H=function(){return m().interaction};
H!==void 0&&H!==null||_.Dy(Error("Sh"));var M=function(){var Z,z,J;return(Z=_.b(m().thumbnailImage,q2j))==null?void 0:(z=Z.background)==null?void 0:(J=z.backgroundImageSource)==null?void 0:J.imageSources};
H=_.K(_.Wf(!1,void 0,"NFjwje"));var R=H.next().value,x=H.next().value;H=_.nH(function(){x(!0)});
var t=_.nH(function(){x(!1)}),W=function(){return R()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.q("top-landscape-image-layout-view-model",{class:function(){var Z;return((Z=m().interaction)==null?0:Z.onTap)&&_.V("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.Mi(O,qVM,Q),"on:mouseenter":H,"on:mouseleave":t},_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.q(_.U,{cond:function(){return M()&&M().length>0},
then:function(){return _.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.hH({top:"0","background-image":function(){return"url("+String(M()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.q(_.U,{cond:function(){return!!m().adButtonHoverOverlay},
then:function(){return _.q("div",{class:W},_.q(_.u5,{data:function(){return m().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:VzU}))}}),_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.q(_.u5,{data:function(){return m().thumbnailImage}},{adImageViewModel:function(Z){return _.q(_.cw,{data:Z.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.V("enable_web_home_top_landscape_image_layout_level_click")})}})),_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.q(_.KH,{data:{sources:[{clientResource:{imageName:_.V("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.q(_.u5,{data:function(){return m().feedAdMetadata}},{feedAdMetadataViewModel:function(Z){return _.q(C5,{data:Z.data,
noBottomMargin:function(){return G==null?void 0:G()},
listenToTapEvent:function(){return _.V("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return B==null?void 0:B()}})}})))},"wb"),"top-landscape-image-layout-view-model",{props:{data:_.VZ,
noBottomMargin:_.VZ,typographyBump:_.VZ}});var b2m=_.a(function(O){var m=O.data,G=_.$V({visibilityCallback:function(Q){var H,M=(H=m().interaction)==null?void 0:H.onFirstVisible;Q&&M&&_.PE(M)},
showOption:_.Ta});O=_.wR(function(){return m().interaction},O.customCommandResolver);
var B={};return _.q("ad-text-image-view-model",{class:_.bE("ytwAdTextImageViewModelHost",(B.ytwAdTextImageViewModelHostDarkBackground=function(){return m().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},B)),
el:_.Mi(G,O),"aria-label":function(){var Q,H;return(Q=m().interaction)==null?void 0:(H=Q.accessibility)==null?void 0:H.label}},_.q("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.q(_.Jg,{text:function(){return m().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0})),_.q(_.U,{cond:function(){return m().overlayIcon},
then:function(Q){return _.q("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.q(_.KH,{data:Q,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"xb");var ny3=_.a(function(O){var m=O.data;return _.q("feed-ad-sitelink-view-model",{class:"ytwFeedAdSitelinkViewModelHost",el:_.Mi(_.wR(function(){return m().interaction},O.customCommandResolver)),
"aria-label":function(){var G,B;return(G=m().interaction)==null?void 0:(B=G.accessibility)==null?void 0:B.label}},_.q(_.Jg,{text:function(){return m().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"yb");var XSC=_.a(function(O){var m=O.data;O={};return _.q("feed-ad-sitelinks-carousel-view-model",{el:_.Mi(_.$V({visibilityCallback:function(G){var B,Q=(B=m().interaction)==null?void 0:B.onFirstVisible;G&&Q&&_.PE(Q)},
showOption:_.Ta})),class:_.bE("ytwFeedAdSitelinksCarouselViewModelHost",(O.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return m().style==="FEED_AD_SITELINKS_STYLE_NONE"},O))},_.q(_.u5,{data:function(){return m().sitelinks}},{feedAdSitelinkViewModel:ny3}))},"zb");_.qi(_.a(function(O){var m=O.data;O=_.$V({visibilityCallback:function(M,R){if(M){var x;(M=(x=m().interaction)==null?void 0:x.onFirstVisible)&&_.PE(M);var t;(x=(t=m().adLayoutData)==null?void 0:t.activeViewData)&&Mk(R,x)}},
showOption:_.Ta});var G=_.K(_.Wf(!1,void 0,"BzPhl")),B=G.next().value,Q=G.next().value;G=_.nH(function(){Q(!0)});
var H=_.nH(function(){Q(!1)});
return _.q("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.Mi(O),"on:mouseenter":G,"on:mouseleave":H},_.q("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.q("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.q(_.u5,{data:function(){return m().textImage}},{adTextImageViewModel:b2m})),_.q("div",{class:function(){return B()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.q(_.u5,{data:function(){return m().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(M){return _.q(VzU,{data:M.data,
listenToTapEvent:!0})}}))),_.q("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.q(_.u5,{data:function(){return m().feedAdMetadata}},{feedAdMetadataViewModel:function(M){return _.q(C5,{data:M.data,
listenToTapEvent:!0})}}),_.q(_.u5,{data:function(){return m().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:XSC})))},"Ab"),"text-image-no-button-layout-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=O.data;var G=O.typographyBump;return _.q("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.Mi(_.$V({visibilityCallback:function(B,Q){if(B){var H;(B=(H=m().interaction)==null?void 0:H.onFirstVisible)&&_.PE(B);var M;(H=(M=m().adLayoutData)==null?void 0:M.activeViewData)&&Mk(Q,H)}},
showOption:_.Ta,hideOption:gO}))},_.q("div",null,_.q(_.u5,{data:function(){return m().videoLockup}},{lockupViewModel:function(B){return _.q(_.oU,{data:B.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:G})}})))},"Bb"),"video-display-button-group-layout-view-model",{props:{data:_.VZ,
noBottomMargin:_.VZ,typographyBump:_.VZ}});_.qi(_.a(function(O){var m=O.data;var G=O.className;var B=O.typographyBump;return _.q("video-display-compact-button-group-layout-view-model",{el:_.Mi(_.$V({visibilityCallback:function(Q,H){if(Q){var M;(Q=(M=m().interaction)==null?void 0:M.onFirstVisible)&&_.PE(Q);var R;(M=(R=m().adLayoutData)==null?void 0:R.activeViewData)&&Mk(H,M)}},
showOption:_.Ta})),class:_.bE("videoDisplayCompactButtonGroupLayoutViewModelHost",G)},_.q(_.u5,{data:function(){return m().videoLockup}},{lockupViewModel:function(Q){return _.q(_.oU,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:B})}}))},"Cb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.VZ,
className:_.VZ,typographyBump:_.VZ}});_.qi(_.a(function(O){var m=O.data;var G=O.className;var B=O.typographyBump;return _.q("video-display-compact-buttoned-layout-view-model",{el:_.Mi(_.$V({visibilityCallback:function(Q,H){if(Q){var M;(Q=(M=m().interaction)==null?void 0:M.onFirstVisible)&&_.PE(Q);var R;(M=(R=m().adLayoutData)==null?void 0:R.activeViewData)&&Mk(H,M)}},
showOption:_.Ta})),class:_.bE("videoDisplayCompactButtonedLayoutViewModelHost",G)},_.q(_.u5,{data:function(){return m().videoLockup}},{lockupViewModel:function(Q){return _.q(_.oU,{data:Q.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:B})}}))},"Db"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.VZ,
className:_.VZ,typographyBump:_.VZ}});_.qi(_.a(function(O){var m=O.data;var G=O.className;var B=O.typographyBump;var Q=function(){return m().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},H=_.wg(_.dg);
O=_.$V({visibilityCallback:function(t,W){if(t){var Z=m();t=Z.adLayoutData;var z;(Z=(z=Z.interaction)==null?void 0:z.onFirstVisible)&&_.PE(Z);(z=t==null?void 0:t.activeViewData)&&Mk(W,z)}},
showOption:_.Ta});var M=_.bF(function(){return{containerType:Q()&&H()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),R=_.bF(function(){return Q()&&H()?"":Q()?"168px":"50%"},void 0,"qNDzkb"),x=_.bF(function(){return Q()&&H()?9999:void 0},void 0,"Ikn8Kb");
return _.q("video-display-compact-layout-view-model",{el:_.Mi(O),class:_.bE("videoDisplayCompactLayoutViewModelHost",G)},_.q(_.u5,{data:function(){return m().videoLockup}},{lockupViewModel:function(t){return _.q(_.oU,{data:t.data,
containerLayoutConfig:M,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:R,thumbnailTargetWidth:x,typographyBump:B})}}))},"Eb"),"video-display-compact-layout-view-model",{props:{data:_.VZ,
className:_.VZ,typographyBump:_.VZ}});_.qi(_.a(function(O){var m=O.data;var G=O.typographyBump;return _.q("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.Mi(_.$V({visibilityCallback:function(B,Q){if(B){var H;(B=(H=m().interaction)==null?void 0:H.onFirstVisible)&&_.PE(B);var M;(H=(M=m().adLayoutData)==null?void 0:M.activeViewData)&&Mk(Q,H)}},
showOption:_.Ta,hideOption:gO}))},_.q("div",null,_.q(_.u5,{data:function(){return m().videoLockup}},{lockupViewModel:function(B){return _.q(_.oU,{data:B.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:G})}})))},"Fb"),"video-display-full-layout-view-model",{props:{data:_.VZ,
noBottomMargin:_.VZ,typographyBump:_.VZ}});_.f_2=_.a(function(O){var m=O.data;O=_.Al("ad-card-badge-view-model");return _.q("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:O},_.q(_.U,{cond:function(){return m().imageBadge},
then:function(G){return _.q(_.KH,{data:G,alt:""})}}))},"Gb");var hi8=_.a(function(O){var m=O.data;var G=O.customCommandResolver;return _.q("carousel-ad-card-image-view-model",{class:function(){var B;return((B=m().interaction)==null?0:B.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.Mi(_.$V({visibilityCallback:function(B){var Q,H=(Q=m().interaction)==null?void 0:Q.onFirstVisible;B&&H&&_.PE(H)},
showOption:_.Ta}),_.wR(function(){return m().interaction},G)),
"aria-label":function(){var B,Q;return(B=m().interaction)==null?void 0:(Q=B.accessibility)==null?void 0:Q.label}},_.q(_.u5,{data:function(){return m().adImage}},{adImageViewModel:function(B){return _.q(_.cw,{data:B.data,
customCommandResolver:G})}}),_.q("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.q(_.u5,{data:function(){return m().badge}},{adCardBadgeViewModel:_.f_2})),_.q(_.S1,{model:{color:4}}))},"Hb");var TGC=_.a(function(O){var m=_.K(_.Wf(0,void 0,"JJ0QQc")),G=m.next().value;m.next();var B=m.next().value,Q=_.K(_.Wf(!1,void 0,"f6YICe"));m=Q.next().value;var H=Q.next().value,M;_.LS(function(){clearTimeout(M)});
Q=_.nH(function(){var t;((t=O.animate)==null?0:t.call(O))?(H(!0),M=setTimeout(function(){H(!1);R()},200)):R();
return!1});
var R=function(){B(function(t){return(t+O.numShownItems())%O.data().length})},x={};
return _.q("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.q("div",{class:_.bE("ytwHorizontalCarouselCarouselWrapper")},_.q("div",{class:_.bE("ytwHorizontalCarouselCarouselInnerWrapper",(x.ytwHorizontalCarouselAnimating=m,x))},_.q(_.gi,{each:O.data,keyBy:"INDEX"},function(t,W){return _.q("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.hH({"flex-basis":function(){return"calc((100% - (8px * "+(O.numShownItems()-1)+")) / "+O.numShownItems()+")"},
order:function(){var Z=W-G();Z<0&&(Z+=O.data().length);return Z}})},O.children(t,W))}))),_.q("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":Q},O.nextButton()))},"Ib");var gyH=_.a(function(O){var m=O.data;var G=O.customCommandResolver;var B=O.expansive;return _.q("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.Mi(_.$V({visibilityCallback:function(Q){var H,M=(H=m().interaction)==null?void 0:H.onFirstVisible;Q&&M&&_.PE(M)},
showOption:_.Ta}))},_.q(TGC,{data:function(){var Q;return((Q=m())==null?void 0:Q.carouselAdCards)||[]},
nextButton:function(){return _.q(_.u5,{data:function(){return m().nextButton}},{buttonViewModel:function(Q){var H=Q.data;
return _.q(_.oF,{data:function(){return(B==null?0:B())?Object.assign({},H(),{style:"mono"}):H()},
className:_.V("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(Q){return _.q(_.u5,{data:Q},{carouselAdCardImageViewModel:function(H){return _.q(hi8,{data:H.data,customCommandResolver:G})}})}))},"Jb");var uD2=_.a(function(O){var m=O.data;var G=O.customCommandResolver;var B=O.className;var Q=O.buttonClassName;var H=O.animationEntityKey;var M=O.expansive;return _.q("carousel-button-view-model",{class:_.bE("ytwCarouselButtonViewModelHost",B)},_.q(_.u5,{data:function(){return m().carousel}},{carouselAdCardCollectionViewModel:function(R){return _.q(gyH,{data:R.data,
customCommandResolver:G,expansive:M})}}),_.q(_.u5,{data:function(){return m().button}},{adButtonViewModel:function(R){var x=R.data;
return _.q(_.ud,{data:function(){return(M==null?0:M())?Object.assign({},x(),{style:"AD_BUTTON_STYLE_TONAL"}):x()},
className:Q,customCommandResolver:G,animationEntityKey:H})}}))},"Kb");_.j1m=_.a(function(O){var m=O.data;O=O.className;var G=_.Al("pivot-button-view-model");_.Ln(function(){var B;((B=m())==null?0:B.backgroundColor)&&G.value.setAttribute("data-background-color",String(m().backgroundColor))});
return _.q("pivot-button-view-model",{el:G,class:_.bE("ytwPivotButtonViewModelHost",O)},_.q(_.p3,{command:function(){var B=m();B=B.onClickCommand?_.eg(B.onClickCommand):B.contentDescription?_.Rh(B.contentDescription):void 0;return B},
ariaLabel:function(){return m().contentDescription}},_.q(_.U,{cond:function(){return m().thumbnail},
then:function(B){return _.q(_.KH,{data:B,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.q(_.U,{cond:function(){return m().icon},
then:function(B){return _.q(_.T$,{icon:function(){return B().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Lb");_.I_3=_.a(function(O){var m=O.data;var G=O.buttonShapeOverrideables;return _.q("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.q(_.u5,{data:function(){return m().buttonViewModels}},{buttonViewModel:function(B){return _.q(_.oF,{data:B.data,
buttonOverrides:G})},
likeButtonViewModel:function(B){return _.q(_.$U,{data:B.data,buttonShapeOverrideables:G})},
dislikeButtonViewModel:function(B){return _.q(_.Kx,{data:B.data,buttonShapeOverrideables:G})},
toggleButtonViewModel:function(B){return _.q(_.BT,{data:B.data,buttonShapeOverrides:G})}}))},"Mb");var pSU=_.a(function(O){var m=O.avatar;var G=O.headline;var B=O.badge;var Q=O.description;var H=O.expansive;O={};return _.q("yt-ad-metadata-shape",{class:_.bE("ytAdMetadataShapeHost",(O.ytAdMetadataShapeHostLarge=H,O))},_.q("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.q(_.U,{cond:m,then:function(M){return _.q(_.X5C,{data:function(){return(H==null?0:H())?Object.assign({},M(),{size:"AD_AVATAR_SIZE_M"}):M()}})}}),_.q("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.q(_.Jg,{text:G,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.q(_.U,{cond:B,then:function(M){return _.q(_.EM,{data:function(){return(H==null?0:H())?Object.assign({},M(),{style:"AD_BADGE_STYLE_STARK"}):M()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.q("h2",{class:"ytAdMetadataShapeHostDescription"},_.q(_.Jg,{text:Q,
linkInheritColor:!0,isHeadline:function(){return H==null?void 0:H()}})))},"Nb");var SWC=_.a(function(O){var m=O.data;var G=O.onShow;var B=O.expansive;O=_.wR(function(){return m().interaction});
_.Ln(function(){var H,M=(H=m().animatedRenderingConfig)==null?void 0:H.delayedSecondsToVisible;if(M){var R=setTimeout(G,M*1E3);_.LS(function(){clearTimeout(R)})}});
var Q={};return _.q("reels-ad-card-buttoned-view-model",{class:_.bE(function(){var H;return((H=m().interaction)==null?0:H.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(Q.ytwReelsAdCardButtonedViewModelHostExpansive=B,Q)),
el:_.Mi(O)},_.q(pSU,{avatar:function(){return _.b(m().avatar,RI_)},
headline:function(){return m().headline},
badge:function(){return _.b(m().adBadge,iye)},
description:function(){return m().description},
expansive:B}),_.q(_.u5,{data:function(){return m().ctaButton}},{adButtonViewModel:function(H){var M=H.data;
return _.q(_.ud,{data:function(){return(B==null?0:B())?Object.assign({},M(),{style:"AD_BUTTON_STYLE_FILLED"}):M()}})}}))},"Ob");var Ey9=_.a(function(O){var m=O.data;O=O.expansive;var G=_.V("web_ad_metadata_clickable")?_.wR(function(){return m().interaction},void 0,function(){return _.V("web_ad_metadata_clickable")}):void 0,B={};
B=_.CJ("ytwReelsAdMetadataViewModelHost",(B.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.V("web_ad_metadata_clickable"),B));return _.q("reels-ad-metadata-view-model",{class:B,el:_.Mi(G)},_.q(pSU,{avatar:function(){return _.b(m().avatar,RI_)},
headline:function(){return m().headline},
badge:function(){return _.b(m().adBadge,iye)},
description:function(){return m().description},
expansive:O}))},"Pb");var LY9={iconPosition:"icon-with-label",size:"L"},C6o=_.a(function(O){var m=O.data;var G=O.overlayDensity;var B=O.extractOverlay;var Q=O.extractActionBar;O=_.Al("reels-player-overlay-layout-view-model");var H=_.MN(G,0),M=function(){var J;return(J=m().reelsAdCardButtonedEntityKey)!=null?J:""},R=function(){return M()+"/ad_button"},x=_.fJ(vjS,M),t=function(){var J,n;
return(n=(J=x())==null?void 0:J.value)!=null?n:!1},W=_.wg(UFI),Z=function(){var J;
return Object.assign({},LY9,(W()||!((J=Q==null?void 0:Q())!=null&&J))&&{style:"overlay-dark"})};
G={};var z={};return _.q("reels-player-overlay-layout-view-model",{class:_.bE("ytwReelsPlayerOverlayLayoutViewModelHost",(G.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!m().extension},G.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},G.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return H()===1&&!(B==null?0:B())},G.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var J;
return(J=B==null?void 0:B())!=null?J:!1},G.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var J;
return(J=Q==null?void 0:Q())!=null?J:!1},G)),
"overlay-density":function(){return String(H())},
el:O},_.q("div",{class:_.bE("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(z.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},z))},_.q("div",{"aria-hidden":function(){return t()},
class:_.bE("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return t()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.hH({"transition-duration":function(){return zDM(m())}})},_.q(_.u5,{data:function(){return m().adMetadata}},{reelsAdMetadataViewModel:function(J){return _.q(Ey9,{data:J.data,
expansive:function(){return H()===1}})}}),_.q(_.U,{cond:function(){return m().extension},
then:function(J){return _.q("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.q(_.u5,{data:J},{adButtonViewModel:function(n){return _.q(_.ud,{data:n.data,animationEntityKey:R,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(n){return _.q(uD2,{data:n.data,animationEntityKey:R,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return H()===1}})}}))}})),_.q("div",{"aria-hidden":function(){return!t()},
class:_.bE("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return t()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.hH({"transition-duration":function(){return zDM(m())}})},_.q(_.u5,{data:function(){return m().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(J){return _.q(SWC,{data:J.data,
onShow:function(){_.$n(_.jh("booleanEntity",M(),{key:M(),value:!0}))},
expansive:function(){return H()===1}})}}))),_.q("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.q(_.u5,{data:function(){return m().actions}},{reelActionBarViewModel:function(J){return _.q(_.I_3,{data:J.data,
buttonShapeOverrideables:Z})}}),_.q(_.u5,{data:function(){return m().menu}},{buttonViewModel:function(J){return _.q(_.oF,{data:J.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},Z(),{type:"tonal"})}})}}),_.q(_.u5,{data:function(){return m().pivotButton}},{pivotButtonViewModel:function(J){return _.q(_.j1m,{data:J.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Qb");_.qi(C6o,"reels-player-overlay-layout-view-model",{props:{data:_.VZ,overlayDensity:_.VZ,extractOverlay:_.VZ,extractActionBar:_.VZ}});var Y5=function(){var O=_.u.apply(this,arguments)||this;O.noBottomMargin=!1;O.overlayDensity=0;O.extractOverlay=!1;O.extractActionBar=!1;return O};
_.X(Y5,_.u);_.v=Y5.prototype;
_.v.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",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.V("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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.v.ready=function(){var O=this;E1f(function(){O.isAttached&&Bc(O.JSC$15540_storedAdSlotMetadata,O.JSC$15540_storedAdLayoutMetadata,O.adSlotMetadata,O.adLayoutMetadata)&&y$(aI(),O.JSC$15540_storedAdSlotMetadata,O.JSC$15540_storedAdLayoutMetadata)})};
_.v.attached=function(){Bc(this.JSC$15540_storedAdSlotMetadata,this.JSC$15540_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&J_9(aI(),this.JSC$15540_storedAdSlotMetadata,this.JSC$15540_storedAdLayoutMetadata)};
_.v.detached=function(){Bc(this.JSC$15540_storedAdSlotMetadata,this.JSC$15540_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&y$(aI(),this.JSC$15540_storedAdSlotMetadata,this.JSC$15540_storedAdLayoutMetadata)};
_.v.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.v.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15540_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15540_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15540_storedAdLayoutMetadata!==void 0&&this.JSC$15540_storedAdSlotMetadata!==void 0&&y$(aI(),this.JSC$15540_storedAdSlotMetadata,this.JSC$15540_storedAdLayoutMetadata),J_9(aI(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15540_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15540_storedAdSlotMetadata=this.adSlotMetadata)};
_.vr.Object.defineProperties(Y5.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.adLayoutMetadata}}});
Y5.prototype.onAdMetadataChanged=Y5.prototype.onAdMetadataChanged;Y5.prototype.onTypographyBumpChanged=Y5.prototype.onTypographyBumpChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Y5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Y5.prototype,"rendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Y5.prototype,"ytComponentBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],Y5.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Y5.prototype,"noBottomMargin",void 0);_.c([_.g(),_.Y("design:type",Object)],Y5.prototype,"overlayDensity",void 0);_.c([_.g(),_.Y("design:type",Object)],Y5.prototype,"extractOverlay",void 0);_.c([_.g(),_.Y("design:type",Object)],Y5.prototype,"extractActionBar",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],Y5.prototype,"typographyBump",void 0);
_.c([_.T("data.adLayoutMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Y5.prototype,"adLayoutMetadata",null);_.c([_.g(),_.Y("design:type",Object)],Y5.prototype,"adSlotMetadata",void 0);_.c([_.uc("ytd-video-display-full-buttoned-and-button-group-renderer"),_.Y("design:type",HTMLElement)],Y5.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.c([_.Tw("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y5.prototype,"onTypographyBumpChanged",null);_.c([_.Tw("adLayoutMetadata","adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y5.prototype,"onAdMetadataChanged",null);_.c([_.l({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Y5);
_.y(Y5,"ytd-in-feed-ad-layout-renderer",function(){if(nb2!==void 0)return nb2;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return nb2=O},
{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var oyC;var l_s;_.qi(_.EM,"ad-badge-view-model",{props:{data:_.VZ,hasDot:_.VZ,customCommandResolver:_.RZ,adRenderingContextType:_.RZ,usedInMasthead:_.RZ}});_.qi(_.ud,"ad-button-view-model",{props:{data:_.VZ,customCommandResolver:_.RZ,className:_.RZ,delayedClassName:_.RZ,animationEntityKey:_.RZ,isCompactWidth:_.RZ,isContentWidth:_.RZ}});var dM=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return O};
_.X(dM,_.u);_.v=dM.prototype;_.v.computeHasLiveDescription=function(O){return!(O==null||!O.liveDescription)};
_.v.computeHasByline=function(O){return!(O==null||!O.byline)};
_.v.computeUsesAdButtonViewModel=function(O){return!!_.b(O==null?void 0:O.cta,xvo)};
_.v.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.v.onYtToggleButton=function(O){var m,G=(m=this.data)==null?void 0:m.videoReminderEntityKey;G&&this.ytdReduxBehavior.dispatch(_.jh("upcomingEventReminderStateEntity",G,{key:G,state:O.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.v.attached=function(){this.updateChannelBanner()};
_.v.dataChanged=function(){this.updateChannelBanner()};
_.v.videoReminderStateChanged=function(){var O;this.videoReminderState&&_.b((O=this.data)==null?void 0:O.cta,_.KK)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.v.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var O=_.Uf(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);O&&(O.startsWith("//")&&(O="https:"+O),this.hostElement.classList.add("channel-banner"),_.n7(this.hostElement,{"--ytvmh-channel-banner":"url("+O+")"}))}else _.V("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.v.onPlayerReady=function(){this.onIronResize()};
_.v.maybeFlushDebouncer=function(){_.V("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(O){var m;O=(m=O.getElementsByTagName("yt-attributed-string"))==null?void 0:m[0];GT5(O==null?void 0:O.polymerController)})};
_.v.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var O=_.ZO(this.hostElement).querySelector("#live-description"),m;O&&((m=this.data)==null?0:m.shortLiveDescription)&&O.clientWidth<O.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
dM.prototype.onIronResize=dM.prototype.onIronResize;dM.prototype.videoReminderStateChanged=dM.prototype.videoReminderStateChanged;dM.prototype.dataChanged=dM.prototype.dataChanged;dM.prototype.onYtToggleButton=dM.prototype.onYtToggleButton;_.c([_.h(_.Dm),_.Y("design:type",Object)],dM.prototype,"ironResizableBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],dM.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],dM.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],dM.prototype,"data",void 0);_.c([_.g({selectorArgs:["data.videoReminderEntityKey"],selector:$Se}),_.Y("design:type",Object)],dM.prototype,"videoReminderState",void 0);
_.c([_.g({reflectToAttribute:!0,value:_.V("web_modern_buttons")}),_.Y("design:type",Boolean)],dM.prototype,"rounded",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.Y("design:type",Boolean)],dM.prototype,"hasLiveDescription",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.Y("design:type",Boolean)],dM.prototype,"hasByline",void 0);
_.c([_.g({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.Y("design:type",String)],dM.prototype,"adRenderingContextType",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],dM.prototype,"isMasthead",void 0);_.c([_.g({computed:"computeUsesAdButtonViewModel(data)"}),_.Y("design:type",Boolean)],dM.prototype,"usesAdButtonViewModel",void 0);
_.c([_.g({reflectToAttribute:!0,value:_.V("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.Y("design:type",Boolean)],dM.prototype,"resizableAdBannerSafariFix",void 0);_.c([_.ji("yt-formatted-string"),_.Y("design:type",Array)],dM.prototype,"formattedStrings",void 0);_.c([_.uc("#cta-button"),_.Y("design:type",HTMLElement)],dM.prototype,"ctaButton",void 0);
_.c([_.hG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],dM.prototype,"onYtToggleButton",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dM.prototype,"dataChanged",null);_.c([_.Tw("videoReminderState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dM.prototype,"videoReminderStateChanged",null);
_.c([_.hG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dM.prototype,"onIronResize",null);_.c([_.l({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],dM);
_.y(dM,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(l_s!==void 0)return l_s;var O=document.createElement("template");_.f(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return l_s=O},{mode:1});var a_u;var wM=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};O.isLocked=!1;return O};
_.X(wM,_.u);_.v=wM.prototype;_.v.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.v.onExpandedChanged=function(){this.expanded&&_.UB(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.v.onMouseOver=function(){this.maybeExpand()};
_.v.onTap=function(){this.maybeExpand()};
_.v.onExpandableTileExpanding=function(O){O!==this&&(this.expanded=!1)};
_.v.onExpandableTileLockAndCollapse=function(O){this.isLocked=!0;O!==this&&(this.expanded=!1)};
_.v.onExpandableTileUnlock=function(){this.isLocked=!1};
wM.prototype.onTap=wM.prototype.onTap;wM.prototype.onMouseOver=wM.prototype.onMouseOver;wM.prototype.onExpandedChanged=wM.prototype.onExpandedChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],wM.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],wM.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wM.prototype,"expanded",void 0);_.c([_.Si("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wM.prototype,"onExpandedChanged",null);_.c([_.hG("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wM.prototype,"onMouseOver",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wM.prototype,"onTap",null);
_.c([_.l({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],wM);
_.y(wM,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(a_u!==void 0)return a_u;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return a_u=O},{mode:1});var k1m;var eX=function(){var O=_.u.apply(this,arguments)||this;O.buttonOverrides={style:"overlay"};O.useYtdPlayer=_.V("use_ytd_player_for_desktop_masthead");O.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};O.playbackFinished=!1;O.JSC$15554_playerManager=null;O.JSC$15554_mastheadCounter=new m_m;return O};
_.X(eX,_.u);_.v=eX.prototype;_.v.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"}}}};
_.v.created=function(){this.JSC$15554_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15554_playerManager=new OX)};
_.v.ready=function(){var O=this;this.JSC$15554_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var m=_.ZO(this.hostElement).querySelector("#player");this.useYtdPlayer?m.style.display="none":(this.ytdPlayer.style.display="none",lQC(this.JSC$15554_playerManager,m,function(){O.onPlaybackEnded()}),_.ZO(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var G;
((G=O.data)==null?0:G.navigationEndpoint)&&_.iP(O.hostElement,"yt-navigate",{endpoint:O.data.navigationEndpoint})}))};
_.v.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15554_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.v.attached=function(){var O=this;_.mp(function(){O.maybePlayVideo()})};
_.v.maybePlayVideo=function(){var O=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$15554_playerManager.playVideo(),this.getPlayerPromise().then(function(){O.JSC$15554_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.v.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15554_playerManager.stopVideo()};
_.v.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var O,m={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((O=this.data.playbackStartMs)!=null?O:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(m);this.setupYtdPlayer()}else kTp(this.JSC$15554_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(aQU(this.JSC$15554_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.v.getPlayerPromise=function(){return this.JSC$15554_playerManager.getPlayerPromise()};
_.v.onYtToggleButton=function(O){this.useYtdPlayer?this.toggleMute(O.detail.toggled):O.detail.toggled?this.JSC$15554_playerManager.mute():this.JSC$15554_playerManager.unMute()};
_.v.onYtNavigate=function(O){var m=s0N(O.detail.endpoint),G=NaY(this.data.clickthroughReportingData);m&&G&&(O.detail.endpoint.watchEndpoint?O.detail.tempData=G:_.vd(m,G,30))};
_.v.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.v.onExpandedChanged=function(){this.expanded?(_.UB(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.v.onMouseOver=function(){this.maybeExpand()};
_.v.onTap=function(){this.maybeExpand()};
_.v.onExpandableTileExpanding=function(O){O!==this&&(this.stopVideo(),this.expanded=!1)};
_.v.onExpandableTileLockAndCollapse=function(O){O!==this&&(this.isLocked=!0,this.expanded=!1)};
_.v.onExpandableTileUnlock=function(){this.isLocked=!1};
_.v.lockAndCollapseExpandableTiles=function(){_.xc(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.v.unlockExpandableTiles=function(){_.xc(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.v.setupYtdPlayer=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return G.yield(O.ytdPlayer.getPlayerPromise(),2);m=G.yieldResult;m.addEventListener("onStateChange",function(B){O.onPlayerStateChange(B)});
m.addEventListener("onCueRangeExit",function(B){O.onCueRangeExit(B)});
_.ju(G)})};
_.v.onPlayerStateChange=function(O){if(O===1&&(O=this.ytdPlayer.getPlayer())){var m=O.getCurrentTime(),G,B,Q=m+((B=(G=this.data)==null?void 0:G.playbackDurationMs)!=null?B:0)/1E3;O.addCueRange("playback",m,Q);this.JSC$15554_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.v.onCueRangeExit=function(O){O==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.v.toggleMute=function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(m.ytdPlayer.getPlayerPromise(),2);G=B.yieldResult;O?G.mute():G.unMute();_.ju(B)})};
eX.prototype.onTap=eX.prototype.onTap;eX.prototype.onMouseOver=eX.prototype.onMouseOver;eX.prototype.onExpandedChanged=eX.prototype.onExpandedChanged;eX.prototype.onYtNavigate=eX.prototype.onYtNavigate;eX.prototype.onYtToggleButton=eX.prototype.onYtToggleButton;eX.prototype.dataChanged=eX.prototype.dataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],eX.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],eX.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],eX.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],eX.prototype,"expanded",void 0);_.c([_.g(),_.Y("design:type",Object)],eX.prototype,"buttonOverrides",void 0);
_.c([_.g(),_.Y("design:type",Object)],eX.prototype,"useYtdPlayer",void 0);_.c([_.uc("#ytd-player"),_.Y("design:type",Object)],eX.prototype,"ytdPlayer",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eX.prototype,"dataChanged",null);_.c([_.hG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],eX.prototype,"onYtToggleButton",null);
_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],eX.prototype,"onYtNavigate",null);_.c([_.Si("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eX.prototype,"onExpandedChanged",null);_.c([_.hG("mouseover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eX.prototype,"onMouseOver",null);
_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eX.prototype,"onTap",null);_.c([_.l({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],eX);
_.y(eX,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(k1m!==void 0)return k1m;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return k1m=O},{mode:1});var y_8;var D8=function(){return _.u.apply(this,arguments)||this};
_.X(D8,_.u);D8.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
D8.prototype.onShow=function(){var O=_.ZO(this.hostElement).querySelector("#live-description"),m;O&&((m=this.data)==null?0:m.shortLiveDescription)&&O.clientWidth<O.scrollWidth&&this.hostElement.classList.add("short-live-description")};
D8.prototype.onYtToggleButton=function(O){var m,G=(m=this.data)==null?void 0:m.videoReminderEntityKey;G&&this.ytdReduxBehavior.dispatch(_.jh("upcomingEventReminderStateEntity",G,{key:G,state:O.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
D8.prototype.videoReminderStateChanged=function(){var O;this.videoReminderState&&_.b((O=this.data)==null?void 0:O.cta,_.KK)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
D8.prototype.videoReminderStateChanged=D8.prototype.videoReminderStateChanged;D8.prototype.onYtToggleButton=D8.prototype.onYtToggleButton;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],D8.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],D8.prototype,"data",void 0);
_.c([_.g({selectorArgs:["data.videoReminderEntityKey"],selector:$Se}),_.Y("design:type",Object)],D8.prototype,"videoReminderState",void 0);_.c([_.hG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],D8.prototype,"onYtToggleButton",null);_.c([_.Tw("videoReminderState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],D8.prototype,"videoReminderStateChanged",null);
_.c([_.l({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],D8);
_.y(D8,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(y_8!==void 0)return y_8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return y_8=O},{mode:_.ZB("kevlar_poly_si_batch_j065")?1:2});var c_s;var sA=function(){var O=_.u.apply(this,arguments)||this;O.useYtdPlayer=_.V("use_ytd_player_for_desktop_masthead");O.buttonOverrides={style:"overlay"};O.JSC$15562_playerManager=null;O.JSC$15562_mastheadCounter=new m_m;O.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return O};
_.X(sA,_.u);_.v=sA.prototype;_.v.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"}}}};
_.v.created=function(){this.JSC$15562_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15562_playerManager=new OX)};
_.v.ready=function(){var O=this;this.JSC$15562_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var m;(m=this.embeddedPlayer)==null||m.remove()}else{var G;(G=this.ytdPlayer)==null||G.remove();lQC(this.JSC$15562_playerManager,this.embeddedPlayer,function(){O.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){O.data&&O.data.navigationEndpoint&&_.iP(O.hostElement,"yt-navigate",{endpoint:O.data.navigationEndpoint})})}};
_.v.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15562_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.v.dataChanged=function(){var O=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var m=!this.data.disableAutoPlayback,G,B={autoplay:m,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((G=this.data.playbackStartMs)!=null?G:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(m?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(B);this.setupYtdPlayer()}else kTp(this.JSC$15562_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(aQU(this.JSC$15562_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15562_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.xc(O.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");O.JSC$15562_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.v.getPlayerPromise=function(){return this.JSC$15562_playerManager.getPlayerPromise()};
_.v.onYtToggleButton=function(O){this.useYtdPlayer?this.toggleMute(O.detail.toggled):O.detail.toggled?this.JSC$15562_playerManager.mute():this.JSC$15562_playerManager.unMute()};
_.v.onYtNavigate=function(O){var m=s0N(O.detail.endpoint),G=NaY(this.data.clickthroughReportingData);m&&G&&(O.detail.endpoint.watchEndpoint?O.detail.tempData=G:_.vd(m,G,30))};
_.v.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15562_playerManager.stopVideo()};
_.v.setupYtdPlayer=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return G.yield(O.ytdPlayer.getPlayerPromise(),2);m=G.yieldResult;m.addEventListener("onStateChange",function(B){O.onPlayerStateChange(B)});
m.addEventListener("onCueRangeExit",function(B){O.onCueRangeExit(B)});
_.ju(G)})};
_.v.onPlayerStateChange=function(O){if(O===1&&(O=this.ytdPlayer.getPlayer())){var m=O.getCurrentTime(),G,B,Q=m+((B=(G=this.data)==null?void 0:G.playbackDurationMs)!=null?B:0)/1E3;O.addCueRange("playback",m,Q);_.xc(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15562_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.v.onCueRangeExit=function(O){O==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.v.toggleMute=function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(m.ytdPlayer.getPlayerPromise(),2);G=B.yieldResult;O?G.mute():G.unMute();_.ju(B)})};
_.vr.Object.defineProperties(sA.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var O,m;if(!((O=this.data)==null?0:(m=O.accessibilityData)==null?0:m.label))return"Ad primary link";var G,B;return _.Xm("AD_TITLE",{title:(G=this.data)==null?void 0:(B=G.accessibilityData)==null?void 0:B.label})}}});
sA.prototype.onYtMastheadHidden=sA.prototype.onYtMastheadHidden;sA.prototype.onYtNavigate=sA.prototype.onYtNavigate;sA.prototype.onYtToggleButton=sA.prototype.onYtToggleButton;sA.prototype.dataChanged=sA.prototype.dataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],sA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],sA.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],sA.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],sA.prototype,"useYtdPlayer",void 0);_.c([_.uc("ytd-toggle-button-renderer"),_.Y("design:type",Object)],sA.prototype,"muteButton",void 0);_.c([_.g(),_.Y("design:type",Object)],sA.prototype,"buttonOverrides",void 0);
_.c([_.T("data.accessibilityData.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],sA.prototype,"titleAriaLabel",null);_.c([_.uc("#replay-button"),_.Y("design:type",Object)],sA.prototype,"replayButton",void 0);_.c([_.uc("#player-container"),_.Y("design:type",Object)],sA.prototype,"playerContainer",void 0);_.c([_.uc("#player"),_.Y("design:type",Object)],sA.prototype,"embeddedPlayer",void 0);_.c([_.uc("#ytd-player"),_.Y("design:type",Object)],sA.prototype,"ytdPlayer",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sA.prototype,"dataChanged",null);_.c([_.hG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],sA.prototype,"onYtToggleButton",null);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],sA.prototype,"onYtNavigate",null);
_.c([_.hG("yt-masthead-hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sA.prototype,"onYtMastheadHidden",null);_.c([_.l({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],sA);
_.y(sA,"ytd-video-masthead-ad-primary-video-renderer",function(){if(c_s!==void 0)return c_s;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return c_s=O},{mode:2});var YWj;var NR=function(){var O=_.u.apply(this,arguments)||this;O.collapsed=!1;O.impressionResolver=_.m3();O.JSC$15566_activeViewMeasurementDataResolver=_.m3();O.actionMap={"yt-mute-ad-action":"handleMuteAd"};return O};
_.X(NR,_.u);_.v=NR.prototype;_.v.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"}}}};
_.v.ready=function(){var O=this;_.ZO(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){O.expandAd()});
this.hostElement.addEventListener("yt-action",function(m){if(m.detail.actionName==="yt-service-request"){var G=m.detail.args[1];G.videoMastheadAdMuteCommand&&(O.collapseAd(G.videoMastheadAdMuteCommand.encryptedMastheadId),m.stopPropagation())}})};
_.v.attached=function(){var O=this;_.mp(function(){O.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(m){if(!O.collapsed){m=_.K(m);for(var G=m.next();!G.done;G=m.next())G=G.value,NI(G.baseUrl,G.attributionSrcMode);O.data.impressionCommand=void 0}});
this.JSC$15566_activeViewMeasurementDataResolver.promise.then(function(m){O.ytdActiveViewBehavior.enableActiveViewMeasurement(m,15)});
_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&O.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.v.dataChanged=function(){var O;((O=this.data.impressionCommand)==null?0:O.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var m;((m=this.data)==null?0:m.activeView)&&this.JSC$15566_activeViewMeasurementDataResolver.resolve(this.data.activeView);(O=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(O.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.v.computeWidescreen=function(O){var m;return!!(O&&((m=_.b(O,vN$))==null?0:m.isWidescreen))};
_.v.computeExpandable=function(O){return!!(O&&O.length>0)};
_.v.onIronResize=function(){if(this.expandable){var O=_.ZO(this.hostElement).querySelector("#expandable-tile-container :first-child");O&&!O.expanded&&(O.expanded=!0)}};
_.v.handleMuteAd=function(){this.collapseAd(null)};
_.v.restoreCollapsedState=function(O){this.collapsed=_.TC().get("HIDDEN_MASTHEAD_ID")===O};
_.v.collapseAd=function(O){if(O){var m=_.TC();m.set("HIDDEN_MASTHEAD_ID",O);m.save()}(O=_.ZO(this.hostElement).querySelector("#video"))&&_.iP(O,"yt-masthead-hidden");this.collapsed=!0};
_.v.expandAd=function(){var O=_.TC();O.set("HIDDEN_MASTHEAD_ID",!1);O.save();location.reload()};
_.v.detached=function(){_.V("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
NR.prototype.onIronResize=NR.prototype.onIronResize;NR.prototype.dataChanged=NR.prototype.dataChanged;_.c([_.h(_.Dm),_.Y("design:type",Object)],NR.prototype,"ironResizableBehavior",void 0);_.c([_.h($m),_.Y("design:type",Object)],NR.prototype,"ytdActiveViewBehavior",void 0);_.c([_.h(_.xm),_.Y("design:type",Object)],NR.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],NR.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],NR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],NR.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.Y("design:type",Boolean)],NR.prototype,"widescreen",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.Y("design:type",Boolean)],NR.prototype,"expandable",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],NR.prototype,"collapsed",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NR.prototype,"dataChanged",null);
_.c([_.hG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NR.prototype,"onIronResize",null);_.c([_.l({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],NR);
_.y(NR,"ytd-video-masthead-ad-v3-renderer",function(){if(YWj!==void 0)return YWj;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return YWj=O},{mode:2});var Pw=function(){return _.u.apply(this,arguments)||this};
_.X(Pw,_.u);_.v=Pw.prototype;_.v.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.v.ready=function(){var O=this;E1f(function(){O.isAttached&&Bc(O.JSC$15571_storedAdSlotMetadata,O.JSC$15571_storedAdLayoutMetadata,O.adSlotMetadata,O.adLayoutMetadata)&&y$(aI(),O.JSC$15571_storedAdSlotMetadata,O.JSC$15571_storedAdLayoutMetadata)})};
_.v.attached=function(){Bc(this.JSC$15571_storedAdSlotMetadata,this.JSC$15571_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&J_9(aI(),this.JSC$15571_storedAdSlotMetadata,this.JSC$15571_storedAdLayoutMetadata)};
_.v.detached=function(){Bc(this.JSC$15571_storedAdSlotMetadata,this.JSC$15571_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&y$(aI(),this.JSC$15571_storedAdSlotMetadata,this.JSC$15571_storedAdLayoutMetadata)};
_.v.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15571_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15571_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15571_storedAdLayoutMetadata!==void 0&&this.JSC$15571_storedAdSlotMetadata!==void 0&&y$(aI(),this.JSC$15571_storedAdSlotMetadata,this.JSC$15571_storedAdLayoutMetadata),J_9(aI(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15571_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15571_storedAdSlotMetadata=this.adSlotMetadata)};
_.vr.Object.defineProperties(Pw.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.adLayoutMetadata}}});
Pw.prototype.onAdMetadataChanged=Pw.prototype.onAdMetadataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Pw.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Pw.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Pw.prototype,"data",void 0);_.c([_.T("data.adLayoutMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pw.prototype,"adLayoutMetadata",null);
_.c([_.g(),_.Y("design:type",Object)],Pw.prototype,"adSlotMetadata",void 0);_.c([_.Tw("adLayoutMetadata","adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pw.prototype,"onAdMetadataChanged",null);_.c([_.l({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Pw);
_.y(Pw,"ytd-page-top-ad-layout-renderer",function(){if(oyC!==void 0)return oyC;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return oyC=
O},{mode:_.ZB("kevlar_poly_si_batch_j070")?1:2});var dLm;var Fh=function(){var O=_.u.apply(this,arguments)||this;O.noBottomMargin=!1;O.overlayDensity=0;O.typographyBump=!1;O.extractOverlay=!1;O.extractActionBar=!1;return O};
_.X(Fh,_.u);_.v=Fh.prototype;
_.v.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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.v.ready=function(){var O=this;E1f(function(){O.isAttached&&O.adSlotMetadata&&zij(aI(),O.adSlotMetadata)})};
_.v.attached=function(){if(this.adSlotMetadata){var O;if(this.adSlotMetadata===((O=this.data)==null?void 0:O.adSlotMetadata))Z23(aI(),this.adSlotMetadata);else{var m;_.ay(Error("Th`"+this.adSlotMetadata+"`"+((m=this.data)==null?void 0:m.adSlotMetadata)))}}};
_.v.detached=function(){this.adSlotMetadata&&zij(aI(),this.adSlotMetadata)};
_.v.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.v.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&zij(aI(),this.adSlotMetadata),Z23(aI(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.vr.Object.defineProperties(Fh.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var O,m,G=_.b((O=this.data)==null?void 0:(m=O.fulfillmentContent)==null?void 0:m.fulfilledLayout,_.$vH),B;return(O=(B=_.b(G==null?void 0:G.renderingContent,Kiu))==null?void 0:B.layout)?O.toLowerCase().replace(/_/g,"-"):""}}});
Fh.prototype.onAdSlotMetadataChanged=Fh.prototype.onAdSlotMetadataChanged;Fh.prototype.onTypographyBumpChanged=Fh.prototype.onTypographyBumpChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Fh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Fh.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Fh.prototype,"rendererBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],Fh.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Fh.prototype,"noBottomMargin",void 0);_.c([_.g(),_.Y("design:type",Object)],Fh.prototype,"overlayDensity",void 0);_.c([_.g(),_.Y("design:type",Object)],Fh.prototype,"typographyBump",void 0);_.c([_.g(),_.Y("design:type",Object)],Fh.prototype,"extractOverlay",void 0);_.c([_.g(),_.Y("design:type",Object)],Fh.prototype,"extractActionBar",void 0);
_.c([_.uc("ytd-in-feed-ad-layout-renderer"),_.Y("design:type",HTMLElement)],Fh.prototype,"inFeedAdLayoutRenderer",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Fh.prototype,"layout",null);_.c([_.Tw("typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fh.prototype,"onTypographyBumpChanged",null);
_.c([_.Tw("data.adSlotMetadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fh.prototype,"onAdSlotMetadataChanged",null);_.c([_.l({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Fh);
_.y(Fh,"ytd-ad-slot-renderer",function(){if(dLm!==void 0)return dLm;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return dLm=O},{mode:_.ZB("kevlar_poly_si_batch_j077")?
1:2});var wSo;var Ao=function(){return _.u.apply(this,arguments)||this};
_.X(Ao,_.u);_.v=Ao.prototype;_.v.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"}}}};
_.v.maybeComputeHref=function(){return null};
_.v.onTap=function(){};
_.v.onThumbnailContainerClick=function(O){this.onClick(O)};
_.v.onClick=function(O){var m,G=(m=this.data)==null?void 0:m.navigationEndpoint;G&&_.b(G,_.GC)&&(this.ytSparklesClickLocationBehavior.handleClick(G,O,!1),O.stopPropagation())};
_.v.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var O=_.K(this.data.impressionUrls),m=O.next();!m.done;m=O.next())m=m.value,gnM(m,jpz(m));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Ao.JSC$15579_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ao.JSC$15579_CLICK_LOCATION_ID_MAP);this.thumbnail&&(O=this.thumbnail.getElementsByTagName("a"),O.length>0&&(O=O.namedItem("thumbnail"))&&
O.removeAttribute("href"))}};
_.v.attached=function(){var O=this;_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&O.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.v.detached=function(){_.V("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.vr.Object.defineProperties(Ao.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Ao.prototype.dataChanged=Ao.prototype.dataChanged;Ao.prototype.onTap=Ao.prototype.onTap;Ao.JSC$15579_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Ao.JSC$15579_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.c([_.h($m),_.Y("design:type",Object)],Ao.prototype,"ytdActiveViewBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Ao.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],Ao.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.up.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],Ao.prototype,"ytSparklesClickLocationBehavior",void 0);
_.c([_.g({selector:_.dg}),_.Y("design:type",Object)],Ao.prototype,"isGridViewEnabled",void 0);_.c([_.T("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ao.prototype,"watchFeedBigThumbs",null);_.c([_.T("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],Ao.prototype,"thumbnailWidth",null);_.c([_.g(),_.Y("design:type",Object)],Ao.prototype,"data",void 0);
_.c([_.uc("ytd-thumbnail"),_.Y("design:type",HTMLElement)],Ao.prototype,"thumbnail",void 0);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ao.prototype,"onTap",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ao.prototype,"dataChanged",null);_.c([_.l({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Ao);
_.y(Ao,"ytd-compact-promoted-video-renderer",function(){if(wSo!==void 0)return wSo;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return wSo=O},{mode:1});var ei$;_.lE("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var HF=function(){return _.u.apply(this,arguments)||this};
_.X(HF,_.u);HF.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],HF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],HF.prototype,"data",void 0);_.c([_.l({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],HF);
_.y(HF,"ytd-search-pyv-renderer",function(){if(ei$!==void 0)return ei$;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return ei$=O},{mode:1});var DLp;_.lE("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var vF=function(){var O=_.u.apply(this,arguments)||this;O.roundedContainer=!0;O.JSC$15587_handleOpenPostCommentDialogActionAfterStamp=!1;O.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return O};
_.X(vF,_.u);_.v=vF.prototype;
_.v.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}}};
_.v.onStampFinished=function(){this.JSC$15587_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.v.handleSignalActionOpenPostCommentDialogAction=function(){var O=_.ZO(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");O?O.openDialog():this.JSC$15587_handleOpenPostCommentDialogActionAfterStamp=!0};
_.v.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.v.computeHideBorder=function(){return this.isInEngagementPanel};
_.v.computeIsCompact=function(){return this.isInEngagementPanel};
_.v.computeUsesCompactLockup=function(O){return O==="BACKSTAGE_SURFACE_TYPE_HOME"||O==="BACKSTAGE_SURFACE_TYPE_SEARCH"||O==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||O==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||O==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||O==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.v.computeUsesFullLockup=function(){var O,m=(O=this.data)==null?void 0:O.post,G;O=(G=_.b(m,zIe))==null?void 0:G.surface;var B;G=(B=_.b(m,bys))==null?void 0:B.originalPost;var Q;if(B=O||((Q=_.b(G,zIe))==null?void 0:Q.surface))return!this.computeUsesCompactLockup(B)&&this.useUpdatedRepostUi;var H;return((H=_.b(m,bys))==null?void 0:H.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.vr.Object.defineProperties(vF.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var O,m;return((m=_.b((O=this.data)==null?void 0:O.post,zIe))==null?void 0:m.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.useUpdatedRepostUi}}});
vF.prototype.onYtCommentModerationPanelEmpty=vF.prototype.onYtCommentModerationPanelEmpty;vF.prototype.onStampFinished=vF.prototype.onStampFinished;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],vF.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],vF.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],vF.prototype,"roundedContainer",void 0);_.c([_.g({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],vF.prototype,"hideBorder",void 0);_.c([_.g({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],vF.prototype,"isCompact",void 0);
_.c([_.g({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],vF.prototype,"usesFullLockup",void 0);_.c([_.hG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vF.prototype,"onStampFinished",null);
_.c([_.hG("ytd-comment-moderation-panel-empty"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],vF.prototype,"onYtCommentModerationPanelEmpty",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],vF.prototype,"isInEngagementPanel",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],vF.prototype,"useUpdatedRepostUi",null);
_.c([_.l({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],vF);
_.y(vF,"ytd-backstage-post-thread-renderer",function(){if(DLp!==void 0)return DLp;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return DLp=O},{mode:1});var s18;var Ka=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.X(Ka,_.u);Ka.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
Ka.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var O=this.data.thumbnail.thumbnails;this.isDarkTheme&&(O=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(O=_.Uf(O,24,void 0,"height"))?O:void 0}};
Ka.prototype.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
Ka.prototype.computeHasText=function(){var O;return!((O=this.data)==null||!O.text)};
_.vr.Object.defineProperties(Ka.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.d5(this.bannerImageUrl))+'");'}}});
Ka.prototype.computeHasText=Ka.prototype.computeHasText;Ka.prototype.computeBannerImageUrl=Ka.prototype.computeBannerImageUrl;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Ka.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Ka.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],Ka.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Ka.prototype,"isDarkTheme",void 0);_.c([_.g(),_.Y("design:type",String)],Ka.prototype,"bannerImageUrl",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.Y("design:type",Boolean)],Ka.prototype,"hasText",void 0);_.c([_.Tw("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ka.prototype,"computeBannerImageUrl",null);
_.c([_.Tw("data.text"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ka.prototype,"computeHasText",null);_.c([_.T("bannerImageUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ka.prototype,"bannerStyle",null);_.c([_.l({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],Ka);
_.y(Ka,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(s18!==void 0)return s18;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return s18=O},{mode:1});var NG3;var $e=function(){return _.u.apply(this,arguments)||this};
_.X($e,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$e.prototype,"data",void 0);_.c([_.l({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],$e);
_.y($e,"ytd-backstage-zero-state-renderer",function(){if(NG3!==void 0)return NG3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return NG3=O},{mode:1});var P6U;var MW=function(){return _.u.apply(this,arguments)||this};
_.X(MW,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],MW.prototype,"data",void 0);_.c([_.g({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],MW.prototype,"icon",void 0);_.c([_.l({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],MW);
_.y(MW,"ytd-post-filter-zero-state-renderer",function(){if(P6U!==void 0)return P6U;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return P6U=O},{mode:1});var FYj;var A_8={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},r4=function(){return _.u.apply(this,arguments)||this};
_.X(r4,_.u);r4.prototype.configureRendererStamper=function(){return A_8};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],r4.prototype,"rendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],r4.prototype,"data",void 0);_.c([_.g({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],r4.prototype,"icon",void 0);_.c([_.l({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],r4);
_.y(r4,"ytd-post-scheduling-zero-state-renderer",function(){if(FYj!==void 0)return FYj;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return FYj=O},{mode:1});var OP9;var RA=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return O};
_.X(RA,_.u);RA.prototype.onTabsActivate=function(O){this.data&&this.data.tabs&&_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[O.detail.selected].navigationEndpoint})};
RA.prototype.shouldShowTotalCount=function(O){return O&&O.totalCount!==void 0};
RA.prototype.handleUpdatePostsTotalCountAction=function(O){var m=this.get(["data.tabs",1,"totalCount"]),G=this.get("updatePostsTotalCountAction.updateType",O);O=this.get("updatePostsTotalCountAction.number",O);m!==void 0&&G!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&O&&(G==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(m)+O):G==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(m)-O))};
_.vr.Object.defineProperties(RA.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var O=0,m=this.data.tabs.length;O<m;O++)if(this.data.tabs[O].selected)return O;return 0}}});
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],RA.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],RA.prototype,"rendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],RA.prototype,"data",void 0);_.c([_.T("data.tabs"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],RA.prototype,"selected",null);_.c([_.l({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],RA);
_.y(RA,"ytd-post-stream-filter-renderer",function(){if(OP9!==void 0)return OP9;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return OP9=O},{mode:1});var mzp;var i$=function(){return _.u.apply(this,arguments)||this};
_.X(i$,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],i$.prototype,"kevlarBehaviors",void 0);_.c([_.g(),_.Y("design:type",Object)],i$.prototype,"data",void 0);_.c([_.l({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],i$);
_.y(i$,"ytd-channel-age-gate-renderer",function(){if(mzp!==void 0)return mzp;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return mzp=O},{mode:1});var GOp;_.lE("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var xe=function(){var O=_.u.apply(this,arguments)||this;O.data=null;return O};
_.X(xe,_.u);xe.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vr.Object.defineProperties(xe.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return((O=this.data)==null?0:(m=O.title)==null?0:(G=m.runs)==null?0:G.length)?147:160}}});
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],xe.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],xe.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],xe.prototype,"imageSizePx",null);_.c([_.l({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],xe);
_.y(xe,"ytd-channel-owner-empty-state-renderer",function(){if(GOp!==void 0)return GOp;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return GOp=O},{mode:1});var BlH;var Qkp;var qW=function(){var O=_.u.apply(this,arguments)||this;O.boundSubmitSearch=function(){O.submitSearch()};
O.boundClearSearch=function(){O.clearSearch()};
return O};
_.X(qW,_.u);_.v=qW.prototype;_.v.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]]"}}}}}};
_.v.toggleClearButton=function(){this.hideClearButton=Lup||!this.input.value};
_.v.submitOnEnterKeyUp=function(O){O.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.v.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.v.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.v.submit=function(){_.iP(this.hostElement,"search-query-changed",this.input.value)};
qW.prototype.toggleClearButton=qW.prototype.toggleClearButton;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],qW.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],qW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],qW.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],qW.prototype,"hideClearButton",void 0);_.c([_.g(),_.Y("design:type",Object)],qW.prototype,"boundSubmitSearch",void 0);_.c([_.g(),_.Y("design:type",Object)],qW.prototype,"boundClearSearch",void 0);_.c([_.uc("#input"),_.Y("design:type",Object)],qW.prototype,"input",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qW.prototype,"toggleClearButton",null);
_.c([_.l({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],qW);
_.y(qW,"ytd-channel-switcher-search-box-renderer",function(){if(Qkp!==void 0)return Qkp;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Qkp=O},{mode:1});var HPp;var U8=function(){var O=_.u.apply(this,arguments)||this;O.boundSubmit=function(){O.submit()};
return O};
_.X(U8,_.u);_.v=U8.prototype;_.v.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"}}}}};
_.v.ready=function(){var O=this;this.form.addEventListener("submit",function(m){return O.onSubmit(m)})};
_.v.onSubmit=function(O){O.preventDefault();return!1};
_.v.toggleClearButton=function(){this.hideClearButton=Lup||!this.input.value};
_.v.submitOnEnterKeyUp=function(O){O.keyCode===13&&this.submit()};
_.v.submit=function(){var O=this.data.endpoint,m=(0,_.aM.unsafeClone)(O);_.b(m,_.gH)?_.b(m,_.gH).query=this.input.value:_.b(m,_.uu)&&(_.b(m,_.uu).query=this.input.value);var G=_.b(m.commandMetadata,_.bP);(G==null?0:G.url)?(G.url=_.cH(G.url,"query",this.input.value),_.iP(this.hostElement,"yt-navigate",{endpoint:m})):_.b(m,mvu)?(_.b(m,mvu).channelSwitcherQuery=this.input.value,_.KR().resolve(_.Mu).resolveCommand(m,{form:{element:this.hostElement}})):(O=Error("Uh`"+JSON.stringify(O)),_.oy(O))};
_.v.getUrl=function(O){return this.get("commandMetadata.webCommandMetadata.url",O)};
U8.prototype.toggleClearButton=U8.prototype.toggleClearButton;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],U8.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],U8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],U8.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],U8.prototype,"hideClearButton",void 0);
_.c([_.g(),_.Y("design:type",Object)],U8.prototype,"boundSubmit",void 0);_.c([_.uc("#form"),_.Y("design:type",HTMLFormElement)],U8.prototype,"form",void 0);_.c([_.uc("#input"),_.Y("design:type",Object)],U8.prototype,"input",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U8.prototype,"toggleClearButton",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],U8);
_.y(U8,"ytd-search-box-renderer",function(){if(HPp!==void 0)return HPp;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return HPp=O},{mode:2});var tu=function(){var O=_.u.apply(this,arguments)||this;O.showSearchBox=!0;return O};
_.X(tu,_.u);tu.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],tu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],tu.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],tu.prototype,"showSearchBox",void 0);_.c([_.l({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],tu);
_.y(tu,"ytd-channel-switcher-header-renderer",function(){if(BlH!==void 0)return BlH;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return BlH=O},{mode:1});var vEC;var KWo;var WF=function(){var O=_.u.apply(this,arguments)||this;O.isDisplayed=!0;return O};
_.X(WF,_.u);_.v=WF.prototype;_.v.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.dataChanged=function(){this.isDisplayed=!0};
_.v.computeType=function(O){return O||"UNKNOWN"};
_.v.onYtServiceRequestCompleted=function(O){O.stopPropagation();this.isDisplayed=!1};
_.v.onClose=function(){this.isDisplayed=!1};
WF.prototype.onYtServiceRequestCompleted=WF.prototype.onYtServiceRequestCompleted;WF.prototype.dataChanged=WF.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],WF.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],WF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],WF.prototype,"data",void 0);
_.c([_.g({computed:"computeType(data.type)",reflectToAttribute:!0}),_.Y("design:type",String)],WF.prototype,"type",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],WF.prototype,"isDisplayed",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WF.prototype,"dataChanged",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],WF.prototype,"onYtServiceRequestCompleted",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],WF);
_.y(WF,"ytd-alert-with-button-renderer",function(){if(KWo!==void 0)return KWo;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return KWo=O},{mode:1});var ZG=function(){var O=_.u.apply(this,arguments)||this;O.noResult=!1;O.enableAlertBanner=!1;O.dismissedAlertBanner=!1;O.hideCreateChannelButton=!1;O.boundDismissAlertBanner=function(){O.dismissAlertBanner()};
O.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return O};
_.X(ZG,_.u);_.v=ZG.prototype;_.v.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.v.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.v.updateChannelSwitcherAction=function(O){var m;O=(m=_.b(O,sKm))==null?void 0:m.page;_.b(O,Dmj)!==void 0&&(this.data=_.b(O,Dmj))};
_.v.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]]"}}}}}};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.v.searchQueryChanged=function(O,m){if(this.data&&this.data.contents&&this.data.contents.length){O=[];var G=[];this.hideCreateChannelButton=this.noResult=!1;for(var B=document.querySelectorAll("ytd-account-item-renderer"),Q=_.K(B),H=Q.next();!H.done;H=Q.next())H=H.value,G.push(H),H.style.display="block";this.resetRightBorder(G);if(m){this.hideCreateChannelButton=!0;for(G=1;G<this.data.contents.length;G++)if(H=this.data.contents[G],_.b(H,Fgp)){var M=void 0,R=void 0;Q=(M=_.b(H,Fgp))==null?void 0:(R=
M.accountName)==null?void 0:R.simpleText;R=M=void 0;H=(M=_.b(H,Fgp))==null?void 0:(R=M.channelHandle)==null?void 0:R.simpleText;(M=B[G-1])&&Q&&_.qp(Q,m)?O.push(M):_.V("enable_handle_search_on_channel_switcher")&&M&&H&&_.qp(H.toString(),m.toString())?O.push(M):M.style.display="none"}O.length===0&&(this.noResult=!0);this.resetRightBorder(O)}}};
_.v.resetRightBorder=function(O){for(var m=0;m<O.length;m++)O[m].style.borderRight=!this.hideCreateChannelButton&&(m+2)%3===0||this.hideCreateChannelButton&&(m+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.v.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.v.setShowSearchBox=function(O){if(O&&O.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var m=0;m<O.contents.length;m++)_.b(O.contents[m],_.GK)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.v.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.vr.Object.defineProperties(ZG.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null?0:O.contents)}}});
ZG.prototype.onContinuationItemsUpdated=ZG.prototype.onContinuationItemsUpdated;ZG.prototype.searchQueryChanged=ZG.prototype.searchQueryChanged;ZG.prototype.onDataChanged=ZG.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],ZG.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.Ww),_.Y("design:type",Object)],ZG.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ZG.prototype,"data",void 0);_.c([_.uc("ytd-channel-switcher-header-renderer"),_.Y("design:type",Object)],ZG.prototype,"channelSwitcherHeaderRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],ZG.prototype,"noResult",void 0);
_.c([_.g(),_.Y("design:type",Object)],ZG.prototype,"enableAlertBanner",void 0);_.c([_.g(),_.Y("design:type",Object)],ZG.prototype,"dismissedAlertBanner",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ZG.prototype,"hideCreateChannelButton",void 0);_.c([_.T("data.contents"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ZG.prototype,"isLoading",null);_.c([_.g(),_.Y("design:type",Object)],ZG.prototype,"boundDismissAlertBanner",void 0);
_.c([_.g({computed:"computeButtonOverride()"}),_.Y("design:type",Object)],ZG.prototype,"buttonOverride",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZG.prototype,"onDataChanged",null);_.c([_.hG("search-query-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],ZG.prototype,"searchQueryChanged",null);
_.c([_.hG("yt-next-continuation-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ZG.prototype,"onContinuationItemsUpdated",null);_.c([_.l({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],ZG);
_.y(ZG,"ytd-channel-switcher-page-renderer",function(){if(vEC!==void 0)return vEC;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return vEC=O},{mode:1});var $z9;var MnC;var zQ=function(){var O=_.u.apply(this,arguments)||this;O.images=[];O.selectedImageIndex=0;return O};
_.X(zQ,_.u);_.v=zQ.prototype;
_.v.ready=function(){_.Cm(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Cm(this.JSC$15632_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Cm(this.JSC$15632_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Cm(this.JSC$15632_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.v.onThumbnailClick=function(O){if(O=O.event_.detail)this.selectedImageIndex=this.images.indexOf(O)};
_.v.updateImageThumbnails=function(O){O=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:O.event_.detail});this.images.splice(this.selectedImageIndex,1,O);this.images=[].concat(_.lS(this.images))};
_.v.cancelImageRepositions=function(){this.selectedImageIndex=0;_.iP(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.v.saveImageRepositions=function(){this.selectedImageIndex=0;_.iP(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.vr.Object.defineProperties(zQ.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var O=this;return(this.images||[]).map(function(m,G){return{image:m,selected:G===O.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.uc("ytd-backstage-image-preview-renderer"),_.Y("design:type",Object)],zQ.prototype,"JSC$15632_imagePreviewContainer",void 0);_.c([_.uc(".thumbnail-images-container"),_.Y("design:type",HTMLElement)],zQ.prototype,"thumbnailImagesContainer",void 0);_.c([_.g(),_.Y("design:type",Array)],zQ.prototype,"images",void 0);
_.c([_.g(),_.Y("design:type",Object)],zQ.prototype,"repositionInstructions",void 0);_.c([_.g(),_.Y("design:type",Object)],zQ.prototype,"selectedImageIndex",void 0);_.c([_.T("images","selectedImageIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],zQ.prototype,"thumbnailRendererDatas",null);_.c([_.T("images","selectedImageIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zQ.prototype,"selectedImageData",null);
_.c([_.l({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],zQ);
_.y(zQ,"ytd-backstage-multi-image-reposition-renderer",function(){if(MnC!==void 0)return MnC;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return MnC=O},{mode:1});var Ju=function(O,m){_.Ly.call(this);this.uploadUrl=O;this.channelId=m;this.imagesUploadData=[]};
_.X(Ju,_.Ly);Ju.prototype.getAllUploadStatuses=function(){var O=this,m,G,B;return _.r(function(Q){if(Q.nextAddress==1)return Q.yield(r3s(O),2);m=Q.yieldResult;G=m.get("succeed");B=m.get("failed");return Q.return(G.concat(B))})};
var iPU=function(O){var m,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(r3s(O),2);m=B.yieldResult;G=m.get("failed");G.length>0&&Rcm(O,G);return B.return(O.getAllUploadStatuses())})},r3s=function(O){var m,G,B,Q,H,M,R;
return _.r(function(x){if(x.nextAddress==1)return m=new Map,x.yield(Promise.allSettled(O.imagesUploadData.map(function(t){return t.uploadPromise})),2);
G=x.yieldResult;B=[];Q=_.K(G);for(H=Q.next();!H.done;H=Q.next())M=H.value,M.status==="fulfilled"&&B.push(M.value);R=O.imagesUploadData.map(function(t){return t.image}).filter(function(t){return B.every(function(W){return W.id!==t.id})});
m.set("succeed",B);m.set("failed",R);return x.return(m)})},Rcm=function(O,m){m=_.K(m);
for(var G=m.next();!G.done;G=m.next()){var B=O;G=G.value;xz8(B,G.id)>=0&&B.cancel(G.id);var Q=new q7p(G),H=_.aeC(B.uploadUrl,{"X-YouTube-ChannelId":B.channelId},G.imageBlob);Q.transfer=H;Q.uploadPromise=Uz2(H,G);B.imagesUploadData.push(Q);H.run()}};
Ju.prototype.cancel=function(O){var m=xz8(this,O);m!==-1&&((m=this.imagesUploadData[m].transfer)&&m.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(G){return G.image.id!==O}))};
var xz8=function(O,m){return O.imagesUploadData.findIndex(function(G){return G.image.id===m})},Uz2=function(O,m){return new Promise(function(G,B){O.listen("l",function(){var Q=O.getResponseText();
Q?(Q=JSON.parse(Q).encryptedBlobId,m.encryptedBlobId=Q,G(m)):B("upload failed")});
O.listen("n",function(){B("upload failed")})})},q7p=function(O){this.image=O};var JP6=function(O,m,G,B,Q){this.id=O;this.imageBlob=m;this.localImageSrc=G;this.naturalWidth=B;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 tn8=[".jpeg",".jpg",".png"],VW=function(){var O=_.u.apply(this,arguments)||this;O.showImagesPreview=!1;O.pollOptions=[];O.errorMessage="";O.optionPlaceholderText="";O.optionDefaultText="";O.JSC$15643_imageId=0;O.maxFileSizeMb=0;O.maxAspectRatio=0;O.invalidFileSizeError="";O.invalidAspectRatioError="";O.invalidFileTypeError="";O.imageSelector=new jP(null,"single_file",tn8);return O};
_.X(VW,_.u);_.v=VW.prototype;_.v.ready=function(){_.Cm(this.imageSelector,"j",this.onImageSelect,!1,this);_.Cm(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Cm(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.v.dataChanged=function(){var O,m,G=_.b((O=this.data)==null?void 0:(m=O.cellTemplate)==null?void 0:m.onEmptyCellTap,bj8);if(G&&G.uploadUrl&&G.channelId){var B;this.maxFileSizeMb=((B=G.imageValidationInfo)==null?void 0:B.maxFileSizeMb)||0;var Q;this.maxAspectRatio=((Q=G.imageValidationInfo)==null?void 0:Q.allowedMaxAspectRatio)||0;var H;this.invalidFileSizeError=this.getSimpleString((H=this.data)==null?void 0:H.invalidFileSizeError);var M;this.invalidAspectRatioError=this.getSimpleString((M=this.data)==
null?void 0:M.invalidAspectRatioError);var R;this.invalidFileTypeError=this.getSimpleString((R=this.data)==null?void 0:R.invalidFileTypeError);this.uploadManager=new Ju(G.uploadUrl,G.channelId)}};
_.v.onEditorInfoChange=function(){this.optionPlaceholderText=_.HX(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.HX(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.v.observeAddImageError=function(){this.errorMessage!==""&&_.iP(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.v.onPollOptionsChange=function(){for(var O=!1,m=[],G=0;G<this.pollOptions.length;G++){var B=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(G+1);this.pollOptions[G].placeholderText!==B?(O=!0,m.push(Object.assign({},this.pollOptions[G],{placeholderText:B}))):m.push(this.pollOptions[G])}O&&(this.pollOptions=m);this.isValid()?_.iP(this.hostElement,"yt-commentbox-post-enable"):_.iP(this.hostElement,"yt-commentbox-post-disable")};
_.v.createPollOptions=function(O){var m=[],G;O=(G=O==null?void 0:O.minPollOptions)!=null?G:0;for(G=0;G<O;G++)m.push(this.createPollOption());return m};
_.v.onImageSelect=function(O){var m=this,G,B,Q,H,M,R;return _.r(function(x){if(x.nextAddress==1){if(m.selectedImageIndex===void 0)return x.jumpTo(0);G=O.files[0];m.errorMessage="";B=m.validateImage(G);if(B!=="")return m.errorMessage=B,x.return();Q=new ZN(m.maxAspectRatio,!1,!0);return x.yield(Q.transform(G),3)}if(x.nextAddress!=4)return H=x.yieldResult,H.transformedData?H.invalidAspectRatio?(m.errorMessage=m.invalidAspectRatioError,x.return()):x.yield(Vpe(m.JSC$15643_imageId,O.files[0],H.transformedData),
4):(m.errorMessage=m.invalidFileTypeError,x.return());M=x.yieldResult;m.JSC$15643_imageId++;Rcm(m.uploadManager,[M]);R=Object.assign({},m.pollOptions[m.selectedImageIndex],{image:M});m.pollOptions.splice(m.selectedImageIndex,1,R);m.refreshPollOptions();_.iP(m.hostElement,"yt-backstage-poll-image-select");_.ju(x)})};
_.v.validateImage=function(O){return O.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.v.refreshPollOptions=function(){this.pollOptions=[].concat(_.lS(this.pollOptions))};
_.v.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.lS(this.pollOptions),[this.createPollOption()]))};
_.v.onRemovePollOption=function(O){var m=this.pollOptions[O.model.index];m&&m.image&&this.uploadManager.cancel(m.image.id);this.pollOptions.splice(O.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.iP(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.v.onTextInput=function(){this.refreshPollOptions()};
_.v.onImageButtonClick=function(O){this.selectedImageIndex=O.model.index;this.imageSelector.click()};
_.v.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.v.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.v.saveImageRepositions=function(O){O=O.event_.detail;for(var m=0,G=[],B=_.K(this.pollOptions),Q=B.next();!Q.done;Q=B.next())Q=Q.value,Q.image!==void 0?(Q=Object.assign({},Q,{image:O[m]}),G.push(Q),m++):G.push(Q);this.showImagesPreview=!1;this.pollOptions=[].concat(_.lS(G))};
_.v.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 O=0,m=_.K(this.pollOptions),G=m.next();!G.done;G=m.next())if(G=G.value,G.optionText.trim()!==""||G.image!==void 0){if(!G.image||this.hasCustomOptionText&&G.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;O++}return O>=Number(this.editorInfo.minPollOptions)};
_.v.getAllUploadStatuses=function(){var O=this,m,G,B,Q;return _.r(function(H){if(H.nextAddress==1)return H.yield(O.uploadManager.getAllUploadStatuses(),2);m=H.yieldResult;G=_.K(m);for(B=G.next();!B.done;B=G.next())if(Q=B.value,Q.encryptedBlobId===void 0)return H.return(iPU(O.uploadManager));return H.return(m)})};
_.v.getPostCreateOptions=function(){for(var O=[],m=_.K(this.pollOptions),G=m.next();!G.done;G=m.next())G=G.value,G.image!==void 0&&O.push({text:this.hasCustomOptionText?G.optionText:G.placeholderText,image:G.image});return O};
_.v.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.v.createButtonRenderer=function(O,m){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:O,accessibilityData:{accessibilityData:{label:this.getSimpleString(O)}},isDisabled:m}};
_.v.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.v.computeThumbnailRendererData=function(O){return O?{image:O,selected:!1}:void 0};
_.v.getSimpleString=function(O){return _.HX(O)};
_.v.updateOptionTextFromBinding=function(O){if(O.target){var m=Array.from(_.ZO(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(O.target);if(m>=0){var G;this.pollOptions[m].optionText=(G=O.detail.value)!=null?G:""}}};
_.vr.Object.defineProperties(VW.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var O,m;return this.pollOptions.length<((m=(O=this.editorInfo)==null?void 0:O.maxPollOptions)!=null?m:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(O){return O.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(O){return O.image}).map(function(O){return O.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(O){return O.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var O,m=(O=this.data)==null?void 0:O.addOptionButtonText;return m?this.createButtonRenderer(m,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var O,m=(O=this.data)==null?void 0:O.repositionImagesButtonLabel;return m?this.createButtonRenderer(m,!this.hasImages):void 0}}});
VW.prototype.onPollOptionsChange=VW.prototype.onPollOptionsChange;VW.prototype.observeAddImageError=VW.prototype.observeAddImageError;VW.prototype.onEditorInfoChange=VW.prototype.onEditorInfoChange;VW.prototype.dataChanged=VW.prototype.dataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],VW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.uc("ytd-backstage-multi-image-reposition-renderer"),_.Y("design:type",Object)],VW.prototype,"imageRepositionContainer",void 0);
_.c([_.g(),_.Y("design:type",Object)],VW.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],VW.prototype,"editorInfo",void 0);_.c([_.g(),_.Y("design:type",Ju)],VW.prototype,"uploadManager",void 0);_.c([_.g(),_.Y("design:type",Object)],VW.prototype,"showImagesPreview",void 0);_.c([_.g(),_.Y("design:type",Array)],VW.prototype,"pollOptions",void 0);_.c([_.g(),_.Y("design:type",Object)],VW.prototype,"errorMessage",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VW.prototype,"dataChanged",null);_.c([_.Si("editorInfo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VW.prototype,"onEditorInfoChange",null);_.c([_.Tw("errorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VW.prototype,"observeAddImageError",null);
_.c([_.Si("pollOptions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VW.prototype,"onPollOptionsChange",null);_.c([_.T("pollOptions","editorInfo"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VW.prototype,"isAllowedToAddOption",null);_.c([_.T("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VW.prototype,"hasImages",null);
_.c([_.T("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VW.prototype,"imagesToReposition",null);_.c([_.T("pollOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VW.prototype,"hasCustomOptionText",null);_.c([_.T("data","isAllowedToAddOption"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VW.prototype,"addOptionButton",null);_.c([_.T("data","hasImages"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VW.prototype,"repositionImagesButton",null);
_.c([_.l({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],VW);
_.y(VW,"ytd-backstage-image-poll-editor-renderer",function(){if($z9!==void 0)return $z9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return $z9=O},{mode:2});var WW8={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 ZPu;var b$=function(){var O=_.u.apply(this,arguments)||this;O.a11yConfig=WW8;O.imageDisplayOffsetTop=0;O.imageDisplayOffsetLeft=0;O.pickerDisplayOffsetTop=0;O.pickerDisplayOffsetLeft=0;O.showPreviewContainer=!0;O.startPicker=!1;O.repositionOptional=!1;O.editOnlyMode=!1;O.savedImageDisplayOffsetTop=0;O.savedImageDisplayOffsetLeft=0;return O};
_.X(b$,_.u);_.v=b$.prototype;_.v.created=function(){_.Bz.requestAvailability()};
_.v.ready=function(){};
_.v.onArrowKeysDown=function(O){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){O.detail.keyboardEvent.preventDefault();var m=0,G=0,B="";switch(O.detail.keyboardEvent.key){case "ArrowUp":bOe(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?B=this.a11yConfig.reachBottomOfImage:m=this.imageHeight*.05*-1;break;case "ArrowDown":bOe(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?B=this.a11yConfig.reachTopOfImage:
m=this.imageHeight*.05;break;case "ArrowLeft":bOe(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?B=this.a11yConfig.reachRightOfImage:G=this.imageWidth*.05*-1;break;case "ArrowRight":bOe(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?B=this.a11yConfig.reachLeftOfImage:G=this.imageWidth*.05}B&&_.Xm(B)&&_.iP(this.hostElement,"iron-announce",{text:_.Xm(B)});if(G||m)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+m)),O=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),O=_.Xm(this.a11yConfig.imageVerticalPosition,{x_percent:""+O,y_percent:""+(100-O)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+G)),O=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),O=_.Xm(this.a11yConfig.imageHorizontalPosition,{x_percent:""+O,y_percent:""+(100-O)})),O&&_.iP(this.hostElement,"iron-announce",{text:O})}};
_.v.getPreviewPosition=function(O,m,G,B){return Math.round(100*(O+m*.5-G)/B)};
_.v.calculateDisplayPosition=function(){var O=this.imageData.naturalWidth,m=this.imageData.naturalHeight;this.displayScale=Math.max(200/O,200/m);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var G=O*this.displayScale*this.imageData.previewCoordinates.left,B=m*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=m>O?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-G;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=O>m?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-B;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=O*this.displayScale;this.imageHeight=m*this.displayScale};
_.v.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.v.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.v.getSignedPosition=function(O,m,G){return m==="X"&&_.kB("HTML_DIR")==="rtl"?G==="-"?O+"px":O*-1+"px":G==="-"?O*-1+"px":O+"px"};
_.v.pickerMove=function(O){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var m=this.pickerOffsetX-O.clientX,G=this.pickerOffsetY-O.clientY;this.pickerOffsetX=O.clientX;this.pickerOffsetY=O.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
G)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-m))}};
_.v.pickerMoveStart=function(O){this.startPicker=!0;this.pickerOffsetX=O.clientX;this.pickerOffsetY=O.clientY};
_.v.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var O=this.generateCropPreview();O&&_.iP(this.hostElement,"ytd-backstage-image-preview-coordinates-update",O)};
_.v.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.iP(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.v.deleteImage=function(){_.iP(this.hostElement,"ytd-backstage-image-preview-delete")};
_.v.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.v.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var O=this.generateCropPreview();O&&_.iP(this.hostElement,"ytd-backstage-image-preview-coordinates-save",O)};
_.v.getPreviewOffset=function(O,m,G){return m&&O?(G==="X"&&_.kB("HTML_DIR")==="rtl"?300/m*O:300/m*O*-1)+"px":"0px"};
_.v.getSimpleText=function(O){return O?_.HX(O):""};
_.v.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}};
_.vr.Object.defineProperties(b$.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var O=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Xm(this.a11yConfig.imageVerticalPosition,{x_percent:""+O,y_percent:""+(100-O)})+"\n"+_.Xm(this.a11yConfig.verticalRepositionInstruction)}O=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Xm(this.a11yConfig.imageHorizontalPosition,{x_percent:""+O,y_percent:""+(100-O)})+"\n"+_.Xm(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 O,m,G=(O=this.instruction)==null?void 0:(m=O.previewInstruction)==null?void 0:m.editButtonLabel;return G?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleText(G)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B,Q=this.editOnlyMode?(O=this.instruction)==null?void 0:(m=O.editInstruction)==null?void 0:m.saveImagesButtonLabel:(G=this.instruction)==null?void 0:(B=G.editInstruction)==null?void 0:B.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 O,m,G=(O=this.instruction)==null?void 0:(m=O.previewInstruction)==null?void 0:m.deleteButtonLabel;return G?{size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleText(G)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var O,m,G=(O=this.instruction)==null?void 0:(m=O.editInstruction)==null?void 0:m.cancelButtonLabel;O=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return G?{style:O,size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleText(G)}}}: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"}}});
b$.prototype.onEditOnlyModeUpdate=b$.prototype.onEditOnlyModeUpdate;b$.prototype.onImageChange=b$.prototype.onImageChange;_.c([_.g(),_.Y("design:type",JP6)],b$.prototype,"imageData",void 0);_.c([_.g(),_.Y("design:type",Object)],b$.prototype,"instruction",void 0);_.c([_.g(),_.Y("design:type",Object)],b$.prototype,"a11yConfig",void 0);_.c([_.g(),_.Y("design:type",Number)],b$.prototype,"imageWidth",void 0);_.c([_.g(),_.Y("design:type",Number)],b$.prototype,"imageHeight",void 0);
_.c([_.g(),_.Y("design:type",Number)],b$.prototype,"displayScale",void 0);_.c([_.g(),_.Y("design:type",Object)],b$.prototype,"imageDisplayOffsetTop",void 0);_.c([_.g(),_.Y("design:type",Object)],b$.prototype,"imageDisplayOffsetLeft",void 0);_.c([_.g(),_.Y("design:type",Object)],b$.prototype,"pickerDisplayOffsetTop",void 0);_.c([_.g(),_.Y("design:type",Object)],b$.prototype,"pickerDisplayOffsetLeft",void 0);_.c([_.g(),_.Y("design:type",Object)],b$.prototype,"showPreviewContainer",void 0);
_.c([_.g(),_.Y("design:type",Object)],b$.prototype,"startPicker",void 0);_.c([_.g(),_.Y("design:type",Number)],b$.prototype,"pickerOffsetX",void 0);_.c([_.g(),_.Y("design:type",Number)],b$.prototype,"pickerOffsetY",void 0);_.c([_.g(),_.Y("design:type",Object)],b$.prototype,"repositionOptional",void 0);_.c([_.g(),_.Y("design:type",Object)],b$.prototype,"editOnlyMode",void 0);_.c([_.uc("#picker-container"),_.Y("design:type",HTMLElement)],b$.prototype,"JSC$15656_pickerContainer",void 0);
_.c([_.uc("#picker"),_.Y("design:type",HTMLElement)],b$.prototype,"picker",void 0);_.c([_.uc("#preview-clipper"),_.Y("design:type",HTMLElement)],b$.prototype,"previewClipper",void 0);_.c([_.uc("#image-in-picker-background"),_.Y("design:type",HTMLImageElement)],b$.prototype,"JSC$15656_imageInBackground",void 0);_.c([_.uc("#image-in-picker"),_.Y("design:type",HTMLImageElement)],b$.prototype,"JSC$15656_imageInPicker",void 0);
_.c([_.uc("#image-in-preview-clipper"),_.Y("design:type",HTMLImageElement)],b$.prototype,"JSC$15656_imageInPreviewClipper",void 0);_.c([_.T("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],b$.prototype,"altLabelForImage",null);_.c([_.T("imageHeight","imageWidth"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],b$.prototype,"pickerSize",null);
_.c([_.T("imageHeight","imageWidth"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],b$.prototype,"imageOrientationStyle",null);_.c([_.T("instruction"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],b$.prototype,"editButton",null);_.c([_.T("instruction","editOnlyMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],b$.prototype,"saveButton",null);_.c([_.T("instruction"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],b$.prototype,"deleteButton",null);
_.c([_.T("instruction","editOnlyMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],b$.prototype,"cancelButton",null);_.c([_.T("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],b$.prototype,"cropOffsetTop",null);_.c([_.T("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],b$.prototype,"cropOffsetLeft",null);
_.c([_.T("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],b$.prototype,"pickerBackgroundStyle",null);_.c([_.T("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],b$.prototype,"pickerDisplayStyle",null);_.c([_.T("cropOffsetLeft","cropOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],b$.prototype,"imageInPickerStyle",null);
_.c([_.T("cropOffsetLeft","cropOffsetTop","pickerSize"),_.Y("design:type",String),_.Y("design:paramtypes",[])],b$.prototype,"previewClipperStyle",null);_.c([_.Si("imageData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],b$.prototype,"onImageChange",null);_.c([_.Si("editOnlyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],b$.prototype,"onEditOnlyModeUpdate",null);
_.c([_.T("showPreviewContainer"),_.Y("design:type",String),_.Y("design:paramtypes",[])],b$.prototype,"pickerModeStyle",null);_.c([_.l({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],b$);
_.y(b$,"ytd-backstage-image-preview-renderer",function(){if(ZPu!==void 0)return ZPu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ZPu=O},{mode:1});var zc_;var J3m={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 Vne;var bPU;var na=function(){var O=_.u.apply(this,arguments)||this;O.a11yConfig=J3m;O.imageDisplayOffsetTop=0;O.imageDisplayOffsetLeft=0;O.pickerDisplayOffsetTop=0;O.pickerDisplayOffsetLeft=0;O.cropCoordinatesSaved=!1;O.previewSize=0;O.startPicker=!1;O.repositionOptional=!1;return O};
_.X(na,_.u);_.v=na.prototype;_.v.created=function(){_.Bz.requestAvailability()};
_.v.ready=function(){};
_.v.onArrowKeysDown=function(O){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){O.detail.keyboardEvent.preventDefault();var m=0,G=0,B="";switch(O.detail.keyboardEvent.key){case "ArrowUp":n2S(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?B=this.a11yConfig.reachBottomOfImage:m=this.imageHeight*.05*-1;break;case "ArrowDown":n2S(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?B=this.a11yConfig.reachTopOfImage:
m=this.imageHeight*.05;break;case "ArrowLeft":n2S(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?B=this.a11yConfig.reachRightOfImage:G=this.imageWidth*.05*-1;break;case "ArrowRight":n2S(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?B=this.a11yConfig.reachLeftOfImage:G=this.imageWidth*.05}B&&_.Xm(B)&&_.iP(this.hostElement,"iron-announce",{text:_.Xm(B)});if(G||m)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+m)),O=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),O=_.Xm(this.a11yConfig.imageVerticalPosition,{x_percent:""+O,y_percent:""+(100-O)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+G)),O=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),O=_.Xm(this.a11yConfig.imageHorizontalPosition,{x_percent:""+O,y_percent:""+(100-O)})),O&&_.iP(this.hostElement,"iron-announce",{text:O})}};
_.v.getPreviewPosition=function(O,m,G,B){return Math.round(100*(O+m*.5-G)/B)};
_.v.displayImage=function(){var O=this.JSC$15667_pickerContainer.getBoundingClientRect().width,m=this.JSC$15667_pickerContainer.getBoundingClientRect().height,G=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),B=this.JSC$15667_imageInBackground.naturalWidth,Q=this.JSC$15667_imageInBackground.naturalHeight;this.displayScale=Math.max(G/B,G/Q);this.imageWidth=B*this.displayScale;this.imageHeight=Q*this.displayScale;this.pickerDisplayOffsetLeft=(O-G)/2;this.pickerDisplayOffsetTop=
(m-G)/2;this.imageDisplayOffsetLeft=Q>B?this.pickerDisplayOffsetLeft:(O-this.imageWidth)/2;this.imageDisplayOffsetTop=B>Q?this.pickerDisplayOffsetTop:(m-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.v.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15667_imageInBackground.src=this.imageData.toString(),this.JSC$15667_imageInPicker.src=this.imageData.toString(),this.JSC$15667_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.v.getSignedPosition=function(O,m,G){return m==="X"&&_.kB("HTML_DIR")==="rtl"?G==="-"?O+"px":O*-1+"px":G==="-"?O*-1+"px":O+"px"};
_.v.pickerMove=function(O){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var m=this.pickerOffsetX-O.clientX,G=this.pickerOffsetY-O.clientY;this.pickerOffsetX=O.clientX;this.pickerOffsetY=O.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
G)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-m))}};
_.v.pickerMoveStart=function(O){this.startPicker=!0;this.pickerOffsetX=O.clientX;this.pickerOffsetY=O.clientY};
_.v.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.v.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.iP(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.v.getPreviewOffset=function(O,m,G,B){return m&&O&&G?(B==="X"&&_.kB("HTML_DIR")==="rtl"?G/m*O:G/m*O*-1)+"px":"0px"};
_.v.getSimpleText=function(O){return O?_.HX(O):""};
_.v.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var O=this.cropOffsetTop/this.imageHeight,m=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,G=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,B=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.ZO(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.iP(this.hostElement,"yt-img-crop-coordinates-update",{top:O,right:m,bottom:G,left:B})}};
_.vr.Object.defineProperties(na.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var O=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Xm(this.a11yConfig.imageVerticalPosition,{x_percent:""+O,y_percent:""+(100-O)})+"\n"+_.Xm(this.a11yConfig.verticalRepositionInstruction)}O=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Xm(this.a11yConfig.imageHorizontalPosition,{x_percent:""+O,y_percent:""+(100-O)})+"\n"+_.Xm(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 O,m=(O=this.learnMore.runs[0])==null?void 0:O.navigationEndpoint,G;return((G=_.b(m,_.Db))==null?void 0:G.url)||void 0}}}});
na.prototype.onImageDataChange=na.prototype.onImageDataChange;_.c([_.g(),_.Y("design:type",Object)],na.prototype,"imageData",void 0);_.c([_.g(),_.Y("design:type",Object)],na.prototype,"instruction",void 0);_.c([_.g(),_.Y("design:type",Object)],na.prototype,"a11yConfig",void 0);_.c([_.g(),_.Y("design:type",Number)],na.prototype,"imageWidth",void 0);_.c([_.g(),_.Y("design:type",Number)],na.prototype,"imageHeight",void 0);_.c([_.g(),_.Y("design:type",Number)],na.prototype,"displayScale",void 0);
_.c([_.g(),_.Y("design:type",Object)],na.prototype,"imageDisplayOffsetTop",void 0);_.c([_.g(),_.Y("design:type",Object)],na.prototype,"imageDisplayOffsetLeft",void 0);_.c([_.g(),_.Y("design:type",Object)],na.prototype,"pickerDisplayOffsetTop",void 0);_.c([_.g(),_.Y("design:type",Object)],na.prototype,"pickerDisplayOffsetLeft",void 0);_.c([_.g(),_.Y("design:type",Object)],na.prototype,"cropCoordinatesSaved",void 0);_.c([_.g(),_.Y("design:type",Object)],na.prototype,"previewSize",void 0);
_.c([_.g(),_.Y("design:type",Object)],na.prototype,"startPicker",void 0);_.c([_.g(),_.Y("design:type",Number)],na.prototype,"pickerOffsetX",void 0);_.c([_.g(),_.Y("design:type",Number)],na.prototype,"pickerOffsetY",void 0);_.c([_.g(),_.Y("design:type",Object)],na.prototype,"repositionOptional",void 0);_.c([_.uc("#picker-container"),_.Y("design:type",HTMLElement)],na.prototype,"JSC$15667_pickerContainer",void 0);_.c([_.uc("#picker"),_.Y("design:type",HTMLElement)],na.prototype,"picker",void 0);
_.c([_.uc("#image-in-picker-background"),_.Y("design:type",HTMLImageElement)],na.prototype,"JSC$15667_imageInBackground",void 0);_.c([_.uc("#image-in-picker"),_.Y("design:type",HTMLImageElement)],na.prototype,"JSC$15667_imageInPicker",void 0);_.c([_.uc("#image-in-preview-clipper"),_.Y("design:type",HTMLImageElement)],na.prototype,"JSC$15667_imageInPreviewClipper",void 0);_.c([_.uc("#full-image-as-preview"),_.Y("design:type",HTMLImageElement)],na.prototype,"imageAsPreview",void 0);
_.c([_.T("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],na.prototype,"altLabelForImage",null);_.c([_.T("imageHeight","imageWidth"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],na.prototype,"pickerSize",null);_.c([_.T("imageHeight","imageWidth"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],na.prototype,"imageOrientationStyle",null);
_.c([_.T("instruction.previewInstruction.editButtonLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],na.prototype,"editButton",null);_.c([_.T("instruction.editInstruction.saveButtonLabel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],na.prototype,"saveButton",null);_.c([_.T("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],na.prototype,"cropOffsetTop",null);
_.c([_.T("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],na.prototype,"cropOffsetLeft",null);_.c([_.T("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],na.prototype,"pickerBackgroundStyle",null);_.c([_.T("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],na.prototype,"pickerDisplayStyle",null);
_.c([_.T("cropOffsetLeft","cropOffsetTop"),_.Y("design:type",String),_.Y("design:paramtypes",[])],na.prototype,"imageInPickerStyle",null);_.c([_.T("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.Y("design:type",String),_.Y("design:paramtypes",[])],na.prototype,"previewClipperStyle",null);_.c([_.Tw("imageData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],na.prototype,"onImageDataChange",null);
_.c([_.T("cropCoordinatesSaved"),_.Y("design:type",String),_.Y("design:paramtypes",[])],na.prototype,"pickerModeStyle",null);_.c([_.T("instruction.editInstruction.learnMore"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],na.prototype,"learnMore",null);_.c([_.T("learnMore"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],na.prototype,"learnMoreUrl",null);_.c([_.DO({is:"yt-img-crop-picker",disableElementRegistration:!0})],na);
_.y(na,"yt-img-crop-picker",function(){if(bPU===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Vne===void 0&&(Vne=document.createElement("template"));var B=Vne;G.call(m,B.content.cloneNode(!0),O.content.firstChild);bPU=O}O=bPU;return O},{mode:2});var XM=function(){var O=_.u.apply(this,arguments)||this;O.errorMessage="";O.hasPreview=!1;O.isBackstagePost=!1;O.dismissButtonOverrides={size:"XS"};return O};
_.X(XM,_.u);_.v=XM.prototype;_.v.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"}}}};
_.v.detached=function(){this.removeOverlay()};
_.v.setPreview=function(O){_.ZO(this.hostElement).querySelector("#preview-picker").imageData=O;this.hasPreview=!0;_.iP(this.hostElement,"yt-backstage-image-select-preview")};
_.v.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var O=_.ZO(this.hostElement).querySelector("#dropzone");O.classList.remove("dragover");O.classList.remove("error");_.iP(this.hostElement,"yt-backstage-image-select-cancel")};
_.v.setupOverlay=function(){var O=this.imageUploadEndpoint;this.removeOverlay();if(O&&O.imageValidationInfo){var m=_.ZO(this.hostElement).querySelector("#dropzone"),G=_.ZO(this.hostElement).querySelector("#select");this.overlay=new JQ(O.uploadUrl,O.channelId,O.imageValidationInfo.maxFileSizeMb,O.imageValidationInfo.allowedMaxAspectRatio,m,G,!0);_.Cm(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Cm(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Cm(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Cm(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Cm(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.v.removeOverlay=function(){this.overlay&&(_.E2(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.E2(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.E2(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.E2(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.E2(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.v.onDragOver=function(O){var m=_.ZO(this.hostElement).querySelector("#dropzone");_.JG(m,"dragover",O.value)};
_.v.onPreview=function(O){this.setPreview(O.value)};
_.v.onImageError=function(O){if(O.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var m;O=(m=this.data)==null?void 0:m.fileSizeError}else if(O.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var G;O=(G=this.data)==null?void 0:G.invalidError}else if(O.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var B;O=(B=this.data)==null?void 0:B.invalidAspectRatioError}else return;this.errorMessage=_.HX(O);_.ZO(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.v.onImageAlert=function(O){this.onImageError(O)};
_.v.uploadPromise=function(){var O=this,m=this.overlay&&this.overlay.uploadPromise();if(m)return m.catch(function(){throw Error(O.data?_.HX(O.data.uploadFailureError):"");})};
_.vr.Object.defineProperties(XM.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var O,m;if((O=this.data)==null?0:(m=O.icon)==null?0:m.iconType)return _.bK(this.data.icon.iconType)}}});
XM.prototype.setupOverlay=XM.prototype.setupOverlay;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],XM.prototype,"rendererStamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],XM.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],XM.prototype,"imageUploadEndpoint",void 0);_.c([_.g(),_.Y("design:type",Object)],XM.prototype,"errorMessage",void 0);
_.c([_.g(),_.Y("design:type",JQ)],XM.prototype,"overlay",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],XM.prototype,"hasPreview",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],XM.prototype,"isBackstagePost",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XM.prototype,"selectionCancel",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XM.prototype,"previewCancel",null);
_.c([_.T("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XM.prototype,"icon",null);_.c([_.g(),_.Y("design:type",Object)],XM.prototype,"dismissButtonOverrides",void 0);_.c([_.Tw("imageUploadEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XM.prototype,"setupOverlay",null);_.c([_.l({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],XM);
_.y(XM,"ytd-backstage-image-select-renderer",function(){if(zc_!==void 0)return zc_;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return zc_=O},{mode:1});var nE3;var Xl3;var fa=function(){var O=_.u.apply(this,arguments)||this;O.selected=!1;return O};
_.X(fa,_.u);_.v=fa.prototype;_.v.computeSelected=function(O){return O==null?void 0:O.selected};
_.v.computeTransform=function(O,m,G){var B,Q,H=(Q=(B=this.imageContainer)==null?void 0:B.getBoundingClientRect())!=null?Q:{width:0,height:0};B=Math.max(H.width/m,H.height/G);G=G*B*O.top;return"translateX("+this.getSignedPosition(m*B*O.left,"X","-")+") translateY("+this.getSignedPosition(G,"Y","-")+")"};
_.v.getSignedPosition=function(O,m,G){return m==="X"&&_.kB("HTML_DIR")==="rtl"?G==="-"?O+"px":O*-1+"px":G==="-"?O*-1+"px":O+"px"};
_.v.onClick=function(){var O;_.iP(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(O=this.data)==null?void 0:O.image)};
_.v.onKeyPress=function(O){if(O.keyCode===13)this.onClick()};
_.vr.Object.defineProperties(fa.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?void 0:(m=O.image)==null?void 0:m.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)!=null&&O.image){var m;O=(m=this.data)==null?void 0:m.image;return O.previewCoordinates.top!==0||O.previewCoordinates.left!==0?(m=this.computeTransform(O.previewCoordinates,O.naturalWidth,O.naturalHeight),O.naturalHeight>=O.naturalWidth?"width:inherit;transform:"+m+";":"height:inherit;transform:"+m+";"):O.naturalHeight>=O.naturalWidth?"width:inherit;":"height:inherit;"}}}});
fa.prototype.onKeyPress=fa.prototype.onKeyPress;_.c([_.uc(".image-container"),_.Y("design:type",HTMLElement)],fa.prototype,"imageContainer",void 0);_.c([_.g(),_.Y("design:type",Object)],fa.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.Y("design:type",Object)],fa.prototype,"selected",void 0);_.c([_.T("data.image"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fa.prototype,"thumbnailUrl",null);
_.c([_.T("data.image","data.image.previewCoordinates"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fa.prototype,"thumbnailStyle",null);_.c([_.hG("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],fa.prototype,"onKeyPress",null);_.c([_.l({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],fa);
_.y(fa,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(Xl3!==void 0)return Xl3;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Xl3=O},{mode:2});var hu=function(O,m,G){G=G===void 0?!1:G;_.Ly.call(this);var B=this;this.dropZoneOverlay=new uq(O);this.selectOverlay=G?new jP(m,"multiple_file",["image/*"]):new jP(m,"single_file",["image/*"]);this.handler=new _.xf(this);_.VV(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(m,"click",function(){B.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.X(hu,_.Ly);hu.prototype.onChange=function(O){var m;(m=O.files)!=null&&m.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:O.files}))};var TQ=function(){var O=_.u.apply(this,arguments)||this;O.addImageErrorMessage="";O.errorMessage="";O.images=[];O.selectedImageIndex=0;O.modern=_.V("web_modern_buttons");O.maxNumImagesPerPost=_.Rd("max_num_images_per_post_web_ui");O.JSC$15682_imageId=0;return O};
_.X(TQ,_.u);_.v=TQ.prototype;_.v.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.iP(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.v.observeDragToReorder=function(){var O=this;if(this.showImagesPreview){var m,G=jAU(_.It.getInstance(),(m=this.data)==null?void 0:m.dragToReorderTooltip);_.ln.addLowPriorityJob(function(){_.Wd(O.hostElement,G,O.thumbnailDragDropArea)})}};
_.v.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}}};
_.v.computeThumbnail=function(O){return(O==null?void 0:O.localImageSrc)||void 0};
_.v.onRendererstamperFinished=function(){_.Zts(this.ytReorderableBehavior,_.ZO(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.ZO(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.v.handleDrop=function(O){var m=O.currDragItem;if(m!=null&&m.data){O=this.images[this.selectedImageIndex];var G=m.data.image,B=this.images.indexOf(G)||0;m=_.ae(m.parentNode.children,m);this.images.splice(B,1);this.images.splice(m,0,G);this.images=[].concat(_.lS(this.images));this.selectedImageIndex=this.images.indexOf(O)}};
_.v.setUpImagePicker=function(){var O=this.imageUploadEndpoint;O&&O.imageValidationInfo&&(this.uploadManager=new Ju(O.uploadUrl,O.channelId),this.initialPicker||(this.initialPicker=new hu(this.dropzone,this.selectLink,!0),_.Cm(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new hu(this.addImageButtonContainer,this.addImageSelectButton),_.Cm(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Cm(this.JSC$15682_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Cm(this.JSC$15682_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Cm(_.ZO(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.v.detached=function(){this.initialPicker&&(_.E2(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.E2(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.v.onInitialSelectImages=function(O){var m=this;return _.r(function(G){return G.yield(m.onSelectImages(O,!1),0)})};
_.v.onAddImage=function(O){var m=this;return _.r(function(G){return G.yield(m.onSelectImages(O,!0),0)})};
_.v.onSelectImages=function(O,m){var G=this,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P,w,d,D;return _.r(function(OS){switch(OS.nextAddress){case 1:m?G.addImageErrorMessage="":(G.images=[],G.errorMessage="");B=O.detail;Q=G.validateImages([].concat(_.lS(B)));if(Q!=="")return m?G.addImageErrorMessage=Q:G.errorMessage=Q,OS.return();H=[].concat(_.lS(B)).map(function(rN){return(new ZN(G.maxAspectRatio,!1,!0)).transform(rN)});
return OS.yield(Promise.allSettled(H),2);case 2:M=OS.yieldResult,R=_.K(M.entries()),x=R.next();case 3:if(x.done){OS.jumpTo(5);break}t=x.value;W=_.K(t);Z=W.next().value;z=W.next().value;J=Z;n=z;if(n.status!=="fulfilled"){L=S=I=void 0;m?G.addImageErrorMessage=_.HX((I=G.data)==null?void 0:I.invalidError):G.errorMessage=G.errorMessage===""?_.HX((S=G.data)==null?void 0:S.invalidError):_.HX((L=G.data)==null?void 0:L.multiFileError);OS.jumpTo(4);break}C=n.value;C.cropped&&_.iP(G.hostElement,"yt-backstage-multi-image-cropped");
if(C.invalidAspectRatio){d=w=P=void 0;m?G.addImageErrorMessage=_.HX((P=G.data)==null?void 0:P.invalidAspectRatioError):G.errorMessage=G.errorMessage===""?_.HX((w=G.data)==null?void 0:w.invalidAspectRatioError):_.HX((d=G.data)==null?void 0:d.multiFileError);OS.jumpTo(4);break}return OS.yield(Vpe(G.JSC$15682_imageId,O.detail[J],C.transformedData),8);case 8:D=OS.yieldResult,G.images.push(D),G.JSC$15682_imageId++;case 4:x=R.next();OS.jumpTo(3);break;case 5:if(G.errorMessage!==""||G.addImageErrorMessage!==
"")return OS.return();m?Rcm(G.uploadManager,[G.images[G.images.length-1]]):Rcm(G.uploadManager,G.images);G.images=[].concat(_.lS(G.images));G.selectedImageIndex=m?Math.max(G.images.length-1,0):0;_.iP(G.hostElement,"yt-backstage-multi-image-select");_.ju(OS)}})};
_.v.onThumbnailClick=function(O){if(O=O.event_.detail)this.selectedImageIndex=this.images.indexOf(O)};
_.v.validateImages=function(O){if(O.length>this.maxNumImagesPerPost){var m;return _.HX((m=this.data)==null?void 0:m.multiImageExceedMaxImageCountError)}var G=1048576*this.maxFileSizeMb;O=O.filter(function(H){return H.size>G}).length;
if(O===0)return"";var B,Q;O=O>1?(B=this.data)==null?void 0:B.multiFileError:(Q=this.data)==null?void 0:Q.fileSizeError;return _.HX(O)};
_.v.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.lS(this.images));this.selectedImageIndex=0};
_.v.repositionImage=function(O){this.images[this.selectedImageIndex].previewCoordinates=O.event_.detail;this.images=[].concat(_.lS(this.images))};
_.v.getAllUploadStatuses=function(){var O=this,m,G,B,Q;return _.r(function(H){if(H.nextAddress==1)return H.yield(O.uploadManager.getAllUploadStatuses(),2);m=H.yieldResult;G=_.K(m);for(B=G.next();!B.done;B=G.next())if(Q=B.value,Q.encryptedBlobId===void 0)return H.return(iPU(O.uploadManager));return H.return(m)})};
_.v.hasImages=function(){return this.images.length>0};
_.v.cancel=function(){for(var O=this.uploadManager,m=_.K(O.imagesUploadData),G=m.next();!G.done;G=m.next())O.cancel(G.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.iP(this.hostElement,"yt-backstage-multi-image-cancel")};
_.vr.Object.defineProperties(TQ.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.imageUploadEndpoint)==null?void 0:(m=O.imageValidationInfo)==null?void 0:m.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.imageUploadEndpoint)==null?void 0:(m=O.imageValidationInfo)==null?void 0:m.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var O,m;if((O=this.data)==null?0:(m=O.icon)==null?0:m.iconType)return _.bK(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.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 O=this;return(this.images||[]).map(function(m,G){return{renderer:{image:m,selected:G===O.selectedImageIndex}}})}}});
TQ.prototype.setUpImagePicker=TQ.prototype.setUpImagePicker;TQ.prototype.onRendererstamperFinished=TQ.prototype.onRendererstamperFinished;TQ.prototype.observeDragToReorder=TQ.prototype.observeDragToReorder;TQ.prototype.observeAddImageError=TQ.prototype.observeAddImageError;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],TQ.prototype,"rendererStamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.zM9),_.Y("design:type",Object)],TQ.prototype,"ytReorderableBehavior",void 0);_.c([_.uc("#dropzone"),_.Y("design:type",HTMLElement)],TQ.prototype,"dropzone",void 0);_.c([_.uc("#select-link"),_.Y("design:type",HTMLElement)],TQ.prototype,"selectLink",void 0);_.c([_.uc("#thumbnail-drag-drop-area"),_.Y("design:type",HTMLElement)],TQ.prototype,"thumbnailDragDropArea",void 0);_.c([_.uc("#add-image-button-container"),_.Y("design:type",HTMLElement)],TQ.prototype,"addImageButtonContainer",void 0);
_.c([_.uc("#add-image-button"),_.Y("design:type",HTMLElement)],TQ.prototype,"addImageSelectButton",void 0);_.c([_.uc("#image-preview-container"),_.Y("design:type",Object)],TQ.prototype,"JSC$15682_imagePreviewContainer",void 0);_.c([_.g(),_.Y("design:type",Object)],TQ.prototype,"addImageErrorMessage",void 0);_.c([_.g(),_.Y("design:type",Object)],TQ.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],TQ.prototype,"errorMessage",void 0);
_.c([_.g(),_.Y("design:type",Object)],TQ.prototype,"imageUploadEndpoint",void 0);_.c([_.g(),_.Y("design:type",Array)],TQ.prototype,"images",void 0);_.c([_.g(),_.Y("design:type",hu)],TQ.prototype,"initialPicker",void 0);_.c([_.g(),_.Y("design:type",hu)],TQ.prototype,"addImagePicker",void 0);_.c([_.g(),_.Y("design:type",Ju)],TQ.prototype,"uploadManager",void 0);_.c([_.g(),_.Y("design:type",Object)],TQ.prototype,"selectedImageIndex",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],TQ.prototype,"modern",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],TQ.prototype,"maxNumImagesPerPost",void 0);_.c([_.T("imageUploadEndpoint"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],TQ.prototype,"maxAspectRatio",null);_.c([_.T("imageUploadEndpoint"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],TQ.prototype,"maxFileSizeMb",null);
_.c([_.T("data.icon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TQ.prototype,"dropIcon",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TQ.prototype,"selectionCancel",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TQ.prototype,"previewCancel",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TQ.prototype,"dataForAddImageButton",null);
_.c([_.T("errorMessage"),_.Y("design:type",String),_.Y("design:paramtypes",[])],TQ.prototype,"dropzoneClass",null);_.c([_.T("images"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TQ.prototype,"showImagesPreview",null);_.c([_.T("images"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],TQ.prototype,"containMaxImages",null);_.c([_.Tw("addImageErrorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TQ.prototype,"observeAddImageError",null);
_.c([_.Tw("showImagesPreview"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TQ.prototype,"observeDragToReorder",null);_.c([_.T("images","selectedImageIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TQ.prototype,"selectedImageData",null);_.c([_.T("images","selectedImageIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],TQ.prototype,"thumbnailRenderers",null);
_.c([_.hG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TQ.prototype,"onRendererstamperFinished",null);_.c([_.Tw("imageUploadEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TQ.prototype,"setUpImagePicker",null);_.c([_.l({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],TQ);
_.y(TQ,"ytd-backstage-multi-image-select-renderer",function(){if(nE3!==void 0)return nE3;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return nE3=O},{mode:1});var fts;var hcp;var Tlm;var g4=function(){var O=_.u.apply(this,arguments)||this;O.boundCaptureFocus=function(m){O.onCaptureFocus(m)};
return O};
_.X(g4,_.u);_.v=g4.prototype;_.v.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.v.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.v.onCaptureFocus=function(O){_.$Z(O).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.v.getIconType=function(O){return O?"yt-icons:"+O.toLowerCase():null};
_.v.onSelect=function(){var O;if((O=this.data)==null?0:O.onSelectCommand)if(_.V("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var m;((m=_.b(this.data.onSelectCommand.commandMetadata,_.bP))==null?0:m.url)?_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.KR().resolve(_.Mu).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.vr.Object.defineProperties(g4.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.HX(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],g4.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],g4.prototype,"data",void 0);_.c([_.uc("#item"),_.Y("design:type",HTMLElement)],g4.prototype,"item",void 0);_.c([_.T("data.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],g4.prototype,"label",null);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],g4.prototype,"value",null);_.c([_.l({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],g4);
_.y(g4,"ytd-privacy-dropdown-item-renderer",function(){if(Tlm!==void 0)return Tlm;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Tlm=O},{mode:1});var u$=function(){var O=_.u.apply(this,arguments)||this;O.value="";O.label="";O.disabled=!1;return O};
_.X(u$,_.u);_.v=u$.prototype;_.v.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"}}}};
_.v.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.v.dataChanged=function(){this.reset()};
_.v.valueChanged=function(){var O;if(this.value&&(O=this.data)!=null&&O.entries){O=_.K(this.data.entries);for(var m=O.next();!m.done;m=O.next())if((m=this.getRendererForEntry(m.value))&&this.getItemRendererValue(m)===this.value){this.label=this.ytComponentBehavior.getSimpleString(m.label);break}}};
_.v.setInitialLabel=function(){if(this.data&&this.data.entries)for(var O=_.K(this.data.entries),m=O.next();!m.done;m=O.next())if(m=this.getRendererForEntry(m.value)){if(m.isSelected){this.label=this.ytComponentBehavior.getSimpleString(m.label);break}this.data.label&&(this.label=this.data.label)}};
_.v.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var O=_.K(this.data.entries),m=O.next();!m.done;m=O.next()){m=this.getRendererForEntry(m.value);var G=void 0;if((G=m)==null?0:G.isSelected)return this.getItemRendererValue(m)||-1}return-1};
_.v.getItemRendererValue=function(O){return"stringValue"in O||"int32Value"in O?O.stringValue||O.int32Value||null:null};
_.v.getRendererForEntry=function(O){return O.dropdownItemRenderer||O.privacyDropdownItemRenderer||O.navigationDropdownItemRenderer||null};
_.v.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("value-changed",this.value))};
_.v.updateValueFromBinding=function(O){this.value=O.detail.value};
u$.prototype.valueChangedForBinding=u$.prototype.valueChangedForBinding;u$.prototype.valueChanged=u$.prototype.valueChanged;u$.prototype.dataChanged=u$.prototype.dataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],u$.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],u$.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],u$.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],u$.prototype,"value",void 0);_.c([_.g(),_.Y("design:type",Object)],u$.prototype,"label",void 0);_.c([_.uc("#entries"),_.Y("design:type",Object)],u$.prototype,"entries",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],u$.prototype,"disabled",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u$.prototype,"dataChanged",null);
_.c([_.Si("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u$.prototype,"valueChanged",null);_.c([_.Tw("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],u$.prototype,"valueChangedForBinding",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],u$);
_.y(u$,"ytd-flat-dropdown-renderer",function(){if(hcp!==void 0)return hcp;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return hcp=O},{mode:1});var gE3;var jO=function(){var O=_.u.apply(this,arguments)||this;O.quizOptions=[];O.explanationPlaceholderText="";O.optionPlaceholderText="";O.correctAnswerIndex=-1;O.isMarkAnswerTooltipShown=!1;O.timer=0;return O};
_.X(jO,_.u);_.v=jO.prototype;_.v.dataChanged=function(){this.optionPlaceholderText=_.HX(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.HX(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.v.onMarkCorrectAnswer=function(O){var m,G=((m=this.quizOptions[this.correctAnswerIndex])==null?void 0:m.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[O.model.index]=Object.assign({},this.quizOptions[O.model.index],{explanationText:G,isCorrect:!0});this.correctAnswerIndex=O.model.index;this.quizOptions=[].concat(_.lS(this.quizOptions))};
_.v.updatePlaceholderTexts=function(){for(var O=!1,m=[],G=0;G<this.quizOptions.length;G++){var B=this.optionPlaceholderText+" "+(G+1),Q=void 0;((Q=this.quizOptions[G])==null?void 0:Q.placeholderText)!==B?(O=!0,m.push(Object.assign({},this.quizOptions[G],{placeholderText:B}))):m.push(this.quizOptions[G])}O&&(this.quizOptions=m);this.isValid()?_.iP(this.hostElement,"yt-commentbox-post-enable"):_.iP(this.hostElement,"yt-commentbox-post-disable")};
_.v.getSimpleString=function(O){return _.HX(O)};
_.v.createQuizOptions=function(O){var m=[],G;O=(G=O==null?void 0:O.minQuizOptions)!=null?G:0;for(G=0;G<O;G++)m.push(this.createQuizOption());return m};
_.v.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.lS(this.quizOptions),[this.createQuizOption()]))};
_.v.onInput=function(){this.quizOptions=[].concat(_.lS(this.quizOptions))};
_.v.onExplanationInput=function(){_.iP(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.v.onRemoveQuizOption=function(O){this.quizOptions.splice(O.model.index,1);O.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:O.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.lS(this.quizOptions));this.quizOptions.length===0&&_.iP(this.hostElement,"yt-quiz-attachment-dismiss")};
_.v.updateHintRenderer=function(){var O=this;clearTimeout(this.timer);this.timer=setTimeout(function(){O.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.v.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var O=0,m=0,G=_.K(this.quizOptions),B=G.next();!B.done;B=G.next()){B=B.value;var Q=void 0;if(((Q=B.optionText)==null?void 0:Q.trim())!==""||B.isCorrect){B.isCorrect&&m++;Q=void 0;if(this.hasCustomOptionText&&((Q=B.optionText)==null?void 0:Q.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;O++}}return O>=
Number(this.editorInfo.minQuizOptions)&&m===1};
_.v.getPostCreateOptions=function(){for(var O=[],m=_.K(this.quizOptions),G=m.next();!G.done;G=m.next()){G=G.value;var B=void 0;((B=G.optionText)==null?void 0:B.trim())!==""&&O.push({pollOption:{text:G.optionText,explanation:G.explanationText},isCorrect:G.isCorrect})}return O};
_.v.getExplanationText=function(){var O;return((O=this.quizOptions[this.correctAnswerIndex])==null?void 0:O.explanationText)||""};
_.v.maybeDisplayMarkAnswerEduToolTip=function(){var O,m,G,B,Q,H,M;this.shouldShowMarkAnswerTooltip()&&((O=this.editorInfo)==null?0:(m=O.markAnswerButton)==null?0:(G=m.buttonRenderer)==null?0:(B=G.hint)==null?0:(Q=B.hintRenderer)==null?0:(H=Q.content)==null?0:(M=H.bubbleHintRenderer)==null?0:M.text)&&(_.It.getInstance(),O=pi(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,(O==null?void 0:O.length)>0&&this.optionSelectors&&_.fm(O[0],this.optionSelectors[0]))};
_.v.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var O=0,m=_.K(this.quizOptions),G=m.next();!G.done;G=m.next()){G=G.value;var B=void 0;((B=G.optionText)==null?void 0:B.trim())!==""&&O++;if(G.isCorrect)return!1}return O<2?!1:!0};
_.v.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.v.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.v.updateOptionTextFromBinding=function(O){if(O.target){var m=Array.from(_.ZO(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(O.target);if(m>=0){var G;this.quizOptions[m].optionText=(G=O.detail.value)!=null?G:""}}};
_.vr.Object.defineProperties(jO.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var O,m,G=(O=this.editorInfo)==null?void 0:(m=O.addOptionButton)==null?void 0:m.buttonRenderer;G&&(G.style="STYLE_SUGGESTIVE",G.size="SIZE_SMALL",G.isDisabled=!this.isAllowedToAddOption);return(G==null?0:G.text)?G:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var O,m;return this.quizOptions.length<((m=(O=this.editorInfo)==null?void 0:O.maxQuizOptions)!=null?m:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(O){var m;return(m=O.optionText)==null?void 0:m.trim()})}}});
jO.prototype.updatePlaceholderTexts=jO.prototype.updatePlaceholderTexts;jO.prototype.dataChanged=jO.prototype.dataChanged;_.c([_.g(),_.Y("design:type",Object)],jO.prototype,"editorInfo",void 0);_.c([_.g(),_.Y("design:type",Array)],jO.prototype,"quizOptions",void 0);_.c([_.g(),_.Y("design:type",Object)],jO.prototype,"explanationPlaceholderText",void 0);_.c([_.ji(".option-selector-button"),_.Y("design:type",Array)],jO.prototype,"optionSelectors",void 0);
_.c([_.Si("editorInfo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jO.prototype,"dataChanged",null);_.c([_.T("editorInfo","isAllowedToAddOption","quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jO.prototype,"addAnswerButton",null);_.c([_.T("editorInfo","quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jO.prototype,"isAllowedToAddOption",null);
_.c([_.Si("quizOptions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jO.prototype,"updatePlaceholderTexts",null);_.c([_.T("quizOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jO.prototype,"hasCustomOptionText",null);_.c([_.l({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],jO);
_.y(jO,"ytd-backstage-quiz-editor-renderer",function(){if(gE3!==void 0)return gE3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return gE3=O},{mode:2});var u18;var jkC=(VQ.FIRSTDAYOFWEEK+1)%7;var Ite;var ple=[],S7u=0,EEs=0;S7u=0;EEs=24;if(.25*(EEs-S7u)<0)Ite=[];else{for(var LW9=S7u;LW9<EEs;LW9+=.25)ple.push(LW9);Ite=ple}var CD8=Ite.map(function(O){O=O*60*60;return{secondsSinceMidnight:O,text:(new BX(7)).format(new Date(0,0,0,0,0,O))}});var oEm;var IA=function(){var O=_.u.apply(this,arguments)||this;O.skipNextOpenDialog=!1;O.errorMessage="";O.previousMonthLabel=_.Xm("PREVIOUS_MONTH_LABEL");O.nextMonthLabel=_.Xm("NEXT_MONTH_LABEL");return O};
_.X(IA,_.u);_.v=IA.prototype;_.v.attached=function(){var O=this,m=new MutationObserver(function(){O.JSC$15724_calendarMain.scrollHeight>0&&(m.disconnect(),O.calendarConfig&&O.calendarConfig.selectedDate&&O.scrollToDate())});
m.observe(this.JSC$15724_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){m.disconnect()},1E3)};
_.v.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.v.onDateTextChange=function(){if(this.calendarConfig){var O=this.validateDateText();O.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(O.details)):this.textbox.setAttribute("invalid","")}};
_.v.handleDayClick=function(O){O.model.day.date&&(this.commitDate(O.model.day.date),this.dialog.close())};
_.v.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var O=p5S(this.calendarConfig.selectedDate,this.renderData);O!==void 0&&this.JSC$15724_calendarMain.scrollToIndex(O)}};
_.v.scrollToNextMonth=function(){this.JSC$15724_calendarMain.scrollToIndex(this.JSC$15724_calendarMain.firstVisibleIndex+1)};
_.v.scrollToPrevMonth=function(){this.JSC$15724_calendarMain.firstVisibleIndex===0&&this.JSC$15724_calendarMain.scrollTo(0,0);this.JSC$15724_calendarMain.scrollToIndex(this.JSC$15724_calendarMain.firstVisibleIndex-1)};
_.v.onFormSubmit=function(O){O.preventDefault();this.calendarConfig&&(O=this.validateDateText(),O.isValid&&(this.commitDate(O.details),this.dialog.close()))};
_.v.onEscOrClickingOutside=function(O){O=O.detail.path&&!!O.detail.path.length&&O.detail.path[0];if(O.classList.contains("ytd-calendar-date-picker")){O===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var m=0;m<this.dropdownButton.children.length;m++)this.dropdownButton.children[m]===O&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}O=this.textbox.value!==this.dateText;m=this.validateDateText();O&&m.isValid&&this.commitDate(m.details);this.dialog.close();this.textbox.value=
this.dateText};
_.v.commitDate=function(O){this.calendarConfig&&(this.set("calendarConfig.selectedDate",O),_.iP(this.hostElement,"ytd-calendar-date-selected",O))};
_.v.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var O=this.textbox.value;var m=new Date;O=(new FQY(2)).parse(O,m,{validate:!0})===O.length?jbO(m):void 0;if(!O)return this.errorMessage=_.Xm("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};m=this.calendarConfig.start;var G=this.calendarConfig.end;if(f4O(O,m))return this.errorMessage=_.Xm("ENTER_DATE_OR_LATER",{allowed_date:uf6(m)}),{isValid:!1,details:void 0};if(f4O(G,O))return this.errorMessage=
_.Xm("ENTER_DATE_OR_EARLIER",{allowed_date:uf6(G)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:O}};
_.vr.Object.defineProperties(IA.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?uf6(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var O=this.calendarConfig,m=[],G=0;G<7;G++)m.push(VQ.NARROWWEEKDAYS[(G+jkC)%7]);G=[];for(var B=new Date(O.start.year,O.start.month);B.getFullYear()<O.end.year||B.getFullYear()===O.end.year&&B.getMonth()<=O.end.month;){var Q=G,H=Q.push,M=B.getFullYear(),R=B.getMonth(),x=O,t=void 0,W=[],Z=Object.freeze({extraCssClass:"invisible",debugClass:""}),z=new Date(M,R),J=jbO(z);z=z.getDay();for(var n=jbO(new Date);J.month===
R;){z!==jkC&&t||(t=Array.from({length:7}).fill(Z),W.push(t));var I={date:{year:M,month:R,day:J.day},extraCssClass:"",debugClass:""};x.selectedDate&&I.date&&X5I(I.date,x.selectedDate)&&(I.extraCssClass+=" selected");if(f4O(J,x.start)||f4O(x.end,J))I.extraCssClass+=" disabled";X5I(J,n)&&(I.extraCssClass+=" today");I.extraCssClass=I.extraCssClass.trim();t[(z-jkC+7)%7]=I;J=TqM(J);z=(z+1)%7}H.call(Q,{weeks:W,monthLabel:VQ.SHORTMONTHS[R]+" "+M,year:M,month:R,monthLabelExtraCssClass:W[0][2]===Z?"shift-down-label":
""});B.setMonth(B.getMonth()+1)}return{months:G,daysOfWeekLabel:m}}}}});
IA.prototype.onEscOrClickingOutside=IA.prototype.onEscOrClickingOutside;IA.prototype.scrollToDate=IA.prototype.scrollToDate;_.c([_.g(),_.Y("design:type",Object)],IA.prototype,"calendarConfig",void 0);_.c([_.g(),_.Y("design:type",Object)],IA.prototype,"skipNextOpenDialog",void 0);_.c([_.g(),_.Y("design:type",Object)],IA.prototype,"errorMessage",void 0);_.c([_.g(),_.Y("design:type",Object)],IA.prototype,"previousMonthLabel",void 0);
_.c([_.g(),_.Y("design:type",Object)],IA.prototype,"nextMonthLabel",void 0);_.c([_.uc("#textbox"),_.Y("design:type",HTMLInputElement)],IA.prototype,"textbox",void 0);_.c([_.uc("#calendar-dialog"),_.Y("design:type",Object)],IA.prototype,"dialog",void 0);_.c([_.uc("#calendar-main"),_.Y("design:type",Object)],IA.prototype,"JSC$15724_calendarMain",void 0);_.c([_.uc("#date-picker"),_.Y("design:type",HTMLElement)],IA.prototype,"dropdownButton",void 0);
_.c([_.T("calendarConfig.selectedDate"),_.Y("design:type",String),_.Y("design:paramtypes",[])],IA.prototype,"dateText",null);_.c([_.T("calendarConfig","calendarConfig.selectedDate"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],IA.prototype,"renderData",null);_.c([_.Tw("renderData","calendarConfig.selectedDate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IA.prototype,"scrollToDate",null);
_.c([_.hG("iron-overlay-canceled"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],IA.prototype,"onEscOrClickingOutside",null);_.c([_.DO({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],IA);
_.y(IA,"ytd-calendar-date-picker",function(){if(oEm!==void 0)return oEm;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return oEm=O},{mode:2});var ltp=_.Xm("UTC_OFFSET_FORMAT",{utc_offset:(new BX("Z")).format(new Date)}),at$=(new Date).getTimezoneOffset()*-60,kOe=new Date,y38,c3C=GL(kOe.getTimezoneOffset());y38=kw3(cG_(c3C,kOe));var Y7e=_.Xm("LOCAL_TIME_GMT_LABEL",{gmt_text:y38.replace("+0","+").replace("-0","-").replace(":00","")}),pa=function(){var O=_.u.apply(this,arguments)||this;O.selectedTimeIndex=0;O.selectedTimezoneIndex=0;O.timeOfDayOptions=CD8;return O};
_.X(pa,_.u);_.v=pa.prototype;_.v.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var O=g2f();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=O,this.selectedTimeIndex=0;else{var m=I45(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},O,{selectedDate:m.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(G){return G.secondsSinceMidnight===m.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.v.onDatePicked=function(O){this.selectedDate=O.detail};
_.v.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.iP(this.hostElement,"ytd-date-time-selection-cancelled")};
_.v.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var O=this.selectedDate;O=new Date(O.year,O.month,O.day);_.iP(this.hostElement,"ytd-date-time-selection-update",Math.floor(O.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+O.getTimezoneOffset()*60))}};
_.v.getTimezoneFormat=function(O){return O.localizedDisplayText?O.localizedDisplayText:_.Xm("TIMEZONE_FORMAT",{utc_offset_text:""+O.localizedUtcOffset,city_name:""+O.localizedName})};
_.v.updateSelectedTimeIndexFromBinding=function(O){this.selectedTimeIndex=O.detail.value};
_.v.updateSelectedTimezoneIndexFromBinding=function(O){this.selectedTimezoneIndex=O.detail.value};
_.vr.Object.defineProperties(pa.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var O=this.data.timezoneOptions;var m={name:"Etc/Unknown",localizedName:_.Xm("LOCAL_TIME_LABEL"),localizedUtcOffset:ltp,utcOffsetSec:""+at$,localizedDisplayText:Y7e};O?O.length&&O[0].name!==m.name&&(O[0].localizedDisplayText||(m.localizedDisplayText=""),O.unshift(m)):O=[m];return O}}},
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]}}});
pa.prototype.onDateTimeTimezoneChange=pa.prototype.onDateTimeTimezoneChange;pa.prototype.onDatePicked=pa.prototype.onDatePicked;pa.prototype.updateDefaultSelectedValue=pa.prototype.updateDefaultSelectedValue;_.c([_.g(),_.Y("design:type",Object)],pa.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],pa.prototype,"calendarConfig",void 0);_.c([_.g(),_.Y("design:type",Object)],pa.prototype,"selectedDate",void 0);_.c([_.g(),_.Y("design:type",Object)],pa.prototype,"selectedTimeIndex",void 0);
_.c([_.g(),_.Y("design:type",Object)],pa.prototype,"selectedTimezoneIndex",void 0);_.c([_.uc("#time-listbox"),_.Y("design:type",Object)],pa.prototype,"timeListBox",void 0);_.c([_.uc("#timezone-listbox"),_.Y("design:type",Object)],pa.prototype,"timezoneListBox",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],pa.prototype,"rendererStamperBehavior",void 0);_.c([_.T("data.timezoneOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pa.prototype,"timeZones",null);
_.c([_.Si("data","timeZones"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pa.prototype,"updateDefaultSelectedValue",null);_.c([_.T("selectedTimezoneIndex","timeZones"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pa.prototype,"selectedTimezone",null);_.c([_.T("selectedTimeIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pa.prototype,"selectedTime",null);
_.c([_.hG("ytd-calendar-date-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],pa.prototype,"onDatePicked",null);_.c([_.Tw("selectedTimezone","selectedTime","selectedDate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pa.prototype,"onDateTimeTimezoneChange",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],pa);
_.y(pa,"ytd-date-time-picker-renderer",function(){if(u18!==void 0)return u18;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return u18=O},{mode:1});var dzm;var SO=function(){var O=_.u.apply(this,arguments)||this;O.boundOnTapDismissButton=function(){O.dismissTapHandler()};
O.dismissButtonOverrides={size:"XS"};return O};
_.X(SO,_.u);SO.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}}}}}};
SO.prototype.dismissTapHandler=function(){_.iP(this.hostElement,"yt-backstage-attachment-dismissed")};
SO.prototype.computeAttachmentType=function(O){return O?O.backstageImageRenderer?"image":O.videoRenderer?"video":"none":"none"};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],SO.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],SO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],SO.prototype,"attachmentPreview",void 0);_.c([_.g(),_.Y("design:type",Object)],SO.prototype,"dismissButton",void 0);_.c([_.g(),_.Y("design:type",Object)],SO.prototype,"boundOnTapDismissButton",void 0);
_.c([_.g(),_.Y("design:type",Object)],SO.prototype,"dismissButtonOverrides",void 0);_.c([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.Y("design:type",String)],SO.prototype,"attachmentType",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],SO);
_.y(SO,"ytd-backstage-dismissable-attachment",function(){if(dzm!==void 0)return dzm;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return dzm=O},{mode:1});var wl_;var E8=function(){var O=_.u.apply(this,arguments)||this;O.selectedVideoId=void 0;O.picker=void 0;O.dismissButtonOverrides={size:"XS"};O.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return O};
_.X(E8,_.u);_.v=E8.prototype;_.v.onServiceRequestCompleted=function(O){O.stopPropagation()};
_.v.handleAddVideoPreviewAction=function(O){O=this.get("addVideoPreviewAction",O);this.onGetVideoPreviewSuccess(O)};
_.v.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}}}}}};
_.v.onLaunchVideoPicker=function(O){var m=this,G=_.HX(this.get("addVideoLinkAction.title",O)),B=this.get("addVideoLinkAction.onePickHostId",O);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",O);B&&(this.picker||(G=_.SeH(_.Ahf(B).setTitle(G).addView(uz2()).addView(gRp()),function(Q){m.onPickVideo(Q)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",O)||G.addView("youtube"),this.picker=G.build()),this.picker.setVisible(!0))};
_.v.onPickVideo=function(O){if(O)if(O.action==="cancel")_.iP(this.hostElement,"yt-video-link-button-cancel");else if(O.action==="picked"){O=O.docs;if(!O||O.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(O=(O==null?0:O.length)?O[0]:void 0)?O.id:void 0;this.setVideoPreview()}};
_.v.setVideoPreview=function(){var O=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){O.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.v.onGetVideoPreviewSuccess=function(O){if(O&&O.videoPreview&&O.cancelButton)this.videoPreview=O.videoPreview,this.cancelButton=O.cancelButton,_.iP(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.v.onGetVideoPreviewError=function(){this.cancel()};
_.v.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.iP(this.hostElement,"yt-video-link-cancel")};
_.v.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
E8.prototype.onServiceRequestCompleted=E8.prototype.onServiceRequestCompleted;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],E8.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],E8.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],E8.prototype,"videoPreview",void 0);_.c([_.g(),_.Y("design:type",Object)],E8.prototype,"cancelButton",void 0);_.c([_.g(),_.Y("design:type",Object)],E8.prototype,"getVideoPreviewCommand",void 0);_.c([_.g(),_.Y("design:type",Object)],E8.prototype,"dismissButtonOverrides",void 0);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],E8.prototype,"onServiceRequestCompleted",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],E8);
_.y(E8,"ytd-backstage-video-link-attachment",function(){if(wl_!==void 0)return wl_;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return wl_=O},{mode:1});var ecu;var DzH;var sk3;var La=function(){return _.u.apply(this,arguments)||this};
_.X(La,_.u);La.prototype.dataChanged=function(){this.active=!1};
La.prototype.onTap=function(){_.iP(this.hostElement,"yt-select-emoji-suggestion",this.data)};
La.prototype.identity=function(O){return O};
_.vr.Object.defineProperties(La.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B;if((O=this.data)==null?0:(m=O.image)==null?0:(G=m.thumbnails)==null?0:(B=G[0])==null?0:B.url)return O=this.data.image.thumbnails[0].url,O.startsWith("data:image/svg+xml")?on(O):_.d5(O)}}});
La.prototype.dataChanged=La.prototype.dataChanged;_.c([_.g(),_.Y("design:type",Object)],La.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],La.prototype,"active",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],La.prototype,"dataChanged",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],La.prototype,"imageSrc",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],La);
_.y(La,"ytd-emoji-suggestion",function(){if(sk3!==void 0)return sk3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return sk3=O},{mode:1});var NlC=/.*([:@#].*?)$/,Ca=function(){var O=_.u.apply(this,arguments)||this;O.suggestions=[];O.suggestionIndex=-1;O.JSC$15752_lastSuggestionRange=null;return O};
_.X(Ca,_.u);_.v=Ca.prototype;_.v.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.v.getSuggestions=function(O){var m=[],G=J7e(this.emojiManager,O.substr(0,3));if(G)for(var B in G)if(B.toLocaleLowerCase().indexOf(O)===0){var Q=G[B];if(Q&&Q.emojiId){Q=qd(this.emojiManager,Q.emojiId);var H=void 0,M=void 0,R=void 0,x=void 0,t=((H=Q)==null?0:H.isCustomEmoji)?(M=Q)==null?void 0:(R=M.shortcuts)==null?void 0:R[0]:(x=Q)==null?void 0:x.emojiId;H=void 0;m.push({suggestion:{image:(H=Q)==null?void 0:H.image,alt:t,text:B}});if(m.length>=64)break}}return m?m.sort(function(W,Z){return Z.suggestion.text<
W.suggestion.text?-1:Z.suggestion.text===W.suggestion.text?0:1}):null};
_.v.insertSuggestion=function(O){_.iP(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15752_lastSuggestionRange,text:O.alt});this.dropdown.opened=!1};
_.v.updateSuggestionsAtCaret=function(O){this.updateSuggestions(O,this.retrieveTextBeforeRange(O))};
_.v.offsetStartOfRangeBy=function(O,m){O.startOffset>=m&&O.setStart(O.startContainer,O.startOffset-m)};
_.v.updateSuggestions=function(O,m){var G=this;this.JSC$15752_lastSuggestionRange&&(this.JSC$15752_lastSuggestionRange.detach(),this.JSC$15752_lastSuggestionRange=null);if((m=NlC.exec(m))&&m.length&&(m=m[m.length-1].toLocaleLowerCase(),m.length>2||m===":_")&&(this.offsetStartOfRangeBy(O,m.length),this.JSC$15752_lastSuggestionRange=O,(O=this.getSuggestions(m))&&O.length)){this.suggestions=O;_.QA(this,function(){G.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(O.length-1);return}this.dropdown.opened=!1};
_.v.onKeyDown=function(O){if(this.dropdown.opened)switch(O.key){case "Escape":this.dropdown.opened=!1;O.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);O.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);O.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),O.preventDefault()}};
_.v.onKeyUp=function(O,m){switch(O.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(m);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(m)}};
_.v.onKeyPress=function(O){O.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),O.preventDefault())};
_.v.changeSuggestionIndex=function(O){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(O+this.suggestions.length)%this.suggestions.length,O=this.dropdownContent.children[this.suggestionIndex],O.active=!0,this.dropdownContent.scrollTop=O.offsetTop)};
_.v.retrieveTextBeforeRange=function(O){var m=O.startContainer;return m&&m.nodeType===Node.TEXT_NODE?m.textContent.substr(0,O.startOffset):""};
Ca.prototype.onKeyPress=Ca.prototype.onKeyPress;Ca.prototype.onKeyUp=Ca.prototype.onKeyUp;Ca.prototype.onKeyDown=Ca.prototype.onKeyDown;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Array)],Ca.prototype,"suggestions",void 0);_.c([_.g(),_.Y("design:type",_.iO)],Ca.prototype,"emojiManager",void 0);_.c([_.g(),_.Y("design:type",Number)],Ca.prototype,"verticalSuggestionsOffset",void 0);
_.c([_.uc("#dropdown"),_.Y("design:type",Object)],Ca.prototype,"dropdown",void 0);_.c([_.uc("#dropdown-content"),_.Y("design:type",HTMLDivElement)],Ca.prototype,"dropdownContent",void 0);_.c([_.hG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],Ca.prototype,"onKeyDown",null);_.c([_.hG("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent,Range]),_.Y("design:returntype")],Ca.prototype,"onKeyUp",null);
_.c([_.hG("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],Ca.prototype,"onKeyPress",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-emoji-input"})],Ca);
_.y(Ca,"ytd-emoji-input",function(){if(DzH!==void 0)return DzH;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return DzH=O},{mode:2});var PDe;var oA=function(){var O=_.u.apply(this,arguments)||this;O.hasMaxOptions=!1;return O};
_.X(oA,_.u);_.v=oA.prototype;_.v.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.v.setPrefilledChoices=function(O){var m=this;this.set("pollOptions",[]);var G;for(G=0;G<Math.min(O.length,this.data.maxPollOptions);G++)this.push("pollOptions",O[G].substring(0,this.data.maxPollOptionChars));for(;G<this.data.minPollOptions;G++)this.push("pollOptions","");this.hasMaxOptions=G>=this.data.maxPollOptions;_.QA(this,function(){for(var B=m.pollOptions,Q=_.ZO(m.hostElement).querySelectorAll(".poll-option-input"),H=0;H<Q.length;H++)Q[H].value=B[H]})};
_.v.focusChanged=function(){_.n7(this.hostElement)};
_.v.onInput=function(){var O=this;_.GS(this,"onInput",function(){O.isValid()?_.iP(O.hostElement,"yt-commentbox-post-enable"):_.iP(O.hostElement,"yt-commentbox-post-disable")},300)};
_.v.setPollOptions=function(){var O=[],m,G=((m=this.data)==null?0:m.minPollOptions)?this.data.minPollOptions:0;for(m=0;m<G;m++)O.push("");return O};
_.v.addPollOption=function(){var O=this;_.iP(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.ln.addLowPriorityJob(function(){var m;(m=_.ZO(O.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||m.focus()})};
_.v.onRemovePollOption=function(O){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.iP(this.hostElement,"yt-poll-attachment-dismiss")):(O=this.repeat.indexForElement(O.target.parentNode),O!==null&&(this.splice("pollOptions",O,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.iP(this.hostElement,"yt-commentbox-post-enable"))))};
_.v.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.v.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var O=0,m=this.pollOptions.length;O<m;O++)if(this.pollOptions[O].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.v.getPollOptions=function(){return this.pollOptions};
_.v.setPollOptionsFromInputs=function(){for(var O=_.ZO(this.hostElement).querySelectorAll(".poll-option-input"),m=0;m<O.length;m++)this.pollOptions[m]=O[m].value.trim()};
_.v.clearPollOptions=function(){var O=_.ZO(this.hostElement).querySelectorAll(".poll-option-input");O=_.K(O);for(var m=O.next();!m.done;m=O.next())m.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.v.getSimpleString=function(O){return _.HX(O)};
_.v.updateValueFromBinding=function(O){if(O.target&&this.pollOptions){var m=Array.from(_.ZO(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(O.target);if(m>=0){var G;this.pollOptions[m]=(G=O.detail.value)!=null?G:"";this.notifyPath("pollOptions."+m)}}};
oA.prototype.dataChanged=oA.prototype.dataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],oA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],oA.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Array)],oA.prototype,"pollOptions",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],oA.prototype,"hasMaxOptions",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],oA.prototype,"enableCreationBox",void 0);
_.c([_.uc("#repeat"),_.Y("design:type",YZ)],oA.prototype,"repeat",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oA.prototype,"dataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-poll-attachment"})],oA);
_.y(oA,"ytd-poll-attachment",function(){if(PDe!==void 0)return PDe;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return PDe=O},{mode:2});var FWs;var A3u;var OD2;var mao;var l$=function(){return _.u.apply(this,arguments)||this};
_.X(l$,_.u);_.vr.Object.defineProperties(l$.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],l$.prototype,"rendererBehaviors",void 0);_.c([_.g(),_.Y("design:type",Object)],l$.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],l$.prototype,"focused",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("focused"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l$.prototype,"ariaSelected",null);_.c([_.DO({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],l$);
_.y(l$,"yt-user-mention-suggestion-renderer",function(){if(mao===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;OD2===void 0&&(OD2=document.createElement("template"));var B=OD2;G.call(m,B.content.cloneNode(!0),O.content.firstChild);mao=O}O=mao;return O},{mode:2});var G2H;var BAo;var aA=function(){var O=_.u.apply(this,arguments)||this;O.focusedSuggestionIndex=-1;return O};
_.X(aA,_.u);_.v=aA.prototype;_.v.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.v.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.v.setFocusedSuggestionIndex=function(O){!this.data||!this.data.suggestions||O<0||O>=this.data.suggestions.length||(this.focusedSuggestionIndex=O,O=this.getSuggestionId(O),this._setFocusedSuggestionId(O))};
_.v.advanceSuggestion=function(O){this.focusedSuggestionIndex===-1||O!==-1&&O!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+O),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.v.ensureSuggestionVisible=function(O){O=this.getSuggestionId(O);O=_.ZO(this.hostElement).querySelector("[id="+O+"]");O!=null&&(O.offsetTop<this.hostElement.scrollTop?O.scrollIntoView(!0):O.offsetTop+O.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&O.scrollIntoView(!1))};
_.v.getSuggestionId=function(O){return"user-mention-suggestion-"+O};
_.v.onSuggestionTap=function(O){var m=_.b(O.model.item,qE2);this.ytRendererBehavior.logExplicitClick(m);_.iP(this.hostElement,"yt-user-mention-suggestion-selected",{data:m,index:O.model.index})};
_.v.onSuggestionMouseMove=function(O){O.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(O.model.index)};
_.v.isSuggestionFocused=function(O,m){return O===m};
_.v.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.v.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("focused-suggestion-id-changed",this.focusedSuggestionId))};
aA.prototype.focusedSuggestionIdChangedForBinding=aA.prototype.focusedSuggestionIdChangedForBinding;aA.prototype.onDomChange=aA.prototype.onDomChange;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],aA.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],aA.prototype,"focusedSuggestionIndex",void 0);_.c([_.g({readOnly:!0}),_.Y("design:type",String)],aA.prototype,"focusedSuggestionId",void 0);
_.c([_.hG("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],aA.prototype,"onDomChange",null);_.c([_.Tw("focusedSuggestionId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aA.prototype,"focusedSuggestionIdChangedForBinding",null);_.c([_.DO({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],aA);
_.y(aA,"yt-user-mention-suggestions-dropdown",function(){if(BAo===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;G2H===void 0&&(G2H=document.createElement("template"));var B=G2H;G.call(m,B.content.cloneNode(!0),O.content.firstChild);BAo=O}O=BAo;return O},{mode:2});var ke=function(){var O=_.u.apply(this,arguments)||this;O.suggestionsResponse=null;O.activeMention=null;O.selectionChangeListener=O.onSelectionChange.bind(O);O.handlesEnabled=_.V("enable_handles_in_mention_suggest_posts");O.handlesInMentionSuggestionsEnabled=_.V("handles_in_mention_suggest_posts");O.zeroPrefixMentionSuggestionEnabled=_.V("enable_zero_prefix_mention_suggestion_web");O.pendingQuery=null;O.flowNonce=null;return O};
_.X(ke,_.u);_.v=ke.prototype;_.v.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.v.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.v.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.v.hasSuggestions=function(O){return!!(O&&O.suggestions&&O.suggestions.length>0)};
_.v.onInput=function(){var O=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var m=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),G=this.activeMention.JSC$11350_getText().slice(-1)===" ",B=this.activeMention.JSC$11350_getText().slice(-2,-1)===" ",Q="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11350_getText().slice(-2,
-1))>=0;Q=this.zeroPrefixMentionSuggestionEnabled&&Q;if(this.activeMention.isCollapsed()||(m||B||Q)&&G)this.cancelActiveMention();else{var H=this.activeMention.JSC$11350_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.GS(this,"requestSuggestions",function(){O.requestSuggestions(H)},100)}}}};
_.v.onServiceRequestSent=function(O){O.stopPropagation()};
_.v.onServiceRequestCompleted=function(O){O.stopPropagation();O=O.detail.data;O.query&&(!this.pendingQuery||this.pendingQuery!==O.query)||!this.zeroPrefixMentionSuggestionEnabled&&O.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=O,this.hasSuggestions(O)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.v.onServiceRequestError=function(O){O.stopPropagation()};
_.v.onUserMentionSuggestionSelected=function(O){this.selectSuggestion(O.detail.data,O.detail.index)};
_.v.onSelectionChange=function(){if(this.activeMention){var O=_.tI(),m=this.activeMention.JSC$11350_containsRange(O);O=O&&this.containsHelper(this.dropdown,O.getContainer());m||O||this.cancelActiveMention()}};
_.v.containsHelper=function(O,m){var G;if(((G=window.ShadyDOM)==null?void 0:G.noPatch)===!0)return O.contains(m);for(;m;){if(m===O)return!0;m=m instanceof ShadowRoot?m.host:m.parentNode}return!1};
_.v.maybeStartSuggest=function(){var O=_.tI();if(O&&O.isCollapsed()){var m=O.JSC$11350_getStartNode(),G=O.JSC$11350_getStartOffset();if(m instanceof Text&&!(G<1)){var B=m.textContent;!(B=B&&B.charAt(G-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(B)<0||(this.activeMention=_.Oo(m,G-1,O.JSC$11350_getEndNode(),O.JSC$11350_getEndOffset()),this.flowNonce=lH(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.v.updateActiveMention=function(){if(this.activeMention){var O=_.tI();O&&O.isCollapsed()&&(this.activeMention=_.Oo(this.activeMention.JSC$11350_getStartNode(),this.activeMention.JSC$11350_getStartOffset(),O.JSC$11350_getEndNode(),O.JSC$11350_getEndOffset()))}};
_.v.requestSuggestions=function(O){if(this.activeMention){var m={suggestions_query:O};this.pendingQuery=O;_.tK(this.hostElement,[this.suggestionsEndpoint,m])}};
_.v.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()};
_.v.focusPreviousSuggestion=function(O){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),O.preventDefault())};
_.v.focusNextSuggestion=function(O){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),O.preventDefault())};
_.v.selectFocusedSuggestion=function(O){if(this.hasSuggestions(this.suggestionsResponse)){var m=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.b(m,qE2)&&(this.selectSuggestion(_.b(m,qE2),this.dropdown.focusedSuggestionIndex),O.preventDefault())}};
_.v.selectSuggestion=function(O,m){if(O){var G=this.activeMention;if(G){var B=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&O.handle?_.eG(B,"\u00a0\u2068@"+O.handle+"\u2069\u00a0"):this.handlesEnabled?_.eG(B,"\u00a0"+O.displayName+"\u00a0"):_.eG(B,"\u00a0@"+O.displayName+"\u00a0");sh(B,"/channel/"+O.channelId);B.classList.add("yt-formatted-string","yt-simple-endpoint");B.setAttribute("spellcheck","false");G.isCollapsed()||G.JSC$11350_removeContents();G.insertNode(B,!0);O=document.createTextNode(" ");
B.parentNode.insertBefore(O,B.nextSibling);window.getSelection().collapse(O,1);m={suggestionSelected:{suggestionIndex:m}};if(this.zeroPrefixMentionSuggestionEnabled){var Q;m.suggestionSelected.isZeroPrefix=((Q=this.suggestionsResponse)==null?void 0:Q.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",m);this.cancelActiveMention();_.iP(this.hostElement,"yt-mention-inserted")}}};
_.v.getPositionTarget=function(O){return O&&O.getBrowserRangeObject()};
_.v.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.v.onFocusedSuggestionIdChanged=function(O){var m=_.G45(this.hostElement)[0];m&&(O.detail.value?m.setAttribute("aria-activedescendant",O.detail.value):m.removeAttribute("aria-activedescendant"))};
_.v.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.v.logGELEvent=function(O,m){O={eventType:O,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};m&&(O=Object.assign(O,m));_.LE("userMentionAutoCompleteBoxEvent",O)};
ke.prototype.onDomChange=ke.prototype.onDomChange;ke.prototype.onUserMentionSuggestionSelected=ke.prototype.onUserMentionSuggestionSelected;ke.prototype.onServiceRequestError=ke.prototype.onServiceRequestError;ke.prototype.onServiceRequestCompleted=ke.prototype.onServiceRequestCompleted;ke.prototype.onServiceRequestSent=ke.prototype.onServiceRequestSent;ke.prototype.onInput=ke.prototype.onInput;_.c([_.h(_.l8),_.Y("design:type",Object)],ke.prototype,"ironA11yKeysBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],ke.prototype,"suggestionsEndpoint",void 0);_.c([_.g(),_.Y("design:type",Object)],ke.prototype,"suggestionsResponse",void 0);_.c([_.g(),_.Y("design:type",Object)],ke.prototype,"activeMention",void 0);_.c([_.uc("#dropdown"),_.Y("design:type",Object)],ke.prototype,"dropdown",void 0);_.c([_.uc("#iron-dropdown"),_.Y("design:type",Object)],ke.prototype,"ironDropdown",void 0);
_.c([_.hG("input"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],ke.prototype,"onInput",null);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ke.prototype,"onServiceRequestSent",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ke.prototype,"onServiceRequestCompleted",null);
_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ke.prototype,"onServiceRequestError",null);_.c([_.hG("yt-user-mention-suggestion-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ke.prototype,"onUserMentionSuggestionSelected",null);
_.c([_.hG("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ke.prototype,"onDomChange",null);_.c([_.DO({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],ke);
_.y(ke,"yt-user-mention-autosuggest-input",function(){if(A3u===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;FWs===void 0&&(FWs=document.createElement("template"));var B=FWs;G.call(m,B.content.cloneNode(!0),O.content.firstChild);A3u=O}O=A3u;return O},{mode:2});var yW=null;
_.kZ({is:"ytd-commentbox",_template:function(){if(ecu!==void 0)return ecu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ecu=O},
behaviors:[_.SAp.YtHostElementBehavior,_.l8,_.cg.YtActionHandlerBehavior,_.xo.YtComponentBehavior,_.j1.YtRendererstamperBehavior,_.aW8.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(O,m){return _.Vh(O.entities,"aadcGuidelinesStateEntityPayload",m)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(O,m){return _.Vh(O.entities,"commentboxStateEntity",m)},
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 _.UL}},
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:_.V("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.V("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",_.f7(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(O){this.fire(O?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(O){this.set("submitButtonDisabled",void 0);this.clear();O&&this.computeIsEmojiButtonDisplayed_(O)&&(O=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&O.updateEmojiCategories()},
observePrefilledImage_:function(O,m,G){this.isValidPrefilledImage_(O,m,G)&&(this.prefilledAttachment_="image",this.prefilledImageData_=m,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(O,m){this.isValidPrefilledVideo_(O,m)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(O){O&&O.pollData&&O.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(O.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.uU();this.focus()},
detached:function(){document.removeEventListener("tap",_.f7(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(O){O=O.detail;O=O.isCustomEmoji?O.shortcuts[0]:O.emojiId;var m=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(m,O);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var O=_.tI();if(O){O=O.getBrowserRangeObject();for(var m=O.commonAncestorContainer;m;){if(m===this.getEditableTextArea_())return O;m=m.parentNode}}O=this.getEditableTextArea_();O=_.Ax(O,O.childNodes.length);O.select();return O.getBrowserRangeObject()},
insertTextWithEmojis_:function(O,m,G){(m=this.emojiManager.createDocumentFragment(m,!0,!1,G===void 0?!0:G))&&m.childNodes.length!==0&&(O.collapsed||O.deleteContents(),G=m.lastChild,O.insertNode(m),_.$js(G).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var O=_.tI();if(O){var m=O.JSC$11350_getStartNode(),G=O.JSC$11350_getEndNode();if(SVp(m)&&SVp(G)){var B=O.JSC$11350_getStartOffset(),Q;if(_.Wp&&m.nodeType===Node.ELEMENT_NODE&&(Q=_.$Jm(m)))_.Ax(Q,0).select();else{Q=xK(m)?m:_.w9(m,xK);var H=xK(G)?G:_.w9(G,xK);if(Q||H)if(O.isCollapsed()){if(m.nodeType===Node.TEXT_NODE){O=!0;B===m.length&&(O=!1);if(yW==="end"||yW==="right")O=!1;m=m.parentNode;O=[].concat(_.lS(m.parentNode.childNodes)).indexOf(m)+(O?0:1);_.Ax(m.parentNode,
O).select()}}else Q?Q.previousSibling&&Q.previousSibling.length>0?_.Oo(G,O.JSC$11350_getEndOffset(),Q.previousSibling,Q.previousSibling.length-1).select():(m=document.createTextNode("\u200b"),Q.parentNode.insertBefore(m,Q),_.Oo(G,O.JSC$11350_getEndOffset(),m,0).select()):H&&(H.nextSibling&&H.nextSibling.length>0?_.Oo(m,O.JSC$11350_getStartOffset(),H.nextSibling,1).select():(G=document.createTextNode("\u200b"),H.parentNode.insertBefore(G,H.nextSibling),_.Oo(m,O.JSC$11350_getStartOffset(),G,G.length).select()));
yW=null}}else yW=null}else yW=null},
leftKeyPressed_:function(){yW="left"},
rightKeyPressed_:function(){yW="right"},
endKeyPressed_:function(){yW="end"},
maybeDeleteChip_:function(){var O=a4f(!0);if(O){var m=_.tI(),G=m.JSC$11350_getStartNode();m=m.JSC$11350_getStartOffset();_.Dd(G,m,O,O.childNodes.length).select()}},
maybeBackspaceChip_:function(){var O=a4f(!1);if(O){var m=_.tI(),G=m.JSC$11350_getStartNode();m=m.JSC$11350_getStartOffset();_.Dd(G,m,O,0).select()}},
maybeBackspaceChipWordMode_:function(O){var m=_.tI();if(m.isCollapsed()){var G=m.JSC$11350_getStartNode();m=m.JSC$11350_getStartOffset();var B=kxI(G,m,!0);B&&(_.Dd(G,m,B,0).select(),document.execCommand("delete"),O.preventDefault(),O.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(O){var m=_.tI();if(m.isCollapsed()){var G=m.JSC$11350_getStartNode();m=m.JSC$11350_getStartOffset();var B=kxI(G,m,!1);B&&(_.Dd(G,m,B,B.childNodes.length).select(),document.execCommand("delete"),O.preventDefault(),O.stopImmediatePropagation())}},
onTap_:function(O){if(!O.defaultPrevented&&(O.currentTarget.tagName==="YTD-COMMENTBOX"&&xK(O.target)&&O.preventDefault(),this.isEmojiPickerDisplayed)){var m=this.$$("#emojis"),G=this.$$("#emoji-button"),B=this.getEditableTextArea_();if((O=O.path?O.path:O.composedPath&&O.composedPath())&&!O.includes(m)&&!O.includes(B)&&!O.includes(G))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(O,m,G){return O==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&m!==void 0&&m.encryptedBlobId!==null&&m.sourceExternalVideoId!==null&&G!==void 0&&G.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(O,m){return O==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!m&&!!m.videoRenderer&&!!m.videoRenderer.videoId},
isValidPrefilledAttachment_:function(O,m,G){return this.isValidPrefilledImage_(O,m,G)||this.isValidPrefilledVideo_(O,G)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.V("enable_multi_image_post_creation")){var O=this.$$("ytd-backstage-multi-image-select-renderer");O&&O.hasImages()&&O.cancel()}else(O=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&O.cancel();(O=this.$["poll-attachment"])&&this.hasPoll_&&O.clearPollOptions();(O=this.$["image-poll-attachment"])&&this.hasImagePoll_&&O.resetPollOptions();(O=this.$["quiz-attachment"])&&this.hasQuiz_&&O.resetQuizOptions();
(O=this.$["video-link-attachment"])&&this.hasVideo_&&O.cancel();(O=this.$["access-restrictions-selector"].firstElementChild)&&O.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 _.ZO(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ZO(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(O,m){O=LQO(O,this.emojiManager,m).cloneNode(!0);for(m=O.firstChild;m;)if(m.nodeType!==1)m=m.nextSibling;else switch(m.tagName){case "BR":var G=_.k7();_.tK_(G,m);m=G.nextSibling;break;case "DIV":(G=m.lastChild)&&m.nextSibling&&_.ds(_.k7(),G);m.previousSibling&&(m.previousSibling.nodeType===1||m.previousSibling.nodeType===3&&!m.previousSibling.textContent.endsWith("\n"))&&_.Y7(_.k7(),m);G&&G.nodeName==="BR"&&_.hF(G);G=m;m.hasChildNodes()?(m=m.firstChild,
_.WAp(G)):(m=m.nextSibling,_.hF(G));break;default:m=m.nextSibling}return yPf(O)},
onAddImageError_:function(O){O.stopPropagation();this.errorMessage_=_.Qg(O.detail)},
setTextAreaValue_:function(O){O||(O="");var m=this.getEditableFormattedString_();m.text="";this.getEditableTextArea_().innerText="";typeof O==="string"&&(O={runs:[{text:O}]});m.text=O},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();yW=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var O=this.getEditableTextArea_();O&&(_.Ax(O,O.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.kB("HTML_DIR")==="rtl"){var O=this.getEditableTextArea_(),m=this.getTextAreaValue()!==""?"auto":"rtl";O.setAttribute("dir",m)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var O;return IVS((O=this.$["quiz-attachment"])==null?void 0:O.getExplanationText())||IVS(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var O=null;if(this.isEmojiButtonDisplayed){var m=this.getInputRange_();m&&(O=this.emojiInput.retrieveTextBeforeRange(m))}this.insertText_(O,!0);this.updateCharCount_();this.setSubmitButton_();O=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=O.scrollHeight>O.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var O=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:O})},
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(O){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(O)},
onPasteEmoji_:function(O){O.preventDefault();O.stopImmediatePropagation();O=O.clipboardData.getData("text/plain");this.insertText_(O,!1,!1)},
insertText_:function(O,m,G){m=m===void 0?!1:m;G=G===void 0?!0:G;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&O){var B=this.getInputRange_().cloneRange();this.emojiManager&&B&&(m&&this.emojiInput.offsetStartOfRangeBy(B,O.length),this.insertTextWithEmojis_(B,O,G),E2r(this.getEditableTextArea_().lastChild)||(B=this.getInputRange_().cloneRange()),B&&(this.emojiInput.updateSuggestions(B,O),this.updateSuggestionOffset_(B)))}},
setSubmitButton_:function(){if(this.data){var O=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",m=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(O||m){var G=this.getTextAreaValue().trim();m=G===this.previousText_;G=!G||this.aboveCharLimit_;O&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(G=this.aboveCharLimit_);this.submitButtonDisabled=
m||G||!this.getTextLength();O&&_.V("enable_post_scheduling")&&(this.submitButtonDisabled=m&&!this.scheduledPublishTimeSec_||G)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.HX,computeCreationBoxClass_:function(O){return O?"focused":"not-focused"},
computeFooterMessageClass_:function(O,m){return m?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(O,m){return m?m:O},
computeFooterMessageHidden_:function(O,m){return!m&&!O},
computePlaceholderText_:function(O,m,G){return(G==="video"||G==="image")&&(O==null?0:O.prefilledPlaceholderText)?O==null?void 0:O.prefilledPlaceholderText:m==="poll"||m==="image-poll"?O==null?void 0:O.pollPostPlaceholderText:m==="quiz"?O==null?void 0:O.quizPostPlaceholderText:m==="image"?O==null?void 0:O.imagePostPlaceholderText:O==null?void 0:O.placeholderText},
computeHideAttachmentButtons_:function(O,m,G,B){return O===void 0?!1:B&&this.getSimpleString(B)===this.getSimpleString(O.rateLimitErrorMessage)?!0:m!=="none"||G!=="none"||!O.videoLinkButton&&!O.pollButton&&!O.imagePollButton&&!O.quizButton&&!O.imageButton},
computeHideDismissableAttachment_:function(O){return O!=="image"&&O!=="video"},
computeHasVideo_:function(O){return O==="video"},
computeHasImage_:function(O){return O==="image"},
computeHasPoll_:function(O){return O==="poll"},
computeHasImagePoll_:function(O){return O==="image-poll"},
computeHasQuiz_:function(O){return O==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(O){return O&&O.backstageAttachment?O.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!O.backstageAttachment.quizRenderer&&!O.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(O){if(this.isValidPrefilledAttachment_(O.purpose,O.prefilledImageData,O.backstageAttachment))return O.backstageAttachment},
computeEditAttachment_:function(O){if(this.computePrefilledContent_(O)===void 0)return O.backstageAttachment},
computeAuthorThumbnailDimension_:function(O,m){return O&&!m?24:40},
computeImageUploadEndpoint_:function(O){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",O)},
computeRateLimitErrorCommands_:function(O){var m,G;return O==null?void 0:(m=O.advancedTierFeatures)==null?void 0:(G=m.rateLimit)==null?void 0:G.rateLimitCommands},
computeIsBackstageComment_:function(O){return!(!O||O!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(O){return this.get("submitButton.buttonRenderer.serviceEndpoint",O)||this.get("replyButton.buttonRenderer.serviceEndpoint",O)||this.get("postButton.buttonRenderer.serviceEndpoint",O)},
computeSubmitButtonOverride:function(){if(_.V("web_modern_buttons")){var O,m;return{segmentedPosition:this.dropdownSchedulePanel_||!((O=this.data)==null?0:(m=O.postOptionsMenu)==null?0:m.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.V("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(O,m){O=this.get("submitButton.buttonRenderer",O)||this.get("replyButton.buttonRenderer",O)||this.get("postButton.buttonRenderer",O);m&&(O=m);O&&(O=Object.assign({},O),O.serviceEndpoint=void 0,O.isDisabled=this.submitButtonDisabled);return O},
computeHasExternalLinksAccess_:function(O){if(_.V("enable_rfa_external_links")){var m,G,B;return(B=O==null?void 0:(m=O.advancedTierFeatures)==null?void 0:(G=m.externalLinks)==null?void 0:G.allowExternalLinks)!=null?B:!0}return!0},
computeIsEmojiButtonDisplayed_:function(O){return O.emojiButton&&O.emojiPicker&&O.emojiPicker.emojiPickerRenderer&&O.emojiPicker.emojiPickerRenderer.categories?O.emojiPicker.emojiPickerRenderer.categories.find(function(m){return m.emojiPickerCategoryRenderer?m.emojiPickerCategoryRenderer.emojiIds&&m.emojiPickerCategoryRenderer.emojiIds.length>0:m.emojiPickerUpsellCategoryRenderer?m.emojiPickerUpsellCategoryRenderer.emojis&&m.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(O){return O.charLimit?O.charLimit:null},
computeDropdownSchedulingPanel_:function(O,m){if(O==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&m)return m},
computeInlineSchedulingPanel_:function(O,m){if(O==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&m)return m},
computeHideAuthorThumbnail_:function(O,m){return O||this.computeUseIdentityChip_(m)},
computeHideIdentityChipRenderer_:function(O,m){return O||!this.computeUseIdentityChip_(m)},
computeUseIdentityChip_:function(O){return!!O&&!!O.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(O){var m,G,B,Q;(O==null?0:(m=O.detail)==null?0:(G=m.endpoint)==null?0:G.ypcGetOffersEndpoint)||(O==null?0:(B=O.detail)==null?0:(Q=B.endpoint)==null?0:Q.ypcOffersEndpoint)?(O.stopPropagation(),_.tK(this,[O.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",O)&&(O.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(O){this.addedAttachment="video";this.selectedVideoId_=O.detail.videoId},
commentboxStateEntityChanged_:function(O){var m=this;(O==null?void 0:O.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(O==null?void 0:O.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){m.focus()})},
onYtServiceRequestSent_:function(O,m){if(m.actions)for(O=_.K(m.actions),m=O.next();!m.done;m=O.next())m.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(O){this.isLoading=!1;var m=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",O),G,B,Q,H=O==null?void 0:(G=O.detail)==null?void 0:(B=G.data)==null?void 0:(Q=B.actionResult)==null?void 0:Q.commentboxStateEntityKey;if(m)this.errorMessage_=m;else if(H){var M;this.dismissData_=O==null?void 0:(M=O.detail)==null?void 0:M.data;this.commentboxStateKey_=H}else{this.clear();var R;this.fire("yt-commentbox-dismiss",O==null?void 0:(R=O.detail)==
null?void 0:R.data)}},
onYtServiceRequestError_:function(O){O.stopPropagation();this.isLoading=!1;var m,G;if(((m=this.data)==null?void 0:m.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((G=this.data)==null?void 0:G.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(m=this.get("detail.error.args",O)||[],m.length>1&&m[1].message){this.handlePostsServiceRequestError_(m[1].message);return}(O=this.get("detail.error.message",O))?this.errorMessage_=this.data.errorMessage||_.Qg(O):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(O){if(_.V("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var m=_.K(this.rateLimitErrorCommands),G=m.next();!G.done;G=m.next())if(G=G.value,G.errorLabel===O){_.fm(G.command,this.hostElement);return}this.errorMessage_=_.Qg(O)},
submitIfNotBackstagePost_:function(O){if(!this.isBackstagePost)this.onSubmit_(O)},
onSubmit_:function(O){var m=this,G,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S;return _.r(function(L){switch(L.nextAddress){case 1:O.stopPropagation();if(!m.serviceEndpoint||!m.isValidInput_())return L.return();if(m.shouldShowPostAadcNotice_())return m.showPostAadcNotice_(),L.return();if(m.shouldShowCommentAadcNotice_())return m.showCommentAadcNotice_(),L.return();if(!(m.$$("ytd-backstage-multi-image-select-renderer")&&m.hasImage_&&_.V("enable_multi_image_post_creation"))){L.jumpTo(2);break}G=m.$$("ytd-backstage-multi-image-select-renderer");
return L.yield(G.getAllUploadStatuses(),3);case 3:B=L.yieldResult;if(!B)return L.return();Q=_.K(B);for(H=Q.next();!H.done;H=Q.next())if(M=H.value,M.encryptedBlobId===void 0)return m.isLoading=!1,x=R=void 0,m.errorMessage_=(x=(R=m.imageUploadEndpoint_)==null?void 0:R.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?x:null,L.return();return L.return(m.submitForm_(void 0,void 0,void 0,void 0,G.images,m.taggedVideoId_));case 2:if(!m.hasImagePoll_||!m.$["image-poll-attachment"]){L.jumpTo(4);
break}return L.yield(m.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:t=L.yieldResult;if(!t)return L.return();W=_.K(t);for(Z=W.next();!Z.done;Z=W.next())if(z=Z.value,!z.encryptedBlobId)return m.isLoading=!1,J=void 0,m.errorMessage_=(J=m.data.errorMessage)!=null?J:null,L.return();case 4:I=(n=m.$$("ytd-backstage-image-select-renderer"))&&n.uploadPromise(),S=m.getSharedPostId_(),I?I.then(function(){m.submitForm_.apply(m,_.lS(_.eA.apply(0,arguments)))}).catch(function(C){m.isLoading=!1;
m.errorMessage_=_.Qg(C.message)}):m.selectedVideoId_?m.submitForm_(void 0,m.selectedVideoId_):m.prefilledAttachment_==="image"?m.submitForm_(m.prefilledImageData_.encryptedBlobId,void 0,void 0,m.prefilledImageData_.sourceExternalVideoId,void 0,m.taggedVideoId_):m.prefilledAttachment_==="video"?m.submitForm_(void 0,m.data.backstageAttachment.videoRenderer.videoId):S?m.submitForm_(void 0,void 0,S):m.taggedVideoId_!==void 0?m.submitForm_(void 0,void 0,void 0,void 0,void 0,m.taggedVideoId_):m.submitForm_(),
_.ju(L)}})},
openSchedulingPanel:function(O){O&&O.scheduleButton&&O.scheduleButton.buttonRenderer&&(this.scheduleButton_=O.scheduleButton.buttonRenderer);O&&O.dateTimePicker&&this.set("data.schedulingDateTimePicker",O.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(O){O.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(O){O.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(O){O.stopPropagation();O.detail.alertMessage&&(this.alertMessage_=O.detail.alertMessage)},
onImageSelected_:function(O){O.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(O){O.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(O){O.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(O.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(O){O.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(O){var m=this.$["video-link-attachment"];m&&m.onLaunchVideoPicker(O)},
onAttachmentDismiss_:function(O){O.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"&&_.V("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.V("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 O;if(this.addedAttachment==="image-poll"&&((O=this.$["image-poll-attachment"])==null||!O.isValid()))return!1;var m;if(this.addedAttachment==="quiz"&&((m=this.$["quiz-attachment"])==null||!m.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;O=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(O=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")O=!0;return O||!!this.getTextAreaValue().trim()},
submitForm_:function(O,m,G,B,Q,H){var M=this.getTextAreaValue().trim(),R={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&M===this.previousText_&&(M=void 0);M!==void 0&&(R.comment_text=M);this.isLoading=!0;H!=void 0&&(R.tagged_video_id=H);O?(R.image_blob_id=O,this.imagePreviewCoordinates_&&(R.image_preview_coordinates=this.imagePreviewCoordinates_)):m?R.attached_video_id=m:G?R.shared_post_id=G:Q&&Q.length>0&&(R.images_data=Q.map(function(x){return{encryptedBlobId:x.encryptedBlobId,
previewCoordinates:x.previewCoordinates}}));
B&&(R.source_video_id=B);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(R.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(R.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(R.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.V("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(R.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.V("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(R.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.tK(this,[this.serviceEndpoint,R])},
onIsInputFocusChanged_:function(O,m){O?this.fire("yt-autonav-pause-focus"):m!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(O){var m=this.getEditableTextArea_();[].concat(_.lS(O.dataTransfer.items)).forEach(function(G){G.kind==="string"&&G.type.match("^text/plain")&&G.getAsString(function(B){m.appendChild(document.createTextNode(B))})});
O.preventDefault()},
preventDefault_:function(O){O.preventDefault()},
onSuggestionInsert_:function(O){this.insertTextWithEmojis_(O.detail.range,O.detail.text)},
onEmojiSuggestionClick_:function(O){this.emojiInput.insertSuggestion(O.detail)},
computeSubmitButtonClass_:function(O,m){return!m||O?"":"with-options"},
updateSuggestionOffset_:function(O){if(this.emojiInput&&_.ZO(this.emojiInput).querySelector("#dropdown")){var m=this.getEditableTextArea_().getBoundingClientRect().bottom,G=O.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(m-G)+5;m=this.getEditableTextArea_().getBoundingClientRect().left;O=O.getBoundingClientRect().left-m;_.ZO(this.emojiInput).querySelector("#dropdown").style.marginLeft=O+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(O){if(_.V("enable_post_scheduling")&&this.data&&this.data.purpose){O=O.detail;if(Math.floor(Date.now()/1E3)>=O)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var m=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(m)||m!==O?this.scheduledPublishTimeSec_=O:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=O;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var O=["image-button","image-poll-button","poll-button"];_.V("enable_quiz_creation")&&O.push("quiz-button");_.V("auto_convert_posts_video_tag")||O.push("video-link-button");return O},
getButtonRenderer:function(O,m){if(O)switch(m){case "video-link-button":var G;return((G=O.videoLinkButton)==null?void 0:G.buttonRenderer)||void 0;case "image-button":var B;return((B=O.imageButton)==null?void 0:B.buttonRenderer)||void 0;case "poll-button":var Q;return((Q=O.pollButton)==null?void 0:Q.buttonRenderer)||void 0;case "image-poll-button":var H;return((H=O.imagePollButton)==null?void 0:H.buttonRenderer)||void 0;case "quiz-button":var M;return((M=O.quizButton)==null?void 0:M.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var O;return(O=this.data)==null||!O.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var O,m;return!((O=this.data)==null||!O.openAadcDialog)&&!((m=this.aadcGuidelinesState_)==null||!m.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.kB("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var O;((O=this.data)==null?0:O.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.YG("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(O){O.clickTrackingParams&&_.uK().clickCommand(O);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.xc(this,"yt-close-popup-action")},
onHideIdentityChip:function(O){var m;this.set("data.placeholderText",(m=O.hideIdentityChipAction)==null?void 0:m.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var cF=function(){var O=_.u.apply(this,arguments)||this;O.isOpen=!1;O.modern=_.V("web_modern_buttons");O.roundedContainer=!0;O.dropdownButtonOverride=_.V("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;O.inPopupContainer=!1;O.isCommentboxLoading=!1;var m=["image-button","image-poll-button","poll-button"];_.V("enable_quiz_creation")&&m.push("quiz-button");_.V("auto_convert_posts_video_tag")||m.push("video-link-button");O.attachmentButtonIds=m;O.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 O};
_.X(cF,_.u);_.v=cF.prototype;_.v.computeButtonOverride=function(){var O;return((O=this.data)==null?0:O.postOptionsMenu)&&_.V("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.v.configureRendererStamper=function(){var O={"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]]"}}}}};_.V("auto_convert_posts_video_tag")||(O["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return O};
_.v.ready=function(){var O=this,m=_.ZO(this.hostElement).querySelector("#placeholder-area"),G=function(B){O.onOpen(B)};
m.addEventListener("tap",G);m.addEventListener("keypress",G)};
_.v.showButtonEduTooltip=function(){var O,m,G,B,Q,H,M;if(_.V("enable_quiz_creation")&&((O=this.data)==null?0:(m=O.quizButton)==null?0:(G=m.buttonRenderer)==null?0:(B=G.hint)==null?0:(Q=B.hintRenderer)==null?0:(H=Q.content)==null?0:(M=H.bubbleHintRenderer)==null?0:M.text)&&(_.It.getInstance(),O=pi(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(O==null?void 0:
O.length)>0)){this.ytComponentBehavior.resolveCommand(O[0],{form:{element:this.quizButton}});return}var R;if((R=this.data)==null?0:R.imagePollButtonTooltip)if(_.It.getInstance(),R=pi(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(R==null?void 0:R.length)>0){this.ytComponentBehavior.resolveCommand(R[0],{form:{element:this.imagePollButton}});return}var x;_.V("enable_multi_image_post_creation")&&
((x=this.data)==null?0:x.multiImageButtonTooltip)&&(_.It.getInstance(),x=pi(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(x==null?void 0:x.length)>0&&this.ytComponentBehavior.resolveCommand(x[0],{form:{element:this.imageButton}}))};
_.v.onCreatePollAction=function(O){_.b(O,wk$)&&(this.JSC$15807_commentbox.addedAttachment="poll",this.openDialog())};
_.v.onAddVideoLinkAction=function(O){if(_.b(O,y$u))this.JSC$15807_commentbox.onAddVideoLink(O)};
_.v.onShowSchedulingPanelCommand=function(O){(O=_.b(O,tB8))&&this.openSchedulingPanel(O)};
_.v.onCreateImagePollCommand=function(O){_.b(O,rQo)&&(this.JSC$15807_commentbox.openImagePollComponent(),this.openDialog())};
_.v.onCreateQuizCommand=function(O){_.b(O,RAU)&&(this.JSC$15807_commentbox.openQuizComponent(),this.openDialog())};
_.v.openSchedulingPanel=function(O){_.V("enable_post_scheduling")&&(this.openDialog(),this.JSC$15807_commentbox.openSchedulingPanel(O))};
_.v.onCreateCommentAction=function(O){this.get("createCommentAction.contents",O)&&(this.JSC$15807_commentbox.clear(),this.closeDialog())};
_.v.onOpen=function(O){O instanceof KeyboardEvent&&O.type==="keypress"&&O.keyCode!==13&&O.keyCode!==32||(this.data.prepareAccountEndpoint?_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.v.onYtCommentboxDismiss=function(){this.closeDialog()};
_.v.onYtCommentboxLoadingStart=function(O){O.stopPropagation();this.isCommentboxLoading=!0};
_.v.onYtCommentboxLoadingEnd=function(O){O.stopPropagation();this.isCommentboxLoading=!1};
_.v.onYtVideoLinkButtonCancel=function(O){O.stopPropagation();this.onOpen(O)};
_.v.onYtVideoLinkSelected=function(O){O.stopPropagation();this.onOpen(O)};
_.v.onIronSelect=function(O){O.stopPropagation();O.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=O.detail.item.value&&(this.accessRestriction?(this.accessRestriction=O.detail.item.value,this.onOpen(O)):this.accessRestriction=O.detail.item.value)};
_.v.onYtNavigate=function(O){this.get("detail.endpoint.backstageImageUploadEndpoint",O)&&(this.JSC$15807_commentbox.addedAttachment="image",this.JSC$15807_commentbox.submitButtonDisabled=!0,this.onOpen(O))};
_.v.onRequestSent=function(O){if(_.V("web_button_rework"))for(var m=_.K(O.detail),G=m.next();!G.done;G=m.next())_.b(G.value,bj8)&&(this.JSC$15807_commentbox.addedAttachment="image",this.JSC$15807_commentbox.submitButtonDisabled=!0,this.onOpen(O))};
_.v.openDialog=function(){var O;(O=this.data)!=null&&O.isIneligibleForCommunityPagePostCreation||(this.JSC$15807_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$15807_commentbox.focus())};
_.v.onPopupClosed=function(){_.It.getInstance()};
_.v.computeCreationDisabled=function(O){return!!O};
_.v.computeIsCreationDialog=function(O){return!!O&&O==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.v.computeDisabledPostButton=function(O){if(!O)return null;O.isDisabled=!0;return O};
_.v.computeIsCreationDialogWithHeader=function(O){return!this.inPopupContainer&&!!O&&!!O.authorText&&O.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.v.computeIsHeaderHidden=function(O,m){return!O||m};
_.v.computeDropdownRendererClasses=function(O){return O?["text-secondary-style"]:[]};
_.v.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var O=_.ZO(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;O&&O.reset()};
cF.prototype.onPopupClosed=cF.prototype.onPopupClosed;cF.prototype.onRequestSent=cF.prototype.onRequestSent;cF.prototype.onYtNavigate=cF.prototype.onYtNavigate;cF.prototype.onIronSelect=cF.prototype.onIronSelect;cF.prototype.onYtVideoLinkSelected=cF.prototype.onYtVideoLinkSelected;cF.prototype.onYtVideoLinkButtonCancel=cF.prototype.onYtVideoLinkButtonCancel;cF.prototype.onYtCommentboxLoadingEnd=cF.prototype.onYtCommentboxLoadingEnd;cF.prototype.onYtCommentboxLoadingStart=cF.prototype.onYtCommentboxLoadingStart;
cF.prototype.onYtCommentboxDismiss=cF.prototype.onYtCommentboxDismiss;cF.prototype.showButtonEduTooltip=cF.prototype.showButtonEduTooltip;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],cF.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],cF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],cF.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],cF.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],cF.prototype,"isOpen",void 0);_.c([_.g({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],cF.prototype,"buttonOverride",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],cF.prototype,"modern",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],cF.prototype,"roundedContainer",void 0);_.c([_.g(),_.Y("design:type",Object)],cF.prototype,"dropdownButtonOverride",void 0);_.c([_.g({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.Y("design:type",Boolean)],cF.prototype,"creationDisabled",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],cF.prototype,"enableCreationBox",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.Y("design:type",Boolean)],cF.prototype,"isCreationDialog",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],cF.prototype,"inPopupContainer",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.Y("design:type",Boolean)],cF.prototype,"isCreationDialogWithHeader",void 0);_.c([_.g(),_.Y("design:type",Object)],cF.prototype,"accessRestriction",void 0);
_.c([_.g({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.Y("design:type",Array)],cF.prototype,"dropdownRendererClasses",void 0);_.c([_.g(),_.Y("design:type",Object)],cF.prototype,"isCommentboxLoading",void 0);_.c([_.g(),_.Y("design:type",Array)],cF.prototype,"attachmentButtonIds",void 0);_.c([_.uc("#image-button"),_.Y("design:type",HTMLElement)],cF.prototype,"imageButton",void 0);
_.c([_.uc("#image-poll-button"),_.Y("design:type",HTMLElement)],cF.prototype,"imagePollButton",void 0);_.c([_.uc("#quiz-button"),_.Y("design:type",HTMLElement)],cF.prototype,"quizButton",void 0);_.c([_.uc("#commentbox"),_.Y("design:type",Object)],cF.prototype,"JSC$15807_commentbox",void 0);_.c([_.Tw("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cF.prototype,"showButtonEduTooltip",null);
_.c([_.hG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],cF.prototype,"onYtCommentboxDismiss",null);_.c([_.hG("yt-commentbox-loading-start"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],cF.prototype,"onYtCommentboxLoadingStart",null);
_.c([_.hG("yt-commentbox-loading-end"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],cF.prototype,"onYtCommentboxLoadingEnd",null);_.c([_.hG("yt-video-link-button-cancel"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],cF.prototype,"onYtVideoLinkButtonCancel",null);
_.c([_.hG("yt-video-link-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],cF.prototype,"onYtVideoLinkSelected",null);_.c([_.hG("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],cF.prototype,"onIronSelect",null);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],cF.prototype,"onYtNavigate",null);
_.c([_.hG("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],cF.prototype,"onRequestSent",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cF.prototype,"onPopupClosed",null);_.c([_.l({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],cF);
_.y(cF,"ytd-backstage-post-dialog-renderer",function(){if(fts!==void 0)return fts;var O=document.createElement("template");_.f(O,'\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"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\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>\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]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" 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 class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return fts=O},{mode:1});var Qge;var HDC;var Ye=function(){return _.u.apply(this,arguments)||this};
_.X(Ye,_.u);_.v=Ye.prototype;_.v.computeHeartButtonStyle=function(O){return(O==null?0:O.styleType)?O.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.v.onYtButtonTap=function(){if(this.data.isEnabled){var O=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(O=this.getEndpoint(O))&&_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}})}else(O=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(O)};
_.v.toggle=function(O){this.set("data.isHearted",O!==void 0?O:!this.data.isHearted)};
_.v.getEndpoint=function(O){var m,G=(m=this.data)==null?void 0:m.heartEndpoint,B;m=(B=this.data)==null?void 0:B.unheartEndpoint;if(G&&m)return O?m:G};
_.v.computeButtonAccessibility=function(O,m){var G,B,Q=O==null?void 0:(G=O.heartedAccessibility)==null?void 0:(B=G.accessibilityData)==null?void 0:B.label,H,M;O=O==null?void 0:(H=O.unheartedAccessibility)==null?void 0:(M=H.accessibilityData)==null?void 0:M.label;return m?Q:O};
_.vr.Object.defineProperties(Ye.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 O;return _.V("kevlar_system_icons")&&!((O=this.data)==null||!O.isHearted)}}});
Ye.prototype.onYtButtonTap=Ye.prototype.onYtButtonTap;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],Ye.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ye.prototype,"data",void 0);_.c([_.T("data.isHearted"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ye.prototype,"heartTooltip",null);
_.c([_.T("data.isHearted"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ye.prototype,"iconFilled",null);_.c([_.g({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.Y("design:type",String)],Ye.prototype,"buttonAccessibility",void 0);_.c([_.g({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],Ye.prototype,"heartButtonStyle",void 0);
_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ye.prototype,"onYtButtonTap",null);_.c([_.l({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Ye);
_.y(Ye,"ytd-creator-heart-renderer",function(){if(HDC!==void 0)return HDC;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return HDC=O},{mode:1});var d4=function(){var O=_.u.apply(this,arguments)||this;O.hasCreatorReply=!1;O.buttonOverrides={size:"S",iconPosition:"icon-only"};O.replyButtonOverrides={size:"S",type:"text"};O.forceIconButton=!_.V("web_modern_buttons");O.modern=_.V("web_modern_buttons");O.buttonTooltipPosition="bottom";O.systemIcons=_.V("kevlar_system_icons");O.replyDialog=null;return O};
_.X(d4,_.u);_.v=d4.prototype;
_.v.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]]"}}}}}};
_.v.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.v.dataChange=function(){this.replyDialog&&_.ZO(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var O,m,G;this.isLiked=this.systemIcons&&!!((O=this.data)==null?0:(m=O.likeButton)==null?0:(G=m.toggleButtonRenderer)==null?0:G.isToggled)};
_.v.computeShowVoteCountBeginning=function(O,m){return O===void 0||m===void 0?!0:O.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!m&&this.ytRendererBehavior.getSimpleString(m)!=="0"};
_.v.computeShowVoteCountEnd=function(O,m){return O===void 0||m===void 0?!0:O.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!m&&this.ytRendererBehavior.getSimpleString(m)!=="0"};
_.v.computeShowCommentCount=function(O,m){return O===void 0||m===void 0?!0:O.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!m&&this.ytRendererBehavior.getSimpleString(m)!=="0"};
_.v.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.v.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.v.showReplyDialog=function(O){O&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.ZO(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=O,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.v.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.v.onRequestSent=function(O){if(_.V("web_button_rework")){O=_.K(O.detail);for(var m=O.next();!m.done;m=O.next())(m=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",m.value))&&this.showReplyDialog(m)}};
_.v.onYtNavigate=function(O){var m,G;(O=(m=_.b(O.detail.endpoint,_.XzC))==null?void 0:(G=m.dialog)==null?void 0:G.commentReplyDialogRenderer)&&this.showReplyDialog(O)};
_.v.onYtServiceRequestSent=function(O,m){O.stopPropagation();if(m.actions)for(O=0;O<m.actions.length;O++){var G=_.b(m.actions[O],Fiu);G&&this.handleUpdateCommentVoteAction(G)}};
_.v.handleUpdateCommentVoteAction=function(O){this.voteCount=O.voteCount||_.Qg("0");O.voteStatus==="LIKE"?this.JSC$15819_ytdDislikeToggleButtonRenderer.toggle(!1):O.voteStatus==="DISLIKE"?this.JSC$15819_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15819_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15819_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.v.computeReplyButtonHidden=function(O){return O};
_.v.computeReplyButtonBeginning=function(O){return(O==null?0:O.replyButton)&&O.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?O.replyButton:void 0};
_.v.computeReplyButtonEnd=function(O){return(O==null?0:O.replyButton)&&O.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?O.replyButton:void 0};
_.v.computeActionButtonStyle=function(O){return(O==null?0:O.style)?O.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.v.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.v.onYtToggleButton=function(O){var m,G;this.isLiked=this.systemIcons&&!!((m=O.detail)==null?0:(G=m.actions)==null?0:G.like)};
d4.prototype.onYtToggleButton=d4.prototype.onYtToggleButton;d4.prototype.onButtonTooltipPositionChanged=d4.prototype.onButtonTooltipPositionChanged;d4.prototype.onYtServiceRequestSent=d4.prototype.onYtServiceRequestSent;d4.prototype.onYtNavigate=d4.prototype.onYtNavigate;d4.prototype.onRequestSent=d4.prototype.onRequestSent;d4.prototype.onYtCommentboxDismiss=d4.prototype.onYtCommentboxDismiss;d4.prototype.dataChange=d4.prototype.dataChange;
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],d4.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],d4.prototype,"voteCount",void 0);_.c([_.g(),_.Y("design:type",Object)],d4.prototype,"commentCount",void 0);_.c([_.g(),_.Y("design:type",Object)],d4.prototype,"replyThumbnail",void 0);
_.c([_.g(),_.Y("design:type",Object)],d4.prototype,"hasCreatorReply",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],d4.prototype,"enableCreationBox",void 0);_.c([_.g({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],d4.prototype,"actionButtonsStyle",void 0);_.c([_.g({computed:"computeReplyButtonBeginning(data)"}),_.Y("design:type",Object)],d4.prototype,"replyButtonBeginning",void 0);
_.c([_.g({computed:"computeReplyButtonEnd(data)"}),_.Y("design:type",Object)],d4.prototype,"replyButtonEnd",void 0);_.c([_.g(),_.Y("design:type",Object)],d4.prototype,"buttonOverrides",void 0);_.c([_.g(),_.Y("design:type",Object)],d4.prototype,"replyButtonOverrides",void 0);_.c([_.g(),_.Y("design:type",Object)],d4.prototype,"forceIconButton",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],d4.prototype,"useCommentIcon",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],d4.prototype,"modern",void 0);_.c([_.g(),_.Y("design:type",Object)],d4.prototype,"buttonTooltipPosition",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],d4.prototype,"systemIcons",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],d4.prototype,"isLiked",void 0);_.c([_.uc("ytd-button-renderer"),_.Y("design:type",Object)],d4.prototype,"ytdReplyButtonRenderer",void 0);
_.c([_.uc("#like-button"),_.Y("design:type",Object)],d4.prototype,"JSC$15819_ytdLikeToggleButtonRenderer",void 0);_.c([_.uc("#dislike-button"),_.Y("design:type",Object)],d4.prototype,"JSC$15819_ytdDislikeToggleButtonRenderer",void 0);_.c([_.uc("#reply-dialog"),_.Y("design:type",HTMLElement)],d4.prototype,"replyDialogElement",void 0);_.c([_.uc("#reply-button"),_.Y("design:type",HTMLElement)],d4.prototype,"replyButtonElement",void 0);
_.c([_.uc("#reply-button-end"),_.Y("design:type",HTMLElement)],d4.prototype,"replyButtonEndElement",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],d4.prototype,"dataChange",null);_.c([_.hG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],d4.prototype,"onYtCommentboxDismiss",null);
_.c([_.hG("yt-service-request-sent-button-renderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],d4.prototype,"onRequestSent",null);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],d4.prototype,"onYtNavigate",null);
_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],d4.prototype,"onYtServiceRequestSent",null);_.c([_.Tw("buttonTooltipPosition"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],d4.prototype,"onButtonTooltipPositionChanged",null);
_.c([_.hG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],d4.prototype,"onYtToggleButton",null);_.c([_.l({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],d4);
_.y(d4,"ytd-comment-action-buttons-renderer",function(){if(Qge!==void 0)return Qge;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Qge=O},{mode:1});var vCU;var w4=function(){return _.u.apply(this,arguments)||this};
_.X(w4,_.u);w4.prototype.focus=function(){_.ZO(this.hostElement).querySelector("#commentbox").focus()};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],w4.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],w4.prototype,"zeroStepChannelCreationRenderer",void 0);_.c([_.l({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],w4);
_.y(w4,"ytd-comment-dialog-renderer",function(){if(vCU!==void 0)return vCU;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return vCU=O},{mode:1});var KJ2;var eO=function(){var O=_.u.apply(this,arguments)||this;O.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.V("enable_web_delhi_icons")};O.replyButtonOverrides={size:"S",type:"text"};return O};
_.X(eO,_.u);_.v=eO.prototype;_.v.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.v.detached=function(){this.replyBox&&this.replyBox.remove()};
_.v.showReplyDialog=function(O){if(O){var m=this.replyBox;m||(m=document.createElement("ytd-comment-reply-dialog-renderer"),m.id="replybox",_.ZO(this.replyDialogDiv).appendChild(m));m.data=O;this.replyDialogDiv.hidden=!1;m.openDialog()}};
_.v.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.v.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var O,m=_.b((O=this.toolbarSurface)==null?void 0:O.subscribersOnlyDisclaimerSnackbarCommand,_.wu);m&&_.iP(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:m})}};
_.v.onYtServiceRequestSent=function(O,m){O.stopPropagation();if(m.actions)for(var G=0;G<m.actions.length;G++){var B=_.b(m.actions[G],Fiu);B?this.handleUpdateCommentVoteAction(B):O.target===this.heartButton&&this.toggleHeartState()}};
_.v.handleUpdateCommentVoteAction=function(O){var m;(m=this.toolbarState)!=null&&m.key&&this.ytdReduxBehavior.dispatch(_.Cz("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:O.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":O.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.v.toggleHeartState=function(){var O;(O=this.toolbarState)!=null&&O.key&&this.ytdReduxBehavior.dispatch(_.Cz("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.vr.Object.defineProperties(eO.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return(((O=this.toolbarState)==null?void 0:O.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(m=this.toolbarData)==null?void 0:m.likeCountLiked:(G=this.toolbarData)==null?void 0:G.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.toolbarSurface)==null?void 0:O.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.toolbarSurface)==null?void 0:O.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.toolbarSurface)==null?void 0:O.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.toolbarSurface)==null?void 0:O.prepareAccountCommand)!==void 0&&!_.V("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var O,m=_.b((O=this.toolbarSurface)==null?void 0:O.prepareAccountCommand,_.wu),G,B,Q,H,M,R,x,t,W;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((G=this.toolbarSharedData)==null||!G.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((B=this.toolbarState)==null?void 0:B.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:m!=null?m:_.b((Q=this.toolbarSurface)==null?void 0:Q.likeCommand,_.wu),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:m!=null?m:_.b((H=this.toolbarSurface)==null?void 0:H.unlikeCommand,_.wu),defaultCommand:this.isVisiblyDisabled?_.b((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand,_.wu):void 0,defaultTooltip:(R=this.toolbarData)==null?void 0:R.likeInactiveTooltip,toggledTooltip:(x=this.toolbarData)==null?void 0:x.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(t=this.toolbarData)==null?void 0:t.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(W=this.toolbarSharedData)==null?void 0:W.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var O,m=_.b((O=this.toolbarSurface)==null?void 0:O.prepareAccountCommand,_.wu),G,B,Q,H,M,R,x,t,W,Z;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((G=this.toolbarSharedData)==null||!G.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((B=this.toolbarState)==null?void 0:B.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:m!=null?m:_.b((Q=this.toolbarSurface)==null?void 0:Q.dislikeCommand,_.wu),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:m!=null?m:_.b((H=this.toolbarSurface)==null?void 0:H.undislikeCommand,_.wu),defaultCommand:this.isVisiblyDisabled?_.b((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand,_.wu):void 0,defaultTooltip:(R=this.toolbarData)==null?void 0:R.dislikeInactiveTooltip,toggledTooltip:(x=this.toolbarData)==null?void 0:
x.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(t=this.toolbarSharedData)==null?void 0:t.dislikeReplyButtonA11y:(W=this.toolbarSharedData)==null?void 0:W.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(Z=this.toolbarSharedData)==null?void 0:Z.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var O,m,G;if(((O=this.toolbarState)==null?void 0:O.heartState)!==void 0&&((m=this.toolbarState)==null?void 0:m.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((G=this.toolbarState)==null?void 0:G.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var B,Q,H,M,R,x,t,W,Z,z,J,n,I,S;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(B=this.toolbarData)==null?void 0:B.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((Q=this.toolbarState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((H=this.toolbarState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((R=this.toolbarState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.b((x=this.toolbarSurface)==null?void 0:x.heartCommand,
_.wu),unheartEndpoint:this.isVisiblyDisabled?void 0:_.b((t=this.toolbarSurface)==null?void 0:t.unheartCommand,_.wu),disabledEndpoint:this.isVisiblyDisabled?_.b((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand,_.wu):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(Z=this.toolbarData)==null?void 0:Z.heartActiveTooltip,unheartedTooltip:(z=this.toolbarData)==null?void 0:z.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((J=
this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(n=this.toolbarSharedData)==null?void 0:n.unheartButtonA11y:(I=this.toolbarSharedData)==null?void 0:I.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(S=this.toolbarSharedData)==null?void 0:S.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.toolbarSurface)==null||!O.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(O=this.commentStrings)==null?void 0:O.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.b((m=this.toolbarSurface)==null?void 0:m.replyCommand,_.wu),command:this.isVisiblyDisabled?_.b((G=this.toolbarSurface)==null?
void 0:G.commentDisabledActionCommand,_.wu):this.isSubsOnlyCommentsIneligibleUser?_.b((B=this.toolbarSurface)==null?void 0:B.subscribersOnlySnackbarCommand,_.wu):void 0}}}});
eO.prototype.onYtServiceRequestSent=eO.prototype.onYtServiceRequestSent;eO.prototype.hideReplyDialogDiv=eO.prototype.hideReplyDialogDiv;_.c([_.g(),_.Y("design:type",Object)],eO.prototype,"commentStrings",void 0);_.c([_.g(),_.Y("design:type",Boolean)],eO.prototype,"isReply",void 0);_.c([_.g(),_.Y("design:type",Object)],eO.prototype,"toolbarData",void 0);_.c([_.g(),_.Y("design:type",Object)],eO.prototype,"toolbarSharedData",void 0);
_.c([_.g(),_.Y("design:type",String)],eO.prototype,"toolbarStateKey",void 0);_.c([_.g(),_.Y("design:type",String)],eO.prototype,"toolbarSurfaceKey",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],eO.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],eO.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.fQ),_.Y("design:type",Object)],eO.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.uc("#reply-dialog"),_.Y("design:type",HTMLElement)],eO.prototype,"replyDialogDiv",void 0);_.c([_.uc("#replybox"),_.Y("design:type",Object)],eO.prototype,"replyBox",void 0);_.c([_.uc("ytd-creator-heart-renderer"),_.Y("design:type",Object)],eO.prototype,"heartButton",void 0);_.c([_.g({selector:function(O,m){return _.Vh(O.entities,"engagementToolbarStateEntityPayload",m)},
selectorArgs:["toolbarStateKey"]}),_.Y("design:type",Object)],eO.prototype,"toolbarState",void 0);_.c([_.g({selector:M7N,selectorArgs:["toolbarSurfaceKey"]}),_.Y("design:type",Object)],eO.prototype,"toolbarSurface",void 0);_.c([_.g(),_.Y("design:type",Object)],eO.prototype,"buttonOverrides",void 0);_.c([_.hG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eO.prototype,"hideReplyDialogDiv",null);
_.c([_.T("toolbarData","toolbarState"),_.Y("design:type",String),_.Y("design:paramtypes",[])],eO.prototype,"likeCount",null);_.c([_.T("likeCount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],eO.prototype,"showLikeCount",null);_.c([_.T("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],eO.prototype,"isVisiblyDisabled",null);_.c([_.T("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],eO.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.c([_.T("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],eO.prototype,"isSubsOnlyCommentsEligibleUser",null);_.c([_.T("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],eO.prototype,"hasPrepareAccountCommand",null);_.c([_.T("toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],eO.prototype,"likeToggleButtonRenderer",null);
_.c([_.T("isReply","toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],eO.prototype,"dislikeToggleButtonRenderer",null);_.c([_.T("toolbarData","toolbarState","toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],eO.prototype,"creatorHeartSupportedRenderer",null);_.c([_.T("toolbarSurface"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],eO.prototype,"hasReplyCommand",null);
_.c([_.T("toolbarSurface","commentStrings","isVisiblyDisabled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],eO.prototype,"replyButtonRenderer",null);_.c([_.g(),_.Y("design:type",Object)],eO.prototype,"replyButtonOverrides",void 0);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],eO.prototype,"onYtServiceRequestSent",null);_.c([_.l({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],eO);
_.y(eO,"ytd-comment-engagement-bar",function(){if(KJ2!==void 0)return KJ2;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return KJ2=O},{mode:1});var $a8;var DG=function(){return _.u.apply(this,arguments)||this};
_.X(DG,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],DG.prototype,"data",void 0);_.c([_.l({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],DG);
_.y(DG,"ytd-comment-inline-thumbnail-renderer",function(){if($a8!==void 0)return $a8;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return $a8=O},{mode:1});var Mbo;var s8=function(){return _.u.apply(this,arguments)||this};
_.X(s8,_.u);s8.prototype.onMessageTap=function(){if(this.onTapCommand){var O=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);O&&this.ytdOpenPopupBehavior.openPopup(O)}};
_.vr.Object.defineProperties(s8.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return(O=this.data)==null?void 0:(m=O.button)==null?void 0:(G=m.buttonRenderer)==null?void 0:G.command}}});
_.c([_.h(_.fQ),_.Y("design:type",Object)],s8.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],s8.prototype,"data",void 0);_.c([_.T("data.button.buttonRenderer.command"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],s8.prototype,"onTapCommand",null);_.c([_.l({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],s8);
_.y(s8,"ytd-comment-pause-composer-renderer",function(){if(Mbo!==void 0)return Mbo;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Mbo=O},{mode:1});var r49;var RUm;var NW=function(){var O=_.u.apply(this,arguments)||this;O.isOpen=!1;return O};
_.X(NW,_.u);_.v=NW.prototype;_.v.dataChanged=function(){this.isOpen=!1};
_.v.onTap=function(){this.data&&(this.data.navigationEndpoint?_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.v.focus=function(){this.JSC$15849_commentbox.focus()};
_.v.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.v.openDialog=function(){this.isOpen=!0;this.JSC$15849_commentbox.focus();this.JSC$15849_commentbox.maybeHeightChanged()};
NW.prototype.onYtCommentboxDismiss=NW.prototype.onYtCommentboxDismiss;NW.prototype.dataChanged=NW.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],NW.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],NW.prototype,"isOpen",void 0);_.c([_.uc("#commentbox"),_.Y("design:type",Object)],NW.prototype,"JSC$15849_commentbox",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NW.prototype,"dataChanged",null);_.c([_.hG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],NW.prototype,"onYtCommentboxDismiss",null);_.c([_.l({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],NW);
_.y(NW,"ytd-comment-reply-dialog-renderer",function(){if(RUm!==void 0)return RUm;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return RUm=O},{mode:1});var iDU;var PF=function(){return _.u.apply(this,arguments)||this};
_.X(PF,_.u);_.vr.Object.defineProperties(PF.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var O,m,G=(O=this.data)==null?void 0:(m=O.icon)==null?void 0:m.iconType;return G?"yt-icons:"+G.toLowerCase():null}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],PF.prototype,"data",void 0);_.c([_.g(),_.T("data.icon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PF.prototype,"icon",null);_.c([_.l({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],PF);
_.y(PF,"ytd-pinned-comment-badge-renderer",function(){if(iDU!==void 0)return iDU;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return iDU=O},{mode:1});var xam;var qC8={},UaC={input:!0,meta:!0,br:!0,link:!0,img:!0},FM=null;qC8.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(){FM==null&&(FM=document.createElement("tp-yt-paper-tooltip"),FM.offset=8,FM.fitToVisibleBounds=!0)},
onMouseOver_:function(O){if(O=_.w9(O.target,function(Q){return Q==this||Q.getAttribute&&Q.getAttribute("shared-tooltip-text")}.bind(this),!0)){var m=O.getAttribute("shared-tooltip-text");
if(m){var G=this,B=null;O!=this&&(O.tagName.toLowerCase()in UaC?G=O.parentElement:G=O,O.id&&(B=O.id));this.polymerController.createTooltipIfRequired_();if(FM.parentElement!=G||FM.for!=B)(0,_.bc)(FM).textContent=m,_.ZO(G).appendChild(FM),FM.for=B,FM.animationDelay=this.polymerController.sharedTooltipAnimationDelay,FM.position=this.polymerController.sharedTooltipPosition}}}};var Au=function(){return _.u.apply(this,arguments)||this};
_.X(Au,_.u);Au.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]]"}}}}}};
Au.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var O;((O=this.data)==null?0:O.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Au.prototype.colorChanged=function(){var O,m,G,B=(O=this.data)==null?void 0:(m=O.color)==null?void 0:(G=m.basicColorPaletteData)==null?void 0:G.foregroundBodyColor;B&&(this.rgbBadgeColor=_.Fs(B));_.ZO(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Au.prototype.tooltipChanged=function(){var O;((O=this.data)==null?0:O.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Au.prototype.tooltipChanged=Au.prototype.tooltipChanged;Au.prototype.colorChanged=Au.prototype.colorChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Au.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(qC8.YtSharedTooltipBehavior),_.Y("design:type",Object)],Au.prototype,"ytSharedTooltipBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Au.prototype,"data",void 0);
_.c([_.g({value:"#4285F4"}),_.Y("design:type",String)],Au.prototype,"rgbBadgeColor",void 0);_.c([_.Tw("data.color"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Au.prototype,"colorChanged",null);_.c([_.Tw("data.tooltip"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Au.prototype,"tooltipChanged",null);_.c([_.l({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Au);
_.y(Au,"ytd-sponsor-comment-badge-renderer",function(){if(xam!==void 0)return xam;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return xam=O},{mode:1});var tbs;var WJU;var Ol=function(){return _.u.apply(this,arguments)||this};
_.X(Ol,_.u);Ol.prototype.computeState=function(O){switch(O==null?void 0:O.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"}};
Ol.prototype.updateStateIdentifier=function(O){if(this.viewModel.triStateKey){var m=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Cz("triStateButtonStateEntityPayload",m,{key:m,stateIdentifier:O}))}};
Ol.prototype.onClick=function(){var O=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(){O.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){O.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.vr.Object.defineProperties(Ol.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 O;return((O=this.data)==null?void 0:O.buttonText)||""}}});
_.c([_.g(),_.Y("design:type",Object)],Ol.prototype,"viewModel",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Ol.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],Ol.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ol.prototype,"ytRendererBehavior",void 0);_.c([_.g({selector:r2s,selectorArgs:["viewModel.triStateKey"]}),_.Y("design:type",Object)],Ol.prototype,"triStateButtonStateEntity",void 0);
_.c([_.g({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.Y("design:type",String)],Ol.prototype,"state",void 0);_.c([_.T("viewModel","state"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ol.prototype,"data",null);_.c([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Ol.prototype,"buttonText",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Ol);
_.y(Ol,"ytd-tri-state-button-view-model",function(){if(WJU!==void 0)return WJU;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return WJU=O},{mode:1});var ZD_;var zUC;var mD=function(){var O=_.u.apply(this,arguments)||this;O.defaultIconToFilled=!_.V("kevlar_fill_comment_chip_icon_killswitch");return O};
_.X(mD,_.u);mD.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
mD.prototype.dataChanged=function(){if(this.data){var O,m;((O=this.data.chipColorPalette)==null?0:O.backgroundColor)&&((m=this.data.chipColorPalette)==null?0:m.foregroundTitleColor)&&_.n7(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.AV(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.AV(this.data.chipColorPalette.foregroundTitleColor)});var G;((G=this.data)==null?0:G.command)?(_.n7(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.n7(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}};
mD.prototype.onTap=function(){var O;if(this.data&&(O=this.data)!=null&&O.command){var m;this.ytComponentBehavior.resolveCommand((m=this.data)==null?void 0:m.command)}};
mD.prototype.getIconSize=function(){return _.V("kevlar_fill_comment_chip_icon_killswitch")?24:12};
mD.prototype.onTap=mD.prototype.onTap;mD.prototype.dataChanged=mD.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],mD.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.l8),_.Y("design:type",Object)],mD.prototype,"ironA11yKeysBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mD.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],mD.prototype,"basePriceText",void 0);_.c([_.g(),_.Y("design:type",Object)],mD.prototype,"chipIcon",void 0);_.c([_.g(),_.Y("design:type",Object)],mD.prototype,"defaultIconToFilled",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mD.prototype,"dataChanged",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mD.prototype,"onTap",null);
_.c([_.DO({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],mD);
_.y(mD,"yt-pdg-comment-chip-renderer",function(){if(zUC===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;ZD_===void 0&&(ZD_=document.createElement("template"));var B=ZD_;G.call(m,B.content.cloneNode(!0),O.content.firstChild);zUC=O}O=zUC;return O},{mode:2});var GT=function(){var O=_.u.apply(this,arguments)||this;O.useSmallAvatars=_.V("small_avatars_for_comments");O.webWatchCompactComments=_.V("web_watch_compact_comments");O.editDialog=null;return O};
_.X(GT,_.u);_.v=GT.prototype;_.v.onShow=function(){_.Yc("cmv",void 0,"wn_comments")};
_.v.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"}}}};
_.v.detached=function(){this.editDialog=null;this.expander.reset()};
_.v.updateBackgroundColor=function(){if(this.backgroundColor){var O={"--ytd-comment-paid-background-color":_.AV(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.n7(this.hostElement,O)}else _.n7(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.v.resetExpander=function(){var O;(O=this.expander)==null||O.reset()};
_.v.openEditDialog=function(O){O.dialog&&(this.editDialog=O.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.v.onYtNavigate=function(O){var m=O.detail.endpoint;if(m=_.b(m,_.fs3)||_.b(m,_.h5u))O.stopPropagation(),this.openEditDialog(m)};
_.v.onYtCommentboxDismiss=function(){this.editDialog=null;_.n7(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.v.onAuthorThumbnailClicked=function(){_.V("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.v.onYtCommentboxResize=function(O){var m;(O==null?0:(m=O.detail)==null?0:m.height)&&_.n7(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":O.detail.height+"px"})};
_.vr.Object.defineProperties(GT.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 O,m=(O=this.commentEntity)==null?void 0:O.author;return m&&(m.isCreator||m.isVerified||m.isArtist)?{renderer:{authorEndpoint:m.channelPageEndpoint?_.b(m.channelPageEndpoint,_.wu):_.b(m.channelCommand,_.wu),authorText:{runs:[{text:m.displayName}]},color:m.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:m.isArtist?{iconType:"AUDIO_BADGE"}:
m.isVerified?{iconType:m.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:m.isArtist||m.isVerified?m.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var O,m=(O=this.commentEntity)==null?void 0:O.author;return m!=null&&m.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:m.sponsorBadgeUrl}]},tooltip:m.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var O;return _.b((O=this.commentSurfaceEntity)==null?void 0:O.pdgCommentChip,_.mO$)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var O;return this.voiceReplyContainerViewModel&&((O=this.voiceReplyContainerViewModel)==null?void 0:O.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var O;return _.b((O=this.commentSurfaceEntity)==null?void 0:O.voiceReplyContainerViewModel,K7e)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var O;return this.voiceReplyContainerViewModel&&(O=this.voiceReplyContainerViewModel)!=null&&O.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var O,m;return(m=(O=this.commentSurfaceEntity)==null?void 0:O.commentBackgroundColor)!=null?m:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.V("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var O,m;return(((O=this.commentEntity)==null?void 0:(m=O.properties)==null?void 0:m.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var O,m;if(_.V("enable_profile_cards_on_comments")&&((O=this.commentEntity)==null?0:(m=O.author)==null?0:m.profileCardEndpoint)&&this.viewModel.allowProfileCard){var G,B;return _.b((G=this.commentEntity)==null?void 0:(B=G.author)==null?void 0:B.profileCardEndpoint,_.wu)}var Q,H;return _.b((Q=this.commentEntity)==null?void 0:(H=Q.avatar)==null?void 0:H.endpoint,_.wu)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var O,m;if(_.V("enable_profile_cards_on_comments")&&((O=this.commentEntity)==null?0:(m=O.author)==null?0:m.channelPageEndpoint)){var G,B;return _.b((G=this.commentEntity)==null?void 0:(B=G.author)==null?void 0:B.channelPageEndpoint,_.wu)}var Q,H;return _.b((Q=this.commentEntity)==null?void 0:(H=Q.avatar)==null?void 0:H.endpoint,_.wu)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B,Q=(O=this.commentEntity)==null?void 0:(m=O.avatar)==null?void 0:(G=m.image)==null?void 0:(B=G.sources)==null?void 0:B[0];return Q?{thumbnails:[{url:Q.url,width:Q.width,height:Q.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.commentEntity)==null?0:(m=O.author)==null?0:m.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.commentEntity)==null?void 0:(m=O.author)==null?void 0:m.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.commentEntity)==null?void 0:(m=O.properties)==null?void 0:m.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var O;return _.b((O=this.commentSurfaceEntity)==null?void 0:O.publishedTimeCommand,_.wu)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var O,m;if(((O=this.commentEntity)==null?0:O.translatedContent)&&((m=this.translateButtonState)==null?void 0:m.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var G;if((G=this.voiceReplyContainerViewModel)==null?0:G.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var B,Q;return((B=this.commentEntity)==null?void 0:(Q=B.properties)==null?void 0:Q.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.commentSharedEntity)==null?void 0:(m=O.strings)==null?void 0:m.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.commentSharedEntity)==null?void 0:(m=O.strings)==null?void 0:m.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.commentEntity)==null||!O.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var O,m,G=(m=_.b((O=this.viewModel)==null?void 0:O.translateButton,vrU))!=null?m:{},B,Q,H,M,R,x,t,W,Z,z,J;return Object.assign({},G,{untoggledStateData:Object.assign({},G.untoggledStateData,{buttonText:(B=this.commentEntity)==null?void 0:(Q=B.translateData)==null?void 0:Q.text}),togglingStateData:Object.assign({},G.togglingStateData,{buttonText:(H=this.commentSharedEntity)==null?
void 0:(M=H.strings)==null?void 0:M.translatingText}),toggledStateData:Object.assign({},G.toggledStateData,{buttonText:(R=this.commentSharedEntity)==null?void 0:(x=R.strings)==null?void 0:x.seeOriginalText}),transitionCommand:((t=this.commentEntity)==null?0:t.translatedContent)?void 0:_.b((W=this.commentEntity)==null?void 0:(Z=W.translateData)==null?void 0:Z.translateComment,_.wu),triStateKey:(z=this.commentEntity)==null?void 0:(J=z.properties)==null?void 0:J.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return((m=_.b(_.b((O=this.toolbarSurface)==null?void 0:O.menuCommand,_.wu),TT8))==null?void 0:(G=m.menu)==null?void 0:G.menuRenderer)||null}}});
GT.prototype.onYtCommentboxResize=GT.prototype.onYtCommentboxResize;GT.prototype.onYtCommentboxDismiss=GT.prototype.onYtCommentboxDismiss;GT.prototype.onYtNavigate=GT.prototype.onYtNavigate;GT.prototype.resetExpander=GT.prototype.resetExpander;GT.prototype.updateBackgroundColor=GT.prototype.updateBackgroundColor;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],GT.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],GT.prototype,"ytdReduxBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],GT.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],GT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.uc("#author-thumbnail > button"),_.Y("design:type",HTMLElement)],GT.prototype,"authorThumbnailAnchor",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GT.prototype,"linked",null);
_.c([_.T("viewModel","linked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"linkedCommentBadge",null);_.c([_.g({reflectToAttribute:!0}),_.T("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GT.prototype,"pinned",null);_.c([_.T("viewModel","pinned"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"pinnedCommentBadge",null);
_.c([_.T("commentEntity","commentSharedEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"authorCommentBadge",null);_.c([_.g({reflectToAttribute:!0}),_.T("authorCommentBadge"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"hasAuthorBadge",null);_.c([_.T("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"sponsorCommentBadge",null);
_.c([_.g({reflectToAttribute:!0}),_.T("sponsorCommentBadge"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"hasSponsorBadge",null);_.c([_.T("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"pdgCommentChipRenderer",null);_.c([_.g({reflectToAttribute:!0}),_.T("voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"hasVoiceReply",null);
_.c([_.T("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"voiceReplyContainerViewModel",null);_.c([_.T("voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"voiceReplyUnavailableText",null);_.c([_.g(),_.Y("design:type",Object)],GT.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"viewModel",null);
_.c([_.g({selector:function(O,m){return _.Vh(O.entities,"commentSharedEntityPayload",m)},
selectorArgs:["viewModel.sharedKey"]}),_.Y("design:type",Object)],GT.prototype,"commentSharedEntity",void 0);_.c([_.g({selector:function(O,m){return _.Vh(O.entities,"commentEntityPayload",m)},
selectorArgs:["viewModel.commentKey"]}),_.Y("design:type",Object)],GT.prototype,"commentEntity",void 0);_.c([_.g({selector:function(O,m){return _.Vh(O.entities,"commentSurfaceEntityPayload",m)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.Y("design:type",Object)],GT.prototype,"commentSurfaceEntity",void 0);_.c([_.g({selector:M7N,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.Y("design:type",Object)],GT.prototype,"toolbarSurface",void 0);_.c([_.g({selector:r2s,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.Y("design:type",Object)],GT.prototype,"translateButtonState",void 0);
_.c([_.T("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"backgroundColor",null);_.c([_.g({reflectToAttribute:!0}),_.T("viewModel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GT.prototype,"optimalReadingWidthComments",null);_.c([_.uc("ytd-expander"),_.Y("design:type",Object)],GT.prototype,"expander",void 0);
_.c([_.Tw("backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GT.prototype,"updateBackgroundColor",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],GT.prototype,"useSmallAvatars",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],GT.prototype,"webWatchCompactComments",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"isReply",null);
_.c([_.T("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"authorThumbnailEndpoint",null);_.c([_.T("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"authorNameEndpoint",null);_.c([_.T("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"authorThumbnail",null);_.c([_.T("commentEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],GT.prototype,"authorTextClass",null);
_.c([_.T("commentEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],GT.prototype,"authorChannelName",null);_.c([_.T("commentEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"publishedTime",null);_.c([_.T("commentSurfaceEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"publishedTimeCommand",null);
_.c([_.T("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"contentText",null);_.c([_.Tw("contentText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GT.prototype,"resetExpander",null);_.c([_.T("commentEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GT.prototype,"shouldShowReadMoreInitially",null);
_.c([_.T("commentSharedEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],GT.prototype,"expandText",null);_.c([_.T("commentSharedEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],GT.prototype,"collapseText",null);_.c([_.T("commentEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],GT.prototype,"shouldShowTranslateButton",null);
_.c([_.T("commentEntity","commentSharedEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"translateButton",null);_.c([_.T("toolbarSurface"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],GT.prototype,"overflowMenuRenderer",null);_.c([_.g(),_.Y("design:type",Object)],GT.prototype,"editDialog",void 0);_.c([_.uc("ytd-comment-dialog-renderer"),_.Y("design:type",Object)],GT.prototype,"editCommentDialogContainer",void 0);
_.c([_.uc("ytd-comment-reply-dialog-renderer"),_.Y("design:type",Object)],GT.prototype,"editReplyDialogContainer",void 0);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],GT.prototype,"onYtNavigate",null);_.c([_.hG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],GT.prototype,"onYtCommentboxDismiss",null);
_.c([_.hG("yt-commentbox-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],GT.prototype,"onYtCommentboxResize",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-comment-view-model"})],GT);
_.y(GT,"ytd-comment-view-model",function(){if(tbs!==void 0)return tbs;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return tbs=O},{mode:_.ZB("kevlar_poly_si_batch_j025")?1:2});_.qi(_.a(function(O){var m={};return _.q("yt-sub-thread",{class:_.bE("ytSubThreadHost",(m.ytSubThreadHasButton=O.isButton,m))},_.q("div",{class:"ytSubThreadThreadline"},_.q("div",{class:"ytSubThreadConnection"}),_.q("div",{class:"ytSubThreadContinuation"}),_.q("div",{class:"ytSubThreadShadow"})),_.q("div",{class:"ytSubThreadSubThreadContent"},O.children))},"Rb"),"yt-sub-thread",{props:{isButton:_.VZ}});var BR=function(){var O=_.u.apply(this,arguments)||this;O.modern=_.V("web_modern_buttons");O.commentThreadingEnabled=_.V("web_delhi_comment_threads");O.isWatchGrid=_.V("kevlar_watch_grid");O.buttonOverrides=O.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};O.JSC$15895_spinnerEl=null;return O};
_.X(BR,_.u);_.v=BR.prototype;_.v.configureContinuationPathMap=function(){return _.V("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.v.shouldShowExpandedThreads=function(O,m){return this.commentThreadingEnabled&&m&&(O==null?void 0:O.length)>0};
_.v.shouldShowCollapsedThreads=function(O,m){return this.commentThreadingEnabled&&!m&&O};
_.v.computeThreadRenderer=function(O){return _.b(O,A$e)};
_.v.computeIsContinuationItem=function(O){return!!this.computeContinuationItemRenderer(O)};
_.v.computeButtonRenderer=function(O){return _.b(O,_.v3)};
_.v.computeContinuationItemRenderer=function(O){return _.b(O,_.GK)};
_.v.computeShowButton=function(O){var m;return!((m=this.computeContinuationItemRenderer(O))==null||!m.button)};
_.v.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]]"}}}}}};
_.v.attached=function(){this.isShowRepliesVisible=!0};
_.v.dataChanged=function(){var O=this.expanderContents;O&&(O.hidden=!0);this.isLoading=!1};
_.v.endsInContinuation=function(O){return!!O&&O.length>0&&!!this.computeContinuationItemRenderer(O[O.length-1])};
_.v.computeShouldShowHideRepliesButton=function(O,m){return!O&&m};
_.v.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.v.isLoadingChanged=function(){this.isLoading&&!this.JSC$15895_spinnerEl&&(this.JSC$15895_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.ZO(this.expanderContents).appendChild(this.JSC$15895_spinnerEl));this.JSC$15895_spinnerEl&&(this.JSC$15895_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var O;(O=this.contents)==null||O.classList.remove("reloading")}};
_.v.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var O=_.b(this.data.viewReplies,_.v3);O&&this.ytRendererBehavior.logExplicitClick(O);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.v.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var O=_.b(this.data.hideReplies,_.v3);O&&this.ytRendererBehavior.logExplicitClick(O);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.v.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var O=_.ZO(this.hostElement).querySelector("#expander-contents");O&&(O.hidden=this.isShowRepliesVisible)}};
_.v.computeAlign=function(){if(this.modern){var O;return!((O=this.data)==null?0:O.viewRepliesCreatorThumbnail)}};
_.vr.Object.defineProperties(BR.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var O,m;return this.endsInContinuation((O=this.data)==null?void 0:O.contents)||this.commentThreadingEnabled&&this.endsInContinuation((m=this.data)==null?void 0:m.subThreads)}}});
BR.prototype.isShowMoreChanged=BR.prototype.isShowMoreChanged;BR.prototype.isLoadingChanged=BR.prototype.isLoadingChanged;BR.prototype.triggerFirstContinuation=BR.prototype.triggerFirstContinuation;BR.prototype.dataChanged=BR.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],BR.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.Ww),_.Y("design:type",Object)],BR.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],BR.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],BR.prototype,"modern",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],BR.prototype,"commentThreadingEnabled",void 0);_.c([_.g(),_.Y("design:type",Boolean)],BR.prototype,"expanded",void 0);
_.c([_.g(),_.Y("design:type",Function)],BR.prototype,"toggleExpanded",void 0);_.c([_.g(),_.Y("design:type",Array)],BR.prototype,"teasers",void 0);_.c([_.g(),_.Y("design:type",Boolean)],BR.prototype,"isLoading",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],BR.prototype,"isShowRepliesVisible",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],BR.prototype,"useNewFormatting",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],BR.prototype,"isWatchGrid",void 0);
_.c([_.g(),_.Y("design:type",Object)],BR.prototype,"buttonOverrides",void 0);_.c([_.uc("#expander-contents"),_.Y("design:type",HTMLElement)],BR.prototype,"expanderContents",void 0);_.c([_.uc("ytd-continuation-item-renderer"),_.Y("design:type",Object)],BR.prototype,"continuationItemRenderer",void 0);_.c([_.uc("#contents"),_.Y("design:type",HTMLElement)],BR.prototype,"contents",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BR.prototype,"dataChanged",null);_.c([_.T("data.contents","data.subThreads.*"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],BR.prototype,"hasContinuation",null);_.c([_.hG("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BR.prototype,"triggerFirstContinuation",null);
_.c([_.Tw("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BR.prototype,"isLoadingChanged",null);_.c([_.Tw("isShowRepliesVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BR.prototype,"isShowMoreChanged",null);_.c([_.l({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],BR);
_.y(BR,"ytd-comment-replies-renderer",function(){if(r49!==void 0)return r49;var O=document.createElement("template");_.f(O,'\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, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[teasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread class="style-scope ytd-comment-replies-renderer">\n      <div class="sub-thread-content 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      </div>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="[[computeIsContinuationItem(item)]]" class="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="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="" class="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    </yt-sub-thread>\n  </template>\n</div>\n');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return r49=O},{mode:1});var J48;var Q1=function(){var O=_.u.apply(this,arguments)||this;O.isOpen=!1;O.commentDialog=null;O.useSmallAvatars=_.V("small_avatars_for_comments");O.useSmallAvatarsEngagementPanelOnly=_.V("small_avatars_for_comments_ep");O.placeholderFocusListener=null;O.hasOpenedDialog=!1;O.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return O};
_.X(Q1,_.u);_.v=Q1.prototype;_.v.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]]"}}}}}};
_.v.ready=function(){var O=this,m=_.ZO(this.hostElement).querySelector("#placeholder-area"),G=_.ZO(this.hostElement).querySelector("#simplebox-placeholder"),B=function(Q){Q.stopPropagation();Q instanceof KeyboardEvent&&Q.type==="keypress"&&Q.keyCode!==13&&Q.keyCode!==32||O.openDialog()};
this.placeholderFocusListener=B;G.addEventListener("focus",this.placeholderFocusListener);m.addEventListener("tap",B);m.addEventListener("keypress",B)};
_.v.maybeRemoveFocusEventListener=function(){var O;(O=this.data)!=null&&O.prepareAccountEndpoint&&!_.V("web_comments_simplebox_modal_focus_on_tap_ks")&&(O=_.ZO(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(O.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.v.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.v.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.V("web_comment_simplebox_resolve_polymer_command_ks")?_.XJ.instance.resolveCommand(this.data.prepareAccountEndpoint):_.fm(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var O=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);O&&this.ytdOpenPopupBehavior.openPopup(O);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.ZO(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.v.onYtCommentboxDismiss=function(O){O.stopPropagation();this.isOpen=!1};
_.v.onCreateCommentAction=function(O){this.get("createCommentAction.contents",O)&&(this.isOpen=!1)};
_.v.computeCommentDialog=function(O){return{placeholderText:O.placeholderText,authorThumbnail:O.authorThumbnail,submitButton:O.submitButton,imageButton:O.imageButton,cancelButton:O.cancelButton,emojiButton:O.emojiButton,emojis:O.emojis,emojiPicker:O.emojiPicker,aadcGuidelinesStateEntityKey:O.aadcGuidelinesStateEntityKey,openAadcDialog:O.openAadcDialog,unicodeEmojisUrl:O.unicodeEmojisUrl}};
_.v.onHideIdentityChip=function(O){_.b(O,eI$)&&this.set("data.placeholderText",_.b(O,eI$).placeholderText)};
Q1.prototype.onYtCommentboxDismiss=Q1.prototype.onYtCommentboxDismiss;Q1.prototype.dataChanged=Q1.prototype.dataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],Q1.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Q1.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Q1.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Q1.prototype,"isOpen",void 0);_.c([_.g(),_.Y("design:type",Object)],Q1.prototype,"commentDialog",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Q1.prototype,"engagementPanel",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Q1.prototype,"useSmallAvatars",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Q1.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Q1.prototype,"enableCreationBox",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Q1.prototype,"showCreateDialog",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Q1.prototype,"dataChanged",null);_.c([_.hG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Q1.prototype,"onYtCommentboxDismiss",null);_.c([_.l({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Q1);
_.y(Q1,"ytd-comment-simplebox-renderer",function(){if(J48!==void 0)return J48;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return J48=O},{mode:1});var VbC;_.lE("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var HR=function(){var O=_.u.apply(this,arguments)||this;O.addHoverEffect=_.V("swatcheroo_comments_hover_effect");O.useSmallAvatars=_.V("small_avatars_for_comments");O.threadHovered=!1;O.expanded=!1;O.removed=!1;O.teasers=[];O.actionMap=O.configureActionMap();O.toggleExpanded=function(){O.expanded=!O.expanded;!O.expanded&&_.V("web_comment_threading_scroll_on_collapse")&&_.xc(O.hostElement,"yt-scroll-to-watch-element",[O.commentElement])};
return O};
_.X(HR,_.u);_.v=HR.prototype;_.v.configureActionMap=function(){return _.V("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.v.createCommentReplyAction=function(O){O=_.b(O,dve);if(O!=null&&O.contents){var m=O.replyToCommentId,G=O.parentCommentId,B,Q=(B=this.commentViewModel)==null?void 0:B.commentId;(Q===m||Q===G&&!m)&&this.attachReply(O.contents)}};
_.v.attachReply=function(O){var m;((m=this.data)==null?0:m.replies)?(m=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+m+".continuationItemRenderer")?m===0?this.push("teasers",O):this.splice("data.replies.commentRepliesRenderer.subThreads",m,0,O):this.push("data.replies.commentRepliesRenderer.subThreads",O)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[O],viewReplies:{buttonRenderer:{text:_.rv(_.Xm("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.v.onAppendContinuationItemsActionFinished=function(){this.teasers.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.lS(this.teasers))),this.set("teasers",[]))};
_.v.removeCommentAction=function(O){O=_.b(O,N63);var m=O==null?void 0:O.commentId,G;m&&((G=this.commentViewModel)==null?void 0:G.commentId)===m&&this.maybeRemoveComment(O.actionResult)};
_.v.banAuthorAction=function(O){O=_.b(O,c$$);var m=O==null?void 0:O.commentId,G;m&&((G=this.commentViewModel)==null?void 0:G.commentId)===m&&this.maybeRemoveComment(O.actionResult)};
_.v.hideReportedCommentAction=function(O){O=_.b(O,R7o);var m=O==null?void 0:O.commentId,G;m&&((G=this.commentViewModel)==null?void 0:G.commentId)===m&&this.maybeRemoveComment(O.actionResult)};
_.v.maybeRemoveComment=function(O){O&&O.status==="STATUS_SUCCEEDED"&&(this.feedbackText=O.feedbackText||_.rv("Reply removed"),this.removed=!0)};
_.v.onTap=function(O){if(this.addHoverEffect&&!this.engagementPanel&&!_.Hu(_.$Z(O)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var m;((m=window.getSelection())==null?0:m.toString().length)||_.fm({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.v.attached=function(){var O=this;this.isSubThread&&(this.expanded=!0);var m;(m=this.commentThreadHitbox)==null||m.addEventListener("mouseover",function(){O.threadHovered=!0});
var G;(G=this.commentThreadHitbox)==null||G.addEventListener("mouseout",function(){O.threadHovered=!1});
var B;(B=this.commentThreadHitbox)==null||B.addEventListener("click",function(){O.maybeToggleExpanded()})};
_.v.maybeToggleExpanded=function(){var O,m,G,B=(O=this.data)==null?void 0:(m=O.replies)==null?void 0:(G=m.commentRepliesRenderer)==null?void 0:G.subThreads,Q;(B==null?void 0:B.length)===1&&((Q=_.b(B[0],_.GK))==null?0:Q.button)&&this.expanded||this.toggleExpanded()};
_.vr.Object.defineProperties(HR.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)!=null&&O.commentViewModel)return _.b(this.data.commentViewModel,HY2)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return _.V("web_delhi_comment_threads")&&!!((O=this.data)==null?0:(m=O.replies)==null?0:(G=m.commentRepliesRenderer)==null?0:G.subThreads)}}});
HR.prototype.onTap=HR.prototype.onTap;HR.prototype.onAppendContinuationItemsActionFinished=HR.prototype.onAppendContinuationItemsActionFinished;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],HR.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],HR.prototype,"addHoverEffect",void 0);_.c([_.g(),_.Y("design:type",Object)],HR.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],HR.prototype,"useSmallAvatars",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],HR.prototype,"isSubThread",void 0);_.c([_.uc(".thread-hitbox"),_.Y("design:type",HTMLElement)],HR.prototype,"commentThreadHitbox",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],HR.prototype,"threadHovered",void 0);_.c([_.uc("#comment"),_.Y("design:type",HTMLElement)],HR.prototype,"commentElement",void 0);_.c([_.g(),_.Y("design:type",Object)],HR.prototype,"expanded",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],HR.prototype,"removed",void 0);_.c([_.g(),_.Y("design:type",Object)],HR.prototype,"feedbackText",void 0);_.c([_.g(),_.Y("design:type",Array)],HR.prototype,"teasers",void 0);
_.c([_.hG("yt-append-continuation-items-action-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HR.prototype,"onAppendContinuationItemsActionFinished",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],HR.prototype,"commentViewModel",null);_.c([_.T("data.replies"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],HR.prototype,"hasSubThreading",null);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],HR.prototype,"engagementPanel",void 0);_.c([_.hG("tap"),_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],HR.prototype,"onTap",null);_.c([_.l({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],HR);
_.y(HR,"ytd-comment-thread-renderer",function(){if(VbC!==void 0)return VbC;var O=document.createElement("template");_.f(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer data="[[data.replies.commentRepliesRenderer]]" expanded="[[expanded]]" teasers="[[teasers]]" toggle-expanded="[[toggleExpanded]]" 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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return VbC=O},{mode:_.ZB("kevlar_poly_si_batch_j025")?1:2});var bDj;var vR=function(){var O=_.u.apply(this,arguments)||this;O.compactHeader=_.V("web_watch_compact_comments_header");O.hidePanelButton=!1;O.isPostSchedulingEnabled=_.V("enable_post_scheduling");O.hasFinishedStamping=!1;O.JSC$15918_handleOpenPostCommentDialogActionAfterStamp=!1;O.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return O};
_.X(vR,_.u);_.v=vR.prototype;
_.v.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"}}}};
_.v.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.v.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15918_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.v.onYtServiceRequestSent=function(O,m){if(!_.V("kevlar_command_handler")&&m.actions)for(O=0;O<m.actions.length;O++){var G=m.actions[O];_.b(G,tB8)&&_.ZO(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.b(G,tB8))}};
_.v.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var O;if(this.getPrefilledBackstagePostDialog((O=this.data)==null?void 0:O.actions)){_.ZO(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var m=_.ZO(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;m&&_.QA(this,function(){m.focus();m.openDialog&&m.openDialog()})}}else this.hasActionsChange=!0};
_.v.computeIsBackstage=function(O){return O};
_.v.onYtCommentboxDismiss=function(){_.ZO(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.v.removePrefilledDialog=function(O){if(O==null?0:O.actions){for(var m=O.actions.length-1;m>=0;m--){var G=void 0;((G=_.b(O.actions[m],n4$))==null?0:G.dialog)&&delete O.actions[m]}this.set("data",void 0);this.set("data",O)}};
_.v.getPrefilledBackstagePostDialog=function(O){if(O)for(var m=0;m<O.length;m++){var G=O[m],B=void 0;if((B=_.b(G,n4$))==null?0:B.dialog)return _.b(G,n4$).dialog}return null};
_.v.computeBackstagePostDialog=function(O){return O&&(this.getPrefilledBackstagePostDialog(O.actions)||O.createRenderer)};
_.v.dataChanged=function(){if(this.data){var O=this.data.customEmojis,m=this.data.unicodeEmojisUrl;_.UL.clear();m&&_.Ug9(_.UL,m);O&&_.UL.load(O)}};
_.v.handleSignalActionOpenPostCommentDialogAction=function(){var O=_.ZO(this.hostElement).querySelector("ytd-comment-simplebox-renderer");O?O.openDialog():this.JSC$15918_handleOpenPostCommentDialogActionAfterStamp=!0};
_.v.onPostHeaderTap=function(){var O;((O=this.data)==null?0:O.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.vr.Object.defineProperties(vR.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.V("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B,Q,H,M;return!this.hidePanelButton&&_.V("kevlar_watch_comments_panel_button")&&((M=_.b((O=this.data)==null?void 0:(m=O.sortMenu)==null?void 0:(G=m.sortFilterSubMenuRenderer)==null?void 0:(B=G.subMenuItems)==null?void 0:(Q=B[0])==null?void 0:(H=Q.serviceEndpoint)==null?void 0:H.commandMetadata,_.bP))==null?void 0:M.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Xm("MINIPLAYER_EXPAND_LABEL"),text:_.Qg(_.Xm("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
vR.prototype.dataChanged=vR.prototype.dataChanged;vR.prototype.onYtCommentboxDismiss=vR.prototype.onYtCommentboxDismiss;vR.prototype.observePrefilledBackstagePostDialog=vR.prototype.observePrefilledBackstagePostDialog;vR.prototype.onYtServiceRequestSent=vR.prototype.onYtServiceRequestSent;vR.prototype.onStampFinished=vR.prototype.onStampFinished;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],vR.prototype,"ytComponentBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],vR.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],vR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],vR.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],vR.prototype,"compactHeader",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vR.prototype,"engagementPanel",void 0);_.c([_.g(),_.Y("design:type",Object)],vR.prototype,"hidePanelButton",void 0);_.c([_.g({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],vR.prototype,"isBackstage",void 0);_.c([_.g({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.Y("design:type",Object)],vR.prototype,"backstagePostDialog",void 0);
_.c([_.g(),_.Y("design:type",Object)],vR.prototype,"isPostSchedulingEnabled",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data","showCommentsPanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vR.prototype,"useSpaceBetween",null);_.c([_.g({reflectToAttribute:!0}),_.T("data","hidePanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vR.prototype,"showCommentsPanelButton",null);
_.c([_.T("data","showCommentsPanelButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],vR.prototype,"commentsPanelButtonData",null);_.c([_.hG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vR.prototype,"onStampFinished",null);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],vR.prototype,"onYtServiceRequestSent",null);
_.c([_.Tw("data.actions"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vR.prototype,"observePrefilledBackstagePostDialog",null);_.c([_.hG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],vR.prototype,"onYtCommentboxDismiss",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vR.prototype,"dataChanged",null);
_.c([_.l({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],vR);
_.y(vR,"ytd-comments-header-renderer",function(){if(bDj!==void 0)return bDj;var O=document.createElement("template");_.f(O,'\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" on-click="onPostHeaderTap" 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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return bDj=O},{mode:1});var nC3;var Kv=function(){return _.u.apply(this,arguments)||this};
_.X(Kv,_.u);_.c([_.g(),_.Y("design:type",Object)],Kv.prototype,"data",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.c([_.l({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],Kv);
_.y(Kv,"ytd-destination-button-renderer",function(){if(nC3!==void 0)return nC3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return nC3=O},{mode:1});var Xyo;var $Q=function(){var O=_.u.apply(this,arguments)||this;O.isRichGrid=!1;O.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return O};
_.X($Q,_.u);_.v=$Q.prototype;_.v.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.v.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.v.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.v.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var O;if((O=this.data)==null||!O.isExpanded){O=this.hostElement.clientWidth;var m;if(O&&(m=this.data)!=null&&m.destinationButtons){m=Math.floor((O+4)/214);O=this.data.destinationButtons.length;var G=Math.ceil(O/m);this.fullyVisibleRows=O%m===1&&G===2?1:Math.min(G,2);this.isShowMoreVisible=this.fullyVisibleRows<G}}}};
_.v.updateRichGridDestinationButtonsVisibility=function(){var O,m;if(this.isRichGrid&&((O=this.data)==null||!O.isExpanded)&&(m=this.data)!=null&&m.destinationButtons){O=this.richGridItemsPerRow+1;m=this.data.destinationButtons.length;var G=Math.ceil(m/O);this.fullyVisibleRows=m%O===1&&G===2?1:Math.min(G,2);this.isShowMoreVisible=this.fullyVisibleRows<G}};
_.v.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
$Q.prototype.updateRichGridDestinationButtonsVisibility=$Q.prototype.updateRichGridDestinationButtonsVisibility;_.c([_.g(),_.Y("design:type",Object)],$Q.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Number)],$Q.prototype,"fullyVisibleRows",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],$Q.prototype,"isShowMoreVisible",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],$Q.prototype,"isRichGrid",void 0);
_.c([_.g({selector:_.cq,value:0}),_.Y("design:type",Number)],$Q.prototype,"richGridItemsPerRow",void 0);_.c([_.g(),_.Y("design:type",Object)],$Q.prototype,"gridStateActionMap",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],$Q.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],$Q.prototype,"ytdReduxBehavior",void 0);_.c([_.Tw("data","richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$Q.prototype,"updateRichGridDestinationButtonsVisibility",null);_.c([_.l({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],$Q);
_.y($Q,"ytd-destination-shelf-renderer",function(){if(Xyo!==void 0)return Xyo;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Xyo=O},{mode:1});var fJo;var M8=function(){return _.u.apply(this,arguments)||this};
_.X(M8,_.u);M8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],M8.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],M8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],M8.prototype,"data",void 0);_.c([_.l({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],M8);
_.y(M8,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(fJo!==void 0)return fJo;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return fJo=O},{mode:1});var hUe;var rF=function(){var O=_.u.apply(this,arguments)||this;O.disableAnimation=!1;O.isSlimlineSurvey=!1;O.isSlimlineSurveyFollowUp=!1;O.isShortsStyle=!1;return O};
_.X(rF,_.u);rF.prototype.onTap=function(O){O.preventDefault();this.data&&_.iP(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.vr.Object.defineProperties(rF.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 O,m,G,B,Q;return((O=this.data)==null?0:O.checked)?(m=this.data)==null?void 0:(G=m.onStateIcon)==null?void 0:G.iconType:(B=this.data)==null?void 0:(Q=B.defaultStateIcon)==null?void 0:Q.iconType}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],rF.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],rF.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],rF.prototype,"disableAnimation",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],rF.prototype,"isSlimlineSurvey",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],rF.prototype,"isSlimlineSurveyFollowUp",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],rF.prototype,"isShortsStyle",void 0);_.c([_.T("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rF.prototype,"isAnimatedIcon",null);
_.c([_.T("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],rF.prototype,"iconSize",null);_.c([_.T("isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rF.prototype,"isDarkTheme",null);_.c([_.T("data.checked"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rF.prototype,"icon",null);_.c([_.l({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],rF);
_.y(rF,"ytd-rating-survey-option-renderer",function(){if(hUe!==void 0)return hUe;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return hUe=O},{mode:2});var TAH;var R5=function(){var O=_.u.apply(this,arguments)||this;O.firstResponseText=null;O.lastResponseText=null;O.selectedNonStarOption=null;O.hideOptions=!1;O.hideUndoButton=!0;O.disableAnimation=!1;O.showResponseRangeText=!1;O.selectedRatingIndex=-1;O.isSlimlineSurvey=!1;O.isSlimlineSurveyFollowUp=!1;O.isShortsStyle=!1;O.slimlineSurveyRatingSelectedIndex=-1;return O};
_.X(R5,_.u);_.v=R5.prototype;_.v.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.v.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.v.onOptionChange=function(O,m){var G=this;O=m.onStateIcon&&m.defaultStateIcon&&m.onStateIcon.iconType===m.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(M,R){M.responseText===m.responseText?G.isSlimlineSurvey?(G.selectedRatingIndex=R,G.ytdReduxBehavior.dispatch(WL8(R))):(G.setSurveyOptionValue(R,!0,"checked"),G.setSurveyOptionValue(R,!0,"selected")):(G.setSurveyOptionValue(R,!1,"checked"),G.setSurveyOptionValue(R,
!1,"selected"))});
else if(O)this.selectedNonStarOption=m,this.hideOptions=!0;else{var B=this.ytRendererBehavior.getSimpleString(m.responseText),Q=!0;this.getOptionRenderers().forEach(function(M,R){G.setSurveyOptionValue(R,Q,"checked");G.setSurveyOptionValue(R,!1,"selected");G.ytRendererBehavior.getSimpleString(M.responseText)===B&&(Q=!1,G.setSurveyOptionValue(R,!0,"selected"))})}O=m.responseEndpoint;
var H;m.followUpCommand&&(H=_.b(m.followUpCommand,bT3));this.isSlimlineSurvey?(this.resetComponent(),_.xc(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.xc(this.hostElement,"ytd-inline-survey-rating-select-action",[O,H])};
_.v.showSelectedOption=function(){var O=this;_.ln.addJob(function(){var m=O.getOptionRenderers()[O.slimlineSurveyRatingSelectedIndex];O.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),m)},8,100)};
_.v.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(O){var m;return(m=_.b(O,X1e))!=null?m:{}}):[]};
_.v.onUndoClick=function(){this.resetComponent();_.xc(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.v.setSurveyOptionValue=function(O,m,G){this.notifyPath("data.ratings."+O+".ratingSurveyOptionRenderer."+G);this.set("data.ratings."+O+".ratingSurveyOptionRenderer."+G,m)};
_.v.resetComponent=function(){var O=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var m=this.getOptionRenderers(),G,B;this.firstResponseText=(B=(G=m[0])==null?void 0:G.responseText)!=null?B:null;var Q,H;this.lastResponseText=(H=(Q=m[m.length-1])==null?void 0:Q.responseText)!=null?H:null;m.forEach(function(M,R){O.setSurveyOptionValue(R,!1,"checked");O.setSurveyOptionValue(R,!1,"selected")})};
_.vr.Object.defineProperties(R5.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
R5.prototype.onOptionChange=R5.prototype.onOptionChange;R5.prototype.dataChanged=R5.prototype.dataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],R5.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],R5.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],R5.prototype,"firstResponseText",void 0);_.c([_.g(),_.Y("design:type",Object)],R5.prototype,"lastResponseText",void 0);_.c([_.g(),_.Y("design:type",Object)],R5.prototype,"selectedNonStarOption",void 0);_.c([_.g(),_.Y("design:type",Object)],R5.prototype,"hideOptions",void 0);_.c([_.g(),_.Y("design:type",Object)],R5.prototype,"hideUndoButton",void 0);_.c([_.g(),_.Y("design:type",Object)],R5.prototype,"disableAnimation",void 0);
_.c([_.g(),_.Y("design:type",Object)],R5.prototype,"showResponseRangeText",void 0);_.c([_.g(),_.Y("design:type",Object)],R5.prototype,"selectedRatingIndex",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],R5.prototype,"isSlimlineSurvey",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],R5.prototype,"isSlimlineSurveyFollowUp",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],R5.prototype,"isShortsStyle",void 0);_.c([_.g({selector:function(O){return O.ui.slimlineSurveyRatingSelectedIndex}}),
_.Y("design:type",Object)],R5.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.c([_.T("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],R5.prototype,"isSingleSelect",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],R5.prototype,"dataChanged",null);
_.c([_.hG("ytd-rating-survey-option-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],R5.prototype,"onOptionChange",null);_.c([_.l({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],R5);
_.y(R5,"ytd-rating-survey-renderer",function(){if(TAH!==void 0)return TAH;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return TAH=O},{mode:1});var gCm;var uej;var jgC;var sbN=(VQ.FIRSTDAYOFWEEK+1)%7,IJo=function(O,m,G,B){var Q="";if(B.selection&&dFf(B.selection))ZL(O,B.selection)&&(Q+=" selected");else if(B.selection&&w55(B.selection)){var H=B.selection.selectionState||"START_DATE";ZL(O,B.selection.start)&&(Q+=" period-start ",H==="START_DATE"&&(Q+="selected"));ZL(O,B.selection.end)&&(Q+=" period-end ",H==="END_DATE"&&(Q+="selected"));zU(O,B.selection.start)||zU(B.selection.end,O)||(Q+=" highlighted")}if(zU(m,B.start)||zU(B.end,m))Q+=" disabled";B.circleToday&&
ZL(m,G)&&(Q+=" today");return Q};var iY=function(){return _.u.apply(this,arguments)||this};
_.X(iY,_.u);_.v=iY.prototype;_.v.attached=function(){var O=this;_.QA(this,function(){O.JSC$15952_calendarMain.scrollHeight>0&&(O.calendarConfig.selection?O.scrollToDate(eDY(O.calendarConfig.selection)):O.scrollToDate(O.calendarConfig.end))})};
_.v.updateSelection=function(O){O=Nqe(Object.assign({},this.calendarConfig,{selection:O}),IJo);this.splice.apply(this,["renderData.months",0,O.length].concat(_.lS(O)))};
_.v.scrollToDate=function(O){this.renderData&&(O=PZI(O,this.renderData),O!==void 0&&this.JSC$15952_calendarMain.scrollToIndex(O))};
_.v.scrollToNextMonth=function(){this.JSC$15952_calendarMain.scrollToIndex(this.JSC$15952_calendarMain.firstVisibleIndex+1)};
_.v.scrollToPrevMonth=function(){this.JSC$15952_calendarMain.firstVisibleIndex===0&&this.JSC$15952_calendarMain.scrollTo(0,0);this.JSC$15952_calendarMain.scrollToIndex(this.JSC$15952_calendarMain.firstVisibleIndex-1)};
_.v.handleDayClick=function(O){_.xc(this.hostElement,"ytd-calendar-date-clicked",[O.model.day.date])};
_.v.handleDayMouseDown=function(O){O.preventDefault();_.xc(this.hostElement,"ytd-calendar-date-mousedown",[O.model.day.date])};
_.v.handleDayMouseUp=function(O){_.xc(this.hostElement,"ytd-calendar-date-mouseup",[O.model.day.date])};
_.v.handleDayMouseEnter=function(O){O.preventDefault();_.xc(this.hostElement,"ytd-calendar-date-mouseenter",[O.model.day.date])};
_.v.handleDayMouseLeave=function(O){_.xc(this.hostElement,"ytd-calendar-date-mouseleave",[O.model.day.date])};
_.vr.Object.defineProperties(iY.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var O=this.calendarConfig,m=IJo;m=m===void 0?IJo:m;for(var G=[],B=0;B<7;B++)G.push(VQ.NARROWWEEKDAYS[(B+sbN)%7]);return{months:Nqe(O,m),daysOfWeekLabel:G}}}});
_.c([_.g(),_.Y("design:type",Object)],iY.prototype,"calendarConfig",void 0);_.c([_.uc("#calendar-main"),_.Y("design:type",Object)],iY.prototype,"JSC$15952_calendarMain",void 0);_.c([_.T("calendarConfig"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],iY.prototype,"renderData",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],iY);
_.y(iY,"ytd-scrollable-calendar",function(){if(jgC!==void 0)return jgC;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return jgC=O},{mode:2});var py$;var SCo;var xQ=function(){var O=_.u.apply(this,arguments)||this;O.hideCharCounter=!1;O.hideLabel=!1;O.noLabelFloat=!1;O.autoValidate=!0;O.invalid=!1;O.disabled=!1;O.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return O};
_.X(xQ,_.u);_.v=xQ.prototype;_.v.reset=function(O){this.value=O&&this.data?this.data.value=O:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.v.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.v.focusTextInput=function(){this.input.focus()};
_.v.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()};
_.v.valueChanged=function(){var O,m;if(((O=this.data)==null?0:O.value)||((m=this.data)==null?void 0:m.value)==="")this.value=this.data.value;else{var G;((G=this.data)==null?void 0:G.value)!==void 0||this.value||(this.value="")}};
_.v.computeLabel=function(O,m){return m?"":_.HX(O)};
_.v.computeAriaLabel=function(O,m){return m?_.HX(O):""};
_.v.computeErrorMessage=function(O,m,G,B){!O&&m?O=G||this.strings.REQUIRED_LABEL:(O=_.HX(B),O=_.is(O,"&")?"document"in _.Qf?AzU(O):O$e(O):O);return O};
_.v.computeType=function(O){return O==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.v.onTextValueChanged=function(O){this.value=O.detail.value;var m;(m=this.onValueChanged)==null||m.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.v.handleUpdateTextInputFormFieldRendererCommand=function(O){(O=_.b(O,Y69))&&this.data&&this.data.id===O.id&&(O.invalid!==void 0&&(this.invalid=O.invalid),O.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",O.invalidValueErrorMessage))};
_.v.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("value-changed",this.value))};
_.v.updateInvalidFromBinding=function(O){this.invalid=O.detail.value};
_.vr.Object.defineProperties(xQ.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var O;return!((O=this.data)==null||!O.isMultiline)}}});
xQ.prototype.valueChangedForBinding=xQ.prototype.valueChangedForBinding;xQ.prototype.valueChanged=xQ.prototype.valueChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],xQ.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],xQ.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],xQ.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],xQ.prototype,"value",void 0);_.c([_.g(),_.Y("design:type",String)],xQ.prototype,"pattern",void 0);_.c([_.g(),_.Y("design:type",String)],xQ.prototype,"errorMessage",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],xQ.prototype,"componentStyle",void 0);_.c([_.g(),_.Y("design:type",Object)],xQ.prototype,"hideCharCounter",void 0);
_.c([_.g(),_.Y("design:type",Object)],xQ.prototype,"hideLabel",void 0);_.c([_.g(),_.Y("design:type",Object)],xQ.prototype,"noLabelFloat",void 0);_.c([_.g(),_.Y("design:type",Function)],xQ.prototype,"onValueChanged",void 0);_.c([_.g(),_.Y("design:type",Boolean)],xQ.prototype,"isMultilineOverride",void 0);_.c([_.g(),_.Y("design:type",Object)],xQ.prototype,"autoValidate",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],xQ.prototype,"invalid",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],xQ.prototype,"disabled",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],xQ.prototype,"enableOverlayTheme",void 0);_.c([_.g({value:{REQUIRED_LABEL:_.Xm("REQUIRED_LABEL",void 0,"Required")}}),_.Y("design:type",Object)],xQ.prototype,"strings",void 0);_.c([_.uc("#input"),_.Y("design:type",Object)],xQ.prototype,"input",void 0);
_.c([_.T("data","isMultilineOverride"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xQ.prototype,"isMultiline",null);_.c([_.Si("data.value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xQ.prototype,"valueChanged",null);_.c([_.Tw("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xQ.prototype,"valueChangedForBinding",null);_.c([_.DO({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],xQ);
_.y(xQ,"yt-text-input-form-field-renderer",function(){if(SCo===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;py$===void 0&&(py$=document.createElement("template"));var B=py$;G.call(m,B.content.cloneNode(!0),O.content.firstChild);SCo=O}O=SCo;return O},{mode:2});var q8=function(){var O=_.u.apply(this,arguments)||this;O.data=void 0;O.selectionState="START_DATE";O.isStartDateInvalid=!1;O.isEndDateInvalid=!1;O.autoapply=!1;O.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 O};
_.X(q8,_.u);_.v=q8.prototype;_.v.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"}}}}};
_.v.focus=function(){this.startDateInput.focus()};
_.v.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:JI(this.data.selection.start),end:JI(this.data.selection.end)})};
_.v.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.v.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.d8(this.selectionState)}};
_.v.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.v.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.v.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.v.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var O=this.calendar.calendarConfig,m=O.end;O=APO({start:O.start,end:this.endDate||m},this.startDateInput.value||"");this.isStartDateInvalid=!O.isValid;O.isValid&&(O=O.value,this.selection=this.endDate?{start:O,end:this.endDate}:O,this.calendar.scrollToDate(O));this.updateInvalidState()}};
_.v.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var O=this.calendar.calendarConfig,m=O.start;O=APO({start:this.startDate||m,end:O.end},this.endDateInput.value||"");this.isEndDateInvalid=!O.isValid;O.isValid&&(O=O.value,this.selection={start:this.startDate,end:O},this.calendar.scrollToDate(O));this.updateInvalidState()}};
_.v.handleCalendarDateClicked=function(O){var m=this.selection&&eDY(this.selection),G=this.selection&&DFs(this.selection);m&&!zU(O,m)&&this.selectionState==="END_DATE"?(this.selection={start:m,end:O},this.selectionState="START_DATE"):(G&&!zU(G,O)?this.selection={start:O,end:G}:this.selection=O,this.selectionState="END_DATE")};
_.v.handleCalendarDateMouseDown=function(O){this.selection&&!dFf(this.selection)&&(this.dragPivot=ZL(O,this.selection.start)?this.selection.end:ZL(O,this.selection.end)?this.selection.start:O)};
_.v.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.v.handleCalendarDateMouseEnter=function(O){this.dragPivot&&(this.selection={start:function(m,G){return zU(m,G)?m:G}(this.dragPivot,O),
end:function(m,G){return zU(m,G)?G:m}(this.dragPivot,O)},this.dragPivot||(this.selectionState="START_DATE"))};
_.v.handleCalendarDateMouseLeave=function(){};
_.v.handleCalendarSubmitDateRange=function(){this.selection&&!dFf(this.selection)&&_.xc(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.v.updateInvalidState=function(){var O=function(m,G){G?m.setAttribute("invalid",""):m.removeAttribute("invalid")};
O(this.startDateInput,this.isStartDateInvalid);O(this.endDateInput,this.isEndDateInvalid)};
_.v.updateDateStrings=function(){this.selection&&(dFf(this.selection)?YV5(this.selection):(YV5(this.selection.start),YV5(this.selection.end)))};
_.v.updateCalendarSelection=function(O){this.calendar.updateSelection(Object.assign({},O,{selectionState:this.selectionState}))};
_.v.updateIsStartDateInvalidFromBinding=function(O){this.isStartDateInvalid=O.detail.value};
_.v.updateIsEndDateInvalidFromBinding=function(O){this.isEndDateInvalid=O.detail.value};
_.v.updateStartDateStringFromBinding=function(){};
_.v.updateEndDateStringFromBinding=function(){};
_.vr.Object.defineProperties(q8.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:JI(this.data.dateRangeStart),end:JI(this.data.dateRangeEnd),selection:{start:JI(this.data.selection.start),end:JI(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&eDY(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&DFs(this.selection)}}});
q8.prototype.resetTextboxes=q8.prototype.resetTextboxes;q8.prototype.observeSelection=q8.prototype.observeSelection;q8.prototype.dataChanged=q8.prototype.dataChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],q8.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],q8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.uc("#calendar"),_.Y("design:type",Object)],q8.prototype,"calendar",void 0);
_.c([_.uc("#start-date"),_.Y("design:type",Object)],q8.prototype,"startDateInput",void 0);_.c([_.uc("#end-date"),_.Y("design:type",Object)],q8.prototype,"endDateInput",void 0);_.c([_.g(),_.Y("design:type",Object)],q8.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],q8.prototype,"selection",void 0);_.c([_.g(),_.Y("design:type",String)],q8.prototype,"selectionState",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],q8.prototype,"calendarConfig",null);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],q8.prototype,"errorMessage",null);_.c([_.T("selection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],q8.prototype,"startDate",null);_.c([_.T("selection"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],q8.prototype,"endDate",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],q8.prototype,"dataChanged",null);
_.c([_.Tw("selection","selectionState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],q8.prototype,"observeSelection",null);_.c([_.Tw("selectionState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],q8.prototype,"resetTextboxes",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],q8);
_.y(q8,"ytd-date-period-picker-renderer",function(){if(uej!==void 0)return uej;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return uej=O},{mode:1});var Ul=function(){var O=_.u.apply(this,arguments)||this;var m={};O.actionMap=(m["ytd-date-period-picker-apply"]="handleDateRangeUpdated",m);return O};
_.X(Ul,_.u);Ul.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Ul.prototype.handleDateRangeUpdated=function(){};
_.c([_.g(),_.Y("design:type",Object)],Ul.prototype,"data",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Ul.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ul.prototype,"rendererstamperBehavior",void 0);_.c([_.l({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Ul);
_.y(Ul,"ytd-report-history-section-header-renderer",function(){if(gCm!==void 0)return gCm;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return gCm=O},{mode:1});var EC2;var LJ_;var CJm;var tD=function(){return _.u.apply(this,arguments)||this};
_.X(tD,_.u);_.vr.Object.defineProperties(tD.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?0:(m=O.icon)==null?0:m.iconType)?_.bK(this.data.icon.iconType):""}}});
_.c([_.g(),_.Y("design:type",Object)],tD.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],tD.prototype,"icon",null);_.c([_.l({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],tD);
_.y(tD,"ytd-report-history-table-text-cell-renderer",function(){if(CJm!==void 0)return CJm;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return CJm=O},{mode:1});var WR=function(){return _.u.apply(this,arguments)||this};
_.X(WR,_.u);WR.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],WR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],WR.prototype,"data",void 0);_.c([_.l({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],WR);
_.y(WR,"ytd-report-history-table-reason-cell-renderer",function(){if(LJ_!==void 0)return LJ_;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return LJ_=O},{mode:1});var ZQ=function(){return _.u.apply(this,arguments)||this};
_.X(ZQ,_.u);ZQ.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ZQ.prototype,"rendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ZQ.prototype,"data",void 0);_.c([_.l({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],ZQ);
_.y(ZQ,"ytd-report-history-table-cell-renderer",function(){if(EC2!==void 0)return EC2;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
return EC2=O},{mode:1});var oC9;var zT=function(){var O=_.u.apply(this,arguments)||this;O.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 O};
_.X(zT,_.u);zT.prototype.onDataChanged=function(){var O;if((O=this.data)==null?0:O.style)this.componentStyle=this.getStyleName(this.data.style)};
zT.prototype.getCellForColumn=function(O){return this.cells.find(function(m){var G;return((G=_.b(m==null?void 0:m.cell,Tk3)||_.b(m==null?void 0:m.cell,hbu))==null?void 0:G.columnId)===O.type})};
zT.prototype.getClassForColumn=function(O){switch(O){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
zT.prototype.getStyleName=function(O){switch(O){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.vr.Object.defineProperties(zT.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var O;return(((O=this.data)==null?void 0:O.cells)||[]).map(function(m){return _.b(m,fV_)})}}});
zT.prototype.onDataChanged=zT.prototype.onDataChanged;_.c([_.g(),_.Y("design:type",Object)],zT.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Array)],zT.prototype,"columnRenderData",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],zT.prototype,"componentStyle",void 0);_.c([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],zT.prototype,"cells",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zT.prototype,"onDataChanged",null);_.c([_.l({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],zT);
_.y(zT,"ytd-report-history-table-row-renderer",function(){if(oC9!==void 0)return oC9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return oC9=O},{mode:1});var lJ9;var aJ3;var OVs={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},mHp={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var JD=function(){return _.u.apply(this,arguments)||this};
_.X(JD,_.u);JD.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"}}}}}};
JD.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.vr.Object.defineProperties(JD.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.columns)?vbz(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return QVI(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var O=this.tableSpec,m=OVs;m=m===void 0?mHp:m;m=HVs(O.columnDimensions,O.columnsToShow||[],m);O=0;m=_.K(m);for(var G=m.next();!G.done;G=m.next())G=G.value,O+=G.minWidth+G.paddingLeft+G.paddingRight;return O}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.c([_.h(_.Ww),_.Y("design:type",Object)],JD.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],JD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],JD.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],JD.prototype,"tableSpec",null);_.c([_.T("tableSpec"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],JD.prototype,"columnRenderData",null);
_.c([_.T("tableSpec"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],JD.prototype,"totalMinWidth",null);_.c([_.T("totalMinWidth"),_.Y("design:type",String),_.Y("design:paramtypes",[])],JD.prototype,"tableWidthStyle",null);_.c([_.l({is:"ytd-table-renderer",disableElementRegistration:!0})],JD);
_.y(JD,"ytd-table-renderer",function(){if(aJ3!==void 0)return aJ3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return aJ3=O},{mode:1});var V1=function(){return _.u.apply(this,arguments)||this};
_.X(V1,_.u);V1.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],V1.prototype,"data",void 0);_.c([_.l({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],V1);
_.y(V1,"ytd-report-reason-history-modal-renderer",function(){if(lJ9!==void 0)return lJ9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return lJ9=O},{mode:1});var k23;var y49;var c4o;var bY=function(){return _.u.apply(this,arguments)||this};
_.X(bY,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],bY.prototype,"data",void 0);_.c([_.l({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],bY);
_.y(bY,"ytd-profile-column-stats-entry-renderer",function(){if(c4o!==void 0)return c4o;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return c4o=O},{mode:1});var YC3;var nv=function(){return _.u.apply(this,arguments)||this};
_.X(nv,_.u);nv.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],nv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],nv.prototype,"data",void 0);_.c([_.l({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],nv);
_.y(nv,"ytd-profile-column-stats-renderer",function(){if(YC3!==void 0)return YC3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return YC3=O},{mode:1});var da$;var Xi=function(){return _.u.apply(this,arguments)||this};
_.X(Xi,_.u);_.vr.Object.defineProperties(Xi.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.useThumbnailSize)return 80;var m,G;O=(m=this.data)==null?void 0:(G=m.thumbnail)==null?void 0:G.thumbnails;var B;return O&&((B=O[0])==null?void 0:B.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.useThumbnailSize)return 80;var m,G;O=(m=this.data)==null?void 0:(G=m.thumbnail)==null?void 0:G.thumbnails;var B;return O&&((B=O[0])==null?void 0:B.height)||80}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Xi.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Xi.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],Xi.prototype,"componentStyle",void 0);_.c([_.T("data.useThumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xi.prototype,"thumbnailWidth",null);
_.c([_.T("data.useThumbnailSize"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xi.prototype,"thumbnailHeight",null);_.c([_.l({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Xi);
_.y(Xi,"ytd-profile-column-user-info-renderer",function(){if(da$!==void 0)return da$;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return da$=O},{mode:1});var fv=function(){return _.u.apply(this,arguments)||this};
_.X(fv,_.u);fv.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],fv.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],fv.prototype,"componentStyle",void 0);_.c([_.l({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],fv);
_.y(fv,"ytd-profile-column-renderer",function(){if(y49!==void 0)return y49;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return y49=O},{mode:1});var hD=function(){var O=_.u.apply(this,arguments)||this;O.componentStyle="NON_CENTERED_PROFILE";return O};
_.X(hD,_.u);hD.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
hD.prototype.getIcon=function(O){return O?"settings:"+O.toLowerCase():null};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],hD.prototype,"data",void 0);_.c([_.l({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],hD);
_.y(hD,"ytd-page-introduction-renderer",function(){if(k23!==void 0)return k23;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return k23=O},{mode:1});var wyC;var TT=function(){return _.u.apply(this,arguments)||this};
_.X(TT,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],TT.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],TT.prototype,"data",void 0);_.c([_.l({is:"ytd-report-description-renderer",disableElementRegistration:!0})],TT);
_.y(TT,"ytd-report-description-renderer",function(){if(wyC!==void 0)return wyC;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return wyC=O},{mode:1});var eUo;var Da8;var gF=function(){return _.u.apply(this,arguments)||this};
_.X(gF,_.u);gF.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],gF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],gF.prototype,"data",void 0);_.c([_.l({is:"ytd-video-report-renderer",disableElementRegistration:!0})],gF);
_.y(gF,"ytd-video-report-renderer",function(){if(Da8!==void 0)return Da8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Da8=O},{mode:1});var sg3;_.lE("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.lE("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var uY=function(){return _.u.apply(this,arguments)||this};
_.X(uY,_.u);uY.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]]"}}}}}};
uY.prototype.computeMessageStyle=function(O){return O};
uY.prototype.computeButtonOverride=function(O){var m;if((O==null?0:(m=O.style)==null?0:m.value)&&O.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],uY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],uY.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],uY.prototype,"shelf",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],uY.prototype,"panel",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.Y("design:type",Boolean)],uY.prototype,"componentStyle",void 0);_.c([_.g({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],uY.prototype,"buttonOverride",void 0);_.c([_.l({is:"ytd-message-renderer",disableElementRegistration:!0})],uY);
_.y(uY,"ytd-message-renderer",function(){if(sg3!==void 0)return sg3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return sg3=O},{mode:1});var j$=function(){return _.u.apply(this,arguments)||this};
_.X(j$,_.u);j$.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"}}}};
j$.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
j$.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.vr.Object.defineProperties(j$.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var O,m;return!!(((O=this.data)==null?0:O.header)&&((m=this.data)==null?0:m.table))}}});
j$.prototype.onRequestError=j$.prototype.onRequestError;_.c([_.h(_.Ww),_.Y("design:type",Object)],j$.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],j$.prototype,"data",void 0);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],j$.prototype,"isUnifiedReportHistory",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j$.prototype,"onRequestError",null);_.c([_.l({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],j$);
_.y(j$,"ytd-report-history-section-renderer",function(){if(eUo!==void 0)return eUo;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return eUo=O},{mode:1});var NA9;var I5=function(){var O=_.u.apply(this,arguments)||this;O.answerExpanded=!1;return O};
_.X(I5,_.u);I5.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],I5.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],I5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],I5.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],I5.prototype,"answerExpanded",void 0);_.c([_.l({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],I5);
_.y(I5,"ytd-handles-claiming-faq-renderer",function(){if(NA9!==void 0)return NA9;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return NA9=O},{mode:1});var PJ_;var FJ3=function(){return _.u.apply(this,arguments)||this};
_.X(FJ3,_.u);_.c([_.g(),_.Y("design:type",Object)],FJ3.prototype,"data",void 0);_.c([_.l({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],FJ3);
_.y(FJ3,"ytd-handles-claiming-faq-section-renderer",function(){if(PJ_!==void 0)return PJ_;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return PJ_=O},{mode:1});var A42;var pv=function(){var O=_.u.apply(this,arguments)||this;O.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";O.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";O.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";O.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";O.leftSquiggly=O.leftSquigglyLight;O.rightSquiggly=O.rightSquigglyLight;
O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};O.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return O};
_.X(pv,_.u);_.v=pv.prototype;_.v.updateLeftSquigglyStyle=function(){_.n7(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.v.updateRightSquigglyStyle=function(){_.n7(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.v.ready=function(){var O=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(O)};
_.v.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&(this.set("isDarkTheme",O),O?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
pv.prototype.updateRightSquigglyStyle=pv.prototype.updateRightSquigglyStyle;pv.prototype.updateLeftSquigglyStyle=pv.prototype.updateLeftSquigglyStyle;_.c([_.g(),_.Y("design:type",Object)],pv.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],pv.prototype,"isDarkTheme",void 0);_.c([_.g(),_.Y("design:type",String)],pv.prototype,"leftSquiggly",void 0);_.c([_.g(),_.Y("design:type",String)],pv.prototype,"rightSquiggly",void 0);
_.c([_.Tw("leftSquiggly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pv.prototype,"updateLeftSquigglyStyle",null);_.c([_.Tw("rightSquiggly"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pv.prototype,"updateRightSquigglyStyle",null);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],pv.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],pv.prototype,"actionButtonOverride",void 0);_.c([_.l({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],pv);
_.y(pv,"ytd-handles-claiming-header-renderer",function(){if(A42!==void 0)return A42;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return A42=O},{mode:1});var O0m;var S$=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};O.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";O.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";O.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";O.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
O.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";O.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";O.image0SquigglyBackground=O.image0LightSquigglyBackground;O.image1SquigglyBackground=O.image1LightSquigglyBackground;O.image3SquigglyBackground=O.image3LightSquigglyBackground;return O};
_.X(S$,_.u);_.v=S$.prototype;_.v.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.v.onDataChanged=function(){this.updateTitleAndImages()};
_.v.onThemeChanged=function(){this.updateTitleAndImages()};
_.v.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&(this.isDarkTheme=O)};
_.v.updateImage0SquigglyBackground=function(){_.n7(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.v.updateImage1SquigglyBackground=function(){_.n7(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.v.updateImage3SquigglyBackground=function(){_.n7(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.v.updateTitleAndImages=function(){var O,m;((O=this.data)==null?void 0:(m=O.titleImages)==null?void 0:m.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))};
S$.prototype.updateImage3SquigglyBackground=S$.prototype.updateImage3SquigglyBackground;S$.prototype.updateImage1SquigglyBackground=S$.prototype.updateImage1SquigglyBackground;S$.prototype.updateImage0SquigglyBackground=S$.prototype.updateImage0SquigglyBackground;S$.prototype.onThemeChanged=S$.prototype.onThemeChanged;S$.prototype.onDataChanged=S$.prototype.onDataChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],S$.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],S$.prototype,"isDarkTheme",void 0);_.c([_.g(),_.Y("design:type",Object)],S$.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],S$.prototype,"title0",void 0);_.c([_.g(),_.Y("design:type",Object)],S$.prototype,"title1",void 0);_.c([_.g(),_.Y("design:type",Object)],S$.prototype,"title2",void 0);_.c([_.g(),_.Y("design:type",Object)],S$.prototype,"title3",void 0);
_.c([_.g(),_.Y("design:type",Object)],S$.prototype,"title4",void 0);_.c([_.g(),_.Y("design:type",Object)],S$.prototype,"image0",void 0);_.c([_.g(),_.Y("design:type",Object)],S$.prototype,"image1",void 0);_.c([_.g(),_.Y("design:type",Object)],S$.prototype,"image2",void 0);_.c([_.g(),_.Y("design:type",Object)],S$.prototype,"image3",void 0);_.c([_.g(),_.Y("design:type",Object)],S$.prototype,"image4",void 0);_.c([_.g(),_.Y("design:type",String)],S$.prototype,"image0SquigglyBackground",void 0);
_.c([_.g(),_.Y("design:type",String)],S$.prototype,"image1SquigglyBackground",void 0);_.c([_.g(),_.Y("design:type",String)],S$.prototype,"image3SquigglyBackground",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S$.prototype,"onDataChanged",null);_.c([_.Tw("isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S$.prototype,"onThemeChanged",null);
_.c([_.Tw("image0SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S$.prototype,"updateImage0SquigglyBackground",null);_.c([_.Tw("image1SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S$.prototype,"updateImage1SquigglyBackground",null);
_.c([_.Tw("image3SquigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S$.prototype,"updateImage3SquigglyBackground",null);_.c([_.l({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],S$);
_.y(S$,"ytd-handles-claiming-title-images-section-renderer",function(){if(O0m!==void 0)return O0m;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return O0m=O},{mode:1});var mVU;var El=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.X(El,_.u);El.prototype.ready=function(){var O=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(O)};
El.prototype.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&this.set("isDarkTheme",O)};
El.prototype.onCopyButtonClick=function(){var O=this,m,G,B;return _.r(function(Q){return(m=O.data)!=null&&m.primaryChannelUrl?Q.yield(navigator.clipboard.writeText(((G=O.data)==null?0:G.encodedChannelUrl)?O.data.encodedChannelUrl:"https://"+_.HX((B=O.data)==null?void 0:B.primaryChannelUrl)),0):Q.jumpTo(0)})};
_.c([_.g(),_.Y("design:type",Object)],El.prototype,"data",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],El.prototype,"ytComponentBehavior",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],El.prototype,"isDarkTheme",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],El.prototype,"ytActionHandlerBehavior",void 0);_.c([_.l({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],El);
_.y(El,"ytd-handles-claiming-update-social-renderer",function(){if(mVU!==void 0)return mVU;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return mVU=O},{mode:1});var GNC;var Lv=function(){var O=_.u.apply(this,arguments)||this;O.JSC$16046_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";O.JSC$16046_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};O.squigglyBackground=O.JSC$16046_squigglyBackgroundLight;return O};
_.X(Lv,_.u);Lv.prototype.updateSquigglyBackgroundStyle=function(){_.n7(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Lv.prototype.ready=function(){var O=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",O);this.squigglyBackground=O?this.JSC$16046_squigglyBackgroundDark:this.JSC$16046_squigglyBackgroundLight};
Lv.prototype.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&(this.set("isDarkTheme",O),this.squigglyBackground=O?this.JSC$16046_squigglyBackgroundDark:this.JSC$16046_squigglyBackgroundLight)};
Lv.prototype.updateSquigglyBackgroundStyle=Lv.prototype.updateSquigglyBackgroundStyle;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Lv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Lv.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Lv.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Lv.prototype,"isDarkTheme",void 0);_.c([_.g(),_.Y("design:type",String)],Lv.prototype,"squigglyBackground",void 0);_.c([_.Tw("squigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lv.prototype,"updateSquigglyBackgroundStyle",null);_.c([_.l({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Lv);
_.y(Lv,"ytd-handles-claiming-vanity-info-renderer",function(){if(GNC!==void 0)return GNC;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return GNC=O},{mode:1});var Bxo;var Cv=function(){var O=_.u.apply(this,arguments)||this;O.JSC$16049_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";O.JSC$16049_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";O.squigglyBackground=O.JSC$16049_squigglyBackgroundLight;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.X(Cv,_.u);_.v=Cv.prototype;_.v.ready=function(){var O=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(O)};
_.v.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&(this.set("isDarkTheme",O),this.squigglyBackground=O?this.JSC$16049_squigglyBackgroundDark:this.JSC$16049_squigglyBackgroundLight)};
_.v.updateSquigglyBackgroundStyle=function(){_.n7(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.v.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.v.detached=function(){this.stop()};
_.v.stop=function(){this.playerElement.stop()};
_.v.setupVideoPlayer=function(){var O=this,m,G;return _.r(function(B){m=O.data.videoId;G="http://i1.ytimg.com/vi/"+m+"/maxresdefault.jpg";O.playerElement.loadVideoWithPlayerVars({video_id:m,iurlhq:G});_.ju(B)})};
Cv.prototype.onDataChanged=Cv.prototype.onDataChanged;Cv.prototype.updateSquigglyBackgroundStyle=Cv.prototype.updateSquigglyBackgroundStyle;_.c([_.g({value:!1}),_.Y("design:type",Boolean)],Cv.prototype,"isDarkTheme",void 0);_.c([_.g(),_.Y("design:type",String)],Cv.prototype,"squigglyBackground",void 0);_.c([_.uc("#player"),_.Y("design:type",Object)],Cv.prototype,"playerElement",void 0);_.c([_.g(),_.Y("design:type",Object)],Cv.prototype,"data",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Cv.prototype,"ytActionHandlerBehavior",void 0);_.c([_.Tw("squigglyBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cv.prototype,"updateSquigglyBackgroundStyle",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cv.prototype,"onDataChanged",null);
_.c([_.l({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Cv);
_.y(Cv,"ytd-handles-claiming-video-item-renderer",function(){if(Bxo!==void 0)return Bxo;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Bxo=O},{mode:1});var Qx_;var lY=function(){var O=_.Iu.apply(this,arguments)||this;O.dragging=!1;O.dragMouseStart=0;O.dragOffsetStart=0;O.containerWidthDiff=0;O.boundPrevClick=function(){O.set("offset",o5(O,O.offset-(O.scrollDistance||320)))};
O.boundNextClick=function(){O.set("offset",o5(O,O.offset+(O.scrollDistance||320)))};
O.boundScrollContainerMouseDown=function(m){O.dragMouseStart=m.clientX;O.dragOffsetStart=O.offset;O.dragging=!0};
O.boundScrollContainerDrag=function(m){O.dragging&&O.set("offset",o5(O,O.dragOffsetStart-(m.clientX-O.dragMouseStart)))};
O.boundMouseUp=function(){O.onMouseUp()};
O.boundWheelScroll=function(m){var G=0;Math.abs(m.deltaX)>=Math.abs(m.deltaY)?G=m.deltaX:m.shiftKey&&(G=m.deltaY);G!==0&&(O.offset+=G,m.stopPropagation(),m.preventDefault())};
O.boundChipCloudChipScrollIntoView=function(m){(m=m.detail)&&O.scrollChipIntoView(m)};
return O};
_.X(lY,_.Iu);lY.prototype.attached=function(){var O=_.ZO(this.hostElement).querySelector("#scroll-container");O.addEventListener("wheel",this.boundWheelScroll);O.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);O.style.touchAction="pan-y";O.addEventListener("pointerdown",this.boundScrollContainerMouseDown);O.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
lY.prototype.detached=function(){var O=_.ZO(this.hostElement).querySelector("#scroll-container");O.removeEventListener("wheel",this.boundWheelScroll);O.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);O.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);O.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
lY.prototype.reset=function(){this.set("offset",0);_.QA(this,this.setContainerWidthDiff);_.QA(this,this.setButtonsState)};
var o5=function(O,m){return Math.min(Math.max(m,0),O.containerWidthDiff)};
_.v=lY.prototype;_.v.onMouseUp=function(){this.dragging=!1};
_.v.transformContainer=function(){this.offset=o5(this,this.offset);var O=_.kB("HTML_DIR")==="rtl"?"":"-";_.ZO(this.hostElement).querySelector("#chips").style.transform="translateX("+O+this.offset+"px)";_.QA(this,this.setButtonsState)};
_.v.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=o5(this,this.offset));this.atStart=this.offset<=0};
_.v.setContainerWidthDiff=function(){var O=_.ZO(this.hostElement).querySelector("#scroll-container"),m=_.ZO(this.hostElement).querySelector("#chips");O&&m&&(this.containerWidthDiff=m.clientWidth-O.clientWidth)};
_.v.scrollChipIntoView=function(O){var m=_.ZO(this.hostElement).querySelector("#scroll-container");if(m){var G=this.atStart?0:106,B=this.atEnd?0:106;O.offsetLeft<this.offset+G?this.offset=o5(this,O.offsetLeft-G):O.offsetLeft+O.clientWidth>this.offset+m.clientWidth-B&&(this.offset=o5(this,O.offsetLeft+O.clientWidth+B-m.clientWidth))}};
lY.prototype.transformContainer=lY.prototype.transformContainer;_.c([_.g({value:0}),_.Y("design:type",Number)],lY.prototype,"offset",void 0);_.c([_.g({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],lY.prototype,"atStart",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],lY.prototype,"atEnd",void 0);_.c([_.g(),_.Y("design:type",Number)],lY.prototype,"scrollDistance",void 0);
_.c([_.Tw("offset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lY.prototype,"transformContainer",null);_.c([_.p7()],lY);var H0m;var vWH;var MR$=_.a(function(O){var m=O.data;O=_.K(_.Wf(!1,void 0,"icHmSe"));var G=O.next().value,B=O.next().value;O={};O=_.bE("ytChipShapeChip",function(){a:switch(m==null?void 0:m().state){case 0:var H="ytChipShapeActive";break a;case 1:H="ytChipShapeDisabled";break a;default:H="ytChipShapeInactive"}return H},function(){var H=m().type===1||m().type===2,M=m();
return H||M!=null&&M.startIcon?M==null||!M.startIcon||M!=null&&M.text?H?"ytChipShapeEndIconPadding":(M==null?0:M.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(O.ytChipShapeFocused=function(){var H;
return G()&&((H=m())==null?void 0:H.state)!==1},O));
var Q=function(H){if((m==null?void 0:m().state)!==1){var M,R;(R=(M=m()).onTap)==null||R.call(M,H)}};
return _.q("chip-shape",{class:"ytChipShapeHost","on:focusin":_.nH(function(){var H=_.KR().resolve(_.v7(_.IF));if(H){B(H.isKeyBoardInUse());var M,R;(R=(M=m()).onFocusIn)==null||R.call(M)}return!1}),
"on:focusout":_.nH(function(){B(!1);return!1})},_.q(Kv2,{shouldWrapInButton:function(){return m().type!==2},
selected:function(){return m().state===0},
onClick:Q,isDropdown:function(){return m().type===1},
accessibilityLabel:function(){return m().type===1?void 0:m().accessibilityLabel}},_.q("div",{class:O},_.q(_.U,{cond:function(){return m().startIcon},
then:function(){return _.q(_.T$,{icon:function(){var H;return(H=m())==null?void 0:H.startIcon},
className:function(){return m().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return m().text},_.q($V_,{shape:m,
onClick:Q}),_.q(_.S1,{model:{borderRadius:"8px"}}))))},"Sb");
MR$.idomCompat=!0;var Kv2=_.a(function(O){var m=_.nH(function(G){O.onClick(G);return!1});
return _.q(_.U,{cond:O.shouldWrapInButton,then:function(){return _.q("button",{class:"ytChipShapeButtonReset","on:click":m,role:function(){return O.isDropdown()?"combobox":"tab"},
"aria-label":O.accessibilityLabel,"aria-selected":O.selected},O.children)},
else:function(){return O.children}})},"Tb"),$V_=_.a(function(O){var m=O.shape;
var G=O.onClick;var B=_.nH(function(Q){G(Q);return!1});
return _.q(_.I8,null,_.q(_.uz,{when:function(){return m().type===1}},function(){return _.q(_.T$,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.q(_.uz,{when:function(){return m().type===2}},function(){return _.q("button",{class:"ytChipShapeButtonReset",
"on:click":B},_.q(_.T$,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.q(_.uz,{when:function(){return m().type===0}},function(){return _.q(_.Mr,null)}))},"Ub");_.qi(MR$,"chip-shape",{props:{data:_.VZ}});var a5=function(){var O=_.u.apply(this,arguments)||this;O.disableDeselectEvent=!1;O.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return O};
_.X(a5,_.u);_.v=a5.prototype;_.v.onSelectChipCommand=function(O){if(!this.selected&&this.data&&(O=_.b(O,S6o),O.targetId&&O.targetId===this.data.targetId))this.onTap()};
_.v.onFilterChipTransformCommand=function(O){if(!this.selected&&this.data){var m;(O=(m=_.b(O,hI2))==null?void 0:m.chipUniqueId)&&O===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.v.dataChanged=function(){var O=this;_.QA(this,function(){O.data&&O.data.isSelected&&!O.selected&&(O.scrollChipIntoView(),O.onTap())})};
_.v.computeChipStyle=function(O){return O!=null?O:"STYLE_DEFAULT"};
_.v.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.xc(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.xc(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.v.onFocus=function(){var O=_.KR().resolve(_.v7(_.IF));O&&O.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.v.scrollChipIntoView=function(){_.iP(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.vr.Object.defineProperties(a5.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return iVO({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
a5.prototype.onFocus=a5.prototype.onFocus;a5.prototype.onTap=a5.prototype.onTap;a5.prototype.dataChanged=a5.prototype.dataChanged;_.c([_.h(_.yx),_.Y("design:type",Object)],a5.prototype,"ironButtonState",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],a5.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],a5.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.l8),_.Y("design:type",Object)],a5.prototype,"ironA11yKeysBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],a5.prototype,"disableDeselectEvent",void 0);_.c([_.g(),_.Y("design:type",Object)],a5.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data.icon"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],a5.prototype,"hasIcon",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data.uniqueId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],a5.prototype,"isGnomeChip",null);_.c([_.g({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.Y("design:type",String)],a5.prototype,"chipStyle",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],a5.prototype,"selected",void 0);
_.c([_.T("data","selected"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],a5.prototype,"chipShapeData",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a5.prototype,"dataChanged",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a5.prototype,"onTap",null);
_.c([_.hG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a5.prototype,"onFocus",null);_.c([_.DO({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],a5);
_.y(a5,"yt-chip-cloud-chip-renderer",function(){if(vWH===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;H0m===void 0&&(H0m=document.createElement("template"));var B=H0m;G.call(m,B.content.cloneNode(!0),O.content.firstChild);vWH=O}O=vWH;return O},{mode:2});var ryj=_.sv.persistentPanelVisibleSelector,kQ=function(){var O=_.u.apply(this,arguments)||this;O.isDarkTheme=!1;O.notSticky=!1;O.transparentBackground=!1;O.shouldHide=!1;O.disableSticky=!1;O.fluidWidth=!1;O.isClipList=!1;O.defaultChipIndex=0;O.isPlaylist=!1;O.playlistVotingAnimationEnabled=_.V("web_enable_voting_animation");O.toolbarHeight=0;O.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return O};
_.X(kQ,_.u);_.v=kQ.prototype;
_.v.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}}}}}};
_.v.attached=function(){var O=this;document.addEventListener("scroll",_.f7(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var m;this.toolbarHeight=((m=document.querySelector("ytd-masthead"))==null?void 0:m.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(G){O.handleIntersect(G)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){O.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.v.detached=function(){var O;(O=this.intersectionObserver)==null||O.disconnect();var m;(m=this.resizeObserver)==null||m.disconnect();document.removeEventListener("scroll",_.f7(this,this.updateChipBarWidthAndTop))};
_.v.dataChanged=function(){var O=this,m,G,B;((B=_.b((m=this.data)==null?void 0:(G=m.contents)==null?void 0:G[0],INU))==null?void 0:B.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var Q=this.findSelectedChipIndex();this.selectedIndex!==Q&&(this.selectedIndex=-1);_.QA(this,function(){O.selectedIndex=Q;O.updating=!1;O.ytScrollableChipCloudBehavior.reset()})};
_.v.findSelectedChipIndex=function(){var O;if((O=this.data)==null||!O.contents)return 0;O=this.data.contents;for(var m=0;m<O.length;m++){var G=void 0;if((G=_.b(O[m],INU))==null?0:G.isSelected)return m}return 0};
_.v.computeStyle=function(O){return O};
_.v.handleChipCloudChipSelectAction=function(O){O=this.JSC$16070_chipsSelector.indexOf(O);O>-1&&this.JSC$16070_chipsSelector.selectIndex(O)};
_.v.handleChipCloudChipDeselectAction=function(){if(_.V("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var O,m,G,B=(G=_.b((O=this.data)==null?void 0:(m=O.contents)==null?void 0:m[0],INU))==null?void 0:G.navigationEndpoint;B&&_.xc(this.hostElement,"yt-browse-section-list-reload-endpoint",[B]);this.JSC$16070_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.v.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.v.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.v.onResize=function(){this.updateLayout()};
_.v.updateLayout=function(){var O=this.ytScrollableChipCloudBehavior;_.QA(O,O.setContainerWidthDiff);O=this.ytScrollableChipCloudBehavior;_.QA(O,O.setButtonsState)};
_.v.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.v.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.v.handleIntersect=function(O){this.notSticky=this.isChannelPageGrid||this.disableSticky||O[0].intersectionRatio===1};
_.v.updateDimensions=function(){var O=this.ytRendererBehavior.parentComponent;if(O){var m,G=(m=O.headerElement)!=null?m:O;_.n7(this.hostElement,{"--ytd-rich-grid-chips-bar-width":G.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.v.updateSelectedIndexFromBinding=function(O){this.selectedIndex=O.detail.value};
_.v.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var O;(O=this.sortFilterHeaderRendererElement)==null||O.setAttribute("is-playlist-page-with-filters","")}};
_.v.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(JoH(!this.notSticky))};
_.vr.Object.defineProperties(kQ.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 O,m,G=(O=this.data)==null?void 0:(m=O.contents)==null?void 0:m.find(function(B){return _.b(B,CRm)});
return{sortFilterHeaderRenderer:_.b(G,CRm)}}}});
kQ.prototype.dispatchChipBarIsSticky=kQ.prototype.dispatchChipBarIsSticky;kQ.prototype.isPlaylistPageChanged=kQ.prototype.isPlaylistPageChanged;kQ.prototype.updateChipBarWidthAndTop=kQ.prototype.updateChipBarWidthAndTop;kQ.prototype.onResize=kQ.prototype.onResize;kQ.prototype.onPersistentPanelVisibleChanged=kQ.prototype.onPersistentPanelVisibleChanged;kQ.prototype.onGuideIsExpandedChanged=kQ.prototype.onGuideIsExpandedChanged;kQ.prototype.dataChanged=kQ.prototype.dataChanged;
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],kQ.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.Dm),_.Y("design:type",Object)],kQ.prototype,"ironResizableBehavior",void 0);_.c([_.h(),_.Y("design:type",lY)],kQ.prototype,"ytScrollableChipCloudBehavior",void 0);
_.c([_.h(_.MK),_.Y("design:type",Object)],kQ.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],kQ.prototype,"data",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],kQ.prototype,"selectedIndex",void 0);_.c([_.g({value:320}),_.Y("design:type",Number)],kQ.prototype,"scrollDistance",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],kQ.prototype,"isDarkTheme",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],kQ.prototype,"notSticky",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],kQ.prototype,"transparentBackground",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.Y("design:type",String)],kQ.prototype,"componentStyle",void 0);_.c([_.g({selector:_.BSp}),_.Y("design:type",Boolean)],kQ.prototype,"guideIsExpanded",void 0);
_.c([_.g({selector:ryj}),_.Y("design:type",Boolean)],kQ.prototype,"persistentPanelVisible",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],kQ.prototype,"shouldHide",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],kQ.prototype,"disableSticky",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],kQ.prototype,"fluidWidth",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],kQ.prototype,"isClipList",void 0);
_.c([_.g(),_.Y("design:type",Object)],kQ.prototype,"defaultChipIndex",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],kQ.prototype,"isPlaylist",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],kQ.prototype,"playlistVotingAnimationEnabled",void 0);_.c([_.uc("#chips"),_.Y("design:type",Object)],kQ.prototype,"JSC$16070_chipsSelector",void 0);
_.c([_.uc("ytd-sort-filter-header-renderer"),_.Y("design:type",HTMLElement)],kQ.prototype,"sortFilterHeaderRendererElement",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],kQ.prototype,"updating",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kQ.prototype,"dataChanged",null);
_.c([_.Tw("guideIsExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kQ.prototype,"onGuideIsExpandedChanged",null);_.c([_.Tw("persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kQ.prototype,"onPersistentPanelVisibleChanged",null);_.c([_.hG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kQ.prototype,"onResize",null);
_.c([_.Si("isChannelPageGrid","disableSticky","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kQ.prototype,"updateChipBarWidthAndTop",null);_.c([_.T("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kQ.prototype,"isChannelPageGrid",null);_.c([_.T("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kQ.prototype,"isHashtagLandingPage",null);
_.c([_.Tw("isPlaylistPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kQ.prototype,"isPlaylistPageChanged",null);_.c([_.T("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kQ.prototype,"isPlaylistPage",null);_.c([_.T("componentStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],kQ.prototype,"isDisableDeselectEvent",null);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kQ.prototype,"sortFilterHeaderRendererData",null);_.c([_.g({reflectToAttribute:!0,selector:_.rC5}),_.Y("design:type",String)],kQ.prototype,"frostedGlassMode",void 0);_.c([_.Tw("notSticky"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kQ.prototype,"dispatchChipBarIsSticky",null);_.c([_.l({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],kQ);
_.y(kQ,"ytd-feed-filter-chip-bar-renderer",function(){if(Qx_!==void 0)return Qx_;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Qx_=O},{mode:1});var ROH;var i0p=_.a(function(O){var m=O.data;var G=O.buttonIndex;var B=O.selectedIndex;var Q=O.onSelect;var H=function(){return G()===B()},M=function(){var R,x;
return(x=(R=m().text)==null?void 0:R.content)!=null?x:""};
O=_.rqM();return _.q("yt-toggleable-image-button-view-model",{class:function(){var R={};R=(R.toggleableImageButtonViewModelHost=!0,R[""]=!0,R.toggleableImageButtonViewModelSemiTransparent=B()!==-1&&!H(),R);return _.CJ(R)},
tabindex:0,"aria-label":M,"aria-pressed":H,role:"button","on:keydown":O,"on:click":_.nH(function(){Q(m().onSubmitCommand);return!1})},_.q(_.U,{cond:function(){return m().logo},
then:function(R){return _.q(_.KH,{data:R,className:function(){var x={};x=(x.toggleableImageButtonViewModelImage=!0,x.toggleableImageButtonViewModelCircularRadius=!(!m().backgroundColor||!m().backgroundColorDarkMode),x.toggleableImageButtonViewModelGradientRing=!!(H()&&m().backgroundColor&&m().backgroundColorDarkMode),x);return _.CJ(x)},
alt:M,useWidth:!1,style:function(){if(H()&&m().backgroundColor&&m().backgroundColorDarkMode){var x=Oc(Number(m().backgroundColorDarkMode),"1");var t=Oc(Number(m().backgroundColor),"1");x="background: linear-gradient(180deg,"+x+","+t+") border-box;"}else x="";return x}})}}),_.q(_.S1,{model:{borderRadius:"16px"}}),_.q("p",{class:function(){var R={};
R=(R.toggleableImageButtonViewModelLabel=!0,R.toggleableImageButtonViewModelBoldText=H(),R);return _.CJ(R)}},_.q(_.Jg,{text:function(){return m().text}})))},"Vb");
i0p.idomCompat=!0;var qdj=_.a(function(O){var m=O.data;O=_.K(_.Wf({index:-1,command:{}},void 0,"GM3umb"));var G=O.next().value,B=O.next().value;return _.q("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.q("div",{class:"nudgeFormViewModelFormOptions"},_.q(_.u5,{data:function(){return m().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(Q,H){return _.q(i0p,{data:Q.data,buttonIndex:H,selectedIndex:function(){return G().index},
onSelect:function(M){B({index:H(),command:M})}})}})),_.q(_.Jg,{text:function(){return m().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.q("div",{class:"nudgeFormViewModelSubmit"},_.q(_.u5,{data:function(){return m().submitButton}},{buttonViewModel:function(Q){return _.q(xVm,{data:Q.data,
isDisabled:function(){return G().index===-1},
onClick:function(){_.PE(G().command)}})}})))},"Wb");
qdj.idomCompat=!0;var xVm=_.a(function(O){var m=_.bF(function(){return Object.assign({},O.data(),{state:O.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.q(_.oF,{data:m,onClick:O.onClick})},"Xb");_.qi(qdj,"yt-nudge-form-view-model",{props:{data:_.VZ}});var y1=function(){var O=_.u.apply(this,arguments)||this;O.roundedContainer=!0;O.buttonUpdate=_.V("web_modern_buttons");O.isDarkMode=!1;O.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return O};
_.X(y1,_.u);_.v=y1.prototype;_.v.computeNudgeStyle=function(O){return O?"modernized-nudge":""};
_.v.handleDarkModeToggledAction=function(O){this.isDarkMode=O};
_.v.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.v.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"}}}};
_.v.computeIsHorizontalButtons=function(O){return O?!!O.applyModernizedStyle&&!!O.enableHorizontalButtons&&!!O.secondaryButton:!1};
_.vr.Object.defineProperties(y1.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var O,m;return(m=(O=this.data)==null?void 0:O.backgroundStyle)!=null?m:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var O,m;return(m=(O=this.data)==null?void 0:O.contentsLocation)!=null?m:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null?0:O.lightIconImage)}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],y1.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],y1.prototype,"actionHandlerBehavior",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("isHideEnclosingAction"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],y1.prototype,"isHidden",null);_.c([_.g(),_.Y("design:type",Object)],y1.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],y1.prototype,"roundedContainer",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],y1.prototype,"buttonUpdate",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.Y("design:type",String)],y1.prototype,"nudgeStyle",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data.trimStyle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],y1.prototype,"trimStyle",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.backgroundStyle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],y1.prototype,"backgroundStyle",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data.contentsLocation"),_.Y("design:type",String),_.Y("design:paramtypes",[])],y1.prototype,"contentsLocation",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.disableDropShadow"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],y1.prototype,"noShadow",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.lightIconImage"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],y1.prototype,"noIcon",null);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.Y("design:type",Boolean)],y1.prototype,"isHorizontalButtons",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],y1.prototype,"isDarkMode",void 0);_.c([_.l({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],y1);
_.y(y1,"ytd-feed-nudge-renderer",function(){if(ROH!==void 0)return ROH;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ROH=O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var UVj;var tRp;var cR=function(){var O=_.u.apply(this,arguments)||this;O.collapsed=!1;O.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return O};
_.X(cR,_.u);cR.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"}}}};
cR.prototype.handleRatingSelect=function(){var O;((O=this.data)==null?0:O.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
cR.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],cR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],cR.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],cR.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.Rr),_.Y("design:type",Object)],cR.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],cR.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],cR.prototype,"collapsed",void 0);_.c([_.l({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],cR);
_.y(cR,"ytd-slimline-survey-renderer",function(){if(tRp!==void 0)return tRp;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return tRp=O},{mode:1});var Wv8;var YQ=function(){return _.u.apply(this,arguments)||this};
_.X(YQ,_.u);YQ.prototype.maybeGetBackgroundColor=function(O){return this.isDarkMode?O.section2Color:O.section3Color};
YQ.prototype.colorPaletteChanged=function(){var O=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;O&&(O==null?0:O.secondaryTitleColor)&&this.maybeGetBackgroundColor(O)?(this.hostElement.style.backgroundColor=_.Fs(this.maybeGetBackgroundColor(O)),this.hostElement.style.color=_.Fs(O.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
YQ.prototype.colorPaletteChanged=YQ.prototype.colorPaletteChanged;_.c([_.h(_.MK),_.Y("design:type",Object)],YQ.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],YQ.prototype,"data",void 0);_.c([_.g({selector:function(O){return O.ui.darkModeIsEnabled}}),
_.Y("design:type",Boolean)],YQ.prototype,"isDarkMode",void 0);_.c([_.g(),_.Y("design:type",Object)],YQ.prototype,"lightColorPalette",void 0);_.c([_.g(),_.Y("design:type",Object)],YQ.prototype,"darkColorPalette",void 0);_.c([_.Tw("darkColorPalette","lightColorPalette","data","isDarkMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YQ.prototype,"colorPaletteChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],YQ);
_.y(YQ,"ytd-endorsement-header-renderer",function(){if(Wv8!==void 0)return Wv8;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Wv8=O},{mode:1});_.qi(_.vP,"yt-decorated-avatar-view-model",{props:{data:_.VZ,className:_.VZ}});_.dF=new _.Us("VIEW_TRANSITION_MANAGER_TOKEN");var wF=function(){var O=_.u.apply(this,arguments)||this;O.fullHeight=_.V("web_rich_grid_media_full_height");O.showChannelAvatar=!0;O.hasPlaylistThumbnail=!1;O.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};O.registerThumbnailForPageTransition=function(){_.V("web_thumbnail_to_watch_transition")&&_.Z03(_.KR().resolve(_.dF),O.thumbnail)};
return O};
_.X(wF,_.u);_.v=wF.prototype;
_.v.configureRendererStamper=function(){return{lazyLoadMenu:da,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"}}}};
_.v.attached=function(){this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.shouldLazyLoadMenu=function(){var O=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.V("kevlar_modern_downloads_page")||!O};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16095_inlinePreviewHoverListener=Yi({mediaRenderer:this,lockupElement:this.JSC$16095_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.v.getVideoPreviewOpts=function(){var O={},m;if((m=this.data)==null?0:m.multipleInlinePlaybackEndpoint)O=HV2;this.isRadio&&(O=QVC);return O};
_.v.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$16095_inlinePreviewHoverListener)==null||mk(O)};
_.v.getOwner=function(){var O,m,G;return((O=this.data)==null?void 0:(m=O.channelThumbnailSupportedRenderers)==null?void 0:m.channelThumbnailWithLinkRenderer)||_.b((G=this.data)==null?void 0:G.showProviderChannelThumbnail,oNe)};
_.v.updateLockupSize=function(){var O;((O=this.getOwner())==null?0:O.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.v.getFeedbackEndpoint=function(O){if(_.b(O,_.Sk))return O;var m,G;O=(G=(m=_.b(O,_.zC))==null?void 0:m.commands)!=null?G:[];m=_.K(O);for(G=m.next();!G.done;G=m.next())if(G=this.getFeedbackEndpoint(G.value))return G;return null};
_.v.computeNavigationEndpoint=function(O){return MPS(O==null?void 0:O.navigationEndpoint)};
_.v.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var O=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(O)!==JSON.stringify(this.data)&&this.set("data",O)}};
_.v.onDataChanged=function(){var O=this,m=this.getOwner();if(m){this.set("data.owner",m);var G,B,Q,H,M,R=((G=this.data)==null?void 0:(B=G.shortBylineText)==null?void 0:(Q=B.runs)==null?void 0:(H=Q[0])==null?void 0:H.text)||((M=m.name)==null?void 0:M.simpleText);this.set("data.owner.title",R)}var x,t,W,Z,z,J;m=((x=this.data)==null?void 0:(t=x.thumbnailRenderer)==null?void 0:t.playlistVideoThumbnailRenderer)||((W=this.data)==null?void 0:(Z=W.thumbnailRenderer)==null?void 0:Z.playlistCustomThumbnailRenderer)||
((z=this.data)==null?void 0:(J=z.thumbnailRenderer)==null?void 0:J.showCustomThumbnailRenderer);var n;((n=this.data)==null?0:n.thumbnail)||!m||this.set("data.thumbnail",m.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){O.updateLockupSize()});
var I;if(x=((I=this.data)==null?void 0:I.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(x);var S;((S=this.dismissActionToReplayEntity)==null?0:S.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.v.onHiddenChanged=function(){this.updateLockupSize()};
_.v.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.xc(this.hostElement,"yt-terminate-video-preview-action");else{var O;(O=this.videoTitleLink)==null||O.focus()}};
_.v.metadataColorChanged=function(){var O;if(this.metadataColor&&((O=this.videoTitle)==null?0:O.style))this.videoTitle.style.color=_.Fs(this.metadataColor);else{var m,G;!this.metadataColor&&((m=this.videoTitle)==null?0:(G=m.style)==null?0:G.color)&&(this.videoTitle.style.color="")}};
_.v.onDetailsClick=function(O){var m=this.computedNavigationEndpoint;m&&(_.Hu(_.$Z(O),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.iP(this.hostElement,"yt-navigate",{endpoint:m}))};
_.v.onRendererTap=function(){this.registerThumbnailForPageTransition();var O,m,G=((O=this.data)==null?void 0:O.serviceEndpoint)||this.getFeedbackEndpoint((m=this.data)==null?void 0:m.navigationEndpoint);G&&_.b(G,_.Sk)&&this.ytComponentBehavior.resolveCommand(G)};
_.v.onMouseDown=function(O){var m=O.target,G=this.computedNavigationEndpoint,B;O=m.href||((B=_.b(G==null?void 0:G.commandMetadata,_.bP))==null?void 0:B.url);B=m.data||G;O&&B&&A7s(O,B)};
_.v.computeVideoTitleText=function(){var O;if((O=this.data)==null?0:O.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.v.computeHasPlaylistThumbnail=function(O){var m,G,B,Q,H;if((((m=O.thumbnailRenderer)==null?0:m.playlistVideoThumbnailRenderer)||((G=O.thumbnailRenderer)==null?0:G.playlistCustomThumbnailRenderer)||((B=O.thumbnailRenderer)==null?0:B.showCustomThumbnailRenderer)||((Q=O.thumbnailRenderer)==null?0:Q.playlistVideoThumbnailRenderer)||((H=O.thumbnailRenderer)==null?0:H.playlistCustomThumbnailRenderer))&&O.thumbnailOverlays)for(m=0;m<O.thumbnailOverlays.length;m++)if(G=void 0,(G=O.thumbnailOverlays[m])==
null?0:G.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.vr.Object.defineProperties(wF.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.V("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var O;return(O=this.data)==null?void 0:O.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var O;return(O=this.data)==null?void 0:O.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$16095_inlinePreviewHoverListener)==null?0:rO(O))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.SHp(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?void 0:O.videoId)||((m=this.data)==null?void 0:m.playlistId)||""}}});
wF.prototype.onMouseDown=wF.prototype.onMouseDown;wF.prototype.metadataColorChanged=wF.prototype.metadataColorChanged;wF.prototype.onIsDismissedChanged=wF.prototype.onIsDismissedChanged;wF.prototype.onHiddenChanged=wF.prototype.onHiddenChanged;wF.prototype.onDataChanged=wF.prototype.onDataChanged;wF.prototype.handleReloadDownloadsInfo=wF.prototype.handleReloadDownloadsInfo;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],wF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],wF.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],wF.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],wF.prototype,"ytdLockupBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],wF.prototype,"ytdReduxBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],wF.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],wF.prototype,"entitySelectorType",void 0);_.c([_.g(),_.Y("design:type",Boolean)],wF.prototype,"noEndpoints",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],wF.prototype,"isRadio",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.yh}),_.Y("design:type",Boolean)],wF.prototype,"miniMode",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],wF.prototype,"fullHeight",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],wF.prototype,"showDarkVideoMetadata",void 0);_.c([_.g(),_.Y("design:type",Boolean)],wF.prototype,"showLightVideoMetadata",void 0);_.c([_.g(),_.Y("design:type",Number)],wF.prototype,"metadataColor",void 0);_.c([_.g(),_.Y("design:type",Object)],wF.prototype,"showChannelAvatar",void 0);_.c([_.g(),_.Y("design:type",Boolean)],wF.prototype,"hidden",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],wF.prototype,"showYtInteraction",void 0);
_.c([_.g(),_.Y("design:type",String)],wF.prototype,"dismissedContentId",void 0);_.c([_.g({selectorArgs:["dismissedContentId"],selector:xSr}),_.Y("design:type",Object)],wF.prototype,"dismissActionToReplayEntity",void 0);
_.c([_.g({selectorArgs:["entitySelectorType","mediaId"],selector:function(O,m,G){if(_.V("kevlar_modern_downloads_page")&&G&&m&&m!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(m){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var B=qEs(O,G);if(B){m=_.eH(O,G);var Q=sr(O,G),H=h9O(O,G);O=No(O,G);var M=K2r(B,m,Q,H);Q=M.shortViewCountText;var R=M.publishedTimeText;M=M.badges;var x=O>0;H=H3e(B,m,H,O);B=_.IQ(m)||m==="TRANSFER_STATE_FAILED"||m==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!jH(B.policyEntity)?
void 0:Kts(G,O,B.videoEntity.lengthSeconds);m==="TRANSFER_STATE_PAUSED_BY_USER"&&G&&!_.V("dl_resume_click_killswitch")&&(B={offlineVideoEndpoint:{videoId:G,action:"ACTION_RESUME"}});G={shortViewCountText:Q,publishedTimeText:R,badges:M,isWatched:x,navigationEndpoint:B,thumbnailOverlays:H}}else G=void 0;return G;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(m=U2p(O,G))if(B=_.Dh(O,G),H=_.ttS(O,G),B!=="TRANSFER_STATE_UNKNOWN"){G=vof(m,B,H,G,_.wv(O));break a}G=void 0}return G;default:_.ay(new _.j9("Error: entitySelectorType defined but not matched in selector.",
O,m))}}}),
_.Y("design:type",Object)],wF.prototype,"entityDrivenState",void 0);_.c([_.g({computed:"computeVideoTitleText(data)"}),_.Y("design:type",Object)],wF.prototype,"videoTitleText",void 0);_.c([_.g({computed:"computeHasPlaylistThumbnail(data)"}),_.Y("design:type",Object)],wF.prototype,"hasPlaylistThumbnail",void 0);_.c([_.g({computed:"computeNavigationEndpoint(data)"}),_.Y("design:type",Object)],wF.prototype,"computedNavigationEndpoint",void 0);
_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],wF.prototype,"typographyBump",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("typographyBump"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wF.prototype,"typographyBumpV2",null);_.c([_.uc("#video-title"),_.Y("design:type",HTMLElement)],wF.prototype,"videoTitle",void 0);_.c([_.uc("#video-title-link"),_.Y("design:type",HTMLElement)],wF.prototype,"videoTitleLink",void 0);
_.c([_.uc("#thumbnail"),_.Y("design:type",HTMLElement)],wF.prototype,"thumbnail",void 0);_.c([_.uc("#dismissible"),_.Y("design:type",HTMLElement)],wF.prototype,"JSC$16095_dismissibleMedia",void 0);_.c([_.T("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wF.prototype,"lazyLoadMenu",null);_.c([_.T("data.menu"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wF.prototype,"immediateLoadMenu",null);
_.c([_.Si("entityDrivenState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wF.prototype,"handleReloadDownloadsInfo",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wF.prototype,"onDataChanged",null);_.c([_.Si("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wF.prototype,"onHiddenChanged",null);
_.c([_.Tw("isDismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wF.prototype,"onIsDismissedChanged",null);_.c([_.Tw("metadataColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wF.prototype,"metadataColorChanged",null);_.c([_.hG("mousedown"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],wF.prototype,"onMouseDown",null);
_.c([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wF.prototype,"isHovered",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wF.prototype,"useAvatar",null);_.c([_.T("data","entitySelectorType"),_.Y("design:type",String),_.Y("design:paramtypes",[])],wF.prototype,"mediaId",null);_.c([_.l({is:"ytd-rich-grid-media",disableElementRegistration:!0})],wF);
var zO3=_.WE()(wF,"ytd-rich-grid-media",function(){if(UVj!==void 0)return UVj;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return UVj=O},{mode:_.ZB("kevlar_poly_si_batch_j072")?1:2});var Jye;var e$=function(){var O=_.u.apply(this,arguments)||this;O.removeMaxWidth=!0;O.insetMetadata=!1;return O};
_.X(e$,_.u);_.v=e$.prototype;_.v.configureRendererStamper=function(){return{innerMenu:da,outerMenu:Object.assign({},da,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.onDataChanged=function(){var O,m=((O=this.data)==null?void 0:O.trackingParams)||"";m&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(m));var G;((G=this.dismissActionToReplayEntity)==null?0:G.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.v.attached=function(){this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16100_inlinePreviewHoverListener=Yi({mediaRenderer:this,lockupElement:this.JSC$16100_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:vbm})};
_.v.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$16100_inlinePreviewHoverListener)==null||mk(O)};
_.v.onRendererTap=function(){var O,m,G=(O=this.data)==null?void 0:(m=O.serviceEndpoints)==null?void 0:m[0];_.b(G,_.Sk)&&this.componentBehavior.resolveCommand(G)};
_.v.onDetailsClick=function(O){var m,G=(m=this.data)==null?void 0:m.navigationEndpoint;G&&(_.Hu(_.$Z(O),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(G))};
_.v.onShow=function(){var O=this.data;O.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(O.onFirstVisibleCommand),delete O.onFirstVisibleCommand)};
_.vr.Object.defineProperties(e$.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var O;return this.insetMetadata?void 0:(O=this.data)==null?void 0:O.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var O;return this.insetMetadata?(O=this.data)==null?void 0:O.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var O=this.data;if(O!=null&&O.badge&&(O=_.b(O.badge,X3U))){var m,G,B;return[{metadataBadgeRenderer:{label:((m=O.label)==null?void 0:(G=m.runs)==null?void 0:G[0].text)||((B=O.label)==null?void 0:B.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var O=this.data;return Object.assign({},O.headline,{accessibility:O.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return this.isSlimShort?(O=this.computedTitle)==null?void 0:(m=O.accessibility)==null?void 0:(G=m.accessibilityData)==null?void 0:G.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.V("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$16100_inlinePreviewHoverListener)==null?0:rO(O))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
e$.prototype.onDataChanged=e$.prototype.onDataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],e$.prototype,"componentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],e$.prototype,"ytdLockupBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],e$.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.Rr),_.Y("design:type",Object)],e$.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],e$.prototype,"ytdReduxBehavior",void 0);_.c([_.uc("ytd-thumbnail"),_.Y("design:type",HTMLElement)],e$.prototype,"thumbnail",void 0);_.c([_.uc("#dismissible"),_.Y("design:type",HTMLElement)],e$.prototype,"JSC$16100_dismissibleMedia",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],e$.prototype,"removeMaxWidth",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],e$.prototype,"insetMetadata",void 0);_.c([_.g(),_.Y("design:type",String)],e$.prototype,"dismissedContentId",void 0);_.c([_.g({selectorArgs:["dismissedContentId"],selector:xSr}),_.Y("design:type",Object)],e$.prototype,"dismissActionToReplayEntity",void 0);_.c([_.T("insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],e$.prototype,"thumbnailObjectFit",null);
_.c([_.T("data","insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],e$.prototype,"innerMenu",null);_.c([_.T("data","insetMetadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],e$.prototype,"outerMenu",null);_.c([_.g(),_.Y("design:type",Object)],e$.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.yh}),_.Y("design:type",Boolean)],e$.prototype,"miniMode",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],e$.prototype,"onDataChanged",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],e$.prototype,"shortsBadges",null);_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],e$.prototype,"isShort",null);
_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],e$.prototype,"isSlimShort",null);_.c([_.T("data","isShort"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],e$.prototype,"computedTitle",null);_.c([_.T("isSlimShort","computedTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],e$.prototype,"computedAccessibilityLabel",null);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],e$.prototype,"shouldForce2By3",null);_.c([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],e$.prototype,"isHovered",null);_.c([_.l({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],e$);
_.y(e$,"ytd-rich-grid-slim-media",function(){if(Jye!==void 0)return Jye;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Jye=O},{mode:_.ZB("kevlar_poly_si_batch_j063")?1:2});var VRu;var b02;var DQ=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(DQ,_.u);DQ.prototype.computeIcon=function(O){return O&&O.iconType?"yt-sys-icons:"+O.iconType.toLowerCase():""};
DQ.prototype.onMouseEnter=function(){this.isHovered=!0};
DQ.prototype.onMouseLeave=function(){this.isHovered=!1};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],DQ.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],DQ.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],DQ.prototype,"isHovered",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],DQ.prototype,"darkerDarkTheme",void 0);_.c([_.l({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],DQ);
_.y(DQ,"ytd-expand-on-hover-card-renderer",function(){if(b02!==void 0)return b02;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return b02=O},{mode:1});var nW9,XJm=function(){if(nW9!==void 0)return nW9;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return nW9=O};_.lE("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var sl=function(){var O=_.u.apply(this,arguments)||this;O.compactStyle=!1;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.X(sl,_.u);_.v=sl.prototype;_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.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"}}}};
_.v.computeHideDot=function(O){return!(O&&O.subscriberCountText&&O.videoCountText)||this.compactStyle};
_.v.hasDualButtons=function(O){return O&&O.purchaseButton&&O.subscribeButton};
_.v.backgroundColorChanged=function(){if(this.data!==void 0){var O=this.data.backgroundColor;this.isDarkTheme&&(O=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=O!=null?_.Fs(O):"transparent"}};
_.v.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.v.onTap=function(O){var m,G,B=((m=this.data)==null?void 0:m.navigationEndpoint)||((G=this.data)==null?void 0:G.serviceEndpoint);_.b(B,_.GU)&&(B&&_.KR().resolve(_.Mu).resolveCommand(B,{form:{element:this.hostElement}}),O.preventDefault())};
_.v.computeChannelEndpoint=function(O){return _.b(O,_.GU)?null:O};
_.v.computeHrefEndpoint=function(O){return _.b(O,_.GU)?null:this.componentBehavior.computeHref_(O)};
_.v.computeChannelRendererStyle=function(O){return O};
_.v.computeIconSize=function(O){return O?108:136};
_.vr.Object.defineProperties(sl,{template:{configurable:!0,enumerable:!0,get:function(){return XJm()}}});
sl.prototype.backgroundColorChanged=sl.prototype.backgroundColorChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],sl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],sl.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],sl.prototype,"componentBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],sl.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],sl.prototype,"isDarkTheme",void 0);_.c([_.g({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.Y("design:type",String)],sl.prototype,"channelRendererStyle",void 0);_.c([_.g({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],sl.prototype,"dualButtons",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],sl.prototype,"useBiggerThumbs",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.ib("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],sl.prototype,"biggerThumbStyle",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],sl.prototype,"compactStyle",void 0);_.c([_.Tw("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sl.prototype,"backgroundColorChanged",null);_.c([_.l({is:"ytd-channel-renderer",disableElementRegistration:!0})],sl);_.y(sl,"ytd-channel-renderer",function(){return XJm()},{mode:1});var f0_;var hO$;_.lE("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var N8=function(){var O=_.u.apply(this,arguments)||this;O.displayItemCount=2;O.collections=_.V("web_modern_collections_v2");O.hasPlaylistThumbnail=!1;O.stackThumbnailSize="large";return O};
_.X(N8,_.u);_.v=N8.prototype;_.v.attached=function(){this.updateInlinePreviewHoverListeners()};
_.v.detached=function(){this.clearInlinePreviewHoverListeners()};
_.v.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.v.computeFirstVideos=function(O,m){return O&&m?O.slice(0,m):[]};
_.v.computeThumbnailWidth=function(O,m){return O?m==="BIG"?500:m==="MASSIVE"?600:m==="MEDIUM"?450:420:360};
_.v.computeThumbnailHeight=function(O,m){return O?m==="BIG"?280:m==="MASSIVE"?337:234:202};
_.v.clearInlinePreviewHoverListeners=function(){var O;(O=this.JSC$16113_inlinePreviewHoverListener)==null||mk(O)};
_.v.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16113_inlinePreviewHoverListener=Yi({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:HV2,thumbnailElement:this.thumbnail})};
_.v.computeHasPlaylistThumbnail=function(O){var m,G;if((((m=O.thumbnailRenderer)==null?0:m.playlistVideoThumbnailRenderer)||((G=O.thumbnailRenderer)==null?0:G.playlistCustomThumbnailRenderer))&&O.thumbnailOverlays)for(m=0;m<O.thumbnailOverlays.length;m++)if(G=void 0,(G=O.thumbnailOverlays[m])==null?0:G.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.vr.Object.defineProperties(N8.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.JSC$16113_inlinePreviewHoverListener)==null?0:rO(O))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
N8.prototype.dataChanged=N8.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],N8.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],N8.prototype,"ytdLockupBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],N8.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],N8.prototype,"displayItemCount",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],N8.prototype,"useBiggerThumbs",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.ib("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],N8.prototype,"biggerThumbsStyle",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],N8.prototype,"collections",void 0);_.c([_.g({computed:"computeHasPlaylistThumbnail(data)"}),_.Y("design:type",Object)],N8.prototype,"hasPlaylistThumbnail",void 0);_.c([_.g(),_.Y("design:type",String)],N8.prototype,"stackThumbnailSize",void 0);_.c([_.uc("ytd-thumbnail"),_.Y("design:type",HTMLElement)],N8.prototype,"thumbnail",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],N8.prototype,"dataChanged",null);_.c([_.T("lockupIsHovered"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],N8.prototype,"isHovered",null);_.c([_.l({is:"ytd-radio-renderer",disableElementRegistration:!0})],N8);
_.y(N8,"ytd-radio-renderer",function(){if(hO$!==void 0)return hO$;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return hO$=O},{mode:_.ZB("kevlar_poly_si_batch_j058")?1:2});var Tx$;_.lE("itemSectionRenderer","showRenderer","ytd-show-renderer");var PR=function(){return _.u.apply(this,arguments)||this};
_.X(PR,_.u);PR.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
PR.prototype.computeThumbnailWidth=function(O){return O?360:246};
PR.prototype.computeUseProminentThumbs=function(O){return O};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],PR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],PR.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],PR.prototype,"isSearch",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.Y("design:type",Boolean)],PR.prototype,"useProminentThumbs",void 0);_.c([_.l({is:"ytd-show-renderer",disableElementRegistration:!0})],PR);
_.y(PR,"ytd-show-renderer",function(){if(Tx$!==void 0)return Tx$;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Tx$=O},{mode:1});_.lE("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Fi=function(){var O=_.u.apply(this,arguments)||this;O.isRichGrid=!1;return O};
_.X(Fi,_.u);Fi.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Fi.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Fi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Fi.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Fi.prototype,"isRichGrid",void 0);_.c([_.l({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Fi);
_.y(Fi,"ytd-feed-entry-renderer",function(){if(f0_!==void 0)return f0_;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return f0_=O},{mode:1});var gW$;var AD=function(){return _.u.apply(this,arguments)||this};
_.X(AD,_.u);AD.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.c([_.h(_.MK),_.Y("design:type",Object)],AD.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],AD.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],AD.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],AD.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.cq,value:3}),_.Y("design:type",Number)],AD.prototype,"itemsPerRow",void 0);
_.c([_.l({is:"ytd-link-card-renderer",disableElementRegistration:!0})],AD);
_.y(AD,"ytd-link-card-renderer",function(){if(gW$!==void 0)return gW$;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return gW$=O},{mode:1});var uA$;var OY=function(){return _.u.apply(this,arguments)||this};
_.X(OY,_.u);_.v=OY.prototype;_.v.configureRendererStamper=function(){return{"data.menu":da,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.v.onRendererTap=function(O){if(!this.ytdDismissibleItemBehavior.isDismissed){var m,G=(m=this.data)==null?void 0:m.navigationEndpoint;G&&!_.Hu(_.$Z(O),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(G)?_.Hu(_.$Z(O),this.hostElement,["A"])||_.iP(this.hostElement,"yt-navigate",{endpoint:G}):this.ytComponentBehavior.resolveCommand(G,{}))}};
_.v.maybeComputeHref=function(O){return this.ytComponentBehavior.computeHref_(O,!0)};
_.v.getNavigationCommand=function(O){return this.isNavigationCommand(O)?O:null};
_.v.isNavigationCommand=function(O){return O?_.b(O,_.gH)||_.b(O,_.GC)||_.b(O,_.Db)?!0:!1:!1};
OY.prototype.onRendererTap=OY.prototype.onRendererTap;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],OY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],OY.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],OY.prototype,"ytComponentBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],OY.prototype,"data",void 0);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],OY.prototype,"onRendererTap",null);_.c([_.l({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],OY);
_.y(OY,"ytd-lumiere-promo-item-image-renderer",function(){if(uA$!==void 0)return uA$;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return uA$=O},{mode:1});var jxU;var mC=function(){return _.u.apply(this,arguments)||this};
_.X(mC,_.u);mC.prototype.computeLandscapeThumbnail=function(){var O;return((O=this.data)==null?void 0:O.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],mC.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mC.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.yh}),_.Y("design:type",Boolean)],mC.prototype,"miniMode",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.cq}),_.Y("design:type",Number)],mC.prototype,"itemsPerRow",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.Y("design:type",Boolean)],mC.prototype,"landscapeThumbnail",void 0);_.c([_.l({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],mC);
_.y(mC,"ytd-lumiere-shelf-details-renderer",function(){if(jxU!==void 0)return jxU;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return jxU=O},{mode:_.ZB("kevlar_poly_si_batch_j076")?1:2});var I0o;var Go=function(){return _.u.apply(this,arguments)||this};
_.X(Go,_.u);Go.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Go.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Go.prototype,"data",void 0);_.c([_.l({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Go);
_.y(Go,"ytd-primetime-promo-details-renderer",function(){if(I0o!==void 0)return I0o;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return I0o=O},{mode:1});var pJp;var B_=function(){return _.u.apply(this,arguments)||this};
_.X(B_,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],B_.prototype,"data",void 0);_.c([_.l({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],B_);
_.y(B_,"ytd-panel-show-style-metadata-renderer",function(){if(pJp!==void 0)return pJp;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return pJp=O},{mode:1});var Sd8;var QI=function(){return _.u.apply(this,arguments)||this};
_.X(QI,_.u);_.v=QI.prototype;_.v.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.v.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.v.computeThumbnail=function(O){if(O)return O.smallFormFactorBackgroundThumbnail||O.largeFormFactorBackgroundThumbnail};
_.v.maybeComputeHref=function(O){return this.ytComponentBehavior.computeHref_(O,!0)};
_.v.isNavigationCommand=function(O){return O?_.b(O,_.gH)||_.b(O,_.GC)||_.b(O,_.Db)?!0:!1:!1};
_.v.getNavigationCommand=function(O){return this.isNavigationCommand(O)?O:null};
QI.prototype.onPanelTap=QI.prototype.onPanelTap;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],QI.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],QI.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],QI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],QI.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],QI.prototype,"roundedContainer",void 0);_.c([_.g({reflectToAttribute:!0,value:_.V("web_modern_buttons")}),_.Y("design:type",Boolean)],QI.prototype,"modernButtons",void 0);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QI.prototype,"onPanelTap",null);_.c([_.l({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],QI);
_.y(QI,"ytd-primetime-promo-panel-renderer",function(){if(Sd8!==void 0)return Sd8;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Sd8=O},{mode:1});_.qi(_.a(function(O){O=_.ru(O,{data:{},useFullWidth:!1});var m=O.data,G=O.useFullWidth;O={};return _.q("teaser-card-view-model",{class:_.bE("ytTeaserCardViewModelHost",(O.ytTeaserCardViewModelUseFullWidth=function(){return G()},O))},_.q(_.U,{cond:function(){return m().onTap},
then:function(B){return _.q(_.p3,{className:"ytTeaserCardViewModelLink",command:B},_.q("div",{class:"ytTeaserCardViewModelImageContainer"},_.q(_.U,{cond:function(){return m().image},
then:function(Q){return _.q(_.KH,{data:Q,className:"ytTeaserCardViewModelImage",alt:""})}})),_.q("p",{class:"ytTeaserCardViewModelCaption"},function(){return m().caption}))}}))},"Yb"),"teaser-card-view-model",{props:{data:_.VZ,
useFullWidth:_.VZ}});var EWs=new _.Us("RICH_GRID_VIDEO_RENDERER_TOKEN");_.qi(_.a(function(O){var m=O.data;var G=O.showYtInteractionInContent;var B=function(){return!!m().selectableFeedback};
O=_.K(_.Wf(!1,void 0,"qxtgaf"));var Q=O.next().value,H=O.next().value;_.Ln(function(){var z=_.b(m().primaryButton,_.iR);(z==null?0:z.isToggled)&&H(z.isToggled)});
O=_.nH(function(z){if(!B())return!1;if(Q()){var J;var n=(J=m().selectableFeedback)==null?void 0:J.onDeselect}else{var I;n=(I=m().selectableFeedback)==null?void 0:I.onSelect}n&&_.PE(n,{form:{element:z.target}});H(!Q());if(z=_.b(m().primaryButton,_.iR))z.isToggled=Q();return!1});
var M=function(){if(!B()){var z,J=(z=m().loggingDirectives)==null?void 0:z.trackingParams;J&&_.lR(_.KR().resolve(_.GR),J)}},R=_.Rxf(),x=function(){var z;
return B()?(z=m().selectableFeedback)==null?void 0:z.a11yLabel:void 0},t=function(){return B()?{toggled:Q()}:{}},W=_.KR().resolve(_.v7(EWs)),Z={};
return _.q("yt-feedback-item-renderer",{class:_.bE("ytFeedbackItemRendererHost",(Z.ytFeedbackItemRendererSelectableFeedback=B,Z)),"on:click":O,"on:keydown":R,title:x,"aria-label":x,"aria-pressed":function(){return B()?Q():void 0},
tabindex:function(){return B()?0:void 0},
role:function(){return B()?"button":void 0}},_.q("div",{class:"ytFeedbackItemRendererContentContainer"},_.q(_.u5,{data:function(){return m().content}},{videoRenderer:function(z){return _.q(W,{data:z.data,
showYtInteraction:G})},
lockupViewModel:function(z){return _.q(_.oU,{data:z.data,containerType:2})}})),_.q("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.q(_.u5,{data:function(){return m().primaryButton}},{toggleButtonViewModel:function(z){return _.q(_.BT,{data:z.data,
buttonShapeOverrides:t,disableExplicitClickLogging:!0,onToggle:M})}})))},"Zb"),"yt-feedback-item-renderer",{props:{data:_.VZ,
showYtInteractionInContent:_.VZ}});var H_=function(){var O=_.u.apply(this,arguments)||this;O.isShortsGrid=!1;O.isCompactGrid=!1;O.isShortsPanelGrid=!1;O.renderedFromRichGrid=!1;O.isInFirstColumn=!1;O.noGutterMargins=!1;O.noBottomMargin=!1;O.halfBottomMargin=!1;O.isInlineGroupItem=!1;O.insetMetadata=!1;O.noBottomMarginInAds=!0;O.force16By9ThumbnailAspectRatio=!1;O.useCompactList=!1;O.containerType=2;O.thumbnailTargetWidth=9999;O.isResponsiveGrid=!1;O.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};O.hoverListener=
O.hover.bind(O);O.leaveListener=O.leave.bind(O);O.highlighted=!1;O.JSC$16147_unsubscribeFromInlinePreviewIsActive=function(){};
return O};
_.X(H_,_.u);_.v=H_.prototype;_.v.computeContainerType=function(){return this.useCompactList?3:2};
_.v.itemWidthChanged=function(){var O;this.thumbnailTargetWidth=(O=this.itemWidth)!=null?O:9999};
_.v.updateIsInFirstColumn=function(){var O;this.isInFirstColumn=((O=this.data)==null?void 0:O.colIndex)===0};
_.v.observerContainerType=function(){if(this.lockup){var O=this.lockup;O.containerType=this.containerType;O.sizing=this.sizing;O.typographyBump=this.typographyBump;O.itemWidth=this.itemWidth}this.richGridMedia&&_.V("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.V("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.v.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]]"}}}}}};
_.v.leave=function(O){O=O.relatedTarget;var m=document.querySelector("ytd-video-preview");O&&m&&_.zw(m).contains(O)||this.removeAndCleanupHighlight()};
_.v.hover=function(){var O;!this.highlighted&&(O=this.data)!=null&&O.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(O=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:O,boxShadow:"0 0 0 10px "+O})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.v.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};
_.v.registerHoverHighlightListeners=function(){var O=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16147_unsubscribeFromInlinePreviewIsActive=_.dc(_.Kf(),_.KGN,function(m){O.highlighted&&!m&&O.removeAndCleanupHighlight()})};
_.v.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16147_unsubscribeFromInlinePreviewIsActive()};
_.v.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.v.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.v.getBackgroundColor=function(){var O,m,G=(O=this.data)==null?void 0:(m=O.onFocusEffect)==null?void 0:m.onFocusColor;if(G){if(document.documentElement.hasAttribute("dark")&&(G==null?0:G.darkTheme))return _.Fs(G==null?void 0:G.darkTheme);if(G==null?0:G.lightTheme)return _.Fs(G==null?void 0:G.lightTheme)}};
_.v.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var O=_.yA(),m,G,B;O&&((m=this.data)==null?0:m.trackingParams)&&((G=this.data)==null?void 0:G.colIndex)!=null&&((B=this.data)==null?void 0:B.rowIndex)!=null&&_.Qh(O,_.Ez(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.v.isSlimMediaRenderer=function(O){return!!_.b(O==null?void 0:O.content,_.mc8)||!!_.b(O==null?void 0:O.content,Ojm)||!!_.b(O==null?void 0:O.content,_.H3)||!!_.b(O==null?void 0:O.content,VIu)};
_.v.isPostRenderer=function(){var O,m;return!!_.b((O=this.data)==null?void 0:O.content,VBu)||!!_.b((m=this.data)==null?void 0:m.content,bys)};
_.v.computeIsGameCardShelf=function(){var O;return!!_.b((O=this.data)==null?void 0:O.content,Sss)};
_.v.computeIsMiniGameCardShelf=function(){var O,m;return!!_.b((O=this.data)==null?void 0:O.content,D$8)||!!_.b((m=this.data)==null?void 0:m.content,sRo)};
_.v.computeIsTeaserCard=function(){var O;return!!_.b((O=this.data)==null?void 0:O.content,sRo)};
_.v.computeIsSelectableFeedbackItem=function(){var O,m;return!((m=_.b((O=this.data)==null?void 0:O.content,Pa2))==null||!m.selectableFeedback)};
_.v.computeContainsLumierePosters=function(){var O,m;return((m=_.b((O=this.data)==null?void 0:O.content,pkC))==null?void 0:m.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.v.computeIsExpandOnHoverCardShelf=function(){var O;return!!_.b((O=this.data)==null?void 0:O.content,Irp)};
_.v.computeIsLinkCardShelf=function(){var O;return!!_.b((O=this.data)==null?void 0:O.content,SLu)};
_.v.computeIsReelItemStyleAvatarCircle=function(O){var m;return((m=_.b(O==null?void 0:O.content,_.H3))==null?void 0:m.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.v.computeIsLinkCardFullWidth=function(O,m){var G;return((G=_.b(O==null?void 0:O.content,SLu))==null?void 0:G.useFullWidth)||m<=2};
_.vr.Object.defineProperties(H_.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&&_.V("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.onFocusEffect)||_.V("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}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var O;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:(O=this.data)==null?void 0:O.onFocusEffect}}}});
H_.prototype.richGridHoverHighlightChanged=H_.prototype.richGridHoverHighlightChanged;H_.prototype.observerContainerType=H_.prototype.observerContainerType;H_.prototype.updateIsInFirstColumn=H_.prototype.updateIsInFirstColumn;H_.prototype.itemWidthChanged=H_.prototype.itemWidthChanged;_.c([_.h(_.MK),_.Y("design:type",Object)],H_.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],H_.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],H_.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],H_.prototype,"ytdLockupBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],H_.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.Y("design:type",Boolean)],H_.prototype,"isPost",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.Y("design:type",Boolean)],H_.prototype,"containsLumierePosters",void 0);_.c([_.g({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.Y("design:type",Boolean)],H_.prototype,"isSlimMedia",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.Y("design:type",Boolean)],H_.prototype,"isGameCardShelf",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.Y("design:type",Boolean)],H_.prototype,"isMiniGameCardShelf",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.Y("design:type",Boolean)],H_.prototype,"isTeaserCard",void 0);_.c([_.g({computed:"computeIsSelectableFeedbackItem(data)"}),_.Y("design:type",Boolean)],H_.prototype,"isSelectableFeedbackItem",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],H_.prototype,"isShortsGrid",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],H_.prototype,"isSlimGrid",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],H_.prototype,"isCompactGrid",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],H_.prototype,"isShortsPanelGrid",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.Y("design:type",Boolean)],H_.prototype,"isExpandOnHoverCardShelf",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.Y("design:type",Boolean)],H_.prototype,"isLinkCardShelf",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.cq,value:3}),_.Y("design:type",Number)],H_.prototype,"itemsPerRow",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],H_.prototype,"renderedFromRichGrid",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],H_.prototype,"isInFirstColumn",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],H_.prototype,"noGutterMargins",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],H_.prototype,"noBottomMargin",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],H_.prototype,"halfBottomMargin",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],H_.prototype,"isInlineGroupItem",void 0);_.c([_.g(),_.Y("design:type",Object)],H_.prototype,"insetMetadata",void 0);_.c([_.g(),_.Y("design:type",Object)],H_.prototype,"noBottomMarginInAds",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],H_.prototype,"isShelfItem",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.Y("design:type",Boolean)],H_.prototype,"isReelItemStyleAvatarCircle",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.Y("design:type",Boolean)],H_.prototype,"isLinkCardFullWidth",void 0);_.c([_.g(),_.Y("design:type",Object)],H_.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],H_.prototype,"useCompactList",void 0);_.c([_.g(),_.Y("design:type",String)],H_.prototype,"sizing",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],H_.prototype,"typographyBump",void 0);_.c([_.g(),_.Y("design:type",Number)],H_.prototype,"itemWidth",void 0);_.c([_.g(),_.Y("design:type",Boolean)],H_.prototype,"isHomeShelf",void 0);_.c([_.g(),_.Y("design:type",Boolean)],H_.prototype,"isHomeGrid",void 0);
_.c([_.uc("yt-lockup-view-model"),_.Y("design:type",HTMLElement)],H_.prototype,"lockup",void 0);_.c([_.uc("ytd-rich-grid-media"),_.Y("design:type",HTMLElement)],H_.prototype,"richGridMedia",void 0);_.c([_.uc("ytd-ad-slot-renderer"),_.Y("design:type",HTMLElement)],H_.prototype,"adSlotRenderer",void 0);_.c([_.g({computed:"computeContainerType(useCompactList)"}),_.Y("design:type",Object)],H_.prototype,"containerType",void 0);_.c([_.g(),_.Y("design:type",Object)],H_.prototype,"thumbnailTargetWidth",void 0);
_.c([_.T("showYtInteractionOnRichItem"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],H_.prototype,"showYtInteractionOnRichGridMedia",null);_.c([_.T("isSelectableFeedbackItem","richGridHoverHighlight"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],H_.prototype,"showYtInteractionOnRichItem",null);_.c([_.T("typographyBump","isHomeGrid"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],H_.prototype,"richTypographyBump",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data","isShortsGrid","isCompactGrid"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],H_.prototype,"richGridHoverHighlight",null);_.c([_.T("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],H_.prototype,"shortsLockupViewModelAspectRatio",null);_.c([_.T("isInlineGroupItem"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],H_.prototype,"shortsLockupViewModelScrimStyle",null);
_.c([_.Tw("itemWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H_.prototype,"itemWidthChanged",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H_.prototype,"updateIsInFirstColumn",null);_.c([_.Tw("containerType","sizing","typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H_.prototype,"observerContainerType",null);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],H_.prototype,"isResponsiveGrid",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H_.prototype,"lockupExperiments",null);_.c([_.Tw("richGridHoverHighlight"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],H_.prototype,"richGridHoverHighlightChanged",null);_.c([_.l({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],H_);
_.Lv_=_.WE()(H_,"ytd-rich-item-renderer",function(){if(VRu===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);VRu=O}O=VRu;return O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var JjO={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var SyN=_.Qg(_.Xm("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var bVp={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},Xjs={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},fP6={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var CN2;var v_=function(){var O=_.u.apply(this,arguments)||this;O.useResponsiveGrid=!1;O.hidden=!1;O.isShowMoreHidden=!1;O.isShowLessHidden=!0;O.hasExpansionButton=!1;O.isInnerShelf=!1;O.allVideosCount=0;O.allPlaylistCount=0;O.haveSmartDownloadsCompleted=!1;O.restrictContentsOverflow=!1;O.firstShownIndex=0;O.horizontalOffset=0;O.atEnd=!0;O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
O.nextClick=function(){var m;(m=O.data)!=null&&m.contents&&(O.firstShownIndex+=O.currentElementsPerRow,O.updateHorizontalOffset(),O.updateHorizontalItemVisibility())};
O.previousClick=function(){var m;(m=O.data)!=null&&m.contents&&(O.firstShownIndex-=O.currentElementsPerRow,O.updateHorizontalOffset(),O.updateHorizontalItemVisibility())};
return O};
_.X(v_,_.u);_.v=v_.prototype;
_.v.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.kB("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.v.attached=function(){this.requestElementsPerRow()};
_.v.refreshGridLayoutNew=function(){var O;if((O=this.data)!=null&&O.contents&&this.containerWidth){var m;((m=this.data.responsiveContainerConfiguration)==null?0:m.responsiveSize)?(O=_.CrY(this.data.responsiveContainerConfiguration,this.containerWidth),O=_.eh(Object.assign({},O,{standardUnitMinWidth:this.standardUnitMinWidth}))):O=_.eh({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=O.typographyBump;if(this.elementsPerRow!==
O.numItems||this.gutter!==O.gutter)this.elementsPerRow=O.numItems,this.gutter=O.gutter,this.itemWidth=O.itemWidth,_.n7(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":O.gutter+"px"})}};
_.v.computeSizing=function(){if(!this.isLumiere){var O=_.v$I(this.data);return O?O:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.v.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.v.computeButton=function(O){var m=_.b(O,_.v3);O=Object.assign({},_.b(O,_.v3));return m?(O.text||(O.text={simpleText:O.tooltip}),O.style="STYLE_MONO_OUTLINE",O.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",O):m};
_.v.onRowIndexChange=function(){var O=_.yA(),m,G;((m=this.data)==null?0:m.trackingParams)&&((G=this.data)==null?void 0:G.rowIndex)!=null&&O&&_.Qh(O,_.Ez(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.v.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var O,m=((O=this.getRichItemRenderers()[0])==null?void 0:O.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*m;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.v.requestElementsPerRow=function(){_.iP(this.hostElement,"yt-request-elements-per-row")};
_.v.onUpdateElementsPerRowAction=function(O,m,G,B,Q,H){if(this.containerWidth!==H&&(this.containerWidth=H,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&O&&m&&G&&B&&Q&&(this.elementsPerRow!==O||this.postsPerRow!==m||this.slimItemsPerRow!==G||this.gameCardsPerRow!==B||this.miniGameCardsPerRow!==Q)&&(this.elementsPerRow=O,this.postsPerRow=m,this.slimItemsPerRow=G,this.gameCardsPerRow=B,this.miniGameCardsPerRow=Q,this.updateItemVisibility())};
_.v.isExpandedChanged=function(){var O=this.getRichItemRenderers(),m=this.isExpanded;O.forEach(function(G){G.halfBottomMargin=m})};
_.v.isCollapsedChanged=function(){var O=this.getRichItemRenderers(),m=this.isCollapsed;O.forEach(function(G){G.noBottomMargin=m})};
_.v.getRichItemRenderers=function(){return _.ZO(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.v.updateItemVisibility=function(){var O=this;if(this.data&&this.data.contents){var m=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(B,Q){var H;((H=O.data)==null?0:H.isExpanded)?(B.hidden=Q>m-1,B.ytRendererBehavior.markDirty()):B.hidden=Q>O.currentElementsPerRow-1||Q>m-1});
var G=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||G||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||G||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.v.setHeightToSingleRow=function(){var O=this.getRichItemRenderers(),m=Number.parseInt(getComputedStyle(O[0]).marginBottom,10)||0;O=O.slice(0,this.currentElementsPerRow).reduce(function(G,B){return Math.max(G,B.getBoundingClientRect().height+m)},0);
this.contents.style.height=O+"px"};
_.v.focusNextExpandedItem=function(){var O;((O=this.data)==null?0:O.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.v.focusItem=function(O,m){var G=this.getRichItemRenderers();if(G[O]&&(O=G[O].querySelector(".focus-on-expand"))){if(m){var B;(B=G[this.currentElementsPerRow])==null||B.scrollIntoView({behavior:"smooth",block:"center"})}O.focus({preventScroll:!0})}};
_.v.onDataChange=function(){var O=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var m;if((m=this.data)==null?0:m.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.QA(this,function(){O.updateItemVisibility()});
var G;if((G=this.data)==null?0:G.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.n7(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),m=0;m<this.data.contents.length;m++)G=_.b(this.data.contents[m],_.wT)||{},G.colIndex=m,G.rowIndex=this.data.rowIndex};
_.v.handleRerenderDownloadsData=function(){_.V("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())};
_.v.blockInlinePreview=function(O){var m=this,G;return _.r(function(B){(G=m.inlinePreviewIsEnabled)&&m.ytdReduxBehavior.dispatch(_.zko(!1));return B.return(new Promise(function(Q){O(function(){G&&m.ytdReduxBehavior.dispatch(_.zko(!0));Q()})}))})};
_.v.expandShelf=function(){var O=this;if(this.data){var m,G=(m=_.b(this.data.showMoreButton,_.v3))==null?void 0:m.trackingParams;G&&_.lR(_.uK(),G);this.set("data.isExpanded",!0);this.blockInlinePreview(function(B){O.setHeightToSingleRow();O.updateItemVisibility();O.contents.style.height=O.contents.scrollHeight+"px";_.ln.addJob(function(){O.contents.style.height="auto";O.focusNextExpandedItem();B()},2,200)})}};
_.v.collapseShelf=function(){var O=this;return _.r(function(m){if(m.nextAddress==1){if(!O.data)return m.return();O.set("data.isExpanded",!1);return m.yield(O.blockInlinePreview(function(G){O.contents.style.height=O.contents.scrollHeight+"px";O.setHeightToSingleRow();_.ln.addJob(function(){O.updateItemVisibility();O.contents.style.height="auto";G()},2,200)}),2)}_.iP(O.hostElement,"yt-rich-shelf-renderer-collapse",O.data.trackingParams);
O.focusItem(0,!1);_.ju(m)})};
_.v.updateArrowButtonStatus=function(){var O=this.getRichItemRenderers().length;if(!_.V("web_rich_shelf_renderer_use_data_contents_killswitch")){var m,G;O=((m=this.data)==null?void 0:(G=m.contents)==null?void 0:G.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=O};
_.v.onChildElementFocus=function(O){this.hasChevronButtons&&(O=O.target.closest("#contents > *"),this.contents.contains(O)&&(O.offsetLeft<this.horizontalOffset?this.previousClick():O.offsetLeft+O.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.v.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.kB("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.v.updateHorizontalOffset=function(){var O=this.getRichItemRenderers(),m=O.length;if(!_.V("web_rich_shelf_renderer_use_data_contents_killswitch")){var G,B;m=((G=this.data)==null?void 0:(B=G.contents)==null?void 0:B.length)||0}var Q;O=((Q=O[0])==null?void 0:Q.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>m?this.firstShownIndex=m-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*O};
_.v.isSlimMediaShelfRenderer=function(){var O,m,G,B=(G=_.b((O=this.data)==null?void 0:(m=O.contents)==null?void 0:m[0],_.wT))==null?void 0:G.content;return!!(_.b(B,_.mc8)||_.b(B,Ojm)||_.b(B,_.H3)||_.b(B,VIu))};
_.v.isGameCardShelf=function(){var O,m,G,B=(G=_.b((O=this.data)==null?void 0:(m=O.contents)==null?void 0:m[0],_.wT))==null?void 0:G.content;return!!_.b(B,Sss)};
_.v.isGnomeShelf=function(){var O,m,G,B=(G=_.b((O=this.data)==null?void 0:(m=O.contents)==null?void 0:m[0],_.wT))==null?void 0:G.content;return!!_.b(B,Pa2)};
_.v.isMiniGameCardShelf=function(){var O,m,G,B=(G=_.b((O=this.data)==null?void 0:(m=O.contents)==null?void 0:m[0],_.wT))==null?void 0:G.content;return!!_.b(B,D$8)||!!_.b(B,sRo)};
_.v.hasGameBoxArtAvatarStyle=function(){var O;return((O=this.data)==null?void 0:O.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.v.hasRoundedGameBoxArtAvatarStyle=function(){var O;return((O=this.data)==null?void 0:O.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.v.isShortsShelf=function(){var O,m,G,B=(G=_.b((O=this.data)==null?void 0:(m=O.contents)==null?void 0:m[0],_.wT))==null?void 0:G.content;return!!_.b(B,_.H3)||!!_.b(B,VIu)};
_.v.isPostShelfRenderer=function(){var O,m,G,B=(G=_.b((O=this.data)==null?void 0:(m=O.contents)==null?void 0:m[0],_.wT))==null?void 0:G.content;return!(!_.b(B,VBu)&&!_.b(B,bys))};
_.v.isLumiereShelf=function(){var O,m,G=_.b((O=this.data)==null?void 0:(m=O.contents)==null?void 0:m[0],_.wT);return!!_.b(G==null?void 0:G.content,pkC)};
_.v.isLumiereShelfWithPosters=function(){var O,m,G=_.b((O=this.data)==null?void 0:(m=O.contents)==null?void 0:m[0],_.wT),B;return((B=_.b(G==null?void 0:G.content,pkC))==null?void 0:B.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.v.isExpandOnHoverCardShelf=function(){var O,m,G,B=(G=_.b((O=this.data)==null?void 0:(m=O.contents)==null?void 0:m[0],_.wT))==null?void 0:G.content;return!!_.b(B,Irp)};
_.v.computeHasFeaturedBadge=function(){var O,m,G=_.b((O=this.data)==null?void 0:(m=O.badges)==null?void 0:m[0],_.F7e);return G?G.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.v.computeHasPaygatedFeaturedBadge=function(){var O,m,G=_.b((O=this.data)==null?void 0:(m=O.badges)==null?void 0:m[0],_.F7e);return G?(G==null?void 0:G.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.v.computeHeaderHidden=function(){var O,m,G,B,Q,H;return!((O=this.data)==null?0:O.icon)&&!((m=this.data)==null?0:m.title)&&!((G=this.data)==null?0:G.subtitle)&&!((B=this.data)==null?0:B.thumbnail)&&!((Q=this.data)==null?0:Q.badges)&&!((H=this.data)==null?0:H.menu)};
_.v.showCtaButton=function(){var O;return!((O=this.data)==null||!O.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.v.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.v.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.v.computeForce16By9ThumbnailAspectRatio=function(){var O,m;return((O=this.data)==null?void 0:(m=O.responsiveContainerConfiguration)==null?void 0:m.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.v.onSectionReactiveDismissal=function(O,m,G){var B,Q;var H=(B=this.data)==null?void 0:(Q=B.targetingContext)==null?void 0:Q.targetGroupId;this&&H&&m.targetGroupId&&H.includes(m.targetGroupId)?(B=this.rowIndex,O=B===void 0?!1:!(m.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&B<=O)):O=!1;O&&(this.hidden=G)};
_.vr.Object.defineProperties(v_.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null?0:O.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var O=this.elementsPerRow;this.isPostShelfRenderer()?O=this.postsPerRow:this.isSlimMediaShelfRenderer()?O=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?O=this.slimItemsPerRow-1:this.isGameCardShelf()?O=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(O=this.miniGameCardsPerRow);return O}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.V("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null?0:O.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var O,m;return!((O=this.data)==null||!O.previousButton)&&!((m=this.data)==null||!m.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 O;return((O=_.KR().resolve(_.KJ).getCurrentPage())==null?void 0:O.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B;return!((O=this.data)==null?0:(m=O.thumbnail)==null?0:(G=m.accessibility)==null?0:(B=G.accessibilityData)==null?0:B.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
v_.prototype.onChildElementFocus=v_.prototype.onChildElementFocus;v_.prototype.handleRerenderDownloadsData=v_.prototype.handleRerenderDownloadsData;v_.prototype.onDataChange=v_.prototype.onDataChange;v_.prototype.isCollapsedChanged=v_.prototype.isCollapsedChanged;v_.prototype.isExpandedChanged=v_.prototype.isExpandedChanged;v_.prototype.onRowIndexChange=v_.prototype.onRowIndexChange;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],v_.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],v_.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],v_.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],v_.prototype,"ytdReduxBehavior",void 0);
_.c([_.g({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.Y("design:type",Object)],v_.prototype,"useResponsiveGrid",void 0);_.c([_.g(),_.Y("design:type",Object)],v_.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Number)],v_.prototype,"standardUnitMinWidth",void 0);_.c([_.g({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],v_.prototype,"elementsPerRow",void 0);_.c([_.g({value:3}),_.Y("design:type",Number)],v_.prototype,"postsPerRow",void 0);
_.c([_.g({value:6}),_.Y("design:type",Number)],v_.prototype,"slimItemsPerRow",void 0);_.c([_.g({value:6}),_.Y("design:type",Number)],v_.prototype,"gameCardsPerRow",void 0);_.c([_.g({value:6}),_.Y("design:type",Number)],v_.prototype,"miniGameCardsPerRow",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],v_.prototype,"hidden",void 0);_.c([_.g(),_.Y("design:type",Object)],v_.prototype,"isShowMoreHidden",void 0);
_.c([_.g(),_.Y("design:type",Object)],v_.prototype,"isShowLessHidden",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],v_.prototype,"hasExpansionButton",void 0);_.c([_.T("data.isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],v_.prototype,"isExpanded",null);_.c([_.T("data.isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],v_.prototype,"isCollapsed",null);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],v_.prototype,"isInnerShelf",void 0);_.c([_.g({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.Y("design:type",Boolean)],v_.prototype,"isShorts",void 0);_.c([_.g({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.Y("design:type",Boolean)],v_.prototype,"isLumiere",void 0);_.c([_.g({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.Y("design:type",Boolean)],v_.prototype,"hasBoxArtThumbnailStyle",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.Y("design:type",Boolean)],v_.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.Y("design:type",Boolean)],v_.prototype,"hasFeaturedBadge",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.Y("design:type",Boolean)],v_.prototype,"hasPaygatedFeaturedBadge",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.Y("design:type",Boolean)],v_.prototype,"isHeaderHidden",void 0);_.c([_.g({selector:_.x2S}),_.Y("design:type",Object)],v_.prototype,"allVideosCount",void 0);_.c([_.g({selector:Lnp}),_.Y("design:type",Object)],v_.prototype,"allPlaylistCount",void 0);_.c([_.g({selector:nAs}),_.Y("design:type",Object)],v_.prototype,"haveSmartDownloadsCompleted",void 0);
_.c([_.g({selectorArgs:["entitySelectorType"],selector:function(O,m){if(_.V("kevlar_modern_downloads_page")&&m&&m!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var G=O.entities;switch(m){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":m=_.lQ(G);O=nz(m);var B=_.ps(m);G=_.ks(G);G=_.rv(Tnp(B,G,m.length));return{contents:O,subtitle:G};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return G=_.lQ(G),{contents:nz(G)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return G=
_.aQ(G),{contents:nz(G)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return G=_.Y1r(G),{contents:nz(G)};default:_.ay(new _.j9("Error: entitySelectorType defined but not matched in selector.",O,m))}}}}),
_.Y("design:type",Object)],v_.prototype,"entityDrivenRichShelfData",void 0);_.c([_.g({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Y("design:type",Boolean)],v_.prototype,"hasTopCtaButton",void 0);_.c([_.g({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.Y("design:type",Boolean)],v_.prototype,"hasBottomCtaButton",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.Y("design:type",Boolean)],v_.prototype,"force16By9ThumbnailAspectRatio",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],v_.prototype,"restrictContentsOverflow",void 0);_.c([_.g({selector:_.$2z}),_.Y("design:type",Boolean)],v_.prototype,"inlinePreviewIsEnabled",void 0);_.c([_.g({computed:"computeSizing(data)"}),_.Y("design:type",String)],v_.prototype,"sizing",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],v_.prototype,"typographyBump",void 0);_.c([_.g(),_.Y("design:type",Number)],v_.prototype,"itemWidth",void 0);_.c([_.g(),_.Y("design:type",Object)],v_.prototype,"firstShownIndex",void 0);_.c([_.g(),_.Y("design:type",Object)],v_.prototype,"horizontalOffset",void 0);_.c([_.g(),_.Y("design:type",Object)],v_.prototype,"atEnd",void 0);_.c([_.uc("#contents"),_.Y("design:type",HTMLElement)],v_.prototype,"contents",void 0);
_.c([_.Tw("data.rowIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v_.prototype,"onRowIndexChange",null);_.c([_.Tw("isExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v_.prototype,"isExpandedChanged",null);_.c([_.Tw("isCollapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v_.prototype,"isCollapsedChanged",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v_.prototype,"onDataChange",null);_.c([_.Tw("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v_.prototype,"handleRerenderDownloadsData",null);_.c([_.hG("focusin"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],v_.prototype,"onChildElementFocus",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data","isHomePage"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],v_.prototype,"isTruncated",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],v_.prototype,"showBottomDivider",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],v_.prototype,"hasChevronButtons",null);
_.c([_.T("firstShownIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],v_.prototype,"previousButtonOverride",null);_.c([_.T("atEnd"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],v_.prototype,"nextButtonOverride",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],v_.prototype,"isHomePage",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],v_.prototype,"thumbnailAriaHidden",null);
_.c([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],v_.prototype,"entitySelectorType",null);_.c([_.l({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],v_);
_.oW9=_.WE()(v_,"ytd-rich-shelf-renderer",function(){if(CN2===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);CN2=O}O=CN2;return O},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var l0C;_.qi(_.jF,"yt-badge-view-model",{props:{data:_.VZ,class:_.VZ,workaroundShortsIsThumbnailBadge:_.VZ,modern:_.VZ,numBadgesInRow:_.VZ}});_.qi(RDu,"yt-slimline-survey-view-model",{props:{data:_.VZ}});var K1=function(){var O=_.u.apply(this,arguments)||this;O.tileLottieAnimationRef={};O.backgroundLottieAnimationRef={};O.isOnHoverBehaviorForLottieEnabled=!0;O.useBiggerShowcaseImage=_.V("enable_desktop_search_bigger_thumbs");O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return O};
_.X(K1,_.u);_.v=K1.prototype;_.v.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.v.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.v.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var O=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);O!==this.hasTile&&this.set("hasTile",O);O=this.hasLogo(this.data)||!!this.data.badgeText;O!==this.hasMetadata&&this.set("hasMetadata",O);O=this.data.overflowButton?!1:O;O!==this.showLogoImage&&this.set("showLogoImage",O);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.v.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.v.currentColorChanged=function(){this.updateButtonPalette()};
_.v.computeBackgroundStyle=function(O){if(O&&this.data){var m=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var G=_.tH((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);G&&m.push('background-image: url("'+G+'");')}var B;((B=O.basicColorData)==null?void 0:B.backgroundColor)!==void 0&&m.push("background-color: "+_.AV(O.basicColorData.backgroundColor)+";");return m.join("")}};
_.v.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&this.set("isDarkTheme",O)};
_.v.getCurrentLogo=function(O,m){if(O)return m?O.darkLogoImage:O.lightLogoImage};
_.v.getCurrentStaticTileImage=function(O,m){if(this.hasStaticTile(O))return O.darkTileImage?m?O.darkTileImage:O.tileImage:O.tileImage};
_.v.computeTitleStyle=function(O){if(this.data&&this.data.title&&O&&O.basicColorData&&O.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Fs(O.basicColorData.foregroundTitleColor)+";"};
_.v.computeSubtitleStyle=function(O){if(this.data&&this.data.subtitle&&O&&O.basicColorData&&O.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Fs(O.basicColorData.foregroundBodyColor)+";"};
_.v.computeSupplementalStyle=function(O){if(this.data&&this.data.supplementalText&&O&&O.supplementalTextColor!==void 0)return O=_.Fs(O.supplementalTextColor),"color:"+O+";--yt-endpoint-color:"+O+";--yt-endpoint-hover-color:"+O+";--yt-endpoint-visited-color:"+O+";--yt-formatted-string-bold-font-weight:700;"};
_.v.computeDismissIconStyle=function(O){var m,G;if((O==null?0:(m=O.dismissButtonColorData)==null?0:m.foregroundTitleColor)&&(O==null?0:(G=O.dismissButtonColorData)==null?0:G.backgroundColor))return"--yt-button-color:"+_.AV(O.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.AV(O.dismissButtonColorData.backgroundColor)+";"};
_.v.computeOverflowIconStyle=function(O){var m,G;if((O==null?0:(m=O.dismissButtonColorData)==null?0:m.foregroundTitleColor)&&(O==null?0:(G=O.dismissButtonColorData)==null?0:G.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.AV(O.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.AV(O.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.AV(O.dismissButtonColorData.foregroundTitleColor)+";"};
_.v.computeBannerStyle=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.v.computeLocation=function(O){switch(O==null?void 0:O.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.v.shouldShowTileSection=function(O,m,G){return!this.shouldExpandLogo(O,m,G)&&m};
_.v.shouldShowExpandedLogoSection=function(O,m,G){return this.shouldExpandLogo(O,m,G)&&O!==void 0&&this.hasLogo(O)};
_.v.shouldExpandLogo=function(O,m,G){return O&&m?!1:G>=2};
_.v.hasStaticTile=function(O){return!(O==null||!O.tileImage)};
_.v.hasTileLottie=function(O){var m;return!!(O==null?0:(m=O.tileLottie)==null?0:m.url)};
_.v.hasLogo=function(O){return this.getCurrentLogo(O,this.isDarkTheme)!==void 0};
_.v.getLogoHeight=function(O){return this.logoWithPadding(O)?"26":"20"};
_.v.getExpandedLogoHeight=function(O){return this.logoWithPadding(O)?"31":"24"};
_.v.getLogoImageId=function(O){return this.logoWithPadding(O)?"logo-image-with-padding":"logo-image"};
_.v.getMaxTitleFontSize=function(O){return O.overrideTitleMaxFontSize?String(O.overrideTitleMaxFontSize):"36"};
_.v.hasBackgroundLottie=function(O){var m;return!!(O==null?0:(m=O.backgroundLottie)==null?0:m.url)};
_.v.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var O,m;(O=this.tileLottieAnimationRef)==null||(m=O.lottieEl)==null||m.play();var G,B;(G=this.backgroundLottieAnimationRef)==null||(B=G.lottieEl)==null||B.play()}};
_.v.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var O,m;(O=this.tileLottieAnimationRef)==null||(m=O.lottieEl)==null||m.pause();var G,B;(G=this.backgroundLottieAnimationRef)==null||(B=G.lottieEl)==null||B.pause()}};
_.v.pauseLottie=function(){var O,m;(O=this.tileLottieAnimationRef)==null||(m=O.lottieEl)==null||m.pause();var G,B;(G=this.backgroundLottieAnimationRef)==null||(B=G.lottieEl)==null||B.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.v.performPrimaryButtonAction=function(){var O,m,G;((O=this.data)==null?0:(m=O.primaryButton)==null?0:(G=m.buttonRenderer)==null?0:G.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.v.requestElementsPerRow=function(){_.iP(this.hostElement,"yt-request-elements-per-row")};
_.v.updateButtonPalette=function(){if(this.data&&this.currentColorData){var O;((O=this.data.dismissButton)==null?0:O.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 m;if((m=this.data.primaryButton)==null?0:m.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 G;if((G=this.data.secondaryButton)==
null?0:G.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 B;((B=this.data.primaryButton)==null?0:B.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)});var H;((H=this.data.primaryButton)==null?0:H.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.v.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var O=this.getTileLottieDataBasedOnTheme(),m,G;if(O.url!==((m=this.tileLottiePlayerProps)==null?void 0:(G=m.animationConfig)==null?void 0:G.path)){var B,Q;(B=this.tileLottieAnimationRef)==null||(Q=B.lottieEl)==null||Q.destroy();var H;this.isOnHoverBehaviorForLottieEnabled=!((H=O.settings)==null?0:H.autoplay);var M,R;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(R=(M=O.settings)==null?void 0:M.autoplay)!=null?R:!1,loop:this.getLottieLoopValue(O.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof O.url==="string"?this.tileLottiePlayerProps.animationConfig.path=O.url:this.tileLottiePlayerProps.animationConfig.animationData=O.url}}};
_.v.getOverflowButton=function(O){return _.b(O.overflowButton,hAe)};
_.v.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var O=this.getBackgroundLottieDataBasedOnTheme(),m,G;if(O.url!==((m=this.backgroundLottiePlayerProps)==null?void 0:(G=m.animationConfig)==null?void 0:G.path)){var B,Q;(B=this.backgroundLottieAnimationRef)==null||(Q=B.lottieEl)==null||Q.destroy();var H;this.isOnHoverBehaviorForLottieEnabled=!((H=O.settings)==null?0:H.autoplay);var M,R;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(R=(M=O.settings)==null?void 0:M.autoplay)!=null?R:!1,loop:this.getLottieLoopValue(O.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof O.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=O.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
O.url}}};
_.v.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var O;((O=this.tileLottieAnimationRef)==null?void 0:O.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var m;((m=this.backgroundLottieAnimationRef)==null?void 0:m.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.v.getTileLottieDataBasedOnTheme=function(){var O;if(this.isDarkTheme&&((O=this.data)==null?0:O.darkThemeTileLottie))return this.data.darkThemeTileLottie;var m;return((m=this.data)==null?0:m.tileLottie)?this.data.tileLottie:{}};
_.v.getBackgroundLottieDataBasedOnTheme=function(){var O;if(this.isDarkTheme&&((O=this.data)==null?0:O.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var m;return((m=this.data)==null?0:m.backgroundLottie)?this.data.backgroundLottie:{}};
_.v.onUpdateElementsPerRowAction=function(O){O&&this.elementsPerRow!==O&&(this.elementsPerRow=O)};
_.v.getLottieLoopValue=function(O){return O?O.loop!==void 0?O.loop:O.loopCount?O.loopCount-1:!0:!0};
_.v.logoWithPadding=function(O){var m,G,B;return(O=(m=this.getCurrentLogo(O,this.isDarkTheme))==null?void 0:(G=m.thumbnails)==null?void 0:(B=G[0])==null?void 0:B.height)&&O%31===0?!0:!1};
K1.prototype.currentColorChanged=K1.prototype.currentColorChanged;K1.prototype.themeChanged=K1.prototype.themeChanged;K1.prototype.dataChanged=K1.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],K1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],K1.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],K1.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],K1.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],K1.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],K1.prototype,"primaryButton",void 0);_.c([_.g(),_.Y("design:type",Object)],K1.prototype,"secondaryButton",void 0);
_.c([_.g({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],K1.prototype,"elementsPerRow",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],K1.prototype,"isDarkTheme",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],K1.prototype,"hasTile",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],K1.prototype,"hasMetadata",void 0);
_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],K1.prototype,"showLogoImage",void 0);_.c([_.g(),_.Y("design:type",Object)],K1.prototype,"currentColorData",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.Y("design:type",String)],K1.prototype,"bannerStyle",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.Y("design:type",String)],K1.prototype,"location",void 0);
_.c([_.g(),_.Y("design:type",Object)],K1.prototype,"tileLottiePlayerProps",void 0);_.c([_.g(),_.Y("design:type",Object)],K1.prototype,"tileLottieAnimationRef",void 0);_.c([_.g(),_.Y("design:type",Object)],K1.prototype,"backgroundLottiePlayerProps",void 0);_.c([_.g(),_.Y("design:type",Object)],K1.prototype,"backgroundLottieAnimationRef",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],K1.prototype,"useBiggerShowcaseImage",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],K1.prototype,"isHideEnclosingAction",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K1.prototype,"dataChanged",null);_.c([_.Si("isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K1.prototype,"themeChanged",null);
_.c([_.Si("currentColorData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K1.prototype,"currentColorChanged",null);_.c([_.l({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],K1);
_.y(K1,"ytd-statement-banner-renderer",function(){if(l0C!==void 0)return l0C;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return l0C=O},{mode:1});var a03;var $T=function(){var O=_.u.apply(this,arguments)||this;O.isSearch=!1;O.hideShelfHeader=!1;O.engagementPanel=!1;O.disableMouseScroll=!0;O.useFloorScrolling=!0;return O};
_.X($T,_.u);$T.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Xm("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Xm("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
$T.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
$T.prototype.onDataChanged=$T.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$T.prototype,"isSearch",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],$T.prototype,"hideShelfHeader",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],$T.prototype,"engagementPanel",void 0);_.c([_.g(),_.Y("design:type",Object)],$T.prototype,"disableMouseScroll",void 0);_.c([_.g(),_.Y("design:type",Object)],$T.prototype,"useFloorScrolling",void 0);_.c([_.g(),_.Y("design:type",Object)],$T.prototype,"data",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$T.prototype,"onDataChanged",null);
_.c([_.l({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],$T);
_.y($T,"ytd-reel-shelf-renderer",function(){if(a03!==void 0)return a03;var O=document.createElement("template");_.f(O,'\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    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return a03=O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var kNu;var yy2;yy2=_.FY(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.cys=_.WY(yy2);var Yd3=_.a(function(O){var m=O.data;O=O.useSmallFont;var G={},B={};return _.q("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.q(_.U,{cond:function(){return m().favicon},
then:function(Q){return _.q(_.KH,{data:Q,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.q("div",{class:"ytChannelExternalLinkViewModelContainer"},_.q(_.Jg,{text:function(){return m().title},
className:_.bE("ytChannelExternalLinkViewModelTitle",(G.ytChannelExternalLinkViewModelTitleSmallFont=O,G)),ellipsisTruncate:!0,userInput:!0}),_.q(_.Jg,{text:function(){return m().link},
className:_.bE("ytChannelExternalLinkViewModelLink",(B.ytChannelExternalLinkViewModelLinkSmallFont=O,B)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"$b");
Yd3.idomCompat=!0;_.qi(Yd3,"yt-channel-external-link-view-model",{props:{data:_.VZ,useSmallFont:_.VZ}});_.lE("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var ME=function(){var O=_.u.apply(this,arguments)||this;O.revealButtonClass="button";O.businessEmailDisplayState="HIDE_SECTION";return O};
_.X(ME,_.u);_.v=ME.prototype;_.v.refit=function(){var O=this;_.mp(function(){_.UB(O.hostElement,"yt-refit-popups-action")});
_.QA(this,function(){_.UB(O.hostElement,"yt-refit-popups-action")})};
_.v.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.sF(_.cys),this.businessEmailDisplayState="CAPTCHA")};
_.v.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"};
_.v.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.v.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"}}}};
_.v.computeEmailHref=function(O){return"mailto:"+O};
_.v.computeSafeUrl=function(O){if(O)return _.d5(O)};
_.v.linkEndpoint=function(O){return _.b(O.onTap,_.wu)};
_.v.linkEndpointToHref=function(O){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(O))};
_.v.onYtServiceRequestCompleted=function(O){var m;if((m=O.detail.data)==null?0:m.businessEmail)this.businessEmail=O.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var G;if((G=O.detail.data)==null?0:G.errorMessage)this.businessEmailErrorMessage=O.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.v.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var O=this.JSC$16261_captchaTextarea.value;if(O){O={recaptcha_response_token:O,channel_id:this.metadata.channelId};var m=_.b(this.metadata.onBusinessEmailRevealClickCommand,_.wu);m&&this.ytComponentBehavior.resolveCommand(m,{form:O})}}};
_.v.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.vr.Object.defineProperties(ME.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var O;return _.b((O=this.data)==null?void 0:O.metadata,ClH)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.b(this.metadata.businessEmailRevealButton,_.rc)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var O=new URL(this.metadata.canonicalChannelUrl);return O.host+O.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 _.b(this.metadata.learnMoreOnTap,_.wu)}}});
ME.prototype.onYtServiceRequestCompleted=ME.prototype.onYtServiceRequestCompleted;ME.prototype.businessEmailMetadataChanged=ME.prototype.businessEmailMetadataChanged;ME.prototype.refit=ME.prototype.refit;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],ME.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ME.prototype,"ytRendererstamperBehavior",void 0);_.c([_.uc("#g-recaptcha-response"),_.Y("design:type",HTMLTextAreaElement)],ME.prototype,"JSC$16261_captchaTextarea",void 0);_.c([_.g(),_.Y("design:type",Object)],ME.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],ME.prototype,"revealButtonClass",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ME.prototype,"metadata",null);
_.c([_.T("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ME.prototype,"revealButton",null);_.c([_.T("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ME.prototype,"channelDisplayUrl",null);_.c([_.Si("metadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ME.prototype,"refit",null);_.c([_.T("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ME.prototype,"formattedDescription",null);
_.c([_.T("metadata","learnMoreCommand"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ME.prototype,"shouldRendereVerifiedPhoneStatus",null);_.c([_.T("metadata"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ME.prototype,"learnMoreCommand",null);_.c([_.g(),_.Y("design:type",String)],ME.prototype,"businessEmailDisplayState",void 0);_.c([_.g(),_.Y("design:type",String)],ME.prototype,"businessEmail",void 0);
_.c([_.g(),_.Y("design:type",String)],ME.prototype,"businessEmailErrorMessage",void 0);_.c([_.Si("metadata"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ME.prototype,"businessEmailMetadataChanged",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ME.prototype,"onYtServiceRequestCompleted",null);_.c([_.l({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],ME);
_.y(ME,"ytd-about-channel-renderer",function(){if(kNu!==void 0)return kNu;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return kNu=O},{mode:1});var dVU;var rQ=function(){return _.u.apply(this,arguments)||this};
_.X(rQ,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],rQ.prototype,"data",void 0);_.c([_.l({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],rQ);
_.y(rQ,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(dVU!==void 0)return dVU;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return dVU=O},{mode:1});var wJ2;var R2=function(){return _.u.apply(this,arguments)||this};
_.X(R2,_.u);R2.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],R2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],R2.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],R2.prototype,"aligment",void 0);_.c([_.l({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],R2);
_.y(R2,"ytd-channel-list-sub-menu-renderer",function(){if(wJ2!==void 0)return wJ2;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return wJ2=
O},{mode:1});var eO8;var ii=function(){return _.u.apply(this,arguments)||this};
_.X(ii,_.u);ii.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ii.prototype,"data",void 0);_.c([_.l({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],ii);
_.y(ii,"ytd-channel-sub-menu-renderer",function(){if(eO8!==void 0)return eO8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return eO8=O},{mode:1});var DVe;var sx8;var xT=function(){var O=_.u.apply(this,arguments)||this;O.isCompact=!1;return O};
_.X(xT,_.u);_.vr.Object.defineProperties(xT.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var O,m;return((m=_.b((O=this.data)==null?void 0:O.endpoint,_.Db))==null?void 0:m.target)==="TARGET_NEW_WINDOW"}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],xT.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],xT.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],xT.prototype,"isCompact",void 0);_.c([_.T("isCompact"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],xT.prototype,"thumbnailWidth",null);
_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xT.prototype,"openNewWindow",null);_.c([_.l({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],xT);
_.y(xT,"ytd-media-lockup-renderer",function(){if(sx8!==void 0)return sx8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return sx8=O},{mode:1});var Nx2;var qE=function(){return _.u.apply(this,arguments)||this};
_.X(qE,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],qE.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],qE.prototype,"data",void 0);_.c([_.l({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],qE);
_.y(qE,"ytd-structured-description-channel-lockup-renderer",function(){if(Nx2!==void 0)return Nx2;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Nx2=O},{mode:1});var PNo;var UY=function(){var O=_.u.apply(this,arguments)||this;O.isCompact=!1;O.collections=_.V("web_modern_collections_v2");O.collectionsStackColor=_.V("modernize_structured_description_playlist_lockups_v2");return O};
_.X(UY,_.u);UY.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:_.V("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.vr.Object.defineProperties(UY.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B,Q,H;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(O=this.data)==null?void 0:(m=O.thumbnail)==null?void 0:m.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(G=this.data)==null?void 0:(B=G.thumbnail)==null?void 0:B.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(Q=this.data)==null?void 0:(H=Q.thumbnail)==
null?void 0:H.vibrantColorPalette:void 0}}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],UY.prototype,"componentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],UY.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],UY.prototype,"showSidePanelThumbnailOverlay",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],UY.prototype,"isCompact",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],UY.prototype,"collections",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],UY.prototype,"collectionsStackColor",void 0);_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],UY.prototype,"twoLineTitle",null);
_.c([_.T("data","collections","collectionsStackColor"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],UY.prototype,"collectionStack",null);_.c([_.l({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],UY);
_.y(UY,"ytd-structured-description-playlist-lockup-renderer",function(){if(PNo!==void 0)return PNo;var O=document.createElement("template");_.f(O,'\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)]]" aria-label$="[[getSimpleString(data.title)]]">\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return PNo=O},{mode:1});var Fv2;var tk=function(){return _.u.apply(this,arguments)||this};
_.X(tk,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],tk.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],tk.prototype,"data",void 0);_.c([_.l({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],tk);
_.y(tk,"ytd-structured-description-video-lockup-renderer",function(){if(Fv2!==void 0)return Fv2;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Fv2=O},{mode:2});var W_=function(){return _.u.apply(this,arguments)||this};
_.X(W_,_.u);
W_.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],W_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],W_.prototype,"data",void 0);_.c([_.l({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],W_);
_.y(W_,"ytd-compact-infocard-renderer",function(){if(DVe!==void 0)return DVe;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return DVe=O},{mode:1});var Ays;var Zi=function(){var O=_.u.apply(this,arguments)||this;O.useModernCollectionsV2=_.V("web_modern_collections_v2");return O};
_.X(Zi,_.u);Zi.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.vr.Object.defineProperties(Zi.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Zi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],Zi.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],Zi.prototype,"ytdReduxBehavior",void 0);_.c([_.g({selector:_.dg}),_.Y("design:type",Object)],Zi.prototype,"isGridViewEnabled",void 0);
_.c([_.T("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zi.prototype,"watchFeedBigThumbs",null);_.c([_.T("isGridViewEnabled","data"),_.g({reflectToAttribute:!0,value:"168"}),_.Y("design:type",String),_.Y("design:paramtypes",[])],Zi.prototype,"thumbnailWidth",null);_.c([_.T("isGridViewEnabled","data"),_.g({reflectToAttribute:!0,value:"94"}),_.Y("design:type",String),_.Y("design:paramtypes",[])],Zi.prototype,"customThumbnailSize",null);
_.c([_.g(),_.Y("design:type",Object)],Zi.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Zi.prototype,"useModernCollectionsV2",void 0);_.c([_.l({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Zi);
_.y(Zi,"ytd-compact-playlist-renderer",function(){if(Ays!==void 0)return Ays;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Ays=O},{mode:1});var Og9;var zo=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");O.roundedContainer=!0;O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return O};
_.X(zo,_.u);_.v=zo.prototype;_.v.attached=function(){this.requestElementsPerRow()};
_.v.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"}}}};
_.v.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.v.computeViewStyle=function(O){return O.style?O.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.v.onUpdateElementsPerRowAction=function(O){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&O===1};
_.v.requestElementsPerRow=function(){_.iP(this.hostElement,"yt-request-elements-per-row")};
zo.prototype.dataChanged=zo.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],zo.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],zo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],zo.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],zo.prototype,"actionHandlerBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],zo.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],zo.prototype,"hideThumbnail",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.Y("design:type",String)],zo.prototype,"viewStyle",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],zo.prototype,"darkerDarkTheme",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],zo.prototype,"roundedContainer",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zo.prototype,"dataChanged",null);_.c([_.l({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],zo);
_.y(zo,"ytd-compact-promoted-item-renderer",function(){if(Og9!==void 0)return Og9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Og9=O},{mode:1});var mU3;var Jk=function(){var O=_.u.apply(this,arguments)||this;O.collections=_.V("web_modern_collections_v2");return O};
_.X(Jk,_.u);Jk.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Jk.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Jk.prototype.onYtNavigate=function(O,m){var G=this;if(m.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",m)){var B=this.get("watchEndpoint.videoId",m.endpoint),Q=_.UB(this.hostElement,"yt-get-current-video-id-action")[0];_.V("kevlar_mix_handle_first_endpoint_different")&&B&&Q&&B!==Q||(O.stopPropagation(),_.rR().getPlayerPromise().then(function(H){if(H.getPlayerState()===0&&G.data.secondaryNavigationEndpoint)var M=G.data.secondaryNavigationEndpoint;else{M=
Object.assign({},m.endpoint);var R=_.b(M.commandMetadata,_.bP);R&&(H=Math.floor(H.getCurrentTime()),R.url=_.Oe(R.url,{t:H}),!_.V("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(R=_.b(M,_.GC)))&&(R.startTimeSeconds=H)}_.iP(G.hostElement,"yt-navigate",{endpoint:M})}))}};
_.vr.Object.defineProperties(Jk.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B,Q,H;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(O=this.data)==null?void 0:(m=O.thumbnail)==null?void 0:m.sampledThumbnailColor,vibrantColorPalette:(G=this.data)==null?void 0:(B=G.thumbnail)==null?void 0:B.vibrantColorPalette,darkColorPalette:(Q=this.data)==null?void 0:(H=Q.thumbnail)==null?void 0:H.darkColorPalette,experimentEnabled:this.collections}}}});
Jk.prototype.onYtNavigate=Jk.prototype.onYtNavigate;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.yZ.YtEndpointBehavior),_.Y("design:type",Object)],Jk.prototype,"ytEndpointBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],Jk.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.h(_.Z2),_.Y("design:type",Object)],Jk.prototype,"ytdLockupBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],Jk.prototype,"ytdReduxBehavior",void 0);_.c([_.g({selector:_.dg}),_.Y("design:type",Object)],Jk.prototype,"isGridViewEnabled",void 0);_.c([_.T("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Jk.prototype,"watchFeedBigThumbs",null);
_.c([_.T("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],Jk.prototype,"thumbnailWidth",null);_.c([_.g(),_.Y("design:type",Object)],Jk.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Jk.prototype,"collections",void 0);_.c([_.T("data","collections"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Jk.prototype,"collectionStack",null);
_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Jk.prototype,"onYtNavigate",null);_.c([_.l({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Jk);
_.y(Jk,"ytd-compact-radio-renderer",function(){if(mU3!==void 0)return mU3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return mU3=O},{mode:1});var Gfo;var VI=function(){return _.u.apply(this,arguments)||this};
_.X(VI,_.u);VI.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
VI.prototype.computeRendererStyle=function(O){return O.style?O.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.c([_.g(),_.Y("design:type",Object)],VI.prototype,"data",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],VI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],VI.prototype,"rendererBehavior",void 0);_.c([_.g({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.Y("design:type",String)],VI.prototype,"rendererStyle",void 0);_.c([_.l({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],VI);
_.y(VI,"ytd-compact-text-promo-renderer",function(){if(Gfo!==void 0)return Gfo;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Gfo=O},{mode:1});var BLs;var bi=function(){var O=_.u.apply(this,arguments)||this;O.isShortsStyle=!1;return O};
_.X(bi,_.u);_.v=bi.prototype;_.v.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"}}}};
_.v.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.iP(this.hostElement,"yt-disable-lockup-interaction"):_.iP(this.hostElement,"yt-enable-lockup-interaction"))};
_.v.isMetaBlockEmpty=function(O){return!O||!O.longBylineText&&!O.shortBylineText&&!O.shortViewCountText&&!O.viewCountText};
_.v.computeHasOneLineTitle=function(O){return this.forceOneLineTitle||!(O==null||!O.buttons)};
_.v.computeDisableInteraction=function(){var O;return!((O=this.data)==null?0:O.navigationEndpoint)};
_.v.hasSingularTopStandaloneBadge=function(){var O;return!((O=this.data)==null||!O.topStandaloneBadge)};
_.vr.Object.defineProperties(bi.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("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 O;return this.hasSingularTopStandaloneBadge()?[(O=this.data)==null?void 0:O.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var O;return this.shouldShowTopBadges?((O=this.data)==null?void 0:O.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
bi.prototype.disableInteractionChanged=bi.prototype.disableInteractionChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],bi.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],bi.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],bi.prototype,"ytdLockupBehavior",void 0);
_.c([_.h(_.MK),_.Y("design:type",Object)],bi.prototype,"ytdReduxBehavior",void 0);_.c([_.g({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.Y("design:type",Boolean)],bi.prototype,"metaBlockEmpty",void 0);_.c([_.g({selector:_.dg}),_.Y("design:type",Object)],bi.prototype,"isGridViewEnabled",void 0);_.c([_.T("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bi.prototype,"watchFeedBigThumbs",null);
_.c([_.T("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],bi.prototype,"thumbnailWidth",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],bi.prototype,"isShortsStyle",void 0);_.c([_.g(),_.Y("design:type",Object)],bi.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.Y("design:type",Boolean)],bi.prototype,"hasOneLineTitle",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],bi.prototype,"hideThumbnail",void 0);_.c([_.g(),_.Y("design:type",Boolean)],bi.prototype,"forceOneLineTitle",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.Y("design:type",Boolean)],bi.prototype,"disableInteraction",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],bi.prototype,"musicMetadataVideoLockup",void 0);
_.c([_.Tw("disableInteraction"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bi.prototype,"disableInteractionChanged",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bi.prototype,"shouldShowTopBadges",null);_.c([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],bi.prototype,"topBadges",null);
_.c([_.T("shouldShowTopBadges","data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],bi.prototype,"inlineMetadataBadges",null);_.c([_.T("shouldShowTopBadges"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],bi.prototype,"shouldShowBadgesBelowMetadata",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bi.prototype,"compactTitleClass",null);_.c([_.l({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],bi);
_.y(bi,"ytd-compact-video-renderer",function(){if(BLs!==void 0)return BLs;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return BLs=O},{mode:_.ZB("kevlar_poly_si_batch_j067")?1:2});var QGs;_.lE("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var n1=function(){return _.u.apply(this,arguments)||this};
_.X(n1,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],n1.prototype,"data",void 0);_.c([_.l({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],n1);
_.y(n1,"ytd-counterfactual-renderer",function(){if(QGs!==void 0)return QGs;var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return QGs=O},{mode:1});var Hgs;var Xx=function(){var O=_.u.apply(this,arguments)||this;O.hidden=!1;return O};
_.X(Xx,_.u);Xx.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.KR().resolve(_.Mu).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Xx.prototype.computeHidden=function(O){return!!O};
_.vr.Object.defineProperties(Xx.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Xx.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.Y("design:type",Object)],Xx.prototype,"hidden",void 0);_.c([_.T("data.label"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Xx.prototype,"label",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Xx.prototype,"value",null);
_.c([_.l({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Xx);
_.y(Xx,"ytd-dropdown-item-renderer",function(){if(Hgs!==void 0)return Hgs;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Hgs=O},{mode:1});var vu_;var Kzj;var f1=function(){return _.u.apply(this,arguments)||this};
_.X(f1,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],f1.prototype,"data",void 0);_.c([_.g({computed:"getSimpleString(data.label)"}),_.Y("design:type",String)],f1.prototype,"label",void 0);_.c([_.l({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],f1);
_.y(f1,"ytd-navigation-dropdown-item-renderer",function(){if(Kzj!==void 0)return Kzj;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Kzj=O},{mode:1});var hk=function(){var O=_.u.apply(this,arguments)||this;O.disabled=!1;O.value="";O.noLabelFloat=!1;O.noUnderline=!1;O.usePrimaryColor=!1;O.hasBackground=!1;O.verticalAlign="top";O.autosize=!1;O.minAutosizeWidth=100;O.autosizeFont="14px Roboto";return O};
_.X(hk,_.u);_.v=hk.prototype;_.v.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"}}}};
_.v.open=function(){this.inputEl.open()};
_.v.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.v.dataChanged=function(){this.reset()};
_.v.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("value-changed",this.value))};
_.v.stopPropagation=function(O){O.stopPropagation()};
_.v.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var O=this.canvas.getContext("2d");O&&(O.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(O.measureText(this.inputEl.value).width)+24)+"px")}};
_.v.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var O=0,m=this.data.entries.length;O<m;O++){var G=this.data.entries[O],B;for(B in G)if(G.hasOwnProperty(B)){var Q=G[B];if("isSelected"in Q&&Q.isSelected)return"stringValue"in Q?Q.stringValue||"":"int32Value"in Q?Q.int32Value||0:0}}return null};
_.v.updateValueFromBinding=function(O){this.value=O.detail.value};
_.vr.Object.defineProperties(hk.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 O=0,m=this.data.entries.length;O<m;O++){var G=this.data.entries[O],B;for(B in G)if(G.hasOwnProperty(B)){var Q=G[B];if("isSelected"in Q&&Q.isSelected&&"label"in Q)return this.ytRendererBehavior.getSimpleString(Q.label)}}return null}}});
hk.prototype.autoSizeLabel=hk.prototype.autoSizeLabel;hk.prototype.stopPropagation=hk.prototype.stopPropagation;hk.prototype.valueChangedForBinding=hk.prototype.valueChangedForBinding;hk.prototype.dataChanged=hk.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],hk.prototype,"ytRendererStamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],hk.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hk.prototype,"disabled",void 0);_.c([_.g(),_.Y("design:type",Object)],hk.prototype,"value",void 0);_.c([_.g(),_.Y("design:type",Object)],hk.prototype,"noLabelFloat",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hk.prototype,"noUnderline",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],hk.prototype,"theme",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hk.prototype,"usePrimaryColor",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hk.prototype,"hasBackground",void 0);_.c([_.g(),_.Y("design:type",Object)],hk.prototype,"verticalAlign",void 0);_.c([_.g(),_.Y("design:type",Object)],hk.prototype,"autosize",void 0);_.c([_.g(),_.Y("design:type",Object)],hk.prototype,"minAutosizeWidth",void 0);_.c([_.g(),_.Y("design:type",Object)],hk.prototype,"autosizeFont",void 0);
_.c([_.uc("#entries"),_.Y("design:type",Object)],hk.prototype,"entries",void 0);_.c([_.uc("#input"),_.Y("design:type",Object)],hk.prototype,"inputEl",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hk.prototype,"dataChanged",null);_.c([_.Si("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hk.prototype,"valueChangedForBinding",null);
_.c([_.hG("iron-overlay-opened"),_.hG("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],hk.prototype,"stopPropagation",null);_.c([_.hG("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hk.prototype,"autoSizeLabel",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hk.prototype,"label",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],hk);
_.y(hk,"ytd-dropdown-renderer",function(){if(vu_!==void 0)return vu_;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return vu_=O},{mode:1});var $U_;var To=function(){var O=_.u.apply(this,arguments)||this;O.isConstrainedList=!1;return O};
_.X(To,_.u);To.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"}}}};
To.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
To.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
To.prototype.computeViewAllHidden=function(O,m){return O||!m.viewAllEndpoint};
To.prototype.fillRestIfNoShowMore=To.prototype.fillRestIfNoShowMore;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],To.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.jQ.YtLazyListBehavior),_.Y("design:type",Object)],To.prototype,"ytLazyListBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],To.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],To.prototype,"isConstrainedList",void 0);_.c([_.Si("data","canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],To.prototype,"fillRestIfNoShowMore",null);_.c([_.l({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],To);
_.y(To,"ytd-expanded-shelf-contents-renderer",function(){if($U_!==void 0)return $U_;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return $U_=O},{mode:_.ZB("kevlar_poly_si_batch_j025")?1:2});var M2U;var gQ=function(){return _.u.apply(this,arguments)||this};
_.X(gQ,_.u);gQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],gQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],gQ.prototype,"data",void 0);_.c([_.l({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],gQ);
_.y(gQ,"ytd-feed-channel-filter-header-renderer",function(){if(M2U!==void 0)return M2U;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return M2U=O},{mode:1});var rd8;var RQo;var ig$;var ui=function(){return _.u.apply(this,arguments)||this};
_.X(ui,_.u);_.v=ui.prototype;_.v.onClick=function(O){var m,G=(m=this.data)==null?void 0:m.sectionEndpoint;!_.Hu(_.$Z(O),this.hostElement,["A".toString()])&&G&&_.iP(this.hostElement,"yt-navigate",{endpoint:G})};
_.v.computeHasSectionEndpoint=function(O){return(O==null?void 0:O.sectionEndpoint)!==void 0};
_.v.computeShowHeaderAsLink=function(O){return(O==null?void 0:O.header)!==void 0&&(O==null?void 0:O.sectionEndpoint)!==void 0};
_.v.computeShowSubheaderAsLink=function(O){return(O==null?void 0:O.subheader)!==void 0&&(O==null?void 0:O.sectionEndpoint)!==void 0&&(O==null?void 0:O.header)===void 0};
_.v.getHeaderAsLinkClass=function(O){var m=[],G;(O==null?0:(G=O.headerIcon)==null?0:G.iconType)&&m.push("header-link-active");return m.join(" ")};
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],ui.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ui.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ui.prototype,"data",void 0);
_.c([_.g({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ui.prototype,"hasSectionEndpoint",void 0);_.c([_.g({computed:"computeShowHeaderAsLink(data)"}),_.Y("design:type",Boolean)],ui.prototype,"showHeaderAsLink",void 0);_.c([_.g({computed:"computeShowSubheaderAsLink(data)"}),_.Y("design:type",Boolean)],ui.prototype,"showSubheaderAsLink",void 0);_.c([_.l({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],ui);
_.y(ui,"ytd-medical-panel-section-renderer",function(){if(ig$!==void 0)return ig$;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return ig$=O},{mode:1});var jv=function(){var O=_.u.apply(this,arguments)||this;O.isExpanded=!1;O.roundedContainer=!0;O.skipRoundingTop=!1;O.toggleExpandableSection=function(){O.isExpanded=!O.isExpanded};
return O};
_.X(jv,_.u);
jv.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]]"}}}}}};
jv.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
jv.prototype.dataChanged=jv.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],jv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],jv.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],jv.prototype,"isExpanded",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jv.prototype,"roundedContainer",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jv.prototype,"skipRoundingTop",void 0);_.c([_.g(),_.Y("design:type",Object)],jv.prototype,"toggleExpandableSection",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jv.prototype,"dataChanged",null);_.c([_.l({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],jv);
_.y(jv,"ytd-medical-panel-content-renderer",function(){if(RQo!==void 0)return RQo;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return RQo=O},{mode:1});_.lE("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var I2=function(){var O=_.u.apply(this,arguments)||this;O.roundedContainer=!0;O.extractOverlay=!1;O.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");O.hasTitle=!1;O.linkIcon="OPEN_IN_NEW";O.isDismissed=!1;return O};
_.X(I2,_.u);I2.prototype.onOverlayConditionsChange=function(){var O=_.ZO(this.hostElement).querySelector("ytd-info-panel-content-renderer");O&&(O.set("extractOverlay",this.extractOverlay),O.set("roundedContainer",this.roundedContainer))};
I2.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]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
I2.prototype.computeHasTitle=function(O){return!(O==null||!O.title)};
I2.prototype.onClick=function(O){var m,G=(m=this.data)==null?void 0:m.headerEndpoint;!_.Hu(_.$Z(O),this.hostElement,["BUTTON".toString()])&&G&&this.ytComponentBehavior.resolveCommand(G)};
_.vr.Object.defineProperties(I2.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 O;return((O=this.data)==null?void 0:O.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?void 0:O.disableBottomDivider)||!((m=this.data)==null?0:m.title)}}});
I2.prototype.onOverlayConditionsChange=I2.prototype.onOverlayConditionsChange;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],I2.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],I2.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],I2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],I2.prototype,"ytdReduxBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],I2.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],I2.prototype,"roundedContainer",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],I2.prototype,"extractOverlay",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],I2.prototype,"amsterdamEnabled",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Y("design:type",Object)],I2.prototype,"hasTitle",void 0);
_.c([_.g({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.T("data.background"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I2.prototype,"background",null);_.c([_.g({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.T("data.titleStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I2.prototype,"titleStyle",null);
_.c([_.g({type:_.V("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.T("data.titleStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I2.prototype,"showLinkIcon",null);_.c([_.g(),_.Y("design:type",String)],I2.prototype,"linkIcon",void 0);_.c([_.g({type:_.V("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],I2.prototype,"hideDivider",null);
_.c([_.g({selectorArgs:["data.dismissStateEntityKey"],selector:function(O,m){O=_.Vh(O.entities,"dismissState",m);return(O==null?void 0:O.isDismissed)||(O==null?void 0:O.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(O==null?void 0:O.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.Y("design:type",Object)],I2.prototype,"isDismissed",void 0);_.c([_.Tw("roundedContainer","extractOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],I2.prototype,"onOverlayConditionsChange",null);_.c([_.l({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],I2);
_.y(I2,"ytd-info-panel-container-renderer",function(){if(rd8!==void 0)return rd8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return rd8=O},{mode:1});var xUu;_.lE("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var p1=function(){return _.u.apply(this,arguments)||this};
_.X(p1,_.u);p1.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
p1.prototype.computeStyle=function(O){return O?O:""};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],p1.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.Y("design:type",String)],p1.prototype,"titleStyle",void 0);
_.c([_.l({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],p1);
_.WE()(p1,"ytd-item-section-header-renderer",function(){if(xUu===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);xUu=O}O=xUu;return O},{allowedProps:["data"],
mode:1});var quu;var UUp,t2C=function(){return UUp!==void 0?UUp:UUp=document.createElement("template")};
document.head.appendChild(t2C().content);var Wzp;_.Sv=new _.Us("VOTING_ANIMATION_CONTROLLER_TOKEN");var zQU=_.a(function(O){var m=O.data;var G=_.Al("div"),B=_.Al("div");O=_.K(_.Wf("VOTE_STATUS_NONE",void 0,"YPH5mf"));var Q=O.next().value,H=O.next().value,M=_.fJ(obs,function(){var z;return(z=m())==null?void 0:z.entityKey}),R=_.V("web_enable_voting_animation")||_.V("enable_music_web_cairo_voting_animation");
_.Ln(function(){var z;((z=m().initialState)==null?0:z.status)&&H(m().initialState.status)});
var x=function(){var z,J,n=(J=(z=m().initialState)==null?void 0:z.votes)!=null?J:0,I;z=(I=m().initialState)==null?void 0:I.status;return z==="VOTE_STATUS_UPVOTED"?n-1:z==="VOTE_STATUS_DOWNVOTED"?n+1:n},t=function(){return Q()==="VOTE_STATUS_UPVOTED"?x()+1:Q()==="VOTE_STATUS_DOWNVOTED"?x()-1:x()},W=function(z){var J=z?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
H(J);var n=t(),I=_.KR().resolve(_.v7(_.Sv)),S=M();S&&(z&&(S==null?0:S.upvoteDefaultButtonOnTap)?_.PE(S.upvoteDefaultButtonOnTap,{form:{element:G.value},disableClickTracking:!0}):(S==null?0:S.upvoteToggledButtonOnTap)&&_.PE(S.upvoteToggledButtonOnTap,{form:{element:G.value},disableClickTracking:!0}));var L;z=(L=S==null?void 0:S.enableOptimisticReordering)!=null?L:m().enableOptimisticReordering;R&&I&&m().itemId&&z&&Zg_(I,m().itemId,n,J)},Z=function(z){var J=z?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
H(J);var n=t(),I=_.KR().resolve(_.v7(_.Sv)),S=M();S&&(z&&(S==null?0:S.downvoteDefaultButtonOnTap)?_.PE(S.downvoteDefaultButtonOnTap,{form:{element:B.value},disableClickTracking:!0}):(S==null?0:S.downvoteToggledButtonOnTap)&&_.PE(S.downvoteToggledButtonOnTap,{form:{element:B.value},disableClickTracking:!0}));var L;z=(L=S==null?void 0:S.enableOptimisticReordering)!=null?L:m().enableOptimisticReordering;R&&I&&m().itemId&&z&&Zg_(I,m().itemId,n,J)};
O={};O=_.bE("ytVotingViewModelVoteCount",(O.ytVotingViewModelVoteCountDisabled=function(){return m().isDisabled},O));
return _.q("voting-view-model",{class:"ytVotingViewModelHost"},_.q("div",{el:G},_.q(_.u5,{data:function(){var z=_.b(m().upvoteButton,_.iR);return{toggleButtonViewModel:Object.assign({},z,{isToggled:Q()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(z){return _.q(_.BT,{data:z.data,
onToggle:W})}})),_.q("div",{class:O},function(){var z,J,n;
return Q()==="VOTE_STATUS_UPVOTED"?(z=m().initialState)==null?void 0:z.compactVotesUpvoted:Q()==="VOTE_STATUS_DOWNVOTED"?(J=m().initialState)==null?void 0:J.compactVotesDownvoted:(n=m().initialState)==null?void 0:n.compactVotes}),_.q("div",{el:B},_.q(_.u5,{data:function(){var z=_.b(m().downvoteButton,_.iR);
return{toggleButtonViewModel:Object.assign({},z,{isToggled:Q()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(z){return _.q(_.BT,{data:z.data,
onToggle:Z})}})))},"ac");_.qi(_.a(function(O){var m=O.data;return _.q("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.q("div",{class:_.bE("ytEngagementBarViewModelEngagementBarWrapper",O.className)},_.q(_.u5,{data:function(){return m().actions}},{votingViewModel:zQU})))},"bc"),"engagement-bar-view-model",{props:{data:_.VZ,
className:_.VZ}});var EY=function(){var O=_.u.apply(this,arguments)||this;O.playlistVotingAnimationEnabled=_.V("web_enable_voting_animation");O.downloadProgress=0;O.transferState="TRANSFER_STATE_UNKNOWN";O.downloadState="DOWNLOAD_STATE_UNKNOWN";O.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";O.offlineVideoPolicyExpirationTimestamp=0;return O};
_.X(EY,_.u);_.v=EY.prototype;_.v.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"}}}};
_.v.canReorderChanged=function(){this.persistentDragHandle=_.V("kevlar_playlist_drag_handles")&&this.canReorder};
_.v.onDrag=function(){if(this.thumbnail){var O=_.ZO(this.thumbnail).querySelector("yt-image");O&&(O.shouldRenderLazy=!1)}};
_.v.onMenuOverlayChanged=function(O,m){this.menuOpened=m};
_.v.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.v.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.v.onContentsTap=function(O){var m,G=(m=this.data)==null?void 0:m.serviceEndpoints;if(G&&G.length===1&&_.b(G[0],dwN)&&!_.Hu(_.$Z(O),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(G[0]);else{var B;(m=(B=this.data)==null?void 0:B.navigationEndpoint)&&_.V("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Jdp(_.KR().resolve(_.c$),m):(_.c3().playlistSuggestionsShelfActivation=
!0,_.V22(_.KR().resolve(_.c$),m)):m&&!_.Hu(_.$Z(O),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.V("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.iP(this.hostElement,"yt-navigate",{endpoint:m}):this.ytComponentBehavior.resolveCommand(m))}};
_.v.computeStyle=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.v.computeThumbnailWidth=function(O){return O==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.v.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=K2r(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))}};
_.v.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.v.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.v.dataChanged=function(){if(this.data){var O,m,G,B=((O=this.downloadRenderData)==null?void 0:O.badges)&&((m=this.downloadRenderData)==null?void 0:m.badges)!==((G=this.data)==null?void 0:G.badges),Q,H,M;O=((Q=this.downloadRenderData)==null?void 0:Q.thumbnailOverlays)&&((H=this.downloadRenderData)==null?void 0:H.thumbnailOverlays)!==((M=this.data)==null?void 0:M.thumbnailOverlays);(!this.downloadRenderData||B||O)&&this.downloadStateChanged()}};
_.v.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var O,m,G=(O=this.data.menu)==null?void 0:(m=O.menuRenderer)==null?void 0:m.items;if(G)for(O=_.K(G),m=O.next();!m.done;m=O.next())if(m=m.value,G=void 0,_.b((G=m.menuServiceItemRenderer)==null?void 0:G.serviceEndpoint,_.B3)){var B=G=void 0,Q=void 0;m=(G=m)==null?void 0:(B=G.menuServiceItemRenderer)==null?void 0:(Q=B.serviceEndpoint)==null?void 0:Q.playlistEditEndpoint;Q=B=void 0;if(G=(B=m)==null?void 0:(Q=B.actions)==null?void 0:
Q[0])B=void 0,G.setVideoId=(B=this.data)==null?void 0:B.setVideoId;Q=B=G=void 0;if(m=(G=m)==null?void 0:(B=G.clientActions)==null?void 0:(Q=B[0])==null?void 0:Q.playlistRemoveVideosAction)G=void 0,m.setVideoIds=[(G=this.data)==null?void 0:G.setVideoId]}}};
_.vr.Object.defineProperties(EY.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
EY.prototype.setVideoIdChanged=EY.prototype.setVideoIdChanged;EY.prototype.dataChanged=EY.prototype.dataChanged;EY.prototype.downloadStateChanged=EY.prototype.downloadStateChanged;EY.prototype.onMenuOverlayChanged=EY.prototype.onMenuOverlayChanged;EY.prototype.canReorderChanged=EY.prototype.canReorderChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],EY.prototype,"ytdReduxBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],EY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],EY.prototype,"ytdLockupBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],EY.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],EY.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],EY.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],EY.prototype,"canReorder",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],EY.prototype,"menuOpened",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],EY.prototype,"handleIsHovered",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],EY.prototype,"persistentDragHandle",void 0);_.c([_.g(),_.Y("design:type",Object)],EY.prototype,"downloadRenderData",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],EY.prototype,"styleType",void 0);_.c([_.g({computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],EY.prototype,"thumbnailWidth",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],EY.prototype,"isDownloads",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],EY.prototype,"playlistVotingAnimationEnabled",void 0);
_.c([_.g({selector:sr,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],EY.prototype,"downloadProgress",void 0);_.c([_.g(),_.Y("design:type",Number)],EY.prototype,"relativeDateReference",void 0);_.c([_.g({selector:_.eH,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],EY.prototype,"transferState",void 0);_.c([_.g({selector:h9O,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],EY.prototype,"downloadState",void 0);
_.c([_.g({selector:R9N,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],EY.prototype,"offlinePolicyAction",void 0);_.c([_.g({selector:iis,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],EY.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.c([_.g({selector:qEs,selectorArgs:["data.videoId"]}),_.Y("design:type",Object)],EY.prototype,"entityInfo",void 0);_.c([_.g({selector:_.Ys}),_.Y("design:type",Boolean)],EY.prototype,"miniplayerIsActive",void 0);
_.c([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],EY.prototype,"playlistVideoId",null);_.c([_.uc("#thumbnail"),_.Y("design:type",Object)],EY.prototype,"thumbnail",void 0);_.c([_.Si("canReorder"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EY.prototype,"canReorderChanged",null);
_.c([_.hG("yt-menu-overlay-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Boolean]),_.Y("design:returntype")],EY.prototype,"onMenuOverlayChanged",null);_.c([_.Si("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EY.prototype,"downloadStateChanged",null);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EY.prototype,"dataChanged",null);_.c([_.Si("data.setVideoId"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EY.prototype,"setVideoIdChanged",null);_.c([_.l({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],EY);
_.y(EY,"ytd-playlist-video-renderer",function(){if(Wzp!==void 0)return Wzp;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);O.content.insertBefore(t2C().content.cloneNode(!0),O.content.firstChild);return Wzp=O},{mode:1});var bge;var L1=function(){return _.u.apply(this,arguments)||this};
_.X(L1,_.u);_.c([_.g(),_.Y("design:type",Object)],L1.prototype,"data",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],L1.prototype,"rendererBehavior",void 0);_.c([_.l({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],L1);
_.y(L1,"ytd-premium-browse-footer-renderer",function(){if(bge!==void 0)return bge;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return bge=O},{mode:1});var nuH;var C1=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return O};
_.X(C1,_.u);_.v=C1.prototype;_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.handleDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.v.computeHeaderLogoThumbnail=function(O,m){if(O)return m?O.darkLogo:O.lightLogo};
_.v.computeHeaderLogoHeight=function(O,m){var G,B,Q;return(O=(G=this.computeHeaderLogoThumbnail(O,m))==null?void 0:(B=G.thumbnails)==null?void 0:(Q=B[0])==null?void 0:Q.height)&&O%31===0?"31":"24"};
_.v.computeHeaderLogoMarginBottom=function(O,m){return this.computeHeaderLogoHeight(O,m)==="24"?"0":"-7"};
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],C1.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],C1.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],C1.prototype,"isDarkTheme",void 0);_.c([_.g({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.Y("design:type",Object)],C1.prototype,"themeLogo",void 0);
_.c([_.g({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.Y("design:type",String)],C1.prototype,"logoHeight",void 0);_.c([_.g({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.Y("design:type",String)],C1.prototype,"logoMarginBottom",void 0);_.c([_.l({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],C1);
_.y(C1,"ytd-primetime-promo-header-renderer",function(){if(nuH!==void 0)return nuH;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return nuH=O},{mode:1});var XaU;_.o2=_.a(function(O){var m=O.className;var G=O.data;var B=O.isOverlay;var Q=O.maxLinesOverride;var H=O.useMediumText;var M=function(){return G().alwaysShowTruncationText},R=function(){return G().truncationText},x=function(){return H!==void 0&&H()?"medium":"small"},t=function(){return B!==void 0&&B()?"overlay":"default"},W=function(){var n,I;
return(I=(n=_.b(G().rendererContext,_.gD))==null?void 0:n.label)!=null?I:""};
O=_.K(_.Wf(!1,void 0,"OKr1o"));var Z=O.next().value,z=O.next().value;O=_.nH(function(){G().expandOnTap&&z(!Z());return!1});
var J={};return _.q("yt-description-preview-view-model",{el:_.Mi(_.yp(function(){return G().rendererContext})),
class:_.bE("ytDescriptionPreviewViewModelHost",m,(J.ytDescriptionPreviewViewModelClickable=function(){var n;return!((n=_.b(G().rendererContext,Vcp))==null||!n.onTap)},J.ytDescriptionPreviewViewModelIsOverlay=B,J)),
"on:click":O},_.q(_.U,{cond:function(){return G().description},
then:function(n){return _.q(_.U,{cond:Z,then:function(){var I={};return _.q("div",{class:_.bE("ytDescriptionPreviewViewModelDescription",(I.ytDescriptionPreviewViewModelDescriptionMediumText=H,I))},_.q(_.Jg,{text:n}))},
else:function(){return _.q(jb9,{text:n,alwaysShowTruncationText:M,truncationText:R,maxLines:function(){var I;return(I=Q==null?void 0:Q())!=null?I:G().maxLines},
textStyle:t,accessibilityLabel:W,textSize:x})}})}}))},"cc");
_.o2.idomCompat=!0;var hQ2=_.a(function(O){var m=_.nH(function(Q){var H;(H=O.onClick)==null||H.call(O,Q)}),G={},B={};
return _.q("yt-shelf-header-layout",{class:_.bE("yt-shelf-header-layout",(G["yt-shelf-header-layout--disable-horizontal-padding"]=O.disableHorizontalPadding,G["yt-shelf-header-layout--disable-vertical-padding"]=O.disableVerticalPadding,G["yt-shelf-header-layout--responsive"]=O.useResponsiveLayout,G["yt-shelf-header-layout--narrow"]=function(){var Q,H;return((Q=O.useResponsiveLayout)==null?void 0:Q.call(O))&&((H=O.forceSmallLayout)==null?void 0:H.call(O))},G["yt-shelf-header-layout--is-overlay"]=O.isOverlay,
G["yt-shelf-header-layout--tappable"]=O.isInteractive,G)),
"on:click":m,tabindex:function(){var Q;return((Q=O.isInteractive)==null?0:Q.call(O))?0:void 0}},_.q("div",{class:"yt-shelf-header-layout__header-row"},_.q(_.U,{cond:O.leadingIcon,
then:function(Q){return _.q("div",{class:"yt-shelf-header-layout__leading-icon"},_.q(_.T$,{icon:Q}))},
else:function(){return _.q(_.U,{cond:O.hasLeadingImage,then:function(){var Q,H={};return _.q("div",{class:_.bE("yt-shelf-header-layout__leading-image",(H["yt-shelf-header-layout__leading-image--circular-image"]=O.circularImage,H))},(Q=O.leadingImage)==null?void 0:Q.call(O))}})}}),_.q("div",{class:"yt-shelf-header-layout__label-container"},_.q(_.U,{cond:O.hasSuperlabel,
then:function(){var Q;return _.q("div",{class:"yt-shelf-header-layout__superlabel"},(Q=O.superlabel)==null?void 0:Q.call(O))}}),_.q("div",{class:"yt-shelf-header-layout__title-row"},_.q(f$8,{text:O.title,
className:_.bE("yt-shelf-header-layout__title",(B["yt-shelf-header-layout__title--small-title"]=O.forceSmallLayout,B)),tagLevel:O.tagLevel}),_.q(_.U,{cond:O.hasDetail,then:function(){var Q;return _.q("div",{class:"yt-shelf-header-layout__detail"},(Q=O.detail)==null?void 0:Q.call(O))}})),_.q(_.U,{cond:O.hasSublabel,
then:function(){var Q;return _.q("div",{class:"yt-shelf-header-layout__sublabel"},(Q=O.sublabel)==null?void 0:Q.call(O))}})),_.q(_.U,{cond:O.hasTrailingActions,
then:function(){var Q;return _.q("div",{class:"yt-shelf-header-layout__trailing-actions"},(Q=O.trailingActions)==null?void 0:Q.call(O))}})),_.q(_.U,{cond:O.hasBottomAccessory,
then:function(){var Q;return(Q=O.bottomAccessory)==null?void 0:Q.call(O)}}))},"dc");
hQ2.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var f$8=_.a(function(O){var m=O.text;var G=O.className;var B=O.tagLevel;return _.q(_.I8,null,_.q(_.uz,{when:function(){return(B==null?void 0:B())===0}},function(){return _.q("h2",{class:G},m())}),_.q(_.uz,{when:function(){return(B==null?void 0:B())===1}},function(){return _.q("h3",{class:G},m())}),_.q(_.uz,{when:function(){return(B==null?void 0:B())===2}},function(){return _.q("h4",{class:G},m())}),_.q(_.jx,null,function(){return _.q("h2",{class:G},m())}))},"ec");var uNp,TL3,guj;_.li=_.a(function(O){var m=O.className;var G=O.data;var B=O.disableHorizontalPadding;var Q=O.disableVerticalPadding;var H=O.forceSmallLayout;var M=O.useResponsiveLayout;O=O.isOverlay;return _.q("yt-section-header-view-model",{class:_.bE("ytSectionHeaderViewModelHost",m),style:_.hH({"background-color":function(){return Xv(G().backgroundColor)?_.AV(Xv(G().backgroundColor)):void 0}})},_.q(hQ2,{hasDetail:!1,
title:function(){return _.q(_.Jg,{text:function(){return G().headline}})},
hasTitle:!0,sublabel:function(){return _.q(TL3,{data:G})},
hasSublabel:function(){return!!G().sublabel||!!G().bottomBadge},
superlabel:function(){return _.q(guj,{data:G})},
hasSuperlabel:function(){return!!G().superlabel||!!G().topBadge},
leadingImage:function(){return _.q(uNp,{leadingAccessory:function(){return G().leadingAccessory}})},
hasLeadingImage:function(){return!!G().leadingAccessory},
trailingActions:function(){return _.q(_.u5,{data:function(){return G().trailingActions}},{flexibleActionsViewModel:_.vo})},
hasTrailingActions:function(){return!!G().trailingActions},
disableHorizontalPadding:B,disableVerticalPadding:Q,forceSmallLayout:H,useResponsiveLayout:M,isOverlay:O,isInteractive:function(){return!!_.a_(G().rendererContext)},
onClick:function(R){if(_.ki(G().rendererContext)){var x=_.a_(G().rendererContext);x&&_.DB(x,{form:{element:R.target,event:R}})}},
bottomAccessory:function(){return _.q(_.u5,{data:function(){return G().bottomAccessory}},{descriptionPreviewViewModel:_.o2})},
hasBottomAccessory:function(){return!!G().bottomAccessory}}))},"fc");
uNp=_.a(function(O){var m=O.leadingAccessory;return _.q(_.Mr,null,_.q(_.U,{cond:function(){var G;return(G=m().image)!=null?G:_.Dv(m().themedImage)},
then:function(G){return _.q(_.KH,{data:G,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.q(_.U,{cond:function(){return _.b(m().avatar,_.cu)},
then:function(G){return _.q(_.HP,{data:G})}}))},"gc");
TL3=_.a(function(O){var m=O.data;return _.q(_.Mr,null,_.q(_.U,{cond:function(){return _.b(m().bottomBadge,pgj)},
then:function(G){var B={};return _.q(_.jF,{data:G,class:_.bE((B.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!G()&&!!m().sublabel},B))})}}),_.q(_.U,{cond:function(){return m().sublabel},
then:function(G){return _.q(_.Jg,{text:G})}}))},"hc");
guj=_.a(function(O){var m=O.data;return _.q(_.Mr,null,_.q(_.U,{cond:function(){return _.b(m().topBadge,pgj)},
then:function(G){var B={};return _.q(_.jF,{data:G,class:_.bE((B.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!G()&&!!m().superlabel},B))})}}),_.q(_.U,{cond:function(){return m().superlabel},
then:function(G){return _.q(_.Jg,{text:G})}}))},"ic");_.qi(_.li,"yt-section-header-view-model",{props:{data:_.VZ,className:_.VZ,disableHorizontalPadding:_.VZ,disableVerticalPadding:_.VZ,forceSmallLayout:_.VZ,useResponsiveLayout:_.VZ,isOverlay:_.VZ}});_.lE("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var a2=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return O};
_.X(a2,_.u);_.v=a2.prototype;_.v.attached=function(){this.requestElementsPerRow()};
_.v.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"}}}};
_.v.onDataChange=function(){var O=this;_.QA(this,function(){O.updateItemVisibility()})};
_.v.onUpdateElementsPerRowAction=function(O){O&&this.elementsPerRow!==O&&(this.elementsPerRow=O,this.updateItemVisibility())};
_.v.updateItemVisibility=function(){var O=this;this.data&&this.data.panels&&_.ZO(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(m,G){m.hidden=G>O.elementsPerRow-1})};
_.v.requestElementsPerRow=function(){_.iP(this.hostElement,"yt-request-elements-per-row")};
a2.prototype.onDataChange=a2.prototype.onDataChange;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],a2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],a2.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],a2.prototype,"actionHandlerBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],a2.prototype,"data",void 0);_.c([_.g({value:3}),_.Y("design:type",Number)],a2.prototype,"elementsPerRow",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],a2.prototype,"onDataChange",null);_.c([_.l({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],a2);
_.y(a2,"ytd-primetime-promo-renderer",function(){if(XaU!==void 0)return XaU;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return XaU=O},{mode:1});var jGs;var kT=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return O};
_.X(kT,_.u);kT.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
kT.prototype.handleButtonRefreshAction=function(O){if(O=_.b(O,B6C))this.set("data.button",O.membershipButton),this.notifyPath("data.button")};
_.vr.Object.defineProperties(kT.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?void 0:(m=O.avatars)==null?void 0:m.slice(0,8))||[]}}});
_.c([_.g(),_.Y("design:type",Object)],kT.prototype,"data",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],kT.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],kT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],kT.prototype,"rendererBehavior",void 0);_.c([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],kT.prototype,"avatars",null);
_.c([_.l({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],kT);
_.y(kT,"ytd-recognition-shelf-renderer",function(){if(jGs!==void 0)return jGs;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return jGs=O},{mode:1});var I$3;var pa_;var yI=function(){var O=_.u.apply(this,arguments)||this;O.modernButtons=_.V("web_modern_buttons");return O};
_.X(yI,_.u);_.v=yI.prototype;
_.v.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]]"}}}}}};
_.v.dataChanged=function(){this.collapsed=!0};
_.v.computeVisibleItems=function(O,m){return O!==void 0&&O.items?m?O.items.slice(0,this.data.collapsedItemCount):O.items:[]};
_.v.computeHideShowMore=function(O,m,G){return O>=m||!G};
_.v.computeHideShowAll=function(O,m,G){return!(O&&m)||G};
_.v.onMoreClick=function(){this.collapsed=!1};
_.vr.Object.defineProperties(yI.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.V("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.ib("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.V("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
yI.prototype.dataChanged=yI.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],yI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],yI.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],yI.prototype,"isSearch",void 0);
_.c([_.g({computed:"computeVisibleItems(data,collapsed)"}),_.Y("design:type",Array)],yI.prototype,"visibleItems",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],yI.prototype,"collapsed",void 0);_.c([_.g({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.Y("design:type",Boolean)],yI.prototype,"hideShowMore",void 0);
_.c([_.g({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.Y("design:type",Boolean)],yI.prototype,"hideShowAll",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yI.prototype,"modernButtons",void 0);_.c([_.T("isSearch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],yI.prototype,"typographyBump",null);
_.c([_.T("isSearch"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yI.prototype,"lockupExperiments",null);_.c([_.T("isSearch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],yI.prototype,"thumbnailWidth",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yI.prototype,"dataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],yI);
_.y(yI,"ytd-vertical-list-renderer",function(){if(pa_!==void 0)return pa_;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return pa_=O},{mode:1});var Su2=_.FY(["#"]);_.lE("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var c_=function(){var O=_.u.apply(this,arguments)||this;O.isConstrainedList=!1;return O};
_.X(c_,_.u);_.v=c_.prototype;
_.v.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"}}}};
_.v.computeThumbnailStyle=function(O){return O||""};
_.v.computePlaceAnnotationUnderTitle=function(){var O;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((O=this.data)==null?void 0:O.thumbnailStyle)||"")};
_.v.computeHrefWithDefault=function(O){return this.ytComponentBehavior.computeHref_(O)||_.Fa6(Su2)};
_.v.computeIsPromoShelf=function(O){var m;return(O=O==null?void 0:(m=O[0])==null?void 0:m.metadataBadgeRenderer)?O.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.v.computePlaceBadgeBesideTitle=function(O){var m;return(O==null?0:(m=O[0])==null?0:m.metadataBadgeRenderer)?!this.computeIsPromoShelf(O):!1};
_.v.computeMenuIcon=function(O){return this.computeIsPromoShelf(O)?"yt-icons:more_vert":"yt-icons:more"};
_.v.onDataChange=function(){var O,m;((O=this.data)==null?0:(m=O.content)==null?0:m.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.v.onLockupRequested=function(O){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&O.detail&&O.detail.videoIds){for(var m=this.data.content.gridRenderer.items,G=new Set,B=_.K(O.detail.videoIds),Q=B.next();!Q.done;Q=B.next())G.add(Q.value);O.detail.returnValue=m.filter(function(H){return H.gridVideoRenderer&&H.gridVideoRenderer.videoId&&G.has(H.gridVideoRenderer.videoId)}).map(function(H){return H.gridVideoRenderer})}};
_.v.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
c_.prototype.onLockupRequested=c_.prototype.onLockupRequested;c_.prototype.onDataChange=c_.prototype.onDataChange;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],c_.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],c_.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.Dm),_.Y("design:type",Object)],c_.prototype,"ironResizableBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],c_.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],c_.prototype,"isSearch",void 0);_.c([_.g(),_.Y("design:type",Object)],c_.prototype,"isConstrainedList",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("kevlar_fluid_dismiss")}}),
_.Y("design:type",Boolean)],c_.prototype,"enableFluidDismiss",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.Y("design:type",String)],c_.prototype,"thumbnailStyle",void 0);_.c([_.g({computed:"computeMenuIcon(data.badges)"}),_.Y("design:type",String)],c_.prototype,"menuIcon",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],c_.prototype,"onDataChange",null);
_.c([_.hG("yt-lockup-requested"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],c_.prototype,"onLockupRequested",null);_.c([_.l({is:"ytd-shelf-renderer",disableElementRegistration:!0})],c_);
_.y(c_,"ytd-shelf-renderer",function(){if(I$3!==void 0)return I$3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return I$3=O},{mode:1});var Eu$;var dQ=function(){return _.u.apply(this,arguments)||this};
_.X(dQ,_.u);dQ.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.vr.Object.defineProperties(dQ.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],dQ.prototype,"data",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dQ.prototype,"isPlaylist",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dQ.prototype,"isClipList",void 0);
_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],dQ.prototype,"isPlaylistPageWithFilters",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dQ.prototype,"hasTitle",null);_.c([_.g(),_.T("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dQ.prototype,"isRightAligned",null);
_.c([_.l({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],dQ);
_.y(dQ,"ytd-sort-filter-header-renderer",function(){if(Eu$!==void 0)return Eu$;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Eu$=O},{mode:1});var Lze;var wQ=function(){var O=_.u.apply(this,arguments)||this;O.enableRightArrowHidden=_.V("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return O};
_.X(wQ,_.u);wQ.prototype.attached=function(){var O=this;this.enableRightArrowHidden&&(this.JSC$16390_throttledOnResize=new _.Pu(function(){var m;(m=O.ytdHorizontalListBehavior)==null||m.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var m;
(m=O.JSC$16390_throttledOnResize)==null||m.fire()}),this.resizeObserver.observe(this.hostElement))};
wQ.prototype.detached=function(){if(this.enableRightArrowHidden){var O;(O=this.resizeObserver)==null||O.disconnect();var m;(m=this.JSC$16390_throttledOnResize)==null||m.dispose()}};
wQ.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]]"}}}}}};
wQ.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.vr.Object.defineProperties(wQ.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.V("enable_creator_details_shelf_m2")){var O=[],m;((m=this.data)==null?0:m.creatorVideosButton)&&O.push(this.data.creatorVideosButton);var G;((G=this.data)==null?0:G.creatorAboutButton)&&O.push(this.data.creatorAboutButton);m=_.K(this.data.creatorCustomUrlButtons||[]);for(G=m.next();!G.done;G=m.next())O.push(G.value);return O}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.V("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],wQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Ir.YtdHorizontalListBehavior),_.Y("design:type",Object)],wQ.prototype,"ytdHorizontalListBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],wQ.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wQ.prototype,"engagementPanel",void 0);
_.c([_.g(),_.Y("design:type",Object)],wQ.prototype,"enableRightArrowHidden",void 0);_.c([_.T("enableRightArrowHidden","atEnd"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wQ.prototype,"hideRightArrow",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],wQ.prototype,"creatorCustomUrlButtons",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data","creatorCustomUrlButtons"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],wQ.prototype,"showCreatorCustomUrlButtons",null);_.c([_.T("showCreatorCustomUrlButtons"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],wQ.prototype,"channelAvatarSize",null);_.c([_.l({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],wQ);
_.y(wQ,"ytd-video-description-infocards-section-renderer",function(){if(Lze!==void 0)return Lze;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Lze=O},{mode:_.ZB("kevlar_poly_si_batch_j067")?1:2});var Ck2;var ev=function(){return _.u.apply(this,arguments)||this};
_.X(ev,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ev.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ev.prototype,"data",void 0);_.c([_.g({computed:"computeIcon_(data.infoIcon)"}),_.Y("design:type",Object)],ev.prototype,"infoIcon",void 0);_.c([_.l({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],ev);
_.y(ev,"ytd-eom-settings-disclaimer-renderer",function(){if(Ck2!==void 0)return Ck2;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Ck2=O},{mode:1});var ou9;var Di=function(){return _.u.apply(this,arguments)||this};
_.X(Di,_.u);_.vr.Object.defineProperties(Di.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.suppressPaddingDisclaimer)}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Di.prototype,"componentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Di.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Di.prototype,"suppressPaddingDisclaimer",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Di);
_.y(Di,"ytd-product-list-header-renderer",function(){if(ou9!==void 0)return ou9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ou9=O},{mode:1});var l$o;var sY=function(){return _.u.apply(this,arguments)||this};
_.X(sY,_.u);sY.prototype.computeThumbnailStyle=function(O){if(O&&(O=_.Fs(O)))return"background-color:"+O+";"};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],sY.prototype,"rendererBehaviors",void 0);_.c([_.g(),_.Y("design:type",Object)],sY.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],sY);
_.y(sY,"ytd-hashtag-tile-renderer",function(){if(l$o!==void 0)return l$o;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return l$o=O},{mode:1});var a$e;var NE=function(){return _.u.apply(this,arguments)||this};
_.X(NE,_.u);NE.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],NE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],NE.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],NE);
_.y(NE,"ytd-sponsorships-alert-renderer",function(){if(a$e!==void 0)return a$e;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return a$e=O},{mode:1});var kf3;var P_=function(){return _.u.apply(this,arguments)||this};
_.X(P_,_.u);P_.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.vr.Object.defineProperties(P_.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.c([_.h(_.Rr),_.Y("design:type",Object)],P_.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],P_.prototype,"ytdLockupBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],P_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.c([_.g({selector:_.dg}),_.Y("design:type",Object)],P_.prototype,"isGridViewEnabled",void 0);
_.c([_.T("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],P_.prototype,"watchFeedBigThumbs",null);_.c([_.T("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.Y("design:type",String),_.Y("design:paramtypes",[])],P_.prototype,"thumbnailWidth",null);_.c([_.g(),_.Y("design:type",Object)],P_.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],P_);
_.y(P_,"ytd-compact-movie-renderer",function(){if(kf3!==void 0)return kf3;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return kf3=O},{mode:1});var ydp;var cd2;var YuC=_.kB("HTML_DIR")==="rtl",Fx=function(){var O=_.u.apply(this,arguments)||this;O.engagementPanel=!1;O.maxLines=2;O.expandButtonOffset=0;O.showExpandButton=!1;O.isTruncated=!1;O.isExpanded=!1;O.currentSnippetType=2;O.alwaysShowExpandButton=!1;O.JSC$16407_lastWidth=NaN;O.observer=null;O.left=0;O.right=0;O.mid=0;O.longestSnippetLength=0;O.isFinalSnippet=!1;O.isFirstMutation=!1;O.isResetMutation=!1;O.OVERFLOW_THRESHOLD=5;return O};
_.X(Fx,_.u);_.v=Fx.prototype;_.v.onClick=function(O){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Hu(_.$Z(O)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var m;if((m=window.getSelection())==null||!m.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.v.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.v.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.v.updateTextOnSnippetTypeChange=function(){_.V("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.v.setUpBinarySearch=function(O){O=O*this.maxLines/8;this.left=0;var m,G;this.right=Math.min(O*2,(G=(m=this.simpleText)==null?void 0:m.length)!=null?G:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.v.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.v.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.ay(new _.j9("AttributedSnippet is empty when the description is not empty",this.text))};
_.v.mutationCallback=function(){if(this.observer!=null){var O=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var m=Math.floor(O*this.maxLines/8);this.setSnippetText(this.text,m);m!==0||this.attributedTextIsEmpty()||_.ay(new _.j9("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;O=O*this.maxLines/8;this.left=0;var G;this.right=Math.min(O*2,(G=(m=this.simpleText)==null?void 0:m.length)!=null?G: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)}}};
_.v.mutationObserve=function(O){var m=this;this.observer||(this.observer=new MutationObserver(function(){m.mutationCallback()}));
this.observer.observe(O,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.v.attached=function(){var O=this;_.QA(this,function(){O.resize()})};
_.v.isExpandedChanged=function(){_.iP(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.v.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)};
_.v.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var O="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((YuC?"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",O);this.snippetContainer.style.setProperty("mask-image",
O)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(YuC?"right":"left",this.expandButtonOffset+"px")};
_.v.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.v.setSnippetText=function(O,m){O||(O={});if(_.QX(O)){var G=G$(O,m);G.attachmentRuns||G.commandRuns||G.decorationRuns||G.styleRuns||G.alignment||G.lineBreakMode?this.attributedSnippetTextEl?(_.V("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=G$(O,m),this.attributedSnippetTextEl.headerRuns=qGr(m,this.headerRuns)):this.attributedSnippetText={data:G$(O,m),headerRuns:qGr(m,this.headerRuns)},this.currentSnippetType=0):_.ay(new _.j9("Tried to set snippet text when HTML element was null",
O)):(this.plainSnippetText.textContent=Of(O.content||"",m),this.currentSnippetType=2)}else{a:{G=lPe(O,m);if(G.runs){G=_.K(G.runs);for(var B=G.next();!B.done;B=G.next())if(B=B.value,B.bold||B.deemphasize||B.italics||B.strikethrough||B.textColor||B.navigationEndpoint||_.b(B,Yn)){G=!0;break a}}G=!1}G?this.formattedSnippetText?(this.formattedSnippetText.text=lPe(O,m),this.currentSnippetType=1):_.ay(new _.j9("Tried to set snippet text when HTML element was null",O)):(this.plainSnippetText.textContent=
Of(_.HX(O),m),this.currentSnippetType=2)}};
_.v.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.v.attributedTextIsEmpty=function(){var O=this.text;if(!_.QX(O))return!0;var m;return((m=O.content)==null?void 0:m.length)===0?!0:!1};
_.v.resize=function(O){if(this.snippetText){if(O===void 0?0:O)this.JSC$16407_lastWidth=NaN;var m=this.hostElement.offsetWidth;if(m!==this.JSC$16407_lastWidth&&!this.isExpanded)if(this.JSC$16407_lastWidth=m,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;O=0;var G,B;m=Math.min(m*this.maxLines/8*2,(B=(G=this.simpleText)==null?void 0:G.length)!=null?B:0)-1;for(G=0;O<=m;)B=Math.floor(O+(m-O)/2),this.setSnippetText(this.text,B),this.isOverflowing()?m=B-1:(O=B+1,G=B);this.setSnippetText(this.text,G);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.v.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.v.onExpandClick=function(){var O=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.V("inline_expander_reset_focus_killswitch")||_.QA(this,function(){var m;((m=_.KR().resolve(_.v7(_.IF)))==null?0:m.isKeyBoardInUse())&&_.OJ(O.hostElement)});
_.iP(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.v.onCollapseClick=function(){this.collapse();_.iP(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.v.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.v.computeExpandButtonOffset=function(){var O=this.expandSizer;return O?YuC?O.offsetParent?O.offsetParent.offsetWidth-O.offsetWidth-O.offsetLeft:0:O.offsetLeft:0};
_.vr.Object.defineProperties(Fx.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.QX(this.text)?this.text.content||"":_.HX(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 _.QX(this.text)?!0:this.text&&_.V("web_replace_formatted_with_attributed_string")&&als(this.text)?(this.text=_.cE(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}}});
Fx.prototype.onTextChanged=Fx.prototype.onTextChanged;Fx.prototype.updateMaskAndExpandButtonOffset=Fx.prototype.updateMaskAndExpandButtonOffset;Fx.prototype.updateSnippetContainerMaxHeight=Fx.prototype.updateSnippetContainerMaxHeight;Fx.prototype.isExpandedChanged=Fx.prototype.isExpandedChanged;Fx.prototype.updateTextOnSnippetTypeChange=Fx.prototype.updateTextOnSnippetTypeChange;Fx.prototype.updateIsFormattedExpanded=Fx.prototype.updateIsFormattedExpanded;Fx.prototype.updateIsAttributedExpanded=Fx.prototype.updateIsAttributedExpanded;
Fx.prototype.onClick=Fx.prototype.onClick;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Fx.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Fx.prototype,"text",void 0);_.c([_.g(),_.Y("design:type",Array)],Fx.prototype,"headerRuns",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Fx.prototype,"engagementPanel",void 0);_.c([_.g(),_.Y("design:type",Object)],Fx.prototype,"maxLines",void 0);
_.c([_.g(),_.Y("design:type",String)],Fx.prototype,"expandLabel",void 0);_.c([_.g(),_.Y("design:type",String)],Fx.prototype,"collapseLabel",void 0);_.c([_.g(),_.Y("design:type",Object)],Fx.prototype,"expandCommand",void 0);_.c([_.g(),_.Y("design:type",Object)],Fx.prototype,"expandButtonOffset",void 0);_.c([_.T("text"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Fx.prototype,"simpleText",null);
_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Fx.prototype,"onClick",null);_.c([_.T("text","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Fx.prototype,"expandedText",null);_.c([_.T("headerRuns","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Fx.prototype,"expandedHeaderRuns",null);
_.c([_.T("text"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Fx.prototype,"hasAttributedStringText",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Fx.prototype,"showExpandButton",void 0);_.c([_.T("collapseLabel","isExpanded"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Fx.prototype,"showCollapseButton",null);_.c([_.g(),_.Y("design:type",Object)],Fx.prototype,"isTruncated",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Fx.prototype,"isExpanded",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Fx.prototype,"isAttributedExpanded",void 0);_.c([_.Tw("isExpanded","hasAttributedStringText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fx.prototype,"updateIsAttributedExpanded",null);_.c([_.g(),_.Y("design:type",Boolean)],Fx.prototype,"isFormattedExpanded",void 0);
_.c([_.Tw("isExpanded","hasAttributedStringText"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fx.prototype,"updateIsFormattedExpanded",null);_.c([_.g(),_.Y("design:type",Number)],Fx.prototype,"currentSnippetType",void 0);_.c([_.T("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Fx.prototype,"useAttributedSnippet",null);
_.c([_.T("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Fx.prototype,"useFormattedSnippet",null);_.c([_.T("currentSnippetType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Fx.prototype,"usePlainSnippet",null);_.c([_.g(),_.Y("design:type",Object)],Fx.prototype,"alwaysShowExpandButton",void 0);_.c([_.Tw("currentSnippetType"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fx.prototype,"updateTextOnSnippetTypeChange",null);
_.c([_.g(),_.Y("design:type",Object)],Fx.prototype,"attributedSnippetText",void 0);_.c([_.uc("#snippet"),_.Y("design:type",HTMLElement)],Fx.prototype,"snippetContainer",void 0);_.c([_.uc("#snippet-text"),_.Y("design:type",HTMLElement)],Fx.prototype,"snippetText",void 0);_.c([_.uc("#plain-snippet-text"),_.Y("design:type",HTMLElement)],Fx.prototype,"plainSnippetText",void 0);_.c([_.uc("#formatted-snippet-text"),_.Y("design:type",Object)],Fx.prototype,"formattedSnippetText",void 0);
_.c([_.uc("#attributed-snippet-text"),_.Y("design:type",Object)],Fx.prototype,"attributedSnippetTextEl",void 0);_.c([_.uc("#expand"),_.Y("design:type",HTMLElement)],Fx.prototype,"expandButton",void 0);_.c([_.uc("#expand-sizer"),_.Y("design:type",HTMLElement)],Fx.prototype,"expandSizer",void 0);_.c([_.Si("isExpanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fx.prototype,"isExpandedChanged",null);
_.c([_.Tw("isExpanded","maxLines"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fx.prototype,"updateSnippetContainerMaxHeight",null);_.c([_.Tw("isTruncated","showExpandButton","expandButtonOffset"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fx.prototype,"updateMaskAndExpandButtonOffset",null);
_.c([_.Si("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fx.prototype,"onTextChanged",null);_.c([_.l({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Fx);
_.y(Fx,"ytd-text-inline-expander",function(){if(cd2===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);cd2=O}O=cd2;return O},{mode:2});var Ak=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return O};
_.X(Ak,_.u);Ak.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Ak.prototype.handleUpdateDescriptionAction=function(O){if(O=_.b(O,_.HQ3))if(O.attributedDescription)this.set("data.attributedDescriptionBodyText",O.attributedDescription);else if(O.description){var m;((m=this.data)==null?0:m.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.cE(O.description)):this.set("data.descriptionBodyText",O.description)}};
_.vr.Object.defineProperties(Ak.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var O,m;return!((O=this.data)==null||!O.attributedDescriptionBodyText)||!((m=this.data)==null||!m.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null?0:O.collapsedLineCount){var m;return(m=this.data)==null?void 0:m.collapsedLineCount}O=_.Rd("web_watch_description_collapsed_default_lines",12);if(_.V("ww_desc_line_page_size_ks"))return O;m=Math.round(_.Ih().height*_.Rd("web_watch_description_screen_height_percentage",.5)/20);return Math.max(m,O)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return(G=(O=this.data)==null?void 0:O.descriptionBodyText)!=null?G:(m=this.data)==null?void 0:m.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.sourceAttributions}}});
Ak.prototype.panelContentVisibleChanged=Ak.prototype.panelContentVisibleChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Ak.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ak.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Ak.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ak.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],Ak.prototype,"panelContentVisible",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ak.prototype,"engagementPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ak.prototype,"shortsPanel",void 0);_.c([_.uc("#inline-expander"),_.Y("design:type",Object)],Ak.prototype,"inlineExpander",void 0);
_.c([_.Tw("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ak.prototype,"panelContentVisibleChanged",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ak.prototype,"hasDescriptionText",null);_.c([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Ak.prototype,"collapsedLines",null);
_.c([_.T("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ak.prototype,"descriptionText",null);_.c([_.T("data","data.headerRuns"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ak.prototype,"headerRuns",null);_.c([_.T("data","data.sourceAttributions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ak.prototype,"sourceAttributions",null);
_.c([_.l({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Ak);
_.y(Ak,"ytd-expandable-video-description-body-renderer",function(){if(ydp!==void 0)return ydp;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ydp=O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var dU8;var waU=_.a(function(O){var m=O.data;return _.q("factoid-renderer",{class:"ytwFactoidRendererHost"},_.q("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return m().accessibilityText}},_.q("span",{class:"ytwFactoidRendererValue"},_.q(_.Jg,{text:function(){return m().value}})),_.q("span",{class:"ytwFactoidRendererLabel"},_.q(_.Jg,{text:function(){return m().label}}))))},"jc");_.qi(waU,"factoid-renderer",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=O.data;return _.q("upload-time-factoid-renderer",null,_.q(_.u5,{data:function(){return m().factoid}},{factoidRenderer:waU}))},"kc"),"upload-time-factoid-renderer",{props:{data:_.RZ}});_.qi(_.a(function(O){var m=O.data;return _.q("view-count-factoid-renderer",null,_.q(_.u5,{data:function(){return m().factoid}},{factoidRenderer:waU}))},"lc"),"view-count-factoid-renderer",{props:{data:_.RZ}});var O4=function(){var O=_.u.apply(this,arguments)||this;O.shortsPanel=!1;O.engagementPanel=!1;O.watchWhileSdp=_.V("shorts_desktop_watch_while_sdp");return O};
_.X(O4,_.u);O4.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"}}}}};
_.vr.Object.defineProperties(O4.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var O;return(O=this.data)==null?void 0:O.channel}}});
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],O4.prototype,"componentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],O4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],O4.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],O4.prototype,"shortsPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],O4.prototype,"engagementPanel",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],O4.prototype,"watchWhileSdp",void 0);_.c([_.T("shortsPanel","engagementPanel","data.channel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],O4.prototype,"showChannelInfo",null);_.c([_.l({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],O4);
_.y(O4,"ytd-video-description-header-renderer",function(){if(dU8!==void 0)return dU8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return dU8=O},{mode:1});var eQu;var mj=function(){return _.u.apply(this,arguments)||this};
_.X(mj,_.u);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],mj.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mj.prototype,"noPadding",void 0);_.c([_.g(),_.Y("design:type",Object)],mj.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],mj);
_.y(mj,"ytd-list-item-view-model",function(){if(eQu!==void 0)return eQu;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return eQu=O},{mode:1});var DUm;var sGm;var NL$;var Pkj;var GG=function(){var O=_.u.apply(this,arguments)||this;O.adaptiveFullWidth=!1;O.modernButtons=_.V("web_modern_buttons");O.buttonOverrides={style:"call-to-action",type:"filled"};O.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return O};
_.X(GG,_.u);GG.prototype.handleSetTimestamp_=function(O){this.data&&this.data.shortUrl&&(_.ZO(this.hostElement).querySelector("#share-url").value=O.isSet?_.mi(this.data.shortUrl,"t",O.timestamp):this.data.shortUrl)};
GG.prototype.handleSignalActionCopyShareUrl_=function(O,m){(_.V("killswitch_copy_link_target_check")||_.ZO(this.hostElement).querySelector("#copy-button")===m)&&this.copyUrlToClipboard()};
GG.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.ZO(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
GG.prototype.computeStyle_=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],GG.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],GG.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],GG.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.Y("design:type",String)],GG.prototype,"rendererStyle",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],GG.prototype,"adaptiveFullWidth",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],GG.prototype,"modernButtons",void 0);_.c([_.g(),_.Y("design:type",Object)],GG.prototype,"buttonOverrides",void 0);_.c([_.DO({is:"yt-copy-link-renderer",disableElementRegistration:!0})],GG);
_.y(GG,"yt-copy-link-renderer",function(){if(Pkj===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;NL$===void 0&&(NL$=document.createElement("template"));var B=NL$;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Pkj=O}O=Pkj;return O},{mode:2});_.lE("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var BZ=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return O};
_.X(BZ,_.u);_.v=BZ.prototype;_.v.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.v.attached=function(){this.keyboardFocused=!1};
_.v.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var O=_.KR().resolve(_.v7(_.IF));O&&(this.keyboardFocused=O.isKeyBoardInUse())}};
_.v.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.v.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}};
_.v.onChange_=function(){if(this.data){var O=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;O&&this.ytComponentBehavior.resolveCommand(O);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.v.handleUpdateToggleAction_=function(O){(O=_.b(O,grj))&&this.data&&O.targetId==this.data.targetId&&this.set("data.toggled",O.toggled)};
_.v.toBoolean_=function(O){return!!O};
_.v.reset=function(){};
_.v.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("data-changed",this.data))};
_.v.updateDataToggledFromBinding=function(O){this.set("data.toggled",O.detail.value)};
BZ.prototype.dataChangedForBinding=BZ.prototype.dataChangedForBinding;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],BZ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],BZ.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],BZ.prototype,"data",void 0);_.c([_.g({computed:"computeDescription_(data.*)"}),_.Y("design:type",Object)],BZ.prototype,"description_",void 0);_.c([_.g({value:function(){return!!_.KR().resolve(_.v7(_.IF))&&_.V("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.Y("design:type",Boolean)],BZ.prototype,"useKeyboardFocused",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],BZ.prototype,"keyboardFocused",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BZ.prototype,"dataChangedForBinding",null);_.c([_.DO({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],BZ);
_.y(BZ,"yt-toggle-form-field-renderer",function(){if(sGm===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;DUm===void 0&&(DUm=document.createElement("template"));var B=DUm;G.call(m,B.content.cloneNode(!0),O.content.firstChild);sGm=O}O=sGm;return O},{mode:2});var Fz8;var Ado;var Qk=function(){var O=_.u.apply(this,arguments)||this;O.isDarkTheme=!1;O.isSearch=!1;O.darkerDarkTheme=_.V("web_darker_dark_theme");O.noTopMargin=_.V("kevlar_watch_no_top_margin");O.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 O};
_.X(Qk,_.u);_.v=Qk.prototype;_.v.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}}}}}};
_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.v.dataChanged=function(){var O=this.getSelectedIndex();if(O>0)this.selected=O;else{this.selected=0;var m,G;(m=this.ytScrollableChipCloudBehavior)==null||(G=m.reset)==null||G.call(m)}};
_.v.getSelectedIndex=function(){var O;if((O=this.data)==null||!O.chips)return-1;O=-1;for(var m,G=0;G<((m=this.data)==null?void 0:m.chips.length);G++){var B=void 0,Q=void 0;if((B=this.data)==null?0:(Q=B.chips[G].chipCloudChipRenderer)==null?0:Q.isSelected){O=G;break}}return O};
_.v.onResize=function(){var O=this.ytScrollableChipCloudBehavior;_.QA(O,O.setContainerWidthDiff);O=this.ytScrollableChipCloudBehavior;_.QA(O,O.setButtonsState)};
_.v.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.v.handleRelatedChipCommand=function(O,m){O=this.JSC$16434_chipsSelector.indexOf(m);O!==-1&&this.JSC$16434_chipsSelector.selectIndex(O)};
_.v.handleChipCloudChipSelectAction=function(O){O=this.JSC$16434_chipsSelector.indexOf(O);O>-1&&this.JSC$16434_chipsSelector.selectIndex(O)};
_.v.handleChipCloudChipDeselectAction=function(){var O=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16434_chipsSelector&&((O==null?0:O.continuationCommand)?_.tK(this.hostElement,[O]):(O==null?0:O.searchEndpoint)?this.ytComponentBehavior.resolveCommand(O):O&&_.Wd(this.hostElement,[O],this.hostElement),this.JSC$16434_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.v.updateSelectedFromBinding=function(O){this.selected=O.detail.value};
Qk.prototype.onResize=Qk.prototype.onResize;Qk.prototype.dataChanged=Qk.prototype.dataChanged;Qk.prototype.isSearchChanged=Qk.prototype.isSearchChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Qk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Qk.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Qk.prototype,"actionHandlerBehavior",void 0);
_.c([_.h(_.Dm),_.Y("design:type",Object)],Qk.prototype,"ironResizableBehavior",void 0);_.c([_.h(),_.Y("design:type",lY)],Qk.prototype,"ytScrollableChipCloudBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Qk.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Qk.prototype,"data",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],Qk.prototype,"selected",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Qk.prototype,"isDarkTheme",void 0);_.c([_.g({value:160}),_.Y("design:type",Number)],Qk.prototype,"scrollDistance",void 0);_.c([_.g(),_.Y("design:type",Object)],Qk.prototype,"isSearch",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Qk.prototype,"darkerDarkTheme",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Qk.prototype,"noTopMargin",void 0);
_.c([_.uc("#chips"),_.Y("design:type",Object)],Qk.prototype,"JSC$16434_chipsSelector",void 0);_.c([_.Tw("isSearch"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qk.prototype,"isSearchChanged",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qk.prototype,"dataChanged",null);_.c([_.hG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qk.prototype,"onResize",null);
_.c([_.DO({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Qk);
_.y(Qk,"yt-chip-cloud-renderer",function(){if(Ado===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Fz8===void 0&&(Fz8=document.createElement("template"));var B=Fz8;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Ado=O}O=Ado;return O},{mode:2});var OX9,mY3=function(){return OX9!==void 0?OX9:OX9=document.createElement("template")};
document.head.appendChild(mY3().content);var Gq_;var BZC=document.head,QPU=BZC.appendChild,HX9;if(Gq_===void 0){var v8s=document.createElement("template");_.f(v8s,"");v8s.content.insertBefore(mY3().content.cloneNode(!0),v8s.content.firstChild);Gq_=v8s}HX9=Gq_;QPU.call(BZC,HX9.content);var KRj=_.a(function(O){var m=O.data;return _.q("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.q("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.q("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.q(_.U,{cond:function(){return _.Dv(m().image)},
then:function(G){return _.q("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.q(_.KH,{data:G,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.q("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.q(_.Jg,{text:function(){return m().title}})),_.q("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.q(_.Jg,{text:function(){return m().subtitle}})))),_.q(_.U,{cond:function(){var G;
return(G=m())==null?void 0:G.hasBottomDivider},
then:function(){return _.q("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"mc");var $Yu=_.a(function(O){var m=O.data;return _.q("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.q("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.q(_.u5,{data:function(){var G;return(G=m().offerPlanDetailsItem)!=null?G:[]}},{offerPlanDetailsItemViewModel:function(G){return _.q("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.q(KRj,{data:G.data}))}})),_.q("div",null,_.q(_.U,{cond:function(){return m().hasBottomDivider},
then:function(){return _.q("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.q("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.q("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.q("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.q("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"nc");var M32=_.a(function(O){var m=O.data;O=_.K(_.Wf(!1,void 0,"OHF6Ec"));var G=O.next().value,B=O.next().value,Q=_.nH(function(){B(!G());return!1}),H=function(){var M;
return(M=m().offerPlanDetailsContainer)!=null?M:[]};
return _.q("lp-complex-offer-card-details-view-model",null,_.q("div",null,_.q(_.U,{cond:function(){return G()},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.q("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":Q,"aria-expanded":G},_.q(_.Jg,{text:function(){return m().expandedTitle}})),_.q("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.q(_.u5,{data:H},{offerPlanDetailsContainerViewModel:function(M){return _.q("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.q($Yu,{data:M.data}))}})),_.q("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.q(_.Jg,{text:function(){return m().legalText}})))},
else:function(){return _.q("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":Q,"aria-expanded":G},_.q(_.Jg,{text:function(){return m().collapsedTitle}}),_.q("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.q(_.T$,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"oc");var r63=_.a(function(O){var m=O.data;return _.q("lp-complex-offer-card-option-view-model",null,_.q("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.q(_.U,{cond:function(){return m().topDividerText},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.q("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.q("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.q("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.q(_.Jg,{text:function(){return m().topDividerText}}))))}}),_.q(_.U,{cond:function(){return m().description},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.q(_.Jg,{text:function(){return m().description}}))}}),_.q(_.U,{cond:function(){return m().planPricingPrimary},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.q(_.Jg,{text:function(){return m().planPricingPrimary}}))}}),_.q(_.U,{cond:function(){return m().planPricingSecondary},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.q(_.Jg,{text:function(){return m().planPricingSecondary}}))}}),_.q(_.U,{cond:function(){return m().primaryButton},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.q(_.u5,{data:function(){return m().primaryButton}},{buttonViewModel:function(G){return _.q(_.oF,{data:G.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"pc");var Rpo=_.a(function(O){var m=O.data;var G=function(){var H;return((H=m())==null?void 0:H.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
O={};var B={},Q={};return _.q("ytm-lp-complex-offer-card-view-model",null,_.q("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.q("div",{class:_.bE((O.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=G,O),"ytmLpComplexOfferCardViewModelCardContainer")},_.q(_.U,{cond:function(){var H;return(H=m())==null?void 0:H.bannerText},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.q("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.q(_.Jg,{text:function(){return m().bannerText}})))}}),_.q(_.U,{cond:function(){return _.Dv(m().logo)},
then:function(H){var M={};return _.q("div",{class:_.bE((M.ytmLpComplexOfferCardViewModelLogoAlignLeft=G,M),"ytmLpComplexOfferCardViewModelLogo")},_.q(_.KH,{data:H,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.q("div",{class:_.bE((B.ytmLpComplexOfferCardViewModelTitleAlignLeft=G,B),"ytmLpComplexOfferCardViewModelTitle")},_.q(_.Jg,{text:function(){return m().title}})),_.q(_.U,{cond:function(){var H;
return(H=m())==null?void 0:H.subtitle},
then:function(){var H={};return _.q("div",{class:_.bE((H.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=G,H),"ytmLpComplexOfferCardViewModelSubtitle")},_.q(_.Jg,{text:function(){return m().subtitle}}))}}),_.q(_.U,{cond:function(){return m().planPricingPrimary},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.q(_.Jg,{text:function(){return m().planPricingPrimary}}))}}),_.q(_.U,{cond:function(){return m().planPricingSecondary},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.q(_.Jg,{text:function(){return m().planPricingSecondary}}))}}),_.q(_.U,{cond:function(){return m().purchaseButton},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.q(_.u5,{data:function(){return m().purchaseButton}},{buttonViewModel:function(H){return _.q(_.oF,{data:H.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.q(_.U,{cond:function(){var H;
return(H=m())==null?void 0:H.offerOptions},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.q(_.u5,{data:function(){return m().offerOptions}},{lpComplexOfferCardOptionViewModel:r63}))}}),_.q("div",{class:_.bE((Q.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=G,Q),"ytmLpComplexOfferCardViewModelLegalText")},_.q(_.Jg,{text:function(){return m().legalText}})),_.q(_.U,{cond:function(){var H;
return(H=m())==null?void 0:H.offerCardDetails},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.q(_.u5,{data:function(){return m().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:M32}))}}))))},"qc");var iXU=_.a(function(O){var m=O.data;var G=function(){var M;return((M=m())==null?void 0:M.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
O={};var B={},Q={},H={};return _.q("ytm-lp-complex-offer-card-section-view-model",null,_.q("div",{class:_.bE("ytmLpComplexOfferCardSectionViewModelHost")},_.q("div",{class:_.bE((O.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=G,O),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.q("div",{class:_.bE((B.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=G,B),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.q("h2",{class:_.bE((Q.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
G,Q),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.q(_.Jg,{text:function(){return m().title}}))),_.q(_.U,{cond:function(){var M;
return(M=m())==null?void 0:M.subtitle},
then:function(){var M={},R={};return _.q("div",{class:_.bE((M.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=G,M),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.q("div",{class:_.bE((R.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=G,R),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.q(_.Jg,{text:function(){return m().subtitle}})))}}),_.q("div",{class:_.bE((H.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=G,H),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.q(_.u5,{data:function(){var M;
return(M=m().offerPlans)!=null?M:[]}},{lpComplexOfferCardViewModel:function(M){return _.q("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.q(Rpo,{data:M.data}))}})))))},"rc");var xYp=_.a(function(O){return _.q("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.q("div",{class:"ytLpCouponBannerViewModelIcon"},_.q(_.T$,{icon:function(){return"price_tag"}})),_.q("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.q("div",{class:"ytLpCouponBannerViewModelContent"},_.q("div",{class:"ytLpCouponBannerViewModelHeading"},_.q(_.Jg,{text:function(){var m;
return(m=O.data())==null?void 0:m.title}})),_.q("div",{class:"ytLpCouponBannerViewModelBody"},_.q(_.Jg,{text:function(){var m;
return(m=O.data())==null?void 0:m.subtitle}})))))},"sc");
xYp.idomCompat=!0;_.HZ=bp_.getInstance();var qk8;qk8=_.a(function(O){return _.q("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":O.shouldAriaHideContent},_.q("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:O.questionId},_.q(_.Jg,{text:O.question})))},"tc");
_.UYC=_.a(function(O){var m=O.data;var G=O.themeOverride;O=_.K(_.Wf(!1,void 0,"pNli2b"));var B=O.next().value,Q=O.next().value;O=_.nH(function(){Q(!B());return!1});
var H=function(){return B()?"EXPAND_LESS":"EXPAND_MORE"},M=("faq-container"+_.DI(_.HZ)).toString(),R="faq-question-and-answers-section-question"+_.DI(_.HZ),x={},t={};
return _.q("faq-entry-view-model",null,_.q("div",{class:_.bE("ytLpFaqEntryViewModelHost",(x.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return G==null?void 0:G().useDarkTheme},x))},_.q("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":O,role:"button","aria-expanded":B,"aria-labelledby":R.toString(),"tab-index":"0"},_.q(qk8,{question:function(){return m().question},
questionId:R,shouldAriaHideContent:!0}),_.q(_.U,{cond:function(){return B()!==void 0},
then:function(){return _.q("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.q(_.T$,{icon:H,ariaHidden:!0}),_.q("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.q("div",{class:_.bE("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(t.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!B()},t))},_.q("div",{id:M},_.q(_.gi,{each:function(){return m().answers||[]}},function(W){return _.q("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.q(_.Jg,
{text:W}))})))))},"uc");
_.UYC.idomCompat=!0;var t3j=_.a(function(O){var m=O.data;var G=O.themeOverride;O={};return _.q("lp-faq-section-view-model",null,_.q("div",{class:_.bE("yt-lp-faq-section-view-model",(O["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return m().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},O["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(G==null||!G().useDarkTheme)},O))},_.q("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.q(_.U,{cond:function(){return m().header},
then:function(B){return _.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.q(_.Jg,{text:B}))}}),_.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.q(_.u5,{data:function(){return m().faqs}},{faqEntryViewModel:function(B){return _.q(_.UYC,{data:B.data,
themeOverride:G})}})),_.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.q(_.gi,{each:function(){return m().footers||[]}},function(B){return _.q(_.Jg,{text:B})})),_.q(_.U,{cond:function(){return m().legal},
then:function(B){return _.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.q(_.Jg,{text:B}))}}))))},"vc");
t3j.idomCompat=!0;var WR2=_.a(function(O){var m=O.data;var G=O.themeOverride;_.Ln(function(){var M=m().gtmId;M&&_.m2(M,_.kB("GL",""))});
var B={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var M,R,x;return(x=(M=m().logo)==null?void 0:(R=M.accessibilityData)==null?void 0:R.label)!=null?x:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},Q=_.KR().resolve(_.v7(_.B6)),H=function(){return Q&&Q()||(G==null?void 0:G().useDarkTheme)};
return _.q("lp-header-section-view-model",null,_.q("div",{class:function(){var M=m().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",R=m().marginType==="LP_SECTION_MARGIN_TYPE_TOP",x=G==null?void 0:G().useDarkTheme,t=["lp-header-section-view-model"];M&&t.push("lp-header-section-view-model--ptc-layout-type");R&&t.push("lp-header-section-view-model__lp-header-section-margin");x&&t.push("lp-header-section-view-model--premium-force-dark-mode");return t.join(" ")}},_.q(_.U,{cond:function(){return m().logo},
then:function(){return _.q("div",null,_.q(_.U,{cond:H,then:function(){return _.q(_.U,{cond:function(){var M;return(M=m().logo)==null?void 0:M.imageDark},
then:function(M){return _.q(_.KH,Object.assign({},{data:M},B))}})},
else:function(){return _.q(_.U,{cond:function(){var M;return(M=m().logo)==null?void 0:M.imageLight},
then:function(M){return _.q(_.KH,Object.assign({},{data:M},B))}})}}))}}),_.q(_.U,{cond:function(){return m().title},
then:function(M){return _.q("div",{class:"lp-header-section-view-model__lp-header-title"},_.q(_.Jg,{text:M}))}}),_.q("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.q(_.U,{cond:function(){return m().subtitles},
then:function(M){return _.q(_.gi,{each:M},function(R){return _.q("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.q(_.Jg,{text:R}))})}})),_.q(_.U,{cond:function(){return m().additionalInfo},
then:function(M){return _.q("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.q(_.Jg,{text:M}))}}),_.q("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.q(_.U,{cond:function(){return m().primaryButton},
then:function(M){return _.q("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.q(_.u5,{data:M},{buttonViewModel:_.oF}))}}),_.q(_.U,{cond:function(){return m().secondaryButton},
then:function(M){return _.q("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.q(_.u5,{data:M},{buttonViewModel:_.oF}))}})),_.q(_.U,{cond:function(){return m().otherOffersInfo},
then:function(M){return _.q("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.q(_.Jg,{text:M}))}}),_.q("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.q(_.U,{cond:function(){return m().billingInfo},
then:function(M){return _.q(_.gi,{each:M},function(R){return _.q("div",null,_.q(_.Jg,{text:R}))})}}))))},"wc");
WR2.idomCompat=!0;var ZXC=_.a(function(O){var m=O.data;var G=_.MN(O.themeOverride,{useDarkTheme:!1});O={};O=_.bE("ytmLpHeadlineSectionViewModelHost",(O.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return G().useDarkTheme},O));
return _.q("lp-headline-section-view-model",null,_.q("div",{class:O},_.q("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.q(_.Jg,{text:function(){return m().title}})),_.q(_.U,{cond:function(){return m().subtitle},
then:function(B){return _.q("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.q(_.Jg,{text:B}))}})))},"xc");var zpm=_.a(function(O){var m=O.data;var G=O.themeOverride;var B=_.KR().resolve(_.v7(_.B6)),Q=function(){return B&&B()||(G==null?void 0:G().useDarkTheme)},H=function(){var t,W;
var Z=Q()?(t=m().textBackgroundImage)==null?void 0:t.imageDark:(W=m().textBackgroundImage)==null?void 0:W.imageLight;return Cfp((Z==null?void 0:Z.sources)||[])},M=function(){var t,W;
return Q()?(t=m().featureImage)==null?void 0:t.imageDark:(W=m().featureImage)==null?void 0:W.imageLight},R=function(){return m().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},x=function(){var t,W;
return Q()?(t=m().logo)==null?void 0:t.imageDark:(W=m().logo)==null?void 0:W.imageLight};
return _.q("ytm-lp-large-feature-section-view-model",null,_.q("div",{class:function(){var t=m().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",W=m().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",Z=(m().index||0)%2===1,z=G==null?void 0:G().useDarkTheme,J=["yt-lp-large-feature-section-view-model"];t?J.push("yt-lp-large-feature-section-view-model--music-feature-type"):W?J.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):Z||J.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
z&&J.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return J.join(" ")}},_.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.q(_.U,{cond:M,
then:function(){return _.q(_.KH,{data:function(){return M()},
alt:function(){var t,W,Z;return(Z=(t=m().featureImage)==null?void 0:(W=t.accessibilityData)==null?void 0:W.label)!=null?Z:""},
contentMode:R})}})),_.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var t;return((t=H())==null?0:t.url)?"background-image: url("+_.d5(H().url)+");":""}},_.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.q(_.U,{cond:x,
then:function(){return _.q(_.KH,{data:function(){return x()},
alt:function(){var t,W,Z;return(Z=(t=m().logo)==null?void 0:(W=t.accessibilityData)==null?void 0:W.label)!=null?Z:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.q(_.U,{cond:function(){return m().eyebrowText},
then:function(){return _.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.q(_.Jg,{text:function(){return m().eyebrowText}}))}}),_.q(_.U,{cond:function(){return m().title},
then:function(){return _.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.q(_.Jg,{text:function(){return m().title}}))}}),_.q(_.U,{cond:function(){return m().subtitles},
then:function(){return _.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.q(_.gi,{each:function(){return m().subtitles||[]}},function(t){return _.q(_.Jg,{text:t})}))}})))))},"yc");
zpm.idomCompat=!0;var J68=_.a(function(O){return _.q("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.q("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.q(_.T$,{icon:function(){var m;return(m=O.data())==null?void 0:m.iconType},
className:function(){var m;switch((m=O.data())==null?void 0:m.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 m;return((m=O.data())==null?void 0:m.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.q("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.q(_.Jg,{text:function(){var m;
return(m=O.data())==null?void 0:m.text},
className:function(){var m;return((m=O.data())==null?void 0:m.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"zc");var V3u=_.a(function(O){O=_.ru(O,{config:void 0,themeOverride:void 0});var m=O.data,G=O.config,B=O.themeOverride;O={};O=_.bE("ytmLpOfferCardOptionViewModelHost",(O.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var R;return(R=B())==null?void 0:R.useDarkTheme},O));
var Q=_.nH(function(){var R,x;(R=G())==null||(x=R.handleRadioButtonClick)==null||x.call(R,m());return!1}),H=function(){var R;
return(R=G())==null?void 0:R.shouldDisplayRadioButton},M=function(){var R;
return(R=m().featureListItems)!=null?R:[]};
return _.q("ytm-lp-offer-card-option-view-model",null,_.q("div",{class:O,"on:click":_.nH(function(){if(H()){var R,x;(R=G())==null||(x=R.handleRadioButtonClick)==null||x.call(R,m())}return!1})},_.q(_.U,{cond:H,
then:function(){return _.q("div",null,_.q("input",{type:"radio","on:click":Q,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var R;return!((R=G())==null||!R.isOptionSelected)}}))}}),_.q("div",null,_.q("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.q(_.Jg,{text:function(){return m().eyebrowText}})),_.q("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.q(_.Jg,{text:function(){return m().title}})),_.q("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.q(_.Jg,
{text:function(){return m().subtitle}})),_.q(_.U,{cond:function(){return M().length>0},
then:function(){return _.q("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.q(_.u5,{data:M},{lpFeatureListItemViewModel:J68}))}}),_.q("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.q(_.Jg,{text:function(){return m().description}})))))},"Ac");
V3u.idomCompat=!0;var bX$=_.a(function(O){var m=O.data;var G=O.themeOverride;O=_.K(_.fH(function(){var H,M=(H=m().offerOptions)==null?void 0:H[0];return _.b(M,UOm)||{}}));
var B=O.next().value,Q=O.next().value;O={};return _.q("ytm-lp-offer-card-view-model",null,_.q("div",{class:_.bE("ytmLpOfferCardViewModelHost",(O.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(G==null||!G().useDarkTheme)},O))},_.q("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.q(_.U,{cond:function(){return m().titleIconType},
then:function(){return _.q("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.q(_.T$,{icon:function(){var H;return((H=m().titleIconType)==null?void 0:H.toString())||""}}))}}),_.q("div",{class:"ytmLpOfferCardViewModelTitleText"},_.q(_.Jg,{text:function(){return m().title}})),_.q(_.u5,{data:function(){return m().titleBadge}},{badgeViewModel:function(H){return _.q("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.q(_.jF,{data:H.data}))}})),_.q("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.q(_.u5,{data:function(){return m().offerOptions}},{lpOfferCardOptionViewModel:function(H){var M=H.data;
return _.q(_.Mr,null,_.q("div",{class:"ytmLpOfferCardViewModelDivider"}),_.q(V3u,{data:M,config:function(){var R;return{shouldDisplayRadioButton:(m().offerOptions||[]).length>1,isOptionSelected:M().id===((R=B())==null?void 0:R.id),handleRadioButtonClick:function(x){return void Q(x)}}},
themeOverride:G}))}})),_.q("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.q(_.u5,{data:function(){var H;
return(H=B())==null?void 0:H.purchaseButtonOverride}},{buttonViewModel:_.oF}))))},"Bc");
bX$.idomCompat=!0;var n89=_.a(function(O){var m=O.data;var G=O.themeOverride;O={};O=_.bE("ytmLpOfferCardSectionViewModelHost",(O.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var B;return G==null?void 0:(B=G())==null?void 0:B.useDarkTheme},O));
return _.q("ytm-lp-offer-card-section-view-model",null,_.q("div",{class:O},_.q(_.U,{cond:function(){return m().title!==void 0},
then:function(){return _.q("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.q("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.q(_.Jg,{text:function(){return m().title}})),_.q(_.U,{cond:function(){return m().subtitle},
then:function(){return _.q("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.q(_.Jg,{text:function(){return m().subtitle}}))}}))}}),_.q("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.q(_.u5,{data:function(){return m().offerCards}},{lpOfferCardViewModel:function(B){return _.q("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.q(bX$,{data:B.data,
themeOverride:G}))}})),_.q(_.U,{cond:function(){return m().footer},
then:function(){return _.q("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.q(_.Jg,{text:function(){return m().footer}}))}})))},"Cc");var XQ2=_.a(function(O){var m=O.data;return _.q("lp-offer-table-cell-content-view-model",null,_.q("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.q(_.I8,null,_.q(_.uz,{when:function(){return m().title}},function(){return _.q(_.Jg,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return m().title}})}),_.q(_.uz,{when:function(){return m().subTitle}},function(){return _.q(_.Jg,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return m().subTitle}})}),_.q(_.uz,{when:function(){return m().featureDescription}},function(){return _.q(_.Jg,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return m().featureDescription}})}),_.q(_.uz,{when:function(){return m().description}},function(){return _.q(_.Jg,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return m().description}})}),_.q(_.uz,{when:function(){return m().iconType}},function(){return _.q("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.q(_.T$,{icon:function(){return m().iconType.toString()}}))}),_.q(_.uz,{when:function(){return m().purchaseButton}},function(){return _.q(_.u5,{data:function(){return m().purchaseButton}},{buttonViewModel:function(G){return _.q("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.q(_.oF,
{data:G.data}))}})}),_.q(_.uz,{when:function(){return m().note}},function(){return _.q(_.Jg,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return m().note}})}),_.q(_.uz,{when:function(){return m().featureDetail}},function(){return _.q(_.Jg,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return m().featureDetail}})}),_.q(_.uz,{when:function(){return m().badge}},function(){return _.q(_.u5,{data:function(){return m().badge}},{badgeViewModel:_.jF})}))))},"Dc");
XQ2.idomCompat=!0;var fzj=_.a(function(O){var m=O.data;return _.q("lp-offer-table-cell-view-model",null,_.q("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(m().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;"}}},_.q(_.u5,{data:function(){return m().contents}},{lpOfferTableCellContentViewModel:XQ2})))},
"Ec");
fzj.idomCompat=!0;var hpU=_.a(function(O){var m=O.data;var G=O.lpTableIsFirstRow;var B=O.lpTableIsLastRow;var Q=function(){return(G==null?0:G())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},H=function(){return(G==null?0:G())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(B==null?0:B())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.q("ytm-lp-offer-table-row-view-model",null,_.q("div",{class:"ytLpOfferTableRowViewModelHost"},_.q(_.u5,{data:function(){return m().rowHeaderCell}},{lpOfferTableCellViewModel:function(M){return _.q("div",{class:Q},_.q(fzj,{data:M.data}))}}),_.q(_.u5,{data:function(){return m().contentCells}},{lpOfferTableCellViewModel:function(M){return _.q("div",{class:H},_.q(fzj,{data:M.data}))}})))},"Fc");
hpU.idomCompat=!0;var TZu=_.a(function(O){var m=O.data;var G=O.themeOverride;var B=_.KR().resolve(_.v7(_.B6)),Q=function(){return _.b(m().logo,LTp)||{}};
O={};return _.q("ytm-lp-offer-table-section-view-model",null,_.q("div",{class:"ytLpOfferTableViewModelHost"},_.q(_.U,{cond:function(){var H,M;return B&&B()||(G==null?0:G().useDarkTheme)?(H=Q())==null?void 0:H.imageDark:(M=Q())==null?void 0:M.imageLight},
then:function(H){return _.q(_.KH,{data:H,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var M,R,x;return(x=(M=Q())==null?void 0:(R=M.accessibilityData)==null?void 0:R.label)!=null?x:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.q(_.Jg,{text:function(){return m().title}})),_.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.q(_.Jg,{text:function(){return m().subtitle}})),_.q(_.U,{cond:function(){return m().disclaimers},
then:function(H){return _.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.q(_.gi,{each:H},function(M){return _.q("div",null,_.q(_.Jg,{text:M}))}))}}),_.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.q(_.u5,{data:function(){return m().rows}},{lpOfferTableRowViewModel:function(H,M){return _.q(hpU,{data:H.data,
lpTableIsFirstRow:function(){return M()===0},
lpTableIsLastRow:function(){return M()===m().rows.length-1}})}})),_.q("div",{class:_.bE((O.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return m().hasFooterBackground},O))},_.q(_.U,{cond:function(){return m().footer},
then:function(){return _.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.q(_.Jg,{text:function(){return m().footer}}))}}),_.q(_.U,{cond:function(){return m().footerTitle},
then:function(){return _.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.q(_.Jg,{text:function(){return m().footerTitle}}))}}),_.q(_.U,{cond:function(){return m().footerDescription},
then:function(){return _.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.q(_.Jg,{text:function(){return m().footerDescription}}))}}),_.q(_.U,{cond:function(){return m().footerDescriptions},
then:function(H){return _.q("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.q(_.gi,{each:H},function(M){return _.q("div",null,_.q(_.Jg,{text:M}))}))}}))))},"Gc");
TZu.idomCompat=!0;var g8o=_.a(function(O){var m=O.data;var G=O.themeOverride;var B=_.KR().resolve(_.v7(_.B6)),Q=function(){var R;return G==null?void 0:(R=G())==null?void 0:R.useDarkTheme},H=function(){var R,x;
return B&&B()||Q()?(R=m().image)==null?void 0:R.imageDark:(x=m().image)==null?void 0:x.imageLight};
O={};O=_.bE("ytmLpSmallFeatureSectionViewModelHost",(O.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=Q,O));var M=function(){var R,x,t;return(t=(R=m().image)==null?void 0:(x=R.accessibilityData)==null?void 0:x.label)!=null?t:""};
return _.q("ytm-lp-small-feature-section-view-model",{class:O},_.q(_.U,{cond:function(){return H()&&!jJM},
then:function(){return _.q("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.q(_.KH,{data:function(){return H()},
alt:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.q("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.q("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.q(_.U,{cond:function(){return m().title},
then:function(R){return _.q(_.Jg,{text:R})}})),_.q("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.q(_.Jg,{text:function(){return m().description}}))))},"Hc");
g8o.idomCompat=!0;var uao=_.a(function(O){var m=O.data;var G=O.themeOverride;O={};return _.q("ytm-lp-small-feature-section-group-view-model",null,_.q("div",{class:_.bE("ytmLpSmallFeatureSectionGroupViewModelHost",(O.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(G==null||!G().useDarkTheme)},O))},_.q("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.q(_.u5,{data:function(){return m().smallFeatures}},{lpSmallFeatureSectionViewModel:function(B){return _.q("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.q(g8o,{data:B.data,
themeOverride:G}))}}))))},"Ic");
uao.idomCompat=!0;_.qi(_.a(function(O){var m=O.data;var G=function(){return m().forcedTheme==="USER_INTERFACE_THEME_DARK"},B=function(){return m().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},Q=function(){var M="",R,x;
var t=_.KR().resolve(_.v7(_.B6));t=G()||(t==null?0:t())?(R=m().themedImageViewModel)==null?void 0:R.imageDark:(x=m().themedImageViewModel)==null?void 0:x.imageLight;(R=Cfp((t==null?void 0:t.sources)||[]))&&R.url&&(M=B()?"background-image: linear-gradient(to bottom, transparent, "+(m().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.d5(R.url)+");":"background-image: url("+_.d5(R.url)+");");return M},H=function(){return{useDarkTheme:G()}};
O={};return _.q("yt-section-group-view-model",null,_.q("div",{class:_.bE("yt-lp-section-group-view-model",(O["yt-lp-section-group-view-model--premium-force-dark-mode"]=G,O["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return m().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},O))},_.q(_.U,{cond:function(){return Q().length},
then:function(){var M={};return _.q("div",{class:_.bE("yt-lp-section-group-view-model__bg-image",(M["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=B,M)),style:Q})}}),_.q("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.q(_.u5,{data:function(){return m().sections}},{lpFaqSectionViewModel:function(M){return _.q(t3j,{data:M.data,
themeOverride:H})},
lpHeaderSectionViewModel:function(M){return _.q(WR2,{data:M.data,themeOverride:H})},
lpHeadlineSectionViewModel:function(M){return _.q(ZXC,{data:M.data,themeOverride:H})},
lpLargeFeatureSectionViewModel:function(M){return _.q(zpm,{data:M.data,themeOverride:H})},
lpOfferCardSectionViewModel:function(M){return _.q(n89,{data:M.data,themeOverride:H})},
lpComplexOfferCardSectionViewModel:function(M){return _.q(iXU,{data:M.data})},
lpOfferTableSectionViewModel:function(M){return _.q(TZu,{data:M.data,themeOverride:H})},
lpSmallFeatureSectionGroupViewModel:function(M){return _.q(uao,{data:M.data,themeOverride:H})},
lpCouponBannerViewModel:function(M){return _.q(xYp,{data:M.data})}}))))},"Jc"),"yt-section-group-view-model",{props:{data:_.VZ}});var yjf=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.jPj=_.a(function(O){function m(){if(yjf.has(O.data().displayType)){var t=!B(),W;if((W=O.disableDeselection)==null||!W.call(O)||t){O.data().selected=t;W=Object.assign({},M(),{selected:t});R(W);var Z;(Z=O.callback)==null||Z.call(O,W,t)}}}
var G=_.Al("chip-view-model"),B=function(){var t,W;return!!(((t=O.selected)==null?void 0:t.call(O))!==void 0?(W=O.selected)==null?0:W.call(O):M().selected)},Q=_.K(_.fH(O.data)),H=Q.next().value;
Q=Q.next().value;var M=H,R=Q,x=_.fJ(k3N,function(){return O.data().chipEntityKey||""});
return _.q("chip-view-model",{class:"ytChipViewModelHost",el:G},_.q(MR$,{data:function(){var t,W=Object.assign({},M(),{selected:B()}),Z=x(),z=(t=O.disableDeselection)==null?void 0:t.call(O);a:switch(W.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":t=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":t=3;break a;default:t=0}return{text:(Z==null?void 0:Z.text)||W.text,state:W.disabled?1:W.selected?0:2,type:t,onTap:cjs(W,G,m,z),
accessibilityLabel:W.accessibilityLabel||W.text}}}))},"Kc");
_.jPj.idomCompat={callbacks:{callback:!0}};_.Izp=_.a(function(O){var m=_.fJ(aPz,function(){var M;return(M=O.data())==null?void 0:M.chipBarStateEntityKey}),G=function(){return O.data().disableDeselection},B=_.K(_.fH(function(){var M;
if(((M=m())==null?void 0:M.selectedIndex)!=void 0)return m().selectedIndex;var R,x;M=_.K(((R=O.data())==null?void 0:(x=R.chips)==null?void 0:x.entries())||[]);for(R=M.next();!R.done;R=M.next()){R=_.K(R.value);x=R.next().value;R=R.next().value;var t=void 0;if((t=_.b(R,_.RS))==null?0:t.selected)return x}return-1})),Q=B.next().value,H=B.next().value;
return _.q("chip-bar-view-model",{class:_.bE("ytChipBarViewModelHost",O.className),role:"tablist"},_.q(_.u5,{data:function(){return O.data().chips}},{chipViewModel:function(M,R){return _.q("div",{class:"ytChipBarViewModelChipWrapper"},_.q(_.jPj,{data:M.data,
selected:function(){return R()===Q()},
callback:function(x,t){x=!!t;t=R();H(x?t:-1);var W,Z=(W=O.data())==null?void 0:W.chipBarStateEntityKey;Z&&x&&_.$n(_.jh("chipBarStateEntity",Z,{key:Z,selectedIndex:t}))},
disableDeselection:O.disableDeselection||G}))}}))},"Lc");_.qi(_.Izp,"chip-bar-view-model",{props:{data:_.RZ,className:_.RZ,disableDeselection:_.RZ}});_.pQu=_.a(function(O){var m=O.data;O={};return _.q("divider-view-model",{class:_.bE("dividerViewModelHost",(O.dividerViewModelInsetThinPadding=function(){return m().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},O))},_.q("div",{class:_.bE("dividerViewModelBaseDivider",function(){return Yyp(m().dividerStyle)}),
style:_.hH({"background-color":function(){return m().backgroundColor?_.Fs(m().backgroundColor):void 0}})}))},"Mc");
_.pQu.idomCompat=!0;_.qi(_.pQu,"divider-view-model",{props:{data:_.VZ}});var hI=new Map,fz=new Map,ezS=0,TU;var O2N=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],BG6={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var Sk$,E8p;Sk$=function(O){return function(m){return function(){return(m==null?void 0:m())!==void 0?String(m())+O:void 0}}};
_.vZ=Sk$("px");E8p=Sk$("s");var LR9=OhN(function(O){return O.targetGroupId}).useUpdatableData;_.o82=_.a(function(O){function m(OS){return function(){var rN=I().numItemsPerGridRow,xO=OS()*rN;rN=xO+rN;var XI,Vf;return(Vf=(XI=B().contents)==null?void 0:XI.slice(xO,rN))!=null?Vf:[]}}
var G=_.ru(O,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),B=G.data,Q=G.layoutContainerWidth,H=G.shouldUseOwnContainerSize,M=G.marginSettings,R=gXr(),x=_.K(LR9(function(){var OS,rN;return{targetGroupId:(OS=B().targetingContext)==null?void 0:(rN=OS.targetGroupId)==null?void 0:rN[0]}})).next().value;
G=_.K(_.Wf(!0,void 0,"AA2Ctc"));var t=G.next().value,W=G.next().value,Z=function(){var OS,rN=(OS=_.b(B().showMoreButton,_.rc))==null?void 0:OS.trackingParams;rN&&_.lR(_.uK(),rN);W(!1)},z=function(){var OS,rN=(OS=_.b(B().showLessButton,_.rc))==null?void 0:OS.trackingParams;
rN&&_.lR(_.uK(),rN);W(!0)};
G=_.Al("grid-shelf-view-model");var J=_.H2N(G,{canHaveZeroSize:!1}),n=function(){var OS;return(OS=B().contentAspectRatio)!=null?OS:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},I=_.bF(function(){var OS=_.eh({containerWidth:H()&&J.width()>0?J.width()||Q():Q(),
sizing:"EXTRA_COMPACT",marginSettings:M(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:OS.maxContainerWidth,numItemsPerGridRow:OS.numItems,contentPadding:H()?OS.margin:OS.contentMargin,itemWidth:OS.itemWidth,itemMargin:OS.gutter/2}},void 0,"IZAnPe"),S=function(){if(B().enableVerticalExpansion){if(t())return L();
var OS,rN,xO=(rN=(OS=B().contents)==null?void 0:OS.length)!=null?rN:0;return Math.ceil(xO/I().numItemsPerGridRow)}return I().numItemsPerGridRow<=2?2:1},L=function(){var OS;
return Math.ceil(((OS=B().minCollapsedItemCount)!=null?OS:1)/I().numItemsPerGridRow)},C=function(){return B().enableVerticalExpansion&&B().showLessButton&&!t()&&S()>L()},P=function(){var OS,rN;
return B().enableVerticalExpansion&&B().showMoreButton&&t()&&((rN=(OS=B().contents)==null?void 0:OS.length)!=null?rN:0)>I().numItemsPerGridRow*L()},w=function(){return!C()},d=function(){return!P()},D={};
return _.q("grid-shelf-view-model",{class:_.bE("ytGridShelfViewModelHost",O.className,(D.ytGridShelfViewModelHostHasBottomButton=function(){return C()||P()},D.ytGridShelfViewModelHostIsDismissed=function(){var OS,rN=(OS=x())!=null?OS:{};
OS=rN.behavior;var xO=rN.isDismissed,XI=rN.stamperContextTargetId;rN=rN.stamperIndex;if(!(_.V("mweb_see_fewer_shorts_group_dismissal")&&xO&&OS&&XI))return!1;var Vf;xO=R;for(var US,CN,oe=((US=xO)==null?0:US.targetId)?_.o9((CN=xO)==null?void 0:CN.targetId):void 0;((Vf=xO)==null?0:Vf.parent)&&oe!==XI;)xO=xO.parent,CN=US=void 0,oe=((US=xO)==null?0:US.targetId)?_.o9((CN=xO)==null?void 0:CN.targetId):void 0;Vf=oe===XI?xO:void 0;if(!Vf)return!1;var K$;XI=Vf==null?void 0:(K$=Vf.stamperIndex)==null?void 0:
K$.call(Vf);return OS==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||OS==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&XI!=null&&rN!=null&&XI>rN},D)),
el:G,style:_.hH({"margin-left":(0,_.vZ)(function(){return I().contentPadding}),
"margin-right":(0,_.vZ)(function(){return I().contentPadding})})},_.q(_.U,{cond:function(){return _.b(B().header,eRs)},
then:function(OS){return _.q(_.li,{data:OS,disableHorizontalPadding:!0})}}),_.q("div",null,_.q(_.gi,{each:function(){return Array(S())}},function(OS,rN){return _.q(CBU,{className:O.className,
items:m(rN),responsiveGridShelfLayout:I,contentAspectRatio:n})})),_.q("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.q(_.u5,{data:function(){return B().showMoreButton}},{buttonViewModel:function(OS){return _.q("div",{hidden:d},_.q(_.oF,{data:OS.data,
onClick:Z}))}}),_.q(_.u5,{data:function(){return B().showLessButton}},{buttonViewModel:function(OS){return _.q("div",{hidden:w},_.q(_.oF,{data:OS.data,
onClick:z}))}})))},"Nc");
_.o82.idomCompat=!0;var CBU=_.a(function(O){var m=O.items;var G=O.responsiveGridShelfLayout;var B=O.contentAspectRatio;O=O.className;var Q=_.Al("div");wj6(Q,function(){a:{var M=Q.value;for(var R=m(),x=[],t=0;t<R.length;t++){var W=_.b(R[t],VIu);if(!W||W==null||!W.inlinePlayerData){M=null;break a}var Z=M.children.item(t);if(!Z){M=null;break a}x.push({thumbnailElement:Z,videoData:W})}M={gridVideoPreviewData:{gridItems:x}}}return M});
var H=(0,_.vZ)(function(){return-G().itemMargin});
return _.q("div",{el:Q,class:_.bE("ytGridShelfViewModelGridShelfRow",O),style:_.hH({"margin-left":H,"margin-right":H})},_.q(_.u5,{data:m,replacementWrapper:function(M){return _.q(lzp,{responsiveGridShelfLayout:G},M)}},{shortsLockupViewModel:function(M){return _.q(lzp,{responsiveGridShelfLayout:G},_.q(xH_,{data:M.data,
aspectRatio:function(){return B()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.V("mweb_enable_one_line_title_on_shorts")?1:_.V("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))}}))},"Oc"),lzp=_.a(function(O){return _.q("div",{style:_.hH({width:(0,_.vZ)(function(){return O.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+O.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},O.children)},"Pc");
_.o82.idomCompat=!0;_.qi(_.o82,"grid-shelf-view-model",{props:{data:_.VZ,layoutContainerWidth:_.VZ,shouldUseOwnContainerSize:_.VZ,marginSettings:_.VZ,className:_.VZ}});_.azj=_.a(function(O){var m=_.K(_.Wf(!1,void 0,"FVl30c")),G=m.next().value,B=m.next().value;m={};return _.q("yt-alert-banner-view-model",{class:_.bE("ytAlertBannerViewModelHost",O.className,function(){var Q;a:switch((Q=O.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},(m.ytAlertBannerViewModelDismissed=
G,m.ytAlertBannerViewModelFullbleed=O.fullbleed,m.ytAlertBannerViewModelNarrow=O.narrow,m.ytAlertBannerViewModelIsInRichGrid=O.isInRichGrid,m))},_.q(_.U,{cond:function(){var Q;
return!((Q=O.data())==null?0:Q.hideIcon)},
then:function(){return _.q("div",{class:"ytAlertBannerViewModelIcon"},_.q(_.T$,{icon:function(){return"info_circle"}}))}}),_.q("div",{class:"ytAlertBannerViewModelOuterContainer"},_.q("div",{class:"ytAlertBannerViewModelContainer"},_.q("div",{class:"ytAlertBannerViewModelContent"},_.q("div",{class:"ytAlertBannerViewModelHeading"},_.q(_.Jg,{text:function(){var Q;
return(Q=O.data())==null?void 0:Q.heading}})),_.q("div",{class:"ytAlertBannerViewModelBody"},_.q(_.Jg,{text:function(){var Q;
return(Q=O.data())==null?void 0:Q.body}})))),_.q(_.u5,{data:function(){var Q;
return(Q=O.data())==null?void 0:Q.actionButton}},{buttonViewModel:function(Q){return _.q(_.oF,{data:Q.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.q(_.u5,{data:function(){var Q;
return(Q=O.data())==null?void 0:Q.dismissButton}},{buttonViewModel:function(Q){return _.q(_.oF,{data:Q.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var H;((H=O.data())==null?0:H.disableLocalDismissBehavior)||B(!0)}})}}))},"Qc");_.qi(_.azj,"yt-alert-banner-view-model",{props:{data:_.VZ,fullbleed:_.VZ,narrow:_.VZ,isInRichGrid:_.VZ,className:_.VZ}});_.KF=_.a(function(O){var m=O.data;var G=O.callback;var B=O.selectionBehavior;var Q=O.disableChipsScrollAnimation;var H=_.GX("div");O=_.K(_.Wf(!0,void 0,"aUEsOc"));var M=O.next().value,R=O.next().value;O=_.K(_.Wf(!1,void 0,"V0aKld"));var x=O.next().value,t=O.next().value,W=!1,Z=0;_.EZ(function(){R(n());t(I())});
O=_.K(_.fH(function(){var OS={};return m().autoselectedChipIndex!=null?(OS[m().autoselectedChipIndex]=!0,OS):{}}));
var z=O.next().value,J=O.next().value,n=function(){var OS=H.value;return OS==null||OS.scrollLeft-1<=0},I=function(){var OS=H.value;
return OS==null?!1:OS.scrollLeft+1>=(OS==null?NaN:OS.scrollWidth)-(OS==null?NaN:OS.clientWidth)},S=function(){return m().isHorizontallyScrollable},L=function(OS){H.value!=null&&(_.kB("HTML_DIR")==="rtl"&&(OS=-OS),H.value.scrollBy({left:OS,
behavior:(Q==null?0:Q())?"instant":"smooth"}))},C=function(){L(-320)},P=function(){L(320)},w=_.nH(function(OS){W=!0;
Z=OS.clientX}),d=_.nH(function(OS){if(W){OS=OS.clientX;
var rN=OS-Z;Z=OS;var xO;(xO=H.value)==null||xO.scrollBy({left:-rN})}}),D=_.nH(function(){var OS=n(),rN=I();
OS!==M()&&R(OS);rN!==x()&&t(rN)});
_.ve("pointerup",function(){W&&(W=!1)});
return _.q("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.q(_.SF,{contentId:function(){return m().contentId},
useModernStyle:!0},function(){var OS={},rN={};return _.q("div",null,_.q(_.U,{cond:function(){return m().title},
then:function(){return _.q("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.q("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return m().title}),_.q(_.u5,{data:function(){return m().overflowButton}},{buttonViewModel:_.oF}))}}),_.q("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.q(_.U,{cond:function(){return m().previousButton},
then:function(){var xO={};return _.q("div",{class:_.bE("ytChipsShelfViewModelLeftArrowContainer",(xO.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return M()},xO))},_.q(_.u5,{data:function(){return m().previousButton}},{buttonViewModel:function(XI){return _.q(_.oF,{data:XI.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:C})}}))}}),_.q("div",{el:H,
"on:pointerdown":w,"on:pointermove":d,"on:scroll":D,class:_.bE("ytChipsShelfViewModelChipsScrollContainer",(OS.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=S,OS))},_.q("div",{class:_.bE("ytChipsShelfViewModelChipsContainer",(rN.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=S,rN.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,rN)),role:"tablist"},_.q(_.u5,{data:function(){return m().contents}},{chipViewModel:function(xO,XI){return _.q("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.q(_.jPj,{data:xO.data,
callback:function(Vf,US){var CN=XI(),oe,K$=(oe=B==null?void 0:B())!=null?oe:0;K$===1||K$===2?(oe={},J((oe[CN]=US,oe))):(oe={},J(Object.assign({},z(),(oe[CN]=US,oe))));G==null||G(Vf,US,CN)},
disableDeselection:function(){return(B==null?void 0:B())===1},
selected:function(){return!!z()[XI()]}}))}}))),_.q(_.U,{cond:function(){return m().nextButton},
then:function(){var xO={};return _.q("div",{class:_.bE("ytChipsShelfViewModelRightArrowContainer",(xO.ytChipsShelfViewModelRightArrowContainerIsHidden=x,xO))},_.q(_.u5,{data:function(){return m().nextButton}},{buttonViewModel:function(XI){return _.q(_.oF,{data:XI.data,
className:"ytChipsShelfViewModelRightArrow",onClick:P})}}))}})))}))},"Rc");
_.KF.idomCompat={callbacks:{callback:!0}};_.qi(_.KF,"chips-shelf-view-model",{props:{data:_.VZ,callback:_.RZ,selectionBehavior:_.VZ,disableChipsScrollAnimation:_.VZ}});_.qi(_.a(function(O){return _.q("yt-comment-filter-context-view-model",{class:_.bE("ytCommentFilterContextHost",O.className)},_.q(_.Jg,{text:function(){return O.data().text}}))},"Sc"),"yt-comment-filter-context-view-model",{props:{data:_.VZ,
className:_.RZ}});var kq_=_.a(function(O){O=_.ru(O,{disabled:!1});var m=O.active,G=O.disabled;O={};O=_.bE("ytSwitchShapeTrack",(O.ytSwitchShapeTrackActive=function(){return m()},O.ytSwitchShapeTrackDisabled=function(){return G()},O));
var B={};B=_.bE("ytSwitchShapeKnob",(B.ytSwitchShapeKnobActive=function(){return m()},B));
return _.q("switch-shape",{class:"ytSwitchShapeHost"},_.q("div",{class:O}),_.q("div",{class:B}))},"Tc");var y6s=_.a(function(O){var m=_.ru(O,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),G=m.data;O=m.className;var B=m.handleOnTapEventInParent,Q=m.parentActive,H=m.onTap;m=_.K(_.fH(function(){var z;return(z=Q())!=null?z:G().switchedOnByDefault||!1}));
var M=m.next().value,R=m.next().value,x=function(){return G().isDisabled},t=_.Al("button");
m=_.nH(function(z){return z.key==="Enter"?(z.preventDefault(),t.value.click(),!1):!0});
var W=_.nH(function(z){if(G().handleOnTapEventInParent||B())return!0;if(x())return!1;if(H)return H(z),!0;KYs(G(),M(),z);R(!M());return!1}),Z={};
Z=_.bE("ytSwitchButtonViewModelButton",(Z.ytSwitchButtonViewModelTappable=function(){return!x()},Z));
return _.q("switch-button-view-model",{class:_.bE("ytSwitchButtonViewModelHost",O)},_.q("button",{el:t,class:Z,"on:click":W,"on:keydown":m,"aria-label":function(){return M()?G().a11yLabelSwitchedOn:G().a11yLabelSwitchedOff},
"aria-checked":M,"aria-disabled":x,role:"switch"},_.q(kq_,{active:M,disabled:x})))},"Uc");var c6s=_.a(function(O){var m=O.data;var G=O.isLeading;var B=O.hideSelectionTextChevron;var Q=O.isToggled;var H=function(){return G()?m().leadingImage:m().trailingImage},M=function(){a:switch(m().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var W="expand_more";
break a;default:W="chevron_right"}return W};
O={};var R=_.bE("yt-list-item-view-model__image-container",(O["yt-list-item-view-model__leading"]=G,O["yt-list-item-view-model__trailing"]=function(){return!G()},O)),x=_.bE("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
O={};var t=_.bE("yt-list-item-view-model__accessory",(O["yt-list-item-view-model__leading"]=G,O["yt-list-item-view-model__trailing"]=function(){return!G()},O));
return _.q(_.U,{cond:function(){var W=m(),Z=G();return!!(Z&&(W.leadingImage||W.leadingAccessory)||!Z&&(W.trailingImage||W.trailingButton||W.trailingButtons||W.selectionText))},
then:function(){return _.q(_.Mr,null,_.q(_.U,{cond:H,then:function(W){return _.q("div",{class:R,"aria-hidden":"true"},_.q(_.KH,{data:W,alt:"",preserveWidth:!0,preserveHeight:!0,className:x,isToggled:Q}))}}),_.q(_.U,{cond:function(){return G()&&m().leadingAccessory},
then:function(){return _.q("div",{class:R},_.q(_.u5,{data:function(){return m().leadingAccessory}},{avatarViewModel:function(W){return _.q(_.HP,{data:W.data,
avatarButtonCustomClassName:x})},
collectionThumbnailViewModel:function(W){return _.q(KQ9,{data:W.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.q(_.U,{cond:function(){return!G()&&m().trailingButton},
then:function(){return _.q("div",{class:"yt-list-item-view-model__button-container"},_.q(_.u5,{data:function(){return m().trailingButton}},{buttonViewModel:function(W){return _.q(_.oF,{data:W.data,
className:t})}}))}}),_.q(_.U,{cond:function(){var W;
return!G()&&((W=m().trailingButtons)==null?void 0:W.buttons)},
then:function(){return _.q("div",{class:"yt-list-item-view-model__button-container"},_.q(_.u5,{data:function(){var W;return(W=m().trailingButtons)==null?void 0:W.buttons}},{buttonViewModel:function(W){return _.q(_.oF,{data:W.data,
className:t})},
accountLinkButtonViewModel:function(W){return _.q(P73,{data:W.data,className:t})},
switchButtonViewModel:function(W){return _.q(y6s,{data:W.data,className:t})},
subscribeButtonViewModel:function(W){return _.q(_.Q8,{data:W.data,isOverlay:!1,animateWidth:!1,className:t})},
toggleButtonViewModel:function(W){return _.q(_.BT,{data:W.data,className:t})}}))}}),_.q(_.U,{cond:function(){return!G()&&!!m().selectionText},
then:function(){return _.q(_.Mr,null,_.q(_.Jg,{text:function(){return m().selectionText},
className:_.bE("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.q(_.U,{cond:function(){return!(B==null?0:B())},
then:function(){return _.q(_.T$,{icon:M,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Vc");var YkU=_.a(function(O){function m(){var J,n;x((n=(J=Q)==null?void 0:J.isKeyBoardInUse())!=null?n:!1)}
function G(){x(!1)}
function B(){var J;return R()?(J=O.focusedClassName)==null?void 0:J.call(O):""}
var Q=_.KR().resolve(_.v7(_.IF)),H=_.K(_.Wf(!1,void 0,"zbdw0d")),M=H.next().value;H=H.next().value;var R=M,x=H,t=function(){var J,n;return((J=O.toggleable)==null?0:J.call(O))?(n=O.toggled)==null?void 0:n.call(O):void 0},W=_.nH(function(J){var n,I=(n=O.command)==null?void 0:n.call(O);
I&&_.KR().resolve(_.Mu).resolveCommand(I);var S;(S=O.onClick)==null||S.call(O,J)}),Z=_.nH(m),z=_.nH(G);
return _.q(_.U,{cond:function(){var J;if(J=O.command){J=O.command();J=DAp(J);var n=J.href;J=!(!J.navigatingCommand||!n)}return J},
then:function(){return _.q(_.p3,Object.assign({},{command:O.command,style:O.style,ariaDescribedby:O.ariaDescribedby,ariaHidden:O.ariaHidden,ariaLabel:O.ariaLabel,ariaLabelledby:O.ariaLabelledby,ariaSelected:O.ariaSelected,disabled:O.disabled,dir:O.dir,tabIndex:O.tabIndex,target:O.target,title:O.title,onClick:O.onClick},{className:_.bE("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",O.className,function(){return B()}),
onFocusin:m,onFocusout:G,ariaCurrent:function(){var J,n;return(n=(J=O.ariaCurrent)==null?void 0:J.call(O))!=null?n:t()}}),O.children)},
else:function(){return _.q("button",{"on:click":W,"on:focusin":Z,"on:focusout":z,class:_.bE("ytButtonOrAnchorHost","ytButtonOrAnchorButton",O.className,function(){return B()}),
style:O.style,"aria-describedby":O.ariaDescribedby,"aria-hidden":O.ariaHidden,"aria-label":O.ariaLabel,"aria-labelledby":O.ariaLabelledby,"aria-pressed":t,dir:O.dir,disabled:O.disabled,tabindex:O.tabIndex,title:O.title},O.children)}})},"Wc");var dY_=_.a(function(O){var m=O.data;var G=O.useButtonOrAnchor;var B=O.onTap;var Q=O.isTappableWithoutSelect;var H=O.isToggled;return _.q(_.U,{cond:function(){return m().title||m().subtitle},
then:function(){return _.q("div",{class:"yt-list-item-view-model__text-wrapper"},_.q(_.U,{cond:function(){return m().title},
then:function(M){return _.q("div",{class:"yt-list-item-view-model__title-wrapper"},_.q(_.U,{cond:function(){return(G==null?void 0:G())&&(Q==null?void 0:Q())},
then:function(){return _.q(YkU,{command:function(){return _.a_(m().rendererContext)},
onClick:B,className:"yt-list-item-view-model__button-or-anchor",toggleable:H!==void 0,toggled:H},_.q(_.Jg,{text:M,className:"yt-list-item-view-model__title"}))},
else:function(){return _.q(_.Jg,{text:M,className:"yt-list-item-view-model__title"})}}))}}),_.q(_.U,{cond:function(){return m().subtitle},
then:function(M){return _.q(_.Jg,{text:M,className:"yt-list-item-view-model__subtitle"})}}))}})},"Xc");var wQ8=_.a(function(O){var m=O.data;var G=O.hideSelectionTextChevron;var B=O.TrailingAccessory;var Q=O.isToggled;var H=O.disabled;var M=O.isSelectItem;var R=O.isCompact;var x=O.inPopup;var t=O.disableHorizontalPadding;var W=O.isTappableWithoutSelect;var Z=O.useButtonOrAnchor;O=O.onTap;var z={};return _.q("div",{class:_.bE("yt-list-item-view-model__label",(z["yt-list-item-view-model__container"]=function(){return!(M==null?0:M())},z["yt-list-item-view-model__container--disabled"]=function(){return!!m().isDisabled||
!(H==null||!H())},z["yt-list-item-view-model__container--has-subtitle"]=function(){return!!m().subtitle},z["yt-list-item-view-model__container--compact"]=R,z["yt-list-item-view-model__container--tappable"]=W,z["yt-list-item-view-model__container--in-popup"]=x,z["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(t==null?void 0:t())&&!(M==null?0:M())},z))},_.q(c6s,{data:m,
isLeading:!0,hideSelectionTextChevron:G,isToggled:Q}),_.q(dY_,{data:m,onTap:O,useButtonOrAnchor:Z,isTappableWithoutSelect:W,isToggled:Q}),_.q(_.U,{cond:function(){return!!B},
then:function(){return _.q("div",{class:"yt-list-item-view-model__trailing"},B&&_.q(B,null))},
else:function(){return _.q(c6s,{data:m,isLeading:!1,hideSelectionTextChevron:G,isToggled:Q})}}))},"Yc");var DY8=_.a(function(O){var m=_.ru(O,{checked:!1});O=m.name;var G=m.onChange,B=m.onClick,Q=m.checked,H=m.labelRenderable,M=m.hasLeadingLabel,R=m.labelClass,x=m.isCompact,t=m.selectElementClass;m=m.disableHorizontalPadding;var W="checkbox"+_.DI(_.HZ),Z=_.nH(function(n){B==null||B(n);return!1}),z=_.nH(function(n){G==null||G(n);
return!1}),J={};
return _.q("checkbox-shape",null,_.q("label",{class:_.bE("ytCheckboxShapeHost",R,(J.ytCheckboxShapeHostCompact=x,J.ytCheckboxShapeDisableHorizontalPadding=m,J))},_.q("input",{class:"ytCheckboxShapeInput",id:W,checked:Q,name:O,type:"checkbox","prop:checked":Q,"on:change":z,"on:click":Z}),_.q(_.U,{cond:function(){return!(M==null?0:M())},
then:function(){return _.q(eps,{isLeading:!0,selectElementClass:t})}}),_.q(_.U,{cond:function(){return!!H},
then:function(){return _.q("div",{class:"ytCheckboxShapeLabel"},H==null?void 0:H())}}),_.q(_.U,{cond:M,
then:function(){return _.q(eps,{isLeading:!1,selectElementClass:t})}})))},"Zc");
DY8.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var eps=_.a(function(O){var m=O.selectElementClass;O={};return _.q("div",{class:_.bE("ytCheckboxShapeCheckbox",m,(O.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(m==null?0:m())},O)),
"aria-hidden":"true"},_.q(_.T$,{icon:_.V("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.q(_.T$,{icon:_.V("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"$c");_.$l=_.a(function(O){var m=O.name;var G=O.onChange;var B=O.onClick;var Q=O.checked;var H=O.labelRenderable;var M=O.useCheckIcon;var R=O.hasLeadingLabel;var x=O.labelClass;var t=O.isCompact;var W=O.selectElementClass;var Z=O.ariaLabel;O=O.className;var z="radio"+_.DI(_.HZ),J=_.Al("input"),n=_.nH(function(D){J.value.checked=!(Q==null||!Q());G==null||G(D);return!1}),I=_.nH(function(D){B==null||B(D);
return!1}),S=_.nH(function(D){_.V("enable_ios_webview_radio_button_responsiveness")&&(D.preventDefault(),J.value.click())}),L=_.K(_.Wf(!1,void 0,"TcCZlf")),C=L.next().value,P=L.next().value;
L=_.nH(function(){var D;((D=_.KR().resolve(_.v7(_.IF)))==null?0:D.isKeyBoardInUse())&&P(!0)});
var w=_.nH(function(){P(!1)}),d={};
return _.q("radio-shape",{class:_.bE("yt-radio-shape",O)},_.q("input",{el:J,class:"yt-radio-shape__input",id:z,"prop:checked":Q,name:m,type:"radio","on:change":n,"on:click":I,"aria-label":Z,"on:focusin":L,"on:focusout":w}),_.q("label",{class:_.bE("yt-radio-shape__label-container",x,(d["yt-radio-shape--compact"]=t,d["yt-radio-shape__label-container--keyboard-focused"]=C,d)),for:z,"on:click":S},_.q(_.U,{cond:function(){return!(R==null?0:R())},
then:function(){return _.q(sP9,{checked:Q,useCheckIcon:M,isLeading:!0,selectElementClass:W})}}),_.q(_.U,{cond:function(){return!!H},
then:function(){return _.q("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(Z==null?0:Z())?"true":"false"}},H==null?void 0:H())}}),_.q(_.U,{cond:R,
then:function(){return _.q(sP9,{checked:Q,useCheckIcon:M,isLeading:!1,selectElementClass:W})}})))},"ad");
_.$l.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var sP9=_.a(function(O){var m=O.useCheckIcon;var G=O.selectElementClass;O=function(){return(m==null?0:m())?"CHECK":_.V("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var B={};return _.q("div",{class:_.bE("yt-radio-shape__radio",G,(B["yt-radio-shape__radio--check-icon"]=m,B["yt-radio-shape__radio--radio-default-style"]=function(){return!(G==null?0:G())},B)),
"aria-hidden":"true"},_.q(_.T$,{icon:O}),_.q(_.T$,{icon:O,active:function(){return!(m==null?0:m())}}))},"bd");_.MA=_.a(function(O){var m=O.data;var G=O.isMenuItem;var B=O.isCompact;var Q=O.onTap;var H=O.trailingAccessory;var M=O.hideSelectionTextChevron;var R=O.disabled;var x=O.inPopup;var t=O.disableHorizontalPadding;var W=O.isOverlay;var Z=O.isToggled;var z=O.ariaLabel;O=O.ariaPressed;var J=!_.V("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),n=function(){return _.V("enable_web_shorts_captions_language_command")||_.V("web_shorts_audio_track_picker")?Object.assign({},m(),r_f(m())):m()},I=_.i2I(function(){return n().rendererContext}),
S=function(){return!(n().isSelected===void 0||!n().selectionStyle||n().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},L=function(){return(_.ki(n().rendererContext)||Q)&&!S()},C={},P=_.bE("yt-list-item-view-model__container",(C["yt-list-item-view-model__container--tappable"]=function(){return _.ki(n().rendererContext)||S()},C["yt-list-item-view-model__container--compact"]=B,C["yt-list-item-view-model__container--in-popup"]=x,C["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(t==null?void 0:t())&&S()},C)),w=function(){return n().leadingImage||n().leadingAccessory},d=_.bE("yt-list-item-view-model__image-container",function(){return w()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
C=_.nH(function(US){var CN;if(CN=J)CN=n().selectionStyle,CN=CN==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||CN==="LIST_ITEM_SELECTION_STYLE_RADIO"||CN==="LIST_ITEM_SELECTION_STYLE_DEFAULT";CN||Vf||Q==null||Q(US)});
var D=_.rqM(),OS=_.K(_.Wf(!1,void 0,"YQ5CU")),rN=OS.next().value,xO=OS.next().value,XI=function(){return _.q(wQ8,{data:n,hideSelectionTextChevron:M,TrailingAccessory:H,isToggled:Z,disabled:R,isSelectItem:S,isCompact:B,inPopup:x,disableHorizontalPadding:t,isTappableWithoutSelect:L,useButtonOrAnchor:Vf,onTap:Q})},Vf=_.V("web_button_or_anchor_list_item");
OS={};return _.q("yt-list-item-view-model",{el:_.Mi(_.yp(function(){return n().rendererContext},void 0,void 0,Vf?["A".toString(),
"BUTTON".toString()]:[]),Vf&&Q?Rir(Q):void 0,XBS(function(){return L==null?void 0:L()},{focusin:function(){var US;
((US=_.KR().resolve(_.v7(_.IF)))==null?0:US.isKeyBoardInUse())&&xO(!0)},
focusout:function(){xO(!1)}})),
class:_.bE("yt-list-item-view-model",(OS["yt-list-item-view-model--is-overlay"]=W,OS["yt-list-item-view-model--keyboard-focused"]=rN,OS)),role:function(){return(G==null?0:G())?"menuitem":"listitem"},
tabindex:function(){var US=L();US=Vf?void 0:Q||US?0:void 0;return US},
"on:keydown":D,"on:click":C,"aria-label":function(){var US;return(z==null?void 0:z())||((US=I())==null?void 0:US.label)},
"aria-pressed":O},_.q(_.U,{cond:S,then:function(){return _.q(_.I8,null,_.q(_.uz,{when:function(){return n().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.q(DY8,{labelRenderable:XI,
isCompact:B,checked:function(){return n().isSelected},
hasLeadingLabel:function(){return!!w()},
labelClass:P,selectElementClass:d,disableHorizontalPadding:t,onClick:J?Q:void 0})}),_.q(_.uz,{when:function(){return n().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.q(_.$l,{labelRenderable:XI,
isCompact:B,checked:function(){return n().isSelected},
hasLeadingLabel:function(){return!!w()},
labelClass:P,selectElementClass:d,onClick:J?Q:void 0})}),_.q(_.uz,{when:function(){return n().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.q(_.$l,{labelRenderable:XI,
isCompact:B,checked:function(){return n().isSelected},
hasLeadingLabel:function(){return!!w()},
labelClass:P,selectElementClass:d,useCheckIcon:!0,onClick:J?Q:void 0})}),_.q(_.jx,null,XI))},
else:XI}))},"cd");
_.MA.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.NZm=_.a(function(O){var m=O.data;var G=O.onTap;var B=O.onSwitch;var Q=O.overrideDisabled;O=O.disableHorizontalPadding;var H=_.K(_.fH(function(){var J;return((J=Mzz(Z()))==null?void 0:J.switchedOnByDefault)||!1})),M=H.next().value,R=H.next().value;
H=_.K(_.Wf(!1,void 0,"ZHBkbb"));var x=H.next().value,t=H.next().value,W=_.V("web_button_or_anchor_list_item"),Z=function(){var J;if(!(J=m().switchButton)){var n=m();J=Q==null?void 0:Q();n={switchOnCommand:n.switchOnCommand,switchOffCommand:n.switchOffCommand,switchedOnByDefault:n.switchedOnByDefault,isDisabled:n.isDisabled,handleOnTapEventInParent:!W,a11yLabelSwitchedOn:n.a11yLabelSwitchedOn,a11yLabelSwitchedOff:n.a11yLabelSwitchedOff};J!==void 0&&(n.isDisabled=J);J={switchButtonViewModel:n}}return J},
z=function(J){var n=Mzz(Z());
!n||n.isDisabled||m().ignoreTapUntilCommandCompletes&&x()||(G==null||G(J),KYs(n,M(),J,m().ignoreTapUntilCommandCompletes,t),R(!M()),B==null||B(M()))};
return _.q("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.q(_.MA,{data:function(){return{title:m().title,subtitle:m().attributedSubtitle,leadingImage:m().leadingImage,leadingAccessory:m().leadingAccessory,isDisabled:m().isDisabled}},
onTap:z,isToggled:W?M:void 0,trailingAccessory:function(){return _.q(_.u5,{data:Z},{switchButtonViewModel:function(J){return _.q(y6s,{data:J.data,parentActive:M,handleOnTapEventInParent:!!G&&!W,onTap:W?z:void 0})}})},
disableHorizontalPadding:O}))},"dd");var PBU=_.a(function(O){var m=_.K(_.fH(function(){var Q,H;return!!((Q=O.data())==null?0:(H=Q.initialState)==null?0:H.isToggled)})),G=m.next().value,B=m.next().value;
m=_.nH(function(){B(!G())});
return _.q("toggleable-list-item-view-model",{el:_.Mi(_.yp(function(){return O.data().rendererContext})),
class:_.bE("toggleableListItemViewModelHost",O.className),"on:click":m},_.q(_.U,{cond:function(){if(G()){var Q=O.data().toggledListItem;Q=_.b(Q,_.pJ)}else Q=O.data().defaultListItem,Q=_.b(Q,_.pJ);return Q},
then:function(Q){return _.q(_.MA,{data:Q,isToggled:G,ariaLabel:function(){var H=G()?O.data().toggledListItem:O.data().defaultListItem,M;H=(M=_.b(H,_.pJ))==null?void 0:M.rendererContext;var R;return(R=_.b(H,_.gD))==null?void 0:R.label},
ariaPressed:function(){return G()}})}}))},"ed");var FRe=_.Xm("DOWNLOAD",{},"Download"),A6u=_.Xm("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),Ocp=_.Xm("RETRY",{},"Retry"),m7j=_.Xm("PAUSE_DOWNLOADING",{},"Pause downloading"),Gso=_.Xm("RESUME_DOWNLOAD",{},"Resume download"),xLN={text:FRe,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},um={text:A6u,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},tzN={text:Ocp,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
qWr={text:m7j,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},ULO={text:Gso,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var BVo=_.a(function(O){var m=function(){var R=O.data();R=_.a_(R.rendererContext);var x;return(x=_.b(R,_.nJ))==null?void 0:x.videoId},G=_.wg(function(R){var x=m(),t=zie(O.data());
return x?_.eH(R,x):t?_.Dh(R,t):"TRANSFER_STATE_UNKNOWN"}),B=_.fJ(_.fUY,m),Q=_.wg(function(R){return _.Zis(R,m(),zie(O.data()))}),H=function(){return Z2S(G(),B(),_.a_(O.data().rendererContext),!!zie(O.data()))},M=function(){return Q()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.q("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:M},_.q(_.U,{cond:function(){return!M()},
then:function(){return _.q(_.U,{cond:H,then:function(R){return _.q(_.gi,{each:R},function(x){return _.q(_.MA,{data:x,isCompact:O.isCompact,isMenuItem:O.isMenuItem,inPopup:O.inPopup,disableHorizontalPadding:O.disableHorizontalPadding})})}})}}))},"fd");
BVo.idomCompat=!0;_.QB8=_.a(function(O){var m=O.data;var G=O.isCompact;var B=O.hideSelectionTextChevron;var Q=O.inPopup;var H=O.isOverlay;var M=O.disableHorizontalPadding;var R=function(){return J_O(m())&&(Q==null?void 0:Q())};
O={};return _.q("yt-list-view-model",{class:_.bE("ytListViewModelHost",(O.ytListViewModelHostKaiosSpatNav=jJM&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",O.ytListViewModelCollectionThumbnailClass=function(){return nyS(m())},O)),
role:function(){return R()?"menu":"list"},
style:_.hH({"max-height":function(){var x,t=(x=m())==null?void 0:x.visibleElementCount;if(t)return nyS(m())?(t+.5)*48+"px":(t+.5)*40+"px"}})},_.q(_.u5,{data:function(){return m().listItems}},{listItemViewModel:function(x){return _.q(_.MA,{data:x.data,
isMenuItem:R,isCompact:G,hideSelectionTextChevron:B,inPopup:Q,isOverlay:H,disableHorizontalPadding:M})},
toggleableListItemViewModel:function(x){return _.q(PBU,{data:x.data})},
downloadListItemViewModel:function(x){return _.q(BVo,{data:x.data,isMenuItem:R,isCompact:G,inPopup:Q,disableHorizontalPadding:M})},
switchListItemViewModel:function(x){return _.q(_.NZm,{data:x.data,disableHorizontalPadding:M})}}))},"gd");
_.QB8.idomCompat=!0;var Hc$=_.a(function(O){var m=O.data;var G=O.isOverlay;O={};return _.q("yt-course-perks-view-model",{class:_.bE("ytwCoursePerksViewModelHost",(O.ytwCoursePerksViewModelHostOverlay=G,O))},_.q("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.q(_.Jg,{text:function(){return m().title}})),_.q("div",null,_.q(_.U,{cond:function(){return m().perks},
then:function(B){return _.q(_.QB8,{data:function(){return{listItems:B()}},
isCompact:!0,isOverlay:G})}})))},"hd");_.qi(Hc$,"yt-course-perks-view-model",{props:{data:_.RZ,isOverlay:_.RZ}});_.qi(_.a(function(O){var m=O.data;return _.q("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.q("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.q(_.Jg,{text:function(){return m().title}})),_.q("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.q(_.Jg,{text:function(){return m().progressSummary}})),_.q("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.q("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.hH({width:function(){return m().progressPercentage*100+"%"}})})))},"id"),"yt-course-progress-view-model",{props:{data:_.VZ}});var vq$=_.a(function(O){var m={};return _.q("yt-progress-view-model",{class:_.bE("ytwProgressViewModelHost",(m.ytwProgressViewModelHostOverlay=_.MN(O.isOverlay,!1),m))},_.q(_.U,{cond:function(){return O.data().progressSummary},
then:function(G){return _.q("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.q(_.Jg,{text:G}))}}),_.q("div",{class:"ytwProgressViewModelHostProgressContainer"},_.q(_.U,{cond:function(){return O.data().leadingLabel},
then:function(G){return _.q("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.q(_.Jg,{text:G}))}}),_.q("div",{class:"ytwProgressViewModelHostProgressBar"},_.q("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(O.data().progressPercentage||0)*100+"%"}}))))},"jd");var rP=_.a(function(O){var m=O.starNumber;var G=O.data;var B=function(){var Q;return((Q=G())==null?void 0:Q.rating)||0};
return _.q(_.U,{cond:function(){return m()},
then:function(Q){return _.q(_.I8,null,_.q(_.uz,{when:function(){return B()>=Q()-.25}},function(){return _.q("div",{class:"ytStarRatingViewModelHostStar"},_.q(_.T$,{icon:"STAR_FILLED"}))}),_.q(_.uz,{when:function(){return B()>=Q()-.75}},function(){return _.q("div",{class:"ytStarRatingViewModelHostStar"},_.q(_.T$,{icon:"STAR_HALF"}))}),_.q(_.jx,null,function(){return _.q("div",{class:"ytStarRatingViewModelHostStar"},_.q(_.T$,{icon:"STAR_BORDER"}))}))}})},"kd"),KB_=_.a(function(O){O=O.data;
return _.q("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.q(rP,{starNumber:1,data:O}),_.q(rP,{starNumber:2,data:O}),_.q(rP,{starNumber:3,data:O}),_.q(rP,{starNumber:4,data:O}),_.q(rP,{starNumber:5,data:O}))},"ld");_.qi(_.a(function(O){var m=_.ru(O,{}).data;return _.q("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.q("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.q(_.Jg,{text:function(){var G;return(G=m())==null?void 0:G.title}})),_.q("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.q(_.U,{cond:function(){return m().starProgressViewModels},
then:function(G){return _.q("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.q(_.u5,{data:G},{progressViewModel:vq$}))}}),_.q("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.q("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.q(_.Jg,{text:function(){var G;
return(G=m())==null?void 0:G.averageRatingLabel}})),_.q(_.U,{cond:function(){return m().zeroStateText},
then:function(G){return _.q("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.q(_.Jg,{text:G}))}}),_.q(_.U,{cond:function(){return m().starRatingViewModel},
then:function(G){return _.q("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.q(_.u5,{data:G},{starRatingViewModel:KB_}))}}),_.q("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.q(_.Jg,{text:function(){var G;
return(G=m())==null?void 0:G.totalRatingsCountLabel}})))))},"md"),"yt-course-ratings-view-model",{props:{data:_.RZ}});var $7e;$7e={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"}};_.MT2=_.a(function(O){var m=_.Al("yt-learning-journey-loader-view-model"),G=_.Vp();_.EZ(function(){requestAnimationFrame(function(){var Q;(Q=G.lottieEl)==null||Q.addEventListener("DOMLoaded",function(){var H;(H=O.onLottieLoaded)==null||H.call(O)})});
var B=O.data().browseEndpoint;B&&_.PE(B)});
return _.q("yt-learning-journey-loader-view-model",{class:_.bE("learningJourneyLoaderViewModelHost",O.className),"data-target-id":function(){var B;return((B=O.data)==null?void 0:B.call(O).targetId)||""},
el:m},_.q(_.Yo,{className:_.bE("learningJourneyLoaderViewModelLoader",O.className),animationName:function(){return $7e.animationConfig.name},
data:$7e,animationRef:G}))},"nd");_.qi(_.MT2,"yt-learning-journey-loader-view-model",{props:{data:_.VZ,className:_.RZ,onLottieLoaded:_.RZ}});var f_s=new Set,XSI=null;var RY3=_.a(function(O){var m=void 0,G=function(){return O.data()},B=function(){var J=G();
var n=_.KR().resolve(_.v7(_.B6));J=n!=null&&n()?J.darkThemeColorPalette:J.lightThemeColorPalette;return{primaryTextColor:I$(J,0),secondaryTextColor:I$(J,1),optionColor:I$(J,2),backgroundColor:I$(J,3),videoBackgroundColor:I$(J,4)}},Q=function(){return!!B().optionColor},H=_.K(_.Wf(-1,void 0,"FNv5Ne")),M=H.next().value,R=H.next().value,x=function(J){return G().correctAnswerIndex===J},t=function(){return M()!==-1};
H=_.K(_.Wf("",void 0,"LFzaYe"));var W=H.next().value,Z=H.next().value,z=function(J){return M()===G().correctAnswerIndex&&x(J)};
return _.q("learning-journey-quiz-view-model",{class:_.bE("learningJourneyQuizViewModelHost","learningJourneyQuizYoututorHost",O.className),style:_.hH({background:function(){return B().backgroundColor}})},_.q("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},W),_.q(_.U,{cond:function(){return!!G().video},
then:function(){return _.q("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.hH({background:function(){return B().videoBackgroundColor}})},_.q(_.u5,{data:function(){return G().video}},{lockupViewModel:function(J){return _.q(_.oU,{data:J.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.q("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.q("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.q("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.q(_.U,{cond:function(){return!!G().aiGeneratedQuizLabel},
then:function(){return _.q("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.q(_.Jg,{text:function(){return G().aiGeneratedQuizLabel}}))}}),_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.hH({"align-items":function(){return G().overflowMenu?"start":"center"}})},_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.hH({"min-height":function(){return G().overflowMenu?"48px":"26px"}})},_.q("div",{class:"learningJourneyQuizYoututorText",
style:_.hH({color:function(){return B().primaryTextColor}})},_.q(_.Jg,{text:function(){return G().questionHeaderText}})))),_.q("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.hH({color:function(){return B().secondaryTextColor}})},_.q(_.Jg,{text:function(){var J=G();
return t()?J.explanationText:J.questionSubheaderText}}))),_.q("div",{role:"group",
class:_.bE("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.q(_.gi,{each:function(){return G().optionsData||[]}},function(J,n){var I={};
return _.q("button",{class:_.bE("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(I.learningJourneyQuizViewModelHostQuizHover=function(){return!t()},I.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=Q,I.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return t()&&x(n())},I.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var S;
if(S=M()!==G().correctAnswerIndex)S=n(),S=M()===S;return S},I)),
"on:click":_.nH(function(){if(t())return!1;R(n());var S,L;Z(x(n())?((S=G().successTitle)==null?void 0:S.content)||"":((L=G().failureTitle)==null?void 0:L.content)||"");return!1}),
style:_.hH({background:"transparent"}),"aria-description":function(){var S,L;return t()?x(n())?(S=G().successTitle)==null?void 0:S.content:(L=G().failureTitle)==null?void 0:L.content:""},
"aria-disabled":t,el:_.Mi(function(S){_.jl(271905,S,m,function(L){m=L})}),
"client-ve-type":271905},_.q("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.q(_.Jg,{text:J.optionText}),_.q(_.U,{cond:function(){var S=n(),L;if(L=t())L=M()===S||x(S);return L},
then:function(){return _.q(rbe,{isOptionCorrect:x,optionIndex:n,isOptionSelectedAndCorrect:z,colors:B})}})))}),_.q(_.U,{cond:t,
then:function(){return _.q("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.q("div",{class:"learningJourneyQuizYoututorExplanationText"},_.q(_.Jg,{text:function(){return G().explanationHeaderText}})),_.q(_.Jg,{text:function(){return G().optionsData[M()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"od"),rbe=_.a(function(O){var m={};
return _.q("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.bE("learningJourneyQuizYoututorOptionIconTrailing",(m.learningJourneyQuizViewModelHostQuizPulse=function(){return O.isOptionSelectedAndCorrect(O.optionIndex())},m.learningJourneyQuizYoututorIconIncorrectFill=function(){return!O.isOptionSelectedAndCorrect(O.optionIndex())&&!O.isOptionCorrect(O.optionIndex())},m.learningJourneyQuizYoututorIconCorrectFill=function(){return O.isOptionCorrect(O.optionIndex())},
m))},_.q("path",{d:function(){var G=O.optionIndex();
return O.isOptionCorrect(G)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"pd");
RY3.idomCompat=!0;var ic8;_.x7$=_.a(function(O){var m=null,G=null,B=null,Q=function(){return O.data()},H=function(){var w=Q();
var d=_.KR().resolve(_.v7(_.B6));w=d!=null&&d()?w.darkThemeColorPalette:w.lightThemeColorPalette;return{primaryTextColor:pz(w,0),secondaryTextColor:pz(w,1),optionColor:pz(w,2),backgroundColor:pz(w,3),videoBackgroundColor:pz(w,4)}},M=function(){return!!H().optionColor},R=_.K(_.Wf(-1,void 0,"QDu8Oe")),x=R.next().value,t=R.next().value,W=function(w){return x()===w},Z=function(w){return Q().correctAnswerIndex===w},z=function(){return x()!==-1},J=function(){return x()===Q().correctAnswerIndex},n=function(){var w=
Q(),d=z(),D=J();
return d?D?w.successTitle:w.failureTitle:w.questionHeaderText},I=function(){var w=z(),d=J();
return w?d?264685:264684:264683},S=function(){var w=Q();
return z()?w.explanationText:w.questionSubheaderText},L=function(){return!!Q().video},C=function(w){return J()&&Z(w)},P=_.nH(function(){t(-1);
return!1});
return _.q(_.U,{cond:function(){return Q().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.q(RY3,{data:function(){return Q()}})},
else:function(){return _.q("learning-journey-quiz-view-model",{class:_.bE("learningJourneyQuizViewModelHost",O.className),style:_.hH({background:function(){return H().backgroundColor}})},_.q(_.U,{cond:L,
then:function(){return _.q("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.hH({background:function(){return H().videoBackgroundColor}})},_.q(_.u5,{data:function(){return Q().video}},{lockupViewModel:function(w){return _.q(_.oU,{data:w.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.q("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.q("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.q("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.q(_.U,{cond:function(){return!!Q().aiGeneratedQuizLabel},
then:function(){return _.q("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.q(_.Jg,{text:function(){return Q().aiGeneratedQuizLabel}}))}}),_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.hH({"align-items":function(){return Q().overflowMenu?"start":"center"}})},_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.hH({"min-height":function(){return Q().overflowMenu?"48px":"26px"}})},_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.Mi(function(w){_.jl(I(),w,m,function(d){m=d})}),
style:_.hH({color:function(){return H().primaryTextColor}}),
"client-ve-type":I},_.q(_.Jg,{text:n}))),_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.q(_.U,{cond:z,then:function(){return _.q("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.Mi(function(w){_.jl(264687,w,G,function(d){G=d})}),
"on:click":P,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.q("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.hH({fill:function(){return H().primaryTextColor}})},_.q("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"})))}}),
_.q(_.u5,{data:function(){return Q().overflowMenu}},{buttonViewModel:function(w){return _.q(_.oF,{data:w.data})}}))),_.q("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.Mi(function(w){_.jl(264688,w,B,function(d){B=d})}),
style:_.hH({color:function(){return H().secondaryTextColor}}),
"client-ve-type":264688},_.q(_.Jg,{text:S}))),_.q("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.q(_.gi,{each:function(){return Q().optionsData||[]}},function(w,d){var D={};
return _.q("button",{class:_.bE("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(D.learningJourneyQuizViewModelHostQuizHover=function(){return!z()},D.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=M,D.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return C(d())},D.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!J()&&W(d())},D.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return z()&&
!W(d())},D)),
"on:click":_.nH(function(){if(z())return!1;t(d());return!1}),
style:_.hH({background:function(){var OS=d();return z()&&W(OS)?"":M()?H().optionColor:"transparent"}}),
"aria-disabled":z,"client-ve-type":264686},_.q("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.q(_.U,{cond:z,then:function(){return _.q(ic8,{isOptionCorrect:Z,optionIndex:d,isOptionSelectedAndCorrect:C,colors:H})}}),_.q(_.Jg,{text:w.optionText})))})))))}})},"qd");
ic8=_.a(function(O){var m={};return _.q("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var G=O.optionIndex();return O.isOptionCorrect(G)?"0 0 24 24":"0 -960 960 960"},
class:_.bE("learningJourneyQuizViewModelHostQuizOptionIconLeading",(m.learningJourneyQuizViewModelHostQuizPulse=function(){return O.isOptionSelectedAndCorrect(O.optionIndex())},m)),
style:_.hH({fill:function(){return O.colors().primaryTextColor}})},_.q("path",{d:function(){var G=O.optionIndex();
return O.isOptionCorrect(G)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))},"rd");
_.x7$.idomCompat=!0;_.qi(_.x7$,"learning-journey-quiz-view-model",{props:{data:_.VZ,className:_.VZ}});var qPe=_.a(function(O){var m=_.K((0,_.IP9)(function(){var M;return{targetId:(M=O.data().config)==null?void 0:M.suspenseKey,contents:[O.data()]}})).next().value,G=_.KR().resolve(_.Mu),B=function(){var M=m().contents.length>0?m().contents[0]:void 0;
return M==null?void 0:M.config},Q=function(){var M;
return(M=B())==null?void 0:M.entityTriggerConfig},H=_.fJ(ojS,function(){var M,R;
return(R=(M=Q())==null?void 0:M.entityKey)!=null?R:""});
_.ER(function(){var M,R,x,t=(x=Number((M=Q())==null?void 0:(R=M.invalidationTimestamp)==null?void 0:R.seconds))!=null?x:0,W,Z,z;if(((z=Number((W=H())==null?void 0:(Z=W.lastUpdated)==null?void 0:Z.seconds))!=null?z:0)>t){var J;(M=(J=B())==null?void 0:J.continuationCommand)&&G.resolveCommand(M)}},"FaC8z");
return _.q("yt-suspense-view-model",{class:_.bE("ytSuspenseViewModelHost")},_.q(_.u5,{data:function(){var M;return(M=B())==null?void 0:M.contents}},{lockupViewModel:_.oU}))},"sd");var U7U=_.a(function(O){var m=_.ru(O,{palette:void 0,isLastItem:!1}),G=m.palette,B=m.isLastItem,Q=function(){return O.data().isHighlighted},H=function(){var x;
return TGI((x=G())==null?void 0:x.iconDisabledColor)},M=function(){var x;
return TGI((x=G())==null?void 0:x.primaryTitleColor)},R=function(){var x;
return TGI((x=G())==null?void 0:x.secondaryTitleColor)};
m={};return _.q("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.Mi(_.yp(function(){return O.data().rendererContext}))},_.q(_.u5,{data:function(){return O.data().thumbnail}},{thumbnailViewModel:_.hT}),_.q("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.q("div",{class:_.bE("ytMacroMarkerListItemViewModelTimeDescription",(m.ytMacroMarkerListItemViewModelHighlighted=Q,m)),
style:_.hH({"background-color":function(){return Q()?M():H()},
color:function(){return Q()?"":R()}})},_.q(_.Jg,{text:function(){return O.data().timestamp}})),_.q("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.hH({"background-color":function(){return B()?"transparent":H()}})}),_.q("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(Q()?M():R())}},_.q(_.Jg,{text:function(){return O.data().title}}))))},"td");_.Rz=_.a(function(O){function m(vM){C("transform:translateX("+(_.kB("HTML_DIR")==="rtl"?"":"-")+vM+"px)")}
function G(vM){return Math.min(Math.max(vM,0),L()-OS())}
function B(){var vM=d()+Vf();return Q()?(Math.round(OS()/vM)||1)*vM:0}
var Q=function(){return O.data().items||[]},H=function(){return O.data().previousButton},M=function(){return O.data().nextButton},R=function(){var vM,Gp;
return(Gp=(vM=O.disableArrows)==null?void 0:vM.call(O))!=null?Gp:!1},x=function(){var vM;
return!((vM=O.forceNarrowLayout)==null||!vM.call(O))},t=_.bF(function(){var vM;
return!((vM=O.centerAlignItems)==null||!vM.call(O))&&L()<=OS()},void 0,"Uto0kc"),W=_.Al("horizontal-shelf-view-model"),Z=_.Al("div"),z=_.K(_.Wf(0,void 0,"G0xZB")),J=z.next().value,n=z.next().value;
z=_.K(_.Wf(0,void 0,"kqCYFf"));var I=z.next().value,S=z.next().value,L=I;I=_.K(_.Wf("",void 0,"Hh6Uye"));z=I.next().value;var C=I.next().value;I=_.K(_.Wf(0,void 0,"yMGBKb"));var P=I.next().value,w=I.next().value,d=P;I=_.K(_.Wf(0,void 0,"VChthd"));P=I.next().value;var D=I.next().value,OS=P;I=_.K(_.Wf(!1,void 0,"qJlhhe"));var rN=I.next().value,xO=I.next().value;I=_.K(_.Wf(0,void 0,"x7H94"));P=I.next().value;var XI=I.next().value,Vf=P;I=_.K(_.Wf(0,void 0,"ksuUee"));var US=I.next().value,CN=I.next().value;
I=_.K(_.Wf("50%",void 0,"uxCxde"));var oe=I.next().value,K$=I.next().value,n$=function(){var vM,Gp=(vM=O.data())==null?void 0:vM.responsiveContainerConfiguration,Vu,Gu;return Gp?Her(Gp==null?void 0:Gp.responsiveSize):(Gu=(Vu=O.sizing)==null?void 0:Vu.call(O))!=null?Gu:"STANDARD"};
I=_.bF(function(){return!R()&&J()>0},void 0,"XK60w");
P=_.bF(function(){return!R()&&J()<L()-OS()},void 0,"D22LVd");
var qe=function(){n(G(J()-B()));m(J())},PM=function(){n(G(J()+B()));
m(J())},ZH=function(){W.value!==null&&p$()},U3;
_.Ln(function(){p$();window.ResizeObserver?(U3=new ResizeObserver(_.SG(ZH,0)),U3.observe(W.value)):window.addEventListener("resize",ZH)});
_.LS(function(){if(window.ResizeObserver){var vM;(vM=U3)==null||vM.disconnect()}else window.removeEventListener("resize",ZH)});
var p$=function(){var vM=W.value.clientWidth,Gp=O.includeMargin!==void 0?O.includeMargin():!1,Vu;var Gu=O.hasPeek!==void 0?O.hasPeek():!((Vu=O.data())==null||!Vu.hasPeek);vM=_.eh({containerWidth:vM,hasPeek:Gu,sizing:n$(),marginSettings:Gp?x()?4:1:0});XI(vM.gutter);CN(vM.margin);w(vM.itemWidth);xO(vM.maxContainerWidth<528||x());D(vM.maxContainerWidth);Q()&&S((vM.itemWidth+vM.gutter)*Q().length-vM.gutter);if(Q()){var x9;if(((x9=O.thumbnailAspectRatio)==null?void 0:x9.call(O))!==void 0){var Am;K$(d()/
r7I((Am=O.thumbnailAspectRatio)==null?void 0:Am.call(O))/2+"px")}else K$("50%")}},uy={},vb={};
return _.q("horizontal-shelf-view-model",{class:_.bE("ytwHorizontalShelfViewModelHost",O.className),el:W},_.q(_.U,{cond:function(){var vM;return O.data().header&&!((vM=O.horizontalShelfExperiments)==null?0:vM.call(O).hideHeader)},
then:function(){return _.q("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.hH({width:function(){return OS()+"px"},
padding:function(){return"0 "+US()+"px"}})},_.q(_.u5,{data:function(){return O.data().header}},{sectionHeaderViewModel:function(vM){return _.q(_.li,{data:vM.data,
disableHorizontalPadding:!0,forceSmallLayout:rN,useResponsiveLayout:!0})}}))}}),_.q("div",{class:_.bE("ytwHorizontalShelfViewModelOuterContainer",(uy.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return t()},uy)),
style:_.hH({"margin-top":function(){var vM,Gp=O.data().header&&!((vM=O.horizontalShelfExperiments)==null?0:vM.call(O).hideHeader),Vu;return(((Vu=O.ensureMarginTop)==null?0:Vu.call(O))&&!Gp?12:0)+"px"}})},_.q("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.hH({width:function(){return OS()+"px"},
padding:function(){return"0 "+US()+"px"},
overflow:function(){return R()?"auto":"hidden"}})},_.q("div",{class:_.bE("ytwHorizontalShelfViewModelItems",(vb.ytwHorizontalShelfViewModelCenterAlignItems=function(){return t()},vb)),
el:Z,style:z},_.q(_.u5,{data:Q},{macroMarkerListItemViewModel:function(vM,Gp){return _.q("div",{style:_.hH({width:function(){return d()+"px"},
"margin-right":function(){return(Gp()===Q().length-1?0:Vf())+"px"}})},_.q(U7U,{data:vM.data,
palette:_.MN(O.palette),isLastItem:function(){return Gp()===Q().length-1}}))},
lockupViewModel:function(vM,Gp){var Vu=vM.data;return _.q("div",{style:_.hH({width:function(){return d()+"px"},
"margin-right":function(){return(Gp()===Q().length-1?0:Vf())+"px"}})},_.q(_.oU,{data:Vu,
containerType:4,sizing:n$,protectBackground:O.protectBackground,thumbnailFixedWidth:function(){return gyp(Vu())+"px"},
thumbnailTargetWidth:function(){return gyp(Vu())}}))},
suspenseViewModel:function(vM,Gp){return _.q("div",{style:_.hH({width:function(){return d()+"px"},
"margin-right":function(){return(Gp()===Q().length-1?0:Vf())+"px"}})},_.q(qPe,{data:vM.data}))}}))),_.q(_.U,{cond:I,
then:function(){return _.q("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.hH({top:function(){return oe()}})},_.q(_.u5,{data:H},{buttonViewModel:function(vM){return _.q(_.oF,{data:vM.data,
onClick:qe})}}))}}),_.q(_.U,{cond:P,
then:function(){return _.q("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.hH({top:function(){return oe()}})},_.q(_.u5,{data:M},{buttonViewModel:function(vM){return _.q(_.oF,{data:vM.data,
onClick:PM})}}))}})))},"ud");
_.Rz.idomCompat=!0;var tT3=_.a(function(O){var m=function(){return O.data().targetId||""},G=function(){var I;
return((I=O.data())==null?void 0:I.expansionEntityKey)||""},B=_.fJ(_.Coz,G),Q=!0,H=function(){var I;
return((I=B())==null?void 0:I.value)===m()},M=function(I){_.$n(_.jh("stringEntity",G(),{key:G(),
value:I?m():""}))};
_.EZ(function(){Q=!1;O.data().isExpanded&&M(!0)});
var R=function(){if(H()){var I=!0;O.onCollapse!==void 0&&(I=O.onCollapse());I&&M(!1)}else M(!0)},x=_.nH(R),t=function(){var I;
return(((I=O.accordionStyle)==null?void 0:I.call(O))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},W=_.Al("div"),Z=function(){var I,S;
return(S=(I=_.b(O.data().rendererContext,_.gD))==null?void 0:I.label)!=null?S:""},z=function(){var I,S;
return{disabled:(I=O.hideIfNotExpanded)==null?void 0:I.call(O),ariaHidden:(S=O.hideIfNotExpanded)==null?void 0:S.call(O)}},J={},n={};
return _.q("yt-accordion-item-view-model",{class:_.bE("ytAccordionItemViewModelHost",O.className,(J.ytAccordionItemViewModelExpanded=function(){return H()},J.ytAccordionItemViewModelHidden=function(){var I;
return(I=O.hideIfNotExpanded)==null?void 0:I.call(O)},J.ytAccordionItemViewModelMini=t,J)),
"data-target-id":m},_.q("div",{class:"ytAccordionItemViewModelContainer"},_.q("div",{class:"ytAccordionItemViewModelLeftSection","on:click":x,title:Z,"aria-hidden":function(){var I;return(I=O.hideIfNotExpanded)==null?void 0:I.call(O)}},_.q(_.Jg,{text:function(){return O.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:Z})),_.q("div",{class:"ytAccordionItemViewModelRightSection"},_.q(_.u5,{data:function(){return H()?O.data().expandButton:O.data().collapseButton}},{buttonViewModel:function(I){return _.q(_.oF,{data:I.data,
className:"ytAccordionItemViewModelToggleButton",onClick:R,buttonOverrides:z})}}))),_.q("div",{class:"ytAccordionItemViewModelContainer"},_.q("div",{class:_.bE("ytAccordionItemViewModelContent",(n.ytAccordionItemViewModelExpandedSubtitle=function(){return H()},n)),
el:W,style:_.hH({"max-height":function(){return Q?"auto":H()?W.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!H()}},_.q(_.U,{cond:function(){return!t()},
then:function(){return _.q(_.Jg,{text:function(){return O.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.q(_.u5,{data:function(){return O.data().content}},{horizontalShelfViewModel:function(I){return _.q(_.Rz,{data:I.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"vd");_.WBu=_.a(function(O){var m=_.K((0,_.IP9)(O.data)).next().value,G=function(){return O.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},B=function(){return G()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Q=_.K(_.Wf(!0,void 0,"AbejLb")),H=Q.next().value,M=Q.next().value,R=function(){return B()&&H()},x=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){M(!H())}}},t=_.nH(function(){m().onTitleTap&&_.PE(m().onTitleTap||{})});
Q={};return _.q("yt-accordion-view-model",{class:_.bE("ytAccordionViewModelHost",(Q.ytAccordionViewModelMinimized=function(){return R()},Q)),
"data-target-id":function(){return O.data().targetId||""}},_.q(_.U,{cond:function(){return B()||!!m().title},
then:function(){return _.q("div",{class:"ytAccordionViewModelHeader"},_.q("div",{class:"ytAccordionViewModelTitleSection"},_.q("div",{class:"ytAccordionViewModelTitleWrapper"},_.q(_.U,{cond:function(){return!!O.data().headerIcon},
then:function(){return _.q(_.T$,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var W;return(W=O.data().headerIcon)==null?void 0:W.iconType}})}}),_.q("div",{class:"ytAccordionViewModelTitle",
"on:click":t},_.q(_.Jg,{className:"ytAccordionViewModelTitleText",text:function(){return m().title}})))),_.q("div",{class:"ytAccordionViewModelButtonSection"},_.q(_.U,{cond:B,
then:function(){return _.q(_.C3,{data:x,iconName:function(){return R()?"chevron_down":"chevron_collapse"}})}})))}}),_.q("div",{class:"ytAccordionViewModelContent"},_.q(_.u5,{data:function(){return m().contents}},{accordionItemViewModel:function(W){return _.q(tT3,{data:W.data,
className:"ytAccordionViewModelRow",accordionStyle:G,hideIfNotExpanded:R,onCollapse:function(){return B()?(M(!0),!1):!0}})}})),_.q("div",null,_.q(_.U,{cond:function(){return!B()&&(!!m().disclaimerFooter||!!m().footer)},
then:function(){return _.q("div",{class:"ytAccordionViewModelFooter"},_.q(_.Jg,{text:function(){return m().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.q(_.u5,{data:function(){return O.data().footer}},{flexibleActionsViewModel:function(W){return _.q(_.vo,{data:W.data,
layout:0})}}))}})))},"wd");_.qi(_.WBu,"yt-accordion-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=null,G=null,B,Q=(B=_.KR().resolve(_.v7(_.B6)))==null?void 0:B(),H=_.K(_.Wf(!1,void 0,"h3atzd"));B=H.next().value;var M=H.next().value;H=_.K(_.Wf(!0,void 0,"UTh8db"));var R=H.next().value,x=H.next().value,t=_.Al("textarea",function(S){_.jl(264503,S,m,function(L){m=L})}),W=function(S){M(!0);
S={learningJourneyFormData:{query:S}};_.PE(O.data().searchEndpoint||{},{form:{formData:S}});return!1},Z=_.nH(function(S){S.target.closest("button-view-model")&&M(!0)});
H=_.nH(function(){x(t.value.value.length===0)});
var z=_.nH(function(S){if(S.key==="Enter"&&!S.shiftKey&&!R()){var L=S.target;S.preventDefault();W(L.value)}}),J={},n={},I={};
return _.q("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.q("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.q(_.KH,{data:function(){return O.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.q("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.q("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.q("div",{class:_.bE("ytLearningJourneyZeroStateSearchBar",(J.ytLearningJourneyZeroStateSearchBarDark=Q,J))},_.q("textarea",{class:_.bE("ytLearningJourneyZeroStateTextInput",(n.ytLearningJourneyZeroStateTextInputDark=Q,n)),el:t,"on:keyup":H,"on:keydown":z,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.q("div",{class:_.bE("ytLearningJourneyZeroStateSearchButtonContainer",(I.ytLearningJourneyZeroStateSearchButtonContainerDark=Q,I))},_.q(_.oF,{data:function(){return _.b(O.data().searchButton,_.rc)},
className:"search-button",onClick:function(){return W(t.value.value)},
buttonOverrides:function(){return{disabled:R(),style:Q?"mono-inverse":"mono",size:"XL"}}}))),_.q(_.U,{cond:function(){return!!O.data().errorBanner},
then:function(){return _.q("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.Mi(function(S){_.jl(264617,S,G,function(L){G=L})})},_.q(_.u5,{data:function(){return O.data().errorBanner}},{alertBannerViewModel:function(S){return _.q(_.azj,{data:S.data,
"client-ve-type":264617})}}))}})),_.q(_.U,{cond:B,
then:function(){return _.q("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.q(_.u5,{data:function(){return O.data().loader}},{learningJourneyLoaderViewModel:function(S){return _.q(_.MT2,{data:S.data})}}))},
else:function(){return _.q("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.q(_.U,{cond:function(){return!!O.data().learningJourneyShelf},
then:function(){return _.q("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.q("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return O.data().learningJourneySectionTitle}),_.q(_.u5,{data:function(){return O.data().learningJourneyShelf}},{horizontalShelfViewModel:function(S){return _.q(_.Rz,{data:S.data,
centerAlignItems:!0})}}))}}),_.q("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.q("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return O.data().suggestedJourneySectionTitle}),_.q("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":Z},_.q(_.u5,{data:function(){return O.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(S){return _.q(_.vo,{data:S.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"xd"),"yt-learning-journey-zero-state",{props:{data:_.VZ}});var Zc8=_.a(function(O){var m=O.data;return _.q("ytvl-live-leaderboard-item-action-content-view-model",{class:_.bE("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.q(_.Jg,{text:function(){var G;return(G=m())==null?void 0:G.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.q(_.u5,{data:function(){return m().actionButton}},{buttonViewModel:function(G){return _.q(_.oF,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:G.data})}}))},"yd");var zYm=_.a(function(O){var m=O.data;return _.q("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.bE("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.q(_.Jg,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var G;return(G=m())==null?void 0:G.displayName},
ellipsisTruncate:!0}),_.q(_.u5,{data:function(){return m().badge}},{buttonViewModel:function(G){return _.q(_.oF,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:G.data})}}))},"zd");_.qi(_.a(function(O){var m=O.data;return _.q("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.q("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.q(_.Jg,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var G;return(G=m())==null?void 0:G.rank}})),_.q("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.q(_.u5,{data:function(){return m().avatar}},{avatarViewModel:_.HP})),_.q("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.q(_.u5,{data:function(){return m().content}},{liveLeaderboardItemChannelContentViewModel:zYm,
liveLeaderboardItemActionContentViewModel:Zc8})),_.q(_.Jg,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var G;return(G=m())==null?void 0:G.points}}))},"Ad"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=O.data;return _.q("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.q(_.Jg,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var G,B;return(G=m())==null?void 0:(B=G.ranking)==null?void 0:B.rank}}),_.q("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.q(_.u5,{data:function(){return m().avatar}},{avatarViewModel:_.HP})),_.q(_.Jg,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var G,B;return(G=m())==null?void 0:(B=G.channelContent)==null?void 0:B.channelName}}),_.q(_.Jg,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var G;return(G=m())==null?void 0:G.points}}))},"Bd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.VZ}});var Jb2=_.a(function(O){O=_.ru(O,{wrapper:!1}).wrapper;return _.q(_.U,{cond:O,then:function(){return _.q("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.q("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.q("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Cd");
Jb2.idomCompat=!0;var VTj=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],bcU=_.a(function(O){var m=O.data;var G=_.Mi(),B=_.bF(function(){return m().command},void 0,"fyYsT");
_.ER(function(){B()&&_.DB(B(),{form:{element:G.value}})},"B0nxdb");
return _.q("div",{el:G,class:"YtQrCodeRendererHostContainer"},_.q(_.U,{cond:function(){return m().qrCodeImage},
then:function(Q){return _.q(_.KH,{data:Q,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.q(_.U,{cond:function(){return m().spinner},
then:function(){return _.q(Jb2,null)}})}}),_.q(_.U,{cond:function(){return m().label},
then:function(Q){return _.q(_.Jg,{text:Q,className:"YtQrCodeRendererHostLabel"})}}),_.q(_.U,{cond:function(){return m().labels},
then:function(Q){return _.q("div",{class:"YtQrCodeRendererHostLabels"},_.q(_.gi,{each:Q},function(H){return _.q(_.Jg,{text:H})}))}}))},"Ed");_.qi(_.a(function(O){var m=O.data;var G=_.bF(function(){return m().qrEntityKey},void 0,"M0PrY"),B=_.bF(function(){return m().deleteEntityOnDismiss},void 0,"QZa4g"),Q=_.bF(function(){return m().command},void 0,"wEOxUe"),H=_.fJ(K6I,G);
O=_.bF(function(){return m().qrCodeImage},void 0,"UO5oub");
var M=_.bF(function(){return m().style&&VTj.includes(m().style)},void 0,"Op9kZd"),R=_.$V({visibilityCallback:function(x){x&&Q()&&_.DB(Q())},
showOption:{calledOnce:!0,state:"visible"}});_.Ln(function(){_.LS(function(){B()&&G()&&_.Km().dispatch(_.jh("qrCodeEntity",G()))})});
return _.q("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.Mi(R)},_.q(_.U,{cond:M,then:function(){return _.q(_.U,{cond:H,then:function(x){return _.q(bcU,{data:x})}})}}),_.q(_.U,{cond:O,
then:function(x){return _.q(_.KH,{data:x,alt:""})}}))},"Dd"),"yt-qr-code-renderer",{props:{data:_.VZ}});var XWu=_.a(function(O){var m=function(){return _.AV(1728053247&(O.barColor!==void 0?Xv(O.barColor()):4278190080))};
return _.q("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.q(nq_,{animationDelay:0,percentWidth:100,barColor:function(){return m()}}),_.q("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.q("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+m()}})),_.q(nq_,{animationDelay:0,
percentWidth:100,barColor:function(){return m()}}),_.q(nq_,{animationDelay:600,
percentWidth:60,barColor:function(){return m()}}))},"Fd"),nq_=_.a(function(O){return _.q("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+O.percentWidth()+"%"}},_.q("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var m=O.animationDelay(),G=O.barColor();return"animation-delay:"+m+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+G+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Gd");var fX9;_.hYs=_.a(function(O){function m(S){M(S)}
var G=O.data;var B=_.Al("yt-video-overview-view-model"),Q=_.GX("div");O=_.K(_.Wf(-1,void 0,"qaDSu"));var H=O.next().value,M=O.next().value;O=_.K(_.Wf(0,void 0,"Vz681c"));var R=O.next().value,x=O.next().value,t={},W=_.fJ(uDs,function(){return G().asyncDataEntityKey}),Z=function(){var S;
if((S=W())==null?0:S.videoOverviewViewModel){var L;return _.b((L=W())==null?void 0:L.videoOverviewViewModel,yQH)}return G()};
_.Ln(function(){x(Math.min((B.value.clientWidth-24)/4-8,72))});
var z=function(S){M(S);(Q==null?0:Q.value)&&Q.value.children[S]&&Q.value.children[S].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
wj6(B,function(){var S;if((S=Z())==null||!S.inlinePlaybackEndpoint)return null;var L;S=t==null?void 0:(L=t.thumbnailElRef)==null?void 0:L.value;if(!S)return null;var C;L=(C=Z())==null?void 0:C.inlinePlaybackEndpoint;C=_.b(L,rSC);return{multipleVideoPreviewData:{data:(C==null?0:C.playerDescriptors)&&(C==null?0:C.playerDescriptors.length)?C.playerDescriptors:[],thumbnailElement:S,trackingParams:"test",callbacks:{onPlaybackStarted:z},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var J=function(){var S;return((S=Z())==null?void 0:S.headerSubtext)!==void 0?!0:!1},n=function(){var S,L=Xv((S=Z())==null?void 0:S.titleColor);
return L?"color: "+_.AV(L)+";":void 0},I=function(){var S,L=Xv((S=Z())==null?void 0:S.subtextColor);
return L?"color: "+_.AV(L)+";":void 0};
return _.q("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:B,style:function(){var S,L=Xv((S=Z())==null?void 0:S.backgroundColor);return L?"background-color: "+_.AV(L)+";":void 0}},_.q(_.U,{cond:function(){var S;
return(S=Z())==null?void 0:S.isLoading},
then:function(){return _.q(XWu,{barColor:function(){var S;return(S=Z())==null?void 0:S.titleColor}})},
else:function(){return _.q(_.Mr,null,_.q("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.q("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return n()}},_.q(_.Jg,{text:function(){var S;
return(S=Z())==null?void 0:S.headerText}})),_.q(_.U,{cond:J,
then:function(){return _.q("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.q("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return I()}},_.q(_.T$,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.q("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return I()}},_.q(_.Jg,{text:function(){var S;
return(S=Z())==null?void 0:S.headerSubtext}})))}})),_.q("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.q(_.u5,{data:function(){var S;
return(S=Z())==null?void 0:S.thumbnail}},{thumbnailViewModel:function(S){return _.q(_.hT,{data:S.data,
aspectRatio:0,playbackRef:YjM(t)})}})),_.q(_.U,{cond:function(){var S,L,C,P;
return((S=Z())==null?void 0:(L=S.listItems)==null?void 0:L.length)!==void 0&&((C=Z())==null?void 0:(P=C.listItems)==null?void 0:P.length)>0?!0:!1},
then:function(){return _.q("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:Q},_.q(_.gi,{each:function(){var S;return(S=Z())==null?void 0:S.listItems}},function(S,L){return _.q(fX9,{image:S.image,
index:L,isSelected:function(){return L()===H()},
onClick:m,itemWidth:R})}))}}),_.q("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.q("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return n()}},_.q(_.Jg,{text:function(){var S,L,C,P,w,d,D;
return(D=(S=Z())==null?void 0:(L=S.listItems)==null?void 0:(C=L[H()])==null?void 0:C.headline)!=null?D:(P=Z())==null?void 0:(w=P.listItems)==null?void 0:(d=w[0])==null?void 0:d.headline}})),_.q("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return I()}},_.q(_.Jg,{text:function(){var S,L,C,P,w,d,D;
return(D=(S=Z())==null?void 0:(L=S.listItems)==null?void 0:(C=L[H()])==null?void 0:C.subtext)!=null?D:(P=Z())==null?void 0:(w=P.listItems)==null?void 0:(d=w[0])==null?void 0:d.subtext}}))))}}))},"Hd");
fX9=_.a(function(O){var m=O.image;var G=O.itemWidth;var B=O.index;var Q=O.isSelected;var H=O.onClick;O=_.nH(function(){B!==void 0&&H!==void 0&&H(B());return!1});
var M={};return _.q("div",{class:_.bE("ytGenAiVideoOverviewViewModelCarouselItem",(M.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return Q==null?void 0:Q()},M)),
style:function(){return"width: "+G()+"px;"},
"on:click":O},_.q(_.KH,{data:m,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.q(_.U,{cond:function(){return Q==null?void 0:Q()},
then:function(){return _.q("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.q("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Id");
_.hYs.idomCompat=!0;_.qi(_.hYs,"yt-video-overview-view-model",{props:{data:_.VZ}});_.TVC=_.a(function(O){var m=O.data;var G=O.topbarOffset;var B,Q=((B=_.KR().resolve(_.v7(_.B6)))==null?void 0:B())||!1;return _.q("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var H=m();var M,R,x=Q?(M=H.config)==null?void 0:M.darkThemeBackgroundColor:(R=H.config)==null?void 0:R.lightThemeBackgroundColor;H=x?_.Fs(x):void 0;H="background-color: "+H+";";G!==void 0&&(H+="top: -"+G()+"px;");return H},
"aria-hidden":!0},_.q(_.U,{cond:function(){var H,M,R;return!!((H=m().backgroundImageConfig)==null?0:(M=H.image)==null?0:(R=M.sources)==null?0:R.length)},
then:function(){return _.q(_.KH,{data:function(){var H;return(H=m().backgroundImageConfig)==null?void 0:H.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.q("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+j1z(Q,m().gradientColorConfig)+";"}}))},"Jd");
_.TVC.idomCompat=!0;var gqs=_.a(function(O){var m=O.data;var G=O.isOverlay;return _.q("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.q("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.q(_.u5,{data:function(){return m().header}},{sectionHeaderViewModel:function(B){return _.q(_.li,{data:B.data,
isOverlay:G})}})),_.q("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.q(_.u5,{data:function(){return m().channelInfoButtons}},{flexibleActionsViewModel:_.vo})),_.q("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.q(_.u5,{data:function(){return m().description}},{descriptionPreviewViewModel:function(B){return _.q(_.o2,{data:B.data,
isOverlay:G})}})))},"Kd");
gqs.idomCompat=!0;var uUe=_.a(function(O){var m=O.data;var G={};return _.q("factoid-view-model",{class:_.bE("ytwFactoidViewModelHost",(G.ytwFactoidViewModelHostOverlay=O.isOverlay,G))},_.q(_.Jg,{text:function(){return m().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.q(_.Jg,{text:function(){return m().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ld");
uUe.idomCompat=!0;var jBm=_.a(function(O){var m=O.data;var G=O.isOverlay;return _.q("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.q(_.u5,{data:function(){return m().factoids}},{factoidViewModel:function(B){return _.q(uUe,{data:B.data,
isOverlay:G})}}))},"Md");
jBm.idomCompat=!0;_.IXH=_.a(function(O){var m=O.data;var G=O.isOverlay;return _.q("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.q(_.u5,{data:function(){return m().items}},{channelInfoViewModel:function(B){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(gqs,{data:B.data,
isOverlay:G}))},
coursePerksViewModel:function(B){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(Hc$,{data:B.data,isOverlay:G}))},
descriptionPreviewViewModel:function(B){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(_.o2,{data:B.data,isOverlay:G}))},
factoidsRowViewModel:function(B){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(jBm,{data:B.data,isOverlay:G}))},
progressViewModel:function(B){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(vq$,{data:B.data,isOverlay:G}))}}))},"Nd");var pW_=_.a(function(O){return _.q("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.q(_.u5,{data:function(){return O.data().content}},{courseMetadataViewModel:function(m){return _.q(_.IXH,{data:m.data,
isOverlay:O.isOverlay})},
progressViewModel:function(m){return _.q(vq$,{data:m.data})}}))},"Od");var SP_=_.a(function(O){var m=O.data;O=O.className;var G=function(){var Q;return _.ki((Q=m())==null?void 0:Q.rendererContext)},B={};
B=(B.dynamicTextViewModelHost=!0,B.dynamicTextViewModelHostTappable=function(){return G()},B);
return _.q("yt-dynamic-text-view-model",{el:_.Mi(_.yp(function(){var Q;return(Q=m())==null?void 0:Q.rendererContext})),
role:function(){return G()?"link":void 0},
tabindex:function(){return G()?0:void 0},
class:_.bE(O,B)},_.q("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var Q,H,M;return(M=(H=_.b((Q=m())==null?void 0:Q.rendererContext,_.gD))==null?void 0:H.label)!=null?M:""}},_.q(_.Jg,{text:function(){return m().text},
userInput:!0})))},"Pd");
SP_.idomCompat=!0;_.ix=_.a(function(O){var m=O.data;var G=O.isPositionRelative;var B=_.pS5("(max-width: 527.9px)"),Q=function(){var H,M;return(M=(H=m())==null?void 0:H.style)!=null?M:"IMAGE_BANNER_STYLE_FULL_BLEED"};
O={};return _.q("yt-image-banner-view-model",{el:_.Mi(_.yp(function(){var H;return(H=m())==null?void 0:H.rendererContext})),
class:_.bE((O.ytImageBannerViewModelHost=!0,O.ytImageBannerViewModelInset=function(){return SWI(Q())},O.ytImageBannerViewModelPositionAbsolute=function(){return _.o9(!0)&&!(G==null?0:G())},O.ytImageBannerViewModelSmallInset=function(){return SWI(Q())&&B()},O.ytImageBannerViewModelTappable=function(){var H;
return _.ki((H=m())==null?void 0:H.rendererContext)},O))},_.q(_.U,{cond:function(){var H;
return(H=m())==null?void 0:H.image},
then:function(){return _.q(_.KH,{data:function(){return m().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.q(_.u5,{data:function(){var H;
return(H=m())==null?void 0:H.overlays}},{thumbnailHoverOverlayViewModel:QN}))},"Qd");
_.ix.idomCompat=!0;var EqC;EqC=_.a(function(O){var m=O.condition;var G=O.content;return _.q(_.U,{cond:m,then:function(){return _.q("div",{class:"yt-page-header-view-model__scroll-container"},G())},
else:function(){return G()}})},"Rd");
_.LBo=_.a(function(O){var m=O.data;var G=O.noPadding;var B=O.enableBanner;var Q=O.cinematicContainerTopbarOffset;var H=O.allowCinematicContainerOverflow;var M=O.displayAsSidebar;var R=O.displayAsPanel;var x=O.alwaysUseMediumTextDescription;var t=EyO(),W=function(){return!!m().image||!!m().animatedImage},Z=function(){return!!m().background},z=function(){return(M==null?0:M())||(R==null?0:R())?1:t()},J=function(){return z()===1},n=function(){return J()||z()===2},I=function(){return z()===4},S=function(){var US=
m();
var CN=!!m().heroImage;var oe=z(),K$=LYO(m()),n$=M==null?void 0:M(),qe=!US.metadata,PM;if(PM=CN?_.b(US.heroImage,SX3):_.b(US.animatedImage||US.image,SX3)){US=PM.style;var ZH=PM.layoutMode;if(ZH!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(PM=z1N(ZeS(PM)),CN)CN=I_S(oe,US,ZH,PM,n$);else b:if(qe)CN=oe===1?{size:48}:{size:72};else switch(oe){case 1:CN={size:72};break b;case 2:CN={size:120};break b;default:CN=K$<4?{size:120}:{size:160}}else CN=void 0}else CN={size:0};return CN};
O={};O=_.bE((O["yt-page-header-view-model"]=!0,O["yt-page-header-view-model--no-padding"]=function(){return!(G==null||!G())},O["yt-page-header-view-model--small-top-padding"]=function(){return J()&&!m().actions&&!(R==null?0:R())||z()===2&&!(W()||m().heroImage)},O["yt-page-header-view-model--small-bottom-padding"]=function(){return n()&&!m().actions&&!(R==null?0:R())},O["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(H==null?0:H())},O["yt-page-header-view-model--display-as-sidebar"]=
M,O));
var L={},C=_.bE((L["yt-page-header-view-model__page-header-headline"]=!0,L["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var US;return(US=S())==null?void 0:US.allowFullWidth},L)),P=function(){var US;
return n()&&!((US=S())==null?0:US.allowFullWidth)},w=function(){return J()&&(!!m().heroImage||W())&&LYO(m())>0},d=function(){return w()&&(R==null?void 0:R())};
L={};var D=_.bE((L["yt-page-header-view-model__page-header-title"]=!0,L["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!w()},L["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return w()&&!d()},L["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=d,L["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=Z,L));
L={};var OS=_.bE((L["yt-page-header-view-model__page-header-headline-image"]=!0,L["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!m().heroImage&&n()},L));
L={};var rN=_.bE((L["yt-page-header-view-model__page-header-banner-container"]=B,L["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var US;return(B==null?void 0:B())&&((US=_.b(m().banner,_.L2_))==null?void 0:US.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},L));
L={};var xO=_.bE((L["yt-page-header-view-model__page-header-content-metadata"]=!0,L["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=Z,L));L={};var XI=_.bE((L["yt-page-header-view-model__page-header-flexible-actions"]=!0,L["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!m().metadata||n()},L["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!n()},L));
L={};var Vf=_.bE((L["yt-page-header-view-model__page-header-attribution"]=!0,L["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=Z,L));return _.q("yt-page-header-view-model",{class:O},_.q(_.U,{cond:Z,then:function(){return _.q("div",{class:"yt-page-header-view-model__page-header-background"},_.q(_.u5,{data:function(){return m().background}},{cinematicContainerViewModel:function(US){return _.q(_.TVC,{data:US.data,
topbarOffset:Q})}}))}}),_.q(EqC,{condition:function(){return!(M==null||!M())},
content:function(){return _.q("div",{class:"yt-page-header-view-model__page-header-content"},_.q(_.U,{cond:function(){return(B==null?void 0:B())&&m().banner},
then:function(){return _.q("div",{class:rN},_.q(_.u5,{data:function(){return m().banner}},{imageBannerViewModel:_.ix}))}}),_.q("div",{class:C},_.q(_.U,{cond:W,
then:function(){return _.q(_.u5,{data:function(){var US;if(!(US=m().animatedImage)){US=m();if(W()){var CN=US=Object.assign({},US),oe=z(),K$=LYO(m()),n$=CN.image,qe=_.b(n$,Eoe),PM=qe==null?void 0:qe.avatar,ZH=_.b(PM,_.cu);if(n$&&PM&&ZH){switch(oe){case 1:ZH.avatarImageSize="AVATAR_SIZE_XL";break;case 2:ZH.avatarImageSize="AVATAR_SIZE_XXL";break;default:K$<4?ZH.avatarImageSize="AVATAR_SIZE_XXL":ZH.avatarImageSize="AVATAR_SIZE_XXXL"}_.ya(PM,_.cu,Object.assign({},ZH));qe.avatar=Object.assign({},PM);_.ya(n$,
Eoe,Object.assign({},qe));CN.image=Object.assign({},n$)}}US=US.image}return US}},{contentPreviewImageViewModel:function(US){return _.q(_.IU,{data:US.data,
className:OS,imageSizeConfig:S})},
decoratedAvatarViewModel:function(US){return _.q(_.vP,{data:US.data,className:OS})}})}}),_.q(_.U,{cond:function(){return!!m().heroImage&&!P()},
then:function(){return _.q(_.u5,{data:function(){return m().heroImage}},{contentPreviewImageViewModel:function(US){return _.q(_.IU,{data:US.data,
className:OS,imageSizeConfig:S})}})}}),_.q("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.q(_.U,{cond:function(){return!!m().heroImage&&P()},
then:function(){return _.q("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.q(_.u5,{data:function(){return m().heroImage}},{contentPreviewImageViewModel:function(US){return _.q(_.IU,{data:US.data,
className:OS,imageSizeConfig:S})}}))}}),_.q(_.u5,{data:function(){return m().title}},{dynamicTextViewModel:function(US){return _.q(SP_,{data:US.data,
className:D})}}),_.q(_.u5,{data:function(){return m().metadata}},{contentMetadataViewModel:function(US){return _.q(_.p5,{data:US.data,
layout:function(){return J()?1:0},
className:xO,isOverlay:Z,useMediumText:I})}}),_.q(_.U,{cond:function(){return m().description&&!J()},
then:function(){return _.q(_.u5,{data:function(){return m().description}},{descriptionPreviewViewModel:function(US){return _.q(_.o2,{data:US.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:Z,maxLinesOverride:function(){return J()?void 0:1},
useMediumText:function(){return(x==null?void 0:x())||I()}})}})}}),_.q(_.U,{cond:function(){return m().attribution&&!n()},
then:function(){return _.q(_.u5,{data:function(){return m().attribution}},{attributionViewModel:function(US){return _.q(UFC,{data:US.data,
className:Vf,useMediumText:I})}})}}),_.q(_.U,{cond:function(){return m().actions&&!n()},
then:function(){return _.q(_.u5,{data:function(){return m().actions}},{flexibleActionsViewModel:function(US){return _.q(_.vo,{data:US.data,
layout:function(){return C6r(z())},
className:XI})}})}}))),_.q("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.q(_.U,{cond:function(){return m().description&&J()},
then:function(){return _.q(_.u5,{data:function(){return m().description}},{descriptionPreviewViewModel:function(US){return _.q(_.o2,{data:US.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:Z,maxLinesOverride:function(){return J()?void 0:1},
useMediumText:function(){return(x==null?void 0:x())||I()}})}})}}),_.q(_.U,{cond:function(){return m().attribution&&n()},
then:function(){return _.q(_.u5,{data:function(){return m().attribution}},{attributionViewModel:function(US){return _.q(UFC,{data:US.data,
className:Vf,useMediumText:I})}})}}),_.q(_.U,{cond:function(){return m().actions&&n()},
then:function(){return _.q(_.u5,{data:function(){return m().actions}},{flexibleActionsViewModel:function(US){return _.q(_.vo,{data:US.data,
layout:function(){return C6r(z())},
className:XI})}})}})),_.q("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.q(_.u5,{data:function(){return m().bottomMetadataFlexibleContainer}},{flexibleContainer:function(US){return _.q(pW_,{data:US.data,
isOverlay:Z})}})))}}))},"Sd");
_.LBo.idomCompat=!0;_.qi(_.a(function(O){var m=_.K(_.Wf(!1,void 0,"vvzTj")),G=m.next().value,B=m.next().value;return _.q("yt-official-card-view-model",{class:_.bE("ytOfficialCardViewModelHost",O.className),style:_.hH({"background-color":function(){var Q,H=Xv((Q=O.data())==null?void 0:Q.backgroundColor);return H?_.AV(H):void 0}})},_.q(_.u5,{data:function(){return O.data().header}},{pageHeaderViewModel:function(Q){return _.q(_.LBo,{data:Q.data,
noPadding:!0})}}),_.q(_.u5,{data:function(){return O.data().contents}},{horizontalShelfViewModel:function(Q){return _.q(_.Rz,{data:Q.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.q(_.U,{cond:G,
then:function(){return _.q("div",{class:"ytOfficialCardViewModelExpandedContent"},_.q(_.u5,{data:function(){return O.data().expandedContents}},{horizontalShelfViewModel:function(Q){return _.q(_.Rz,{data:Q.data,
sizing:"MINI"})}}),_.q("div",{class:"ytOfficialCardViewModelCollapseButton"},_.q(_.u5,{data:function(){return O.data().collapseButton}},{buttonViewModel:function(Q){return _.q(_.oF,{data:Q.data,
onClick:function(){B(!G())}})}})))},
else:function(){return _.q("div",{class:"ytOfficialCardViewModelExpandButton"},_.q(_.u5,{data:function(){return O.data().expandButton}},{buttonViewModel:function(Q){return _.q(_.oF,{data:Q.data,
onClick:function(){B(!G())}})}}))}}))},"Td"),"yt-official-card-view-model",{props:{data:_.VZ,
className:_.VZ}});var CM2=_.a(function(O){var m,G=(m=_.KR().resolve(_.v7(_.B6)))==null?void 0:m();return _.q("ytw-search-friction-view-model",{class:_.bE("ytwSearchFrictionViewModelHost",O.className)},_.q("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.q("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.q(_.U,{cond:function(){return G&&O.data().darkThemeImage?O.data().darkThemeImage:O.data().image},
then:function(B){return _.q(_.KH,{data:B,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.q(_.u5,{data:function(){return O.data().overflowMenuButton}},{buttonViewModel:function(B){return _.q(_.oF,{data:B.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.q(_.Jg,{text:function(){return O.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.q(_.gi,{each:function(){return O.data().bodyText||[]}},function(B){return _.q(_.Jg,{text:B,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.q(_.u5,{data:function(){return O.data().actions}},{buttonViewModel:function(B){return _.q(_.oF,{data:B.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.q(_.Jg,{text:function(){return O.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.q(_.Jg,{text:function(){return O.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Ud");
CM2.idomCompat=!0;_.qi(CM2,"ytw-search-friction-view-model",{props:{data:_.VZ,className:_.VZ}});_.xl=_.a(function(O){var m=_.Al("markdown-div"),G,B=(G=_.KR().resolve(_.v7(_.B6)))==null?void 0:G();_.ER(function(){var Q=m.value;var H=new P2$,M=new Map(H.JSC$9302_sanitizerTable.globalAttributePolicies);M.set("style",{policyAction:4});H.JSC$9302_sanitizerTable=new Eb(H.JSC$9302_sanitizerTable.allowedElements,H.JSC$9302_sanitizerTable.elementPolicies,H.JSC$9302_sanitizerTable.allowedGlobalAttributes,M,H.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes);var R=["data-time"];if(R===void 0)M=
new Set(H.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes),M.add("data-"),H.JSC$9302_sanitizerTable=new Eb(H.JSC$9302_sanitizerTable.allowedElements,H.JSC$9302_sanitizerTable.elementPolicies,H.JSC$9302_sanitizerTable.allowedGlobalAttributes,H.JSC$9302_sanitizerTable.globalAttributePolicies,M);else{M=new Set(H.JSC$9302_sanitizerTable.allowedGlobalAttributes);R=_.K(R);for(var x=R.next();!x.done;x=R.next()){x=x.value;if(x.indexOf("data-")!==0)throw Error("ma`"+x);M.add(x)}H.JSC$9302_sanitizerTable=
new Eb(H.JSC$9302_sanitizerTable.allowedElements,H.JSC$9302_sanitizerTable.elementPolicies,M,H.JSC$9302_sanitizerTable.globalAttributePolicies,H.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes)}M=new Set(H.JSC$9302_sanitizerTable.allowedGlobalAttributes);M.add("class");H.JSC$9302_sanitizerTable=new Eb(H.JSC$9302_sanitizerTable.allowedElements,H.JSC$9302_sanitizerTable.elementPolicies,M,H.JSC$9302_sanitizerTable.globalAttributePolicies,H.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes);
_.MG(Q,_.wsm(H.build(),l_M(O.text())));a_f(m.value)},"OZ439c");
G={};return _.q("div",null,_.q("markdown-div",{class:_.bE("ytwMarkdownDivHost",(G.ytwMarkdownDivDark=B,G.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var Q;return((Q=O.isSmallText)==null?void 0:Q.call(O))||!1},G.ytwMarkdownDivHostWrapCodeBlocks=function(){var Q;
return((Q=O.wrapCodeBlocks)==null?void 0:Q.call(O))||!1},G.ytwMarkdownDivHostEnableDefaultStyling=function(){var Q;
return!((Q=O.disableDefaultStyling)==null?0:Q.call(O))},G)),
el:m}))},"Vd");
_.xl.idomCompat=!0;var oqH=_.a(function(O){var m=O.imageData;var G=_.MN(O.isInList,!1),B=function(){return G()?{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 _.q("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.q(_.U,{cond:function(){return m().image},
then:function(Q){return _.q(_.KH,{data:Q,alt:function(){return B().alt},
contentMode:function(){return B().contentMode},
targetWidth:function(){return B().targetWidth},
targetHeight:function(){return B().targetHeight},
className:function(){return B().className}})}}),_.q("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.q("div",{class:_.bE("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.q(_.Jg,{text:function(){return m().title}})),_.q(_.gi,{each:function(){var Q;
return(Q=m().description)!=null?Q:[]}},function(Q){return _.q("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.q(qA,{content:Q}))})))},"Wd"),lX8=_.a(function(O){var m=O.list;
var G=function(){var B;return(B=m().items)!=null?B:[]};
return _.q("div",{class:"ytwGenAiRichTextViewModelListContent"},_.q(_.U,{cond:function(){return m().title},
then:function(B){return _.q("div",{class:_.bE("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.q(_.Jg,{text:B}))}}),_.q(_.U,{cond:function(){return m().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.q("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.q(_.gi,{each:G},function(B){return _.q("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.q(qA,{content:B,isInList:!0}))}))}}),_.q(_.U,{cond:function(){return m().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.q("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.q(_.gi,{each:G},function(B){return _.q("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.q(qA,{content:B,isInList:!0}))}))}}),_.q(_.U,{cond:function(){return m().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.q("div",{class:"ytwGenAiRichTextViewModelImageList"},_.q(_.gi,{each:G},function(B){return _.q("div",{class:"ytwGenAiRichTextViewModelListItem"},_.q(qA,{content:B,isInList:!0}))}))}}))},"Xd"),aXj=_.a(function(O){var m=O.table;
return _.q("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.q("thead",null,_.q("tr",null,_.q(_.gi,{each:function(){var G,B;return(B=(G=m().header)==null?void 0:G.cells)!=null?B:[]}},function(G){return _.q("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.q(_.gi,{each:function(){return G.contents}},function(B){return _.q(qA,{content:B})}))}))),_.q("tbody",null,_.q(_.gi,{each:function(){var G;
return(G=m().rows)!=null?G:[]}},function(G){return _.q("tr",null,_.q(_.gi,{each:function(){return G.cells}},function(B){return _.q("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.q(_.gi,{each:function(){return B.contents}},function(Q){return _.q(qA,{content:Q})}))}))})))},"Yd"),qA=_.a(function(O){var m=O.content;
var G=_.MN(O.isInList,!1),B=function(){var Q,H;return(H=(Q=m().contentBlock)==null?void 0:Q.contents)!=null?H:[]};
return _.q("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.q(_.U,{cond:function(){return m().text},
then:function(Q){return _.q(_.Jg,{className:"ytwGenAiRichTextViewModelText",text:Q})}}),_.q(_.U,{cond:function(){return m().image},
then:function(Q){return _.q(oqH,{imageData:Q,isInList:G})}}),_.q(_.U,{cond:function(){return m().list},
then:function(Q){return _.q(lX8,{list:Q})}}),_.q(_.U,{cond:function(){return m().contentBlock},
then:function(){return _.q("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.q(_.gi,{each:B},function(Q){return _.q(qA,{content:Q,isInList:!1})}))}}),_.q(_.U,{cond:function(){return m().table},
then:function(Q){return _.q(aXj,{table:Q})}}))},"Zd"),kse=_.a(function(O){var m={};
m=_.CJ("ytwGenAiRichTextViewModelHost",(m.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.ib("search_overview_link_style")),m));return _.q("gen-ai-rich-text-view-model",{class:m},_.q(qA,{content:function(){return O.data().content}}))},"$d");_.yb3=_.a(function(O){var m=O.data;var G=function(){var I;return((I=m().loadingUi)!=null?I:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},B=function(){return m().isLoading&&(G()==="UNSPECIFIED"||G()==="GHOST_CARD")},Q=function(){return!m().isLoading},H=function(){return!!m().content&&!m().contents},M=function(){return!!m().contents},R=function(){return!!m().nextQueryButtons},x=function(){return m().isLoading&&G()==="INVISIBLE"},t=function(){var I,S;
return(S=(I=m().headerIcon)==null?void 0:I.iconType)!=null?S:""},W=function(){var I;
return(I=m().content)!=null?I:""},Z=function(){return!!m().sourcesSection},z,J=!((z=_.KR().resolve(_.v7(_.B6)))==null||!z()),n=_.bF(function(){var I=[],S=m().contents;
if(S)for(var L=0;L<S.length;L++){var C=_.b(S&&S[L],k_m);C&&I.push(C)}return I},void 0,"gcCsZb");
_.Ln(function(){m().isLoading||_.cd("so_re",void 0,"search_overview_answer")});
return _.q("ytd-overview-answer-view-model",{class:function(){var I={};I=(I.ytdOverviewAnswerViewModelHost=!0,I.ytdOverviewAnswerViewModelDarkBackground=J&&!x(),I.ytdOverviewAnswerViewModelLightBackground=!J&&!x(),I);return _.CJ(I)}},_.q(_.U,{cond:function(){return!x()},
then:function(){return _.q(_.Mr,null,_.q("h2",null,_.q("div",{class:"ytdOverviewAnswerViewModelHeader"},_.q(_.U,{cond:t,then:function(I){return _.q("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.q(_.T$,{icon:I}))}}),_.q("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.q("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return m().headerText}),_.q("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.q(_.Jg,{text:function(){return m().headerSubtext}}))))),_.q(_.U,{cond:B,
then:function(){return _.q(k1z,null)}}),_.q(_.U,{cond:Q,
then:function(){return _.q(_.Mr,null,_.q(_.U,{cond:H,then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelText"},_.q(_.xl,{text:W,isSmallText:!0}))}}),_.q(_.U,{cond:M,
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelRichText"},_.q(_.gi,{each:n},function(I){return _.q(kse,{data:I})}))}}),_.q(_.U,{cond:R,
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.q(_.u5,{data:function(){return m().nextQueryButtons}},{buttonViewModel:function(I){return _.q(_.oF,{data:I.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Rz}))}}),_.q("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.q("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.q(_.U,{cond:function(){return!!_.b(m().likeButtonViewModel,_.mE)&&!!_.b(m().dislikeButtonViewModel,_.O1)},
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.q(_.$U,{data:function(){return _.b(m().likeButtonViewModel,_.mE)},
disableIconAnimation:!0}),_.q(_.Kx,{data:function(){return _.b(m().dislikeButtonViewModel,_.O1)}}))}})),_.q(_.U,{cond:function(){var I;
return(I=m().sourcesSection)==null?void 0:I.headerText},
then:function(I){return _.q("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.q(_.Jg,{text:I}))}})),_.q(_.U,{cond:Z,
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelSources"},_.q(_.u5,{data:function(){var I;return(I=m().sourcesSection)==null?void 0:I.sourcesShelf}},{buttonViewModel:_.oF,
horizontalShelfViewModel:function(I){return _.q(_.Rz,{data:I.data,includeMargin:!0,hasPeek:!0})}}))}}),_.q(_.U,{cond:function(){return m().disclaimerText},
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.q(_.Jg,{text:function(){return m().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"ae");var cbs=_.a(function(O){var m=_.ru(O,{}).data;return _.q("yt-shopping-content-line-item-view-model",{class:_.bE("ytShoppingContentLineItemViewModelHost")},_.q(_.Jg,{text:function(){var G;return(G=m().text)==null?void 0:G.attributedString}}))},"be");_.U4=_.a(function(O){O=_.ru(O,{});var m=O.data,G={};return _.q("yt-shopping-content-line-view-model",{class:_.bE("ytShoppingContentLineViewModelHost",O.className,(G.ytShoppingContentLineViewModelTruncateText=function(){return!m().wrapContent},G)),
style:_.hH({"--shopping-content-line-gap":function(){return m().itemGap?m().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return m().lineHeight?m().lineHeight+"px":void 0}})},_.q(_.gi,{each:function(){return(m().items||[]).map(function(B){return _.b(B,Ae$)}).filter(function(B){return!!B})}},function(B){return _.q(cbs,{data:B})}))},"ce");var YP_=_.a(function(O){var m=O.data;return _.q("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var G,B,Q,H=((G=_.KR().resolve(_.v7(_.B6)))==null?0:G())?(B=m())==null?void 0:B.darkThemeBackgroundColor:(Q=m())==null?void 0:Q.lightThemeBackgroundColor;return"background-color: "+(H?_.AV(H):"")+";"},
el:_.Mi(_.yp(function(){var G;return(G=m())==null?void 0:G.rendererContext}))},_.q(_.U,{cond:function(){return m().thumbnail},
then:function(G){return _.q(_.KH,{data:G,width:48,height:48,alt:"",className:"ytShoppingDescriptionItemViewModelThumbnail"})}}),_.q("div",{class:"ytShoppingDescriptionItemViewModelText"},_.q(_.u5,{data:function(){return m().line1}},{shoppingContentLineViewModel:function(G){return _.q(_.U4,{data:G.data})}}),_.q(_.u5,{data:function(){return m().line2}},{shoppingContentLineViewModel:function(G){return _.q(_.U4,{data:G.data})}}),_.q(_.u5,{data:function(){return m().line3}},{shoppingContentLineViewModel:function(G){return _.q(_.U4,
{data:G.data})}})))},"de");var d72=_.a(function(O){var m=O.data;var G=O.active;var B=_.Al("transcript-segment-view-model");_.ER(function(){var Q,H,M,R=((Q=_.KR().resolve(_.v7(_.B6)))==null?0:Q())?(H=m())==null?void 0:H.darkThemeColorPalette:(M=m())==null?void 0:M.lightThemeColorPalette;R&&(R.additiveBackground&&B.value.style.setProperty("--timestamp-active-background-color",_.AV(R.additiveBackground)),R.textSecondary&&B.value.style.setProperty("--timestamp-active-color",_.Fs(R.textSecondary)))},"TnVCnb");
O={};return _.q("transcript-segment-view-model",{class:_.bE("ytwTranscriptSegmentViewModelHost",(O.ytwTranscriptSegmentViewModelHostActive=G,O.ytwTranscriptSegmentViewModelHostModern=_.V("enable_timeline_view_modern_transcript")||_.V("enable_timeline_view_modern_transcript_fe"),O)),el:B},_.q(_.U,{cond:function(){var Q;return(Q=m())==null?void 0:Q.timestamp},
then:function(Q){var H={};return _.q(_.Mr,null,_.q("div",{class:_.bE("ytwTranscriptSegmentViewModelTimestamp",(H.ytwTranscriptSegmentViewModelTimestampActive=G,H)),"aria-hidden":!0},Q),_.q("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var M=Q().split(":").map(Number),R=_.K(M.reverse());M=R.next().value;var x=R.next().value;R=R.next().value;return _.pDf({hours:R,minutes:x,seconds:M})}))}}),_.q(_.Jg,{text:function(){var Q,H,M;
return(M=(Q=m())==null?void 0:Q.attributedText)!=null?M:{content:(H=m())==null?void 0:H.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"ee");var wWu=_.a(function(O){var m=O.data;return _.q("div",{class:"videoAttributesSectionViewModelHeader"},_.q("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.q("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return m().headerTitle}),_.q(_.U,{cond:function(){return m().headerInfoButton},
then:function(){return _.q(_.u5,{data:function(){return m().headerInfoButton}},{buttonViewModel:function(G){return _.q(_.oF,{data:G.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.q(_.U,{cond:function(){return m().headerSubtitle},
then:function(){return _.q("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return m().headerSubtitle})}}))},"fe"),eYe=_.a(function(O){function m(I){return Math.max(Math.min(I,0),t()-R())}
var G=O.data;var B;O=_.Al("div",function(I){var S=function(){W(I.clientWidth)};
S();window.ResizeObserver&&(B=new ResizeObserver(S),B.observe(I))});
var Q=_.Al("div",function(I){x(I.scrollWidth)}),H=_.K(_.Wf(0,void 0,"C3XQAe")),M=H.next().value;
H=H.next().value;var R=M,x=H;H=_.K(_.Wf(0,void 0,"db7y3"));M=H.next().value;H=H.next().value;var t=M,W=H;M=_.K(_.Wf(0,void 0,"RchC7"));var Z=M.next().value,z=M.next().value;_.LS(function(){var I;(I=B)==null||I.disconnect()});
var J=function(){z(m(Z()+t()))},n=function(){z(m(Z()-t()))};
return _.q("yt-video-attributes-section-view-model",null,_.q("div",{class:"videoAttributesSectionViewModelHost"},_.q(_.U,{cond:function(){return G().headerTitle},
then:function(){return _.q(wWu,{data:G})}}),_.q("div",{class:_.bE("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:O},_.q("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.hH({transform:function(){var I=Z();_.kB("HTML_DIR")==="rtl"&&(I*=-1);return"translateX("+I+"px)"}}),
el:Q},_.q(_.u5,{data:function(){return G().videoAttributeViewModels}},{videoAttributeViewModel:SVH}))),_.q(_.u5,{data:function(){return G().footerButton}},{buttonViewModel:function(I){return _.q(_.oF,{data:I.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.q(_.U,{cond:function(){return Z()<0&&G().previousButton},
then:function(){return _.q("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.q(_.u5,{data:function(){return G().previousButton}},{buttonViewModel:function(I){return _.q(_.oF,{data:I.data,
onClick:J})}}))}}),_.q(_.U,{cond:function(){return Z()>t()-R()&&G().nextButton},
then:function(){return _.q("div",{class:"videoAttributesSectionViewModelRightArrow"},_.q(_.u5,{data:function(){return G().nextButton}},{buttonViewModel:function(I){return _.q(_.oF,{data:I.data,
onClick:n})}}))}})))},"ge");
eYe.idomCompat=!0;var D7e=_.a(function(O){var m=O.data;var G=O.active;var B={},Q={};return _.q("timeline-item-view-model",{class:_.bE("ytwTimelineItemViewModelHost",(B.ytwTimelineItemViewModelHostChapterChild=O.chapterChild,B.ytwTimelineItemViewModelModern=_.V("enable_timeline_view_modern_transcript")||_.V("enable_timeline_view_modern_transcript_fe"),B))},_.q("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.q("div",{class:_.bE("ytwTimelineItemViewModelTimestamp",(Q.ytwTimelineItemViewModelTimestampActive=
G,Q))},function(){return m().timestamp})),_.q("div",{class:"ytwTimelineItemViewModelContentItems"},_.q(_.u5,{data:function(){return m().contentItems}},{transcriptSegmentViewModel:function(H){return _.q(d72,{data:H.data,
active:G})},
videoAttributesSectionViewModel:eYe})))},"he");var sB2=_.a(function(O){var m=O.data;O={};return _.q("timeline-chapter-view-model",{class:_.bE("ytwTimelineChapterViewModelHost")},_.q("div",{class:_.bE("ytwTimelineChapterViewModelTitle",(O.ytwTimelineChapterViewModelModern=_.V("enable_timeline_view_modern_transcript")||_.V("enable_timeline_view_modern_transcript_fe"),O))},function(){return m().title}),_.q(_.u5,{data:function(){return m().contents}},{timelineItemViewModel:function(G){return _.q(D7e,{data:G.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(G){return _.q(eYe,{data:G.data})}}))},"ie");var NVH=_.a(function(O){var m=O.data;var G=_.Al("macro-markers-panel-item-view-model"),B=_.fJ(_.mnI,function(){var H;return(H=m().markersEngagementPanelSyncEntityKey)!=null?H:""}),Q=function(){var H;
return((H=B())==null?void 0:H.activeItemIndex)===m().index};
O=_.nH(function(H){var M,R,x,t,W;return _.r(function(Z){if(Z.nextAddress==1)return H.stopPropagation(),_.l5(_.o_(H),G.value,["A".toString(),"BUTTON".toString()])?Z.return():(M=_.eg(m().onTap))?Z.yield(_.zM(),2):Z.return();R=Z.yieldResult;t=(x=_.b(M,_.GC))==null?void 0:x.startTimeSeconds;t===void 0||(W=R)!=null&&W.seekTo(t,!0);_.ju(Z)})});
return _.q("macro-markers-panel-item-view-model",{class:_.bE("ytwMacroMarkersPanelItemViewModelHost",{"is-active":Q}),el:G,"on:click":O,tabindex:0,role:"button"},_.q(_.u5,{data:function(){var H;return(H=m())==null?void 0:H.item}},{timelineChapterViewModel:function(H){return _.q(sB2,{data:H.data,
active:Q})},
timelineItemViewModel:function(H){return _.q(D7e,{data:H.data,active:Q})},
videoAttributeViewModel:SVH,shoppingDescriptionItemViewModel:YP_}))},"je");
NVH.idomCompat=!0;_.qi(NVH,"macro-markers-panel-item-view-model",{props:{data:_.VZ}});_.qi(eYe,"yt-video-attributes-section-view-model",{props:{data:_.VZ}});var PMu=_.a(function(O){var m=function(){var G,B,Q;return(Q=(G=O.data().leadingLogoAccessibility)==null?void 0:(B=G.accessibilityData)==null?void 0:B.label)!=null?Q:""};
return _.q("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.q(_.U,{cond:function(){return O.data().leadingLogo},
then:function(G){return _.q(_.KH,{className:"ytwFantasySectionHeaderViewModelLogo",data:G,alt:m})}}),_.q("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.q(_.Jg,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return O.data().title}}),_.q(_.Jg,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return O.data().subtitle}})),_.q(_.u5,{data:function(){return O.data().trailingButton}},{buttonViewModel:function(G){return _.q(_.oF,{data:G.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"ke");var FBo=_.a(function(O){var m={};m=_.bE("ytwFantasyTeamViewModelHost",(m.ytwFantasyTeamViewModelCompact=function(){var Q;return!((Q=O.compact)==null||!Q.call(O))},m.ytwFantasyTeamViewModelUser=function(){return O.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},m.ytwFantasyTeamViewModelOpponent=function(){return O.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},m));
var G=function(){var Q,H,M;return(M=(Q=O.data().teamLogoAccessibility)==null?void 0:(H=Q.accessibilityData)==null?void 0:H.label)!=null?M:""},B=_.fJ(QlS,function(){return O.data().teamEntityKey});
return _.q("ytw-fantasy-team-view-model",{class:m},_.q(_.U,{cond:function(){return O.data().teamLogo},
then:function(Q){return _.q(_.KH,{className:"ytwFantasyTeamViewModelLogo",data:Q,alt:G})}}),_.q("div",{class:"ytwFantasyTeamViewModelMetadata"},_.q("div",{class:"ytwFantasyTeamViewModelHeader"},_.q(_.Jg,{className:"ytwFantasyTeamViewModelScore",
text:function(){var Q;return(Q=B())==null?void 0:Q.score}}),_.q(_.T$,{icon:function(){var Q;
return(Q=B())==null?void 0:Q.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.q(_.Jg,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var Q;return(Q=B())==null?void 0:Q.projectedScore}})),_.q(_.Jg,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return O.data().primaryText}}),_.q(_.Jg,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return O.data().secondaryText}}),_.q(_.Jg,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return O.data().tertiaryText}})),_.q(_.Jg,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var Q;return(Q=B())==null?void 0:Q.score}}))},"le");_.qi(_.a(function(O){return _.q("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.q("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.q(_.u5,{data:function(){return O.data().summaryHeader}},{fantasySectionHeaderViewModel:PMu})),_.q(_.u5,{data:function(){return O.data().userTeam}},{fantasyTeamViewModel:FBo}),_.q(_.u5,{data:function(){return O.data().opponentTeam}},{fantasyTeamViewModel:FBo}))},"me"),"fantasy-league-summary-view-model",{props:{data:_.VZ}});var AbU=_.a(function(O){var m=_.ru(O,{shape:{},useCustomTabRenderable:!1}),G=m.shape;m=m.useCustomTabRenderable;var B=O.customTabRenderable,Q=function(){return G().disabled},H=function(){return G().selected},M=function(){return G().title},R=function(){return G().icon},x=_.Al("yt-tab-shape");
O=_.nH(function(Z){var z;if(!Q()&&((z=G().aTagConfig)==null?0:z.onclick))G().aTagConfig.onclick(Z);return!1});
var t=_.nH(function(Z){if(Z.key==="Enter"||Z.key==="ArrowUp"||Z.key==="ArrowDown")Z.preventDefault(),x.value.click();return!1}),W={};
return _.q("yt-tab-shape",{class:_.bE("yt-tab-shape",function(){return G().className},(W["yt-tab-shape__tab--last-tab"]=function(){return G().isLastTab},W["yt-tab-shape--host-disabled"]=Q,W["yt-tab-shape--host-clickable"]=!B,W)),
role:B?void 0:"tab","aria-selected":H!=null?H:!1,"aria-disabled":Q,tabindex:B?void 0:0,"on:click":O,"on:keydown":t,el:x,"tab-identifier":function(){return G().identifier},
"tab-title":M},_.q(_.U,{cond:m,then:function(){return B()},
else:function(){var Z={},z={};return _.q(_.Mr,null,_.q("div",{class:_.bE("yt-tab-shape__tab",(Z["yt-tab-shape__tab--tab-selected"]=H,Z))},_.q(_.U,{cond:R,then:function(J){return _.q(_.T$,{className:"yt-tab-shape__tab-icon",icon:function(){return J().iconType}})}}),M),_.q("div",{class:_.bE("yt-tab-shape__tab-bar",(z["yt-tab-shape__tab-bar--tab-bar-selected"]=H,z))}))}}))},"ne");
AbU.idomCompat={callbacks:{customTabRenderable:!0}};_.mt2=_.a(function(O){var m=O.shape;O=_.K(_.Wf(48,void 0,"rCewuf"));var G=O.next().value,B=O.next().value;O=_.K(_.Wf(0,void 0,"aUUTWe"));var Q=O.next().value,H=O.next().value,M=function(){return m().tabs},R=_.Al("yt-tab-group-shape"),x=function(){var t,W;
return(W=(t=M())==null?void 0:t.findIndex(function(Z){return Z.selected}))!=null?W:-1};
_.Ln(function(){var t=R.value.querySelectorAll("yt-tab-shape"),W=x()>-1?t[x()]:void 0;_.ln.addJob(function(){B((W==null?void 0:W.getBoundingClientRect().width)||0)},8,0)});
_.ER(function(){var t=x(),W=_.ln.addJob(function(){var Z,z=((Z=R.value)==null?void 0:Z.querySelectorAll("yt-tab-shape"))||[],J;B(((J=t>-1?z[t]:void 0)==null?void 0:J.getBoundingClientRect().width)||0);for(J=Z=0;J<t;J++)Z+=z[J].offsetWidth+24;_.kB("HTML_DIR")==="rtl"&&(Z=-Z);H(Z)},8,0);
_.LS(function(){_.ln.cancelJob(W)})},"DAb5Qb");
O={};return _.q("yt-tab-group-shape",{class:_.bE("tabGroupShapeHost",(O.tabGroupShapeOverflowHidden=function(){return m().isOverflowHidden},O)),
el:R},_.q(_.U,{cond:M,then:function(t){return _.q(_.Mr,null,_.q("div",{class:"tabGroupShapeTabs",role:"tablist"},_.q(_.gi,{each:t},function(W,Z){return _.q(AbU,{shape:function(){return Object.assign({},W,{isLastTab:Z()===t().length-1})},
customTabRenderable:W.customTabRenderable,useCustomTabRenderable:!!W.customTabRenderable})})),_.q(Ou8,{width:G,
sliderOffset:Q}))}}))},"oe");
_.mt2.idomCompat=!0;var Ou8=_.a(function(O){var m=_.MN(O.sliderOffset,0),G=O.width;return _.q("div",{class:"tabGroupShapeSlider",style:_.hH({width:function(){return G()+"px"},
transform:function(){return"translateX("+m()+"px)"}})})},"pe");var Gl$=_.a(function(O){var m=function(){var H,M,R;return(R=(H=O.data().playerLogoAccessibility)==null?void 0:(M=H.accessibilityData)==null?void 0:M.label)!=null?R:""},G=_.fJ(H8N,function(){return O.data().playerEntityKey}),B={};
B=_.bE("ytwFantasyPlayerViewModelHost",(B.ytwFantasyPlayerViewModelPlaying=function(){var H;return!((H=G())==null||!H.isPlayerPlaying)},B.ytwFantasyPlayerViewModelOnField=function(){var H;
return((H=G())==null?void 0:H.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},B.ytwFantasyPlayerViewModelRedZone=function(){var H;
return((H=G())==null?void 0:H.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},B));
var Q=function(){var H,M,R,x=((H=_.KR().resolve(_.v7(_.B6)))==null?0:H())?(M=O.data().playerLogoBackgroundColor)==null?void 0:M.darkTheme:(R=O.data().playerLogoBackgroundColor)==null?void 0:R.lightTheme;return x===void 0?"":_.AV(x)};
return _.q("ytw-fantasy-player-view-model",{class:B},_.q(_.U,{cond:function(){return O.data().playerLogo},
then:function(H){return _.q("div",{class:"ytwFantasyPlayerViewModelLogo"},_.q("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.q(_.KH,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.hH({"background-color":Q}),data:H,alt:m})),_.q("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.q(_.T$,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.q("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.q("div",{class:"ytwFantasyPlayerViewModelHeader"},_.q(_.Jg,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var H;return(H=O.data())==null?void 0:H.playerNameText}}),_.q(_.Jg,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var H;return(H=O.data())==null?void 0:H.playerDescriptionText}})),_.q("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.q(_.Jg,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var H;return(H=G())==null?void 0:H.gamePeriodText}}),_.q(_.Jg,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var H;return(H=O.data())==null?void 0:H.opponentTeamText}}),_.q(_.Jg,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var H;return(H=G())==null?void 0:H.gameStatusText}}),_.q(_.Jg,{className:_.bE("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var H;return(H=G())==null?void 0:H.playerStatusText}})),_.q("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.q(_.Jg,{text:function(){var H;
return(H=G())==null?void 0:H.playerStatsText}}))),_.q(_.Jg,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var H;return(H=G())==null?void 0:H.fantasyScore}}))},"qe");var Bzm=_.a(function(O){return _.q("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.q(_.U,{cond:function(){return O.data().players},
then:function(m){return _.q(_.u5,{data:m},{fantasyPlayerViewModel:Gl$})}}))},"re");var Qm_=_.a(function(O){var m=_.K(_.fH(function(){var Q;return(Q=O.data().selectedTabIdentifierKey)!=null?Q:""})),G=m.next().value,B=m.next().value;
_.EZ(function(){var Q;(Q=O.setSelectedTabSignal)==null||Q.call(O,G)});
return _.q("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.q("div",{class:"ytTabbedViewModelTabGroup"},_.q(_.mt2,{shape:function(){var Q=O.data(),H=[],M={tabs:H};if(!Q.tabs)return M;Q=_.K(Q.tabs);for(var R=Q.next(),x={};!R.done;x={tabViewModel:void 0},R=Q.next())if(x.tabViewModel=_.b(R.value,GRj),x.tabViewModel){var t=R=void 0;H.push({aTagConfig:{onclick:function(W){return function(){var Z;B((Z=W.tabViewModel.tabIdentifier)!=null?Z:"")}}(x)},
identifier:x.tabViewModel.tabIdentifier,selected:G()===x.tabViewModel.tabIdentifier,title:(t=(R=x.tabViewModel.title)==null?void 0:R.content)!=null?t:""})}return M}})),_.q(_.u5,{data:function(){var Q,H=_.K((Q=O.data().tabs)!=null?Q:[]);
for(Q=H.next();!Q.done;Q=H.next())if((Q=_.b(Q.value,GRj))&&Q.tabIdentifier===G())return Q.content}},{fantasyRosterViewModel:Bzm}))},"se");_.qi(_.a(function(O){var m=_.K(y_N()),G=m.next().value,B=m.next().value;return _.q("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.q(_.Jg,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return O.data().title}}),_.q(_.U,{cond:function(){return O.data().tabbedViewModel},
then:function(Q){return _.q(_.u5,{data:Q},{tabbedViewModel:function(H){return _.q(Qm_,{data:H.data,setSelectedTabSignal:B})}})}}),_.q(_.U,{cond:function(){var Q,H=(Q=_.b(O.data().tabbedViewModel,Bte))==null?void 0:Q.tabs;
Q=_.b(H==null?void 0:H[0],GRj);H=_.b(H==null?void 0:H[1],GRj);var M=Q==null?void 0:Q.tabIdentifier;if(G()===M){var R,x;if(!((R=_.b(Q==null?void 0:Q.content,Vq_))==null?0:(x=R.players)==null?0:x.length))return O.data().noUserTeamPlayersText}else{var t,W;if(!((t=_.b(H==null?void 0:H.content,Vq_))==null?0:(W=t.players)==null?0:W.length))return O.data().noOpponentTeamPlayersText}},
then:function(Q){return _.q(_.Jg,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:Q})}}))},"te"),"ytw-fantasy-matchup-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){return _.q("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.q(_.Jg,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return O.data().title}}),_.q(_.U,{cond:function(){return O.data().matchupTeamPairs},
then:function(m){return _.q(_.gi,{each:m,keyBy:"INDEX"},function(G){return _.q("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.q(_.u5,{data:function(){return[G().firstTeam,G().secondTeam]}},{fantasyTeamViewModel:function(B){return _.q(FBo,{data:B.data,
compact:!0})}}))})}}))},"ue"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=function(){var Q,H,M;return(M=(Q=O.data().userLogoAccessibility)==null?void 0:(H=Q.accessibilityData)==null?void 0:H.label)!=null?M:""},G=function(){var Q,H,M;
return(M=(Q=O.data().opponentLogoAccessibility)==null?void 0:(H=Q.accessibilityData)==null?void 0:H.label)!=null?M:""},B=_.fJ(BUN,function(){return O.data().entityKey});
return _.q("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.q("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.q(_.U,{cond:function(){return O.data().userLogo},
then:function(Q){return _.q(_.KH,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Q,alt:m})}}),_.q("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.q(_.Jg,{text:function(){return O.data().title}})),_.q(_.U,{cond:function(){return O.data().opponentLogo},
then:function(Q){return _.q(_.KH,{className:"ytwFantasyWinProbabilityViewModelLogo",data:Q,alt:G})}})),_.q("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.q("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.q(_.Jg,{text:function(){var Q;
return(Q=B())==null?void 0:Q.userWinNumberLabel}})),_.q("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.q("div",{class:_.bE("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.hH({flex:function(){var Q,H;return(H=(Q=B())==null?void 0:Q.userWinNumber)!=null?H:50}})}),_.q("div",{class:_.bE("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.hH({flex:function(){var Q,H;return(H=(Q=B())==null?void 0:Q.opponentWinNumber)!=null?H:50}})})),_.q("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.q(_.Jg,{text:function(){var Q;
return(Q=B())==null?void 0:Q.opponentWinNumberLabel}}))))},"ve"),"fantasy-win-probability-view-model",{props:{data:_.VZ}});var Hup={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},v_H=_.a(function(O){return _.q(_.u5,{data:O.button},{buttonViewModel:function(m){return _.q(_.oF,{data:m.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"we"),Kuu=_.a(function(O){return _.q("ytd-backstage-locked-post-view-model",{class:_.bE("ytdBackstageLockedPostViewModelHost",O.className)},_.q("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.q("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.q(_.u5,
{data:function(){return O.data().authorAvatar}},{decoratedAvatarViewModel:_.vP})),_.q("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.q("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.q(_.Jg,{text:function(){return O.data().authorText}})),_.q("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.q(_.Jg,{text:function(){return O.data().publishedTimeText}}),_.q(_.u5,{data:function(){return O.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(m){return _.q(qjC,
{data:m.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.q("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.q(_.Jg,{text:function(){return O.data().contentText}})),_.q(_.I8,null,_.q(_.uz,{when:function(){return O.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.q("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.q(_.KH,{data:Hup,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.q(_.Jg,{text:function(){return O.data().lockedText}}))}),_.q(_.uz,{when:function(){return O.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.q("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.q("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.q(_.KH,{data:Hup,
alt:""})),_.q(_.Jg,{text:function(){return O.data().lockedText}}))})),_.q("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.q(v_H,{button:function(){return O.data().likeButton}}),_.q("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return O.data().voteCountA11y}},_.q(_.Jg,{text:function(){return O.data().voteCount}})),_.q(v_H,{button:function(){return O.data().dislikeButton}}),_.q(v_H,{button:function(){return O.data().commentButton}}),_.q("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return O.data().commentCountA11y}},_.q(_.Jg,{text:function(){return O.data().commentCount}}))))},"xe");
Kuu.idomCompat=!0;_.qi(Kuu,"ytd-backstage-locked-post-view-model",{props:{data:_.VZ,className:_.VZ}});_.lE("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var t9=function(){var O=_.u.apply(this,arguments)||this;O.darkerPanels=_.V("web_watch_darker_panels");O.commentsHidePanelButton=!1;O.isWatchGrid=!1;O.continuationShowButton=!1;O.isSearch=!1;O.isConstrainedList=!1;O.isWatch=!1;O.eligibleToSwitchToGrid=!1;O.useBigThumbs=!1;O.notSticky=!1;O.epRestyle=!1;O.isCarouselInFeed=!0;O.topSpacingZero=!1;O.continuationIsInitialLoad=!0;O.enableSqueezebackPanels=_.V("web_shorts_enable_squeezeback_panels");O.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");
O.mastheadHeight=0;O.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};O.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return O};
_.X(t9,_.u);_.v=t9.prototype;_.v.updateLockupContainerTypes=function(O){if(this.eligibleToSwitchToGrid){var m;(m=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||m.forEach(function(G){G.containerType=O})}};
_.v.getItemsPath=function(){return"data.contents"};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.v.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",
hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",
macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",
offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",
playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",
redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",
searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",
showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",
unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",
primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",
listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.V("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.V("kevlar_low_priority_continuation")}}};
_.v.created=function(){};
_.v.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.v.handleIntersect=function(O){this.notSticky=O[0].intersectionRatio===1};
_.v.attached=function(){var O=this,m=_.V("web_item_section_sticky_header_use_scroll_as_fallback");m||document.addEventListener("scroll",_.f7(this,this.updateHeaderState));var G;this.mastheadHeight=((G=document.querySelector("ytd-masthead"))==null?void 0:G.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(B){O.handleIntersect(B)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):m&&document.addEventListener("scroll",_.f7(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){O.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.v.detached=function(){document.removeEventListener("scroll",_.f7(this,this.updateHeaderState));var O;(O=this.intersectionObserver)==null||O.disconnect();var m;(m=this.resizeObserver)==null||m.disconnect()};
_.v.updated=function(O){O.has("data")&&this.updateHeaderState()};
_.v.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(JoH(!this.notSticky))};
_.v.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var O=_.ZO(this.hostElement).querySelector("ytd-comments-header-renderer");O&&(O.hidePanelButton=this.commentsHidePanelButton)}};
_.v.onRetrieveLocation=function(O,m){this.containsComments()&&(this.firstCommentsLoaded=m.hasComments=!0)};
_.v.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.v.onLoadReloadContinuation=function(O,m){var G=this;O.stopPropagation();this.isReloading=!0;_.iP(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(B){var Q=_.KR().resolve(_.ew);B=m(B);Q.postData(B).then(function(H){G.onReloadContinuationData(H)})}})};
_.v.onReloadContinuationData=function(O){if(O=this.get("response.continuationContents.itemSectionContinuation",O)||this.get("response.contents.itemSectionRenderer",O)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",O)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",O))this.set("data.contents",O.contents||O.results),O.header&&this.set("data.header",O.header),this.set("data.continuations",
O.continuations||[]);this.isReloading=!1};
_.v.computeContentsClass=function(O){return O?"reloading":""};
_.v.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.v.computeSectionIdentifier=function(O){return O==null?void 0:O.sectionIdentifier};
_.v.computeFitContainer=function(O){return(O==null?void 0:O.sectionIdentifier)==="youchat-item-section"};
_.v.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.V("kevlar_disable_comments_auto_load")};
_.v.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.v.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.v.computeHasDestinationShelfRenderer=function(O){var m,G;return!!(O==null?0:(m=O.contents)==null?0:(G=m[0])==null?0:G.destinationShelfRenderer)};
_.v.computeHasSectionGroupViewModel=function(O){var m,G;return!!(O==null?0:(m=O.contents)==null?0:(G=m[0])==null?0:G.sectionGroupViewModel)};
_.v.computeHasQrCodeRenderer=function(O){var m,G;return!!(O==null?0:(m=O.contents)==null?0:(G=m[0])==null?0:G.qrCodeRenderer)};
_.v.computeStaticCommentsHeader=function(O){return O&&this.containsComments()};
_.v.computeEpRestyle=function(O){return _.V("web_ep_restyling")&&O&&this.containsComments()};
_.v.computeIsContinuationCommentSection=function(O){return(O==null?void 0:O.targetId)==="shorts-engagement-panel-comments-section"||(O==null?void 0:O.targetId)==="comments-section"||(O==null?void 0:O.targetId)==="engagement-panel-comments-section"};
_.v.computeSuppressPaddingDisclaimer=function(){var O,m,G,B;return!!((O=this.data)==null?0:(m=O.contents)==null?0:(G=m[0])==null?0:(B=G.productListHeaderRenderer)==null?0:B.suppressPaddingDisclaimer)};
_.v.computeHeaderStyle=function(O){switch(O==null?void 0:O.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.v.dataChanged=function(){this.firstCommentsLoaded=!1};
_.v.observeDataContentsLength=function(){var O,m;((O=this.data)==null?0:(m=O.contents)==null?0:m.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.v.onYtDismissibleItemDismissedChange=function(O){this._setItemDismissed(O.type==="yt-dismissible-item-dismissed")};
_.v.triggerContinuations=function(){for(var O=_.ZO(this.hostElement).querySelector("#continuations").children,m=0;m<O.length;m++)O[m].trigger()};
_.v.triggerInitialContinuations=function(){for(var O=_.ZO(this.hostElement).querySelector("#continuations").children,m=0;m<O.length;m++)O[m].triggerIfNotPreviouslyTriggered()};
_.v.handleYtItemSectionContinuation=function(O,m){var G;m&&((G=this.data)==null?void 0:G.sectionIdentifier)!==m||(this.set("data.continuations",[O]),this.triggerContinuations())};
_.v.handleYtItemSectionReplace=function(O,m){var G;m&&((G=this.data)==null?void 0:G.sectionIdentifier)!==m||(this.set("data.contents",O),this.set("data.continuations",[]))};
_.v.computeUseHeightHack=function(O){return O&&!_.V("kevlar_disable_height_hack")};
_.v.computeTopSpacingZero=function(O){return O};
_.v.continuationShowButtonChanged=function(){var O=_.ZO(this.hostElement).querySelector("ytd-continuation-item-renderer");O&&(O.showButton=this.continuationShowButton)};
_.v.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("data-changed",this.data))};
_.vr.Object.defineProperties(t9.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.V("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.V("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return!!((O=this.data)==null?0:(m=O.contents)==null?0:(G=m[0])==null?0:G.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B,Q,H,M;return!!((O=this.data)==null?0:(m=O.contents)==null?0:(G=m[0])==null?0:(B=G.shelfRenderer)==null?0:(Q=B.content)==null?0:(H=Q.gridRenderer)==null?0:(M=H.targetId)==null?0:M.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return!!((O=this.data)==null?0:(m=O.contents)==null?0:(G=m[0])==null?0:G.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return!!((O=this.data)==null?0:(m=O.contents)==null?0:(G=m[0])==null?0:G.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.ib("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.V("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.V("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
t9.prototype.dataChangedForBinding=t9.prototype.dataChangedForBinding;t9.prototype.continuationShowButtonChanged=t9.prototype.continuationShowButtonChanged;t9.prototype.onYtDismissibleItemDismissedChange=t9.prototype.onYtDismissibleItemDismissedChange;t9.prototype.observeDataContentsLength=t9.prototype.observeDataContentsLength;t9.prototype.dataChanged=t9.prototype.dataChanged;t9.prototype.onServiceRequestCompleted=t9.prototype.onServiceRequestCompleted;t9.prototype.onLoadReloadContinuation=t9.prototype.onLoadReloadContinuation;
t9.prototype.onRetrieveLocation=t9.prototype.onRetrieveLocation;t9.prototype.commentsHidePanelButtonChanged=t9.prototype.commentsHidePanelButtonChanged;t9.prototype.dispatchChipBarIsSticky=t9.prototype.dispatchChipBarIsSticky;t9.prototype.updateLockupContainerTypes=t9.prototype.updateLockupContainerTypes;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],t9.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],t9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.jQ.YtLazyListBehavior),_.Y("design:type",Object)],t9.prototype,"ytLazyListBehavior",void 0);_.c([_.h(_.Z8.YtNextContinuationBehavior),_.Y("design:type",Object)],t9.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.h(_.Ww),_.Y("design:type",Object)],t9.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],t9.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],t9.prototype,"ytdReduxBehavior",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],t9.prototype,"darkerPanels",void 0);_.c([_.g(),_.Y("design:type",Object)],t9.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],t9.prototype,"engagementPanel",void 0);_.c([_.g(),_.Y("design:type",Object)],t9.prototype,"commentsHidePanelButton",void 0);_.c([_.g(),_.Y("design:type",Object)],t9.prototype,"isWatchGrid",void 0);_.c([_.g(),_.Y("design:type",Object)],t9.prototype,"continuationShowButton",void 0);_.c([_.g({computed:"computeIsContinuationCommentSection(data)"}),_.Y("design:type",Boolean)],t9.prototype,"continuationIsCommentsSection",void 0);
_.c([_.g({value:!0}),_.Y("design:type",Boolean)],t9.prototype,"autoFill",void 0);_.c([_.g(),_.Y("design:type",Boolean)],t9.prototype,"continuationDisablePrescanVisibility",void 0);_.c([_.g(),_.Y("design:type",Boolean)],t9.prototype,"isReloading",void 0);_.c([_.g(),_.Y("design:type",Object)],t9.prototype,"isSearch",void 0);_.c([_.g(),_.Y("design:type",Object)],t9.prototype,"isConstrainedList",void 0);_.c([_.g(),_.Y("design:type",Object)],t9.prototype,"isWatch",void 0);
_.c([_.g(),_.Y("design:type",Object)],t9.prototype,"eligibleToSwitchToGrid",void 0);_.c([_.g(),_.Y("design:type",Object)],t9.prototype,"useBigThumbs",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],t9.prototype,"notSticky",void 0);_.c([_.g({selector:_.dg}),_.Y("design:type",Object)],t9.prototype,"isGridViewEnabled",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.Y("design:type",Object)],t9.prototype,"epRestyle",void 0);_.c([_.T("isWatch"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],t9.prototype,"hideShortsShelfHeader",null);_.c([_.T("isSearch","isWatch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],t9.prototype,"thumbnailWidth",null);
_.c([_.T("isSearch","containerWidth"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],t9.prototype,"thumbnailTargetWidth",null);_.c([_.T("isSearch","isWatch"),_.Y("design:type",String),_.Y("design:paramtypes",[])],t9.prototype,"sizing",null);_.c([_.T("isWatch","isGridViewEnabled","useBigThumbs","data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],t9.prototype,"lockupContainerType",null);
_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],t9.prototype,"hasHeader",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],t9.prototype,"expFixPlaylistHeader",null);_.c([_.Tw("lockupContainerType","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[Number]),_.Y("design:returntype")],t9.prototype,"updateLockupContainerTypes",null);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],t9.prototype,"pageSubtype",void 0);_.c([_.g({computed:"computeContainerWidth()"}),_.Y("design:type",Number)],t9.prototype,"containerWidth",void 0);_.c([_.g(),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],t9.prototype,"isPlaylist",null);_.c([_.g(),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],t9.prototype,"isClipList",null);_.c([_.g(),_.Y("design:type",Object)],t9.prototype,"isCarouselInFeed",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],t9.prototype,"isPlaylistVideoContainer",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],t9.prototype,"isSearchFrictionPage",null);_.c([_.g({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.Y("design:type",Boolean)],t9.prototype,"useHeightHack",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.Y("design:type",Object)],t9.prototype,"topSpacingZero",void 0);_.c([_.g({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.Y("design:type",Boolean)],t9.prototype,"showButton",void 0);_.c([_.g(),_.Y("design:type",Boolean)],t9.prototype,"firstCommentsLoaded",void 0);_.c([_.g(),_.Y("design:type",Object)],t9.prototype,"continuationIsInitialLoad",void 0);
_.c([_.g({reflectToAttribute:!0,readOnly:!0}),_.Y("design:type",Boolean)],t9.prototype,"itemDismissed",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.Y("design:type",String)],t9.prototype,"sectionIdentifier",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.Y("design:type",String)],t9.prototype,"fitContainer",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.Y("design:type",Boolean)],t9.prototype,"hasDestinationShelfRenderer",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.Y("design:type",Boolean)],t9.prototype,"staticCommentsHeader",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],t9.prototype,"enableSqueezebackPanels",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],t9.prototype,"enableAnchoredPanel",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.Y("design:type",Boolean)],t9.prototype,"hasSectionGroupViewModel",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.Y("design:type",Boolean)],t9.prototype,"hasQrCodeRenderer",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.Y("design:type",Boolean)],t9.prototype,"suppressDisclaimerSeparator",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.Y("design:type",String)],t9.prototype,"headerStyle",void 0);_.c([_.T("isSearch"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],t9.prototype,"lockupExperiments",null);
_.c([_.T("isSearch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],t9.prototype,"typographyBump",null);_.c([_.uc("#header"),_.Y("design:type",HTMLElement)],t9.prototype,"header",void 0);_.c([_.Tw("notSticky"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t9.prototype,"dispatchChipBarIsSticky",null);
_.c([_.Tw("commentsHidePanelButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t9.prototype,"commentsHidePanelButtonChanged",null);_.c([_.hG("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],t9.prototype,"onRetrieveLocation",null);
_.c([_.hG("yt-load-reload-continuation"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Function]),_.Y("design:returntype")],t9.prototype,"onLoadReloadContinuation",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t9.prototype,"onServiceRequestCompleted",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t9.prototype,"dataChanged",null);
_.c([_.Si("data.contents.length"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t9.prototype,"observeDataContentsLength",null);_.c([_.hG("yt-dismissible-item-dismissed"),_.hG("yt-dismissible-item-undismissed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],t9.prototype,"onYtDismissibleItemDismissedChange",null);
_.c([_.Tw("continuationShowButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t9.prototype,"continuationShowButtonChanged",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t9.prototype,"dataChangedForBinding",null);_.c([_.l({is:"ytd-item-section-renderer",disableElementRegistration:!0})],t9);
_.y(t9,"ytd-item-section-renderer",function(){if(quu!==void 0)return quu;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return quu=O},{mode:1});var $t_;var dLz=_.Qg(_.Xm("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var MW3={},YWe=(MW3[0]={title:_.rv(_.Xm("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.rv(_.Xm("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.$s("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},MW3[1]={title:_.rv(_.Xm("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.$s("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},MW3);_.lE("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var WZ=function(){var O=_.u.apply(this,arguments)||this;O.allVideosCount=0;O.allPlaylistCount=0;O.isOnline=!1;O.shouldRenderDownloadsBanner=!1;O.shouldRenderDownloadsBannerUpsell=!1;O.hasOptedIntoSmartDownloads=!1;O.areAllSmartDownloadsDeleted=!1;O.smartDownloadsCompleted=!1;return O};
_.X(WZ,_.u);WZ.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
WZ.prototype.attached=function(){this.downloadsToRenderChanged()};
WZ.prototype.detached=function(){this.set("renderableData",{})};
WZ.prototype.downloadsToRenderChanged=function(){var O=_.Kf().getState().entities,m=_.lQ(O),G=_.V("kevlar_playlist_dl_page_killswitch")?Ois(O):_.aQ(O),B=_.eAM(O),Q=_.PRY(O),H=_.ps(m);O=_.ks(O);this.set("renderableData",eiN(G,m,B,Q,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,H,O))};
WZ.prototype.downloadsToRenderChanged=WZ.prototype.downloadsToRenderChanged;_.c([_.h(_.MK),_.Y("design:type",Object)],WZ.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],WZ.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],WZ.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],WZ.prototype,"renderableData",void 0);_.c([_.g({selector:_.x2S}),_.Y("design:type",Object)],WZ.prototype,"allVideosCount",void 0);_.c([_.g({selector:Lnp}),_.Y("design:type",Object)],WZ.prototype,"allPlaylistCount",void 0);_.c([_.g({selector:_.wv}),_.Y("design:type",Object)],WZ.prototype,"isOnline",void 0);_.c([_.g({selector:_.JCI}),_.Y("design:type",Object)],WZ.prototype,"shouldRenderDownloadsBanner",void 0);
_.c([_.g({selector:_.XDp}),_.Y("design:type",Object)],WZ.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.c([_.g({selector:_.Vtp}),_.Y("design:type",Object)],WZ.prototype,"hasOptedIntoSmartDownloads",void 0);_.c([_.g({selector:_.bir}),_.Y("design:type",Object)],WZ.prototype,"areAllSmartDownloadsDeleted",void 0);_.c([_.g({selector:nAs}),_.Y("design:type",Object)],WZ.prototype,"smartDownloadsCompleted",void 0);
_.c([_.Si("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WZ.prototype,"downloadsToRenderChanged",null);_.c([_.l({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],WZ);
_.y(WZ,"ytd-offline-item-section-renderer",function(){if($t_!==void 0)return $t_;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return $t_=O},
{mode:1});var rU2;var Rmu;var Zl=function(){return _.u.apply(this,arguments)||this};
_.X(Zl,_.u);
Zl.prototype.onDataChanged=function(){if(this.JSC$16698_lastData){var O=this.getFilterClass(this.JSC$16698_lastData.status);O&&this.hostElement.classList.remove(O)}var m;(O=this.getFilterClass((m=this.data)==null?void 0:m.status))&&this.hostElement.classList.add(O);O==="selected"?_.ZO(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.ZO(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");O==="disabled"?_.ZO(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.ZO(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16698_lastData=this.data};
Zl.prototype.getFilterClass=function(O){switch(O){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
Zl.prototype.onDataChanged=Zl.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Zl.prototype,"data",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zl.prototype,"onDataChanged",null);_.c([_.l({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Zl);
_.y(Zl,"ytd-search-filter-renderer",function(){if(Rmu!==void 0)return Rmu;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Rmu=O},{mode:_.ZB("kevlar_poly_si_batch_j075")?1:2});var zG=function(){return _.u.apply(this,arguments)||this};
_.X(zG,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],zG.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],zG.prototype,"data",void 0);_.c([_.l({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],zG);
_.y(zG,"ytd-search-filter-group-renderer",function(){if(rU2!==void 0)return rU2;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return rU2=O},{mode:_.ZB("kevlar_poly_si_batch_j075")?1:2});var iup;var J9=function(){return _.u.apply(this,arguments)||this};
_.X(J9,_.u);J9.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.uU());this.isCollapsed=!this.isCollapsed};
J9.prototype.navigateToAboutTheseResultsPage=function(){var O=_.yO("https://www.youtube.com/howyoutubeworks/product-features/search/");O?_.Bi(window,O,"_blank"):_.di(Error("Zh"))};
J9.prototype.dataChanged=function(){this.isCollapsed=!0};
J9.prototype.computeShowBottomBorder=function(){var O,m,G;return!!((O=this.data)==null?0:(m=O.button)==null?0:m.toggleButtonRenderer)||!((G=this.data)==null||!G.aboutTheseResultsButton)};
J9.prototype.dataChanged=J9.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],J9.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.Y("design:type",Boolean)],J9.prototype,"showBottomBorder",void 0);_.c([_.g(),_.Y("design:type",Boolean)],J9.prototype,"renderCollapsibleMenu",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],J9.prototype,"isCollapsed",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],J9.prototype,"dataChanged",null);_.c([_.l({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],J9);
_.y(J9,"ytd-search-sub-menu-renderer",function(){if(iup!==void 0)return iup;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return iup=O},{mode:1});var xt_;var qTU=new _.Us("SECTION_LIST_RENDERER_TOKEN");var Ut_;var Vk=function(){return _.u.apply(this,arguments)||this};
_.X(Vk,_.u);Vk.prototype.computeStyle=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Vk.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Vk.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],Vk.prototype,"headerStyle",void 0);_.c([_.l({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Vk);
_.y(Vk,"ytd-text-header-renderer",function(){if(Ut_!==void 0)return Ut_;var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Ut_=O},{mode:1});var tW3;var bx=function(){return _.u.apply(this,arguments)||this};
_.X(bx,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],bx.prototype,"data",void 0);_.c([_.l({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],bx);
_.y(bx,"ytd-minor-moment-header-renderer",function(){if(tW3!==void 0)return tW3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return tW3=O},{mode:1});var Wus;var nF=function(){return _.u.apply(this,arguments)||this};
_.X(nF,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],nF.prototype,"data",void 0);_.c([_.l({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],nF);
_.y(nF,"ytd-minor-moment-setting-alert-renderer",function(){if(Wus!==void 0)return Wus;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Wus=O},{mode:1});var Zu$;var zm8;var X6=function(){var O=_.u.apply(this,arguments)||this;O.booleanSettingById=!1;O.smartDownloadsEnabledVE=_.Zv(128287);O.smartDownloadsDisabledVE=_.Zv(128286);O.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return O};
_.X(X6,_.u);_.v=X6.prototype;_.v.attachSmartDownloadsSettingVes=function(){var O;this.activeVeForLogging||((O=this.data)==null?void 0:O.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.LK(_.uK(),this.smartDownloadsEnabledVE),_.LK(_.uK(),this.smartDownloadsDisabledVE))};
_.v.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.iP(this.hostElement,"yt-settings-switch-ready")};
_.v.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.v.onSwitchChange=function(O){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(O=_.Mj(O).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.V("kevlar_settings_switch_resolve_command_killswitch")?_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(O)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.v.handleUpdateSettingsSwitch=function(O){(O=_.b(O,kmu))&&this.data&&this.data.id===O.id&&this.set("data.enabled",!!O.enabled)};
_.v.onToggleSettingsSwitch=function(O,m){this.data&&this.data.id===O&&this.set("data.enabled",m!=null?m:!this.data.enabled)};
_.v.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.nK.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.v.maybeLogSmartDownloadsSettingVisibility=function(){var O=_.yA(),m;O&&((m=this.data)==null?void 0:m.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Or(O,[this.smartDownloadsEnabledVE]),_.mf(O,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Or(O,[this.smartDownloadsDisabledVE]),_.mf(O,[this.smartDownloadsEnabledVE])))};
_.v.maybeLogSmartDownloadsSettingClick=function(){var O;((O=this.data)==null?void 0:O.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.oS(_.uK(),this.activeVeForLogging)};
_.v.updateDataEnabledFromBinding=function(O){this.set("data.enabled",O.detail.value)};
_.vr.Object.defineProperties(X6.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var O=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!O&&(O=this.ytRendererBehavior.getSimpleString(this.data.title));return O}}});
X6.prototype.dataChanged=X6.prototype.dataChanged;_.c([_.h(_.MK),_.Y("design:type",Object)],X6.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],X6.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],X6.prototype,"ytComponentBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],X6.prototype,"data",void 0);_.c([_.g({selector:function(O,m){if(Object.keys(O==null?void 0:O.entities).length)switch(m){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return m2p(O.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.Y("design:type",Object)],X6.prototype,"booleanSettingById",void 0);_.c([_.g(),_.Y("design:type",aq)],X6.prototype,"activeVeForLogging",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],X6.prototype,"toggleAriaLabel",null);_.c([_.Si("data"),_.Si("booleanSettingById"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X6.prototype,"dataChanged",null);
_.c([_.l({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],X6);
_.y(X6,"ytd-settings-switch-renderer",function(){if(zm8!==void 0)return zm8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return zm8=O},{mode:1});var fF=function(){return _.u.apply(this,arguments)||this};
_.X(fF,_.u);fF.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}}}}};
_.vr.Object.defineProperties(fF.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var O=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(O+=" remove-left-margin");this.data.extraBottomSpace&&(O+=" extra-bottom-space");return O}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],fF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],fF.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fF.prototype,"contentsClassName",null);_.c([_.l({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],fF);
_.y(fF,"ytd-minor-moment-setting-section-renderer",function(){if(Zu$!==void 0)return Zu$;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Zu$=O},{mode:1});var JU_;var h9=function(){return _.u.apply(this,arguments)||this};
_.X(h9,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],h9.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],h9.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],h9);
_.y(h9,"ytd-empty-product-details-renderer",function(){if(JU_!==void 0)return JU_;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return JU_=O},{mode:1});var VW2;var buu;var TG=function(){var O=_.u.apply(this,arguments)||this;O.expanded=!0;return O};
_.X(TG,_.u);TG.prototype.getBadgeRowClass=function(O,m,G){for(var B=_.K(this.hostElement.querySelectorAll("yt-img-shadow")),Q=B.next();!Q.done;Q=B.next())Q.value.onShow();O=O.selected;return G?O!==-1?O===m?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(O!==void 0?O:0)===m?"badge-line":"badge-hidden"};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],TG.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],TG.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],TG.prototype,"expanded",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],TG);
_.y(TG,"ytd-sponsorships-loyalty-badges-renderer",function(){if(buu!==void 0)return buu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return buu=O},{mode:1});var n_u;var gP=function(){var O=_.u.apply(this,arguments)||this;O.expanded=!0;return O};
_.X(gP,_.u);gP.prototype.getContainerClasses=function(O,m){O=O?"expanded":"collapsed";m&&(O+=" item");return O};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],gP.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],gP.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],gP.prototype,"expanded",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],gP);
_.y(gP,"ytd-sponsorships-perk-renderer",function(){if(n_u!==void 0)return n_u;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return n_u=O},{mode:1});var X9o;var ux=function(){var O=_.u.apply(this,arguments)||this;O.expanded=!0;return O};
_.X(ux,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ux.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],ux.prototype,"expanded",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],ux);
_.y(ux,"ytd-sponsorships-perks-renderer",function(){if(X9o!==void 0)return X9o;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return X9o=O},{mode:1});var jm=function(){var O=_.u.apply(this,arguments)||this;O.isCollapsed=!1;return O};
_.X(jm,_.u);jm.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
jm.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
jm.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var O;this.expandCollapseButton=_.b((O=this.data)==null?void 0:O.expandButton,_.v3)}else{var m;this.expandCollapseButton=_.b((m=this.data)==null?void 0:m.collapseButton,_.v3)}};
jm.prototype.updateExpandCollapseButton=jm.prototype.updateExpandCollapseButton;jm.prototype.onDataChanged=jm.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],jm.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jm.prototype,"isCollapsed",void 0);_.c([_.g(),_.Y("design:type",Object)],jm.prototype,"expandCollapseButton",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jm.prototype,"onDataChanged",null);_.c([_.Si("data","isCollapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jm.prototype,"updateExpandCollapseButton",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],jm);
_.y(jm,"ytd-sponsorships-expandable-perks-renderer",function(){if(VW2!==void 0)return VW2;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return VW2=O},{mode:1});var fC3;var Iz=function(){return _.u.apply(this,arguments)||this};
_.X(Iz,_.u);Iz.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Iz.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Iz.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Iz);
_.y(Iz,"ytd-sponsorships-actionable-message-renderer",function(){if(fC3!==void 0)return fC3;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return fC3=O},{mode:1});var hmU;var pF=function(){return _.u.apply(this,arguments)||this};
_.X(pF,_.u);_.v=pF.prototype;_.v.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.v.getExpansionIcon=function(O){return O?"COLLAPSE":"EXPAND"};
_.v.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.v.computeMessageContainerStyle=function(O){var m=O.expandableItems?" style-clickable":"";return O.messageContainerStyle?O.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+m:"style-unspecified"+m};
_.v.isSinglePerk=function(O){return!!O.messageContainerStyle&&(O.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||O.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.v.onExpandedChanged=function(){var O=this;if(this.expanded)for(var m=_.K(this.hostElement.querySelectorAll("yt-img-shadow")),G=m.next();!G.done;G=m.next())G.value.onShow();_.QA(this,function(){_.iP(O.hostElement,"yt-refit")})};
_.v.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
pF.prototype.onDataChanged=pF.prototype.onDataChanged;pF.prototype.onExpandedChanged=pF.prototype.onExpandedChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],pF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],pF.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],pF.prototype,"expanded",void 0);
_.c([_.Tw("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pF.prototype,"onExpandedChanged",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pF.prototype,"onDataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],pF);
_.y(pF,"ytd-sponsorships-expandable-message-renderer",function(){if(hmU!==void 0)return hmU;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return hmU=O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var Tz8;var Sm=function(){return _.u.apply(this,arguments)||this};
_.X(Sm,_.u);Sm.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"}}}}};
Sm.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.b(this.data.endButton,_.v3).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Sm.prototype.onDataChanged=Sm.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Sm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Sm.prototype,"data",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sm.prototype,"onDataChanged",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Sm);
_.y(Sm,"ytd-sponsorships-heading-renderer",function(){if(Tz8!==void 0)return Tz8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Tz8=O},{mode:1});var g_C;var E4=function(){return _.u.apply(this,arguments)||this};
_.X(E4,_.u);_.c([_.g(),_.Y("design:type",Object)],E4.prototype,"data",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],E4);
_.y(E4,"ytd-sponsorships-links-renderer",function(){if(g_C!==void 0)return g_C;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return g_C=O},{mode:1});var ulj;var LF=function(){return _.u.apply(this,arguments)||this};
_.X(LF,_.u);_.v=LF.prototype;_.v.onDataChanged=function(){if(this.data&&this.data.expandableItems){var O;(O=_.ZO(this.hostElement).querySelector("tp-yt-paper-button"))==null||O.setAttribute("role","button")}else{var m;(m=_.ZO(this.hostElement).querySelector("tp-yt-paper-button"))==null||m.removeAttribute("role")}};
_.v.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.v.getExpansionIcon=function(O){return O?"COLLAPSE":"EXPAND"};
_.v.getTileClasses=function(O){return O?"tile expandable-tile":"tile"};
_.v.getButtonDisabled=function(O){return O?void 0:""};
LF.prototype.onDataChanged=LF.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],LF.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],LF.prototype,"expanded",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LF.prototype,"onDataChanged",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],LF);
_.y(LF,"ytd-sponsorships-list-tile-renderer",function(){if(ulj!==void 0)return ulj;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ulj=O},{mode:1});var jmC;var ICC;var CF=function(){return _.u.apply(this,arguments)||this};
_.X(CF,_.u);CF.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],CF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],CF.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],CF);
_.y(CF,"ytd-sponsorships-promotion-renderer",function(){if(ICC!==void 0)return ICC;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return ICC=O},{mode:1});var p92;var oz=function(){return _.u.apply(this,arguments)||this};
_.X(oz,_.u);oz.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],oz.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],oz);
_.y(oz,"ytd-sponsorships-purchase-option-renderer",function(){if(p92!==void 0)return p92;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return p92=O},{mode:1});var ST8;var E_o;var LuH=function(){return _.u.apply(this,arguments)||this};
_.X(LuH,_.u);_.c([_.g(),_.Y("design:type",Object)],LuH.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],LuH);
_.y(LuH,"ytd-ypc-offer-promo-renderer",function(){if(E_o!==void 0)return E_o;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return E_o=O},{mode:1});var lx=function(){return _.u.apply(this,arguments)||this};
_.X(lx,_.u);_.v=lx.prototype;
_.v.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"}}}}};
_.v.expansionCTA=function(O,m){return O&&(m?O.collapseCallToAction:O.expansionCallToAction)};
_.v.getExpansionIcon=function(O){return O?"COLLAPSE":"EXPAND"};
_.v.expansionCallToActionTap=function(){var O=this;this.expanded=!this.expanded;_.QA(this,function(){_.iP(O.hostElement,"yt-refit")})};
_.v.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var O,m=(O=this.data)==null?void 0:O.onVisible;m&&this.ytComponentBehavior.resolveCommand(m)};
_.v.computeDisplayTitle=function(O){return!(!O||this.titledisplaystatus!=="show")};
_.v.computeDisplaySeparator=function(){return!1};
_.v.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
lx.prototype.onDataChanged=lx.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],lx.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],lx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],lx.prototype,"data",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],lx.prototype,"expanded",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],lx.prototype,"purchaseButtonClicked",void 0);_.c([_.g({reflectToAttribute:!0,value:"show"}),_.Y("design:type",String)],lx.prototype,"titledisplaystatus",void 0);_.c([_.g({computed:"computeDisplayTitle(data.title)"}),_.Y("design:type",Boolean)],lx.prototype,"displayTitle",void 0);
_.c([_.g({computed:"computeDisplaySeparator(data)"}),_.Y("design:type",Boolean)],lx.prototype,"displaySeparator",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lx.prototype,"onDataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],lx);
_.y(lx,"ytd-sponsorships-tier-renderer",function(){if(ST8!==void 0)return ST8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ST8=O},{mode:2});var az=function(){return _.u.apply(this,arguments)||this};
_.X(az,_.u);
az.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],az.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],az);
_.y(az,"ytd-sponsorships-management-renderer",function(){if(jmC!==void 0)return jmC;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return jmC=O},{mode:1});var CIs;var kl=function(){return _.u.apply(this,arguments)||this};
_.X(kl,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],kl.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],kl);
_.y(kl,"ytd-open-in-native-app-view-model",function(){if(CIs!==void 0)return CIs;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return CIs=O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var o_C;var lCo;var aCu=_.FY(["top-"]),klp=_.FY(["bottom-"]),yUp=_.FY(["left-"]),cUp=_.FY(["right-"]),YTo={},dtH=function(O,m,G){O.removeAttribute("top-"+G);O.removeAttribute("bottom-"+G);O.removeAttribute("left-"+G);O.removeAttribute("right-"+G);m&&(m.top&&_.rC([_.x6(aCu)],O,"top-"+G,m.top),m.bottom&&_.rC([_.x6(klp)],O,"bottom-"+G,m.bottom),m.left&&_.rC([_.x6(yUp)],O,"left-"+G,m.left),m.right&&_.rC([_.x6(cUp)],O,"right-"+G,m.right))};
YTo.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(O){var m,G=_.ZO((m=this.hostElement)!=null?m:this),B;m=this.cardItemBoxBehaviorMarginTargetId&&G?G.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(B=this.hostElement)!=null?B:this;dtH(m,O,"margin")},
cardItemContainerPaddingChanged_:function(O){var m,G=_.ZO((m=this.hostElement)!=null?m:this),B;m=this.cardItemBoxBehaviorPaddingTargetId&&G?G.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(B=this.hostElement)!=null?B:this;dtH(m,O,"padding")}}];var yk={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 w9u;var emU;var cZ=function(){return _.u.apply(this,arguments)||this};
_.X(cZ,_.u);cZ.prototype.textColorChanged_=function(){this.hostElement.style.color=yk[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
cZ.prototype.textColorChanged_=cZ.prototype.textColorChanged_;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.c([_.h(YTo.YtCardItemBoxBehavior),_.Y("design:type",Object)],cZ.prototype,"ytCardItemBoxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],cZ.prototype,"data",void 0);_.c([_.Tw("data.textColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cZ.prototype,"textColorChanged_",null);
_.c([_.DO({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],cZ);
_.y(cZ,"yt-card-item-text-renderer",function(){if(emU===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;w9u===void 0&&(w9u=document.createElement("template"));var B=w9u;G.call(m,B.content.cloneNode(!0),O.content.firstChild);emU=O}O=emU;return O},{mode:2});var Dtj;var sm2;var Yl=function(){return _.u.apply(this,arguments)||this};
_.X(Yl,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Yl.prototype,"data",void 0);_.c([_.DO({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Yl);
_.y(Yl,"yt-card-item-badge-renderer",function(){if(sm2===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Dtj===void 0&&(Dtj=document.createElement("template"));var B=Dtj;G.call(m,B.content.cloneNode(!0),O.content.firstChild);sm2=O}O=sm2;return O},{mode:2});var Nz8;var PIj;var dP=function(){return _.u.apply(this,arguments)||this};
_.X(dP,_.u);dP.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],dP.prototype,"data",void 0);_.c([_.DO({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],dP);
_.y(dP,"yt-card-item-text-collection-renderer",function(){if(PIj===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Nz8===void 0&&(Nz8=document.createElement("template"));var B=Nz8;G.call(m,B.content.cloneNode(!0),O.content.firstChild);PIj=O}O=PIj;return O},{mode:2});var Fu_;var AU9;var wP=function(){return _.u.apply(this,arguments)||this};
_.X(wP,_.u);wP.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],wP.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Number)],wP.prototype,"iconSize",void 0);_.c([_.DO({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],wP);
_.y(wP,"yt-card-item-text-with-button-renderer",function(){if(AU9===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Fu_===void 0&&(Fu_=document.createElement("template"));var B=Fu_;G.call(m,B.content.cloneNode(!0),O.content.firstChild);AU9=O}O=AU9;return O},{mode:2});var em=function(){return _.u.apply(this,arguments)||this};
_.X(em,_.u);em.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],em.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],em.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],em.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],em);
_.y(em,"ytd-commerce-cart-summary-line-item-renderer",function(){if(lCo!==void 0)return lCo;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return lCo=O},{mode:1});_.lE("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Dl=function(){var O=_.u.apply(this,arguments)||this;O.hidden=!1;return O};
_.X(Dl,_.u);_.v=Dl.prototype;_.v.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"}}}}};
_.v.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.v.updateSummary=function(){var O=this.commerceCartCheckoutButtonEntity,m;if(((m=this.data)==null?0:m.cartButton)&&O.checkoutSummaryText){var G,B=Ep((G=this.data)==null?void 0:G.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+B+".cardItemTextRenderer.text",Lz(O.checkoutSummaryText));if(O.checkoutDetailText){var Q;G=Ep((Q=this.data)==null?void 0:Q.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+G+".cardItemTextRenderer.text",Lz(O.checkoutDetailText))}if(O.checkoutAdditionalMetadataText){var H;
Q=Ep((H=this.data)==null?void 0:H.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+Q+".cardItemTextRenderer.text",Lz(O.checkoutAdditionalMetadataText))}}else O.estimatedTotalPrice&&(H=Ep((B=this.data)==null?void 0:B.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+H+".cardItemTextRenderer.text",Lz(O.estimatedTotalPrice)))};
_.v.updateIsHidden=function(){var O,m=(O=this.commerceCartCheckoutButtonEntity)==null?void 0:O.isHidden;m!==void 0&&(this.hidden=m)};
_.v.updateCheckoutButton=function(){var O,m=(O=this.commerceCartCheckoutButtonEntity)==null?void 0:O.isDisabled;m!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",m);var G;O=(G=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:G.innertubeCommand;O!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",O);var B;G=(B=this.commerceCartCheckoutButtonEntity)==null?void 0:B.checkoutButtonText;G!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:G})};
Dl.prototype.entityChanged=Dl.prototype.entityChanged;_.c([_.h(_.MK),_.Y("design:type",Object)],Dl.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Dl.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Dl.prototype,"fullWidth",void 0);_.c([_.g(),_.Y("design:type",Object)],Dl.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Dl.prototype,"compact",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Dl.prototype,"hidden",void 0);
_.c([_.g({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:RMY}),_.Y("design:type",Object)],Dl.prototype,"commerceCartCheckoutButtonEntity",void 0);_.c([_.Tw("commerceCartCheckoutButtonEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Dl.prototype,"entityChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Dl);
_.y(Dl,"ytd-commerce-cart-checkout-button-renderer",function(){if(o_C!==void 0)return o_C;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return o_C=O},{mode:2});var Ol_;_.m63={};
_.m63.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",_.f7(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.f7(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(O){!this.tappableItemBehaviorTapEnabled||O.keyCode!==13&&O.keyCode!==32||O.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var O=this.data.onTap;O.ypcGetCartEndpoint?(_.tK(this.hostElement,[O]),this.tappableItemBehaviorTapEnabled=!1):O.ypcOffersEndpoint?_.tK(this.hostElement,[O]):_.Wd(this.hostElement,[O],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(O){this.tappableItemBehaviorTapEnabled=!!O},
tappableItemBehaviorOnTapEnabledChanged_:function(){var O=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(O.setAttribute("tabIndex",0),O.setAttribute("role","button")):(O.removeAttribute("tabIndex"),O.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(O){O.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var Ge9;var Bp$;var s4=function(){return _.u.apply(this,arguments)||this};
_.X(s4,_.u);s4.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.aZ("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.aZ("sharingToggleButtonAndDefaultButton")}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],s4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],s4.prototype,"data",void 0);_.c([_.DO({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],s4);
_.y(s4,"yt-card-item-actions-renderer",function(){if(Bp$===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Ge9===void 0&&(Ge9=document.createElement("template"));var B=Ge9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Bp$=O}O=Bp$;return O},{mode:2});var QLm;var Hlj;var vYu;var Kh9;var $6C;var MM8;var NA=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return O};
_.X(NA,_.u);NA.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
NA.prototype.handleDarkModeToggledAction_=function(O){this.isDarkTheme_=O};
NA.prototype.computeThemeImage_=function(O,m){if(!O||!O.imageLight)return!1;this.isCircular_=O.isCircular;O.imageWidth&&(this.hostElement.style.width=O.imageWidth+"px");O.imageHeight&&(this.hostElement.style.height=O.imageHeight+"px");O.borderWidth&&(this.image.style.borderWidth=O.borderWidth+"px",this.image.style.borderStyle="solid");O.borderColor&&(this.image.style.borderColor=_.AV(O.borderColor));return m&&O.imageDark?O.imageDark:O.imageLight};
NA.prototype.computeThemeIcon_=function(O){var m,G;if(!(O==null?0:(m=O.themedIcon)==null?0:(G=m.icon)==null?0:G.iconType))return!1;this.icon.style.color=yk[O.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(O.imageWidth||18)+"px";this.icon.style.height=(O.imageHeight||18)+"px";return _.bK(O.themedIcon.icon.iconType)};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],NA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(YTo.YtCardItemBoxBehavior),_.Y("design:type",Object)],NA.prototype,"ytCardItemBoxBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],NA.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],NA.prototype,"data",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],NA.prototype,"fit",void 0);_.c([_.g(),_.Y("design:type",Boolean)],NA.prototype,"isDarkTheme_",void 0);_.c([_.g({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.Y("design:type",Object)],NA.prototype,"themeImage_",void 0);_.c([_.g({computed:"computeThemeIcon_(data)"}),_.Y("design:type",Object)],NA.prototype,"themeIcon_",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Object)],NA.prototype,"isCircular_",void 0);
_.c([_.uc("#image"),_.Y("design:type",Object)],NA.prototype,"image",void 0);_.c([_.uc("#icon"),_.Y("design:type",Object)],NA.prototype,"icon",void 0);_.c([_.DO({is:"yt-themed-image-renderer",disableElementRegistration:!0})],NA);
_.y(NA,"yt-themed-image-renderer",function(){if(MM8===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;$6C===void 0&&($6C=document.createElement("template"));var B=$6C;G.call(m,B.content.cloneNode(!0),O.content.firstChild);MM8=O}O=MM8;return O},{mode:2});var PZ=function(){return _.u.apply(this,arguments)||this};
_.X(PZ,_.u);PZ.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"}}}}};
PZ.prototype.computeImagePlacement_=function(O){return O||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],PZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],PZ.prototype,"data",void 0);_.c([_.g({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.Y("design:type",String)],PZ.prototype,"imagePlacement",void 0);
_.c([_.DO({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],PZ);
_.y(PZ,"yt-card-item-text-with-image-renderer",function(){if(Kh9===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;vYu===void 0&&(vYu=document.createElement("template"));var B=vYu;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Kh9=O}O=Kh9;return O},{mode:2});var F6=function(){return _.u.apply(this,arguments)||this};
_.X(F6,_.u);F6.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],F6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],F6.prototype,"data",void 0);_.c([_.DO({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],F6);
_.y(F6,"yt-card-item-error-renderer",function(){if(Hlj===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;QLm===void 0&&(QLm=document.createElement("template"));var B=QLm;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Hlj=O}O=Hlj;return O},{mode:2});var rAp;var Rym;_.lE("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var A9=function(){return _.u.apply(this,arguments)||this};
_.X(A9,_.u);_.v=A9.prototype;
_.v.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"}}}}};
_.v.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.v.backgroundColorChanged_=function(){var O,m=(O=this.data)==null?void 0:O.backgroundColor;O=yk[m||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ZO(this.hostElement).querySelector("#main-content").style.backgroundColor=O};
_.v.headerPromoBackgroundColorChanged_=function(){var O,m=(O=this.data)==null?void 0:O.headerPromoBackgroundColor;O=yk[m||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.ZO(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=O};
_.v.errorRendererVisibilityChanged_=function(){var O=this.isExpanded_,m;this.isErrorRendererVisible_=!((m=this.data)==null||!m.errorRenderer)&&!O};
_.v.onYtToggleButton_=function(O,m){this.isExpanded_=m.toggled};
A9.prototype.onYtToggleButton_=A9.prototype.onYtToggleButton_;A9.prototype.errorRendererVisibilityChanged_=A9.prototype.errorRendererVisibilityChanged_;A9.prototype.headerPromoBackgroundColorChanged_=A9.prototype.headerPromoBackgroundColorChanged_;A9.prototype.backgroundColorChanged_=A9.prototype.backgroundColorChanged_;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],A9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(YTo.YtCardItemBoxBehavior),_.Y("design:type",Object)],A9.prototype,"ytCardItemBoxBehavior",void 0);_.c([_.h(_.m63.YtTappableItemBehavior),_.Y("design:type",Object)],A9.prototype,"ytTappableItemBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],A9.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],A9.prototype,"isExpanded_",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],A9.prototype,"isErrorRendererVisible_",void 0);_.c([_.Tw("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A9.prototype,"backgroundColorChanged_",null);_.c([_.Tw("data.headerPromoBackgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A9.prototype,"headerPromoBackgroundColorChanged_",null);
_.c([_.Tw("data.errorRenderer","isExpanded_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A9.prototype,"errorRendererVisibilityChanged_",null);_.c([_.hG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],A9.prototype,"onYtToggleButton_",null);_.c([_.DO({is:"yt-card-item-renderer",disableElementRegistration:!0})],A9);
_.y(A9,"yt-card-item-renderer",function(){if(Rym===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;rAp===void 0&&(rAp=document.createElement("template"));var B=rAp;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Rym=O}O=Rym;return O},{mode:2});_.lE("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var OG=function(){var O=_.u.apply(this,arguments)||this;O.hidden=!1;return O};
_.X(OG,_.u);_.v=OG.prototype;_.v.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.v.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.v.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var O,m=(O=this.commerceCartHeaderEntity)==null?void 0:O.isHidden;m!==void 0&&(this.hidden=m)}};
_.v.updateTitle=function(){var O=this.commerceCartHeaderEntity.isDisabled,m,G,B=(G=_.b((m=this.data)==null?void 0:m.item,j4s))==null?void 0:G.headingRenderer;B&&(m=Ep(B,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+m+".0.cardItemTextRenderer.textColor",O?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.v.updateSummaryText=function(){var O=this.commerceCartHeaderEntity;if(this.compact){var m,G,B=(G=_.b((m=this.data)==null?void 0:m.item,j4s))==null?void 0:G.headingRenderer;B&&(m=Ep(B,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+m+".1.cardItemTextRenderer.text",O.shortHeaderSummaryText?Lz(O.shortHeaderSummaryText):O.headerSummaryText?Lz(O.headerSummaryText):""))}else{var Q;if(m=(Q=_.b((B=this.data)==null?void 0:B.item,j4s))==null?void 0:Q.additionalInfoRenderer)m=Ep(m,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+m+".text",O.headerSummaryText?Lz(O.headerSummaryText):"")}};
_.v.updateCheckoutButton=function(){var O=this.commerceCartHeaderEntity,m,G,B=(G=_.b((m=this.data)==null?void 0:m.item,j4s))==null?void 0:G.additionalInfoRenderer;m=Ep(B,"buttonRenderer");var Q;G=(Q=this.commerceCartHeaderEntity)==null?void 0:Q.isButtonDisabled;var H;Q=(H=this.commerceCartHeaderEntity)==null?void 0:H.isButtonHidden;G!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+m+".buttonRenderer.isDisabled",G);Q!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
Q);var M;O=(M=O.checkoutButtonCommand)==null?void 0:M.innertubeCommand;O!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+m+".buttonRenderer.command",O)};
OG.prototype.entityChanged=OG.prototype.entityChanged;_.c([_.h(_.MK),_.Y("design:type",Object)],OG.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],OG.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],OG.prototype,"compact",void 0);_.c([_.g({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(O,m){return _.Vh(O.entities,"commerceCartHeaderEntity",m)}}),
_.Y("design:type",Object)],OG.prototype,"commerceCartHeaderEntity",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],OG.prototype,"hidden",void 0);_.c([_.Tw("commerceCartHeaderEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OG.prototype,"entityChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],OG);
_.y(OG,"ytd-commerce-cart-header-renderer",function(){if(Ol_!==void 0)return Ol_;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Ol_=O},{mode:1});var ilm;var x63=_.SG(function(O,m){var G;return(G=O.onChangeCallback)==null?void 0:G.call(O,m)},1E3),qw$=_.a(function(O){var m=O.data;
var G=O.iconMinus;O=O.iconPlus;var B=function(){return!!m().disabled},Q=_.K(_.Wf(0,void 0,"mKh0af")),H=Q.next().value,M=Q.next().value;
Q=_.nH(function(){if(H()===1){var Z,z;(z=(Z=m()).onRemoveCommand)==null||z.call(Z)}Z=H()>m().maxValue?m().maxValue:H()-1;M(Z);x63(m(),Z);return!1});
var R=_.nH(function(){if(H()===m().maxValue)return!1;var Z=H()+1;M(Z);x63(m(),Z);return!1});
_.EZ(function(){M(m().value)});
var x={},t={},W={};return _.q("quantity-incrementer-shape",null,_.q("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.q("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return H()===(m().onRemoveCommand?0:1)||B()},
"aria-label":function(){return H()!==1?m().minusLabel:m().minimumReachedLabel},
"on:click":Q},_.q(_.S1,{model:{circular:!0}}),_.q("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.q("div",{class:_.bE("ytSpecQuantityIncrementerShapeIcon",(x.ytSpecQuantityIncrementerShapeIconDisabled=function(){return B()||H()===(m().onRemoveCommand?0:1)},x))},G()))),_.q("div",{class:_.bE("ytSpecQuantityIncrementerShapeText",(t.ytSpecQuantityIncrementerShapeTextInvalid=function(){return H()>m().maxValue},t.ytSpecQuantityIncrementerShapeTextDisabled=B,t))},H),_.q("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return H()>=m().maxValue||B()},
"aria-label":function(){return H()!==m().maxValue?m().plusLabel:m().maximumReachedLabel},
"on:click":R},_.q(_.S1,{model:{circular:!0}}),_.q("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.q("div",{class:_.bE("ytSpecQuantityIncrementerShapeIcon",(W.ytSpecQuantityIncrementerShapeIconDisabled=function(){return H()>=m().maxValue||B()},W))},O())))))},"ye");_.qi(_.a(function(O){function m(){G().onRemoveCommand&&_.PE(G().onRemoveCommand)}
var G=O.data;var B=_.fJ(eK6,function(){return G().quantityIncrementerEntityKey});
return _.q("yt-quantity-incrementer-view-model",null,_.q(qw$,{data:function(){var Q=G(),H;var M=B()?!((H=B())==null||!H.disabled):!1;var R;H=B()?(R=B())==null?void 0:R.quantity:G().quantity;return NGS(Q,M,m,H)},
iconMinus:function(){return _.q(_.T$,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.q(_.T$,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"ze"),"yt-quantity-incrementer-view-model",{props:{data:_.VZ}});var mK=function(){var O=_.u.apply(this,arguments)||this;O.compact=!1;O.hasQuantityIncrementer=!1;return O};
_.X(mK,_.u);mK.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"}}}};
mK.prototype.computeHasQuantityIncrementer=function(){var O;return!!_.b((O=this.data)==null?void 0:O.picker,Ek$)};
mK.prototype.onLabelClick=function(){var O;(O=this.dropdownEl)==null||O.open()};
_.c([_.uc("ytd-dropdown-renderer"),_.Y("design:type",Object)],mK.prototype,"dropdownEl",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],mK.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mK.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],mK.prototype,"quantityColor",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],mK.prototype,"compact",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.Y("design:type",Object)],mK.prototype,"hasQuantityIncrementer",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],mK);
_.y(mK,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(ilm!==void 0)return ilm;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ilm=O},{mode:1});var U6j;var tMC;var GI=function(){return _.u.apply(this,arguments)||this};
_.X(GI,_.u);GI.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
GI.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
GI.prototype.updateTitle=function(){var O=this.disabledCartItemEntity;O.disableActionName&&this.set("data.title",Lz(O.disableActionName))};
GI.prototype.updateButton=function(){var O,m=(O=this.disabledCartItemEntity.undoCommand)==null?void 0:O.innertubeCommand;m!==void 0&&(this.set("data.actionButton.buttonRenderer.command",m),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
GI.prototype.entityChanged=GI.prototype.entityChanged;_.c([_.h(_.MK),_.Y("design:type",Object)],GI.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],GI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(O,m){return _.Vh(O.entities,"disabledCartItemEntity",m)}}),
_.Y("design:type",Object)],GI.prototype,"disabledCartItemEntity",void 0);_.c([_.g(),_.Y("design:type",Object)],GI.prototype,"data",void 0);_.c([_.Tw("disabledCartItemEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GI.prototype,"entityChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],GI);
_.y(GI,"ytd-disabled-cart-item-renderer",function(){if(tMC!==void 0)return tMC;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return tMC=O},{mode:1});_.lE("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var BU=function(){var O=_.u.apply(this,arguments)||this;O.compact=!1;O.hidden=!1;O.errorHidden=!1;O.noOnTap=!1;return O};
_.X(BU,_.u);_.v=BU.prototype;
_.v.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"}}}};
_.v.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.v.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var O=this.firstButtonElement;O.alignByText=!0;O.iconAlignByText=!0}};
_.v.computeNoOnTap=function(O){return!O};
_.v.updateQuantityColor=function(){if(this.pickerElement){var O,m=(O=this.commerceCartItemEntity)==null?void 0:O.quantityColor;this.pickerElement.quantityColor=m}};
_.v.updateTotalPriceColor=function(){var O,m=(O=this.commerceCartItemEntity)==null?void 0:O.totalPriceColor;if(m){var G;O=_.b((G=this.data)==null?void 0:G.quantityPicker,pTC);if(G=_.b(O==null?void 0:O.price,Icm))G.textColor=m}};
_.v.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var O,m=(O=this.commerceCartItemEntity)==null?void 0:O.isHidden;m!==void 0&&(this.hidden=m)}};
_.v.updateHideErrorMessage=function(){var O,m=(O=this.commerceCartItemEntity)==null?void 0:O.hideErrorMessage;m!==void 0&&(this.errorHidden=m)};
_.v.updateQuantity=function(){var O=this,m,G=(m=this.commerceCartItemEntity)==null?void 0:m.quantity,B;m=(B=this.commerceCartItemEntity)==null?void 0:B.totalPrice;if(G){this.updateTotalPriceColor();this.updateQuantityColor();var Q;B=_.b((Q=this.data)==null?void 0:Q.quantityPicker,pTC);if(Q=_.b(B==null?void 0:B.price,Icm))Q.text=m?{simpleText:m.content}:void 0;if(m=_.b(B==null?void 0:B.picker,Ek$))m.quantity=G;var H;if(Q=(H=_.b(B==null?void 0:B.picker,p3_))==null?void 0:H.entries){H=!1;m=void 0;Q=
_.K(Q);for(B=Q.next();!B.done;B=Q.next())B=B.value,B.dropdownItemRenderer&&(m||(m=B.dropdownItemRenderer),B.dropdownItemRenderer.isSelected=!1,G===B.dropdownItemRenderer.int32Value&&(H=!0,B.dropdownItemRenderer.isSelected=!0));!H&&m&&(m.isSelected=!0)}_.QA(this,function(){var M;O.set("data.quantityPicker",_.aM.unsafeClone((M=O.data)==null?void 0:M.quantityPicker))})}};
BU.prototype.onYtRendererstamperFinished=BU.prototype.onYtRendererstamperFinished;BU.prototype.entityChanged=BU.prototype.entityChanged;_.c([_.g(),_.Y("design:type",Object)],BU.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],BU.prototype,"compact",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],BU.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],BU.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],BU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(O,m){return _.Vh(O.entities,"commerceCartItemEntity",m)}}),
_.Y("design:type",Object)],BU.prototype,"commerceCartItemEntity",void 0);_.c([_.g(),_.Y("design:type",Object)],BU.prototype,"quantityPicker",void 0);_.c([_.g(),_.Y("design:type",Object)],BU.prototype,"compactQuantityPicker",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],BU.prototype,"hidden",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],BU.prototype,"errorHidden",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.Y("design:type",Object)],BU.prototype,"noOnTap",void 0);_.c([_.uc("ytd-commerce-cart-item-quantity-picker-renderer"),_.Y("design:type",Object)],BU.prototype,"pickerElement",void 0);_.c([_.uc("yt-button-renderer"),_.Y("design:type",Element)],BU.prototype,"firstButtonElement",void 0);
_.c([_.Tw("commerceCartItemEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BU.prototype,"entityChanged",null);_.c([_.hG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BU.prototype,"onYtRendererstamperFinished",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],BU);
_.y(BU,"ytd-commerce-cart-item-renderer",function(){if(U6j!==void 0)return U6j;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return U6j=O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var Whs;var Zlm;var QU=function(){return _.u.apply(this,arguments)||this};
_.X(QU,_.u);QU.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}}}}}};
QU.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
QU.prototype.updateCheckoutLineItems=function(){var O,m=(O=this.commerceCartCheckoutButtonEntity)==null?void 0:O.checkoutLineItems;m&&(O=m.map(function(G){a:{var B=G.price,Q=G.description;switch(G.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":G={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Lz(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:Lz(B),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:G={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Lz(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:Lz(B),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 G}),this.set("data.summaryLineItems",O))};
QU.prototype.updateIsHidden=function(){var O,m=(O=this.commerceCartCheckoutButtonEntity)==null?void 0:O.isHidden;m!==void 0&&(this.hostElement.hidden=m)};
QU.prototype.entityChanged=QU.prototype.entityChanged;_.c([_.h(_.MK),_.Y("design:type",Object)],QU.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],QU.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],QU.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],QU.prototype,"data",void 0);_.c([_.g({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:RMY}),_.Y("design:type",Object)],QU.prototype,"commerceCartCheckoutButtonEntity",void 0);_.c([_.Tw("commerceCartCheckoutButtonEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QU.prototype,"entityChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],QU);
_.y(QU,"ytd-commerce-cart-summary-renderer",function(){if(Zlm!==void 0)return Zlm;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Zlm=O},{mode:1});var zyH={};zyH.InjectBehavior=[jIf.InjectBehavior];var JA3;var VM2;var HU=function(){return _.u.apply(this,arguments)||this};
_.X(HU,_.u);
HU.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:_.aZ("menuRenderer")}}};
HU.prototype.onMenuTap=function(O){O.stopPropagation()};
_.vr.Object.defineProperties(HU.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 O,m;return!(((O=this.data)==null||!O.sectionHeading)&&((m=this.data)==null?void 0:m.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var O,m;return!(((O=this.data)==null||!O.image)&&((m=this.data)==null?void 0:m.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var O,m;return!(((O=this.data)==null||!O.menu)&&((m=this.data)==null?void 0:m.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],HU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.m63.YtTappableItemBehavior),_.Y("design:type",Object)],HU.prototype,"ytTappableItemBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],HU.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("data.accessibilityData"),_.Y("design:type",String),_.Y("design:paramtypes",[])],HU.prototype,"ariaLabel",null);_.c([_.T("data.sectionHeading","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],HU.prototype,"sectionHeadingVisible",null);_.c([_.T("data.image","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],HU.prototype,"imageVisible",null);
_.c([_.T("data.menu","data.layout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],HU.prototype,"menuVisible",null);_.c([_.DO({is:"yt-activity-item-renderer",disableElementRegistration:!0})],HU);
_.y(HU,"yt-activity-item-renderer",function(){if(VM2===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;JA3===void 0&&(JA3=document.createElement("template"));var B=JA3;G.call(m,B.content.cloneNode(!0),O.content.firstChild);VM2=O}O=VM2;return O},{mode:2});var bls;var nYj;var Xm$;var f72;var vU=function(){return _.u.apply(this,arguments)||this};
_.X(vU,_.u);
vU.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"}}}}};
vU.prototype.backgroundColorChanged_=function(){var O,m=(O=this.data)==null?void 0:O.backgroundColor;this.hostElement.style.backgroundColor=yk[m||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
vU.prototype.backgroundColorChanged_=vU.prototype.backgroundColorChanged_;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],vU.prototype,"data",void 0);
_.c([_.Tw("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vU.prototype,"backgroundColorChanged_",null);_.c([_.DO({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],vU);
_.y(vU,"yt-offer-item-upsell-renderer",function(){if(f72===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Xm$===void 0&&(Xm$=document.createElement("template"));var B=Xm$;G.call(m,B.content.cloneNode(!0),O.content.firstChild);f72=O}O=f72;return O},{mode:2});_.lE("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var K6=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};O.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return O};
_.X(K6,_.u);_.v=K6.prototype;
_.v.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:_.aZ("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.v.computeContainerStyle_=function(O){return O};
_.v.computeContainerIsHidden_=function(O){return O&&!!O.isHidden};
_.v.computeShowSpinner_=function(O,m){return O&&m==="in-progress"};
_.v.computeShowMoreContentsButton_=function(O,m,G,B,Q){return!(!(B&&B.length||Q&&Q.length&&G)||!O||m)};
_.v.onToggleButton_=function(O){var m=this;O.stopPropagation();this.isExpanded_=O.detail&&O.detail.toggled;var G,B;this.isExpanded_&&!this.data.continuationSection.length&&((G=this.data)==null?0:(B=G.continuation)==null?0:B.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.iP(this.hostElement,"yt-load-next-continuation",function(Q){return m.getContinuationUrl_(m.data.continuation.onClickContinuationData,Q)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.tK(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.v.onShowMoreContentsButtonClicked_=function(O){var m=this;O.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.iP(this.hostElement,"yt-load-next-continuation",function(G){return m.getContinuationUrl_(m.data.continuations[0].nextContinuationData,G)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.tK(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.v.getContinuationUrl_=function(O,m){var G=O.continuation;O=O.clickTrackingParams;var B=_.yA();O&&B&&_.Gk(B,_.Ez(O));return _.Oe(m,{continuation:G})};
_.v.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var O=_.ZO(this.hostElement).querySelector("#continuation-section");O&&(O=O.querySelectorAll("ytmusic-item-section-renderer"))&&O.forEach(function(m){return m.classList.add("memberships-and-purchases")})};
_.v.dataChanged_=function(){var O;this.isExpanded_=!((O=this.data)==null||!O.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.v.updateCardOnClickCommand_=function(O){O=_.b(O,bQe);var m,G;this.data&&((m=this.data)==null?0:m.targetId)&&O&&O.targetId===((G=this.data)==null?void 0:G.targetId)&&O.onClickCommand&&(this.data.onClickCommand=O.onClickCommand,this.isOnClickCommand_=!0)};
_.v.backgroundColorChanged_=function(){var O,m=(O=this.data)==null?void 0:O.backgroundColor;this.hostElement.style.backgroundColor=yk[m||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
K6.prototype.backgroundColorChanged_=K6.prototype.backgroundColorChanged_;K6.prototype.dataChanged_=K6.prototype.dataChanged_;K6.prototype.nextContinuationDataUpdated_=K6.prototype.nextContinuationDataUpdated_;K6.prototype.onToggleButton_=K6.prototype.onToggleButton_;_.c([_.h(_.Ww),_.Y("design:type",Object)],K6.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],K6.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Z8.YtNextContinuationBehavior),_.Y("design:type",Object)],K6.prototype,"ytNextContinuationBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.c([_.h(zyH.InjectBehavior),_.Y("design:type",Object)],K6.prototype,"injectBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],K6.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],K6.prototype,"compact",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],K6.prototype,"isExpanded_",void 0);_.c([_.g({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.Y("design:type",String)],K6.prototype,"containerStyle_",void 0);_.c([_.g({value:"not-started"}),_.Y("design:type",String)],K6.prototype,"continuationStatus_",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.Y("design:type",Boolean)],K6.prototype,"showSpinner_",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],K6.prototype,"isOnClickCommand_",void 0);_.c([_.g({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.Y("design:type",Boolean)],K6.prototype,"showMoreContentsButton_",void 0);
_.c([_.g({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(O,m){return!m||O.entities?null:_.Vh(O.entities,"cardItemContainerEntity",m)}}),
_.Y("design:type",Object)],K6.prototype,"cardItemContainerEntity_",void 0);_.c([_.hG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],K6.prototype,"onToggleButton_",null);_.c([_.hG("yt-next-continuation-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K6.prototype,"nextContinuationDataUpdated_",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K6.prototype,"dataChanged_",null);_.c([_.Tw("data.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],K6.prototype,"backgroundColorChanged_",null);_.c([_.DO({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],K6);
_.y(K6,"yt-card-item-container-renderer",function(){if(nYj===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;bls===void 0&&(bls=document.createElement("template"));var B=bls;G.call(m,B.content.cloneNode(!0),O.content.firstChild);nYj=O}O=nYj;return O},{mode:2});var $D=function(){return _.u.apply(this,arguments)||this};
_.X($D,_.u);$D.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"}}}};
$D.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
$D.prototype.computeLoadingHidden=function(){var O;return!((O=this.commerceCartPageStateEntity)==null?0:O.cartActionInProgress)};
$D.prototype.updateNotification=function(){var O,m=(O=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:O.summaryText;m&&this.set("data.cartNotification",Lz(m))};
$D.prototype.notificationEntityChanged=$D.prototype.notificationEntityChanged;_.c([_.h(_.MK),_.Y("design:type",Object)],$D.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],$D.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],$D.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],$D.prototype,"data",void 0);_.c([_.g({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(O,m){return _.Vh(O.entities,"commerceCartExpandableNotificationEntity",m)}}),
_.Y("design:type",Object)],$D.prototype,"commerceCartExpandableNotificationEntity",void 0);_.c([_.g({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(O,m){return _.Vh(O.entities,"commerceCartPageStateEntity",m)}}),
_.Y("design:type",Object)],$D.prototype,"commerceCartPageStateEntity",void 0);_.c([_.uc("#spinner"),_.Y("design:type",HTMLElement)],$D.prototype,"spinner",void 0);_.c([_.Tw("commerceCartExpandableNotificationEntity","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$D.prototype,"notificationEntityChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],$D);
_.y($D,"ytd-commerce-cart-renderer",function(){if(Whs!==void 0)return Whs;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Whs=O},{mode:1});var hym;var M9=function(){var O=_.u.apply(this,arguments)||this;O.bigImage=!1;return O};
_.X(M9,_.u);_.vr.Object.defineProperties(M9.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.placeholderImageUrl}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],M9.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],M9.prototype,"bigImage",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],M9.prototype,"placeholderImageUrl",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],M9);
_.y(M9,"ytd-empty-product-shelf-renderer",function(){if(hym!==void 0)return hym;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return hym=O},{mode:1});var Tpp;var r0=function(){var O=_.u.apply(this,arguments)||this;O.itemStyle="link-item";O.watchMetadataRefresh=!1;O.skinnyMode=!1;O.metaPanel=!1;O.inStructuredDescription=!1;O.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};O.updateOnResizeDebouncer=null;return O};
_.X(r0,_.u);_.v=r0.prototype;_.v.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.v.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"}}}}};
_.v.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.v.attachVEs=function(O){O.trackingParams&&_.uK().graftServerVe(O.trackingParams)};
_.v.handleUpdateMerchShelfAction=function(O){var m=this,G=_.b(O.updateMerchandiseShelfAction.merchandiseShelf,_.FO$);G&&(G.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){m.attachVEs(G);m.data=G},Number(G.renderDelayMs))):(this.attachVEs(G),this.data=G))};
_.v.updateOnResize=function(){if(this.JSC$16866_scrollContainer!==void 0&&this.JSC$16866_scrollContainer.clientWidth!==0&&this.items!==void 0){var O=this.JSC$16866_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-O));this.ytdHorizontalListBehavior.reposition_();var m;switch((m=this.data)==null?void 0:m.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var G,
B;((G=this.data)==null?void 0:(B=G.items)==null?void 0:B.length)===1?this.itemStyle="cta-item":this.itemStyle=O>=740?"large-item":"small-item"}}};
_.v.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Xu(this.updateOnResizeDebouncer,_.iU.after(100),this.updateOnResize)};
r0.prototype.debouncedUpdateOnResize=r0.prototype.debouncedUpdateOnResize;r0.prototype.dataChanged=r0.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],r0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Ir.YtdHorizontalListBehavior),_.Y("design:type",Object)],r0.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],r0.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],r0.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],r0.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],r0.prototype,"itemStyle",void 0);_.c([_.g({value:6}),_.Y("design:type",Number)],r0.prototype,"initialCount",void 0);
_.c([_.g({value:"data.items"}),_.Y("design:type",String)],r0.prototype,"itemsPath",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],r0.prototype,"watchMetadataRefresh",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],r0.prototype,"skinnyMode",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],r0.prototype,"metaPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],r0.prototype,"inStructuredDescription",void 0);
_.c([_.uc("#items"),_.Y("design:type",HTMLDivElement)],r0.prototype,"items",void 0);_.c([_.uc("#scroll-container"),_.Y("design:type",HTMLDivElement)],r0.prototype,"JSC$16866_scrollContainer",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],r0.prototype,"dataChanged",null);_.c([_.hG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],r0.prototype,"debouncedUpdateOnResize",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],r0);
_.y(r0,"ytd-merch-shelf-renderer",function(){if(Tpp!==void 0)return Tpp;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Tpp=O},{mode:2});var gYs;var Rf=function(){var O=_.u.apply(this,arguments)||this;O.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 O};
_.X(Rf,_.u);_.v=Rf.prototype;
_.v.addBackstagePostAction=function(O){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(O=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",O))&&(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:O}):this.set("data.contents",[{backstagePostThreadRenderer:O}]))};
_.v.addBackstageCommentAction=function(O){var m=this.get("addBackstageCommentAction.parentId",O);O=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",O);if(m&&O){m=this.postIdToIndices(m);for(var G=0;G<m.length;G++){var B=m[G];if(B<0)break;B="data.contents."+B+".backstagePostThreadRenderer.comments";this.get(B)&&(this.get(B+".backstageCommentsRenderer.contents")&&this.push(B+".backstageCommentsRenderer.contents",{commentThreadRenderer:O}),this.get(B+".backstageCommentsRenderer.teaserContents")?
this.push(B+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:O}):this.set(B+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:O}]))}}};
_.v.addBackstageReplyAction=function(O){var m=this.get("addBackstageReplyAction.parentId",O);O=this.get("addBackstageReplyAction.renderer.commentRenderer",O);m&&O&&this.setCreatorReply(m,O)};
_.v.banAuthorAction=function(O){var m=this.get("banAuthorAction.commentId",O);m&&(O=this.get("banAuthorAction.parentCommentId",O)||this.getParentPostId(m),this.removeFromStream(m,O))};
_.v.hideReportedCommentAction=function(O){var m=this.get("hideReportedCommentAction.commentId",O);m&&((O=this.get("hideReportedCommentAction.parentCommentId",O))||(O=this.getParentPostId(m)),this.removeFromStream(m,O))};
_.v.replaceBackstageCommentAction=function(O){var m=this.get("replaceBackstageCommentAction.commentId",O),G=this.get("replaceBackstageCommentAction.parentId",O);O=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",O);if(m&&G&&O){G=this.postIdToIndices(G);for(var B=0;B<G.length;B++){var Q=G[B];if(Q<0)break;var H=this.commentIdToIndex(m,Q,!1);if(H>=0){var M=this.get("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+H+".commentThreadRenderer.replies.commentRepliesRenderer");
M&&(O.replies={commentRepliesRenderer:M});this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",H,1,{commentThreadRenderer:O})}H=this.commentIdToIndex(m,Q,!0);if(H>=0){if(M=this.get("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(H+".commentThreadRenderer.replies.commentRepliesRenderer")))O.replies={commentRepliesRenderer:M};this.splice("data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
H,1,{commentThreadRenderer:O})}}}};
_.v.replaceBackstagePostAction=function(O){var m=this.get("replaceBackstagePostAction.itemId",O);if(m){m=this.postIdToIndices(m);for(var G=0;G<m.length;G++){var B=m[G];if(B<0)break;var Q=this.getPostRendererType(B),H=this.get("replaceBackstagePostAction.renderer."+Q,O);if(!H&&Q!=="sharedPostRenderer")break;var M=!1;H||(M=!0,H=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",O));if(!H)break;var R={};M?(_.ya(R,zIe,H),this.set("data.contents."+B+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
R)):(_.ya(R,new _.q$(Q),H),this.set("data.contents."+B+".backstagePostThreadRenderer.post",R))}}};
_.v.replaceBackstageReplyAction=function(O){var m=this.get("replaceBackstageReplyAction.replyId",O),G=this.get("replaceBackstageReplyAction.parentId",O);O=this.get("replaceBackstageReplyAction.renderer.commentRenderer",O);m&&O&&G&&this.setCreatorReply(G,O)};
_.v.removeCommentAction=function(O){var m=this.get("removeCommentAction.commentId",O);if(m){var G=this.get("removeCommentAction.parentCommentId",O);G&&this.get("removeCommentAction.isCreatorReply",O)?this.setCreatorReply(G,void 0):(G||(G=this.getParentPostId(m)),this.removeFromStream(m,G))}};
_.v.setCreatorReply=function(O,m){var G=this.getParentPostId(O);if(G){G=this.postIdToIndices(G);for(var B=0;B<G.length;B++){var Q=G[B];if(Q<0)break;var H=this.commentIdToIndex(O,Q,!1);if(H>=0){var M="data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+H;H=M+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";M+=".commentThreadRenderer.replies";m==void 0?(this.set(M,{}),this.set(H,!1)):(this.set(M,{commentRepliesRenderer:{teaserContents:[{commentRenderer:m}]}}),
this.set(M+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(H,!0))}H=this.commentIdToIndex(O,Q,!0);H>=0&&(H="data.contents."+Q+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+H,Q=H+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",H+=".commentThreadRenderer.replies",m==void 0?(this.set(H,{}),this.set(Q,!1)):(this.set(H,{commentRepliesRenderer:{teaserContents:[{commentRenderer:m}]}}),this.set(Q,!0)))}}};
_.v.removeFromStream=function(O,m){if(m){m=this.postIdToIndices(m);for(var G=0;G<m.length;G++){var B=m[G];if(B<0)break;var Q=this.commentIdToIndex(O,B,!1);Q>=0&&this.splice("data.contents."+B+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",Q,1);Q=this.commentIdToIndex(O,B,!0);Q>=0&&this.splice("data.contents."+B+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",Q,1);B="data.contents."+B+".backstagePostThreadRenderer.post.backstagePostRenderer";
Q=B+".backstageAttachment.pollRenderer.votedCommentId";this.get(Q)===O&&(this.set(Q,null),this.set(B+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(m=this.postIdToIndices(O).reverse(),G=0;G<m.length;G++){B=m[G];if(B<0)break;Q=this.getPostRendererType(B);var H=this.get("backstagePostThreadRenderer.post."+Q,this.data.contents[B]);H.postId===O?this.splice("data.contents",B,1):Q==="sharedPostRenderer"&&this.set("data.contents."+B+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);H.scheduledPublishTimeSec&&_.xc(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.v.postIdToIndices=function(O){for(var m=[],G=0;G<this.data.contents.length;G++){var B=this.getPostRendererType(G);this.get("backstagePostThreadRenderer.post."+B+".postId",this.data.contents[G])===O&&m.push(G);if(B==="sharedPostRenderer"){var Q=this.get("backstagePostThreadRenderer.post."+B+".originalPost.backstagePostRenderer.postId",this.data.contents[G]);B=this.get("backstagePostThreadRenderer.post."+B+".originalPost.postRenderer.postId",this.data.contents[G]);Q!==O&&B!==O||m.push(G)}}return m};
_.v.commentIdToIndex=function(O,m,G){if(m<0)return-1;var B,Q,H,M,R=_.b((B=this.data)==null?void 0:(Q=B.contents)==null?void 0:(H=Q[m])==null?void 0:(M=H.backstagePostThreadRenderer)==null?void 0:M.comments,Wis);return(m=G?R==null?void 0:R.teaserContents:R==null?void 0:R.contents)&&m.length?m.findIndex(function(x){return _.b(x,A$e).comment.commentRenderer.commentId===O}):-1};
_.v.getParentPostId=function(O){O=O.split(".");if(O[1])return O[0]};
_.v.getPostRendererType=function(O){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[O])?"sharedPostRenderer":"backstagePostRenderer"};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Rf.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Rf.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-backstage-items"})],Rf);
_.y(Rf,"ytd-backstage-items",function(){if(gYs!==void 0)return gYs;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return gYs=
O},{mode:1});var uos;var jLu={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},xD=function(){var O=_.u.apply(this,arguments)||this;O.disablePrescanVisibility=!0;O.canScheduleJobs=!0;O.engagementPanel=!1;O.hidePanelButton=!1;O.isWatchGrid=
!1;O.hasShownSubscribersOnlyDisclaimer=!1;O.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return O};
_.X(xD,_.u);_.v=xD.prototype;_.v.created=function(){this.initCommentsCsi_();_.V("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_")};
_.v.contentsChanged_=function(){var O;(O=this.data)!=null&&O.contents&&this.tickForCommentsTimer_("cml")};
_.v.headerChanged_=function(){var O;(O=this.data)!=null&&O.header&&this.tickForCommentsTimer_("cmhl")};
_.v.initCommentsCsi_=function(){_.ys("wn_comments");var O=_.yA();O&&_.as({clientScreenNonce:O},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.v.createCommentAction_=function(O){O=_.aM.unsafeClone(O);var m,G;if(O=(m=_.b(O,Y2U))==null?void 0:(G=m.contents)==null?void 0:G.commentThreadRenderer){var B,Q,H,M,R,x;!this.isBackstage&&((B=this.data)==null?0:(Q=B.header)==null?0:(H=Q.commentsHeaderRenderer)==null?0:(M=H.createRenderer)==null?0:(R=M.commentSimpleboxRenderer)==null?0:(x=R.zeroStep)==null?0:x.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var t,
W,Z;this.isBackstage&&_.b((t=this.data)==null?void 0:(W=t.header)==null?void 0:(Z=W.commentsHeaderRenderer)==null?void 0:Z.zeroStateMessage,J$o)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(O)}};
_.v.doReplyInsert_=function(O,m,G,B){B?this.splice(O,B,0,m):this.push(O,m)};
_.v.getRepliesPath_=function(O){return"data.contents."+O+".commentThreadRenderer.replies"};
_.v.getRepliesContentsPath_=function(O,m){O=this.getRepliesPath_(O);return m?O+".commentRepliesRenderer.teaserContents":O+".commentRepliesRenderer.contents"};
_.v.showSubscribersOnlyDisclaimer_=function(O){(O=O.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(O=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(O))&&(_.xc(this.hostElement,"yt-open-popup-action",[O,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.v.createCommentReplyAction_=function(O){O=_.aM.unsafeClone(O);var m=_.b(O,dve);if(O=m==null?void 0:m.contents){var G=this.commentIdToIndex_(m==null?void 0:m.parentCommentId);if(!(G<0)){var B=this.getRepliesPath_(G);if(this.get(B)){m=m.replyToCommentId;B=this.getRepliesContentsPath_(G,!1);if(this.get(B)){var Q=this.get(B).length,H=B+"."+(Q-1)+".continuationItemRenderer";this.get(H+".button")?(H=this.replyIdToIndex_(m,G,!1),this.doReplyInsert_(B,O,H,Q-1)):this.get(H)||(Q=this.replyIdToIndex_(m,G,
!1),this.doReplyInsert_(B,O,Q,null))}B=this.getRepliesContentsPath_(G,!0);this.get(B)?(G=this.replyIdToIndex_(m,G,!0),(!m||G>=0)&&this.doReplyInsert_(B,O,G,null)):this.set(B,[O])}else this.set(B,{commentRepliesRenderer:{teaserContents:[O]}})}}};
_.v.hideReportedCommentAction_=function(O){var m=_.b(O,R7o);if(O=m==null?void 0:m.commentId)(m=this.get("parentCommentId",m))||(m=this.getParentCommentId_(O)),this.remove_(O,m)};
_.v.getParentCommentId_=function(O){O=O.split(".");if(O[1])return O[0]};
_.v.removeCommentAction_=function(O){var m=_.b(O,N63);if(O=m==null?void 0:m.commentId)m=(m==null?void 0:m.parentCommentId)||this.getParentCommentId_(O),this.remove_(O,m)};
_.v.pinCommentAction_=function(O){O=_.aM.unsafeClone(O);var m=_.b(O,s78);m!=null&&m.commentId&&(O=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",O))&&(this.remove_(m.commentId),this.insert_(O,!0))};
_.v.unpinCommentAction_=function(O){O=_.aM.unsafeClone(O);O=_.b(O,Plp);if(O!=null&&O.commentId){var m,G,B=(m=O.actionResult)==null?void 0:(G=m.update)==null?void 0:G.commentThreadRenderer;B&&(this.remove_(O.commentId),this.insert_(B))}};
_.v.banAuthorAction_=function(O){var m=_.b(O,c$$);m!=null&&m.commentId&&(O=m.commentId,m=m.parentCommentId||this.getParentCommentId_(O),this.remove_(O,m))};
_.v.commentIdToIndex_=function(O){var m;return O&&(m=this.data)!=null&&m.contents?this.data.contents.findIndex(function(G){G=G.commentThreadRenderer;var B;return O===((G==null?void 0:G.commentViewModel)&&((B=_.b(G.commentViewModel,HY2))==null?void 0:B.commentId))}):-1};
_.v.insert_=function(O,m){m=m===void 0?!1:m;var G,B;if((G=this.data)==null?0:(B=G.contents)==null?0:B.some(function(H){return!!H.commentThreadRenderer}))for(G=0,B=this.data.contents.length;G<B;G++){var Q=this.data.contents[G].commentThreadRenderer;
if(jLu[O.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=jLu[Q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){m&&jLu[O.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===jLu[Q.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",G,1,{commentThreadRenderer:O}):this.splice("data.contents",G,0,{commentThreadRenderer:O});break}}else this.set("data.contents",[{commentThreadRenderer:O}])};
_.v.doReplyRemove_=function(O,m,G){O=this.replyIdToIndex_(O,m,G);O<0||(m=this.getRepliesContentsPath_(m,G),this.splice(m,O,1))};
_.v.remove_=function(O,m){m=this.commentIdToIndex_(m);m<0?(m=this.commentIdToIndex_(O),m<0||this.splice("data.contents",m,1)):_.V("web_delhi_comment_threads")||(this.doReplyRemove_(O,m,!1),this.doReplyRemove_(O,m,!0))};
_.v.replyIdToIndex_=function(O,m,G){if(m<0)return-1;m=this.getRepliesContentsPath_(m,G);m=this.get(m);if(!m||!m.length)return-1;G=0;for(var B=m.length;G<B;G++){var Q=void 0,H=void 0;if(((Q=m[G])==null?void 0:(H=Q.commentViewModel)==null?void 0:H.commentId)===O)return G}return-1};
_.v.tickForCommentsTimer_=function(O){_.Yc(O,void 0,"wn_comments")};
_.v.reloadComments_=function(O){O=_.b(O,BWu);_.b(O==null?void 0:O.command,_.Dw)&&_.tK(this.hostElement,[O==null?void 0:O.command])};
_.vr.Object.defineProperties(xD.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return!!((O=this.data)==null?0:(m=O.header)==null?0:(G=m.commentsHeaderRenderer)==null?0:G.isBackstageContent)}}});
_.vr.Object.defineProperties(xD,{template:{configurable:!0,enumerable:!0,get:function(){if(uos===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);uos=O}O=uos;return O}}});
xD.prototype.showSubscribersOnlyDisclaimer_=xD.prototype.showSubscribersOnlyDisclaimer_;xD.prototype.headerChanged_=xD.prototype.headerChanged_;xD.prototype.contentsChanged_=xD.prototype.contentsChanged_;_.c([_.h(_.fQ),_.Y("design:type",Object)],xD.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(_.SAp.YtHostElementBehavior),_.Y("design:type",Object)],xD.prototype,"ytHostElementBehavior",void 0);
_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",Function)],xD.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],xD.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],xD.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("data.header.commentsHeaderRenderer.isBackstageContent"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xD.prototype,"isBackstage",null);_.c([_.g(),_.Y("design:type",Object)],xD.prototype,"disablePrescanVisibility",void 0);_.c([_.g(),_.Y("design:type",Object)],xD.prototype,"canScheduleJobs",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],xD.prototype,"engagementPanel",void 0);
_.c([_.g(),_.Y("design:type",Object)],xD.prototype,"hidePanelButton",void 0);_.c([_.g(),_.Y("design:type",Object)],xD.prototype,"isWatchGrid",void 0);_.c([_.g(),_.Y("design:type",Object)],xD.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.c([_.Tw("data.contents"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xD.prototype,"contentsChanged_",null);
_.c([_.Tw("data.header"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xD.prototype,"headerChanged_",null);_.c([_.hG("yt-show-subscribers-only-disclaimer"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xD.prototype,"showSubscribersOnlyDisclaimer_",null);_.c([_.l({is:"ytd-comments"})],xD);var q9=function(){return _.Iu.apply(this,arguments)||this};
_.X(q9,_.Iu);_.v=q9.prototype;_.v.bindIf=function(O,m,G){return O?m:G};
_.v.bindIfDefined=function(O,m){return O!==void 0?O:m};
_.v.booleanString=function(O){return(!!O).toString()};
_.v.equals=function(){for(var O=_.eA.apply(0,arguments),m=O[0],G=1;G<O.length;G++)if(m!=O[G])return!1;return!0};
_.v.isGreaterThan=function(O,m){return O>m};
_.v.isLessThan=function(O,m){return O<m};
_.v.logicalAND=function(){for(var O=_.eA.apply(0,arguments),m=!!O[0],G=1;G<O.length;G++)m=m&&!!O[G];return m};
_.v.logicalOR=function(){for(var O=_.eA.apply(0,arguments),m=!!O[0],G=1;G<O.length;G++)m=m||!!O[G];return m};
_.v.toBool=function(O){return!!O};
q9.prototype.toBool=q9.prototype.toBool;q9.prototype.logicalOR=q9.prototype.logicalOR;q9.prototype.logicalAND=q9.prototype.logicalAND;q9.prototype.isLessThan=q9.prototype.isLessThan;q9.prototype.isGreaterThan=q9.prototype.isGreaterThan;q9.prototype.equals=q9.prototype.equals;q9.prototype.booleanString=q9.prototype.booleanString;q9.prototype.bindIfDefined=q9.prototype.bindIfDefined;q9.prototype.bindIf=q9.prototype.bindIf;_.c([_.p7()],q9);_.I79=[q9.prototype];var pmC;var SwC;var UG=function(){return _.u.apply(this,arguments)||this};
_.X(UG,_.u);UG.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
UG.prototype.onBackIconTap_=function(){window.history.back()};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],UG.prototype,"data",void 0);_.c([_.DO({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],UG);
_.y(UG,"yt-header-with-back-renderer",function(){if(SwC===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;pmC===void 0&&(pmC=document.createElement("template"));var B=pmC;G.call(m,B.content.cloneNode(!0),O.content.firstChild);SwC=O}O=SwC;return O},{mode:2});var EYH;var Lh$;var ti=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.X(ti,_.u);_.v=ti.prototype;_.v.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.v.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&(this.isDarkTheme=O,this.setUrl())};
_.v.dataChanged=function(){var O=this;if(this.data){var m=this.setUrl();m&&_.i4({destination:window,iframe:this.iframe,origin:_.Gcj(m.toString()),channelName:"yt-iframe",onMessage:function(G){(G=O.getCommunicationCommand(G.data))&&O.ytComponentBehavior.resolveCommand(G)},
onEstablished:function(){}})}};
_.v.setUrl=function(){if(this.data&&this.data.iframeUrl){var O=_.aO(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(O)return _.mI(this.iframe,O),O}};
_.v.getCommunicationCommand=function(O){var m;if((m=this.data)!=null&&m.onCommunicationCommandsMap){m=this.data.onCommunicationCommandsMap.find(function(Q){return Q.key===O});
if(m==null?0:m.value)return m==null?void 0:m.value;try{var G=xdC(_.Az(O)),B=this.data.onCommunicationCommandsMap.find(function(Q){return Q.key===(G==null?void 0:G.getMethodName())});
if(B==null?0:B.value)return B==null?void 0:B.value}catch(Q){}}};
ti.prototype.dataChanged=ti.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],ti.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],ti.prototype,"actionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ti.prototype,"data",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],ti.prototype,"isDarkTheme",void 0);_.c([_.uc("#iframe"),_.Y("design:type",HTMLIFrameElement)],ti.prototype,"iframe",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ti.prototype,"dataChanged",null);_.c([_.DO({is:"yt-iframe-renderer",disableElementRegistration:!0})],ti);
_.y(ti,"yt-iframe-renderer",function(){if(Lh$===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;EYH===void 0&&(EYH=document.createElement("template"));var B=EYH;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Lh$=O}O=Lh$;return O},{mode:2});_.WU=function(O){_.Iw.call(this);this.callback=O;this.bezier=new FpC(0,0,.4,0,.2,1,1,1);this.delay=new _.M5(this.next,window,this);this.JSC$16905_animating=!1;_.VV(this,this.delay)};
_.X(_.WU,_.Iw);_.WU.prototype.isAnimating=function(){return this.JSC$16905_animating};
_.WU.prototype.start=function(O,m,G){this.config={from:O,to:m,duration:G,startTime:(0,_.$G)()};this.JSC$16905_animating=!0;this.next()};
_.WU.prototype.stop=function(){this.delay.stop();this.JSC$16905_animating=!1;this.config=void 0};
_.WU.prototype.next=function(){if(this.config){var O=this.config,m=O.from,G=O.to,B=O.duration;O=O.startTime;var Q=(0,_.$G)()-O;O=this.bezier;B=OH3(O,Q/B);if(B==0)O=O.y0;else if(B==1)O=O.y3;else{Q=L4(O.y0,O.y1,B);var H=L4(O.y1,O.y2,B);O=L4(O.y2,O.y3,B);Q=L4(Q,H,B);H=L4(H,O,B);O=L4(Q,H,B)}O=_.Lk(O,0,1);this.callback(m+(G-m)*O);O<1?this.delay.start():this.JSC$16905_animating=!1}};_.ZT=new _.Us("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var Cv2={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},l78=function(O,m,G,B){_.Iw.call(this);this.JSC$16916_miniAppId=O;this.localReleaseId=m;this.derivedDeviceInterface=G;this.isForeground=B;this.JSC$16916_playNonceResolver=new _.Vg;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Rd("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Rd("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.V("enable_displaying_ppn");this.JSC$16916_miniAppClientDataProvider=_.KR().resolve(_.ZT);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;oY_(this);var Q=setTimeout(function(){_.ay(new _.j9("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16916_playNonceResolver.promise.then(function(){clearTimeout(Q)})};
_.X(l78,_.Iw);var ke2=function(O,m){O.JSC$16916_playNonceResolver.resolve(m!=null?m:lH(8));O.enableDisplayingPpn&&a7$(O).then(function(G){O.JSC$16916_miniAppClientDataProvider.clientData.set("post_play_nonce",G)})},a7$=function(O){return _.r(function(m){return m.nextAddress==1?m.yield(O.JSC$16916_playNonceResolver.promise,2):m.return(m.yieldResult)})},oY_=function(O){var m,G;
_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$16916_playNonceResolver.promise,2);m=B.yieldResult;G={miniAppInfo:{externalPostId:O.JSC$16916_miniAppId,localReleaseId:O.localReleaseId,postPlayNonce:m,derivedDeviceInterface:O.derivedDeviceInterface}};_.as(G);_.ju(B)})},cAo=function(O){O.state!==0?_.ay(new _.j9("[MiniAppPlayLogger] recordPlayStart failed with state "+Cv2[O.state])):(O.state=1,zI(O,"ma_cl"),Ji(O,"PLAY_EVENT_TYPE_PLAY_START"),yAH(O))},Ywe=function(O){O.isForeground=!1;
Ji(O,"PLAY_EVENT_TYPE_PLAY_PAUSE")},d68=function(O){O.state!==1&&O.state!==2?_.ay(new _.j9("[MiniAppPlayLogger] recordPlayEnd failed with state "+Cv2[O.state])):(O.state=3,window.clearInterval(O.playPingTimerId),O.playPingTimerId=NaN,fms(),Ji(O,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},wm8=function(O,m){O.state===2&&O.gameReady&&(O.firstClickRecorded?Date.now()-O.clickRecordedMs<O.playClickIntervalMs||(O.clickRecordedMs=Date.now(),Ji(O,"PLAY_EVENT_TYPE_PLAY_CLICK")):m&&(zI(O,"ma_fua"),Ji(O,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),O.firstClickRecorded=!0,O.clickRecordedMs=Date.now()))};
l78.prototype.logError=function(O){var m=this,G;_.r(function(B){if(B.nextAddress==1)return O.metadata.externalPostId=m.JSC$16916_miniAppId,G=O.metadata,B.yield(Promise.race([m.JSC$16916_playNonceResolver.promise,new Promise(function(Q){setTimeout(function(){Q("")},3E4)})]),2);
G.postPlayNonce=B.yieldResult;O.metadata.localReleaseId=m.localReleaseId;O.loggingError.level="WARNING";_.oy(O.loggingError,O.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:O.metadata});_.ju(B)})};
var eyu=function(O,m,G,B){var Q,H,M,R,x,t;_.r(function(W){if(W.nextAddress==1)return W.yield(O.JSC$16916_playNonceResolver.promise,2);Q=W.yieldResult;H={externalPostId:O.JSC$16916_miniAppId,localReleaseId:O.localReleaseId,postPlayNonce:Q,sdkVersion:G,api:m};B!==void 0&&(H.networkRequestsMeasurement={networkRequests:_.ij(B,1),cachedRequests:_.ij(B,2),transferredBytes:_.ij(B,3)},(M=B)==null?0:_.nq(M,Ua,6))&&(H.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((R=_.RO(B,
Ua,6))==null?void 0:Cq(R,1))||"0",cacheHits:((x=_.RO(B,Ua,6))==null?void 0:Cq(x,2))||"0",cachedBytes:((t=_.RO(B,Ua,6))==null?void 0:Cq(t,3))||"0"});_.LE("miniAppSdkUsage",H);_.ju(W)})},sLp=function(O,m,G){var B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C;
_.r(function(P){if(P.nextAddress==1)return P.yield(O.JSC$16916_playNonceResolver.promise,2);B=P.yieldResult;Q={externalPostId:O.JSC$16916_miniAppId,localReleaseId:O.localReleaseId,postPlayNonce:B,sdkVersion:G,measurementWindow:{startTimestampMs:String(pq(m,1)),endTimestampMs:String(pq(m,2))},frameRate:{averageFrameTimeDeltaMs:SZ(m,3),averageFrameIdleTimeMs:SZ(m,4)}};_.nq(m,tf,5)&&(Q.networkRequests={networkRequests:(H=nj(m))==null?void 0:_.ij(H,1),cachedRequests:(M=nj(m))==null?void 0:_.ij(M,2),transferredBytes:(R=
nj(m))==null?void 0:_.ij(R,3),sameOriginStatusCodeToCounts:D62((x=nj(m))==null?void 0:h0M(x,4)),crossOriginStatusCodeToCounts:D62((t=nj(m))==null?void 0:h0M(t,5))},(W=nj(m))==null?0:_.nq(W,Ua,6))&&(Q.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((Z=nj(m))==null?void 0:(z=_.RO(Z,Ua,6))==null?void 0:Cq(z,1))||"0",cacheHits:((J=nj(m))==null?void 0:(n=_.RO(J,Ua,6))==null?void 0:Cq(n,2))||"0",cachedBytes:((I=nj(m))==null?void 0:(S=_.RO(I,Ua,6))==null?void 0:Cq(S,3))||"0"});_.nq(m,
x0j,7)&&(Q.gameCapture={averageFrameTimeDeltaMs:(L=_.RO(m,x0j,7))==null?void 0:SZ(L,1),averageFrameIdleTimeMs:(C=_.RO(m,x0j,7))==null?void 0:SZ(C,2)});_.LE("miniAppPerformanceMetrics",Q);_.ju(P)})},Npu=function(O,m){var G,B;
return _.r(function(Q){if(Q.nextAddress==1)return Q.yield(O.JSC$16916_playNonceResolver.promise,2);G=Q.yieldResult;B={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:O.JSC$16916_miniAppId,postPlayNonce:G,miniAppReleaseId:O.localReleaseId},derivedDeviceInterface:O.derivedDeviceInterface,adTriggerType:m,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.LE("miniAppAdEvent",B);_.ju(Q)})};
l78.prototype.disposeInternal=function(){_.Iw.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Ji=function(O,m,G,B){G=G===void 0?{}:G;B=B===void 0?!1:B;var Q,H,M,R;_.r(function(x){if(x.nextAddress==1)return Q=O.isForeground,H=O.beforeReady,x.yield(O.JSC$16916_playNonceResolver.promise,2);M=x.yieldResult;R={externalPostId:O.JSC$16916_miniAppId,localReleaseId:O.localReleaseId,derivedDeviceInterface:O.derivedDeviceInterface,postPlayNonce:M,type:m};G.sequenceGroup=M;R.playState=H?"PLAY_STATE_NOT_READY":Q?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.LE("miniAppPlayEvent",R,
G);B&&_.CE();_.ju(x)})},zI=function(O,m){var G;
_.r(function(B){if(B.nextAddress==1)return G=(0,_.$G)(),B.yield(O.JSC$16916_playNonceResolver.promise,2);_.cd(m,G);_.ju(B)})},yAH=function(O){isNaN(O.playPingTimerId)&&(O.playPingTimerId=_.Zg(function(){O.state!==1&&O.state!==2?_.ay(new _.j9("[MiniAppPlayLogger] reportPlayPing failed with state "+Cv2[O.state])):Ji(O,"PLAY_EVENT_TYPE_PLAY_PING")},O.playPingIntervalMs))},D62=function(O){return Array.from(O.entries()).map(function(m){var G=_.K(m);
m=G.next().value;G=G.next().value;return{key:m,value:G}})};var Pv_=function(){},Fhe=function(O,m){O.showMiniAppAdCommand=m.showMiniAppAdCommand;
O.isEmbeddedInWebview=m.isEmbeddedInWebview;O.playLogger=m.playLogger},Ooj=function(O,m){var G;
return _.r(function(B){if(B.nextAddress==1){if(!O.showMiniAppAdCommand||!O.isEmbeddedInWebview)return B.return(AAU(O,m));O.adResolver=new _.Vg;var Q=new Ds;G=_.xG(Q,3,m);a$(O.showMiniAppAdCommand,w1U(G));return B.yield(O.adResolver.promise,2)}return B.return(B.yieldResult)})};
Pv_.prototype.onAdFinished=function(O){O=dQs(O);var m;(m=this.adResolver)==null||m.resolve(O)};
var AAU=function(O,m){var G;return _.r(function(B){if(B.nextAddress==1)B=B.yield((G=O.playLogger)==null?void 0:Npu(G,Blp(m)),2);else{var Q=B.return;var H=new Ygu;H=_.xG(H,1,2);B=Q.call(B,H)}return B})};var m33=new _.Us("INNERTUBE_MANAGER_TOKEN");var G69=function(){this.callbacks={}};
G69.prototype.initialize=function(O){var m=this;this.callbacks=O;window.youtubewebview?window.youtubewebview.onmessage=function(G){B32(m,G)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(G){B32(m,G)})};
var B32=function(O,m){if(m.data)try{var G=xdC(m.data);if(_.by(_.bg(G,1))!=null){var B=aV_(_.Eg(G,2));switch(G.getMethodName()){case "yt-mini-app-load-audio-state":var Q,H;(H=(Q=O.callbacks).onAudioStateLoaded)==null||H.call(Q,_.IE(B,fE(B,eP,1)));break;case "yt-mute-mini-app":var M,R;(R=(M=O.callbacks).onMuteMiniApp)==null||R.call(M);break;case "yt-unmute-mini-app":var x,t;(t=(x=O.callbacks).onUnmuteMiniApp)==null||t.call(x);break;case "yt-playable-exit":var W,Z;(Z=(W=O.callbacks).onExit)==null||Z.call(W);
break;case "yt-post-play-nonce":var z,J;(J=(z=O.callbacks).onPostPlayNonceReceived)==null||J.call(z,oE(B,2,eP));break;case "yt-confirm-exit-mini-app":var n,I;(I=(n=O.callbacks).confirmExitMiniApp)==null||I.call(n);break;case "yt-confirm-exit-mini-app-edu":var S,L;(L=(S=O.callbacks).confirmExitMiniAppEdu)==null||L.call(S);break;case "yt-benchmarking-response":var C,P;(P=(C=O.callbacks).onNativeBenchmarkingMessageReceived)==null||P.call(C,oE(B,2,eP));break;case "yt-mini-app-load-3p-consent-state":var w,
d;(d=(w=O.callbacks).multiplayer3pAckStateLoaded)==null||d.call(w,_.IE(B,fE(B,eP,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var D,OS;(OS=(D=O.callbacks).exitMiniAppSeenStateLoaded)==null||OS.call(D,_.IE(B,fE(B,eP,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var rN,xO;(xO=(rN=O.callbacks).onNavigateToNewMiniApp)==null||xO.call(rN);break;case "yt-game-data-available":var XI,Vf;(Vf=(XI=O.callbacks).onGameDataAvailable)==null||Vf.call(XI,oE(B,2,eP));break;case "yt-pause-mini-app":var US,
CN;(CN=(US=O.callbacks).onPauseMiniApp)==null||CN.call(US);break;case "yt-resume-mini-app":var oe,K$;(K$=(oe=O.callbacks).onResumeMiniApp)==null||K$.call(oe);break;case "yt-playable-ad-finished":var n$,qe;(qe=(n$=O.callbacks).onAdFinished)==null||qe.call(n$,oE(B,2,eP))}}else _.ay(Error("$h"))}catch(PM){_.oy(Error("ai"))}else _.ay(Error("bi"))};var HPY=function(O){this.rpcErrorCode=O};var VU=function(O,m,G){this.intervalMs=O;this.apiFunc=m;this.type=G;this.schedulerReady=!0};
VU.prototype.call=function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1){if(m.type!==1&&O===m.cachedValue)return B.return();m.pendingApiRequestResolver||(m.pendingApiRequestResolver=new _.Vg);G=m.pendingApiRequestResolver.promise;m.cachedValue=O;return B.yield(QY_(m),2)}return B.return(G)})};
VU.prototype.flush=function(O){O=O===void 0?!1:O;var m=this;return _.r(function(G){return m.cachedValue===void 0?G.return():G.yield(m.apiFunc(m.cachedValue,O),0)})};
var QY_=function(O){var m,G,B;return _.r(function(Q){switch(Q.nextAddress){case 1:if(!O.schedulerReady||!O.pendingApiRequestResolver)return Q.return();O.schedulerReady=!1;m=O.pendingApiRequestResolver;O.pendingApiRequestResolver=void 0;_.n_(Q,2);if(O.cachedValue===void 0){Q.jumpTo(4);break}return Q.yield(O.apiFunc(O.cachedValue),5);case 5:G=Q.yieldResult,m.resolve(G);case 4:_.P7(Q,3);break;case 2:B=_.uS(Q),m.reject(B);case 3:setTimeout(function(){return _.r(function(H){O.schedulerReady=!0;return H.yield(QY_(O),
0)})},O.intervalMs),_.ju(Q)}})};var $zO=window.location.origin+"/miniapp_cloudsaves",vEI=[400,401],HoU=_.Rd("cloud_save_game_data_rate_limit_ms",3E3),$32=function(O){var m=this;this.JSC$16960_miniAppId=O;this.loadAttempts=0;this.cloudSaveIntervalMs=HoU;this.initialDownloadDataSucceeded=!1;this.JSC$16960_playNonceResolver=new _.Vg;this.scottyUploadRateLimiter=new VU(this.cloudSaveIntervalMs,function(G,B){return vw_(m,G,B)},2);
this.downloadDataPromise=Kq8(this);this.downloadDataPromise.then(function(){m.initialDownloadDataSucceeded=!0}).catch(function(){})},MNe=function(O,m){m.then(function(G){return O.JSC$16960_playNonceResolver.resolve(G)})},rMH=function(O){return _.r(function(m){return O.cachedData===void 0?m.return(O.downloadDataPromise):m.return(O.cachedData)})},Rjo=function(O,m){return _.r(function(G){O.cachedData=m;
if(!O.initialDownloadDataSucceeded)throw Error("ci");return G.yield(O.scottyUploadRateLimiter.call(m),0)})},io_=function(){return new Promise(function(O){setTimeout(O,1E3,"")})},x3p=function(O,m){var G,B;
return _.r(function(Q){if(Q.nextAddress==1)return G=O.JSC$16960_miniAppId,Q.yield(Promise.race([O.JSC$16960_playNonceResolver.promise,io_()]),2);B={"X-YouTube-MiniAppId":G,"X-YouTube-PostPlayNonce":Q.yieldResult};"DELEGATED_SESSION_ID"in _.lz&&sse(m,B);return Q.return(B)})},vw_=function(O,m,G){G=G===void 0?!1:G;
return _.r(function(B){return QkY()?_.V("enable_cloud_save_error_popup_after_retry")?B.return(new Promise(function(Q,H){var M,R,x,t,W;return _.r(function(Z){switch(Z.nextAddress){case 1:M=0,R=!0,t=x=null;case 2:if(!(R&&M++<2)){Z.jumpTo(4);break}_.n_(Z,5);return Z.yield(qqs(O,m,G),7);case 7:x=Z.yieldResult;R=x.ok?!1:!vEI.includes(x.status);_.P7(Z,2);break;case 5:t=W=_.uS(Z);R=KWr(t);Z.jumpTo(2);break;case 4:x?x.ok?(bf(O,HoU),Q()):(bf(O,O.cloudSaveIntervalMs*2),H(Error("di`"+String(x.status),{cause:{rpcErrorCode:x.status}}))):
(bf(O,O.cloudSaveIntervalMs*2),H(t||Error("ei"))),_.ju(Z)}})})):B.return(new Promise(function(Q,H){var M,R;
return _.r(function(x){if(x.nextAddress==1){if(O.JSC$16960_miniAppId==="")return H(Error("fi")),x.return();_.n_(x,2);return x.yield(qqs(O,m,G),4)}if(x.nextAddress!=2)return M=x.yieldResult,M.ok?(bf(O,HoU),Q()):(bf(O,O.cloudSaveIntervalMs*2),H(Error("di`"+String(M.status),{cause:{rpcErrorCode:M.status}}))),_.P7(x,0);R=_.uS(x);bf(O,O.cloudSaveIntervalMs*2);H(R);_.ju(x)})})):B.return()})},qqs=function(O,m,G){G=G===void 0?!1:G;
var B,Q,H;return _.r(function(M){if(M.nextAddress==1)return B=_.pB((new TextEncoder).encode(m)),Q=MnI(),M.yield(x3p(O,Q),2);H=M.yieldResult;return M.return(fetch(Q,{method:"POST",body:new Blob([B]),headers:H,keepalive:G}))})},Kq8=function(O){var m,G;
return _.r(function(B){if(B.nextAddress==1){if(!QkY())return B.return("");if(O.JSC$16960_miniAppId==="")throw Error("fi");if(O.loadAttempts>2)return B.return(O.downloadDataPromise);_.n_(B,2);return B.yield(U3$(O),4)}if(B.nextAddress!=2)return m=B.yieldResult,B.return(m);G=_.uS(B);if(KWr(G)&&++O.loadAttempts<2)return B.return(Kq8(O));throw G;})},U3$=function(O){var m,G,B,Q,H;
return _.r(function(M){switch(M.nextAddress){case 1:return _.n_(M,2),m=MnI(),M.yield(x3p(O,m),4);case 4:return G=M.yieldResult,M.yield(fetch(m,{method:"GET",headers:G}),5);case 5:return B=M.yieldResult,B.ok?M.yield(B.text(),6):M.return(Promise.reject(Error("gi`"+String(B.status),{cause:new HPY(B.status)})));case 6:return Q=M.yieldResult,M.return((new TextDecoder).decode(_.Az(Q)));case 2:return H=_.uS(M),M.return(Promise.reject(H))}})},bf=function(O,m){O.cloudSaveIntervalMs=m;
O.scottyUploadRateLimiter.intervalMs=O.cloudSaveIntervalMs};
$32.prototype.flush=function(){var O=this;return _.r(function(m){return O.initialDownloadDataSucceeded?m.yield(O.scottyUploadRateLimiter.flush(!0),0):m.return()})};var tNu=VC(Jf(1),Zs(1)),Wq2=VC(Jf(1),Zs(3)),n6=function(O){this.callbacks=O};
_.v=n6.prototype;_.v.onAudioToggled=function(O,m){(m===void 0||m)&&_.cX("yt-mini-app-is-audio-enabled",O,2592E3)};
_.v.onPause=function(){this.onAudioToggled(!1,!1)};
_.v.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.v.returnNativeBenchmarkingMessage=function(){};
_.v.sendGameData=function(){};
_.v.sendStartGameFrameCapture=function(){};
var r3M=function(O,m,G){this.callbacks=O;var B=this;this.sdkVersion=new _.Vg;this.channel=new HNs(_.i4({destination:window,iframe:m,origin:(new URL(G.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var Q=XB;var H=Jf(5);var M=new O4j;M=_.aE(M,1,1E4);H=_.g5(H,4,$0p,M);Q(B,H);B.onAudioToggled(B.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){B.sdkVersion.resolve("")},1E4)};
_.X(r3M,n6);_.v=r3M.prototype;_.v.onAudioToggled=function(O,m){n6.prototype.onAudioToggled.call(this,O,m===void 0?!0:m);m=XB;var G=Jf(2),B=new F0_;O=_.tF(B,1,O);O=_.g5(G,3,$0p,O);m(this,O)};
_.v.onPause=function(){n6.prototype.onPause.call(this);XB(this,Jf(3))};
_.v.onResume=function(){n6.prototype.onResume.call(this);XB(this,Jf(4))};
_.v.returnNativeBenchmarkingMessage=function(O){var m=XB,G=Jf(6);var B=Zs(_.nq(O,Hk,1)?1:2);O=_.nq(O,Hk,1)?O:null;B=_.g5(B,5,z0,O);m(this,VC(G,B))};
_.v.sendGameData=function(O){var m=XB,G=Jf(7);O=_.g5(G,5,$0p,O);m(this,O)};
_.v.sendStartGameFrameCapture=function(){XB(this,Jf(9))};
var f6=function(O,m,G){var B,Q,H;return _.r(function(M){if(M.nextAddress==1)return B=O.callbacks,Q=B.onSdkCalled,H=m,M.yield(O.sdkVersion.promise,2);Q.call(B,H,M.yieldResult,G);_.ju(M)})};
r3M.prototype.onMessage=function(){var O=this;return $p2(X_,function(m){var G,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P,w,d,D,OS,rN,xO,XI,Vf,US,CN,oe,K$,n$,qe,PM,ZH,U3,p$,uy,vb,vM,Gp,Vu,Gu,x9,Am,Fc,O9;return _.r(function(Rj){switch(Rj.nextAddress){case 1:if(!Wg9(m.data))return _.ay(Error("hi")),Rj.return();G=_.Lq(m.data,1);_.V("enable_iframe_message_get_type_via_fields")&&(B=m.data,G=Q=_.Lq(B,1));switch(G){case 8:if(m.data.hasMetadata()){var DH=O.sdkVersion,zu=DH.resolve;var jo=m.data.getMetadata();jo=_.Eg(jo,
1);zu.call(DH,jo);clearTimeout(O.sdkVersionTimeoutId)}break;case 6:return Rj.jumpTo(2);case 16:if(!_.XS(m.data,RVU,14,fj))return Rj.return();H=_.lg(m.data,RVU,14,fj);(R=(M=O.callbacks).onGameFrameReceived)==null||R.call(M,H);return Rj.return();case 17:if(!_.XS(m.data,rRm,15,fj))return Rj.return();(t=(x=O.callbacks).onGameAudioReceived)==null||t.call(x,_.lg(m.data,rRm,15,fj));return Rj.return();case 1:if(DH=_.lg(m.data,Bs$,2,fj))switch(_.Lq(DH,1)){case 1:O.callbacks.onFirstFrameReady();if(_.V("enable_network_request_logging_on_game_events")&&
_.nq(DH,tf,4)){f6(O,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.RO(DH,tf,4));break}f6(O,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(jo=(zu=O.callbacks).onGameReady)==null||jo.call(zu);if(_.V("enable_network_request_logging_on_game_events")&&_.nq(DH,tf,4)){f6(O,"MINI_APP_SDK_API_GAME_READY",_.RO(DH,tf,4));break}f6(O,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.XS(DH,Wz,3,QDU))O.callbacks.onResourceLoaded(_.lg(DH,Wz,3,QDU))}return Rj.return();case 3:return Rj.jumpTo(3);case 4:return Rj.jumpTo(4);
case 2:return Rj.jumpTo(5);case 9:return Rj.jumpTo(6);case 10:return O.callbacks.onClick(),Rj.return();case 5:return Rj.jumpTo(7);case 11:if(!_.XS(m.data,x4,9,fj))return Rj.return();W=_.lg(m.data,x4,9,fj);(z=(Z=O.callbacks).onBenchmarkingMessageReceived)==null||z.call(Z,W);DH=m.reply;zu=Jf(1);jo=Zs(1);var f$=new x4;var Wb=new Uint8Array(nYe(W,fE(W,eTC,6))|0);f$=Jl(f$,5,eTC,_.u2(Wb,!1));jo=_.g5(jo,5,z0,f$);DH.call(m,VC(zu,jo));return Rj.return();case 12:return Rj.jumpTo(8);case 13:return Rj.jumpTo(9);
case 15:if(!_.V("enable_open_yt_content"))return m.reply(Wq2),Rj.return();if(!_.XS(m.data,MGU,12,fj))return m.reply(VC(Jf(1),Zs(2))),Rj.return();DH=_.lg(m.data,MGU,12,fj);J=_.Eg(DH,1);O.callbacks.onOpenYTContent(J);m.reply(tNu);return Rj.return();case 14:return Rj.jumpTo(10);default:return Rj.return()}Rj.jumpTo(0);break;case 2:if(!_.XS(m.data,bq,5,fj))return Rj.return();zu=m.data;DH=fE(zu,fj,5);zu=zu.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;n=j3N(zu,zu[_.vs]|0,bq,DH)||bq[psN]||(bq[psN]=
S3p(bq));DH=_.r_(n,qc,1,_.Rw());I=_.K(DH);S=I.next();case 12:if(S.done){Rj.jumpTo(14);break}L=S.value;C=new _.j9;C.level=_.Lq(L,2)===1?"WARNING":"ERROR";P=iP5(L.getSource());return Rj.yield(O.sdkVersion.promise,15);case 15:w={source:P,sdkVersion:Rj.yieldResult};_.Bb(_.bg(L,6))!=null?(C.message=L.getMessage(),C.stack=_.Eg(L,5),w.sdkErrorType=xzN(_.Lq(L,6)),_.Bb(_.bg(L,7))!=null&&(w.sdkApi=q7Y(_.Lq(L,7)))):C.stack=void 0;D=d=void 0;(D=(d=O.callbacks).onError)==null||D.call(d,{loggingError:C,metadata:w});
S=I.next();Rj.jumpTo(12);break;case 14:return Rj.return();case 3:return _.n_(Rj,16),DH=Rj.yield,zu=O.callbacks,jo=zu.onSave,f$=_.lg(m.data,Awo,4,fj),f$=_.Eg(f$,1),DH.call(Rj,jo.call(zu,f$),18);case 18:m.reply(tNu);_.P7(Rj,17);break;case 16:return OS=_.uS(Rj),rN=kK,xO=OS,XI=O.callbacks,Vf="MINI_APP_SDK_API_SAVE_DATA",Rj.yield(O.sdkVersion.promise,19);case 19:rN(xO,XI,Vf,Rj.yieldResult),m.reply(Wq2);case 17:return Rj.yield(f6(O,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return Rj.return();case 4:return _.n_(Rj,
21),Rj.yield(O.callbacks.onLoad(),23);case 23:US=Rj.yieldResult;DH=m.reply;zu=Jf(1);jo=Zs(1);f$=new Awo;f$=_.SS(f$,1,US);jo=_.g5(jo,3,z0,f$);DH.call(m,VC(zu,jo));_.P7(Rj,22);break;case 21:return CN=_.uS(Rj),oe=kK,K$=CN,n$=O.callbacks,qe="MINI_APP_SDK_API_LOAD_DATA",Rj.yield(O.sdkVersion.promise,24);case 24:oe(K$,n$,qe,Rj.yieldResult),m.reply(Wq2);case 22:return Rj.yield(f6(O,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Rj.return();case 5:_.n_(Rj,26);O.callbacks.onSendHighScore(ka(_.lg(m.data,
U0s,3,fj).getValue()));m.reply(VC(Jf(1),Zs(1)));_.P7(Rj,27);break;case 26:return PM=_.uS(Rj),ZH=kK,U3=PM,p$=O.callbacks,uy="MINI_APP_SDK_API_SEND_SCORE",Rj.yield(O.sdkVersion.promise,28);case 28:ZH(U3,p$,uy,Rj.yieldResult),m.reply(Wq2);case 27:return Rj.yield(f6(O,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Rj.return();case 6:if(!_.XS(m.data,tG$,8,fj)){Rj.jumpTo(30);break}DH=Rj.yield;zu=_.lg(m.data,tG$,8,fj);zu=_.Lq(zu,1);return DH.call(Rj,f6(O,q7Y(zu)),30);case 30:return Rj.return();case 7:return DH=
m.reply,zu=Jf(1),jo=Zs(1),f$=O.callbacks.getLanguage(),jo=Jl(jo,4,z0,Vr(f$)),DH.call(m,VC(zu,jo)),Rj.yield(f6(O,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Rj.return();case 8:if(!_.XS(m.data,qbj,10,fj))return Rj.return();vb=_.lg(m.data,qbj,10,fj);vM=O.callbacks;Gp=vM.onSdkPerformanceUpdate;return Rj.yield(O.sdkVersion.promise,33);case 33:return Gp.call(vM,vb,Rj.yieldResult),Rj.return();case 9:DH=m.data;zu=fE(DH,fj,11);if(_.by(_.bg(DH,zu))==null)return m.reply(VC(Jf(1),Zs(2))),Rj.return();
Vu=oE(m.data,11,fj);O.callbacks.onShareInviteCode(Vu);m.reply(tNu);return Rj.yield(f6(O,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Rj.return();case 10:if(_.XS(m.data,Pg2,13,fj)){Rj.jumpTo(35);break}return Rj.yield(O.callbacks.onShowMiniAppAd(2),36);case 36:return Gu=Rj.yieldResult,m.reply(VC(Jf(1),v7o(Gu))),Rj.yield(f6(O,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Rj.return();case 35:DH=_.lg(m.data,Pg2,13,fj);a:switch(_.Lq(DH,1)){case 1:DH={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:DH={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:DH={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}x9=DH;Am=x9.adType;Fc=x9.sdkApi;DH=Rj.yield;zu=O.callbacks;jo=zu.onShowMiniAppAd;f$=_.lg(m.data,Pg2,13,fj);f$=_.Eg(f$,2);return DH.call(Rj,jo.call(zu,Am,f$||void 0),38);case 38:return O9=Rj.yieldResult,m.reply(VC(Jf(1),v7o(O9))),Rj.yield(f6(O,Fc),39);case 39:return Rj.return()}})})};
var XB=function(O,m){_.r(function(G){O.channel.send(m);_.ju(G)})},yQ=function(O,m,G){this.callbacks=O;
var B=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;O=cLp(m,(new URL(G.toString())).origin);this.gameSnacks=new VrU(O);this.gameSnacks.page.onReady(function(){B.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){B.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var Q,H;(H=(Q=B.callbacks).onGameReady)==null||H.call(Q)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(Q,H){try{B.callbacks.onSendHighScore(H)}catch(M){kK(M,B.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(Q,H){var M;return _.r(function(R){if(R.nextAddress==1)return _.n_(R,2),R.yield(B.callbacks.onSave(B.decoder.decode(H)),4);if(R.nextAddress!=2)return _.P7(R,0);M=_.uS(R);kK(M,B.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return R.return()})});
this.gameSnacks.storage.onLoad(function(){var Q,H;return _.r(function(M){if(M.nextAddress==1)return _.n_(M,2),M.yield(B.callbacks.onLoad(),4);if(M.nextAddress!=2)return Q=M.yieldResult,M.return(B.encoder.encode(Q));H=_.uS(M);kK(H,B.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return M.return(B.encoder.encode(""))})});
this.gameSnacks.init()};
_.X(yQ,n6);yQ.prototype.onAudioToggled=function(O,m){n6.prototype.onAudioToggled.call(this,O,m===void 0?!0:m);var G;(G=this.gameSnacks)==null||G.audio.update(O)};
yQ.prototype.onPause=function(){n6.prototype.onPause.call(this);var O;(O=this.gameSnacks)==null||O.game.pause()};
yQ.prototype.onResume=function(){n6.prototype.onResume.call(this);var O;(O=this.gameSnacks)==null||O.game.resume()};var ZoC=Uzs,zjH=_.a(function(O){var m=O.data;var G=O.loadingProgress;var B=O.forPaused;O=_.K(_.Wf("",void 0,"LYYTdd"));var Q=O.next().value,H=O.next().value;O=_.K(_.Wf(!1,void 0,"K0waae"));var M=O.next().value,R=O.next().value,x=[],t=function(){return"transform: scaleX("+(_.o9(G)||0)+")"},W=null,Z=function(){return m()&&W!==null&&W!==void 0?W:W=m().showAnniversaryAnimation?6:ZoC()};
_.ER(function(){var I;if(m().timeOutMessages&&((I=m().timeOutMessages)==null?0:I.length)){W=null;I=_.K(x);for(var S=I.next();!S.done;S=I.next())clearTimeout(S.value);x.length=0;tnN(m().timeOutMessages,x,H,R)}},"BNu9j");
var z=function(){return!!m().persistentErrorMessageTitle},J=function(){return G!==void 0},n=function(){return m().title};
return _.q("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.q("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.q("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.q("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var I,S=(I=m().backgroundImage)==null?void 0:I.sources,L;return(S==null?0:S.length)?"background-image: url("+((L=S[0])==null?void 0:L.url)+")":""}}),_.q("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.q(_.U,{cond:function(){return!z()&&!(B==null?0:B())},
then:function(){var I={};return _.q("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.q("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.q(_.Yo,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+Z()},
data:function(){var S="loading_animation_"+Z();return{animationConfig:{name:S,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+S+".json",loop:!0,autoplay:!0}}}})),_.q("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.q(_.U,{cond:n,
then:function(){return _.q("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},n)}}),_.q("p",{class:_.bE("miniAppSplashScreenViewModelTimeoutMessage",(I.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return M()},I)),
"aria-live":"polite"},Q),_.q(_.U,{cond:J,then:function(){return _.q("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.q("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:t}))}})))}}),_.q(_.U,{cond:z,
then:function(){return _.q("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.q("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return m().persistentErrorMessageTitle}),_.q(_.U,{cond:function(){return!!m().persistentErrorMessageDescription},
then:function(){return _.q("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return m().persistentErrorMessageDescription})}}))}}),_.q(_.U,{cond:B,
then:function(){return _.q("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.q("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.q("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},n))}})))},"Ae");var JM9=new _.Us("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var VNs=Bx;Bx=function(O){function m(G){if(G){var B,Q;(B=G.__spec)==null||(Q=B.didUnmount)==null||Q.call(B);for(B=0;B<G.childNodes.length;B++)m(G.childNodes[B])}}
VNs==null||VNs(O);ap(function(){for(var G=0;G<O.length;G++)m(O[G])})};var boC=_.a(function(O){var m=O.data;var G=O.score;var B=O.formattedScore;var Q=O.onScoreChanged;var H=O.isEmbeddedInWebview;var M=_.GX("yt-mini-app-score-button-view-model"),R=function(){var J;return _.b(m==null?void 0:(J=m())==null?void 0:J.buttonViewModel,_.rc)},x=function(){var J;
return(G==null?void 0:G())||Number(m==null?void 0:(J=m())==null?void 0:J.lastScore)||0},t=function(){var J;
return(B==null?void 0:B())||((J=R())==null?void 0:J.title)||""},W,Z=1;
if(O=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))O=Number(O),Z=isNaN(O)?1:O/100;_.ER(function(){Q==null||Q(x());var J;var n=_.eg((J=R())==null?void 0:J.onTap);if(n){J=_.b(n,goC);var I,S,L;J=_.b(J==null?void 0:(I=J.panelLoadingStrategy)==null?void 0:(S=I.inlineContent)==null?void 0:(L=S.dialogViewModel)==null?void 0:L.customContent,eb8)}else J=void 0;if(I=J)I.score=t()},"Aekez");
O=_.nH(function(){var J,n,I=m==null?void 0:(J=m())==null?void 0:(n=J.loggingDirectives)==null?void 0:n.trackingParams;I&&_.lR(_.KR().resolve(_.GR),I);return!1});
_.Ln(function(){if(M.value){var J=M.value.querySelector("button"),n=R();J&&n&&WWN(J,n);_.ve("yt-share-playable-with-high-score",function(){var I=x().toString(),S=m==null?void 0:m().onShareHighScoreCommand,L=m==null?void 0:m().highScoreShareClientParamIdentifier,C=H==null?void 0:H();S&&(C?(L=new R9$,I=_.SS(L,2,I),a$(S,I.JSC$12374_serializeBinary())):L&&(_.KR().resolve(JM9).clientParams.set(L,{miniAppClientParams:{highScore:I}}),A_N(S,!1)))})}});
var z=function(){var J=R();J&&(G==null?0:G())&&J.accessibilityText&&(J.accessibilityText=J.accessibilityText.replace(W,t()));W=t();return{numberValue:x(),numberText:t(),heightPx:36,fontSizeMultiplier:Z,shouldAnimate:!(G==null||!G())&&!0}};
return _.q("yt-mini-app-score-button-view-model",{class:function(){var J={};return _.CJ("miniAppScoreButtonViewModelHost",(J.miniAppScoreButtonViewModelIsVisible=x()!==0,J))},
el:M,"on:click":O},ZpN(!1,function(){return _.q("span",{style:"display:none;"},x)}),_.q(_.u5,{data:function(){var J;
return m==null?void 0:(J=m())==null?void 0:J.buttonViewModel}},{buttonViewModel:function(J){return _.q(_.oF,{data:J.data,
animatedTextProps:z})}}))},"Be");var T3C=_.a(function(O){var m,G=(m=_.YH("yt-mini-app-is-theater-mode-enabled"))!=null?m:!1,B=_.V("enable_playable_container_save_button"),Q=_.V("enable_play_next_destination_page_in_toolbar");m={};return _.q("ytm-mini-app-top-bar-view-model",null,_.q("div",{class:_.bE("yt-mini-app-top-bar-view-model",(m["yt-mini-app-top-bar-view-model--mobile"]=!1,m["yt-mini-app-top-bar-view-model--desktop"]=!0,m))},_.q("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.q(_.U,{cond:function(){var H;return!!O.data().backButtonEdu&&
!((H=O.isExitMiniAppSeen)==null?0:H.call(O))},
then:function(){return _.q(_.u5,{data:function(){return O.data().backButtonEdu}},{buttonViewModel:_.oF})},
else:function(){return _.q(_.u5,{data:function(){return O.data().backButton}},{buttonViewModel:_.oF})}}),_.q(_.U,{cond:function(){return O.data().viewAllButton&&!0},
then:function(){return _.q(_.u5,{data:function(){return O.data().viewAllButton}},{buttonViewModel:_.oF})}}),_.q(_.U,{cond:function(){return O.data().title&&!0},
then:function(){return _.q("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return O.data().title})}})),_.q("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.q(_.U,{cond:function(){var H;
return(H=O.isDesktopPlayPage)==null?void 0:H.call(O)},
then:function(){return _.q(_.Mr,null,_.q(nw8,{highScoreButton:function(){return O.data().highScoreButton},
score:O.score,formattedScore:O.formattedScore,onScoreChanged:O.onScoreChanged,isEmbeddedInWebview:O.isEmbeddedInWebview}),_.q(X28,{enableSaveButton:function(){return _.o9(B)},
saveButton:function(){return O.data().saveButton},
isSaved:O.isSaved,onSaveToggled:function(){return O.onSaveToggled}}),_.q(fEU,{menuButton:function(){return O.data().menuButton}}))},
else:function(){return _.q(_.U,{cond:function(){return!1},
then:function(){return _.q(_.u5,{data:function(){return O.data().playPageButton}},{buttonViewModel:function(H){return _.q(_.oF,{data:H.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.q(nw8,{highScoreButton:function(){return O.data().highScoreButton},
score:O.score,formattedScore:O.formattedScore,onScoreChanged:O.onScoreChanged,isEmbeddedInWebview:O.isEmbeddedInWebview})}})}})),_.q("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.q(_.u5,{data:function(){return O.data().muteButton}},{toggleButtonViewModel:function(H){var M=H.data;
return _.q(_.BT,{data:function(){var R,x;return Object.assign({},M(),{isToggled:(x=(R=O.isAudioEnabled)==null?void 0:R.call(O))!=null?x:!0})},
onToggle:O.onAudioToggled,useOutlinedIcon:!0})}}),_.q(_.u5,{data:function(){return O.data().theatreModeButton}},{toggleButtonViewModel:function(H){var M=H.data;
return _.q("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.q(_.BT,{data:function(){return Object.assign({},M(),{isToggled:G})},
useOutlinedIcon:!0}))}}),_.q(hj$,{fullscreenButton:function(){return O.data().fullscreenButton}}),_.q(_.U,{cond:function(){return _.o9(Q)&&O.data().viewAllButton&&!1},
then:function(){return _.q(_.u5,{data:function(){return O.data().viewAllButton}},{buttonViewModel:_.oF})}}),_.q(_.U,{cond:function(){var H;
return!((H=O.isDesktopPlayPage)==null?0:H.call(O))},
then:function(){return _.q(_.Mr,null,_.q(X28,{enableSaveButton:function(){return _.o9(B)},
saveButton:function(){return O.data().saveButton},
isSaved:O.isSaved,onSaveToggled:function(){return O.onSaveToggled}}),_.q(fEU,{menuButton:function(){return O.data().menuButton}}))}}))))},"Ce");
T3C.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var fEU=_.a(function(O){return _.q(_.u5,{data:O.menuButton},{buttonViewModel:_.oF})},"De"),X28=_.a(function(O){var m=O.enableSaveButton;
var G=O.saveButton;var B=O.isSaved;var Q=O.onSaveToggled;return _.q(_.U,{cond:function(){return m()&&!(G==null||!G())},
then:function(){return _.q(_.u5,{data:function(){var H=_.b(G==null?void 0:G(),_.iR),M;return{toggleButtonViewModel:Object.assign({},H,{isToggled:(M=B==null?void 0:B())!=null?M:!(H==null||!H.isToggled)})}}},{toggleButtonViewModel:function(H){return _.q(_.BT,{data:H.data,
onToggle:Q})}})}})},"Ee"),nw8=_.a(function(O){var m=O.highScoreButton;
var G=O.score;var B=O.formattedScore;var Q=O.onScoreChanged;var H=O.isEmbeddedInWebview;return _.q(_.u5,{data:m},{miniAppScoreButtonViewModel:function(M){return _.q(boC,{data:M.data,score:G,formattedScore:B,onScoreChanged:Q,isEmbeddedInWebview:H})}})},"Fe"),hj$=_.a(function(O){O=O.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.q(_.Mr,null):_.q(_.u5,{data:O},{buttonViewModel:_.oF})},"Ge");_.gwo=new _.Us("DESKTOP_CURRENT_PAGE");var Ewp=_.a(function(O){var m=O.data;var G=_.V("force_active_time_logging_webview"),B=!1,Q=new G69,H=void 0,M=void 0,R=_.KR().resolve(m33),x=new Pv_,t=void 0,W=void 0,Z=[],z=void 0,J=void 0,n=!1,I=!1,S=!1,L=!1,C=new _.Vg,P=_.KR().resolve(JM9),w=_.KR().resolve(_.ZT),d=_.KR().resolve(_.v7(dm)),D,OS=(D=_.KR().resolve(_.v7(_.gwo)))==null?void 0:D.getCurrentPage(),rN=!1,xO=0,XI=function(er){er.preventDefault();return er.returnValue=""},Vf;
O=_.K(_.Wf(!((Vf=_.YH("yt-mini-app-is-audio-enabled"))!=null&&!Vf),void 0,"WhYQTd"));var US=O.next().value,CN=O.next().value,oe;Vf=_.K(_.Wf(!((oe=_.YH("exit-mini-app-seen-state"))==null||!oe),void 0,"jxhCJb"));var K$=Vf.next().value,n$=Vf.next().value;oe=_.K(_.Wf(!1,void 0,"MuvDfe"));var qe=oe.next().value,PM=oe.next().value;oe=_.K(_.Wf(void 0,void 0,"u9DLoc"));var ZH=oe.next().value,U3=oe.next().value;oe=_.K(_.Wf(void 0,void 0,"rykyJb"));var p$=oe.next().value,uy=oe.next().value;oe=_.K(_.Wf(!0,void 0,
"d8FUvf"));var vb=oe.next().value,vM=oe.next().value;oe=_.K(_.Wf(!1,void 0,"x9XwUb"));var Gp=oe.next().value,Vu=oe.next().value;oe=_.K(_.Wf(!1,void 0,"bcquyc"));var Gu=oe.next().value,x9=oe.next().value;oe=_.K(_.Wf(void 0,void 0,"FMAC5b"));var Am=oe.next().value,Fc=oe.next().value;oe=_.K(_.Wf(0,void 0,"HUGJEb"));var O9=oe.next().value,Rj=oe.next().value,DH=_.Al("mini-app-container-view-model"),zu=function(){return m().isEmbeddedInWebview},jo=function(){return m().hasPlayNextShelf};
_.ve("yt-page-type-changed",function(er){if(_.V("enable_is_mini_app_page_active_bugfix"))er.detail.newPageSubtype==="mini_app"&&er.detail.newPageType==="ytd-browse"||!vb()||G9();else if(er=_.wtY()==="mini_app",er!==vb())if(vM(er),er){var Js;er=(Js=m().playableId)==null?void 0:Js.toString();er!==void 0&&window.location.href.includes(er)&&!I&&(L=!0,f$(),VO.value&&g9(VO.value))}else er||G9()});
_.ve("yt-action",function(er){er.detail.actionName==="yt-engagement-panel-visible-changed"&&er.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&er.detail.args[2]==="PAmini_app_panel"&&G9();_.V("enable_is_mini_app_page_active_bugfix")?er.detail.actionName==="yt-history-load"&&!vb()&&(OS==null?0:OS.active)?(vM(!0),f$(),VO.value&&g9(VO.value)):er.detail.actionName==="yt-history-load"&&vb()&&!m().isEmbeddedInWebview&&yu():vb()&&er.detail.actionName==="yt-history-load"&&(L?L=!1:m().isEmbeddedInWebview||
yu())});
_.LS(function(){Wb()});
_.ER(function(){f$()},"bLMzme");
var f$=function(){var er=m().playableId,Js=m().localReleaseId,ly=m().derivedDeviceInterface;if(I)_.ay(new _.j9("[MiniAppContainerViewModel] onEnter was called more than once"));else{I=!0;H=new l78(er,Js,ly,document.visibilityState==="visible");cAo(H);M=new $32(er);u8p(R,er);Fhe(x,{showMiniAppAdCommand:m().showMiniAppAdCommand,isEmbeddedInWebview:m().isEmbeddedInWebview,playLogger:H});EsM()&&(J=document.body.style.backgroundColor,_.sb(document.body,"background-color","black"));e0();E9();C=new _.Vg;
if(m().isEmbeddedInWebview){if(er=(new URLSearchParams(window.location.search)).get("postPlayNonce"))ke2(H,er),rN=!0;Q.initialize({onAudioStateLoaded:function($h){pI($h)},
onMuteMiniApp:function(){pI(!1)},
onUnmuteMiniApp:function(){pI(!0)},
onExit:function(){},
onPostPlayNonceReceived:function($h){rN||(ke2(H,$h),rN=!0)},
confirmExitMiniApp:function(){var $h,qM,s_;return _.r(function(Ya){if(Ya.nextAddress==1)return m().confirmExitMiniAppCommand?Ya.yield(Promise.race([C.promise,Promise.resolve(!1)]),2):Ya.return();($h=Ya.yieldResult)?!m().confirmExitMiniAppCommandEdu||(s_=(qM=K$)==null?void 0:qM())!=null&&s_?pL(m().confirmExitMiniAppCommand):(pL(m().confirmExitMiniAppCommandEdu),_.cX("exit-mini-app-seen-state","true",2592E6)):pL(m().closeMiniAppCommand);_.ju(Ya)})},
onNativeBenchmarkingMessageReceived:function($h){$h=sEs(_.FWM($h));if(_.XS($h,_.o$,3,wpH)){var qM=_.lg($h,_.o$,3,wpH),s_=OPO();var Ya=ka(s_.getSeconds())-ka(qM.getSeconds());qM=_.ij(s_,2)-_.ij(qM,2);Ya<0&&qM>0?(Ya+=1,qM-=1E9):Ya>0&&qM<0&&(--Ya,qM+=1E9);Ya=(new Hk).setSeconds(Ya);Ya=_.ma(Ya,2,_.Qr(qM),0);_.Tc($h,1,Ya)}var FJ;(FJ=W)==null||FJ.returnNativeBenchmarkingMessage($h)},
multiplayer3pAckStateLoaded:function($h){yu($h)},
exitMiniAppSeenStateLoaded:function($h){m().confirmExitMiniAppCommandEdu&&n$($h)},
onNavigateToNewMiniApp:function(){pL(m().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function($h){$h=new URLSearchParams($h);var qM=void 0;$h.has("invite_code")&&(qM=new GDp,$h=$h.get("invite_code"),qM=_.SS(qM,1,$h));if($h=qM){var s_;(s_=W)==null||s_.sendGameData($h)}},
onPauseMiniApp:function(){B=!0;U9()},
onResumeMiniApp:function(){B=!0;IM()},
onAdFinished:function($h){x.onAdFinished($h)}});
m().showMultiplayer3pConsentDialogCommand||C.resolve(!0);pL(m().onContainerReadyCommand)}else ke2(H),C.resolve(!0);MNe(M,a7$(H));a7$(H).then(function($h){$h={miniAppPlayData:{postPlayNonce:$h}};var qM,s_=(qM=m().loggingDirectives)==null?void 0:qM.trackingParams;s_&&_.uK().stateChanged(s_,$h)});
er=m().showSignInDialogCommand;!QkY()&&er&&(_.cX("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),pL(er));m().confirmExitMiniAppCommand&&d&&(er=P65(m().confirmExitMiniAppCommand))&&(d.customConfirmationCommand=er)}},Wb=function(){J&&_.sb(document.body,"background-color",J);
n=!1;z&&z.release();M.flush().catch(function(er){_.ay(er)});
R.flush().catch(function(er){_.ay(er)});
d68(H);Gm();W=void 0;jYH(P)},G9=function(){vM(!1);
Wb();PM(!1);Fc(void 0);U3(void 0);uy(void 0);xO=0;Rj(0);I=!1},U9=function(){var er;
(er=W)==null||er.onPause();z&&z.release();M.flush().catch(function(Js){_.ay(Js)});
R.flush().catch(function(Js){_.ay(Js)});
Ywe(H);Vu(!0)},IM=function(){var er;
(er=W)==null||er.onResume();E9();er=H;er.isForeground=!0;Ji(er,"PLAY_EVENT_TYPE_PLAY_RESUME");Vu(!1)},pI=function(er){var Js;
(Js=W)==null||Js.onAudioToggled(er);CN(er)},yu=function(er){m().showMultiplayer3pConsentDialogCommand&&(m().isEmbeddedInWebview&&er!==void 0&&C.resolve(er),!er&&_.wtY()==="mini_app"&&pL(m().showMultiplayer3pConsentDialogCommand))},SK=function(){var er,Js,ly,$h;
return _.r(function(qM){if(qM.nextAddress==1){!m().isLivestream||m().disableVideoCapture||(er=W)!=null&&er.sendStartGameFrameCapture();Js=(new URL(window.location.href)).searchParams;if(Js.has("invite_code")){var s_=new GDp,Ya=Js.get("invite_code");ly=_.SS(s_,1,Ya);($h=W)==null||$h.sendGameData(ly)}qe()||(PM(!0),s_=H,s_.state!==1?_.ay(new _.j9("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+Cv2[s_.state])):(_.Ue("mini_app_ids_without_game_ready").includes(s_.JSC$16916_miniAppId)&&(s_.gameReady=
!0),s_.state=2,s_.beforeReady=!1,zI(s_,"ma_ffr"),Ji(s_,"PLAY_EVENT_TYPE_PLAY_READY")));return qM.yield(C.promise,2)}pL(m().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();m().isEmbeddedInWebview||yu();_.ju(qM)})},s9=function(){var er=H;
er.gameReady=!0;zI(er,"ma_gr")},Xc=function(er){var Js;
return _.r(function(ly){if(ly.nextAddress==1)return _.n_(ly,2),ly.yield(Rjo(M,er),4);if(ly.nextAddress!=2)return _.P7(ly,0);Js=_.uS(ly);pL(m().showSavingErrorPopupCommand);throw Js;})},xR=function(){var er,Js;
return _.r(function(ly){if(ly.nextAddress==1)return _.n_(ly,2),ly.yield(rMH(M),4);if(ly.nextAddress!=2)return er=ly.yieldResult,ly.return(er);Js=_.uS(ly);pL(m().showLoadingErrorDialogCommand);throw Js;})},vY=function(er){H.logError(er)},Sj=function(er,Js,ly){eyu(H,er,Js,ly)},pS=function(er,Js){sLp(H,er,Js)},ms=function(){!G&&m().isEmbeddedInWebview||_.KE();
wm8(H,!0);n||(window.addEventListener("beforeunload",XI,{capture:!0}),n=!0)},MB=function(er){var Js,ly,$h,qM,s_,Ya,FJ;
return _.r(function(gR){if(gR.nextAddress==1)return R&&(!t||t<er)&&er>0?gR.yield(IE_(R,er),3):gR.jumpTo(0);Js=gR.yieldResult;ly=_.K(Js);$h=ly.next().value;qM=ly.next().value;s_=$h;Ya=qM;((FJ=s_)==null?0:FJ.displayString)&&Ya&&(U3(Ya),uy(s_.displayString));_.ju(gR)})},TY=function(er){var Js=m().onBenchmarkingMessageReceivedCommand;
if(Js){var ly=OPO();_.g5(er,3,wpH,ly);a$(Js,N7U(er))}},ls=function(er){var Js=m().onGameFrameReceivedCommand;
if(Js){var ly=new Ds;var $h=new ySC;var qM=pq(er,1);$h=_.TH($h,1,qM);er=_.Eg(er,2);er=_.SS($h,2,er);ly=_.Tc(ly,2,er);a$(Js,w1U(ly))}},wN=function(er){var Js=m().onGameAudioDataReceivedCommand;
if(Js){var ly=new Ds;var $h=new Ys_;er=_.Eg(er,1);$h=_.SS($h,1,er);ly=_.Tc(ly,4,$h);a$(Js,w1U(ly))}},zp=function(){var er=new URLSearchParams(window.location.search);
if(m().isEmbeddedInWebview&&er&&er.get("override_hl")==="true"&&er.get("hl"))return er.get("hl");er=document.documentElement.lang;return er!==""?er:Pq},ts=function(er){var Js=m().onShareInviteCodeCommand;
if(Js)if(m().isEmbeddedInWebview){var ly=new R9$;er=_.SS(ly,1,er);a$(Js,x23(er))}else ly=m().inviteCodeShareClientParamIdentifier,P.clientParams.set(ly,{miniAppClientParams:{inviteCode:er}}),pL(Js)},SA=function(er){var Js,ly,$h;
return _.r(function(qM){if(qM.nextAddress==1)return Js=m().onMiniAppOpenYtContentRequested,R&&_.V("enable_open_yt_content")&&Js?qM.yield(p2u(R,er),3):qM.jumpTo(0);ly=qM.yieldResult;if(ly==="OK")if(m().isEmbeddedInWebview){var s_=new oI2;$h=Jl(s_,2,eP,Vr(er));a$(Js,kBC($h))}else w.clientData.set("video_id",er),pL(Js);_.ju(qM)})},Xr=function(er){xO+=_.ij(er,3);
er=Math.min(Math.log(1+xO/15E6*9)/Math.log(10),.99);Rj(er);XC(er)},XC=_.SG(function(er){var Js=m().updateLoadingProgressCommand;
if(Js){var ly=new oI2;er=Jl(ly,3,eP,_.w8(er));a$(Js,kBC(er))}},100),b2=function(er){return Ooj(x,er)},E9=function(){var er,Js;
((er=_.uAN())==null?void 0:(Js=er.wakeLock)==null?void 0:Js.request)!=null&&_.uAN().wakeLock.request("screen").then(function(ly){z=ly}).catch(function(){})},VO=_.GX("iframe");
_.ER(function(){m().isSupportedCountry&&(QkY()||_.V("enable_sign_in_promo")||!m().showSignInDialogCommand?VO.value&&g9(VO.value):pL(m().onMiniAppReadyCommand))},"ASuFde");
var Ws=function(){return _.q("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return qe()?0:-1},
el:VO})},g9=function(er,Js){Js=Js===void 0?!1:Js;
var ly=ch();ly&&(Js||ly.toString()!==er.getAttribute("src"))&&(W=Rcz(m().source,{isAudioEnabled:US,onFirstFrameReady:SK,onGameReady:s9,onSave:Xc,onLoad:xR,onError:vY,onSdkCalled:Sj,onSdkPerformanceUpdate:pS,onClick:ms,onSendHighScore:MB,onBenchmarkingMessageReceived:TY,getLanguage:zp,onShareInviteCode:ts,onResourceLoaded:Xr,onOpenYTContent:SA,onShowMiniAppAd:b2,onGameFrameReceived:ls,onGameAudioReceived:wN},er,ly),pm(er,"load",function(){zI(H,"ma_il");pm(er,"load",function(){g9(er,!0)})}),_.mI(er,
ly))},ch=function(){var er=m().url;
if(er&&(er=_.aO(er),er!==null)){if(m().source&&m().source==="MINI_APP_SOURCE_GAMESNACKS")er=_.Zn(er,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.V("enable_origin_query_parameter_bugfix")){var Js=_.gJ(_.yBf(er.toString()));Js=new URLSearchParams(Js||"");Js.set("origin",window.location.origin);Js=Js.toString();er=_.Eh(er).toString();er=_.p9(FUu.exec(er)[0]+(Js.trim()?"#"+Js:""))}return er}},c8=function(){var er={};
er=_.bE("yt-mini-app-container-view-model__loading-screen",(er["yt-mini-app-container-view-model__loading-screen--fade-out"]=qe,er));var Js=function(){return qe()?1:O9()};
return _.q("div",{class:er},_.q(_.u5,{data:function(){return m().splashScreen}},{miniAppSplashScreenViewModel:function(ly){return _.q(zjH,{data:ly.data,
loadingProgress:Js})}}))},dh=function(){var er={};
return _.q("div",{class:_.bE("yt-mini-app-container-view-model__pause-interstitial",(er["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!Gp()},er["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=Gp,er))},_.q(_.u5,{data:function(){return m().splashScreen}},{miniAppSplashScreenViewModel:function(Js){return _.q(zjH,{data:Js.data,
forPaused:!0})}}))},e0=function(){Z=[];
Z.push(_.Cm(window,"visibilitychange",function(){S||B&&zu()||(document.visibilityState==="visible"?IM():U9())}));
Z.push(_.Cm(window,"pagehide",function(){Wb()}));
Z.push(_.Cm(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&DH.value.dispatchEvent(new Event("tap"))},0)}));
Z.push(_.Cm(DH.value,"pointerdown",function(){wm8(H,!1)},!0));
Z.push(_.Cm(DH.value,"pause",function(){S=!0;U9()}));
Z.push(_.Cm(DH.value,"play",function(){S=!1;IM()}));
Z.push(_.Cm(DH.value,"exit",function(){Wb()}));
var er=navigator.keyboard,Js=er&&er.lock;Z.push(_.Cm(window,RSj,function(){x9(xju());xju()?(m().hasPlayNextShelf&&bh("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),v4("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),Js&&er.lock(["Escape"])):(m().hasPlayNextShelf&&v4("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),bh("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),Js&&er.unlock())}));
m().showMultiplayer3pConsentDialogCommand&&Z.push(_.Cm(window,"yt-playables-ack-3p-data-usage",function(){Sq_(R)}));
m().confirmExitMiniAppCommandEdu&&Z.push(_.Cm(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.cX("exit-mini-app-seen-state","true",2592E6)}));
m().onGameAudioDataReceivedCommand&&Z.push(_.Cm(window,"message",function(ly){ly=ly.event_;var $h,qM=($h=VO.value)==null?void 0:$h.src;if(qM&&ly.origin===(new URL(qM)).origin&&ly.data&&ly.data.type==="GAME_AUDIO"&&ly.data.audio&&ly.data.audio.length>0)if(_.V("enable_sending_unwrapped_game_audio_as_serialized_metadata"))GOY(m().onGameAudioDataReceivedCommand,ly.data.audio);else{var s_=new FileReader;s_.onload=function(){var Ya=new Ds;var FJ=new Ys_;FJ=_.SS(FJ,1,s_.result);Ya=_.Tc(Ya,4,FJ);a$(m().onGameAudioDataReceivedCommand,
w1U(Ya))};
s_.readAsDataURL(new Blob([ly.data.audio]))}}))},Gm=function(){Z.forEach(function(er){Sg(er)});
window.removeEventListener("beforeunload",XI,{capture:!0})},pL=function(er){er&&A_N(er,m().isEmbeddedInWebview||!1)},v4=function(er,Js){er=_.K(DH.value.getElementsByClassName(er));
for(var ly=er.next();!ly.done;ly=er.next())ly.value.classList.add(Js)},bh=function(er,Js){er=_.K(DH.value.getElementsByClassName(er));
for(var ly=er.next();!ly.done;ly=er.next())ly.value.classList.remove(Js)};
return function(){var er={};er=_.bE("yt-mini-app-container-view-model",(er["yt-mini-app-container-view-model--desktop"]=!0,er["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return m().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},er["yt-mini-app-container-view-model--ios-web-view"]=EsM(),er["yt-mini-app-container-view-model--no-top-bar"]=function(){return!m().topBar},er["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return m().hasPlayNextShelf},er["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return m().hasPlayNextShelf},er["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Gu()&&m().hasPlayNextShelf},er));
var Js={};Js=_.bE("yt-mini-app-container-view-model__content",(Js["yt-mini-app-container-view-model__content--desktop-content"]=!0,Js["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return m().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Js["yt-mini-app-container-view-model--desktop-play-page"]=function(){return m().hasPlayNextShelf},Js));
return _.q("mini-app-container-view-model",{el:DH},_.q("div",{class:er},_.q(_.U,{cond:function(){return m().topBar&&!Gu()},
then:function(){return _.q(_.u5,{data:function(){return m().topBar}},{miniAppTopBarViewModel:function(ly){return _.q(T3C,{data:ly.data,
isAudioEnabled:US,onAudioToggled:function($h){pI($h)},
score:ZH,formattedScore:p$,onScoreChanged:function($h){t=$h},
isEmbeddedInWebview:zu,isSaved:Am,onSaveToggled:function($h){Fc($h)},
isExitMiniAppSeen:K$,isDesktopPlayPage:jo})}})}}),_.q("div",{class:Js},_.q(_.U,{cond:vb,
then:function(){return Ws()}}),_.q(_.U,{cond:function(){return m().isLivestream},
then:function(){return dh()}}),_.q(_.U,{cond:function(){return!m().isEmbeddedInWebview},
then:function(){return c8()}}))))}()},"He");
Ewp.idomCompat=!0;_.qi(Ewp,"mini-app-container-view-model",{props:{data:_.VZ}});var Lqj=_.a(function(O){var m=O.data;return _.q("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.q("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.nH(function(){var G=m().onTap;G&&_.PE(G)})},_.q(_.U,{cond:function(){return m().icon},
then:function(G){return _.q(_.T$,{icon:function(){return G().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.q("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return m().title})))},"Ie");
Lqj.idomCompat=!0;var CVs=_.a(function(O){var m=_.Al("div"),G=_.K(_.Wf(void 0,void 0,"dg3xff")),B=G.next().value,Q=G.next().value;G=_.K(_.Wf(void 0,void 0,"AgHNfc"));var H=G.next().value,M=G.next().value;G=_.K(_.Wf(void 0,void 0,"fuTKCc"));var R=G.next().value,x=G.next().value,t=function(){var L=B();return L!==void 0?Math.abs(L):void 0},W=function(){var L=t();
return L===void 0||L<=3},Z=function(){var L=t();
var C=H(),P=R();L=L!==void 0&&C!==void 0&&P!==void 0?C-P-L:void 0;return L===void 0||L<=3},z=function(L){m.value&&m.value.scrollBy({top:0,
left:(_.kB("HTML_DIR")==="rtl"?-1:1)*L*m.value.clientWidth,behavior:"smooth"})},J=function(){var L;
Q((L=m.value)==null?void 0:L.scrollLeft);var C;M((C=m.value)==null?void 0:C.scrollWidth);var P;x((P=m.value)==null?void 0:P.clientWidth)},n=function(){z(-.5)},I=function(){z(.5)};
G=_.nH(function(){J()});
_.EZ(function(){J();if(m.value&&window.ResizeObserver){var L=new ResizeObserver(J);L.observe(m.value);_.LS(function(){L.disconnect()})}});
var S={};return _.q("yt-sponsorships-scrollable-shelf",{class:_.bE("ytdSponsorshipsScrollableShelfHost",O.className)},_.q("div",{class:_.bE("ytdSponsorshipsScrollableShelfContent",(S.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return O.data().previousButton&&O.data().nextButton&&!W()&&!Z()},S.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return O.data().previousButton&&!W()&&Z()},S.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return O.data().nextButton&&
W()&&!Z()},S)),
el:m,"on:scroll":G},O.children),_.q(_.U,{cond:function(){return!W()},
then:function(){return _.q(_.u5,{data:function(){return O.data().previousButton}},{buttonViewModel:function(L){return _.q(_.oF,{data:L.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:n})}})}}),_.q(_.U,{cond:function(){return!Z()},
then:function(){return _.q(_.u5,{data:function(){return O.data().nextButton}},{buttonViewModel:function(L){return _.q(_.oF,{data:L.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:I})}})}}))},"Je");
CVs.idomCompat=!0;var lEp=_.a(function(O){var m=O.data;O={};return _.q("yt-sponsorships-hub",{class:_.bE("ytdSponsorshipsHubHost",(O.ytdSponsorshipsHubHostIndented=function(){return m().indented},O))},_.q("div",{class:"ytdSponsorshipsHubHeader"},_.q("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.q("div",{class:"ytdSponsorshipsHubAvatar"},_.q(_.u5,{data:function(){return m().avatar}},{avatarViewModel:_.HP})),_.q(_.U,{cond:function(){return m().badgeImage},
then:function(G){return _.q("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.q("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.q("div",{class:"ytdSponsorshipsHubBadge"},_.q(_.KH,{data:G,targetWidth:24,targetHeight:24,alt:""}))))}})),_.q("div",{class:"ytdSponsorshipsHubDetails"},_.q("div",{class:"ytdSponsorshipsHubTierName"},function(){return m().tierName}),_.q("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return m().membershipType}),_.q("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return m().membershipDurationOrExpiry})),_.q("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.q(_.u5,{data:function(){return m().manageButton}},{buttonViewModel:function(G){return _.q(_.oF,{data:G.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.q(_.u5,{data:function(){return m().actionMenuButton}},{buttonViewModel:function(G){return _.q(_.oF,{data:G.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.q("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return m().perksTitle}),_.q(CVs,{data:function(){return{previousButton:m().previousPerkButton,
nextButton:m().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.q("div",{class:"ytdSponsorshipsHubPerkCards"},_.q(_.u5,{data:function(){return m().perkCards}},{sponsorshipsHubPerkCardViewModel:Lqj}),_.q(_.U,{cond:function(){return m().viewAllPerksButton},
then:function(G){return _.q(owu,{data:G})}}))))},"Ke");
lEp.idomCompat=!0;var owu=_.a(function(O){var m=O.data;return _.q("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.q(_.u5,{data:function(){return m().button}},{buttonViewModel:_.oF}),_.q("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.q("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return m().title}),_.q("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return m().subtitle})))},"Le");
owu.idomCompat=!0;_.qi(lEp,"yt-sponsorships-hub",{props:{data:_.VZ}});_.aE3=_.a(function(O){var m=O.data;return _.q("yt-dual-avatar-view-model",{class:_.bE("ytDualAvatarViewModelHost",O.className),style:_.hH({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var G;return((G=m().badgeCutoutRadius)!=null?G:14)+"px"}})},_.q("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.q(_.u5,{data:function(){return m().startAvatar}},{avatarViewModel:_.HP}),_.q(_.u5,{data:function(){return m().endAvatar}},{avatarViewModel:_.HP})),_.q(_.u5,{data:function(){return m().badge}},
{contentPreviewImageViewModel:function(G){return _.q("div",{class:"ytDualAvatarViewModelBadge"},_.q(_.IU,{data:G.data}))}}))},"Me");
_.aE3.idomCompat=!0;var yMU=_.a(function(O){var m=O.data;var G,B=!((G=_.KR().resolve(_.v7(_.B6)))==null||!G());O=_.bF(function(){var W,Z,z=B?(W=m().header)==null?void 0:W.backgroundColorDarkMode:(Z=m().header)==null?void 0:Z.backgroundColorLightMode;if(z!==void 0)return _.AV(z)},void 0,"TDdh7d");
G=_.bF(function(){var W,Z;return B?(W=m().header)==null?void 0:W.backgroundImagePart1Dark:(Z=m().header)==null?void 0:Z.backgroundImagePart1Light},void 0,"X0peMe");
var Q=_.bF(function(){var W,Z;return B?(W=m().header)==null?void 0:W.backgroundImagePart2Dark:(Z=m().header)==null?void 0:Z.backgroundImagePart2Light},void 0,"an0Hzd"),H=_.bF(function(){return _.kB("HTML_DIR")==="rtl"},void 0,"BltEgb"),M=_.Al("yt-sponsorships-perks-list"),R=!1,x=function(){var W=M.value;
if(W&&!R){var Z,z=(Z=W.parentElement)==null?void 0:Z.parentElement;if(z)for(W=W.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),Z=0;Z<W.length;++Z){var J=W[Z];if(J instanceof HTMLElement){z.scrollTo({top:J.offsetTop+J.clientHeight/2-z.clientHeight/2,behavior:"smooth"});R=!0;break}}}};
_.Ln(function(){var W=M.value;if(W&&window.ResizeObserver){var Z=new ResizeObserver(x);Z.observe(W);_.LS(function(){Z.disconnect()})}});
var t={};return _.q("yt-sponsorships-perks-list",{el:M,class:_.bE("ytdSponsorshipsPerksListHost",(t.ytdSponsorshipsPerksListHorizontalPadding=function(){return m().horizontalPaddingEnabled},t))},_.q("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.q("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.hH({"background-color":O})},_.q("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.q(_.U,{cond:G,then:function(W){var Z={};return _.q("div",{class:_.bE((Z.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=B,Z.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!B,Z.ytdSponsorshipsPerksListFlipped=H,Z))},_.q(_.KH,{data:W,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.q("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.q(_.U,{cond:Q,
then:function(W){var Z={};return _.q("div",{class:_.bE((Z.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=B,Z.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!B,Z.ytdSponsorshipsPerksListFlipped=H,Z))},_.q(_.KH,{data:W,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.q("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.q(_.u5,{data:function(){var W;
return(W=m().header)==null?void 0:W.dualAvatar}},{dualAvatarViewModel:_.aE3})))),_.q("div",{class:"ytdSponsorshipsPerksListBody"},_.q("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return m().title}),_.q(_.U,{cond:function(){return m().perks},
then:function(W){return _.q(_.gi,{each:W},function(Z,z){var J={};return _.q("div",{class:_.bE("ytdSponsorshipsPerksListPerkContainer",(J.ytdSponsorshipsPerksListSelectedPerk=function(){var n=z(),I=m().selectedPerkIndex;return n===I},J))},_.q(_.U,{cond:function(){return z()>0},
then:function(){return _.q("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.q("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.q(_.U,{cond:function(){return Z.icon},
then:function(n){return _.q(_.T$,{icon:function(){return n().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.q("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.q("div",{class:"ytdSponsorshipsPerksListPerkTitle"},Z.title),_.q("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.q(_.Jg,{text:Z.description})),_.q(_.U,{cond:function(){return Z.instructions},
then:function(){var n,I;return _.q("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.q("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(n=Z.instructions)==null?void 0:n.title),_.q("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.q(_.Jg,{text:(I=Z.instructions)==null?void 0:I.text})))}}))),_.q(_.U,{cond:function(){return Z.emoji},
then:function(n){return _.q("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.q(_.gi,{each:function(){return n()}},function(I){return _.q(_.KH,{data:I,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.q(k63,{data:Z}))})}})))},"Ne");
yMU.idomCompat=!0;var k63=_.a(function(O){var m=O.data;var G=function(M,R){return M===R},B=function(){var M=m();
M=_.b(M==null?void 0:M.badgesShelf,WGm);return M!==void 0&&M!==null?M:{previousButton:{},nextButton:{}}},Q=_.GX("div"),H=function(){var M=Q.value;
if(M){var R=M.parentElement;if(R){M=M.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var x=0;x<M.length;++x){var t=M[x];if(t instanceof HTMLElement){R.scrollTo({left:t.offsetLeft+t.clientWidth/2-R.clientWidth/2,behavior:"instant"});break}}}}};
_.Ln(function(){var M=Q.value;if(M){var R=new ResizeObserver(H);R.observe(M);_.LS(function(){R.disconnect()})}});
return _.q("div",null,_.q(_.U,{cond:function(){return m().badges},
then:function(M){return _.q(CVs,{data:B},_.q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:Q},_.q(_.gi,{each:function(){return M()}},function(R,x){var t={},W={},Z={};
return _.q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.q(_.U,{cond:function(){return x()>0},
then:function(){return _.q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.q("div",{class:_.bE("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(t.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return G(x(),m().currentBadgeIndex)},t.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!G(x(),m().currentBadgeIndex)},t))},_.q("div",{class:_.bE("ytdSponsorshipsPerksListLoyaltyBadge",(W.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return G(x(),
m().currentBadgeIndex)},W.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!G(x(),m().currentBadgeIndex)},W))},_.q(_.U,{cond:function(){return R.image},
then:function(z){var J={};return _.q("div",{class:_.bE((J.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return G(x(),m().currentBadgeIndex)},J.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!G(x(),m().currentBadgeIndex)},J))},_.q(_.KH,{data:z,
alt:""}))}})),_.q("div",{class:_.bE("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(Z.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return G(x(),m().currentBadgeIndex)},Z))},R.title)))})))}}))},"Oe");
k63.idomCompat=!0;_.qi(yMU,"yt-sponsorships-perks-list",{props:{data:_.VZ}});_.qi(_.a(function(O){return _.q("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.q(_.U,{cond:function(){return O.data().image},
then:function(m){return _.q(_.KH,{className:"ytwFantasyEmptyStateViewModelImage",data:m,ariaHidden:!0,alt:""})}}),_.q(_.Jg,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return O.data().title}}),_.q(_.Jg,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return O.data().subtitle}}),_.q(_.u5,{data:function(){return O.data().primaryButton}},{buttonViewModel:function(m){return _.q(_.oF,{data:m.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Pe"),"ytw-fantasy-empty-state-view-model",{props:{data:_.VZ}});var cMH;var Yqu=_.a(function(O){var m=O.data;var G=O.uniqueId;var B=O.overrides;O=_.bF(function(){var Q,H=((Q=m().timedAnimationData)==null?void 0:Q.animationTiming)||[];return{uniqueId:G(),timings:H,experimentEnabled:H.length>0,enabled:H.length>0}},void 0,"hiuXI");
return _.q("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.q(I59,{settings:O},_.q(_.u5,{data:function(){return m().buttonRenderer}},{buttonRenderer:function(Q){return _.q(_.VN,{data:Q.data,
buttonOverrides:B})}})))},"Qe");
Yqu.idomCompat=!0;_.qi(Yqu,"timed-animation-button-renderer",{props:{data:_.VZ,uniqueId:_.VZ,overrides:_.VZ}});var hi=function(){var O=_.u.apply(this,arguments)||this;O.hideJoinButtonBeforeSubscribed=_.V("hide_join_button_before_subscribed");O.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return O};
_.X(hi,_.u);_.v=hi.prototype;_.v.hasShowDialogCommand=function(O){return!!_.b(O,goC)};
_.v.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"}}}};
_.v.updateJoinButtonOverrides=function(){var O,m;(O=_.ZO(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(m=O.polymerController)==null||m.set("overrides",this.joinButtonOverrides);if(O=_.ZO(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))O.overrides=this.joinButtonOverrides};
_.v.handleButtonRefreshAction=function(O){if(O=_.b(O,B6C))this.set("data.membershipButton",O.membershipButton),this.notifyPath("data.membershipButton")};
_.v.onYtServiceRequestError=function(O){_.At(this.hostElement,O.detail.error.message)};
_.v.onKeydown=function(O){if(O.key==="Enter"){var m;(m=this.data)!=null&&m.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.v.handleUnsubscribeAction=function(){var O,m,G;((O=this.data)==null?void 0:(m=O.membershipButton)==null?void 0:(G=m.buttonRenderer)==null?void 0:G.style)==="STYLE_PRIMARY"&&_.ZO(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.vr.Object.defineProperties(hi.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.subscriptionStateEntity)==null||!O.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var O,m=(O=this.data)==null?void 0:O.membershipButton,G;O=(m==null?void 0:m.buttonRenderer)||_.b(m==null?void 0:(G=m.timedAnimationButtonRenderer)==null?void 0:G.buttonRenderer,_.v3);return(O==null?void 0:O.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(O==null?void 0:O.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(O==null?void 0:O.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var O;if(this.hasShowDialogCommand((O=this.data)==null?void 0:O.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var O;if(this.hasShowDialogCommand((O=this.data)==null?void 0:O.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.attributedTitle)}}});
hi.prototype.onYtServiceRequestError=hi.prototype.onYtServiceRequestError;hi.prototype.updateJoinButtonOverrides=hi.prototype.updateJoinButtonOverrides;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],hi.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],hi.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.MK),_.Y("design:type",Object)],hi.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],hi.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N4),_.Y("design:type",Object)],hi.prototype,"ironButtonState",void 0);_.c([_.g(),_.Y("design:type",Object)],hi.prototype,"data",void 0);_.c([_.T("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hi.prototype,"hideJoin",null);
_.c([_.g(),_.Y("design:type",String)],hi.prototype,"subscribeKey",void 0);_.c([_.g({selectorArgs:["subscribeKey"],selector:vM5}),_.Y("design:type",Object)],hi.prototype,"subscriptionStateEntity",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hi.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.c([_.T("subscriptionStateEntity"),_.g({reflectToAttribute:!0}),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hi.prototype,"subscribed",null);
_.c([_.T("subscribed","data.membershipButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hi.prototype,"joinButtonOverrides",null);_.c([_.T("data.navigationEndpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hi.prototype,"channelNameTabIndex",null);_.c([_.T("data.navigationEndpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hi.prototype,"channelNameRole",null);
_.c([_.T("data.attributedTitle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hi.prototype,"hasAttributedTitle",null);_.c([_.Tw("joinButtonOverrides"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hi.prototype,"updateJoinButtonOverrides",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],hi.prototype,"onYtServiceRequestError",null);
_.c([_.l({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],hi);
var d3u=_.WE()(hi,"ytd-video-owner-renderer",function(){if(cMH===void 0){var O=document.createElement("template");_.f(O,'\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"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" hidden$="[[!hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" 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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);cMH=O}O=cMH;return O},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.qi(_.a(function(O){var m=O.data;var G;O=_.K(_.Wf(!((G=_.YH("yt-mini-app-is-theater-mode-enabled"))==null||!G),void 0,"i2pjVd"));var B=O.next().value,Q=O.next().value;G=_.K(_.Wf(!1,void 0,"ga7V5c"));var H=G.next().value,M=G.next().value;_.Ln(function(){var t=_.Cm(window,RSj,function(){M(xju())});
_.LS(function(){Sg(t)})});
var R;G=(R=_.KR().resolve(_.v7(qTU)))!=null?R:function(){return _.q("div",null)};
_.Fg("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){Q(!0);_.cX("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Fg("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){Q(!1);_.cX("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
R={};O={};var x={};return _.q("mini-app-play-page-renderer",{class:_.bE("miniAppPlayPageRendererHost",(R.miniAppPlayPageRendererHostDetailsView=function(){return!B()},R))},_.q("div",{class:_.bE("miniAppPlayPageRendererGameContainer",(O.miniAppPlayPageRendererGameContainerDetailsView=function(){return!B()},O))},_.q(_.u5,{data:function(){return m().containerViewModel}},{miniAppContainerViewModel:Ewp}),_.q(_.U,{cond:function(){return m().channel&&m().subscribeButton},
then:function(){var t={};return _.q("div",{class:_.bE("miniAppPlayPageRendererChannelContainer",(t.miniAppPlayPageRendererHideVisibility=function(){return H()},t))},_.q(_.u5,{data:function(){return m().channel}},{videoOwnerRenderer:function(W){return _.q(d3u,{data:W.data})}}),_.q(_.u5,{data:function(){return m().subscribeButton}},{subscribeButtonViewModel:function(W){return _.q(_.Q8,{data:W.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.q(_.U,{cond:function(){return!B()&&m().description},
then:function(){var t={};return _.q("div",{class:_.bE("miniAppPlayPageRendererMiniAppDescriptionWrapper",(t.miniAppPlayPageRendererHideVisibility=function(){return H()},t))},_.q("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return m().description}))}})),_.q("div",{class:_.bE("miniAppPlayPageRendererPlayNextContainer",(x.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!B()},x.miniAppPlayPageRendererHideVisibility=function(){return H()},x))},_.q(_.u5,{data:function(){return m().sectionList}},
{sectionListRenderer:G})))},"Re"),"mini-app-play-page-renderer",{props:{data:_.VZ}});var TI=function(){var O=_.u.apply(this,arguments)||this;O.isSearch=!1;O.isConstrainedList=!1;O.hasChipsBar=!1;O.inReplyPanel=!1;O.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"}};O.monitorScroll=!0;O.SCROLL_ANIMATION_DURATION_MS=300;O.nextContinuation={continuationType:"sectionListContinuation"};return O};
_.X(TI,_.u);_.v=TI.prototype;
_.v.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(O){switch(O.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:_.V("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.V("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.v.created=function(){var O=this;this.JSC$17055_scrollAnimation=new _.WU(function(m){O.hostElement.scrollTop=m})};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.v.getItemsPath=function(){return"data.contents"};
_.v.replacePrimaryContent=function(O){this.set("data.contents",O)};
_.v.computeHasSortFilter=function(O){return!!O&&!!O.sortFilterSubMenuRenderer};
_.v.computeShouldScrollInPanel=function(O){var m;return!!(O==null?0:(m=O.scrollPaneStyle)==null?0:m.scrollable)};
_.v.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.JG(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.v.scrollToTop=function(){this.hostElement.scrollTop=0};
_.v.scrollToItemSection=function(O){if(O=this.getItemByIdentifier(O))O=this.getScrollPositionForItem(O),this.hostElement.scrollTop!==O&&this.JSC$17055_scrollAnimation.start(this.hostElement.scrollTop,O,this.SCROLL_ANIMATION_DURATION_MS)};
_.v.getItemByIdentifier=function(O){var m=this.contents.querySelectorAll("ytd-item-section-renderer");if(m&&m.length!==0){var G=Array.from(m).findIndex(function(B){return B.sectionIdentifier===O});
return m[G===-1?0:G]}};
_.v.getScrollPositionForItem=function(O){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===O)return 0;O=_.d9(O).y+this.hostElement.scrollTop-_.d9(this.hostElement).y;return Math.min(O,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.vr.Object.defineProperties(TI.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.targetId)==="browse-feedFEclips"}}});
TI.prototype.onScroll=TI.prototype.onScroll;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],TI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.jQ.YtLazyListBehavior),_.Y("design:type",Object)],TI.prototype,"ytLazyListBehavior",void 0);_.c([_.h(_.Z8.YtNextContinuationBehavior),_.Y("design:type",Object)],TI.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.h(_.I79),_.Y("design:type",Object)],TI.prototype,"ytBooleanLogicBehavior",void 0);_.c([_.h(_.Ww),_.Y("design:type",Object)],TI.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],TI.prototype,"data",void 0);_.c([_.g({value:2}),_.Y("design:type",Number)],TI.prototype,"initialCount",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],TI.prototype,"autoFill",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.Y("design:type",Boolean)],TI.prototype,"hasSortFilter",void 0);_.c([_.g({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.Y("design:type",Boolean)],TI.prototype,"hideBottomSeparator",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.Y("design:type",Boolean)],TI.prototype,"shouldScrollInPanel",void 0);
_.c([_.g(),_.Y("design:type",Object)],TI.prototype,"isSearch",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],TI.prototype,"isConstrainedList",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],TI.prototype,"responsiveSizing",void 0);_.c([_.g(),_.Y("design:type",Object)],TI.prototype,"hasChipsBar",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],TI.prototype,"pageSubtype",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],TI.prototype,"engagementPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],TI.prototype,"liveChatEngagementPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],TI.prototype,"inReplyPanel",void 0);_.c([_.uc("#action-button"),_.Y("design:type",HTMLElement)],TI.prototype,"actionButton",void 0);_.c([_.g(),_.Y("design:type",Object)],TI.prototype,"scrollUpButtonData",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],TI.prototype,"engagementPanelDropdown",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],TI.prototype,"engagementPanelDialog",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TI.prototype,"isClipList",null);_.c([_.uc("#contents"),_.Y("design:type",HTMLElement)],TI.prototype,"monitorScrollElement",void 0);_.c([_.uc("#contents"),_.Y("design:type",HTMLElement)],TI.prototype,"contents",void 0);
_.c([_.hG("scroll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],TI.prototype,"onScroll",null);_.c([_.l({is:"ytd-section-list-renderer",disableElementRegistration:!0})],TI);
var w29=_.WE()(TI,"ytd-section-list-renderer",function(){if(xt_===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);xt_=O}O=xt_;return O},{mode:1});var ej3;var D3H;var sYo;var N3j;var g0=function(){return _.u.apply(this,arguments)||this};
_.X(g0,_.u);g0.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
g0.prototype.onLikeButtonClick=function(O){O.stopPropagation();O.preventDefault()};
_.vr.Object.defineProperties(g0.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)!=null&&O.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],g0.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],g0.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],g0.prototype,"ytRendererStamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],g0.prototype,"data",void 0);
_.c([_.g({selectorArgs:["data.likeStatusEntityKey"],selector:eV}),_.Y("design:type",Object)],g0.prototype,"likeStatusEntity",void 0);_.c([_.T("data","likeStatusEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],g0.prototype,"likeButtonRenderer",null);_.c([_.l({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],g0);
_.y(g0,"ytd-slim-metadata-toggle-button-renderer",function(){if(N3j!==void 0)return N3j;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
return N3j=O},{mode:1});var uf=function(){var O=_.u.apply(this,arguments)||this;O.minimizePipBreakages=_.V("web_pip_minimize_breakages");O.showEqualizer=_.V("web_enable_playlist_video_lockup_equalizer");O.watchColorUpdate=_.V("kevlar_watch_color_update");O.actionMap={};return O};
_.X(uf,_.u);_.v=uf.prototype;_.v.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"}}}};
_.v.computeEditableClass=function(O){return O&&O.menu?"editable":""};
_.v.computeSelected=function(O){return!(O==null||!O.selected)};
_.v.computeUseColorPalette=function(O){return!!((O==null?0:O.lightColorPalette)&&(O==null?0:O.darkColorPalette))};
_.v.computeLargerPlaylistThumbs=function(O,m){return _.V("web_enable_playlist_bigger_thumbnails")&&!m};
_.v.computeShowPlayIcon=function(O){return!!O&&_.V("web_use_play_icon_for_playlist_panel_video_renderer")};
_.v.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.v.onYtServiceRequestSent=function(O,m){m.endpoint&&this.isHideEnclosingAction(m.endpoint)&&!this.selected&&P9o(_.tC(),this.data.videoId)};
_.v.isHideEnclosingAction=function(O){var m=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",O);O=this.get("likeEndpoint.status",O)==="INDIFFERENT";return m||O};
_.v.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.v.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.vr.Object.defineProperties(uf.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var O;return!!(this.withinMiniplayer&&((O=this.data)==null?0:O.actionButtons))}}});
uf.prototype.onYtServiceRequestSent=uf.prototype.onYtServiceRequestSent;uf.prototype.canReorderChanged=uf.prototype.canReorderChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],uf.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.Z2),_.Y("design:type",Object)],uf.prototype,"ytdLockupBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],uf.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],uf.prototype,"withinMiniplayer",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uf.prototype,"minimizePipBreakages",void 0);_.c([_.g({computed:"computeSelected(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],uf.prototype,"selected",void 0);
_.c([_.g({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],uf.prototype,"useColorPalette",void 0);_.c([_.g({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],uf.prototype,"largerPlaylistThumbs",void 0);_.c([_.g(),_.Y("design:type",Object)],uf.prototype,"showEqualizer",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],uf.prototype,"canReorder",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],uf.prototype,"touchPersistentDragHandle",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],uf.prototype,"handleIsHovered",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uf.prototype,"watchColorUpdate",void 0);_.c([_.g(),_.Y("design:type",String),_.Y("design:paramtypes",[])],uf.prototype,"reorderIcon",null);
_.c([_.g({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],uf.prototype,"showPlayIcon",void 0);_.c([_.g(),_.Y("design:type",String),_.Y("design:paramtypes",[])],uf.prototype,"playIcon",null);_.c([_.T("largerPlaylistThumbs"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],uf.prototype,"thumbnailWidth",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uf.prototype,"showActionButtons",null);
_.c([_.Si("canReorder"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uf.prototype,"canReorderChanged",null);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],uf.prototype,"onYtServiceRequestSent",null);_.c([_.l({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],uf);
_.y(uf,"ytd-playlist-panel-video-renderer",function(){if(sYo!==void 0)return sYo;var O=document.createElement("template");_.f(O,'\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      <template is="dom-if" if="[[showPlayIcon]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return sYo=O},{mode:2});var jd=function(){return _.u.apply(this,arguments)||this};
_.X(jd,_.u);jd.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],jd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],jd.prototype,"data",void 0);_.c([_.l({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],jd);
_.y(jd,"ytd-playlist-panel-supported-items",function(){if(D3H!==void 0)return D3H;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return D3H=
O},{mode:1});UNC=!0;Spu("\\P{N}");var zc6;var PV3=_.Xm("END_OF_PLAYLIST",void 0,"End of playlist"),Fq_=_.Xm("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),If=function(){var O=_.u.apply(this,arguments)||this;O.minimizePipBreakages=_.V("web_pip_minimize_breakages");O.hideHeaderText=!1;O.useColorPalette=!1;O.collapsed=!1;O.collapsedPreServerOverride="not_tracked";O.isHovered=!1;O.modernPanels=_.V("kevlar_watch_modern_panels");O.expandLabel=_.Xm("MINIPLAYER_EXPAND_LABEL");O.collapseLabel=_.Xm("MINIPLAYER_COLLAPSE_LABEL");
O.isFloating=!1;O.metaPanel=!1;O.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};O.currentIndex=void 0;return O};
_.X(If,_.u);_.v=If.prototype;
_.v.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"}}}};
_.v.created=function(){this.scrollThrottle=new _.Pu(this.onThrottledScroll,1E3,this)};
_.v.onMouseEnter=function(){this.isHovered=!0};
_.v.onMouseLeave=function(){this.isHovered=!1};
_.v.computeOverflowMenuData=function(O){return O&&O.menu?O.menu:null};
_.v.computeCollapsible=function(O){return!O};
_.v.computeHasPlaylistButtons=function(O){return!(!O||!O.playlistButtons)};
_.v.computeHasSeparateSaveButton=function(O){return!(!O||!O.saveButton)};
_.v.computeHasToolbarButton=function(O,m){return!(!O||!(m||O.saveButton||O.menu))};
_.v.computePlaylistType=function(O){if(O&&O.playlistId)return O.playlistId.substring(0,4)};
_.v.computeCanReorder=function(O){return O?O.playlistId&&O.playlistId.startsWith("TLPQ")?!0:!!O.isEditable&&!O.isInfinite:!1};
_.v.attached=function(){var O=this;try{_.KR().resolve(_.Rt).setPlaylistComponent(this.hostElement)}catch(m){if(_.V("kevlar_park_on_playlist_token_killswitch"))throw m;_.xA().parkOrScheduleJob(function(){_.KR().resolve(_.Rt).setPlaylistComponent(O.hostElement)},2,"ci")}_.rr(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.v.detached=function(){_.Rs(this.hostElement)};
_.v.computeTrailingIcon=function(O,m,G){return G?m?"yt-icons:collapse":"yt-icons:close":m?"yt-icons:expand":_.V("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.v.computeIndexMessage=function(O,m){return bP5(O+1)+" / "+bP5(m)};
_.v.onRenderStamperFinished=function(){if(this.scrollForStampDom){var O=!0;this.isHovered&&(O=!1);if(this.collapsed||this.hidden)O=!1;O&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.v.collapseChanged=function(){var O=this;this.collapsed||(_.t8(this.ytTaskEmitterBehavior.getTaskManager(),function(){O.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.v.hiddenChanged=function(){var O=this;this.hidden||_.t8(this.ytTaskEmitterBehavior.getTaskManager(),function(){O.scrollToCurrentVideo()})};
_.v.setupReordering=function(){var O=_.ZO(this.hostElement).querySelector("#items");fQC?_.Zts(this.ytReorderableBehavior,O,O,"playlist-drag-handle"):_.Zts(this.ytReorderableBehavior,O,O)};
_.v.scrollToCurrentVideo=function(){var O=this;_.ln.addJob(function(){var m=_.ZO(O.hostElement).querySelector("#items");m&&(m.style.setProperty("padding-bottom",""),(m=_.ZO(O.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]"))&&O.maybeScrollIntoContainerView(m))},8)};
_.v.maybeScrollIntoContainerView=function(O){if(this.minimizePipBreakages){var m=_.Y6(O);if(!jS(m).getWindow()||!m)return}m=O.parentElement||_.l4(document);var G=m||_.l4(document);var B=_.d9(O),Q=_.d9(G),H=_.cs8(G);if(G==_.l4(document)){var M=B.x-G.scrollLeft;B=B.y-G.scrollTop}else M=B.x-Q.x-H.left,B=B.y-Q.y-H.top;O=lxu(O);Q=G.clientHeight-O.height;H=G.scrollLeft;var R=G.scrollTop;H+=M-(G.clientWidth-O.width)/2;G=new _.yD(H,R+(B-Q/2));m.scrollLeft=G.x;m.scrollTop=G.y};
_.v.dataChanged=function(){var O=this;_.WSj(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.QA(this,function(){_.uT(O.ytTaskEmitterBehavior.getTaskManager(),function(){O.ytRendererBehavior.markDirty();O.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.v.onFullBleedPlayerChanged=function(){_.V("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.v.onFullscreenChanged=function(){_.V("web_watch_imax_theater_mode")||_.V("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.v.updateNowPlayingOverlay=function(){_.V("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.v.onPlaylistLockupNowPlaying=function(O,m){m&&(this.activeNowPlayingRenderer=m);this.updateNowPlayingOverlay()};
_.v.onScroll=function(){this.scrollThrottle.fire()};
_.v.onThrottledScroll=function(){var O=this;_.uT(this.ytTaskEmitterBehavior.getTaskManager(),function(){O.ytRendererBehavior.markDirty()})};
_.v.onToggleExpanded=function(O){!this.collapsible||O&&(_.Mj(O).tagName==="A"||_.Hu(_.$Z(O),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.v.setCollapsed=function(O){this.collapsible&&(this.collapsed=O,_.UB(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.v.handleCollapsedFromData=function(O){if(O){var m=O.playlistPanelCollapseState;m==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||m==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),m=m==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==m&&this.setCollapsed(m)):this.currentPlaylistId!==O.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(m=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==m&&this.setCollapsed(m),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=O.playlistId}};
_.v.handleDrop=function(O){var m=O.currDragItem;O=m.data.playlistSetVideoId;var G=_.ae(m.parentNode.childNodes,m),B=void 0;G>0&&(B=m.parentNode.childNodes[G-1].data.playlistSetVideoId);m=_.tC();if(m.responsePlaylistData&&m.responsePlaylistData.contents){var Q=hH5(O,m.responsePlaylistData);m.responsePlaylistData=(0,_.aM.unsafeClone)(m.responsePlaylistData);jes(m.responsePlaylistData.contents,Q,G);m.queueProxy?hk9(m.queueProxy,Q,G,O,B):m.playlistProxy&&hk9(m.playlistProxy,Q,G,O,B);_.WD(m,_.ZU(m,m.response?
m.response.autoplayRenderer:void 0))}};
_.v.handleDarkModeChange=function(O){O!==this.isDarkTheme&&(this.isDarkTheme=O)};
_.v.colorPaletteChanged=function(){var O,m=((O=this.data)==null?void 0:O.contents)||[],G;O=_.K(m);for(m=O.next();!m.done;m=O.next()){m=m.value;var B=void 0;if((B=m.playlistPanelVideoRenderer)==null?0:B.selected){O=m.playlistPanelVideoRenderer;B=m=void 0;(G=this.isDarkTheme?(m=O)==null?void 0:m.darkColorPalette:(B=O)==null?void 0:B.lightColorPalette)&&_.CH(this.hostElement,G);break}}this.useColorPalette=!!G};
_.vr.Object.defineProperties(If.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.moveThreeDotsMenuToMainHeader)&&_.V("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var O=_.KR().resolve(_.v7(_.Rt)),m;if(((m=this.data)==null?0:m.contents)&&(O==null?0:O.hasAutoplayData())){var G;if(((G=this.playlistLoopStateEntity)==null?void 0:G.state)==="PLAYLIST_LOOP_STATE_ONE"){if(O=this.data.currentIndex,O!==void 0){var B,Q;var H=(B=this.data.contents[O])==null?void 0:(Q=B.playlistPanelVideoRenderer)==null?void 0:Q.title}}else{var M,R=(M=_.b(O.getAutoplayEndpoint(),_.GC))==null?void 0:M.videoId,x,t;H=(x=this.data.contents.find(function(W){var Z;
return((Z=W.playlistPanelVideoRenderer)==null?void 0:Z.videoId)===R}))==null?void 0:(t=x.playlistPanelVideoRenderer)==null?void 0:t.title}return H}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)!=null&&O.nextVideoLabel?this.nextVideoTitle?_.HX(this.data.nextVideoLabel)+":":PV3:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var O;if(((O=this.data)==null?0:O.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.V("web_mix_long_byline_from_data"))return _.Qg(Fq_);var m;return(m=this.data)==null?void 0:m.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B=(O=this.data)==null?void 0:(m=O.playlistButtons)==null?void 0:(G=m.menuRenderer)==null?void 0:G.topLevelButtons;if(B)for(O=_.K(B),m=O.next();!m.done;m=O.next())if(m=m.value,m.playlistLoopButtonRenderer)return m.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var O;return!!(this.collapsed&&((O=this.data)==null?0:O.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.V("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
If.prototype.colorPaletteChanged=If.prototype.colorPaletteChanged;If.prototype.onPlaylistLockupNowPlaying=If.prototype.onPlaylistLockupNowPlaying;If.prototype.updateNowPlayingOverlay=If.prototype.updateNowPlayingOverlay;If.prototype.onFullscreenChanged=If.prototype.onFullscreenChanged;If.prototype.onFullBleedPlayerChanged=If.prototype.onFullBleedPlayerChanged;If.prototype.dataChanged=If.prototype.dataChanged;If.prototype.hiddenChanged=If.prototype.hiddenChanged;If.prototype.collapseChanged=If.prototype.collapseChanged;
If.prototype.onRenderStamperFinished=If.prototype.onRenderStamperFinished;If.prototype.onMouseLeave=If.prototype.onMouseLeave;If.prototype.onMouseEnter=If.prototype.onMouseEnter;_.c([_.h(_.Dm),_.Y("design:type",Object)],If.prototype,"ironResizableBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],If.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(USC.YtPlaylistPanelBehavior),_.Y("design:type",Object)],If.prototype,"ytPlaylistPanelBehavior",void 0);_.c([_.h(_.hg.YtTaskEmitterBehavior),_.Y("design:type",Object)],If.prototype,"ytTaskEmitterBehavior",void 0);_.c([_.h(_.zM9),_.Y("design:type",Object)],If.prototype,"ytReorderableBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],If.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],If.prototype,"ytdReduxBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],If.prototype,"actionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],If.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],If.prototype,"autoplayData",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],If.prototype,"withinMiniplayer",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],If.prototype,"minimizePipBreakages",void 0);
_.c([_.g({computed:"setMenuData_(data)"}),_.Y("design:type",Object)],If.prototype,"menuRendererData",void 0);_.c([_.g({computed:"computeOverflowMenuData(data)"}),_.Y("design:type",Object)],If.prototype,"overflowMenuDataTopRow",void 0);_.c([_.g({computed:"computeOverflowMenuData(data)"}),_.Y("design:type",Object)],If.prototype,"overflowMenuData",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],If.prototype,"hideHeaderText",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],If.prototype,"useColorPalette",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.Y("design:type",Boolean)],If.prototype,"collapsible",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],If.prototype,"collapsed",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],If.prototype,"hidden",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.Y("design:type",Boolean)],If.prototype,"hasPlaylistButtons",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.Y("design:type",Boolean)],If.prototype,"hasSeparateSaveButton",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.Y("design:type",Boolean)],If.prototype,"hasToolbar",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.Y("design:type",String)],If.prototype,"playlistType",void 0);_.c([_.g(),_.Y("design:type",Object)],If.prototype,"isHovered",void 0);_.c([_.g({selectorArgs:["playlistLoopStateEntityKey"],selector:_.its}),_.Y("design:type",Object)],If.prototype,"playlistLoopStateEntity",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],If.prototype,"modernPanels",void 0);
_.c([_.g({value:56}),_.Y("design:type",Number)],If.prototype,"scrollMargin",void 0);_.c([_.g({computed:"computeCanReorder(data)"}),_.Y("design:type",Boolean)],If.prototype,"canReorder",void 0);_.c([_.g(),_.Y("design:type",Object)],If.prototype,"expandLabel",void 0);_.c([_.g(),_.Y("design:type",Object)],If.prototype,"collapseLabel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],If.prototype,"isFloating",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],If.prototype,"metaPanel",void 0);_.c([_.g({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.Y("design:type",String)],If.prototype,"trailingIcon",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],If.prototype,"isDarkTheme",void 0);_.c([_.g({selector:_.Ys}),_.Y("design:type",Boolean)],If.prototype,"miniplayerIsActive",void 0);_.c([_.g({selector:function(O){return O.watch.playerState}}),
_.Y("design:type",Number)],If.prototype,"playerState",void 0);_.c([_.g({selector:_.Yg}),_.Y("design:type",Boolean)],If.prototype,"isFullscreen",void 0);_.c([_.g({selector:_.c6}),_.Y("design:type",Boolean)],If.prototype,"isTheaterMode",void 0);_.c([_.g(),_.Y("design:type",Object)],If.prototype,"activeNowPlayingRenderer",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],If.prototype,"moveThreeDotMenuToTopRow",null);
_.c([_.T("data","autoplayData","playlistLoopStateEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],If.prototype,"nextVideoTitle",null);_.c([_.T("data","nextVideoTitle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],If.prototype,"nextVideoLabel",null);_.c([_.T("collapsed"),_.Y("design:type",String),_.Y("design:paramtypes",[])],If.prototype,"buttonAriaLabel",null);
_.c([_.T("data","playlistId","longBylineText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],If.prototype,"mixLongByLine",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],If.prototype,"playlistLoopStateEntityKey",null);_.c([_.hG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],If.prototype,"onMouseEnter",null);
_.c([_.hG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],If.prototype,"onMouseLeave",null);_.c([_.g({reflectToAttribute:!0}),_.T("data","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],If.prototype,"showNextVideoHeader",null);_.c([_.hG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],If.prototype,"onRenderStamperFinished",null);
_.c([_.Tw("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],If.prototype,"collapseChanged",null);_.c([_.Tw("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],If.prototype,"hiddenChanged",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],If.prototype,"dataChanged",null);
_.c([_.T("isTheaterMode","isFullscreen"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],If.prototype,"isFullBleedPlayer",null);_.c([_.Tw("isTheaterMode","isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],If.prototype,"onFullBleedPlayerChanged",null);_.c([_.Tw("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],If.prototype,"onFullscreenChanged",null);
_.c([_.Tw("playerState","miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],If.prototype,"updateNowPlayingOverlay",null);_.c([_.hG("yt-playlist-lockup-now-playing-active"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],If.prototype,"onPlaylistLockupNowPlaying",null);
_.c([_.Tw("data","isDarkTheme"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],If.prototype,"colorPaletteChanged",null);_.c([_.l({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],If);
_.AM2=_.WE()(If,"ytd-playlist-panel-renderer",function(){if(ej3===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);ej3=O}O=ej3;return O},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var ONK;var p6=function(){var O=_.u.apply(this,arguments)||this;O.modern=_.V("web_button_rework");return O};
_.X(p6,_.u);p6.prototype.computeShouldButtonBeVertical=function(O,m){return O||m};
p6.prototype.onYtServiceRequestSent=function(O,m){(O=_.b(m.endpoint,_.cc))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.jh("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:O.status})):this.handleLikeEndpoint(O))};
p6.prototype.computelikeStatusEntityKey=function(O){return O==null?void 0:O.likeStatusEntityKey};
p6.prototype.handleLikeEndpoint=function(O){O.status==="LIKE"?this.JSC$17081_ytdDislikeToggleButtonRenderer.toggle(!1):O.status==="DISLIKE"?this.JSC$17081_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17081_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17081_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.vr.Object.defineProperties(p6.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var O;return hcY(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(O=this.likeStatusEntity)==null?void 0:O.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var O;if(this.data&&((O=this.data)==null||!O.hideDislikeButton)){var m;return hcY(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(m=this.likeStatusEntity)==null?void 0:m.likeStatus)}}}});
p6.prototype.onYtServiceRequestSent=p6.prototype.onYtServiceRequestSent;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],p6.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],p6.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],p6.prototype,"vertical",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],p6.prototype,"textTransform",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],p6.prototype,"useShortsIcon",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],p6.prototype,"underIconLabel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],p6.prototype,"modern",void 0);_.c([_.g({value:"left"}),_.Y("design:type",String)],p6.prototype,"buttonTooltipPosition",void 0);
_.c([_.g(),_.Y("design:type",Object)],p6.prototype,"overrides",void 0);_.c([_.uc("#like-button"),_.Y("design:type",Object)],p6.prototype,"JSC$17081_ytdLikeToggleButtonRenderer",void 0);_.c([_.uc("#dislike-button"),_.Y("design:type",Object)],p6.prototype,"JSC$17081_ytdDislikeToggleButtonRenderer",void 0);_.c([_.T("data","likeStatusEntity.likeStatus","useShortsIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],p6.prototype,"likeButton",null);
_.c([_.T("data","likeStatusEntity.likeStatus","useShortsIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],p6.prototype,"dislikeButton",null);_.c([_.g({computed:"computelikeStatusEntityKey(data)"}),_.Y("design:type",String)],p6.prototype,"likeStatusEntityKey",void 0);_.c([_.g({selectorArgs:["likeStatusEntityKey"],selector:eV}),_.Y("design:type",Object)],p6.prototype,"likeStatusEntity",void 0);
_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],p6.prototype,"onYtServiceRequestSent",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],p6);
var mpr=_.WE()(p6,"ytd-like-button-renderer",function(){if(ONK===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);ONK=O}O=ONK;return O},{mode:1});_.GYx={};
_.GYx.YtConditionalRendererBehavior=[_.N.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(O,m){var G=this,B,Q;return _.r(function(H){switch(H.nextAddress){case 1:if(!m)return G.hidden=!0,G.showSpinner=!1,H.return();if((B=O)==null?0:(Q=B.visibilityCondition)==null?0:Q.mode)switch(O.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return H.jumpTo(5);default:return H.jumpTo(6)}G.showSpinner=
!1;G.hidden=!0;return H.yield(G.shouldShow_(O),4);case 4:G.hidden=!H.yieldResult;H.jumpTo(0);break;case 5:return H.yield(G.shouldShow_(O),8);case 8:G.showSpinner=H.yieldResult;G.hidden=!1;H.jumpTo(0);break;case 6:return G.showSpinner=!1,H.yield(G.shouldShow_(O),9);case 9:G.hidden=!H.yieldResult,_.ju(H)}})},
shouldShow_:function(O){return O&&O.supportedDatas&&O.supportedDatas.rendererVisibilityConditionData&&O.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(O.supportedDatas.rendererVisibilityConditionData.showIf):O&&O.visibilityCondition&&O.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(O.visibilityCondition.showIf):O&&O.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(O.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(O){switch(O){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(O){switch(O){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var O=_.xc(this.hostElement,"yt-get-mdx-status");return O.length==1&&O[0].connected},
isLocationPermissionGranted_:function(){var O;return _.r(function(m){return m.nextAddress==1?navigator.permissions?m.yield(navigator.permissions.query({name:"geolocation"}),3):m.jumpTo(2):m.nextAddress!=2?(O=m.yieldResult,m.return(Promise.resolve(O.state==="granted"))):m.return(Promise.resolve(!1))})}}];var BNu=function(O,m){m=m===void 0?{}:m;var G=function(B){var Q=document.createElement(O),H;var M=(H=Q.polymerController)!=null?H:Q;b1Y(Q,M,B,m);return Q};
G.debugName=O+" (CoW wrapped)";return G}("yt-icon",{callbackProps:["onKeydown"]}),QeJ=_.V("kevlar_use_wil_icons")?_.a(function(O){var m=O.icon;
var G=O.active;var B=O.className;var Q=O.style;var H=O.dataSelected;var M=O.dataDisabled;var R=O.role;var x=O.themeOverride;var t=O.animateIcon;var W=O.ariaHidden;var Z=O.ariaExpanded;var z=O.ariaLabel;var J=O.tabindex;var n=O.id;var I=O.iconFilter;var S=O.onKeydown;var L=function(){var w=m==null?void 0:m(),d=null,D=void 0;w&&(w=D93(w),w=NQz(w),w.length&&(d=w[1],D=w[0]));return{iconName:d,iconSetName:D}},C=function(){return sf9(L().iconName,G==null?void 0:G(),void 0,void 0,L().iconSetName,_.KR().resolve(_.nm))},
P=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:I==null?void 0:I()}};
return _.q(_.U,{cond:t,then:function(){return _.q(BNu,{icon:m,active:G,className:B,style:Q,dataSelected:H,dataDisabled:M,role:R,themeOverride:x,ariaHidden:W,ariaExpanded:Z,ariaLabel:z,tabindex:J,id:n,iconFilter:I,onKeydown:S})},
else:function(){return _.q(_.U,{cond:C,then:function(w){return _.q("span",{class:_.bE("ytIconWrapperHost",B),role:R,"aria-label":z,"aria-hidden":W,tabindex:function(){return isNaN(Number(J==null?void 0:J()))?void 0:Number(J==null?void 0:J())},
id:n,style:Q,"on:keydown":_.nH(function(d){return void(S==null?void 0:S(d))})},_.q(JrS,{data:w,
options:P}))}})}})},"Se"):BNu;var HNb=function(O){var m=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];BgN();_.HI("ytglobal.ytUtilActivityCallback_",function(){_.UB(O,"yt-user-activity")});
new vH(function(){return m.JSC$17097_onMouseMove});
document.addEventListener("scroll",function(){return m.onScroll});
window.addEventListener("resize",function(){return m.onResize})},vOh=function(O,m,G){m in O.eventJobIds||(G=_.uW().addLowPriorityJob(function(){_.KE();
delete O.eventJobIds[m]},G),O.eventJobIds[m]=G)};
HNb.prototype.onScroll=function(O){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):O.target===document&&vOh(this,"scroll",200)};
HNb.prototype.onResize=function(){vOh(this,"resize",200)};
HNb.prototype.JSC$17097_onMouseMove=function(){vOh(this,"mousemove",100)};
_.Tj=function(O){O.scrollEventsToIgnore+=1;O.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){O.scrollEventsToIgnore--},500))};var K5K=function(O){this.element=O;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
K5K.prototype.showFeedbackDialog=function(O,m,G,B){var Q=$py();if(!Q)return!1;var H=oEz();H.productId=Q;m&&(H.flow="submit",H.report={description:m});G&&($py()==="59"?H.callback=_.wi(function(){_.LE("userFeedbackEvent",{});G()}):H.callback=_.wi(G));
H.bucket=B||_.kB("GOOGLE_FEEDBACK_BUCKET","Other");MrJ(H);O=rz9(this,"GFEEDBACK",O);try{_.w48(H,O)}catch(M){return _.di(M),!1}return!0};
K5K.prototype.showHelpDialog=function(O,m,G){var B=this,Q=$py();if(!Q)return!1;var H={helpCenterPath:"/youtube",productData:rz9(this,"GUIDED_HELP",G)};MrJ(H);var M=oEz();M.context=O||H.productData.context||"default";M.defaultHelpArticleId=m;M.enableSendFeedback=!0;(_.ex("gapi.load")||function(R,x){return x()})("client",function(){try{var R=WNo(Q,H);
if(_.V("web_always_load_chat_support")&&!B.chatSupportLoaded)try{R.JSC$9976_loadChatSupport(M),B.chatSupportLoaded=!0}catch(x){}R.startHelp(M)}catch(x){_.di(x)}})};
var $py=function(){var O=_.kB("GOOGLE_FEEDBACK_PRODUCT_ID");O||_.di(Error("li"));return O},MrJ=function(O){O&&(O.locale=_.V("kevlar_help_use_locale")?_.kB("INNERTUBE_CONTEXT_HL","en"):_.kB("HTML_LANG","en"))},rz9=function(O,m,G){var B=O.productData;
delete B.origin;B.device=_.zY();var Q;a:{if(Q=document.createElement("canvas")){var H=Q.getContext("experimental-webgl",{stencil:!0});if(H){var M=H.getExtension("WEBGL_debug_renderer_info");if(M){Q=H.getParameter(M.UNMASKED_RENDERER_WEBGL);break a}}if(H=Q.getContext("webgl")){Q=H.getParameter(H.RENDERER);break a}}Q=null}B.gpu=Q;B.isSDC=!!_.kB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(Q=_.kB("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.aM.extend(B,Q);_.LWO(m,B);_.CDN(B);(O=_.UB(O.element,"yt-get-autonav-pause-debug-state"))&&
O.length&&(B.autonav_pause_state=O[0]);O=_.TP();B.browser_resolution=O.width+"\u00d7"+O.height+"@"+(window.devicePixelRatio||1)+"x";G&&_.aM.extend(B,G);return B};
K5K.prototype.resetProductData=function(){this.productData={}};var R6y=function(O){this.feedbackManager=new K5K(O)};
R6y.prototype.showFeedbackDialog=function(O,m,G,B){return this.feedbackManager.showFeedbackDialog(O,m,G,B)};
R6y.prototype.showHelpDialog=function(O,m,G){return this.feedbackManager.showHelpDialog(O,m,G)};var iNy=function(){this.baseUrl="";this.aTag=document.createElement("a")},bAj=function(O,m,G){G=G===void 0?{}:G;
G.pbj||(G.pbj=1);G=_.kM6(m,G);O.baseUrl&&G&&!_.mM(G)[1]&&!_.Gg(G)&&(m=O.baseUrl,$O(m,"/")&&(m=m.slice(0,-1)),_.KN(G,"/")&&(G=G.slice(1)),G=m+"/"+G);sh(O.aTag,_.yO(G||""));return O.aTag.href};
iNy.prototype.fetchData=function(O){return _.u1N(O)};
iNy.prototype.postData=function(O,m){var G={method:"POST"};if(m){for(var B=_.K(Object.keys(m)),Q=B.next();!Q.done;Q=B.next()){Q=Q.value;var H=m[Q];_.Dp(H)&&(m[Q]=JSON.stringify(H))}G.postParams=m}return _.u1N(O,G)};
_.nXj=function(O,m,G,B,Q){O=bAj(O,m,G);if(!O)throw B=Error("mi"),Object.assign(B,{params:m}),B;return _.u1N(O,Q,B)};
iNy.prototype.requestDataForServiceEndpoint=function(O,m){if(_.b(O,_.OwN))return this.fetchData("/getAccountSwitcherEndpoint");m=m||{};var G=_.b(O,w3e);G?m.se=G.base64EncodedServiceEndpoint:m.sej=JSON.stringify(O);(G=_.yA())&&_.V("enable_service_ajax_csn")&&(m.csn=G);m.theme=_.oh();_.b(O,F6I)&&_.kB("DELEGATION_CONTEXT")&&(m.delegation_context=JSON.stringify(_.kB("DELEGATION_CONTEXT")));G=null;for(var B in O)if($O(B,"Endpoint")||$O(B,"Command")){G=B;break}if(!G){var Q=Error("ni");Object.assign(Q,{params:O});
_.ois(Q,"WARNING");return new _.zH(function(M,R){R(Q)})}B={name:G};
var H;(G=(H=_.b(O,_.Vs))==null?void 0:H.signal)&&(B.signal=G);(H=_.Fq(window.location.href))&&H.internalcountrycode&&(B.internalcountrycode=H.internalcountrycode);H="/service_ajax";_.V("debug_forward_web_query_parameters")&&(H=_.AKN(H,window.location.search));H=_.Oe(H,B);O.clickTrackingParams&&_.vd(H,{itct:O.clickTrackingParams});return this.postData(H,m)};_.xp9=new _.Us("GFEEDBACK_TOKEN");var qS9;var Upb;var tr3;var W5x;var Sd=function(){var O=_.u.apply(this,arguments)||this;O.compact=!1;O.dismissButtonDisabled=!1;return O};
_.X(Sd,_.u);Sd.prototype.computeHasIcon_=function(O){return!!O};
Sd.prototype.isSignInIcon_=function(O){return O=="yt-icons:prompted_sign_in"};
Sd.prototype.onDismissButtonClick=function(){var O;this.data.disableOnClick&&!this.dismissButtonDisabled&&(O=this.data.dismissButton)!=null&&O.buttonRenderer&&(this.dismissButtonDisabled=!0)};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.GYx.YtConditionalRendererBehavior),_.Y("design:type",Object)],Sd.prototype,"ytConditionalRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Sd.prototype,"data",void 0);_.c([_.g({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],Sd.prototype,"icon_",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.Y("design:type",Boolean)],Sd.prototype,"hasIcon_",void 0);_.c([_.g({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.Y("design:type",Boolean)],Sd.prototype,"signInIcon_",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Sd.prototype,"compact",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Sd.prototype,"dismissButtonDisabled",void 0);
_.c([_.DO({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Sd);
_.y(Sd,"yt-player-error-message-renderer",function(){if(W5x===void 0){var O=document.createElement("template");_.f(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;tr3===void 0&&(tr3=document.createElement("template"));var B=tr3;G.call(m,B.content.cloneNode(!0),O.content.firstChild);W5x=O}O=W5x;return O},{mode:2});var ZNK;var z69;var EG=function(){return _.u.apply(this,arguments)||this};
_.X(EG,_.u);EG.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
EG.prototype.computeIcon_=function(O){return O?"yt-icons:"+O.iconType.toLowerCase():"error_outline"};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],EG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],EG.prototype,"data",void 0);_.c([_.g({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],EG.prototype,"icon_",void 0);_.c([_.DO({is:"yt-player-kav-renderer",disableElementRegistration:!0})],EG);
_.y(EG,"yt-player-kav-renderer",function(){if(z69===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;ZNK===void 0&&(ZNK=document.createElement("template"));var B=ZNK;G.call(m,B.content.cloneNode(!0),O.content.firstChild);z69=O}O=z69;return O},{mode:2});var kOp=_.FY(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.qi(_.a(function(O){var m=_.Al("div"),G=_.K(_.Wf(0,void 0,"jxh75d")),B=G.next().value,Q=G.next().value;G=_.K(_.Wf(null,void 0,"F5Zm8"));var H=G.next().value,M=G.next().value;_.Ln(function(){y3N(m.value,Q,M);m.value.scrollIntoView()});
G=c3I.bind(null,O.data,B);_.ve("resize",function(){var R=H();if(B()===1&&R!==null){var x;(x=window.grecaptcha)==null||x.reset(R)}});
return _.q("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.q("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.q("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var R,x;return(R=O.data().accessibility)==null?void 0:(x=R.accessibilityData)==null?void 0:x.label}),_.q(_.Jg,{text:G,
className:_.bE("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.q("div",{el:m,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Te"),"yt-player-captcha-view-model",{props:{data:_.RZ}});var Y7p=!1;_.Jz3=_.a(function(O){var m=O.data;return _.q("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.q(_.U,{cond:function(){return m().icon},
then:function(G){return _.q("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.q(_.KH,{data:G,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.q(_.U,{cond:function(){return m().title},
then:function(G){return _.q("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.q(_.Jg,{text:G}))}}),_.q(_.U,{cond:function(){return m().description},
then:function(G){return _.q("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.q(_.Jg,{text:G}))}}),_.q(_.u5,{data:function(){return m().primaryButton}},{buttonViewModel:function(G){return _.q(_.oF,{data:G.data,
className:"interstitialViewModelFlexItem"})}}),_.q(_.u5,{data:function(){return m().secondaryButton}},{buttonViewModel:function(G){return _.q(_.oF,{data:G.data,
className:"interstitialViewModelFlexItem"})}}))},"Ue");
_.Jz3.idomCompat=!0;var VrA=_.a(function(O){var m=O.data;_.el();return _.q("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.q("div",{class:"playerInterstitialRendererScrim"},_.q(_.u5,{data:function(){return m().content}},{interstitialViewModel:_.Jz3})))},"Ve");
VrA.idomCompat=!0;_.qi(VrA,"yt-player-interstitial-renderer",{props:{data:_.VZ}});var L6=function(){var O=_.u.apply(this,arguments)||this;O.noBackground=!1;O.compact=!1;O.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return O};
_.X(L6,_.u);L6.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"}}}};
L6.prototype.onUpdatePlayerErrorMessageCommand_=function(O){if(_.b(O,HKm)){var m;if(O=(m=_.b(O,HKm))==null?void 0:m.newPlayerErrorMessageRenderer)this.data=O}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],L6.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],L6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],L6.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],L6.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],L6.prototype,"status",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],L6.prototype,"noBackground",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],L6.prototype,"compact",void 0);_.c([_.DO({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],L6);
var bNK=_.WE()(L6,"yt-playability-error-supported-renderers",function(){if(Upb===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;qS9===void 0&&(qS9=document.createElement("template"));var B=qS9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Upb=O}O=Upb;return O},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var dzz=void 0,ecf=void 0;var NlI=new GJe;var nO0=function(O){this.store=O;this.ynU=new _.HSj},TVI=function(O,m,G){var B,Q;
if(!(Q=((B=m.playabilityStatus)==null?void 0:B.status)!=="OK")){O=O.store;var H;Q=m.offlineState&&((H=m.videoDetails)==null?0:H.videoId)?_.V("enable_pl_r_c_cd")?WEp(O.getState().entities,m.videoDetails.videoId):!!dOf(O.getState().entities,m.videoDetails.videoId):!1}if(Q)return!0;Q=mar(m);if(Q===1){if(_.V("ab_v_vid_sig")){var M,R=(M=m.videoDetails)==null?void 0:M.videoId;if(!R||!G||R!==G){var x;m=new _.j9("282054944_vid",{xbC:G,b1P:(x=m.videoDetails)==null?void 0:x.videoId});_.oy(m)}}return!0}MQS=
0;var t,W;x=(R=m.auxiliaryUi)==null?void 0:(t=R.messageRenderers)==null?void 0:(W=t.bkaEnforcementMessageViewModel)==null?void 0:W.displayType;if(Q!==3&&(x==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||x==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;x={reason:_.rv(_.Xm("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.V("ks_something_wrong_learn_more")?tJ5("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.rv(_.Xm("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:_.rv("282054944")};XMs(m,{playerErrorMessageRenderer:x});return!1},gqM=function(O,m){if(hLM(m)){_.ff(1,!0);
var G=(G=hLM(m))&&_.wl6()?G:void 0;G?(XMs(m,{enforcementMessageViewModel:G}),O.ynU.increment("IN_PLAYER"),_.ff(5)):(O.ynU.increment("SKIP_DISPLAY"),_.ff(2))}},XMs=function(O,m){O.playabilityStatus=Object.assign({},O.playabilityStatus,{status:"ERROR",
errorScreen:m});O.videoDetails=void 0};
nO0.prototype.handleResponse=function(O,m){if(O.playabilityStatus){var G,B,Q,H=(m==null?void 0:(G=m.innerTubeRequest)==null?void 0:G.videoId)||(m==null?void 0:(B=m.innerTubeRequest)==null?void 0:(Q=B.playerRequest)==null?void 0:Q.videoId);TVI(this,O,H)&&gqM(this,O)}};
nO0[$R]=[$p];var fXO=new _.Us("ADBLOCK_DETECTION_SERVICE_TOKEN");var Pc=function(O){this.anA=O};
Pc.prototype.bindInnertubeChallengeFetcher=function(O){this.anA.bicf(O)};
Pc.prototype.registerChallengeFetchedCallback=function(O){this.anA.bcr(O)};
Pc.prototype.getLatestChallengeResponse=function(){return this.anA.blc()};var fps;fps=_.FY(["https://static.doubleclick.net/instream/ad_status.js"]);_.h6y=_.WY(fps);var jey;_.C6=function(O,m,G){var B=this;this.network=O;this.options=m;this.networkStatusManager=G;this.i7=null;if(m.useBotguardEverywhere){var Q=new _.Vg;this.i7=Q.promise;_.Qf.ytAtRC&&_.Sh(_.ln,function(){var H,M;return _.r(function(R){if(R.nextAddress==1){if(!_.Qf.ytAtRC)return R.return();H=TN3(null);return R.yield(B.yx(H),2)}M=R.yieldResult;_.Qf.ytAtRC&&_.Qf.ytAtRC(JSON.stringify(M));_.ju(R)})});
vC5().then(function(H){var M,R,x,t;return _.r(function(W){if(W.nextAddress==1)return H.bindInnertubeChallengeFetcher(function(Z){return B.yx(TN3(Z))}),W.yield(uqN(),2);
M=W.yieldResult;R=H.getLatestChallengeResponse();x=R.challenge;if(!x)throw Error("oi");t={challenge:x,aF:Nk(x),vm:M,bgChallenge:new DL};Q.resolve(t);H.registerChallengeFetchedCallback(function(Z){Z=Z.challenge;if(!Z)throw Error("pi");Z={challenge:Z,aF:Nk(Z),vm:M,bgChallenge:new DL};B.i7=Promise.resolve(Z)});
_.ju(W)})})}else m.preload&&gO3(this,new Promise(function(H){_.uT(_.ln,function(){H(uIr(B))},0)}))};
jey=function(O){var m={preload:!0,useBotguardEverywhere:!0},G=!1;if(typeof m==="boolean")var B={preload:m};else typeof m==="undefined"?B={preload:!0}:(B=m,G=!!m.r69);m=G?void 0:new _.PI;_.C6.instance=new _.C6(O,B,m);return _.C6.instance};
_.C6.prototype.s3y=function(){var O=this;return _.r(function(m){return m.nextAddress==1?m.yield(Promise.race([O.i7,null]),2):m.return(!!m.yieldResult)})};
_.C6.prototype.n02=function(O,m,G){var B=this,Q,H,M;return _.r(function(R){B.i7===null&&gO3(B,uIr(B));Q=!1;H={};M=function(){var x,t,W;return _.r(function(Z){switch(Z.nextAddress){case 1:return Z.yield(B.i7,2);case 2:x=Z.yieldResult;H.challenge=x.challenge;if(!x.vm){"c1a"in x.aF&&(H.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");Z.jumpTo(3);break}t=Object.assign({},{c:x.challenge,e:O},m);_.n_(Z,4);Q=!0;return Z.yield(x.vm.snapshot({fK:t}),6);case 6:(W=Z.yieldResult)?H.webResponse=W:H.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.P7(Z,3);break;case 4:_.uS(Z),H.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(O==="ENGAGEMENT_TYPE_PLAYBACK"){var z=x.aF,J={};if(z.c6a){var n=Number(_.kB("DCLKSTAT",0));J.reportingStatus=String(Number(z.c)^(isNaN(n)?0:n))}z.c6b&&(J.broadSpectrumDetectionResult=String(Number(z.c)^Number(_.kB("CATSTAT",0))));H.adblockReporting=J}return Z.return(H)}})};
return R.return(Promise.race([M(),Ip3(G,function(){var x=Object.assign({},H);Q&&(x.error="ATTESTATION_ERROR_VM_TIMEOUT");return x})]))})};
var TN3=function(O){var m={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};O&&(m.interpreterHash=O);return m},uIr=function(O,m){m=m===void 0?0:m;
var G,B,Q,H,M,R,x,t,W,Z,z,J;return _.r(function(n){switch(n.nextAddress){case 1:G=TN3(va9().pUg);if(_.V("att_fet_ks"))return _.n_(n,7),n.yield(O.yx(G),9);_.n_(n,4);return n.yield(pMy(O,G),6);case 6:M=n.yieldResult;Q=M.fPh;H=M.dpC;B=M;_.P7(n,3);break;case 4:return _.uS(n),_.ay(Error("qi`"+m)),SSr(O,864E5),n.return({challenge:"",aF:{},vm:void 0,bgChallenge:void 0});case 9:B=n.yieldResult;if(!B)throw Error("ri");if(!B.challenge)throw Error("si");Q=B.challenge;H=Nk(Q);if("c1a"in H&&(!B.bgChallenge||!B.bgChallenge.program))throw Error("ti");
_.P7(n,3);break;case 7:R=_.uS(n);_.ay(R);m++;if(m>=5)return _.ay(Error("qi`"+m)),SSr(O,864E5),n.return({challenge:"",aF:{},vm:void 0,bgChallenge:void 0});x=1E3*Math.pow(2,m-1)+Math.random()*1E3;return n.return(new Promise(function(I){_.uT(_.ln,function(){I(uIr(O,m))},x)}));
case 3:t=HDI(H);SSr(O,t*1E3);W=void 0;if(!("c1a"in H&&B.bgChallenge)){n.jumpTo(10);break}Z=Qgp(B.bgChallenge);_.n_(n,11);return n.yield($Z_(va9(),Z),13);case 13:_.P7(n,12);break;case 11:return z=_.uS(n),_.ay(z),n.return({challenge:Q,aF:H,vm:W,bgChallenge:Z});case 12:return _.n_(n,14),W=new _.Dr({challenge:Z,s6a:{wj:"aGIf"}}),n.yield(W.cAG,16);case 16:_.P7(n,10);break;case 14:J=_.uS(n),_.ay(J),W=void 0;case 10:return n.return({challenge:Q,aF:H,vm:W,bgChallenge:Z})}})};
_.C6.prototype.yx=function(O){var m=this,G;return _.r(function(B){G=m.networkStatusManager;if(!G||G.isNetworkAvailable())return B.return(m.network.yx(O));_.dr("att_pna",void 0,"attestation_challenge_fetch");return B.return(new Promise(function(Q){G.listenOnce("publicytnetworkstatus-online",function(){m.network.yx(O).then(Q)})}))})};
var EOr=function(O){if(!O)throw Error("ri");if(!O.challenge)throw Error("si");var m=O.challenge,G=Nk(m);if("c1a"in G&&(!O.bgChallenge||!O.bgChallenge.program))throw Error("ti");return Object.assign({},O,{fPh:m,dpC:G})},pMy=function(O,m){var G,B,Q,H,M;
return _.r(function(R){switch(R.nextAddress){case 1:G=void 0,B=0,Q={};case 2:if(!(B<5)){R.jumpTo(4);break}if(!(B>0)){R.jumpTo(5);break}Q.g5l=1E3*Math.pow(2,B-1)+Math.random()*1E3;return R.yield(new Promise(function(x){return function(t){_.uT(_.ln,function(){t(void 0)},x.g5l)}}(Q)),5);
case 5:return _.n_(R,7),R.yield(O.yx(m),9);case 9:return H=R.yieldResult,R.return(EOr(H));case 7:G=M=_.uS(R),M instanceof Error&&_.ay(M);case 8:B++;Q={g5l:void 0};R.jumpTo(2);break;case 4:throw G;}})},gO3=function(O,m){O.i7=m},L5A=function(O){var m,G,B;
return _.r(function(Q){if(Q.nextAddress==1)return Q.yield(Promise.race([O.i7,null]),2);m=Q.yieldResult;var H=uIr(O);O.i7=H;(G=m)==null||(B=G.vm)==null||B.dispose();_.ju(Q)})},SSr=function(O,m){var G=Date.now()+m,B=function(){var Q;
return _.r(function(H){Q=G-Date.now();return Q<1E3?H.yield(L5A(O),0):(_.uT(_.ln,B,Math.min(Q,6E4)),H.jumpTo(0))})};
B()},Ip3=function(O,m){return new Promise(function(G){_.uT(_.ln,function(){G(m())},O)})};var Cs3=function(){};
Cs3.prototype.processContext=function(O){var m=_.C6.instance;if(!m)return _.W3();var G=iD5(O);return G?new tQ(m.n02(G,Mbr(O),500).then(function(B){var Q;(O==null?0:(Q=O.innerTubeRequest)==null?0:Q.context)||(O.innerTubeRequest.context={});Q=O.innerTubeRequest.context;Q.request||(Q.request={});Q.request.attestationResponseData=B})):_.W3()};var oOy=function(O){this.innertubeTransportService=O};
oOy.prototype.yx=function(O){_.dr("att_fsr",void 0,"attestation_challenge_fetch");return _.rS(this.innertubeTransportService,O,_.$H(_.MQ3)).then(function(m){_.dr("att_frr",void 0,"attestation_challenge_fetch");return m})};_.lph=function(O){this.innertubeTransportService=O};var apy=new _.Us("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var kYr=function(){},czy=function(O,m,G,B,Q){var H=_.kB("YPC_MB_URL");
_.PJ6(H).then(function(){yzu(H,O,m,G,B,Q)})},yzu=function(O,m,G,B,Q,H){try{var M=_.B$.payments.business.integration,R=_.B$.payments.business.integration.Style.create().withMaterialDesignStyle(),x=M.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.V("enable_window_constrained_buy_flow_dialog")&&(x=x.usingPopupStyle("windowConstrained"));H&&(x=x.usingCloseCallback(H));var t=G?G:_.kB("YPC_GB_LANGUAGE"),W=_.kB("SESSION_INDEX");M.bootstrap.fromPaymentsUrl(O);M.bootstrap.asMashupMode(x).usingGaiaIndex(W).usingLocale(t).usingStyle(R).usingDefaultActivityStatusChangeHandler().inStandaloneContext(M.standaloneContextAuthId.forGaia()).purchaseManager(m,function(Z){B&&B(Z)}).load(void 0,Q)}catch(Z){throw Q&&Q(Z),_.oy(Z),Z;
}};var YSu=new _.Us("PURCHASE_MANAGER_TOKEN");var dpr=function(){var O=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return O.videos},
getContinuationsPresent:function(){return O.continuationsPresent},
setVideos:function(m){O.videos=m},
getRecommendedVideos:function(){return O.recommendedVideos},
setRecommendedVideos:function(m){O.recommendedVideos=m}}};
dpr.prototype.addVideos=function(O){O&&(this.videos=O.filter(function(m){return!!_.qCN(m)}).map(function(m){var G=_.qCN(m);
a:{var B;if(m.playlistVideoRenderer&&((B=m.playlistVideoRenderer)==null?0:B.voteSortTiebreaker))var Q=m.playlistVideoRenderer.voteSortTiebreaker;else{if(_.b(m,AI)){var H;if(B=(Q=_.b(m,AI))==null?void 0:(H=Q.playlistItemData)==null?void 0:H.voteSortTiebreaker){Q=B;break a}}Q=""}}return{itemId:G,videoId:_.WJ5(m),voteCount:_.ZD6(m),voteSortTiebreaker:Q}}),this.continuationsPresent=!!_.b(O[O.length-1],_.GK))};
var wMA=function(O,m){return O.videos.findIndex(function(G){return G.itemId===m})},e6J=function(O,m){return O.recommendedVideos.findIndex(function(G){return G.itemId===m})},Dpu=function(O){O={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:O}}}}};_.KR().resolve(_.Mu).resolveCommand(O)};var sex=function(){dpr.apply(this,arguments)};
_.X(sex,dpr);
var Zg_=function(O,m,G,B){if(!O.parentElem)throw Error("yi");var Q=wMA(O,m);Q===-1&&(Q=e6J(O,m),Q=Q!==-1?Q+O.videos.length:-1);if(Q===-1)throw Error("zi");var H=Q>=O.videos.length?O.recommendedVideos[Q-O.videos.length]:O.videos[Q];H.voteCount=G;H.voteSortTiebreaker=Date.now().toString();Q>=O.videos.length?O.recommendedVideos.splice(Q-O.videos.length,1):O.videos.splice(Q,1);var M=O.videos;for(var R=0,x=M.length-1;R<=x;){var t=Math.floor((R+x)/2);if(M[t].voteCount<H.voteCount)x=t-1;else if(M[t].voteCount>H.voteCount)R=
t+1;else{a:{var W=H.voteSortTiebreaker;var Z=M[t].voteSortTiebreaker;if(W.length!==Z.length)W=W.length>Z.length;else{for(var z=0;z<W.length;z++){var J=W.charCodeAt(z),n=Z.charCodeAt(z);if(J>n){W=!0;break a}if(J<n)break}W=!1}}W?x=t-1:R=t+1}}M=R;if(M===-1)throw Error("Ai");O.videos.splice(M,0,H);Q!==M&&NN9(O,Q,M,m,G,B)},NN9=function(O,m,G,B,Q,H){var M,R=(M=O.parentElem)==null?void 0:M.children,x=Math.min(m,G),t=Math.max(m,G);
if(R)for(M=x;M<=t;M++)R[M].style.viewTransitionName="item-"+String(M);document.startViewTransition(function(){if(O.parentElem){var W=O.parentElem.children;if(!(!W||m<0||m>=W.length||G<0||G>=W.length)){var Z=W[m];if(Z){Z.remove();O.showRefreshPill=G>=O.videos.length-1&&O.continuationsPresent;if(!O.showRefreshPill){W=W[G]||null;var z;(z=O.parentElem)==null||z.insertBefore(Z,W)}_.iP(O.parentElem,"yt-update-video-data-voting-animation",{toIdx:G,itemId:B,newVoteCount:Q,voteStatus:H,hideItem:O.showRefreshPill})}}}}).finished.then(function(){if(R)for(var W=
x;W<=t;W++)R[W].style.viewTransitionName="";
if(O.showRefreshPill)Dpu(_.Xm("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var Z;if(Z=W=(Z=O.parentElem)==null?void 0:Z.children[G])Z=W.getBoundingClientRect(),W=Z.bottom,Z=!(Z.top>=0&&W<=O.clientHeight);Z&&(Z=_.fr(m>G?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(m-G)),Dpu(Z))}})};var AzA=function(O,m){var G=this;O?this.innertubeTransportServicePromise=Promise.resolve(O):m&&(this.innertubeTransportServicePromise=m(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new VU(3E3,function(B){return Ps0(G,B)},0);
this.validateMiniAppVideoIdRateLimiter=new VU(3E3,function(B){return F5s(G,B)},1)},u8p=function(O,m){O.JSC$17209_miniAppId=m;
O.reportMiniAppValueRateLimiter=new VU(3E3,function(G){return Ps0(O,G)},0);
O.validateMiniAppVideoIdRateLimiter=new VU(3E3,function(G){return F5s(O,G)},1)},IE_=function(O,m){var G;
return _.r(function(B){if(B.nextAddress==1)return B.yield(O.reportMiniAppValueRateLimiter.call(m),2);G=B.yieldResult;return B.return([G,m])})},Ps0=function(O,m){var G,B,Q,H,M,R,x;
return _.r(function(t){switch(t.nextAddress){case 1:return t.yield(O.innertubeTransportServicePromise,2);case 2:return G=t.yieldResult,B=_.$H(Ufs),Q=Date.now(),H={externalPostId:O.JSC$17209_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(Q/1E3),nanos:Math.round(Q%1E3*1E6)},intValue:""+m}},_.n_(t,3),t.yield(_.rS(G,H,B),5);case 5:M=t.yieldResult;_.P7(t,4);break;case 3:throw R=_.uS(t),R;case 4:if(M){if("error"in M&&M.error)throw M.error;if(M.errorMetadata)throw Error("Bi`"+
M.errorMetadata.status);if(x=M.userStatResult)return t.return(x);throw Error("Ci");}throw Error("Di");}})},Sq_=function(O){var m,G,B,Q,H;
_.r(function(M){switch(M.nextAddress){case 1:return M.yield(O.innertubeTransportServicePromise,2);case 2:return m=M.yieldResult,G=_.$H(Ufs),B={externalPostId:O.JSC$17209_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.n_(M,3),M.yield(_.rS(m,B,G),5);case 5:Q=M.yieldResult;_.P7(M,4);break;case 3:throw H=_.uS(M),H;case 4:if(Q==null)throw Error("Di");if("error"in Q&&Q.error)throw Q.error;if(Q.errorMetadata)throw Error("Bi`"+Q.errorMetadata.status);_.ju(M)}})};
AzA.prototype.flush=function(){var O=this;return _.r(function(m){return m.nextAddress==1?m.yield(O.reportMiniAppValueRateLimiter.flush(),2):m.yield(O.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var p2u=function(O,m){return _.r(function(G){return G.nextAddress==1?G.yield(O.validateMiniAppVideoIdRateLimiter.call(m),2):G.return(G.yieldResult)})},F5s=function(O,m){var G,B,Q,H,M,R;
return _.r(function(x){switch(x.nextAddress){case 1:return x.yield(O.innertubeTransportServicePromise,2);case 2:return G=x.yieldResult,B=_.$H(KcC),Q={videoId:m},_.n_(x,3),x.yield(_.rS(G,Q,B),5);case 5:H=x.yieldResult;_.P7(x,4);break;case 3:throw M=_.uS(x),M;case 4:if(H){if("error"in H&&H.error)throw H.error;if(H.errorMetadata)throw Error("Bi`"+H.errorMetadata.status);if(R=H.playabilityStatus)return x.return(R.status);throw Error("Ei");}throw Error("Di");}})};
AzA[$R]=[_.v7(_.Dk),_.v7(yo$)];var O$J=function(){this.clientData=new Map};
O$J.prototype.getData=function(O){return this.clientData.get(O)};var meK=function(O){this.store=O};
meK.prototype.handleResponse=function(O){(O=_.b(O.frameworkUpdates,Bu))&&_.Tk(O,this.store)};
meK[$R]=[_.ry];var Gpu=new _.Us("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var B8J={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 Qjb=new _.Us("ICON_SET_TOKEN"),H$r=new _.Us("ICON_URL_PROVIDER_TOKEN"),v9h=new _.Us("PREFETCH_ICONS_TOKEN"),KU3=new _.Us("ICON_MAP_FN_TOKEN");var of={},$eK=(of.ACCESS_TIME="clock",of.ACCOUNT_BOX="person_account",of.ACCOUNT_BOX_CAIRO="person_account_cairo",of.ACCOUNT_CIRCLE="person_circle",of.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",of.ACCOUNT_LINKED="account_link_success",of.ACCOUNT_UNLINKED="account_link",of.ADD_FRIEND="people",of.ADD_MODERATOR="shield_add",of.ADD_TO_LIBRARY="bookmark",of.ADD_TO_PLAYLIST="add",of.ADD_TO_QUEUE_TAIL="list_queue",of.ADD_TO_REMOTE_QUEUE="list_music",of.ADD_TO_WATCH_LATER="clock",of.ADD_VIDEO_LINK="film_strip_add",
of.ALERT_WARN_RED="alert_triangle",of.ARROW_BACK="arrow_left",of.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",of.ARROW_DROP_DOWN="chevron_down",of.ARROW_DROP_UP="chevron_up",of.ARROW_FORWARD="arrow_right",of.AUDIOTRACK="audio",of.AUTO_AWESOME="sparkle",of.AVATAR_ANONYMOUS="person_circle",of.AVATAR_LOGGED_OUT="person_circle",of.BACK="arrow_left",of.BAR_CHART="bar_graph",of.BLOCK="slash_circle_left",of.BLOCK_USER="slash_circle_left",of.BOOKMARK_BORDER="bookmark",of.BREAKING_NEWS_ALT_1="article_alert",
of.BROADCAST_CAIRO="podcast_cairo",of.BUG_REPORT="bug",of.CAMERA_ALT="camera",of.CAMPAIGN="megaphone",of.CANCEL="x_circle",of.CAPTIONS="closed_caption",of.CAST_OUTLINE="chromecast",of.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",of.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",of.CHAT="message_bubble_left",of.CHAT_BUBBLE="message_bubble_empty",of.CHAT_SPARK="spark_message_bubble_left",of.CHECK_BOX_OUTLINE_BLANK="box_empty",of.CHECK_CIRCLE_OUTLINE="check_circle",of.CHECK_CIRCLE_THICK="check_circle",of.CLARIFY=
"article_clarify",of.CLOSED_CAPTION_SELECTED="closed_caption",of.CLOSE="x_mark",of.CLOUD_UPLOAD="cloud_arrow_up",of.COLLAPSE="chevron_up",of.COLLAPSE_CAIRO="chevron_up_cairo",of.COLLECTION="layers",of.COLOR_LENS="palette",of.COMMENT="message_bubble_right",of.CONSENT_SHIELD="person_shield",of.CONTENT_CUT="scissors",of.CONTENT_CUT_CAIRO="scissors_cairo",of.COURSE=_.V("web_enable_course_icon_update")?"creator_academy":"lightbulb",of.COURSE_CAIRO=_.V("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",of.CREATION_LIVE="radar_live",of.CREATION_POST="box_pencil",of.CREATION_UPLOAD="my_videos",of.CREATION_UPLOAD_RED="upload",of.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",of.CREATOR_STUDIO="youtube_studio",of.DASHBOARD="grid_asymmetrical",of.DELETE="trash_can",of.DELETE_SWEEP="trash_can",of.DESKTOP="laptop",of.DISLIKE="thumb_down",of.DISLIKE_SELECTED="thumb_down",of.DISMISSAL="x_mark",of.DISMISS_QUEUE="list_remove",of.DONE_ALL="check_double",of.DOWN_ARROW="arrow_down",of.DO_NOT_DISTURB=
"slash_circle_left",of.DRAFT="paper_corner_folded",of.DRAG_HANDLE="bars_2",of.EDIT="pencil",of.EMOJI="face_very_happy",of.EMOJI_FLAGS="flag",of.EMOJI_OBJECTS="lightbulb",of.EMOJI_PEOPLE="face_very_happy",of.EMOJI_RECENT="clock",of.EMPTY_HEART="heart",of.EMPTY_LIKE="thumb_up",of.ERROR_BLACK="alert_circle",of.ERROR_OUTLINE="alert_circle",of.EXIT_APP="arrow_in",of.EXIT_TO_APP="arrow_in",of.EXPAND="chevron_down",of.EXPAND_ALL="chevron_expand",of.EXPAND_CAIRO="chevron_down_cairo",of.EXPAND_LESS="chevron_up",
of.EXPAND_MORE="chevron_down",of.EXPLORE="compass",of.EXPLORE_DESTINATION="compass",of.EXTERNAL_LINK="open_new",of.FAB_UPLOAD="upload",of.FACE_HAPPY_OUTLINE="face_happy",of.FACT_CHECK="article_check",of.FASHION_LOGO="fashion",of.FASHION_LOGO_CAIRO="fashion_cairo",of.FAVORITE="heart",of.FEEDBACK="message_bubble_alert",of.FEEDBACK_CAIRO="message_bubble_alert_cairo",of.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",of.FILL_ARROW_SOLID_UP_16="arrow_solid_up",of.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
of.FILTER="menu_filter",of.FIRST_PAGE="chevron_first",of.FLAG="flag",of.FULL_HEART="heart",of.GAME_CONSOLE_DPAD="game_console_dpad",of.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",of.GAMING_LOGO="gaming",of.GAMING_LOGO_CAIRO="gaming_cairo",of.GO_TO_PAGE="arrow_right",of.GROUPS="people_group",of.HAPPY="face_happy",of.HEALTH_AND_SAFETY="shield_plus",of.HELP="question_circle",of.HELP_CAIRO="question_circle_cairo",of.HELP_OUTLINE="question_circle",of.HIDE="slash_circle_left",of.IMAGE="image",
of.INFINITY_ICON="infinity",of.INFO="info_circle",of.INFO_OUTLINE="info_circle",of.INSERT_CHART="bar_graph_box_vertical",of.INSERT_CHART_OUTLINED="bar_graph_box_vertical",of.INSERT_PHOTO="image",of.KEEP="pin",of.KEEP_OFF="pin_off",of.KEYBOARD="keyboard",of.KEYBOARD_ARROW_DOWN="chevron_down",of.KEYBOARD_ARROW_UP="chevron_up",of.KIDS_BLOCK="slash_circle_left",of.LANGUAGE="globe",of.LAST_PAGE="chevron_last",of.LAUNCH="open_new",of.LEARNING="lightbulb",of.LEARNING_CAIRO="lightbulb_cairo",of.LIBRARY_ADD=
bDe("library_add"),of.LIBRARY_OUTLINE="library",of.LIBRARY_REMOVE=bDe(),of.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",of.LIKES_PLAYLIST="thumb_up",of.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",of.LIKE="thumb_up",of.LIKE_SELECTED="thumb_up",of.LIVE="radar_live",of.LIVE_CAIRO="radar_live_cairo",of.LIVE_UNLISTED="link",of.LOCATION_ON="location_point",of.LOCATION_PIN="location_point",of.LOOP="arrow_repeat",of.LOOP_ACTIVE="arrow_repeat",of.LOOP_ONE="arrow_repeat_1",of.LOOP_ONE_ACTIVE="arrow_repeat_1",of.MEH=
"face_meh",of.MEMBERS_ONLY_MODE_OFF="message_bubble_left",of.MESSAGE="message_bubble_left",of.MICROPHONE_ON="mic",of.MIX="youtube_mix",of.MONETIZATION_ON="dollar_sign_circle",of.MONEY_FILL="dollar_sign_container",of.MONEY_FILL_JPY="yen_sign_container",of.MONEY_HEART="dollar_sign_heart",of.MORE_HORIZ="overflow_horizontal",of.MORE_VERT="overflow_vertical",of.MUSIC="audio",of.MUSIC_CAIRO="audio_cairo",of.MUSIC_NOTE_SYMBOL="music",of.MUSIC_SHUFFLE="arrow_shuffle",of.MY_CHANNEL="person_circle",of.MY_LOCATION=
"location_point",of.NEWS_STORY="news",of.NEXT="chevron_right",of.NOTIFICATIONS="bell",of.NOTIFICATIONS_ACTIVE="bell_on",of.NOTIFICATIONS_CAIRO="bell_cairo",of.NOTIFICATIONS_DONE_CHECKMARK="check",of.NOTIFICATIONS_INBOX="bell",of.NOTIFICATIONS_NONE="bell",of.NOTIFICATIONS_OFF="bell_off",of.NOT_INTERESTED="slash_circle_left",of.OFFICIAL_ARTIST_BADGE="audio",of.OFFLINE_CLOUD="cloud_off",of.OFFLINE_DOWNLOAD="download",of.OFFLINE_DOWNLOAD_CAIRO="download_cairo",of.OFFLINE_PAUSE="pause",of.OPEN_IN_NEW=
"open_new",of.OUTLINE_ADJUST="adjust",of.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",of.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",of.OUTLINE_BAG="bag",of.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",of.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",of.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",of.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",of.PAID="dollar_sign",of.PAUSE_OUTLINED="pause",of.PAYMENT="credit_card",of.PERSON_RADAR_FILLED="person_radar",of.PHONE_DOWNLOAD="mobile_download",
of.PLAYABLES_LOGO="tic_tac_toe",of.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",of.PLAYLISTS="list_play_arrow",of.PLAYLISTS_CAIRO="list_play_arrow_cairo",of.PLAYLIST_ADD=bDe("list_add"),of.PLAYLIST_ADD_CHECK=bDe("list_check"),of.PLAYLIST_PLAY="list_play_arrow",of.PLAY_ALL="play_arrow",of.PLAY_CIRCLE="play_arrow_circle",of.PLAY_OUTLINED="play_arrow_circle",of.PRIVACY_INFO="shield",of.PRIVACY_PRIVATE="lock",of.PRIVACY_PUBLIC="earth",of.PRIVACY_UNLISTED="link",of.PROMOTE="megaphone",of.PURCHASES="price_tag",
of.PURCHASE_SUPER_CHAT="super_chat",of.PURCHASE_SUPER_STICKER="super_sticker",of.QUESTION_ANSWER="message_bubble_question",of.QUEUE_PLAY_LAST="list_queue_last",of.QUEUE_PLAY_NEXT="list_play_arrow",of.REMIX_FILLED="youtube_shorts_remix",of.REMOVE="bar_circle",of.REMOVE_CIRCLE="bar_circle",of.REMOVE_CIRCLE_OUTLINE="bar_circle",of.REMOVE_DONE="check_double_off",of.REMOVE_FROM_HISTORY="bar_circle",of.REMOVE_FROM_PLAYLIST="bar_circle",of.REMOVE_MODERATOR="shield_off",of.REPLAY="arrow_circle",of.REPLAY_10=
"skip_back_10",of.REPORT_PROBLEM="alert_triangle",of.SAD="face_sad",of.SAVE_PLAYLIST="bookmark",of.SCHEDULE="clock",of.SCHOOL="creator_academy",of.SCREEN_FULLSCREEN="screen_full",of.SEARCH_HISTORY="arrow_time",of.SELL="price_tag",of.SETTINGS="gear",of.SETTINGS_CAIRO="gear_cairo",of.SETTINGS_LIGHT="gear",of.SETTINGS_MATERIAL="gear",of.SHARE_ARROW="share",of.SHIELD_WITH_AVATAR="person_shield",of.SHOPPING_BAG="bag",of.SHOPPING_BAG_CAIRO="bag_cairo",of.SHOPPING_CART="cart",of.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
of.SHORTS_DISLIKE="youtube_shorts_thumb_down",of.SHORTS_LIKE="youtube_shorts_thumb_up",of.SHORTS_SHARE="youtube_shorts_share",of.SHUFFLE="arrow_shuffle",of.SLOW_MODE_OFF="message_bubble_left",of.SOCIAL="people",of.SORT="menu_sort",of.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",of.SPEED_1X="1x",of.SPEED_1_POINT_2X="1_point_2x",of.SPEED_1_POINT_5X="1_point_5x",of.SPEED_1_POINT_8X="1_point_8x",of.SPEED_2X="2x",of.SPEED_POINT_2X="point_2x",of.SPEED_POINT_8X="point_8x",of.SPONSORSHIP_STAR="star_circle",
of.STAFF_PICK="spotlight",of.START_DVR="add",of.STAR_BORDER="star",of.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",of.STICKER_EMOTICON="face_happy",of.STOP_DVR="stop",of.SUBSCRIBE="youtube_logo_icon",of.SUBSCRIBE_PLUS="add_cairo",of.SUBSCRIPTION_MANAGER="gear",of.SUPERVISOR_ACCOUNT="people",of.SUPER_CHAT_FOR_GOOD="hands_heart",of.SWAP_HORIZ="arrow_swap_horizontal",of.SWITCH_ACCOUNTS="person_account",of.TAB_ACCOUNT="person",of.TAB_ACTIVITY="bell",of.TAB_BOOKMARK="bookmark",of.TAB_EXPLORE="compass",
of.TAB_HOME="home",of.TAB_HOME_CAIRO="home_cairo",of.TAB_INBOX="mail",of.TAB_LIKED="thumb_up",of.TAB_MUSIC_PREMIUM="youtube_music",of.TAB_SHORTS="youtube_shorts",of.TAB_SHORTS_CAIRO="youtube_shorts_cairo",of.TAB_SUBSCRIPTIONS="subscriptions",of.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",of.TAB_TRENDING="fire",of.TIMER="stopwatch",of.TRAILER="youtube_originals",of.TRENDING="fire",of.TRENDING_CAIRO="fire_cairo",of.TRENDING_UP="rating_up",of.TROPHY="trophy",of.TROPHY_CELEBRATIONS="fireworks",of.TUNE=
"adjust",of.UNBLOCK_USER="bar_circle",of.UNLIMITED="youtube_logo_icon",of.UNPLUGGED_LIVE_GUIDE="radar_live",of.UNPLUGGED_SPORTS="eye_off",of.UPLOADS="library",of.UP_ARROW="arrow_up",of.VERTICAL_ALIGN_BOTTOM="download",of.VERY_HAPPY="face_very_happy",of.VERY_SAD="face_very_sad",of.VIDEOGAME_ASSET="gaming",of.VIDEOS="play_arrow_circle",of.VIDEO_CALL="video_camera_add",of.VIDEO_LIBRARY_WHITE="library",of.VIDEO_YOUTUBE="youtube_logo_icon",of.VIEW_LIST="list_view",of.VIEW_LIST_CAIRO="list_view_cairo",
of.VISIBILITY="eye",of.VISIBILITY_OFF="eye_off",of.VOLUME_MUTE="volume_off",of.VOLUME_UP="volume_on",of.WALLPAPER="image",of.WARNING="alert_triangle",of.WATCH_HISTORY="arrow_time",of.WATCH_HISTORY_CAIRO="arrow_time_cairo",of.WATCH_LATER="clock",of.WATCH_LATER_CAIRO="clock_cairo",of.WATCH_RELATED_MIX="youtube_mix",of.WHAT_TO_WATCH="home",of.YOUTUBE_MUSIC_MONOCHROME="youtube_music",of.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",of.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
of.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",of.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",of.YT_OUTLINE_MUSIC_24="music",of);var lf={},Mo0=(lf.ACCESS_TIME="clock",lf.ACCOUNT_BOX="person_square",lf.ACCOUNT_BOX_CAIRO="person_square",lf.ACCOUNT_CIRCLE="person_circle",lf.ACCOUNT_CIRCLE_CAIRO="person_circle",lf.ACCOUNT_LINKED="account_link",lf.ACCOUNT_UNLINKED="account_link",lf.ADD_CIRCLE="add_circle",lf.ADD_CIRCLE_OUTLINE="add_circle",lf.ADD_FRIEND="person_child",lf.ADD_MODERATOR="shield_add",lf.ADD_TO_LIBRARY="bookmark",lf.ADD_TO_PLAYLIST="add",lf.ADD_TO_QUEUE_TAIL="queue",lf.ADD_TO_REMOTE_QUEUE="playlist_audio",lf.ADD_TO_WATCH_LATER=
"clock",lf.ADD_VIDEO_LINK="film_strip_add",lf.ADMIN_PANEL_SETTINGS="person_gear",lf.ALERT_WARN_RED="alert_triangle",lf.ALIGN_LEFT="text_align_left",lf.ARROWS_ALERT="arrow_split_alert",lf.ARROW_BACK="arrow_left",lf.ARROW_CIRCLE="arrow_counterclockwise",lf.ARROW_CIRCLE_PLAY="replay",lf.ARROW_CIRCLE_RIGHT="arrow_clockwise",lf.ARROW_DIAGONAL="arrow_up_left",lf.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",lf.ARROW_DROP_DOWN="triangle_down",lf.ARROW_DROP_UP="triangle_up",lf.ARROW_FORWARD="arrow_right",lf.ARROW_PAUSE=
"pause_history",lf.ARROW_UNDO="undo",lf.ARTICLE="text_page",lf.ARTICLE_ALERT="text_page_alert",lf.ARTICLE_CHECK="text_page_check",lf.ARTICLE_CLARIFY="text_page_info",lf.AUDIOTRACK="audio",lf.AUDIO_BADGE="audio_badge",lf.AUDIO_SURROUND="surround_sound",lf.AUTO_AWESOME="sparkles",lf.AVATAR_ANONYMOUS="person_circle",lf.AVATAR_LOGGED_OUT="person_circle",lf.BACK="arrow_left",lf.BAR_CHART="chart_bar",lf.BAR_CIRCLE="minus_circle",lf.BAR_HORIZONTAL="minus",lf.BLOCK="circle_slash",lf.BLOCK_USER="circle_slash",
lf.BOOKMARK_BORDER="bookmark",lf.BOX_OPEN_CHECK="quiz",lf.BOX_PENCIL="square_pencil",lf.BOX_STACK_3="square3_stack",lf.BREAKING_NEWS_ALT_1="text_page_alert",lf.BROADCAST="podcast",lf.BROADCAST_CAIRO="podcast",lf.BUG_REPORT="bug",lf.CAMERA_ALT="camera",lf.CAMPAIGN="megaphone",lf.CANCEL="x_circle",lf.CAPTIONS="closed_captions",lf.CAST_ICON="chromecast",lf.CAST_OUTLINE="chromecast",lf.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",lf.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",lf.CHAT="text_bubble",
lf.CHAT_BUBBLE="bubble",lf.CHECK_BOX="check_square",lf.CHECK_BOX_OUTLINE_BLANK="square",lf.CHECK_CIRCLE_FILLED="check_circle",lf.CHECK_CIRCLE_OUTLINE="check_circle",lf.CHECK_CIRCLE_THICK="check_circle",lf.CHECK_DOUBLE="check_done",lf.CHECK_DOUBLE_OFF="check_done_slash",lf.CHEVRON_LEFT="chevron_left",lf.CHEVRON_RIGHT="chevron_right",lf.CHEVRON_RIGHT_CAIRO="chevron_right",lf.CIRCLES_OVERLAP="account_link",lf.CLAPPERBOARD_CAIRO="clapperboard",lf.CLARIFY="text_page_info",lf.CLOCK_ARROWS="clock_split",
lf.CLOCK_ARROWS_ALERT="clock_split_alert",lf.CLOSED_CAPTION="closed_captions",lf.CLOSED_CAPTION_SELECTED="closed_captions",lf.CLOSE="x",lf.CLOUD_UPLOAD="cloud_arrow_up",lf.COLLAPSE="chevron_up",lf.COLLAPSE_CAIRO="chevron_up",lf.COLLECTION="square3d_stack",lf.COLOR_LENS="paint_palette",lf.COMMENT="text_bubble",lf.CONSENT_SHIELD="person_shield",lf.CONTENT_CUT="scissors",lf.CONTENT_CUT_CAIRO="scissors",lf.COURSE="graduation_cap",lf.COURSE_CAIRO="graduation_cap",lf.CREATION_LIVE="live",lf.CREATION_POST=
"square_pencil",lf.CREATION_UPLOAD="video",lf.CREATION_UPLOAD_RED="upload",lf.CREATOR_ACADEMY="graduation_cap",lf.CREATOR_STUDIO="youtube_studio",lf.DARK_THEME="theme",lf.DELETE="trash_can",lf.DELETE_SWEEP="trash_can",lf.DESKTOP="laptop",lf.DISLIKE="thumb_down",lf.DISLIKE_SELECTED="thumb_down",lf.DISMISSAL="x",lf.DISMISS_QUEUE="playlist_x",lf.DOGFOOD="pawprint",lf.DOLLAR_SIGN="dollar_sign_circle",lf.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",lf.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",lf.DOWN_ARROW=
"arrow_down",lf.DO_NOT_DISTURB="circle_slash",lf.DRAFT="document",lf.DRAG_HANDLE="equal",lf.EARTH="globe",lf.EDIT="pencil",lf.EMOJI="face_very_happy",lf.EMOJI_FLAGS="flag",lf.EMOJI_OBJECTS="lightbulb",lf.EMOJI_PEOPLE="face_very_happy",lf.EMOJI_RECENT="clock",lf.EMPTY_HEART="heart",lf.EMPTY_LIKE="thumb_up",lf.ERROR_BLACK="alert_circle",lf.ERROR_OUTLINE="alert_circle",lf.ERROR_WHITE="alert_circle",lf.EXIT_APP="arrow_in",lf.EXIT_TO_APP="arrow_in",lf.EXPAND="chevron_down",lf.EXPAND_ALL="chevron_expand",
lf.EXPAND_CAIRO="chevron_down",lf.EXPAND_LESS="chevron_up",lf.EXPAND_MORE="chevron_down",lf.EXPLORE="compass",lf.EXPLORE_DESTINATION="compass",lf.EXTERNAL_LINK="arrow_up_right",lf.EYE_OFF="eye_slash",lf.FAB_UPLOAD="upload",lf.FACE_HAPPY_OUTLINE="face_happy",lf.FACE_MEH="face_neutral",lf.FACT_CHECK="text_page_check",lf.FASHION_LOGO="fashion",lf.FASHION_LOGO_CAIRO="fashion",lf.FAVORITE="thumb_up",lf.FEEDBACK="alert_bubble",lf.FEEDBACK_CAIRO="alert_bubble",lf.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
lf.FILL_ARROW_SOLID_UP_16="arrow_solid_up",lf.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",lf.FLAG_CAIRO="flag",lf.FLASH_OFF="flash_slash",lf.FLASH_ON="flash",lf.FULL_HEART="heart",lf.GAMING_LOGO="gaming",lf.GAMING_LOGO_CAIRO="gaming",lf.GO_TO_PAGE="arrow_right",lf.GROUPS="person3",lf.HAND_SWIPE_LEFT="gesture_swipe_left",lf.HAND_SWIPE_RIGHT="gesture_swipe_right",lf.HAPPY="face_happy",lf.HEALTH_AND_SAFETY="shield_health",lf.HEART_BOX="heart_cube",lf.HELP="help_circle",lf.HELP_CAIRO="help_circle",
lf.HELP_OUTLINE="help_circle",lf.HIDE="circle_slash",lf.INCOGNITO_CAIRO="incognito",lf.INFINITY_ICON="infinity",lf.INFO="info_circle",lf.INFO_OUTLINE="info_circle",lf.INSERT_CHART="chart_bar_square",lf.INSERT_CHART_OUTLINED="chart_bar_square",lf.INSERT_PHOTO="image",lf.KEEP="pin",lf.KEEP_OFF="pin_slash",lf.KEYBOARD="keyboard",lf.KEYBOARD_ARROW_DOWN="chevron_down",lf.KEYBOARD_ARROW_UP="chevron_up",lf.KIDS_BLOCK="circle_slash",lf.LANGUAGE="globe",lf.LAUNCH="arrow_up_right",lf.LEARNING="lightbulb",lf.LEARNING_CAIRO=
"lightbulb",lf.LIBRARY_ADD="bookmark",lf.LIBRARY_IMAGE="image_stack",lf.LIBRARY_MUSIC="audio_square_stack",lf.LIBRARY_OUTLINE="play_square_stack",lf.LIBRARY_REMOVE="bookmark",lf.LIBRARY_SAVED="check_square_stack",lf.LIKES_PLAYLIST="thumb_up",lf.LIKES_PLAYLIST_CAIRO="thumb_up",lf.LIKE="thumb_up",lf.LIKE_SELECTED="thumb_up",lf.LIST_QUEUE="queue",lf.LIVE_CAIRO="live",lf.LIVE_UNLISTED="link",lf.LOCATION_ON="location_pin",lf.LOCATION_PIN="location_pin",lf.LOCATION_POINT="location_pin",lf.LOOP="repeat",
lf.LOOP_ACTIVE="repeat",lf.LOOP_ONE="repeat1",lf.LOOP_ONE_ACTIVE="repeat1",lf.MEET="google_meet",lf.MEH="face_neutral",lf.MEMBERSHIPS="memberships",lf.MEMBERS_ONLY_MODE_OFF="text_bubble",lf.MENU_FILTER="filter",lf.MESSAGE="text_bubble",lf.MESSAGE_BUBBLE_GEAR="bubble_gear",lf.MESSAGE_BUBBLE_LEFT="text_bubble",lf.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",lf.MESSAGE_BUBBLE_OVERLAP="bubble_stack",lf.MESSAGE_BUBBLE_QUESTION="help_bubble",lf.MICROPHONE_ON="mic",lf.MONETIZATION_ON="dollar_sign_circle",
lf.MONEY_FILL="dollar_sign_rectangle",lf.MONEY_FILL_JPY="yen_sign_rectangle",lf.MONEY_HAND="dollar_sign_circle_hand",lf.MONEY_HEART="dollar_sign_heart",lf.MOON_Z="sleep_timer",lf.MORE_HORIZ="overflow_horizontal",lf.MORE_VERT="overflow_vertical",lf.MUSIC="audio",lf.MUSIC_CAIRO="audio",lf.MUSIC_EXPLICIT_BADGE="explicit",lf.MUSIC_NEW_RELEASE="audio_badge",lf.MUSIC_NOTE_SYMBOL="audio",lf.MUSIC_SCISSORS="audio_scissors",lf.MUSIC_SHUFFLE="shuffle",lf.MY_CHANNEL="person_circle",lf.MY_LOCATION="location_pin",
lf.MY_VIDEOS="video",lf.MY_VIDEOS_CAIRO="video",lf.NEWS_CAIRO="news",lf.NEWS_STORY="news",lf.NEXT="chevron_right",lf.NOTE_ADD="bubble_pencil",lf.NOTIFICATIONS="bell",lf.NOTIFICATIONS_ACTIVE="bell_waves",lf.NOTIFICATIONS_CAIRO="bell",lf.NOTIFICATIONS_DONE_CHECKMARK="check",lf.NOTIFICATIONS_INBOX="bell",lf.NOTIFICATIONS_NONE="bell",lf.NOTIFICATIONS_OFF="bell_slash",lf.NOT_INTERESTED="circle_slash",lf.OFFICIAL_ARTIST_BADGE="audio",lf.OFFLINE_CLOUD="cloud_slash",lf.OFFLINE_DOWNLOAD="download",lf.OFFLINE_DOWNLOAD_CAIRO=
"download",lf.OFFLINE_PAUSE="pause",lf.OPEN_IN_NEW="arrow_up_right",lf.OUTLINE_ADJUST="adjust",lf.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",lf.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",lf.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",lf.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",lf.OUTLINE_BAG="bag",lf.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",lf.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",lf.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",lf.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",lf.PAID=
"dollar_sign_circle",lf.PAUSE_OUTLINED="pause",lf.PAYMENT="credit_card",lf.PEOPLE="person_child",lf.PEOPLE_2="person2_rectangle",lf.PEOPLE_GROUP="person3",lf.PEOPLE_NOTE="bubble_asterisk",lf.PERSON_2="person2",lf.PERSON_ACCOUNT="person_square_stack",lf.PERSON_MINUS="person_x",lf.PERSON_MUSIC="person_audio",lf.PERSON_RADAR="person_waves",lf.PERSON_RADAR_FILLED="person_waves",lf.PERSON_SETTING="person_gear",lf.PHONE="phone",lf.PHONE_DOWNLOAD="mobile_arrow_down",lf.PICTURE_IN_PICTURE="picture_in_picture",
lf.PLAYABLES_LOGO="playables",lf.PLAYABLES_LOGO_CAIRO="playables",lf.PLAYLISTS="playlist",lf.PLAYLISTS_CAIRO="playlist",lf.PLAYLIST_ADD_CHECK="bookmark",lf.PLAY_ALL="play",lf.PLAY_ARROW="play",lf.PLAY_ARROW_CIRCLE="play_circle",lf.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",lf.PLAY_CIRCLE="play_circle",lf.PLAY_OUTLINED="play_circle",lf.PODCAST_ADD="podcast_add",lf.PODCAST_CHECK="podcast_check",lf.PRIVACY_INFO="shield_x",lf.PRIVACY_PRIVATE="lock",lf.PRIVACY_PUBLIC="globe",lf.PRIVACY_UNLISTED=
"link",lf.PROMOTE="megaphone",lf.PURCHASES="price_tag",lf.PURCHASE_SUPER_CHAT="super_chat",lf.PURCHASE_SUPER_STICKER="super_sticker",lf.QUESTION_ANSWER="help_bubble",lf.QUESTION_CIRCLE="help_circle",lf.QUEUE_PLAY_LAST="queue_last",lf.QUEUE_PLAY_NEXT="queue_next",lf.QUOTATION_MARK="quote",lf.RADAR_LIVE="live",lf.REMOVE="minus_circle",lf.REMOVE_CIRCLE="minus_circle",lf.REMOVE_CIRCLE_OUTLINE="minus_circle",lf.REMOVE_FROM_HISTORY="minus_circle",lf.REMOVE_FROM_PLAYLIST="minus_circle",lf.REMOVE_MODERATOR=
"shield_slash",lf.REPLAY="arrow_counterclockwise",lf.REPLAY_10="skip10_back",lf.REPLAY_ARROW="replay",lf.REPORT_PROBLEM="alert_triangle",lf.RSS_OFF="rss_slash",lf.SAD="face_sad",lf.SAVE_PLAYLIST="bookmark",lf.SCHEDULE="clock",lf.SCHOOL="graduation_cap",lf.SCREEN_DEFAULT="player_default",lf.SCREEN_FULLSCREEN="player_full_enter",lf.SCREEN_LIGHT="ambient_mode",lf.SCREEN_ROTATION="rotate_portrait",lf.SCREEN_SWITCH="player_switch",lf.SCREEN_THEATRE="player_theater",lf.SEARCH_CAIRO="search",lf.SEARCH_HISTORY=
"history",lf.SELL="price_tag",lf.SETTINGS="gear",lf.SETTINGS_CAIRO="gear",lf.SETTINGS_LIGHT="gear",lf.SETTINGS_MATERIAL="gear",lf.SETTINGS_REMOTE="remote_waves",lf.SHARE="share",lf.SHARE_ARROW="share",lf.SHARE_CAIRO="share",lf.SHIELD="shield_x",lf.SHIELD_OFF="shield_slash",lf.SHIELD_WITH_AVATAR="person_shield",lf.SHOPPING_BAG="bag",lf.SHOPPING_BAG_CAIRO="bag",lf.SHOPPING_CART="cart",lf.SHORTS_COMMENT="text_bubble",lf.SHORTS_DISLIKE="thumb_down",lf.SHORTS_LIKE="thumb_up",lf.SHORTS_SHARE="share",lf.SKIP_FORWARD_30=
"skip30_forward",lf.SLASH_CIRCLE_RIGHT="circle_slash",lf.SLOW_MODE="bubble_slow",lf.SLOW_MODE_OFF="text_bubble",lf.SOCIAL="person_child",lf.SPARKLE="sparkles",lf.SPARK_IMAGE="image_spark",lf.SPARK_RADAR="spark_waves",lf.SPARK_VIDEO="video_spark",lf.SPEAKER_GROUP="speaker_stack",lf.SPEAKER_OFF="speaker_slash",lf.SPEED_1X="n1x",lf.SPEED_1_POINT_2X="n1point2x",lf.SPEED_1_POINT_5X="n1point5x",lf.SPEED_1_POINT_8X="n1point8x",lf.SPEED_2X="n2x",lf.SPONSORSHIP_STAR="star_circle",lf.SPORTS="basketball",lf.SPOTLIGHT=
"spotlight",lf.STAFF_PICK="spotlight",lf.START_DVR="add",lf.STAR_BORDER="star",lf.STAR_CIRCLE_RIBBON="memberships_gift",lf.STAR_HALF="star_half_filled",lf.STAR_SHOOTING="hype",lf.STICKER="sticker",lf.STICKER_EMOTICON="face_happy",lf.STOP_DVR="stop",lf.SUBSCRIBE="youtube",lf.SUBSCRIBE_PLUS="add",lf.SUBSCRIPTION_MANAGER="gear",lf.SUPERSTAR="super_star",lf.SUPERVISOR_ACCOUNT="person_child",lf.SUPER_CHAT_FOR_GOOD="hands_heart",lf.SWAP_HORIZ="arrow_swap_horizontal",lf.SWITCH_ACCOUNTS="person_square_stack",
lf.TAB_ACCOUNT="person",lf.TAB_ACTIVITY="bell",lf.TAB_BOOKMARK="bookmark",lf.TAB_EXPLORE="compass",lf.TAB_HOME="home",lf.TAB_HOME_CAIRO="home",lf.TAB_INBOX="mail",lf.TAB_LIKED="thumb_up",lf.TAB_MUSIC_PREMIUM="youtube_music",lf.TAB_SHORTS="shorts",lf.TAB_SHORTS_CAIRO="shorts",lf.TAB_SUBSCRIPTIONS="subscriptions",lf.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",lf.TAB_TRENDING="trending",lf.TARGET="target",lf.TARGET_ADD="target_add",lf.TEMPLATE_ADD="template_add",lf.TEXT="font",lf.TIMER="stopwatch",lf.TRENDING_CAIRO=
"trending",lf.TRENDING_UP="arrow_trend_up",lf.TROPHY_CAIRO="trophy",lf.TROPHY_CELEBRATIONS="fireworks",lf.TROPHY_STAR="star_trophy",lf.TUNE="adjust",lf.TV_OFF="tv_slash",lf.UNBLOCK_USER="minus_circle",lf.UNFAVORITE="thumb_down",lf.UNLIMITED="youtube",lf.UNPLUGGED_LIVE_GUIDE="live",lf.UNPLUGGED_SPORTS="eye_slash",lf.UPLOADS="play_square_stack",lf.UP_ARROW="arrow_up",lf.VERTICAL_ALIGN_BOTTOM="chevron_down_end",lf.VERTICAL_ALIGN_TOP="chevron_up_end",lf.VERY_HAPPY="face_very_happy",lf.VERY_SAD="face_very_sad",
lf.VIDEOS="play_circle",lf.VIDEO_CALL="video_camera_add",lf.VIDEO_LIBRARY_WHITE="play_square_stack",lf.VIDEO_QUALITY_4K="n4k",lf.VIDEO_QUALITY_8K="n8k",lf.VIDEO_YOUTUBE="youtube",lf.VIEW_LIST_CAIRO="view_list",lf.VIEW_MODULE="view_column3_row2",lf.VISIBILITY="eye",lf.VISIBILITY_OFF="eye_slash",lf.VOLUME_DOWN="volume_min",lf.VOLUME_MUTE="volume_mute",lf.VOLUME_OFF="volume_mute",lf.VOLUME_STABLE="stable_volume",lf.VOLUME_UP="volume_max",lf.WALLPAPER="image",lf.WARNING="alert_triangle",lf.WATCH_HISTORY=
"history",lf.WATCH_HISTORY_CAIRO="history",lf.WATCH_LATER="clock",lf.WATCH_LATER_CAIRO="clock",lf.WATCH_RELATED_MIX="mix",lf.WHAT_TO_WATCH="home",lf.YOUTUBE_LINKED_TV="tv_mobile",lf.YOUTUBE_MUSIC_MONOCHROME="youtube_music",lf.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",lf.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",lf.YOUTUBE_SHORTS_ARROW_UP="arrow_up",lf.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",lf.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",lf.YOUTUBE_SHORTS_OUTLINE_24="shorts",
lf);var rm0={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,
3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,
6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,
1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,
1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,
1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,
24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,
2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,
48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,14,24],[1,14,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],
shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,
2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],
uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],
x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[1,8,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,
1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,
5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var R_0={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],
eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,
4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,
1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,
1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],
hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,
8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,
1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],
live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,13,18],[0,13,24],[0,13,48],
[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,
1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],
overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,
24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,
1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,
1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,4,12],[1,4,18],[1,4,24],[1,4,48]],playlist_add:[[1,2,18],[1,2,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],
playlist_x:[[1,2,18],[1,2,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],
queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,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,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,
24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,
1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,
2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],
star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,
1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],
text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,
4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,
2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,
3,24],[1,3,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,8,24],[1,8,18],[1,8,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,
2,24],[1,2,24]]};var i$A={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"},af=function(O){this.iconUrlProvider=O};
af.prototype.resolveIcon=function(O,m){var G=i$A[O.iconName.toUpperCase()];G&&(O.iconName=G);var B=O.iconName;B=B.replace(/-/g,"_");O=Object.assign({},O,{iconName:this.mapIconTypeToStandardName(B,!!G)||B.toLowerCase()});if(_.V("enable_web_delhi_icons")||G){var Q;return J4N(R_0,O,((Q=this.iconUrlProvider)==null?void 0:Q.getYtStandardUrl)||Xyr,m)}var H;return J4N(rm0,O,((H=this.iconUrlProvider)==null?void 0:H.getYtStandardUrl)||nCS,m)};
af.prototype.mapIconTypeToStandardName=function(O,m){return _.V("enable_web_delhi_icons")||m?Mo0[O.toUpperCase()]:$eK[O.toUpperCase()]};
af[$R]=[_.v7(H$r)];var xeo=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),q3b=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),Uer=function(O){this.urlProvider=this.iconUrlProvider=O};
_.X(Uer,af);
Uer.prototype.resolveIcon=function(O,m){O.iconName==="youtube_logo"&&(O.iconName="yt-logo-updated");if(O.iconName==="youtube_premium_logo"||O.iconName==="youtube_red_logo")O.iconName="yt-logo-red-updated";var G=Object.assign({},O);O.iconName==="menu"&&(_.V("enable_web_delhi_icons")||(G.iconName="bars_3"),G.iconStyle="youtube_outline");O.iconSetName==="socialNetworksRound"&&(O.iconName==="mail"&&(G.iconName="email"),O.iconName==="embed"&&(G.iconSize=60));O.iconName==="more"&&(G.iconName="overflow_horizontal");
O.iconName==="fullscreen"&&(G.iconName="screen_full");O.iconName==="premium_standalone"&&(G.iconName="premium_standalone_cairo");_.V("enable_connect_icon_update_web")&&O.iconName==="account_linked"&&(G.iconName="circles_overlap_check",G.iconStyle="youtube_fill");_.V("enable_connect_icon_update_web")&&O.iconName==="account_unlinked"&&(G.iconName="circles_overlap",G.iconStyle="youtube_outline");xeo.has(O.iconName)&&(G.iconStyle="youtube_fill");_.V("enable_web_delhi_icons")&&(O.iconName==="playlist_add"&&
(G.iconName="bookmark"),O.iconName==="offline_pin"&&(G.iconName="arrow_down_circle",G.iconStyle="youtube_fill"),q3b.has(O.iconName)&&(G.iconName+="_updated"));O=Object.assign({},G,{iconName:(af.prototype.mapIconTypeToStandardName.call(this,G.iconName)||G.iconName).toLowerCase()});var B;return(O=J4N(B8J,O,((B=this.urlProvider)==null?void 0:B.getUrl)||fJr,m))?O:af.prototype.resolveIcon.call(this,G,m)};
Uer[$R]=[_.v7(H$r)];_.tob=1;var kD=function(O,m){this.JSC$17240_commandHandler=O;this.innertubeTransportService=m};
_.X(kD,x5);kD.prototype.resolveCommand=function(O,m){var G=this,B,Q,H;return _.r(function(M){return(B=_.b(O,Nsp))?M.return(WUb(G,B,(Q=m)==null?void 0:(H=Q.form)==null?void 0:H.element)):M.return()})};
var WUb=function(O,m,G){m={profileCardContext:m.profileCardContext,profileOwnerExternalChannelId:m.profileOwnerExternalChannelId};var B=_.$H(dKp);return _.rS(O.innertubeTransportService,m,B).then(function(Q){if(!Q)throw new _.j9("GetProfileCard failed");if(Q=Q.popupCommand){O.JSC$17240_commandHandler.resolveCommand(Q,{form:{element:G}});_.E1(_.uK(),66557);Q=Q==null?void 0:Q.clickTrackingParams;var H=_.kf();Q&&H&&_.uK().graftServerVe(Q,H)}})};
kD[$R]=[_.Mu,_.Dk];var yU=function(){};
_.X(yU,x5);yU.prototype.resolveCommand=function(O){var m,G;return _.r(function(B){m=_.b(O,Q79);if(!m)return B.return();G=Number(m.enableDelayedPacfLoggingTvMs);if(isNaN(G)){var Q=aI();WYC(Q,m,0)}else WYC(aI(),m,G);_.ju(B)})};_.cU=function(){};
_.X(_.cU,x5);
_.cU.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R,x,t;return _.r(function(W){B=_.b(O,Hyo);H=(Q=m.form)==null?void 0:Q.element;R=(M=H)==null?void 0:M.closest("ytd-enforcement-message-view-model");if(!B||!R)return W.return();G.allowAdsAction||(x=B.fundingChoiceInstructionPageUrl,G.allowAdsAction=new Vxp(window,_.aO(x)));var Z=G.allowAdsAction;Z.wallElement=R;Z.allowAdsPopup.style.setProperty("display","flex","important");var z=Z.scrollManager;z.originalBodyOverflow=z.JSC$10001_domHelper.JSC$9327_document_.body.style.overflow;z.JSC$10001_domHelper.JSC$9327_document_.body.style.overflow=
"hidden";Z.wallElement.style.setProperty("display","none","important");pfj(Z.accessibilityManager,Z.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((t=G.allowAdsAction.allowAdsPopup)&&t instanceof HTMLElement)for(Z=_.K(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),z=Z.next();!z.done;z=Z.next()){var J=_.K(z.value);z=J.next().value;J=J.next().value;t.style.setProperty(z,J)}_.ju(W)})};
_.cU.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var YD=function(){};
_.X(YD,x5);YD.prototype.resolveCommand=function(O){var m;return _.r(function(G){m=_.b(O,m2e);if(!m)return G.return();B0f(O);_.ju(G)})};var d0=function(O){this.JSC$17255_commandHandler=O};
_.X(d0,x5);
d0.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M,R,x,t;return _.r(function(W){if(W.nextAddress==1){G=_.b(O,u_$);if((B=G)==null||!B.text||!navigator.clipboard)return W.return();_.n_(W,2);return W.yield(navigator.clipboard.writeText(G.text),4)}if(W.nextAddress!=2){if(!G.successActions||G.successActions.length===0)return W.return();Q=_.K(G.successActions);for(H=Q.next();!H.done;H=Q.next())M=H.value,m.JSC$17255_commandHandler.resolveCommand(M);return _.P7(W,0)}_.uS(W);if(!G.failureActions||G.failureActions.length===
0)return W.return();R=_.K(G.failureActions);for(x=R.next();!x.done;x=R.next())t=x.value,m.JSC$17255_commandHandler.resolveCommand(t);_.ju(W)})};
d0[$R]=[_.Mu];var w0=function(O){this.JSC$17259_commandHandler=O};
_.X(w0,x5);
w0.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R,x,t,W,Z,z;return _.r(function(J){switch(J.nextAddress){case 1:B=_.b(O,$2m);if(!B)return J.return();_.n_(J,2);if(!B.imageBytes&&!B.imageUrl)throw Error("Fi");if(!B.imageUrl){if(B.imageBytes){H=B.imageBytes;M=H.replace(/-/g,"+").replace(/_/g,"/");var n=gCz(M);Q=_.w5(n)}J.jumpTo(4);break}return J.yield(fetch(B.imageUrl),5);case 5:return R=J.yieldResult,J.yield(R.blob(),6);case 6:x=J.yieldResult,Q=_.w5(x);case 4:Z=(t=m)==null?void 0:(W=t.form)==
null?void 0:W.element;z=document.createElement("a");sh(z,Q);Z.appendChild(z);z.download="";z.click();Z.removeChild(z);URL.revokeObjectURL(_.an(Q));B.successCommand&&G.JSC$17259_commandHandler.resolveCommand(B.successCommand);_.P7(J,0);break;case 2:_.uS(J),B.errorCommand&&G.JSC$17259_commandHandler.resolveCommand(B.errorCommand),_.ju(J)}})};
w0[$R]=[_.Mu];var ed=function(O){this.store=O};
_.X(ed,x5);ed.prototype.resolveCommand=function(O){var m=this,G,B,Q;return _.r(function(H){B=(G=_.b(O,_.qso))==null?void 0:G.entityBatchUpdate;if(!B)return H.jumpTo(0);Q=Object.assign({},B,{mutations:[].concat(_.lS(B.mutations||[]))});return H.yield(_.Tk(Q,m.store),0)})};var Z$s=function(O){this.JSC$17266_commandHandler=O;this.feedbackDialogMap=new Map};
Z$s.prototype.openDialog=function(O,m){(O=this.feedbackDialogMap.get(O))&&this.JSC$17266_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:O}},m)};
Z$s[$R]=[_.Mu];var DT=new _.Us("FEEDBACK_CONTROLLER_TOKEN");var sG=new _.Us("APP_STORE_TOKEN");var N9=function(O,m){this.store=O;this.controller=m};
_.X(N9,x5);N9.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P,w;return _.r(function(d){if(d.nextAddress==1){B=_.b(O,_.Sk);if(H=(Q=B)==null?void 0:Q.contentId)for(R=_.K(((M=B)==null?void 0:M.actions)||[]),x=R.next();!x.done;x=R.next())t=x.value,z_B(G,t,H);z=(W=m)==null?void 0:(Z=W.form)==null?void 0:Z.element;return d.yield(_.tK(z,[O,{impression:(J=m)==null?void 0:J.disableClickTracking}]).catch(function(){}),2)}n=d.yieldResult;
((I=n)==null?0:(S=I.data)==null?0:(L=S.feedbackResponses)==null?0:L.length)&&(P=(C=n.data.feedbackResponses[0])==null?void 0:C.followUpDialog)&&H&&(w=G.controller)!=null&&w.feedbackDialogMap.set(H,P);_.ju(d)})};
var z_B=function(O,m,G){var B=_.b(m,_.zC);if(B){B=_.K(B.commands||[]);for(var Q=B.next();!Q.done;Q=B.next())z_B(O,Q.value,G)}_.b(m,_.aC)&&O.store.dispatch(_.jh("commandEntity",n$6(G),{key:G,command:m}));_.b(m,GZ2)&&O.store.dispatch(_.jh("commandEntity",n$6(G),{key:G,command:m}))};
N9[$R]=[sG,DT];var PU=function(O){this.controller=O};
_.X(PU,x5);PU.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M;return _.r(function(R){B=_.b(O,_.dE);H=(Q=B)==null?void 0:Q.targetId;if(((M=B)==null?void 0:M.signal)!=="TELL_US_WHY"||!H)return R.return();G.controller.openDialog(H,m);_.ju(R)})};
PU[$R]=[DT];var FB=function(O){this.store=O};
_.X(FB,x5);FB.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R,x,t;return _.r(function(W){B=_.b(O,qkN);H=(Q=B)==null?void 0:Q.contentId;x=(M=m)==null?void 0:(R=M.form)==null?void 0:R.element;t=_.tK(x,[O]);H&&G.undo(H);return W.yield(t,0)})};
FB.prototype.undo=function(O){this.store.dispatch(_.jh("commandEntity",n$6(O),{key:O,command:void 0}))};
FB[$R]=[sG];var Ai=function(O){this.JSC$17281_commandHandler=O};
_.X(Ai,x5);Ai.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M,R,x,t;return _.r(function(W){G=_.b(O,jRs);B=G.flowStateKey;Q=G.validationFailureCommand;H=G.submitValidFormCommand;M=Sl6(_.OQ,[B||""]);R=_.b(M,p1e);((x=R)==null?0:x.isValid)&&H&&m.JSC$17281_commandHandler.resolveCommand(H);((t=R)==null?0:t.isValid)||!Q||m.JSC$17281_commandHandler.resolveCommand(Q);_.ju(W)})};
Ai[$R]=[_.Mu];var Ox=function(O){this.innertubeTransportService=O};
_.X(Ox,x5);Ox.prototype.resolveCommand=function(O,m){var G=this,B;return _.r(function(Q){return Q.yield(_.Ov(G.innertubeTransportService,O,(B=m)==null?void 0:B.form).then(function(H){var M,R;m==null||(M=m.commandController)==null||(R=M.onSuccess)==null||R.call(M,O,H)},function(H){var M,R;
m==null||(M=m.commandController)==null||(R=M.onServerError)==null||R.call(M,O,H)}),0)})};
Ox[$R]=[_.Dk];var ml=function(){};
_.X(ml,x5);ml.prototype.resolveCommand=function(O){var m,G,B,Q;return _.r(function(H){if(m=_.b(O,_.V68)){if(G=m.gtmId)B=_.kB("GL",""),_.m2(G,B);(Q=m.gtmData)&&_.Gh(Q)}_.ju(H)})};var Gt=function(O,m,G){this.innertubeTransportService=O;this.JSC$17292_actionRouter=m;this.JSC$17292_screenManager=G};
_.X(Gt,x5);Gt.prototype.resolveCommand=function(O){var m=this,G,B;return _.r(function(Q){G=_.b(O,T6H);if(!G)return Q.return();B=G.command;if(!B)return Q.return();m.JSC$17292_actionRouter.triggerAction("yt-insert-rich-section-action",G);return Q.yield(_.Ov(m.innertubeTransportService,B,{disableCache:!0}).then(function(H){O.clickTrackingParams&&(H==null?0:H.trackingParams)&&m.JSC$17292_screenManager.graftServerVe(H.trackingParams,_.Ez(O.clickTrackingParams))}),0)})};
Gt[$R]=[_.Dk,bR,_.GR];jgI.bind(null,qR);var Jmy=jgI.bind(null,Sy8);pyN.bind(null,qR);var VoA=pyN.bind(null,Sy8);ECs.bind(null,qR);var b$3=ECs.bind(null,Sy8);var BA=function(){};
_.X(BA,x5);
BA.prototype.resolveCommand=function(O){var m,G,B,Q,H,M,R,x,t,W;return _.r(function(Z){m=_.b(O,iYs);if(!m)return Z.return();B=((G=m.operations)==null?void 0:G.operations)||[];Q=_.K(B);for(H=Q.next();!H.done;H=Q.next())if(M=H.value,M.insertItemSectionContent){var z=M.insertItemSectionContent,J=z.contents||[];z.insertByPositionInSection?Jmy(z.insertByPositionInSection.sectionTargetId,J,z.insertByPositionInSection.position):z.insertByRelativePositionInSection&&z.insertByRelativePositionInSection.sectionTargetId&&z.insertByRelativePositionInSection.itemTargetId&&
VoA(z.insertByRelativePositionInSection.sectionTargetId,z.insertByRelativePositionInSection.itemTargetId,J,z.insertByRelativePositionInSection.relativePosition)}else M.replaceSection?(z=M.replaceSection,J={},z.replaceByTargetId?J=z.replaceByTargetId:z.replaceByGroupId&&(J={targetId:z.replaceByGroupId.groupId,newContent:z.replaceByGroupId.newContent,undoKey:""}),J.newContent&&Crp(J.targetId,{continuationItems:[J.newContent]})):M.removeItem?(z=M.removeItem,z.removeByTargetId&&z.sectionTargetId&&b$3(z.sectionTargetId,
z.removeByTargetId.targetIds||[])):M.removeSection&&(M.removeSection.removeByTargetId?(R=void 0,n99(((R=M.removeSection)==null?void 0:R.removeByTargetId.targetIds)||[])):M.removeSection.removeByGroupId&&(x=void 0,n99(((x=M.removeSection)==null?void 0:x.removeByGroupId.groupIds)||[])));W=((t=m.operations)==null?void 0:t.scrollConfig)||{};XsJ(W);_.ju(Z)})};
var n99=function(O){O=_.K(O);for(var m=O.next();!m.done;m=O.next())Crp(m.value,{continuationItems:[]})},XsJ=function(O){if(O.scrollToItem){var m=O.scrollToItem.item||{},G=m.itemTargetId;
m=m.sectionTargetId;if(G&&m){var B=document.querySelector("[data-target-id="+m+"]"),Q=B==null?void 0:B.querySelector("[data-target-id="+G+"]");B&&Q&&setTimeout(function(){var H=Q.offsetTop-B.offsetTop,M;if(((M=O.scrollToItem)==null?void 0:M.scrollPosition)==="SCROLL_POSITION_CENTER")H-=B.offsetHeight/2,H+=Q.offsetHeight/2;else{var R;((R=O.scrollToItem)==null?void 0:R.scrollPosition)==="SCROLL_POSITION_END"&&(H-=B.offsetHeight,H+=Q.offsetHeight)}B.scroll({top:H,behavior:"smooth"})},100)}}};var QG=new _.Us("CLIENT_NAME_TOKEN");var fHu=new _.Us("DEFAULT_STORE_EXPIRATION_TOKEN");var hYM=new _.Us("CLIENT_LOCATION_SERVICE_TOKEN");var HA=function(O,m,G){this.clientName=O||_.kB("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=m||_.kH.getInstance();this.JSC$17320_commandHandler=G||_.XJ.instance};
_.X(HA,x5);HA.prototype.resolveCommand=function(O){var m=this,G,B;return _.r(function(Q){B=(G=_.b(O,Yiu))==null?void 0:G.onComplete;m.clientLocationService.clearLocationPlayabilityToken(m.clientName);B&&m.JSC$17320_commandHandler.resolveCommand(B);_.ju(Q)})};
HA[$R]=[QG,hYM,_.Mu];var vA=function(O){this.innertubeTransportService=O};
_.X(vA,x5);vA.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M;return _.r(function(R){H=(B=m)==null?void 0:(Q=B.form)==null?void 0:Q.element;return R.yield(_.Ov(G.innertubeTransportService,O,(M=m)==null?void 0:M.form).then(function(x){Yn6(H,new CustomEvent("yt-service-request-completed"),{data:x},_.kB("openPopupConfig"))}),0)})};
vA[$R]=[_.Dk];var Kb=function(){};
_.X(Kb,x5);Kb.prototype.resolveCommand=function(O){var m,G;return _.r(function(B){m=_.b(O,Cao);G=document.querySelector("mini-app-container-view-model");if(!m||!G)return B.return();m.isPlaying?G.dispatchEvent(new Event("play")):G.dispatchEvent(new Event("pause"));_.ju(B)})};var $x=function(){};
_.X($x,x5);$x.prototype.resolveCommand=function(O){var m,G,B,Q,H,M,R;return _.r(function(x){m=_.b(O,Udj);if((G=m)==null||!G.paramKeys)return x.return();B=m.paramKeys;Q=_.Ph(window.location.href);H=_.K(B);for(M=H.next();!M.done;M=H.next())R=M.value,Q.JSC$10033_queryData_.remove(R);window.history.replaceState(window.history.state,document.title,Q.toString());_.ju(x)})};var h_y=function(){this.dropdownMap=new Map};_.T8r=new _.Us("DROPDOWN_CONTROLLER_TOKEN");var Mq=function(O){this.controller=O};
_.X(Mq,x5);Mq.prototype.resolveCommand=function(O){var m=this,G,B,Q,H;return _.r(function(M){G=_.b(O,DxU);if(!G)return M.return();B=G;Q=B.dropdownId;H=B.selectedOptionIndex;if(Q===void 0||H===void 0)return M.return();var R=m.controller.dropdownMap.get(Q);R&&R(H);_.ju(M)})};
Mq[$R]=[_.T8r];var rb=function(O){this.controller=O};
_.X(rb,x5);rb.prototype.resolveCommand=function(O){var m=this,G;return _.r(function(B){return(G=_.b(O,Qi9))?B.yield(m.controller.closeDialog(),0):B.return()})};
rb[$R]=[_.mc];var RT=function(O){this.controller=O};
_.X(RT,x5);RT.prototype.resolveCommand=function(O){var m=this,G,B;return _.r(function(Q){G=_.b(O,kv_);if(!G)return Q.return();var H,M=G.panelIdentifier||((H=G.identifier)==null?void 0:H.tag);if(!M)throw Error("Gi");return(B=M)?Q.yield(m.controller.hidePanel(B),0):Q.jumpTo(0)})};
RT[$R]=[_.Ah];var ih=function(O){this.controller=O};
_.X(ih,x5);ih.prototype.resolveCommand=function(O){var m=this,G;return _.r(function(B){return(G=_.b(O,hRu))?B.yield(m.controller.closeSheet(),0):B.return()})};
ih[$R]=[_.O5];var xx=function(O,m){this.innertubeTransportService=O;this.controller=m};
_.X(xx,x5);xx.prototype.resolveCommand=function(O){var m=this,G,B,Q,H;return _.r(function(M){if(M.nextAddress==1)return G=_.b(O,yem),(B=G)!=null&&B.panelId?M.yield(m.controller.getReloadContinuation(G.panelId),2):M.return();if(M.nextAddress!=3)return(Q=M.yieldResult)?M.yield(_.Ov(m.innertubeTransportService,O,{continuation:Q}),3):M.return();H=M.yieldResult;return M.yield(m.controller.updatePanel(G.panelId,H.content,!1),0)})};
xx[$R]=[_.Dk,_.Ah];var qq=function(O,m,G){this.innertubeTransportService=O;this.JSC$17360_screenManager=m;this.JSC$17360_commandHandler=G};
_.X(qq,x5);
qq.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M,R;return _.r(function(x){if(x.nextAddress==1){G=_.b(O,_.pzC);if(!G)return x.return();if(G.commands)for(B=_.K(G.commands),Q=B.next();!Q.done;Q=B.next())H=Q.value,m.JSC$17360_commandHandler.resolveCommand(H,{disableClickTracking:!0});M=_.Ez(O.clickTrackingParams);_.E1(m.JSC$17360_screenManager,21760,M,{layer:7,parentLayer:0});return x.yield(_.Ov(m.innertubeTransportService,O),2)}R=x.yieldResult;if(!R)return x.return();m.JSC$17360_screenManager.graftServerVe(R.trackingParams,M,
7);_.ju(x)})};
qq[$R]=[_.Dk,_.GR,_.Mu];var Ux=new _.Us("PANEL_LOADING_STRATEGY_TOKEN");var tO=function(O,m){this.controller=O;this.panelLoadingStrategy=m};
_.X(tO,x5);
tO.prototype.resolveCommand=function(O,m){var G=this,B,Q,H;return _.r(function(M){B=_.b(O,goC);if((Q=B)==null||!Q.panelLoadingStrategy)return M.return();H=function(R){var x,t,W,Z,z,J,n,I,S,L;return _.r(function(C){t=_.b((x=R.dialogViewModel)==null?void 0:x.header,sF_);W={viewModel:R.dialogViewModel};Z={};if(n=_.V("web_enable_dialog_header_label")?(z=t)==null?void 0:(J=z.headline)==null?void 0:J.content:void 0)Z.ariaLabel=n;B.dismissOnBackgroundTap===!1&&(Z.isModal=!0);return R.dialogViewModel?C.yield(G.controller.openDialog(W,
(L=(I=m)==null?void 0:(S=I.form)==null?void 0:S.element)!=null?L:document.body,Z),0):C.return()})};
return M.yield(G.panelLoadingStrategy.execute({command:O,data:B.panelLoadingStrategy,renderFn:H,createScreenConfig:{layer:4}}),0)})};
tO[$R]=[_.mc,Ux];var WA=function(O,m,G){this.innertubeTransportService=O;this.controller=m;this.JSC$17380_screenManager=G};
_.X(WA,x5);
WA.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R,x,t,W,Z,z,J,n;return _.r(function(I){switch(I.nextAddress){case 1:B=_.b(O,_.pk);if(!B)return I.return();var S,L=B.panelIdentifier||((S=B.identifier)==null?void 0:S.tag);if(!L)throw Error("Gi");Q=L;return I.yield(G.controller.isVisible(Q,!0),2);case 2:if((H=I.yieldResult)&&B.blockIfPanelOpen)return I.return();x=(R=(M=G.controller).getPanelContent)==null?void 0:R.call(M,Q);if(!(S=x))if(B){var C;S=((C=B.globalConfiguration)==null?void 0:
C.initialState)||B.engagementPanel;if(C=!S)C=!!(B==null?0:(L=B.engagementPanelPresentationConfigs)==null?0:L.engagementPanelPopupPresentationConfig);C&&(S=_.LJ6(B.panelIdentifier,B.identifier))}else S=void 0;t=S;W=B.engagementPanelPresentationConfigs;Z=B.engagementPanelExtras;return I.yield(G.controller.showPanel(Q,t,W,Z,(z=m)==null?void 0:(J=z.form)==null?void 0:J.element),3);case 3:if(!B.globalConfiguration){I.jumpTo(0);break}_.E1(G.JSC$17380_screenManager,32633);return I.yield(_.Ov(G.innertubeTransportService,
O),5);case 5:return n=I.yieldResult,G.JSC$17380_screenManager.graftServerVe(n.trackingParams),I.yield(G.controller.updatePanel(Q,n.content,!0,Z,void 0,n.updatePanelContinuationData),0)}})};
WA[$R]=[_.Dk,_.Ah,_.GR];var Z3=function(O,m){this.controller=O;this.panelLoadingStrategy=m};
_.X(Z3,x5);Z3.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R,x;return _.r(function(t){B=_.b(O,_.I_);if((Q=B)==null||!Q.panelLoadingStrategy)return t.return();R=g9s(G.controller,(H=m)==null?void 0:(M=H.form)==null?void 0:M.element);x=function(W){return _.r(function(Z){return W.sheetViewModel?Z.yield(G.controller.openSheet({viewModel:W.sheetViewModel},R),0):Z.return()})};
return t.yield(G.panelLoadingStrategy.execute({command:O,data:B.panelLoadingStrategy,renderFn:x,createScreenConfig:{layer:0}}),0)})};
Z3[$R]=[_.O5,Ux];var zt=function(O,m){this.controller=O;this.JSC$17387_commandHandler=m};
_.X(zt,x5);zt.prototype.resolveCommand=function(O,m){var G=this,B,Q,H;return _.r(function(M){if(M.nextAddress==1){B=_.b(O,wKu);var R=_.b(B.showCommand,_.pk),x,t,W=(t=R==null?void 0:R.panelIdentifier)!=null?t:R==null?void 0:(x=R.identifier)==null?void 0:x.tag;if(!W)throw Error("Hi");Q=W;return M.yield(G.controller.isVisible(Q),2)}return(H=M.yieldResult)?M.yield(G.controller.hidePanel(Q),0):M.yield(G.JSC$17387_commandHandler.resolveCommand(B.showCommand,m),0)})};
zt[$R]=[_.Ah,_.Mu];var JO=function(O,m,G){this.innertubeTransportService=O;this.controller=m;this.JSC$17390_screenManager=G};
_.X(JO,x5);
JO.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P,w,d,D,OS;return _.r(function(rN){switch(rN.nextAddress){case 1:return B=G=_.b(O,DcH),Q=B.targetPanelIdentifier,H=B.contentSourcePanelIdentifier,M=B.globalConfiguration,((R=Q)==null?0:R.tag)&&((x=H)==null?0:x.tag)?M?rN.yield(m.controller.showPanel(Q.tag,_.LJ6(Q.tag,Q),void 0,void 0,void 0),5):rN.yield((z=(Z=m.controller).getPanel)==null?void 0:z.call(Z,H.tag),4):rN.return();case 4:J=rN.yieldResult;t=(n=J)==null?
void 0:(S=(I=n).getPanelContent)==null?void 0:S.call(I);rN.jumpTo(3);break;case 5:return rN.yield(_.Ov(m.innertubeTransportService,O),6);case 6:L=rN.yieldResult,((C=L)==null?0:C.trackingParams)&&m.JSC$17390_screenManager.graftServerVe(L.trackingParams),t=(P=L)==null?void 0:P.content,W=(w=L)==null?void 0:w.updatePanelContinuationData;case 3:if(D=(d=t)==null?void 0:d.engagementPanelSectionListRenderer)return rN.yield(m.controller.showPanel(Q.tag,void 0,void 0,void 0,void 0,{content:D.content,secondaryHeaderContent:(OS=
D.header)!=null?OS:{},targetId:D.targetId},W),0);rN.jumpTo(0)}})};
JO[$R]=[_.Dk,_.Ah,_.GR];var VG=function(){};
_.X(VG,x5);VG.prototype.resolveCommand=function(O){var m,G,B;return _.r(function(Q){if(Q.nextAddress==1)return(m=_.b(O,OG2))?Q.yield(_.zM(),2):Q.return();G=Q.yieldResult;if(!G)return Q.return();var H=G,M=(B=m)==null?void 0:B.languageCode,R;(H==null?0:(R=H.isReady)==null?0:R.call(H))&&(M=CJz(H,M))&&H.setAudioTrack(M);_.ju(Q)})};var nb=function(){};
_.X(nb,x5);var uCA=function(O){var m;return _.r(function(G){m=_.kB("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;O.JSC$17399_mainAppPlayer=new bp(m);document.addEventListener("yt-page-data-updated",O.JSC$17399_pauseOnNavigation.bind(O));_.ju(G)})};
nb.prototype.JSC$17399_pauseOnNavigation=function(){var O=this,m,G;return _.r(function(B){if(B.nextAddress==1)return m=O.JSC$17399_mainAppPlayer,B.yield(m.api,2);G=B.yieldResult;G.pauseVideo();_.ju(B)})};
var jjy=function(O,m,G){var B;return _.r(function(Q){B=O.JSC$17399_mainAppPlayer;return Q.yield(B.loadVideoWithPlayerVars({videoId:m,audio_only:"1",player_params:G}),0)})};
nb.prototype.pauseVideo=function(){var O=this,m,G;return _.r(function(B){if(B.nextAddress==1)return m=O.JSC$17399_mainAppPlayer,B.yield(m.api,2);G=B.yieldResult;G.pauseVideo();_.ju(B)})};
nb.prototype.playVideo=function(){var O=this,m,G;return _.r(function(B){if(B.nextAddress==1)return m=O.JSC$17399_mainAppPlayer,B.yield(m.api,2);G=B.yieldResult;G.playVideo();_.ju(B)})};
var IHs=function(O){var m,G;return _.r(function(B){if(B.nextAddress==1)return m=O.JSC$17399_mainAppPlayer,B.yield(m.api,2);G=B.yieldResult;G.mute();_.ju(B)})},pso=function(O){var m,G;
return _.r(function(B){if(B.nextAddress==1)return m=O.JSC$17399_mainAppPlayer,B.yield(m.api,2);G=B.yieldResult;G.unMute();_.ju(B)})},S3x=function(O,m){return _.r(function(G){switch(G.nextAddress){case 1:switch(m){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return G.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return G.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return G.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return G.jumpTo(5)}G.jumpTo(0);break;case 2:return G.yield(O.playVideo(),7);case 7:G.jumpTo(0);break;case 3:return G.yield(O.pauseVideo(),8);case 8:G.jumpTo(0);break;case 4:return G.yield(IHs(O),9);case 9:G.jumpTo(0);break;case 5:return G.yield(pso(O),10);case 10:G.jumpTo(0)}})};
nb.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M,R,x,t,W,Z,z;return _.r(function(J){return J.nextAddress==1?(G=_.b(O,jKH),((B=G)==null?0:B.newPlaybackParams)||((Q=G)==null?0:Q.controlAction)?m.JSC$17399_mainAppPlayer?J.jumpTo(2):J.yield(uCA(m),2):J.return()):((H=G)==null?0:H.newPlaybackParams)?(x=(M=G)==null?void 0:(R=M.newPlaybackParams)==null?void 0:R.externalVideoId,z=(Z=(t=G)==null?void 0:(W=t.newPlaybackParams)==null?void 0:W.playerParams)!=null?Z:"",x?J.yield(jjy(m,x,z),0):J.return()):
J.yield(S3x(m,G.controlAction),0)})};var XQ=function(O){this.JSC$17406_commandHandler=O};
_.X(XQ,x5);
XQ.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M,R;return _.r(function(x){if(x.nextAddress==1)return(G=_.b(O,m4s))?x.yield(_.zM(),2):x.return();B=x.yieldResult;if(!B)return x.return();var t=B,W=(Q=G)==null?void 0:Q.languageCode,Z=(H=G)==null?void 0:H.isAutoTranslated;t.getVideoData&&_.lJO(t).length&&((W=k2S(t,W,Z))?t.setOption("captions","track",W):(t.setOption("captions","stickyLoading",{}),t.setOption("captions","track",{})));M=B.isSubtitlesOn()?_.Xm("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Xm("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");R=_.Rh(M);m.JSC$17406_commandHandler.resolveCommand(R);_.ju(x)})};
XQ[$R]=[_.Mu];var fb=function(O,m){this.shortsPlayerPromise=O;this.JSC$17410_commandHandler=m};
_.X(fb,x5);
fb.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M,R,x,t;return _.r(function(W){if(W.nextAddress==1)return(G=_.b(O,Jfp))?W.yield(m.shortsPlayerPromise,2):W.return();B=W.yieldResult;var Z=y4O(B);Z!=null&&Z.length||(B.loadModule("captions"),Z=y4O(B));Q=Z;if((H=Q)==null||!H.length)return M=_.Xm("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),R=_.Rh(M),m.JSC$17410_commandHandler.resolveCommand(R),W.return();B.toggleSubtitles();x=B.isSubtitlesOn()?_.Xm("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Xm("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");t=_.Rh(x);m.JSC$17410_commandHandler.resolveCommand(t);_.ju(W)})};
fb[$R]=[_.iM2,_.Mu];var hO=function(O){this.JSC$17413_actionRouter=O;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(m,G){m.triggerAction("yt-dismiss-shopping-timely-shelf-action",G)}]])};
_.X(hO,x5);hO.prototype.resolveCommand=function(O){var m=this,G,B,Q;return _.r(function(H){G=_.b(O,HG$);if((B=G)==null||!B.overlayId)return H.return();Q=m.dismissPlayerOverlayActions.get(G.overlayId);if(!Q)throw Error("Ii`"+G.overlayId);Q(m.JSC$17413_actionRouter,G);_.ju(H)})};
hO[$R]=[bR];var Tt=function(O){this.JSC$17417_playerPromise=O};
_.X(Tt,x5);Tt.prototype.resolveCommand=function(O){var m=this,G,B,Q,H;return _.r(function(M){if(M.nextAddress==1)return(G=_.b(O,Yoj))?M.yield(m.JSC$17417_playerPromise,2):M.return();B=M.yieldResult;Q=B.getVideoData().video_id;G.videoId===Q&&(H=Number(G.offsetFromVideoStartMilliseconds),H>=0&&B.seekTo(H/1E3));_.ju(M)})};
Tt[$R]=[_.q1];var E9u=_.Ja("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),gb=function(O){this.store=O};
_.X(gb,x5);
var LUo=function(O){var m,G,B,Q;return _.r(function(H){if(H.nextAddress==1)return m=_.kB("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,G=_.kB("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,B=m||G,O.JSC$17421_mainAppPlayer=new bp(B),H.yield(O.JSC$17421_mainAppPlayer.api,2);Q=H.yieldResult;Q.addEventListener("onStateChange",O.JSC$17421_playerStateChangeListener.bind(O));document.addEventListener("yt-page-data-updated",O.JSC$17421_pauseOnNavigation.bind(O));window.addEventListener("state-navigatestart",
O.JSC$17421_pauseOnNavigation.bind(O));_.ju(H)})};
gb.prototype.JSC$17421_playerStateChangeListener=function(O){switch(O){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"}C2x(this)};
var C2x=function(O){O.store.dispatch(_.jh("sfvAudioItemCurrentlyPlayingEntity",E9u,{key:E9u,externalVideoId:O.externalVideoId,sfvAudioItemPlaybackState:O.playbackState,nowPlayingEntityValue:O.nowPlayingEntityValue}))};
gb.prototype.JSC$17421_pauseOnNavigation=function(){var O=this,m,G,B,Q;return _.r(function(H){if(H.nextAddress==1){if(!O.JSC$17421_mainAppPlayer){var M=new _.j9("Error: mainAppPlayer is unavailable",O.JSC$17421_mainAppPlayer);_.oy(M);return H.return()}return H.yield(O.JSC$17421_mainAppPlayer.api,2)}m=H.yieldResult;B=(G=m)==null?void 0:G.getPlayerState();B!==1||(Q=m)!=null&&Q.pauseVideo();_.ju(H)})};
gb.prototype.playVideo=function(O,m,G){var B=this,Q,H;return _.r(function(M){if(M.nextAddress==1)return M.yield((Q=B.JSC$17421_mainAppPlayer)==null?void 0:Q.api,2);H=M.yieldResult;if(!B.JSC$17421_mainAppPlayer||!H){var R=new _.j9("Error: mainAppPlayer is unavailable",B.JSC$17421_mainAppPlayer);_.oy(R);return M.return()}return M.yield(B.JSC$17421_mainAppPlayer.loadVideoWithPlayerVars({videoId:B.externalVideoId,audio_only:"1",start:O/1E3,end:O/1E3+m,player_params:G}),0)})};
gb.prototype.pauseVideo=function(){var O=this,m,G;return _.r(function(B){if(B.nextAddress==1){if(!O.JSC$17421_mainAppPlayer){var Q=new _.j9("Error: mainAppPlayer is unavailable",O.JSC$17421_mainAppPlayer);_.oy(Q);return B.return()}return B.yield(O.JSC$17421_mainAppPlayer.api,2)}m=B.yieldResult;(G=m)==null||G.pauseVideo();_.ju(B)})};
gb.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P,w;return _.r(function(d){if(d.nextAddress==1)return G=_.b(O,tI$),Q=(B=G)==null?void 0:B.nowPlayingEntityValue,M=(H=G)==null?void 0:H.externalVideoId,Z=Number((W=(R=G)==null?void 0:(x=R.defaultStartPoints)==null?void 0:(t=x[0])==null?void 0:t.offsetMs)!=null?W:"0"),L=Number((S=(z=G)==null?void 0:(J=z.defaultStartPoints)==null?void 0:(n=J[0])==null?void 0:(I=n.duration)==null?void 0:I.seconds)!=null?S:"15"),w=(P=
(C=G)==null?void 0:C.playerParams)!=null?P:"",Q&&M?m.JSC$17421_mainAppPlayer?d.jumpTo(2):d.yield(LUo(m),2):d.return();if(d.nextAddress!=6){if(m.nowPlayingEntityValue&&Q===m.nowPlayingEntityValue)return m.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?d.yield(m.pauseVideo(),0):d.yield(m.playVideo(Z,L,w),0);m.externalVideoId=M;m.nowPlayingEntityValue=Q;m.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return d.yield(m.playVideo(Z,L,w),6)}C2x(m);return d.jumpTo(0)})};
gb[$R]=[$p];var uh=function(O){this.JSC$17439_commandHandler=O};
_.X(uh,x5);uh.prototype.resolveCommand=function(O,m){var G=this,B,Q,H;return _.r(function(M){if(M.nextAddress==1)return(B=_.b(O,Gvo))?M.yield(_.zM(),2):M.return();Q=M.yieldResult;if(!Q)return M.return();(H=c4r(Q))&&G.JSC$17439_commandHandler.resolveCommand(H,m);_.ju(M)})};
uh[$R]=[_.Mu];var js=function(O){this.JSC$17445_commandHandler=O};
_.X(js,x5);js.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R;return _.r(function(x){if(x.nextAddress==1)return(B=_.b(O,B2u))?x.yield(_.zM(),2):x.return();Q=x.yieldResult;if(!Q)return x.return();(H=DaN(Q))?G.JSC$17445_commandHandler.resolveCommand(H,m):(M=_.Xm("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),R=_.Rh(M),G.JSC$17445_commandHandler.resolveCommand(R));_.ju(x)})};
js[$R]=[_.Mu];var IT=function(O){this.JSC$17448_playerPromise=O};
_.X(IT,x5);IT.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M;return _.r(function(R){if(R.nextAddress==1){G=_.b(O,d4C);if(!G)return R.return();B=G.overlayRenderer;return B?(Q=_.b(B,rn3))?R.yield(m.JSC$17448_playerPromise,3):R.jumpTo(0):R.return()}H=R.yieldResult;H.renderChapterSeekingAnimation(1,_.HX(Q.text),(M=Q.icon)==null?void 0:M.iconType);_.ju(R)})};
IT[$R]=[_.q1];var pb=function(O){this.store=O};
_.X(pb,x5);
pb.prototype.resolveCommand=function(O){var m=this,G,B,Q;return _.r(function(H){if(H.nextAddress==1){G=_.b(O,IIp);if(!G)return H.return();B="";(Q=m.store.getState().collabInviteLink)&&G.id===Q.playlistId?B=Q.inviteLinkURL:G.shortUrl&&(B=G.shortUrl);return B?H.yield(navigator.clipboard.writeText(B),3):H.jumpTo(0)}var M={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Xm("COPY_LINK_SUCCESS_TOAST")}}}}};_.KR().resolve(_.Mu).resolveCommand(M);_.ju(H)})};
pb[$R]=[sG];var Ss=function(O,m){this.innertubeTransportService=O;this.JSC$17458_commandHandler=m};
_.X(Ss,x5);Ss.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R,x,t,W,Z,z;return _.r(function(J){if(J.nextAddress==1)return(B=_.b(O,_.MO))?J.yield(_.Ov(G.innertubeTransportService,O,(Q=m)==null?void 0:Q.form),2):J.return();(H=J.yieldResult)&&H.errorMetadata&&(M=H,R=_.Rh(M.error.message),G.JSC$17458_commandHandler.resolveCommand(R));x=H;if((t=x)==null?0:t.actions)for(W=_.K(x.actions),Z=W.next();!Z.done;Z=W.next())z=Z.value,G.JSC$17458_commandHandler.resolveCommand(z);_.ju(J)})};
Ss[$R]=[_.Dk,_.Mu];var Ex=function(){};
_.X(Ex,x5);Ex.prototype.resolveCommand=function(O){var m;return _.r(function(G){m=_.b(O,Vfm);if(!m)return G.return();(new M$s(m)).show();_.ju(G)})};_.Lb=new _.Us("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Cb=function(O,m,G,B){this.store=O;this.innertubeTransportService=m;this.controller=G;this.JSC$17466_commandHandler=B};
_.X(Cb,x5);
Cb.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P,w,d,D,OS,rN,xO,XI,Vf,US;return _.r(function(CN){if(CN.nextAddress==1){B=_.b(O,_.B3);if(!B)return CN.return();if(B.clientActions){Q=_.K(B.clientActions);for(H=Q.next();!H.done;H=Q.next())M=H.value,G.JSC$17466_commandHandler.resolveCommand(M);var oe,K$=m==null?void 0:(oe=m.form)==null?void 0:oe.element;K$&&_.iP(K$,"yt-dismissible-item-action",B.clientActions)}return CN.yield(_.Ov(G.innertubeTransportService,O,(R=
m)==null?void 0:R.form),2)}if(x=CN.yieldResult)x.errorMetadata?(t=x,W=_.Rh(t.error.message),G.JSC$17466_commandHandler.resolveCommand(W),"error"in x&&((Z=m)==null?0:(z=Z.commandController)==null?0:z.onServerError)&&((J=m)==null||(n=J.commandController)==null||n.onServerError(O,x))):(I=m)==null||(S=I.commandController)==null||(C=(L=S).onSuccess)==null||C.call(L,O,x);P=x;((w=P)==null?0:w.collaborationInviteLink)&&B.playlistId&&(_.V("web_enable_invite_collaborators_link")||_.V("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
G.store.dispatch(_.xs({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:B.playlistId,inviteLinkUrl:P.collaborationInviteLink}}));((d=P)==null?0:d.redirectEndpoint)&&G.JSC$17466_commandHandler.resolveCommand(P.redirectEndpoint);((D=P)==null?0:(OS=D.newHeader)==null?0:OS.playlistHeaderRenderer)?o9r(G.controller,P.newHeader.playlistHeaderRenderer):((rN=P)==null?0:(xO=rN.newHeader)==null?0:xO.musicEditablePlaylistDetailHeaderRenderer)&&o9r(G.controller,P.newHeader.musicEditablePlaylistDetailHeaderRenderer);
G.controller.playlistVideoListElement&&((XI=P)==null?0:(Vf=XI.playlistEditResults)==null?0:(US=Vf[0])==null?0:US.playlistEditVideoAddedResultData)&&((K$=G.controller.playlistVideoListElement)==null||K$.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:P.playlistEditResults[0].playlistEditVideoAddedResultData})));_.ju(CN)})};
Cb[$R]=[sG,_.Dk,_.Lb,_.Mu];var oT=function(O,m){this.controller=O;this.JSC$17476_commandHandler=m};
_.X(oT,x5);oT.prototype.resolveCommand=function(O,m){var G=this,B,Q,H;return _.r(function(M){B=_.b(O,pGH);G.controller.showRefreshPill&&((Q=B)==null?0:Q.command)&&(G.JSC$17476_commandHandler.resolveCommand((H=B)==null?void 0:H.command,m),G.controller.showRefreshPill=!1);_.ju(M)})};
oT[$R]=[_.Sv,_.Mu];var lh=function(O,m){this.store=O;this.JSC$17480_commandHandler=m||_.XJ.instance};
_.X(lh,x5);lh.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R,x,t,W,Z,z;return _.r(function(J){B=_.b(O,e7p);Q=G.store.getState().radioButtonGroup;if((H=B)==null?0:H.command)G.JSC$17480_commandHandler.resolveCommand((M=B)==null?void 0:M.command,m);else if(Q&&((R=B)==null?void 0:R.formId)===Q.currentFormId)for(x=Object.values(Q.commandsMap),t=_.K(x),W=t.next();!W.done;W=t.next())Z=W.value,(z=_.eg(Z))&&G.JSC$17480_commandHandler.resolveCommand(z,m);_.ju(J)})};
lh[$R]=[_.ry];var aT=new _.Us("USER_PREFS");var kx=function(O){this.JSC$17485_prefCookie=O};
_.X(kx,x5);kx.prototype.resolveCommand=function(O){var m=this,G;return _.r(function(B){(G=_.b(O,xm9))&&typeof G.useListView==="boolean"&&(_.gr(0,155,G.useListView),m.JSC$17485_prefCookie.save());_.ju(B)})};
kx[$R]=[aT];var yG=function(O){this.JSC$17489_prefCookie=O};
_.X(yG,x5);yG.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M;return _.r(function(R){G=_.b(O,nrj);if((B=G)==null||!B.gl)return R.return();Q=G.gl;H={persist_gl:"1",gl:Q};m.JSC$17489_prefCookie.set("gl",Q);m.JSC$17489_prefCookie.save();M=MA_(H);_.BC(M);_.ju(R)})};
yG[$R]=[aT];var cA=function(O){this.JSC$17493_prefCookie=O};
_.X(cA,x5);cA.prototype.resolveCommand=function(O){var m=this,G,B;return _.r(function(Q){G=_.b(O,Erm);if(!G)return Q.return();B=!1;G.flagNum&&typeof G.value==="boolean"?(_.gr(0,G.flagNum,G.value),B=!0):G.key&&typeof G.stringValue==="string"&&(m.JSC$17493_prefCookie.set(G.key,G.stringValue),B=!0);B&&m.JSC$17493_prefCookie.save();_.ju(Q)})};
cA[$R]=[aT];var Yx=new _.Us("PREF_STORAGE_PROMISE_TOKEN");var db=function(O){this.JSC$17497_prefStoragePromise=O};
_.X(db,x5);db.prototype.resolveCommand=function(O){var m=this,G,B;return _.r(function(Q){if(Q.nextAddress==1)return(G=_.b(O,Ceo))?Q.yield(m.JSC$17497_prefStoragePromise,2):Q.return();B=Q.yieldResult;return B===void 0||G.key===void 0||G.value===void 0?Q.return():Q.yield(B.set(G.key,G.value),0)})};
db[$R]=[Yx];var lHr=function(O){this.innertubeTransportService=O};
_.X(lHr,x5);lHr.prototype.resolveCommand=function(O,m){var G=this,B,Q;return _.r(function(H){(B=_.b(O,_.aNs))&&B&&B.isFirstRequest&&(_.ys("search_overview_answer"),_.cd("so_rq",void 0,"search_overview_answer"));return H.yield(_.Ov(G.innertubeTransportService,O,(Q=m)==null?void 0:Q.form),0)})};
lHr[$R]=[_.Dk];var aHK=function(){};
_.X(aHK,x5);
aHK.prototype.resolveCommand=function(O){var m,G,B,Q,H,M,R,x,t;return _.r(function(W){m=_.b(O,cep);if((G=m)==null?0:G.sectionIdentifier){if(m.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(Q=(B=document.getElementsByTagName(m.sectionIdentifier))==null?void 0:B.item(0))Q.scrollIntoView({behavior:"smooth"}),(H=DNp(Q))&&H.focus({preventScroll:!0});return W.return()}M=document.querySelector("[section-identifier="+m.sectionIdentifier+"]");R=document.querySelector("[section-identifier="+m.referenceSectionIdentifier+
"]");if(!M)return W.return();x=m.verticalScrollOffsetDp?m.verticalScrollOffsetDp:0;R&&(x-=R.offsetTop);window.scrollTo({top:M.offsetTop+x,behavior:"smooth"});(t=DNp(M))&&t.focus({preventScroll:!0})}_.ju(W)})};var wb=function(O){this.JSC$17509_commandHandler=O};
_.X(wb,x5);
wb.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M,R,x;return _.r(function(t){if(t.nextAddress==1){G=_.b(O,MtH);if(!G||!G.imageBytes||!navigator.clipboard)return t.return();if(G.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.oy(Error("Ki")),t.return();_.n_(t,2);Q=(B=G)==null?void 0:B.imageBytes;H=Q.replace(/-/g,"+").replace(/_/g,"/");M=gCz(H);R={};x=[new ClipboardItem((R[M.type]=M,R))];return t.yield(navigator.clipboard.write(x),4)}if(t.nextAddress!=2)return G.successCommand&&
m.JSC$17509_commandHandler.resolveCommand(G.successCommand),_.P7(t,0);_.uS(t);G.errorCommand&&m.JSC$17509_commandHandler.resolveCommand(G.errorCommand);_.ju(t)})};
wb[$R]=[_.Mu];var es=function(O,m){this.innertubeTransportService=O;this.JSC$17513_commandHandler=m};
_.X(es,x5);es.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R;return _.r(function(x){if(x.nextAddress==1)return(B=_.b(O,rCU))?x.yield(_.Ov(G.innertubeTransportService,O,(Q=m)==null?void 0:Q.form),2):x.return();(H=x.yieldResult)&&H.errorMetadata&&B.onFailureCommand&&G.JSC$17513_commandHandler.resolveCommand(B.onFailureCommand);M=H;((R=M)==null?0:R.shareCommand)&&G.JSC$17513_commandHandler.resolveCommand(M.shareCommand,m);_.ju(x)})};
es[$R]=[_.Dk,_.Mu];var D3=function(){};
_.X(D3,x5);D3.prototype.resolveCommand=function(O){var m,G;return _.r(function(B){m=_.b(O,u0$);if(!m||!navigator.share)return B.return();G={url:m.url};try{return B.return(navigator.share(G))}catch(Q){}_.ju(B)})};var sx=function(){};
_.X(sx,x5);sx.prototype.resolveCommand=function(){return _.r(function(O){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.ju(O)})};var Nq=function(O){this.JSC$17523_navigationConfirmationService=O};
_.X(Nq,x5);Nq.prototype.resolveCommand=function(){var O=this;return _.r(function(m){O.JSC$17523_navigationConfirmationService.cancelPendingNavigation();_.ju(m)})};
Nq[$R]=[dm];var PA=function(O){this.JSC$17526_screenManager=O};
_.X(PA,x5);PA.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R,x,t;return _.r(function(W){Q=(B=m.form)==null?void 0:B.event;M=(H=m.form)==null?void 0:H.element;if(!Q)throw new _.j9("Event not passed in when resolving command");R=_.K(Q.composedPath());for(x=R.next();!x.done;x=R.next())if(t=x.value,t.tagName==="YT-COPY-LINK-RENDERER")return t.copyUrlToClipboard(),M&&_.P6(G.JSC$17526_screenManager,M),W.return();_.ju(W)})};
PA[$R]=[_.GR];var FQ=function(){this.JSC$17530_miniAppClientDataProvider=_.KR().resolve(_.ZT)};
_.X(FQ,x5);FQ.prototype.resolveCommand=function(){var O=this,m,G;return _.r(function(B){if(O.JSC$17530_miniAppClientDataProvider.clientData.has("video_id")){var Q=O.JSC$17530_miniAppClientDataProvider,H=Q.clientData.get("video_id");H&&Q.clientData.delete("video_id");m="https://youtube.com/watch?v="+H;G=_.yO(m);if(G===void 0)throw Error("Li`"+m);_.Bi(window,G)}_.ju(B)})};var AO=function(){};
_.X(AO,x5);AO.prototype.resolveCommand=function(){return _.r(function(O){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.ju(O)})};var On=function(){};
_.X(On,x5);On.prototype.resolveCommand=function(){var O;return _.r(function(m){if(m.nextAddress==1)return m.yield(_.jcz(window.document.documentElement),2);(O=document.querySelector("mini-app-container-view-model iframe"))&&O.focus();_.ju(m)})};var m4=function(O){this.JSC$17537_navigationConfirmationService=O};
_.X(m4,x5);
m4.prototype.resolveCommand=function(){var O=this;return _.r(function(m){var G=O.JSC$17537_navigationConfirmationService,B=_.KR().resolve(_.N2),Q;if(((Q=G.navigateParams)==null?void 0:Q.data)!==void 0){var H;_.xhp(B,G.navigateParams.endpoint,G.navigateParams.data,(H=G.navigateParams.navigationType)!=null?H:1,G.navigateParams.tempData,G.navigateParams.isMiniplayer,void 0,!0);G.navigateParams=void 0;G.customConfirmationCommand=void 0}else G.navigateParams&&(B.navigate(G.navigateParams.endpoint,G.navigateParams.reload,
G.navigateParams.params,G.navigateParams.tempData,G.navigateParams.requestType,G.navigateParams.createScreenConfig,!0),G.navigateParams=void 0,G.customConfirmationCommand=void 0);_.ju(m)})};
m4[$R]=[dm];var G8=function(){};
_.X(G8,x5);G8.prototype.resolveCommand=function(){return _.r(function(O){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.ju(O)})};var B0=function(O){this.JSC$17542_prefStorage=O};
_.X(B0,x5);B0.prototype.resolveCommand=function(){var O=this,m,G;return _.r(function(B){switch(B.nextAddress){case 1:return B.yield(O.JSC$17542_prefStorage,2);case 2:return(m=B.yieldResult)?B.yield(m.set("sfvle",!1),3):B.return();case 3:return B.yield(m.set("sfvles",!0),4);case 4:G=_.TC(),_.gr(0,203,!1),_.gr(0,204,!0),G.save(),_.ju(B)}})};
B0[$R]=[Yx];var QK=function(O){this.JSC$17545_prefStorage=O};
_.X(QK,x5);QK.prototype.resolveCommand=function(){var O=this,m,G;return _.r(function(B){switch(B.nextAddress){case 1:return B.yield(O.JSC$17545_prefStorage,2);case 2:return(m=B.yieldResult)?B.yield(m.set("sfvle",!0),3):B.return();case 3:return B.yield(m.set("sfvles",!0),4);case 4:G=_.TC(),_.gr(0,203,!0),_.gr(0,204,!0),G.save(),_.ju(B)}})};
QK[$R]=[Yx];_.kpJ=new _.Us("SNACKBAR_CONTROLLER_TOKEN");_.ymJ=new _.Us("SHOULD_SHOW_PIVOT_BAR_TOKEN");var H0=function(O){this.controller=O};
_.X(H0,x5);H0.prototype.resolveCommand=function(O){var m=this,G;return _.r(function(B){G=_.b(O,Ty3);if(!G)return B.return();var Q=m.controller;Q.closeSnackbarFn&&Q.closeSnackbarFn();_.ju(B)})};
H0[$R]=[_.kpJ];var v0=function(O,m){this.controller=O;this.sheetController=m};
_.X(v0,x5);v0.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R,x;return _.r(function(t){B=_.b(O,uL9);if(!B)return t.return();M=g9s(G.sheetController,(Q=m)==null?void 0:(H=Q.form)==null?void 0:H.element);R=_.b(B.content,YX_);if(!R)return t.return();var W=G.controller,Z=R,z=(x=B.animationStyle)!=null?x:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(W.showSnackbarFn)W.showSnackbarFn({snackbarViewModel:Z,animationStyle:z,durationMs:B.durationSeconds*1E3,target:M});else throw Error("uj");_.ju(t)})};
v0[$R]=[_.kpJ,_.O5];var KA=function(){};
_.X(KA,x5);KA.prototype.resolveCommand=function(O){var m;return _.r(function(G){m=_.b(O,L7m);if(!m||typeof m.key!=="string"||typeof m.value!=="string")return G.return();window.localStorage.setItem(m.key,m.value);_.ju(G)})};var $X=function(O){this.store=O};
_.X($X,x5);$X.prototype.resolveCommand=function(O){var m=this,G;return _.r(function(B){G=_.b(O,xYY);if(!G||!G.stepId||!G.token)return B.return();m.store.dispatch(URs({stepId:G.stepId,token:G.token,isSelected:!1}));_.ju(B)})};
$X[$R]=[sG];var Mg=function(O,m,G){this.innertubeTransportService=O;this.store=m;this.JSC$17564_screenManager=G};
_.X(Mg,x5);
Mg.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P,w,d,D,OS,rN;return _.r(function(xO){G=_.b(O,gN8);if(!G||(B=G.stepIds)==null||!B.length)return xO.return();Q=m.store.getState().talkToRecs;H=[];M=[];R=_.K(G.stepIds);for(x=R.next();!x.done;x=R.next())for(t=x.value,W=void 0,(Z=(W=Q.stepStates[t])==null?void 0:W.userQuery)&&M.push({userQuery:Z.userQuery,userQueryToken:Z.token}),z=void 0,J=(z=Q.stepStates[t])==null?void 0:z.selectionStates,n=_.K(Object.entries(J)),I=
n.next();!I.done;I=n.next())S=I.value,L=_.K(S),C=L.next().value,P=L.next().value,w=C,d=P,d.isSelected&&H.push(w);D={selectedChipTokens:H,userQueries:M,submittedStepIds:G.stepIds};OS={browseTalk2recsFormData:D};G.browseEndpoint?(rN=O,_.ya(rN,_.gH,G.browseEndpoint)):G.command&&(rN=G.command);return rN?xO.yield(_.Ov(m.innertubeTransportService,rN,{formData:OS,disableCache:!0}).then(function(XI){(XI==null?0:XI.trackingParams)&&m.JSC$17564_screenManager.graftServerVe(XI==null?void 0:XI.trackingParams)}),
0):xO.return()})};
Mg[$R]=[_.Dk,sG,_.GR];var re=function(O){this.store=O};
_.X(re,x5);re.prototype.resolveCommand=function(O){var m=this,G;return _.r(function(B){G=_.b(O,iX5);if(!G||!G.stepId||!G.token)return B.return();m.store.dispatch(URs({stepId:G.stepId,token:G.token,isSelected:!0}));_.ju(B)})};
re[$R]=[sG];var RN=function(O){this.store=O};
_.X(RN,x5);RN.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R;return _.r(function(x){B=_.b(O,uno);if(!B||!B.stepId||!B.userQueryToken)return x.return();R=(M=(Q=m)==null?void 0:(H=Q.form)==null?void 0:H.userQuery)!=null?M:"";G.store.dispatch(_.xs({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:B.stepId,userQueryToken:B.userQueryToken,userQuery:R}}));_.ju(x)})};
RN[$R]=[sG];_.cmu=new _.Us("TIMELY_ACTIONS_CONTROLLER_TOKEN");var i1=function(O){this.controller=O};
_.X(i1,x5);i1.prototype.resolveCommand=function(O){var m=this,G,B,Q,H;return _.r(function(M){G=_.b(O,am8);if(!G)return M.return();B=G;Q=B.id;H=B.isVisible;if(Q===void 0||H===void 0)return M.return();var R;(R=m.controller.timelyActionsMap.get(Q))==null||R(Q,H);_.ju(M)})};
i1[$R]=[_.cmu];var Y33=function(){this.timelyActionsMap=new Map};var xX=function(O){this.JSC$17590_commandHandler=O};
_.X(xX,x5);xX.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M;return _.r(function(R){G=_.b(O,_.lq);if(!G)return R.return();H=(B=G.item)==null?void 0:(Q=B.notificationTextRenderer)==null?void 0:Q.successResponseText;if(!H)return R.return();M=_.rH(H);m.JSC$17590_commandHandler.resolveCommand(M);_.ju(R)})};
xX[$R]=[_.Mu];var qg=function(O,m){this.innertubeTransportService=O;this.JSC$17595_playerApiPromise=m};
_.X(qg,x5);
qg.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M,R,x,t,W;return _.r(function(Z){if(Z.nextAddress==1)return Z.yield(m.JSC$17595_playerApiPromise,2);G=Z.yieldResult;B=G.getOption("captions","track");Q=Object.assign({},_.b(O,_.QR_));(M=(H=G.getVideoData())==null?void 0:H.video_id)?Q.externalVideoId=M:_.Dy(Error("Mi"));if((R=B)==null?0:R.languageCode)Q.languageCode=B.languageCode;if((x=B)==null?0:x.kind)Q.kind=B.kind;if((t=B)==null?0:t.name)Q.name=B.name;W=Object.assign({},O,{getTranscriptEndpoint:Q});return Z.yield(_.Ov(m.innertubeTransportService,
W),0)})};
qg[$R]=[_.Dk,_.q1];var Un=function(){};
_.X(Un,x5);Un.prototype.resolveCommand=function(O){var m,G,B,Q,H,M,R,x;return _.r(function(t){m=_.b(O,wGH);if((G=m)==null||!G.paramKeyValuePairs)return t.return();B=window.location.href;Q=_.K(m.paramKeyValuePairs);for(H=Q.next();!H.done;H=Q.next())M=H.value,M.key&&M.value&&(R={},B=_.AN(B,(R[M.key]=M.value,R)));x=_.KR().resolve(_.yw);_.km(x,B);_.ju(t)})};var t7=function(O,m){this.JSC$17602_commandHandler=O;this.innertubeTransportService=m};
_.X(t7,x5);
t7.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P;return _.r(function(w){switch(w.nextAddress){case 1:return(H=(B=m)==null?void 0:(Q=B.form)==null?void 0:Q.element)&&_.dD(H),M=_.TC().get("hl"),R="",_.n_(w,2),w.yield(FJS(M),4);case 4:R=w.yieldResult;_.P7(w,3);break;case 2:return _.uS(w),H&&_.wD(H),_.oy(Error("Oi"),"ERROR"),w.return();case 3:x=_.b(O,ZQ$);if(!x)return H&&_.wD(H),w.return();(Z=(t=x.commerceActionConfig)==null?void 0:(W=t.commandLifeCycleConfig)==null?
void 0:W.onStartCommand)&&G.JSC$17602_commandHandler.resolveCommand(Z);return w.yield(_.Ov(G.innertubeTransportService,O,{client_data:{paymentsClientToken:{token:R}}}),5);case 5:(z=w.yieldResult)?(H&&_.wD(H),((S=z)==null?0:S.command)&&G.JSC$17602_commandHandler.resolveCommand(z.command),(P=(L=x.commerceActionConfig)==null?void 0:(C=L.commandLifeCycleConfig)==null?void 0:C.onSuccessCommand)&&G.JSC$17602_commandHandler.resolveCommand(P)):(H&&_.wD(H),_.oy(Error("Pi")),(I=(J=x.commerceActionConfig)==
null?void 0:(n=J.commandLifeCycleConfig)==null?void 0:n.onFailureCommand)&&G.JSC$17602_commandHandler.resolveCommand(I)),_.ju(w)}})};
t7[$R]=[_.Mu,_.Dk];var W0=function(O,m,G){this.store=O;this.JSC$17618_commandHandler=m;this.innertubeTransportService=G};
_.X(W0,x5);
W0.prototype.resolveCommand=function(O,m){var G=this,B,Q,H,M,R,x,t,W,Z;return _.r(function(z){B=_.b(O,zHm);Q=B.googlePaymentPayload;B.onStartCommand&&G.JSC$17618_commandHandler.resolveCommand(B.onStartCommand);H=Q.encryptedPurchaseParams;M=Q.ypcLogWalletAnalyticDataEndpoint;R=B.serializedTransactionFlowLoggingParams;x=Q.serializedPaymentsClientParams;t=B.ypcCujContext;Z=mV5(G.innertubeTransportService,(W=m)==null?void 0:W.form,H,M,R,x,t);return z.return(Z.then(function(J){A4s(m==null?void 0:m.form,
!1);var n=G.store,I=G.JSC$17618_commandHandler,S=J.integratorData;S==null||S===""||J.error!=null?(String(J.error)==="-1"&&B.onDismissCommand?I.resolveCommand(B.onDismissCommand):String(J.error)!=="-1"&&B.onFailureCommand&&I.resolveCommand(B.onFailureCommand),String(J.error)!=="-1"&&String(J.error)!=="132"&&_.oy(Error("Qi"),"ERROR")):(B.googlePaymentEntityKey&&n.dispatch(_.jh("commerceAcquisitionClientPayloadEntity",B.googlePaymentEntityKey,{key:B.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:S,
fundsGuaranteeCallbackClientData:J.integratorClientCallbackData}}})),B.onSuccessCommand&&I.resolveCommand(B.onSuccessCommand));_.ZY()},function(J){A4s(m==null?void 0:m.form,!1);
_.oy(J,"ERROR");B.onFailureCommand&&G.JSC$17618_commandHandler.resolveCommand(B.onFailureCommand)}))})};
W0[$R]=[$p,_.Mu,_.Dk];var Z6=function(O,m){this.JSC$17622_commandHandler=O;this.purchaseManager=m};
_.X(Z6,x5);
Z6.prototype.resolveCommand=function(O){var m=this,G,B,Q,H,M,R,x,t,W;return _.r(function(Z){G=_.b(O,JnU);((B=G)==null?0:(Q=B.commandLifeCycleConfig)==null?0:Q.onStartCommand)&&m.JSC$17622_commandHandler.resolveCommand(G.commandLifeCycleConfig.onStartCommand);if(!((H=G)==null?0:(M=H.googlePaymentPurchaseManagerPayload)==null?0:M.securePayloadBytes))return _.oy(Error("Ri"),"ERROR"),Z.return();R=ak8(_.Az(G.googlePaymentPurchaseManagerPayload.securePayloadBytes));x=_.TC().get("hl");t=_.m3();czy(R.serialize(),
x,function(z){t.resolve(z)},function(z){t.reject(z)},t.resolve);
W=t.promise;return Z.return(W.then(function(z){if(z)if(z==null?0:z.errorCode){_.oy(Error("Si`"+z.errorCode),"ERROR");var J,n;((J=G)==null?0:(n=J.commandLifeCycleConfig)==null?0:n.onFailureCommand)&&m.JSC$17622_commandHandler.resolveCommand(G.commandLifeCycleConfig.onFailureCommand)}else if(z==null?0:z.isCancelled){var I,S;((I=G)==null?0:(S=I.commandLifeCycleConfig)==null?0:S.onCancelCommand)&&m.JSC$17622_commandHandler.resolveCommand(G.commandLifeCycleConfig.onCancelCommand)}else{var L,C;((L=G)==
null?0:(C=L.commandLifeCycleConfig)==null?0:C.onSuccessCommand)&&m.JSC$17622_commandHandler.resolveCommand(G.commandLifeCycleConfig.onSuccessCommand)}},function(z){_.oy(z,"ERROR");
var J,n;((J=G)==null?0:(n=J.commandLifeCycleConfig)==null?0:n.onFailureCommand)&&m.JSC$17622_commandHandler.resolveCommand(G.commandLifeCycleConfig.onFailureCommand)}))})};
Z6[$R]=[_.Mu,YSu];var dey=function(O,m){this.JSC$17630_commandHandler=O;this.commandAllowlistOverride=m;var G;this.commandAllowlist=(G=this.commandAllowlistOverride)!=null?G:GM};
dey.prototype.handleResponse=function(O,m,G){var B,Q=m==null?void 0:(B=m.config)==null?void 0:B.command;if(!Q||this.commandAllowlist.some(function(H){return!!_.b(Q,H)})){m=void 0;
G!==void 0&&(m={form:{element:G}});O.onResponseReceivedCommand&&this.JSC$17630_commandHandler.resolveCommand(O.onResponseReceivedCommand,m);O.onResponseReceivedAction&&this.JSC$17630_commandHandler.resolveCommand(O.onResponseReceivedAction,m);O.onResponseReceivedEndpoint&&this.JSC$17630_commandHandler.resolveCommand(O.onResponseReceivedEndpoint,m);O.command&&this.JSC$17630_commandHandler.resolveCommand(O.command,m);if(O.onResponseReceivedCommands)for(G=_.K(O.onResponseReceivedCommands),B=G.next();!B.done;B=
G.next())this.JSC$17630_commandHandler.resolveCommand(B.value,m);if(O.onResponseReceivedActions)for(G=_.K(O.onResponseReceivedActions),B=G.next();!B.done;B=G.next())this.JSC$17630_commandHandler.resolveCommand(B.value,m);if(O.onResponseReceivedEndpoints)for(G=_.K(O.onResponseReceivedEndpoints),B=G.next();!B.done;B=G.next())this.JSC$17630_commandHandler.resolveCommand(B.value,m);if(O.actions)for(O=_.K(O.actions),G=O.next();!G.done;G=O.next())this.JSC$17630_commandHandler.resolveCommand(G.value,m)}};
dey[$R]=[_.Mu,_.v7(Qvz)];var wss=new _.Us("INNERTUBE_TOKEN_SERVICE");var e_9=new _.Us("SCHEDULER_TOKEN");var Deu=function(O){this.scheduler=O;O={};this.tokenMap=(O.app={},O.user={},O)};
Deu.prototype.handleResponse=function(O,m){if(!m)throw Error("Ti");var G;if(O=(G=O.responseContext)==null?void 0:G.innertubeTokenJar){if(O.appTokens){var B,Q,H;G=(B=m.innerTubeRequest.context)==null?void 0:(Q=B.request)==null?void 0:(H=Q.innertubeTokenJar)==null?void 0:H.appTokens;sjA(this,O.appTokens,this.tokenMap.app,G)}if(O.userTokens){var M,R,x;m=(M=m.innerTubeRequest.context)==null?void 0:(R=M.request)==null?void 0:(x=R.innertubeTokenJar)==null?void 0:x.userTokens;sjA(this,O.userTokens,this.tokenMap.user,
m)}}};
Deu.prototype.processContext=function(O){O.request||(O.request={});var m=Object.keys(this.tokenMap.app).length,G=Object.keys(this.tokenMap.user).length;if(m||G)O.request.innertubeTokenJar={},m&&(O.request.innertubeTokenJar.appTokens=[].concat(_.lS(Object.values(this.tokenMap.app).flat()))),G&&(O.request.innertubeTokenJar.userTokens=[].concat(_.lS(Object.values(this.tokenMap.user).flat())))};
var sjA=function(O,m,G,B){m=_.K(m);for(var Q=m.next(),H={};!Q.done;H={token$jscomp$139:void 0},Q=m.next()){H.token$jscomp$139=Q.value;if(H.token$jscomp$139.type===void 0)throw new _.j9("InnerTube token has no type",H.token$jscomp$139);if(H.token$jscomp$139.clearTokens)G[H.token$jscomp$139.type]=[];else if(H.token$jscomp$139.value!==void 0){G[H.token$jscomp$139.type]||(G[H.token$jscomp$139.type]=[]);if(B!==void 0&&B.length){Q=_.K(B);for(var M=Q.next(),R={};!M.done;R={requestToken:void 0},M=Q.next())R.requestToken=
M.value,M=G[H.token$jscomp$139.type].findIndex(function(x){return function(t){return t===x.requestToken||(0,_.aM.equals)(t,x.requestToken)}}(R)),M>-1&&G[H.token$jscomp$139.type].splice(M,1)}G[H.token$jscomp$139.type].push(H.token$jscomp$139);
H.token$jscomp$139.maxAgeSeconds&&Number(H.token$jscomp$139.maxAgeSeconds)>0&&O.scheduler.addLowPriorityJob(function(x){return function(){var t=G[x.token$jscomp$139.type].indexOf(x.token$jscomp$139);t>-1&&G[x.token$jscomp$139.type].splice(t,1)}}(H),Number(H.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.j9("InnerTube token has no value",H.token$jscomp$139);
}};
Deu[$R]=[e_9];var N8b=new _.Us("LOCAL_INNERTUBE_ROUTER_TOKEN"),P2B=new _.Us("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var z8=function(O){this.serviceMap=O};
z8.prototype.shouldPreferLocalResponse=function(O,m){return(O=FUr(this,O))?O.shouldPreferLocalResponse(m):!1};
z8.prototype.localInnertubeResponse=function(O,m){var G=this,B;return _.r(function(Q){return(B=FUr(G,O))?Q.return(B.localInnertubeResponse(m)):Q.return(Promise.reject(Error("Ui")))})};
z8.prototype.canProvideFallbackResponse=function(O,m){return(O=FUr(this,O))?O.canProvideFallbackResponse(m):!1};
z8.prototype.localFallbackInnertubeResponse=function(O,m){var G=this,B;return _.r(function(Q){return(B=FUr(G,O))?Q.return(B.localFallbackInnertubeResponse(m)):Q.return(Promise.reject(Error("Ui")))})};
var FUr=function(O,m){m=_.JE(m);return m?(O=O.serviceMap[m])?O:null:null};
z8[$R]=[P2B];var XY=function(){};
XY.prototype.shouldPreferLocalResponse=function(){return!1};
XY.prototype.localInnertubeResponse=function(){return _.r(function(O){return O.return(Promise.reject(Error("Vi")))})};
XY.prototype.canProvideFallbackResponse=function(){return!0};
XY.prototype.localFallbackInnertubeResponse=function(){var O,m,G;return _.r(function(B){O=bm("CLOSE_POPUP");m={openPopupAction:Bxr()};G={actions:[O,m]};return B.return(G)})};var BZI=function(O,m){this.JSC$17680_upliftPromise=O;this.store=m};
_.v=BZI.prototype;_.v.shouldPreferLocalResponse=function(O){var m=O.videoId,G;if(G=m)G=WEp(this.store.getState().entities,O.videoId);return G&&ZKM(this.store.getState().entities,m)?H0z(this.store.getState().entities,O.playlistId):!1};
_.v.localInnertubeResponse=function(O){var m=this,G;return _.r(function(B){return(G=m.getPlayerResponse(O))?B.return(Promise.resolve(G)):B.return(Promise.reject(Error("Wi")))})};
_.v.canProvideFallbackResponse=function(O){return!!O.videoId};
_.v.localFallbackInnertubeResponse=function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(m.JSC$17680_upliftPromise,2);G=m.getPlayerResponse(O);var Q;G?Q=B.return(Promise.resolve(G)):Q=Er(m.store.getState().entities,O.videoId)?B.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.rv(_.Xm("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:WnS()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
B.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.rv(_.Xm("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:tJ5()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return Q})};
_.v.getPlayerResponse=function(O){return dOf(this.store.getState().entities,O.videoId)};var nk=function(O,m){this.localPlayerService=O;this.localWatchNextService=m};
nk.prototype.shouldPreferLocalResponse=function(O){var m=O.playerRequest;O=O.watchNextRequest;return!!(m&&this.localPlayerService.shouldPreferLocalResponse(m)&&O&&this.localWatchNextService.shouldPreferLocalResponse(O))};
nk.prototype.localInnertubeResponse=function(O){var m=this,G,B,Q,H;return _.r(function(M){if(M.nextAddress==1){G=O.playerRequest;B=O.watchNextRequest;if(!G||!B)throw new _.j9("Missing streaming request",O);return M.yield(m.localPlayerService.localInnertubeResponse(G),2)}if(M.nextAddress!=3)return Q=M.yieldResult,M.yield(m.localWatchNextService.localInnertubeResponse(B),3);H=M.yieldResult;return M.return({playerResponse:Q,watchNextResponse:H})})};
nk.prototype.canProvideFallbackResponse=function(O){var m=O.playerRequest;O=O.watchNextRequest;return!!(m&&this.localPlayerService.canProvideFallbackResponse(m)&&O&&this.localWatchNextService.canProvideFallbackResponse(O))};
nk.prototype.localFallbackInnertubeResponse=function(O){var m=this,G,B,Q,H;return _.r(function(M){if(M.nextAddress==1)return G=O.playerRequest,B=O.watchNextRequest,G&&B?M.yield(m.localPlayerService.localFallbackInnertubeResponse(G),2):M.return(Promise.reject(new _.j9("Missing streaming request",O)));if(M.nextAddress!=3)return Q=M.yieldResult,M.yield(m.localWatchNextService.localFallbackInnertubeResponse(B),3);H=M.yieldResult;return M.return({playerResponse:Q,watchNextResponse:H})})};var J8=function(O){this.JSC$17690_persistentStorePromiseAccessor=O};
J8.prototype.shouldPreferLocalResponse=function(){return!1};
J8.prototype.localInnertubeResponse=function(){return _.r(function(O){return O.return(Promise.reject(Error("Xi")))})};
J8.prototype.canProvideFallbackResponse=function(){return!0};
J8.prototype.localFallbackInnertubeResponse=function(){var O=this,m,G;return _.r(function(B){return B.nextAddress==1?B.yield(O.JSC$17690_persistentStorePromiseAccessor(),2):B.nextAddress!=3?(m=B.yieldResult)?B.yield(m.get("service:guide:fallback"),3):B.return(Promise.reject(Error("Yi"))):(G=B.yieldResult)&&_.v$(G)?B.return(vWp(_.v$(G))):B.return(Promise.reject(Error("Zi")))})};var fk=function(){};
fk.prototype.shouldPreferLocalResponse=function(){return!1};
fk.prototype.localInnertubeResponse=function(){return _.r(function(O){return O.return(Promise.reject(Error("$i")))})};
fk.prototype.canProvideFallbackResponse=function(){return!0};
fk.prototype.localFallbackInnertubeResponse=function(){var O,m,G;return _.r(function(B){O=bm("CLOSE_POPUP");m={openPopupAction:Bxr()};G={actions:[O,m]};return B.return(G)})};var zK=function(){this.urlMap=AmB;this.fallbackCommand=_.Yz};
zK.prototype.shouldPreferLocalResponse=function(O){return(O=O.url)?!!OB0(this,O):!1};
zK.prototype.localInnertubeResponse=function(O){var m=this,G;return _.r(function(B){return(G=O.url)?B.return(mJu(O,OB0(m,G))):B.return(Promise.reject(Error("aj")))})};
zK.prototype.canProvideFallbackResponse=function(){return!0};
zK.prototype.localFallbackInnertubeResponse=function(O){var m=this,G,B,Q,H,M,R,x;return _.r(function(t){G=O.url;if(!G)return t.return(mJu(O,m.fallbackCommand));if(B=OB0(m,G))return t.return(mJu(O,B));Q=void 0;H=_.JE(G);H==="/watch"&&(M=_.s0(G,"v"))&&(x=(R=_.s0(G,"list"))!=null?R:void 0,Q=_.Mo(M,x));Q||(Q=m.fallbackCommand);return t.return(mJu(O,Q))})};
var OB0=function(O,m){if(m)return O.urlMap[_.Pr(m)]},mJu=function(O,m){m&&O.parentTrackingParams&&(m.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:O.parentTrackingParams}},m.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:m})};var V4=function(O,m,G){this.JSC$17700_upliftPromise=O;this.store=m;this.JSC$17700_persistentStorePromiseAccessor=G};
V4.prototype.shouldPreferLocalResponse=function(){return!1};
V4.prototype.localInnertubeResponse=function(){return _.r(function(O){return O.return(Promise.reject(Error("bj")))})};
V4.prototype.canProvideFallbackResponse=function(){return!0};
V4.prototype.localFallbackInnertubeResponse=function(){var O=this;return _.r(function(m){return m.return(Gub(O))})};
var Gub=function(O){var m,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(H$(O.JSC$17700_upliftPromise,O.store),2);m=B.yieldResult;G={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[Qx6(m)]}}}};return B.return(BoB(O,G))})},BoB=function(O,m){var G,B;
return _.r(function(Q){if(Q.nextAddress==1)return Q.yield(O.JSC$17700_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return G=Q.yieldResult,Q.yield(Kk(G),3);B=Q.yieldResult;return Q.return({responseContext:{},contents:m,topbar:B})})};var W$=function(O,m,G){this.JSC$17707_upliftPromise=O;this.store=m;this.JSC$17707_persistentStorePromiseAccessor=G};
W$.prototype.shouldPreferLocalResponse=function(O){var m=O.videoId;return m&&WEp(this.store.getState().entities,m)&&ZKM(this.store.getState().entities,m)?H0z(this.store.getState().entities,O.playlistId):!1};
W$.prototype.localInnertubeResponse=function(O){var m=this,G,B;return _.r(function(Q){if(Q.nextAddress==1)return(G=O.videoId)?Q.yield(m.JSC$17707_upliftPromise,2):Q.return(Promise.reject(Error("cj")));if(Q.nextAddress!=3)return Q.yield(Q3x(m,O,G),3);B=Q.yieldResult;return Q.return(HB9(m,B,G))})};
W$.prototype.canProvideFallbackResponse=function(O){return O.videoId?!0:!1};
W$.prototype.localFallbackInnertubeResponse=function(O){var m=this,G,B,Q,H;return _.r(function(M){switch(M.nextAddress){case 1:return(G=O.videoId)?M.yield(m.JSC$17707_upliftPromise,2):M.return(Promise.reject(Error("cj")));case 2:return M.yield(Q3x(m,O,G),3);case 3:B=M.yieldResult;if(Er(m.store.getState().entities,G)){M.jumpTo(4);break}return M.yield(H$(m.JSC$17707_upliftPromise,m.store),5);case 5:return Q=M.yieldResult,M.return(vhu(B,Q));case 4:return WEp(m.store.getState().entities,G)&&ZKM(m.store.getState().entities,
G)?M.return(HB9(m,B,G)):(H={title:_.rv(_.Xm("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:WnS()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},M.return(vhu(B,H)))}})};
var Q3x=function(O,m,G){var B,Q,H,M,R;return _.r(function(x){if(x.nextAddress==1)return B=m.playlistId,Q=_.Mo(G,B),x.yield(O.JSC$17707_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return H=x.yieldResult,x.yield(Kk(H),3);M=x.yieldResult;R={responseContext:{},currentVideoEndpoint:Q,topbar:M};return x.return(R)})},HB9=function(O,m,G){if(O=Er(O.store.getState().entities,G)){var B;
G=O.videoEntity;var Q,H={title:RQ(G.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.iQ((B=G.localizedStrings)==null?void 0:B.viewCount),viewCount:_.iQ((Q=G.localizedStrings)==null?void 0:Q.viewCount)}}};G.publishedTimestampMillis&&(H.dateText=_.iQ(aU6(new Date(Number(G.publishedTimestampMillis)))));B={videoPrimaryInfoRenderer:H};Q=O.videoEntity;O=O.channelEntity;O={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:RQ(_.Xm("SHOW_MORE",void 0,"Show more")),
showLessText:RQ(_.Xm("SHOW_LESS",void 0,"Show less")),description:Q.formattedDescription,owner:{videoOwnerRenderer:{title:RQ(O.title),thumbnail:O.avatar}}}};m.contents={twoColumnWatchNextResults:{results:{results:{contents:[B,O]}}}}}return m},vhu=function(O,m){O.contents={singleColumnWatchNextResults:{results:{results:{contents:[Qx6(m)]}}}};
return O};var bW=function(O,m,G){this.JSC$17712_upliftPromise=O;this.store=m;this.JSC$17712_persistentStorePromiseAccessor=G};
bW.prototype.shouldPreferLocalResponse=function(){return!1};
bW.prototype.localInnertubeResponse=function(){return _.r(function(O){return O.return(Promise.reject(Error("dj")))})};
bW.prototype.canProvideFallbackResponse=function(){return!0};
bW.prototype.localFallbackInnertubeResponse=function(){var O=this,m,G,B,Q;return _.r(function(H){switch(H.nextAddress){case 1:return H.yield(O.JSC$17712_persistentStorePromiseAccessor(),2);case 2:return m=H.yieldResult,H.yield(Kk(m),3);case 3:return G=H.yieldResult,B={responseContext:{},topbar:G},H.yield(O.JSC$17712_upliftPromise,4);case 4:return H.yield(H$(O.JSC$17712_upliftPromise,O.store),5);case 5:return Q=H.yieldResult,B.watchStatus={backgroundPromoRenderer:Q},H.return(B)}})};_.KAJ=new _.Us("ENDPOINT_MAP");var $Js=function(){var O=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return O.sequenceMap}}},$gj=function(O,m,G){var B,Q=(B=m.config)==null?void 0:B.sequenceStrategy;
if(!Q)return G();O.sequenceMap.has(Q.sequenceKey)||O.sequenceMap.set(Q.sequenceKey,[]);O=O.sequenceMap.get(Q.sequenceKey);switch(Q.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return MKr(O,m,G);case "REQUEST_SEQUENCE_TYPE_REPLACE":return rs9(O,m,G);default:throw new _.j9("Request could not be sequenced",m);}},MKr=function(O,m,G){var B,Q,H;
return _.r(function(M){O.length>0?(Q=O[O.length-1],B=Q.responsePromise.then(function(){return G()})):B=G();
H={request:m,responsePromise:B};O.push(H);R0J(O,H);return M.return(H.responsePromise)})},rs9=function(O,m,G){G=G();
if(O.length>0)for(var B=_.K(O),Q=B.next();!Q.done;Q=B.next())Q.value.responsePromise=G;var H={request:m,responsePromise:G};O.push(H);R0J(O,H);return Promise.resolve().then(function(){return O.indexOf(H)>0?H.responsePromise.then(function(M){return Object.assign({},M,{sequenceMetaData:{skipProcessing:!0}})}):H.responsePromise})},R0J=function(O,m){m.responsePromise.then(function(){var G=O.indexOf(m);
G>-1&&O.splice(G,1)})};var iBA=new _.Us("REQUEST_SEQUENCING");var J7=function(){};
_.X(J7,at);J7.prototype.getApiPaths=function(){return[]};
J7.prototype.getExtension=function(O){return _.b(O,D08)};
J7.prototype.JSC$13116_buildRequest=function(O,m){O.recaptchaToken=m.recaptchaToken};
J7.prototype.getApiUrl=function(){return"/das_captcha"};var VK=function(){};
_.X(VK,at);VK.prototype.getApiPaths=function(){return tQm};
VK.prototype.getExtension=function(O){return _.b(O,nN9)};
VK.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;m.createBackstagePostParams&&(O.createBackstagePostParams=m.createBackstagePostParams);G.comment_text&&(O.commentText=G.comment_text);if(G.attached_video_id)O.videoAttachment={videoId:G.attached_video_id};else if(G.image_poll_options)O.pollAttachmentData={options:G.image_poll_options};else if(G.poll_options)O.pollAttachment={choices:G.poll_options};else if(G.quiz_options)O.quizAttachmentData={options:G.quiz_options};else if(G.image_blob_id)O.imageAttachment=
{encryptedBlobId:G.image_blob_id},G.source_video_id&&(O.imageAttachment.sourceExternalVideoId=G.source_video_id),G.image_preview_coordinates&&(O.imageAttachment.previewCoordinates=JSON.parse(G.image_preview_coordinates));else if(G.images_data)O.imagesAttachment={imagesData:G.images_data};else if(G.clip_external_video_id!==void 0||G.clip_offset_ms!==void 0||G.clip_duration_ms!==void 0){var B,Q,H,M,R;O.clipAttachment={externalVideoId:(H=G.clip_external_video_id)!=null?H:"",offsetMs:(M=(B=G.clip_offset_ms)==
null?void 0:B.toString())!=null?M:"",durationMs:(R=(Q=G.clip_duration_ms)==null?void 0:Q.toString())!=null?R:""}}else G.shared_post_id&&(O.sharedPostAttachment={postId:G.shared_post_id});G.tagged_video_id&&(O.postCreationData={taggedVideoId:G.tagged_video_id});G.access_restrictions&&(typeof G.access_restrictions==="number"&&(m=G.access_restrictions,O.accessRestrictions={restriction:m!==1&&m===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof G.access_restrictions==="string"&&
(O.accessRestrictionsParams=G.access_restrictions));G.scheduled_publish_time_sec&&(O.scheduledPublishTimeSec=G.scheduled_publish_time_sec.toString())};var b1=function(){};
_.X(b1,at);b1.prototype.getApiPaths=function(){return nmC};
b1.prototype.getExtension=function(O){return _.b(O,q1o)};
b1.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;m.decorateMessageParams&&(O.params=m.decorateMessageParams);G.text&&(O.text=G.text)};var nA=function(){};
_.X(nA,at);nA.prototype.getApiPaths=function(){return YHe};
nA.prototype.getExtension=function(O){return _.b(O,Xkp)};
nA.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;G.video_id&&(O.videoId=G.video_id)};var XX=function(){};
_.X(XX,at);XX.prototype.getApiPaths=function(){return sr9};
XX.prototype.getExtension=function(O){return _.b(O,_.Vs)};
XX.prototype.JSC$13116_buildRequest=function(O,m,G){G.suggestions_query&&(O.input=G.suggestions_query)};var fA=function(){};
_.X(fA,at);fA.prototype.getApiPaths=function(){return gU8};
fA.prototype.getExtension=function(O){return _.b(O,frj)};
fA.prototype.JSC$13116_buildRequest=function(O,m,G){G.comment_text!==void 0&&(O.commentText=G.comment_text);G.scheduled_publish_time_sec&&(O.scheduledPublishTimeSec=G.scheduled_publish_time_sec.toString());O.updateBackstagePostParams=m.updateBackstagePostParams};var h7=function(){};
_.X(h7,at);h7.prototype.getApiPaths=function(){return Fv};
h7.prototype.getExtension=function(O){return _.b(O,_.Dw)};
h7.prototype.JSC$13116_buildRequest=function(O,m,G){G.formData&&(O.formData=G.formData);m.token?O.continuation=m.token:m.continuationTokenKey&&(G=_.Kf().getState(),m=_.Vh(G.entities,"continuationTokenEntity",m.continuationTokenKey))&&(O.continuation=String(m.continuationToken))};
var xJu=function(){};
_.X(xJu,at);_.v=xJu.prototype;_.v.getApiPaths=function(){return Fv};
_.v.getExtension=function(O){return _.b(O,_.gH)};
_.v.isNavigationCommand=function(){return!0};
_.v.JSC$13123_getStoreKey=function(O){if((O=this.getExtension(O))&&O.browseId){var m={browseId:O.browseId};O.browseEndpointContextSupportedConfigs&&(m.browseEndpointContextSupportedConfigs=JSON.stringify(O.browseEndpointContextSupportedConfigs));O.params&&(m.params=O.params);O.query&&(m.query=O.query);return _.m8("browse",m)}};
_.v.JSC$13116_buildRequest=function(O,m,G){m.browseId&&(O.browseId=m.browseId);m.params&&(O.params=m.params);m.query&&(O.query=m.query);G.formData?O.formData=G.formData:m.formData&&(O.formData=m.formData);m.browseId==="FEsubscriptions"&&_.TC().getFlag(155)&&(O.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");m.browseId==="SPaccount_playback"&&(G=_.TC(),O.formData||(O.formData={}),O.formData.accountSettingsFormData={flagCaptionsDefaultOff:G.getFlag(65),flagAutoCaptionsDefaultOn:G.getFlag(66),
flagDisableInlinePreview:G.getFlag(186),flagAudioDescriptionDefaultOn:G.getFlag(198)});if(m.browseId==="FEwhat_to_watch"){G=_.TC();var B=G.getFlag(196);G.getFlag(197)&&(O.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:B}}})}m.browseId==="FEwhat_to_watch"&&(m=_.TC().getFlag(186),O.inlineSettingStatus=m?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.v.getRequestConfig=function(O,m){m=m===void 0?{}:m;var G={};if(O=this.JSC$13123_getStoreKey(O,m))G.storeStrategy={storeKey:O,disableCache:m.disableCache};_.V("web_log_browse_ticks_ks")||(G.requestTick="br_s",G.responseTick="br_r");return G};var T8=function(){};
_.X(T8,at);T8.prototype.getApiPaths=function(){return rh_};
T8.prototype.getExtension=function(O){return _.b(O,m$U)};
T8.prototype.JSC$13116_buildRequest=function(O,m,G){O.legacyYoutubeChannelUsername=G.legacyYouTubeChannelUsername||"";O.legacyYoutubeChannelPassword=G.legacyYouTubeChannelPassword||""};var ge=function(){};
_.X(ge,at);ge.prototype.getApiPaths=function(){return Wc8};
ge.prototype.getExtension=function(O){return _.b(O,S2p)};
ge.prototype.JSC$13116_buildRequest=function(O,m,G){G.recaptcha_response_token&&(O.recaptchaResponseToken=G.recaptcha_response_token);G.channel_id&&(O.channelId=G.channel_id)};var u1=function(){};
_.X(u1,at);u1.prototype.getApiPaths=function(){return uO9};
u1.prototype.getExtension=function(O){return _.b(O,ar2)};
u1.prototype.JSC$13116_buildRequest=function(O,m,G){m.externalChannelId&&(O.externalChannelId=m.externalChannelId);G.handle&&(O.handleUpdate={handle:G.handle},m.handleEditSource&&(O.handleUpdate.handleEditSource=m.handleEditSource))};var jD=function(){};
_.X(jD,at);jD.prototype.getApiPaths=function(){return S59};
jD.prototype.getExtension=function(O){return _.b(O,$mH)};
jD.prototype.JSC$13116_buildRequest=function(O,m,G){m.request&&(O.channelId=m.request.channelId);var B;if(G==null?0:(B=G.uploadDefaults)==null?0:B.emojiReactionSet)O.uploadDefaultsRequest||(O.uploadDefaultsRequest={}),O.uploadDefaultsRequest.emojiReactionSet=G.uploadDefaults.emojiReactionSet};var IN=function(){};
_.X(IN,at);IN.prototype.getApiPaths=function(){return C38};
IN.prototype.getExtension=function(O){return _.b(O,EN2)};
IN.prototype.JSC$13116_buildRequest=function(O,m,G){m.externalChannelId&&(O.externalChannelId=m.externalChannelId);m.channelHandleEntityKey&&(O.channelHandleEntityKey=m.channelHandleEntityKey);m.handleEditSource&&(O.handleEditSource=m.handleEditSource);G.handle?O.handle=G.handle:G.name&&(O.name=G.name)};var pA=function(){};
_.X(pA,at);pA.prototype.getApiPaths=function(){return xKH};
pA.prototype.getExtension=function(O){return _.b(O,sS3)};
pA.prototype.JSC$13116_buildRequest=function(O,m){m.actions?O.actions=m.actions:m.action&&(O.actions=[m.action])};var SD=function(){};
_.X(SD,at);SD.prototype.getApiPaths=function(){return qHH};
SD.prototype.getExtension=function(O){return _.b(O,_.Dw)};
SD.prototype.JSC$13116_buildRequest=function(O,m){m.token&&(O.continuation=m.token)};var En=function(){};
_.X(En,at);En.prototype.getApiPaths=function(){return yhm};
En.prototype.getExtension=function(O){return _.b(O,_.Dw)};
En.prototype.JSC$13116_buildRequest=function(O,m){O.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";m.token&&(O.fetchCommentsParams={continuation:m.token})};var LA=function(){};
_.X(LA,at);LA.prototype.getApiPaths=function(){return zLs};
LA.prototype.getExtension=function(O){return _.b(O,DOe)};
LA.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;m.createReplyParams&&(O.createReplyParams=m.createReplyParams);m.commentText&&(O.commentText=_.HX(m.commentText));G.comment_text&&(O.commentText=G.comment_text);G.image_blob_id&&(O.imageAttachment={encryptedBlobId:G.image_blob_id});G.botguard_response&&(O.botguardResponse=G.botguard_response)};
_.vr.Object.defineProperties(LA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var CA=function(){};
_.X(CA,at);CA.prototype.getApiPaths=function(){return Jh8};
CA.prototype.getExtension=function(O){return _.b(O,_.eAs)};
CA.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;m.createCommentParams&&(O.createCommentParams=m.createCommentParams);m.commentText&&(O.commentText=_.HX(m.commentText));m.videoPositionMention&&(O.videoPositionMention=m.videoPositionMention);m.sources&&(O.sources=m.sources);G.comment_text&&(O.commentText=G.comment_text);G.attached_video_id?O.videoAttachment={videoId:G.attached_video_id}:G.poll_options?O.pollAttachment={choices:G.poll_options}:G.image_blob_id?O.imageAttachment=
{encryptedBlobId:G.image_blob_id}:G.shared_post_id&&(O.sharedPostAttachment={postId:G.shared_post_id});G.access_restrictions&&typeof G.access_restrictions==="number"&&(m=G.access_restrictions,O.accessRestrictions={restriction:m!==1&&m===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});G.botguard_response&&(O.botguardResponse=G.botguard_response)};
_.vr.Object.defineProperties(CA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oN=function(){};
_.X(oN,at);oN.prototype.getApiPaths=function(){return j02};
oN.prototype.getExtension=function(O){return _.b(O,PRp)};
oN.prototype.JSC$13116_buildRequest=function(O,m,G){m.commentText&&(O.replyText=_.HX(m.commentText));G.comment_text&&(O.replyText=G.comment_text);O.updateReplyParams=m.updateReplyParams};
_.vr.Object.defineProperties(oN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var l1=function(){};
_.X(l1,at);l1.prototype.getApiPaths=function(){return IS9};
l1.prototype.getExtension=function(O){return _.b(O,Nc_)};
l1.prototype.JSC$13116_buildRequest=function(O,m,G){m.commentText&&(O.commentText=_.HX(m.commentText));G.comment_text&&(O.commentText=G.comment_text);O.updateCommentParams=m.updateCommentParams};
_.vr.Object.defineProperties(l1.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aN=function(){};
_.X(aN,at);aN.prototype.getApiPaths=function(){return poe};
aN.prototype.getExtension=function(O){return _.b(O,QK2)};
aN.prototype.JSC$13116_buildRequest=function(O,m){m.settings&&(O.settings=m.settings)};var kX=function(){};
_.X(kX,at);kX.prototype.getApiPaths=function(){return Em2};
kX.prototype.getExtension=function(O){return _.b(O,Lio)};
kX.prototype.JSC$13116_buildRequest=function(O,m){m.channelCreationToken&&(O.channelCreationToken=m.channelCreationToken);m.source&&(O.source=m.source)};var yK=function(){};
_.X(yK,at);yK.prototype.getApiPaths=function(){return ZWU};
yK.prototype.getExtension=function(O){return _.b(O,lr9)};
yK.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;if(G.name&&(G.given_name||G.family_name))O=new _.j9("channel creation cannot set both GAIA and YouTube names",m),_.oy(O);else{if(m.zeroStepChannelCreationParams){if(!G.comment_text){O=new _.j9("zero_step_create_comment_params but no zero_step_texts",m);_.oy(O);return}O.zeroStepChannelCreationParams=m.zeroStepChannelCreationParams;O.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(O.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
G.comment_text,G.botguard_response&&(O.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=G.botguard_response))}O.channelCreationToken=m.channelCreationToken;G.given_name&&(O.givenName=G.given_name);G.family_name&&(O.familyName=G.family_name);m.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(O.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(G.name||G.handle||G.avatar_url||G.encryptedBlobId||G.isNameChanged!==void 0||G.isHandleChanged!==void 0||G.isDefaultProfilePhoto!==
void 0||G.obakeImageSource)O.overrideChannelCreationParams={},G.name&&(O.overrideChannelCreationParams.name=G.name),G.handle&&(O.overrideChannelCreationParams.handle=G.handle),G.avatar_url&&(O.overrideChannelCreationParams.avatarUrl=G.avatar_url),G.encryptedBlobId&&(O.overrideChannelCreationParams.blobEncryptionId=G.encryptedBlobId),G.enableIdentityForAllChannelCreationDialog&&(G.encryptedBlobId?O.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
G.isDefaultProfilePhoto!==void 0&&(O.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=G.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),G.isNameChanged!==void 0&&(O.overrideChannelCreationParams.identityForAllChannelCreationNameTag=G.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),G.isHandleChanged!==
void 0&&(O.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=G.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),G.obakeImageSource&&(O.overrideChannelCreationParams.obakeImageSourceType=G.obakeImageSource))}};var c0=function(){};
_.X(c0,at);c0.prototype.getApiPaths=function(O){return(O=this.getExtension(O))&&O.status==="DISLIKE"?Tm8:O&&O.status==="INDIFFERENT"?ix8:Oxp};
c0.prototype.getExtension=function(O){return _.b(O,_.cc)};
c0.prototype.JSC$13116_buildRequest=function(O,m){m.target&&(O.target=m.target);if(m=this.getParams(m))O.params=m};
c0.prototype.getParams=function(O){switch(O==null?void 0:O.status){case "DISLIKE":return O.dislikeParams;case "INDIFFERENT":return O.removeLikeParams;default:return O==null?void 0:O.likeParams}};var YX=function(){};
_.X(YX,at);YX.prototype.getApiPaths=function(){return bxU};
YX.prototype.getExtension=function(O){return _.b(O,BSH)};
YX.prototype.JSC$13116_buildRequest=function(O,m){m.settingItemId&&(O.settingItemId=m.settingItemId);m.stringValue!=null&&m.stringValue!==void 0?O.newValue={stringValue:m.stringValue}:m.intValue?O.newValue={intValue:m.intValue}:m.boolValue!==null&&m.boolValue!==void 0?O.newValue={boolValue:m.boolValue}:(O=new _.j9("Unknown value type for SetSettingEndpoint.",m),_.oy(O))};var de=function(){};
_.X(de,at);de.prototype.getApiPaths=function(){return fSH};
de.prototype.getExtension=function(O){return _.b(O,JCC)||void 0};
de.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;m.channelIds&&(O.channelIds=m.channelIds);m.siloName&&(O.siloName=m.siloName);m.params&&(O.params=m.params);G.botguardResponse&&(O.botguardResponse=G.botguardResponse);G.feature&&(O.clientFeature=G.feature)};
_.vr.Object.defineProperties(de.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var we=function(){};
_.X(we,at);we.prototype.getApiPaths=function(){return Ta2};
we.prototype.getExtension=function(O){return _.b(O,Qtp)||void 0};
we.prototype.JSC$13116_buildRequest=function(O,m){m.channelIds&&(O.channelIds=m.channelIds);m.siloName&&(O.siloName=m.siloName);m.params&&(O.params=m.params)};
_.vr.Object.defineProperties(we.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var eD=function(O){this.shareClientParamsProvider=O};
_.X(eD,at);eD.prototype.getApiPaths=function(){return r4O};
eD.prototype.getExtension=function(O){return _.b(O,Is8)||_.b(O,_.pzC)||_.b(O,jCC)};
eD.prototype.JSC$13116_buildRequest=function(O,m){m.serializedShareEntity&&(O.serializedSharedEntity=m.serializedShareEntity);if(m.clientParamIdentifier){var G;if((G=this.shareClientParamsProvider)==null?0:G.clientParams.has(m.clientParamIdentifier)){G=this.shareClientParamsProvider;m=m.clientParamIdentifier;var B=G.clientParams.get(m);B&&G.clientParams.delete(m);O.clientParams=B}}};
eD[$R]=[JM9];var D6=function(){};
_.X(D6,at);D6.prototype.getApiPaths=function(){return KF8};
D6.prototype.getExtension=function(O){return _.b(O,Rb2)};
D6.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params)};var sn=function(){};
_.X(sn,at);sn.prototype.getApiPaths=function(){return gm9};
sn.prototype.getExtension=function(O){return _.b(O,$$9)};
sn.prototype.JSC$13116_buildRequest=function(O,m){m.dismissal&&(O.items=[m.dismissal])};
_.vr.Object.defineProperties(sn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ng=function(){};
_.X(Ng,at);Ng.prototype.getApiPaths=function(){return FFe};
Ng.prototype.getExtension=function(O){return _.b(O,_.Sk)||void 0};
Ng.prototype.JSC$13116_buildRequest=function(O,m,G){O.feedbackTokens=[];m.feedbackToken&&O.feedbackTokens.push(m.feedbackToken);if(m=m.cpn||G.cpn)O.feedbackContext={cpn:m};O.isFeedbackTokenUnencrypted=!!G.is_feedback_token_unencrypted;O.shouldMerge=!1;G.extra_feedback_tokens&&(O.shouldMerge=!0,O.feedbackTokens=O.feedbackTokens.concat(G.extra_feedback_tokens))};
_.vr.Object.defineProperties(Ng.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var P0=function(){};
_.X(P0,at);P0.prototype.getApiPaths=function(){return FFe};
P0.prototype.getExtension=function(O){return _.b(O,_.Vs)};
P0.prototype.JSC$13116_buildRequest=function(O,m,G){G.feedback_tokens&&(O.feedbackTokens=G.feedback_tokens,O.shouldMerge=!0)};
_.vr.Object.defineProperties(P0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var FX=function(){};
_.X(FX,at);FX.prototype.getApiPaths=function(){return FFe};
FX.prototype.getExtension=function(O){return _.b(O,qkN)};
FX.prototype.JSC$13116_buildRequest=function(O,m){m.undoToken&&(O.feedbackTokens=[m.undoToken]);m.isUndoTokenUnencrypted&&(O.isFeedbackTokenUnencrypted=m.isUndoTokenUnencrypted)};
_.vr.Object.defineProperties(FX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var A7=function(){};
_.X(A7,at);A7.prototype.getApiPaths=function(){return oUu};
A7.prototype.getExtension=function(O){return _.b(O,HTs)};
A7.prototype.JSC$13116_buildRequest=function(O,m){m.nextEndpoint&&_.b(m.nextEndpoint,_.Db)?O.nextEndpoint={urlEndpoint:_.b(m.nextEndpoint,_.Db)}:m.nextEndpoint&&_.b(m.nextEndpoint,_.GC)&&(O.nextEndpoint={watchEndpoint:_.b(m.nextEndpoint,_.GC)});m.setRacy&&(O.setRacy=m.setRacy);m.setControvercy&&(O.setControvercy=m.setControvercy)};var ON=function(O){this.JSC$17893_storeWithEntities=O};
_.X(ON,at);ON.prototype.getApiPaths=function(){return jr9};
ON.prototype.getExtension=function(O){return _.b(O,ukC)};
ON.prototype.JSC$13116_buildRequest=function(O,m){m.flowId&&(O.flowId=m.flowId);m.targetId&&(O.targetId=m.targetId);m.continuation&&(O.continuation=m.continuation);var G=m.flowStateEntityKey;if(m.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&G&&this.JSC$17893_storeWithEntities){var B;if(m=(B=this.JSC$17893_storeWithEntities.getState())==null?void 0:B.entities)if(B=_.Ur(G).entityType,B=_.Vh(m,B,G))O.flowState=B,O.flowStateEntityKey=G}};
_.vr.Object.defineProperties(ON.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
ON[$R]=[$p];var q9x=function(){};
_.X(q9x,at);_.v=q9x.prototype;_.v.getApiPaths=function(){return PpH};
_.v.JSC$13123_getStoreKey=function(){return _.m8("guide")};
_.v.getRequestConfig=function(){var O=this.JSC$13123_getStoreKey(),m;O&&(m={storeStrategy:{storeKey:O}});return m};
_.v.isNavigationCommand=function(){return!0};
_.v.getExtension=function(O){return _.b(O,_.Vs)};
_.v.JSC$13116_buildRequest=function(O){O.fetchLiveState=!0};var m6=function(){};
_.X(m6,at);m6.prototype.getApiPaths=function(){return RL$};
m6.prototype.getExtension=function(O){return _.b(O,Y1o)};
m6.prototype.JSC$13116_buildRequest=function(){};var GW=function(){};
_.X(GW,at);GW.prototype.getApiPaths=function(){return iWU};
GW.prototype.getExtension=function(O){return _.b(O,dOu)};
GW.prototype.JSC$13116_buildRequest=function(){};var BV=function(){};
_.X(BV,at);BV.prototype.getApiPaths=function(){return vmm};
BV.prototype.getExtension=function(O){return _.b(O,_.Dw)};
BV.prototype.JSC$13116_buildRequest=function(O,m){m.token&&(O.continuation=m.token);var G,B;O==null||(G=O.context)==null||(B=G.user)==null||delete B.onBehalfOfUser};
BV.prototype.getRequestConfig=function(O){var m={},G;if(((G=this.getExtension(O))==null?void 0:G.sessionIndex)!==void 0){var B;m={authStrategy:{sessionIndex:(B=this.getExtension(O))==null?void 0:B.sessionIndex}}}return m};var Ql=function(){};
_.X(Ql,at);Ql.prototype.JSC$13116_getRequest=function(O){var m=this.getExtension(O),G=O="";if(m==null?0:m.popup)O="true";if(m==null?0:m.disableSignout)G="true";m={};return{input:"/getAccountSwitcherEndpoint",requestShell:OB("/getAccountSwitcherEndpoint","GET",(m["X-YouTube-Delegation-Context"]=_.kB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),m["X-YouTube-Account-Switcher-Popup"]=O,m["X-YouTube-Account-Switcher-Disable-Signout"]=G,m)),innerTubeRequest:{}}};
Ql.prototype.getApiPaths=function(){return[]};
Ql.prototype.getExtension=function(O){return _.b(O,_.OwN)};
Ql.prototype.JSC$13116_buildRequest=function(){};var HV=function(){};
_.X(HV,at);HV.prototype.JSC$13116_getRequest=function(O){var m="/cross_account_channel_transfer";(O=this.getExtension(O))&&(m=gcN(m,{target_session:O.targetSessionIndex,source_rapt:O.sourceRapt,rapt:O.targetRapt}));return{input:m,requestShell:OB(m,"GET"),innerTubeRequest:{}}};
HV.prototype.getApiPaths=function(){return[]};
HV.prototype.getExtension=function(O){return _.b(O,Oys)};
HV.prototype.JSC$13116_buildRequest=function(){};var vV=function(){};
_.X(vV,at);vV.prototype.getApiPaths=function(){return I2s};
vV.prototype.isNavigationCommand=function(){return!0};
vV.prototype.getExtension=function(O){return _.b(O,_.Vs)};
vV.prototype.JSC$13116_buildRequest=function(O){var m=_.TC().get("gsml","");m&&(O.safetyModeLockerObfuscatedGaiaId=m);O.userInterfaceTheme=_.oh(!0);_.lu()?O.deviceTheme="DEVICE_THEME_SELECTED":_.eLI()?O.deviceTheme="DEVICE_THEME_SUPPORTED":O.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var K8=function(){};
_.X(K8,at);K8.prototype.getApiPaths=function(){return vmm};
K8.prototype.getExtension=function(O){return _.b(O,mvu)};
K8.prototype.JSC$13116_buildRequest=function(O,m){if(m&&m.requestType&&(O.requestType=m.requestType,m.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||m.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var G=m.nextUrl;G&&(_.jsM(G)||Qb(G))&&(O.nextNavendpoint={urlEndpoint:{url:G}})}m&&m.channelSwitcherQuery&&(O.channelSwitcherQuery=m.channelSwitcherQuery);m&&m.triggerChannelCreation&&(O.triggerChannelCreation=m.triggerChannelCreation);var B;if(m==null?0:(B=m.contentOwnerConfig)==
null?0:B.externalContentOwnerId)O.contentOwnerConfig=m.contentOwnerConfig;O.callCircumstance=m&&m.requestType&&m.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var Q,H;m=O==null?void 0:(Q=O.context)==null?void 0:(H=Q.user)==null?void 0:H.onBehalfOfUser;if(m!==void 0){O.obfuscatedSelectedGaiaId=m;var M,R;O==null||(M=O.context)==null||(R=M.user)==null||delete R.onBehalfOfUser}var x,t;if(Q=O==null?void 0:(x=O.context)==null?void 0:(t=x.user)==null?
void 0:t.serializedDelegationContext)O.selectedSerializedDelegationContext=Q};var Mn=function(){};
_.X(Mn,at);Mn.prototype.getApiPaths=function(){return $K9};
Mn.prototype.getExtension=function(O){return _.b(O,Sa_)};
Mn.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params)};var rU=function(){};
_.X(rU,at);rU.prototype.getApiPaths=function(){return WFU};
rU.prototype.getExtension=function(O){return _.b(O,_.eej)};
rU.prototype.JSC$13116_buildRequest=function(O,m){if(m=m.createBroadcastRequest)O.useMasks=m.useMasks,O.broadcastType=m.broadcastType,O.broadcastSource=m.broadcastSource,O.broadcastMetadata=m.broadcastMetadata,O.broadcastMetadataMask=m.broadcastMetadataMask,O.videoMetadata=m.videoMetadata,O.videoMetadataMask=m.videoMetadataMask,O.liveChatSettingsUpdate=m.liveChatSettingsUpdate,O.liveChatSettingsUpdateMask=m.liveChatSettingsUpdateMask,O.cloneVideoId=m.cloneVideoId,O.cloneWithOverrides=m.cloneWithOverrides,
O.targetEntity=m.targetEntity,O.scheduledRedirectMetadata=m.scheduledRedirectMetadata};var Rl=function(){};
_.X(Rl,at);Rl.prototype.getApiPaths=function(){return VQs};
Rl.prototype.getExtension=function(O){return _.b(O,ldp)};
Rl.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;m.params&&(O.params=m.params);G.questionText&&(O.questionText=G.questionText);G.optionText&&G.optionText.length>0&&(O.optionText=G.optionText)};var io=function(){};
_.X(io,at);io.prototype.getApiPaths=function(){return XLU};
io.prototype.getExtension=function(O){return _.b(O,CU9)};
io.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params)};var xj=function(){};
_.X(xj,at);xj.prototype.getApiPaths=function(){return Cp_};
xj.prototype.getExtension=function(O){return _.b(O,pve)};
xj.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params)};var qn=function(){};
_.X(qn,at);qn.prototype.getApiPaths=function(){return l2u};
qn.prototype.getExtension=function(O){return _.b(O,SiC)};
qn.prototype.JSC$13116_buildRequest=function(O,m,G){m.params&&(O.params=m.params);m.continuation&&(O.continuation=m.continuation);G.currentPlayerState&&G.currentPlayerState.playerOffsetMs&&(O.currentPlayerState={playerOffsetMs:G.currentPlayerState.playerOffsetMs.toString()})};var UN=function(){};
_.X(UN,at);UN.prototype.getApiPaths=function(){return a29};
UN.prototype.getExtension=function(O){return _.b(O,Id9)};
UN.prototype.JSC$13116_buildRequest=function(O,m,G){m.params&&(O.params=m.params);G.continuation&&(O.continuation=G.continuation);"hidden"in G&&(O.webClientInfo={isDocumentHidden:G.hidden});G.isInvalidationTimeoutRequest&&(O.isInvalidationTimeoutRequest=G.isInvalidationTimeoutRequest);G.invalidationPayload&&(m=jcm(_.Az(H7(G.invalidationPayload))),O.invalidationPayloadLastPublishAtUsec=Cq(m,2));G.reloadActionPanel&&(O.reloadActionPanel=G.reloadActionPanel);G.fullReload&&(O.fullReload=G.fullReload);
G.currentPlayerState&&(O.currentPlayerState=G.currentPlayerState)};var tr=function(){};
_.X(tr,at);tr.prototype.getApiPaths=function(){return mfU};
tr.prototype.getExtension=function(O){return _.b(O,oJo)};
tr.prototype.JSC$13116_buildRequest=function(O,m){O.params=m.params};var WV=function(){};
_.X(WV,at);WV.prototype.getApiPaths=function(){return om_};
WV.prototype.getExtension=function(O){return _.b(O,NT$)};
WV.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params)};var f8=function(){};
_.X(f8,at);f8.prototype.getApiPaths=function(){return kj_};
f8.prototype.getExtension=function(O){return _.b(O,PqC)};
f8.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params)};var hr=function(){};
_.X(hr,at);hr.prototype.getApiPaths=function(){return GFj};
hr.prototype.getExtension=function(O){return _.b(O,adH)};
hr.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params)};var TW=function(){};
_.X(TW,at);TW.prototype.getApiPaths=function(){return Q0U};
TW.prototype.getExtension=function(O){return _.b(O,kEm)};
TW.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params)};var gU=function(){};
_.X(gU,at);gU.prototype.getApiPaths=function(){return xfU};
gU.prototype.getExtension=function(O){return _.b(O,CqC)};
gU.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params)};var uo=function(){};
_.X(uo,at);uo.prototype.getApiPaths=function(){return JWe};
uo.prototype.getExtension=function(O){return _.b(O,_.yxC)};
uo.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;m.params&&(O.params=m.params);G.client_message_id&&(O.clientMessageId=G.client_message_id);G.recaptcha_token&&(O.recaptchaToken=G.recaptcha_token);G.rich_message&&G.rich_message.text_segments?(m=G.rich_message.text_segments.map(function(B){var Q={};B.text&&(Q.text=B.text);B.emoji_id&&(Q.emojiId=B.emoji_id);return Q}),O.richMessage={textSegments:m}):G.message&&(O.message=G.message);
G.currentPlayerState&&(O.currentPlayerState=G.currentPlayerState)};var j4=function(){};
_.X(j4,at);j4.prototype.getApiPaths=function(){return VC9};
j4.prototype.getExtension=function(O){return _.b(O,cx_)};
j4.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params)};var Il=function(){};
_.X(Il,at);Il.prototype.getApiPaths=function(){return hu3};
Il.prototype.getExtension=function(O){return _.b(O,dsu)};
Il.prototype.JSC$13116_buildRequest=function(O,m,G){m.isUserInitiated&&(O.isUserInitiated=m.isUserInitiated);m.initiationSource&&(O.initiationSource=m.initiationSource);G.locationInfo&&(O.context.client.locationInfo=G.locationInfo)};var p8=function(){};
_.X(p8,at);p8.prototype.getApiPaths=function(){return Bae};
p8.prototype.getExtension=function(O){return _.b(O,D4m)};
p8.prototype.JSC$13116_buildRequest=function(O,m,G){m.metadataUpdateRequest&&(m=m.metadataUpdateRequest,O.encryptedVideoId=m.encryptedVideoId,m.liveChat&&(m=m.liveChat,O.liveChat||(O.liveChat={}),m.performAsExternalChannelId&&(O.liveChat.performAsExternalChannelId=m.performAsExternalChannelId),m.source&&(O.liveChat.source=m.source)));var B;if(G==null?0:(B=G.liveChat)==null?0:B.liveChatSettings)O.liveChat||(O.liveChat={}),G=G.liveChat.liveChatSettings,O.liveChat.newLiveChatSettings=G,O.liveChat.newLiveChatSettingsMask||
(O.liveChat.newLiveChatSettingsMask={}),G.emojiReactionSet&&(O.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var S4=function(){};
_.X(S4,at);S4.prototype.getApiPaths=function(){return Lc$};
S4.prototype.getExtension=function(O){return _.b(O,_.Hi3)};
S4.prototype.JSC$13116_buildRequest=function(O,m,G){G.continuation?O.continuation=G.continuation:m.videoId&&(O.videoId=m.videoId);G.clientParams&&(O.clientParams=G.clientParams)};var EN=function(){};
_.X(EN,at);EN.prototype.getApiPaths=function(){return yhm};
EN.prototype.getExtension=function(O){return _.b(O,_.G_)};
EN.prototype.JSC$13116_buildRequest=function(O,m){O.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";O.fetchCommentsParams={};m.videoId&&(O.fetchCommentsParams.encryptedVideoId=m.videoId);m.postId&&(O.fetchCommentsParams.postId=m.postId);m.externalChannelId&&(O.fetchCommentsParams.externalChannelId=m.externalChannelId);m.linkedCommentId&&(O.fetchCommentsParams.linkedCommentId=m.linkedCommentId);(0,_.aM.isEmpty)(O.fetchCommentsParams)&&delete O.fetchCommentsParams};var L8=function(){};
_.X(L8,at);L8.prototype.getApiPaths=function(){return Fv};
L8.prototype.JSC$13116_buildRequest=function(O){O.browseId="FEnotifications_inbox"};
L8.prototype.getExtension=function(O){return _.b(O,_.Vs)};var C8=function(){};
_.X(C8,at);C8.prototype.getApiPaths=function(){return yhm};
C8.prototype.JSC$13116_buildRequest=function(O,m){m.signal==="GET_NOTIFICATIONS_MENU"&&(O.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");m.ctoken&&(O.ctoken=m.ctoken)};
var UJJ=function(){};
_.X(UJJ,C8);UJJ.prototype.getExtension=function(O){return _.b(O,_.Vs)};
var tK0=function(){};
_.X(tK0,C8);tK0.prototype.getExtension=function(O){return _.b(O,GBp)};var ol=function(){};
_.X(ol,at);ol.prototype.getApiPaths=function(){return DKu};
ol.prototype.getExtension=function(O){return _.b(O,_.Vs)};
ol.prototype.JSC$13116_buildRequest=function(){};var lo=function(){};
_.X(lo,at);lo.prototype.getApiPaths=function(){return Hx8};
lo.prototype.getExtension=function(O){return _.b(O,Oi2)||void 0};
lo.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params);m.secondaryParams&&(O.secondaryParams=m.secondaryParams)};var al=function(){};
_.X(al,at);al.prototype.getApiPaths=function(){return vUH};
al.prototype.getExtension=function(O){return _.b(O,E4p)};
al.prototype.JSC$13116_buildRequest=function(O,m){m.undo&&(O.undo=m.undo);m.serializedOptOut&&(O.serializedOptOut=m.serializedOptOut);m.serializedRecordInteractionsRequest&&(O.serializedRecordInteractionsRequest=m.serializedRecordInteractionsRequest)};var kj=function(){};
_.X(kj,at);kj.prototype.getApiPaths=function(){return MCp};
kj.prototype.getExtension=function(O){return _.b(O,Lt3)};
kj.prototype.JSC$13116_buildRequest=function(O,m){m.serializedInteractionsRequest&&(O.serializedRecordNotificationInteractionsRequest=m.serializedInteractionsRequest)};var yl=function(){};
_.X(yl,at);yl.prototype.getApiPaths=function(){return RUz};
yl.prototype.getExtension=function(O){return _.b(O,$y5)};
yl.prototype.JSC$13116_buildRequest=function(O,m,G){m=m===void 0?{}:m;G=G===void 0?{}:G;m.videoId?O.videoId=m.videoId:m.playlistId&&(O.playlistId=m.playlistId);var B,Q=(B=m.offlineWebClientEligibility)!=null?B:G.offlineWebClientEligibility;Q&&(O.offlineWebClientEligibility=Q);var H;if(B=(H=m.preferredFormatType)!=null?H:G.preferredFormatType)O.preferredFormatType=B;var M;if(H=(M=m.lastOfflineQualitySettingsSavedMs)!=null?M:G.lastOfflineQualitySettingsSavedMs)O.lastOfflineQualitySettingsSavedMs=H;
m.params&&(O.params=m.params)};var cV=function(){};
_.X(cV,at);cV.prototype.getApiPaths=function(){return V0};
cV.prototype.getExtension=function(O){return _.b(O,_.Dw)};
cV.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;m.token&&(O.continuation=m.token);G.formData&&(O.formData=G.formData)};var Yj=function(){};
_.X(Yj,at);Yj.prototype.getApiPaths=function(){return V0};
Yj.prototype.getExtension=function(O){return _.b(O,yem)};
Yj.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;O.continuation=G.continuation};var dU=function(){};
_.X(dU,at);dU.prototype.getApiPaths=function(){return V0};
dU.prototype.getExtension=function(O){return _.b(O,_.pk)};
dU.prototype.JSC$13116_buildRequest=function(O,m){var G,B=m.panelIdentifier||((G=m.identifier)==null?void 0:G.tag);B&&(O.panelId=B);var Q;if((Q=m.globalConfiguration)==null?0:Q.params){var H;O.params=(H=m.globalConfiguration)==null?void 0:H.params}};
_.vr.Object.defineProperties(dU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wU=function(){};
_.X(wU,at);wU.prototype.getApiPaths=function(){return V0};
wU.prototype.getExtension=function(O){return _.b(O,goC)};
wU.prototype.JSC$13116_buildRequest=function(O,m){m.panelLoadingStrategy&&rye(O,m.panelLoadingStrategy)};var e4=function(){};
_.X(e4,at);e4.prototype.getApiPaths=function(){return V0};
e4.prototype.getExtension=function(O){return _.b(O,e5j)};
e4.prototype.JSC$13116_buildRequest=function(O,m){m.loadingStrategy&&rye(O,m.loadingStrategy)};var Dj=function(){};
_.X(Dj,at);Dj.prototype.getApiPaths=function(){return V0};
Dj.prototype.getExtension=function(O){return _.b(O,_.I_)};
Dj.prototype.JSC$13116_buildRequest=function(O,m){m.panelLoadingStrategy&&rye(O,m.panelLoadingStrategy)};var sN=function(){};
_.X(sN,at);sN.prototype.getApiPaths=function(){return V0};
sN.prototype.getExtension=function(O){return _.b(O,DcH)};
sN.prototype.JSC$13116_buildRequest=function(O,m){var G,B=(G=m.contentSourcePanelIdentifier)==null?void 0:G.tag;B&&(O.panelId=B);var Q;if((Q=m.globalConfiguration)==null?0:Q.params){var H;O.params=(H=m.globalConfiguration)==null?void 0:H.params}};var Nn=function(){};
_.X(Nn,at);Nn.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
Nn.prototype.getExtension=function(O){return _.b(O,sCC)};
Nn.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params)};var PV=function(){};
_.X(PV,at);PV.prototype.getApiPaths=function(){return EUU};
PV.prototype.getExtension=function(O){return _.b(O,FtC)};
PV.prototype.JSC$13116_buildRequest=function(O,m){m.externalChannelId&&(O.externalChannelId=m.externalChannelId);m.superChatAction&&(O.superChatAction=m.superChatAction);m.superStickersAction&&(O.superStickersAction=m.superStickersAction)};var Fb=function(){};
_.X(Fb,at);Fb.prototype.getApiPaths=function(){return pLu};
Fb.prototype.getExtension=function(O){return _.b(O,cQC)||_.b(O,rBN)};
Fb.prototype.JSC$13116_buildRequest=function(O,m){m.videoIds?O.videoIds=m.videoIds:m.videoId&&(O.videoIds=[m.videoId]);m.playlistId&&(O.playlistId=m.playlistId);m.params&&(O.params=m.params);O.excludeWatchLater=!1};var Ar=function(){};
_.X(Ar,at);Ar.prototype.getApiPaths=function(){return bWs};
Ar.prototype.getExtension=function(O){return _.b(O,_.MO)};
Ar.prototype.JSC$13116_buildRequest=function(O,m,G){G.create_playlist_title?O.title=G.create_playlist_title:m.title&&(O.title=m.title);if(G.create_playlist_privacy_status&&typeof G.create_playlist_privacy_status==="number"){a:{var B=G.create_playlist_privacy_status;if(B!==0){if(B===1){B="PUBLIC";break a}if(B===2){B="UNLISTED";break a}}B="PRIVATE"}O.privacyStatus=B}else m.privacyStatus&&(O.privacyStatus=m.privacyStatus);G.create_playlist_description&&(O.description=G.create_playlist_description);m.videoIds&&
(O.videoIds=m.videoIds);m.params&&(O.params=m.params);m.sourcePlaylistId&&(O.sourcePlaylistId=m.sourcePlaylistId)};var O$=function(){};
_.X(O$,at);O$.prototype.getApiPaths=function(){return f2u};
O$.prototype.getExtension=function(O){return _.b(O,FEs)};
O$.prototype.JSC$13116_buildRequest=function(O,m){O.playlistId=m.playlistId};var mX=function(){};
_.X(mX,at);mX.prototype.getApiPaths=function(){return chm};
mX.prototype.getExtension=function(O){return _.b(O,g4u)};
mX.prototype.JSC$13116_buildRequest=function(O,m){m.playlistId&&(O.playlistId=m.playlistId);m.params&&(O.params=m.params)};var Gd=function(){};
_.X(Gd,at);Gd.prototype.getApiPaths=function(){return $fm};
Gd.prototype.getExtension=function(O){return _.b(O,_.B3)||void 0};
Gd.prototype.JSC$13116_buildRequest=function(O,m){m.actions&&(O.actions=m.actions);m.params&&(O.params=m.params);m.playlistId&&(O.playlistId=m.playlistId)};var BN=function(){};
_.X(BN,at);_.v=BN.prototype;_.v.getApiPaths=function(){return rWU};
_.v.getExtension=function(O){return _.b(O,_.pf)};
_.v.JSC$13116_buildRequest=function(O,m){m.videoId&&(O.playerRequest={videoId:m.videoId},m.playerParams&&(O.playerRequest.params=m.playerParams),m.racyCheckOk&&(O.playerRequest.racyCheckOk=!!m.racyCheckOk),m.contentCheckOk&&(O.playerRequest.contentCheckOk=!!m.contentCheckOk));m.params&&(O.params=m.params);m.inputType&&(O.inputType=m.inputType);O.disablePlayerResponse=!0};
_.v.getRequestConfig=function(O){var m;(O=this.JSC$13123_getStoreKey(O))&&(m={storeStrategy:{storeKey:O}});_.V("web_log_reels_ticks")&&(m=m||{},m.requestTick="r_wrs",m.responseTick="r_wrr");return m};
_.v.JSC$13123_getStoreKey=function(O){O=this.getExtension(O);if(O!=null&&O.videoId){var m={videoId:O.videoId};O.params&&(m.params=O.params);return _.m8("reel_item_watch",m)}};var Qt=function(){};
_.X(Qt,at);_.v=Qt.prototype;_.v.getApiPaths=function(){return Ru$};
_.v.getExtension=function(O){return _.b(O,_.pf)};
_.v.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;O.sequenceParams=m.sequenceParams;var B;((B=G)==null?0:B.contentPlaybackContext)&&_.V("web_shorts_prefetch_service_enabled")&&(O.playbackContext={contentPlaybackContext:G.contentPlaybackContext})};
_.v.JSC$13123_getStoreKey=function(O){if(_.V("web_enable_delay_shorts_sequence_call")||_.V("shorts_controller_retrieve_seedless_sequence_v2"))if(O=this.getExtension(O),O==null?0:O.sequenceParams)return _.m8("reel_watch_sequence",{sequenceParams:O.sequenceParams})};
_.v.getRequestConfig=function(O){O=this.JSC$13123_getStoreKey(O);var m;O&&(m={storeStrategy:{storeKey:O}});m=m||{};m.requestTick="r_wsrs";m.responseTick="r_wsrr";m.processorTick="r_wsrp";return m};
var HN=function(){};
_.X(HN,at);HN.prototype.getApiPaths=function(){return Ru$};
HN.prototype.getExtension=function(O){return _.b(O,_.Dw)};
HN.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;m.token&&(O.continuation=m.token);var B;((B=G)==null?0:B.contentPlaybackContext)&&_.V("web_shorts_prefetch_service_enabled")&&(O.playbackContext={contentPlaybackContext:G.contentPlaybackContext})};
HN.prototype.getRequestConfig=function(O){O=this.JSC$13123_getStoreKey(O);var m;O&&(m={storeStrategy:{storeKey:O}});m=m||{};m.requestTick="r_wsrs";m.responseTick="r_wsrr";m.processorTick="r_wsrp";return m};var vN=function(){};
_.X(vN,at);vN.prototype.getApiPaths=function(){return u$8};
vN.prototype.getExtension=function(O){return _.b(O,_.gI9)};
vN.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;m.flagAction&&(O.action=m.flagAction);m.flagRequestType&&(O.flagRequestType=m.flagRequestType);m.additionalDetailCheckboxChecked&&(O.additionalDetailCheckboxChecked=m.additionalDetailCheckboxChecked);m.legalCheckboxChecked&&(O.legalCheckboxChecked=m.legalCheckboxChecked);m={};G.flag_issue_type!==void 0&&(m.issue=G.flag_issue_type);G.flag_affiliation!==void 0&&(m.affiliation=G.flag_affiliation);G.flag_full_name&&(m.fullName=G.flag_full_name);
Object.keys(m).length&&(O.legalReportDetails=m);if(G.flag_description||G.text)O.userComments=G.flag_description||G.text;m={};G.minutes!==void 0&&G.seconds!==void 0&&(m.minutes=G.minutes,m.seconds=G.seconds);G.vss_id&&(m.vssId=G.vss_id);Object.keys(m).length&&(O.videoReportDetails=m);m={};G.video_ids&&(m.videoIds=G.video_ids);G.impersonated_channel_url&&(m.impersonatedChannelUrl=G.impersonated_channel_url);Object.keys(m).length&&(O.channelAbuseReportDetails=m)};
_.vr.Object.defineProperties(vN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Kw=function(){};
_.X(Kw,at);Kw.prototype.getApiPaths=function(){return LFe};
Kw.prototype.getExtension=function(O){return _.b(O,OUC)};
Kw.prototype.JSC$13116_buildRequest=function(O,m){m.blockedForKidsContent&&(O.blockedForKidsContent=m.blockedForKidsContent)};var $1=function(){};
_.X($1,at);$1.prototype.getApiPaths=function(){return q5H};
$1.prototype.getExtension=function(O){return _.b(O,Mys)};
$1.prototype.JSC$13116_buildRequest=function(O,m,G){O.params=m.params;G.impersonated_channel_url&&(O.impersonatedChannelUrl=G.impersonated_channel_url)};var My=function(){};
_.X(My,at);My.prototype.getApiPaths=function(){return Ahu};
My.prototype.getExtension=function(O){return _.b(O,_.mss)};
My.prototype.JSC$13116_buildRequest=function(O,m){m.items&&(O.items=m.items);m.kidGaiaId&&(O.kidGaiaId=m.kidGaiaId)};var rd=function(){};
_.X(rd,at);rd.prototype.getApiPaths=function(){return SHe};
rd.prototype.getExtension=function(O){return _.b(O,_.aNs)};
rd.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params);m.targetId&&(O.targetId=m.targetId)};var Rv=function(){};
_.X(Rv,at);Rv.prototype.getApiPaths=function(){return Zxu};
Rv.prototype.getExtension=function(O){return _.b(O,Bk3)};
Rv.prototype.JSC$13116_buildRequest=function(O,m){m.externalVideoId&&(O.externalVideoId=m.externalVideoId);m.query&&(O.query=m.query);m.sourceTimelines&&(O.sourceTimelines=m.sourceTimelines)};var i0=function(){};
_.X(i0,at);i0.prototype.getApiPaths=function(){return zu2};
i0.prototype.getExtension=function(O){return _.b(O,_.Dw)||void 0};
i0.prototype.JSC$13116_buildRequest=function(O,m){m.token&&(O.continuation=m.token)};
_.WAu=function(){};
_.X(_.WAu,at);_.v=_.WAu.prototype;_.v.getApiPaths=function(){return zu2};
_.v.getExtension=function(O){return _.b(O,_.uu)||void 0};
_.v.isNavigationCommand=function(){return!0};
_.v.JSC$13123_getStoreKey=function(O,m){m=m===void 0?{}:m;if(!m.disableCache&&(O=this.getExtension(O))&&O.query)return m={query:O.query},O.params&&(m.params=O.params),_.m8("search",m)};
_.v.JSC$13116_buildRequest=function(O,m,G){m.query&&(O.query=m.query);m.params&&(O.params=m.params);if(!_.V("web_forward_suggest_stats_killswitch")){var B=_.b(m,VPo);B&&(O.suggestStats=B)}var Q;!_.V("kevlar_searchbox_stats_killswitch")&&((Q=G.tempData)==null?0:Q.gs_l)&&!_.b(m,VPo)&&(O.webSearchboxStatsUrl="/search?oq="+(G.tempData.oq||"")+"&gs_l="+G.tempData.gs_l);var H;if((H=G.tempData)==null?0:H.entityMid)m=O.suggestionSearchParams||{},m.entityMid=G.tempData.entityMid,O.suggestionSearchParams=m;
if(_.V("enable_desktop_vdcbg_components")||_.V("enable_inline_muted_playback_on_web_search"))G=_.TC().getFlag(186),O.inlineSettingStatus=G?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.v.getRequestConfig=function(O,m){m=m===void 0?{}:m;O=this.JSC$13123_getStoreKey(O,m);var G;O&&(G={storeStrategy:{storeKey:O}});_.V("web_log_search_ticks_ks")||(G=G||{},G.requestTick="sr_s",G.responseTick="sr_r");return G};var x1=function(){};
_.X(x1,at);x1.prototype.getApiPaths=function(){return wLo};
x1.prototype.getExtension=function(O){return _.b(O,rCU)};
x1.prototype.JSC$13116_buildRequest=function(O,m){m.serializedGetSharingProviderDataParams&&(O.serializedGetSharingProviderDataParams=m.serializedGetSharingProviderDataParams)};var qy=function(){};
_.X(qy,at);qy.prototype.getApiPaths=function(){return eLC};
qy.prototype.getExtension=function(O){return _.b(O,nIo)};
qy.prototype.JSC$13116_buildRequest=function(O,m){m.endpoint&&(O.endpoint=m.endpoint);m.action&&(O.action=m.action)};var U$=function(){};
_.X(U$,at);U$.prototype.getApiPaths=function(){return hLs};
U$.prototype.getExtension=function(O){return _.b(O,AQm)};
U$.prototype.JSC$13116_buildRequest=function(O,m){O.videoId=m.videoId;m.scheduledRedirectMetadataSourceVideoId&&(O.scheduledRedirectMetadata={sourceVideoId:m.scheduledRedirectMetadataSourceVideoId})};var tB=function(){};
_.X(tB,at);tB.prototype.getApiPaths=function(){return nU3};
tB.prototype.getExtension=function(O){return _.b(O,_.OQj)};
tB.prototype.JSC$13116_buildRequest=function(O,m){O.params=m.params;O.correctionText=m.correctionText};var WN=function(){};
_.X(WN,at);WN.prototype.getApiPaths=function(){return $aN};
WN.prototype.getExtension=function(O){return _.b(O,_.QR_)};
WN.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params);O.searchQuery=m.searchQuery;O.languageCode=m.languageCode;O.kind=m.kind;O.name=m.name;O.externalVideoId=m.externalVideoId};var ZW=function(){};
_.X(ZW,at);ZW.prototype.getApiPaths=function(){return aS_};
ZW.prototype.getExtension=function(O){return _.b(O,qL3)};
ZW.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.params=m.params)};var zd=function(O){this.JSC$18164_storeWithEntities=O};
_.X(zd,at);zd.prototype.getApiPaths=function(){return UK2};
zd.prototype.getExtension=function(O){return _.b(O,t6j)||_.b(O,ZQ$)};
zd.prototype.JSC$13116_buildRequest=function(O,m,G){G.client_data&&(O.clientData=G.client_data);if(m.commerceActionConfig){var B=m.commerceActionConfig;m=B.actionId;B=B.commerceActionParams;m&&(O.actionId=m);B&&(O.commerceActionParams=B)}else{var Q=m.actionId,H=m.commerceActionParams;G=m.entityKeys;Q&&(O.actionId=Q);H&&(O.commerceActionParams=H);var M;m=(B=this.JSC$18164_storeWithEntities)==null?void 0:(M=B.getState())==null?void 0:M.entities;if(G&&m){B=[];M=_.K(G);for(G=M.next();!G.done;G=M.next())if(Q=
G.value,G=_.Ur(Q).entityType,Q=_.Vh(m,G,Q))H={},B.push((H[G]=Q,H));O.entityMutationPayloads=B}}};
zd.prototype.getRequestConfig=function(O){var m,G=(m=_.b(O,t6j))==null?void 0:m.requestSequenceType;if(G&&O.clickTrackingParams&&G!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:O.clickTrackingParams,sequenceType:G}}};
zd[$R]=[$p];var JB=function(){};
_.X(JB,at);JB.prototype.getApiPaths=function(){return kF3};
JB.prototype.getExtension=function(O){return _.b(O,_.COu)};
JB.prototype.JSC$13116_buildRequest=function(O,m){m.feedbackData&&(O.feedbackData=m.feedbackData);m.params&&(O.itemParams=m.params)};
_.vr.Object.defineProperties(JB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Vt=function(){};
_.X(Vt,at);Vt.prototype.getApiPaths=function(){return yW_};
Vt.prototype.getExtension=function(O){return _.b(O,ok9)};
Vt.prototype.JSC$13116_buildRequest=function(O,m,G){G.payments_payload&&(O.paymentsPayload=G.payments_payload);G.offer_params&&(O.offerParams=G.offer_params);m.transactionParams&&(O.transactionParams=m.transactionParams)};var b0=function(){};
_.X(b0,at);b0.prototype.getApiPaths=function(){return cWu};
b0.prototype.getExtension=function(O){return _.b(O,_.lc8)};
b0.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;m.buybucketParams&&(O.buybucketData={params:m.buybucketParams},m.stickerParams?O.buybucketData.stickerParams=m.stickerParams:(G.rich_chat_message?O.buybucketData.richChatMessage=G.rich_chat_message:G.chat_message_text&&(O.buybucketData.chatMessageText=G.chat_message_text),G.purchase_price_micros&&(O.buybucketData.purchasePriceMicros=G.purchase_price_micros.toString())));m.donationAmountMicros&&(O.tipAmountMicros=m.donationAmountMicros,
m.tipParams&&(O.tipParams=m.tipParams));m.offerParams&&(O.offerParams=m.offerParams);m.productData&&(O.productData=m.productData);m.transactionParams&&(O.transactionParams=m.transactionParams)};var nw=function(){};
_.X(nw,at);nw.prototype.getApiPaths=function(){return Y5s};
nw.prototype.getExtension=function(O){return _.b(O,yn8)};
nw.prototype.JSC$13116_buildRequest=function(O,m){m.updateFopParams&&(O.updateFopParams=m.updateFopParams)};var XT=function(){};
_.X(XT,at);XT.prototype.getApiPaths=function(){return df9};
XT.prototype.getExtension=function(O){return _.b(O,_.GU)};
XT.prototype.JSC$13116_buildRequest=function(O,m){m.couponCode&&(O.couponCode=m.couponCode);m.params&&(O.itemParams=m.params)};var fw=function(){};
_.X(fw,at);fw.prototype.getApiPaths=function(){return wo8};
fw.prototype.getExtension=function(O){return _.b(O,_.WTC)};
fw.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;m.params&&(O.params=m.params);G.ctk&&(O.clientToken=G.ctk)};var hB=function(O){this.JSC$18199_storeWithEntities=O};
_.X(hB,at);hB.prototype.getApiPaths=function(){return eu9};
hB.prototype.getExtension=function(O){return _.b(O,_.xz)};
hB.prototype.JSC$13116_buildRequest=function(O,m,G){G.purchase_price_micros&&(O.productData={pdgData:{purchasePriceMicros:G.purchase_price_micros.toString()}},G.rich_chat_message&&(O.productData.pdgData.richChatMessage=G.rich_chat_message),G.currency_code&&(O.productData.pdgData.currencyCode=G.currency_code));m.transactionParams&&(O.transactionParams=m.transactionParams);m.clientLocationContext&&(O.clientLocationContext=m.clientLocationContext);G.payments_payload&&(O.paymentsPayload=G.payments_payload);
G.funds_guarantee_callback_client_data&&(O.fundsGuaranteeCallbackClientData=G.funds_guarantee_callback_client_data);var B,Q;G=(B=this.JSC$18199_storeWithEntities)==null?void 0:(Q=B.getState())==null?void 0:Q.entities;if(m.entityKeys&&G){B=[];m=_.K(m.entityKeys);for(Q=m.next();!Q.done;Q=m.next()){var H=Q.value;Q=_.Ur(H).entityType;if(H=_.Vh(G,Q,H)){var M={};B.push((M[Q]=H,M))}}O.entityMutationPayloads=B}};
hB[$R]=[$p];var Td=function(){};
_.X(Td,at);Td.prototype.getApiPaths=function(){return DfU};
Td.prototype.getExtension=function(O){return _.b(O,acj)};
Td.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;G.backend_analytics&&(O.serializedBackendAnalyticsEvent=G.backend_analytics);m.offerParams&&(O.offerParams=m.offerParams)};var gd=function(){};
_.X(gd,at);gd.prototype.getApiPaths=function(){return df9};
gd.prototype.getExtension=function(O){return _.b(O,dwN)};
gd.prototype.JSC$13116_buildRequest=function(O,m){m.params&&(O.itemParams=m.params)};var u0=function(){};
_.X(u0,at);u0.prototype.getApiPaths=function(){return s08};
u0.prototype.getExtension=function(O){return _.b(O,_.nk8)};
u0.prototype.JSC$13116_buildRequest=function(O,m,G){G.resume_time_ms&&(O.resumeTimeMs=G.resume_time_ms);m.pauseParams&&(O.pauseParams=m.pauseParams)};var jy=function(){};
_.X(jy,at);jy.prototype.getApiPaths=function(){return Nap};
jy.prototype.getExtension=function(O){return _.b(O,_.kRU)};
jy.prototype.JSC$13116_buildRequest=function(O,m,G){G=G===void 0?{}:G;G.c&&(O.redeemCode=G.c);G.rd&&(O.riskData=G.rd);G.ctk&&(O.clientToken=G.ctk)};var Iv=function(){};
_.X(Iv,at);Iv.prototype.getApiPaths=function(){return P3H};
Iv.prototype.getExtension=function(O){return _.b(O,_.XT9)};
Iv.prototype.JSC$13116_buildRequest=function(O,m){m.resumeParams&&(O.resumeParams=m.resumeParams)};var pw=function(O,m){this.clientName=O;this.defaultExpirationDelayMs=m};
pw.prototype.put=function(O,m){var G=this,B;return _.r(function(Q){B=Object.assign({},m.data);B.key=O;B.clientName=G.clientName;B.expireTimestampMs===void 0&&(B.expireTimestampMs=(Math.round((0,_.$G)())+G.defaultExpirationDelayMs).toString());return Q.return(G.putInternal(O,B))})};
pw[$R]=[QG,fHu];var ZBr=function(){pw.apply(this,arguments);this.JSC$18229_responseStore=new Map};
_.X(ZBr,pw);_.v=ZBr.prototype;_.v.get=function(O){var m=this;return _.r(function(G){return G.return(lp(m,O))})};
_.v.putInternal=function(O,m){var G=this,B,Q,H;return _.r(function(M){B=G.defaultExpirationDelayMs;m.expireTimestampMs&&(B=Number(m.expireTimestampMs)-Math.round((0,_.$G)()),Q=_.Rd("mweb_override_response_store_expiration_ms"),Q>0&&Q<B&&(B=Q));H=setTimeout(function(){G.remove(O)},B);
G.JSC$18229_responseStore.set(O,{entryData:m,timer:H});_.ju(M)})};
_.v.remove=function(O){var m=this;return _.r(function(G){z0J(m,O);_.ju(G)})};
_.v.removeAll=function(){var O=this;return _.r(function(m){O.JSC$18229_responseStore.forEach(function(G){clearTimeout(G.timer)});
O.JSC$18229_responseStore.clear();_.ju(m)})};
_.v.has=function(O){return!!this.JSC$18229_responseStore.get(O)};
_.v.getKeys=function(){return this.JSC$18229_responseStore.keys()};
var lp=function(O,m){if(O=O.JSC$18229_responseStore.get(m))return new _.or(O.entryData)},z0J=function(O,m){var G=O.JSC$18229_responseStore.get(m);
G&&(clearTimeout(G.timer),O.JSC$18229_responseStore.delete(m))};var ROp;var qde=function(O,m,G){pw.call(this,O,m);this.token=G};
_.X(qde,pw);_.v=qde.prototype;_.v.get=function(O){var m=this,G,B;return _.r(function(Q){return Q.nextAddress==1?Q.yield(xVz(m.token),2):Q.nextAddress!=3?(G=Q.yieldResult,Q.yield(G.get("ResponseStore",[O,m.clientName]),3)):(B=Q.yieldResult)?Q.return(new _.or(B)):Q.return(void 0)})};
_.v.putInternal=function(O,m){var G=this,B;return _.r(function(Q){if(Q.nextAddress==1)return Q.yield(xVz(G.token),2);B=Q.yieldResult;return Q.yield(B.put("ResponseStore",m),0)})};
_.v.remove=function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(xVz(m.token),2);G=B.yieldResult;return B.return(G.delete("ResponseStore",[O,m.clientName]))})};
_.v.removeAll=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return G.yield(xVz(O.token),2);m=G.yieldResult;return G.yield(Ld2(m,IDBKeyRange.only(O.clientName)),0)})};
_.v.has=function(){throw Error("ej");};_.Sy=new _.Us("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var Jsr=function(O){var m;this.stateTagsData=(m=O.responseContext)==null?void 0:m.stateTags},VKo=function(O){var m;
return((m=O.stateTagsData)==null?void 0:m.stateTagsModified)||[]};var bBy;bBy=function(O){this.JSC$18242_responseStore=O};
_.ek=function(O,m,G){if(!_.V("state_tags_killswitch")){var B=new Jsr(m);if(VKo(B).length>0){var Q=O.JSC$18242_responseStore.getKeys();Q=_.K(Q);for(var H=Q.next();!H.done;H=Q.next()){H=H.value;var M=lp(O.JSC$18242_responseStore,H);if(M){var R=_.v$(M);a:{var x=void 0;M=VKo(B);R=((x=(new Jsr(R)).stateTagsData)==null?void 0:x.relevantStateTags)||[];x=_.K(R);for(R=x.next();!R.done;R=x.next())if(R=R.value,R.stateTag!=null&&M.includes(R.stateTag)&&R.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){M=
!0;break a}M=!1}M&&z0J(O.JSC$18242_responseStore,H)}}}}var t;B=(t=m.responseContext)==null?void 0:t.maxAgeSeconds;G&&B&&Number(B)>0&&(m=tt(m,B),O.JSC$18242_responseStore.put(G,new _.or(m)))};
bBy.prototype.handleResponse=function(O,m){if(!m)throw Error("fj");var G,B;m=(G=m.config)==null?void 0:(B=G.storeStrategy)==null?void 0:B.storeKey;_.ek(this,O,m)};
bBy[$R]=[_.CW];_.bc5=new _.Us("STORE_RESPONSE_PROCESSOR_TOKEN");var nhK=function(O){this.JSC$18245_responseStore=O};
nhK.prototype.handleResponse=function(O,m){if(m.input.match(_.$H(Ru$))){var G;if(O==null?0:(G=O.entries)==null?0:G.length)for(O=_.K(O.entries),m=O.next();!m.done;m=O.next()){G=m.value.command;var B=void 0;m=(B=_.b(G,_.pf))==null?void 0:B.unserializedPrefetchData;if(!G||!m)break;B=(new BN).JSC$13123_getStoreKey(G);var Q=_.b(m,nzp),H=void 0,M=void 0,R=void 0,x=void 0,t=void 0,W=void 0,Z=((H=Q)==null?0:(M=H.responseContext)==null?0:M.maxAgeSeconds)&&Number((R=Q)==null?void 0:(x=R.responseContext)==null?
void 0:x.maxAgeSeconds)>0?Number((t=Q)==null?void 0:(W=t.responseContext)==null?void 0:W.maxAgeSeconds):600;B&&Z>0&&(Q=tt(Q,Z),this.JSC$18245_responseStore.put(B,new _.or(Q)));G=(new ym).JSC$13123_getStoreKey(G);m=_.b(m,KEC);x=R=M=H=Q=B=void 0;t=((B=m)==null?0:(Q=B.responseContext)==null?0:Q.maxAgeSeconds)&&Number((H=m)==null?void 0:(M=H.responseContext)==null?void 0:M.maxAgeSeconds)>0?Number((R=m)==null?void 0:(x=R.responseContext)==null?void 0:x.maxAgeSeconds):600;G&&t>0&&(m=tt(m,t),this.JSC$18245_responseStore.put(G,
new _.or(m)))}}};
nhK[$R]=[_.CW];var Xbr=function(O,m){this.innertubeTransportService=O;this.JSC$18248_commandHandler=m};
Xbr.prototype.submitForm=function(O,m,G,B,Q){var H=this,M,R,x,t,W,Z;return _.r(function(z){if(z.nextAddress==1)return M={submitId:O,formData:m,submitBehavior:G,params:B},R=_.$H(Xop),z.yield(_.rS(H.innertubeTransportService,M,R,Q),2);x=z.yieldResult;if(!x)return z.return(Promise.reject(new _.j9("Submit API returned an undefined response. Submit ID: "+O)));t=x;(Z=(W=t)==null?void 0:W.onResponseReceived)&&H.JSC$18248_commandHandler.resolveCommand(Z);return z.return(t)})};
Xbr[$R]=[_.Dk,_.Mu];var E$=function(){this.scheduler=_.uW()},fxr;
E$.prototype.pause=function(){throw Error("gj");};
E$.prototype.resume=function(){throw Error("gj");};
E$.prototype.queue=function(O){var m=this,G=_.m3(),B=_.uT(this.scheduler,function(){try{var Q;if(_.XJ.instance)var H=_.XJ.instance;else{var M=new _.j9("Error: Unexpected uninitialized CommandHandler.");_.oy(M);H=void 0}(Q=H)==null||Q.resolveCommand(O.command);G.resolve()}catch(R){G.reject(R)}});
G.promise.thenCatch(function(Q){Q instanceof _.YK&&m.scheduler.cancelJob(B)});
return G.promise};
E$.prototype.queueAll=function(O){var m=new Map;O=_.K(O);for(var G=O.next();!G.done;G=O.next())G=G.value,m.set(G.id,this.queue(G));return m};var Tos=function(O,m){var G=this;this.taskModel=O;this.onTaskCancelledCallback=m;this.resolver=_.m3();O=O.proto.prefetchConfig;if(!O)throw Error("hj");if(!O.prefetchAction)throw Error("ij");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(B){B instanceof _.YK&&(h0b(G,G.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),G.onTaskCancelledCallback(G.taskModel.id,G.jobId),G.tick("pcc"));
throw B;});
this.timerName=this.taskModel.id;_.ys(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
Tos.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 h0b=function(O,m){_.as({prefetchInfo:{cancellationReason:m}},O.timerName)};
Tos.prototype.tick=function(O){_.cd(O,void 0,this.timerName)};var Cw=function(){var O=this;this.scheduler=_.uW();this.maxInflightTasks=_.Rd("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Rd("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new qfU;this.onTaskCancelled=function(m,G){G&&O.scheduler.cancelJob(G);ghb(O,m);Lw(O,3)}},urr=function(){Cw.instance||(Cw.instance=new Cw);
return Cw.instance};
Cw.prototype.pause=function(){this.prefetchCoordinatorState=0};
Cw.prototype.resume=function(){Lw(this,0)};
Cw.prototype.queue=function(O){O=j3o(this,O);Lw(this,1);return O};
Cw.prototype.queueAll=function(O){var m=new Map;O=_.K(O);for(var G=O.next();!G.done;G=O.next())G=G.value,m.set(G.id,j3o(this,G));Lw(this,1);return m};
var j3o=function(O,m){var G=O.allPrefetchTasks.get(m.id);if(G)return G.cancellablePromise;try{var B=new Tos(m,O.onTaskCancelled)}catch(H){return _.lK(H)}G=B;G.tick("pcq");var Q={prefetchInfo:{taskId:G.taskModel.id,isPrefetch:!0,fetchAction:G.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:G.taskModel.command.clickTrackingParams}};G.taskModel.csn&&(Q.clientScreenNonce=G.taskModel.csn);_.as(Q,G.timerName);O.allPrefetchTasks.set(m.id,B);O.drainingHeap.insert(-B.getPriority(),B);return B.cancellablePromise},
Lw=function(O,m){O.prefetchCoordinatorState===m&&(O.prefetchCoordinatorState=2,Ixh(O))},Ixh=function(O){for(var m={};O.prefetchCoordinatorState!==0;m={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(O.inflightPrefetchTasks.size>=O.maxInflightTasks){O.prefetchCoordinatorState=3;break}m.prefetchTask$jscomp$1=O.drainingHeap.remove();if(!m.prefetchTask$jscomp$1){O.prefetchCoordinatorState=1;break}m.taskId$jscomp$3=m.prefetchTask$jscomp$1.taskModel.id;if(O.allPrefetchTasks.has(m.taskId$jscomp$3)){var G=-1;O.coordinatorTimeoutMs>0&&(G=_.uT(O.scheduler,function(B){return function(){ov(O,B.taskId$jscomp$3,Error("jj"))}}(m),O.coordinatorTimeoutMs));
O.inflightPrefetchTasks.set(m.taskId$jscomp$3,G);if(!O.JSC$18265_commandHandler){if(!_.XJ.instance){ov(O,m.taskId$jscomp$3,Error("kj"));continue}O.JSC$18265_commandHandler=_.XJ.instance}a:switch(m.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":G=1;break a;default:G=0}m.prefetchTask$jscomp$1.jobId=O.scheduler.addJob(function(B){return function(){B.prefetchTask$jscomp$1.tick("pcr");try{O.JSC$18265_commandHandler.resolveCommand(B.prefetchTask$jscomp$1.taskModel.command)||
ov(O,B.taskId$jscomp$3,Error("lj"))}catch(Q){ov(O,B.taskId$jscomp$3,Q)}}}(m),G,0)}}},pb0=function(O,m){(m=ghb(O,m))!=null&&(m.resolver.resolve(),m.tick("pce"));
Lw(O,3)},ov=function(O,m,G){(m=ghb(O,m,G))!=null&&(m.resolver.reject(G),m.tick("pcc"),h0b(m,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Rd("prefetch_coordinator_error_logging_sampling_rate")&&(G=new _.j9("Prefetch Command failed.",m.taskModel.id,G.message),_.oy(G)));
Lw(O,3)},ghb=function(O,m,G){var B=O.allPrefetchTasks.get(m);
B?((G=O.inflightPrefetchTasks.get(m))&&G!==-1&&O.scheduler.cancelJob(G),O.inflightPrefetchTasks.delete(m),O.allPrefetchTasks.delete(m)):_.ay(new _.j9("Unexpected missing prefetch task when deleting task.",m,G==null?void 0:G.message));return B};var S9u=function(O,m,G,B,Q){this.id=O;this.triggerOn=m;this.cancelOn=G;this.command=B;this.proto=Q};
_.vr.Object.defineProperties(S9u.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var Eh0=function(){this.JSC$18270_prefetchCoordinator=urr();fxr||(fxr=new E$);this.defaultCoordinator=fxr},LAb;
Eh0.getInstance=function(){LAb||(LAb=new Eh0);return LAb};
Eh0.prototype.get=function(O){switch(O){case 0:return this.JSC$18270_prefetchCoordinator;default:return this.defaultCoordinator}};var l0=function(){this.coordinatorSupplier=Eh0.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},lxr=function(O){var m=_.yA()||void 0,G=Object.keys(Cyb)[0];
if(G){var B=O.taskIdByTriggerId.get(G);if(B!=null){O.taskIdByTriggerId.delete(G);G=[];B=_.K(B);for(var Q=B.next();!Q.done;Q=B.next())if(Q=O.tasks.get(Q.value))m!=="UNDEFINED_CSN"&&(Q.csn=m),G.push(Q);G=WvN(G);m=[];G=_.K(G);for(B=G.next();!B.done;B=G.next()){Q=_.K(B.value);B=Q.next().value;Q=Q.next().value;B=O.coordinatorSupplier.get(B).queueAll(Q);B=_.K(B);var H=B.next();for(Q={};!H.done;Q={taskId$jscomp$9:void 0},H=B.next()){var M=_.K(H.value);H=M.next().value;M=M.next().value;Q.taskId$jscomp$9=
H;H=M;m.push(Q.taskId$jscomp$9);O.queuedPromisesByTask.set(Q.taskId$jscomp$9,_.a7(H,function(R){return function(){ohu(O,R.taskId$jscomp$9)}}(Q)))}}}}else _.ay(new _.j9("Unexpected malformed TriggerEvent."))};
l0.prototype.trigger=function(O,m){var G=this,B=this.tasks.get(O);if(!B||this.queuedPromisesByTask.has(O))return!1;axr(this,O,B.triggerOn);m!=="UNDEFINED_CSN"&&(B.csn=m);m=this.coordinatorSupplier.get(B.taskType).queue(B);this.queuedPromisesByTask.set(O,_.a7(m,function(){ohu(G,O)}));
return!0};
l0.prototype.cancel=function(O){var m=this.queuedPromisesByTask.get(O);if(m)m.cancel();else return ohu(this,O)};
var ohu=function(O,m){O.queuedPromisesByTask.delete(m);var G=O.tasks.get(m);if(!G)return!1;O.tasks.delete(m);axr(O,m,G.triggerOn);(G=tRY(G.cancelOn))&&(O=O.taskIdByCancelId.get(G))&&O.delete(m);return!0},axr=function(O,m,G){(G=Object.keys(G)[0])&&(O=O.taskIdByTriggerId.get(G))&&O.delete(m)};var Cyb={taskRegistered:{}},av=function(){l0.instance||(l0.instance=new l0);this.JSC$18279_taskManager=l0.instance};
_.X(av,x5);
av.prototype.resolveCommand=function(O){var m=this,G,B;return _.r(function(Q){G=_.b(O,Vte);if((B=G)==null||!B.tasks){var H=new _.j9("RegisterTasksCommand is missing tasks.");_.oy(H);return Q.return()}H=m.JSC$18279_taskManager;for(var M=_.K(G.tasks),R=M.next();!R.done;R=M.next())if(R=R.value,R=R.id&&R.triggerOn&&R.cancelOn&&R.command?new S9u(R.id,R.triggerOn,R.cancelOn,R.command,R):void 0,R){var x=Object.keys(R.triggerOn)[0];if(x){var t=tRY(R.cancelOn);t?(H.tasks.set(R.id,R),H.taskIdByTriggerId.has(x)||H.taskIdByTriggerId.set(x,
new Set),H.taskIdByTriggerId.get(x).add(R.id),H.taskIdByCancelId.has(t)||H.taskIdByCancelId.set(t,new Set),H.taskIdByCancelId.get(t).add(R.id)):_.ay(new _.j9("Unexpected malformed cancelOn field."))}else _.ay(new _.j9("Unexpected malformed triggerOn field."))}else _.ay(new _.j9("Unexpected malformed Task proto."));lxr(m.JSC$18279_taskManager);_.ju(Q)})};var kuy={},ysy=(kuy.rendered={priority:_.V("web_adaptive_early_init")?8:0,callback:function(){var O={};O.numCpu=navigator.hardwareConcurrency;var m={};m.ramGb=_.Qf.navigator.deviceMemory;var G={staticContext:{}};m.ramGb&&dyp(m.ramGb)&&(G.staticContext.memoryTotalKbytes=(m.ramGb*1048576).toString());O.numCpu&&dyp(O.numCpu)&&(G.staticContext.cpuCores=O.numCpu);if(_.V("web_enable_adaptive_appl_signal")){O={};m=PUz();m=m.length>0?m[0]:void 0;var B,Q=(B=_.wr("rses_dpj"))!=null?B:m==null?void 0:m.tick.rses_dpj,
H;B=(H=_.wr("rsef_dpj"))!=null?H:m==null?void 0:m.tick.rsef_dpj;Q&&Number(Q)>0&&B&&Number(B)>0&&(H=Math.ceil(Number(B)-Number(Q)),H>0&&(O.loadLatency=H));O.loadLatency&&dyp(O.loadLatency)&&(G.appL=O.loadLatency.toString())}_.LE("applicationStarted",G);wNO=G;_.V("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",erp)}},kuy);var cso=new _.Us("WINDOW_ON_ERROR"),Y9A=new _.Us("ERROR_WEIGHT_MAPS"),dJK=new _.Us("INIT_ERROR");var wbA={},e03=(wbA.initialized={priority:10,callback:function(O){O.injector.resolve(dJK)()}},wbA);var DJ9=function(){},s3B=function(){var O=_.ex("meta_logger_impl");
O||(O=new DJ9,_.HI("meta_logger_impl",O));return O},No3=function(){s3B().csiSubscriptionKey=XC5("meta_logging_csi_event",function(O){var m=O.timerName;
if(O=O.timelineData){_.ys(m,{startTime:O.startTime},m);O.infos&&_.as(O.infos,m);for(var G=_.K(Object.keys(O.ticks)),B=G.next();!B.done;B=G.next())B=B.value,_.cd(B,O.ticks[B],m)}})};
DJ9.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&TX6(this.csiSubscriptionKey)};var Py3={},FA9=(Py3.initialized={priority:10,callback:function(){No3()}},Py3);var AsK=function(O,m){this.innertubeClientName=O;this.JSC$18290_prefCookie=m};
AsK.prototype.record=function(){if(_.V("web_li_record_binary_eval_tick")){var O=_.wr("rsef_dpj");var m=_.wr("rses_dpj");O=O!==void 0&&m!==void 0?Math.round(O-m):void 0;if(O!==void 0&&O>0){m=_.YH(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var G=this.poolSize;if(!(m.valuesSeen>=1E9)){if(m.valuesSample.length<G)m.valuesSample.push(O);else{var B=Math.floor(Math.random()*(m.valuesSeen+1));B<G&&(m.valuesSample[B]=O)}m.valuesSeen+=1}_.cX(this.storagePrefix+"-"+this.innertubeClientName,
m,2592E3);O=m.valuesSample;m=Z0S(O);O=O.length<this.poolSize?void 0:m<400?1:m<1700?2:3;O!==void 0&&(this.JSC$18290_prefCookie.set(this.cookiePrefix+this.innertubeClientName,O),this.JSC$18290_prefCookie.save())}}else _.dH(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18290_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18290_prefCookie.save()};
AsK[$R]=[QG,aT];var O9r=function(){AsK.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.X(O9r,AsK);var mPh=new _.Us("PAGE_LOAD_TIME_TOKEN");var Gc3=function(O){this.signal=O;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;O.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.uT(_.ln,this.disableLoggingAndSendPayload,1E4)};
Gc3.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.ln.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),B5A(this))};
var B5A=function(O){var m=_.kf();if(m){var G={webClientComponentsData:{components:Array.from(O.ids,function(B){return{id:B}})}};
O.ids.clear();_.uK().visualElementStateChanged(m,G)}};var Qnr=_.kg({a11y:_.QIU});_.H93=_.yX(Qnr)(Qnr.a11y,{ephemeralActionSelector:function(O){return O.ephemeralAction||null}});var v0x=_.kg({continuation:_.KLs});var Kah=_.yX(v0x)(v0x.continuation,{continuationCommandSelector:function(O){return O.continuationCommand}});var $Po=new _.Us("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var k1=function(O,m){this.JSC$18319_storeWithEntities=O;this.JSC$18319_commandHandler=m;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
k1.prototype.start=function(){this.JSC$18319_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
k1.prototype.observeDownloadingEntities=function(){var O=_.iKr(this.JSC$18319_storeWithEntities.getState().entities).map(function(B){return xOz(B)});
if(O.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var m={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:ZVz()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.rv(_.Xm("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18319_commandHandler.resolveCommand(m)}this.downloadingEntities=O}else if(this.downloadingEntities.length){var G=RA5(this.JSC$18319_storeWithEntities.getState().entities).map(function(B){return xOz(B)});
this.downloadingEntities.filter(function(B){return G.includes(B)}).length&&(O={openPopupAction:GNI()},this.JSC$18319_commandHandler.resolveCommand(O));
this.downloadingEntities=[]}};
k1[$R]=[$p,_.Mu];var MA0;_.cN=function(O,m,G,B,Q,H,M,R){this.JSC$18322_playerApiPromise=O;this.JSC$18322_commandHandler=m;this.JSC$18322_screenManager=G;this.offlineWebClientEligibility=B;this.JSC$18322_prefStorage=Q;this.JSC$18322_actionRouter=H;this.entityTypeMap=M;this.JSC$18322_persistentStorePromiseAccessor=R;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
MA0=function(){var O=_.KR().resolve(_.cN),m;_.r(function(G){if(G.nextAddress==1)return O.downloadFailureListenerBound?G.return():G.yield(O.JSC$18322_playerApiPromise,2);m=G.yieldResult;m.addEventListener("onOfflineOperationFailure",function(B){if(B.failureReason&&B.entityKey&&B.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(B.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var Q=_.Ur(B.entityKey).entityId;Q&&O.JSC$18322_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
Q)}else if(_.V("kevlar_woffle")){Q=O.JSC$18322_commandHandler;var H=Q.resolveCommand;B=B.failureReason;var M=_.Xm("TRANSFER_FAILED",void 0,"Download failed");B==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(M=_.Xm("STORAGE_FULL",void 0,"Storage full"));H.call(Q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.rv(M),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
O.downloadFailureListenerBound=!0;_.ju(G)})};
_.cN.prototype.deleteVideo=function(O,m){var G=this,B,Q,H;return _.r(function(M){if(M.nextAddress==1)return M.yield(G.JSC$18322_playerApiPromise,2);B=M.yieldResult;H={offlineLoggingData:{offlineDeleteReason:(Q=m)!=null?Q:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return M.yield(B.queueOfflineAction(O,G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",H),0)})};
_.cN.prototype.pauseVideoDownload=function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(m.JSC$18322_playerApiPromise,2);G=B.yieldResult;G.pauseVideoDownload(O);_.ju(B)})};
_.cN.prototype.resumeVideoDownload=function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(m.JSC$18322_playerApiPromise,2);G=B.yieldResult;return B.yield(G.resumeVideoDownload(O),0)})};
_.cN[$R]=[_.q1,_.Mu,_.GR,$Po,Yx,bR,mR8,kA];var rL9=new _.Us("DOWNLOAD_STATE_STORE_TOKEN");var RoA=function(O,m){this.JSC$18342_persistentStorePromiseAccessor=O;this.store=m;this.upliftCompletionResolver=new _.Vg},qhA=function(){var O=_.KR().resolve(i9y),m;
_.r(function(G){switch(G.nextAddress){case 1:if(O.upliftImplPromise)return G.return(O.upliftImplPromise);_.n_(G,2);O.upliftImplPromise=xPh(O);return G.yield(O.upliftImplPromise,4);case 4:O.upliftCompletionResolver.resolve();_.P7(G,3);break;case 2:throw m=_.uS(G),O.upliftCompletionResolver.reject(m),m;case 3:return G.return(O.upliftImplPromise)}})},xPh=function(O){var m,G,B;
return _.r(function(Q){switch(Q.nextAddress){case 1:return _.yE("LOGGED_IN")?Q.yield(O.JSC$18342_persistentStorePromiseAccessor(),2):Q.return();case 2:m=Q.yieldResult;if(!m)return _.cd("vdeur"),Q.return();_.cd("vdeus");_.n_(Q,3);return Q.yield(UPb(m),5);case 5:G=Q.yieldResult;O.store.dispatch(PqI(G));m.observe(function(H){FtI(O.store,H)});
_.P7(Q,4);break;case 3:throw B=_.uS(Q),_.cd("vdeur"),B;case 4:_.cd("vdeuc"),_.ju(Q)}})},UPb=function(O){var m;
return _.r(function(G){if(G.nextAddress==1)return G.yield(XJz(O),2);m=G.yieldResult;return G.return(m.reduce(function(B,Q){if(!Q.data||!Q.key||!Q.entityType)return B;B[Q.entityType]||(B[Q.entityType]={});B[Q.entityType][Q.key]=Q.data;return B},{}))})};
RoA[$R]=[kA,_.ry];var i9y;i9y=new _.Us("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Y1=new _.Us("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var dd=function(O,m){this.JSC$18345_persistentStorePromiseAccessor=O;this.transportService=m};
dd.prototype.refresh=function(){var O=this,m,G,B,Q;return _.r(function(H){if(H.nextAddress==1)return _.yE("LOGGED_IN")?H.yield(O.JSC$18345_persistentStorePromiseAccessor(),2):H.return();if(H.nextAddress!=3)return(m=H.yieldResult)?H.yield($V6(m),3):H.return();if((G=H.yieldResult)&&!(Number(G.data.refreshTimestampMs||0)<(0,_.$G)()))return H.return();B={browseId:"SPaccount_downloads"};Q=_.$H(Fv);_.rS(O.transportService,B,Q).then(function(M){var R;if(m&&(M==null?void 0:(R=M.responseContext)==null?void 0:
R.maxAgeSeconds)!==0){var x;R=(M==null?void 0:(x=M.responseContext)==null?void 0:x.maxAgeSeconds)||604800;x=String(Math.floor((0,_.$G)())+R*1E3);m.put("service:downloads_settings:fallback",new _.or({innertubeResponse:M,refreshTimestampMs:x}))}});
_.ju(H)})};
dd[$R]=[_.Sy,_.Dk];var wd=function(O,m){this.JSC$18349_playerPromise=O;this.store=m;this.started=!1};
wd.prototype.start=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return O.started?G.return():G.yield(O.JSC$18349_playerPromise,2);m=G.yieldResult;m.addEventListener("onOrchestrationBecameLeader",O.updateIsLeader.bind(O,!0));m.addEventListener("onOrchestrationLostLeader",O.updateIsLeader.bind(O,!1));if(m.isOrchestrationLeader)O.updateIsLeader(m.isOrchestrationLeader());else{var B=new _.j9("Function isOrchestrationLeader is undefined",{"player.isReady":m.isReady(),"player.playVideo":m.playVideo?
"defined":"undefined"});_.oy(B);O.updateIsLeader(!1)}O.started=!0;_.ju(G)})};
wd.prototype.updateIsLeader=function(O){this.store.dispatch(_.xs({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:O}}))};
wd[$R]=[_.q1,_.ry];var tA3=function(O,m){this.networkStatusManager=O;this.JSC$18352_prefStoragePromise=m;this.redirectsToPreload=["https://youtube.com"]},Wa9=function(){var O=_.KR().resolve(tA3),m,G,B,Q,H,M;
_.r(function(R){switch(R.nextAddress){case 1:return R.yield(O.JSC$18352_prefStoragePromise,2);case 2:m=R.yieldResult;if(!(G=m)){R.jumpTo(3);break}return R.yield(m.get("yt-redirect-prefetch-id"),4);case 4:G=R.yieldResult;case 3:if(G||!O.networkStatusManager.isNetworkAvailable())return R.return();B={cache:"reload",redirect:"manual"};Q=_.K(O.redirectsToPreload);H=Q.next();case 5:if(H.done){if(!m){R.jumpTo(0);break}return R.yield(m.set("yt-redirect-prefetch-id",!0,86400),0)}M=H.value;_.n_(R,8);return R.yield(_.Qf.fetch(M,
B),10);case 10:_.P7(R,6);break;case 8:_.uS(R);case 6:H=Q.next(),R.jumpTo(5)}})};var ey=function(O){O?(this.container=O,this.containerWasInjected=!0):this.containerWasInjected=!1};
ey.prototype.openDialog=function(O,m,G){var B=this,Q;return _.r(function(H){(Q=B.container)==null||Q.openDialog(O,m,G);_.ju(H)})};
ey.prototype.closeDialog=function(){var O=this,m;return _.r(function(G){(m=O.container)==null||m.closeDialog();_.ju(G)})};
ey.prototype.isDialogOpen=function(){var O=this,m,G;return _.r(function(B){return B.return((G=(m=O.container)==null?void 0:m.isDialogOpen())!=null?G:!1)})};
ey[$R]=[_.v7(C7_)];_.Z9A=new _.Us("POPUP_CONTROLLER_TOKEN");var zoK=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
zoK.prototype.registerPanel=function(O,m){if(O){this.panelMap.set(O,m);var G=this.pendingPanelResolvers.get(O);G&&(G.resolve(m),this.pendingPanelResolvers.delete(O))}};
zoK.prototype.getPanel=function(O){var m=this,G;return _.r(function(B){return(G=m.panelMap.get(O))?B.return(G):B.return(JL9(m,O))})};
var JL9=function(O,m){var G,B;return _.r(function(Q){if(G=O.pendingPanelResolvers.get(m))return Q.return(G.promise);B=new _.Vg;O.pendingPanelResolvers.set(m,B);return Q.return(B.promise)})},VAA=function(O,m){zoK.call(this);
var G=this;this.popupController=O;this.persistentPanelController=m;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return G.panelMap.size}}};
_.X(VAA,zoK);_.v=VAA.prototype;_.v.getReloadContinuation=function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(m.getPanel(O),2);G=B.yieldResult;return B.return(G.getReloadContinuation())})};
_.v.showPanel=function(O,m,G,B,Q,H,M){var R=this,x,t,W,Z;return _.r(function(z){if(z.nextAddress==1){M&&R.updatePanelContinuationDatas.set(O,M);if((x=G)==null?0:(t=x.engagementPanelPopupPresentationConfig)==null?0:t.popupType)if(W=G.engagementPanelPopupPresentationConfig.popupType,Q===void 0&&(Q=document.body),W==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!R.persistentPanelController)return _.ay(new _.j9("Persistent panel controller is not available.")),z.return();var J=R.persistentPanelController;
J.persistentPanelIdentifiers.has(O)||(J.persistentPanelWrapper.appendChild(J.engagementPanelElement({panelIdentifier:O},{isPersistentPanel:!0})),J.persistentPanelIdentifiers.add(O));a:switch(_.sv.currentPageSubTypeSelector(J.store.getState())){case "watch":var n="WATCH";break a;default:n="APP"}_.b9h(J,n);J.store.dispatch(HM$(!0))}else{if(W==="PANEL_POPUP_TYPE_DIALOG"||W==="PANEL_POPUP_TYPE_DROPDOWN"){J=z.return;n=R.popupController;var I=n.openPopup;a:switch(W){case "PANEL_POPUP_TYPE_DIALOG":var S=
"DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":S="DROPDOWN";break a;default:throw Error("nj`"+W);}return J.call(z,I.call(n,O,m,S,Q))}_.ay(new _.j9("Popup type "+W+" not supported in PanelController."))}return z.yield(R.getPanel(O),2)}Z=z.yieldResult;(m||H)&&Z.updatePanel(m,!1,B,H);Z.showPanel(B);_.ju(z)})};
_.v.hidePanel=function(O){var m=this,G,B;return _.r(function(Q){if(Q.nextAddress==1)return Q.yield(m.getPanel(O),2);G=Q.yieldResult;G.hidePanel();m.popupController.closePopup(O);(B=m.persistentPanelController)!=null&&B.persistentPanelIdentifiers.has(O)&&B.store.dispatch(HM$(!1));_.ju(Q)})};
_.v.isVisible=function(O,m){var G=this,B;return _.r(function(Q){if(Q.nextAddress==1)return m&&!G.panelMap.has(O)?Q.return(!1):Q.yield(G.getPanel(O),2);B=Q.yieldResult;return Q.return(B.isVisible())})};
_.v.updatePanel=function(O,m,G,B,Q,H){G=G===void 0?!1:G;var M=this,R;return _.r(function(x){if(x.nextAddress==1){if(!m&&!Q)return x.return();H&&M.updatePanelContinuationDatas.set(O,H);return x.yield(M.getPanel(O),2)}R=x.yieldResult;R.updatePanel(m,G,B,Q);_.ju(x)})};
_.v.registerPanelContent=function(O,m){O&&this.panelContentMap.set(O,m)};
_.v.unregisterPanelContent=function(O){this.panelContentMap.delete(O)};
_.v.getPanelContent=function(O){return this.panelContentMap.get(O)};
_.v.getUpdatePanelContinuationData=function(O){return this.updatePanelContinuationDatas.get(O)};
VAA[$R]=[_.Z9A,_.v7(_.GF)];var DW=function(O,m){this.innertubeTransportService=O;this.JSC$18369_screenManager=m},n0y=function(O){var m;
return!((m=O.panelLoadingStrategy)==null||!m.requestTemplate)};
DW.prototype.makeRequest=function(O){var m=this,G,B;return _.r(function(Q){switch(Q.nextAddress){case 1:if(!n0y(m)){Q.jumpTo(2);break}_.n_(Q,3);return Q.yield(_.Ov(m.innertubeTransportService,O),5);case 5:return G=Q.yieldResult,G?Q.return(G.content):(_.oy(Error("oj")),Q.return(void 0));case 3:B=_.uS(Q),_.oy(B);case 2:return Q.return(void 0)}})};
DW.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
DW.prototype.execute=function(O){var m=this,G,B,Q,H,M,R,x,t,W,Z;return _.r(function(z){if(z.nextAddress==1){G=O;B=G.data;Q=G.fallbackVe;H=G.parentVe;M=G.createScreenConfig;R=G.renderFn;x=G.command;m.panelLoadingStrategy=B;var J,n,I=((J=m.panelLoadingStrategy)==null?0:J.screenVe)?(n=m.panelLoadingStrategy)==null?void 0:n.screenVe:Q;I&&_.E1(m.JSC$18369_screenManager,I,H,M);return(t=m.getContent())?z.yield(R(t),2):z.jumpTo(2)}return z.nextAddress!=4?n0y(m)?z.yield(m.makeRequest(x),4):z.return():(Z=W=
z.yieldResult)?z.yield(R(Z),0):z.return()})};
DW[$R]=[_.Dk,_.GR];var X8h;X8h=function(O,m){this.engagementPanelElement=O;this.store=m;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.b9h=function(O,m){var G=O.persistentPanelContainerMap.get(m);G?(O=O.persistentPanelWrapper,_.iE=!0,_.xg.set(O,!0),G.insertBefore(O,null),_.xg.delete(O),_.iE=!1):_.ay(new _.j9("Persistent panel container not found for surface "+m+"."))};
X8h[$R]=[ods,_.ry];var s$=function(){};
s$.prototype.getContainer=function(){return _.$c()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
s$.prototype.openSheet=function(O,m){var G=this,B,Q,H,M,R,x;return _.r(function(t){switch(t.nextAddress){case 1:return B={stack:[],error:void 0,hasError:!1},_.n_(t,2,3),Q=Qj,t.yield(G.isSheetOpen(),5);case 5:H=t.yieldResult;$t6(B,XIM(Q));if(H){if(_.V("web_close_sheet_if_same_target_killswitch")&&m&&G.currentTarget===m)return(M=G.getContainer())==null||M.closeSheet(),t.return();G.pendingData={data:O,target:g9s(G,m)};return t.return()}O.viewModel&&(O={viewModel:O.viewModel});(R=G.getContainer())==null||
R.openSheet(O,m);G.currentTarget=m;case 3:_.f_(t);MWS(B);_.T9(t,0);break;case 2:x=_.uS(t),B.error=x,B.hasError=!0,t.jumpTo(3)}})};
s$.prototype.closeSheet=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return G.yield((m=O.getContainer())==null?void 0:m.closeSheet(),2);if(G.nextAddress!=4)return O.currentTarget=void 0,O.pendingData?G.yield(O.openSheet(O.pendingData.data,O.pendingData.target),4):G.jumpTo(0);O.pendingData=void 0;_.ju(G)})};
s$.prototype.isSheetOpen=function(){var O=this,m,G;return _.r(function(B){return B.return((G=(m=O.getContainer())==null?void 0:m.isSheetOpen())!=null?G:!1)})};
var g9s=function(O,m){if(!_.V("web_parent_target_for_sheets"))return m;var G,B;return(B=(G=O.getContainer())==null?void 0:G.getParentTarget(m))!=null?B:m};var MX=window.documentPictureInPicture;var CNs=_.FY(["dark"]),oWO=_.FY(["system-icons"]),l0I=_.FY(["typography"]),a0S=_.FY(["lang"]),kNf=_.FY(["style"]),pJY=_.FY(["dir"]),SdN=_.FY(["rounded-container"]),EWM=_.FY(["style"]),cyM=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Ny=function(O){this.JSC$18386_clientRoot=O;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Ny.prototype.openWindow=function(O){var m=this,G,B;return _.r(function(Q){switch(Q.nextAddress){case 1:if(!window.documentPictureInPicture||!_.us()||m.currentPipWindow)return Q.return(!1);_.n_(Q,2);return Q.yield((B=MX?MX:null)==null?void 0:B.requestWindow(O),4);case 4:G=Q.yieldResult;_.P7(Q,3);break;case 2:return _.uS(Q),Q.return(!1);case 3:if(!G)return Q.return(!1);G.addEventListener("pagehide",function(){fq9(m)});
G.addEventListener("resize",m.handlePipWindowResize);m.pipWindowResizeDelay=new _.M5(function(){m.currentPipWindow&&_.xc(m.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.hY(m.currentPipWindow.innerWidth,m.currentPipWindow.innerHeight)])},G);
yys(G);dV5(G);mip(G);return Q.yield(I0r(G),5);case 5:if(!gWN())return Q.return(!1);m.currentPipWindow=G;m.JSC$18386_eventForwarder=YdS(G,m.JSC$18386_clientRoot);m.pipWindowResizeDelay.start();return Q.return(!0)}})};
Ny.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var fq9=function(O){if(O.currentPipWindow){var m,G;(m=MX?MX:null)==null||(G=m.window)==null||G.close();O.currentPipWindow.removeEventListener("resize",O.handlePipWindowResize);var B;(B=O.pipWindowResizeDelay)==null||B.dispose();O.pipWindowResizeDelay=void 0;var Q;(Q=O.JSC$18386_eventForwarder)==null||Q.stop();O.JSC$18386_eventForwarder=void 0;m=_.K(O.onCloseCallbacks);for(G=m.next();!G.done;G=m.next())G=G.value,G();O.onCloseCallbacks=[];O.currentPipWindow=null}};
Ny.prototype.getWindow=function(){return this.currentPipWindow};
var hou=function(O,m){var G;(G=O.onCloseCallbacks)==null||G.push(m)};
Ny.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.us()};
_.vr.Object.defineProperties(Ny.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Ny[$R]=[Oh8];var T5r=new _.Us("PICTURE_IN_PICTURE_CONTROLLER");var wJs=function(O,m){this.lengthY=this.lengthX=0;this.lengthX=m.x-O.x;this.lengthY=m.y-O.y};var g0r=function(){},o9r=function(O,m){var G;
(G=O.headerElement)==null||G.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:m}))};var uc3=function(){};
uc3.prototype.openPopup=function(O,m,G,B){var Q=this,H;return _.r(function(M){if(!Q.container)return M.return();H={openPopupAction:{popup:m,popupType:G,uniqueId:O}};return M.return(Q.container.handleOpenPopupAction(H,B))})};
uc3.prototype.closePopup=function(O){this.container&&this.container.closePopup(O)};var jno=function(){this.openTunnels=new Map},P0N=function(O,m,G){if(Fvs(G)){var B=_.s0(G,"gclid");
G={handleEvent:function(R){m&&!m.closed&&typeof m.postMessage==="function"&&R&&R.origin&&R.source===m&&R.data&&R.data.action==="gcl_setup"&&m.postMessage(Object.assign({},{action:"gcl_transfer"},B&&{gclid:B},{gadSource:2}),R.origin)}};
for(var Q=_.K(O.openTunnels),H=Q.next();!H.done;H=Q.next()){var M=_.K(H.value);H=M.next().value;M=M.next().value;if(H.closed)try{window.removeEventListener("message",M),O.openTunnels.delete(H)}catch(R){_.oy(R)}}m&&O.openTunnels.size<15&&(O.openTunnels.set(m,G),window.addEventListener("message",G))}};var Iqr=function(){this.clientParams=new Map},jYH=function(O){for(var m=_.K(O.clientParams.keys()),G=m.next();!G.done;G=m.next())G=G.value,G.startsWith("yt-mini-app-share")&&O.clientParams.delete(G)};var p89=function(O,m){_.Iw.call(this);var G=this;this.shortsController=O;this.storeWithShorts=m;O=_.dc(this.storeWithShorts,_.WQp,function(B){if(B){var Q,H=(Q=G.shortsController.getRoot())==null?void 0:Q.getPlayer(),M;(Q=(M=G.shortsController.alternativePlayerContainerElement)==null?void 0:M.getPlayerContainer())&&(H==null||H.appendTo(Q))}else{var R;M=(R=G.shortsController.alternativePlayerContainerElement)==null?void 0:R.getPlayerContainer().querySelector("#player");Q=G.shortsController.activeIndex;
(R=(H=G.shortsController.getRoot())==null?void 0:H.querySelector('ytd-reel-video-renderer[id="'+Q+'"] #player-container'))&&(M==null||M.appendTo(R,void 0,!0))}});
this.addOnDisposeCallback(O)};
_.X(p89,_.Iw);var PN=function(O,m,G,B){var Q=this;this.storeWithShorts=O;this.ephemeralResponseStore=m;this.innertubeTransportService=G;this.innertubeTransportLoader=B;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.wg(_.R$);this.isShortsPipActive=_.wg(_.im);this.nextReelVe=_.Zv(56921);this.prevReelVe=_.Zv(56922);this.backButtonVe=_.Zv(22156);this.TEST_ONLY={getActiveModules:function(){return Q.activeModules}}},ShK=function(O){O.unsubscribeFromStore=
_.dc(O.storeWithShorts,_.tpY,function(m){O.initOrDisposeActiveModules(m);
!m&&O.storeWithShorts.getState().shorts.isFullscreen&&(_.MC(document.documentElement),O.storeWithShorts.dispatch(_.$Rm(!1)))});
O.initOrDisposeActiveModules(_.tpY(O.storeWithShorts.getState()))},HvH,vQj,E0r;
PN.prototype.initOrDisposeActiveModules=function(O){O?this.activeModules.push(new p89(this,this.storeWithShorts)):(_.$a(this.activeModules),this.activeModules.length=0)};
PN.prototype.registerRootElement=function(O){this.rootElement=O;ShK(this)};
PN.prototype.getRoot=function(){return this.rootElement};
PN.prototype.setActiveIndex=function(O){this.activeIndex=O};
_.AuU=function(O,m){var G,B,Q,H,M,R,x;return _.r(function(t){switch(t.nextAddress){case 1:return G=new BN,(B=G.JSC$13123_getStoreKey(m))&&O.ephemeralResponseStore.has(B)?t.yield(O.ephemeralResponseStore.get(B),7):t.yield(E0r(O,m),4);case 4:Q=t.yieldResult;if(!B){t.jumpTo(3);break}H=tt(Q,3600);return t.yield(O.ephemeralResponseStore.put(B,new _.or(H)),3);case 7:Q=(M=t.yieldResult)==null?void 0:_.v$(M);case 3:return((R=Q)==null?0:R.replacementEndpoint)&&(x=_.b(Q.replacementEndpoint,_.pf))&&Q.sequenceContinuation&&
(x.sequenceParams=Q.sequenceContinuation),t.return(Q)}})};
HvH=function(O,m){m=(new Qt).JSC$13123_getStoreKey(m);return!!m&&O.ephemeralResponseStore.has(m)};
vQj=function(O,m,G){var B,Q,H,M,R;_.r(function(x){if(x.nextAddress==1){B=new Qt;Q=B.JSC$13123_getStoreKey(m);if(!Q)return x.return();if(G.reelWatchSequenceResponse)return H=tt(G.reelWatchSequenceResponse,3600),O.ephemeralResponseStore.put(Q,new _.or(H)),x.jumpTo(0);if(!O.ephemeralResponseStore.has(Q))return x.jumpTo(0);R=G;return x.yield(O.ephemeralResponseStore.get(Q),4)}R.reelWatchSequenceResponse=(M=x.yieldResult)==null?void 0:_.v$(M);_.ju(x)})};
E0r=function(O,m){var G=G===void 0?{}:G;var B,Q,H;return _.r(function(M){switch(M.nextAddress){case 1:if(O.innertubeTransportService){B=O.innertubeTransportService;M.jumpTo(2);break}if(!O.innertubeTransportLoader){_.di(Error("qj"));M.jumpTo(2);break}return M.yield(O.innertubeTransportLoader(),4);case 4:B=M.yieldResult;case 2:return M.yield((Q=B)==null?void 0:_.Ov(Q,m,G),5);case 5:return H=M.yieldResult,M.return(H)}})};
_.vr.Object.defineProperties(PN.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
PN[$R]=[Y89,_.CW,_.v7(_.Dk),_.v7(yo$)];_.Lay=new _.Us("STORAGE_MANAGER_TOKEN");var rdN=["touchmove","scroll"];var CGu=!1;var QGM=!1;var RQr={onSpanEnd:function(O){O.parentId==null&&(CGu||(Gfr(),setInterval(Gfr,6E5),CGu=!0),HgM(O,"web_tracing_action"))}};var o0s=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},lqB;
o0s.prototype.enqueue=function(O,m){m===1?this.currentPersistentToast=O:this.queue.push(O);this.openToast()};
o0s.prototype.openToast=function(){var O;(O=this.currentToast)!=null&&O.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.FT=new _.Us("TOAST_MANAGER_TOKEN");var aqh=new _.Us("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var kcr=new _.Us("VIEW_TRANSITION_COORDINATOR_TOKEN");var yLx=function(O){this.config=O;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;O=_.K(O.transitionConfigs);for(var m=O.next();!m.done;m=O.next())m=_.K(m.value).next().value,this.transitionTasksMap.set(m,[])};
yLx.prototype.registerElement=function(O,m,G){G=G===void 0?!1:G;for(var B=_.K(Object.keys(m)),Q=B.next(),H={};!Q.done;H={viewTransitionName:void 0},Q=B.next()){Q=Q.value;H.viewTransitionName=m[Q];var M=this.elementTasksMap.get(O),R=void 0;if((R=M)==null?0:R.has(Q)){_.lT(new _.j9("Element already registered for transition",O.tagName,Q));break}M=M||new Map;M.set(Q,{beforeTransition:function(x){return function(){O.style.viewTransitionName=x.viewTransitionName}}(H),
afterTransition:function(){O.style.viewTransitionName&&(O.style.viewTransitionName="")},
runOnce:G});this.elementTasksMap.set(O,M)}};
_.dR=function(O,m){var G=O.elementTasksMap.get(m);G&&(G.clear(),G.size===0&&O.elementTasksMap.delete(m))};
yLx[$R]=[aqh];var cLJ;_.YhJ=_.a(function(O){return _.q("basic-content-view-model",{class:_.bE("ytBasicContentViewModelHost",_.MN(O.className))},_.q(_.U,{cond:function(){return O.data().headline},
then:function(m){return _.q("div",{class:"ytBasicContentViewModelHeadline"},_.q(_.Jg,{text:m}))}}),_.q(_.gi,{each:function(){return O.data().paragraphs||[]},
keyBy:"INDEX"},function(m){return _.q("div",{class:"ytBasicContentViewModelParagraph"},_.q(_.U,{cond:function(){var G=m();return!!(G.header||G.customHeader||G.headline)},
then:function(){return _.q(cLJ,{paragraph:m})}}),_.q(_.U,{cond:function(){return m().asset||m().text},
then:function(){return _.q("div",{class:"ytBasicContentViewModelParagraphContent"},_.q(_.U,{cond:function(){return m().asset},
then:function(G){return _.q("div",{class:"ytBasicContentViewModelParagraphAsset"},_.q(_.u5,{data:G},{contentPreviewImageViewModel:_.IU}))}}),_.q(_.U,{cond:function(){return m().text},
then:function(G){return _.q("div",{class:"ytBasicContentViewModelParagraphText"},_.q(_.Jg,{text:G}))}}))}}))}))},"We");
cLJ=_.a(function(O){var m=O.paragraph;return _.q(_.Mr,null,_.q(_.U,{cond:function(){return m().headline},
then:function(G){return _.q(_.Jg,{text:G,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.q(_.u5,{data:function(){return m().header||m().customHeader}},{sectionHeaderViewModel:function(G){return _.q(_.li,{data:G.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Xe");var w83=_.a(function(O){var m=_.Al("yt-expandable-metadata-header-view-model"),G=_.nH(function(B){if(!_.l5(_.o_(B),m.value,["A".toString(),"BUTTON".toString()])){var Q;(Q=O.expandedCallback)==null||Q.call(O,!1)}});
return _.q("yt-expandable-metadata-header-view-model",{el:m,class:"ytExpandableMetadataHeaderViewModelHost"},_.q(_.U,{cond:function(){return O.expanded()},
then:function(){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":G},_.q("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.q(_.U,{cond:function(){return O.data().expandedTitleImage},
then:function(B){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.q(_.KH,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:B}))}}),_.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.q(_.Jg,{text:function(){return O.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.q(_.Jg,{text:function(){return O.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.q(_.Jg,{text:function(){return O.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.q("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.q(_.u5,{data:function(){return O.data().infoButton}},{buttonViewModel:_.oF}),_.q(_.u5,{data:function(){return O.data().collapseButton}},{buttonViewModel:function(B){return _.q(_.oF,{data:B.data,
onClick:function(){var Q;(Q=O.expandedCallback)==null||Q.call(O,!1)}})}})))},
else:function(){return _.q(dPy,Object.assign({},O))}}))},"Ye"),eox=_.a(function(O){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.q(_.U,{cond:function(){return O.data().collapsedLabelImage},
then:function(m){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.q(_.KH,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:m,alt:""}))}}),_.q(_.Jg,{text:function(){return O.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ze"),dPy=_.a(function(O){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.nH(function(){var m;return void((m=O.expandedCallback)==null?void 0:m.call(O,!0))})},_.q("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.q(_.U,{cond:function(){return O.data().collapsedImage},
then:function(m){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.q(_.KH,{height:20,preserveHeight:!0,preserveWidth:!0,data:m,alt:""}))}}),_.q(_.U,{cond:function(){return O.data().showLeadingCollapsedLabel},
then:function(){return _.q(eox,Object.assign({},O))}}),_.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.q(_.Jg,{text:function(){return O.data().collapsedTitle}}))),_.q("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.q(_.U,{cond:function(){return!O.data().showLeadingCollapsedLabel},
then:function(){return _.q(eox,Object.assign({},O))}}),_.q(_.u5,{data:function(){return O.data().infoButton}},{buttonViewModel:_.oF}),_.q(_.u5,{data:function(){return O.data().expandButton}},{buttonViewModel:function(m){return _.q(_.oF,{data:m.data,
onClick:function(){var G;(G=O.expandedCallback)==null||G.call(O,!0)}})}})))},"$e");_.DPx=_.a(function(O){var m=_.K(_.fH(function(){return O.data().initiallyExpanded})),G=m.next().value,B=m.next().value,Q,H=(Q=_.KR().resolve(_.v7(_.B6)))==null?void 0:Q(),M=function(){var R=O.data().colorData;
if(R)return H?R==null?void 0:R.darkColorPalette:R==null?void 0:R.lightColorPalette};
return _.q("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.hH({"background-color":function(){var R=M();return(R==null?0:R.section2Color)?_.AV(R.section2Color):""}})},_.q(_.u5,{data:function(){return O.data().header}},{expandableMetadataHeaderViewModel:function(R){return _.q(w83,{data:R.data,
expanded:function(){return!!G()},
expandedCallback:function(x){B(x)}})}}),_.q(_.U,{cond:function(){return G()},
then:function(){return _.q("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.q(_.u5,{data:function(){return O.data().expandedContent}},{horizontalShelfViewModel:function(R){return _.q(_.Rz,{data:R.data,
includeMargin:!0,forceNarrowLayout:!0,palette:M})},
videoSummaryContentViewModel:function(R){return _.q(E2o,{data:R.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(R){return _.q(_.oU,{data:R.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(R){return _.q(_.YhJ,{data:R.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.q(_.u5,{data:function(){return O.data().expandedBottomButtons}},{buttonViewModel:function(R){return _.q("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.q(_.oF,{data:R.data}))}}))}}))},"af");var sn3=_.a(function(O){var m=O.text;var G=O.marqueeSpacing;var B=O.scrollDelay;var Q=O.scrollDuration;var H=O.enableMarqueeScroll;O=O.large;var M=_.K(_.Wf(!1,void 0,"WyNYFf")),R=M.next().value,x=M.next().value,t=_.K(_.Wf(0,void 0,"OoTdhe"));M=t.next().value;var W=t.next().value,Z=_.Al("marquee-scroll");t=_.Al("div");var z=_.Al("span"),J=_.KR().resolve(_.H6);_.ER(function(){if(H()){var S=z.value.getBoundingClientRect().width,L=Z.value.getBoundingClientRect().width;if(S>L){var C=(J==="ltr"?-1:1)*(S+
(G?G():16));Promise.resolve().then(function(){x(!0);W(C)})}}},"dv0Anf");
var n={},I={};return _.q("marquee-scroll",{class:_.bE("ytMarqueeScrollHost",(n.ytMarqueeScrollHostLarge=O,n)),el:Z},_.q("div",{id:"marquee-scroll-inner-container",class:_.bE("ytMarqueeScrollInnerContainer",(I.ytMarqueeScrollAnimationEnabled=function(){return R()},I)),
el:t,style:_.hH({gap:G?(0,_.vZ)(G):"16px","animation-duration":Q?E8p(Q):"16s","animation-delay":B?E8p(B):"3s","--marquee-translate":(0,_.vZ)(M)})},_.q("span",{el:z,dir:"auto"},_.q(_.Jg,{text:m,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.q(_.U,{cond:R,then:function(){return _.q("span",{"aria-hidden":"true",dir:"auto"},_.q(_.Jg,{text:m,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"bf");_.N53=_.a(function(O){var m=O.data;var G=O.overlayDensity;O=_.nH(function(){m().onTapCommand&&_.PE(m().onTapCommand);return!1});
var B=_.rqM(),Q=function(){return(G==null?void 0:G())===1?22:16},H={};
return _.q("reel-sound-metadata-view-model",{class:_.bE("ytReelSoundMetadataViewModelHost",(H.ytReelSoundMetadataViewModelHostLarge=function(){return(G==null?void 0:G())===1},H)),
"on:click":O,tabindex:0,role:"button","on:keydown":B},_.q("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.q(_.U,{cond:function(){return m().musicIcon},
then:function(M){return _.q(_.KH,{data:M,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:Q})}}),_.q("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.q(sn3,{text:function(){return m().soundMetadata},
enableMarqueeScroll:function(){return!!m().enableMarqueeScroll},
large:function(){return(G==null?void 0:G())===1}}))))},"cf");var PGy,Fa0,AB,G99,Qo0,mGb,KIx,v3s;PGy=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];Fa0=_.Rd("wil_icon_max_concurrent_fetches",Infinity);
AB=function(O,m,G){var B=this;this.iconSet=O;this.appDirection=m;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Qf.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.V("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.V("wil_icon_network_first");this.renderWhenIdle=_.V("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.V("wil_icon_load_immediately");this.isPurging=!1;O=function(){B.cacheStorageAvailable&&(B.cacheStorageAsync=_.Qf.caches.open("yt-icons").then(function(H){return B.cacheStorageSync=H}).catch(function(){B.cacheStorageAvailable=!1}))};
G=(G==null?void 0:G())||{};G=_.K(Object.entries(G));for(m=G.next();!m.done;m=G.next()){var Q=_.K(m.value);m=Q.next().value;Q=Q.next().value;Q=bz(Q);AL3(Q);this.iconCache[m]=Q.cloneNode(!0)}this.isPurging=O_o(this);this.isPurging instanceof Promise?this.isPurging.then(O):O()};
_.Z8p=function(O,m){var G=O.resolveIcon(m);return G?O.renderingMode===1?mGb(O,G,O.renderingMode):(m=O.iconCache[G.url])?(m=m.cloneNode(!0),G99(O,m),mGb(O,G,O.renderingMode,m)):_.BCx(O,G).then(function(B){var Q=B?0:1;G99(O,B);return mGb(O,G,Q,B)}):(_.lT(new _.j9("Icon not found",{iconShape:m})),function(){})};
G99=function(O,m){if(m){O.counter+=1;O="_yt"+O.counter;m=[m].concat(_.lS(m.getElementsByTagName("*")));m=_.K(m);for(var G=m.next();!G.done;G=m.next())if(G=G.value,G.tagName==="style"&&G.textContent)G.textContent=Qo0(G.textContent,O,!0);else for(var B=_.K(G.attributes),Q=B.next();!Q.done;Q=B.next()){Q=Q.value;Q.name==="id"&&(Q.value+=O);["mask","fill","clip-path"].includes(Q.name)&&(Q.value=Qo0(Q.value,O));if(Q.name==="style"){var H=G.style;try{H.cssText=Qo0(H.cssText,O,!0)}catch(W){var M=void 0,R=
void 0,x=void 0,t=void 0;Om({error:((M=W)==null?void 0:(x=(R=M).toString)==null?void 0:x.call(R))||"",el:G.outerHTML,style:!!H,cssText:(t=H)==null?void 0:t.cssText})}}Q.name==="xlink:href"&&(Q.value=Q.value.replace(/#(.*)/,"#$1"+O))}}};
Qo0=function(O,m,G){var B=/url\(["']?#(.*?)["']?\)/;(G===void 0?0:G)&&(B=/url\(["']?#(.*?)["']?\)/g);return O.replace(B,"url(#$1"+m+")")};
mGb=function(O,m,G,B){return function(Q,H){var M=Object.assign({},{iconColor:"currentcolor",iconWidth:m.size+"px",iconHeight:m.size+"px",iconDisplay:"block"},H);H=_.fd("DIV");var R=M.iconColor,x=M.iconFilter;M="width: "+M.iconWidth+"; height: "+M.iconHeight+"; display: "+M.iconDisplay+";";x&&(M+=" filter: "+x+";");G===0&&(M+=" fill: "+R+";");G===1&&(x=m.url,M+=" -webkit-mask: url("+x+") no-repeat center / cover; mask: url("+(x+") no-repeat center / cover; background-color: ")+R);m.allowMirroring&&
O.appDirection==="rtl"&&(M+=" transform: scale(-1, 1); transform-origin: center center;");H.setAttribute("style",M);G===0&&B&&H.appendChild(B);Q.appendChild(H)}};
_.BCx=function(O,m){var G,B,Q;return _.r(function(H){G=function(M){return P8(M)};
B=m.url;if(!H_K(B))throw Error("sj");Q=v3s(O,B);return H.return(Q.then(function(M){return M.clone().text()}).then(function(M){var R=G(M);
M=m.size;var x=_.fd("DIV");_.MG(x,R);R=_.hF(x.firstElementChild!==void 0?x.firstElementChild:_.ZBu(x.firstChild,!0));M=AL3(R,M);O.iconCache[B]=M.cloneNode(!0);delete O.responsePromises[B];return M}).catch(function(){}))})};
KIx=function(O){var m,G=(m=O.requestAninmationFrameResolver)==null?void 0:m.promise;G||(O.requestAninmationFrameResolver=new _.Vg,G=O.requestAninmationFrameResolver.promise,_.Qf.requestAnimationFrame(function(){var B;(B=O.requestAninmationFrameResolver)==null||B.resolve();O.requestAninmationFrameResolver=null}));
return G};
v3s=function(O,m){var G,B;return _.r(function(Q){if(Q.nextAddress==1)return O.waitForAnimationFrame?Q.yield(KIx(O),2):Q.jumpTo(2);G=O.responsePromises[m];G||(B=function(){var H,M,R;return _.r(function(x){switch(x.nextAddress){case 1:if(!O.cacheStorageAvailable){H=void 0;x.jumpTo(2);break}if(M=O.cacheStorageSync){x.jumpTo(3);break}return x.yield(O.cacheStorageAsync,4);case 4:M=x.yieldResult;case 3:H=M;case 2:return R=H,O.isNetworkFirstStrategy?x.return(O.fetchAndUpdateCache(m,R).catch(O.getCacheStorageResponse.bind(O,
m,R))):x.return(O.getCacheStorageResponse(m,R).catch(O.fetchAndUpdateCache.bind(O,m,R)))}})},G=O.renderWhenIdle?new Promise(function(H,M){_.uT(_.ln,function(){B().then(H).catch(M)},10)}):B(),O.responsePromises[m]=G);
return Q.return(G.catch(function(H){delete O.responsePromises[m];Om({error:(H==null?0:H.toString)?H.toString():"",url:m});throw H;}))})};
AB.prototype.fetchAndUpdateCache=function(O,m){var G=this;return _.r(function(B){return B.return($Gx(G,O).then(function(Q){Mu3(G,O,Q,m);return Q}))})};
var $Gx=function(O,m){var G;return _.r(function(B){if(O.numFetches<Fa0)return O.numFetches+=1,B.return(rX3(O,m).finally(function(){--O.numFetches;if(Object.keys(O.queuedResponseResolvers).length){var Q=Object.keys(O.queuedResponseResolvers)[0],H=O.queuedResponseResolvers[Q];delete O.queuedResponseResolvers[Q];H.resolve($Gx(O,Q))}}));
G=new _.Vg;O.queuedResponseResolvers[m]=G;return B.return(G.promise)})},rX3=function(O,m,G){G=G===void 0?2:G;
var B;return _.r(function(Q){B={credentials:"same-origin",priority:"low"};return Q.return(_.Qf.fetch(m,B).then(function(H){return H.ok?H:Promise.reject(Error("tj`"+H.status+"`"+H.statusText))}).catch(function(H){if(G>0)return rX3(O,m,G-1);
throw H;}))})},Mu3=function(O,m,G,B){_.r(function(Q){return B?Q.return(new Promise(function(H){_.uT(_.ln,function(){var M,R;
return _.r(function(x){switch(x.nextAddress){case 1:if(!O.isNetworkFirstStrategy){M=void 0;x.jumpTo(2);break}return x.yield(B.match(m).catch(function(){}),3);
case 3:M=x.yieldResult;case 2:if(R=M){x.jumpTo(4);break}return x.yield(B.put(m,G.clone()).catch(function(t){Om({error:(t==null?0:t.toString)?t.toString():"",url:m})}),4);
case 4:H(),_.ju(x)}})},50)})):Q.return()})};
AB.prototype.getCacheStorageResponse=function(O,m){return _.r(function(G){return m?G.return(m.match(O).then(function(B){return B&&B.ok?B:Promise.reject()})):G.return(Promise.reject())})};
var AL3=function(O,m){m===void 0||O.getAttribute("viewBox")||O.setAttribute("viewBox","0 0 "+m+" "+m);O.setAttribute("focusable","false");O.setAttribute("aria-hidden","true");try{O.style.pointerEvents="none",O.style.display="inherit",O.style.width="100%",O.style.height="100%"}catch(Q){var G;Om({error:((G=Q)==null?0:G.toString)?Q.toString():""});try{O.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(H){var B;Om({error:((B=H)==null?0:B.toString)?H.toString():
""})}}return O},H_K=function(O){for(var m=_.K(PGy),G=m.next();!G.done;G=m.next())if(O.startsWith(G.value)&&O.endsWith(".svg"))return!0;
return!1};
AB.prototype.resolveIcon=function(O){return this.iconSet.resolveIcon(O)};
var Om=function(O){_.ay(new _.j9("Error in IconManager",O))},O_o=function(O){if(_.V("wil_icons_cache_purge_killswitch"))return!1;
try{var m=_.Qf.localStorage}catch(H){return!1}if(!m||!O.cacheStorageAvailable)return!1;var G=function(H){try{var M;(M=m)==null||M.setItem("yt-icons-last-purged",H.toString())}catch(x){var R;Om({error:((R=x)==null?0:R.toString)?x.toString():""})}},B=Number(m.getItem("yt-icons-last-purged"));
if(!B)return B=new Date,B=B.setDate(B.getDate()-Math.floor(Math.random()*90+1)),G(B),!1;if(function(H,M){H=new Date(H);M=new Date(M);return M.getMonth()-H.getMonth()+12*(M.getFullYear()-H.getFullYear())}(B,Date.now())<3)return!1;
try{return _.Qf.caches.delete("yt-icons").then(function(H){H&&G(Date.now());return H}).catch(function(){return!1}).finally(function(){O.isPurging=!1})}catch(H){var Q;
Om({error:((Q=H)==null?0:Q.toString)?H.toString():""});return!1}};
AB[$R]=[Qjb,_.H6,_.v7(KU3)];_.mS=function(O,m){this.iconManager=O;this.iconsToFetch=m};
_.mS[$R]=[_.nm,_.v7(v9h)];var Rqh=function(){};var i_u=function(O,m,G){this.requestKey=O;this.zsz=m;this.fCA=G;this.tBy=function(){return new XMLHttpRequest};
this.hFg=void 0;this.kqG=[]};
i_u.prototype.getLatestChallengeResponse=function(){return this.fCA};
var Ve3=function(O,m,G){var B,Q,H,M;return _.r(function(R){if(R.nextAddress==1){_.ys("attestation_challenge_fetch");_.cd("att_fs",void 0,"attestation_challenge_fetch");if(!O.hFg)throw new _.yy(9,"Missing fetcher");return R.yield(O.hFg(m,G),2)}B=R.yieldResult;H=(Q=B)==null?void 0:Q.bgChallenge;if(!H)throw new _.yy(15,"Missing field");O.fCA=B;O.kqG.forEach(function(x){x(B)});
M=Qgp(H);_.cd("att_fc",void 0,"attestation_challenge_fetch");kc("attestation_challenge_fetch");return R.return(M)})},Y0o=function(O,m){var G,B,Q,H,M;
return _.r(function(R){switch(R.nextAddress){case 1:G=new Wh(100,3E5,.25,2),B=void 0;case 2:if(!(G.currBackoffCount_<10)){R.jumpTo(4);break}_.n_(R,5);if(!(G.currBackoffCount_>0)){R.jumpTo(7);break}return R.yield(xUf(G.getValue()),7);case 7:return R.yield(xGr(O,m),9);case 9:return Q=R.yieldResult,R.return(Q);case 5:H=_.uS(R);H instanceof _.yy?B=H:(M=H instanceof Error?H.message:"Unknown",B=new _.yy(9,M));I99(G);R.jumpTo(2);break;case 4:if(B)throw B;throw new _.yy(9,"Unknown error");}})},xGr=function(O,
m){m=rF$(REm(new Meo,m),O.requestKey);
var G=new _.Vg,B=O.tBy();B.open("POST",O.zsz);B.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");B.setRequestHeader("Content-Type","application/json+protobuf");B.onload=function(){if(_.dCe(B)){var Q=zl8(B.responseText);G.resolve(Q)}else G.reject(new _.yy(_.Ni5(_.tE(B)),B.statusText))};
B.onerror=function(){G.reject(new _.yy(_.Ni5(_.tE(B)),B.statusText))};
B.send(m.serialize());return G.promise};var UG3=function(O){this.networkStatusManager=O;this.isDownloaded=MRN===void 0?function(){return!1}:MRN;
this.isReady=!1;this.iHA=qI9(this)},qI9=function(O){var m;
return _.r(function(G){if(G.nextAddress==1)return G.yield(uqN(),2);if(G.nextAddress!=3)return m=G.yieldResult,G.yield(E0C(m),3);O.iS=G.yieldResult;UUY(O.iS).then(function(){O.isReady=!0});
return G.return(O.iS)})},tux=function(O,m,G){O.iS?(O=O.iS.vaa({fK:G,
lBU:!0,fB1:!0}),m.serviceIntegrityDimensions={poToken:O}):_.oy(Error("vj"))};
UG3.prototype.processContext=function(O){var m=this;if(!O.input.match(_.$H(KcC)))return _.W3();var G=O.innerTubeRequest,B=G.videoId;return!B||this.isDownloaded(G)||this.networkStatusManager&&!this.iS&&!this.networkStatusManager.isNetworkAvailable()?_.W3():this.iS?this.isReady?(tux(this,G,B),_.W3()):new tQ(UUY(this.iS).then(function(){tux(m,G,B)})):new tQ(this.iHA.then(function(Q){return _.r(function(H){if(H.nextAddress==1)return H.yield(UUY(Q),2);
tux(m,G,B);_.ju(H)})}))};var WI0=new _.Us("WEB_PO_CONTEXT_PROCESSOR");var Z_3=function(O,m){var G=this;this.rlM=0;var B;this.ndf=(B=m==null?void 0:m.ndf)!=null?B:window;this.networkStatusManagerPromise=m==null?void 0:m.networkStatusManagerPromise;var Q;this.requestKey=(Q=m==null?void 0:m.requestKey)!=null?Q:_.ib("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var H;this.ucu=(H=m==null?void 0:m.ucu)!=null?H:function(x){return new s2(x)};
var M;B=(M=m==null?void 0:m.lQz)!=null?M:function(x,t,W){return new i_u(x,t,W)};
this.bgChallenge=Qgp(O.bgChallenge);this.ttlSeconds=HDI(Nk(O.challenge||""));this.cu=B(this.requestKey,_.V("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Qf.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",O);this.dhk=m==null?void 0:m.dhk;quf(this.cu);var R;this.e2O=(R=m==null?void 0:m.e2O)!=null?R:function(x){_.Cm(G.ndf.document,"visibilitychange",
function(){G.ndf.document.visibilityState==="visible"&&x()})}},JXA=function(O){if(!O.vm){var m={maxAttempts:5,
rH5:O.ttlSeconds*1E3};t2I(O.ndf);O.vm=O.ucu({cu:O.cu,s6a:{disable:_.V("html5_web_po_disable_remote_logging"),wj:"aGIf",sYg:aYs("html5_web_po_experiment_ids"),k95:_.V("wpo_dis_lfdms")?0:1E3,f86:function(B){var Q=$WH.get(B);Q||(Q=new KVu(B),Q=new bj(Q),$WH.set(B,Q));return Q}},
y4a:m,y75:O.bgChallenge,f0h:WzY});O.rlM=Date.now();tes(O.vm,function(){O.rlM=Date.now()});
SZS(O.vm,function(){return _.r(function(B){return B.return(zq9(O))})});
var G=O.lEN.bind(O);O.networkStatusManagerPromise&&O.ttlSeconds>0&&O.networkStatusManagerPromise.then(function(B){B.listen("publicytnetworkstatus-online",G)});
O.e2O(G)}};
Z_3.prototype.lEN=function(){if(Date.now()>this.rlM+this.ttlSeconds*1E3){var O;(O=this.vm)==null||UZj(O)}};
var zq9=function(O){if(O.yEM)return O.yEM;if(!O.vm)throw Error("wj");O.yEM=new A$({vm:O.vm,cu:O.cu,vQi:!0,onError:WzY,y4a:O.dhk});return O.yEM},zQ5=function(O,m){O=new Z_3(O,m);
JXA(O);zq9(O)};var Vuu=_.H93.ephemeralActionSelector,G5=function(O,m){this.store=O;this.queue=[];m==null||m.addEventListener("yt-navigate-start",this.reset.bind(this))};
G5.prototype.enqueue=function(O){var m=O.command,G=O.durationMs,B=O.elementToFocus;var Q=O.label;var H=O.elementToFocus;O.command?Q=_.Xm("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:Q,shortcut:_.Xm("SHIFT_PLUS_ENTER")}):H&&(O=Q+". "+_.Xm("SHIFT_PLUS_ENTER")+" for more information.",Q=_.Xm("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:Q,shortcut:_.Xm("SHIFT_PLUS_ENTER")},O));G={announcement:Q,durationMs:G!=null?G:8E3};m?G.command=m:B&&(B.classList.add("ephemeral-action-focusable-element"),G.selector=B.tagName+
".ephemeral-action-focusable-element");this.queue.push(G);b_3(this)};
G5.prototype.activate=function(O){var m=Vuu(this.store.getState());if(m){if(m==null?0:m.command)_.DB(m.command),this.store.dispatch(BMs(null));if(m==null?0:m.selector)m=document.querySelector(m.selector),_.Igp(m);O.preventDefault()}};
var b_3=function(O){if(!Vuu(O.store.getState())&&O.queue.length){var m=O.queue.shift();m&&(O.previousAnnouncement===m.announcement&&(m.announcement+="\u00a0"),O.store.dispatch(BMs(m)),O.previousAnnouncement=m.announcement,O.timeoutId=setTimeout(function(){if(m.selector){var G;(G=document.querySelector(m.selector))==null||G.classList.remove("ephemeral-action-focusable-element")}O.store.dispatch(BMs(null));b_3(O)},m.durationMs))}};
G5.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(BMs(null));this.queue.length=0;this.timeoutId=void 0};
G5[$R]=[_.ry,_.v7(_.N2)];_.Bn=new _.Us("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var n3h=window.AbortController||gKN;var Xis=new _.Us("AUTH_SERVICE_TOKEN");var bgp=_.FY(["about:blank"]),V2s;var f9s=new _.Us("API_IFRAME_TOKEN"),hqr=new _.Us("FETCH_FN_TOKEN"),TCo=new _.Us("PARSE_FN_TOKEN"),g3K=new _.Us("WINDOW_REQUEST_TOKEN"),uPo=new _.Us("TEXT_DECODER_TOKEN");var bSU;bSU=new _.Us("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.jos=new _.Us("MISC_UI_SHARED_FLAGS_TOKEN");var I9h=function(){};
I9h.prototype.getFlag=function(O){if(O.configType!==2)throw Error("xj");return pib(O)};
var pib=function(O){switch(O.flagType){case "bool":return _.V(O.flagName);case "int":return _.L$(_.Rd(O.flagName));case "double":return _.Rd(O.flagName);case "string":return _.ib(O.flagName);case "int32_list":return aYs(O.flagName);case "int64_list":return aYs(O.flagName).map(function(m){return _.L$(m)});
case "string_list":return _.Ue(O.flagName);default:throw Error("yj");}};var QH=function(O,m,G){m=m===void 0?{}:m;ss.call(this,G===void 0?"uninitialized":G);this.env=O;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}];m.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=m.shouldWaitOnAsyncImmediate)};
_.X(QH,ss);QH.prototype.init=function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1)return m.processPluginOptions.shouldWaitOnAsyncImmediate?B.yield(O(m.env),2):(O(m.env),B.jumpTo(2));if(B.nextAddress!=4)return m.jobSet?B.yield(m.jobSet.completedResolver.promise,4):B.jumpTo(4);G=_.xA();G.parkOrScheduleJob(function(){m.transition("rendering")},10,"ci");
_.ju(B)})};
QH.prototype.initialRender=function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1)return m.processPluginOptions.shouldWaitOnAsyncImmediate?B.yield(O(m.env),2):(O(m.env),B.jumpTo(2));if(B.nextAddress!=4)return m.jobSet?B.yield(m.jobSet.completedResolver.promise,4):B.jumpTo(4);G=_.xA();G.parkOrScheduleJob(function(){m.transition("rendered")},10,"cr");
_.ju(B)})};
QH.prototype.afterRenderImmediate=function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1)return m.processPluginOptions.shouldWaitOnAsyncImmediate?B.yield(O(m.env),2):(O(m.env),B.jumpTo(2));if(B.nextAddress!=4)return m.jobSet?B.yield(m.jobSet.completedResolver.promise,4):B.jumpTo(4);G=_.xA();G.parkOrScheduleJob(function(){m.transition("after-render-deferred")},10,"carml");
_.ju(B)})};
QH.prototype.afterRenderDeferred=function(O){var m=this;return _.r(function(G){O(m.env);_.ju(G)})};_.a8("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var SIb={},E3B=(SIb.rendered={priority:0,callback:function(O){GAU(O.injector.resolve(j0))}},SIb);var ZcN=new _.Us("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),LI3=new _.Us("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var CSr=function(O){this.callbackFnMap=O;this.configMap={}};
CSr.prototype.handleResponse=function(O){var m;if(O=(m=O.responseContext)==null?void 0:m.serviceTrackingParams)for(m=_.K(O),O=m.next();!O.done;O=m.next()){O=O.value;var G=O.params,B=O.service;if(G&&B){this.configMap[B]||(this.configMap[B]=new Eem);O=this.configMap[B];var Q=void 0,H=(Q=this.callbackFnMap)==null?void 0:Q[B];G=_.K(G);for(B=G.next();!B.done;B=G.next())Q=B.value,B=Q.key,Q=Q.value,B&&Q&&(O.set(B,Q),H&&H(B,Q))}}};
CSr.prototype.getConfig=function(O){return this.configMap[O]||void 0};
CSr[$R]=[_.v7(LI3)];var o3u=!1,Sus=0,uNY=null,pa6=null;var l9J=new _.Us("NETWORK_SLI_TOKEN");var a9o=function(O,m,G,B,Q){this.networkSli=O;this.fetchFn=m;this.parseFn=G;this.requestFn=B;this.JSC$18516_textDecoder=Q};
a9o.prototype.fetch=function(O,m,G){var B=this,Q,H,M;return _.r(function(R){Q=k9s(B,O,m);M=(H=B.fetchFn)!=null?H:fetch;return R.return(M(Q).then(function(x){return B.handleResponse(x,G)}).catch(function(x){_.ay(x);
if((G==null?0:G.expectJsonStrict)&&x instanceof et&&x.errorType===1)return Promise.reject(x)}))})};
var K4m=function(O,m,G,B){var Q,H,M,R,x,t,W;return _.r(function(Z){switch(Z.nextAddress){case 1:return Q=k9s(O,m,G),_.n_(Z,2),Z.yield(fetch(Q),4);case 4:H=Z.yieldResult;_.P7(Z,3);break;case 2:throw _.uS(Z),new et(2,"Failed to parse streaming response",Q.url);case 3:if(!H.redirected&&!H.ok)throw(M=O.networkSli)==null||M.failure(),new _.j9("Streaming fetch request not ok",Q.url);if(!H.body)throw new _.j9("No response body in streaming response",Q.url);R={};if(_.V("web_streaming_fast"))return x=H.body.getReader(),
Z.return(yX0(O,x,R,B));t=H.body.pipeThrough(new TextDecoderStream).getReader();W=new _.nG;return Z.return(cX3(O,t,W,crI,R,B))}})},k9s=function(O,m,G){if(O.networkSli){var B=_.JE(_.Kr(m,"key"))||"/UNKNOWN_PATH";
O.networkSli.start(B)}B=G;_.V("wug_networking_gzip_request")&&(B=F$s(G));var Q;return new ((Q=O.requestFn)!=null?Q:window.Request)(m,B)},yX0=function(O,m,G,B){var Q,H,M,R,x,t,W,Z,z,J,n,I,S;
return _.r(function(L){switch(L.nextAddress){case 1:Q=O.JSC$18516_textDecoder?new O.JSC$18516_textDecoder("utf-8"):new TextDecoder("utf-8"),H=new Uint8Array(0),M=function(C){C=C.trim();C.length!==0&&C!=="]"&&C!=="["?(C.startsWith("[")&&(C=C.substring(1)),C.endsWith("]")&&(C=C.slice(0,-1)),C.endsWith(",")&&(C=C.slice(0,-1)),C=C.trim()):C=void 0;if(C)try{var P=JSON.parse(C);crI(G,P);B==null||B(G,P)}catch(w){throw new et(1,"Failed to parse streaming response",C);}},_.n_(L,2,3);
case 5:return L.yield(m.read(),8);case 8:R=L.yieldResult;x=R.value;if(t=R.done)return H.length>0&&(W=Q.decode(H),M(W)),Z=void 0,(Z=O.networkSli)==null||Z.success(),L.return(G);z=new Uint8Array(H.length+x.length);z.set(H);z.set(x,H.length);H=z;for(J=void 0;(J=H.indexOf(10))!==-1;)n=H.subarray(0,J),n.length>0&&(I=Q.decode(n),M(I)),H=H.subarray(J+1);L.jumpTo(5);break;case 3:_.f_(L);m.releaseLock();_.T9(L,0);break;case 2:S=_.uS(L);if(S instanceof et)throw S;throw new et(1,"Failed to parse streaming response");
}})},cX3=function(O,m,G,B,Q,H){var M,R,x,t,W,Z,z,J,n;
return _.r(function(I){if(I.nextAddress==1)return I.yield(m.read(),2);M=I.yieldResult;R=M.value;if(x=M.done)return(t=O.networkSli)==null||t.success(),I.return(Q);try{W=G.parse(R)}catch(S){throw new et(1,"Failed to parse streaming response",R);}if(W!=null)for(Z=_.K(W),z=Z.next();!z.done;z=Z.next())J=z.value,B(Q,J),n=void 0,(n=H)==null||n(Q,J);return I.return(cX3(O,m,G,B,Q,H))})};
a9o.prototype.handleResponse=function(O,m){var G,B=(G=this.parseFn)!=null?G:JSON.parse;G=O.text().then(function(Q){if((m==null?0:m.jspbResponseCtor)&&O.ok)return lqN(m.jspbResponseCtor,Q);Q=Q.replace(")]}'","");if((m==null?0:m.expectJsonStrict)&&Q)try{var H=B(Q)}catch(R){throw new et(1,"JSON parsing failed after fetch");}var M;return(M=H)!=null?M:B(Q)});
O.redirected||O.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),G=G.then(function(Q){_.ay(new _.j9("Error: API fetch failed",O.status,O.url,Q));return Object.assign({},Q,{errorMetadata:{status:O.status}})}));
return G};
a9o[$R]=[_.v7(l9J),_.v7(hqr),_.v7(TCo),_.v7(g3K),_.v7(uPo)];var YIx=new _.Us("NETWORK_MANAGER_TOKEN");var dGB=[1,2,4,8,16,30],eqx=function(O){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=O.maxTimeMs;this.maxFrameCount=O.maxFrameCount===void 0?Math.ceil(60*O.maxTimeMs/1E3):O.maxFrameCount;O=_.K(dGB);for(var m=O.next();!m.done;m=O.next())this.brokenFrameSummarizers.push(new wih(m.value/60*1E3))},DGA=function(O){var m=O.frameCountInternal>=O.maxFrameCount;
return O.elapsedTimeMs>=O.maxTimeMs||m};
eqx.prototype.summarize=function(){for(var O=[],m=_.K(this.brokenFrameSummarizers),G=m.next();!G.done;G=m.next())G=G.value,G=G.brokenFrameCount!==0?{severityMs:Math.round(G.targetFrameTimeMs),eventCount:G.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(G.averageDurationBetweenEventsMs)}:void 0,G&&O.push(G);return{summaries:O,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.vr.Object.defineProperties(eqx.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 wih=function(O){this.targetFrameTimeMs=O;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.vr.Object.defineProperties(wih.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var sou=function(){};
sou.prototype.start=function(O,m){var G=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var B=new eqx({maxTimeMs:O});this.monitor=B;this.lastSummaryInternal=void 0;this.metadataToLog=m;return new Promise(function(Q){var H=function(M){if(M===void 0)G.stop(),Q(void 0);else if(G.monitor!==B)M=Object.assign({},B.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),Q(M);else{var R=G.monitor;if(!DGA(R)){R.frameCountInternal++;if(R.prevTime===
void 0)R.startTime=M;else for(var x=M-R.prevTime,t=_.K(R.brokenFrameSummarizers),W=t.next();!W.done;W=t.next()){W=W.value;var Z=W.currTimeMs;W.currTimeMs+=x;x>W.targetFrameTimeMs+2&&(W.brokenFrameCount++,W.timeOfFirstBrokenFrameMs===void 0&&(W.timeOfFirstBrokenFrameMs=Z),W.timeOfLastBrokenFrameMs=Z)}R.prevTime=M}DGA(G.monitor)?Q(G.stop()):_.ln.addJob(H,5,0)}};
_.ln.addJob(H,5,0)})};
sou.prototype.stop=function(O){if(!this.monitor)return this.lastSummaryInternal;var m=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(m.monitoringDurationMs){O=O!=null?O:this.metadataToLog;var G={droppedFramesSummary:m,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};O&&(G[O.type]=O.data);_.LE("manualSmoothnessMeasurement",G)}this.monitor=void 0;this.lastSummaryInternal=m;this.metadataToLog=void 0;return m};_.NCB=new _.Us("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var PSh;PSh=function(O){this.JSC$18538_expiringStorage=new pR(O)};
_.FIx=function(O){if(_.EuN()&&(O=_.gs5(_.gI()+"::"+O)))return new PSh(O)};
PSh.prototype.set=function(O,m,G){G=G!==void 0?Date.now()+G:void 0;this.JSC$18538_expiringStorage.set(O,m,G)};
PSh.prototype.get=function(O){return this.JSC$18538_expiringStorage.get(O)};
PSh.prototype.remove=function(O){this.JSC$18538_expiringStorage.remove(O)};var AXy=new _.Us("SESSION_STORAGE");_.Hn=function(){};
_.Hn.getInstance=function(){var O=_.ex("ytglobal.storage_");O||(O=new _.Hn,_.HI("ytglobal.storage_",O));return O};
_.Hn.prototype.estimate=function(){var O,m,G;return _.r(function(B){O=navigator;return((m=O.storage)==null?0:m.estimate)?B.return(O.storage.estimate()):((G=O.webkitTemporaryStorage)==null?0:G.queryUsageAndQuota)?B.return(Lzp()):B.return()})};
_.HI("ytglobal.storageClass_",_.Hn);var cds=0;var NLN=!1;var OLB=_.FY(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),mMs=_.FY(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var AmB={"/":_.Yz,"/?feature=ytca":_.Yz,"/feed/downloads":_.qyf};var GP0=Kah.continuationCommandSelector,Zo=function(O,m,G){this.JSC$18554_upliftPromise=O;this.store=m;this.JSC$18554_persistentStorePromiseAccessor=G};
Zo.prototype.shouldPreferLocalResponse=function(O){return O.browseId==="FEdownloads"||O.browseId==="FEsmart_downloads"&&_.V("kevlar_modern_downloads_page")?!0:!1};
Zo.prototype.localInnertubeResponse=function(O){var m=this;return _.r(function(G){return O.browseId==="FEdownloads"?_.V("kevlar_modern_downloads_page")?G.return(B9u(m)):G.return(QMK(m)):O.browseId==="FEsmart_downloads"&&_.V("kevlar_modern_downloads_page")?G.return(HL9(m)):G.return(Promise.reject(Error("Aj")))})};
Zo.prototype.canProvideFallbackResponse=function(){return!0};
Zo.prototype.localFallbackInnertubeResponse=function(O){var m=this,G,B,Q;return _.r(function(H){switch(H.nextAddress){case 1:return H.yield(m.JSC$18554_persistentStorePromiseAccessor(),2);case 2:G=H.yieldResult;if(O.browseId!=="SPaccount_downloads"||!G){H.jumpTo(3);break}return H.yield($V6(G),4);case 4:if(B=H.yieldResult)return H.return(_.v$(B));case 3:return O.browseId==="FEwhat_to_watch"?H.return(v6A(m)):(Q=_.V("web_offline_continuation_automatic_retry")||_.V("web_offline_continuation_retry_button"))&&
O.continuation?H.return(Ksu(m)):H.return($Mu(m))}})};
var v6A=function(O){var m;return _.r(function(G){if(G.nextAddress==1)return G.yield(O.JSC$18554_upliftPromise,2);m=_.Y1r(O.store.getState().entities);return m.length?G.return(MS0(O,m)):G.return($Mu(O))})},QMK=function(O){var m,G;
return _.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$18554_upliftPromise,2);if(B.nextAddress!=3)return m=rYo([{offlineItemSectionRenderer:{}}]),B.yield(Rf3(O,m),3);G=B.yieldResult;G.onResponseReceivedActions=[bm("REFRESH_DOWNLOADS")];return B.return(G)})},B9u=function(O){var m,G,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S;
return _.r(function(L){if(L.nextAddress==1)return L.yield(O.JSC$18554_upliftPromise,2);if(L.nextAddress!=3)return m=O.store.getState(),G=m.entities,B=_.lQ(G),Q=_.aQ(G),H=_.Vtp(m),M=_.JCI(m),R=_.bir(m),x=_.eAM(G),t=_.ps(B),W=_.ks(G),Z=_.PRY(G),z=_.XDp(m),J=_.wv(m),n={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.ujs(B,Q,x,Z,H,M,t,W,R,z,J),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},I="",_.V("kevlar_modern_downloads_skip_downloads_title")||
(I=_.Xm("DOWNLOADS",void 0,"Downloads")),L.yield(iLy(O,n,I),3);S=L.yieldResult;S.onResponseReceivedActions=[bm("REFRESH_DOWNLOADS")];return L.return(S)})},HL9=function(O){var m,G,B,Q,H,M,R,x,t;
return _.r(function(W){if(W.nextAddress==1)return W.yield(O.JSC$18554_upliftPromise,2);if(W.nextAddress!=3)return m=O.store.getState(),G=m.entities,B=_.lQ(G),Q=_.ps(B),H=_.ks(G),M={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.IPO(B),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},R=_.Xm("SMART_DOWNLOADS",void 0,"Smart downloads"),x=Tnp(Q,H),W.yield(iLy(O,M,R,x),3);t=W.yieldResult;t.onResponseReceivedActions=
[bm("REFRESH_DOWNLOADS")];return W.return(t)})},$Mu=function(O){var m,G;
return _.r(function(B){if(B.nextAddress==1)return B.yield(H$(O.JSC$18554_upliftPromise,O.store),2);m=B.yieldResult;G=rYo([Qx6(m)]);return B.return(Rf3(O,G))})},Ksu=function(O){var m,G,B,Q;
return _.r(function(H){if(H.nextAddress==1)return m={},G=GP0(O.store.getState()),_.ya(m,_.Dw,G),H.yield(H$(O.JSC$18554_upliftPromise,O.store,m,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);B=H.yieldResult;Q={};_.ya(Q,_.Mfe,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:B}}}],targetId:"browse-feedFEwhat_to_watch"});return H.return({responseContext:{},onResponseReceivedActions:[Q]})})},rYo=function(O){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:O}}}}]}}},MS0=function(O,m){var G,B;
return _.r(function(Q){var H={contents:nz(m)};G=H&&H.contents?H:{};_.V("kevlar_modern_downloads_page")&&(G=Object.assign({},_.pjM(m),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));B={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:G}}}]}};return Q.return(Rf3(O,B))})},Rf3=function(O,m){var G,B;
return _.r(function(Q){if(Q.nextAddress==1)return Q.yield(O.JSC$18554_persistentStorePromiseAccessor(),2);if(Q.nextAddress!=3)return G=Q.yieldResult,Q.yield(Kk(G),3);B=Q.yieldResult;return Q.return({responseContext:{},contents:m,topbar:B})})},iLy=function(O,m,G,B){var Q,H;
return _.r(function(M){if(M.nextAddress==1)return M.yield(O.JSC$18554_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return Q=M.yieldResult,M.yield(Kk(Q),3);H=M.yieldResult;var R=M.return;var x=G;var t=B;x=x===void 0?"":x;t=t===void 0?"":t;x={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:x}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Xm("SETTINGS",void 0,"Settings"),accessibilityText:_.Xm("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:_.$s("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:t}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:x};
return R.call(M,{responseContext:{},contents:m,topbar:H,header:{pageHeaderRenderer:x}})})};var xMK=function(){this.moduleRegistry={};this.fetchCount=0};
xMK.prototype.isFetching=function(){return this.fetchCount>0};
var Yp=function(O,m){O.moduleRegistry[m.toString()]={asyncId:m,isFetching:!1};return O};
xMK.prototype.JSC$18565_loadModules=function(){for(var O=this,m=new Map,G=[],B=_.K(_.eA.apply(0,arguments)),Q=B.next();!Q.done;Q=B.next()){Q=Q.value;var H=this.moduleRegistry[Q];H?H.resolver?m.set(Q,H.resolver):(H.resolver=new _.Vg,m.set(Q,H.resolver),G.push(H.asyncId),H.isFetching=!0):(H=new _.Vg,m.set(Q,H),H.resolve(void 0))}G.length&&(this.fetchCount+=1,_.a7(_.Ci.getMultipleAsync.apply(_.Ci,_.lS(G)).then(function(M){for(var R=0;R<G.length;R++){var x=M[R],t=O.moduleRegistry[G[R].toString()];t.isFetching=
!1;t.resolver.resolve(x)}}).catch(function(M){for(var R=_.K(G),x=R.next();!x.done;x=R.next()){x=x.value;
var t=O.moduleRegistry[x.toString()];t.resolver=void 0;t.isFetching=!1;m.get(x.toString()).reject(M)}}),function(){--O.fetchCount}));
return Promise.all([].concat(_.lS(m.values())).map(function(M){return M.promise}))};_.dJ=new _.Us("MODULE_REGISTRY_TOKEN");var q_h={},UM9=(q_h.rendered={priority:0,callback:function(O){a:{var m=void 0;try{var G;b:{if(_.S5O()){var B=_.Tvs(_.gI()+"::pom");if(B){var Q=new AC(B);break b}}Q=void 0}var H=(G=Q)==null?void 0:G.get("role_text");if(!H)break a;m={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:H}]}}}}}}catch(x){}m&&O.injector.resolve(_.Mu).resolveCommand(m)}try{var M=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(M){var R=JSON.parse(M);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
R&&O.injector.resolve(_.Mu).resolveCommand(R)}}catch(x){}}},q_h);var tSh,WsA={},ZLo=(WsA.initialized={priority:10,callback:function(){tSh=TK()}},WsA.rendering={callback:function(O){var m;
return _.r(function(G){if(G.nextAddress==1)return G.yield(tSh,2);m=G.yieldResult;if(!m.endpoint)throw Error("Cj`"+_.Qf.location.href);I6(O,m);_.ju(G)})}},WsA);var zfs={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(_.lS(_.V("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(O){var m=O.stack;if(m.includes("chrome://")||m.includes("chrome-extension://")||O.message.includes("chrome-extension://")||m.includes("moz-extension://")||m.includes("local.adguard.org")||m.includes("auctioneer3.50million.club")||m.includes("youtubedownloader")||m.includes("youtube_home_page")||m.includes("is_youtube_video_no_longer_available")||
m.includes("switchScreenSizeHack")||m.includes("yt_main_big_banner.js")||m.includes("YouTubeCenter.js")||m.includes("/mytube.js")||m.includes("JSON.parseWrapper")||m.includes("/inj_js/common.js")||m.includes("firebug-lite")||m.includes(".repl.co/")||m.includes("linkfix")||m.includes("playAfterAd")||O.message.includes("Access is denied for this document")&&m.includes("<anonymous>")||O.fileName==="user-script"||O.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
m.includes("<anonymous>"))return!0;if(m.includes("https://www.youtube.com"))return!1;O=m.split("\n");if(!O.length)return!1;if(O.length<=3&&m.includes("s.onloadeddata"))return!0;m=0;for(var G=_.K(O),B=G.next();!B.done;B=G.next())B=B.value,(B.includes("https://")||B.includes("http://"))&&m++;return m/O.length>.95},
weight:0},{callback:function(O){return O.message==="Unknown Error"&&O.name.indexOf("NS_")===0},
weight:100},{callback:function(O){if(!_.xF)return!1;var m=O.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||O.message.includes("available to complete this operation"),G=O.stack.includes("webcomponents")&&O.message==="Object doesn't support this action";O=O.message.includes("object that does not implement interface Element");return m||G||O},
weight:0},{callback:function(O){return O.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(O){return O.message==="Operation is not supported"&&(O.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(O){return O.stack.includes("eval code (eval (code:1:1)")||O.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(O){return O.message.includes("Permission denied")&&O.stack.includes("this.domHandler")?!0:O.name.includes("TypeError")&&O.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(O){if(!O.stack)return!1;var m=O.stack.trim().split("\n");m.length&&m[0].endsWith("Error: "+O.message)&&m.shift();m.length&&m[m.length-1].includes("at window.onerror (")&&m.pop();if(!m.length)return!0;if(O.message==="Script error.")return m[0].includes("www.youtube.com")||m.length>=2&&m[0].startsWith("at new")&&m[1].startsWith("at window.onerror");if(O.message==="Unexpected token")return!0;O=_.K(m);for(m=O.next();!m.done;m=O.next())if(m=m.value,!(m.includes("<anonymous>")||
m.startsWith("load@")||m.startsWith("global code@")||m.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(O){return O.message==="Cannot read property 'experiments'"&&O.stack.includes("/s/player/")},
weight:500},{callback:function(O){return O.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(O){return O.stack.includes("/embed.js")?(O.params&&O.params&&(O.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.V("use_error_suppression"))var O=_.kB("SUPPRESS_CLIENT_ERRORS",!1);else{if(O=_.ZM)O=/Chrome\/(\d+)/.exec(_.zY()),O=(O?parseFloat(O[1]):NaN)>=66;O=!(O||_.Wp&&_.tw(65)||_.YR&&_.tw(12.1)||BI&&_.tw(79))}return O},
weight:500}]};var JYu={},VSr=(JYu.initialized={priority:10,callback:function(O){O.injector.addProvider({provide:Oh8,useValue:O.root});O.injector.addProvider({provide:cso,useValue:niN});O.injector.addProvider({provide:Y9A,useValue:zfs});var m={};O.injector.addProvider((m.provide=dJK,m.useFactory=function(G,B){return function(){VRf(G,B)}},m[$R]=[cso,
Y9A],m));O.injector.addProvider({provide:cL,useClass:cL})}},JYu);var bLA={},n6r=(bLA.initialized={priority:3,callback:function(){var O;if(O=Jaz()){O=O.replace("/",".");var m=_.TC();m.set("tz",O);m.save();O=!0}else O=!1;O||(O=_.TC(),O.set("utco",-Math.floor((new Date).getTimezoneOffset())),O.save())}},bLA);var XYr={},fnr=(XYr.initialized={priority:10,callback:function(O){O.injector.resolve(cL).start();O=_.QM();var m=_.yE("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.yE("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.yE("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.yE("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.xp(_.Bwe(),{mainAppWeb:Object.assign({},O,{pageType:m})});_.xp(HUz(),{mainAppWeb:Object.assign({},O,{pageType:m})});
_.xp(vJe(),{mainAppWeb:O});_.xp(Kxr(),{mainAppWeb:O});qDU(function(){_.qX(vJe(),"FAILURE");_.qX(Kxr(),"FAILURE")});
r6S();Rpr();nUS()}},XYr);var hf3={},T99=(hf3.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.cd("dl"),_.xA().processSignal("pcl");else{var O=function(){_.cd("dl");_.xA().processSignal("pcl");window.removeEventListener("load",O)};
window.addEventListener("load",O)}}},hf3);var g6K={},uyJ=(g6K.rendering={priority:0,callback:function(){var O=_.xA();O.parkOrScheduleJob(function(){O.processSignal("eocs")},10,"eor",5E3)}},g6K);var jMr=function(){};
_.X(jMr,x5);
jMr.prototype.resolveCommand=function(O,m){var G,B,Q,H,M,R,x,t;return _.r(function(W){Q=(G=_.b(O,_.XzC))==null?void 0:(B=G.dialog)==null?void 0:B.commentReplyDialogRenderer;if(!Q)throw new _.j9("No dialog in createCommentReplyDialogEndpoint");M=(H=m.form)==null?void 0:H.event;if(!M)throw new _.j9("Event not passed in when resolving command");R=_.K(M.composedPath());for(x=R.next();!x.done;x=R.next())if(t=x.value,t.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||t.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return t.showReplyDialog(Q),W.return();
_.ju(W)})};var vn=function(){};
_.X(vn,x5);vn.prototype.resolveCommand=function(O){var m,G,B;return _.r(function(Q){if(Q.nextAddress==1)return m=_.b(O,cZU),(G=m)!=null&&G.externalChannelId?Q.yield((0,_.lLI)("NSzT5"),2):Q.return();B=_.In3;return Q.yield(B(),0)})};var Kt=function(O){this.pageRequestService=O;this.JSC$18583_prefetchCoordinator=urr()};
_.X(Kt,x5);Kt.prototype.resolveCommand=function(O){var m=this,G,B,Q,H;return _.r(function(M){if(M.nextAddress==1){G=_.b(O,QS2);if((B=G)==null||!B.taskId)throw Error("Dj");Q=G.taskId;_.n_(M,2);return M.yield(_.BF$(m.pageRequestService,O,{},"").then(function(R){if(!R)throw Error("Ej");},function(R){throw Error("Fj`"+R);
}),4)}if(M.nextAddress!=2)return pb0(m.JSC$18583_prefetchCoordinator,Q),_.P7(M,0);
H=_.uS(M);ov(m.JSC$18583_prefetchCoordinator,Q,H);_.ju(M)})};
Kt[$R]=[h8];var $M=function(O,m){this.innertubeTransportService=O;this.JSC$18587_commandHandler=m};
_.X($M,x5);$M.prototype.resolveCommand=function(O){var m=this,G,B,Q;return _.r(function(H){if(H.nextAddress==1){G=_.b(O,BSH);if(G.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||G.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")B=G.boolValue?2:1,_.nK.getInstance().setState(B,!0,!0);return H.yield(_.Ov(m.innertubeTransportService,O),2)}Q=H.yieldResult;pYb(m,Q);_.ju(H)})};
var pYb=function(O,m){m.actions&&m.actions.forEach(function(G){O.JSC$18587_commandHandler.resolveCommand(G)})};
$M[$R]=[_.Dk,_.Mu];var MS={},S_b=(MS.addToPlaylistEndpoint=Ks(vA),MS.addToToastAction=Ks(xX),MS.adsControlFlowOpportunityReceivedCommand=Ks(yU),MS.audioTrackSelectActionCommand=Ks(VG),MS.backgroundAudioPlaybackCommand=Ks(nb),MS.captionLanguageSelectActionCommand=Ks(XQ),MS.captionPickerEndpoint=Ks(fb),MS.changeMiniAppPlayStateCommand=Ks(Kb),MS.changeTimelyActionVisibilityCommand=Ks(i1),MS.channelCreationFormEndpoint=Ks(Ox),MS.clearLocationCommand=Ks(HA),MS.clearUrlParamCommand=Ks($x),MS.copyLinkCommand=Ks(pb),MS.copyTextEndpoint=
Ks(d0),MS.createCommentReplyDialogEndpoint=Hjz(jMr),MS.createPlaylistServiceEndpoint=Ks(Ss),MS.dismissDialogEndpoint=Ks(rb),MS.dismissPlayerOverlayCommand=Ks(hO),MS.entityUpdateCommand=Ks(ed),MS.feedbackEndpoint=Ks(N9),MS.getAnswerCommand=Ks(lHr),MS.getPaymentsClientTokenCommand=Ks(t7),MS.getTranscriptEndpoint=Ks(qg),MS.googlePaymentBillingCommand=Ks(W0),MS.googlePaymentPurchaseManagerCommand=Ks(Z6),MS.hideEngagementPanelEndpoint=Ks(RT),MS.hideSheetCommand=Ks(ih),MS.hideSnackbarCommand=Ks(H0),MS.insertRichSectionCommand=
Ks(Gt),MS.listMutationCommand=Ks(BA),MS.logGtmCommand=Ks(ml),MS.notifyDropdownOptionSelectedCommand=Ks(Mq),MS.openAdAllowlistInstructionCommand=Ks(_.cU),MS.openOnePickAddVideoModalCommand=Ks(Ex),MS.persistSubscriptionsDisplayPreferencesCommand=Ks(kx),MS.pingingEndpoint=Ks(YD),MS.playlistEditEndpoint=Ks(Cb),MS.playlistVotingRefreshPopupCommand=Ks(oT),MS.profileCardCommand=Ks(kD),MS.refreshPanelEndpoint=Ks(xx),MS.saveImageToDeviceEndpoint=Ks(w0),MS.scrollToSectionEndpoint=Hjz(aHK),MS.seekToVideoTimestampCommand=
Ks(Tt),MS.selectCountryCommand=Ks(yG),MS.setCookieCommand=Ks(cA),MS.setLocalStorageCommand=Ks(KA),MS.setPrefStorageEntryCommand=Ks(db),MS.setSettingEndpoint=Ks($M),MS.sfvAudioItemPlaybackCommand=Ks(gb),MS.shareImageCommand=Ks(wb),MS.sharingProviderDataCommand=Ks(es),MS.showAudioTrackPickerActionCommand=Ks(uh),MS.showCaptionLanguageSelectActionCommand=Ks(js),MS.showCreatorChatbotEngagementPanelCommand=Ks(vn),MS.showDialogCommand=Ks(tO),MS.showEngagementPanelEndpoint=Ks(WA),MS.showSheetCommand=Ks(Z3),
MS.showSnackbarCommand=Ks(v0),MS.showTransientPlayerScrimOverlayCommand=Ks(IT),MS.submitFormWithValidationFlowCommand=Ks(Ai),MS.talkToRecsDeselectCommand=Ks($X),MS.talkToRecsNextCommand=Ks(Mg),MS.talkToRecsSelectCommand=Ks(re),MS.talkToRecsUpdateTextCommand=Ks(RN),MS.toggleEngagementPanelCommand=Ks(zt),MS.undoFeedbackEndpoint=Ks(FB),MS.updateEngagementPanelContentCommand=Ks(JO),MS.updateUrlParamCommand=Ks(Un),MS.verifyCommand=Ks(Ox),MS.webNativeShareCommand=Ks(D3),MS.webSubmitFormCommand=Ks(lh),MS.ACK_PLAYABLES_3P_DATA_CONSENT=
Ks(sx),MS.CANCEL_NAVIGATION=Ks(Nq),MS.COPY_SHARE_URL=Ks(PA),MS.MINI_APP_EXIT_DIALOG_SEEN=Ks(AO),MS.MINI_APP_OPEN_URL=Ks(FQ),MS.REQUEST_MINI_APP_FULLSCREEN=Ks(On),MS.RESUME_NAVIGATION=Ks(m4),MS.SHARE_PLAYABLE_WITH_HIGH_SCORE=Ks(G8),MS.TELL_US_WHY=Ks(PU),MS);_.V("web_enable_prefetching_videos_on_home")&&(S_b.prefetchWatchCommand=Ks(Kt),S_b.registerTasksCommand=Ks(av));_.V("enable_share_panel_navigation_logging_fix_on_web")&&(S_b.shareEntityServiceEndpoint=Ks(qq));var qM_=Object.assign({},S_b);var E6s={},Lsr=(E6s.initialized={priority:10,callback:t3e},E6s);var CC0={},o69=(CC0.initialized={callback:function(O){var m={},G={};S$I().install((m.document_disposed={callback:function(){_.V("finalize_all_timelines")?fms():lP();jGM("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.Dyz();var B=O.injector.resolve(cL);B.intervalId!==void 0&&(B.intervalId&&_.ln.cancelJob(B.intervalId),B.intervalId=void 0,--B.currentPartitionIndex,B=c2o(B),B>0&&FT$({mainAppWeb:_.QM(),survivalSli:{partitionMinute:B,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));YLu(qO);U1!=null&&
U1.flush();tV&&tV.snapshotAndFlush();B=_.K($WH.values());for(var Q=B.next();!Q.done;Q=B.next())Q.value.snapshotAndFlush()}},m),(G.flush_logs={callback:function(){_.CE()}},G))}},CC0);var lnB={},anJ=(lnB.rendered={priority:0,callback:function(){var O=new OS3;O.increment("STARTED");if(_.kB("LOGGED_IN")&&!_.kB("IS_DBSC",!1)&&_.kB("SERVER_VERSION")!=="test"&&_.kB("SERVER_VERSION")!=="dev"&&!E9p()&&!S3H()){O.increment("EXECUTING");var m=document.createElement("iframe");m.style.display="none";_.Qo6(m,2,_.d5("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.kB("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(m);O.increment("DONE")}}},
lnB);var kPo={},yYx=(kPo.rendered={callback:function(){urr().resume()}},kPo);var cYJ={acknowledgeChannelTouStrikeCommand:Sw(D6),addToPlaylistServiceEndpoint:Sw(Fb),addToPlaylistEndpoint:Sw(Fb),addUpcomingEventReminderEndpoint:Sw(Mn),browseEndpoint:Sw(xJu),channelCreationFormEndpoint:Sw(kX),channelCreationServiceEndpoint:Sw(yK),claimLegacyYoutubeChannelEndpoint:Sw(T8),clearSearchHistoryEndpoint:Sw(m6),clearWatchHistoryEndpoint:Sw(GW),commerceActionCommand:EK(zd),createBackstagePostEndpoint:Sw(VK),createBroadcastCommand:Sw(rU),createCommentEndpoint:Sw(CA),createCommentReplyEndpoint:Sw(LA),
createLiveChatPollEndpoint:Sw(Rl),createPlaylistServiceEndpoint:Sw(Ar),crossAccountChannelTransferEndpoint:Sw(HV),deleteLiveChatMessageCommand:Sw(io),deletePlaylistEndpoint:Sw(O$),deleteVideoEndpoint:Sw(U$),dismissalEndpoint:Sw(sn),feedbackEndpoint:Sw(Ng),flagEndpoint:Sw(vN),getAccountSwitcherEndpoint:Sw(Ql),verifyCommand:Sw(J7),getAccountsListInnertubeEndpoint:Sw(K8),getCommentsFromInboxCommand:Sw(EN),getDownloadActionCommand:Sw(yl),getFlowCommand:EK(ON),getKidsBlocklistPickerCommand:Sw(Kw),getNotificationMenuEndpoint:Sw(tK0),
getPaymentInstrumentsParamsCommand:Sw(fw),getPaymentsClientTokenCommand:EK(zd),getPdgBuyFlowCommand:Sw(Nn),getReportFormEndpoint:Sw($1),getSearchInVideoCommand:Sw(Rv),getAnswerCommand:Sw(rd),getSurveyCommand:Sw(qy),getTranscriptEndpoint:Sw(WN),getPostVideoPreviewEndpoint:Sw(nA),decorateMessageEndpoint:Sw(b1),likeEndpoint:Sw(c0),liveChatActionEndpoint:Sw(tr),liveChatEndpoint:Sw(UN),liveChatItemContextMenuEndpoint:Sw(xj),liveChatPurchaseMessageEndpoint:Sw(WV),liveChatReplayEndpoint:Sw(qn),manageLiveChatUserEndpoint:Sw(hr),
metadataUpdateCommand:Sw(p8),moderateLiveChatEndpoint:Sw(TW),modifyChannelNotificationPreferenceEndpoint:Sw(lo),notificationOptOutEndpoint:Sw(al),openSuperStickerBuyFlowCommand:Sw(f8),performCommentActionEndpoint:Sw(pA),playlistEditEndpoint:Sw(Gd),playlistEditorEndpoint:Sw(mX),recordNotificationInteractionsEndpoint:Sw(kj),reelWatchEndpoint:Sw(BN),refreshPanelEndpoint:Sw(Yj),removeUpcomingEventReminderEndpoint:Sw(gU),resolveLocationCommand:Sw(Il),revealBusinessEmailCommand:Sw(ge),searchEndpoint:Sw(_.WAu),
sendLiveChatMessageEndpoint:Sw(uo),sendLiveChatVoteEndpoint:Sw(j4),setSettingEndpoint:Sw(YX),shareEntityServiceEndpoint:EK(eD),sharingProviderDataCommand:Sw(x1),showEngagementPanelEndpoint:Sw(dU),showMoreDrawerCommand:Sw(e4),showSheetCommand:Sw(Dj),showDialogCommand:Sw(wU),subscribeEndpoint:Sw(de),transcriptSubmitCaptionCorrectionCommand:Sw(tB),undoFeedbackEndpoint:Sw(FX),unsubscribeEndpoint:Sw(we),updateBackstagePostEndpoint:Sw(fA),updateCommentEndpoint:Sw(l1),updateCommentReplyEndpoint:Sw(oN),updateCommentsSettingsEndpoint:Sw(aN),
updateCreatorChannelInnertubeCommand:Sw(jD),updateKidsBlacklistEndpoint:Sw(My),updateEngagementPanelContentCommand:Sw(sN),updatePdgFeatureEnablementCommand:Sw(PV),updatedMetadataEndpoint:Sw(S4),validateChannelHandleCommand:Sw(IN),updateChannelPageSettingsEndpoint:Sw(u1),verifyAgeEndpoint:Sw(A7),watchEndpoint:EK(ym),whitelistEditEndpoint:Sw(ZW),ypcCancelRecurrenceEndpoint:Sw(JB),ypcCompleteTransactionEndpoint:Sw(Vt),ypcFixInstrumentEndpoint:Sw(nw),ypcGetCartEndpoint:Sw(b0),ypcGetOffersEndpoint:Sw(XT),
ypcHandleTransactionEndpoint:EK(hB),ypcLogWalletAnalyticDataEndpoint:Sw(Td),ypcOffersEndpoint:Sw(gd),ypcPauseSubscriptionCommand:Sw(u0),ypcRedeemCodeEndpoint:Sw(jy),ypcResumeSubscriptionCommand:Sw(Iv),ypcUpdateFopEndpoint:Sw(nw)},r$={},Y_o=(r$.GET_ACCOUNT_MENU=Sw(vV),r$.GET_NOTIFICATIONS_MENU=Sw(UJJ),r$.GET_NOTIFICATIONS_INBOX=Sw(L8),r$.GET_UNSEEN_NOTIFICATION_COUNT=Sw(ol),r$.GET_USER_MENTION_SUGGESTIONS=Sw(XX),r$.LOAD_GUIDE=Sw(q9x),r$.SUBMIT_FEEDBACK=Sw(P0),r$),RW={},dMB=(RW.CONTINUATION_REQUEST_TYPE_BROWSE=
Sw(h7),RW.CONTINUATION_REQUEST_TYPE_SEARCH=Sw(i0),RW.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Sw(YA),RW.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Sw(BV),RW.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Sw(En),RW.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Sw(SD),RW.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Sw(HN),RW.CONTINUATION_REQUEST_TYPE_GET_PANEL=Sw(cV),RW),wYb={player:EK(ym),watchNext:Sw(cD)},efs={player:EK(ym),reelItemWatch:Sw(BN),reelWatchSequence:Sw(Qt)},DMo={watchEndpoint:EK(dS)},sMh=
{commandEndpointMap:cYJ,signalEndpointMap:Y_o,continuationEndpointMap:dMB,watchEndpointMap:wYb,reelWatchEndpointMap:efs,streamingEndpointMap:DMo};var N93,PCh,Fsr;_.AYy=((PCh=(N93=window).matchMedia)==null?void 0:(Fsr=PCh.call(N93,"(prefers-reduced-motion: reduce)"))==null?void 0:Fsr.matches)||!document.startViewTransition;var Odx={},mZu={disableAllTransitions:_.AYy,ignoredErrors:(Odx.DOCUMENT_HIDDEN=!0,Odx.WINDOW_SIZE_CHANGED=!0,Odx.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,Odx),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 GyB=_.FY("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),B_3=function(O){this.viewTransitionCoordinator=O;this.isBrowseTransitionEnabled=_.ib("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.V("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.V("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.V("enable_plj_landing_page");this.lockupToWatchPlayerTransitionType=_.ib("web_thumbnail_to_watch_player_transition_type");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){O=
_.Rd("web_page_transition_exit_ms");var m=_.Rd("web_page_transition_wait_ms"),G=_.Rd("web_page_transition_enter_ms"),B=_.Rd("web_page_transition_watch_exit_ms"),Q=_.Rd("web_page_transition_watch_wait_ms"),H=_.Rd("web_page_transition_watch_enter_ms");if(!isNaN(O)||!isNaN(m)||!isNaN(G))if(O=Ine(GyB,O,m,G,B,Q,H))m=document.createElement("style"),m.textContent=Mue(O),document.head.appendChild(m)}};
B_3.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var O={};this.viewTransitionCoordinator.registerElement(document.documentElement,(O.slide="root-slide",O["lockup-to-watch"]="root-lockup-to-watch",O["learning-journey"]="root-learning-journey",O))}};
_.Z03=function(O,m){O.isLockupToWatchTransitionEnabled&&O.isLockupThumbnailRegistrationEnabled&&(O.registeredLockupThumbnail?O.lockupThumbnailRegisteredFromWatchEndpoint?_.ay(new _.j9("Lockup thumbnail registration order is incorrect.")):_.ay(new _.j9("Lockup thumbnail already registered.")):(O.registeredLockupThumbnail=m,_.QwJ(O,m)))};
_.QwJ=function(O,m){var G={};O.viewTransitionCoordinator.registerElement(m,(G["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",G),!0)};
B_3[$R]=[kcr];var WRs={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 zpz=["videoPrimaryInfoRenderer","title"],J6N=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var Hdy;Hdy=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.vah=_.a(function(O){O=_.ru(O,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var m=O.data,G=O.playlistData,B=O.expanded,Q=O.onExpandClick,H=O.isReadyToResume,M=function(){var W;return!((W=G())==null||!W.contents)},R=function(){var W=G();
return W&&W.totalVideos&&W.currentIndex!==void 0?W.currentIndex+1+" / "+W.totalVideos:""};
O=_.nH(function(){_.iX(_.KR().resolve(_.c$));return!1});
var x=_.nH(function(){M()&&Q&&Q()}),t={};
return _.q("ytd-miniplayer-info-bar",{class:_.bE("ytdMiniplayerInfoBarHost",(t.ytdMiniplayerInfoBarHasPlaylistData=M,t)),"on:click":x},_.q("div",{class:"ytdMiniplayerInfoBarContent"},_.q("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":O},_.q(_.Jg,{text:function(){var W=m();var Z=G();if(Z==null?0:Z.contents){var z;W=(z=_.utO(Z))==null?void 0:z.title}else W=W==null?void 0:W.miniplayerTitle;return V3f(W)},
noEndpoints:!0,ellipsisTruncate:!0})),_.q("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.q(_.U,{cond:H,then:function(){return _.q(GrH,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:Hdy})}}),_.q("h1",null,_.q(_.Jg,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var W=m();var Z=G();W=H()?{simpleText:_.Xm("CONTINUE_WATCHING",void 0,"Continue watching")}:(Z==null?0:Z.contents)?Z.titleText:W==null?void 0:W.miniplayerSubtitle;return V3f(W)},
noEndpoints:!0,ellipsisTruncate:!0})),_.q(_.U,{cond:function(){return!!R()&&!H()},
then:function(){return _.q("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.q("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.q("span",null,R))}}))),_.q(_.U,{cond:M,
then:function(){return _.q("div",{class:"ytdMiniplayerInfoBarExpand"},_.q(_.C3,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(W){Q&&(Q(),W.stopPropagation())}}},
iconName:function(){return B()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"df");var K_h;K_h=_.a(function(O){return _.q("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.q(_.C3,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:O.onTap}},
iconName:"yt-icons:close"}))},"ef");
_.$Z0=_.a(function(O){O=_.ru(O,{playabilityStatus:void 0,isDisabled:!1});var m=O.size,G=O.playabilityStatus,B=O.isDisabled,Q=_.Al("div");O=_.K(_.Wf(void 0,void 0,"y6THVb"));var H=O.next().value,M=O.next().value;O=_.wg(_.im);var R=!1,x=function(){return m().height<=0};
_.ER(function(){var z=m(),J=x(),n=H();n&&!J&&n.setInternalSize(z.width,z.height)},"qu2eI");
_.EZ(function(){var z,J,n;return _.r(function(I){if(I.nextAddress==1){z=_.KR().resolve(_.c$);J=z.getPlayerElement();if(!z.isMiniplayerActive()||!J||!Q.value)return I.return();J.appendTo(Q.value);return I.yield(J.getPlayerPromise(),2)}n=I.yieldResult;n.setSizeStyle(!1,!0);M(n);_.ju(I)})});
_.LS(function(){t()});
_.ER(function(){var z=H();if(z)if(B()){var J=z.getPlayerState();(R=J===-1||J===1||J===3)&&z.pauseVideo()}else t()},"mCtQKc");
var t=function(){if(R){R=!1;var z;(z=H())==null||z.playVideo()}},W=_.nH(function(){_.iX(_.KR().resolve(_.c$))}),Z={};
return _.q("ytd-miniplayer-player-container",{class:_.bE("ytdMiniplayerPlayerContainerHost",(Z.ytdMiniplayerPlayerContainerHidden=x,Z.ytdMiniplayerPlayerContainerHostShortsPip=O,Z)),style:_.hH({width:function(){return m().width+"px"},
height:function(){return m().height+"px"}})},_.q("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:Q}),_.q(_.U,{cond:function(){return!!G()&&!_.sxN(G())},
then:function(){return _.q(bNK,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var z;return((z=G())==null?void 0:z.errorScreen)||null},
status:function(){var z;return((z=G())==null?void 0:z.status)||null}})}}),_.q(_.U,{cond:B,
then:function(){return _.q("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":W},_.q(K_h,{onTap:function(){_.KR().resolve(_.c$).close()}}))}}))},"ff");_.MeK=_.a(function(O){var m=O.toastData;var G=_.Al("ytd-miniplayer-toast");O=_.K(_.fH(function(){return!!m()}));
var B=O.next().value,Q=O.next().value;O=_.K(_.Wf(!1,void 0,"BvfNQe"));var H=O.next().value,M=O.next().value,R=function(){var W;return _.HX((W=m())==null?void 0:W.data.title)};
_.Ln(function(){_.Bz.requestAvailability();m()&&Q(!1)});
var x,t;_.ER(function(){B()&&(_.iP(G.value,"iron-announce",{text:m().label+" "+R()}),x&&_.ln.cancelJob(x),x=_.ln.addLowPriorityJob(function(){M(!0)},2500))},"no1dZb");
_.ER(function(){H()&&(t&&_.ln.cancelJob(t),t=_.ln.addLowPriorityJob(function(){Q(!1);M(!1)},300))},"G3yPNe");
O={};return _.q("ytd-miniplayer-toast",{el:G,class:_.bE("ytdMiniplayerToastHost",(O.ytdMiniplayerToastOpening=function(){return B()},O.ytdMiniplayerToastClosing=function(){return H()},O))},_.q(_.U,{cond:function(){var W;
return(W=m())==null?void 0:W.data},
then:function(W){return _.q(R1s,{className:"ytdMiniplayerToastThumbnail",data:W,width:78})}}),_.q("div",{class:"ytdMiniplayerToastInfo"},_.q("div",{class:"ytdMiniplayerToastLabel"},function(){var W;
return(W=m())==null?void 0:W.label}),_.q("div",{class:"ytdMiniplayerToastTitle"},R)))},"gf");var IzY;var E8Y=null;var REs=_.a(function(O){var m=O.progressState;var G=O.multiMarkersPlayerBarRenderer;var B=O.progressBarWidth;var Q=function(){return lzY(G())},H=function(){return y6M(m())},M=function(){return B()*(m().playedTime/m().videoDuration)};
return _.q("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.q(_.gi,{each:Q},function(R,x){return _.q(rFB,{modifiedProps:H,chapters:Q,index:x,playedProgressWidth:M,backgroundGradientPosition:function(){var t=H(),W=Q(),Z=x(),z=M();return(t.playedTime-kp(_.b(W[Z],a6)))/t.playedTime*z}})}))},"hf"),rFB=_.a(function(O){var m=O.modifiedProps;
var G=O.chapters;var B=O.index;var Q=O.playedProgressWidth;var H=O.backgroundGradientPosition;O={};O=_.bE("ytChapteredProgressBarChapteredPlayerBarChapter",(O.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return M().isScrubbing},O.ytChapteredProgressBarHoveredMacroMarker=function(){return M().scrubberHovering},O.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return M().videoPosition==="seen"},O));
var M=function(){return c6M(m(),G(),B())},R=function(){var x=m();
var t=G(),W=B();if(c6M(x,t,W).videoPosition!=="active")x=0;else{var Z=kp(_.b(t[W],a6));x=(x.playedTime-Z)/((kp(_.b(t[W+1],a6))||x.videoDuration)-Z)}return x};
return _.q("div",{class:O,style:_.hH({width:function(){var x=m(),t=G(),W=B(),Z=_.b(t[W],a6);t=_.b(t[W+1],a6);return(t?kp(t)-kp(Z):x.videoDuration-kp(Z))/x.videoDuration*100+"%"},
"background-color":function(){a:{var x=M();switch(x.videoPosition){case "pending":x=x.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":x=x.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:x=""}}return x},
"background-size":function(){return(Yk5(M())?Q():"")+"px"},
"background-position-x":function(){return(Yk5(M())?H():"")+"px"}})},_.q("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var x=m(),t=G(),W=B();if(c6M(x,t,W).videoPosition==="seen")var Z=0;else Z=kp(_.b(t[W],a6)),t=kp(_.b(t[W+1],a6))||x.videoDuration,x=x.videoDuration*x.percentLoaded,Z=t<=x?1:Z>=x?0:(x-Z)/(t-Z);return"width: "+Z*100+"%"}}),_.q("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.hH({width:function(){return R()*100+"%"},
"background-size":function(){return(Yk5(M(),R())?Q():"")+"px"},
"background-position-x":function(){return(Yk5(M(),R())?H():"")+"px"}})}))},"jf");var idB=function(O,m){m=m===void 0?puu:m;var G,B=[],Q,H=!1;return function(){var M=_.eA.apply(0,arguments);if(H&&G===this&&m(M,B))return Q;Q=O.apply(this,M);H=!0;G=this;B=M;return Q}}(function(O){var m=O.heatMarkers,G=O.minHeightDp===void 0?0:O.minHeightDp,B=O.maxHeightDp===void 0?60:O.maxHeightDp;
var Q=Q===void 0?!1:Q;var H=1E3/m.length;O=[];O.push({x:0,y:100});for(var M=0;M<m.length;M++){var R=void 0,x=((R=_.b(m[M],M6o))==null?void 0:R.heatMarkerIntensityScoreNormalized)||0;R=(M+.5)*H;x=100-_.Lk(x*100,G/321*100,B/321*100);M!==0||Q||O.push({x:0,y:x});O.push({x:R,y:x});M===m.length-1&&O.push({x:1E3,y:x})}O.push({x:1E3,y:100});m="";for(G=0;G<O.length;G++)Q=O[G],G===0?Q="M "+Q.x.toFixed(1)+","+Q.y.toFixed(1):(B=eON(O[G-1],O[G-2],Q),H=eON(Q,O[G-1],O[G+1],!0),Q=" C "+(B.x.toFixed(1)+","+B.y.toFixed(1)+
" "+H.x.toFixed(1)+","+H.y.toFixed(1)+" "+Q.x.toFixed(1)+","+Q.y.toFixed(1))),m+=Q;return m});var xZr=_.a(function(O){var m=O.progressBarProps;var G=O.config;var B={};O=_.bE("ytHeatSeekerHost",(B.ytHeatSeekerHighContrast=O.highContrast,B));var Q=function(){return hp5(G().chapterData)};
return _.q("yt-progress-bar-heatseeker",{class:O,style:function(){var H;return"height: 320px; display: "+(m().isDragging&&((H=Q())==null?0:H.heatMarkers)?"block":"none")}},_.q(_.U,{cond:Q,
then:function(H){return _.q(_.U,{cond:function(){return H().heatMarkers},
then:function(){return _.q("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.q("path",{d:function(){return idB(H())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"kf");var q0u=_.a(function(O){var m=O.progressBarProps;var G=O.config;O={};O=_.bE("ytProgressBarLineProgressBarLine",(O.ytProgressBarLineProgressBarLineRounded=function(){return G().rounded},O.ytProgressBarLineProgressBarLineBottomInset=function(){return G().position===2},O));
return _.q("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.q("div",{class:O},_.q("div",{class:"ytProgressBarLineProgressBarBackground"}),_.q("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+m().percentLoaded*100+"%"}}),_.q("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var B=m();return"width: "+(B.videoDuration?_.Lk(B.hoveredTime/B.videoDuration,0,1):0)*100+"%"}}),_.q("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+n8O(m())*100+"%"}})))},"lf");
q0u.idomCompat=!0;var UZ3=_.a(function(O){var m=O.progressBarProps;var G=O.playheadData;var B=O.interpolateDotPosition;var Q=O.hidePlayhead;O={};var H=_.bE("ytProgressBarPlayheadProgressBarPlayheadDot",(O.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return m().isDragging},O.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!m().isDragging&&Q()},O));
return _.q("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.hH({"margin-left":function(){return XQs(m())*100+"%"},
transform:function(){return"translateX(-"+(B()?XQs(m())*12:6)+"px)"}})},_.q(_.U,{cond:function(){var M;
return(M=_.MN(G)())==null?void 0:M.playheadImage},
then:function(M){var R={};return _.q("div",{class:_.bE("ytProgressBarPlayheadProgressBarPlayheadCustom",(R.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return m().isDragging},R.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!m().isDragging&&Q()},R)),
style:_.hH({"transform-origin":function(){return(B()?XQs(m())*20:10)+"px center"}})},_.q(_.KH,{data:M,
alt:"","aria-hidden":"true"}))},
else:function(){return _.q("div",{class:H,style:_.hH({"transform-origin":function(){return(B()?XQs(m())*12:6)+"px center"}})})}}))},"mf");
UZ3.idomCompat=!0;var xM=function(O,m,G,B,Q,H){this.getProgressBarRect=O;this.updateProgressBarRect=m;this.getFilmstripYPosition=G;this.setFineScrubbingDraggedTime=B;this.updateFilmStripDraggedYDistance=Q;this.resetFilmStripYOffset=H;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Pu(this.onThrottledSeek,100,this)},teb=function(O,m,G){return function(B){O.handleClick(B,m(),G())}},zEu=function(O,m){return function(G){W_3(O,
G,Zdo(G),m())}},JFb=function(O,m){return function(G){W_3(O,G,{x:G.clientX,
y:G.clientY},m())}},bdr=function(O,m,G){return function(B){var Q=m(),H=G();
Ve9(O,B,Zdo(B),Q,H,!0);if(H.onTouchMove)H.onTouchMove(Q)}},XhA=function(O,m,G){return function(B){nar(O,B,m(),G())}},fZu=function(O,m){return function(){O.handleMouseLeave(m())}},hEA=function(O,m,G){return function(){var B=m(),Q=G();
qS(O,B,Q);if(Q.onTouchEnd)Q.onTouchEnd(B)}},T_3=function(O,m,G){return function(){var B=m(),Q=G();
qS(O,B,Q);if(Q.onTouchEnd)Q.onTouchEnd(B)}},gah=function(O,m,G){return function(){qS(O,m(),G())}},uKs=function(O){return function(m){if(m.keyCode===39||m.keyCode===38){var G,B;
(G=O())==null||(B=G.playerApi)==null||B.seekBy(5,void 0,void 0,72)}else if(m.keyCode===37||m.keyCode===40){var Q,H;(Q=O())==null||(H=Q.playerApi)==null||H.seekBy(-5,void 0,void 0,71)}}},jwr=function(O,m,G){return function(B){!G().disableScrubbing&&O.startPosition&&nar(O,B,m(),G())}},IZu=function(O,m,G){return function(){if(!G().disableScrubbing)if(O.startPosition){var B=m(),Q=G();
qS(O,m(),G());if(Q.onTouchEnd)Q.onTouchEnd(B)}else m().setState({isDragging:!1})}},Zdo=function(O){O=O.touches[0];
return{x:O.clientX,y:O.clientY}},nar=function(O,m,G,B){if(m.buttons!==1){if(m.movementX||m.movementY)m.preventDefault(),m.stopPropagation(),O=phB(O,G,m.clientX),G.setState({isHovering:!0,
hoveredTime:O*G.videoDuration})}else S09(G),Ve9(O,m,{x:m.clientX,y:m.clientY},G,B,!1)};
xM.prototype.handleMouseLeave=function(O){S09(O)};
var S09=function(O){O.isHovering&&O.setState({isHovering:!1,hoveredTime:0})},W_3=function(O,m,G,B){O.startPosition||(O.startPosition=G,O.updateProgressBarRect(),O.controlsWereVisibleBeforeDragging=B.controlsVisible,m.stopPropagation(),_.V("medium_progress_bar_modification")||m.preventDefault())},Ve9=function(O,m,G,B,Q,H){if(O.startPosition)if(H&&Q.isInlinePlayback&&O.startPosition&&!O.hasDraggedTheMinimumDistance&&Math.abs(G.y-O.startPosition.y)>Math.abs(G.x-O.startPosition.x))qS(O,B,Q);
else if(m.preventDefault(),m.stopPropagation(),B.videoDuration&&(O.startPosition&&!O.hasDraggedTheMinimumDistance&&(O.hasDraggedTheMinimumDistance=Math.abs(G.x-O.startPosition.x)>=1),Q.enableFineScrubbing&&(O.startPosition&&(O.isDraggedForFineScrubbing=-(G.y-O.startPosition.y)>=60),!O.startPosition||G.y>=O.startPosition.y||(B.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:dY6(B.draggedTime,B,Q.chapterData)}),O.setFineScrubbingDraggedTime(B.draggedTime),O.updateFilmStripDraggedYDistance(O.startPosition.y,
G.y,B))),O.hasDraggedTheMinimumDistance)){m=phB(O,B,G.x);if(O.isDraggedForFineScrubbing){var M;(M=B.playerApi)==null||M.pauseVideo();B.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:B.draggedTime,filmStripXDistance:dY6(m*B.videoDuration,B,Q.chapterData)})}Q.enableFineScrubbing&&(!Q.enableFineScrubbing||O.getFilmstripYPosition(B)<68)||B.setState({draggedTime:m*B.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:O.controlsWereVisibleBeforeDragging});var R;(R=
Q.cancelAutohideControlsFn)==null||R.call(Q)}},qS=function(O,m,G){var B=G.enableFineScrubbing&&m.fineScrubbingActiveState!=="off";
if(m.isDragging||B){B={isDragging:!1,playedTime:m.draggedTime,controlsVisible:O.controlsWereVisibleBeforeDragging};G.enableFineScrubbing&&m.fineScrubbingActiveState!=="on"&&(O.resetFilmStripYOffset(),B.fineScrubbingActiveState="off");var Q=Q===void 0?E8Y:Q;var H=_.yA(0);if(H&&Q){var M=Math.round(m.playedTime*1E3),R=Math.round(m.draggedTime*1E3);M>2147483647||R>2147483647||_.Bq(H,Q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(M),endMediaTimeMs:String(R),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}m.setState(B);
O.seekThrottle.fire(m.draggedTime,m,7);_.V("mweb_new_progress_bar_play_on_seek")&&O.resumeVideo(m);G.unmuteOnSeek&&(G=m.playerApi,m.volumeMuted&&(G==null||G.unMute()))}else m.setState({controlsVisible:!m.controlsVisible}),(H=G.triggerAutohideControlsAfterDelayFn)==null||H.call(G);O.startPosition=null;O.hasDraggedTheMinimumDistance=!1;O.isDraggedForFineScrubbing=!1;O.controlsWereVisibleBeforeDragging=!1};
xM.prototype.handleClick=function(O,m,G){this.updateProgressBarRect();O.stopPropagation();O=phB(this,m,O.clientX)*m.videoDuration;m.setState({playedTime:O});if(m.playerState!==2){var B;(B=G.triggerAutohideControlsAfterDelayFn)==null||B.call(G)}this.seekThrottle.fire(O,m,7)};
var phB=function(O,m,G){O=O.getProgressBarRect(m);return _.Lk(0,(G-O.left)/O.width,1)};
xM.prototype.resumeVideo=function(O){if(O.draggedTime<O.videoDuration){var m;(m=O.playerApi)==null||m.playVideo()}};
xM.prototype.onThrottledSeek=function(O,m,G){if(m=m.playerApi){var B;if((B=m.getVideoData())==null?0:B.isLive)B=this.getProgressState(m),O+=(B==null?void 0:B.seekableStart)||0;m.seekTo(O,void 0,void 0,void 0,G)}};
xM.prototype.getProgressState=function(O){var m=O==null?void 0:O.getPresentingPlayerType();return O==null?void 0:O.getProgressState(m)};var Cjh,L_J,oaB,aZy,EaB,kyK,yFb,cFb,Y0K;Cjh=_.a(function(O){var m=O.progressBarProps;var G=O.config;var B=O.progressBarWidthPx;var Q=O.chapterData;var H=NZz(m,function(){return G().isShortsPage}),M=function(){return!m().isHovering&&!G().isShortsPage};
O={};var R=_.bE("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(O.ytPlayerStoryboardHostMwebShorts=function(){return G().isShortsPage&&!1},O));
return _.q("yt-player-storyboard",null,_.q(_.U,{cond:function(){return m().isDragging||m().isHovering},
then:function(){return _.q(_.U,{cond:H,then:function(x){return _.q(_.U,{cond:M,then:function(){return _.q("div",{class:R,"aria-hidden":"true"},_.q(EaB,{props:m,config:G,isBigboard:!0,chapterData:Q}))},
else:function(){return _.q(L_J,{props:m,frame:x,config:G,progressBarWidthPx:B,chapterData:Q})}})}})}}))},"nf");
_.lZs=_.a(function(O){var m=O.progressBarProps;var G=NZz(m,O.isShortsPage);return _.q("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.q(_.U,{cond:function(){return m().isDragging||m().isHovering},
then:function(){return _.q(_.U,{cond:G,then:function(B){return _.q(oaB,{frame:B,props:m,isBigboard:!0})}})}}))},"of");
L_J=_.a(function(O){var m=O.props;var G=O.frame;var B=O.config;var Q=O.progressBarWidthPx;O=O.chapterData;var H={};H=_.bE("ytPlayerStoryboardHost",(H.ytPlayerStoryboardHostMwebShorts=function(){return B().isShortsPage&&!1},H.ytPlayerStoryboardHostInlinePlayer=function(){return B().isInlinePlayer},H.ytPlayerStoryboardHostFadeIn=function(){return B().useFadeInAnimation},H));
return _.q("div",{class:H,"aria-hidden":"true",style:function(){var M=m(),R=wQN(G()),x=Q();M=epM(M)/M.videoDuration;var t=x*M,W=R/2+6;R=x-(R/2+6);return"left: "+(t<=W?W/x*100:t>=R?R/x*100:M*100)+"%"}},_.q(_.U,{cond:function(){var M=m();
return!(B().isShortsPage&&M.videoDuration<15)},
then:function(){return _.q(oaB,{frame:G,props:m,isBigboard:!1})}}),_.q(EaB,{props:m,
config:B,isBigboard:!1,chapterData:O}))},"pf");
oaB=_.a(function(O){var m=O.frame;var G=O.props;var B=O.isBigboard;var Q=function(){var R,x;return(x=(R=G().playerApi)==null?void 0:R.getVideoContentRect())!=null?x:{width:0,height:0}},H=function(){return wQN(m())},M=function(){var R=m();
return R?R.height/R.rows:0};
O={};O=_.bE((O.ytPlayerStoryboardBigboardImageWrapper=B,O.ytPlayerStoryboardStoryboardImageWrapper=function(){return!B()},O));
return _.q("div",{class:O,style:function(){return"width: "+(B()?Q().width:H())+"px; height: "+(B()?Q().height:M())+"px;"}},_.q(aZy,{frame:m,
storyboardWidth:H,storyboardHeight:M,storyboardScale:function(){return(B()?Q().width:H())/H()}}))},"qf");
aZy=_.a(function(O){var m=O.frame;var G=O.storyboardWidth;var B=O.storyboardHeight;var Q=O.storyboardScale;var H=function(){var M=m().row,R=m().column,x=G(),t=B(),W=Q();return{left:-R*x*W,top:-M*t*W}};
return _.q("img",{src:function(){return m().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+H().left+"px; top: "+H().top+"px; width: "+m().width*Q()+"px; height: "+m().height*Q()+"px;"}})},"rf");
EaB=_.a(function(O){var m=O.props;var G=O.config;var B=O.isBigboard;var Q=O.chapterData;O={};O=_.bE("ytPlayerStoryboardMetadata",(O.ytPlayerStoryboardMetadataBigboard=B,O));return _.q("div",{class:O},_.q(_.U,{cond:B,then:function(){return _.q(_.Mr,null,_.q(kyK,{props:m,config:G}),_.q(_.U,{cond:function(){a:{var H=m();var M=G(),R=Q(),x;if((M==null?0:M.activeChapter)&&((x=_.b(M==null?void 0:M.activeChapter,a6))==null?0:x.title))H=!0;else{M=_.K(TZf(R));for(M=M.next();!M.done;M=M.next()){H=(M=_.b(M.value,
RHm))&&DYN(H,M);break a}H=!1}}return H},
then:function(){return _.q(yFb,{props:m,config:G,isBigboard:!0,chapterData:Q})}}))},
else:function(){return _.q(_.Mr,null,_.q(yFb,{props:m,config:G,isBigboard:!0,chapterData:Q}),_.q(kyK,{props:m,config:G}))}}))},"sf");
kyK=_.a(function(O){var m=O.props;var G=O.config;O={};O=_.bE("ytPlayerStoryboardTimestamp",(O.ytPlayerStoryboardTimestampShorts=function(){return G().isShortsPage},O.ytPlayerStoryboardTimestampIsHovering=function(){return m().isHovering||G().isShortsPage&&!0},O));
return _.q("div",{class:O},_.q(_.Mr,null,function(){return _.sPO(epM(m()))}))},"tf");
yFb=_.a(function(O){var m=O.props;var G=O.config;var B=O.isBigboard;var Q=O.chapterData;O={};B=_.bE("ytPlayerStoryboardTitle",(O.ytPlayerStoryboardTitleBigboard=B,O));return _.q("div",{class:B},_.q(_.U,{cond:function(){return!G().isShortsPage},
then:function(){return _.q(cFb,{props:m,activeChapter:function(){return G().activeChapter},
chapterData:Q})}}))},"uf");
cFb=_.a(function(O){var m=O.props;var G=O.activeChapter;var B=O.chapterData;return _.q(_.Mr,null,_.q(_.gi,{each:function(){return TZf(B())},
keyBy:"INDEX"},function(Q){return _.q(_.Mr,null,_.q(_.U,{cond:function(){return _.b(Q(),RHm)&&DYN(m(),_.b(Q(),RHm))},
then:function(){return _.q(Y0K,{timedMarker:function(){return _.b(Q(),RHm)}})}}))}),_.q(_.U,{cond:function(){var Q;
return G()&&((Q=_.b(G(),a6))==null?void 0:Q.title)},
then:function(Q){return _.q(_.Jg,{text:Q,noPreWrap:!0})}}))},"vf");
Y0K=_.a(function(O){var m=O.timedMarker;return _.q(_.Mr,null,_.q("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.q(_.T$,{icon:function(){return m().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.q(_.Jg,{text:function(){return m().label},
noPreWrap:!0}))},"wf");_.dZx=_.a(function(O){var m=O.progressBarProps;var G=O.playheadData;var B=O.config;O=_.Al("yt-progress-bar");var Q=_.Al("div"),H=_.Al("div"),M=_.K(_.Wf({width:0,left:0},void 0,"WloVn")),R=M.next().value,x=M.next().value,t=function(){H.value&&x(H.value.getBoundingClientRect())},W=function(){R().width<=0&&t();
return R()};
_.ve("resize",t);var Z=new xM(W,function(){},function(){return 0},function(){},function(){},function(){}),z=function(){return m()};
M=_.K(_.Wf(!1,void 0,"u8BZZb"));var J=M.next().value,n=M.next().value;M=_.nH(function(){n(!0);B().position===2?setTimeout(function(){t()},100):t()});
var I=_.nH(function(){n(!1);fZu(Z,z)()}),S=_.nH(function(oe){B().doSeekOnClick&&teb(Z,z,B)(oe);
return!1}),L=_.nH(function(oe){zEu(Z,z)(oe);
return!1}),C=_.nH(function(oe){JFb(Z,z)(oe);
return!1}),P=_.nH(function(oe){bdr(Z,z,B)(oe);
return!1}),w=_.nH(function(oe){XhA(Z,z,B)(oe);
return!1}),d=_.nH(function(){hEA(Z,z,B)();
return!1}),D=_.nH(function(){T_3(Z,z,B)();
return!1}),OS=_.nH(function(){gah(Z,z,B)();
return!1}),rN=_.nH(function(oe){uKs(z)(oe);
return!1});
_.ve("mousemove",jwr(Z,z,B));_.ve("mouseup",IZu(Z,z,B));_.Ln(function(){LRO(Q.value);n(!1);t();IZu(Z,z,B)()});
var xO={};xO=_.bE("ytPlayerProgressBarHost",function(){return B().className},(xO.ytPlayerProgressBarHostReadOnly=function(){return B().disableScrubbing},xO.ytPlayerProgressBarHostHidden=function(){return B().hideProgressBar&&!J()},xO.ytPlayerProgressBarHostLowerPlayer=function(){return B().position===0},xO.ytPlayerProgressBarHostBottomEdge=function(){return B().position===1},xO.ytPlayerProgressBarHostBottomInset=function(){return B().position===2},xO.ytPlayerProgressBarHostCustom=function(){return B().position===
3},xO));
var XI={},Vf=_.bE("ytPlayerProgressBarBackground",(XI.ytPlayerProgressBarBackgroundHide=function(){return B().position===2&&!J()&&!m().isDragging},XI));
XI={};XI=_.bE("ytPlayerProgressBarDragContainer",(XI.ytPlayerProgressBarDragContainerBottomEdge=function(){return B().position===1},XI));
var US={};US=_.bE("ytPlayerProgressBarProgressBar",(US.ytPlayerProgressBarProgressBarInset=function(){return B().position===2},US.ytPlayerProgressBarProgressBarInsetMinimized=function(){return B().position===2&&!J()&&!m().isDragging},US));
var CN=function(){return Math.floor(n8O(m())*100)};
return _.q("yt-progress-bar",{el:O,class:xO},_.q(_.U,{cond:function(){return B().position===2},
then:function(){return _.q("div",{class:Vf})}}),_.q("div",{el:Q,
"on:click":S,"on:touchstart":L,"on:touchmove":P,"on:mouseenter":M,"on:mousedown":C,"on:mouseleave":I,"on:mousemove":w,"on:mouseup":D,"on:touchend":d,"on:touchcancel":OS,"on:keydown":rN,class:XI,role:"slider","aria-valuenow":CN,"aria-valuetext":function(){return CN()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return m().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Xm("SEEK_SLIDER")},_.q("div",{el:H,class:US},_.q(xZr,{progressBarProps:m,config:B,highContrast:function(){return!!B().isInlinePlayback}}),_.q(_.U,{cond:function(){return B().chapterData&&g8r(B().chapterData)},
then:function(){return _.q(REs,{progressState:m,multiMarkersPlayerBarRenderer:function(){return B().chapterData},
progressBarWidth:function(){return R().width}})},
else:function(){return _.q(q0u,{progressBarProps:m,config:B})}}),_.q(UZ3,{progressBarProps:m,
playheadData:G,interpolateDotPosition:function(){return B().position!==2},
hidePlayhead:function(){return B().playheadDotBehavior===1&&!J()}}))),_.q(Cjh,{progressBarProps:m,
config:function(){return{activeChapter:kq6(m(),B().chapterData),getProgressBarWidthPx:function(){return W().width},
isShortsPage:!!B().isShortsPage,isInlinePlayer:!!B().isInlinePlayback,useFadeInAnimation:!!B().isInlinePlayback}},
progressBarWidthPx:function(){return R().width},
chapterData:function(){return B().chapterData}}))},"xf");
_.dZx.idomCompat=!0;Object.assign({},_.uar(),{setState:function(){},
domMeasurements:{},appApi:_.bXN(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var whK;
_.eEJ=_.a(function(){var O,m=(O=_.y4(PB5().playerApi))!=null?O:void 0;O=_.K(_.Wf(!1,void 0,"Z9NQ1b"));var G=O.next().value,B=O.next().value;O=_.K(_.Wf(!1,void 0,"HoVJXe"));var Q=O.next().value,H=O.next().value;O=_.K(_.Wf(!1,void 0,"DWCY3"));var M=O.next().value,R=O.next().value;O=_.K(_.Wf(!1,void 0,"g4C2Zd"));var x=O.next().value,t=O.next().value;O=_.K(_.Wf(0,void 0,"lmVfFb"));var W=O.next().value,Z=O.next().value;O=_.K(_.Wf(0,void 0,"mFLbzb"));var z=O.next().value,J=O.next().value;O=_.K(_.Wf(!1,void 0,
"hQN4Wb"));var n=O.next().value,I=O.next().value;O=_.K(_.Wf(0,void 0,"WWU0fb"));var S=O.next().value,L=O.next().value;O=_.K(_.Wf(0,void 0,"MJ7LMd"));var C=O.next().value,P=O.next().value;O=_.K(_.Wf("",void 0,"hnomOe"));var w=O.next().value,d=O.next().value;O=_.K(_.Wf(-1,void 0,"ARe3pf"));var D=O.next().value,OS=O.next().value,rN=_.bF(function(){var xO={controlsVisible:G(),isOverlayHidden:Q(),shouldWaitToHideControls:M(),isDragging:x(),isHovering:n(),videoDuration:S(),playedTime:C(),videoId:w(),draggedTime:z(),
hoveredTime:W(),playerState:D()};return Object.assign({},_.uar(),xO,{domMeasurements:{},setState:function(XI){XI.controlsVisible!==void 0&&B(XI.controlsVisible);XI.isOverlayHidden!==void 0&&H(XI.isOverlayHidden);XI.shouldWaitToHideControls!==void 0&&R(XI.shouldWaitToHideControls);XI.isDragging!==void 0&&t(XI.isDragging);XI.isHovering!==void 0&&I(XI.isHovering);XI.draggedTime!==void 0&&J(XI.draggedTime);XI.hoveredTime!==void 0&&Z(XI.hoveredTime);XI.videoDuration!==void 0&&L(XI.videoDuration);XI.playedTime!==
void 0&&P(XI.playedTime);XI.videoId!==void 0&&d(XI.videoId);XI.playerState!==void 0&&OS(XI.playerState)},
appApi:_.bXN(),playerApi:m})},void 0,"Au4PIf");
_.EZ(function(){m==null||m.addEventListener("onVideoProgress",SkN(rN));m==null||m.addEventListener("onVideoDataChange",pQf(rN));m==null||m.addEventListener("onStateChange",jPe(rN))});
_.LS(function(){if(m==null?0:m.isReady())m==null||m.removeEventListener("onVideoProgress",SkN(rN)),m==null||m.removeEventListener("onVideoDataChange",pQf(rN)),m==null||m.removeEventListener("onStateChange",jPe(rN))});
return _.q("desktop-shorts-player-controls",null,_.q(whK,{playerControlsProps:rN}))},"yf");
whK=_.a(function(O){var m=O.playerControlsProps;return _.q("div",{class:"desktopShortsPlayerControlsHost"},_.q(_.dZx,{progressBarProps:m,config:function(){return{isShortsPage:!0,hideProgressBar:m().videoDuration<30&&m().playerState!==2&&!m().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"zf");_.DZ3=_.a(function(O){function m(xO){xO!==0||Z()?xO>50&&(Z()||!J())?(z(!1),n(!0)):xO<=50&&(Z()||J())&&(z(!1),n(!1)):z(!0)}
function G(xO,XI){var Vf;return _.r(function(US){if(US.nextAddress==1)return US.yield(_.zM(),2);Vf=US.yieldResult;XI&&Vf?(Vf.unMute(!0),xO&&(A6f(xO,Vf.getVolume()),S(Vf.getVolume()))):Vf&&(Vf.mute(!0),xO&&A6f(xO,0));_.ju(US)})}
function B(xO){var XI,Vf;return _.r(function(US){if(US.nextAddress==1)return US.yield(_.zM(),2);XI=US.yieldResult;Vf=50;XI&&(Vf=XI.getVolume(),XI.isMuted()?A6f(xO,0):A6f(xO,Vf));S(Vf);_.ju(US)})}
var Q=O.orientation;O=_.Al("desktop-shorts-volume-controls");var H=_.Al("button"),M=_.GX("input"),R=_.K(_.Wf(!1,void 0,"MvN0Tc")),x=R.next().value,t=R.next().value,W=_.K(_.Wf(!1,void 0,"aSjsEb"));R=W.next().value;W=W.next().value;var Z=R,z=W;W=_.K(_.Wf(!0,void 0,"FUh46d"));R=W.next().value;W=W.next().value;var J=R,n=W;R=_.K(_.Wf(50,void 0,"yPke4d"));var I=R.next().value,S=R.next().value;R=_.bF(function(){var xO=Z();return _.V("web_shorts_keyboard_enable_mute_shortcut")?xO?_.Xm("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Xm("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):xO?_.Xm("UNMUTE_VOLUME",void 0,"Unmute"):_.Xm("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
W=_.bF(function(){var xO=Z(),XI=J();return{sources:[{clientResource:{imageName:xO?_.V("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":XI?_.V("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.V("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var L=_.bF(function(){var xO=I();return Z()?xO+"% volume muted":xO+"% volume"},void 0,"xZsRmc"),C=_.bF(function(){return Q()==="vertical_down"},void 0,"FVqYmb");
_.Ln(function(){function xO(){t(!0)}
function XI(){t(!1)}
M&&M.value&&(M.value.addEventListener("focus",xO),M.value.addEventListener("focusout",XI),B(M.value).then(function(){m(Number(OcY(M.value)))}));
H&&H.value&&(H.value.addEventListener("focus",xO),H.value.addEventListener("focusout",XI));_.LS(function(){var Vf;M==null||(Vf=M.value)==null||Vf.removeEventListener("focus",xO);var US;M==null||(US=M.value)==null||US.removeEventListener("focusout",XI);var CN;H==null||(CN=H.value)==null||CN.removeEventListener("focus",xO);var oe;H==null||(oe=H.value)==null||oe.removeEventListener("focusout",XI)})});
var P=_.nH(function(){if(M&&M.value){var xO=Number(OcY(M.value));FRp(xO);S(xO);M.value.style.setProperty("--gradient-percent",xO+"%");m(xO)}return!1}),w=_.nH(function(){t(!0)}),d=_.nH(function(){M&&M.value&&(G(M.value,Z()),z(!Z()));
return!1}),D={},OS={},rN={};
return _.q("desktop-shorts-volume-controls",{"on:pointerleave":_.nH(function(){t(!1)}),
class:_.bE("ytdDesktopShortsVolumeControlsHost",(D.ytdDesktopShortsVolumeControlsHostVertical=C,D.ytdDesktopShortsVolumeControlsHostExpanded=x,D)),el:O},_.q(_.U,{cond:function(){return!C()},
then:function(){var xO={};return _.q("div",{class:_.bE("ytdDesktopShortsVolumeControlsBackgroundScrim",(xO.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=x,xO))})}}),_.q("div",{class:_.bE((OS.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=C,OS))},_.q("button",{"aria-label":R,
title:R,el:H,"on:click":d,"on:pointerenter":w,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},W?_.q(_.KH,{data:W,alt:R,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.q("div",{class:_.bE("ytdDesktopShortsVolumeControlsSliderContainer",(rN.ytdDesktopShortsVolumeControlsSliderContainerExpanded=x,rN.ytdDesktopShortsVolumeControlsSliderContainerVertical=C,rN.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=C,rN.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return x()&&C()},rN))},_.q("input",{"aria-label":_.Xm("VOLUME"),
title:_.Xm("VOLUME"),el:M,"on:input":P,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":I,"aria-valuetext":L,"aria-valuemin":0,"aria-valuemax":100})))},"Af");_.swJ=_.a(function(O){var m=O.data;var G=O.extractOverlay;O={};return _.q("player-disclosure-view-model",{class:_.bE("ytwPlayerDisclosureViewModelHost",(O.ytwPlayerDisclosureViewModelExtractOverlay=function(){return G==null?void 0:G()},O))},_.q(_.p3,{command:function(){return m().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.q(_.U,{cond:function(){return m().iconName},
then:function(B){return _.q(_.T$,{icon:B})}}),_.q("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return m().text}),_.q(_.U,{cond:function(){return m().showEndChevron},
then:function(){return _.q(_.T$,{icon:"CHEVRON_RIGHT"})}})))},"Bf");var N_r=_.a(function(O){var m=O.data;var G=O.overlayDensity;O={};return _.q("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.q(_.u5,{data:function(){return m().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(B){var Q=B.data;
return _.q(_.vP,{data:function(){return(G==null?void 0:G())===1?Object.assign({},Q(),{avatar:{avatarViewModel:Object.assign({},_.b(Q().avatar,_.cu),{avatarImageSize:"AVATAR_SIZE_M"})}}):Q()}})}}),_.q(_.u5,{data:function(){return m().avatarStackViewModel}},{avatarStackViewModel:function(B){return _.q(_.K5,{data:B.data})}}),_.q(_.Jg,{className:_.bE("ytReelChannelBarViewModelChannelName",(O.ytReelChannelBarViewModelChannelNameLarge=function(){return(G==null?void 0:G())===1},O)),
text:function(){return m().channelName},
linkInheritColor:!0,userInput:!0}),_.q("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.q(_.u5,{data:function(){return m().subscribeButtonViewModel}},{subscribeButtonViewModel:function(B){var Q=B.data;
return _.q(_.Q8,{data:function(){return(G==null?void 0:G())===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:_.oF})),_.q("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.q(_.u5,{data:function(){var B,Q;return(Q=_.b((B=m())==null?void 0:B.sponsorButtonViewModel,bKs))==null?void 0:Q.sponsorButton}},{buttonViewModel:function(B){return _.q(_.oF,{data:B.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Cf");var PjK=_.a(function(O){var m=function(){var B;return(O==null?void 0:(B=O.overlayDensity)==null?void 0:B.call(O))===1?22:16},G={};
return _.q("yt-reel-multi-format-link-view-model",{class:_.bE("ytReelMultiFormatLinkViewModelHost",(G.ytReelMultiFormatLinkViewModelHostTall=!0,G.ytReelMultiFormatLinkViewModelHostLarge=function(){var B;return((B=O.overlayDensity)==null?void 0:B.call(O))===1},G))},_.q(_.p3,{ariaLabel:function(){return O.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return O.data().command}},_.q("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.q(_.U,{cond:function(){return O.data().icon},
then:function(B){return _.q(_.KH,{data:B,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:m})}}),_.q(_.Jg,{text:function(){return O.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Df");
PjK.idomCompat=!0;var F_K=_.a(function(O){var m=O.data;var G=O.overlayDensity;var B=O.extractOverlay;var Q=_.Al("yt-shorts-suggested-action-view-model");O=_.K(_.Wf(!1,void 0,"S60Hzc"));var H=O.next().value,M=O.next().value;O=_.K(_.Wf(!1,void 0,"O76chf"));var R=O.next().value,x=O.next().value,t=function(){return m().isMultiLineSa},W=_.fJ(vjS,function(){var d,D;
return(D=(d=m().toggleableContent)==null?void 0:d.entityKey)!=null?D:""}),Z=function(){var d,D,OS;
return(OS=m().toggleableContent)!=null&&OS.entityKey?(D=(d=W())==null?void 0:d.value)!=null?D:!1:!1},z=function(){var d,D,OS,rN,xO,XI,Vf,US,CN,oe,K$;
return m().toggleableContent?Z()?(d=m().toggleableContent)==null?void 0:d.toggledData:(D=m().toggleableContent)==null?void 0:D.untoggledData:{primaryText:(US=(OS=m().defaultContent)==null?void 0:OS.primaryText)!=null?US:m().text,secondaryText:(rN=m().defaultContent)==null?void 0:rN.secondaryText,onTapCommand:(CN=(xO=m().defaultContent)==null?void 0:xO.onTapCommand)!=null?CN:m().onTapCommand,icon:(oe=(XI=m().defaultContent)==null?void 0:XI.icon)!=null?oe:m().icon,image:(K$=(Vf=m().defaultContent)==
null?void 0:Vf.image)!=null?K$:m().image}},J=function(){return t()?m().trailingTapTarget:void 0},n=function(d,D){return function(){return H()?D:d}},I=function(){return{leadingSection:n("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(G==null?void 0:G())===1?n("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):n("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:n("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:n("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:n("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
O={};O=_.bE((O.ytShortsSuggestedActionViewModelStaticHost=function(){return!t()},O.ytShortsSuggestedActionViewModelDynamicHost=t,O.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return t()&&R()},O.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return t()&&!R()},O.ytShortsSuggestedActionViewModelExtractOverlay=function(){return B==null?void 0:B()},O));
_.Ln(function(){if(t()){var d=0,D;if((D=m().animationParams)==null?0:D.shouldExpand){var OS,rN;d=((rN=(OS=m().animationParams)==null?void 0:OS.expansionDelaySecs)!=null?rN:0)*1E3}var xO,XI=((xO=m().animationParams)==null?0:xO.shouldExpand)?setTimeout(function(){M(!0)},d):void 0,Vf,US;
d=((Vf=m().animationParams)==null?0:Vf.visibilityDelaySecs)?((US=m().animationParams)==null?NaN:US.visibilityDelaySecs)*1E3:0;var CN=setTimeout(function(){x(!0)},d);
_.LS(function(){XI&&clearTimeout(XI);clearTimeout(CN)})}});
var S=function(d){_.PE(d,Object.assign({},{form:{element:Q.value}}))},L=_.nH(function(){var d,D=(d=z())==null?void 0:d.onTapCommand;
D&&S(D)}),C=_.nH(function(){var d,D;
if(d=(D=J())==null?void 0:D.onTapCommand)return S(d),!1}),P=_.hH({"vertical-align":"bottom",
"border-radius":function(){var d;return t()?((d=m().defaultContent)==null?0:d.isCircleImage)?"50%":"4px":"0px"},
width:function(){var d,D,OS;return t()&&((d=m().defaultContent)==null?0:d.imageSize)?((OS=(D=m().defaultContent)==null?void 0:D.imageSize)!=null?OS:24)+"px":null},
height:function(){var d,D,OS;return t()&&((d=m().defaultContent)==null?0:d.imageSize)?((OS=(D=m().defaultContent)==null?void 0:D.imageSize)!=null?OS:24)+"px":null}}),w={};
return _.q("yt-shorts-suggested-action-view-model",{class:O,el:Q},_.q("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.q("button",{class:_.bE(function(){return t()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var d;
return(d=m().useFullRoundedBorder)!=null&&d?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!J()&&t()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":t()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var d;
return(d=m().disableFixedHeight)!=null&&d?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(w.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(G==null?void 0:G())===1},w.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return B==null?void 0:B()},w)),
"on:click":L},_.q(_.S1,{model:{color:4}}),_.q("div",{class:_.bE(function(){return t()?I().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.q(_.U,{cond:function(){var d;
return(d=z())==null?void 0:d.image},
then:function(d){return _.q(_.KH,{data:d,alt:"",className:function(){return t()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:P})}}),_.q(_.U,{cond:function(){var d,D;
return(d=z())==null?void 0:(D=d.icon)==null?void 0:D.iconType},
then:function(d){return _.q(_.T$,{icon:d,active:Z,className:function(){return t()?H()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.q("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.q(_.U,{cond:function(){var d;
return(d=z())==null?void 0:d.primaryText},
then:function(d){return _.q("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.q(_.Jg,{text:d}))}}),_.q(_.U,{cond:function(){var d;
return(d=z())==null?void 0:d.secondaryText},
then:function(d){return _.q("div",{class:function(){return I().secondaryText()}},_.q(_.Jg,{text:d}))}}))),_.q(_.U,{cond:J,
then:function(d){return _.q("div",{class:_.bE(function(){return I().trailingSection()},function(){var D,OS;
return(B==null?void 0:B())&&((OS=(D=I()).trailingSectionExtractOverlay)==null?void 0:OS.call(D))||""}),
"aria-label":function(){var D;return(D=d().a11yLabel)!=null?D:""},
"on:click":C,role:"button",tabindex:0},_.q(_.S1,{model:{color:4}}),_.q(_.T$,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Ef");var AFb=_.a(function(O){var m=O.data;var G=O.overlayDensity;var B=_.Al("yt-shorts-video-title-view-model");O=_.nH(function(M){if(_.l5(_.o_(M),B.value,["A".toString()]))return!1;(M=m().truncatedTextOnTapCommand)&&_.PE(M);return!1});
var Q={},H={};return _.q("yt-shorts-video-title-view-model",{el:B,class:_.bE("ytShortsVideoTitleViewModelHost",(Q.ytShortsVideoTitleViewModelHostClickable=function(){return!!m().truncatedTextOnTapCommand},Q)),
"on:click":O},_.q("h2",{class:_.bE("ytShortsVideoTitleViewModelShortsVideoTitle",(H.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(G==null?void 0:G())===1},H))},_.q(_.Jg,{text:function(){return m().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(G==null?void 0:G())===1}})))},"Ff");_.OS9=_.a(function(O){var m=O.data;var G=O.overlayDensity;var B=O.extractOverlay;var Q=function(){return(G==null?void 0:G())===1};
return _.q("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.q(_.u5,{data:function(){return m().metadataItems}},{badgeViewModel:function(H){H=H.data;
return _.q("div",{class:_.bE(function(){return Q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.q(_.jF,{data:H}))},
playerDisclosureViewModel:function(H){H=H.data;return _.q("div",{class:_.bE(function(){return Q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.q(_.swJ,{data:H,
extractOverlay:B}))},
shortsSuggestedActionViewModel:function(H){H=H.data;return _.q("div",{class:_.bE(function(){return Q()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.q(F_K,{data:H,
overlayDensity:G,extractOverlay:B}))},
reelChannelBarViewModel:function(H){H=H.data;var M={};return _.q("div",{class:_.bE("ytReelMetapanelViewModelMetapanelItem",(M.ytReelMetapanelViewModelExpansive=function(){return Q()},M))},_.q(N_r,{data:H,
overlayDensity:G}))},
reelMultiFormatLinkViewModel:function(H){H=H.data;var M={};return _.q("div",{class:_.bE("ytReelMetapanelViewModelMetapanelItem",(M.ytReelMetapanelViewModelExpansive=function(){return Q()},M))},_.q(PjK,{data:H,
overlayDensity:G}))},
shortsVideoTitleViewModel:function(H){H=H.data;var M={};return _.q("div",{class:_.bE("ytReelMetapanelViewModelMetapanelItem",(M.ytReelMetapanelViewModelExpansive=function(){return Q()},M))},_.q(AFb,{data:H,
overlayDensity:G}))},
reelSoundMetadataViewModel:function(H){H=H.data;var M={};return _.q("div",{class:_.bE("ytReelMetapanelViewModelMetapanelItem",(M.ytReelMetapanelViewModelExpansive=function(){return Q()},M))},_.q(_.N53,{data:H,
overlayDensity:G}))},
toggleButtonViewModel:function(H){H=H.data;var M={};return _.q("div",{class:_.bE("ytReelMetapanelViewModelMetapanelItem",(M.ytReelMetapanelViewModelExpansive=function(){return Q()},M))},_.q(_.BT,{data:H}))}}))},"Gf");var m_s=_.a(function(O){var m=_.ru(O,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),G=m.size,B=m.onTap,Q=m.disabled,H=m.tooltipText;return _.q("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.q(_.C3,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:G(),disabled:Q(),tooltipText:H(),onTap:B}},
iconName:O.iconType}))},"Hf"),GJJ=_.a(function(O){function m(W){W.stopPropagation();
W.code==="ArrowUp"?(W.preventDefault(),BVr(R.value)):W.code==="ArrowDown"?(W.preventDefault(),QBN(R.value)):W.code==="KeyM"?m7e():(W.code==="KeyK"||W.code==="Space")&&Gsr(x())}
var G=_.ru(O,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});O=G.previousButtonDisabled;var B=G.nextButtonDisabled,Q=G.data,H=G.playabilityStatus,M=G.previewThumbnail,R=_.Al("ytd-shorts-miniplayer-overlay"),x=_.wg(_.Mtp),t;_.EZ(function(){(t=_.Y6(R.value))&&t.addEventListener("keydown",m)});
_.LS(function(){var W;(W=t)==null||W.removeEventListener("keydown",m)});
G=function(){var W,Z,z;return(W=Q())==null?void 0:(Z=W.reelPlayerOverlayRenderer)==null?void 0:(z=Z.likeButton)==null?void 0:z.likeButtonRenderer};
return _.q("ytd-shorts-miniplayer-overlay",{el:R,class:"ytdShortsMiniplayerOverlayHost"},_.q("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.hH({"background-image":function(){var W=M();return W?'url("'+_.tH(W.thumbnails)+'")':""}})}),_.q("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.q("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.q(m_s,{iconType:function(){var W=x();
return W===2||W===-1||W===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Gsr(x())},
tooltipText:function(){var W=x();return W===1||W===3?_.Xm("PLAYER_LABEL_PAUSE"):_.Xm("PLAYER_LABEL_PLAY")}}),_.q(_.DZ3,{orientation:"horizontal_right"})),_.q("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.q(m_s,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:O,onTap:function(){BVr(R.value)},
tooltipText:_.Xm("PREVIOUS_VIDEO_LABEL")}),_.q(m_s,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:B,onTap:function(){QBN(R.value)},
tooltipText:_.Xm("NEXT_VIDEO_LABEL")}),_.V("web_shorts_pip_like_button")?_.q("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.q(mpr,{buttonTooltipPosition:"left",data:G,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.q("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.q(_.U,{cond:function(){var W,Z;return _.b((W=Q())==null?void 0:(Z=W.reelPlayerOverlayRenderer)==null?void 0:Z.metapanel,
_.ZKs)},
then:function(W){return _.q("div",{class:_.bE("ytdShortsMiniplayerOverlayInteractive")},_.q(_.OS9,{data:W}))}})),_.q("div",{class:_.bE("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var W;return!((W=Q())==null||!W.adsOverlay)||H()&&!DVp(H())}},_.q("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.q(_.eEJ,null)))),_.q(_.U,{cond:function(){var W=Q(),Z,z;
W=_.b(W==null?void 0:(Z=W.adsOverlay)==null?void 0:(z=Z.fulfillmentContent)==null?void 0:z.fulfilledLayout,MB3);return _.b(W==null?void 0:W.renderingContent,Uv9)},
then:function(W){return _.q("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.q(C6o,{data:W}))}}))},"If");var HcN=_.a(function(){var O=_.K(_.Wf(new _.hY(NaN,NaN),void 0,"hq9Bjf")),m=O.next().value,G=O.next().value;O=_.K(_.Wf(!1,void 0,"Mu3aZc"));var B=O.next().value,Q=O.next().value,H=_.K(_.Wf(!1,void 0,"LGtoFb"));O=H.next().value;var M=H.next().value,R=_.KR().resolve(_.c$).miniplayerPropSignalMap[0],x=R.data,t=R.shortsData,W=R.nextButtonDisabled,Z=R.shortsPreviewThumbnail,z=R.previousButtonDisabled,J=R.externalPlaylistData;H=R.toastData;var n=R.playabilityStatus,I=R.isDisabled,S=R.playerVe,L=R.closeVe;
R=_.wg(_.im);_.Fg("yt-pip-window-resized",function(d){G(d)});
_.Fg("yt-activate-pip-miniplayer",function(){return _.r(function(d){M(!0);_.ju(d)})});
var C=function(){var d;return!((d=J())==null||!d.contents)&&B()},P=function(){var d=m(),D=!!x(),OS=C();
d=d.clone();D&&(d.height-=76);OS&&(d.height-=285);return d},w=function(){Q(!B())};
_.ER(function(){var d=S(),D=_.yA(11),OS=_.kf(11);D&&OS&&d&&(_.Pd(D,OS,d),OS=L())&&(_.Fm(D,d,[OS]),_.Or(D,[OS]))},"fHkmfb");
return _.q("ytd-pip-container",{class:"ytdPipContainerHost"},_.q(_.U,{cond:O,then:function(){return _.q(_.$Z0,{isDisabled:I,playabilityStatus:n,size:P})}}),_.q(_.U,{cond:x,
then:function(){return _.q(_.vah,{data:x,expanded:B,onExpandClick:w,playlistData:J})}}),_.q(_.U,{cond:C,
then:function(){return _.q("div",{class:"ytdPipContainerPlaylistPanel"},_.q(_.AM2,{data:J,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.q(_.U,{cond:R,
then:function(){return _.q(GJJ,{data:t,nextButtonDisabled:W,previousButtonDisabled:z,playabilityStatus:n,previewThumbnail:Z})}}),_.q("div",{class:"ytdPipContainerToast"},_.q(_.MeK,{toastData:H})))},"Jf");var Um=function(O,m){var G=this;this.pipController=O;this.JSC$18723_clientRoot=m;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=ZXI();this.watchPipEnabled=_.V("web_watch_pip");this.shortsPipEnabled=_.V("web_shorts_pip");this.JSC$18723_watchWhileEnabled=_.V("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;_.dc(_.Kf(),QtY,function(B){G.isSingleOptionSurveyActive=B});
this.JSC$18723_onPlayerPlayVideo=this.JSC$18723_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);_.NT(_.sJ.getInstance(),this.miniplayerServiceActionMap,this.JSC$18723_clientRoot);O.pictureInPictureSupported()&&_.LE("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Hh3,iSs,$_0,x_3,qRo,Jdp;
Um.prototype.handleMediaSessionPipActivation=function(){var O=this,m;return _.r(function(G){_.c3().mediaSessionPipActivation=!0;m=_.KR().resolve(_.KJ);return m.isOnWatch()&&O.watchPipEnabled?(_.c3().watchPipActivation=!0,_.Bhr(O,m.data),G.jumpTo(0)):m.isOnShorts()&&O.shortsPipEnabled?(_.c3().shortsPipActivation=!0,_.Q9u(O),G.jumpTo(0)):O.isMiniplayerActive()&&O.watchPipEnabled&&!O.watchWhileMode?G.yield(HS3(O),0):G.jumpTo(0)})};
var HS3=function(O){var m,G,B,Q;return _.r(function(H){if(H.nextAddress==1)return m=!O.miniplayerToPipMode,G=O.playerElement,B=O.miniplayerData,Q=O.watchResponse,H.yield(O.deactivate(),2);if(H.nextAddress!=3)return m?(_.c3().mediaSessionPipActivation=!0,_.c3().watchPipActivation=!0):_.c3().miniplayerButtonActivation=!0,H.yield(O.activate(G,B,Q),3);O.miniplayerToPipMode=m;_.ju(H)})};
Um.prototype.onDownloadedVideoDeleted=function(O){var m,G=_.b((m=this.miniplayerData)==null?void 0:m.watchEndpoint,_.GC),B,Q;G&&((B=this.watchResponse)==null?void 0:(Q=B.playerResponse)==null?void 0:Q.offlineState)!==void 0&&(m=G.videoId)&&O&&m===O&&this.close()};
Um.prototype.onShowMiniplayerCommand=function(O){var m=this,G,B,Q,H,M,R,x,t,W,Z,z;return _.r(function(J){switch(J.nextAddress){case 1:return G=_.b(O,KOs),Q=(B=G)==null?void 0:B.miniplayerCommand,H=_.b(Q,_.GC),Q&&H&&!m.active?J.yield(_.FW.getInstance(),2):J.return();case 2:return M=J.yieldResult,J.yield((R=M)==null?void 0:R.get("yt-miniplayer-shown-video-id"),3);case 3:x=J.yieldResult;t=H.videoId;if(!t||x===t)return J.return();W=_.KR().resolve(_.KJ);if(W.isOnWatch())return _.ay(Error("Oj")),J.return();
Z={channelItem:{externalId:btoa(t)}};m.readyToResumeVe=_.Zv(121253,void 0,void 0,Z);_.c3().showMiniplayerCommandActivation=!0;return J.yield(_.V22(m,Q,!0),4);case 4:return m.active&&(_.t2(m,{readyToResumeVe:m.readyToResumeVe,isReadyToResume:!0}),m.isReadyToResume=!0),J.yield((z=M)==null?void 0:z.set("yt-miniplayer-shown-video-id",H.videoId),5);case 5:m.readyToResumeVe=void 0,_.ju(J)}})};
Um.prototype.init=function(O){this.miniplayerEl?_.ay(new _.j9("MiniplayerService already initialized.")):this.miniplayerEl=O};
Um.prototype.isInitialized=function(){var O=!!this.miniplayerEl;O||_.ay(new _.j9("MiniplayerService used before initialized."));return O};
_.Bhr=function(O,m){if(O.isInitialized()){var G=_.EQ(m.response,!1,m.playerResponse),B=_.KR().resolve(_.KJ).getPlayerFromWatch();_.c3().currentEndpoint=G.watchEndpoint||null;O.activate(B,G,m)}};
_.Q9u=function(O){if(O.isInitialized()){var m=_.KR().resolve(_.KJ).getPlayerFromShorts();O.activate(m)}};
Hh3=function(O,m){var G;(G=!O.isInitialized())||(G=_.KR().resolve(_.KJ).isOnWatch()&&O.watchPipMode,G=!(O.isMiniplayerActive()&&(_.c3().userActivation||_.c3().lockupActivation||G)));if(G)return!1;vvs(O,m)?_.iX(O):Jdp(O,m);return O.watchPipMode?!_.KR().resolve(_.KJ).isOnWatch():!0};
Um.prototype.isMiniplayerActive=function(){return this.active};
var vvs=function(O,m){var G;m=(G=_.b(m,_.GC))==null?void 0:G.videoId;var B,Q;O=(Q=_.b((B=O.miniplayerData)==null?void 0:B.watchEndpoint,_.GC))==null?void 0:Q.videoId;return m!=null&&m===O};
Um.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.iP(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.xc(this.miniplayerEl,"yt-navigate-home-action"))};
_.V22=function(O,m,G,B){G=G===void 0?!1:G;var Q,H,M;return _.r(function(R){switch(R.nextAddress){case 1:if(O.active){R.jumpTo(2);break}Q=_.KR().resolve(_.KJ);if(M=(H=O.playerElement)!=null?H:Q.getPlayerFromWatch()){R.jumpTo(3);break}return R.yield(_.KR().resolve(_.q1),4);case 4:M=Q.getPlayerFromWatch();case 3:if(!M){_.ay(Error("Qj"));R.jumpTo(2);break}return R.yield(O.activate(M,B),2);case 2:return O.active?R.yield(Jdp(O,m,G),0):R.return()}})};
Um.prototype.activate=function(O,m,G){var B=this,Q,H,M,R,x,t,W,Z,z;return _.r(function(J){switch(J.nextAddress){case 1:if(!B.isInitialized())return J.return();if(!O)return _.ay(Error("Qj")),J.return();if(_.nS8()||B.isMiniplayerActive())var n=!0;else n=_.c3().watchPipActivation||_.c3().watchWhileActivation,_.KR().resolve(_.KJ).isOnWatch()&&!n?(_.ay(new _.j9("miniplayer activated on watch page")),n=!0):n=_.c3().watchWhileActivation?B.userDeactivatedWatchWhile||!!document.pictureInPictureElement||gWN():
!1;if(n)return b5$(),J.return();Q=_.c3().mediaSessionPipActivation;H=_.c3().shortsPipActivation;M=_.c3().watchPipActivation;x=(R=_.c3().watchWhileActivation)||M;t=M||H;if(!B.pictureInPictureEnabled()||!t){J.jumpTo(2);break}return J.yield(KNB(B,Q),3);case 3:if(!J.yieldResult)return _.ay(Error("Pj")),b5$(),J.return();case 2:return B.setActive(!0),B.watchResponse=G,B.playerElement=O,B.updateMiniplayerData(m),J.yield($_0(B,O),4);case 4:if(!B.active)return _.ay(new _.j9("miniplayer deactivated during activation")),
B.removePlayerListeners(),J.return();n=_.KR().resolve(_.Rt);n.addEventListener("yt-navigate",_.f7(B,B.onPlaylistNavigate));n.addEventListener("yt-playlist-data-updated",_.f7(B,B.JSC$18723_onPlaylistDataUpdated));B.JSC$18723_onPlaylistDataUpdated();b5$();B.JSC$18723_watchWhileEnabled&&_.ME9(B,R);B.pictureInPictureEnabled()&&B.shortsPipEnabled&&(B.shortsPipMode=H,_.Kf().dispatch(MXU(B.shortsPipMode)));B.pictureInPictureEnabled()&&B.watchPipEnabled&&(B.watchPipMode=M,_.jx5(B.handleMediaSessionPipActivation));
B.player&&(W=B.player.getPlayerState(),Z=W===1,_.Kf().dispatch(ZMu(W)),_.UB(B.miniplayerEl,"yt-miniplayer-play-state-changed",[Z]),_.c3().isVideoPlaying=Z);_.UB(B.miniplayerEl,"yt-miniplayer-endpoint-changed");r0h(B);_.Rls(B);if(B.shortsPipMode||B.watchPipMode)J=J.yield(_.xc(B.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{n=J.yield;var I=_.xc(B.miniplayerEl,"yt-activate-miniplayer",[x])[0];J=n.call(J,I,6)}return J;case 6:if(B.watchResponse){n=B.getScreenLayer();I=_.yA(0);var S=cSO(0);I&&S&&
(_.Yf(I,S,n),n===0&&kBI(void 0,0))}iSs(B);x_3(B,!0);(z=B.getPlayerElement())==null||z.focusOnPlayer();_.ju(J)}})};
Um.prototype.updateMiniplayerData=function(O){this.miniplayerData=O;_.t2(this,{data:O})};
_.Rls=function(O){var m,G,B=((m=O.miniplayerData)==null?void 0:(G=m.miniplayerRenderer)==null?void 0:G.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";m=O.watchWhileMode||O.watchPipMode?B&&!_.KR().resolve(_.KJ).isOnWatch():B;_.t2(O,{isDisabled:m});var Q,H;G=_.b((Q=O.miniplayerData)==null?void 0:(H=Q.miniplayerRenderer)==null?void 0:H.minimizedEndpoint,_.Y4);m&&G&&_.KR().resolve(_.O5).openSheet({openPopupActionCommand:{openPopupAction:G}},O.miniplayerEl)};
iSs=function(O){if(O.watchResponse&&!qRo(O)){var m,G=(m=O.watchResponse.playerResponse)==null?void 0:m.trackingParams;G&&(_.t2(O,{expandVe:_.Zv(35989),closeVe:_.Zv(34699),readyToResumeCloseVe:_.Zv(131070),repositionVe:_.Zv(226204),resizeVe:_.Zv(226205)}),_.t2(O,{playerVe:_.Ez(G)}))}};
$_0=function(O,m){return _.r(function(G){if(G.nextAddress==1)return m.preparePlayer(),G.yield(m.getPlayerPromise(),2);O.player=G.yieldResult;O.player&&(O.player.addEventListener("onPlayVideo",O.JSC$18723_onPlayerPlayVideo),O.player.addEventListener("onCloseMiniplayer",O.onPlayerCloseMiniplayer),O.player.addEventListener("onExpandMiniplayer",O.onPlayerExpandMiniplayer),O.player.addEventListener("onStateChange",O.onPlayerStateChange));_.ju(G)})};
_.v=Um.prototype;_.v.JSC$18723_onPlayerPlayVideo=function(O){var m=O.sessionData&&"autonav"in O.sessionData,G;O.sessionData&&O.sessionData.itct&&(G=O.sessionData.itct);var B=O.watchEndpoint;m=B&&m?_.WXI(B,G):_.Mo(O.videoId,O.listId||void 0,G);O.sessionData&&_.vd(_.b(m.commandMetadata,_.bP).url,O.sessionData);Jdp(this,m)};
_.v.onPlayerExpandMiniplayer=function(){_.iX(this)};
_.v.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.v.onPlayerStateChange=function(){if(this.player){var O=this.player.getPlayerState(),m=O===1;_.Kf().dispatch(ZMu(O));_.Kf().dispatch(_.VX9(O));_.UB(this.miniplayerEl,"yt-miniplayer-play-state-changed",[m]);_.c3().isVideoPlaying=m;if(O===0){m=!_.nK.getInstance().isAutoplaySetExplicitly();var G,B,Q,H,M,R,x=(G=this.watchResponse.response)==null?void 0:(B=G.contents)==null?void 0:(Q=B.twoColumnWatchNextResults)==null?void 0:(H=Q.autoplay)==null?void 0:(M=H.autoplay)==null?void 0:(R=M.autoplayExplicitChoiceDialogRenderer)==
null?void 0:R.confirmDialogRenderer;m&&x&&this.player.setAutonavState(1)}O===0&&this.watchWhileMode&&this.deactivate()}};
_.v.onPlaylistNavigate=function(O,m){var G=this,B,Q,H,M,R,x,t;return _.r(function(W){if(W.nextAddress==1){if(!_.b(m.endpoint,_.GC))return W.return();_.c3().currentEndpoint=m.endpoint;_.UB(G.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.KR().resolve(_.KJ).isOnWatch()&&(G.watchWhileMode||G.watchPipMode))return W.return();O.stopPropagation();(H=(Q=_.b((B=m.endpoint)==null?void 0:B.commandMetadata,_.bP))==null?void 0:Q.url)&&m.tempData&&!_.aM.isEmpty(m.tempData)&&_.vd(H,m.tempData);M={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};R=new VO8(function(){return G.getPlayerElement()},M,{layer:G.getScreenLayer()});
x=function(Z){R.processChunk({endpoint:m.endpoint,data:Z})};
U_y(G);G.miniplayerFetchRequest=tEy(G,m.endpoint,x);_.n_(W,2);return W.yield(G.miniplayerFetchRequest,4)}if(W.nextAddress!=2)return t=W.yieldResult,WNK(G,t),_.P7(W,0);_.uS(W);_.ju(W)})};
_.v.JSC$18723_onPlaylistDataUpdated=function(){var O=_.KR().resolve(_.Rt).getPlaylistData();this.hasPlaylistData=!!O;_.t2(this,{externalPlaylistData:O||{}})};
_.v.close=function(O){if(this.isInitialized())if(O){if(!((this.watchWhileMode||this.watchPipMode)&&_.KR().resolve(_.KJ).isOnWatch()||this.shortsPipMode)){var m;(m=this.getPlayerElement())==null||m.stop()}this.deactivate()}else _.tC().closeMiniplayer(this.miniplayerEl)};
_.v.deactivate=function(O){var m=this,G,B,Q,H;return _.r(function(M){if(M.nextAddress==1){if(!m.isInitialized()||!m.active)return M.return();m.setActive(!1);U_y(m);(G=!!O&&vvs(m,O))&&m.isSingleOptionSurveyActive&&_.xc(m.miniplayerEl,"yt-show-watch-page-survey",[m.isSingleOptionSurveyActive]);return M.yield(ZSu(m),2)}if(M.nextAddress!=3){x_3(m,!1);m.isReadyToResume=!1;m.watchResponse=void 0;m.updateMiniplayerData(void 0);m.shortsPipMode&&(m.shortsPipMode=!1,_.Kf().dispatch(MXU(m.shortsPipMode)),fq9(m.pipController),
(B=m.player)==null||B.setInternalSize(NaN,NaN));m.watchPipMode&&(m.watchPipMode=!1,fq9(m.pipController));(Q=m.watchWhileMode)&&_.ME9(m,!1);m.removePlayerListeners();var R=_.KR().resolve(_.Rt);R.removeEventListener("yt-navigate",_.f7(m,m.onPlaylistNavigate));R.removeEventListener("yt-playlist-data-updated",_.f7(m,m.JSC$18723_onPlaylistDataUpdated));_.c3().currentEndpoint=null;_.UB(m.miniplayerEl,"yt-miniplayer-endpoint-changed");m.playerElement=null;b5$();if(m.shortsPipMode||m.watchPipMode)M=M.jumpTo(3);
else{R=M.yield;var x=_.xc(m.miniplayerEl,"yt-deactivate-miniplayer",[G,Q])[0];M=R.call(M,x,3)}return M}(H=m.player)==null||H.setInternalSize(NaN,NaN);m.player=null;_.ju(M)})};
var ZSu=function(O){var m;return _.r(function(G){m=_.KR().resolve(_.KJ);return O.shortsPipMode?G.yield(m.movePlayerToShorts(O.playerElement),0):G.yield(m.movePlayerToWatch(O.playerElement),0)})};
Um.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18723_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Um.prototype.setActive=function(O){this.active=O;this.isSingleOptionSurveyActive?_.xc(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.xc(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Kf().dispatch(_.xs({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.ME9=function(O,m){O.watchWhileMode=m;_.t2(O,{watchWhile:m})};
x_3=function(O,m){if(!qRo(O))if(O.shortsPipMode||O.watchPipMode){var G;(G=O.player)==null||G.setDocumentPictureInPicture(m)}else{var B;(B=O.player)==null||B.setMinimized(m)}};
qRo=function(O){return O.watchWhileMode&&_.V("kevlar_watch_while_counterfactual")};
_.iX=function(O){var m;return _.r(function(G){switch(G.nextAddress){case 1:if(!O.isInitialized())return G.return();_.n_(G,2);return G.yield(O.miniplayerFetchRequest,4);case 4:_.P7(G,3);break;case 2:_.uS(G);case 3:O.watchResponse&&O.miniplayerData&&O.miniplayerData.watchEndpoint?(m={url:O.watchResponse.url,endpoint:O.miniplayerData.watchEndpoint,data:O.watchResponse,miniplayer:!0},_.iP(O.miniplayerEl,"yt-navigate-cache",m)):O.miniplayerData&&O.miniplayerData.watchEndpoint&&_.iP(O.miniplayerEl,"yt-navigate",
{endpoint:O.miniplayerData.watchEndpoint}),_.ju(G)}})};
Jdp=function(O,m,G){var B,Q,H,M;return _.r(function(R){if(R.nextAddress==1){if(vvs(O,m))return R.return();_.c3().currentEndpoint=m;_.UB(O.miniplayerEl,"yt-miniplayer-endpoint-changed");_.UB(O.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.c3().isVideoPlaying=!1;B={clientParams:{miniplayer:!0,autoSaveToQueue:!G}};Q=new VO8(function(){return O.getPlayerElement()},B,{layer:O.getScreenLayer(),
parentLayer:0},void 0,O.readyToResumeVe);H=function(x){var t,W,Z=Object.assign({},(t=x.playerResponse)==null?void 0:(W=t.playerConfig)==null?void 0:W.playbackStartConfig,{startPaused:!0}),z;G&&((z=x.playerResponse)==null?0:z.playerConfig)&&(x.playerResponse.playerConfig.playbackStartConfig=Z);Q.processChunk({endpoint:m,data:x})};
U_y(O);O.miniplayerFetchRequest=tEy(O,m,H);_.n_(R,2);return R.yield(O.miniplayerFetchRequest,4)}if(R.nextAddress!=2)return M=R.yieldResult,WNK(O,M),_.P7(R,0);_.uS(R);_.ju(R)})};
Um.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var U_y=function(O){O.miniplayerFetchRequest&&(O.miniplayerFetchRequest.cancel&&O.miniplayerFetchRequest.cancel("Active request obsolete"),O.miniplayerFetchRequest=null)},tEy=function(O,m,G){var B=_.DU.instance,Q,H=(Q=_.b(m.commandMetadata,_.bP))==null?void 0:Q.url,M;
Q=!H||_.V("disable_miniplayer_tempdata")?{}:(M=gJp(H))!=null?M:{};return wJ(B,m,Q,window.location.href,"watch",function(R,x){G(x)},function(R){return R!==O.miniplayerFetchRequest})},WNK=function(O,m){var G;
_.r(function(B){if(!m)return B.return();O.watchResponse=m;iSs(O);r0h(O);G=_.EQ(m.response,!1,m.playerResponse);if(O.isMiniplayerActive()){m.response&&(O.playerElement.watchNextData=m.response);var Q=_.aM.getValueByKeys.apply(_.aM,[m].concat(_.lS(I8u)));_.aM.getValueByKeys.apply(_.aM,[m].concat(_.lS(C92)))&&Q&&_.KR().resolve(_.Rt).setAutoplayRenderer(Q);if(Q)if(_.V("kevlar_is_pupi_enabled")){var H,M,R,x,t,W=((H=m.response)==null?0:(M=H.playerOverlays)==null?0:(R=M.playerOverlayRenderer)==null?0:(x=
R.autonavToggle)==null?0:(t=x.autoplaySwitchButtonRenderer)==null?0:t.enabled)?2:1;_.nK.getInstance().setState(W,!1,!1)}else H=yxI()?2:1,(W=O.player)==null||W.setAutonavState(H);O.updateMiniplayerData(G);_.Rls(O)}_.ju(B)})},r0h=function(O){var m,G,B=(m=O.watchResponse)==null?void 0:(G=m.playerResponse)==null?void 0:G.playabilityStatus,Q;
m=B==null?void 0:(Q=B.miniplayer)==null?void 0:Q.miniplayerRenderer;(m==null?void 0:m.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&m.minimizedEndpoint&&_.tK(O.miniplayerEl,[m.minimizedEndpoint]);_.t2(O,{playabilityStatus:B})};
Um.prototype.openToast=function(O,m){_.t2(this,{toastData:{data:O,label:m}})};
_.t2=function(O,m){(0,O.miniplayerPropSignalMap[1])(m)};
Um.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var O;return this.playerElement?this.playerElement:(O=_.ZO(this.miniplayerEl).querySelector("#player-container"))==null?void 0:O.firstElementChild};
Um.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var KNB=function(O,m){m=m===void 0?!1:m;var G,B,Q,H,M,R,x;return _.r(function(t){if(t.nextAddress==1){G=navigator.userActivation.isActive||m;if(!G||!O.pictureInPictureSupported())return t.return(!1);B=zlo(O);Q=B.width;H=B.height;return t.yield(O.pipController.openWindow({width:Q,height:H}),2)}M=t.yieldResult;R=O.pipController.getWindow();if(!R||!M)return t.return(!1);R.document.body.style.overflow="hidden";x=vqN(R);hou(O.pipController,function(){J03(O);x()});
return t.return(!0)})},zlo=function(O){var m=_.c3().shortsPipActivation,G,B;
O=m?.5625:(B=(G=O.player)==null?void 0:G.getVideoAspectRatio())!=null?B:16/9;G=Math.min(window.innerWidth,window.innerHeight)/2;m=m?0:76;return O>1?new _.hY(G,m+G/O):new _.hY(G*O,m+G)},J03=function(O){var m;
_.r(function(G){m=_.KR().resolve(_.KJ);return m.isOnWatch()&&O.watchPipMode||m.isOnShorts()&&O.shortsPipMode?G.yield(O.deactivate(),0):O.miniplayerToPipMode?G.yield(HS3(O),0):O.watchPipMode?G.yield(_.iX(O),0):G.jumpTo(0)})};
Um.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.vr.Object.defineProperties(Um.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Um[$R]=[T5r,Oh8];var VEh="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(" "),
bSA="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(" "),nvh="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
XfA="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var fKJ=null;var hls={},Ths=(hls.initialized={priority:10,callback:function(O){var m=_.KR();m.addProvider({provide:bSU,useClass:I9h});m.addProvider({provide:_.jos,useFactory:function(){return new nv9}});
m.addProvider({provide:QG,useValue:_.kB("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});m.addProvider({provide:fHu,useValue:5184E6});m.addProvider({provide:e_9,useValue:_.uW()});m.addProvider({provide:mPh,useClass:GIj});m.addProvider({provide:UA,useClass:UA});m.addProvider({provide:_.q1,useFactory:function(){return ro8.promise}});
m.addProvider({provide:_.iM2,useFactory:function(){return _.Rks.promise}});
m.addProvider({provide:WSe,useValue:function(){var x;return((x=_.M1())==null?void 0:x.getPlayer())||null}});
var G={};m.addProvider((G.provide=_.Sy,G.useFactory=function(x,t){return function(){return UVe(x,t)}},G[$R]=[QG,
fHu],G));G={};m.addProvider((G.provide=_.CW,G.useClass=ZBr,G[$R]=[QG,fHu],G));G={};m.addProvider((G.provide=_.bc5,G.useClass=bBy,G[$R]=[_.CW],G));m.addProvider({provide:sG,useFactory:_.Kf});m.addProvider({provide:$p,useFactory:_.Kf});m.addProvider({provide:rL9,useFactory:_.Kf});m.addProvider({provide:Y89,useFactory:_.Kf});m.addProvider({provide:_.ry,useFactory:_.Kf});m.addProvider({provide:kA,useValue:_.XZ});m.addProvider({provide:Xis,useClass:IkO});m.addProvider({provide:Gpu,useClass:meK});m.addProvider({provide:zd,
useClass:zd});m.addProvider({provide:ym,useClass:ym});m.addProvider({provide:cD,useClass:cD});m.addProvider({provide:dS,useClass:dS});m.addProvider({provide:hB,useClass:hB});m.addProvider({provide:ON,useClass:ON});m.addProvider({provide:eD,useClass:eD});m.addProvider({provide:_.KAJ,useValue:sMh});m.addProvider({provide:_.GR,useFactory:_.uK});m.addProvider({provide:aT,useFactory:_.TC});G={};m.addProvider((G.provide=KRe,G.useFactory=function(x){return function(t){var W=W===void 0?{}:W;var Z,z,J=(z=
_.b((Z=t.endpoint)==null?void 0:Z.commandMetadata,_.bP))==null?void 0:z.rootVe;if(J){var n,I;if(Z=t.previousCsn||((I=_.b((n=t.endpoint)==null?void 0:n.commandMetadata,oz_))==null?void 0:I.parentCsn)){var S=S===void 0?{}:S;if(Z!==_.yA(S.layer)||J!==cSO(S.layer))D$N(Z,S.cttAuthInfo,S.layer||0),kBI(Z,S.layer||0),n=S.layer||0,_.a8(ySI(n===void 0?0:n),J);W.parentCsn=Z}t.endpoint&&Z?H52(x,t.endpoint,W):_.E1(x,J,void 0,W);var L;((L=t.response)==null?0:L.trackingParams)&&x.graftServerVe(t.response.trackingParams);
var C;((C=t.playerResponse)==null?0:C.trackingParams)&&x.graftServerVe(t.playerResponse.trackingParams);var P;((P=t.reelWatchSequenceResponse)==null?0:P.trackingParams)&&x.graftServerVe(t.reelWatchSequenceResponse.trackingParams)}}},G[$R]=[_.GR],G));
G={};m.addProvider((G.provide=i9y,G.useClass=RoA,G[$R]=[kA,_.ry],G));G={};m.addProvider((G.provide=wd,G.useClass=wd,G[$R]=[_.q1,_.ry],G));G={};m.addProvider((G.provide=k1,G.useClass=k1,G[$R]=[$p,_.Mu],G));m.addProvider({provide:_.Z9A,useClass:uc3});G={};m.addProvider((G.provide=_.Ah,G.useClass=VAA,G[$R]=[_.Z9A,_.v7(_.GF)],G));m.addProvider({provide:_.O5,useClass:s$});m.addProvider({provide:_.kpJ,useClass:Rqh});m.addProvider({provide:_.mc,useClass:ey});_.V("enable_ai_companion")&&(m.addProvider({provide:_.GF,
useClass:X8h}),m.addProvider({provide:_.FS9,useClass:UH_}));G={};m.addProvider((G.provide=_.Lb,G.useClass=g0r,G[$R]=[_.Lb],G));m.addProvider({provide:_.Sv,useClass:sex});m.addProvider({provide:Ox,useClass:Ox});m.addProvider({provide:nb,useClass:nb});m.addProvider({provide:vA,useClass:vA});G={};m.addProvider((G.provide=kD,G.useClass=kD,G[$R]=[_.Mu,_.Dk],G));m.addProvider({provide:Ux,useClass:DW});G={};m.addProvider((G.provide=Z3,G.useClass=Z3,G[$R]=[_.O5,Ux],G));G={};m.addProvider((G.provide=ih,G.useClass=
ih,G[$R]=[_.O5],G));_.V("web_enable_feedback_endpoint_resolver")&&(G={},m.addProvider((G.provide=N9,G.useClass=N9,G[$R]=[sG,DT],G)),m.addProvider({provide:DT,useClass:Z$s}));_.V("web_enable_feedback_endpoint_resolver_batch_2")&&(G={},m.addProvider((G.provide=FB,G.useClass=FB,G[$R]=[sG],G)),G={},m.addProvider((G.provide=PU,G.useClass=PU,G[$R]=[DT],G)));G={};m.addProvider((G.provide=tO,G.useClass=tO,G[$R]=[_.mc,Ux],G));G={};m.addProvider((G.provide=rb,G.useClass=rb,G[$R]=[_.mc],G));G={};m.addProvider((G.provide=
WA,G.useClass=WA,G[$R]=[_.Dk,_.Ah],G));G={};m.addProvider((G.provide=qq,G.useClass=qq,G[$R]=[_.Dk,_.GR],G));m.addProvider({provide:wb,useClass:wb});G={};m.addProvider((G.provide=lh,G.useClass=lh,G[$R]=[sG],G));m.addProvider({provide:v0,useClass:v0});m.addProvider({provide:H0,useClass:H0});G={};m.addProvider((G.provide=$X,G.useClass=$X,G[$R]=[sG],G));G={};m.addProvider((G.provide=Mg,G.useClass=Mg,G[$R]=[_.Dk,sG],G));G={};m.addProvider((G.provide=re,G.useClass=re,G[$R]=[sG],G));G={};m.addProvider((G.provide=
RN,G.useClass=RN,G[$R]=[sG],G));G={};m.addProvider((G.provide=RT,G.useClass=RT,G[$R]=[_.Ah],G));G={};m.addProvider((G.provide=PA,G.useClass=PA,G[$R]=[_.GR],G));G={};m.addProvider((G.provide=B0,G.useClass=B0,G[$R]=[Yx],G));G={};m.addProvider((G.provide=QK,G.useClass=QK,G[$R]=[Yx],G));m.addProvider({provide:On,useClass:On});m.addProvider({provide:m4,useClass:m4});m.addProvider({provide:Nq,useClass:Nq});G={};m.addProvider((G.provide=zt,G.useClass=zt,G[$R]=[_.Ah,_.Mu],G));m.addProvider({provide:BA,useClass:BA});
G={};m.addProvider((G.provide=xx,G.useClass=xx,G[$R]=[_.Dk,_.Ah],G));m.addProvider({provide:Kb,useClass:Kb});G={};m.addProvider((G.provide=Cb,G.useClass=Cb,G[$R]=[sG,_.Dk,_.Lb],G));G={};m.addProvider((G.provide=Ss,G.useClass=Ss,G[$R]=[_.Dk,_.Mu],G));m.addProvider({provide:e1j,useValue:TAp});m.addProvider({provide:A52,useValue:jT5});m.addProvider({provide:Ex,useClass:Ex});G={};m.addProvider((G.provide=pb,G.useClass=pb,G[$R]=[sG],G));G={};m.addProvider((G.provide=oT,G.useClass=oT,G[$R]=[_.Sv,_.Mu],
G));G={};m.addProvider((G.provide=Ai,G.useClass=Ai,G[$R]=[_.Mu],G));m.addProvider({provide:ed,useFactory:function(){return new ed(_.Kf())}});
m.addProvider({provide:hYM,useFactory:_.kH.getInstance});G={};m.addProvider((G.provide=HA,G.useClass=HA,G[$R]=[QG,hYM,_.Mu],G));m.addProvider({provide:ml,useClass:ml});m.addProvider({provide:yU,useClass:yU});m.addProvider({provide:YD,useClass:YD});m.addProvider({provide:_.cU,useClass:_.cU});m.addProvider({provide:qg,useClass:qg});G={};m.addProvider((G.provide=gb,G.useClass=gb,G[$R]=[$p],G));G={};m.addProvider((G.provide=VG,G.useClass=VG,G[$R]=[_.Mu],G));G={};m.addProvider((G.provide=uh,G.useClass=
uh,G[$R]=[_.Mu],G));G={};m.addProvider((G.provide=js,G.useClass=js,G[$R]=[_.Mu],G));_.V("web_enable_prefetching_videos_on_home")&&(m.addProvider({provide:av,useClass:av}),m.addProvider({provide:Kt,useClass:Kt}));G={};m.addProvider((G.provide=xX,G.useClass=xX,G[$R]=[_.Mu],G));m.addProvider({provide:d0,useClass:d0});G={};m.addProvider((G.provide=es,G.useClass=es,G[$R]=[_.Dk,_.Mu],G));G={};m.addProvider((G.provide=w0,G.useClass=w0,G[$R]=[_.Mu],G));G={};m.addProvider((G.provide=$M,G.useClass=$M,G[$R]=
[_.Dk,_.Mu],G));m.addProvider({provide:vn,useClass:vn});m.addProvider({provide:fb,useClass:fb});G={};m.addProvider((G.provide=XQ,G.useClass=XQ,G[$R]=[$p,_.Mu],G));m.addProvider({provide:hO,useClass:hO});G={};m.addProvider((G.provide=W0,G.useClass=W0,G[$R]=[$p,_.Mu,_.Dk],G));G={};m.addProvider((G.provide=Z6,G.useClass=Z6,G[$R]=[_.Mu],G));G={};m.addProvider((G.provide=t7,G.useClass=t7,G[$R]=[_.Mu,_.Dk],G));G={};m.addProvider((G.provide=IT,G.useClass=IT,G[$R]=[_.q1],G));G={};m.addProvider((G.provide=
Tt,G.useClass=Tt,G[$R]=[_.q1],G));m.addProvider({provide:cA,useClass:cA});m.addProvider({provide:db,useClass:db});m.addProvider({provide:KA,useClass:KA});m.addProvider({provide:D3,useClass:D3});m.addProvider({provide:yG,useClass:yG});m.addProvider({provide:$x,useClass:$x});m.addProvider({provide:kx,useClass:kx});_.V("kevlar_enable_mss_lazy_load")&&m.addProvider({provide:_.dJ,useClass:xMK});m.addProvider({provide:_.wS,useClass:PN});m.addProvider({provide:bR,useFactory:function(){return _.sJ.getInstance()}});
m.addProvider({provide:$Po,useFactory:TxN});m.addProvider({provide:Yx,useFactory:function(){return _.FW.getInstance()}});
m.addProvider({provide:mR8,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});G={};m.addProvider((G.provide=_.cN,G.useClass=_.cN,G[$R]=[_.q1,_.Mu,_.GR,$Po,Yx,bR,mR8,kA],G));m.addProvider({provide:_.yw,useClass:luH});m.addProvider({provide:_.T8r,useClass:h_y});G={};m.addProvider((G.provide=Mq,G.useClass=Mq,G[$R]=[_.T8r],G));G={};m.addProvider((G.provide=_.Y1,G.useFactory=function(x){return x.upliftCompletionResolver.promise},G[$R]=[i9y],G));
G=_.yE("IS_SHELL_LOAD")?"aa":"eocs";var B=_.yE("IS_SHELL_LOAD")?3:2;_.xA().parkOrScheduleJob(function(){qhA()},B,G);
_.xA().parkOrScheduleJob(function(){_.KR().resolve(wd).start()},2,"eocs");
_.xA().parkOrScheduleJob(function(){MA0()},2,"eocs");
_.xA().parkOrScheduleJob(function(){_.KR().resolve(k1).start()},2,"eocs");
_.V("kevlar_debug_data_app_registration_ks")||aWN();m.addProvider({provide:_.pH,useValue:new HNb(O.root)});m.addProvider({provide:wE,useValue:new NRp});m.addProvider({provide:_.xp9,useValue:new R6y(O.root)});m.addProvider({provide:_.ew,useValue:new iNy});m.addProvider({provide:_.N2,useClass:wm});m.addProvider({provide:T5r,useClass:Ny});_.V("kevlar_network_sli_killswitch")||m.addProvider({provide:l9J,useValue:cD3});m.addProvider({provide:f9s,useFactory:nup});_.V("web_bind_fetch")&&(G={},m.addProvider((G.provide=
hqr,G.useFactory=Xa5,G[$R]=[_.v7(f9s)],G)));_.V("web_bind_window_request")&&(G={},m.addProvider((G.provide=g3K,G.useFactory=f$N,G[$R]=[_.v7(f9s)],G)));_.V("web_bind_text_decoder")&&(G={},m.addProvider((G.provide=uPo,G.useFactory=hQs,G[$R]=[_.v7(f9s)],G)));G={};m.addProvider((G.provide=P2B,G.useFactory=QP5,G[$R]=[_.Y1,sG,_.Sy],G));G={};m.addProvider((G.provide=N8b,G.useClass=z8,G[$R]=[P2B],G));m.addProvider({provide:iBA,useClass:$Js});m.addProvider({provide:wss,useClass:Deu});G=[].concat(_.lS(GM));
_.V("web_continuation_response_processing")&&G.push(_.Dw);G.push(t6j);_.V("enable_share_panel_navigation_logging_fix_on_web")&&G.push(_.pzC);m.addProvider({provide:Qvz,useValue:G});m.addProvider({provide:uUp,useClass:dey});m.addProvider({provide:YIx,useClass:a9o});G={};m.addProvider((G.provide=fXO,G.useClass=nO0,G[$R]=[$p],G));_.ln.addLowPriorityJob(function(){skS()});
G={};m.addProvider((G.provide=e38,G.useFactory=function(x){return function(t){var W,Z=(W=_.b(t.commandMetadata,_.bP))==null?void 0:W.url;if(!Z)throw new _.j9("No URL for PBJ Command",t);Z=gcN(Z,{pbj:"1"});W=sse(Z,{})||{};W=Object.assign({},W,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.kB("STS").toString()});t=_.bb({command:JSON.stringify(t),session_token:_.kB("XSRF_TOKEN")});return x.fetch(Z,{method:"POST",headers:W,body:t})}},G[$R]=[YIx],G));
m.addProvider({provide:LI3,useFactory:function(){var x={};return x.CSI=gue(),x.ECATCHER=TLS(),x}});
m.addProvider({provide:ZcN,useClass:CSr});G=[];G.push(m.resolve(wss));B={};B=(B.client_location=_.kH.getInstance(),B.consistency=_.Ppp(),B.entities=m.resolve(Gpu),B.response_received_commands=m.resolve(uUp),B.store=m.resolve(_.bc5),B.tokens=m.resolve(wss),B.service_params=m.resolve(ZcN),B);if(_.V("web_shorts_prefetch_service_enabled")){var Q=new nhK(m.resolve(_.CW));B.shorts_prefetch=Q}B.adblock_detection=m.resolve(fXO);m.addProvider({provide:_.PI,useClass:_.PI});Q=m.resolve(_.KAJ);var H=[];_.V("PremiumClientSharedConfig__enable_att_context_processor")&&
(m.addProvider({provide:apy,useClass:Cs3}),H.push(m.resolve(apy)));if(_.V("owl_pl_await")){var M={};m.addProvider((M.provide=WI0,M.useFactory=function(x){return new UG3(x)},M[$R]=[_.PI],M));
H.push(m.resolve(WI0))}BeU(Q,m.resolve(YIx),m.resolve(Xis),B,m.resolve(_.CW),G,H,m.resolve(N8b),m.resolve(iBA));m.addProvider({provide:_.Dk,useValue:_.Fw.instance});_.V("start_client_gcf")&&m.addProvider({provide:j0,useValue:AJm()});m.addProvider({provide:tA3,useFactory:function(){return new tA3(_.KR().resolve(_.PI),_.FW.getInstance())}});
_.xA().parkOrScheduleJob(function(){Wa9()},1,"eocs");
G={};m.addProvider((G.provide=dd,G.useClass=dd,G[$R]=[_.Sy,_.Dk],G));m.addProvider({provide:_.Lay,useFactory:_.Hn.getInstance});_.xA().parkOrScheduleJob(function(){_.KR().resolve(dd).refresh()},0,"eocs");
DWp(sMh.watchEndpointMap||{},Q.reelWatchEndpointMap||{},O.injector.resolve(_.Dk));m.addProvider({provide:h8,useValue:_.DU.instance});_.V("kevlar_signal_collection_killswitch")||(G={},m.addProvider((G.provide=O9r,G.useClass=O9r,G[$R]=[QG,aT],G)),_.xA().parkOrScheduleJob(function(){_.KR().resolve(O9r).record()},1,"eocs"));
_.V("web_debug_handler_registration_killswitch")||_.xA().parkOrScheduleJob(function(){o1f("DOWNLOAD_PES",hON);_.V("offline_client_state_export_ks")||o1f("OFFLINE_CLIENT_STATE",nWO)},0,"eocs");
_.V("kevlar_prevent_polymer_dynamic_font_load")&&_.xA().parkOrScheduleJob(function(){var x=[_.WY(OLB),_.WY(mMs)];x=_.K(x);for(var t=x.next();!t.done;t=x.next()){t=t.value;var W=document.createElement("link");_.Ro(W,t,"stylesheet");document.head.appendChild(W)}},1,"eocs");
G=O.injector.resolve(_.Dk);_.lph.instance=new _.lph(G);KJs(jey(new oOy(G)));G={};O.injector.addProvider((G.provide=KI,G.useFactory=function(x){(x=x==null?void 0:x.getCurrentPage())?x=x.visibilityObserver:(fKJ||(fKJ=Bap()),x=fKJ);return x},G[$R]=[_.v7(_.KJ)],G.skipCache=!0,G));
m.addProvider({provide:_.c$,useClass:Um});m.addProvider({provide:dm,useClass:wn9});O.injector.addProvider({provide:y9$,useValue:QeJ});m.addProvider({provide:IAC,useValue:nES});m.addProvider({provide:ods,useValue:ZPf});m.addProvider({provide:_.B6,useValue:EEM});O=m.addProvider;lqB||(lqB=new o0s);O.call(m,{provide:_.FT,useValue:lqB});m.addProvider({provide:_.H6,useValue:_.kB("HTML_DIR")==="rtl"?"rtl":"ltr"});m.addProvider({provide:Qjb,useClass:Uer});m.addProvider({provide:_.nm,useClass:AB});_.KR().addProvider({provide:v9h,
useValue:_.V("enable_web_delhi_icons")?bSA.concat(XfA):VEh.concat(nvh)});m.addProvider({provide:_.mS,useClass:_.mS});m.addProvider({provide:_.NCB,useValue:new sou});m.addProvider({provide:m33,useClass:AzA});m.addProvider({provide:sx,useClass:sx});m.addProvider({provide:FQ,useClass:FQ});O={};m.addProvider((O.provide=JO,O.useClass=JO,O[$R]=[_.Dk,_.Ah],O));m.addProvider({provide:Un,useClass:Un});m.addProvider({provide:JM9,useClass:Iqr});m.addProvider({provide:G8,useClass:G8});m.addProvider({provide:EWs,
useValue:zO3});m.addProvider({provide:_.ZT,useClass:O$J});_.V("enable_payments_purchase_manager")&&m.addProvider({provide:YSu,useClass:kYr});m.addProvider({provide:AXy,useFactory:function(){return function(x){return _.FIx(x)}}});
m.addProvider({provide:_.cmu,useClass:Y33});O={};m.addProvider((O.provide=i1,O.useClass=i1,O[$R]=[_.cmu],O));m.addProvider({provide:AO,useClass:AO});m.addProvider({provide:qTU,useValue:w29});m.addProvider({provide:$F9,useValue:_.DPx});m.addProvider({provide:FXO,useClass:jno});m.addProvider({provide:aqh,useValue:mZu});O={};m.addProvider((O.provide=kcr,O.useClass=yLx,O[$R]=[aqh],O));O={};m.addProvider((O.provide=_.dF,O.useClass=B_3,O[$R]=[kcr],O));O={};m.addProvider((O.provide=_.Bn,O.useClass=G5,O[$R]=
[_.ry,_.N2],O));if(_.V("web_explore_hub_on_hover")||_.V("web_client_explore_hub_on_hover"))O={},m.addProvider((O.provide=Gt,O.useClass=Gt,O[$R]=[_.Dk,bR],O));if(_.V("web_enable_renderer_logger")){var R=new n3h;SiI(function(){R.abort()});
m.addProvider({provide:xhY,useValue:new Gc3(R.signal)})}m.addProvider({provide:YG9,useValue:rrM});m.addProvider({provide:PXS,useClass:Xbr})}},hls);var gv9={},uH0=(gv9.initialized={priority:10,callback:function(){if(!o3u){BgN();jGM("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Zg(_.hK(jGM,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.V("log_heartbeat_with_lifecycles")){var O={};fW.instance||(fW.instance=new fW);fW.instance.install((O.document_visible={callback:I$S,priority:10},O.document_hidden={callback:I$S,priority:10},O))}else _.HH(document,"visibilitychange",I$S);o3u=!0}(O=_.yA())&&O!=="UNDEFINED_CSN"&&lVS(O)}},gv9);var j93={},IKh=(j93.initialized={callback:function(O){var m=_.Zv(232091),G=O.injector.resolve(_.GR);_.LK(G,m);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?KB6()&&_.oS(G,m):(O=O.injector.resolve(AXy)("refresh_detector"))&&(O.get("first_tab_load")?_.oS(G,m):O.set("first_tab_load","1"))}},j93);var pf3={},SRB=(pf3.initialized={priority:10,callback:U75},pf3);var Ev3={},LN3=(Ev3.initialized={priority:0,callback:function(){var O=new AFs,m="other";_.ZM?m="chrome":_.Wp?m="firefox":_.YR?m="safari":BI&&(m="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(G){O.increment(_.Tg(),G,m)}).catch(function(){O.increment(_.Tg(),!1,m)}):O.increment(_.Tg(),!1,m)}},Ev3);var CFb={},ovB=(CFb.rendering={priority:8,callback:tTS},CFb);var lKo={},aKK=(lKo.rendering={priority:10,callback:IXp},lKo.rendered={callback:jBz},lKo),kJJ={},y0r=(kJJ.rendering={callback:IXp},kJJ.rendered={callback:jBz},kJJ);var c0u=!1,YR9={},d_0=(YR9.initialized={priority:10,callback:function(){c0u||(gfM({didPatch:function(O){O.el&&ydY(O.el,O.props)},
didUnmount:function(O){a$p(O.el)}}),c0u=!0)}},YR9);var wfh=/^\/shorts\/?$/;_.a8("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:{}}}}}}});_.V("kevlar_enable_mss")&&(_.ER5(new cK_),aL5());
(function(){var O=document.querySelector("ytd-app");if(!O)throw Error("Rj");O=new QH({root:O,injector:_.KR()});O.install(uH0);var m={};O.install((m.initialized={priority:10,callback:Df5},m));_.V("wp_lat_b")&&(m={},O.install((m.initialized={priority:10,callback:function(){JdY()}},m)));
m={};O.install((m.rendered={priority:0,callback:dfO},m));m={};O.install((m.rendered={priority:0,callback:function(){_.ln.addLowPriorityJob(function(){_.tob>1&&(oUf(),cWf())},4E4)}},m));
O.install(T99);O.install(IKh);O.install(d_0);Adr();O.install(o69);O.install(VSr);O.install(fnr);O.install(e03);O.install(FA9);O.install(Lsr);O.install(Ths);_.V("kevlar_enable_mss_lazy_load")&&O.install(SRB);O.install(n6r);O.install(LN3);if(!_.yE("IS_SHELL_LOAD")||_.V("kevlar_fetch_initial_data_promise_client")||_.V("sw_nav_preload_pbj")){var G=_.JE(window.location.href);m=G&&G==="/watch";G=G&&G.match(wfh);m?O.install(y0r):G?O.install(ovB):O.install(aKK)}else O.install(ZLo);O.install(uyJ);_.V("web_enable_prefetching_videos_on_home")&&
O.install(yYx);_.V("start_client_gcf")&&O.install(E3B);O.install(ysy);(new OS3).increment("INSTALLED");O.install(anJ);O.install(UM9);O.transition("initialized");igN()})();
_.JV=[[["amRhamdraW5kIzgwaXdrdA==","eXZhbHVlI3ZtbWt3d2g2YWxh"],"Q0VNRU5UX0tJTkRfTUlMTElTRUNPTkRTI3k1OThyaHFmd3pvYUFEX1BMQQ=="]];_.zL=["cGtoeXptN3NrZ2xvYmFsQ2FsbGJhY2tzI2Jiaw==","bW85b25BYm5vcm1hbGl0eURldGVjdGVkI3UzaGc2YnB1Nw==","a2lwI2V2M21uM3dsMWtid29uQWRT","c25qeTZyYXdfcGxheWVyX3Jlc3BvbnNlI3JiZHVremk=","ZHMjMjg5azdqYmx3amN2cGxheWVyQQ=="];_.zb="cGtoeXptN3NrZ2xvYmFsQ2FsbGJhY2tzI2Jiaw== bW85b25BYm5vcm1hbGl0eURldGVjdGVkI3UzaGc2YnB1Nw== a2lwI2V2M21uM3dsMWtid29uQWRT c25qeTZyYXdfcGxheWVyX3Jlc3BvbnNlI3JiZHVremk= X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzI2d0dnRyZ2Vwd28wM3dlYl9wbGF5bGlzdA== X2VmI2doYWd4ZnR5cDN2Z2FiX3Nh ZHMjMjg5azdqYmx3amN2cGxheWVyQQ==".split(" ");
_._ModuleManager_initialize=function(O,m){if(!_.Ld){if(!_.Cd)return;_.ER5(_.Cd())}_.Ld.setAllModuleInfoString(O,m)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.J2=function(O,m,G,B,Q){var H={};m&&(H[m]=G);B?H.errorType=B:Q&&(H.errorReason=Q);_.LE(O,H);_.CE()};
_.VH=function(O){var m=_.xA();return _.YAH(m,O,1)};
_.kZ({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 O=this.query;O&&(this.full||O[0]==="("||(O="("+O+")"),this._mq=window.matchMedia(O),this._add(),this.queryHandler(this._mq))},
queryHandler:function(O){this._setQueryMatches(O.matches)}});var Q8y;var Hno;var vBh=function(){};
_.v=vBh.prototype;_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._tapHandler=function(){};
_.v._focusChanged=function(){};
_.v._detectKeyboardFocus=function(){};
_.v._userActivate=function(){};
_.v._upHandler=function(){};
_.v._spaceKeyDownHandler=function(){};
_.v._spaceKeyUpHandler=function(){};
_.v._asyncClick=function(){};
_.v._pressedChanged=function(){};
_.v._ariaActiveAttributeChanged=function(){};
_.v._activeChanged=function(){};
_.v._controlStateChanged=function(){};
_.v._changedButtonState=function(){};
_.v._focusBlurHandler=function(){};
_.v._disabledChanged=function(){};
_.v._changedControlState=function(){};
_.v._downHandler=function(){};
_.v.ensureRipple=function(){};
_.v.getRipple=function(){};
_.v.hasRipple=function(){};
_.v._noinkChanged=function(){};
_.v._focusedChanged=function(){};
_.v._createRipple=function(){};
_.v.registered=function(){};
_.v._invalidChanged=function(){};
_.v.hasValidator=function(){};
_.v.validate=function(){};
_.v._getValidity=function(){};
_.v._requiredChanged=function(){};
_.v._valueChanged=function(){};
_.v._checkedChanged=function(){};
_.v._buttonStateChanged=function(){};
_.v._setPressed=function(){};
_.v._setPointerDown=function(){};
_.v._setReceivedFocusFromKeyboard=function(){};
_.v._setFocused=function(){};
vBh=_.kZ({is:"tp-yt-paper-radio-button",_template:function(){if(Hno!==void 0)return Hno;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Q8y===void 0&&(Q8y=document.createElement("template"));var B=Q8y;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return Hno=O},
behaviors:[_.SQ_],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(){_.QA(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var O=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),m=Math.floor(3*O);m%2!==O%2&&m++;this.updateStyles({"--paper-radio-button-ink-size":m+"px"})}})}});var Kmx;var $r0;_.kZ({_template:function(){if($r0!==void 0)return $r0;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Kmx===void 0&&(Kmx=document.createElement("template"));var B=Kmx;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return $r0=O},
is:"tp-yt-paper-radio-group",behaviors:[_.eXs],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(O){var m=this._valueToItem(O);if(!m||!m.hasAttribute("disabled")){if(this.selected){m=this._valueToItem(this.selected);if(this.selected==O)if(this.allowEmptySelection)O="";else{m&&(m.checked=!0);return}m&&
(m.checked=!1)}_.Qa.select.apply(this,[O]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(O){this._focusPrevious();O.preventDefault();this._activateFocusedItem()},
_onDownKey:function(O){this._focusNext();O.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(O){_.wu2._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(O){_.wu2._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Qa._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.eL._resetTabindices.apply(this,arguments);this.items.forEach(function(O){O.removeAttribute("aria-selected")},this)}});var MxA;_.lE("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var bX=function(){return _.u.apply(this,arguments)||this};
_.X(bX,_.u);_.v=bX.prototype;_.v.computeHasPrimaryIcon=function(O){return!(!O.icon&&!O.thumbnail)};
_.v.computeHasSecondary=function(O){return!(!O.secondaryIcon&&!O.secondaryNotificationText)};
_.v.computeHideSecondaryString=function(O){return!_.V("disable_hide_empty_secondary_string")&&!O.secondaryNotificationText};
_.v.computeCompactLinkStyle=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.v.computeHasFitHeight=function(O){return O==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.v.isActiveEndpoint=function(O){return(O=this.get("commandMetadata.webCommandMetadata.url",O))?_.JE(window.location.href)!=="/account_transfer_channel"&&_.JE(window.location.href)!=="/gaia_link"&&_.JE(window.location.href)!=="/channel_switcher"||O!=="/account"?_.JE(window.location.href)===O:!0:!1};
_.v.onTap=function(){var O;((O=this.data)==null?0:O.serviceEndpoint)&&_.tK(this.hostElement,[this.data.serviceEndpoint])};
bX.prototype.onTap=bX.prototype.onTap;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],bX.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.Y("design:type",Boolean)],bX.prototype,"active",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.Y("design:type",String)],bX.prototype,"compactLinkStyle",void 0);
_.c([_.g({computed:"computeIcon_(data.icon)"}),_.Y("design:type",Object)],bX.prototype,"icon",void 0);_.c([_.g({computed:"computeIcon_(data.secondaryIcon)"}),_.Y("design:type",Object)],bX.prototype,"secondaryIcon",void 0);_.c([_.g({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],bX.prototype,"hasSecondary",void 0);_.c([_.g({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],bX.prototype,"hideSecondaryString",void 0);
_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bX.prototype,"onTap",null);_.c([_.l({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],bX);
_.y(bX,"ytd-compact-link-renderer",function(){if(MxA!==void 0)return MxA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return MxA=O},{mode:1});var rNy;_.lE("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var nt=function(){var O=_.u.apply(this,arguments)||this;O.role="link";O.tabindex="0";O.actionMap=_.V("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 O};
_.X(nt,_.u);_.v=nt.prototype;_.v.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.oh()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.v.getCurrentTheme=function(){return _.lu()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.oh()};
_.v.onThemeSelected=function(O,m){var G=O||m?O:_.Cf(),B=(G&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!G&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.DKf(_.JE(window.location.href));_.gr(0,165,O);_.gr(0,174,m);this.prefs.save();B&&_.xc(this.hostElement,"yt-dark-mode-toggled-action",[G]);_.xc(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.v.onTap=function(){this.data.serviceEndpoint&&_.tK(this.hostElement,[this.data.serviceEndpoint])};
_.v.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.v.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.v.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
nt.prototype.onTap=nt.prototype.onTap;nt.prototype.dataChanged=nt.prototype.dataChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],nt.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.iq),_.Y("design:type",Object)],nt.prototype,"paperItemBehaviors",void 0);_.c([_.g(),_.Y("design:type",Object)],nt.prototype,"data",void 0);_.c([_.g({value:function(){return _.TC()}}),
_.Y("design:type",_.W1)],nt.prototype,"prefs",void 0);_.c([_.g(),_.Y("design:type",Object)],nt.prototype,"label",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],nt.prototype,"role",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],nt.prototype,"tabindex",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nt.prototype,"dataChanged",null);
_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nt.prototype,"onTap",null);_.c([_.l({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],nt);
_.WE()(nt,"ytd-toggle-theme-compact-link-renderer",function(){if(rNy===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);rNy=O}O=rNy;return O},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var in9,xrB;_.XG=function(O){return!!O.getOptions("captions")};
_.R29=function(O){return(O=O.getOption("captions","track"))?!!O.displayName:!1};
_.ft=function(O,m){_.jl(m,O,function(){return in9[m]},function(G){in9[m]=G;
if(!_.V("mweb_player_ve_show_ks")){var B=_.yA(0);B&&G&&_.AK(B,G)}})};
_.h2=function(O){(O=in9[O])&&_.oS(_.uK(),O)};
in9={};var qZB;/*

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
*/
_.kZ({_template:function(){if(qZB!==void 0)return qZB;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;xrB===void 0&&(xrB=document.createElement("template"));var B=xrB;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return qZB=O},
is:"tp-yt-paper-checkbox",behaviors:[_.SQ_],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.QA(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var O=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),m="px",G=O.match(/[A-Za-z]+$/);G!==null&&(m=G[0]);O=parseFloat(O);G=8/3*O;m==="px"&&(G=Math.floor(G),G%2!==O%2&&G++);this.updateStyles({"--paper-checkbox-ink-size":G+
m})}})},
_computeCheckboxClass:function(O,m){var G="";O&&(G+="checked ");m&&(G+="invalid");return G},
_computeCheckmarkClass:function(O){return O?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Iop._createRipple.call(this)}});var Ur9=new _.q$("radioButtonSurveyOptionRenderer"),txr=new _.q$("checkboxSurveyOptionRenderer");var WmA;var ZnJ;var z20=0,T5=function(){var O=_.u.call(this)||this;O.selected=!1;O.isOverlay=!1;O.inputId="toggle-option-"+z20;z20++;return O};
_.X(T5,_.u);T5.prototype.onTap=function(){_.iP(this.hostElement,"ytd-toggle-option-clicked")};
_.c([_.g(),_.Y("design:type",String)],T5.prototype,"label",void 0);_.c([_.g(),_.Y("design:type",String)],T5.prototype,"inputId",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],T5.prototype,"selected",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],T5.prototype,"isOverlay",void 0);_.c([_.l({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.Y("design:paramtypes",[])],T5);
_.y(T5,"ytd-toggle-option-renderer",function(){if(ZnJ!==void 0)return ZnJ;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return ZnJ=O},{mode:1});var g$=function(){var O=_.u.apply(this,arguments)||this;O.isToggleOption=!1;O.isOverlay=!1;return O};
_.X(g$,_.u);g$.prototype.onTap=function(O){O.preventDefault();this.data&&(O=!this.data.checked,this.set("data.checked",O),_.iP(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:O,value:this.data.value}))};
_.vr.Object.defineProperties(g$.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
g$.prototype.onTap=g$.prototype.onTap;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],g$.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],g$.prototype,"isToggleOption",void 0);_.c([_.g(),_.Y("design:type",Object)],g$.prototype,"isOverlay",void 0);_.c([_.T("data.responseText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],g$.prototype,"label",null);
_.c([_.hG("ytd-toggle-option-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],g$.prototype,"onTap",null);_.c([_.l({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],g$);
_.y(g$,"ytd-checkbox-survey-option-renderer",function(){if(WmA!==void 0)return WmA;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return WmA=O},{mode:1});var JNy;var Vxu;var uX=function(){var O=_.u.apply(this,arguments)||this;O.checked=!1;O.isToggleOption=!1;return O};
_.X(uX,_.u);uX.prototype.onTap=function(){this.data&&(this.checked?_.xc(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.xc(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
uX.prototype.onTap=uX.prototype.onTap;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],uX.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],uX.prototype,"checked",void 0);_.c([_.g(),_.Y("design:type",Object)],uX.prototype,"isToggleOption",void 0);_.c([_.hG("ytd-toggle-option-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],uX.prototype,"onTap",null);
_.c([_.l({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],uX);
_.y(uX,"ytd-radio-button-survey-option-renderer",function(){if(Vxu!==void 0)return Vxu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Vxu=O},{mode:1});var j7=function(){var O=_.u.apply(this,arguments)||this;O.disableAnimation=!1;O.isToggleOption=!0;O.followUpSurveyCommand=null;O.selectedRatingEndpoint=null;O.isSlimlineSurveyFollowUp=!1;O.isShortsStyle=!1;O.styleOverrideAttribute=!0;O.isDarkMode=!1;O.isSubmitted=!1;O.roundedContainer=!0;O.improveShortsResponseRate=_.V("web_improve_shorts_response_rate");O.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 O};
_.X(j7,_.u);_.v=j7.prototype;
_.v.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"}}}}};
_.v.attached=function(){var O=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(G){var B;if((B=G[0])!=null&&B.isIntersecting){_.TS().reportShown(O.hostElement);var Q;(Q=O.intersectionObserver)==null||Q.unobserve(O.hostElement)}},{rootMargin:"0px",
threshold:.6});var m;(m=this.intersectionObserver)==null||m.observe(this.hostElement)};
_.v.onDarkModeToggledAction=function(O){this.isDarkMode=O};
_.v.dataChanged=function(){var O;if(((O=this.data)==null?void 0:O.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var m;((m=this.data)==null?void 0:m.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var G,B,Q,H;this.darkColorPalette=(G=this.data)==null?void 0:(B=G.inlineContent)==null?void 0:(Q=B.compactVideoRenderer)==null?void 0:(H=Q.thumbnail)==null?
void 0:H.darkColorPalette;var M,R,x,t;this.lightColorPalette=(M=this.data)==null?void 0:(R=M.inlineContent)==null?void 0:(x=R.compactVideoRenderer)==null?void 0:(t=x.thumbnail)==null?void 0:t.lightColorPalette;var W,Z;if(((W=this.data)==null?0:(Z=W.inlineContent)==null?0:Z.compactVideoRenderer)&&this.isShortsStyle){var z,J,n,I;O=_.tH((z=this.data)==null?void 0:(J=z.inlineContent)==null?void 0:(n=J.compactVideoRenderer)==null?void 0:(I=n.thumbnail)==null?void 0:I.thumbnails);_.n7(this.hostElement,
{"--yt-background-url":"url("+O+")"})}};
_.v.handleRequestCompletion=function(){this.hostElement.hidden&&_.iP(this.hostElement,"yt-dismissible-item-dismissed")};
_.v.onPopupClosed=function(O){var m;((m=O.detail)==null?void 0:m.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.xc(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.v.handleInlineSurveyRatingSelect=function(O,m){var G=this;this.selectedRatingEndpoint=O;this.followUpSurveyCommand=m;this.expanded=!!O;this.getOptionRenderers().forEach(function(B,Q){G.notifyPath("followUpSurveyCommand.followUpOptions."+Q+".checkboxSurveyOptionRenderer.checked");G.set("followUpSurveyCommand.followUpOptions."+Q+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),O=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.xc(this.hostElement,"yt-reel-non-video-content-dismissal-command",[O]))};
_.v.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.xc(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var O,m=(O=this.data)==null?void 0:O.dismissalEndpoint;m&&this.ytComponentBehavior.resolveCommand(m)}};
_.v.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.xc(this.hostElement,"yt-close-popup-action"))};
_.v.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var O=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{O=this.getOptionRenderers().filter(function(B){return B.checked});
if(O.length===0)return;O=O.map(function(B){return B.responseEndpoint})}var m=[];
O.forEach(function(B,Q){Q!==0&&(B=_.b(B,_.Sk))&&B.feedbackToken&&m.push(B.feedbackToken)});
if(O=O[0]){var G={};m.length>0&&(G.extra_feedback_tokens=m);this.ytComponentBehavior.resolveCommand(O,{form:G})}}};
_.v.getOptionRenderers=function(){var O=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(m){O.isSingleSelect=!!_.b(m,Ur9);return O.isSingleSelect?_.b(m,Ur9):_.b(m,txr)}):[]};
_.v.handleInlineSurveyOptionSelect=function(O){O=this.optionSelector.indexOf(O);O!==-1&&this.optionSelector.selectIndex(O)};
_.v.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.v.maybeGetBackgroundColor=function(O){return this.isDarkMode?O.section2Color:O.section3Color};
_.v.colorPaletteChanged=function(){var O=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;O=O&&this.maybeGetBackgroundColor(O);this.dismissibleEl.style.backgroundColor=!O||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Fs(O)};
_.vr.Object.defineProperties(j7.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
j7.prototype.colorPaletteChanged=j7.prototype.colorPaletteChanged;j7.prototype.onPopupClosed=j7.prototype.onPopupClosed;j7.prototype.handleRequestCompletion=j7.prototype.handleRequestCompletion;j7.prototype.dataChanged=j7.prototype.dataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],j7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],j7.prototype,"actionHandlerBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],j7.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],j7.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.uc("#follow-up-survey-options"),_.Y("design:type",Object)],j7.prototype,"optionSelector",void 0);_.c([_.g(),_.Y("design:type",Object)],j7.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],j7.prototype,"disableAnimation",void 0);_.c([_.g(),_.Y("design:type",Object)],j7.prototype,"isToggleOption",void 0);_.c([_.g(),_.Y("design:type",Object)],j7.prototype,"followUpSurveyCommand",void 0);_.c([_.g(),_.Y("design:type",Object)],j7.prototype,"selectedRatingEndpoint",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],j7.prototype,"expanded",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],j7.prototype,"isSlimlineSurveyFollowUp",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],j7.prototype,"isShortsStyle",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],j7.prototype,"styleOverrideAttribute",void 0);_.c([_.g(),_.Y("design:type",Boolean)],j7.prototype,"isSingleSelect",void 0);_.c([_.g(),_.Y("design:type",Object)],j7.prototype,"isDarkMode",void 0);
_.c([_.g(),_.Y("design:type",Object)],j7.prototype,"lightColorPalette",void 0);_.c([_.g(),_.Y("design:type",Object)],j7.prototype,"darkColorPalette",void 0);_.c([_.T("selectedRatingEndpoint","isShortsStyle"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],j7.prototype,"isOptionSelected",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],j7.prototype,"roundedContainer",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],j7.prototype,"improveShortsResponseRate",void 0);_.c([_.uc("#dismissible"),_.Y("design:type",HTMLElement)],j7.prototype,"dismissibleEl",void 0);_.c([_.uc("#dismiss-button yt-icon-button"),_.Y("design:type",HTMLElement)],j7.prototype,"dismissButtonEl",void 0);_.c([_.uc("#inline-survey-header yt-icon-button"),_.Y("design:type",HTMLElement)],j7.prototype,"inlineHeaderDismissButtonEl",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j7.prototype,"dataChanged",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j7.prototype,"handleRequestCompletion",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],j7.prototype,"onPopupClosed",null);
_.c([_.Tw("darkColorPalette","lightColorPalette","isDarkMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j7.prototype,"colorPaletteChanged",null);_.c([_.l({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],j7);
_.y(j7,"ytd-inline-survey-renderer",function(){if(JNy!==void 0)return JNy;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return JNy=O},{mode:1});var bnh=["en-CA","en","es-MX","fr-CA"];_.nB3=_.a(function(O){var m=_.ru(O,{isOverlay:!1,isModern:!1}),G=m.captionIconType,B=m.onClick;O=m.ariaLabel;var Q=m.ariaPressed,H=m.isOverlay,M=m.isModern;m=_.Al("button",function(t){_.ft(t,127299)});
var R=_.nH(function(t){_.h2(127299);B==null||B(t);return!1}),x={};
return _.q("ytm-closed-captioning-button",{class:_.bE("ytmClosedCaptioningButtonHost",(x.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return G()===-1&&H()},x.ytmClosedCaptioningButtonIconDisabled=function(){return G()===-1&&!H()},x))},_.q("button",{el:m,
class:"ytmClosedCaptioningButtonButton",title:O,"aria-label":O,"aria-pressed":Q,"on:click":R},_.q(_.T$,{icon:function(){var t="",W=M();var Z=W?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";W=W?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var z=_.TC().get("hl");Z=!z||bnh.includes(z)?Z:W;W=G();switch(W){case -1:case 0:t=Z;break;case 1:t=Z+"_FILLED";break;default:_.d8(W)}return t}})))},"Lf");
_.nB3.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.cO=function(O){return function(m,G){var B=O||G.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(m,G,{get:function(){var Q;return this.$?this.$[B]:(Q=_.gX(this))==null?void 0:Q.querySelector("#"+B)},
enumerable:!0,configurable:!0})}};_.Yd=function(O){O=O===void 0?!1:O;_.Iw.call(this);this.pubSub_=new _.nR(O);_.VV(this,this.pubSub_)};
_.MQ(_.Yd,_.Iw);_.Yd.prototype.subscribe=function(O,m,G){return this.isDisposed()?0:this.pubSub_.subscribe(O,m,G)};
_.Yd.prototype.unsubscribe=function(O,m,G){return this.isDisposed()?!1:this.pubSub_.unsubscribe(O,m,G)};
_.Yd.prototype.unsubscribeByKey=function(O){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(O)};
_.Yd.prototype.publish=function(O,m){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var wQo=function(){_.J2("ypcRedeemFlowStarted")},ca=function(O){_.J2("ypcRedeemFlowFailed",void 0,void 0,void 0,O)},epb=function(O,m,G){m&&G&&(O.videos.forEach(function(B){B.videoId===m&&(B.itemId=G)}),O.recommendedVideos.forEach(function(B){B.videoId===m&&(B.itemId=G)}))};var DYo;var sPh;/*

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
*/
_.kZ({_template:function(){if(sPh!==void 0)return sPh;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;DYo===void 0&&(DYo=document.createElement("template"));var B=DYo;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return sPh=O},
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(O,m){var G=this._resolveSrc(O);G!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",O===""||m?this._setLoading(!1):(this._resolvedSrc=G,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 O=this.$.sizedImgDiv.style,m=this.$.placeholder.style;O.backgroundSize=m.backgroundSize=this.sizing;O.backgroundPosition=m.backgroundPosition=this.sizing?this.position:"";O.backgroundRepeat=m.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(O){O=_.i_(O,this.$.baseURIAnchor.href);O.length>=2&&O[0]==="/"&&O[1]!=="/"&&(O=(location.origin||location.protocol+"//"+location.host)+O);return O}});var NZs;var PBA;_.kZ({_template:function(){if(PBA!==void 0)return PBA;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;NZs===void 0&&(NZs=document.createElement("template"));var B=NZs;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return PBA=O},
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(O){return O?"false":"true"},
_headingChanged:function(O){var m=this.getAttribute("heading"),G=this.getAttribute("aria-label");typeof G==="string"&&G!==m||this.setAttribute("aria-label",O)},
_computeHeadingClass:function(O){return O?" over-image":""},
_computeAnimated:function(O){return O}});var FRJ=new _.q$("addRendererToItemSectionAction");var A6r;var Yu=function(){return _.u.apply(this,arguments)||this};
_.X(Yu,_.u);Yu.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Yu.prototype,"rendererBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],Yu.prototype,"dismissibleItemBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Yu.prototype,"rendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Yu.prototype,"data",void 0);_.c([_.l({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Yu);
_.y(Yu,"ytd-comment-history-entry-renderer",function(){if(A6r!==void 0)return A6r;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return A6r=O},{mode:1});var Ocu;_.lE("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.lE("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var dL=function(){return _.u.apply(this,arguments)||this};
_.X(dL,_.u);_.v=dL.prototype;_.v.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.onKeyUp=function(O){if(O.keyCode===13)this.onTap()};
_.v.onTap=function(){this.data.recordClickEndpoint&&_.KR().resolve(_.Mu).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var O=this.data.navigationEndpoint;O&&_.b(O,_.G_)&&_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}})};
_.v.readChanged=function(){var O;_.JG(this.hostElement,"unread",!((O=this.data)==null?0:O.read))};
_.v.dataChanged=function(){this.data&&_.JG(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.v.computeThumbnailSize=function(){var O;return((O=this.data)==null?0:O.highPriorityNotification)?32:48};
_.v.getEndpointURL=function(O){return O&&!_.b(O,_.G_)?this.componentBehavior.computeHref_(O):null};
_.v.getEndpointData=function(O){return O&&!_.b(O,_.G_)?O:null};
dL.prototype.computeThumbnailSize=dL.prototype.computeThumbnailSize;dL.prototype.dataChanged=dL.prototype.dataChanged;dL.prototype.readChanged=dL.prototype.readChanged;dL.prototype.onKeyUp=dL.prototype.onKeyUp;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],dL.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],dL.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],dL.prototype,"data",void 0);_.c([_.g({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.Y("design:type",Number)],dL.prototype,"thumbnailSize",void 0);_.c([_.hG("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],dL.prototype,"onKeyUp",null);
_.c([_.Tw("data.read"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dL.prototype,"readChanged",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dL.prototype,"dataChanged",null);_.c([_.Tw("data.highPriorityNotification"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dL.prototype,"computeThumbnailSize",null);
_.c([_.l({is:"ytd-notification-renderer",disableElementRegistration:!0})],dL);
_.y(dL,"ytd-notification-renderer",function(){if(Ocu!==void 0)return Ocu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Ocu=O},{mode:1});var m73;var wL=function(){return _.u.apply(this,arguments)||this};
_.X(wL,_.u);wL.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"}}}};
wL.prototype.computeActionButtonClass=function(O){return!O.actionButtons||O.actionButtons.length<=1?"single-button":O.description?"vertical-buttons":"horizontal-buttons"};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],wL.prototype,"data",void 0);_.c([_.l({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],wL);
_.y(wL,"ytd-playlist-show-metadata-renderer",function(){if(m73!==void 0)return m73;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return m73=O},{mode:1});var GsK;_.lE("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var e2=function(){return _.u.apply(this,arguments)||this};
_.X(e2,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],e2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],e2.prototype,"data",void 0);_.c([_.l({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],e2);
_.y(e2,"ytd-purchase-item-renderer",function(){if(GsK!==void 0)return GsK;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return GsK=O},{mode:1});var BVK;var QBo={};QBo.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(O){if(O)return O.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(O){if(O==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.lE("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var D$=function(){return _.u.apply(this,arguments)||this};
_.X(D$,_.u);D$.prototype.onYtNavigate=function(O){var m=this.openPopupBehavior.getNavigationEndpointPopupAction(O.detail.endpoint);m&&(O.stopPropagation(),this.openPopupBehavior.openPopup(m))};
D$.prototype.onYtNavigate=D$.prototype.onYtNavigate;_.c([_.h(QBo.YtSimpleTextSectionBehavior),_.Y("design:type",Object)],D$.prototype,"ytSimpleTextSectionBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],D$.prototype,"openPopupBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],D$.prototype,"data",void 0);
_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],D$.prototype,"onYtNavigate",null);_.c([_.l({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],D$);
_.y(D$,"ytd-simple-text-section-renderer",function(){if(BVK!==void 0)return BVK;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return BVK=O},{mode:1});var HcB;_.lE("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var su=function(){return _.u.apply(this,arguments)||this};
_.X(su,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],su.prototype,"data",void 0);_.c([_.l({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],su);
_.y(su,"ytd-unlimited-page-feature-info-renderer",function(){if(HcB!==void 0)return HcB;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return HcB=O},{mode:1});var vqB;var KB0;var NU=function(){return _.u.apply(this,arguments)||this};
_.X(NU,_.u);NU.prototype.dataChanged=function(){if(this.data){var O=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);O&&(O=_.Uf(O,screen.width),this.hostElement.style.backgroundImage="url("+O+")")}};
NU.prototype.dataChanged=NU.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],NU.prototype,"data",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NU.prototype,"dataChanged",null);_.c([_.l({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],NU);
_.y(NU,"ytd-post-redemption-section-renderer",function(){if(KB0!==void 0)return KB0;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return KB0=O},{mode:1});var $7J;var Pa=function(){return _.u.apply(this,arguments)||this};
_.X(Pa,_.u);Pa.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Pa.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Pa.prototype,"data",void 0);_.c([_.l({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Pa);
_.y(Pa,"ytd-ypc-post-redemption-renderer",function(){if($7J!==void 0)return $7J;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return $7J=O},{mode:1});_.lE("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var FN=function(){var O=_.u.apply(this,arguments)||this;O.MIN_CODE_LENGTH=12;O.MAX_CODE_LENGTH=24;return O};
_.X(FN,_.u);_.v=FN.prototype;_.v.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.v.created=function(){this.riskService=new _.sgS;this.loadPaymentThenable=_.PJ6(_.kB("YPC_MB_URL"))};
_.v.ready=function(){var O=this;this.code.addEventListener("keypress",function(m){O.onCodeInputKeypress(m)})};
_.v.dataChanged=function(){var O=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(m){m=_.K(m);for(var G=m.next();!G.done;G=m.next())G=G.value,G.type==="attributes"&&G.attributeName==="dark"&&O.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.v.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var O=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+O+")")}};
_.v.computeRedeemButton=function(O){(O=this.get("redeemButton.buttonRenderer",O))&&(O=Object.assign({},O,{serviceEndpoint:void 0}));return O};
_.v.onRedeemButtonTap=function(O){O.stopPropagation();wQo();this.redeemCode()};
_.v.redeemCode=function(){var O=this;this.isLoading=!0;var m=this.riskService.init();_.ll([m,this.loadPaymentThenable]).then(function(){var G=O.data.redeemButton.buttonRenderer.serviceEndpoint,B=_.NAO(),Q=_.B$.payments.business.integration.ClientTokenFactory.createClientToken(_.b(G,_.kRU).countryCode,B);B={c:O.code.value.trim(),rd:window.btoa(B),ctk:Q};G&&_.KR().resolve(_.Mu).resolveCommand(G,{form:Object.assign({},B,{element:O.hostElement})})},function(){O.showGenericError();
ca("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.di(Error("Bo"))})};
_.v.onYtServiceRequestCompleted=function(O){O.stopPropagation();this.isLoading=!1;var m,G;this.errorMessage=(m=O.detail)==null?void 0:(G=m.data)==null?void 0:G.errorMessage;var B,Q;this.postRedemptionRenderer=(B=O.detail)==null?void 0:(Q=B.data)==null?void 0:Q.renderer;var H,M;if(O=(H=O.detail)==null?void 0:(M=H.data)==null?void 0:M.redirectEndpoint)this.isLoading=!0,_.iP(this.hostElement,"yt-navigate",{endpoint:O});this.errorMessage?ca("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
O)&&_.J2("ypcRedeemFlowSucceeded")};
_.v.onYtServiceRequestError=function(O){O.stopPropagation();this.isLoading=!1;if(O=this.get("detail.error.message",O))this.errorMessage=_.Qg(O);ca("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.v.onInvokeInstrumentManagerActionCompleted=function(O){O.stopPropagation();this.redeemCode()};
_.v.onInvokeInstrumentManagerActionError=function(O){O.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",O)){case "instrumentManagerLoadError":this.showGenericError();ca("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();ca("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.J2("ypcRedeemFlowCancelled")}};
_.v.onInput=function(){var O=this;_.GS(this,"onInput",function(){var m=O.code.value.trim();O.redeemButtonDisabled=m.length<O.MIN_CODE_LENGTH||m.length>O.MAX_CODE_LENGTH},200)};
_.v.onCodeInputKeypress=function(O){O.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(wQo(),this.redeemCode())};
_.v.computeImageUrl=function(O){return O?_.Uf(O.thumbnails,600):null};
_.v.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
FN.prototype.onInvokeInstrumentManagerActionError=FN.prototype.onInvokeInstrumentManagerActionError;FN.prototype.onInvokeInstrumentManagerActionCompleted=FN.prototype.onInvokeInstrumentManagerActionCompleted;FN.prototype.onYtServiceRequestError=FN.prototype.onYtServiceRequestError;FN.prototype.onYtServiceRequestCompleted=FN.prototype.onYtServiceRequestCompleted;FN.prototype.dataChanged=FN.prototype.dataChanged;
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],FN.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],FN.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],FN.prototype,"isLoading",void 0);_.c([_.g(),_.Y("design:type",Boolean)],FN.prototype,"redeemButtonDisabled",void 0);
_.c([_.g(),_.Y("design:type",Object)],FN.prototype,"errorMessage",void 0);_.c([_.g(),_.Y("design:type",Object)],FN.prototype,"postRedemptionRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],FN.prototype,"observer",void 0);_.c([_.uc("#code"),_.Y("design:type",HTMLInputElement)],FN.prototype,"code",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FN.prototype,"dataChanged",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],FN.prototype,"onYtServiceRequestCompleted",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],FN.prototype,"onYtServiceRequestError",null);
_.c([_.hG("yt-invoke-instrument-manager-action-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],FN.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.c([_.hG("yt-invoke-instrument-manager-action-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],FN.prototype,"onInvokeInstrumentManagerActionError",null);_.c([_.l({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],FN);
_.y(FN,"ytd-redeem-code-renderer",function(){if(vqB!==void 0)return vqB;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return vqB=O},{mode:1});var MTy;_.lE("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Ad=function(){var O=_.u.apply(this,arguments)||this;O.businessEmailDisplayState="HIDE_SECTION";return O};
_.X(Ad,_.u);_.v=Ad.prototype;_.v.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}}}}}};
_.v.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"};
_.v.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.v.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.sF(_.cys),this.businessEmailDisplayState="CAPTCHA"))};
_.v.onYtServiceRequestCompleted=function(O){var m;if((m=O.detail.data)==null?0:m.businessEmail)this.businessEmail=O.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var G;if((G=O.detail.data)==null?0:G.errorMessage)this.businessEmailErrorMessage=O.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.v.computeEmailHref=function(O){return"mailto:"+O};
_.v.computeSafeUrl=function(O){if(O)return _.d5(O)};
_.v.onBusinessEmailCaptchaSubmit=function(){var O;(O=this.data)!=null&&O.onBusinessEmailRevealClickCommand&&(O=this.JSC$21747_captchaTextarea.value)&&(O={recaptcha_response_token:O,channel_id:this.data.channelId},_.KR().resolve(_.Mu).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},O,{element:this.hostElement})}))};
_.v.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.vr.Object.defineProperties(Ad.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 O,m;return!((O=this.data)==null||!O.primaryLinks)&&!((m=this.data)==null?0:m.links)&&this.data.primaryLinks.every(function(G){return G.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var O,m;return!((O=this.data)==null||!O.primaryLinks)&&!((m=this.data)==null?0:m.links)&&!this.shouldShowNewLinks}}});
Ad.prototype.onYtServiceRequestCompleted=Ad.prototype.onYtServiceRequestCompleted;Ad.prototype.dataChanged=Ad.prototype.dataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Ad.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ad.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.uc("#g-recaptcha-response"),_.Y("design:type",HTMLTextAreaElement)],Ad.prototype,"JSC$21747_captchaTextarea",void 0);_.c([_.g(),_.Y("design:type",Object)],Ad.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],Ad.prototype,"businessEmailDisplayState",void 0);_.c([_.g(),_.Y("design:type",String)],Ad.prototype,"businessEmail",void 0);_.c([_.g(),_.Y("design:type",String)],Ad.prototype,"businessEmailErrorMessage",void 0);
_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ad.prototype,"hideDetailsSection",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ad.prototype,"dataChanged",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ad.prototype,"shouldShowNewLinks",null);_.c([_.T("data","shouldShowLinks"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Ad.prototype,"shouldShowLegacyLinks",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ad.prototype,"onYtServiceRequestCompleted",null);_.c([_.l({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Ad);
_.y(Ad,"ytd-channel-about-metadata-renderer",function(){if(MTy!==void 0)return MTy;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return MTy=O},{mode:1});var rbJ;_.lE("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Ok=function(){return _.u.apply(this,arguments)||this};
_.X(Ok,_.u);Ok.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ok.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ok.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Number)],Ok.prototype,"lockupContainerType",void 0);_.c([_.g(),_.Y("design:type",String)],Ok.prototype,"thumbnailFixedWidth",void 0);
_.c([_.l({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Ok);
_.y(Ok,"ytd-channel-featured-content-renderer",function(){if(rbJ!==void 0)return rbJ;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return rbJ=O},{mode:1});var RY9;_.lE("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var mR=function(){var O=_.u.apply(this,arguments)||this;O.roundContainer=!0;O.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");return O};
_.X(mR,_.u);_.v=mR.prototype;_.v.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.v.dataChanged=function(){this.imageWidth=this.imageHeight=24;var O=this.data;O.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!O.style&&O.image&&O.image.thumbnails.length&&(O=O.image.thumbnails[0],this.imageWidth=O.width||0,this.imageHeight=O.height||0)};
_.v.computeSource=function(O){return O.secondarySource?_.HX(O.secondarySource):_.HX(O.source)};
_.v.computeClarifyStyle=function(O){return O?O.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.v.isLargeStyle=function(O){return O==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.v.computeBackgroundStyle=function(O){return O?O.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.v.computeHasActionButton=function(O){return!!O.actionButton};
_.v.computeHasBottomSection=function(O){return!!O.ctaHasBottomSection};
_.v.computeIsSourceMissing=function(O){return O.ctaHasBottomSection===!1?!0:O&&this.computeSource(O)?!1:!0};
_.v.computeSecondaryEndpoint=function(O){return O.secondaryEndpoint||O.endpoint};
mR.prototype.dataChanged=mR.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],mR.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mR.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Number)],mR.prototype,"imageWidth",void 0);_.c([_.g(),_.Y("design:type",Number)],mR.prototype,"imageHeight",void 0);
_.c([_.g({computed:"computeSecondaryEndpoint(data)"}),_.Y("design:type",Object)],mR.prototype,"secondaryEndpoint",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.Y("design:type",Boolean)],mR.prototype,"hasActionButton",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.Y("design:type",Boolean)],mR.prototype,"hasBottomSection",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.Y("design:type",Boolean)],mR.prototype,"missingSource",void 0);_.c([_.g({computed:"computeIcon_(data.icon)"}),_.Y("design:type",String)],mR.prototype,"icon",void 0);_.c([_.g({computed:"computeIcon_(data.secondaryIcon)"}),_.Y("design:type",String)],mR.prototype,"secondaryIcon",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.Y("design:type",String)],mR.prototype,"clarifyStyle",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.Y("design:type",String)],mR.prototype,"backgroundStyle",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],mR.prototype,"roundContainer",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],mR.prototype,"amsterdamEnabled",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mR.prototype,"dataChanged",null);
_.c([_.l({is:"ytd-clarification-renderer",disableElementRegistration:!0})],mR);
_.y(mR,"ytd-clarification-renderer",function(){if(RY9!==void 0)return RY9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return RY9=O},{mode:1});var ico;var x7B;var Gq=function(){var O=_.u.apply(this,arguments)||this;O.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");return O};
_.X(Gq,_.u);_.v=Gq.prototype;_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.v.computeIcon=function(O){return O?"yt-icons:"+O.toLowerCase():null};
_.v.computeUseContacts=function(O){return!!O.contacts&&O.contacts.length>0};
_.v.computePhoneContact=function(O){var m,G;return(m=O.contacts)==null?void 0:(G=m.find(function(B){var Q;return(B==null?void 0:(Q=B.icon)==null?void 0:Q.iconType)==="PHONE"}))==null?void 0:G.actionText};
_.v.computeSmsContact=function(O){var m,G;return(m=O.contacts)==null?void 0:(G=m.find(function(B){var Q;return(B==null?void 0:(Q=B.icon)==null?void 0:Q.iconType)==="SMS"}))==null?void 0:G.actionText};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Gq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Gq.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Gq.prototype,"amsterdamEnabled",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.Y("design:type",Boolean)],Gq.prototype,"useContacts",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.Y("design:type",String)],Gq.prototype,"phoneContact",void 0);_.c([_.l({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Gq);
_.y(Gq,"ytd-single-action-emergency-support-renderer",function(){if(x7B!==void 0)return x7B;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return x7B=O},{mode:1});_.lE("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var BQ=function(){var O=_.u.apply(this,arguments)||this;O.roundedContainer=!0;O.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");return O};
_.X(BQ,_.u);BQ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],BQ.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],BQ.prototype,"roundedContainer",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],BQ.prototype,"amsterdamEnabled",void 0);
_.c([_.l({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],BQ);
_.y(BQ,"ytd-emergency-onebox-renderer",function(){if(ico!==void 0)return ico;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ico=O},{mode:1});var qPJ;_.lE("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var QF=function(){return _.u.apply(this,arguments)||this};
_.X(QF,_.u);QF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],QF.prototype,"data",void 0);_.c([_.l({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],QF);
_.y(QF,"ytd-exploratory-results-renderer",function(){if(qPJ!==void 0)return qPJ;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return qPJ=O},{mode:1});var U7A;_.lE("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var HQ=function(){var O=_.u.apply(this,arguments)||this;O.messageData=null;return O};
_.X(HQ,_.u);_.v=HQ.prototype;_.v.onServiceRequestCompleted=function(O,m){O=m.actions||[];m=0;for(var G=O.length;m<G;m++){var B=O[m],Q=void 0,H=void 0;if((Q=_.b(B,_.aC))==null?0:(H=Q.item)==null?0:H.messageRenderer)this.messageData=_.b(B,_.aC).item.messageRenderer}};
_.v.dataChanged=function(){var O=this.data;this.hostElement.hidden=!1;_.JG(this.hostElement,"is-channel",O&&!O.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.v.computeThumbnailWidth=function(O){return O?126:56};
_.v.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.v.onSubmitTap=function(){var O=this.data,m=this.selectedResponseIndex;O!==void 0&&m!==void 0&&(O=O.responses[m],O.responseData&&_.KR().resolve(_.Mu).resolveCommand(O.responseData,{form:{element:this.hostElement}}))};
_.v.onDismissTap=function(){this.hostElement.hidden=!0;var O=this.data;O!==void 0&&O.dismissalEndpoint&&_.KR().resolve(_.Mu).resolveCommand(O.dismissalEndpoint,{form:{element:this.hostElement}})};
_.v.updateSelectedResponseIndexFromBinding=function(O){this.selectedResponseIndex=O.detail.value};
HQ.prototype.onSelectedResponseIndexChange=HQ.prototype.onSelectedResponseIndexChange;HQ.prototype.dataChanged=HQ.prototype.dataChanged;HQ.prototype.onServiceRequestCompleted=HQ.prototype.onServiceRequestCompleted;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],HQ.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],HQ.prototype,"messageData",void 0);
_.c([_.g(),_.Y("design:type",Number)],HQ.prototype,"selectedResponseIndex",void 0);_.c([_.uc("#submit-button"),_.Y("design:type",HTMLButtonElement)],HQ.prototype,"submitButton",void 0);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],HQ.prototype,"onServiceRequestCompleted",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HQ.prototype,"dataChanged",null);
_.c([_.Tw("selectedResponseIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HQ.prototype,"onSelectedResponseIndexChange",null);_.c([_.l({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],HQ);
_.y(HQ,"ytd-feedback-elicitation-single-question-renderer",function(){if(U7A!==void 0)return U7A;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return U7A=O},{mode:1});var tT9;var vQ=function(){return _.u.apply(this,arguments)||this};
_.X(vQ,_.u);vQ.prototype.computeThumbnailWidth=function(O){return O?602:428};
vQ.prototype.updateWideFromBinding=function(O){this.wide=O.detail.value};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],vQ.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],vQ.prototype,"wide",void 0);_.c([_.l({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],vQ);
_.y(vQ,"ytd-newspaper-hero-video-renderer",function(){if(tT9!==void 0)return tT9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return tT9=O},{mode:1});var WBr;var KX=function(){return _.u.apply(this,arguments)||this};
_.X(KX,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],KX.prototype,"rendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],KX.prototype,"data",void 0);_.c([_.l({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],KX);
_.y(KX,"ytd-newspaper-mini-video-renderer",function(){if(WBr!==void 0)return WBr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return WBr=O},{mode:1});var Zco;_.lE("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var $8=function(){return _.u.apply(this,arguments)||this};
_.X($8,_.u);$8.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$8.prototype,"data",void 0);_.c([_.l({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],$8);
_.y($8,"ytd-newspaper-renderer",function(){if(Zco!==void 0)return Zco;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Zco=O},{mode:1});var zYs;_.lE("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var MY=function(){var O=_.u.apply(this,arguments)||this;O.isSegment=!1;O.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};O.nextContinuation={continuationType:"playlistVideoListContinuation"};return O};
_.X(MY,_.u);_.v=MY.prototype;_.v.attached=function(){_.KR();var O;(O=_.KR().resolve(_.v7(_.Lb)))!=null&&(O.playlistVideoListElement=this.hostElement)};
_.v.detached=function(){var O;(O=_.KR().resolve(_.v7(_.Lb)))!=null&&(O.playlistVideoListElement=void 0);O=_.KR().resolve(_.v7(_.Sv));_.V("web_enable_voting_animation")&&O&&(O.parentElem=void 0,O.videos=[],O.continuationsPresent=!1,O.showRefreshPill=!1)};
_.v.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"}}}}}};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.v.dataChanged=function(){var O=_.KR().resolve(_.v7(_.Sv));if(_.V("web_enable_voting_animation")&&this.data&&O){var m=_.ZO(this.hostElement).querySelector("#contents");m&&(O.parentElem=m);O.addVideos(this.data.contents)}_.WSj(this.ytReorderableBehavior)};
_.v.onRendererstamperFinished=function(){this.canReorder&&_.Zts(this.ytReorderableBehavior,_.ZO(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.v.onPlaylistReloading=function(){this.isReloading=!0};
_.v.onUpdateSetVideoId=function(O){if(O.detail&&this.data&&this.data.contents){var m=O.detail;O=this.data.contents.findIndex(function(Q){var H;return((H=Q.playlistVideoRenderer)==null?void 0:H.videoId)===m.videoId});
if(!(O<0)&&m.setVideoId&&(this.set("data.contents."+O+".playlistVideoRenderer.setVideoId",m.setVideoId),_.V("web_enable_voting_animation"))){var G;if(O=_.b((G=this.data.contents[O].playlistVideoRenderer)==null?void 0:G.engagementBar,_.UaI)){var B;(B=O.actions)==null||B.forEach(function(Q){if(Q=_.b(Q,_.tbM))Q.itemId=m.setVideoId})}(G=_.KR().resolve(_.v7(_.Sv)))&&epb(G,m.videoId,m.setVideoId)}}};
_.v.computeContentsClass=function(O){return O?"reloading":""};
_.v.computeIsSortable=function(O,m){return O&&m>0&&!this.isSegment&&!_.V("shorts_in_playlists_web")};
_.v.computeIsEditable=function(O){return O};
_.v.computeCanReorder=function(O){return O};
_.v.handlePlaylistRemoveVideosAction=function(O){if(this.get("playlistRemoveVideosAction.setVideoIds",O)&&this.data&&this.data.contents){O=_.b(O,_.q62).setVideoIds;for(var m=this.data.contents.length-1;m>=0;){var G=this.data.contents[m].playlistVideoRenderer;G&&G.setVideoId&&O.includes(G.setVideoId)&&this.splice("data.contents",m,1);m--}_.xc(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.v.updateIndices=function(){if(this.data&&this.data.contents)for(var O=0;O<this.data.contents.length;O++)this.set("data.contents."+O+".playlistVideoRenderer.index",_.Qg(String(O+1)))};
_.v.handleDrop=function(O){O=O.currDragItem;var m=_.ae(O.parentNode.childNodes,O),G=this.data.contents.splice(Number(_.HX(O.data.index))-1,1)[0];this.data.contents.splice(m,0,G);m=m?this.get("contents."+(m-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();O=this.buildReorderServiceEndpoint(O.data.setVideoId,m);this.ytComponentBehavior.resolveCommand(O)};
_.v.buildReorderServiceEndpoint=function(O,m){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",O),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",m),this.data.onReorderEndpoint):null};
_.v.handleUpdatePlaylistAction=function(O){var m;(O=_.b((m=_.b(O,_.Um2))==null?void 0:m.updatedRenderer,_.MI2))&&this.canReorder!==O.canReorder&&this.set("data.canReorder",O.canReorder);O&&O.contents&&(this.set("data.contents",O.contents),this.isReloading=!1);O&&O.continuations&&this.set("data.continuations",O.continuations)};
_.v.handleAddRendererToItemSectionAction=function(O){var m,G=(m=_.b(O,FRJ))==null?void 0:m.renderer,B;G&&((B=_.b(O,FRJ))==null?void 0:B.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,G),O=_.KR().resolve(_.v7(_.Sv)),_.V("web_enable_voting_animation")&&O&&(G&&(m=_.qCN(G))&&O.recommendedVideos.push({itemId:m,videoId:_.WJ5(G),voteCount:_.ZD6(G),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.v.isVotingEnabledOnPlaylist=function(O){if(!O)return!1;O=_.K(O);for(O=O.next();!O.done;O=O.next()){var m=void 0;return!!_.b((m=O.value.playlistVideoRenderer)==null?void 0:m.engagementBar,_.UaI)}return!1};
_.v.onAppendContinuationItemsActionFinished=function(){var O;this.isVotingEnabledOnPlaylist((O=this.data)==null?void 0:O.contents)&&(this.updateIndices(),O=_.KR().resolve(_.v7(_.Sv)),_.V("web_enable_voting_animation")&&O&&this.data&&O.addVideos(this.data.contents))};
_.v.updateVideoData=function(O){if(O.detail&&this.data&&this.data.contents){var m=O.detail;O=m.toIdx;var G=m.itemId,B=m.newVoteCount,Q=m.voteStatus;m=m.hideItem;var H,M,R=(H=this.data)==null?void 0:(M=H.contents)==null?void 0:M.findIndex(function(Z){return _.qCN(Z)===G});
if(!(R<0)){H=this.data.contents[R];var x;if((x=H.playlistVideoRenderer)==null?0:x.voteCount)H.playlistVideoRenderer.voteCount=B;var t;if(x=_.b((t=H.playlistVideoRenderer)==null?void 0:t.engagementBar,_.UaI)){var W;(W=x.actions)==null||W.forEach(function(Z){(Z=_.b(Z,_.tbM))&&Z.initialState&&(Z.initialState.votes=B,Z.initialState.status=Q)})}this.data.contents.splice(R,1);
m||this.data.contents.splice(O,0,H);this.updateIndices()}}};
MY.prototype.updateVideoData=MY.prototype.updateVideoData;MY.prototype.onAppendContinuationItemsActionFinished=MY.prototype.onAppendContinuationItemsActionFinished;MY.prototype.onUpdateSetVideoId=MY.prototype.onUpdateSetVideoId;MY.prototype.onPlaylistReloading=MY.prototype.onPlaylistReloading;MY.prototype.onRendererstamperFinished=MY.prototype.onRendererstamperFinished;MY.prototype.dataChanged=MY.prototype.dataChanged;
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],MY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],MY.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.Z8.YtNextContinuationBehavior),_.Y("design:type",Object)],MY.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.h(_.zM9),_.Y("design:type",Object)],MY.prototype,"ytReorderableBehavior",void 0);_.c([_.h(_.Ww),_.Y("design:type",Object)],MY.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],MY.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],MY.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],MY.prototype,"isReloading",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],MY.prototype,"isSegment",void 0);_.c([_.g({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.Y("design:type",Boolean)],MY.prototype,"isSortable",void 0);_.c([_.g({computed:"computeIsEditable(data.isEditable)"}),_.Y("design:type",Boolean)],MY.prototype,"isEditable",void 0);_.c([_.g({computed:"computeCanReorder(data.canReorder)"}),_.Y("design:type",Boolean)],MY.prototype,"canReorder",void 0);
_.c([_.g({value:101}),_.Y("design:type",Number)],MY.prototype,"scrollMargin",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MY.prototype,"dataChanged",null);_.c([_.hG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MY.prototype,"onRendererstamperFinished",null);
_.c([_.hG("yt-playlist-reloading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MY.prototype,"onPlaylistReloading",null);_.c([_.hG("yt-update-set-video-id"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],MY.prototype,"onUpdateSetVideoId",null);
_.c([_.hG("yt-append-continuation-items-action-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],MY.prototype,"onAppendContinuationItemsActionFinished",null);_.c([_.hG("yt-update-video-data-voting-animation"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],MY.prototype,"updateVideoData",null);_.c([_.l({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],MY);
_.y(MY,"ytd-playlist-video-list-renderer",function(){if(zYs!==void 0)return zYs;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return zYs=O},{mode:_.ZB("kevlar_poly_si_batch_j047")?1:2});var Jby;var rZ=function(){return _.u.apply(this,arguments)||this};
_.X(rZ,_.u);rZ.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"}}}}};
rZ.prototype.onTextWrapperTap=function(O){var m=this.data&&this.data.navigationEndpoint;m&&!_.Hu(_.$Z(O),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.iP(this.hostElement,"yt-navigate",{endpoint:m})};
rZ.prototype.dataChanged=function(){var O=this.get("data.offerButton.buttonRenderer.serviceEndpoint");O&&O.commandMetadata&&_.b(O.commandMetadata,_.dT)&&_.b(O.commandMetadata,_.dT).fireAutomatically&&_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}})};
rZ.prototype.dataChanged=rZ.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Z2),_.Y("design:type",Object)],rZ.prototype,"ytdLockupBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],rZ.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],rZ.prototype,"useBiggerThumbs",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.ib("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],rZ.prototype,"biggerThumbsStyle",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],rZ.prototype,"leftAligned",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rZ.prototype,"dataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-movie-renderer"})],rZ);
_.y(rZ,"ytd-movie-renderer",function(){if(Jby!==void 0)return Jby;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Jby=O},{mode:1});var VT3;var RP=function(){var O=_.u.apply(this,arguments)||this;O.rounded=!0;O.pageAttachedTo=void 0;O.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return O};
_.X(RP,_.u);RP.prototype.attached=function(){this.pageAttachedTo=_.KR().resolve(_.KJ).getCurrentPage();_.iP(this.hostElement,"yt-player-attached",this.player)};
RP.prototype.detached=function(){var O;if((O=this.pageAttachedTo)==null?0:O.hostElement)_.iP(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
RP.prototype.dataChanged=function(){var O;if((O=this.data)==null?0:O.videoId)O={video_id:this.data.videoId,autoplay:!0},!_.V("miniplayer_stop_channel_video_autoplay_killswitch")&&_.KR().resolve(_.c$).isMiniplayerActive()&&(O.pause_at_start=!0,O.autoplay=!1),this.player.loadVideoWithPlayerVars(O)};
RP.prototype.handleSignalActionPausePlayer=function(){_.rR().pause()};
RP.prototype.dataChanged=RP.prototype.dataChanged;_.c([_.g(),_.Y("design:type",Object)],RP.prototype,"data",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],RP.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],RP.prototype,"rounded",void 0);_.c([_.uc("#player"),_.Y("design:type",Object)],RP.prototype,"player",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],RP.prototype,"dataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],RP);
_.y(RP,"ytd-channel-video-player-renderer",function(){if(VT3!==void 0)return VT3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return VT3=O},{mode:1});var bcA;var nq0;var XWr;var iB=function(){var O=_.u.apply(this,arguments)||this;O.playing=!1;O.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.sS(O);O.active=!1;return O};
_.X(iB,_.u);_.v=iB.prototype;_.v.detached=function(){this.stop()};
_.v.play=function(){var O=this,m,G,B,Q,H;return _.r(function(M){if(M.nextAddress==1)return O.active=!0,m=O.get("data.inlinePlaybackEndpoint.watchEndpoint"),G=m.videoId||O.data.videoId,B=m.startTimeSeconds||0,Q=m.playerParams||null,_.V("kevlar_player_update_killswitch")?M.yield(O.playerEl.update({args:{video_id:G,startSeconds:B,player_params:Q}}),2):(O.playerEl.loadVideoWithPlayerVars({video_id:G,startSeconds:B,player_params:Q,autoplay:!0}),M.jumpTo(2));if(M.nextAddress!=4)return M.yield(O.playerEl.getPlayerPromise(),
4);H=M.yieldResult;H.unloadModule("annotations_module");H.addEventListener("onStateChange",function(R){O.onPlayerStateChange(R)});
_.ju(M)})};
_.v.onPlayerStateChange=function(O){if(this.active)switch(this.playing=O===1,O){case 1:_.iP(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.iP(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.v.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.v.resize=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return G.yield(O.playerEl.getPlayerPromise(),2);m=G.yieldResult;m.setSize(NaN,NaN);_.ju(G)})};
_.c([_.g(),_.Y("design:type",Object)],iB.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],iB.prototype,"playing",void 0);_.c([_.g(),_.Y("design:type",Object)],iB.prototype,"playerId",void 0);_.c([_.uc("#player"),_.Y("design:type",Object)],iB.prototype,"playerEl",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],iB);
_.y(iB,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(XWr!==void 0)return XWr;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return XWr=O},{mode:1});var fXh;var hYb;var x8=function(){var O=_.u.apply(this,arguments)||this;O.width=0;return O};
_.X(x8,_.u);_.v=x8.prototype;_.v.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.f7(this,this.onEnded));this.mp4El.addEventListener("error",_.f7(this,this.onError))};
_.v.detached=function(){this.videoEl.removeEventListener("ended",_.f7(this,this.onEnded));this.mp4El.removeEventListener("error",_.f7(this,this.onError))};
_.v.play=function(){var O=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var m=this.videoEl.play();m?m.then(function(){O.handleVideoStartPlaying()}).catch(function(){_.iP(O.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.iP(this.hostElement,"yt-video-thumbnail-not-playing")};
_.v.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.v.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.v.dataChanged=function(){var O;if((O=this.data)==null?0:O.thumbnailPlaceholder)O=_.Uf(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+O+")";this.stop();this.autoplay&&this.play()};
_.v.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.v.onEnded=function(){this.stop();_.iP(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.v.onError=function(){_.iP(this.hostElement,"yt-video-thumbnail-error")};
_.v.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.v.getVideoThumbnail=function(O){if(O&&O.length)return O[0]};
x8.prototype.dataChanged=x8.prototype.dataChanged;_.c([_.g(),_.Y("design:type",Object)],x8.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],x8.prototype,"animatePlaceholderOnEntrance",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],x8.prototype,"autoplay",void 0);_.c([_.g({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.Y("design:type",Object)],x8.prototype,"videoThumbnail",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],x8.prototype,"loop",void 0);_.c([_.g(),_.Y("design:type",Boolean)],x8.prototype,"isVideoPlaying",void 0);_.c([_.g(),_.Y("design:type",Object)],x8.prototype,"width",void 0);_.c([_.uc("#mp4"),_.Y("design:type",HTMLElement)],x8.prototype,"mp4El",void 0);_.c([_.uc("#placeholder"),_.Y("design:type",HTMLElement)],x8.prototype,"placeholderEl",void 0);_.c([_.uc("#video"),_.Y("design:type",HTMLVideoElement)],x8.prototype,"videoEl",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],x8.prototype,"dataChanged",null);_.c([_.DO({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],x8);
_.y(x8,"yt-video-as-thumbnail-details",function(){if(hYb===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;fXh===void 0&&(fXh=document.createElement("template"));var B=fXh;G.call(m,B.content.cloneNode(!0),O.content.firstChild);hYb=O}O=hYb;return O},{mode:2});var qY=function(){var O=_.u.apply(this,arguments)||this;O.disableGridStateAware=!1;O.animationEnabled=_.V("enable_web_ketchup_hero_animation");O.transitioningOut=!1;O.narrow=!1;O.narrower=!1;O.isCarouselInFeed=!1;O.videoTimeoutJobId=0;O.panelTimeoutJobId=0;O.panelTimeoutJobStartMs=0;O.actionMap={"yt-window-resized":"onWindowResized"};return O};
_.X(qY,_.u);_.v=qY.prototype;_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.v.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var O;this.player&&((O=this.data)==null?0:O.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.v.attached=function(){this.onWindowResized()};
_.v.detached=function(){this.clearTimeouts()};
_.v.onWindowResized=function(){this.updateSize()};
_.v.computePanelLayout=function(O){return O&&O.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.v.playVideo=function(){var O;this.video&&((O=this.data)==null?0:O.videoThumbnail)&&this.video.play();var m;this.player&&((m=this.data)==null?0:m.inlinePlaybackRenderer)&&this.player.play()};
_.v.stopVideo=function(){var O;this.video&&((O=this.data)==null?0:O.videoThumbnail)&&this.video.stop();var m;this.player&&((m=this.data)==null?0:m.inlinePlaybackRenderer)&&this.player.stop()};
_.v.transitionOut=function(){var O=this;this.transitioningOut=!0;return new Promise(function(m){var G=function(){_.ZO(O.hostElement).querySelector("#action-button").removeEventListener("animationend",G);_.ln.cancelJob(B);m();O.transitioningOut=!1};
var B=_.uT(_.ln,G,1E3);_.ZO(O.hostElement).querySelector("#action-button").addEventListener("animationend",G);O.player&&(O.player.playing=!1)})};
_.v.computeMetadataOrder=function(O){return O&&O.metadataOrder&&O.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?O.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.v.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.v.computeAvatarSize=function(O){return O&&O.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.v.onContentClick=function(O){if(!_.Hu(_.$Z(O),this.hostElement,["A".toString(),"BUTTON".toString()])){var m;if((m=this.data)==null?0:m.navigationEndpoint){var G;this.componentBehavior.resolveCommand((G=this.data)==null?void 0:G.navigationEndpoint)}}};
_.v.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.v.setBackgroundImage=function(O){if(O=this.getBackgroundImageUrl(O))_.ZO(this.hostElement).querySelector("#hero").style.backgroundImage="url("+O+")"};
_.v.setScrimLayer=function(O){var m=this.getScrimLayerColorStops(O);O=((O==null?void 0:O.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(O=180);_.kB("HTML_DIR")==="rtl"&&(O=-O);m&&(_.ZO(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+O+"deg, "+m+")")};
_.v.isNarrower=function(){return this.hostElement.clientWidth<qY.NARROW_VERSION_SIZE};
_.v.getScrimLayerColorStops=function(){var O,m=(O=this.data)==null?void 0:O.scrimColorValues;if(!m)return null;if(m.length===1)return O=_.AV(m[0]),O+" 0%, "+O+" 100%";if(m.length===3){var G=[0,72,98];return m.map(function(B,Q){return _.AV(B)+" "+G[Q]+"%"}).join(",")}return null};
_.v.getBackgroundImageUrl=function(O){return O&&O.largeFormFactorBackgroundThumbnail?_.Uf((O.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||O.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.v.onPlaying=function(){this.startVideoTimeout()};
_.v.onEnded=function(){this.rotate()};
_.v.startPanelTimeout=function(){var O=this;if(!this.panelTimeoutJobId){var m=this.get("data.minPanelDisplayDurationMs");m&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.uT(_.ln,function(){O.rotate()},m))}};
_.v.startVideoTimeout=function(){var O=this;if(!this.videoTimeoutJobId){_.ln.cancelJob(this.panelTimeoutJobId);var m=Date.now()-this.panelTimeoutJobStartMs;m=Math.max(0,this.get("data.minPanelDisplayDurationMs")-m);m=Math.max(this.get("data.minVideoPlayDurationMs")||0,m);this.videoTimeoutJobId=_.uT(_.ln,function(){O.rotate()},m)}};
_.v.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.ln.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.ln.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.v.rotate=function(){this.clearTimeouts();_.iP(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.vr.Object.defineProperties(qY.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.ZO(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.ZO(this.hostElement).querySelector("#video")}}});
_.vr.Object.defineProperties(qY,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
qY.prototype.onEnded=qY.prototype.onEnded;qY.prototype.onPlaying=qY.prototype.onPlaying;qY.prototype.dataChanged=qY.prototype.dataChanged;_.c([_.h(_.xm),_.Y("design:type",Object)],qY.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],qY.prototype,"componentBehavior",void 0);_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],qY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.h(_.I79),_.Y("design:type",Object)],qY.prototype,"ytBooleanLogicBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],qY.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],qY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],qY.prototype,"disableGridStateAware",void 0);_.c([_.g(),_.Y("design:type",Object)],qY.prototype,"data",void 0);_.c([_.g({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.Y("design:type",String)],qY.prototype,"panelLayout",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],qY.prototype,"animationEnabled",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],qY.prototype,"transitioningOut",void 0);
_.c([_.g({computed:"computeMetadataOrder(data)"}),_.Y("design:type",Boolean)],qY.prototype,"metadataOrder",void 0);_.c([_.g({computed:"computeByline(data)"}),_.Y("design:type",Object)],qY.prototype,"byline",void 0);_.c([_.g({computed:"computeAvatarSize(data)"}),_.Y("design:type",Number)],qY.prototype,"avatarSize",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],qY.prototype,"narrow",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],qY.prototype,"narrower",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],qY.prototype,"layoutStyle",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],qY.prototype,"isCarouselInFeed",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qY.prototype,"dataChanged",null);_.c([_.hG("yt-default-promo-panel-renderer-playing"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qY.prototype,"onPlaying",null);
_.c([_.hG("yt-default-promo-panel-renderer-ended"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qY.prototype,"onEnded",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],qY);
_.y(qY,"ytd-default-promo-panel-renderer",function(){if(nq0!==void 0)return nq0;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return nq0=O},{mode:1});_.lE("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Uk=function(){var O=_.u.apply(this,arguments)||this;O.narrower=!1;O.dotMenuVisible=!1;O.paginationThumbnailsVisible=!1;O.active=!0;O.disableGridStateAware=!1;O.actionMap={"yt-window-resized":"onWindowResized"};return O};
_.X(Uk,_.u);_.v=Uk.prototype;_.v.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]]"}}}}}};
_.v.attached=function(){document.addEventListener("yt-page-type-changed",_.f7(this,this.onPageTypeChange));this.currentPageSubtype=_.SHp(location.pathname);this.onWindowResized()};
_.v.detached=function(){this.jobId&&_.ln.cancelJob(this.jobId);this.updateSizeJobId&&_.ln.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.f7(this,this.onPageTypeChange))};
_.v.onPageTypeChange=function(O){this.active=O.detail.newPageSubtype===this.currentPageSubtype};
_.v.onWindowResized=function(){this.updateSize()};
_.v.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.v.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.v.setCarouselItem=function(O){O>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.ln.cancelJob(this.jobId);var m=this.getCurrentPanelElement();m&&m.stopVideo();this.currentItemIndex=O%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(m||(m=this.getCurrentPanelElement()),m.playVideo()):this.startRotationJob()};
_.v.scrollThumbnails=function(O){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var m=this.getCurrentPaginationElement();if(m){var G=_.ZO(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?G.style.transform="translateX(0)":(m=m.offsetWidth+8,G.style.transform="translateX(-"+m*(O-Math.ceil(Math.floor(this.overlay.offsetWidth/m)/2)+1)+"px)")}}};
_.v.onDataChanged=function(){var O=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.t8(_.ln,function(){var m;(m=O.getCurrentPanelElement())==null||m.updateSize();O.updateSize()}))};
_.v.getCurrentPanelElement=function(){return _.ZO(_.ZO(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.v.getCurrentPaginationElement=function(){return _.ZO(_.ZO(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.v.getNavigationClass=function(O,m){return O===m?"selected":""};
_.v.getNavigationDurationStyle=function(O){return"animation-duration:"+(this.get("data.carouselItems."+O+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.v.onNavigationTap=function(O){var m=this,G=O.model.index;G!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){m.setCarouselItem(G)}),this.autorotateActive=!1)};
_.v.onVideoThumbnailEnded=function(){var O=this;if(this.shouldRotate()){var m=this.getCurrentPaginationElement();m&&(m.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){m.classList.remove("finished");O.setNextCarouselItem()}))}};
_.v.onVideoThumbnailError=function(){this.startRotationJob()};
_.v.onVideoNotPlaying=function(){this.startRotationJob()};
_.v.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.v.startRotationJob=function(){var O=this;_.ln.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.ln.addLowPriorityJob(function(){O.getCurrentPanelElement().transitionOut().then(function(){O.setNextCarouselItem()})},this.rotationTimeout))};
_.v.computeDotMenuVisible=function(O,m){return!!O&&!!O.carouselItems&&O.carouselItems.length>1&&!O.paginationThumbnails||!!m};
_.v.computePaginationThumbnailsVisible=function(O,m){var G,B;return((B=O==null?void 0:(G=O.paginationThumbnails)==null?void 0:G.length)!=null?B:0)>1&&!m};
_.v.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.v.computePaginatorAlignment=function(O){return(O==null?void 0:O.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.v.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.v.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.v.isNarrower=function(O){return(O!=null?O:0)<qY.NARROW_VERSION_SIZE};
Uk.prototype.activeChanged=Uk.prototype.activeChanged;Uk.prototype.onVideoNotPlaying=Uk.prototype.onVideoNotPlaying;Uk.prototype.onVideoThumbnailError=Uk.prototype.onVideoThumbnailError;Uk.prototype.onVideoThumbnailEnded=Uk.prototype.onVideoThumbnailEnded;Uk.prototype.onDataChanged=Uk.prototype.onDataChanged;_.c([_.h(_.xm),_.Y("design:type",Object)],Uk.prototype,"ytdGridStateAwareBehavior",void 0);
_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Uk.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Uk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Uk.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Uk.prototype,"currentItem",void 0);
_.c([_.g(),_.Y("design:type",Number)],Uk.prototype,"currentItemIndex",void 0);_.c([_.g(),_.Y("design:type",Number)],Uk.prototype,"rotationTimeout",void 0);_.c([_.g(),_.Y("design:type",Number)],Uk.prototype,"loopCount",void 0);_.c([_.g({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.Y("design:type",String)],Uk.prototype,"paginatorAlignment",void 0);_.c([_.g(),_.Y("design:type",Number)],Uk.prototype,"jobId",void 0);
_.c([_.g(),_.Y("design:type",Number)],Uk.prototype,"updateSizeJobId",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Uk.prototype,"isCarouselInFeed",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Uk.prototype,"narrower",void 0);_.c([_.g({computed:"computeDotMenuVisible(data, narrower)"}),_.Y("design:type",Object)],Uk.prototype,"dotMenuVisible",void 0);
_.c([_.g({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.Y("design:type",Object)],Uk.prototype,"paginationThumbnailsVisible",void 0);_.c([_.g({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.Y("design:type",String)],Uk.prototype,"layoutType",void 0);_.c([_.g({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Uk.prototype,"autorotateActive",void 0);_.c([_.g(),_.Y("design:type",Object)],Uk.prototype,"active",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Uk.prototype,"disableGridStateAware",void 0);_.c([_.uc("#overlay"),_.Y("design:type",HTMLElement)],Uk.prototype,"overlay",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uk.prototype,"onDataChanged",null);
_.c([_.hG("yt-video-thumbnail-ended"),_.hG("yt-default-promo-panel-renderer-rotate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uk.prototype,"onVideoThumbnailEnded",null);_.c([_.hG("yt-video-thumbnail-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uk.prototype,"onVideoThumbnailError",null);
_.c([_.hG("yt-video-thumbnail-not-playing"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uk.prototype,"onVideoNotPlaying",null);_.c([_.Si("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uk.prototype,"activeChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Uk);
_.y(Uk,"ytd-carousel-item-renderer",function(){if(bcA!==void 0)return bcA;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return bcA=O},{mode:2});var TVr;var gqb;var uUJ;var jBs;var t6=function(){var O=_.u.apply(this,arguments)||this;O.originalQuery=null;O.originalEndpoint=null;return O};
_.X(t6,_.u);t6.prototype.computeShowOriginalQueryWithoutEndpoint_=function(O,m){return!(!O||m)};
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],t6.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],t6.prototype,"correctedText",void 0);_.c([_.g(),_.Y("design:type",Object)],t6.prototype,"correctedQuery",void 0);_.c([_.g(),_.Y("design:type",Object)],t6.prototype,"correctedEndpoint",void 0);_.c([_.g(),_.Y("design:type",Object)],t6.prototype,"originalText",void 0);_.c([_.g(),_.Y("design:type",Object)],t6.prototype,"originalQuery",void 0);
_.c([_.g(),_.Y("design:type",Object)],t6.prototype,"originalEndpoint",void 0);_.c([_.g({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.Y("design:type",Boolean)],t6.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.c([_.DO({is:"yt-search-query-correction",disableElementRegistration:!0})],t6);
_.y(t6,"yt-search-query-correction",function(){if(jBs===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;uUJ===void 0&&(uUJ=document.createElement("template"));var B=uUJ;G.call(m,B.content.cloneNode(!0),O.content.firstChild);jBs=O}O=jBs;return O},{mode:2});_.lE("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var WQ=function(){return _.u.apply(this,arguments)||this};
_.X(WQ,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],WQ.prototype,"data",void 0);_.c([_.DO({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],WQ);
_.y(WQ,"yt-did-you-mean-renderer",function(){if(gqb===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;TVr===void 0&&(TVr=document.createElement("template"));var B=TVr;G.call(m,B.content.cloneNode(!0),O.content.firstChild);gqb=O}O=gqb;return O},{mode:2});var IXx;var pW0;_.lE("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var Zz=function(){return _.u.apply(this,arguments)||this};
_.X(Zz,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Zz.prototype,"data",void 0);_.c([_.DO({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],Zz);
_.y(Zz,"yt-including-results-for-renderer",function(){if(pW0===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;IXx===void 0&&(IXx=document.createElement("template"));var B=IXx;G.call(m,B.content.cloneNode(!0),O.content.firstChild);pW0=O}O=pW0;return O},{mode:2});var SP0;var Eqr;_.lE("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var zq=function(){return _.u.apply(this,arguments)||this};
_.X(zq,_.u);zq.prototype.computeExtraClasses_=function(O,m){var G="";O&&(G+=" "+O.toLowerCase().replace(/_/g,"-"));m&&(G+=" "+m.toLowerCase().replace(/_/g,"-"));return G};
zq.prototype.computeUrlImg_=function(){var O=this.data;O.image&&(_.ZO(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Uf(O.image.thumbnails,Number.MAX_VALUE)+")")};
zq.prototype.computeUrlImg_=zq.prototype.computeUrlImg_;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],zq.prototype,"data",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zq.prototype,"computeUrlImg_",null);_.c([_.DO({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],zq);
_.y(zq,"yt-music-pass-feature-info-renderer",function(){if(Eqr===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;SP0===void 0&&(SP0=document.createElement("template"));var B=SP0;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Eqr=O}O=Eqr;return O},{mode:2});var LBK;var CMy;_.lE("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var J6=function(){return _.u.apply(this,arguments)||this};
_.X(J6,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],J6.prototype,"data",void 0);_.c([_.DO({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],J6);
_.y(J6,"yt-no-results-found-showing-results-for-renderer",function(){if(CMy===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;LBK===void 0&&(LBK=document.createElement("template"));var B=LBK;G.call(m,B.content.cloneNode(!0),O.content.firstChild);CMy=O}O=CMy;return O},{mode:2});var oqx;var lXo;_.lE("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var VF=function(){return _.u.apply(this,arguments)||this};
_.X(VF,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],VF.prototype,"data",void 0);_.c([_.DO({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],VF);
_.y(VF,"yt-results-without-quotes-renderer",function(){if(lXo===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;oqx===void 0&&(oqx=document.createElement("template"));var B=oqx;G.call(m,B.content.cloneNode(!0),O.content.firstChild);lXo=O}O=lXo;return O},{mode:2});var aX3;var ksJ;_.lE("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var bB=function(){return _.u.apply(this,arguments)||this};
_.X(bB,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],bB.prototype,"data",void 0);_.c([_.DO({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],bB);
_.y(bB,"yt-search-no-results-renderer",function(){if(ksJ===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;aX3===void 0&&(aX3=document.createElement("template"));var B=aX3;G.call(m,B.content.cloneNode(!0),O.content.firstChild);ksJ=O}O=ksJ;return O},{mode:2});var yb9;var cbb;_.lE("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var nX=function(){return _.u.apply(this,arguments)||this};
_.X(nX,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],nX.prototype,"data",void 0);_.c([_.DO({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],nX);
_.y(nX,"yt-showing-results-for-renderer",function(){if(cbb===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;yb9===void 0&&(yb9=document.createElement("template"));var B=yb9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);cbb=O}O=cbb;return O},{mode:2});var YP0;var d7y;var wWr;var eYJ;var Xa=function(){var O=_.u.apply(this,arguments)||this;O.answerExpanded=!1;return O};
_.X(Xa,_.u);Xa.prototype.toggleAnswer_=function(O){var m=_.Mj(O);m&&m.classList.contains("yt-simple-endpoint")||(O.preventDefault(),O.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Xa.prototype.toggleAnswer_=Xa.prototype.toggleAnswer_;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Xa.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Xa.prototype,"answerExpanded",void 0);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Xa.prototype,"toggleAnswer_",null);
_.c([_.DO({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Xa);
_.y(Xa,"yt-generic-faq-question-renderer",function(){if(eYJ===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;wWr===void 0&&(wWr=document.createElement("template"));var B=wWr;G.call(m,B.content.cloneNode(!0),O.content.firstChild);eYJ=O}O=eYJ;return O},{mode:2});_.lE("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var fX=function(){return _.u.apply(this,arguments)||this};
_.X(fX,_.u);fX.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],fX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],fX.prototype,"data",void 0);_.c([_.DO({is:"yt-faq-section-renderer",disableElementRegistration:!0})],fX);
_.y(fX,"yt-faq-section-renderer",function(){if(d7y===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;YP0===void 0&&(YP0=document.createElement("template"));var B=YP0;G.call(m,B.content.cloneNode(!0),O.content.firstChild);d7y=O}O=d7y;return O},{mode:2});var D7J;var sBy;_.lE("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var h6=function(){return _.u.apply(this,arguments)||this};
_.X(h6,_.u);
h6.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],h6.prototype,"data",void 0);_.c([_.DO({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],h6);
_.y(h6,"yt-offer-item-expanded-renderer",function(){if(sBy===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;D7J===void 0&&(D7J=document.createElement("template"));var B=D7J;G.call(m,B.content.cloneNode(!0),O.content.firstChild);sBy=O}O=sBy;return O},{mode:2});var NVx;var PMr;_.lE("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var Tq=function(){return _.u.apply(this,arguments)||this};
_.X(Tq,_.u);
Tq.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"}}}}};
Tq.prototype.computeFullWidthMode=function(O){return!(!O||!O.fullWidthMode)};
Tq.prototype.computeBorderlessMode=function(O){return!(!O||!O.borderlessMode)};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Tq.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.Y("design:type",Boolean)],Tq.prototype,"fullWidthMode",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.Y("design:type",Boolean)],Tq.prototype,"borderlessMode",void 0);_.c([_.DO({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Tq);
_.y(Tq,"yt-offer-item-renderer",function(){if(PMr===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;NVx===void 0&&(NVx=document.createElement("template"));var B=NVx;G.call(m,B.content.cloneNode(!0),O.content.firstChild);PMr=O}O=PMr;return O},{mode:2});var FBK;var AbA;_.lE("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var gZ=function(){return _.u.apply(this,arguments)||this};
_.X(gZ,_.u);gZ.prototype.computeAriaLevel_=function(O){return this.getLevelID_(O)};
gZ.prototype.getLevelID_=function(O){return(O=O.match(/[0-9]+$/))&&O.length==1?O[0]:"1"};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],gZ.prototype,"data",void 0);_.c([_.g({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.Y("design:type",String)],gZ.prototype,"ariaLevel",void 0);_.c([_.g({value:"heading",reflectToAttribute:!0}),_.Y("design:type",String)],gZ.prototype,"role",void 0);
_.c([_.g({value:-1,reflectToAttribute:!0}),_.Y("design:type",Number)],gZ.prototype,"tabindex",void 0);_.c([_.DO({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],gZ);
_.y(gZ,"yt-subscription-product-header-renderer",function(){if(AbA===void 0){var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;FBK===void 0&&(FBK=document.createElement("template"));var B=FBK;G.call(m,B.content.cloneNode(!0),O.content.firstChild);AbA=O}O=AbA;return O},{mode:2});var Ouo;var mty;_.lE("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var uB=function(){return _.u.apply(this,arguments)||this};
_.X(uB,_.u);uB.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:_.aZ("menuRenderer"),events:!0}}};
uB.prototype.onStampFinished_=function(){_.ZO(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
uB.prototype.onStampFinished_=uB.prototype.onStampFinished_;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],uB.prototype,"data",void 0);_.c([_.hG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uB.prototype,"onStampFinished_",null);
_.c([_.DO({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],uB);
_.y(uB,"yt-subscription-product-renderer",function(){if(mty===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Ouo===void 0&&(Ouo=document.createElement("template"));var B=Ouo;G.call(m,B.content.cloneNode(!0),O.content.firstChild);mty=O}O=mty;return O},{mode:2});var GlB;var Bzs;_.lE("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var j3=function(){return _.u.apply(this,arguments)||this};
_.X(j3,_.u);j3.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
j3.prototype.imageScrimColorValuesChanged_=function(){var O,m=(O=this.data)==null?void 0:O.imageScrimColorValues;_.ZO(this.hostElement).querySelector("#scrim").style.backgroundColor=m?_.AV(m[0]):"transparent"};
j3.prototype.imageScrimColorValuesChanged_=j3.prototype.imageScrimColorValuesChanged_;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],j3.prototype,"data",void 0);
_.c([_.Tw("data.imageScrimColorValues"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],j3.prototype,"imageScrimColorValuesChanged_",null);_.c([_.DO({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],j3);
_.y(j3,"yt-subscription-product-upsell-offer-renderer",function(){if(Bzs===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;GlB===void 0&&(GlB=document.createElement("template"));var B=GlB;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Bzs=O}O=Bzs;return O},{mode:2});var Qm0;var Huu;var v_x;var Kur;var $t0;var MW9;var IP=function(){return _.u.apply(this,arguments)||this};
_.X(IP,_.u);IP.prototype.onYtServiceRequestError_=function(O){_.At(this.hostElement,O.detail.error.message)};
IP.prototype.onYtServiceRequestError_=IP.prototype.onYtServiceRequestError_;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],IP.prototype,"data",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],IP.prototype,"collapsible",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],IP.prototype,"isManageRed",void 0);
_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],IP.prototype,"onYtServiceRequestError_",null);_.c([_.DO({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],IP);
_.y(IP,"yt-single-ypc-offer-renderer",function(){if(MW9===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;$t0===void 0&&($t0=document.createElement("template"));var B=$t0;G.call(m,B.content.cloneNode(!0),O.content.firstChild);MW9=O}O=MW9;return O},{mode:2});var pX=function(){return _.u.apply(this,arguments)||this};
_.X(pX,_.u);pX.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],pX.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],pX.prototype,"isManageRed",void 0);_.c([_.DO({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],pX);
_.y(pX,"yt-single-ypc-offer-list-renderer",function(){if(Kur===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;v_x===void 0&&(v_x=document.createElement("template"));var B=v_x;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Kur=O}O=Kur;return O},{mode:2});var rUy;var Rmr;_.lE("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var S3=function(){return _.u.apply(this,arguments)||this};
_.X(S3,_.u);S3.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],S3.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],S3.prototype,"isManageRed",void 0);_.c([_.DO({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],S3);
_.y(S3,"yt-ypc-offers-list-renderer",function(){if(Rmr===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;rUy===void 0&&(rUy=document.createElement("template"));var B=rUy;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Rmr=O}O=Rmr;return O},{mode:2});_.lE("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Ek=function(){return _.u.apply(this,arguments)||this};
_.X(Ek,_.u);
Ek.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ek.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ek.prototype,"data",void 0);_.c([_.DO({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Ek);
_.y(Ek,"yt-unlimited-manage-subscription-page-renderer",function(){if(Huu===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Qm0===void 0&&(Qm0=document.createElement("template"));var B=Qm0;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Huu=O}O=Huu;return O},{mode:2});var iuu;var xt0;var LX=function(){return _.u.apply(this,arguments)||this};
_.X(LX,_.u);_.v=LX.prototype;_.v.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.v.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.onKeypress_=function(O){O.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.v.handleHeaderTap_=function(O){O.preventDefault();O.stopPropagation();this.expandOffers_()};
_.v.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.v.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
LX.prototype.dataChanged_=LX.prototype.dataChanged_;_.c([_.h(_.l8),_.Y("design:type",Object)],LX.prototype,"ironA11yKeysBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],LX.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],LX.prototype,"offersVisible_",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LX.prototype,"dataChanged_",null);_.c([_.DO({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],LX);
_.y(LX,"yt-collapsible-ypc-offer-renderer",function(){if(xt0===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;iuu===void 0&&(iuu=document.createElement("template"));var B=iuu;G.call(m,B.content.cloneNode(!0),O.content.firstChild);xt0=O}O=xt0;return O},{mode:2});var qTA;var Ut0;_.lE("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var CX=function(){return _.u.apply(this,arguments)||this};
_.X(CX,_.u);_.v=CX.prototype;_.v.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.v.dataChanged_=function(){if(this.data.backgroundImage){var O=_.Uf(this.data.backgroundImage.thumbnails,screen.width),m=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=m?"linear-gradient(180deg, "+m+"), url("+O+")":"url("+O+")";this.data.gtmId&&_.m2(this.data.gtmId,_.kB("GL",""))}};
_.v.onYtServiceRequestError_=function(O){_.At(this.hostElement,O.detail.error.message)};
_.v.getScrimLayerColorStops_=function(){var O,m,G=(O=this.data.unlimitedHeaderV2Data)==null?void 0:(m=O.unlimitedHeaderV2Data)==null?void 0:m.scrimLayerColors;if(!G)return null;var B=100/G.length;return G.map(function(Q,H){H*=B;return _.AV(Q)+" "+H+"%"}).join(",")};
_.v.computeLogoWithPadding=function(O){var m,G,B;return(O=(m=O.unlimitedLogoImage)==null?void 0:(G=m.thumbnails)==null?void 0:(B=G[0])==null?void 0:B.height)&&O%31===0?!0:!1};
CX.prototype.onYtServiceRequestError_=CX.prototype.onYtServiceRequestError_;CX.prototype.dataChanged_=CX.prototype.dataChanged_;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],CX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.c([_.g({computed:"computeLogoWithPadding(data)"}),_.Y("design:type",Boolean)],CX.prototype,"logoWithPadding",void 0);
_.c([_.g(),_.Y("design:type",Object)],CX.prototype,"data",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CX.prototype,"dataChanged_",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],CX.prototype,"onYtServiceRequestError_",null);_.c([_.DO({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],CX);
_.y(CX,"yt-unlimited-page-header-renderer",function(){if(Ut0===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;qTA===void 0&&(qTA=document.createElement("template"));var B=qTA;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Ut0=O}O=Ut0;return O},{mode:2});var tW9;var Wub;_.lE("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var oP=function(){return _.u.apply(this,arguments)||this};
_.X(oP,_.u);oP.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],oP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],oP.prototype,"data",void 0);_.c([_.DO({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],oP);
_.y(oP,"yt-unlimited-user-notification-renderer",function(){if(Wub===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;tW9===void 0&&(tW9=document.createElement("template"));var B=tW9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Wub=O}O=Wub;return O},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.RPs=_.a(function(O){var m=_.ru(O,{numberOfChips:5}).numberOfChips;return _.q("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.q(_.gi,{each:function(){return Array(m==null?void 0:m())}},function(){return _.q("div",{class:"ytGhostChipShelfChip"})}))},"oh");_.irK=_.a(function(O){var m=function(){var H;return((H=O.data)==null?void 0:H.call(O).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},G=_.Vp(),B=_.KR().resolve(_.H6);
_.EZ(function(){requestAnimationFrame(function(){var H;(H=G.lottieEl)==null||H.addEventListener("DOMLoaded",function(){var M;(M=O.onLottieLoaded)==null||M.call(O)})})});
var Q={};return _.q("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var H;return((H=O.data)==null?void 0:H.call(O).targetId)||""}},_.q(_.Yo,{className:_.bE((Q.ytChatLoadingViewModelRtl=B==="rtl",Q)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:m()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||m()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:m()}}},
animationRef:G}))},"ph");
}catch(e){_._DumpException(e)}
try{
var ORK,mu3,Gg0,QdA,HRo,vR9,KM9,$ur,M9u,t9r,YM,Uur,RJ3,qeJ,xuJ,iRb,rEA,WMb,ZRy,zJu,JEu,d$,V9s,bR9,fgb,e7,nRB,NS,w$,Du,X7A,sm,hJB,TIr,gRu,uzy,jdy,Igx,p7h,ERA,LM9,CbB,oRB,lgu,agh,kgu,yEh,Yes,duy,w7o,Dur,NIr,FM9,AEJ,OpJ,mIu,BYJ,QOy,Hps,vGK,KoK,$I0,Ma9,Rtr,UIb,qOJ,ipo,ta3,xIb,Wor,Vay,Jvb,ZpB,zty,FG,bp0,nGA,fD9,IDr,pIh,SOh,EG3,LoA,CnJ,oG9,lDy,aDK,kVr,cvr,YOy,dIy,eth,DIx,gGo;
_.yH=function(O){var m=new _.j9("Error accessing DB");return _.$fz().then(function(G){return new Promise(function(B,Q){try{var H=G.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(O);H.onsuccess=function(){var M=H.result;B(M?M.value:null)};
H.onerror=function(){m.params={key:O,source:"onerror"};Q(m)}}catch(M){m.params={key:O,
thrownError:String(M)},Q(m)}})},function(){return null})};
_.AN3=function(O,m){var G=_.O_N(m);G!=="javascript:"&&G!=="data:"&&O.setAttribute("href",m)};
ORK=function(O,m){return _.Vh(O.entities,"flowStateEntity",m)};
mu3=function(O,m){return _.Vh(O.entities,"contextNoteUserRatingEntityPayload",m)};
Gg0=function(O,m){if(O&&m){var G=_.ht();G().set(O,m);_.N$S(G())}};
_.BIr=function(O,m){if(O&&m){var G=_.ht();G().set(O,m);_.N$S(G())}};
QdA=function(O){return _.ES(O,function(m){return m.languageCode==="en"})};
HRo=function(O){var m=cn;if(_.R29(O))O.setOption("captions","stickyLoading",{}),O.setOption("captions","track",{});else{var G=_.ES(_.lJO(O),function(B){return B.displayName===m});
O.setOption("captions","track",G)}};
vR9=function(O){if(!O)return 0;var m=O.getPresentingPlayerType(),G=O.getVideoData();return G&&G.isLive?(O=O.getProgressState(m),O.seekableEnd-O.seekableStart):O.getDuration(m)};
KM9=function(O,m){for(var G=_.K(Object.keys(O)),B=G.next();!B.done;B=G.next())if(B=B.value,O[B]!==m[B])return!1;return!0};
$ur=function(){return document.getElementById("player-control-overlay")};
M9u=function(O){O!==-1&&!_.V("player_controls_log_creation_killswitch")&&$ur()&&(_.cd("pcu_cs",O),_.cd("pcu_ce"))};
t9r=function(O,m){var G=_.MN(O,{}),B=rEA("top",m),Q=rEA("bottom",m),H=rEA("left",m),M=rEA("right",m);return _.hH({top:function(){return YM(G().position,B)},
bottom:function(){return YM(G().position,Q)},
left:function(){return YM(G().position,H)},
right:function(){return YM(G().position,M)},
position:function(){return YM(G().positionType,RJ3)},
height:function(){return YM(G().height,d$)},
width:function(){return YM(G().width,d$)},
"min-width":function(){return YM(G().minWidth,d$)},
"min-height":function(){return YM(G().minHeight,d$)},
"max-width":function(){return YM(G().maxWidth,d$)},
"max-height":function(){return YM(G().maxHeight,d$)},
"aspect-ratio":function(){return YM(G().aspectRatio,String)},
"margin-top":function(){return YM(G().margin,B)},
"margin-bottom":function(){return YM(G().margin,Q)},
"margin-left":function(){return YM(G().margin,H)},
"margin-right":function(){return YM(G().margin,M)},
"padding-top":function(){return YM(G().padding,B)},
"padding-bottom":function(){return YM(G().padding,Q)},
"padding-left":function(){return YM(G().padding,H)},
"padding-right":function(){return YM(G().padding,M)},
"flex-direction":function(){return YM(G().flexDirection,iRb)},
"justify-content":function(){return YM(G().justifyContent,xuJ)},
"align-items":function(){return YM(G().alignItems,qeJ)},
"flex-grow":function(){return YM(G().flexGrow,String)},
"flex-shrink":function(){return YM(G().flexShrink,String)},
"flex-basis":function(){return YM(G().flexBasis,d$)},
"align-self":function(){return YM(G().alignSelf,qeJ)},
"flex-wrap":function(){return YM(G().flexWrap,Uur)},
"align-content":function(){return YM(G().alignContent,qeJ)}})};
YM=function(O,m){return O!==void 0?m(O):void 0};
Uur=function(O){switch(O){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
RJ3=function(O){switch(O){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
qeJ=function(O){switch(O){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"}};
xuJ=function(O){switch(O){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"}};
iRb=function(O){switch(O){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"}};
rEA=function(O,m){var G=m==="rtl";switch(O){case "top":var B=WMb;break;case "bottom":B=ZRy;break;case "left":B=zJu;break;default:B=JEu}return function(Q){return YM(B(Q,G),d$)}};
WMb=function(O){var m=O.top;var G=O.vertical;O=O.all;var B;return(B=m!=null?m:G)!=null?B:O};
ZRy=function(O){var m=O.bottom;var G=O.vertical;O=O.all;var B;return(B=m!=null?m:G)!=null?B:O};
zJu=function(O,m){var G=O.left;var B=O.end;var Q=O.start;var H=O.horizontal;O=O.all;var M,R;return(R=(M=G!=null?G:m?B:Q)!=null?M:H)!=null?R:O};
JEu=function(O,m){var G=O.right;var B=O.end;var Q=O.start;var H=O.horizontal;O=O.all;var M,R;return(R=(M=G!=null?G:m?Q:B)!=null?M:H)!=null?R:O};
d$=function(O){var m=O.value;switch(O.unit){case "YPC_DIMENSION_UNIT_POINT":return m+"px";case "YPC_DIMENSION_UNIT_FRACTION":return m+"%";default:return""+m}};
V9s=function(O){switch(O){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"}};
bR9=function(O){var m=O!=null?O:{};O=m.fontRole;var G=m.fontSize;m=m.fontWeight;if(O!==null&&G!==null)switch(O){case "YPC_FONT_ROLE_DISPLAY":switch(G){case "YPC_FONT_SIZE_L":return m==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return m==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return m==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return m==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(G){case "YPC_FONT_SIZE_L":return m==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return m==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return m===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return m==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(G){case "YPC_FONT_SIZE_XL":return m==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return m==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return m==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return m==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return m==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
fgb=function(O,m,G){function B(Z){return Object.values(Z).map(function(z){var J=z.productId;z=z.pricingOptionIndex;return w$(Q(J).pricingOptions,z).pricingOptionId})}
function Q(Z){return x().get(Z)}
function H(Z){Z=B(Z);G(Z)}
function M(Z,z){return Array.from(e7(Z.pricingOptions)).filter(function(J){J=_.K(J);J.next();J=J.next().value;return Du(J.pricingGroupAttributes,z)}).map(function(J){return _.K(J).next().value})}
var R=sm([O,m],function(Z,z){var J=Z==null?void 0:Z.selectedPricingOptions;Z={};var n=!0;if(J&&z.length)for(var I=_.K(z),S=I.next();!S.done;S=I.next()){S=S.value;var L=nRB(S.pricingOptions,function(w){a:{w=w.pricingOptionId;for(var d=_.K(J),D=d.next();!D.done;D=d.next())if(D.value===w){w=!0;break a}w=!1}return w});
if(L>=0){n=!1;var C=w$(S.pricingOptions,L),P=void 0;Z[S.groupId]={productId:S.productId,pricingOptionIndex:L,pricingGroupAttributes:(P=C)==null?void 0:P.pricingGroupAttributes}}}n&&z.length&&(n=w$(z[0].pricingOptions,0),Z[z[0].groupId]={productId:z[0].productId,pricingOptionIndex:0,pricingGroupAttributes:n==null?void 0:n.pricingGroupAttributes});return Z}),x=sm([m],function(Z){return new Map(Z.map(function(z){return[z.productId,
z]}))}),t=sm([m],function(Z){var z=new Map;
Z=_.K(Z);for(var J=Z.next();!J.done;J=Z.next()){var n=J.value;J=n.groupId;var I=n.productId;n=_.K(e7(n.pricingOptions));for(var S=n.next();!S.done;S=n.next()){var L=_.K(S.value);S=L.next().value;L=L.next().value;z.set(L.pricingOptionId,{groupId:J,productId:I,index:S,pricingOption:L,pricingGroupAttributes:L.pricingGroupAttributes})}}return z}),W=sm([m],function(Z){var z=new Map;
Z=_.K(Z);for(var J=Z.next();!J.done;J=Z.next()){var n=J.value;J=n.groupId;var I=n.productId,S=void 0;n=_.K(e7((S=n.pricingGroups)!=null?S:[]));for(S=n.next();!S.done;S=n.next()){var L=_.K(S.value);S=L.next().value;L=L.next().value;z.set(L.pricingGroupId,{groupId:J,productId:I,index:S,pricingGroup:L,pricingGroupAttributes:L.pricingGroupAttributes})}}return z});
return{getProductById:Q,isProductSelected:function(Z){var z=Q(Z);if(!z)return!1;var J;return((J=R()[z.groupId])==null?void 0:J.productId)===Z},
getSelectedPricingOptions:function(){return Object.values(R()).map(function(Z){var z=Z.productId;Z=Z.pricingOptionIndex;return w$(Q(z).pricingOptions,Z)})},
getSelectedPricingGroupAttributesByGroupId:function(Z){var z;return(Z=(z=R()[Z])==null?void 0:z.pricingGroupAttributes)?Array.from(Z):void 0},
getSelectedProductByGroupId:function(Z){var z;return(Z=(z=R()[Z])==null?void 0:z.productId)?Q(Z):void 0},
onProductSelected:function(Z){var z=Q(Z);if(z){var J=R(),n;if(((n=J[z.groupId])==null?void 0:n.productId)!==Z){var I=(n=(I=J[z.groupId])==null?void 0:I.productId)?Q(n):void 0;var S;n=(S=J[z.groupId])==null?void 0:S.pricingGroupAttributes;var L;S=(L=J[z.groupId])==null?void 0:L.pricingOptionIndex;if(I&&n&&S!==void 0){L=M(I,n).indexOf(S);if(L===-1)throw Error("Sj`"+S+"`"+I.productId);S=M(z,n);L=L<S.length?S[L]:S.length>0?S[0]:0}else L=0;NS(z.pricingOptions)<=L&&(L=0);S=w$(z.pricingOptions,L);var C;
I={};H(Object.assign({},J,(I[z.groupId]={productId:Z,pricingOptionIndex:L,pricingGroupAttributes:(C=S==null?void 0:S.pricingGroupAttributes)!=null?C:[]},I)))}}},
onPricingOptionSelected:function(Z){var z=t().get(Z);if(z){Z=z.groupId;var J=z.productId;z=z.index;var n=R(),I,S;if(((I=n[Z])==null?void 0:I.productId)!==J||((S=n[Z])==null?void 0:S.pricingOptionIndex)!==z){var L,C;I={};H(Object.assign({},n,(I[Z]={productId:J,pricingOptionIndex:z,pricingGroupAttributes:(C=(L=n[Z])==null?void 0:L.pricingGroupAttributes)!=null?C:[]},I)))}}},
onPricingGroupSelected:function(Z){var z=W().get(Z);if(z){Z=z.groupId;var J=z.productId,n=z.pricingGroup.pricingGroupAttributes,I=Q(J);if(I){z=R();var S=z[Z].pricingGroupAttributes,L;if(((L=z[Z])==null?void 0:L.productId)!==J||!Du(X7A(S,NS(n)),n)){L=Array.from(n);for(n=NS(n);n<NS(S);n++){var C="",P=!1,w=Array.from(L);w.push(w$(S,n));for(var d=_.K(I.pricingGroups),D=d.next();!D.done;D=d.next())if(D=D.value,Du(D.pricingGroupAttributes,w)){L.push(w$(S,n));P=!0;break}else C===""&&NS(D.pricingGroupAttributes)===
w.length&&Du(X7A(D.pricingGroupAttributes,L.length),L)&&(C=w$(D.pricingGroupAttributes,n));P||L.push(C)}C=z[Z].pricingOptionIndex;n=[];P=new Map;w=0;I=_.K(e7(I.pricingOptions));for(d=I.next();!d.done;d=I.next())D=_.K(d.value),d=D.next().value,D=D.next().value,Du(D.pricingGroupAttributes,L)&&n.push(d),Du(D.pricingGroupAttributes,S)&&P.set(d,w++);n.length===0?S=0:(S=P.get(C),S=S!==void 0&&S<n.length?n[S]:n[0]);I={};H(Object.assign({},z,(I[Z]={productId:J,pricingOptionIndex:S,pricingGroupAttributes:L},
I)))}}}},
onClearGroupSelected:function(Z){var z=R();z[Z]&&(z=Object.fromEntries(Object.entries(z).filter(function(J){return _.K(J).next().value!==Z})),H(z))}}};
e7=function(O){return function G(){var B,Q,H,M,R;return _.R6(G,function(x){switch(x.nextAddress){case 1:_.hX(x,2),B=0,Q=_.K(O),H=Q.next();case 4:if(H.done){x.jumpTo(2);break}M=H.value;R=_.iW;return x.yield([B++,M],7);case 7:R(x.yieldResult);H=Q.next();x.jumpTo(4);break;case 2:_.f_(x),_.T9(x,0)}})}()};
nRB=function(O,m){O=_.K(e7(O));for(var G=O.next();!G.done;G=O.next()){var B=_.K(G.value);G=B.next().value;B=B.next().value;if(m(B))return G}return-1};
NS=function(O){var m=0;for(O=O[Symbol.iterator]();!O.next().done;)++m;return m};
w$=function(O,m){O=_.K(e7(O));for(var G=O.next();!G.done;G=O.next()){var B=_.K(G.value);G=B.next().value;B=B.next().value;if(G===m)return B}};
Du=function(O,m){if(!O&&!m)return!0;if(!O||!m)return!1;O=Array.from(O);m=Array.from(m);if(O.length!==m.length)return!1;for(var G=0;G<O.length;G++)if(O[G]!==m[G])return!1;return!0};
X7A=function(O,m){m=m===void 0?Infinity:m;var G=[];O=_.K(e7(O));for(var B=O.next();!B.done;B=O.next()){var Q=_.K(B.value);B=Q.next().value;Q=Q.next().value;if(B>=m)break;B>=0&&G.push(Q)}return G};
sm=function(O,m){var G,B;return function(){for(var Q=O.map(function(M){return M()}),H=0;H<Q.length;H++)if(!G||Q[H]!==G[H]){G=Q;
B=m.apply(null,_.lS(Q));break}return B}};
hJB=function(O,m,G){var B=[];O=_.K(O);for(var Q=O.next();!Q.done;Q=O.next()){Q=Q.value;var H=void 0;((H=m)==null?0:H.length)&&!Du(Q.pricingGroupAttributes,m)||B.push({pricingOption:Q,isSelected:G.includes(Q.pricingOptionId)})}return B};
TIr=function(O,m){return _.Vh(O.entities,"pdpStateEntity",m)};
gRu=function(O){var m,G;return!!(O.productId&&O.groupId&&((m=O.pricingOptions)==null?0:m.length)&&O.pricingOptions.every(function(B){return B.pricingOptionId})&&((G=O.pricingGroups)==null||!G.length||Array.isArray(O.pricingGroups)&&O.pricingGroups.every(function(B){return B.pricingGroupId&&B.pricingGroupAttributes&&B.pricingGroupAttributes.length>0})))};
uzy=function(O,m,G){return fgb(O,sm([m],function(B){return B.filter(gRu)}),G)};
jdy=function(O){var m=void 0,G;for(G in O)if(O.hasOwnProperty(G)){m=G;break}return m};
Igx=function(O,m){return m.length===0?[O]:[O.slice(0,m[0]),O.slice(m[0])].filter(function(G){return G.length>0})};
p7h=function(O){switch(O){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""}};
ERA=function(O,m,G,B){B=Object.assign({},B);_.ya(B,Sex,{selectedOptionId:O,primaryButtonOverride:G});_.Km().dispatch(_.jh("flowStateEntity",m,B))};
LM9=function(O){switch(O){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"}};
CbB=function(O){switch(O){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"}};
oRB=function(O,m){m.includes(O)?m=m.filter(function(G){return G!==O}):m.push(O);
return[].concat(_.lS(m))};
lgu=function(O,m){return _.Vh(O.entities,"contextNoteFeedEntityPayload",m)};
agh=function(O,m){switch(O){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return m==null?void 0:m.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return m==null?void 0:m.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return m==null?void 0:m.ratingNotHelpfulText}};
kgu=function(O,m){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:O.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:O.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:O.deleteDialogTitle}]},dialogMessages:[{runs:[{text:O.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:O.deleteActionText}]},command:{performCommentActionEndpoint:{action:m}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:O.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
yEh=function(O,m,G){var B;if(O&&((B=m())==null?0:B.includes(O))){var Q;G((Q=m())==null?void 0:Q.filter(function(H){return H!==O}))}else G([].concat(_.lS(m()||[]),[O]))};
Yes=function(O,m){if(O){var G=[];m=_.K((m==null?void 0:m.checkboxes)||[]);for(var B=m.next();!B.done;B=m.next()){B=_.b(B.value,cEo);var Q=void 0;((Q=B)==null?0:Q.value)&&O.includes(B.key||"")&&G.push(B.value)}return G}};
duy=function(O){O.style.height="auto";O.style.height=O.scrollHeight+"px"};
w7o=function(O){return[O.syncStep,O.asyncStep].filter(function(m){return m!==void 0})};
Dur=function(O){var m,G,B;if(O=(m=O.structuredContextNoteFormSchema)==null?void 0:(G=m.fieldSchemas)==null?void 0:(B=G.noteBody)==null?void 0:B.validationSchema)for(m=_.K(w7o(O)),G=m.next();!G.done;G=m.next()){G=G.value.rules;if(!G)break;G=_.K(G);for(G=G.next();!G.done;G=G.next())return _.b(G.value,_.eJr)}};
NIr=function(O){if(O){O=_.K(w7o(O));for(var m=O.next();!m.done;m=O.next()){m=m.value.rules;if(!m)break;m=_.K(m);for(m=m.next();!m.done;m=m.next())return _.b(m.value,sds)}}};
FM9=function(O){if(O){O=_.K(w7o(O));for(var m=O.next();!m.done;m=O.next()){m=m.value.rules;if(!m)break;m=_.K(m);for(m=m.next();!m.done;m=m.next())return _.b(m.value,PbK)}}};
AEJ=function(O){O=/^https?:\/\//.test(O)?O:"http://"+O;try{var m=_.Ph(O)}catch(G){return!1}if(m.toString()!==O)return!1;O=m.JSC$10033_domain_.split(".");return O.length>1&&O.every(function(G){return!!G})};
OpJ=function(O,m,G,B){var Q;B=(Q=B.structuredContextNoteData)==null?void 0:Q.createCommentEndpoint;if(Q=_.b(B,_.eAs))return Q.commentText=_.Qg(O),Q.videoPositionMention=m,Q.sources=G,B};
mIu=function(O){return O==null?void 0:O.stringValue};
BYJ=function(O,m,G){O=O.map(function(B,Q){return{listItemViewModel:{title:B.title,subtitle:B.subtitle,leadingImage:B.leadingImage,trailingImage:Q===m?GVJ:void 0,rendererContext:{commandContext:{onTap:B.onTap}}}}});
return Object.assign({},G&&{header:{panelHeaderViewModel:{title:G}}},{content:{listViewModel:{listItems:O}}})};
QOy=function(O,m){if(O&&m)switch(m){case "SELECTION_TYPE_BOOL":return O.boolValue;case "SELECTION_TYPE_INT":return O.intValue;case "SELECTION_TYPE_STRING":return O.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return O.privacyStatusValue}};
Hps=function(O){var m;O=(m=O.options)==null?void 0:m.findIndex(function(G){return G.isSelected});
return O===void 0?-1:O};
vGK=function(O,m,G){var B=function(){return O().label},Q={},H=_.bE("ytDropdownViewModelLabel",(Q.ytDropdownViewModelLabelError=m,Q));
return _.q(_.U,{cond:function(){return O().label&&!(G()===-1&&O().label&&!O().placeholderText)},
then:function(){return _.q("div",{class:H},_.q(_.Jg,{text:B}))}})};
KoK=function(O,m){var G={};G=_.bE("ytDropdownViewModelTitle",(G.ytDropdownViewModelTitlePlaceholder=function(){return m()===-1},G));
return _.q("div",{class:G},_.q(_.Jg,{text:function(){var B=O();var Q=m();if(Q===-1)B=B.placeholderText?B.placeholderText:B.label;else{var H,M;B=(H=B.options)==null?void 0:(M=H[Q])==null?void 0:M.title}return B}}))};
$I0=function(O,m){var G=function(){return O().hint};
return _.q(_.Mr,null,_.q(_.U,{cond:function(){return G()&&!m()},
then:function(){return _.q("div",{class:_.bE("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.q(_.Jg,{text:G,className:"ytDropdownViewModelSupportText"}))}}),_.q(_.U,{cond:m,
then:function(){return _.q("div",{id:"dropdown-view-model-error",role:"alert",class:_.bE("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.q(_.T$,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.q(_.Jg,{text:m,className:"ytDropdownViewModelSupportText"}))}}))};
Ma9=function(O,m){var G=_.KR().resolve(_.T8r);_.Ln(function(){var B=O().id;B&&G!=null&&G.dropdownMap.set(B,m)})};
Rtr=function(O){O=_.b(O.scheduleButton,rvr);O=_.b(O==null?void 0:O.primaryButton,_.rc);O=_.b(O==null?void 0:O.onTap,_.wu);var m,G,B=((G=_.b(O,_.zC))==null?void 0:G.commands)||[O];G=_.K(B);for(O=G.next();!O.done&&!(m=_.b(O.value,_.eej));O=G.next());var Q;m=(Q=m)==null?void 0:Q.createBroadcastRequest;if(!m)throw Error("Zj");return m};
UIb=function(O,m,G){G=G===void 0?{}:G;var B,Q;return _.r(function(H){if(B=ipo(m))return H.return(B);(Q=xIb(O,m,G))&&qOJ(m,Q);return H.return(Q)})};
qOJ=function(O,m){var G=ta3(O);G&&m.then(function(B){_.KR().resolve(_.CW).put(G,new _.or({innertubeResponse:B}))})};
ipo=function(O){if(O=ta3(O)){var m=_.KR().resolve(_.CW);if(m.has(O))return m.get(O).then(function(G){return G==null?void 0:_.v$(G)})}return null};
ta3=function(O){var m=_.b(O.endpoint,_.GC);if(m!=null&&m.videoId)return m={videoId:m.videoId},_.V("web_imp_player_mute_params")&&(m.mutedAtStart=O.startPlaybackInMutedState),_.m8("inline_playback",m)};
xIb=function(O,m,G){O=_.Ov(O,m.endpoint,Wor(m,G)).then(function(B){return B});
return Promise.resolve(O)};
Wor=function(O,m){m=_.V("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!O.startPlaybackInMutedState},m):Object.assign({},{vis:5,autonav:"1"},m);var G;m={contentPlaybackContext:_.Lf(m,(G=_.b(O.endpoint.commandMetadata,_.bP))==null?void 0:G.url,window.location.href)};_.V("web_imp_player_mute_params")&&(m.overrideMutedAtStart=!O.startPlaybackInMutedState);return m};
Vay=function(O,m){var G=window.MutationObserver;G&&(Pn=new G(function(B,Q){B=_.K(B);for(var H=B.next();!H.done;H=B.next()){H=H.value;var M;if(M=H.type==="childList"&&H.target)a:{M=O;H=ZpB(H.target);M=ZpB(M);for(var R=null,x=0;x<H.length;x++)if(M.includes(H[x])){if(x===0){M=!1;break a}R=H[x];break}R?(H=zty(H,R),M=zty(M,R),M=H<M):M=!1}if(M){m();Q.disconnect();break}}}),(G=Jvb())&&Pn.observe(G,{childList:!0,
subtree:!0}))};
Jvb=function(){var O=document.getElementsByTagName("ytd-rich-grid-renderer");if(O.length>0)return O[0];O=document.getElementsByTagName("ytd-section-list-renderer");return O.length>0?O[0]:null};
ZpB=function(O){for(var m=[];O;)m.push(O),O=O.parentElement;return m};
zty=function(O,m){var G=Array.from(m.children);m=O.indexOf(m);return m>0?G.indexOf(O[m-1]):-1};
FG=function(O,m,G){G=G===void 0?{}:G;return _.Xm(O,G,m)};
bp0=function(O){switch(O){case "MUSIC":return!0;default:return!1}};
nGA=function(O){return O==null?void 0:O.filter(function(m){return m.premiereTrailerBadgeRenderer})};
fD9=function(O){var m,G=O==null?void 0:(m=O.find(function(Z){return Z.thumbnailOverlayTimeStatusRenderer}))==null?void 0:m.thumbnailOverlayTimeStatusRenderer,B,Q;
if((G==null?0:(B=G.icon)==null?0:B.iconType)&&bp0(G==null?void 0:(Q=G.icon)==null?void 0:Q.iconType)){var H;return{icon:G==null?void 0:(H=G.icon)==null?void 0:H.iconType}}var M,R;var x=(O=(M=O==null?void 0:(x=O.find(function(Z){return Z.thumbnailBottomOverlayViewModel}))==null?void 0:x.thumbnailBottomOverlayViewModel)==null?void 0:(R=M.badges)==null?void 0:R.find(function(Z){var z,J;
return((z=_.b(Z,XIb))==null?void 0:(J=z.inlinePlaybackBadgeData)==null?void 0:J.replicateAsTimestamp)===!0}))?_.b(O,XIb):void 0;
if(x==null?0:x.icon){var t,W;if((x=(t=_.lTf(x==null?void 0:x.icon))==null?void 0:(W=t.clientResource)==null?void 0:W.imageName)&&bp0(x))return{icon:x}}return{}};
IDr=function(O,m){var G=hts,B=_.K(_.Wf(TYs(new gGo(function(){},G,m)),void 0,"PAnyd")),Q=B.next().value,H=B.next().value,M=new gGo(function(R){H(R)},G,m);
_.ER(function(){Promise.resolve().then(function(){var R,x=(R=O())!=null?R:{};M.playerControlsData=x;_.V("player_controls_skip_double_signal_old")&&(M.lastSeenPlayerApi=_.y4(x.playerApi));_.V("player_controls_skip_double_signal_old")||(M.lastSeenPlayerApi=_.y4(x.playerApi));uFh(M)});
_.LS(function(){jOs(M)})},"HikUP");
_.LS(function(){jOs(M)});
return function(){return Q()}};
pIh=function(O){return function(m){var G=O(),B={playerState:m};if(m===1){var Q;(Q=G.playerApi)==null||Q.loadModule("captions")}if(m===0){var H;(H=G.playerApi)==null||H.unloadModule("captions")}m!==-1&&G.setState(B)}};
SOh=function(O){return function(m){O().setState({playbackRate:m})}};
EG3=function(O){return function(m){var G=O(),B=G.playerApi,Q=B==null?void 0:B.getVideoData(),H=(Q==null?void 0:Q.isLive)||!1;Q=Q==null?void 0:Q.video_id;H={videoDuration:vR9(B||void 0),isLive:H,videoId:Q};H.videoId!==G.videoId&&(H=Object.assign({},_.uar(B),H));if(m==null?0:m.playertype)H.playerType=m.playertype;if(B){H.captionsAvailable=_.XG(B);m=H;var M;Q=(M=B.getStoryboardLevel(B.getNumberOfStoryboardLevels()-1))==null?void 0:M.intervalMs;m.storyboardInterval=Q?Q/1E3:void 0;H.captionsAvailable&&
(H.captionsEnabled=_.R29(B))}H.volumeMuted=!(B==null||!B.isMuted());G.setState(H)}};
LoA=function(O){return function(m){var G=O(),B=G.playerApi;if(B){var Q=B.getPresentingPlayerType();m={playedTime:m||0,percentLoaded:B.getVideoLoadedFraction(),playerType:Q};G.playerState===0&&(m.playedTime=G.videoDuration);G.isLive&&(Q=B.getProgressState(Q),m.playedTime-=Q.seekableStart,m.videoDuration=vR9(B));if(G.playerType===1)B=!1;else{var H;if((H=G.uxConfig)==null?0:H.showCuedOverlay){var M;B=!((M=G.playerApi)==null?0:M.getPlayerStateObject(G.playerType).isDomPaused)}else B=!0}B&&delete m.playedTime;
G.setState(m)}}};
CnJ=function(O){return function(){var m=O(),G,B,Q,H={volume:(Q=(G=m.playerApi)==null?void 0:G.getVolume())!=null?Q:0,volumeMuted:!((B=m.playerApi)==null||!B.isMuted())};m.setState(H)}};
oG9=function(O){return function(){var m=O(),G=m.playerApi;if(G){var B={captionsAvailable:_.XG(G)};B.captionsAvailable&&(B.captionsEnabled=_.R29(G));m.setState(B)}}};
lDy=function(O){return function(){var m=O();if(m.playerApi&&!(m.volumeMuted||m.controlsVisible&&m.isProbablyAScreenreaderUser)){m.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var G;(G=document.querySelector(".player-control-play-pause-icon"))==null||G.focus()}}};
aDK=function(O){return{appApi:Object.assign({},_.bXN(),{showCaptionsToggleToast:function(m){var G,B;(B=(G=O()).showCaptionsToggleToast)==null||B.call(G,m)},
openInMiniplayer:function(){var m,G;(G=(m=O()).openInMiniplayer)==null||G.call(m)}})}};
kVr=function(O,m){var G,B,Q;return!!(O==null?0:(G=O.playerResponse)==null?0:(B=G.playerConfig)==null?0:(Q=B.inlinePlaybackConfig)==null?0:Q.showScrubbingControls)&&!(m==null?0:m.hideScrubbingControls)};
_.yvA=function(O){var m=!O.miniplayerIsActive;return[5,2,0].includes(O.miniplayerPlaybackState)||m};
cvr={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};YOy=function(O,m){var G,B,Q,H,M;_.r(function(R){if(!m.length)return R.return([]);G=[];B=_.K(m);for(Q=B.next();!Q.done;Q=B.next())H=Q.value,(M=O.resolveIcon(H))&&!O.iconCache[M.url]&&G.push(_.BCx(O,M).then(function(){}).catch(function(){}));
return R.return(Promise.all(G))})};
dIy=function(O,m){var G=[];m=(new Set(m)).values();m=_.K(m);for(var B=m.next();!B.done;B=m.next()){B=B.value;for(var Q=_.K(Object.values(cvr)),H=Q.next();!H.done;H=Q.next())G.push({iconName:B,iconStyle:H.value})}YOy(O.iconManager,G)};
_.wIx=function(O,m,G){var B=G!=null?G:O.iconsToFetch;B!=null&&B.length?m!==void 0&&m>=0?_.uT(_.ln,function(){dIy(O,B)},m):dIy(O,B):Promise.resolve()};
eth={sharedUi:_.v5e,a11y:_.QIU,entities:{}};DIx=function(){return _.xs({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
gGo=function(O,m,G){var B=this;this.renderFn=O;this.listeners=m;this.context=G;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var Q;this.lastSeenPlayerApi=_.y4((Q=this.playerControlsData)==null?void 0:Q.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.uar(),void 0);_.V("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){TYs(B).setState({playerState:-1});B.resetRecentlyNavigatedJobId&&_.ln.cancelJob(B.resetRecentlyNavigatedJobId);
B.recentlyNavigated=!0;B.resetRecentlyNavigatedJobId=_.ln.addJob(function(){B.recentlyNavigated=!1},8,1E4)})};
gGo.prototype.setState=function(O){if(!_.V("mweb_player_skip_no_op_state_changes")||!KM9(O,this.state))if(this.state=Object.assign({},this.state,O),!_.V("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)O=-1,_.V("player_controls_log_creation_killswitch")||$ur()||(O=(0,_.$G)()),_.cd("pcu_s"),_.cd("pcu_se"),_.cd("pcu_rs"),this.renderFn(TYs(this)),_.cd("pcu_re"),M9u(O),_.ln.addJob(function(){_.cd("pcu_ap")},8)};
var TYs=function(O){var m;var G=_.y4((m=O.playerControlsData)==null?void 0:m.playerApi);return Object.assign({},O.state,{setState:O.boundSetState,domMeasurements:{progressBarLineRect:O.progressBarLineRect},playerApi:G,appApi:O.context.appApi,playerContainer:O.context.playerContainer,playerControlContainer:O.context.playerControlContainer,uxConfig:O.context.uxConfig})},uFh=function(O){O.listeners.forEach(function(m){O.eventListenerCleanupFunctions.push(m.register(function(){return TYs(O)},function(){return O.getData()}))})},
jOs=function(O){O.eventListenerCleanupFunctions.forEach(function(m){m()});
O.eventListenerCleanupFunctions.length=0};
gGo.prototype.getData=function(){return this.playerControlsData};
var sO0=new _.q$("crowdsourcedContextUserRatingFormFlowState");var NYh=new _.q$("noteViewModel");var A2=new _.q$("abuseReportFlowState");var Pnx=new _.q$("feedbackFormFlowState");var Foy=new _.q$("inputBoxViewModel");var Avr=new _.q$("flowNextStepCommand");var OEo=new _.q$("flowPrevStepCommand");var mT3=new _.q$("updateFlowCommand");_.GHB=new _.q$("flowStepRenderer");_.eJr=new _.q$("lengthValidationRule");var sds=new _.q$("regexValidationRule");var PbK=new _.q$("selectedValidationRule");var BEu=new _.q$("talkToRecsViewModel");var QyK=new _.q$("creatorGoalSetUpFlowDropdownItemViewModel");var HEr=new _.q$("creatorGoalSetUpFlowDropdownViewModel");var XIb=new _.q$("thumbnailBadgeViewModel");var vt3=new _.q$("checkboxGroupViewModel");var cEo=new _.q$("checkboxItemViewModel");_.Ot=new _.q$("radioButtonGroupViewModel");var KP9=new _.q$("radioButtonItemViewModel");var rvr=new _.q$("panelFooterViewModel");var $Tu=new _.q$("ypcCancelRecurrenceCommand");var M0x=new _.q$("cancellationFlowState");var Sex=new _.q$("premiumPurchaseFlowState");var rlh=new _.q$("surveyAnswerCardRenderer");var RNu=new _.q$("showMoreButtonRenderer");var iE3;var xTo,qJh=function(){if(xTo!==void 0)return xTo;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;iE3===void 0&&(iE3=document.createElement("template"));var B=iE3;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return xTo=O};var my=function(){var O=_.u.apply(this,arguments)||this;O.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";O.goalDescription="";O.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";O.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";O.startButtonId="start-button";O.exampleButtonId="example-button";return O};
_.X(my,_.u);_.v=my.prototype;_.v.getGoalDropdownItems=function(){var O,m;return(m=_.b((O=this.data)==null?void 0:O.purchaseTargetDropdown,HEr))==null?void 0:m.dropdownItems};
_.v.getTimerDropdownItems=function(){var O,m;return(m=_.b((O=this.data)==null?void 0:O.timerDropdown,HEr))==null?void 0:m.dropdownItems};
_.v.getColorDropdownItems=function(){var O,m;return(m=_.b((O=this.data)==null?void 0:O.colorDropdown,HEr))==null?void 0:m.dropdownItems};
_.v.getDropdownItemText=function(O){var m;return(m=_.b(O,QyK))==null?void 0:m.itemLabel};
_.v.getDropdownItemValue=function(O){O=_.b(O,QyK);return(O==null?void 0:O.timeLimit)||(O==null?void 0:O.purchaseTarget)||(O==null?void 0:O.eligiblePurchaseType)};
_.v.updateFlowState=function(O){_.xc(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:O}])};
_.v.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.v.updateGoalValue=function(O){this.goal=O.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.v.onTextValueChanged=function(O){this.goalDescription=O.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.v.updateTimerValue=function(O){this.timer=O.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.v.updateTierValue=function(O){this.tier=O.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.v.getButtonViewModel=function(O){O=(O==null?void 0:O.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var m,G=_.b((m=this.data)==null?void 0:m.startGoalButton,_.rc);return Object.assign({},G,{state:O})};
_.vr.Object.defineProperties(my,{template:{configurable:!0,enumerable:!0,get:function(){return qJh()}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],my.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],my.prototype,"goal",void 0);_.c([_.g(),_.Y("design:type",Object)],my.prototype,"goalDescription",void 0);_.c([_.g(),_.Y("design:type",Object)],my.prototype,"timer",void 0);_.c([_.g(),_.Y("design:type",Object)],my.prototype,"tier",void 0);
_.c([_.g(),_.Y("design:type",Object)],my.prototype,"startButtonId",void 0);_.c([_.g(),_.Y("design:type",Object)],my.prototype,"exampleButtonId",void 0);_.c([_.DO({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],my);_.y(my,"yt-creator-goal-set-up-flow-view-model",function(){return qJh()},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var UT9;UT9=Object.assign({},{continuation:_.KLs,download:_.G4U,canvas:_.i3M,reportChannelAbuse:_.xRU,ui:_.qX5,share:_.qA$,talkToRecs:_.tXo,watch:_.HD,ypc:_.bM8,radioButtonGroup:_.rgr,collabInviteLink:_.$xI},eth,{voiceSearch:_.W2S,shorts:_.Qm});_.Gz=_.kg(UT9);_.t0A=_.yX(_.Gz);var WP3;var ZEx;var zNu;var Jl3=function(){return _.u.apply(this,arguments)||this};
_.X(Jl3,_.u);_.c([_.g(),_.Y("design:type",Object)],Jl3.prototype,"data",void 0);_.c([_.DO({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],Jl3);
_.y(Jl3,"yt-survey-answer-card-renderer",function(){if(zNu===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;ZEx===void 0&&(ZEx=document.createElement("template"));var B=ZEx;G.call(m,B.content.cloneNode(!0),O.content.firstChild);zNu=O}O=zNu;return O},{mode:2});var V0K;var bEx;var BO=function(){return _.u.apply(this,arguments)||this};
_.X(BO,_.u);_.v=BO.prototype;_.v.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.v.selectedItemChanged=function(O){_.xc(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[O.feedbackToken||""]}])};
_.v.surveyAnswerCardRendererClicked=function(O){if(O.target&&_.b(O.model.item,rlh)){var m=O.target;O=_.b(O.model.item,rlh);O.onTapCommand?_.Wd(m,[O.onTapCommand],m):this.data.onTapCommand&&_.Wd(m,[this.data.onTapCommand],m);this.selectedItemChanged(O)}};
_.v.checkIsCancellationStyle=function(O){return O==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.v.updateSelectedItemFromBinding=function(O){this.selectedItem=O.detail.value};
BO.prototype.onSelectedItemChanged=BO.prototype.onSelectedItemChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],BO.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],BO.prototype,"selectedItem",void 0);_.c([_.g({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],BO.prototype,"isCancellationStyle",void 0);
_.c([_.Tw("selectedItem"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BO.prototype,"onSelectedItemChanged",null);_.c([_.DO({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],BO);
_.y(BO,"yt-survey-flow-step-renderer",function(){if(bEx===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;V0K===void 0&&(V0K=document.createElement("template"));var B=V0K;G.call(m,B.content.cloneNode(!0),O.content.firstChild);bEx=O}O=bEx;return O},{mode:2});var Q6=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return O};
_.X(Q6,_.u);Q6.prototype.handleSurveyFlowStepOptionChanged=function(O){this.ytdReduxBehavior.dispatch(_.xs({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:O}));_.xc(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:O}}])};
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Q6.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],Q6.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Q6.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Q6);
_.y(Q6,"ytd-survey-flow-step-renderer",function(){if(WP3!==void 0)return WP3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return WP3=O},{mode:1});_.hNB=_.a(function(O){var m=O.data;var G=O.hideDivider;var B=O.isChannelInfoCard;O={};return _.q("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.q("div",{class:_.bE("yt-profile-identity-info-view-model__frame",(O["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!m().channelBanner},O))},_.q(nth,{profileIdentityInfoData:m}),_.q("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.q("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.q(_.u5,{data:function(){return m().avatar}},{avatarViewModel:_.HP})),_.q(XH9,{profileIdentityInfoData:m})),_.q(_.U,{cond:function(){return m().channelDescription},
then:function(Q){var H={};return _.q("div",{class:_.bE((H["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(B==null||!B())},H["yt-profile-identity-info-view-model__channel-description"]=function(){return!(B==null?0:B())},H))},Q)}}),_.q(fb9,{profileIdentityInfoData:m}),_.q(_.U,{cond:function(){return!(G==null?0:G())},
then:function(){return _.q("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"Mf");
_.hNB.idomCompat=!0;var fb9=_.a(function(O){var m=O.profileIdentityInfoData;return _.q("div",{class:"yt-profile-identity-info-view-model__buttons"},_.q(_.gi,{each:function(){return m().subscribeButton?[m().subscribeButton,m().channelAccess]:[m().channelAccess]}},function(G){return _.q("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.q("div",{class:"yt-profile-identity-info-view-model--button"},_.q(_.u5,{data:function(){return G}},{buttonViewModel:_.oF,
subscribeButtonViewModel:_.Q8})))}))},"Nf"),XH9=_.a(function(O){var m=O.profileIdentityInfoData;
return _.q("div",{class:"yt-profile-identity-info-view-model__trio"},_.q("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.q(TEh,{profileIdentityInfoData:m}),_.q(_.u5,{data:function(){return m().threeDotMenu}},{buttonViewModel:_.oF})),_.q(gtr,{profileIdentityInfoData:m}))},"Of"),TEh=_.a(function(O){var m=O.profileIdentityInfoData;
return _.q("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.q("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return m().channelDisplayName}),_.q(_.U,{cond:function(){return m().verifiedOrOacBadge},
then:function(G){return _.q("div",{class:"yt-profile-identity-info-view-model__badge"},_.q(_.KH,{data:function(){return{thumbnails:[{url:G().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Pf"),nth=_.a(function(O){var m=O.profileIdentityInfoData;
return _.q("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.q(_.u5,{data:function(){var G=m().channelBanner;if(G)return{imageBannerViewModel:{image:G.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(G){return _.q("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.q(_.ix,{data:G.data,
isPositionRelative:!0}))}}))},"Qf"),gtr=_.a(function(O){var m=O.profileIdentityInfoData;
return _.q("div",{class:"yt-profile-identity-info-view-model__metadata"},_.q("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.q("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return m().channelHandle}),_.q(_.U,{cond:function(){return m().channelPronouns&&m().channelHandle},
then:function(){return _.q("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.q("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return m().channelPronouns})),_.q("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.q("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return m().leftOfBulletInfo}),_.q(_.U,{cond:function(){return m().leftOfBulletInfo&&m().rightOfBulletInfo},
then:function(){return _.q("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.q("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return m().rightOfBulletInfo})))},"Rf");var ug0;var HO=function(){return _.u.apply(this,arguments)||this};
_.X(HO,_.u);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],HO.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],HO.prototype,"data",void 0);_.c([_.l({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],HO);
_.y(HO,"ytd-channel-history-renderer",function(){if(ug0!==void 0)return ug0;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ug0=O},{mode:1});var jyu;var IbB=function(){return _.u.apply(this,arguments)||this};
_.X(IbB,_.u);_.c([_.g(),_.Y("design:type",Object)],IbB.prototype,"data",void 0);_.c([_.l({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],IbB);
_.y(IbB,"ytd-feature-enablement-info-renderer",function(){if(jyu!==void 0)return jyu;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return jyu=O},{mode:1});var pHo;var SJb;var vO=function(){var O=_.u.apply(this,arguments)||this;O.textBoxMaxLength=_.V("enable_tvod_campaign_code_integration")?15:12;return O};
_.X(vO,_.u);_.v=vO.prototype;_.v.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.v.onSubmit=function(){var O=this.data.serviceEndpoint,m=_.b(O,_.GU);m&&O&&(m.couponCode=this.userInput,_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}}))};
_.v.validate=function(){var O=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=O&&!this.data.errorMessage;this.showErrorMessage=O&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.V("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.v.computeStyle=function(O){return O};
_.v.computeShowValidationBelowInput=function(O){return O!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.v.updateUserInputFromBinding=function(O){this.userInput=O.currentTarget.value};
_.v.updateShowErrorMessageFromBinding=function(O){this.showErrorMessage=O.detail.value};
_.vr.Object.defineProperties(vO.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
vO.prototype.dataChanged=vO.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],vO.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],vO.prototype,"userInput",void 0);_.c([_.g(),_.Y("design:type",Boolean)],vO.prototype,"disableApplyButton",void 0);_.c([_.g(),_.Y("design:type",Boolean)],vO.prototype,"hideApplyButton",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],vO.prototype,"hideErrorMessage",void 0);_.c([_.g(),_.Y("design:type",Boolean)],vO.prototype,"showTick",void 0);_.c([_.g(),_.Y("design:type",Boolean)],vO.prototype,"showErrorMessage",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],vO.prototype,"couponStyle",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.Y("design:type",Boolean)],vO.prototype,"showValidationBelowInput",void 0);_.c([_.g(),_.Y("design:type",Object)],vO.prototype,"textBoxMaxLength",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vO.prototype,"dataChanged",null);
_.c([_.T("showTick","showErrorMessage","userInput"),_.Y("design:type",String),_.Y("design:paramtypes",[])],vO.prototype,"validationState",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],vO);
_.y(vO,"ytd-ypc-coupon-renderer",function(){if(SJb!==void 0)return SJb;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return SJb=O},{mode:1});var Kh=function(){return _.u.apply(this,arguments)||this};
_.X(Kh,_.u);Kh.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"}}}};
Kh.prototype.computeStyle=function(O){return O};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Kh.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],Kh.prototype,"buttonStyle",void 0);_.c([_.l({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Kh);
_.y(Kh,"ytd-flow-bottom-bar-renderer",function(){if(pHo!==void 0)return pHo;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return pHo=O},{mode:1});var Etr;var LPb;var CT9;var $d=function(){return _.u.apply(this,arguments)||this};
_.X($d,_.u);$d.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
$d.prototype.focus=function(O){this.title&&_.OJ(this.title,O)};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],$d.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$d.prototype,"data",void 0);_.c([_.uc("#title"),_.Y("design:type",HTMLElement)],$d.prototype,"title",void 0);_.c([_.l({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],$d);
_.y($d,"ytd-flow-top-bar-renderer",function(){if(CT9!==void 0)return CT9;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return CT9=O},{mode:1});var otB;var lbA;var abA;var Mh=function(){return _.u.apply(this,arguments)||this};
_.X(Mh,_.u);Mh.prototype.freeTextValueChanged=function(){_.xc(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Mh.prototype.updateFreeTextValueFromBinding=function(O){this.freeTextValue=O.detail.value};
_.vr.Object.defineProperties(Mh.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var O,m,G=(m=(O=this.data)==null?void 0:O.responseMaxLength)!=null?m:500,B;return((B=this.freeTextValue)!=null?B:"").length>=G?"maxed-out":""}}});
Mh.prototype.freeTextValueChanged=Mh.prototype.freeTextValueChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Mh.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],Mh.prototype,"freeTextValue",void 0);_.c([_.uc("#user-input"),_.Y("design:type",HTMLTextAreaElement)],Mh.prototype,"input",void 0);
_.c([_.T("freeTextValue"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Mh.prototype,"characterLimitClass",null);_.c([_.Tw("freeTextValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mh.prototype,"freeTextValueChanged",null);_.c([_.DO({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],Mh);
_.y(Mh,"yt-free-text-input-flow-step-renderer",function(){if(abA===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;lbA===void 0&&(lbA=document.createElement("template"));var B=lbA;G.call(m,B.content.cloneNode(!0),O.content.firstChild);abA=O}O=abA;return O},{mode:2});var rB=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return O};
_.X(rB,_.u);rB.prototype.handleFreeTextFlowStepInputChanged=function(O){_.xc(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:O}}])};
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],rB.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],rB.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],rB.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],rB);
_.y(rB,"ytd-free-text-input-flow-step-renderer",function(){if(otB!==void 0)return otB;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return otB=O},{mode:1});var kHo;var yls;var clr=function(){return _.u.apply(this,arguments)||this};
_.X(clr,_.u);_.c([_.g(),_.Y("design:type",Object)],clr.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],clr);
_.y(clr,"ytd-metadata-line-renderer",function(){if(yls!==void 0)return yls;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return yls=O},{mode:1});var RX=function(){return _.u.apply(this,arguments)||this};
_.X(RX,_.u);RX.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],RX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],RX.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],RX.prototype,"isMasthead",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],RX);
_.y(RX,"ytd-media-product-renderer",function(){if(kHo!==void 0)return kHo;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return kHo=O},{mode:1});var YJu;var i7=function(){return _.u.apply(this,arguments)||this};
_.X(i7,_.u);i7.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
i7.prototype.onBillboardImageLoaded=function(){_.iP(this.hostElement,"yt-refit")};
i7.prototype.onBillboardImageLoaded=i7.prototype.onBillboardImageLoaded;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],i7.prototype,"data",void 0);_.c([_.uc("#billboardImage"),_.Y("design:type",Object)],i7.prototype,"billboardImage",void 0);_.c([_.hG("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i7.prototype,"onBillboardImageLoaded",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],i7);
_.y(i7,"ytd-billboard-masthead-renderer",function(){if(YJu!==void 0)return YJu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return YJu=O},{mode:1});var dTy;var xd=function(){var O=_.u.apply(this,arguments)||this;O.smallSize=!1;return O};
_.X(xd,_.u);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],xd.prototype,"ytComponentBehaviorType",void 0);_.c([_.g(),_.Y("design:type",Object)],xd.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],xd.prototype,"smallSize",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],xd);
_.y(xd,"ytd-bullet-formatted-string",function(){if(dTy!==void 0)return dTy;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return dTy=O},{mode:1});var wH3;var qh=function(){return _.u.apply(this,arguments)||this};
_.X(qh,_.u);qh.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],qh.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],qh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],qh.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],qh);
_.y(qh,"ytd-offer-detail-renderer",function(){if(wH3!==void 0)return wH3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return wH3=O},{mode:1});var eNB;var Ut=function(){return _.u.apply(this,arguments)||this};
_.X(Ut,_.u);Ut.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ut.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Ut);
_.y(Ut,"ytd-offer-detail-step-renderer",function(){if(eNB!==void 0)return eNB;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return eNB=O},{mode:1});var DTh;var tp=function(){var O=_.u.apply(this,arguments)||this;O.isInOfferModule=!1;return O};
_.X(tp,_.u);_.v=tp.prototype;_.v.computeHasEndpoint=function(){var O;return!((O=this.data)==null||!O.onClickCommand)};
_.v.dataChanged=function(){var O;if((O=this.data)==null?0:O.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")};
_.v.detached=function(){var O;if((O=this.data)==null?0:O.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.v.handleClickEvent=function(){var O;if((O=this.data)==null?0:O.onClickCommand){var m;this.componentBehavior.resolveCommand((m=this.data)==null?void 0:m.onClickCommand)}};
_.v.onContentKeyDown=function(O){O.key==="Enter"?this.handleClickEvent(O):O.key===" "&&O.preventDefault()};
_.v.onContentKeyUp=function(O){O.key===" "&&this.handleClickEvent(O)};
tp.prototype.dataChanged=tp.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],tp.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],tp.prototype,"data",void 0);_.c([_.g({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],tp.prototype,"hasEndpoint",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],tp.prototype,"isInOfferModule",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tp.prototype,"dataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],tp);
_.y(tp,"ytd-channel-masthead-renderer",function(){if(DTh!==void 0)return DTh;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return DTh=O},{mode:1});var syo;var WO=function(){var O=_.u.apply(this,arguments)||this;O.thumbnailObjectFit="CONTAIN";O.thumbnailObjectPosition="LEFT";O.isExpanded=!1;return O};
_.X(WO,_.u);_.v=WO.prototype;_.v.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.v.dataChanged=function(){this.resetStates()};
_.v.computeisTapOnOfferInfoContainerEnabled=function(){var O;return((O=this.data)==null?void 0:O.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.v.onExpandBtnClick=function(){var O,m=_.b((O=this.data)==null?void 0:O.showMoreButtonRenderer,RNu);m&&_.lR(_.uK(),m.trackingParams);this.isExpanded=!this.isExpanded};
_.v.onOfferInfoClick=function(O){this.isTapOnOfferInfoContainerEnabled&&(_.Hu(_.$Z(O)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.vu(_.$Z(O)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.v.onBottomBarClick=function(){this.executeTapCommand()};
_.v.executeTapCommand=function(){var O,m=(O=this.data)==null?void 0:O.tapCommand;m&&this.ytComponentBehavior.resolveCommand(m)};
_.v.resetStates=function(){this.isExpanded=!1};
_.vr.Object.defineProperties(WO.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var O=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),m,G,B;return((m=this.data)==null?void 0:m.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&O&&!!((G=this.data)==null?0:(B=G.benefits)==null?0:B.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return((m=_.b((O=this.data)==null?void 0:O.showMoreButtonRenderer,RNu))==null?void 0:m.showMoreButtonTitle)||((G=this.data)==null?void 0:G.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return((m=_.b((O=this.data)==null?void 0:O.showMoreButtonRenderer,RNu))==null?void 0:m.showLessButtonTitle)||((G=this.data)==null?void 0:G.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var O;return(O=this.showLessButtonTitle)!=null?O:""}var m;return(m=this.showMoreButtonTitle)!=null?m:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return((O=this.data)==null?void 0:O.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((m=this.data)==null?0:m.footerTitle)||((G=this.data)==null?0:G.footerSubtitle))}}});
WO.prototype.dataChanged=WO.prototype.dataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],WO.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",String)],WO.prototype,"thumbnailObjectFit",void 0);
_.c([_.g(),_.Y("design:type",String)],WO.prototype,"thumbnailObjectPosition",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.Y("design:type",Boolean)],WO.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.c([_.g(),_.Y("design:type",Object)],WO.prototype,"isExpanded",void 0);_.c([_.g(),_.Y("design:type",Object)],WO.prototype,"data",void 0);_.c([_.g({computed:"computeIcon_(data.footerIcon)"}),_.Y("design:type",String)],WO.prototype,"icon",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WO.prototype,"dataChanged",null);_.c([_.T("data.thumbnail"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],WO.prototype,"hasThumbnail",null);_.c([_.T("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],WO.prototype,"enableExpandButton",null);
_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],WO.prototype,"enableOfferContentIcon",null);_.c([_.T("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WO.prototype,"showMoreButtonTitle",null);_.c([_.T("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WO.prototype,"showLessButtonTitle",null);
_.c([_.T("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.Y("design:type",String),_.Y("design:paramtypes",[])],WO.prototype,"expandedBtnText",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],WO.prototype,"enableBottomBar",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],WO);
_.y(WO,"ytd-offer-card-renderer",function(){if(syo!==void 0)return syo;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return syo=O},{mode:1});var NEo;var Z5=function(){return _.u.apply(this,arguments)||this};
_.X(Z5,_.u);Z5.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"}}}};
Z5.prototype.onClick=function(O){if(!_.Hu(O.composedPath()||[],this.hostElement,["A".toString()])){var m,G;if((O=(G=_.b((m=this.data)==null?void 0:m.actionButton,_.v3))==null?void 0:G.command)&&!this.ytComponentBehavior.resolveCommand(O)){var B;(B=_.uK())==null||B.clickCommand(O);_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}})}}};
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Z5.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Z5.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Z5);
_.y(Z5,"ytd-offer-content-renderer",function(){if(NEo!==void 0)return NEo;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return NEo=O},{mode:1});var PTy;var zz=function(){return _.u.apply(this,arguments)||this};
_.X(zz,_.u);zz.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.vr.Object.defineProperties(zz.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var O,m;return!((O=this.data)==null||!O.title)||!((m=this.data)==null||!m.description)}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],zz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],zz.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],zz.prototype,"hasHeaderData",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],zz);
_.y(zz,"ytd-offer-section-renderer",function(){if(PTy!==void 0)return PTy;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return PTy=O},{mode:1});var FPb;var Jp=function(){return _.u.apply(this,arguments)||this};
_.X(Jp,_.u);
Jp.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Jp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Jp.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Jp);
_.y(Jp,"ytd-offer-selection-step-renderer",function(){if(FPb!==void 0)return FPb;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return FPb=O},{mode:1});var Alb;var V6=function(){return _.u.apply(this,arguments)||this};
_.X(V6,_.u);V6.prototype.computeStyle=function(O){return O};
V6.prototype.computeImageWidth=function(O){return O==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.c([_.g({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Y("design:type",String)],V6.prototype,"containerStyle",void 0);_.c([_.g({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.Y("design:type",String)],V6.prototype,"imageWidth",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],V6.prototype,"data",void 0);
_.c([_.l({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],V6);
_.y(V6,"ytd-confirmation-masthead-renderer",function(){if(Alb!==void 0)return Alb;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Alb=O},{mode:1});var OIr;var b7=function(){return _.u.apply(this,arguments)||this};
_.X(b7,_.u);b7.prototype.computeStyle=function(O){return O};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],b7.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.Y("design:type",String)],b7.prototype,"containerStyle",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],b7);
_.y(b7,"ytd-purchase-complete-detail-renderer",function(){if(OIr!==void 0)return OIr;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return OIr=O},{mode:1});var mDr;var nh=function(){var O=_.u.apply(this,arguments)||this;O.scriptsAppended=!1;return O};
_.X(nh,_.u);nh.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"}}}};
nh.prototype.onDataChanged=function(){var O=this.get("data.gtmId");O&&(_.m2(O,_.kB("GL","")),this.setupConversionTracking())};
nh.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var O=document.createElement("noscript");O.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(O);this.scriptsAppended=!0}};
nh.prototype.onDataChanged=nh.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],nh.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],nh.prototype,"scriptsAppended",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nh.prototype,"onDataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],nh);
_.y(nh,"ytd-purchase-complete-step-renderer",function(){if(mDr!==void 0)return mDr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return mDr=O},{mode:1});var GXK;var fh=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(fh,_.u);fh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],fh.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],fh.prototype,"darkerDarkTheme",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],fh);
_.y(fh,"ytd-ypc-transaction-error-message-renderer",function(){if(GXK!==void 0)return GXK;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return GXK=O},{mode:1});var BjK;var Qay;var hp=function(){var O=_.u.apply(this,arguments)||this;O.handlePhoneVerificationSuccess=function(m){if(O.isValidPhoneVerificationCompletionMessageEvent(m)){var G;((G=O.data)==null?0:G.nextStepCommand)&&O.ytComponentBehavior.resolveCommand(O.data.nextStepCommand)}};
return O};
_.X(hp,_.u);hp.prototype.isValidPhoneVerificationCompletionMessageEvent=function(O){if(O.data!=="yt-phone-verification-complete")return!1;O=_.Gg(O.origin);return O!==null&&O.includes("youtube.com")};
hp.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
hp.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],hp.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],hp.prototype,"data",void 0);_.c([_.DO({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],hp);
_.y(hp,"yt-feature-enablement-soft-entry-renderer",function(){if(Qay===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;BjK===void 0&&(BjK=document.createElement("template"));var B=BjK;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Qay=O}O=Qay;return O},{mode:1});var HIA;var vVh;var Kdh;var $Dx;var Mjb=function(){return _.u.apply(this,arguments)||this};
_.X(Mjb,_.u);_.c([_.g(),_.Y("design:type",Object)],Mjb.prototype,"data",void 0);_.c([_.DO({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Mjb);
_.y(Mjb,"yt-benefits-item-renderer",function(){if($Dx===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Kdh===void 0&&(Kdh=document.createElement("template"));var B=Kdh;G.call(m,B.content.cloneNode(!0),O.content.firstChild);$Dx=O}O=$Dx;return O},{mode:2});var rJu;var RWo;var Tz=function(){return _.u.apply(this,arguments)||this};
_.X(Tz,_.u);Tz.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Tz.prototype.computeisWithoutPadding=function(){var O;return((O=this.data)==null?void 0:O.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Tz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Tz.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.Y("design:type",Boolean)],Tz.prototype,"isWithoutPadding",void 0);_.c([_.DO({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Tz);
_.y(Tz,"yt-benefits-section-renderer",function(){if(RWo===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;rJu===void 0&&(rJu=document.createElement("template"));var B=rJu;G.call(m,B.content.cloneNode(!0),O.content.firstChild);RWo=O}O=RWo;return O},{mode:2});var gB=function(){return _.u.apply(this,arguments)||this};
_.X(gB,_.u);gB.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
gB.prototype.computeisUsingLargeWidth=function(){var O;return((O=this.data)==null?void 0:O.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],gB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],gB.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.Y("design:type",Boolean)],gB.prototype,"isUsingLargeWidth",void 0);_.c([_.DO({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],gB);
_.y(gB,"yt-benefits-flow-step-renderer",function(){if(vVh===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;HIA===void 0&&(HIA=document.createElement("template"));var B=HIA;G.call(m,B.content.cloneNode(!0),O.content.firstChild);vVh=O}O=vVh;return O},{mode:2});var iIB;var xDb;var u7=function(){return _.u.apply(this,arguments)||this};
_.X(u7,_.u);u7.prototype.checkIsUsingLargeWidth=function(){var O;return((O=this.data)==null?void 0:O.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.c([_.g(),_.Y("design:type",Object)],u7.prototype,"data",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.c([_.g({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.Y("design:type",Boolean)],u7.prototype,"isUsingLargeWidth",void 0);_.c([_.DO({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],u7);
_.y(u7,"yt-confirmation-flow-step-renderer",function(){if(xDb===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;iIB===void 0&&(iIB=document.createElement("template"));var B=iIB;G.call(m,B.content.cloneNode(!0),O.content.firstChild);xDb=O}O=xDb;return O},{mode:2});var qDA;var UDh;var tjK=function(){return _.u.apply(this,arguments)||this};
_.X(tjK,_.u);_.c([_.g(),_.Y("design:type",Object)],tjK.prototype,"data",void 0);_.c([_.DO({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],tjK);
_.y(tjK,"yt-info-flow-step-renderer",function(){if(UDh===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;qDA===void 0&&(qDA=document.createElement("template"));var B=qDA;G.call(m,B.content.cloneNode(!0),O.content.firstChild);UDh=O}O=UDh;return O},{mode:2});var Wds;var ZIb;var zWx=function(){return _.u.apply(this,arguments)||this};
_.X(zWx,_.u);_.c([_.g(),_.Y("design:type",Object)],zWx.prototype,"data",void 0);_.c([_.DO({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],zWx);
_.y(zWx,"yt-info-list-flow-step-renderer",function(){if(ZIb===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Wds===void 0&&(Wds=document.createElement("template"));var B=Wds;G.call(m,B.content.cloneNode(!0),O.content.firstChild);ZIb=O}O=ZIb;return O},{mode:2});var JJx=_.a(function(O){var m=O.data;return _.q("styled-text-view-model",{class:_.bE("ytStyledTextViewModelHost",function(){return bR9(m().fontAttributes)},function(){return V9s(m().color)})},_.q(_.Jg,{text:function(){return m().text},
ariaLabel:function(){var G,B,Q;return(Q=(G=m().accessibility)==null?void 0:(B=G.accessibilityData)==null?void 0:B.label)!=null?Q:""}}))},"Sf");
JJx.idomCompat=!0;var VjB=_.a(function(O){var m=function(){var Q,H,M,R;return(R=(M=(Q=O.alt)==null?void 0:Q.call(O))!=null?M:(H=O.data().accessibilityData)==null?void 0:H.label)!=null?R:""},G=function(){return O.data().imageWidth},B=function(){return O.data().imageHeight};
return _.q("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.q(_.U,{cond:function(){var Q=O.data();if(Q){var H,M,R;var x=((H=_.KR().resolve(_.v7(_.B6)))==null?0:H())?(M=Q.imageDark)!=null?M:Q.imageLight:(R=Q.imageLight)!=null?R:Q.imageDark}else x=void 0;return x},
then:function(Q){return _.q(_.KH,Object.assign({},O,{data:Q,alt:m,targetWidth:G,targetHeight:B,preserveHeight:!0,preserveWidth:!0}))}}))},"Tf");
VjB.idomCompat=!0;var j5=_.a(function(O){var m=O.data;O=_.MN(function(){return m().slots},[]);
var G=_.MN(function(){return m().layoutProperties},{}),B=_.KR().resolve(_.H6);
return _.q("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:t9r(G,B)},_.q(_.gi,{each:O,keyBy:"INDEX"},function(Q){return _.q("div",{class:"ytContainerLayoutViewModelSlot",style:t9r(function(){return Q().layoutProperties},B)},_.q(_.u5,{data:function(){return Q().contents}},{containerLayoutViewModel:j5,
badgeViewModel:_.jF,buttonViewModel:_.oF,styledTextViewModel:JJx,contentPreviewImageViewModel:function(H){return _.q(_.IU,{data:H.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(H){return _.q(VjB,{data:H.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Uf");
j5.idomCompat=!0;var bIK=_.a(function(O){var m=O.data;var G=O.stateFns;var B=function(){var t=m(),W=t.productId;return!(!t.clearGroupId&&!W)},Q=function(){var t=m(),W=t.clearGroupId;
return(t=t.productId)?G().isProductSelected(t):W?G().getSelectedProductByGroupId(W)==null:!1},H=function(t){var W=m(),Z=W.clearGroupId;
if(W=W.productId)G().onProductSelected(W),t==null||t.forEach(function(z){_.PE(z)});
else if(Z)G().onClearGroupSelected(Z)},M=function(){var t=m(),W=t.clearGroupId;
if(t=t.productId){var Z;return"group:"+(((Z=G().getProductById(t))==null?void 0:Z.groupId)||"")}return W?"group:"+W:""},R=_.MN(function(){return m().header},[]),x=_.MN(function(){return m().body},[]);
return _.q("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.q(_.U,{cond:function(){return R().length>0||B()},
then:function(){return _.q("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.q("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.q(_.u5,{data:R},{containerLayoutViewModel:function(t){return _.q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.q(j5,{data:t.data}))},
styledTextViewModel:function(t){return _.q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.q(JJx,{data:t.data}))}})),_.q(_.U,{cond:B,
then:function(){return _.q("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.q(_.$l,{checked:Q,name:M,onChange:function(){H(m().onSelect)}}))}}))}}),_.q(_.U,{cond:function(){return x().length>0},
then:function(){return _.q("div",null,_.q(_.u5,{data:x},{containerLayoutViewModel:function(t){return _.q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.q(j5,{data:t.data}))}}))}}))},"Vf");
bIK.idomCompat=!0;var nVo=_.a(function(O){var m=O.data;var G=O.stateFns;return _.q("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.q(_.U,{cond:function(){return m().banner},
then:function(B){return _.q("div",{class:"ytPdpCardViewModelBanner"},_.q(_.Jg,{text:B}))}}),_.q(_.u5,{data:function(){return m().sections}},{pdpCardSectionViewModel:function(B){B=B.data;
var Q={};return _.q("div",{class:_.bE("ytPdpCardViewModelSectionContainer",(Q.ytPdpCardViewModelShowDividers=function(){return m().showDividers},Q))},_.q(bIK,{data:B,
stateFns:G}))}}))},"Wf");
nVo.idomCompat=!0;var Xer=_.a(function(O){var m=O.data;var G=O.isOverlay;O={};return _.q("pdp-masthead-view-model",{class:_.bE("ytPdpMastheadViewModelHost",(O.ytPdpMastheadViewModelIsOverlay=G,O))},_.q(_.u5,{data:function(){return m().image}},{contentPreviewImageViewModel:_.IU,
themedImageViewModel:function(B){return _.q(VjB,{data:B.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.q(_.U,{cond:function(){return m().title},
then:function(B){return _.q("h1",{class:"ytPdpMastheadViewModelHeading"},_.q(_.Jg,{text:B,isOverlay:G}))}}),_.q(_.gi,{each:function(){var B;
return(B=m().finePrint)!=null?B:[]}},function(B){return _.q("div",{class:"ytPdpMastheadViewModelFinePrint"},_.q(_.Jg,{text:B,
isOverlay:G}))}))},"Xf");
Xer.idomCompat=!0;var f1A=_.a(function(O){var m=O.data;var G=O.stateFns;var B=function(){return"pdp-pricing-group-selector-"+m().pricingGroupAttributeIds},Q=_.MN(function(){return m().pricingGroupSelectorSectionHeader});
return _.q("pdp-pricing-group-selector-view-model",null,_.q(_.U,{cond:function(){return!!Q()},
then:function(){return _.q(_.u5,{data:Q},{sectionHeaderViewModel:function(H){H=H.data;var M={};return _.q("div",{class:_.bE("ytPdpPricingGroupSelectorViewModelSectionHeader",(M.ytPdpPricingGroupSelectorViewModelFullBleed=!0,M.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,M))},_.q(_.li,{data:H}))}})}}),_.q("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.q(_.gi,{each:function(){var H=G().getSelectedProductByGroupId(m().groupId);
if(!H)return _.lT(Error("Tj`"+m().groupId)),[];var M,R=(M=m().pricingGroupAttributeIds)!=null?M:[],x;if((x=H.pricingGroups)==null||!x.length||!R.length)return[];M=H.pricingGroups.filter(function(z){return R.length?z.pricingGroupAttributes.every(function(J){return R.includes(J)}):!1});
H=[];if(R.length>0){M=[].concat(_.lS(M));x=_.K(R);for(var t=x.next(),W={};!t.done;W={targetAttrId:void 0},t=x.next())W.targetAttrId=t.value,t=M.findIndex(function(z){return function(J){return J.pricingGroupAttributes.includes(z.targetAttrId)}}(W)),t!==-1&&(H.push(M[t]),M.splice(t,1))}var Z=G().getSelectedPricingGroupAttributesByGroupId(m().groupId);
return H.map(function(z){var J=!1;Z&&z.pricingGroupAttributes&&(J=Du(z.pricingGroupAttributes,Z));return{pricingGroup:z,isSelected:J}})},
keyBy:function(H){return H.pricingGroup.pricingGroupId}},function(H){return _.q("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.q("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.q(_.u5,{data:function(){return H().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:j5})),_.q("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.q(_.$l,{checked:function(){return H().isSelected},
name:B,onClick:function(){var M=H().pricingGroup;G().onPricingGroupSelected(M.pricingGroupId);if(M=_.eg(M.onSelectPricingGroup)){var R;(R=_.KR().resolve(_.Mu))==null||R.resolveCommand(M)}}})))})))},"Yf");
f1A.idomCompat=!0;var hWu=_.a(function(O){var m=O.data;var G=O.stateFns;var B=function(){var M=G().getSelectedPricingOptions().map(function(t){return t.pricingOptionId}),R=G().getSelectedProductByGroupId(m().groupId);
if(!R)return _.lT(Error("Uj`"+m().groupId)),[];var x=G().getSelectedPricingGroupAttributesByGroupId(m().groupId);return hJB(R.pricingOptions,x,M)},Q=_.MN(function(){return m().pricingOptionSelectorSectionHeader}),H=function(){return B().length>1};
return _.q("pdp-pricing-option-selector-view-model",null,_.q(_.U,{cond:function(){return!!Q()&&H()},
then:function(){return _.q(_.u5,{data:Q},{sectionHeaderViewModel:function(M){M=M.data;var R={};return _.q("div",{class:_.bE("ytPdpPricingOptionSelectorViewModelSectionHeader",(R.ytPdpPricingOptionSelectorViewModelFullBleed=!0,R.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,R))},_.q(_.li,{data:M}))}})}}),_.q(_.U,{cond:H,
then:function(){return _.q("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.q(_.gi,{each:B,keyBy:"INDEX"},function(M){return _.q("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.q("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.q(_.u5,{data:function(){return M().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:j5})),_.q("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.q(_.$l,{checked:function(){return M().isSelected},
onClick:function(){G().onPricingOptionSelected(M().pricingOption.pricingOptionId);var R=M().pricingOption.onSelectPricingOption;if(R=_.eg(R)){var x;(x=_.KR().resolve(_.Mu))==null||x.resolveCommand(R)}}})))}))}}))},"Zf");
hWu.idomCompat=!0;var Tj3=_.a(function(O){var m=O.data;var G=O.stateFns;return _.q("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.q(_.u5,{data:function(){var B,Q;return(Q=(B=G().getSelectedPricingOptions()[0])==null?void 0:B.primaryButton)!=null?Q:m().emptyStateButton}},{buttonViewModel:_.oF}))},"$f");
Tj3.idomCompat=!0;var gVr=_.a(function(O){var m=O.stateFns;return _.q("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.q(_.u5,{data:function(){return m().getSelectedPricingOptions().flatMap(function(G){return G.summaryLines}).filter(function(G){return!!G})}},{containerLayoutViewModel:function(G){return _.q("div",{class:"ytPdpSummaryViewModelLineItem"},_.q(j5,{data:G.data}))}}))},"ag");
gVr.idomCompat=!0;var u2b=_.a(function(O){function m(S){var L=M();_.$n(_.Cz("pdpStateEntity",L,{key:L,selectedPricingOptions:S}))}
var G=O.data;var B=O.internalScrolling;var Q=O.stateFnsForTesting;var H=_.MN(function(){return G().allProducts},[]),M=_.MN(function(){return G().pdpStateEntityKey},""),R=_.fJ(TIr,M),x=_.bF(function(){_.o9(!0);
var S;return(S=Q==null?void 0:Q())!=null?S:uzy(R,H,m)},void 0,"tAB69c"),t=_.MN(function(){return G().body},[]),W=_.MN(function(){return G().columnBreakHints},[]),Z=function(){return G().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},z=function(){return Z()||G().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},J=_.bF(function(){var S=_.Dv(G().background),L;
if(S==null?0:(L=S.sources)==null?0:L.length){var C=C===void 0?!0:C;S=_.yiN(void 0,S.sources,void 0,C,C?1E3:void 0,C?void 0:1E3)}else S=null;return S},void 0,"bHjkUb");
O=_.hH({"--pdp-view-model-background":function(){return J()?"url("+J()+")":void 0}});
var n={};B=_.bE("ytPdpViewModelHost",(n.ytPdpViewModelHasBackground=function(){return z()||!!J()},n.ytPdpViewModelHasDarkBackground=z,n.ytPdpViewModelHasScrim=Z,n.ytPdpViewModelInternalScrolling=_.MN(B,!1),n));
var I=function(S){var L={};return _.bE("ytPdpViewModelItem",(L.ytPdpViewModelFullBleed=function(){return jdy(S())==="dividerViewModel"||jdy(S())==="sectionHeaderViewModel"},L.ytPdpViewModelNoVerticalPadding=function(){return jdy(S())==="sectionHeaderViewModel"},L))};
_.Ln(function(){var S=G().onStartCommand;if(S&&(S=_.eg(S))){var L;(L=_.KR().resolve(_.Mu))==null||L.resolveCommand(S)}});
return _.q("pdp-view-model",{class:B,style:O},_.q("div",{class:"ytPdpViewModelColumnContainer"},_.q(_.gi,{each:function(){return Igx(t(),W())},
keyBy:"INDEX"},function(S){return _.q("div",{class:"ytPdpViewModelColumn"},_.q(_.u5,{data:S},{containerLayoutViewModel:function(L,C){L=L.data;return _.q("div",{class:I(function(){return S()[C()]})},_.q(j5,{data:L}))},
dividerViewModel:function(L,C){L=L.data;return _.q("div",{class:I(function(){return S()[C()]})},_.q(_.pQu,{data:L}))},
pdpCardViewModel:function(L,C){L=L.data;return _.q("div",{class:I(function(){return S()[C()]})},_.q(nVo,{data:L,
stateFns:x}))},
pdpMastheadViewModel:function(L,C){L=L.data;return _.q("div",{class:I(function(){return S()[C()]})},_.q(Xer,{data:L,
isOverlay:z}))},
pdpPricingGroupSelectorViewModel:function(L,C){L=L.data;return _.q("div",{class:I(function(){return S()[C()]})},_.q(f1A,{data:L,
stateFns:x}))},
pdpPricingOptionSelectorViewModel:function(L,C){L=L.data;return _.q("div",{class:I(function(){return S()[C()]})},_.q(hWu,{data:L,
stateFns:x}))},
pdpPrimaryButtonViewModel:function(L,C){L=L.data;return _.q("div",{class:I(function(){return S()[C()]})},_.q(Tj3,{data:L,
stateFns:x}))},
pdpSummaryViewModel:function(L,C){L=L.data;return _.q("div",{class:I(function(){return S()[C()]})},_.q(gVr,{data:L,
stateFns:x}))},
sectionHeaderViewModel:function(L,C){L=L.data;return _.q("div",{class:I(function(){return S()[C()]})},_.q(_.li,{data:L}))}}))})))},"bg");
u2b.idomCompat=!0;_.qi(u2b,"pdp-view-model",{props:{data:_.VZ,stateFnsForTesting:_.RZ,internalScrolling:_.RZ}});var jax=_.a(function(O){var m=O.data;var G=O.className;var B=_.fJ(_.OQ,function(){return m().flowStateEntityKey});
return _.q("ytm-premium-purchase-button-renderer",{class:_.bE("ytPremiumPurchaseButtonRendererHost",G)},_.q(_.u5,{data:function(){var Q;return(Q=_.b(B(),Sex))==null?void 0:Q.primaryButtonOverride}},{buttonRenderer:function(Q){return _.q(_.VN,{data:Q.data,
className:G})},
buttonViewModel:function(Q){return _.q(_.oF,{data:Q.data,className:G})}}))},"cg");
jax.idomCompat=!0;var I1s=_.a(function(O){var m=O.data;O=O.className;var G=function(){return p7h(m().style)},B=_.bE("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",G),Q=_.bE("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",G);
return _.q("yt-flow-bottom-bar-renderer",{class:_.bE("yt-flow-bottom-bar-renderer",O,G)},_.q(_.u5,{data:function(){return m().secondaryButton}},{buttonRenderer:function(H){return _.q(_.VN,{data:H.data,
className:Q})},
buttonViewModel:function(H){return _.q(_.oF,{data:H.data,className:Q})},
premiumPurchaseButtonRenderer:function(H){return _.q(jax,{data:H.data,className:Q})}}),_.q(_.u5,{data:function(){return m().primaryButton}},{buttonRenderer:function(H){return _.q(_.VN,{data:H.data,
className:B})},
buttonViewModel:function(H){return _.q(_.oF,{data:H.data,className:B})},
premiumPurchaseButtonRenderer:function(H){return _.q(jax,{data:H.data,className:B})}}))},"dg");
I1s.idomCompat=!0;_.qi(I1s,"yt-flow-bottom-bar-renderer",{props:{data:_.VZ,className:_.VZ}});var peK=_.a(function(O){var m=_.bE(O.className,"ytOfferSummaryRendererHost");return _.q("yt-offer-summary-renderer",{class:m},_.q("div",{class:"ytOfferSummaryRendererTextContainer"},_.q("div",{class:"ytOfferSummaryRendererEyebrowText"},_.q(_.Jg,{text:function(){return O.data().eyebrowText}})),_.q("div",{class:"ytOfferSummaryRendererTitle"},_.q(_.Jg,{text:function(){return O.data().title}})),_.q("div",{class:"ytOfferSummaryRendererSubtitle"},_.q(_.Jg,{text:function(){return O.data().subtitle}})),_.q("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.q(_.gi,{each:function(){var G;
return(G=O.data().featureListData)!=null?G:[]}},function(G){var B;
return _.q("div",{class:"ytOfferSummaryRendererFeatureList"},_.q(_.T$,{icon:(B=G.icon)==null?void 0:B.iconType,active:function(){return G.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(G.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"}}}),_.q("div",{class:"ytOfferSummaryRendererFeatureListText"},_.q(_.Jg,{text:G.text,
className:function(){return G.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.q("div",{class:"ytOfferSummaryRendererDescription"},_.q(_.Jg,{text:function(){return O.data().description}}))))},"eg");_.qi(_.a(function(O){var m={};m=_.bE("ytOfferSummaryFlowStepRendererHost",(m.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=O.shouldDisableHeaderTopMargin,m));return _.q("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:m},_.q("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.q("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.q(_.Jg,{text:function(){return O.data().header}})),_.q("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.q(_.Jg,{text:function(){return O.data().subtitle}}))),_.q("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.q(_.u5,{data:function(){return O.data().offerSummary}},{offerSummaryRenderer:function(G){return _.q(peK,{data:G.data,
className:O.flowClassName})}})))},"fg"),"yt-offer-summary-flow-step-renderer",{props:{data:_.RZ,
flowClassName:_.RZ,flowStateEntityKey:_.RZ,shouldDisableHeaderTopMargin:_.RZ}});var SDA=_.a(function(O){var m=O.data;var G=O.className;var B=O.flowStateEntityKey;var Q=O.selectionStepStyle;O=_.nH(function(x){var t=m(),W=B==null?void 0:B();x.target&&(x.stopPropagation(),x=W||"",W=_.OQ(_.Km().getState(),x),t=Object.assign({},W,{premiumPurchaseFlowState:{selectedOptionId:t.optionId,primaryButtonOverride:t.primaryButtonOverride}}),_.Km().dispatch(_.jh("flowStateEntity",x,t)));return!1});
var H=function(){return(B==null?void 0:B())||""},M=_.fJ(_.OQ,H);
_.Ln(function(){var x=m(),t=H(),W=M();x.defaultSelected&&t!==""&&x.primaryButtonOverride&&ERA(x.optionId||"",t,x.primaryButtonOverride,W)});
var R={};return _.q("ytm-option-item-renderer",{"on:click":O,class:_.bE(G,"ytm-option-item-renderer",(R["ytm-option-item-renderer--lp2-style"]=function(){return(Q==null?void 0:Q())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},R))},_.q("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.q("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var x=m(),t=H(),W=M();W=_.b(W,Sex);return(W?(W==null?void 0:W.selectedOptionId)||"":x.defaultSelected&&t!==""?(x==null?void 0:x.optionId)||"":"")===m().optionId},
name:("input"+_.DI(_.HZ)).toString()})),_.q("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.q(_.u5,{data:function(){return m().titleBadge}},{badgeViewModel:function(x){return _.q(_.jF,{data:x.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.q(_.U,{cond:function(){return m().eyebrowText},
then:function(){return _.q("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.q(_.Jg,{text:function(){return m().eyebrowText}}))}}),_.q("div",{class:"ytm-option-item-renderer__option-item-title"},_.q(_.Jg,{text:function(){return m().title}})),_.q("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.q(_.Jg,{text:function(){return m().subtitle}})),_.q(_.U,{cond:function(){return m().featureListData},
then:function(){return _.q("div",{class:"ytm-option-item-renderer__feature-list-data"},_.q(_.gi,{each:function(){return m().featureListData||[]}},function(x){var t,W=(t=x.icon)==null?void 0:t.iconType;
a:switch(x.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":t="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":t="ytm-option-item-renderer__feature-list-icon-small";break a;default:t="ytm-option-item-renderer__feature-list-icon-default"}return _.q("div",{class:"ytm-option-item-renderer__feature-list"},_.q(_.T$,{icon:W,className:t,active:function(){return x.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.q("div",{class:"ytm-option-item-renderer__feature-list-text"},_.q(_.Jg,{text:x.text,
className:function(){return x.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.q("div",{class:"ytm-option-item-renderer__option-item-description"},_.q(_.Jg,{text:function(){return m().description}}))))},"gg");var EVu=_.a(function(O){var m=O.data;var G=O.flowClassName;var B=O.flowStateEntityKey;var Q=O.selectionStepStyle;return _.q("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.q("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.q("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.q(_.Jg,{text:function(){return m().title}}),_.q(_.u5,{data:function(){return m().titleBadge}},{badgeViewModel:function(H){return _.q(_.jF,{data:H.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.q(_.U,{cond:function(){return m().subtitle},
then:function(){return _.q("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.q(_.Jg,{text:function(){return m().subtitle}}))}}),_.q(_.U,{cond:function(){return m().featureListData},
then:function(H){return _.q("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.q(_.gi,{each:H},function(M){var R;return _.q("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.q(_.T$,{icon:(R=M.icon)==null?void 0:R.iconType,active:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(M.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.q("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.q(_.Jg,{text:M.text,
className:function(){return M.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.q(_.U,{cond:function(){return m().secondaryTitle},
then:function(){return _.q("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.q(_.Jg,{text:function(){return m().secondaryTitle}}))}}),_.q(_.gi,{each:function(){return m().sectionDisclaimers||[]}},function(H){return _.q("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.q(_.Jg,{text:H}))})),_.q(_.u5,{data:function(){return m().optionItems}},{optionItemRenderer:function(H){return _.q("div",{class:"ytOptionSectionRendererOptionItem"},_.q(SDA,{data:H.data,
className:G,flowStateEntityKey:B,selectionStepStyle:Q}))}}),_.q(_.U,{cond:function(){return m().offerText},
then:function(){return _.q("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.q(_.Jg,{text:function(){return m().offerText}}))}}))},"hg");
EVu.idomCompat=!0;var Ldy=_.a(function(O){var m=O.data;var G=O.flowClassName;var B=O.flowStateEntityKey;O=O.isDesktop;var Q=function(){var t;return(t=m().flowStateEntityKey)!=null?t:B==null?void 0:B()},H=function(){return(Q==null?void 0:Q())||""},M=function(){return m().style},R=_.fJ(_.OQ,H);
_.Ln(function(){var t=m(),W=H(),Z=R();!_.b(Z,Sex)&&t.noPreselect&&W!==""&&t.defaultButtonOverride&&ERA("default",W,t.defaultButtonOverride,Z)});
var x={};return _.q("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.bE("ytm-option-selection-flow-step-renderer",(x["ytm-option-selection-flow-step-renderer--desktop"]=O,x["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return m().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},x))},_.q("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"},
_.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.q(_.Jg,{text:function(){return m().header}})),_.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.q(_.Jg,{text:function(){return m().subtitle}}))),_.q(_.u5,{data:function(){return m().optionItems||[]}},{optionItemRenderer:function(t){return _.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.q(SDA,{data:t.data,
className:G,flowStateEntityKey:Q,selectionStepStyle:M}))},
optionSectionRenderer:function(t){return _.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.q(EVu,{data:t.data,flowClassName:G,flowStateEntityKey:Q,selectionStepStyle:M}))}}))},"ig");
Ldy.idomCompat=!0;_.qi(Ldy,"yt-option-selection-flow-step-renderer",{props:{data:_.VZ,flowClassName:_.VZ,flowStateEntityKey:_.VZ,isDesktop:_.VZ}});_.IX=_.a(function(O){var m=_.ru(O,{type:1,disablePadding:!1,disablePrimaryButton:!1}),G=m.data,B=m.type;O=m.disablePadding;var Q=m.disablePrimaryButton,H=m.onClickPrimaryButton,M=function(){return G().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},R=function(){return{disabled:Q(),
state:Q()?"disabled":"active"}},x=function(){return G().leadingLabel||G().trailingLabel};
m={};return _.q("yt-panel-footer-view-model",{class:_.bE("yt-panel-footer-view-model",(m["yt-panel-footer-view-model--hide-divider"]=function(){return G().shouldHideDivider},m["yt-panel-footer-view-model--disable-padding"]=O,m))},_.q(_.U,{cond:x,
then:function(){var t={},W={};return _.q("div",{class:_.bE("yt-panel-footer-view-model__text-row",(t["yt-panel-footer-view-model--row-bottom-padding"]=function(){var Z=G();return!(!Z.leadingLabel&&!Z.trailingLabel||!Z.primaryButton&&!Z.secondaryButton)},t))},_.q(_.Jg,{text:function(){return G().leadingLabel},
className:_.bE((W["yt-panel-footer-view-model--text-padding"]=x,W))}),_.q(_.Jg,{text:function(){return G().trailingLabel}}))}}),_.q(_.U,{cond:M,
then:function(){var t={};return _.q("div",{class:"yt-panel-footer-view-model__button-stack"},_.q("div",{class:_.bE("yt-panel-footer-view-model__primary-button",(t["yt-panel-footer-view-model__button-stack--top-button"]=function(){return G().secondaryButton},t))},_.q(_.u5,{data:function(){return G().primaryButton}},{buttonViewModel:function(W){return _.q(_.oF,{data:W.data,
buttonOverrides:R,onClick:H})}})),_.q(_.u5,{data:function(){return G().secondaryButton}},{buttonViewModel:_.oF}))}}),_.q(_.U,{cond:function(){return!M()},
then:function(){var t={},W={},Z={};return _.q("div",{class:_.bE("yt-panel-footer-view-model__button-row",(t["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===B()},t))},_.q("div",{class:_.bE("yt-panel-footer-view-model__button-row--left-button",(W["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===B()},W["yt-panel-footer-view-model__button-row--hidden"]=function(){return!G().secondaryButton||0===B()},W["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===B()},W))},_.q(_.u5,{data:function(){return G().secondaryButton}},{buttonViewModel:_.oF})),_.q("div",{class:_.bE("yt-panel-footer-view-model__primary-button",(Z["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===B()||1===B()},Z["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===B()},Z))},_.q(_.u5,{data:function(){return G().primaryButton}},{buttonViewModel:function(z){return _.q(_.oF,{data:z.data,
buttonOverrides:R,onClick:H})}})))}}))},"jg");
_.IX.idomCompat=!0;_.C_x=_.a(function(O){O=_.ru(O,{disablePadding:!1});var m=O.data,G=O.disablePadding;O=_.eMN(function(){return m().formId});
var B=O.submitForm,Q=O.isValid,H=O.isSubmitting;return _.q("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.q(_.u5,{data:function(){return m().panelFooter}},{panelFooterViewModel:function(M){return _.q(_.IX,{data:M.data,
onClickPrimaryButton:function(){B()},
disablePrimaryButton:function(){return!Q()||H()},
disablePadding:G})}}))},"kg");_.qi(_.C_x,"yt-form-footer-view-model",{props:{data:_.VZ,disablePadding:_.VZ}});var oVh=_.a(function(O){var m=_.V("enable_user_rating_web");return _.q("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.q(_.U,{cond:function(){var G;return(G=O.data())==null?void 0:G.image},
then:function(G){return _.q(_.KH,{data:G,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.q(_.Jg,{text:function(){var G;
return(G=O.data())==null?void 0:G.title}})),_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.q(_.Jg,{text:function(){var G;
return(G=O.data())==null?void 0:G.subtitle}})),_.q(_.U,{cond:function(){return!m},
then:function(){return _.q(_.u5,{data:function(){var G;return(G=O.data())==null?void 0:G.viewTipsButton}},{buttonViewModel:function(G){return _.q(_.oF,{data:G.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"lg");_.qi(oVh,"yt-contributor-zero-state-view-model",{props:{data:_.VZ}});var l1h=_.a(function(O){var m=function(){var G;return(G=O.data())==null?void 0:G.image};
return _.q("yt-featured-content-item-view-model",{class:_.bE("ytFeaturedContentItemViewModelHost")},_.q("div",{class:_.bE(function(){return m()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.q("div",{class:function(){return m()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.q(_.U,{cond:m,
then:function(){return _.q("div",{class:"ytFeaturedContentItemViewModelImage"},_.q(_.u5,{data:function(){return O.data().image}},{themedImageViewModel:function(G){return _.q(VjB,{data:G.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.q(_.U,{cond:function(){var G;
return!m()&&((G=O.data())==null?void 0:G.iconName)},
then:function(){return _.q("div",{class:"ytFeaturedContentItemViewModelIcon"},_.q(_.T$,{icon:function(){return O.data().iconName}}))}}),_.q("div",{class:"ytFeaturedContentItemViewModelContent"},_.q(_.U,{cond:function(){var G;
return(G=O.data())==null?void 0:G.title},
then:function(){return _.q("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.q(_.Jg,{text:function(){return O.data().title}}))}}),_.q(_.U,{cond:function(){var G;
return(G=O.data())==null?void 0:G.body},
then:function(){return _.q("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.q(_.Jg,{text:function(){return O.data().body}}))}})))))},"mg");var a1K=_.a(function(O){var m=function(){var Q;return LM9((Q=O.data())==null?void 0:Q.titleFontSize)},G=function(){var Q;
return CbB((Q=O.data())==null?void 0:Q.descriptionFontSize)},B=function(){var Q;
return((Q=O.data())==null?void 0:Q.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.q("yt-landing-page-view-model",{class:_.bE("ytLandingPageViewModelHost",O.className)},_.q("div",{class:"ytLandingPageViewModelHeader"},_.q(_.U,{cond:function(){var Q;return(Q=O.data())==null?void 0:Q.bannerImage},
then:function(Q){return _.q("div",{class:"ytLandingPageViewModelHeaderImage"},_.q(_.u5,{data:function(){return Q()}},{imageBannerViewModel:function(H){return _.q(_.ix,{data:H.data,
isPositionRelative:!0})}}))}}),_.q(_.U,{cond:function(){var Q;
return(Q=O.data())==null?void 0:Q.bannerAnimation},
then:function(Q){return _.q(_.Yo,{data:function(){var H=Q();if(H==null?0:H.url){var M;H={path:(M=H==null?void 0:H.url)!=null?M:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(H==null?0:H.payload){var R;H={animationData:JSON.parse((R=H==null?void 0:H.payload)!=null?R:""),autoplay:!0,loop:!0,renderer:"svg"}}else H=void 0;return{animationConfig:H}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.q("div",{class:"ytLandingPageViewModelHeaderTitle"},_.q(_.U,{cond:function(){var Q;
return(Q=O.data())==null?void 0:Q.title},
then:function(Q){return _.q("div",{class:_.bE("ytLandingPageViewModelHeaderTitleContent",m)},_.q(_.Jg,{text:function(){return Q()}}))}}),_.q(_.U,{cond:function(){var Q;
return(Q=O.data())==null?void 0:Q.description},
then:function(Q){var H={};return _.q(_.Jg,{className:_.bE("ytLandingPageViewModelHeaderTitleDescription",G,(H.ytLandingPageViewModelHeaderTitleDescriptionMargin=B,H)),text:function(){return Q()}})}}))),_.q(_.U,{cond:function(){var Q,H;
return(Q=O.data())==null?void 0:(H=Q.featuredContentList)==null?void 0:H.length},
then:function(){return _.q("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.q(_.u5,{data:function(){return O.data().featuredContentList}},{featuredContentItemViewModel:function(Q){return _.q(l1h,{data:Q.data})}}))}}),_.q(_.U,{cond:function(){var Q,H;
return(Q=O.data())==null?void 0:(H=Q.expandableContentList)==null?void 0:H.length},
then:function(){return _.q("div",{class:"ytLandingPageViewModelFaqSection"},_.q(_.u5,{data:function(){return O.data().expandableContentList}},{faqEntryViewModel:function(Q){return _.q("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.q(_.UYC,{data:Q.data}))}}))}}),_.q("div",{class:"ytLandingPageViewModelFooter"},_.q(_.U,{cond:function(){var Q;
return(Q=O.data())==null?void 0:Q.legalCopy},
then:function(Q){return _.q("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.q(_.Jg,{text:function(){return Q()}}))}}),_.q(_.U,{cond:function(){var Q;
return(Q=O.data())==null?void 0:Q.actions},
then:function(Q){return _.q("div",null,_.q(_.u5,{data:function(){return Q()}},{flexibleActionsViewModel:function(H){return _.q(_.vo,{data:H.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"ng");_.qi(_.a(function(O){return _.q("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.q("div",{class:"ytLpSectionGroupViewModelContainer"},_.q(_.u5,{data:function(){return O.data().sections}},{landingPageViewModel:function(m){return _.q(a1K,{data:m.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"og"),"yt-lp-section-group-view-model",{props:{data:_.VZ}});var kXb=_.a(function(O){var m=O.data;var G=O.selectedKey;var B=O.onSelected;var Q=O.groupName;var H=function(){return m().text},M=function(){return m().attributedText},R=function(){return m().subtext},x=function(){return m().attributedSubtext},t=_.q("div",{class:"ytRadioButtonItemViewModelLabel"},_.q(_.U,{cond:H,
then:function(){return _.q("div",null,H)}}),_.q(_.U,{cond:M,
then:function(){return _.q(_.Jg,{text:M})}}),_.q(_.U,{cond:R,
then:function(){return _.q("div",{class:"ytRadioButtonItemViewModelSubText"},R)}}),_.q(_.U,{cond:x,
then:function(){return _.q("div",{class:"ytRadioButtonItemViewModelSubText"},_.q(_.Jg,{text:x}))}})),W=function(){if(M()){var z;
return(z=M())==null?void 0:z.content}return H()},Z=function(){if(x()){var z;
return(z=x())==null?void 0:z.content}return R()};
O={};return _.q("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.q(_.$l,{name:Q,checked:function(){return!(G==null||!G()||m().key!==(G==null?void 0:G()))},
onChange:function(z){B==null||B(z.target,m(),Q==null?void 0:Q())},
labelRenderable:function(){return t},
ariaLabel:function(){return Z()?W()+", "+Z():W()},
className:_.bE((O.ytRadioButtonItemViewModelSubTitle=function(){return!!m().subtext},O))}))},"pg");_.yJA=_.a(function(O){var m=O.data;var G=O.onSelected;var B=O.selectedKey;var Q=O.groupName;var H=function(){return(Q==null?void 0:Q())||m().key};
return _.q("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.q("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.q(_.u5,{data:function(){return m().radioButtons}},{radioButtonItemViewModel:function(M){return _.q(kXb,{data:M.data,
onSelected:G,selectedKey:B,groupName:H})}})))},"qg");var cJb=_.a(function(O){_.Ln(function(){if(O.controlledMode()&&O.data().defaultSelected)_.oy(Error("Vj"));else{var H;!O.controlledMode()&&((H=O.selected)==null?0:H.call(O))&&_.oy(Error("Wj"))}});
var m=_.K(_.fH(function(){if(!O.controlledMode())return O.data().defaultSelected})),G=m.next().value,B=m.next().value,Q=function(){if(!O.controlledMode())return G();
var H;return(H=O.selected)==null?void 0:H.call(O)};
return _.q("yt-checkbox-item-view-model",{class:_.bE("ytCheckboxItemViewModelHost",O.className)},_.q(_.MA,{data:function(){var H=O.data(),M=Q();return{title:H.text,subtitle:H.subtext,superlabel:H.superlabel,isSelected:!!M,isDisabled:H.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(H){H.preventDefault();!O.controlledMode()&&B(!G());var M,R;(R=O.onTap)==null||R.call(O,!!Q(),O.data(),(M=O.groupName)==null?void 0:M.call(O))},
isCompact:O.isCompact}))},"rg");var YDb=_.a(function(O){var m=O.data;var G=O.controlledMode;var B=O.selectedKeys;var Q=O.onItemTap;var H=O.groupName;var M=function(){return(H==null?void 0:H())||m().key};
_.Ln(function(){G()&&m().defaultSelectedKeys?_.oy(Error("Xj")):!G()&&(B==null?0:B())&&_.oy(Error("Yj"))});
O=_.K(_.fH(function(){if(!G())return m().defaultSelectedKeys}));
var R=O.next().value,x=O.next().value,t=function(W,Z,z){W=[];!G()&&Z.key&&(W=oRB(Z.key,R()||[]),x(W));Q==null||Q(Z,W,z)};
return _.q("yt-checkbox-group-view-model",{class:_.bE("ytCheckboxGroupViewModelHost")},_.q("fieldset",{class:_.bE("ytCheckboxGroupViewModelFieldset")},_.q(_.u5,{data:function(){return m().checkboxes}},{checkboxItemViewModel:function(W){var Z=W.data;
return _.q(cJb,{data:Z,controlledMode:!0,selected:function(){var z=G()?(B==null?void 0:B())||[]:R()||[],J=Z().key;return J?z.includes(J):!1},
onTap:t,groupName:M})}})))},"sg");var ph=_.a(function(O){var m=_.fJ(lgu,_.MN(function(){var R;return(R=O.data())==null?void 0:R.noteFeedEntityKey},"")),G=_.fJ(mu3,_.MN(function(){var R;
return(R=O.data())==null?void 0:R.userRatingEntityKey},"")),B=_.V("enable_user_rating_web"),Q=function(){var R,x,t;
return((R=m())==null?0:R.contributorNote)?(x=m())==null?void 0:x.contributorNote:(t=O.data())==null?void 0:t.existingNote},H=function(){var R,x;
return!!G()&&!!agh((R=G())==null?void 0:R.helpfulnessValue,(x=O.data())==null?void 0:x.noteData)};
if(B){var M={};return _.q("yt-note-view-model",{class:_.bE("ytNoteViewModelHostUserRating",(M.ytNoteViewModelHostUserRatingPublishedNote=function(){var R,x,t,W;return((R=O.data())==null?void 0:(x=R.noteData)==null?void 0:x.isPublished)&&!((t=O.data())==null?0:(W=t.noteData)==null?0:W.isUserRatingForm)},M))},_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.q(_.U,{cond:function(){var R,x;
return(R=O.data())==null?void 0:(x=R.noteData)==null?void 0:x.isPinned},
then:function(){return _.q(_.T$,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.q(_.U,{cond:function(){var R,x;return(R=O.data())==null?void 0:(x=R.noteData)==null?void 0:x.isPublished},
then:function(){return _.q(_.T$,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.q(_.u5,{data:function(){var R;
return(R=O.data())==null?void 0:R.metadata}},{contentMetadataViewModel:_.p5}),_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var R,x;
return(x=_.b((R=O.data())==null?void 0:R.metadata,_.khU))==null?void 0:x.delimiter}),_.q(_.Jg,{text:function(){var R;
return(R=Q())==null?void 0:R.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.q(_.U,{cond:function(){var R,x;return!((R=O.data())==null?0:(x=R.noteData)==null?0:x.isUserRatingForm)},
then:function(){return _.q(_.u5,{data:function(){var R,x,t,W,Z,z,J,n=!!((R=O.data())==null?0:(x=R.noteData)==null?0:x.isPinned);R=H();x=(t=O.data())==null?void 0:t.noteData;t=(W=m())==null?void 0:(Z=W.contributorNote)==null?void 0:Z.deleteAction;W=(z=O.data())==null?void 0:z.overflowButtonNoteWithRatingOnTapOverride;z=(J=O.data())==null?void 0:J.overflowButton;return n?kgu(x,t):R?{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:W}}:z}},{buttonViewModel:function(R){return _.q(_.oF,{data:R.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.q("div",{class:"ytNoteViewModelNoteContent"},_.q(_.Jg,{text:function(){var R;
return(R=Q())==null?void 0:R.text}})),_.q(_.U,{cond:function(){var R,x,t,W;
return!((R=O.data())==null?0:(x=R.noteData)==null?0:x.isPinned)&&!((t=O.data())==null?0:(W=t.noteData)==null?0:W.isUserRatingForm)},
then:function(){return _.q(_.U,{cond:H,then:function(){return _.q("div",{class:"ytNoteViewModelUserRatingContainer"},_.q(_.Jg,{text:function(){var R,x;return agh((R=G())==null?void 0:R.helpfulnessValue,(x=O.data())==null?void 0:x.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.q(_.u5,{data:function(){var R;return(R=O.data())==null?void 0:R.userRatingButton}},{buttonViewModel:function(R){return _.q(_.oF,{data:R.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.q(_.U,{cond:function(){var R,x,t,W;
return!((R=O.data())==null?0:(x=R.noteData)==null?0:x.ignoreDivider)&&!((t=O.data())==null?0:(W=t.noteData)==null?0:W.isUserRatingForm)},
then:function(){return _.q("div",{class:"ytNoteViewModelDivider"},_.q(_.u5,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(R){return _.q(_.pQu,{data:R.data})}}))}}))}return _.q("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.q(_.U,{cond:function(){var R,x;return(R=O.data())==null?void 0:(x=R.noteData)==null?void 0:x.isPinned},
then:function(){return _.q(_.T$,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.q(_.U,{cond:function(){var R,x;return(R=O.data())==null?void 0:(x=R.noteData)==null?void 0:x.isPublished},
then:function(){return _.q(_.T$,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.q(_.U,{cond:function(){return B},
then:function(){return _.q(_.u5,{data:function(){var R;return(R=O.data())==null?void 0:R.metadata}},{contentMetadataViewModel:function(R){return _.q(_.p5,{data:R.data})}})}}),_.q(_.Jg,{text:function(){var R,x;
return(R=O.data())==null?void 0:(x=R.noteData)==null?void 0:x.headerText}}),_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.q(_.Jg,{text:function(){var R,x;
return(R=O.data())==null?void 0:(x=R.noteData)==null?void 0:x.delimiter}})),_.q(_.Jg,{text:function(){var R,x;
return(R=m())==null?void 0:(x=R.contributorNote)==null?void 0:x.publishedTimeText}})),_.q(_.u5,{data:function(){var R,x,t;
return kgu((R=O.data())==null?void 0:R.noteData,(x=m())==null?void 0:(t=x.contributorNote)==null?void 0:t.deleteAction)}},{buttonViewModel:function(R){return _.q(_.oF,{data:R.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.q("div",{class:"ytNoteViewModelNoteContent"},_.q(_.Jg,{text:function(){var R,x;
return(R=m())==null?void 0:(x=R.contributorNote)==null?void 0:x.text}})))},"tg");
ph.idomCompat=!0;_.qi(_.a(function(O){var m=_.MN(function(){var C;return(C=O.data())==null?void 0:C.flowStateEntityKey},""),G=_.fJ(_.OQ,m),B=_.fJ(lgu,_.MN(function(){var C;
return(C=O.data())==null?void 0:C.noteFeedEntityKey},"")),Q=_.K(_.fH(function(){var C;
return(C=_.b(O.data().helpfulnessValue,_.Ot))==null?void 0:C.defaultSelectedKey})),H=Q.next().value,M=Q.next().value;
Q=_.K(_.fH(function(){var C,P,w;return(w=_.b((C=_.b(O.data().helpfulnessValue,_.Ot))==null?void 0:(P=C.radioButtons)==null?void 0:P.find(function(d){var D;return((D=_.b(d,KP9))==null?void 0:D.key)===H()}),KP9))==null?void 0:w.value}));
var R=Q.next().value,x=Q.next().value,t=function(C,P){M(P.key);x(P.value)},W=function(){var C,P;
return((C=R())==null?void 0:C.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((P=R())==null?void 0:P.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},Z=function(){var C,P;
return((C=R())==null?void 0:C.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((P=R())==null?void 0:P.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"};
Q=_.K(_.fH(function(){var C;return(C=_.b(O.data().helpfulReasons,vt3))==null?void 0:C.defaultSelectedKeys}));
var z=Q.next().value,J=Q.next().value,n=function(C){yEh(C.key,z,J)};
Q=_.K(_.fH(function(){var C;return(C=_.b(O.data().notHelpfulReasons,vt3))==null?void 0:C.defaultSelectedKeys}));
var I=Q.next().value,S=Q.next().value,L=function(C){yEh(C.key,I,S)};
_.Ln(function(){var C,P,w;Gg0((C=O.data())==null?void 0:(P=C.userRatingFormSchema)==null?void 0:P.id,{isValid:function(){return!!H()},
formData:function(){var d=R(),D=Yes(z(),_.b(O.data().helpfulReasons,vt3)),OS=Yes(I(),_.b(O.data().notHelpfulReasons,vt3));d={helpfulnessValue:d==null?void 0:d.noteHelpfulnessValue};if(D){d.helpfulReasons=[];D=_.K(D);for(var rN=D.next();!rN.done;rN=D.next()){rN=rN.value;var xO=void 0;if((xO=rN)==null?0:xO.noteHelpfulReason)xO=void 0,d.helpfulReasons.push((xO=rN)==null?void 0:xO.noteHelpfulReason)}}if(OS)for(d.notHelpfulReasons=[],OS=_.K(OS),D=OS.next();!D.done;D=OS.next())if(D=D.value,rN=void 0,(rN=
D)==null?0:rN.noteNotHelpfulReason)rN=void 0,d.notHelpfulReasons.push((rN=D)==null?void 0:rN.noteNotHelpfulReason);return{userRatingFormData:d}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(w=_.b(G(),sO0))==null?void 0:w.submitFormParams},onSubmitResult:function(){var d,D=(d=_.b(G(),sO0))==null?void 0:d.userRatingEntityKey,OS;d={key:D,helpfulnessValue:(OS=R())==null?void 0:OS.noteHelpfulnessValue};D&&_.$n(_.jh("contextNoteUserRatingEntityPayload",D,d));var rN;D=(rN=O.data())==null?void 0:rN.viewNoteFlowStepId;var xO;if((xO=B())==null||!xO.contributorNote){var XI;D=(XI=O.data())==null?void 0:XI.zeroStateFlowStepId}(rN=
Object.assign({},G()))&&D&&(rN.currentStepId=D,rN.stepIdStack=[D],_.$n(_.jh("flowStateEntity",m(),rN)));rN=_.KR().resolve(_.Mu);var Vf;(xO=(Vf=O.data())==null?void 0:Vf.ratingSubmittedSnackbarCommand)&&rN&&rN.resolveCommand(xO)},
disableDuringSubmission:!0})});
return _.q("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.q(_.u5,{data:function(){var C=_.b(G(),sO0);if(C){var P;var w={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:C==null?void 0:(P=C.note)==null?void 0:P.headerText}]}],delimiter:"\u2022"}},existingNote:C.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else w=void 0;return w}},{noteViewModel:function(C){return _.q("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.q(ph,{data:C.data}))}}),_.q(_.u5,{data:function(){var C;
return(C=O.data())==null?void 0:C.helpfulnessValue}},{radioButtonGroupViewModel:function(C){return _.q("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.q(_.yJA,{data:C.data,
onSelected:t,selectedKey:H}))}}),_.q(_.U,{cond:W,
then:function(){return _.q("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.q("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.q(_.Jg,{text:function(){var C;return(C=O.data())==null?void 0:C.helpfulReasonQuestion}})),_.q(_.u5,{data:function(){var C;
return(C=O.data())==null?void 0:C.helpfulReasons}},{checkboxGroupViewModel:function(C){return _.q(YDb,{data:C.data,
onItemTap:n,selectedKeys:z,controlledMode:!0})}}))}}),_.q(_.U,{cond:Z,
then:function(){return _.q("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.q("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.q(_.Jg,{text:function(){var C;return(C=O.data())==null?void 0:C.notHelpfulReasonQuestion}})),_.q(_.u5,{data:function(){var C;
return(C=O.data())==null?void 0:C.notHelpfulReasons}},{checkboxGroupViewModel:function(C){return _.q(YDb,{data:C.data,
onItemTap:L,selectedKeys:I,controlledMode:!0})}}))}}),_.q(_.U,{cond:function(){return!W()&&!Z()},
then:function(){return _.q(_.u5,{data:function(){var C;return(C=O.data())==null?void 0:C.helpfulNoteFeatures}},{alertBannerViewModel:function(C){return _.q("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.q(_.azj,{data:C.data}))}})}}))},"ug"),"yt-note-user-rating-view-model",{props:{data:_.VZ}});_.qi(ph,"yt-note-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=_.fJ(lgu,_.MN(function(){var G;return(G=O.data())==null?void 0:G.noteFeedEntityKey},""));
return _.q("yt-notes-wrapper-view-model",{class:_.bE("ytNotesWrapperViewModelHost")},_.q(_.U,{cond:function(){var G,B,Q;return!((G=O.data())==null||!G.existingNotes)||!((B=O.data())==null||!B.currentNote)&&!((Q=m())==null||!Q.contributorNote)},
then:function(){return _.q(_.Mr,null,_.q(_.u5,{data:function(){var G,B,Q,H;return((B=_.b((G=O.data())==null?void 0:G.currentNote,NYh))==null?0:(Q=B.noteData)==null?0:Q.isPublished)?(H=O.data())==null?void 0:H.currentNote:void 0}},{noteViewModel:function(G){return _.q(ph,{data:G.data})}}),_.q(_.u5,{data:function(){var G;
return(G=O.data())==null?void 0:G.existingNotes}},{noteViewModel:function(G){var B=G.data;
return _.q(_.U,{cond:function(){var Q,H;return(Q=B())==null?void 0:(H=Q.noteData)==null?void 0:H.isPublished},
then:function(){return _.q(ph,{data:B})}})}}),_.q(_.u5,{data:function(){var G,B,Q,H;
return((B=_.b((G=O.data())==null?void 0:G.currentNote,NYh))==null?0:(Q=B.noteData)==null?0:Q.isPublished)?void 0:(H=O.data())==null?void 0:H.currentNote}},{noteViewModel:function(G){return _.q(ph,{data:G.data})}}),_.q(_.u5,{data:function(){var G;
return(G=O.data())==null?void 0:G.existingNotes}},{noteViewModel:function(G){var B=G.data;
return _.q(_.U,{cond:function(){var Q,H;return!((Q=B())==null?0:(H=Q.noteData)==null?0:H.isPublished)},
then:function(){return _.q(ph,{data:B})}})}}))},
else:function(){return _.q(_.u5,{data:function(){var G;return(G=O.data())==null?void 0:G.zeroStateData}},{contributorZeroStateViewModel:oVh})}}))},"vg"),"yt-notes-wrapper-view-model",{props:{data:_.VZ}});var S5=_.a(function(O){var m=_.ru(O,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),G=m.label,B=m.text,Q=m.placeholder,H=m.hint;O=m.rows;var M=m.overflowStyle,R=m.outline,x=m.disabled,t=m.disableNewLines,W=m.characterLimit,Z=m.validation,z=m.onInput,J=_.Al("textarea");m=_.K(_.fH(function(){return B()}));
var n=m.next().value,I=m.next().value;m=_.K(_.Wf(!1,void 0,"u9PDq"));var S=m.next().value,L=m.next().value,C=function(){L(!0)},P=function(){L(!1)};
_.Ln(function(){var CN=J.value,oe=M(),K$=n();oe==="expand-vertically"&&K$&&duy(CN);J.value.addEventListener("focusin",C);J.value.addEventListener("focusout",P)});
_.LS(function(){J.value.removeEventListener("focusin",C);J.value.removeEventListener("focusout",P)});
var w=function(){var CN;return(CN=Z())==null?void 0:CN.validate(n())},d=function(){return W()&&!w()&&n().length>W().maxChars},D=function(){return!!w()||d()};
m=_.nH(function(CN){if(!CN.currentTarget)return!1;CN=CN.currentTarget;I(CN.value);M()==="expand-vertically"&&duy(CN);z==null||z(CN.value);return!0});
var OS=_.nH(function(CN){t()&&CN.key==="Enter"&&CN.preventDefault();return!1}),rN=_.nH(function(){J.value.focus()}),xO=function(){return Q()||G()},XI={},Vf={},US={};
return _.q("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.q("div",{class:_.bE("ytStandardsTextareaShapeTextareaContainer",(XI.ytStandardsTextareaShapeTextareaContainerOutline=R,XI.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=x,XI.ytStandardsTextareaShapeTextareaContainerOutlineError=D,XI)),"on:click":rN},_.q("label",{class:_.bE("ytStandardsTextareaShapeLabel",(Vf.ytStandardsTextareaShapeLabelFocused=S,Vf.ytStandardsTextareaShapeLabelDisabled=x,Vf.ytStandardsTextareaShapeLabelError=
function(){return D()&&!x()},Vf.ytStandardsTextareaShapeLabelHidden=function(){return!S()&&!n()&&!!xO()},Vf))},G),_.q("div",{class:_.bE("ytStandardsTextareaShapePlaceholder",(US.ytStandardsTextareaShapePlaceholderVisible=function(){return!S()&&!n()},US)),
"aria-hidden":"true"},xO),_.q("textarea",{el:J,class:"ytStandardsTextareaShapeTextarea",rows:O,disabled:x,placeholder:xO,"on:input":m,"on:keydown":OS},n)),_.q(_.U,{cond:function(){return H()&&!D()},
then:function(){var CN={};return _.q("div",{class:_.bE("ytStandardsTextareaShapeHint",(CN.ytStandardsTextareaShapeHintDisabled=x,CN))},_.q("div",{class:"ytStandardsTextareaShapeHintHintMessage"},H))}}),_.q(_.U,{cond:w,
then:function(){return _.q(dDu,{disabled:x},_.q("div",{class:"ytStandardsTextareaShapeErrorMessage"},w))}}),_.q(_.U,{cond:W,
then:function(CN){return _.q(_.U,{cond:d,then:function(){return _.q(dDu,{disabled:x},_.q("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return CN().errorMessage}),_.q("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return n().length+"/"+CN().maxChars}))}})}}))},"wg");
S5.idomCompat={callbacks:{onInput:!0}};var dDu=_.a(function(O){var m={};return _.q("div",{class:_.bE("ytStandardsTextareaShapeError",(m.ytStandardsTextareaShapeErrorDisabled=O.disabled,m)),role:"alert"},_.q(_.T$,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),O.children)},"xg");_.weK=_.a(function(O){var m=O.data;return _.q("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.q(S5,{text:O.text,label:function(){var G;return(G=m().contentProperties)==null?void 0:G.labelText},
placeholder:function(){var G;return(G=m().contentProperties)==null?void 0:G.placeholderText},
hint:function(){var G;return(G=m().contentProperties)==null?void 0:G.hintText},
outline:function(){var G;return!((G=m().displayProperties)==null?0:G.hideBorder)},
overflowStyle:function(){var G;return((G=m().displayProperties)==null?0:G.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:O.disabled,disableNewLines:function(){var G;return(G=m().displayProperties)==null?void 0:G.disableNewLines},
onInput:O.onInput,characterLimit:O.characterLimit,validation:O.validation,rows:function(){var G;return(G=m().displayProperties)==null?void 0:G.rows}}))},"yg");_.eW9=_.a(function(O){var m=O.data;return _.q("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.q(S5,{text:O.text,label:function(){var G;return(G=m().contentProperties)==null?void 0:G.labelText},
placeholder:function(){var G;return(G=m().contentProperties)==null?void 0:G.placeholderText},
hint:function(){var G;return(G=m().contentProperties)==null?void 0:G.hintText},
outline:function(){var G;return!((G=m().displayProperties)==null?0:G.hideBorder)},
overflowStyle:function(){var G;return((G=m().displayProperties)==null?0:G.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var G;return(G=m().displayProperties)==null?void 0:G.disableNewLines},
onInput:O.onInput,characterLimit:O.characterLimit,validation:O.validation,rows:function(){var G;return(G=m().displayProperties)==null?void 0:G.rows}}))},"zg");var DDb=_.a(function(O){var m=_.K(_.fH(function(){var xO,XI;return((xO=O.data().structuredContextNoteFormSchema)==null?0:(XI=xO.initialValues)==null?0:XI.noteBody)?O.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),G=m.next().value,B=m.next().value;
m=_.K(_.fH(function(){O.data();return!1}));
var Q=m.next().value,H=m.next().value;m=_.K(_.fH(function(){O.data();return!1}));
var M=m.next().value,R=m.next().value;m=_.K(_.fH(function(){var xO,XI;return((xO=O.data().structuredContextNoteFormSchema)==null?0:(XI=xO.initialValues)==null?0:XI.timestamp)?O.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var x=m.next().value,t=m.next().value;m=_.K(_.fH(function(){O.data();return!1}));
var W=m.next().value,Z=m.next().value;m=_.K(_.fH(function(){var xO,XI;return((xO=O.data().structuredContextNoteFormSchema)==null?0:(XI=xO.initialValues)==null?0:XI.sources)?[O.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var z=m.next().value,J=m.next().value;m=_.K(_.fH(function(){O.data();return!1}));
var n=m.next().value,I=m.next().value;m=_.K(_.fH(function(){return!1}));
var S=m.next().value,L=m.next().value;_.Ln(function(){var xO;_.BIr((xO=O.data().structuredContextNoteFormSchema)==null?void 0:xO.id,{isSubmitting:S,onSubmit:function(){L(!0);var XI=OpJ(G(),x(),z(),O.data()),Vf=_.KR().resolve(_.Mu);XI&&Vf&&Vf.resolveCommand(XI,{commandController:{onSuccess:function(){L(!1)}}})},
isValid:function(){return Q()&&!M()&&!W()&&!n()}})});
var C=function(xO){if(xO!==void 0&&(B(xO),!Q()&&xO.length>0&&H(!0),Q())){var XI=Dur(O.data());if(XI){var Vf=XI.minLength;XI=XI.maxLength;Vf&&xO.length<Vf?R(!0):XI&&xO.length>XI?R(!0):R(!1)}}},P=function(xO){if(xO!==void 0){t(xO);
if(xO.length>0){var XI,Vf,US,CN,oe=NIr((XI=O.data())==null?void 0:(Vf=XI.structuredContextNoteFormSchema)==null?void 0:(US=Vf.fieldSchemas)==null?void 0:(CN=US.timestamp)==null?void 0:CN.validationSchema);if(oe&&(XI=oe.regex)&&!(new RegExp(XI)).test(xO)){Z(!0);return}}Z(!1)}},w=function(xO){if(xO!==void 0){var XI=xO.split(/[ \n]/).map(function(Vf){return Vf.trim()});
J(XI);if(xO.length>0)for(xO=_.K(XI),XI=xO.next();!XI.done;XI=xO.next())if(!AEJ(XI.value)){I(!0);return}I(!1)}},d=function(){return{validate:function(xO){if(Q()){var XI=Dur(O.data());
if(XI){var Vf=XI.minLength;XI=XI.translations;if(Vf&&xO.length<Vf)return XI==null?void 0:XI.minLengthErrorMessage}}}}},D=function(){var xO=Dur(O.data()),XI=xO==null?void 0:xO.maxLength,Vf;
xO=xO==null?void 0:(Vf=xO.translations)==null?void 0:Vf.maxLengthErrorMessage;if(XI&&xO)return{maxChars:XI,errorMessage:xO}},OS=function(){return{validate:function(xO){if(xO){var XI,Vf,US,CN,oe=NIr((XI=O.data())==null?void 0:(Vf=XI.structuredContextNoteFormSchema)==null?void 0:(US=Vf.fieldSchemas)==null?void 0:(CN=US.timestamp)==null?void 0:CN.validationSchema);
if(oe&&(XI=oe.regex,oe=oe.translations,XI&&!(new RegExp(XI)).test(xO)))return oe==null?void 0:oe.regexErrorMessage}}}},rN=function(){return{validate:function(xO){if(xO){var XI,Vf,US,CN,oe=FM9((XI=O.data())==null?void 0:(Vf=XI.structuredContextNoteFormSchema)==null?void 0:(US=Vf.fieldSchemas)==null?void 0:(CN=US.sources)==null?void 0:CN.validationSchema);
if(oe&&(XI=oe.translations,XI==null?0:XI.selectedErrorMessage))for(xO=xO.split(/[ \n]/).map(function(K$){return K$.trim()}),xO=_.K(xO),Vf=xO.next();!Vf.done;Vf=xO.next())if(!AEJ(Vf.value))return xO=void 0,(xO=XI)==null?void 0:xO.selectedErrorMessage}}}};
return _.q("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.q(_.u5,{data:function(){var xO;return(xO=O.data())==null?void 0:xO.noteContents}},{textFormFieldViewModel:function(xO){return _.q(_.eW9,{data:xO.data,
onInput:C,validation:d,characterLimit:D})},
textFieldViewModel:function(xO){return _.q(_.weK,{data:xO.data,onInput:C,validation:d,characterLimit:D})}})),_.q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.q(_.u5,{data:function(){var xO;
return(xO=O.data())==null?void 0:xO.noteTimestamp}},{textFormFieldViewModel:function(xO){return _.q(_.eW9,{data:xO.data,
onInput:P,validation:OS})},
textFieldViewModel:function(xO){return _.q(_.weK,{data:xO.data,onInput:P,validation:OS})}})),_.q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.q(_.u5,{data:function(){var xO;
return(xO=O.data())==null?void 0:xO.noteSources}},{textFormFieldViewModel:function(xO){return _.q(_.eW9,{data:xO.data,
onInput:w,validation:rN})},
textFieldViewModel:function(xO){return _.q(_.weK,{data:xO.data,onInput:w,validation:rN})}})))},"Ag");
DDb.idomCompat=!0;_.qi(DDb,"yt-structured-context-note-view-model",{props:{data:_.VZ}});var sas=_.a(function(O){var m=_.K(_.fH(function(){var H;if((H=O.controlled)==null?0:H.call(O))return[];var M;return(((M=O.data())==null?void 0:M.chips)||[]).map(function(R){R=_.b(R,_.RS);if(R==null?0:R.selected)return mIu(R.chipValue)}).filter(function(R){return R!==void 0})})),G=m.next().value,B=m.next().value,Q=function(H){var M=mIu(H.chipValue);
if(M!==void 0){var R;if((R=O.controlled)==null?0:R.call(O))return void O.controlled().onTap(M);H=G().includes(M)?[].concat(_.lS(G().filter(function(t){return t!==M}))):[].concat(_.lS(G()),[M]);
B(H);var x;if((x=O.uncontrolled)==null?0:x.call(O))O.uncontrolled().onUpdate(H)}};
return _.q("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.q(_.gi,{each:function(){return O.data().chips||[]}},function(H){return _.q("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.q(_.jPj,{data:function(){return _.b(H,_.RS)},
selected:function(){var M;if(M=_.b(H,_.RS)){var R=mIu(M.chipValue);if(R!==void 0){var x;M=((x=O.controlled)==null?0:x.call(O))?O.controlled().selectedValues.includes(R):G().includes(R)}else M=void 0}else M=!1;return M},
callback:Q}))}))},"Bg");var NjB=_.a(function(O){var m=O.data;var G=function(){var R;return((R=m())==null?void 0:R.flowStateKey)||""},B=_.fJ(_.OQ,G),Q=function(){var R;
return(R=_.b(B(),Pnx))==null?void 0:R.chips},H=function(R){if(R!==void 0){var x=Q()||[];
x=x.find(function(t){return t===R})?x.filter(function(t){return t!==R}):[].concat(_.lS(x),[R]);
x=Object.assign({},B(),{feedbackFormFlowState:Object.assign({},_.b(B(),Pnx),{chips:x})});_.$n(_.jh("flowStateEntity",G(),x))}},M=function(){var R;
return _.b((R=m())==null?void 0:R.inputBox,Foy)};
O=_.SG(function(R){var x=M();x=!(x==null?0:x.maxChars)||R.length<=x.maxChars;R=Object.assign({},B(),{feedbackFormFlowState:Object.assign({},_.b(B(),Pnx),{detail:R}),abuseReportFlowState:Object.assign({},_.b(B(),A2),{navigationEnabled:x})});_.$n(_.jh("flowStateEntity",G(),R))},150);
return _.q("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.q("div",{class:"ytFeedbackFormViewModelChips"},_.q(_.u5,{data:function(){var R;return(R=m())==null?void 0:R.chipSelection}},{chipSelectionFormFieldViewModel:function(R){return _.q(sas,{data:R.data,
controlled:function(){return{selectedValues:Q()||[],onTap:H}}})}})),_.q("div",{class:"ytFeedbackFormViewModelInputBox"},_.q(S5,{text:function(){var R;
return(R=_.b(B(),Pnx))==null?void 0:R.detail},
placeholder:function(){var R;return((R=M())==null?void 0:R.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var R=M();if(R&&R.maxChars)return{maxChars:R.maxChars,errorMessage:R.maxCharsExceededErrorMessage||""}},
onInput:O})),_.q("div",{class:"ytFeedbackFormViewModelFooterText"},_.q(_.Jg,{text:function(){return m().footerText}})))},"Cg");
NjB.idomCompat=!0;_.qi(NjB,"yt-feedback-form-view-model",{props:{data:_.VZ}});var P_s=_.a(function(O){var m=O.data;var G=function(){return m().flowStateKey||""},B=_.fJ(ORK,G),Q=function(){return _.b(B(),A2)},H=function(){if(_.V("enable_gff_accessibility_fix")){var M=!0,R;
if((R=Q())==null?0:R.navigationEnabled){var x;_.PE((x=Q())==null?void 0:x.navigationCommand);M=!1}R=Object.assign({},B(),{abuseReportFlowState:Object.assign({},Q(),{isReportFormDirty:M})});_.$n(_.jh("flowStateEntity",G(),R))}else _.PE((M=Q())==null?void 0:M.navigationCommand)};
return _.q("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.q("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.q(_.u5,{data:function(){return m().cancelButton}},{buttonViewModel:function(M){return _.q(_.oF,{data:M.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:H})}}),_.q(_.u5,{data:function(){var M;
if(m().navButton){var R=Object;var x=R.assign,t=_.b(m().navButton,_.rc),W=((M=Q())==null?0:M.navigationEnabled)||_.V("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",Z,z;M=_.b((Z=Q())==null?void 0:Z.navigationCommand,_.wu);Z=(z=_.b(M,_.Db))==null?void 0:z.url;R={buttonViewModel:x.call(R,{},t,{state:W,iconName:Z?"OPEN_IN_NEW":""})}}else R=void 0;return R}},{buttonViewModel:function(M){return _.q(_.oF,{data:M.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:H})}})))},"Dg");
P_s.idomCompat=!0;_.qi(P_s,"yt-report-form-bottom-bar-view-model",{props:{data:_.VZ}});var Fdb=_.a(function(O){var m=O.nextStep;return _.q("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.q("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.q(_.T$,{icon:function(){return m().iconName||""}})),_.q("div",null,_.q(_.Jg,{text:function(){return m().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Eg"),AJs=_.a(function(O){var m=O.data;
var G,B=(G=_.KR().resolve(_.v7(_.B6)))==null?void 0:G(),Q=_.fJ(_.OQ,function(){return m().flowStateKey||""});
return _.q("yt-report-form-confirmation-page-view-model",{class:function(){var H;return((H=_.b(Q(),A2))==null?void 0:H.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.q("div",{class:function(){var H;
return((H=_.b(Q(),A2))==null?void 0:H.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.q(_.KH,{data:function(){return B&&m().imageDark?m().imageDark:m().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.q("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return m().confirmationHeader}),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.q(_.Jg,{text:function(){return m().confirmationText}})),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.q(_.Jg,{text:function(){return m().lawEnforcementText}})),
_.q("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return m().whatToExpectHeader}),_.q(_.U,{cond:function(){return m().nextSteps},
then:function(H){return _.q("div",null,_.q(_.gi,{each:H},function(M){return _.q(Fdb,{nextStep:M})}))}}),_.q(_.U,{cond:function(){return m().legalReportText},
then:function(H){return _.q("div",null,_.q(_.Jg,{text:H,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Fg");
AJs.idomCompat=!0;_.qi(AJs,"yt-report-form-confirmation-page-view-model",{props:{data:_.VZ}});var OC0=_.a(function(O){var m=O.data;var G=function(){var H;return((H=_.b(m().inputBox,Foy))==null?void 0:H.maxChars)||500},B=function(){return m().flowStateKey||""},Q=_.fJ(_.OQ,B);
O=_.SG(function(H){H=Object.assign({},Q(),{flowFormState:{isValid:H.length<=G()},abuseReportFlowState:{userComments:H,navigationEnabled:!(H.length>G()),isReportFormDirty:!0}});_.Km().dispatch(_.Cz("flowStateEntity",B(),H))},150);
_.Ln(function(){var H=Object.assign({},Q(),{flowFormState:{isValid:!0}});_.Km().dispatch(_.Cz("flowStateEntity",B(),H))});
return _.q("yt-report-form-details-page-view-model",{class:function(){var H;return((H=_.b(Q(),A2))==null?void 0:H.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.q("h1",{class:function(){var H;
return((H=_.b(Q(),A2))==null?void 0:H.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return m().detailsPageHeader}),_.q("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.q(_.Jg,{text:function(){return m().bodyText}})),_.q("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.q(S5,{label:function(){var H;
return((H=_.b(m().inputBox,Foy))==null?void 0:H.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var H;return{errorMessage:((H=_.b(m().inputBox,Foy))==null?void 0:H.maxCharsExceededErrorMessage)||"",maxChars:G()}},
onInput:O})))},"Gg");
OC0.idomCompat=!0;_.qi(OC0,"yt-report-form-details-page-view-model",{props:{data:_.VZ}});var m5r=_.a(function(O){var m=O.data;var G=_.GX("div"),B=function(){return m().flowStateKey||""},Q=_.fJ(_.OQ,B),H=function(){return _.b(Q(),A2)};
_.ER(function(){var M,R;if(((M=H())==null?0:M.isReportFormDirty)&&((R=H())==null||!R.navigationEnabled)&&_.V("enable_gff_accessibility_fix")){var x;if(((x=H())==null?void 0:x.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var t;(t=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||t.scrollIntoView()}else{var W;(W=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||W.scrollIntoView()}}},"nktJfe");
return _.q("yt-report-form-reason-select-page-view-model",{class:function(){var M;return((M=H())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.q("h1",{class:function(){var M;
return((M=H())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return m().pageHeader}),_.q("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.q(_.Jg,{text:function(){return m().bodyText}})),_.q("div",{class:function(){var M;
return((M=H())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.q(_.U,{cond:function(){var M,R;
return((M=H())==null?void 0:M.isReportFormDirty)&&!((R=H())==null?0:R.navigationEnabled)&&_.V("enable_gff_accessibility_fix")},
then:function(){return _.q("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:G},_.q(_.T$,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.q("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return m().emptyReasonSelectErrorMessage}))}}),_.q(_.yJA,{data:function(){return _.b(m().radioButtonGroup,_.Ot)},
onSelected:function(M,R){M=Object.assign({},Q(),{abuseReportFlowState:Object.assign({},H(),{reasonKey:R.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:R.command})});_.$n(_.jh("flowStateEntity",B(),M))},
selectedKey:function(){var M;return(M=H())==null?void 0:M.reasonKey},
groupName:"report-form-reason-select-page"})))},"Hg");
m5r.idomCompat=!0;_.qi(m5r,"yt-report-form-reason-select-page-view-model",{props:{data:_.VZ}});var GAA=_.a(function(O){var m=O.data;var G,B=(G=_.KR().resolve(_.v7(_.B6)))==null?void 0:G();return _.q("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.q("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.q(_.KH,{data:function(){return B&&m().imageDark?m().imageDark:m().image},
alt:""})),_.q("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.q("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return m().header}),_.q(_.Jg,{text:function(){return m().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Ig");
GAA.idomCompat=!0;_.qi(GAA,"yt-report-form-sign-in-page-view-model",{props:{data:_.VZ}});_.BK3=(0,_.t0A)(_.Gz.talkToRecs,{talkToRecsStateSelector:function(O){return O}});_.qi(_.a(function(O){var m=O.data;var G=_.wg(_.BK3.talkToRecsStateSelector),B=function(){return m().titleSuperscript},Q=function(){return m().answersShelf},H=function(){return m().videoShelf},M=function(){var rN;
return(rN=m().textInputPlaceholder)==null?void 0:rN.content},R=function(){return m().showOpenTextInput},x=function(){var rN;
return(rN=m().textInputValue)==null?void 0:rN.content},t=function(){return m().isMultiTurnFlow?m().resetButtonViewModel:void 0},W="",Z=function(){return m().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
O=_.K(_.Wf("",void 0,"d5Wa4d"));var z=O.next().value,J=O.next().value;O=_.K(_.Wf(!1,void 0,"aIzK3e"));var n=O.next().value,I=O.next().value,S=function(){return{state:n()||z()?"active":"disabled",disabled:!(n()||z())}};
_.EZ(function(){if(R()){x()&&J(x());var rN;if(!t()&&((rN=G())==null?0:rN.stepStates)){var xO;rN=Object.keys((xO=G())==null?void 0:xO.stepStates);xO=rN[rN.length-1];var XI,Vf;(xO=(XI=G().stepStates[xO])==null?void 0:(Vf=XI.userQuery)==null?void 0:Vf.userQuery)&&J(xO);_.$n(DIx())}}});
_.LS(function(){_.$n(DIx())});
var L=function(rN){var xO=m().onUpdateText;xO&&_.PE(xO,{form:{userQuery:rN}});J(rN)},C=_.SG(function(rN){L(rN.target.value.trim())},150),P=_.nH(function(rN){var xO;
W=(xO=rN.target.value)==null?void 0:xO.trim();C(rN);return!1}),w=_.nH(function(rN){rN.key==="Enter"&&(n()||z())&&(L(rN.target.value.trim()),D());
return!1}),d=function(rN,xO){I(xO);
if(xO){if(m().isMultiTurnFlow&&!W){var XI;L((XI=rN==null?void 0:rN.text)!=null?XI:"")}m().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&D()}else J(W)},D=function(){var rN=void 0,xO=_.b(m().nextButtonViewModel,_.rc),XI,Vf;
if(xO==null?0:(XI=xO.loggingDirectives)==null?0:(Vf=XI.clientVeSpec)==null?0:Vf.uiType){var US,CN;rN=_.Zv((US=xO.loggingDirectives)==null?void 0:(CN=US.clientVeSpec)==null?void 0:CN.uiType)}(xO=m().onNextStepCommand)&&_.PE(xO,{clickedVisualElement:rN})};
O=_.Al("yt-talk-to-recs-view-model");var OS={};return _.q("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:O},_.q("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.q(_.u5,{data:function(){return m().topCornerButton}},{buttonViewModel:_.oF})),_.q("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.q("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.q(_.Jg,{text:function(){return m().title}}),_.q(_.U,{cond:B,
then:function(){return _.q("sup",{class:"ytwTalkToRecsSuperScript"},_.q(_.Jg,{text:B}))}})),_.q("div",{class:"ytwTalkToRecsSubtitle"},_.q(_.Jg,{text:function(){return m().subtitle}})),_.q("div",{class:"ytwTalkToRecsResultsShelf"},_.q(_.U,{cond:Q,
then:function(){return _.q(_.u5,{data:Q},{chipsShelfViewModel:function(rN){return _.q("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.q(_.KF,{data:rN.data,callback:d,selectionBehavior:Z}))}})}}),_.q(_.U,{cond:H,
then:function(){return _.q(_.u5,{data:H},{horizontalShelfViewModel:function(rN){return _.q("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.q(_.Rz,{data:rN.data,thumbnailAspectRatio:0}))}})}})),_.q("div",{class:_.bE("ytwTalkToRecsRefinementContainer",(OS.ytwTalkToRecsBottomMargin=function(){return m().isMultiTurnFlow},OS))},_.q(_.U,{cond:R,
then:function(){return _.q("div",{class:"ytwTalkToRecsUserInputBox"},_.q("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:M,value:z,"on:input":P,"on:keyup":w,maxlength:200}))}}),_.q(_.u5,{data:function(){return m().isMultiTurnFlow?m().nextButtonViewModel:void 0}},{buttonViewModel:function(rN){return _.q("div",{class:"ytwTalkToRecsFlowControlButtons"},_.q(_.oF,{data:rN.data,
buttonOverrides:S}))}}),_.q(_.u5,{data:t},{buttonViewModel:function(rN){return _.q("div",{class:"ytwTalkToRecsFlowControlButtons"},_.q(_.oF,{data:rN.data,
onClick:function(){var xO=_.b(m().resetButtonViewModel,_.rc);L(z());(xO=xO==null?void 0:xO.onTap)&&_.PE(xO)}}))}}))))},"Jg"),"yt-talk-to-recs-view-model",{props:{data:_.VZ}});var GVJ={sources:[{clientResource:{imageName:"CHECK"}}]};_.Qq0=_.a(function(O){var m=_.Al("div");O=_.ru(O,{error:void 0});var G=O.data,B=O.error,Q=O.onSelected;O=_.K(_.fH(function(){return Hps(G())}));
var H=O.next().value,M=O.next().value;Ma9(G,function(z){M(z);var J,n,I=QOy((J=G().options)==null?void 0:(n=J[z])==null?void 0:n.value,G().type);Q==null||Q(I);m.value.focus()});
O=_.nH(function(){if(!G().disabled){var z=G(),J=H(),n=m.value;z.options&&(z=BYJ(z.options,J,z.label),_.KR().resolve(_.O5).openSheet({viewModel:z},n))}});
var R=_.Rxf(),x=function(){return!!B()},t=function(){return!!G().disabled},W={},Z={};
return _.q("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.q("div",{class:_.bE("ytDropdownViewModelDropdownContainer",(W.ytDropdownViewModelDropdownContainerErrorBorder=x,W.ytDropdownViewModelDropdownContainerDisabled=t,W)),"on:click":O,el:m,role:"combobox",tabindex:0,"on:keydown":R,"aria-invalid":x,"aria-disabled":t,"aria-describedby":function(){return x()?"dropdown-view-model-error":void 0}},_.q("div",{class:"ytDropdownViewModelText"},vGK(G,x,H),KoK(G,H)),_.q("div",{class:_.bE("ytDropdownViewModelChevronDown",
(Z.ytDropdownViewModelChevronDownDisabled=t,Z))},_.q(_.T$,{icon:"CHEVRON_DOWN"}))),$I0(G,B))},"Kg");_.qi(_.a(function(O){var m=O.data;var G=function(Q){var H=Rtr(m());H.videoMetadata||(H.videoMetadata={});H.videoMetadata.sponsorshipsMetadata||(H.videoMetadata.sponsorshipsMetadata={});H.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(Q)},B=function(Q){var H=Rtr(m());
H.scheduledRedirectMetadata||(H.scheduledRedirectMetadata={});H.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(Q)};
return _.q("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.q("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.q("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.q(_.Jg,{text:function(){return m().title}}),_.q(_.T$,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.q(_.Jg,{text:function(){return m().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.q(_.u5,{data:function(){return m().tierChoices}},{dropdownViewModel:function(Q){return _.q("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.q(_.Qq0,{data:Q.data,
onSelected:G}))}}),_.q(_.u5,{data:function(){return m().startTimeChoices}},{dropdownViewModel:function(Q){return _.q("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.q(_.Qq0,{data:Q.data,
onSelected:B}))}}),_.q(_.Jg,{text:function(){return m().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.q("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.q(_.u5,{data:function(){return m().scheduleButton}},{panelFooterViewModel:_.IX})))},"Lg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=O.data;O=O.className===void 0?"":O.className;var G=_.fJ(ORK,function(){return m().flowStateEntityKey||""}),B={};
B=_.bE("ytFlowBottomBarViewModelFlowBottomBarButtons",(B.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return m().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||m().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},B));
var Q={},H=_.bE("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",B,(Q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return m().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return m().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},Q));
Q={};var M=_.bE("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",B,(Q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return m().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Q.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return m().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},Q));
B={};B=_.bE("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(B.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return m().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},B.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return m().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},B.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return m().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
B));
O=_.bE("ytFlowBottomBarViewModelHost",O);return _.q("yt-flow-bottom-bar-view-model",{class:O},_.q(_.U,{cond:function(){var R;return(R=m())==null?void 0:R.textSection},
then:function(R){return _.q("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.q(_.Jg,{text:R}))}}),_.q("div",{class:B},_.q(_.u5,{data:function(){return m().secondaryButton}},{buttonViewModel:function(R){return _.q(_.oF,{data:R.data,
className:M})}}),_.q(_.u5,{data:function(){return m().primaryButton}},{buttonViewModel:function(R){return _.q(_.oF,{data:R.data,
className:H,buttonOverrides:function(){var x;return{disabled:!((x=G())==null||!x.primaryButtonDisabled)}}})}})))},"Mg"),"yt-flow-bottom-bar-view-model",{props:{data:_.VZ,
className:_.RZ}});var HCh="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Et=function(){var O=_.u.apply(this,arguments)||this;O.enableScrollingFix=!0;O.bottomBar=!1;O.fitContent=!1;return O};
_.X(Et,_.u);_.v=Et.prototype;_.v.ready=function(){_.V("enable_pdp_icon_prefetch")&&_.wIx(_.KR().resolve(_.mS),0,HCh)};
_.v.focus=function(O){this.topBar?_.OJ(this.topBar,O):this.paperDialog.focus(O)};
_.v.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19108_scroller&&(this.JSC$19108_scroller.dialogElement=this.paperDialog,this.JSC$19108_scroller.attached&&typeof this.JSC$19108_scroller.attached==="function"&&this.JSC$19108_scroller.attached())};
_.v.onDataChanged=function(){var O;this.fitContent=!((O=this.data)==null||!O.fitContent);var m;this.bottomBar=!((m=this.data)==null||!m.bottomBar)};
_.v.onProgressChanged=function(){var O,m,G=((m=(O=this.data)==null?void 0:O.progress)!=null?m:0)*100;this.progressElement.style.width=G+"%"};
_.v.isProgressHidden=function(){var O;return!((O=this.data)==null?0:O.progress)};
_.v.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(O){return O&&!O.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
Et.prototype.onProgressChanged=Et.prototype.onProgressChanged;Et.prototype.onDataChanged=Et.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Et.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Et.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Et.prototype,"enableScrollingFix",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Et.prototype,"bottomBar",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Et.prototype,"fitContent",void 0);_.c([_.uc("#progress"),_.Y("design:type",HTMLElement)],Et.prototype,"progressElement",void 0);_.c([_.uc("#scroller"),_.Y("design:type",Object)],Et.prototype,"JSC$19108_scroller",void 0);_.c([_.uc("ytd-flow-top-bar-renderer"),_.Y("design:type",HTMLElement)],Et.prototype,"topBar",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Et.prototype,"onDataChanged",null);_.c([_.Tw("data.progress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Et.prototype,"onProgressChanged",null);_.c([_.l({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Et);
_.y(Et,"ytd-flow-step-renderer",function(){if(LPb!==void 0)return LPb;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return LPb=O},{mode:1});var Lh=function(O){this.resolveCommand=O;this.steps={}},vfB=function(O,m){m=_.K(m||[]);
for(var G=m.next();!G.done;G=m.next()){G=G.value;var B=Object.values(G)[0],Q=void 0;if((Q=B)==null?0:Q.stepId)O.steps[B.stepId]=G}},MUJ=function(O,m){var G,B,Q,H,M;
return _.r(function(R){if((G=O.state)==null||!G.currentStepId)return R.return(void 0);B=K9o(O);if(!B)return R.return($5o(O));if(Q=_.b(B,_.GHB)){var x;((x=Q.screenLoggingData)==null?0:x.screenVeType)&&_.E1(_.uK(),Q.screenLoggingData.screenVeType);((H=Q)==null?0:H.onStepStartCommand)&&O.resolveCommand((M=Q)==null?void 0:M.onStepStartCommand,{})}if(Q&&m){x=Q;var t,W,Z,z;((t=m.flowLoggingData)==null?0:t.eventNamespace)&&((W=x.flowEventData)==null?0:W.eventType)&&((Z=x.flowEventData)==null?0:Z.eventMetadata)&&
((z=m.flowLoggingData)==null?0:z.flowType)&&(t=_.bu(m.flowLoggingData.eventNamespace,x.flowEventData.eventType,x.flowEventData.eventMetadata),_.nf(_.Xs(),t,m.flowLoggingData.flowType));m.steps&&!m.steps.includes(B)&&m.steps.push(B)}return R.return(B)})};
Lh.prototype.back=function(){var O;(O=this.state)!=null&&O.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
Lh.prototype.handleUpdateFlowCommand=function(O){O.steps&&vfB(this,O.steps);O.entityUpdateCommand&&this.resolveCommand(O.entityUpdateCommand,{});O.flowContinuationCommand&&(O=O.flowContinuationCommand)&&(this.getFlowContinuationCommand=O);this.awaitFlowContinuation&&(this.awaitFlowContinuation(K9o(this)),this.awaitFlowContinuation=void 0)};
Lh.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var $5o=function(O){return _.r(function(m){return O.getFlowContinuationCommand?m.return(new Promise(function(G){O.awaitFlowContinuation=G;O.getFlowContinuationCommand&&O.resolveCommand(O.getFlowContinuationCommand,{flow_state:O.state})})):m.return(Promise.resolve(void 0))})},K9o=function(O){var m;
if((m=O.state)!=null&&m.currentStepId)return O.steps[O.state.currentStepId]};
_.vr.Object.defineProperties(Lh.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.state)==null?void 0:O.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.state)!=null&&O.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(m,G){G.key&&G.value&&(m[G.key]=G.value);return m},{})}}});var Ch=function(){var O=_.u.apply(this,arguments)||this;O.flowState=new Lh(function(m,G){G=G===void 0?{}:G;_.XJ.instance.resolveCommand(m,{form:{form:G,element:O.hostElement}})});
O.initialState=!0;O.isLoading=!1;O.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"};O.containsTalkToRecs=!1;return O};
_.X(Ch,_.u);_.v=Ch.prototype;_.v.onPopupClosed=function(O){O&&this.hostElement!==O.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.v.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.v.focus=function(O){var m=this;_.mp(function(){var G=_.ZO(m.hostElement).querySelector("ytd-flow-step-renderer");(G==null?0:G.topBar)?G.focus(O):m.topBar&&_.OJ(m.topBar,O)},1)};
_.v.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.v.computeTopBarHidden=function(O){var m;return!((m=_.b(O,_.GHB))==null||!m.topBarOverride)};
_.v.dataChanged=function(){var O=this,m,G;return _.r(function(B){if(B.nextAddress==1){((m=O.data)==null?0:m.steps)&&vfB(O.flowState,O.data.steps);if((G=O.data)==null?0:G.flowContinuationCommand){var Q=O.flowState,H=O.data.flowContinuationCommand;H&&(Q.getFlowContinuationCommand=H)}return B.yield(MUJ(O.flowState,O.data),2)}O.currentFlowStep=B.yieldResult;_.ju(B)})};
_.v.flowChanged=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1){if(!O.flow)return G.return();O.flowState.state=O.flow;O.isLoading=!0;return G.yield(MUJ(O.flowState,O.data),2)}m=G.yieldResult;if(!m||O.flow.isLoading)return G.return();O.currentFlowStep=m;O.initialState=!1;O.isLoading=!1;O.autofocusAndRefit();O.updateContainsTalkToRecs();_.ju(G)})};
_.v.updateContainsTalkToRecs=function(){var O,m=(O=_.b(this.currentFlowStep,_.GHB))==null?void 0:O.content;this.containsTalkToRecs=!!m&&!!_.b(m,BEu)};
_.v.autofocusAndRefit=function(){var O=this,m=_.KR().resolve(_.v7(_.IF)),G=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),B=document.querySelector("yt-report-form-confirmation-page-view-model"),Q=document.querySelector("yt-report-form-details-page-view-model"),H=document.querySelector("yt-report-form-reason-select-page-view-model"),M=document.querySelector("yt-contributor-zero-state-view-model"),
R=document.querySelector("yt-structured-context-note-view-model"),x=document.querySelector("yt-note-view-model");(!G&&m&&m.isKeyBoardInUse()||B||!G&&Q||!G&&H||M||R||x)&&_.mP(this.hostElement);_.QA(this,function(){_.iP(O.hostElement,"yt-refit")})};
_.v.handleUpdateFlowCommand=function(O){this.data&&(O=_.b(O,mT3),O.targetId===this.data.targetId&&(O.flowContinuationCommand&&(this.data.flowContinuationCommand=O.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(O),this.autofocusAndRefit()))};
_.v.handleFlowNextStepCommand=function(O){this.data&&this.flow&&this.flow.key&&(O=_.b(O,Avr),O.targetId===this.data.targetId&&(O=O.stepId||"",this.ytdReduxBehavior.dispatch(_.Cz("flowStateEntity",this.flow.key,{currentStepId:O,stepIdStack:(this.flow.stepIdStack||[]).concat(O)}))))};
_.v.handleFlowPrevStepCommand=function(O){if(this.data&&this.flow&&this.flow.key&&(O=_.b(O,OEo),O.targetId===this.data.targetId)){var m=[].concat(_.lS(this.flow.stepIdStack||[]));m.length>1?(m.pop(),this.ytdReduxBehavior.dispatch(_.Cz("flowStateEntity",this.flow.key,{currentStepId:m[m.length-1],stepIdStack:m}))):O.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(O.onFirstStepCommand)}};
_.v.handleYpcCancelRecurrenceCommand=function(O){if(this.data&&this.flow&&this.flow.key&&(O=_.b(O,$Tu),O.targetId===this.data.targetId&&O.endpointCommand)){var m=_.b(this.flow,M0x);m&&_.b(O.endpointCommand,_.COu)&&(_.b(O.endpointCommand,_.COu).feedbackData=m.surveyFeedback);this.ytComponentBehavior.resolveCommand(O.endpointCommand)}};
_.v.handlePartialUpdateFlowStateEntity=function(O){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Cz("flowStateEntity",this.flow.key,O,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
Ch.prototype.flowChanged=Ch.prototype.flowChanged;Ch.prototype.dataChanged=Ch.prototype.dataChanged;Ch.prototype.onPopupClosed=Ch.prototype.onPopupClosed;_.c([_.h(_.MK),_.Y("design:type",Object)],Ch.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ch.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Ch.prototype,"ytComponentBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ch.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Ch.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Ch.prototype,"initialState",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Ch.prototype,"isLoading",void 0);_.c([_.g(),_.Y("design:type",Object)],Ch.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],Ch.prototype,"currentFlowStep",void 0);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ch.prototype,"onPopupClosed",null);_.c([_.g({selectorArgs:["data.flowStateEntityKey"],selector:ORK}),_.Y("design:type",Object)],Ch.prototype,"flow",void 0);_.c([_.uc("ytd-flow-top-bar-renderer"),_.Y("design:type",HTMLElement)],Ch.prototype,"topBar",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Ch.prototype,"dataChanged",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Ch.prototype,"containsTalkToRecs",void 0);_.c([_.Si("flow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Ch.prototype,"flowChanged",null);_.c([_.l({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],Ch);
_.rch=_.WE()(Ch,"ytd-flow-root-renderer",function(){if(Etr!==void 0)return Etr;var O=document.createElement("template");_.f(O,'\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="root-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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Etr=O},{mode:_.ZB("kevlar_poly_si_batch_j025")?1:2});var R83;var Pn=null;_.qi(_.a(function(O){return _.q("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.q("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.q(_.Jg,{text:function(){return O.data().text}}),_.q("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Ng"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.VZ}});var iCo=_.a(function(O){var m=O.playerControlsProps;var G=O.isShortsPage;return _.q("yt-bigboard",null,_.q(_.U,{cond:function(){return m().isDragging},
then:function(){return _.q("div",{class:"ytBigboardStoryboardHost"},_.q(_.lZs,{progressBarProps:m,isShortsPage:G}))}}))},"Og");
iCo.idomCompat=!0;_.oX={ACCOUNT_LABEL:FG("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:FG("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:FG("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:FG("AD_BADGE_HINT"),AD_BADGE_TEXT:FG("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:FG("ALL_CHANNELS_LABEL"),AMBIENT_MODE:FG("AMBIENT_MODE"),AMBIENT_MODE_OFF:FG("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:FG("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:FG("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:FG("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:FG("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:FG("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:FG("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:FG("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:FG("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:FG("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:FG("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:FG("AUTO_ZOOM","Auto zoom"),BACK:FG("BACK"),CANCEL:FG("CANCEL"),CHANNEL_SWITCHER_LABEL:FG("CHANNEL_SWITCHER_LABEL"),CLOSE:FG("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:FG("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:FG("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:FG("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:FG("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:FG("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:FG("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:FG("COMMENT_MODAL_CONTENT"),CONFIRM_OK:FG("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:FG("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:FG("COPIED_TO_CLIPBOARD"),COPY:FG("COPY"),COPY_DEBUG_INFO:FG("COPY_DEBUG_INFO"),COPY_EMBED_CODE:FG("COPY_EMBED_CODE"),
COPY_LINK_LABEL:FG("COPY_LINK_LABEL"),COPY_VIDEO_URL:FG("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:FG("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:FG("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:FG("DELETE_FROM_DOWNLOADS"),DIALOG:FG("DIALOG"),DONE:FG("DONE"),DOWNLOAD:FG("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:FG("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:FG("FLAG_CONFIRM"),FLAG_CONTENT:FG("FLAG_CONTENT"),FLAG_LABEL:FG("FLAG_LABEL"),FLAG_TITLE:FG("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:FG("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:FG("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:FG("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:FG("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:FG("HIDE_SEARCH_FILTERS_LABEL"),HOME:FG("HOME","Home"),INVALID_RESPONSE_RECEIVED:FG("INVALID_RESPONSE_RECEIVED"),LIBRARY:FG("LIBRARY","Library"),LISTENING:FG("LISTENING"),LOADING:FG("LOADING"),LONG_PRESS_MIC_TO_SPEAK:FG("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:FG("LOOP"),MENU_DESKTOP:FG("MENU_DESKTOP"),
MENU_EXIT:FG("MENU_EXIT"),MENU_FEEDBACK:FG("MENU_FEEDBACK"),MENU_HELP:FG("MENU_HELP"),MENU_IMPRESSUM:FG("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:FG("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:FG("MENU_SETTINGS"),MENU_SIGN_IN:FG("MENU_SIGN_IN"),MENU_TITLE:FG("MENU_TITLE"),MENU_YOUR_DATA:FG("MENU_YOUR_DATA"),MORE_INFO:FG("MORE_INFO"),MORE_OPTIONS:FG("MORE_OPTIONS"),MUTE_VOLUME:FG("MUTE_VOLUME"),NEW_PLAYLIST:FG("NEW_PLAYLIST"),NEXT_VIDEO:FG("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:FG("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:FG("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:FG("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:FG("NOT_FOUND_TITLE"),NO_DOWNLOADS:FG("NO_DOWNLOADS"),NO_MIC_INPUT:FG("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:FG("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:FG("OOPS_MESSAGE"),OPEN_APP:FG("OPEN_APP"),OPEN_YOUTUBE:FG("OPEN_YOUTUBE"),PAUSE:FG("PAUSE"),PLAY:FG("PLAY"),PLAYER_CAPTION:FG("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:FG("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:FG("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:FG("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:FG("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:FG("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:FG("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:FG("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:FG("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:FG("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:FG("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:FG("PLAYER_MINIMIZE"),PLAYER_NEXT:FG("PLAYER_NEXT"),PLAYER_PAUSE:FG("PLAYER_PAUSE"),PLAYER_PLAY:FG("PLAYER_PLAY"),
PLAYER_PREVIOUS:FG("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:FG("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:FG("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:FG("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:FG("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:FG("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:FG("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:FG("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:FG("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:FG("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:FG("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:FG("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:FG("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:FG("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:FG("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:FG("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:FG("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:FG("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:FG("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:FG("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:FG("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:FG("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:FG("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:FG("PLAY_ALL"),PLEASE_FIX_ERRORS:FG("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:FG("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:FG("PREVIOUS_VIDEO"),PRIVACY_POLICY:FG("PRIVACY_POLICY"),RELOAD:FG("RELOAD"),REQUIRED_LABEL:FG("REQUIRED_LABEL"),SAVE_PLAYLIST:FG("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:FG("SCRUB_SLIDE_USER_EDU"),SEARCH:FG("SEARCH","Search"),
SEARCH_APPEND_LABEL:FG("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:FG("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:FG("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:FG("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:FG("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:FG("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:FG("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:FG("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:FG("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:FG("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:FG("SEEK_SLIDER"),SETTINGS_LABEL:FG("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:FG("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:FG("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:FG("SHOW_LESS"),SHOW_MORE:FG("SHOW_MORE"),SHOW_PLAYER_CONTROLS:FG("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:FG("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:FG("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:FG("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:FG("SIGN_IN_ON_WEB"),STABLE_VOLUME:FG("STABLE_VOLUME"),STABLE_VOLUME_OFF:FG("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:FG("STABLE_VOLUME_ON"),STATS_FOR_NERDS:FG("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:FG("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:FG("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:FG("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:FG("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:FG("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:FG("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:FG("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:FG("TIMESTAMP_SECONDS"),TOGGLE_OFF:FG("TOGGLE_OFF"),TOGGLE_ON:FG("TOGGLE_ON"),TRENDING:FG("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:FG("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:FG("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:FG("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:FG("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:FG("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:FG("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:FG("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:FG("VIDEO_LINK_LABEL")};var x5o=_.a(function(O){var m=O.playerApi;O=_.Al("button",function(B){_.ft(B,36843)});
var G=FG("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.q("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.q("button",{el:O,class:"ytPlayerControlsJumpForwardButtonButton",title:G,"aria-label":G,"on:click":_.nH(function(){_.h2(36843);m&&m().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.q("span",null,_.q(_.T$,{icon:"FAST_FORWARD"}))))},"Pg");var qFJ=_.a(function(O){var m=O.appApi;O=_.Al("button",function(B){_.ft(B,62946)});
var G=FG("OPEN_IN_MINIPLAYER");return _.q("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.q("button",{el:O,class:"ytMiniplayerButtonButton",title:G,"aria-label":G,"on:click":_.nH(function(){_.h2(62946);var B,Q;(Q=(B=m()).openInMiniplayer)==null||Q.call(B);return!1})},_.q(_.T$,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Qg");var U5b=_.a(function(O){var m=O.playerApi;O=_.Al("button",function(H){_.ft(H,142812)});
var G=_.K(_.Wf(!1,void 0,"eOMRAb")),B=G.next().value,Q=G.next().value;G=function(){return FG("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(B()?1:2)})};
return _.q("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.q("button",{el:O,class:"ytPlaybackSpeedButtonButton",title:G,"aria-label":G,"on:click":_.nH(function(){_.h2(142812);if(m){var H=m(),M=B();H.setPlaybackRate(M?1:2);Q(!B())}return!1})},_.q("span",null,_.q(_.T$,{icon:function(){return B()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Rg");var tUr=_.a(function(O){var m=O.title;var G=O.ariaLabel;var B=O.icon;var Q=O.command;var H=O.veType;O=_.Al("button",function(M){H&&_.ft(M,H())});
return _.q("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.q("button",{el:O,class:"ytdThumbnailOverlayButtonButton",title:m,"aria-label":G,"on:click":_.nH(function(){H&&_.h2(H());Q&&_.KR().resolve(_.Mu).resolveCommand(Q())})},_.q(_.T$,{icon:B})))},"Sg");var cn="";var W9b=_.a(function(O){var m=O.playerControlsProps,G=O.onClickFn;O=_.bF(function(){var H=m(),M=-1;H.captionsAvailable&&(M=H.captionsEnabled?1:0);return M},void 0,"MZ0Wqe");
var B=_.bF(function(){var H=m();return H.captionsAvailable?_.Xm(H.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Xm("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),Q=_.bF(function(){var H=m();
H=H.captionsAvailable?H.captionsEnabled:void 0;return H},void 0,"fhuQRe");
return _.q("yt-closed-captions-toggle-button",null,_.q(_.nB3,{captionIconType:O,ariaLabel:B,ariaPressed:Q,onClick:function(H){var M=m();if(M.captionsAvailable){var R=M.playerApi;if(R){var x=M.playerApi;if(x){var t=cn;if(t){x=x.getOption("captions","track");var W;cn=(W=x?x.displayName:null)!=null?W:t}else _.XG(x)?(t=_.lJO(x),cn=t.length?(W=QdA(t))?W.displayName:t[0].displayName:""):cn=""}HRo(R);_.V("mweb_disable_set_state_captions_killswitch")&&M.setState({captionsEnabled:!M.captionsEnabled})}}var Z,
z;(z=(Z=M.appApi).showCaptionsToggleToast)==null||z.call(Z,M);G==null||G(H)},
isOverlay:!0}))},"Tg");var ZC9=_.a(function(O){var m=O.data;return _.q("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.q(_.ra,{data:function(){return{type:17,text:_.KnN(m().label)}}}))},"Ug");var z8h=_.a(function(O){var m=_.bE("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return O.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return O.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return O.size()==="small"?O.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
O.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.q("animated-seek-arrows",{class:_.bE("ytPlayerControlsAnimatedSeekArrowsHost")},_.q("span",{class:m}),_.q("span",{class:m}),_.q("span",{class:m}))},"Vg");
z8h.idomCompat=!0;var Jcu=_.a(function(){var O=_.Xm("PLAYER_SECONDS",{seconds_placeholder:"30"}),m=_.K(_.Wf(!1,void 0,"iRJu8c")),G=m.next().value,B=m.next().value,Q=_.K(_.Wf(!1,void 0,"MPnizf"));m=Q.next().value;var H=Q.next().value;Q={};var M=_.bE("jumpForwardOverlayOverlay",(Q.jumpForwardOverlayOverlayHidden=m,Q));_.Ln(function(){var R=null,x=null,t=function(){R!==null&&_.uW().cancelJob(R);x!==null&&_.uW().cancelJob(x);H(!0);B(!0);_.z$(_.uW(),function(){H(!1)});
R=_.z$(_.uW(),function(){H(!0);x=_.z$(_.uW(),function(){B(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",t);_.LS(function(){window.removeEventListener("jump-forward-clicked",t)})});
return _.q("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.q(_.U,{cond:G,then:function(){return _.q("div",{class:M},_.q(z8h,{direction:1,size:"large"}),_.q("div",null,O))}}))},"Wg");var VUA=_.oX.MUTE_VOLUME,bCJ=_.oX.UNMUTE_VOLUME,nfy=_.a(function(O){var m=O.muteIconType;var G=O.onClick;var B=O.useOutlineIcon;var Q=O.useDelhiIcons;O=_.Al("button",function(R){_.ft(R,28662)});
var H=function(){var R=m(),x=B==null?void 0:B(),t=Q==null?void 0:Q(),W="",Z="";switch(R){case -1:case 0:W=x?"VOLUME_OFF":t?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";Z=bCJ;break;case 1:W=x?"VOLUME_UP_OUTLINE":t?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";Z=VUA;break;case 2:W=x?"VOLUME_DOWN_OUTLINE":t?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";Z=VUA;break;default:_.d8(R)}return{iconName:W,ariaLabel:Z}},M=function(){return H().ariaLabel};
return _.q("ytm-mute-button",{class:"ytmMuteButtonHost"},_.q("button",{el:O,class:"ytmMuteButtonButton",title:M,"aria-label":M,"on:click":_.nH(function(R){_.h2(28662);G==null||G(R);return!1})},_.q("span",null,_.q(_.T$,{icon:function(){return H().iconName}}))))},"Xg");var Xr3=_.a(function(O){var m=O.volumeProps;var G=O.onClickFn;var B=O.useOutlineIcon;var Q=O.useDelhiIcons;return _.q("yt-mute-toggle-button",null,_.q(nfy,{muteIconType:function(){var H=m();return H.volumeMuted||H.volume===0?0:H.volume>50?1:2},
onClick:function(H){var M=m().playerApi;M&&(M.isMuted()?M.unMute():M.mute(!1));G==null||G(H)},
useOutlineIcon:function(){return!(B==null||!B())},
useDelhiIcons:function(){return!(Q==null||!Q())}}))},"Yg");
Xr3.idomCompat=!0;var ffK=_.a(function(O){var m=O.data;var G=_.Al("ytm-paid-content-overlay-renderer");return _.q("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:G,"on:animationend":_.nH(function(){G.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.q(_.p3,{command:function(){return m().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.q(_.U,{cond:function(){var B;return(B=m().icon)==null?void 0:B.iconType},
then:function(){return _.q("span",null,_.q(_.T$,{icon:function(){var B;return(B=m().icon)==null?void 0:B.iconType}}))}}),_.q("div",{class:"ytmPaidContentOverlayText"},_.q(_.Jg,{text:function(){return m().text}})),_.q(_.U,{cond:function(){return m().navigationEndpoint},
then:function(){return _.q(_.T$,{icon:"CHEVRON_RIGHT"})}})))},"Zg");
ffK.idomCompat=!0;var hts=[].concat(_.lS([{register:function(O){var m=CnJ(O),G;(G=O().playerApi)==null||G.addEventListener("onVolumeChange",m);return function(){}}},
{register:function(O){var m=oG9(O);O=O().playerApi;O==null||O.addEventListener("captionschanged",m);O==null||O.addEventListener("captionssettingschanged",m);O==null||O.addEventListener("onCaptionsTrackListChanged",m);return function(){}}},
{register:function(O){if(!_.V("mweb_screenreader_accessible_player"))return function(){};
var m=lDy(O),G=document.querySelector("video");G==null||G.addEventListener("touchend",m);return function(){G==null||G.removeEventListener("touchend",m)}}},
{register:function(O){if(!_.V("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var m=lDy(O),G=document.querySelector("video");G==null||G.addEventListener("focus",m);return function(){G==null||G.removeEventListener("focus",m)}}}]),[{register:function(O){var m=pIh(O),G;
(G=O().playerApi)==null||G.addEventListener("onStateChange",m);return function(){}}},
{register:function(O){var m=SOh(O),G;(G=O().playerApi)==null||G.addEventListener("onPlaybackRateChange",m);return function(){}}},
{register:function(O){var m=EG3(O),G;(G=O().playerApi)==null||G.addEventListener("onVideoDataChange",m);return function(){}}},
{register:function(O){var m=LoA(O),G,B;(G=O())==null||(B=G.playerApi)==null||B.addEventListener("onVideoProgress",m);return function(){}}}]);var h80=_.a(function(O){var m=O.data;var G=function(){return _.Xm("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+m().playbackRate})};
return _.q(_.U,{cond:function(){return m().playbackRate&&m().playbackRate!==1},
then:function(){return _.q("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.q("div",{class:"ytPlaybackRateOverlayOverlay"},_.q(z8h,{direction:1,size:"small"}),_.q("div",{class:"ytPlaybackRateOverlayLabel"},G)))}})},"$g");var TK9=_.a(function(O){var m=O.data;return _.q("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.q(_.U,{cond:function(){var G,B=(G=m())==null?void 0:G.playerResponse,Q;return B==null?void 0:(Q=B.paidContentOverlay)==null?void 0:Q.paidContentOverlayRenderer},
then:function(G){return _.q(ffK,{data:G})}}))},"bh"),gfb=_.a(function(O){var m=O.props;
var G=O.data;var B=O.options;var Q=function(){var t,W,Z,z;return(t=G())==null?void 0:(W=t.playerResponse)==null?void 0:(Z=W.playerConfig)==null?void 0:(z=Z.inlinePlaybackConfig)==null?void 0:z.showAudioControls},H=function(){var t,W;
if(Q()&&((t=B())==null?void 0:(W=t.additionalButton)==null?void 0:W.button)!==void 0){var Z,z,J;t=(Z=G())==null?void 0:(z=Z.playerApi)==null?void 0:(J=z.getSize())==null?void 0:J.height;if(!(t===void 0||t<180)){var n,I;return(n=B())==null?void 0:(I=n.additionalButton)==null?void 0:I.button}}},M=function(){var t,W;
return(t=B())==null?void 0:(W=t.additionalButton)==null?void 0:W.thumbnailOverlayButtonRenderers},R=function(){var t,W;
return(t=B())==null?void 0:(W=t.additionalButton)==null?void 0:W.thumbnailOverlayButtonViewModels},x=function(){var t=[_.q(Xr3,{volumeProps:m}),
_.q(W9b,{playerControlsProps:m})];H()===1&&t.push(_.q(x5o,{playerApi:function(){return m().playerApi}}));
H()===2&&t.push(_.q(qFJ,{appApi:function(){return m().appApi}}));
H()===3&&t.push(_.q(U5b,{playerApi:function(){return m().playerApi}}));
var W=M();if(H()===4&&W){W=_.K(W);for(var Z=W.next(),z={};!Z.done;z={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$591:void 0},Z=W.next()){Z=Z.value;z.tooltip$jscomp$2=Z.tooltip;var J=void 0,n=void 0;z.ariaLabel$jscomp$20=((J=Z.accessibility)==null?void 0:(n=J.accessibilityData)==null?void 0:n.label)||z.tooltip$jscomp$2;J=void 0;z.icon$jscomp$51=(J=Z.icon)==null?void 0:J.iconType;z.command$jscomp$591=Z.command;z.tooltip$jscomp$2&&z.ariaLabel$jscomp$20&&z.icon$jscomp$51&&
t.push(_.q(tUr,{title:function(I){return function(){return I.tooltip$jscomp$2}}(z),
ariaLabel:function(I){return function(){return I.ariaLabel$jscomp$20}}(z),
icon:function(I){return function(){return I.icon$jscomp$51}}(z),
command:function(I){return function(){return I.command$jscomp$591}}(z)}))}}W=R();
if(H()===4&&W)for(W=_.K(W),Z=W.next(),z={};!Z.done;z={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$52:void 0,command$jscomp$592:void 0},Z=W.next())Z=Z.value,z.tooltip$jscomp$3=Z.title,z.ariaLabel$jscomp$21=Z.accessibilityText||z.tooltip$jscomp$3,z.icon$jscomp$52=Z.iconName,z.command$jscomp$592=_.eg(Z.onTap),z.tooltip$jscomp$3&&z.ariaLabel$jscomp$21&&z.icon$jscomp$52&&t.push(_.q(tUr,{title:function(I){return function(){return I.tooltip$jscomp$3}}(z),
ariaLabel:function(I){return function(){return I.ariaLabel$jscomp$21}}(z),
icon:function(I){return function(){return I.icon$jscomp$52}}(z),
command:function(I){return function(){return I.command$jscomp$592}}(z)}));
return t};
return _.q(_.U,{cond:Q,then:function(){return _.q("div",{class:"ytInlinePlayerControlsTopRightControls"},_.q(_.gi,{each:x},function(t){return _.q("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.q("div",{class:"ytInlinePlayerControlsButtonIcon"},t))}))}})},"ch"),IfK=_.a(function(O){var m=O.props;
var G=O.data;var B=O.options;O={};O=_.bE("ytInlinePlayerControlsBottomRightControls",(O.ytInlinePlayerControlsBottomRightControlsHidden=function(){var Q;return kVr(G(),B())&&((Q=B())==null?void 0:Q.insetProgressBar)&&(m().isHovering||m().isDragging)},O));
return _.q("div",{class:O},_.q(uE9,{data:G}),_.q(_.U,{cond:function(){var Q;return!((Q=B())==null?0:Q.hideTimeDisplay)},
then:function(){return _.q(jqb,{props:m,data:G})}}))},"dh"),uE9=_.a(function(O){var m=O.data;
return _.q(_.u5,{data:function(){var G;return nGA((G=m())==null?void 0:G.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:ZC9})},"eh"),jqb=_.a(function(O){var m=O.props;
var G=O.data;return _.q(_.U,{cond:function(){return m().isLive},
then:function(){return _.q(prK,null)},
else:function(){return _.q(SFx,{props:m,data:G})}})},"fh"),SFx=_.a(function(O){var m=O.props;
var G=O.data;var B=_.bF(function(){var Q;return fD9((Q=G())==null?void 0:Q.thumbnailOverlays)},void 0,"tLs0gd");
return _.q("div",{class:_.bE("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.oX.PLAYER_TIME_ELAPSED+" "+_.sPO(m().playedTime)}},_.q(_.ra,{data:function(){var Q=_.sPO(m().videoDuration-m().playedTime);
return Object.assign({},{type:17,text:Q},B())}}))},"gh"),prK=_.a(function(){var O=_.bE("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.q("div",{class:O},_.q(_.ra,{data:{type:18,text:_.oX.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"hh"),Ef9=_.a(function(O){var m=O.props;
var G=O.data;var B=O.options;return _.q(_.dZx,{progressBarProps:m,config:function(){var Q,H=_.b((Q=G())==null?void 0:Q.multiMarkersPlayerBar,_.$d9),M;Q=((M=B())==null?0:M.insetProgressBar)?2:1;var R;M=(R=B())==null?void 0:R.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:Q,chapterData:H,isInlinePlayback:!0,doSeekOnClick:M,playheadDotBehavior:M?1:0}}})},"ih");_.qi(_.a(function(O){var m=O.data;var G=O.appApi;var B=O.options;var Q=IDr(m,aDK(G));O={};G={};return _.q("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.q("div",{class:_.bE("ytInlinePlayerControlsDarkenedOverlay",(O.ytInlinePlayerControlsDarkenedOverlayShow=function(){return Q().isHovering},O))}),_.q(Jcu,null),_.q(h80,{data:Q}),_.q(TK9,{data:m}),_.q(iCo,{playerControlsProps:Q,
isShortsPage:!1}),_.q("div",{class:_.bE((G.ytInlinePlayerControlsControlsHidden=function(){return Q().isDragging},G))},_.q(gfb,{props:Q,
data:m,options:B}),_.q(IfK,{props:Q,data:m,options:B})),_.q(_.U,{cond:function(){return kVr(m(),B())},
then:function(){return _.q(Ef9,{props:Q,data:m,options:B})}}))},"ah"),"yt-inline-player-controls",{props:{data:_.VZ,
appApi:_.RZ,options:_.VZ}});var l7=function(){var O=_.u.apply(this,arguments)||this;O.opts=null;O.playerControlsData=null;O.playerControlsAppApi={openInMiniplayer:function(){O.openInMiniplayer()}};
O.playerControlsOptions={};O.noAnimation=!1;O.playbackIntentTriggered=!1;O.positionData=null;O.hidden=!0;O.active=!1;O.playing=!1;O.videoPreviewDataIndex=0;O.JSC$19165_playerPromise=null;O.player=null;O.enableAudioControls=!1;O.hasBeenUnmuted=!1;O.captionsHaveBeenTurnedOff=!1;O.JSC$19165_playerEvents=new Map;O.videoPreviewFetchRequest=null;O.scheduledPreviewEndJobId=null;O.JSC$19165_preventProgressSaveTimer=null;O.watchEndpointStartTimeUpdaterInterval=null;O.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};O.windowOnBlurFn=function(){O.deactivate()};
return O};
_.X(l7,_.u);_.v=l7.prototype;
_.v.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{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"}}}};
_.v.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19165_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19165_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19165_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19165_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.f7(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.f7(this,this.onScroll))};
_.v.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.f7(this,this.onScroll))};
_.v.onPageTypeChange=function(){this.deactivate()};
_.v.onWindowResized=function(){this.deactivate()};
_.v.onCaptionsChanged=function(O){O=!!O.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!O);this.setCaptionSize()};
_.v.setCaptionSize=function(){var O;if(this.active&&!this.captionsHaveBeenTurnedOff&&((O=this.player)==null?0:O.getCaptionWindowContainerId())){var m;(m=this.player)==null||m.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.v.currentPageAllowed=function(){return!this.isWatchPage};
_.v.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.V("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var O=this.positionData,m=O.initialTopPosition,G=O.initialHorizontalPosition;_.n7(this.hostElement,{"--ytd-video-preview-translate-left":O.finalHorizontalPosition-G+"px","--ytd-video-preview-translate-top":O.finalTopPosition-m+"px","--ytd-video-preview-original-top-position":m+
"px","--ytd-video-preview-original-horizontal-position":G+"px","--ytd-video-preview-initial-scale":"scale("+O.initialScale+")","--ytd-video-preview-width":O.videoPreviewWidth+"px","--ytd-video-preview-height":O.videoPreviewHeight+"px"});return!0};
_.v.isOutOfBounds=function(O){var m=O.initialHorizontalPosition+12;O=m+O.videoPreviewWidth>window.innerWidth;return m<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&m<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&m<72||O};
_.v.handleOpenVideoPreviewAction=function(O){var m=this,G;return _.r(function(B){if(!m.currentPageAllowed())return B.return(0);m.opts=O;return(G=m.alignVideoPreviewForAnimation(O.thumbnail))?B.return(m.activate()):B.return(0)})};
_.v.onMouseLeave=function(O){this.shouldDeactivateOnMouseLeave(O)&&this.deactivate()};
_.v.onScroll=function(){var O,m;((O=this.opts)==null?0:O.isAutoplay)&&((m=this.opts)==null?0:m.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.v.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.ln.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.v.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.v.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",l7.JSC$19164_DEFAULT_CLICK_LOCATION_BEHAVIOR,l7.JSC$19164_CLICK_LOCATION_ID_MAP)};
_.v.shouldDeactivateOnMouseLeave=function(O){O=O.relatedTarget;if(!O)return!0;var m;return(m=this.opts)!=null&&m.mediaRenderer?!_.zw(this.opts.mediaRenderer).contains(O):!0};
_.v.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.v.onPlaybackStart=function(){var O=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$19165_preventProgressSaveTimer=
_.z$(_.ln,function(){O.resetPreventProgressSaveTimer()},1E4);
var m;if((m=this.opts)==null?0:m.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.z$(_.ln,function(){O.hasMultipleVideoPreviews()?O.startPlaybackForNextVideo():O.deactivate()},this.opts.videoPreviewDurationMs);
var G;this.player.setGlobalCrop(((G=this.opts)==null?0:G.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.v.getRoundedCornersSize=function(){var O;if((O=this.opts)==null?0:O.roundedCornersSize){var m;return(m=this.opts)==null?void 0:m.roundedCornersSize}var G;if((G=this.opts)==null?0:G.enableRounding){var B;if(((B=this.opts)==null?void 0:B.thumbnailSize)==="small")return 1;var Q;if(((Q=this.opts)==null?void 0:Q.thumbnailSize)==="medium")return 2;var H;if(((H=this.opts)==null?void 0:H.thumbnailSize)==="large")return 3}return _.V("web_imp_inset_progress_bar")?3:0};
_.v.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.v.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.v.onMediaContainerClick=function(O){this.isShortcutClick(O)||(this.navigateToWatch(O),O.preventDefault(),O.stopPropagation())};
_.v.activate=function(){var O=this,m,G,B,Q,H,M,R,x,t;return _.r(function(W){switch(W.nextAddress){case 1:if(!O.currentPageAllowed())return W.return(0);G=(m=O.videoPreviewData)==null?void 0:m.inlinePlaybackEndpoint;B=_.Fw.instance;if(!G||!B)return W.return(0);O.playbackIntentTriggered=!0;((Q=O.opts)==null?0:Q.mediaRenderer)&&((H=O.opts)==null||!H.isAutoplay)&&Vay(O.opts.mediaRenderer,function(){O.deactivate()});
_.QA(O,function(){O.revealPreviewUi()});
M={};_.V("enable_unknown_lact_fix_on_html5")&&(_.KR().resolve(_.pH),M.lact=_.MT());O.videoPreviewFetchRequest=UIb(B,O.getInlinePlaybackRequestData(O.videoPreviewData),M);_.n_(W,2);return W.yield(O.videoPreviewFetchRequest,4);case 4:R=W.yieldResult;if(((x=R)==null?void 0:(t=x.playabilityStatus)==null?void 0:t.status)==="OK")return W.return(O.handlePlayerResponse(R));throw Error("$j");case 2:_.uS(W),O.deactivate();case 3:return W.return(1)}})};
_.v.getInlinePlaybackRequestData=function(O){var m,G=_.V("web_imp_player_mute_params")?((m=this.opts)==null?void 0:m.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:O.inlinePlaybackEndpoint,startPlaybackInMutedState:G}};
_.v.handlePlayerResponse=function(O){var m=this,G,B,Q,H,M,R,x,t,W,Z;return _.r(function(z){if(z.nextAddress==1){G=m.getInlinePlaybackVideoId();if(!(((B=O)==null?0:(Q=B.videoDetails)==null?0:Q.videoId)&&m.currentPageAllowed()&&m.playbackIntentTriggered&&m.opts&&G))return m.deactivate(),z.return(0);if(O.videoDetails.videoId!==G)return z.return(0);m.enableAudioControls=!!((H=O.playerConfig)==null?0:(M=H.inlinePlaybackConfig)==null?0:M.showAudioControls);O.trackingParams=m.getInlinePlaybackTrackingParams();
if(!m.inlinePlayer)return z.return(0);R={};if(t=_.b((x=m.videoPreviewData)==null?void 0:x.inlinePlaybackEndpoint,_.GC))R.watch_endpoint=t;if(m.videoPreviewData){var J,n=(J=_.b(m.videoPreviewData.inlinePlaybackEndpoint,_.GC))==null?void 0:J.startTimeSeconds;n!==void 0&&(O.playerConfig||(O.playerConfig={}),O.playerConfig.playbackStartConfig||(O.playerConfig.playbackStartConfig={}),O.playerConfig.playbackStartConfig.startPosition||(O.playerConfig.playbackStartConfig.startPosition={}),O.playerConfig.playbackStartConfig.startSeconds=
n,O.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(n*1E3))}m.inlinePlayer.loadVideoWithPlayerResponse(O,R);if(m.JSC$19165_playerPromise)return z.jumpTo(2);m.JSC$19165_playerPromise=m.inlinePlayer.getPlayerPromise();return z.yield(m.JSC$19165_playerPromise,3)}z.nextAddress!=2&&(W=z.yieldResult,W.setInlinePreview(!0),W.setSizeStyle(!1,!0),m.ytPlayerListenerBehavior.listenToPlayerEvents(W,m.JSC$19165_playerEvents),m.player=W,_.iP(m.hostElement,"player-api-ready"));((Z=m.opts)==
null?0:Z.showPlayerControls)&&m.videoPreviewData&&m.player&&(m.playerControlsData={playerResponse:O,isInlinePlayback:!0,thumbnailOverlays:m.videoPreviewData.thumbnailOverlays,playerApi:m.player},m.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!m.unroundCornersForPlayback,additionalButton:m.getAdditionalButtonType(m.videoPreviewData.thumbnailOverlays)});return z.return(2)})};
_.v.revealPreviewUi=function(){var O=this;this.playbackIntentTriggered&&_.F06(this,function(){O.hasThumbnailPositionChangedSinceTriggered()||(O.updateActiveState(!0),O.noAnimation=!1)})};
_.v.hasThumbnailPositionChangedSinceTriggered=function(){var O=this.positionData,m=this.getThumbnailPositionData();return(O==null?void 0:O.initialTopPosition)!==(m==null?void 0:m.initialTopPosition)||(O==null?void 0:O.initialHorizontalPosition)!==(m==null?void 0:m.initialHorizontalPosition)};
_.v.getThumbnailPositionData=function(){var O,m;if((m=this.opts)==null||!m.thumbnail)return null;m=this.opts.thumbnail;var G=((O=this.opts)==null?0:O.cropPlayerToFillThumbnailHorizontally)?!1:!0;var B=m.getBoundingClientRect();O=B.width;m=B.height;var Q=B.top+window.scrollY;B=B.left+window.scrollX;var H=G?Math.ceil(O):O;G=G?Math.ceil(m):m;var M=O/H;O={initialScale:M,initialTopPosition:Q-12*M,finalTopPosition:Q-12-(G-m)/2,initialHorizontalPosition:B-(12+(H-O)/2),finalHorizontalPosition:B-12-(H-O)/
2,videoPreviewWidth:H,videoPreviewHeight:G};return O};
_.v.updateActiveState=function(O){this.active=O;this.ytdReduxBehavior.dispatch(_.xs({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:O}))};
_.v.stopPlayer=function(O){O=O.resetWatchEndpointStartTime===void 0?!1:O.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(O)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.ln.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.v.deactivate=function(O){O=O===void 0?{}:O;O=O.resetWatchEndpointStartTime===void 0?!1:O.resetWatchEndpointStartTime;Pn&&(Pn.disconnect(),Pn=null);this.stopPlayer({resetWatchEndpointStartTime:O});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.v.isValidThumbnailOverlayButton=function(O,m){O=O.thumbnailOverlayButtonRenderer;var G;return!!O&&!!O.tooltip&&!((G=O.icon)==null||!G.iconType)&&m.includes(O.icon.iconType)};
_.v.isValidThumbnailOverlayButtonViewModel=function(O,m){var G;O=_.b((G=O.thumbnailOverlayButtonViewModel)==null?void 0:G.overlayButton,_.rc);return!!O&&!!O.title&&!!O.iconName&&m.includes(O.iconName)};
_.v.getAdditionalButtonType=function(O){var m=this;if(_.V("web_imp_fastforward_button"))return{button:1};if(_.V("web_imp_miniplayer_button"))return{button:2};if(_.V("web_imp_playback_speed_button"))return{button:3};var G=["BOX_STACK_3"],B=(O||[]).filter(function(H){return m.isValidThumbnailOverlayButton(H,G)}).map(function(H){return H.thumbnailOverlayButtonRenderer});
if(B.length)return{button:4,thumbnailOverlayButtonRenderers:B};var Q=["BOX_STACK_3"];O=(O||[]).filter(function(H){return m.isValidThumbnailOverlayButtonViewModel(H,Q)}).map(function(H){return _.b(H.thumbnailOverlayButtonViewModel.overlayButton,_.rc)});
if(O.length)return{button:4,thumbnailOverlayButtonViewModels:O}};
_.v.allowCaptions=function(){var O;return!((O=this.opts)==null?0:O.forceCaptionsOff)};
_.v.allowUnmuting=function(){var O;return this.enableAudioControls&&!((O=this.opts)==null?0:O.forceMutedVolume)};
_.v.beginStartTimeUpdater=function(){var O=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Zg(function(){O.updateWatchEndpointStartTime()},1E3)};
_.v.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.v.resetPreventProgressSaveTimer=function(){this.JSC$19165_preventProgressSaveTimer!==null&&(_.ln.cancelJob(this.JSC$19165_preventProgressSaveTimer),this.JSC$19165_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.v.updateWatchEndpointStartTime=function(O){var m=this.videoPreviewData;if(this.player&&m!=null&&m.inlinePlaybackEndpoint&&!this.JSC$19165_preventProgressSaveTimer){O=O?0:Math.floor(this.player.getCurrentTime());var G=_.b(m.navigationEndpoint,_.GC);G&&(G.startTimeSeconds=O);if(m=_.b(m.inlinePlaybackEndpoint,_.GC))m.startTimeSeconds=O}};
_.v.isShortcutClick=function(O){return!!O&&(O.ctrlKey||O.shiftKey||O.metaKey)};
_.v.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.v.openInMiniplayer=function(){var O=this,m,G;return _.r(function(B){if(B.nextAddress==1){G=(m=O.videoPreviewData)==null?void 0:m.navigationEndpoint;if(!G)return B.return();_.c3().lockupActivation=!0;return B.yield(_.V22(_.KR().resolve(_.c$),G),2)}_.c3().userActivation=!0;_.ju(B)})};
_.v.navigateToWatch=function(O){var m,G=(m=this.videoPreviewData)==null?void 0:m.navigationEndpoint;if(G){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(G,O,!0);else{var B;_.V("web_thumbnail_to_watch_transition")&&((B=this.opts)==null?0:B.thumbnail)&&_.Z03(_.KR().resolve(_.dF),this.opts.thumbnail);_.iP(this.hostElement,"yt-navigate",{endpoint:G})}this.deactivate()}};
_.v.getInlinePlaybackVideoId=function(){var O,m;return(m=_.b((O=this.videoPreviewData)==null?void 0:O.inlinePlaybackEndpoint,_.GC))==null?void 0:m.videoId};
_.v.getInlinePlaybackTrackingParams=function(){var O,m;return(O=this.videoPreviewData)==null?void 0:(m=O.inlinePlaybackEndpoint)==null?void 0:m.clickTrackingParams};
_.v.hasMultipleVideoPreviews=function(){var O;return!!(((O=this.opts)==null?0:O.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.v.startPlaybackForNextVideo=function(){var O;(O=this.opts)!=null&&O.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())};
_.vr.Object.defineProperties(l7.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.opts)==null?0:O.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.opts)==null||!O.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 O;if(Array.isArray((O=this.opts)==null?void 0:O.videoPreviewData)){var m;return(m=this.opts)==null?void 0:m.videoPreviewData[this.videoPreviewDataIndex]}var G;return(G=this.opts)==null?void 0:G.videoPreviewData}}});
l7.prototype.onIsAdsVideoChange=l7.prototype.onIsAdsVideoChange;l7.prototype.onInlinePreviewIsEnabledChange=l7.prototype.onInlinePreviewIsEnabledChange;l7.prototype.optsChanged=l7.prototype.optsChanged;l7.prototype.onMouseLeave=l7.prototype.onMouseLeave;l7.JSC$19164_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);l7.JSC$19164_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],l7.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",_.Vw)],l7.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],l7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],l7.prototype,"componentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],l7.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.up.YtSparklesClickLocationBehavior),_.Y("design:type",Object)],l7.prototype,"ytSparklesClickLocationBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],l7.prototype,"opts",void 0);
_.c([_.g(),_.Y("design:type",Object)],l7.prototype,"playerControlsData",void 0);_.c([_.g(),_.Y("design:type",Object)],l7.prototype,"playerControlsAppApi",void 0);_.c([_.g(),_.Y("design:type",Object)],l7.prototype,"playerControlsOptions",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],l7.prototype,"noAnimation",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],l7.prototype,"hidden",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],l7.prototype,"active",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],l7.prototype,"playing",void 0);_.c([_.g({selector:_.$2z}),_.Y("design:type",Boolean)],l7.prototype,"inlinePreviewIsEnabled",void 0);_.c([_.g(),_.Y("design:type",String)],l7.prototype,"pagePath",void 0);_.c([_.g({selector:_.HiS}),_.Y("design:type",Boolean)],l7.prototype,"isWatchPage",void 0);
_.c([_.T("videoPreviewData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l7.prototype,"thumbnailData",null);_.c([_.T("opts","active"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],l7.prototype,"hidePlayerControls",null);_.c([_.T("opts"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],l7.prototype,"isAdsVideo",null);
_.c([_.T("opts"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],l7.prototype,"roundedCornersSmall",null);_.c([_.T("opts"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],l7.prototype,"roundedCornersMedium",null);_.c([_.T("opts"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],l7.prototype,"roundedCornersLarge",null);
_.c([_.T("opts"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],l7.prototype,"unroundCornersForPlayback",null);_.c([_.T("opts","videoPreviewDataIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],l7.prototype,"videoPreviewData",null);_.c([_.g(),_.Y("design:type",Object)],l7.prototype,"videoPreviewDataIndex",void 0);_.c([_.uc("#inline-player"),_.Y("design:type",Object)],l7.prototype,"inlinePlayer",void 0);
_.c([_.hG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[MouseEvent]),_.Y("design:returntype")],l7.prototype,"onMouseLeave",null);_.c([_.Si("opts"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l7.prototype,"optsChanged",null);_.c([_.Si("inlinePreviewIsEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l7.prototype,"onInlinePreviewIsEnabledChange",null);
_.c([_.Tw("isAdsVideo"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l7.prototype,"onIsAdsVideoChange",null);_.c([_.l({is:"ytd-video-preview",disableElementRegistration:!0})],l7);
_.y(l7,"ytd-video-preview",function(){if(R83!==void 0)return R83;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return R83=O},{mode:2});
}catch(e){_._DumpException(e)}
try{
var xe5,q38,UeO;xe5=function(O){return _.V("kevlar_watch_cinematics_invisible")||O.fullscreen&&_.V("kevlar_watch_cinematics_invisible_in_fullscreen")||O.theater&&!O.fullscreen&&_.V("kevlar_watch_cinematics_invisible_in_theater")};
q38=function(){var O=document.createElement("canvas"),m=O.getContext("2d");if(!m)throw Error("Fo");_.sb(O,{position:"absolute",width:"100%",height:"100%"});return{element:O,context:m}};
UeO=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.V("kevlar_watch_cinematics_css_blur")};
_.to8=function(O,m,G){return Math.abs(O-m)<=(G||1E-6)};
_.WU8=function(O,m){return O==m?!0:O&&m?O.width==m.width&&O.height==m.height:!1};_.Z$L=new _.q$("notificationActionRenderer");var z_9=function(O){var m=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.Vg;this.element.addEventListener("load",function(){m.loaded=!0;m.resolver.resolve(m.element)});
this.element.addEventListener("error",function(){m.failed=!0});
this.element.src=O};var JmG=function(O,m){this.image=O;this.frame=m};
JmG.prototype.drawToCanvas=function(O,m){var G=this.frame.width/this.frame.columns,B=this.frame.height/this.frame.rows,Q=m.offsetX,H=m.offsetY;xe5(m)?(O.fillStyle=m.fullscreen?"#000":"#0f0f0f",O.fillRect(Q,H,(m==null?void 0:m.width)||G,(m==null?void 0:m.height)||B)):O.drawImage(this.image,this.frame.column*G,this.frame.row*B,G,B,Q,H,(m==null?void 0:m.width)||G,(m==null?void 0:m.height)||B)};
var Voa=function(O){this.color=O};
Voa.prototype.drawToCanvas=function(O,m){var G=m.offsetX,B=m.offsetY,Q=m.width,H=m.height;O.fillStyle=xe5(m)?m.fullscreen?"#000":"#0f0f0f":this.color;O.fillRect(G,B,Q,H)};var ZC=function(O,m){_.Yd.call(this);this.playerApi=m;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.hY(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();b$n(this,O);n9h(this);this.update()};
_.X(ZC,_.Yd);ZC.prototype.addEventListeners=function(){var O=this,m=function(){O.update()},G=function(Q){O.paused||(Q.type==="newdata"&&(O.mosaics.clear(),XsP(O),zl(O)),n9h(O),O.update())},B=function(){O.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",m);this.playerApi.addEventListener("onVideoDataChange",G);this.playerApi.addEventListener("onStateChange",B);this.addOnDisposeCallback(function(){O.playerApi.removeEventListener("onVideoProgress",m);O.playerApi.removeEventListener("onVideoDataChange",G);O.playerApi.removeEventListener("onStateChange",B)})};
var b$n=function(O,m){O.cinematicContainerRenderer!==m&&(O.cinematicContainerRenderer=m,XsP(O),zl(O),O.colorStoreUpdateJobId=_.ln.addLowPriorityJob(function(){var G;if((G=O.cinematicContainerRenderer.colorStore)!=null&&G.sampledColors){G=Infinity;for(var B=_.K(O.cinematicContainerRenderer.colorStore.sampledColors),Q=B.next();!Q.done;Q=B.next()){Q=Q.value;var H=Number(Q.key);H!==0&&H<G&&(G=H);H=_.AV(Q.value);O.colorStore.set(Q.key,H)}O.colorStoreTimeInterval=G}}))},XsP=function(O){O.colorStoreUpdateJobId&&
(_.ln.cancelJob(O.colorStoreUpdateJobId),O.colorStoreUpdateJobId=void 0);
O.colorStore.clear();O.currentStoryboardColor=void 0},fHc=function(O,m){var G;
return(G=O.getStoryboardFrame(m))==null?void 0:G.url};
ZC.prototype.onPlayerStateChange=function(){this.update()};
ZC.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var n9h=function(O){var m=O.getStoryboardFrame(0);m&&(m=new _.hY(m.width/m.columns,m.height/m.rows),_.WU8(O.currentStoryboardSize,m)||(O.currentStoryboardSize=m,O.publish("STORYBOARD_SIZE_CHANGED",O.currentStoryboardSize)))},h_G=function(O,m){O.currentStoryboardIndex=m;
O.pendingStoryboardIndex=NaN;m=O.getStoryboardFrame(O.currentStoryboardIndex);O.currentStoryboard=new JmG(O.mosaics.get(m.url).element,m);O.publish("STORYBOARD_CHANGED",O.currentStoryboard);O.lastUpdateTime=(0,_.$G)()};
ZC.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var zl=function(O){O.currentStoryboardIndex=NaN;O.pendingStoryboardIndex=NaN;O.currentStoryboard&&(O.currentStoryboard=void 0,O.publish("STORYBOARD_CHANGED",void 0));O.lastUpdateTime=NaN};
ZC.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)zl(this);else{var O=this.playerApi.getPlayerState(1);if(O===-1||O===5||O===0)zl(this);else if(isNaN(this.lastUpdateTime)||!((0,_.$G)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(O=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){O=""+Math.round(O*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var m=this.colorStore.get(O);m?m!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=m,this.currentStoryboard=new Voa(m),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.$G)()):(_.ay(new _.j9("Could not find color for timestamp: "+O,this.cinematicContainerRenderer)),zl(this))}else zl(this);else T8c(this,O)}};
var T8c=function(O,m){var G=O.getStoryboardFrameIndex(m);if(G!==O.currentStoryboardIndex&&G!==O.pendingStoryboardIndex){m=fHc(O,G);var B=O.mosaics.get(m);B?B.loaded&&h_G(O,G):(O.pendingStoryboardIndex=G,G=new z_9(m),O.mosaics.set(m,G),G.resolver.promise.then(function(){if(!O.isDisposed()&&!O.paused&&!isNaN(O.pendingStoryboardIndex)){var Q=fHc(O,O.pendingStoryboardIndex);if(Q){var H;(H=O.mosaics.get(Q))!=null&&H.loaded&&h_G(O,O.pendingStoryboardIndex)}else zl(O)}}))}};
ZC.prototype.getStoryboardFrameIndex=function(O){var m=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(O,m)};
ZC.prototype.getStoryboardFrame=function(O){var m=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,G,B;return((B=(G=this.playerApi).getStoryboardFrame)==null?void 0:B.call(G,O,m))||null};
ZC.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var V9=function(O,m,G,B){B=B===void 0?!1:B;_.Iw.call(this);this.cinematicContainerRenderer=m;this.playerApi=G;this.theater=this.fullscreen=!1;var Q;this.ambientLightThemeEnabled=!B&&!!(m==null?0:(Q=m.config)==null?0:Q.enableInLightTheme);this.ambientFullscreenEnabled=B&&_.V("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=B&&_.V("web_cinematic_theater_mode");this.container=document.createElement("div");O.appendChild(this.container);var H;if(_.V("web_cinematic_theater_mode")||_.V("web_cinematic_fullscreen")||
(m==null?0:(H=m.config)==null?0:H.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);g9L(this);O=this.ambientV2Container||this.container;this.backCanvas=q38();this.frontCanvas=q38();O.appendChild(this.backCanvas.element);O.appendChild(this.frontCanvas.element);this.storyboardManager=new ZC(m,this.playerApi);_.VV(this,this.storyboardManager);this.addEventListeners();uCa(this)?jjG(this,100+JU(this)*3*2,100+JU(this)*3*2):IHL(this);
ps5(this,this.storyboardManager.currentStoryboard)};
_.X(V9,_.Iw);var g9L=function(O){O.ambientV2Container?S3q(O):(_.sb(O.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+E9c(O)+", "+LU5(O)+")"}),UeO()&&_.sb(O.container,"filter","blur("+_.Rd("cinematic_watch_css_filter_blur_strength",40)+"px)"))},S3q=function(O){if(O.ambientV2Container){var m=O.playerApi.getVideoAspectRatio();
_.sb(O.container,{"aspect-ratio":""+m,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.sb(O.ambientV2Container,{"aspect-ratio":""+m,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+E9c(O)+", "+LU5(O)+")"});UeO()&&_.sb(O.ambientV2Container,"filter","blur("+_.Rd("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
V9.prototype.setFullscreen=function(O,m){this.fullscreen=O;this.theater=!!m;g9L(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),O=this.storyboardManager.currentStoryboard,C2q(this),O&&o9O(this,O)};
V9.prototype.addEventListeners=function(){var O=this,m=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(Q){ps5(O,Q)}),G=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){IHL(O)});
this.addOnDisposeCallback(function(){O.storyboardManager.unsubscribeByKey(m);O.storyboardManager.unsubscribeByKey(G)});
if(this.ambientV2Container){var B=function(){S3q(O)};
this.playerApi.addEventListener("onVideoDataChange",B);this.addOnDisposeCallback(function(){O.playerApi.removeEventListener("onVideoDataChange",B)})}};
var IHL=function(O){if(!uCa(O)){var m=O.storyboardManager.currentStoryboardSize;isNaN(m.width)||isNaN(m.height)||jjG(O,Number(m.width)+JU(O)*3*2,Number(m.height)+JU(O)*3*2)}},jjG=function(O,m,G){O.backCanvas.element.width=m;
O.backCanvas.element.height=G;O.frontCanvas.element.width=m;O.frontCanvas.element.height=G},uCa=function(O){return O.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},ps5=function(O,m,G){G=G===void 0?!1:G;
var B=O.frontCanvas.element.getAnimations()[0];B?(B.pause(),O.backCanvas.context.globalAlpha=Number(getComputedStyle(O.frontCanvas.element).opacity),O.frontCanvas.element.style.opacity="0",B.finish()):O.backCanvas.context.globalAlpha=1;O.backCanvas.context.drawImage(O.frontCanvas.element,0,0,O.backCanvas.element.width,O.backCanvas.element.height);C2q(O);m&&o9O(O,m);m=m?O.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Rd("cinematic_watch_fade_out_duration",500);B=_.Rd("cinematic_watch_transition_frame_rate")/
1E3;var Q={};B&&(Q={easing:"steps("+Math.round(m*B)+")"});(G===void 0?0:G)||O.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:m,iterations:1},Q));O.frontCanvas.element.style.opacity="1"},C2q=function(O){var m=O.ambientLightThemeEnabled||O.ambientTheaterModeEnabled,G=O.ambientLightThemeEnabled||O.ambientFullscreenEnabled;
O.frontCanvas.context.fillStyle=O.theater&&m||O.fullscreen&&G?"#000":"#0f0f0f";UeO()||(O.frontCanvas.context.filter="blur(0)");O.frontCanvas.context.fillRect(0,0,O.frontCanvas.element.width,O.frontCanvas.element.height)},o9O=function(O,m){UeO()||(O.frontCanvas.context.filter="blur("+JU(O)+"px)");
O.frontCanvas.context.globalAlpha=O.fullscreen&&O.ambientFullscreenEnabled||O.theater&&O.ambientTheaterModeEnabled?_.Rd("cinematic_watch_effect_letterbox_opacity",.4):_.Rd("cinematic_watch_effect_opacity",.4);var G={offsetX:JU(O)*3,offsetY:JU(O)*3,theater:O.theater,fullscreen:O.fullscreen};uCa(O)&&(G.width=100,G.height=100);m.drawToCanvas(O.frontCanvas.context,G);O.frontCanvas.context.globalAlpha=1},JU=function(O){var m;
return(m=O.cinematicContainerRenderer.config.blurStrength)!=null?m:5},E9c=function(O){var m,G;
if((O.fullscreen||O.theater)&&((m=O.cinematicContainerRenderer.config)==null?0:(G=m.watchFullscreenConfig)==null?0:G.colorSourceWidthMultiplier))return O.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var B;return(B=O.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?B:O.cinematicContainerRenderer.config.colorSourceSizeMultiplier},LU5=function(O){var m,G;
if((O.fullscreen||O.theater)&&((m=O.cinematicContainerRenderer.config)==null?0:(G=m.watchFullscreenConfig)==null?0:G.colorSourceHeightMultiplier))return O.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var B;return(B=O.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?B:O.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
V9.prototype.disposeInternal=function(){_.Iw.prototype.disposeInternal.call(this);this.container.remove()};
V9.prototype.clear=function(){ps5(this,void 0,!0)};
V9.prototype.pause=function(){this.storyboardManager.pause()};var lHc;lHc=_.p4(function(){var O,m,G=!((m=(O=document.createElement("canvas")).getContext)==null||!m.call(O,"2d")),B;O=!((B=CSS)==null||!B.supports("filter: blur(0)"));B=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var Q;return G&&O&&B&&!((Q=CSS)==null||!Q.supports("aspect-ratio: 1 / 1"))});
_.bI=function(O,m){_.Yd.call(this);this.container=O;this.playerApi=m;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=aHA(this);this.update()};
_.X(_.bI,_.Yd);_.kpP=function(O){var m=document.documentElement.hasAttribute("dark");O.isDarkModeEnabled=m;O.update()};
_.ymP=function(O,m){O.settingEnabled=m;O.update()};
_.bI.prototype.setFullscreen=function(O,m){this.fullscreen=O;this.theater=!!m;this.update()};
_.cmc=function(O,m){O.cinematicContainerRenderer=m;O.cinematicContainerRenderer&&(O.cinematicsVe=_.Zv(O.isShorts()?227858:159022),_.LK(_.uK(),O.cinematicsVe),O.loggingClientData={watchCinematicContainerData:{presentationStyle:O.cinematicContainerRenderer.presentationStyle}});O.update()};
_.bI.prototype.isShorts=function(){var O,m;return((O=this.cinematicContainerRenderer)==null?void 0:(m=O.config)==null?void 0:m.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.bI.prototype.isAllowed=function(){var O;if(O=lHc()){var m,G,B;O=((G=this.cinematicContainerRenderer)==null?void 0:G.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((B=this.cinematicContainerRenderer)==null||!B.colorStore)||((m=this.cinematicContainerRenderer)==null?void 0:m.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(O)if(_.V("web_cinematics_pausing")){var Q,H;O=this.isDarkModeEnabled||!!((Q=this.cinematicContainerRenderer)==
null?0:(H=Q.config)==null?0:H.enableInLightTheme)}else{var M,R;Q=!!((M=this.cinematicContainerRenderer)==null?0:(R=M.config)==null?0:R.enableInLightTheme)&&(_.kB("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);O=this.isDarkModeEnabled||Q}if(M=O){var x,t;M=!((t=(x=this.prefersReducedMotionQuery)==null?void 0:x.matches)!=null&&t)}return M};
_.Y3n=function(O){(O=O.currentCinematicEffect)!=null&&(O=O.storyboardManager,O.paused=!1,n9h(O),O.update())};
_.bI.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var aHA=function(O){if(!_.V("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var m=window.matchMedia("(prefers-reduced-motion: reduce)"),G=function(){O.update()};
m.addListener(G);O.addOnDisposeCallback(function(){m.removeListener(G)});
return m}};
_.bI.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var O=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new V9(this.container,O,this.playerApi,this.isDarkModeEnabled),_.VV(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var m=this.currentCinematicEffect;m.cinematicContainerRenderer!==
O&&(m.cinematicContainerRenderer=O,b$n(m.storyboardManager,O),g9L(m));O=_.TC();_.gr(0,194,!0);O.save();O=_.yA();this.cinematicsVe&&O&&_.Or(O,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(O=_.yA(),this.cinematicsVe&&O&&_.mf(O,[this.cinematicsVe],!1,this.loggingClientData),_.Kd(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.vr.Object.defineProperties(_.bI.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var apG;var kYO;_.kZ({_template:function(){if(kYO!==void 0)return kYO;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=
O.content,G=m.insertBefore;apG===void 0&&(apG=document.createElement("template"));var B=apG;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return kYO=O},
is:"tp-yt-iron-pages",behaviors:[_.Dm,_.Qa],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var l7o;_.a7B=function(){if(_.V("kevlar_home_skeleton")&&!l7o){var O=document.querySelector("#home-page-skeleton");O&&(_.cd("hgcr"),_.hF(O),l7o=!0)}};
l7o=!1;_.BW=new _.q$("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var zmo,VWy,bur,n_r,X9K,fC9,hmA,Tzo,ul3,jmr,STo,Lux,o_r,E_K,ICr,p9y,klu;_.ZuB=function(O,m,G){m=m===void 0?5:m;if(m!==0){var B=typeof O==="function"?O():document.querySelector(O);B?(G==null?0:G.enableSmartFocus)?_.Igp(B):B.focus():setTimeout(function(){_.ZuB(O,m-1,G)},500)}};
zmo=function(O){return String.raw.apply(String,[{raw:O}].concat(_.lS(_.eA.apply(1,arguments).map(function(m){return m instanceof Array?m.join(""):m}))))};
VWy=function(O){var m=_.eA.apply(1,arguments),G=m.length;if(!Array.isArray(O)||!Array.isArray(O.raw)||O.length!==O.raw.length||!_.L5U&&O===O.raw||!(_.L5U&&!_.Csj||_.L9(O))||G+1!==O.length)throw new TypeError("$");return new JU0(Object.freeze({strings:Object.freeze(O),args:Object.freeze(m)}))};
bur=function(O){return _.pop(_.ISO(O&16777215))<.5};
n_r=function(O,m,G){var B=G.minimumRowsOfVideosBetweenSections===void 0?1:G.minimumRowsOfVideosBetweenSections;return O<(G.minimumRowsOfVideosAtStart===void 0?2:G.minimumRowsOfVideosAtStart)||m!==null&&O-m<=B?!1:!0};
X9K=function(O,m){var G=0,B=0;O=_.K(O);for(var Q=O.next();!Q.done;Q=O.next()){var H=Q.value;if(H.richItemRenderer)H.richItemRenderer.rowIndex=B,H.richItemRenderer.colIndex=G++,G===m&&(G=0,B++);else if(H.richGroupRenderer&&H.richGroupRenderer.numColumns!==void 0)H.richGroupRenderer.rowIndex=B,H.richGroupRenderer.colIndex=G,G+=H.richGroupRenderer.numColumns,G===m&&(G=0,B++);else if(H.richSectionRenderer){var M=Q=void 0;if(H=_.b((Q=H)==null?void 0:(M=Q.richSectionRenderer)==null?void 0:M.content,_.Pe_))H.rowIndex=
B++}}};
fC9=function(O,m){var G=m.contentElement;m=m.rendererToTagNameMap;if(G&&m&&m.size!==0){for(var B=new Map,Q=_.K(G.children),H=Q.next();!H.done;H=Q.next()){H=H.value;var M=H.tagName.toLowerCase(),R=B.get(M);R||(R=[],B.set(M,R));R.push(H)}if(B.size!==0)for(Q=Math.min(O.length,G.children.length),H=new Map,M=0;M<Q;M++){R=Object.keys(O[M])[0];R=m.get(R);if(!R)break;var x=H.get(R);x===void 0&&(x=0,H.set(R,x));var t=B.get(R);if(!t||x>=t.length)break;H.set(R,x+1);R=t[x];x=G.children[M];x!==R&&(_.iE=!0,_.xg.set(R,
!0),G.insertBefore(R,x),_.xg.delete(R),_.iE=!1)}}};
hmA=function(O,m,G,B,Q,H,M){B=B===void 0?{}:B;if(!O||!O.length)return{orderedContent:[]};O=O.slice();var R=[],x=[];Q=null;for(var t=0,W=function(P){x.sort(function(D,OS){return OS.skippedOnRow-D.skippedOnRow});
for(var w,d=(w=x.shift())==null?void 0:w.content;d;)!d.richSectionRenderer&&P||R.push(d),w=void 0,d=(w=x.shift())==null?void 0:w.content},Z=void 0,z=void 0,J=new Set;O.length>0||x.length>0;){for(var n=[],I=m;I>0;){var S=void 0,L=void 0,C=(L=x[0]&&x[0].skippedOnRow<t?(S=x.shift())==null?void 0:S.content:void 0)!=null?L:O.shift();
if(!C)break;if(C.richItemRenderer)S=C.richItemRenderer.targetId,L=void 0,S&&((L=M)==null?0:L.has(S))&&(L=M.get(S),!Z||L&&L.timestamp>Z.timestamp)&&(Z=L,z&&J.add(z),z=S),n.push(C),I--;else if(C.richGroupRenderer&&C.richGroupRenderer.numColumns!==void 0)C.richGroupRenderer.numColumns<=I?(n.push(C),I-=C.richGroupRenderer.numColumns):I===m&&C.richGroupRenderer.numColumns>m?(n.push({richGroupRenderer:Object.assign({},C.richGroupRenderer,{numColumns:m})}),I=0):x.push({content:C,skippedOnRow:t});else if(C.richSectionRenderer)if(n_r(t,
Q,B)&&I===m){R.push(C);Q=t;t++;continue}else x.push({content:C,skippedOnRow:t});else if(C.continuationItemRenderer){W(!0);R.push(C);I=0;break}if(I===0)R.push.apply(R,_.lS(n));else if(!G&&O.length===0){W(!1);R.push.apply(R,_.lS(n));I=0;break}}t++;Z&&(R.push(Z.content),t++);z=Z=void 0}X9K(R,m);H&&fC9(R,H);return{orderedContent:R,pinnedContentNotShownTargetIds:J}};
Tzo=function(){return _.eA.apply(0,arguments).flat().filter(function(O){return O}).join(";")};
ul3=function(){return VWy(g_r,Tzo.apply(null,_.lS(_.eA.apply(0,arguments))))};
jmr=function(O){switch(O){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
STo=function(O,m){if(m){var G=_.Kf().getState().entities.flowStateEntity,B=ICr(O),Q=[m];B&&B!==m&&Q.push(B);var H=!0,M;if(G&&O.flowStateEntityKey&&((M=G[O.flowStateEntityKey])==null?void 0:M.primaryButtonDisabled)!==void 0){var R;H=!((R=G[O.flowStateEntityKey])==null||!R.primaryButtonDisabled)}p9y(O,B!=null?B:m,Q,H)}};
Lux=function(O){return _.dc(_.Kf(),function(m){return m.entities.flowStateEntity},function(m,G){if(O.flowStateEntityKey){var B,Q=m==null?void 0:(B=m[O.flowStateEntityKey])==null?void 0:B.currentStepId,H;
G=G==null?void 0:(H=G[O.flowStateEntityKey])==null?void 0:H.currentStepId;H=_.Kf().getState().talkToRecs;if(Q&&Q!==G){var M;m=(m==null?void 0:(M=m[O.flowStateEntityKey])==null?void 0:M.stepIdStack)||Object.keys(H.stepStates);M=!E_K(H==null?void 0:H.stepStates[Q]);p9y(O,Q,m,M)}}})};
o_r=function(O){return _.dc(_.Kf(),CIb,function(m){var G=ICr(O);if(G){var B=Object.keys(m.stepStates);m=!E_K(m==null?void 0:m.stepStates[G]);p9y(O,G,B,m)}})};
E_K=function(O){var m=Object.keys((O==null?void 0:O.selectionStates)||{}).reduce(function(H,M){return H||(O==null?void 0:O.selectionStates[M].isSelected)},!1),G,B,Q=!!(O==null?0:(G=O.userQuery)==null?0:(B=G.userQuery)==null?0:B.trim());
return m||Q};
ICr=function(O){if(O.flowStateEntityKey){var m,G,B=(m=_.Kf().getState().entities.flowStateEntity)==null?void 0:(G=m[O.flowStateEntityKey])==null?void 0:G.currentStepId;if(B)return B}};
p9y=function(O,m,G,B){_.Kf().dispatch(_.jh("flowStateEntity",O.flowStateEntityKey,{currentStepId:m,stepIdStack:G,key:O.flowStateEntityKey,primaryButtonDisabled:B}))};
_.lCK=function(O,m){return _.Vh(O.entities,"youchatPendingResponseEntity",m)};
_.aCr=function(O){return function(m){_.$n(_.jh("youchatPendingResponseEntity",O,{entityKey:O,isPendingResponse:m}))}};
klu=function(O){O==null||O.addEventListener("DOMLoaded",function(){O.goToAndPlay(O.totalFrames-48,!0)})};
_.vx=function(O){this.__isSoyCss=!0;this.css=zmo.apply(null,[O.strings].concat(_.lS(O.args)))};
_.vx.prototype.toString=function(){return this.css};
var JU0=function(){_.vx.apply(this,arguments)};
_.X(JU0,_.vx);var g_r=_.FY(["",""]);var yUu;var cUu;_.kZ({_template:function(){if(cUu!==void 0)return cUu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
var m=O.content,G=m.insertBefore;yUu===void 0&&(yUu=document.createElement("template"));var B=yUu;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return cUu=O},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var YTK=new _.q$("flowRootRenderer");var dtx=new _.q$("chipsShelfViewModel");var w9r=new _.q$("responsiveContainerConfiguration");_.emA=new _.q$("engagementPanelSectionListRenderer");var Dt3=function(){this.horizontal=!1},smy=function(O,m){O.horizontal=m};
Dt3.prototype.position=function(O,m,G,B){B=B===void 0?1:B;O=this.delta(O)*B+m;B=Math.max(m,G);return O>=Math.min(m,G)&&O<=B?O:G};
Dt3.prototype.axis=function(O){O=this.direction(O);return O==="up"||O==="down"?"Y":"X"};var lB=function(O,m,G){m=m===void 0?_.F5():m;this.target=O;this.manager=m;this.touchAction=G;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
lB.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(_.lS(this.events)));for(var O=_.K(this.events),m=O.next();!m.done;m=O.next())this.listen(m.value)}};
lB.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.lS(this.events)));for(var O=_.K(this.events),m=O.next();!m.done;m=O.next())this.unlisten(m.value)}};
lB.prototype.listen=function(O){this.eventMap[O]&&this.target.addEventListener(O,this.eventMap[O])};
lB.prototype.unlisten=function(O){this.eventMap[O]&&this.target.removeEventListener(O,this.eventMap[O])};var aP=function(){Dt3.apply(this,arguments)};
_.X(aP,Dt3);aP.prototype.direction=function(O){var m=O.detail;O=m.deltaY;m=m.deltaX;return O&&!this.horizontal?O>0?"down":"up":m&&this.horizontal?m>0?"right":"left":"none"};
aP.prototype.distance=function(O){return Math.abs(this.delta(O))};
aP.prototype.delta=function(O){var m=this.direction(O),G=O.detail;O=G.deltaX;G=G.deltaY;return m==="up"||m==="down"?G||0:O||0};
aP.prototype.velocity=function(O){var m=this.direction(O),G=O.detail;O=G.velocityX;G=G.velocityY;return Math.abs(m==="up"||m==="down"?G||0:O||0)};_.k8=function(O,m,G,B,Q,H){Q=Q===void 0?new aP:Q;H=H===void 0?_.F5():H;lB.call(this,m,H,B);var M=this;this.element=O;this.target=m;this.config=G;this.input=Q;this.manager=H;this.events=["panstart","panmove","panend"];this.onPanStart=function(){M.config.draggingClass&&M.element.classList.add(M.config.draggingClass);M.config.startAction&&M.config.startAction()};
this.onPanMove=function(R){var x=Nzo(M,R);if(x){M.move(R,x);x.fade&&M.fade(R,x);var t=M.input.direction(R);x.moveAction&&x.moveAction(PI3(M,R,x),t)}};
this.onPanEnd=function(R){var x,t,W,Z,z,J;return _.r(function(n){if(n.nextAddress==1){M.animationRequestId&&cancelAnimationFrame(M.animationRequestId);M.animationRequestId=void 0;x=Nzo(M,R);if(!x)return n.return();t=x;W=t.triggerAction;Z=t.fade;z=t.disableFinish;J=t.translateBack;var I=M.input.velocity(R),S=M.input.distance(R),L=M.threshold(x);return I>.3&&S>10||S>L?z?n.jumpTo(6):Z?n.yield(Fu0(M,R),6):n.yield(AUh(M,R,x),6):J?n.yield(M.translateBack(R),3):n.jumpTo(3)}n.nextAddress!=3&&W&&W();M.config.draggingClass&&
M.element.classList.remove(M.config.draggingClass);M.reset();_.ju(n)})};
O=Object.keys(G.triggers);this.directions=new Set(O);smy(this.input,this.directions.has("right")||this.directions.has("left"))};
_.X(_.k8,lB);_.k8.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var Nzo=function(O,m){m=O.input.direction(m);return O.config.triggers[m]};
_.k8.prototype.move=function(O,m){var G=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var B=G.input.axis(O),Q=G.input.position(O,G.config.startPosition,m.endPosition,m.moveRatio||1);G.element.style.transform="translate"+B+"("+Q+"px)";G.animationRequestId=void 0}))};
var PI3=function(O,m,G){var B=G.moveRatio||1;G=Math.abs(O.config.startPosition-G.endPosition);return Math.min(O.input.distance(m)*B,G)/G};
_.k8.prototype.fade=function(O,m){var G=m.endOpacity;O=PI3(this,O,m);O>0&&(this.element.style.opacity=""+(((G||0)-1)*O+1))};
_.k8.prototype.threshold=function(O){return O.threshold?O.threshold:Math.abs(O.endPosition-this.config.startPosition)/3};
var AUh=function(O,m,G){var B,Q,H,M,R,x,t;return _.r(function(W){if(W.nextAddress==1)return B=O.input.delta(m)+O.config.startPosition,Q=O.input.axis(m),H=G,M=H.endPosition,R=H.transitionEndPosition,t=(x=R)!=null?x:M,W.yield(O.element.animate([{transform:"translate"+Q+"("+B+"px)"},{transform:"translate"+Q+"("+t+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);O.element.style.transform="translate"+Q+"("+t+"px)";_.ju(W)})};
_.k8.prototype.translateBack=function(O){var m=this,G,B;return _.r(function(Q){if(Q.nextAddress==1){if(!m.element.style.transform)return Q.return();G=m.input.axis(O);B=m.config.startPosition;return Q.yield(m.element.animate([{transform:m.element.style.transform},{transform:"translate"+G+"("+B+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}m.element.style.transform="translate"+G+"("+B+"px)";_.ju(Q)})};
var Fu0=function(O,m){var G,B,Q,H;return _.r(function(M){if(M.nextAddress==1)return G=O.input.delta(m)+O.config.startPosition,B=O.input.axis(m),Q=G+70,H=O.element.style.opacity===""?1:O.element.style.opacity,M.yield(O.element.animate([{transform:"translate"+B+"("+G+"px)",opacity:H},{transform:"translate"+B+"("+Q+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);O.element.style.transform="translate"+B+"("+Q+"px)";O.element.style.opacity="0";_.ju(M)})};var yF=function(){var O=_.Iu.apply(this,arguments)||this;O._noAccessors=!0;O.scrollRate=3;O.autoScrollAnimationStart=0;O.autoScrollPaused=!1;O.autoScrollRafId=0;return O};
_.X(yF,_.Iu);_.v=yF.prototype;_.v.created=function(){var O=this;this.boundAutoScrollHandler=function(m){O.autoScroll(m)}};
_.v.detached=function(){this.hostElement.removeEventListener("mouseout",_.f7(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.f7(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.f7(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.v.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.f7(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.f7(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.f7(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.f7(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.f7(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.f7(this,this.endAutoScroll)),this.endAutoScroll())};
_.v.autoScroll=function(O){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=O);var m;if(m=!this.autoScrollPaused&&this.scrollTarget)m=this.scrollTarget,m=m.scrollHeight-m.scrollTop!==m.clientHeight;m&&(m=1E3/this.scrollRate,O-=this.autoScrollAnimationStart,O>m&&(this.scrollTarget.scrollTop+=Math.ceil(O/m),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.v.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.v.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
yF.prototype.autoScrollEnabledChanged=yF.prototype.autoScrollEnabledChanged;_.c([_.g(),_.Y("design:type",Object)],yF.prototype,"scrollRate",void 0);_.c([_.g(),_.Y("design:type",Object)],yF.prototype,"scrollTarget",void 0);_.c([_.g(),_.Y("design:type",Boolean)],yF.prototype,"autoScrollEnabled",void 0);_.c([_.Tw("autoScrollEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yF.prototype,"autoScrollEnabledChanged",null);_.c([_.p7()],yF);_.Ol0=[yF.prototype];var m69;var cQ=function(){var O=_.u.apply(this,arguments)||this;O.buttonUpdate=_.V("web_button_rework");O.dismissButtonOverrides=_.V("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;O.forceDarkTheme=!1;O.forceLightTheme=!1;O.dynamicTextHeight=94;O.hasOverflowButton=!1;O.isInfeedModernization=!1;return O};
_.X(cQ,_.u);_.v=cQ.prototype;_.v.computeUrlImg=function(O){if(O)return _.tH(O.thumbnails)};
_.v.getLogoHeight=function(O){return this.logoWithPadding(O)?"31":"24"};
_.v.getLogoClassName=function(O){return this.logoWithPadding(O)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.v.logoWithPadding=function(O){var m,G;return(O=(m=O.thumbnails)==null?void 0:(G=m[0])==null?void 0:G.height)&&O%31===0?!0:!1};
_.v.sendImpressionEndpoints=function(O){O.impressionEndpoints&&_.tK(this.hostElement,O.impressionEndpoints)};
_.v.observeBasicPalette=function(){var O,m,G=(O=this.data)==null?void 0:(m=O.colorData)==null?void 0:m.basicColorPaletteData;G?_.CH(this.hostElement,G):_.CH(this.hostElement,{})};
_.v.observeDataChanged=function(){var O;this.dynamicTextHeight=((O=this.data)==null?0:O.supplementalText)?74:94;var m;this.hasSupplementalText=!((m=this.data)==null||!m.supplementalText);if(_.V("web_button_rework")){var G,B,Q,H;O=(G=this.data)==null?void 0:(B=G.actionButton)==null?void 0:(Q=B.buttonRenderer)==null?void 0:(H=Q.colorData)==null?void 0:H.basicColorPaletteData;var M,R,x;if(!((M=this.data)==null?0:(R=M.actionButton)==null?0:(x=R.buttonRenderer)==null?0:x.style)&&O){this.computeIsInfeedModernization(this.data)||
(O.borderColor=O.foregroundTitleColor);var t,W;this.set("data.actionButton.buttonRenderer",_.aM.unsafeClone((t=this.data)==null?void 0:(W=t.actionButton)==null?void 0:W.buttonRenderer))}}};
_.v.observeDataForCounterfactual=function(){if(_.V("kevlar_banner_cf_extra_logging")){var O;((O=this.data)==null?0:O.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.v.computeSupplementalStyle=function(){var O;if((O=this.data)!=null&&O.supplementalText){var m,G,B;if((m=this.data)==null?0:(G=m.colorData)==null?0:(B=G.basicColorPaletteData)==null?0:B.foregroundActivatedColor)return O=_.Fs(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+O+"; --yt-endpoint-hover-color:"+O+"; --yt-endpoint-visited-color:"+O+"; --yt-formatted-string-bold-font-weight:700;"}};
_.v.computeForcedDarkTheme=function(){var O,m,G,B=(O=this.data)==null?void 0:(m=O.actionButton)==null?void 0:(G=m.buttonRenderer)==null?void 0:G.style,Q,H,M;O=bur(((Q=this.data)==null?void 0:(H=Q.colorData)==null?void 0:(M=H.basicColorPaletteData)==null?void 0:M.backgroundColor)||0);return B&&O};
_.v.computeForcedLightTheme=function(){var O,m,G,B=(O=this.data)==null?void 0:(m=O.actionButton)==null?void 0:(G=m.buttonRenderer)==null?void 0:G.style,Q,H,M;O=!bur(((Q=this.data)==null?void 0:(H=Q.colorData)==null?void 0:(M=H.basicColorPaletteData)==null?void 0:M.backgroundColor)||0);return B&&O};
_.v.computeHasOverflowButton=function(O){return!!O.overflowButton};
_.v.computeHasTitle=function(O){return!!O.title};
_.v.computeTitleMaxFontSize=function(O){return this.computeHasOverflowButton(O)?28:64};
_.v.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.v.computeIsInfeedModernization=function(){var O,m,G,B,Q=(O=this.data)==null?void 0:(m=O.actionButton)==null?void 0:(G=m.buttonRenderer)==null?void 0:(B=G.colorData)==null?void 0:B.basicColorPaletteData;return(Q==null?void 0:Q.backgroundColor)===452984831||(Q==null?void 0:Q.backgroundColor)===218103808};
cQ.prototype.observeDataForCounterfactual=cQ.prototype.observeDataForCounterfactual;cQ.prototype.observeDataChanged=cQ.prototype.observeDataChanged;cQ.prototype.observeBasicPalette=cQ.prototype.observeBasicPalette;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],cQ.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],cQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],cQ.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],cQ.prototype,"buttonUpdate",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],cQ.prototype,"hasSupplementalText",void 0);_.c([_.g(),_.Y("design:type",Object)],cQ.prototype,"dismissButtonOverrides",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.Y("design:type",Boolean)],cQ.prototype,"hasTitle",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.Y("design:type",Object)],cQ.prototype,"forceDarkTheme",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.Y("design:type",Object)],cQ.prototype,"forceLightTheme",void 0);_.c([_.g(),_.Y("design:type",Object)],cQ.prototype,"dynamicTextHeight",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Y("design:type",Object)],cQ.prototype,"hasOverflowButton",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.Y("design:type",Object)],cQ.prototype,"isInfeedModernization",void 0);_.c([_.Tw("data.colorData.basicColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cQ.prototype,"observeBasicPalette",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cQ.prototype,"observeDataChanged",null);_.c([_.Tw("data.isVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cQ.prototype,"observeDataForCounterfactual",null);_.c([_.l({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],cQ);
_.y(cQ,"ytd-banner-promo-renderer",function(){if(m69!==void 0)return m69;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return m69=O},{mode:1});var Geh;var BpB;var QLs;var Hl3=function(){return _.u.apply(this,arguments)||this};
_.X(Hl3,_.u);_.c([_.g(),_.Y("design:type",Object)],Hl3.prototype,"data",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Hl3.prototype,"ytRendererBehavior",void 0);_.c([_.l({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Hl3);
_.y(Hl3,"ytd-hashtag-grid-tile-renderer",function(){if(QLs!==void 0)return QLs;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return QLs=O},{mode:1});var Y8=function(){return _.u.apply(this,arguments)||this};
_.X(Y8,_.u);Y8.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Y8.prototype.updateRichGridTrendingHashtagsVisibility=function(){var O,m;if(((O=this.data)==null||!O.isExpanded)&&(m=this.data)!=null&&m.tiles){O=this.data.tiles.length;m=O>this.richGridItemsPerRow?this.richGridItemsPerRow+1:O;var G=Math.ceil(O/m);this.fullyVisibleRows=O%m===1&&G===2?1:Math.min(G,2);this.isShowMoreVisible=this.fullyVisibleRows<G}};
Y8.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Y8.prototype.updateRichGridTrendingHashtagsVisibility=Y8.prototype.updateRichGridTrendingHashtagsVisibility;_.c([_.g(),_.Y("design:type",Object)],Y8.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Number)],Y8.prototype,"fullyVisibleRows",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Y8.prototype,"isShowMoreVisible",void 0);_.c([_.g({selector:_.cq,value:0}),_.Y("design:type",Number)],Y8.prototype,"richGridItemsPerRow",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],Y8.prototype,"ytdReduxBehavior",void 0);_.c([_.Tw("data","richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Y8.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.c([_.l({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Y8);
_.y(Y8,"ytd-hashtag-grid-shelf-renderer",function(){if(BpB!==void 0)return BpB;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return BpB=O},{mode:1});var vYr;var Khh;var dZ=function(){var O=_.u.apply(this,arguments)||this;O.visibleVideos=[];O.hiddenVideos=[];O.modern=_.V("web_modern_buttons");O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.X(dZ,_.u);_.v=dZ.prototype;_.v.attached=function(){var O=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",O);this.onDarkModeToggledAction(O)};
_.v.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"}}}};
_.v.dataChanged=function(){var O=this;this.requestElementsPerRow();var m,G;this.currentColorPalette=this.isDarkTheme?(m=this.data)==null?void 0:m.darkColorData:(G=this.data)==null?void 0:G.lightColorData;var B;if((B=this.currentColorPalette)==null?0:B.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.QA(this,function(){O.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.v.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.v.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.v.computeIsFirstFeedItem=function(O){return O};
_.v.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&this.set("isDarkTheme",O);this.data&&(this.currentColorPalette=O?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.v.getCurrentLogo=function(O,m){if(O)return m?O.darkLogoImage:O.lightLogoImage};
_.v.computeTitleStyle=function(O){var m;if((m=this.data)!=null&&m.title&&O&&O.textPrimary!==void 0)return"color:"+_.Fs(O.textPrimary)+";"};
_.v.computeSubtitleStyle=function(O){var m;if((m=this.data)!=null&&m.subtitle&&O&&O.textSecondary!==void 0)return"color:"+_.Fs(O.textSecondary)+";"};
_.v.computeDismissIconStyle=function(O){if(this.data&&this.data.dismissButton&&O&&O.textPrimary!==void 0)return"--yt-button-color:"+_.Fs(O.textPrimary)+";"};
_.v.computeOverflowButtonStyle=function(O){if(this.data&&this.data.overflowButton&&O&&O.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Fs(O.textPrimary)+";--yt-spec-icon-active-other:"+_.Fs(O.textPrimary)+";"};
_.v.computeBackgroundStyle=function(O){if(O&&this.data){var m="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var G=_.tH((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);G&&(m+='background-image:url("'+G+'");')}O.backgroundColor!==void 0&&(m+="background-color:"+_.AV(O.backgroundColor)+";");return m}};
_.v.computeButton=function(){var O,m=Object.assign({},_.b((O=this.data)==null?void 0:O.showMoreButton,_.v3));if(this.modern&&m){m.style="STYLE_MONO_OUTLINE";var G;if(O=(G=this.currentColorPalette)==null?void 0:G.textPrimary)m.colorData={basicColorPaletteData:{foregroundTitleColor:O,borderColor:O}}}return m};
_.v.shouldShowBottomButton=function(O,m){return!(O==null?0:O.header)&&!(O==null||!O.primaryButton)&&m<3};
_.v.checkExpanded=function(O){this.isExpanded=O&&O.content?this.hiddenVideos.length===0:!0};
_.v.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.v.getLogoHeight=function(O){return this.logoWithPadding(O)?"26":"20"};
_.v.getLogoImageId=function(O){return this.logoWithPadding(O)?"logo-image-with-padding":"logo-image"};
_.v.computeHasSectionHeader=function(O){return!!O.header};
_.v.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var O;if((O=this.data.primaryButton)==null?0:O.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 m;((m=this.data.dismissButton)==null?0:m.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var G,B;((G=this.data)==null?0:(B=G.primaryButton)==null?0:B.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.v.setVisibleVideos=function(O){if(this.data&&this.data.content)if(this.data.content.length){var m=this.data.content.length;this.data.header?O?(this.visibleVideos=this.data.content.slice(0,Math.min(m,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(m,this.slimItemsPerRow),m)):(this.visibleVideos=this.data.content.slice(0,Math.min(m,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(m,this.elementsPerRow),m)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(m,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(m,this.elementsPerRow),m)):(this.visibleVideos=this.data.content.slice(0,Math.min(m,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(m,this.elementsPerRow-1),m))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.v.setHasMovieRenderer=function(){var O;if((O=this.data)!=null&&O.content){var m;this.hasMovieRenderer=!!_.b((m=this.data)==null?void 0:m.content[0],_.mc8)}else this.hasMovieRenderer=!1};
_.v.requestElementsPerRow=function(){_.iP(this.hostElement,"yt-request-elements-per-row")};
_.v.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var O=_.K(this.hiddenMediaRenderers),m=O.next();!m.done;m=O.next())m.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(O=_.ZO(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&O.focus()}};
_.v.updateTitleSpec=function(){var O;(O=this.data)!=null&&O.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.v.logoWithPadding=function(O){var m,G,B;return(O=(m=this.getCurrentLogo(O,this.isDarkTheme))==null?void 0:(G=m.thumbnails)==null?void 0:(B=G[0])==null?void 0:B.height)&&O%31===0?!0:!1};
_.v.onUpdateElementsPerRowAction=function(O,m,G){O&&this.elementsPerRow!==O&&(this.elementsPerRow=O);G&&this.slimItemsPerRow!==G&&(this.slimItemsPerRow=G)};
dZ.prototype.slimItemsPerRowChanged=dZ.prototype.slimItemsPerRowChanged;dZ.prototype.elementsPerRowChanged=dZ.prototype.elementsPerRowChanged;dZ.prototype.dataChanged=dZ.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],dZ.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],dZ.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],dZ.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],dZ.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],dZ.prototype,"currentColorPalette",void 0);_.c([_.g(),_.Y("design:type",Array)],dZ.prototype,"visibleVideos",void 0);_.c([_.g(),_.Y("design:type",Array)],dZ.prototype,"hiddenVideos",void 0);
_.c([_.g(),_.Y("design:type",Object)],dZ.prototype,"primaryButton",void 0);_.c([_.g({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],dZ.prototype,"elementsPerRow",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],dZ.prototype,"isDarkTheme",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],dZ.prototype,"isExpanded",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],dZ.prototype,"largeTitle",void 0);
_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],dZ.prototype,"hasMovieRenderer",void 0);_.c([_.g(),_.Y("design:type",Number)],dZ.prototype,"slimItemsPerRow",void 0);_.c([_.g(),_.Y("design:type",Boolean)],dZ.prototype,"showLightVideoMetadata",void 0);_.c([_.g(),_.Y("design:type",Boolean)],dZ.prototype,"showDarkVideoMetadata",void 0);_.c([_.g(),_.Y("design:type",Number)],dZ.prototype,"videoMetadataColor",void 0);
_.c([_.g({reflectToAttribute:!0,selector:_.yh}),_.Y("design:type",Boolean)],dZ.prototype,"miniMode",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Y("design:type",Boolean)],dZ.prototype,"isFirstFeedItem",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.Y("design:type",Boolean)],dZ.prototype,"hasSectionHeader",void 0);
_.c([_.g({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],dZ.prototype,"roundedContainer",void 0);_.c([_.ji("#visible-video-container ytd-rich-grid-media"),_.Y("design:type",Array)],dZ.prototype,"visibleMediaRenderers",void 0);_.c([_.ji("#hidden-video-container ytd-rich-grid-media"),_.Y("design:type",Array)],dZ.prototype,"hiddenMediaRenderers",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],dZ.prototype,"modern",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dZ.prototype,"dataChanged",null);_.c([_.Tw("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dZ.prototype,"elementsPerRowChanged",null);_.c([_.Tw("slimItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dZ.prototype,"slimItemsPerRowChanged",null);
_.c([_.l({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],dZ);
_.y(dZ,"ytd-brand-video-shelf-renderer",function(){if(Khh!==void 0)return Khh;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Khh=O},{mode:1});var $6r;var wZ=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.X(wZ,_.u);_.v=wZ.prototype;_.v.attached=function(){var O=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",O);this.onDarkModeToggledAction(O)};
_.v.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"}}}};
_.v.dataChanged=function(){this.requestElementsPerRow();var O,m;this.currentColorPalette=this.isDarkTheme?(O=this.data)==null?void 0:O.darkColorData:(m=this.data)==null?void 0:m.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.v.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.v.computeIsFirstFeedItem=function(O){return O};
_.v.onDarkModeToggledAction=function(O){O!==this.isDarkTheme&&this.set("isDarkTheme",O);this.data&&(this.currentColorPalette=O?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(O),this.updateButtonPalette())};
_.v.shouldShowThumbnailInMetadata=function(O){return O<=1};
_.v.computeVideoMetadataColor=function(){if(this.data){var O;if((O=this.currentColorPalette)==null?0:O.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.v.computeTitleStyle=function(O){var m;if((m=this.data)!=null&&m.title&&O&&O.textPrimary!==void 0)return"color:"+_.Fs(O.textPrimary)+";"};
_.v.computeSubtitleStyle=function(O){var m;if((m=this.data)!=null&&m.subtitle&&O&&O.textSecondary!==void 0)return"color:"+_.Fs(O.textSecondary)+";"};
_.v.computeOverflowButtonStyle=function(O){if(this.data&&this.data.overflowButton&&O.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Fs(O.textPrimary)+";--yt-spec-icon-active-other:"+_.Fs(O.textPrimary)+";"};
_.v.computeBackgroundStyle=function(O){if(O&&this.data){var m="";O.backgroundColor!==void 0&&(m+="background-color:"+_.AV(O.backgroundColor)+";");return m}};
_.v.computeHasOverflowButton=function(O){return!!O.overflowButton};
_.v.updateButtonPalette=function(){if(this.data){var O;if((O=this.data.primaryButton)==null?0:O.buttonRenderer){var m;if((m=this.currentColorPalette)==null?0:m.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var G;((G=this.currentColorPalette)==null?0:G.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)})}}};
_.v.requestElementsPerRow=function(){_.iP(this.hostElement,"yt-request-elements-per-row")};
_.v.updateTitleSpec=function(){var O;(O=this.data)!=null&&O.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")};
_.v.onUpdateElementsPerRowAction=function(O){O&&this.elementsPerRow!==O&&(this.elementsPerRow=O)};
wZ.prototype.elementsPerRowChanged=wZ.prototype.elementsPerRowChanged;wZ.prototype.dataChanged=wZ.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],wZ.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],wZ.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],wZ.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],wZ.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],wZ.prototype,"currentColorPalette",void 0);_.c([_.g(),_.Y("design:type",Object)],wZ.prototype,"primaryButton",void 0);
_.c([_.g({reflectToAttribute:!0,value:3}),_.Y("design:type",Number)],wZ.prototype,"elementsPerRow",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],wZ.prototype,"isDarkTheme",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],wZ.prototype,"titleSize",void 0);_.c([_.g(),_.Y("design:type",Number)],wZ.prototype,"videoMetadataColor",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.yh}),_.Y("design:type",Boolean)],wZ.prototype,"miniMode",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.Y("design:type",Boolean)],wZ.prototype,"isFirstFeedItem",void 0);_.c([_.g({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],wZ.prototype,"roundedContainer",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.Y("design:type",Boolean)],wZ.prototype,"hasOverflowButton",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wZ.prototype,"dataChanged",null);_.c([_.Tw("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wZ.prototype,"elementsPerRowChanged",null);_.c([_.l({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],wZ);
_.y(wZ,"ytd-brand-video-singleton-renderer",function(){if($6r!==void 0)return $6r;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return $6r=O},{mode:_.ZB("kevlar_poly_si_batch_j070")?1:2});var MMo;var rAu=_.a(function(O){var m=O.data;return _.q(_.KH,{data:function(){return m().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(m().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var G=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":G=88;break a;default:G=88}return G},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return m().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"hk"),ils=_.a(function(O){var m=O.metadataRow;
var G=O.delimiter;return _.q(_.gi,{each:function(){return m().textParts||[]},
keyBy:"INDEX"},function(B,Q){return _.q(_.Mr,null,_.q(_.Jg,{text:B,noWrap:!0,userInput:!0}),_.q(Rys,{delimiter:G,max:function(){return m().textParts.length},
index:Q}))})},"ik"),Rys=_.a(function(O){var m=O.delimiter;
var G=O.max;var B=O.index;return _.q(_.U,{cond:function(){return(m==null?void 0:m())&&G()-1>B()},
then:function(){return _.q("span",null,m)}})},"jk"),x69=_.a(function(O){var m=O.data;
O={};return _.q("yt-profile-page-header-information-view-model",{class:_.bE("profilePageHeaderInformationViewModelHost",(O.profilePageHeaderInformationViewModelMobile=!1,O))},_.q(_.U,{cond:function(){return m().onTap},
then:function(){return _.q(_.p3,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.eg(m().onTap)}},_.q(_.u5,{data:function(){return m().thumbnail}},{profilePageHeaderThumbnailViewModel:rAu}))},
else:function(){return _.q("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.q(_.u5,{data:function(){return m().thumbnail}},{profilePageHeaderThumbnailViewModel:rAu}))}}),_.q("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.q(_.U,{cond:function(){return m().onTap},
then:function(){return _.q(_.u5,{data:function(){return m().title}},{profilePageHeaderTitleViewModel:function(G){var B=G.data;
return _.q(_.p3,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.eg(B().onTap)}},_.q(_.Jg,{text:function(){return B().title}}))}})},
else:function(){return _.q(_.u5,{data:function(){return m().title}},{profilePageHeaderTitleViewModel:function(G){var B=G.data;
return _.q(_.Jg,{text:function(){return B().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.q(_.u5,{data:function(){return m().metadata}},{profilePageHeaderMetadataViewModel:function(G){var B=G.data;
return _.q(_.U,{cond:function(){return B().metadataRows},
then:function(Q){return _.q("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.q(_.gi,{each:Q,keyBy:"INDEX"},function(H,M){return _.q(_.Mr,null,_.q(ils,{metadataRow:H,delimiter:" \u2022 "}),_.q(Rys,{delimiter:" \u2022 ",max:function(){return Q().length},
index:M}))}))}})}})))},"kk");
x69.idomCompat=!0;_.qi(x69,"yt-profile-page-header-information-view-model",{props:{data:_.VZ}});var e3=function(){return _.u.apply(this,arguments)||this};
_.X(e3,_.u);e3.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],e3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],e3.prototype,"data",void 0);_.c([_.l({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],e3);
_.y(e3,"ytd-effect-pivot-header-view-model",function(){if(MMo!==void 0)return MMo;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return MMo=
O},{mode:1});var qwB;var Dz=function(){return _.u.apply(this,arguments)||this};
_.X(Dz,_.u);Dz.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Dz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Dz.prototype,"data",void 0);_.c([_.l({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Dz);
_.y(Dz,"ytd-source-pivot-header-renderer",function(){if(qwB!==void 0)return qwB;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return qwB=O},{mode:1});_.U63=_.a(function(O){var m=O.data;var G=function(){var B;return _.ki((B=m())==null?void 0:B.rendererContext)};
O={};return _.q("content-list-item-view-model",{el:_.Mi(_.yp(function(){return m().rendererContext})),
class:_.bE("ytContentListItemViewModelHost",(O.ytContentListItemViewModelTappable=G,O)),role:function(){return G()?"listitem":void 0},
tabindex:function(){return G()?0:void 0}},_.q("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.q("div",{class:"ytContentListItemViewModelImageContainer"},_.q(_.U,{cond:function(){return m().image},
then:function(B){return _.q(_.KH,{data:B,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.q(_.u5,{data:function(){var B;
return(B=m())==null?void 0:B.avatar}},{avatarViewModel:_.HP})),_.q("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.q("div",{class:_.bE("ytContentListItemViewModelTitle",function(){a:{switch(m().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var B="ytContentListItemViewModelProminentTitle";
break a}B=void 0}return B})},_.q(_.Jg,{text:function(){return m().title}})),_.q("div",{class:"ytContentListItemViewModelMetadata"},_.q(_.u5,{data:function(){return m().metadata}},{contentMetadataViewModel:function(B){return _.q(_.p5,{data:B.data,
layout:1})}})))),_.q("div",{class:"ytContentListItemViewModelActionButton"},_.q(_.u5,{data:function(){var B;
return(B=m())==null?void 0:B.actionButton}},{buttonViewModel:_.oF,
toggleButtonViewModel:_.BT})))},"lk");var tMr=_.a(function(O){var m=function(){return O.data().orientation==="LINEAR_LAYOUT_ORIENTATION_HORIZONTAL"};
return _.q("yt-linear-layout-view-model",{class:_.bE("ytLinearLayoutViewModelHost",function(){a:switch(O.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var G="ytLinearLayoutViewModelHorizontal";break a;default:G="ytLinearLayoutViewModelVertical"}return G})},_.q(_.u5,{data:function(){return O.data().items}},{lockupViewModel:function(G){return _.q("div",{style:_.hH({"margin-bottom":function(){return m()?void 0:"8px"},
"margin-right":function(){return m()?"8px":void 0}})},_.q(_.oU,{data:G.data,
containerType:function(){return m()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return m()?void 0:"33%"}}))}}))},"mk");var Whb=_.a(function(O){var m=function(){return O.data().background},G=function(){return O.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},B=function(){return O.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.q("yt-card-view-model",{el:_.Mi(_.yp(function(){return O.data().rendererContext})),
class:_.bE("ytCardViewModelHost",O.className)},_.q(_.SF,{contentId:function(){return O.data().contentId}},function(){return _.q("div",{class:_.bE("ytCardViewModelCardViewModelInner",function(){return jmr(O.data().cardStyle)},function(){var Q;
a:{switch((Q=O.data().cardState)==null?void 0:Q.selectionState){case "CARD_SELECTION_STATE_SELECTED":Q="ytCardViewModelSelected";break a}Q=void 0}return Q})},_.q(_.u5,{data:m},{cinematicContainerViewModel:function(Q){return _.q(_.TVC,{data:Q.data})}}),_.q("div",{class:"ytCardViewModelContentWrapper"},_.q(_.U,{cond:function(){return!G()},
then:function(){var Q={};return _.q("div",{class:"ytCardViewModelTopContentContainer"},_.q("div",{class:"ytCardViewModelTopContent"},_.q(_.u5,{data:function(){return O.data().topContent}},{contentListItemViewModel:function(H){return _.q(_.U63,{data:H.data})}})),_.q("div",{class:_.bE("ytCardViewModelInlineTrailingAction",(Q.ytCardViewModelInlineCenterTrailingAction=B,Q))},_.q(_.u5,{data:function(){return O.data().trailingAction}},{buttonViewModel:function(H){return _.q(_.oF,{data:H.data})}})))}}),
_.q("div",{class:"ytCardViewModelBodyContent"},_.q(_.u5,{data:function(){return O.data().bodyContent}},{contentListItemViewModel:_.U63,
listItemViewModel:_.MA,linearLayoutViewModel:tMr,descriptionPreviewViewModel:_.o2}))),_.q(_.U,{cond:function(){return G()},
then:function(){return _.q("div",{class:"ytCardViewModelOverlayTrailingAction"},_.q(_.u5,{data:function(){return O.data().trailingAction}},{buttonViewModel:function(Q){return _.q(_.oF,{data:Q.data})}}))}}))}))},"nk");_.qi(Whb,"yt-card-view-model",{props:{data:_.VZ,className:_.VZ}});var CIb=_.BK3.talkToRecsStateSelector;_.qi(_.a(function(O){var m=function(){return _.b(O.data().flowRoot,YTK)};
_.Ln(function(){var G=m(),B=function(){},Q=function(){};
if(G){var H,M,R,x=((R=_.b((H=m())==null?void 0:(M=H.steps)==null?void 0:M[0],_.GHB))==null?void 0:R.stepId)||"";STo(G,x);B=Lux(G);Q=o_r(G)}_.LS(function(){var t=m();t&&_.Kf().dispatch(_.jh("flowStateEntity",t.flowStateEntityKey));B();B=function(){};
Q();Q=function(){}})});
return _.q("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.q(_.SF,{contentId:function(){return O.data().contentId}},function(){return _.q("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.q(_.U,{cond:m,
then:function(G){return _.q(_.rch,{data:G})}}))}))},"ok"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.VZ}});_.qi(_.a(function(){return _.q("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.q("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.q("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.q(_.RPs,null)),_.q(_.Tne,{data:{rows:1},isExploreHub:!0}))},"pk"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.qi(_.a(function(O){var m=O.data;var G=O.standardUnitMinWidth;O=_.K((0,_.IP9)(m));var B=O.next().value,Q=O.next().value,H=function(){var R,x=(R=B())==null?void 0:R.contents;return x==null||x.length===0},M=function(){Q(Object.assign({},B(),{contents:[]}))};
return _.q("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.Mi(_.$V({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var R=_.b(m().chipsShelf,dtx);if(R!=null&&R!=null&&R.autoselectChipOnVisible){var x,t,W=_.b(R==null?void 0:(x=R.contents)==null?void 0:x[(t=R.autoselectedChipIndex)!=null?t:0],_.RS);W&&W.tapCommand&&_.PE(W.tapCommand)}}}))},_.q(_.SF,{contentId:function(){return m().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.q("div",null,_.q("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.q(_.u5,{data:function(){return m().header}},{sectionHeaderViewModel:function(R){return _.q(_.li,{data:R.data,
disableHorizontalPadding:!0})}})),_.q("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.q(_.u5,{data:function(){return m().chipsShelf}},{chipsShelfViewModel:function(R){return _.q(_.KF,{data:R.data,
callback:M,selectionBehavior:1})}})),_.q("div",null,_.q(_.U,{cond:H,
then:function(){return _.q("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.q(_.Tne,{data:{rows:1},isExploreHub:!0}))}}),_.q(_.u5,{data:function(){var R;
return(R=B())==null?void 0:R.contents}},{richShelfRenderer:function(R){return _.q(_.oW9,{data:R.data,
isInnerShelf:!0,standardUnitMinWidth:G})}})))}))},"qk"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.VZ,
standardUnitMinWidth:_.VZ}});var sk=function(){return _.u.apply(this,arguments)||this};
_.X(sk,_.u);
sk.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}}};
sk.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.c([_.h(_.MK),_.Y("design:type",Object)],sk.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],sk.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Ww),_.Y("design:type",Object)],sk.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],sk.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],sk.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Number)],sk.prototype,"standardUnitMinWidth",void 0);_.c([_.l({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],sk);
_.y(sk,"ytd-rich-section-renderer",function(){if(vYr!==void 0)return vYr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return vYr=O},{mode:_.ZB("kevlar_poly_si_batch_j029")?
1:2});_.qi(_.hNB,"yt-profile-identity-info-view-model",{props:{data:_.VZ,hideDivider:_.VZ,isChannelInfoCard:_.VZ}});_.qi(_.LBo,"yt-page-header-view-model",{props:{data:_.VZ,noPadding:_.VZ,enableBanner:_.VZ,cinematicContainerTopbarOffset:_.VZ,allowCinematicContainerOverflow:_.VZ,displayAsSidebar:_.VZ,displayAsPanel:_.VZ,alwaysUseMediumTextDescription:_.VZ}});_.qi(_.a(function(O){var m=O.data;var G=function(){var Q;return(Q=m().numColumns)!=null?Q:2},B=function(){return G()>1?3:2};
O={};return _.q("ytd-rich-grid-group",{class:_.bE("ytdRichGridGroupHost",(O.ytdRichGridGroupHostFirstColumn=function(){return m().colIndex===0},O)),
style:_.hH({"--ytd-rich-grid-group-num-columns":G,"--ytd-rich-grid-items-per-group":B})},_.q("div",{class:"ytdRichGridGroupContents"},_.q(_.u5,{data:function(){var Q;return(Q=m().contents)==null?void 0:Q.slice(0,B())}},{richItemRenderer:function(Q){return _.q(_.Lv_,{data:Q.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"rk"),"ytd-rich-grid-group",{props:{data:_.VZ}});var Zls=_.sv.persistentPanelVisibleSelector,NY=function(){var O=_.u.apply(this,arguments)||this;O.resizeOnObserverInit=!1;O.isInlinePreviewDisabled=_.V("web_disable_inline_preview");O.disableStickyFilterBar=!1;O.transparentBackgroundChipsBar=!1;O.hideChipsBar=!1;O.isWatchDefaultLayout=!0;O.continuationShowButton=!1;O.rowReducedHorizontalMargin=!1;O.useCompactList=!1;O.manualDownloadsPresent=!1;O.smartDownloadsPresent=!1;O.isOnline=!1;O.shouldRenderDownloadsBanner=!1;O.shouldRenderDownloadsBannerUpsell=
!1;O.hasOptedIntoSmartDownloads=!1;O.elementsPerRow=4;O.typographyBump=!1;O.slimItemsPerRow=1;O.pageLoadingFromNavigation=!1;O.resizeObserver=null;O.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"};O.rendererToTagNameMap=
new Map(Object.entries(O.contentMapping()).map(function(m){var G=_.K(m);m=G.next().value;G=G.next().value;return[m,G.component]}));
O.insertedContent=new Map;return O};
_.X(NY,_.u);_.v=NY.prototype;_.v.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var O=_.K(_.ZO(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),m=O.next();!m.done;m=O.next())m.value.useCompactList=this.useCompactList};
_.v.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var O=_.K(_.ZO(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),m=O.next();!m.done;m=O.next())m=m.value,m.sizing=this.sizing,m.typographyBump=this.typographyBump};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.v.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]]"}}}};
_.v.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}}};
_.v.attached=function(){document.addEventListener("yt-page-type-changed",_.f7(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21939_throttledOnResize=new _.Pu(this.resizeObserved,_.Rd("rich_grid_resize_delay_ms",50),this)};
_.v.detached=function(){var O;(O=this.resizeObserver)==null||O.disconnect();document.removeEventListener("yt-page-type-changed",_.f7(this,this.onPageChange))};
_.v.insertRichSection=function(O){var m=O.richItemTargetId;O=O.richSectionRendererToInsert;m&&O&&(this.insertedContent.set(m,{content:O,timestamp:Date.now()}),this.reflowContent())};
_.v.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.v.computeIsInlinePreviewEnabled=function(O,m,G){return _.V("web_disable_inline_preview")?!1:!G&&_.yvA({miniplayerIsActive:O,miniplayerPlaybackState:m})};
_.v.computeSizing=function(){var O=_.v$I(this.data);if(O||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return O?this.useCompactList?"COMPACT":O:this.miniMode?"COMPACT":"STANDARD"};
_.v.updateItemMinAndMaxWidth=function(){var O=_.Rd("rich_grid_max_item_width",500);O>0&&_.n7(this.hostElement,{"--ytd-rich-grid-item-max-width":O+"px"});var m;O=this.getRichItemMinWidth((m=this.hostElement)==null?void 0:m.clientWidth);O>0&&_.n7(this.hostElement,{"--ytd-rich-grid-item-min-width":O+"px"})};
_.v.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.v.resizeObserved=function(){_.UB(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.v.onPageChange=function(){var O=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.UB(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.ln.addJob(function(){O.pageLoadingFromNavigation=!1;O.setMasthead();O.maybeSetBigYoodle();O.forceRefreshAndLog();O.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.v.dataChanged=function(){var O=this;_.UB(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.QA(this,function(){O.updateRichItemGridPositions();O.contentsElement&&_.n7(O.hostElement,{"--ytd-rich-grid-content-offset-top":O.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.v.initResizeObserver=function(){var O=this;if(window.ResizeObserver){var m;(m=this.resizeObserver)==null||m.disconnect();var G=!1;this.resizeObserver=new ResizeObserver(function(){if(G){var B;(B=O.resizeObserver)==null||B.disconnect();var Q;(Q=O.JSC$21939_throttledOnResize)==null||Q.fire();requestAnimationFrame(function(){var M;(M=O.JSC$21939_throttledOnResize)==null||M.fire();O.initResizeObserver()})}else if(G=!0,O.resizeOnObserverInit){var H;
(H=O.JSC$21939_throttledOnResize)==null||H.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.v.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.UB(this.hostElement,"ytd-rich-item-index-update-action")};
_.v.updateElementsPerRow=function(){_.UB(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.xs({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.xs({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.v.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.v.onRichShelfRendererCollapse=function(O){if(this.shownItems){var m=O.detail;O=this.shownItems.findIndex(function(B){var Q,H;return((H=_.b(B==null?void 0:(Q=B.richSectionRenderer)==null?void 0:Q.content,_.Pe_))==null?void 0:H.trackingParams)===m});
var G=O+1;O<0||G>=this.contentsElement.children.length||!this.shownItems[G].richItemRenderer||this.contentsElement.children[G].scrollIntoView({behavior:"smooth",block:"start"})}};
_.v.onSoftReloadPage=function(){this.scrollUpToTop()};
_.v.handleRerenderDownloadsData=function(){_.V("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.v.handlePlaylistRemoveVideosAction=function(O){var m;if(((m=_.b(O,_.q62))==null?0:m.setVideoIds)&&this.data&&this.data.contents){O=_.b(O,_.q62).setVideoIds;for(m=this.data.contents.length-1;m>=0;){var G=_.b(this.data.contents[m],_.wT);(G=G&&_.b(G.content,_.H3))&&G.setVideoId&&O.includes(G.setVideoId)&&this.splice("data.contents",m,1);m--}this.updateIndices()}};
_.v.updateIndices=function(){if(this.data&&this.data.contents)for(var O=0;O<this.data.contents.length;O++)this.set("data.contents."+O+".richItemRenderer.index",_.Qg(String(O+1)))};
_.v.hasTopRowInlinePlayableVideoWithEndorsement=function(O){var m;return!((m=O.slice(0,this.getItemsPerRow()))==null||!m.some(function(G){var B;G=_.b(G==null?void 0:(B=G.richItemRenderer)==null?void 0:B.content,_.$z);var Q;return(G==null?void 0:G.inlinePlaybackEndpoint)&&(G==null?void 0:(Q=G.thumbnailOverlays)==null?void 0:Q.some(function(H){return H.thumbnailOverlayEndorsementRenderer}))}))};
_.v.refreshGridLayoutNew=function(O,m,G,B){var Q=B.postsPerRow;var H=B.slimItemsPerRow;var M=B.gameCardsPerRow;B=B.miniGameCardsPerRow;var R;if((R=this.data)==null||!R.contents||!this.containerWidth)return!1;var x;if((x=this.data.responsiveContainerConfiguration)==null?0:x.responsiveSize){var t=_.CrY(this.data.responsiveContainerConfiguration,this.containerWidth),W;R=_.eh(Object.assign({},t,{standardUnitMinWidth:(W=this.data)==null?void 0:W.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&t.isCompactList)}else R=_.eh({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(t=this.data)==null?void 0:t.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=R.typographyBump;W=!1;if(O||this.elementsPerRow!==R.numItems||this.postsPerRow!==Q||this.slimItemsPerRow!==H||this.gameCardsPerRow!==
M||this.miniGameCardsPerRow!==B||this.gutter!==R.gutter)W=this.elementsPerRow!==R.numItems,this.elementsPerRow=R.numItems,this.postsPerRow=Q,this.slimItemsPerRow=H,this.gameCardsPerRow=M,this.miniGameCardsPerRow=B,this.gutter=R.gutter,this.itemWidth=R.itemWidth,this.reflowContent(m),_.n7(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":R.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(G);this.ytdReduxBehavior.dispatch(_.xs({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:R.maxContainerWidth}));return W};
_.v.refreshGridLayout=function(O,m){var G,B=(G=this.hostElement)==null?void 0:G.clientWidth;this.containerWidth=this.adjustRichGridWidth(B,!0);var Q;if((Q=this.data)==null||!Q.contents||!this.containerWidth)return O&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(O=!0,this.pendingForceReflow=!1);G=this.getRichItemMinWidth(B);var H=this.isShortsPanel?146:194,M=this.getMiniGameCardMinWidth(),R=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;B=G=this.calcElementsPerRow(G,
R);(Q=G<=3&&this.miniModeAllowed())&&(G=this.calcElementsPerRow(240,4));var x=this.calcMaxSlimElementsPerRow(G,R,this.isDefaultGrid);R=this.calcElementsPerRow(H,x);var t=this.calcElementsPerRow(this.isCompactGrid?H:154,x);H=this.calcElementsPerRow(this.isCompactGrid?H:M,x);M=!1;if(this.sizing)return this.refreshGridLayoutNew(O,m,Q,{postsPerRow:B,slimItemsPerRow:R,gameCardsPerRow:t,miniGameCardsPerRow:H});if(O||this.elementsPerRow!==G||this.postsPerRow!==B||this.slimItemsPerRow!==R||this.gameCardsPerRow!==
t||this.miniGameCardsPerRow!==H)M=this.elementsPerRow!==G,this.elementsPerRow=G,this.postsPerRow=B,this.slimItemsPerRow=R,this.gameCardsPerRow=t,this.miniGameCardsPerRow=H,this.reflowContent(m),this.updateElementsPerRow(),_.n7(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)&&_.n7(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(Q);_.UB(this.hostElement,"yt-rich-grid-layout-refreshed");return M};
_.v.getRichItemMinWidth=function(O){var m=_.Rd("rich_grid_min_item_width",310);if(!_.V("kevlar_disable_min_width_override")){var G,B;m=(B=(G=this.data)==null?void 0:G.minItemWidth)!=null?B:m}return m+_.Aqp(O)};
_.v.calcMaxSlimElementsPerRow=function(O,m,G){return(G===void 0?0:G)?O===1?2:O%2===0?O/2*3:O+2:m*2};
_.v.adjustRichGridWidth=function(O,m){var G=_.V("disable_rich_grid_guide_compensation");if(!this.isWatch&&!G){G=_.KR().resolve(_.v7(_.qK));var B=G==null?void 0:G.guideElement;if(!(!G||G.getData()||B!=null&&B.opened||G.getMiniGuideVisible()))if(G.canFitPersistentGuide(O)&&G.getGuideExpandsAutomatically()){var Q,H,M=Number((Q=window.getComputedStyle(this.hostElement))==null?void 0:(H=Q.getPropertyValue("--app-drawer-width"))==null?void 0:H.replace("px",""));O-=M||0}else if(G.canFitMiniGuide(O)){var R;
Q=Number((M=window.getComputedStyle(this.hostElement))==null?void 0:(R=M.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:R.replace("px",""));O-=Q||0}}O-=this.persistentPanelVisible?400:0;O>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(O-=m?32:48));return O};
_.v.calcElementsPerRow=function(O,m){var G=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),B=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((G+B)/(O+B))||1,m)};
_.v.reflowContent=function(O){var m=this;if(!this.isReflowing){this.isReflowing=!0;var G,B,Q=!!((G=this.data)==null?0:(B=G.contents)==null?0:B.some(function(R){return _.b(R,_.GK)}));
G=this.getItemsPerRow();var H;B=(H=this.data)==null?void 0:H.reflowOptions;O&&(_.cd("rgr_s"),_.QA(this,function(){_.cd("rgr_nrf")}));
O={};(H=_.ZO(this.hostElement).querySelector("#contents"))&&(O={contentElement:H,rendererToTagNameMap:this.rendererToTagNameMap});H=(H=this.data.contents)?H.slice():[];Q=hmA(H,G,Q,B,this.getRichGridStyle(),O,this.insertedContent);var M=Q.orderedContent;if(Q=Q.pinnedContentNotShownTargetIds)for(Q=_.K(Q),G=Q.next();!G.done;G=Q.next())this.insertedContent.delete(G.value);Q=function(){m.shownItems=M;m.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(M),_.QA(this,Q)):Q()}};
_.v.getFirstRowItems=function(O){for(var m=[],G=0;G<O.length;G++){var B=void 0,Q=void 0,H=void 0,M=void 0,R=void 0,x=void 0;if(((B=O[G])==null?void 0:(Q=B.richItemRenderer)==null?void 0:Q.rowIndex)===0||((H=O[G])==null?void 0:(M=H.richGroupRenderer)==null?void 0:M.rowIndex)===0||((R=O[G])==null?void 0:(x=R.richSectionRenderer)==null?void 0:x.rowIndex)===0)m.push(O[G]);else break}return m};
_.v.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.v.resetInsertedContentIfNeeded=function(){(_.V("web_explore_hub_on_hover")||_.V("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.v.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.v.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.v.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.v.terminateVideoPreview=function(){_.UB(this.hostElement,"yt-terminate-video-preview-action")};
_.v.updateRichItemGridPositions=function(){var O={gridData:{gridColumnCount:this.elementsPerRow}},m;((m=this.data)==null?0:m.trackingParams)&&(m=_.yA())&&_.Qh(m,_.Ez(this.data.trackingParams),O);_.UB(this.hostElement,"ytd-rich-item-index-update-action")};
_.v.miniModeAllowed=function(){return this.isChannelPage};
_.v.getMiniGameCardMinWidth=function(){return 154};
_.v.updateMiniMode=function(O){this.miniMode=this.miniModeAllowed()&&O;this.ytdReduxBehavior.dispatch(_.xs({type:"SET_RICH_GRID_MINI_MODE",payload:O}))};
_.v.isCurrentPage=function(){return location.pathname===this.pagePath};
_.v.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var O=_.KR().resolve(_.KJ).getCurrentPage();O&&O.setScrollTop(0)}};
_.v.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.v.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.v.maybeSetBigYoodle=function(){var O,m=(O=this.data)==null?void 0:O.bigYoodle;this.bigYoodleData!==m&&(this.bigYoodleData=m)};
_.v.setMasthead=function(){var O;((O=this.data)==null?0:O.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.v.getRichGridStyle=function(){var O,m;return(m=(O=this.data)==null?void 0:O.style)!=null?m:"RICH_GRID_STYLE_UNKNOWN"};
_.v.onIsShortsGridChange=function(){var O=this.ytdReduxBehavior,m=O.dispatch,G=this.getRichGridStyle();m.call(O,_.xs({type:"SET_RICH_GRID_STYLE",payload:G}))};
_.vr.Object.defineProperties(NY.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var O;return(((O=this.data)==null?void 0:O.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var O;return(((O=this.data)==null?void 0:O.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var O=_.KR().resolve(_.KJ).getCurrentPage(),m,G,B;return(((m=this.data)==null?void 0:m.targetId)==="browse-feedFEsfv_audio_pivot"||_.V("web_enable_channel_pivot_panel")&&((G=this.data)==null?void 0:G.targetId)==="browse-feedFEsfv_channel_pivot"||_.V("web_enable_effect_pivot_panel")&&((B=this.data)==null?void 0:B.targetId)==="browse-feedFEsfv_effect_pivot")&&(O==null?void 0:O.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.V("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 O;return!((O=this.data)==null?0:O.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var O;return((O=_.KR().resolve(_.KJ).getCurrentPage())==null?void 0:O.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var O;return((O=_.KR().resolve(_.KJ).getCurrentPage())==null?void 0:O.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"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var O;return(((O=this.data)==null?void 0:O.targetId)||"")==="watch-next-feed"&&!_.V("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return((O=this.data)==null?0:O.enableContentSpecificAspectRatio)||((m=this.data)==null?0:(G=m.responsiveContainerConfiguration)==null?0:G.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Rd("web_continuation_handler_margin",0):0}}});
NY.prototype.onIsShortsGridChange=NY.prototype.onIsShortsGridChange;NY.prototype.onReloadContinuationFinish=NY.prototype.onReloadContinuationFinish;NY.prototype.reflowContent=NY.prototype.reflowContent;NY.prototype.handleRerenderDownloadsData=NY.prototype.handleRerenderDownloadsData;NY.prototype.onRichShelfRendererCollapse=NY.prototype.onRichShelfRendererCollapse;NY.prototype.onRequestElementsPerRow=NY.prototype.onRequestElementsPerRow;NY.prototype.contentLengthChanged=NY.prototype.contentLengthChanged;
NY.prototype.dataChanged=NY.prototype.dataChanged;NY.prototype.onSizingChange=NY.prototype.onSizingChange;NY.prototype.onUseCompactListChange=NY.prototype.onUseCompactListChange;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],NY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Dm),_.Y("design:type",Object)],NY.prototype,"ironResizableBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],NY.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.Ww),_.Y("design:type",Object)],NY.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],NY.prototype,"componentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],NY.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],NY.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0,selector:_.yh}),_.Y("design:type",Boolean)],NY.prototype,"miniMode",void 0);_.c([_.g({value:[]}),_.Y("design:type",Array)],NY.prototype,"shownItems",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],NY.prototype,"isReflowing",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],NY.prototype,"isFilteredFeed",void 0);_.c([_.g({selector:_.BSp}),_.Y("design:type",Boolean)],NY.prototype,"guideIsExpanded",void 0);
_.c([_.g({selectorArgs:["entitySelectorType"],selector:function(O,m){if(_.V("kevlar_modern_downloads_page")&&m&&m!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(m){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":m=O.entities;var G=_.lQ(m),B=_.aQ(m),Q=_.Vtp(O),H=_.JCI(O),M=_.bir(O),R=_.eAM(m),x=_.ps(G),t=_.ks(m);return _.ujs(G,B,R,_.PRY(m),Q,H,x,t,M,_.XDp(O),_.wv(O));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return O=_.lQ(O.entities),_.IPO(O);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return O=
_.Y1r(O.entities),_.pjM(O);default:_.ay(new _.j9("Error: entitySelectorType defined but not matched in selector.",O,m))}}}),
_.Y("design:type",Object)],NY.prototype,"entityDrivenRichGridData",void 0);_.c([_.g(),_.Y("design:type",Object)],NY.prototype,"resizeOnObserverInit",void 0);_.c([_.g(),_.Y("design:type",Object)],NY.prototype,"bigYoodleData",void 0);_.c([_.g(),_.Y("design:type",Object)],NY.prototype,"mastheadData",void 0);_.c([_.g(),_.Y("design:type",Boolean)],NY.prototype,"isInlinePreviewDisabled",void 0);_.c([_.g(),_.Y("design:type",Object)],NY.prototype,"disableStickyFilterBar",void 0);
_.c([_.g(),_.Y("design:type",Object)],NY.prototype,"transparentBackgroundChipsBar",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],NY.prototype,"hideChipsBar",void 0);_.c([_.g(),_.Y("design:type",Object)],NY.prototype,"isWatchDefaultLayout",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],NY.prototype,"continuationShowButton",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],NY.prototype,"rowReducedHorizontalMargin",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],NY.prototype,"useCompactList",void 0);_.c([_.g({selector:function(O){return _.aQ(O.entities).length>0}}),
_.Y("design:type",Object)],NY.prototype,"manualDownloadsPresent",void 0);_.c([_.g({selector:function(O){return _.lQ(O.entities).length>0}}),
_.Y("design:type",Object)],NY.prototype,"smartDownloadsPresent",void 0);_.c([_.g({selector:_.wv}),_.Y("design:type",Object)],NY.prototype,"isOnline",void 0);_.c([_.g({selector:_.JCI}),_.Y("design:type",Object)],NY.prototype,"shouldRenderDownloadsBanner",void 0);_.c([_.g({selector:_.XDp}),_.Y("design:type",Object)],NY.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.c([_.g({selector:_.Vtp}),_.Y("design:type",Object)],NY.prototype,"hasOptedIntoSmartDownloads",void 0);
_.c([_.g({selector:Zls}),_.Y("design:type",Boolean)],NY.prototype,"persistentPanelVisible",void 0);_.c([_.Tw("useCompactList"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NY.prototype,"onUseCompactListChange",null);_.c([_.Tw("sizing","typographyBump"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NY.prototype,"onSizingChange",null);
_.c([_.g({selector:_.Mtp}),_.Y("design:type",Number)],NY.prototype,"miniplayerPlaybackState",void 0);_.c([_.g({selector:_.Ys}),_.Y("design:type",Boolean)],NY.prototype,"miniplayerIsActive",void 0);_.c([_.g({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Y("design:type",Boolean)],NY.prototype,"isInlinePreviewEnabled",void 0);
_.c([_.g({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.Y("design:type",String)],NY.prototype,"sizing",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],NY.prototype,"elementsPerRow",void 0);_.c([_.g(),_.Y("design:type",Object)],NY.prototype,"typographyBump",void 0);_.c([_.g(),_.Y("design:type",Number)],NY.prototype,"itemWidth",void 0);
_.c([_.uc("#header"),_.Y("design:type",HTMLElement)],NY.prototype,"headerElement",void 0);_.c([_.uc("#contents"),_.Y("design:type",HTMLElement)],NY.prototype,"contentsElement",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NY.prototype,"dataChanged",null);_.c([_.Si("data.contents.length"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NY.prototype,"contentLengthChanged",null);
_.c([_.hG("yt-request-elements-per-row"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NY.prototype,"onRequestElementsPerRow",null);_.c([_.hG("yt-rich-shelf-renderer-collapse"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],NY.prototype,"onRichShelfRendererCollapse",null);
_.c([_.Si("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NY.prototype,"handleRerenderDownloadsData",null);_.c([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],NY.prototype,"entitySelectorType",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"isSub",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"isWatch",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"isShortsPanel",null);
_.c([_.g({reflectToAttribute:!0}),_.T("isWatch"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"reducedTopMargin",null);_.c([_.g({reflectToAttribute:!0}),_.T("data","isWatch","isWatchDefaultLayout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"noTopMargin",null);_.c([_.g({reflectToAttribute:!0}),_.T("isInlinePreviewEnabled","shownItems"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"topRowEndorsement",null);
_.c([_.T("data.header"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"hideHeader",null);_.c([_.hG("yt-rich-grid-reflow"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],NY.prototype,"reflowContent",null);_.c([_.hG("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NY.prototype,"onReloadContinuationFinish",null);
_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"isSlimGrid",null);_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"isShortsGrid",null);_.c([_.T("data","isSlimGrid","isShortsGrid"),_.g(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"noRichItemGutterMargins",null);
_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"isShortsGridSlim",null);_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"isCompactGrid",null);_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"isDefaultGrid",null);
_.c([_.T("data.targetId"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"hideChipsBarOnWatch",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],NY.prototype,"onIsShortsGridChange",null);_.c([_.T("data.enableContentSpecificAspectRatio"),_.g(),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],NY.prototype,"force16By9ThumbnailAspectRatio",null);
_.c([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],NY.prototype,"continuationTriggerOffset",null);_.c([_.l({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],NY);
_.y(NY,"ytd-rich-grid-renderer",function(){if(Geh!==void 0)return Geh;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Geh=O},{mode:2});var zyx=_.a(function(O){var m=O.thumbsUp,G=O.thumbsDown,B=O.rightAlignThumbs;O=_.K(_.Wf(!1,void 0,"OxPsH"));var Q=O.next().value,H=O.next().value;O=_.K(_.Wf(!1,void 0,"V5vWne"));var M=O.next().value,R=O.next().value;O={};return _.q("div",{class:_.bE("ytwThumbsUpDownThumbs",(O.ytwThumbsUpDownRightAlign=function(){return B==null?void 0:B()},O))},_.q(_.BT,{data:m,
onToggle:function(x){H(x);M()&&R(!1)},
buttonShapeOverrides:function(){return{toggled:Q()}}}),_.q(_.BT,{data:G,
onToggle:function(x){R(x);Q()&&H(!1)},
buttonShapeOverrides:function(){return{toggled:M()}}}))},"sk");
zyx.idomCompat=!0;var VMy=_.a(function(O){var m=function(){return O.data().pendingStateEntityKey||""},G=_.fJ(_.lCK,m),B=function(){var R;
if(!(R=O.disabled())){var x;R=!((x=G())==null||!x.isPendingResponse)}return R},Q=_.K(_.Wf(ul3(""),void 0,"NwQXfe")),H=Q.next().value,M=Q.next().value;
_.EZ(function(){requestAnimationFrame(function(){var R=O.data().onShowAnimationMs||0;R=R>0?ul3("--chip-animation-duration: "+R+"ms;"):ul3("");M(R)})});
return _.q("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:H},_.q(_.gi,{each:function(){return O.data().chipData||[]},
keyBy:"REFERENCE"},function(R){return _.q(JA9,{data:R,disabled:B,pendingStateKey:m,onError:O.onError})}))},"tk"),JA9=_.a(function(O){var m=_.GX("button"),G=_.K(_.Wf(!0,void 0,"G4GPGe")),B=G.next().value,Q=G.next().value,H=function(){return O.data().text.content},M=function(){return O.data().transparentWhenLoading},R=_.nH(function(x){var t,W,Z,z,J,n,I,S;
return _.r(function(L){switch(L.nextAddress){case 1:x.stopPropagation();if(O.disabled())return L.return();W=String(Math.floor(((t=_.Jt())==null?void 0:t.getCurrentTime())||0)*1E3);Z="youchat-"+Date.now();z=function(){_.DB(O.data().onClick||{});var C={continuationCommand:{token:O.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},P={inputComposerFormData:{clientMessageId:Z,playerOffsetMs:W}};return new Promise(function(w,d){_.DB(C,{form:{formData:P},commandController:{onSuccess:function(D,
OS){w(OS)},
onServerError:function(D,OS){d(OS.error)}}})})};
J=_.aCr(O.pendingStateKey());J(!0);_.ZuB("#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);_.n_(L,2);return L.yield(z(),4);case 4:_.P7(L,3);break;case 2:n=_.uS(L),(S=(I=O).onError)==null||S.call(I,n);case 3:J(!1),_.ju(L)}})});
return _.q(_.U,{cond:B,then:function(){return _.q("div",{class:"ytwYouChatChipsDataChipWrapper"},_.q("button",{el:m,class:"ytwYouChatChipsDataChip","data-disabled":O.disabled,"data-transparent-loading":M,"on:click":R,tabindex:0},H))}})},"uk");var blb=_.a(function(O){var m=O.data;var G=O.initiallyExpanded;var B=function(){var t;return(t=m().conversationResourceData)==null?void 0:t.learningGuideData};
O=_.K(_.fH(function(){var t;return(t=G==null?void 0:G())!=null?t:!1}));
var Q=O.next().value,H=O.next().value,M=function(){H(!0)},R=_.bF(function(){var t,W;
return(W=(t=B())==null?void 0:t.sections)!=null?W:[]},void 0,"aPRmH"),x=_.bF(function(){return R().length>4},void 0,"PUPDyc");
O=_.bF(function(){var t;return!Q()&&x()&&(t=B())!=null&&t.expandButton?R().slice(0,4):R()},void 0,"wUz4Ud");
return _.q("yt-conversation-resource-view-model",{class:_.bE("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.q(_.u5,{data:O},{expandableMetadataViewModel:_.DPx}),_.q(_.U,{cond:function(){return x()&&!Q()},
then:function(){return _.q("div",{id:"showMoreButton"},_.q(_.u5,{data:function(){var t;return(t=B())==null?void 0:t.expandButton}},{buttonViewModel:function(t){return _.q(_.oF,{data:t.data,
onClick:M})}}))}}))},"vk");var nY3=_.a(function(O){var m=function(){var C;return(C=O.data().text)==null?void 0:C.content},G=function(){var C,P;
return(C=O.data().webData)==null?void 0:(P=C.textResult)==null?void 0:P.content},B=_.KR().resolve(_.H6),Q=_.Vp(),H=function(){return O.data().chatResponseStyle},M=function(){return!O.data().transparentBackground},R=function(){return O.data().rightAlignThumbs},x=function(){return O.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||O.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},t=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:x()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:O.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},W=function(){var C;
return O.data().webData||((C=O.data().text)==null?void 0:C.content)||O.data().videoResultsData||O.data().conversationResourceViewModel||O.data().quiz||O.data().richContent},Z=function(){return!!O.data().sectionHeader||W()},z=function(){var C;
return(C=O.data().videoResultsData)==null?void 0:C.videoShelf},J=function(){var C;
return(C=O.data().webData)==null?void 0:C.sourcesShelf},n=function(){return H()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||H()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:O.data().thumbsDownViewModel&&O.data().thumbsUpViewModel},I=function(){return _.b(O.data().thumbsUpViewModel,_.iR)},S=function(){return _.b(O.data().thumbsDownViewModel,_.iR)};
_.EZ(function(){requestAnimationFrame(function(){var C;(C=O.shouldAnimateIcon)!=null&&C.call(O)&&klu(Q.lottieEl)})});
var L={};return _.q("you-chat-item-view-model",{class:_.bE("ytwYouChatItemViewModelYouChatItemViewModel",(L.ytwYouChatItemViewModelColumnLayout=function(){return x()},L)),
"data-target-id":function(){return O.data().id||""}},_.q(_.U,{cond:function(){return O.data().removeIcon?!1:Z()},
then:function(){var C={};return _.q("div",{"aria-hidden":"true"},_.q(_.Yo,{className:_.bE("ytwYouChatItemViewModelIcon",(C.ytwYouChatItemViewModelRtl=B==="rtl",C.ytwYouChatItemViewModelHidden=function(){return!(O.data().hideIcon||H()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||H()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:Z())},C)),
animationName:"YOUCHAT_ICON",data:t,animationRef:Q}))}}),_.q(_.U,{cond:Z,
then:function(){var C={};return _.q("div",{class:_.bE("ytwYouChatItemViewModelHost",(C.ytwYouChatItemViewModelHostNoPadding=function(){return!!O.data().sectionHeader&&!W()},C.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return H()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},C.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return H()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},C.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return H()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
C.ytwYouChatItemViewModelGradientBackground=M,C)),
role:"alert"},_.q(_.U,{cond:m,then:function(P){return _.q(_.xl,{text:P,wrapCodeBlocks:!0})}}),_.q(_.u5,{data:function(){return O.data().sectionHeader}},{sectionHeaderViewModel:function(P){var w={};
return _.q(_.li,{data:P.data,className:_.bE("ytwYouChatItemViewModelSectionHeader",(w.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!O.data().sectionHeader&&!W()},w))})}}),_.q(_.U,{cond:G,
then:function(P){return _.q(_.xl,{text:P,wrapCodeBlocks:!0})}}),_.q(_.U,{cond:z,
then:function(){return _.q("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.q(_.u5,{data:function(){var P;return(P=O.data().videoResultsData)==null?void 0:P.videoShelf}},{horizontalShelfViewModel:function(P){return _.q(_.Rz,{data:P.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.q(_.U,{cond:J,
then:function(){return _.q("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.q(_.u5,{data:function(){var P;return(P=O.data().webData)==null?void 0:P.sourcesShelf}},{horizontalShelfViewModel:function(P){return _.q(_.Rz,{data:P.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.q(_.u5,{data:function(){return O.data().conversationResourceViewModel}},{conversationResourceViewModel:blb}),_.q(_.u5,{data:function(){return O.data().quiz}},{learningJourneyQuizViewModel:_.x7$}),_.q(_.u5,{data:function(){return O.data().richContent}},{cardViewModel:Whb,
linearLayoutViewModel:tMr}),_.q(_.U,{cond:n,then:function(){return _.q(zyx,{thumbsUp:I,thumbsDown:S,rightAlignThumbs:R})}}))}}),_.q(_.U,{cond:function(){return O.data().chipsData},
then:function(C){return _.q(VMy,{data:C,disabled:O.pending,onError:O.onError})}}))},"wk");
nY3.idomCompat={callbacks:{onError:!0,onSend:!0}};var XmB=_.a(function(O){var m=function(){return O.data().choiceSelectedText},G=function(){return O.data().hasGradientBackground},B={};
return _.q("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.q(_.U,{cond:m,then:function(){return _.q("div",{class:"ytYouChatUserTurnChoiceSelected"},_.q(_.Jg,{text:m}))}}),_.q("div",{class:_.bE("ytYouChatUserTurnUserMessage",(B.ytYouChatUserTurnGradientContainer=G,B.ytYouChatUserTurnDefaultContainer=function(){return!G()},B))},function(){return O.data().text}))},"xk");var f7y=_.a(function(O){var m=_.K((0,_.Eb9)(O.data)).next().value;return _.q("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return O.data().targetId||""}},_.q(_.u5,{data:function(){return O.data().header}},{chipBarViewModel:_.Izp}),_.q(_.u5,{data:function(){return m().contents}},{accordionViewModel:_.WBu,
alertBannerViewModel:_.azj,chatLoadingViewModel:_.irK,chatUserTurnViewModel:XmB,gridShelfViewModel:function(G){return _.q(_.o82,{data:G.data,shouldUseOwnContainerSize:!0})},
learningJourneyLoaderViewModel:_.MT2,lockupViewModel:function(G){return _.q(_.oU,{data:G.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:O.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.li,videoOverviewViewModel:_.hYs,youChatItemViewModel:function(G){return _.q(nY3,{data:G.data,pending:!1})}}))},"yk");_.qi(_.a(function(O){var m=_.K((0,_.Eb9)(O.data)).next().value,G=_.Al("yt-section-list-renderer"),B=_.K(_.Wf(void 0,void 0,"boqAXd")),Q=B.next().value,H=B.next().value,M=function(){var R;return _.b((R=O.data().sectionListLayoutConfiguration)==null?void 0:R.layoutConfiguration,w9r)};
_.Ln(function(){var R,x=(R=G.value)==null?void 0:R.clientWidth;if(M()){R=M();var t=R.responsiveSize;x=x<528?"CONTAINER_SIZE_NARROW":x<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var W=_.K(R.responsiveMap||[]);for(var Z=W.next();!Z.done;Z=W.next())if(Z=Z.value,Z.containerSize===x){W=Z.containerType;break b}W=void 0}if(W&&t){b:{if(W==="CONTAINER_TYPE_VERTICAL_LIST")if(t==="RESPONSIVE_SIZE_STANDARD"){if(x!=="CONTAINER_SIZE_NARROW"){Z="50%";break b}}else{Z=x==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}Z=void 0}R={responsiveSize:t,containerSize:x,containerType:W,force16By9ThumbnailAspectRatio:!R.enableContentSpecificAspectRatio,contentPreviewWidth:Z,fullbleed:(W==="CONTAINER_TYPE_VERTICAL_LIST"||W==="CONTAINER_TYPE_GRID")&&x==="CONTAINER_SIZE_NARROW"&&!1}}else R=void 0}else R=void 0;H(R)});
return _.q("yt-section-list-renderer",{class:_.bE("ytSectionListRendererHost",O.className),el:G,"data-target-id":function(){return O.data().targetId||""}},_.q(_.u5,{data:function(){return m().contents}},{itemSectionRenderer:function(R){return _.q(f7y,{data:R.data,
containerLayoutConfig:Q})}}))},"zk"),"yt-section-list-renderer",{props:{data:_.VZ,
className:_.RZ}});var hys;var Tpu;var gYb=function(){return _.u.apply(this,arguments)||this};
_.X(gYb,_.u);_.c([_.g(),_.Y("design:type",Object)],gYb.prototype,"data",void 0);_.c([_.DO({is:"yt-alert-renderer",disableElementRegistration:!0})],gYb);
_.y(gYb,"yt-alert-renderer",function(){if(Tpu===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;hys===void 0&&(hys=document.createElement("template"));var B=hys;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Tpu=O}O=Tpu;return O},{mode:2});
}catch(e){_._DumpException(e)}
try{
var PFr;PFr=function(O,m,G,B){G||(O?B&&(B.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||B.WINDOW_SIZE_CHANGED&&(m.width!==window.innerWidth||m.height!==window.innerHeight)||B.SAFARI_ABORTED_BY_NEW_TRANSITION&&O instanceof DOMException&&O.name==="AbortError"&&O.message.includes("Old view transition aborted by new view transition"))||_.oy(O):_.oy(Error("rj")))};
_.FNy=function(O,m){m=m===void 0?{}:m;var G,B,Q,H,M,R,x,t,W,Z,z,J,n;return _.r(function(I){switch(I.nextAddress){case 1:G=m;B=G.shouldWrap===void 0?!0:G.shouldWrap;Q=G.skipTransitionTimeoutMs===void 0?300:G.skipTransitionTimeoutMs;H=G.beforeTransition;M=G.afterTransition;if(!B||!document.startViewTransition||document.visibilityState==="hidden")return I.return(O());R={width:window.innerWidth,height:window.innerHeight};x=!1;(t=H)==null||t();_.n_(I,2);W=document.startViewTransition(O);Z=setTimeout(function(){W.skipTransition();
x=!0},Q);
return I.yield(W.ready,4);case 4:return clearTimeout(Z),I.yield(W.finished,5);case 5:clearTimeout(Z);(z=M)==null||z();_.P7(I,0);break;case 2:J=_.uS(I),(n=M)==null||n(),PFr(J,R,x,m.ignoredErrors),_.ju(I)}})};
_.A0r=function(O,m,G){O.persistentPanelContainerMap.set(G,m)};
_.Wn=function(){for(var O=Array(36),m=0,G,B=0;B<36;B++)B==8||B==13||B==18||B==23?O[B]="-":B==14?O[B]="4":(m<=2&&(m=33554432+Math.random()*16777216|0),G=m&15,m>>=4,O[B]=_.mkC[B==19?G&3|8:G]);return O.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 OnB=_.FY(['<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>']),
mrr=_.osm(OnB);mrr.setAttribute("style","display: none;");document.head.appendChild(mrr.content);_.Zu=_.WoI(function(O){var m=_.fd("DIV");O&&(m.className=O);m.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";O=_.fd("DIV");_.LAs(O,"200px","200px");m.appendChild(O);document.body.appendChild(m);O=m.offsetWidth-m.clientWidth;_.hF(m);return O});var Gn9;var Bio;var z5=function(){var O=_.u.apply(this,arguments)||this;O.icon=null;return O};
_.X(z5,_.u);z5.prototype.dismiss=function(){_.iP(this.hostElement,"yt-live-chat-error-message-dismiss")};
z5.prototype.computeIcon=function(O){return O&&O.iconType?"yt-icons:"+O.iconType.toLowerCase():"yt-icons:close"};
_.c([_.g(),_.Y("design:type",Object)],z5.prototype,"data",void 0);_.c([_.g({computed:"computeIcon(data.icon)"}),_.Y("design:type",Object)],z5.prototype,"icon",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],z5);
_.y(z5,"yt-live-chat-error-message-renderer",function(){if(Bio===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Gn9===void 0&&(Gn9=document.createElement("template"));var B=Gn9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Bio=O}O=Bio;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var Pyn,FAh,AsA,O9O,Qnc,Ka0,$P5,MAo,rLh,Roa,i9G,k_,xP0,qha,UP8,tAn,Wah,Z9a,zoA,JLh,VAa,b90,n0G,X80,fqh,hoc,T5O,g0c,ucn,jn5,IqO,p8h,ShA,E0c,LaG,CGc,aq0,yLq,YhP,dPG,w8n,eoq,o0L,lq9,N5n,PGG,Fao,ALn,O_5,DPq,G9h;Pyn=function(O,m){return _.Vh(O.entities,"liveReactionsDataEntity",m)};
FAh=function(O,m){O=_.Vh(O.entities,"booleanEntity",m);return!(!O||!O.value)};
AsA=function(O,m){var G=_.yA();G&&O&&_.Pd(G,_.Ez(O),m)};
O9O=function(O,m){return _.Vh(O.entities,"timedMarkersListSyncEntity",m)};
_.mP0=function(O){return O.watch.isWatchActive};
_.Gcn=function(O){return _.c6(O)||_.Yg(O)||_.SNs(O)};
_.B5a=function(O){return!_.Gcn(O)};
_.am=function(O){return O.watch.watchScrollTop};
Qnc=function(O){return O.watch.isLiveChatCollapsed};
_.H9n=function(){_.V("web_watch_log_theater_mode")&&_.FyI("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.v0q=function(O,m,G){if(!O.includes("START_TIME_PLACEHOLDER")||!O.includes("END_TIME_PLACEHOLDER"))return O;var B=new Date(0),Q=new Date(0);B.setUTCMilliseconds(m);Q.setUTCMilliseconds(G);return O.replace("START_TIME_PLACEHOLDER",_.mZ(B,7)).replace("END_TIME_PLACEHOLDER",_.mZ(Q,7))};
Ka0=function(O,m){return _.Vh(O.entities,"booleanEntity",m)};
$P5=function(){return function(O){_.$n(_.jh("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:O}))}};
MAo=function(O){switch(O){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}};
rLh=function(O,m,G){var B=_.eg(G);O&&m&&B&&O.getPlayerPromise().then(function(Q){_.Htr(B)&&_.CE();(new _.OA(Q)).executeCommand(B,m);_.V("continue_playback_on_desktop_companion_click")||Q.pauseVideo()})};
Roa=function(O){var m=_.M1(),G;if(G=_.ex("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var B;G=(B=G())==null?void 0:B.layoutId}else G=null;rLh(m,G,O)};
i9G=function(O){var m=_.M1(),G;if(G=_.ex("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var B;G=(B=G())==null?void 0:B.layoutId}else G=null;rLh(m,G,O)};
k_=function(O,m){var G=O<0?"-":"";O=Math.abs(O);var B=Math.floor(O/3600),Q=Math.floor(O)%3600,H=Math.floor(Q/60);Q=Math.floor(Q)%60;var M="";(m===void 0?0:m)&&(M="."+Math.round((O-Math.floor(O))*10));return B>0?G+B+":"+(H<10?"0"+H:""+H)+":"+(Q<10?"0"+Q:""+Q)+M:G+H+":"+(Q<10?"0"+Q:""+Q)+M};
xP0=function(O){var m=O.match(/[^0-9:\.]/g);if(m&&m.length>0)return null;O=O.split(":");if(O.length===0||O.length>3)return null;m=1;for(var G=0;O.length>0;){var B=O.pop();if(B===void 0)break;var Q=Number(B);if(B===""||isNaN(Q))return null;G+=Q*m;m*=60}return G};
qha=function(O,m,G,B){O=Math.max(G,O);m=Math.min(m,B-G);O+m>B?(G=B,O=G-m):G=O+m;return{start:O,end:G}};
UP8=function(O,m,G,B,Q,H){O<G?O=G:O+Q>B&&(O=B-Q);m>B&&(m=B);m=Math.min(O+H,Math.max(O+Q,m));return{start:O,end:m}};
tAn=function(O,m,G,B,Q,H){m>B?m=B:m-Q<G&&(m=G+Q);O<G&&(O=G);O=Math.min(m-Q,Math.max(m-H,O));return{start:O,end:m}};
Wah=function(O){return _.V("web_transcript_cue_id_killswitch")?String(O):"ytd-transcript-renderer_"+O};
Z9a=function(O){return _.V("web_transcript_cue_id_killswitch")?!0:O.startsWith("ytd-transcript-renderer")};
zoA=function(O){var m=_.M1(),G;if(G=_.ex("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var B;G=(B=G())==null?void 0:B.layoutId}else G=null;rLh(m,G,O)};
JLh=function(O){O.style.height="auto";O.style.height=Math.min(O.scrollHeight||20,80)+"px"};
VAa=function(O,m,G){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:m,hasGradientBackground:G}}],insertByPositionInSection:{sectionTargetId:O,position:"INSERTION_POSITION_LAST"}}}]}}}};
b90=function(O){var m=_.M1(),G;G=(G=_.ex("yt.www.ads.eventcache.getLastCompanionData"))?(G=G())&&G.layoutId:null;rLh(m,G,O)};
n0G=function(O){var m=_.M1(),G;G=(G=_.ex("yt.www.ads.eventcache.getLastCompanionData"))?(G=G())&&G.layoutId:null;rLh(m,G,O)};
X80=function(O,m){m=m===void 0?!1:m;if(O.simpleText)O=[{text:O.simpleText}];else{var G;O=((G=O.runs)!=null?G:[]).map(function(B){return Object.assign({},B)})}if(m)for(m=_.K(O),G=m.next();!G.done;G=m.next())G.value.bold=!0;
return O};
fqh=function(O){var m=O.startEndTimeTemplate,G=O.startTimeUtcMillis;O=O.endTimeUtcMillis;if(m&&G&&O)return _.Qg(_.v0q(_.HX(m),Number(G),Number(O)))};
hoc=function(O,m){var G,B,Q=O==null?void 0:(G=O.viewCount)==null?void 0:(B=G.videoViewCountRenderer)==null?void 0:B.shortViewCount;if(!m&&Q)return Q;var H,M;return O==null?void 0:(H=O.viewCount)==null?void 0:(M=H.videoViewCountRenderer)==null?void 0:M.viewCount};
T5O=function(O,m){var G=O==null?void 0:O.relativeDateText;return!m&&G?[G,!0]:[O==null?void 0:O.dateText,!1]};
g0c=function(O,m,G,B,Q){B=B===void 0?!0:B;Q=Q===void 0?"":Q;var H=hoc(O,m),M=_.K(T5O(O,m)),R=M.next().value;M=M.next().value;m=m?O==null?void 0:O.sponsorsOnlyFirstTimeLongText:O==null?void 0:O.sponsorsOnlyFirstTimeShortText;var x=[];G&&H&&x.push(H);!G&&M||!R||x.push(R);O=[O==null?void 0:O.subtitle].concat(_.lS(x),[m,O==null?void 0:O.stationName,O==null?void 0:O.rating,O?fqh(O):void 0,O==null?void 0:O.upNextProgramText,O==null?void 0:O.superTitleLink]).filter(function(t){return!!t});
G={runs:[]};for(H=0;H<O.length;H++)G.runs.push.apply(G.runs,_.lS(X80(O[H],B))),H<O.length-1&&G.runs.push({text:" "+Q+" ",bold:B});return G};
ucn=function(O){if(O)return{runs:[{text:O,bold:!0}]}};
jn5=function(O){return O.filter(function(m){return!_.b(m,_.O1)})};
IqO=function(O){var m,G,B,Q;if(O=O==null?void 0:(m=O.contents)==null?void 0:(G=m.twoColumnWatchNextResults)==null?void 0:(B=G.results)==null?void 0:(Q=B.results)==null?void 0:Q.contents){var H,M;return(M=(H=O.find(function(R){return!!R.videoPrimaryInfoRenderer}))==null?void 0:H.videoPrimaryInfoRenderer)==null?void 0:M.updatedMetadataEndpoint}};
p8h=function(O,m){var G;return(G=O.sourceConfigs)==null?void 0:G.find(function(B){return B.videoId===m})};
ShA=function(O){return O==="End of video"||O==="End of playlist"};
E0c=function(O){var m,G,B,Q;return(m=O.getWatchNextResponse())==null?void 0:(G=m.contents)==null?void 0:(B=G.twoColumnWatchNextResults)==null?void 0:(Q=B.playlist)==null?void 0:Q.playlist};
LaG=function(O){var m,G,B,Q,H,M;return(m=E0c(O))==null?void 0:(G=m.playlistButtons)==null?void 0:(B=G.menuRenderer)==null?void 0:(Q=B.topLevelButtons)==null?void 0:(H=Q[0])==null?void 0:(M=H.playlistLoopButtonRenderer)==null?void 0:M.playlistLoopStateEntityKey};
CGc=function(O){var m=_.KR().resolve(_.Rt),G;return(m=(G=_.b(m.getAutoplayEndpoint(),_.GC))==null?void 0:G.playlistId)&&m===O};
aq0=function(O,m,G,B,Q){function H(){_.ln.cancelJob(y9);var M=o0L(m,G/O.getPlaybackRate()),R=M.hours,x=M.minutes;M=(M.seconds*1E3||6E4)/O.getPlaybackRate();O.setVideoTimeLeft(lq9(R,x));B&&O.getPlayerState()!==0&&O.setSleepTimerTimeLeft(lq9(R,x,!0));(R>0||x>0)&&!Q&&(y9=_.Sh(_.ln,H,M))}
_.ln.cancelJob(y9);y9=_.Sh(_.ln,H)};
yLq=function(O,m,G){function B(){_.ln.cancelJob(kcc);var Q=o0L(m,G),H=Q.hours;Q=Q.minutes;var M=6E4/O.getPlaybackRate();if(H>0||Q>0)O.setSleepTimerTimeLeft(lq9(H,Q,!0)),kcc=_.Sh(_.ln,B,M)}
_.ln.cancelJob(kcc);kcc=_.Sh(_.ln,B)};
YhP=function(O,m){var G=O.getVolume()/(m/500),B=function(Q){_.ln.cancelJob(cLP);var H=Math.floor(Q-G);O.setVolume(H,!1);H>0&&(cLP=_.Sh(_.ln,function(){B(H)},500))};
_.ln.cancelJob(cLP);cLP=_.Sh(_.ln,function(){B(O.getVolume())})};
dPG=function(O,m){_.ln.cancelJob(cLP);m&&O.syncVolume()};
w8n=function(){var O={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Xm("SLEEP_TIMER_DISRUPTED")}}}}};_.KR().resolve(_.Mu).resolveCommand(O)};
eoq=function(O){return(O.getDuration()-O.getProgressState().current)*1E3};
o0L=function(O,m){O=O+m-(0,_.$G)();if(O<=0)return{hours:0,minutes:0,seconds:0};var G=new DPq(0,0,0,0,0,0,O);O=G.getHours();m=G.getMinutes();G=G.getSeconds();G!==0&&m++;m!==0&&m%60===0&&(O++,m=0);return{hours:O,minutes:m,seconds:G}};
lq9=function(O,m,G){return O>0&&m>0?G?_.Xm("TIME_LEFT_HOURS_MINUTES",{hours:O.toString(),minutes:m.toString()}):_.Xm("TIME_HOURS_MINUTES",{hours:O.toString(),minutes:m.toString()}):O>0?G?_.fr("TIME_LEFT_HOURS",O):_.fr("TIME_HOURS",O):G?_.Xm("TIME_LEFT_MINUTES",{minutes:m.toString()}):_.Xm("TIME_MINUTES",{minutes:m.toString()})};
N5n=function(O,m){if(O.timelyActions)return O.timelyActions.find(function(G){var B;return((B=_.b(G,snn))==null?void 0:B.cueRangeId)===m})};
PGG=function(O){var m=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.nY(O);O.keyMap_.forEach(function(G,B){_.kO(m,B)||this.remove(B)},O)};
Fao=function(O,m){O.reloadContinuationItemsCommandMatcher=m};
_.c9=function(O,m){O.insertBefore(m,O.childNodes[0]||null)};
ALn=function(O){if(O>=48&&O<=57||O>=96&&O<=106||O>=65&&O<=90||_.Ug&&O==0)return!0;switch(O){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 _.qQ;default:return!1}};
O_5=function(O){if(O.altKey&&!O.ctrlKey||O.metaKey||O.keyCode>=112&&O.keyCode<=123)return!1;if(ALn(O.keyCode))return!0;switch(O.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!_.qQ;default:return O.keyCode<166||O.keyCode>183}};
DPq=function(O,m,G,B,Q,H,M){this.date=typeof O==="number"?new Date(O,m||0,G||1,B||0,Q||0,H||0,M||0):new Date(O&&O.getTime?O.getTime():_.$F())};
_.MQ(DPq,_.kJ);_.v=DPq.prototype;_.v.getHours=function(){return this.date.getHours()};
_.v.getMinutes=function(){return this.date.getMinutes()};
_.v.getSeconds=function(){return this.date.getSeconds()};
_.v.getMilliseconds=function(){return this.date.getMilliseconds()};
_.v.getUTCDay=function(){return this.date.getUTCDay()};
_.v.getUTCHours=function(){return this.date.getUTCHours()};
_.v.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.v.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.v.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.v.setHours=function(O){this.date.setHours(O)};
_.v.setMinutes=function(O){this.date.setMinutes(O)};
_.v.setSeconds=function(O){this.date.setSeconds(O)};
_.v.setMilliseconds=function(O){this.date.setMilliseconds(O)};
_.v.setUTCHours=function(O){this.date.setUTCHours(O)};
_.v.setUTCMinutes=function(O){this.date.setUTCMinutes(O)};
_.v.setUTCSeconds=function(O){this.date.setUTCSeconds(O)};
_.v.setUTCMilliseconds=function(O){this.date.setUTCMilliseconds(O)};
_.v.add=function(O){_.kJ.prototype.add.call(this,O);O.hours&&this.setUTCHours(this.date.getUTCHours()+O.hours);O.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+O.minutes);O.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+O.seconds)};
_.v.JSC$11333_toIsoString=function(O){var m=_.kJ.prototype.JSC$11333_toIsoString.call(this,O);return O?m+"T"+_.Ub(this.getHours(),2)+":"+_.Ub(this.getMinutes(),2)+":"+_.Ub(this.getSeconds(),2):m+"T"+_.Ub(this.getHours(),2)+_.Ub(this.getMinutes(),2)+_.Ub(this.getSeconds(),2)};
_.v.equals=function(O){return this.getTime()==O.getTime()};
_.v.toString=function(){return this.JSC$11333_toIsoString()};
_.v.clone=function(){var O=new DPq(this.date);O.firstDayOfWeek_=this.firstDayOfWeek_;O.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return O};
_.mG8=function(O){return _.xs({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:O}})};
G9h=new _.q$("imageTileRenderer");var BCq=new _.q$("adGridCardCollectionViewModel");var Qoo=new _.q$("carouselTitleViewModel");var H_A=new _.q$("ctaCarouselItemViewModel");var v3L=new _.q$("textFieldViewModel");_.KIq=new _.q$("engagementPanelHeaderShowNavigationButtonCommand");var $Gq=new _.q$("hideEngagementPanelScrimAction");var Mun=new _.q$("setActivePanelItemAction");var rXn=new _.q$("showEngagementPanelScrimAction");var Rq0=new _.q$("updateEngagementPanelAction");var i_c=new _.q$("updateSearchInVideoResultsAction");var xGO=new _.q$("transcriptCueGroupRenderer");var qIh=new _.q$("transcriptCueRenderer");var UGn=new _.q$("transcriptFooterRenderer");var tuq=new _.q$("engagementPanelAdSubtitleRenderer");var WIo=new _.q$("videoDescriptionFantasySectionViewModel");var Z_n=new _.q$("deleteClipEngagementPanelCommand");var zqh=new _.q$("loopCommand");var JXa=new _.q$("changeCreatorEndscreenVisibilityCommand");var Vuc=new _.q$("liveChatCallForQuestionsRenderer");var b_n=new _.q$("updateTimedMarkersSyncObserverCommand");var snn=new _.q$("timelyActionViewModel");var n30=new _.q$("timelyActionsOverlayViewModel");var XiL=new _.q$("repeatChapterCommand");var f9L=new _.q$("watchPlayerOverflowMenuCommand");var hqc=new _.q$("compositeVideoOverlayRenderer");var TC5=new _.q$("sortFilterSubMenuRenderer");var g3A=new _.q$("switchListItemViewModel");var uP5=new _.q$("inputComposerViewModel");var joL=new _.q$("transcriptEditSegmentCommand");var I90=new _.q$("transcriptUpdateSegmentTextCommand");var pi8=new _.q$("transcriptSearchBoxRenderer");var SI8=new _.q$("transcriptSegmentListRenderer");var E39=new _.q$("transcriptSegmentRenderer");_.LIn=new _.q$("updateDateTextAction");var CSO=new _.q$("updateTitleAction");var o3c=new _.q$("updateViewershipAction");var l9P=new _.q$("carouselLockupRenderer");var Y_=new _.q$("expandableVideoDescriptionBodyRenderer");var a95=new _.q$("videoDescriptionHeaderRenderer");var k9L=new _.q$("videoDescriptionYouchatSectionViewModel");_.dz=_.Rd("kevlar_watch_page_horizontal_margin",24);_.yXo=_.Rd("kevlar_watch_page_columns_top_padding",24);_.cXn=426+_.dz*2;_.wz=_.Rd("kevlar_watch_two_column_width_threshold",1E3);_.YIq=_.dz*2;_.dG9=_.Rd("kevlar_watch_secondary_width",402);_.wi0=_.Rd("kevlar_watch_max_player_width",1280);_.eqq=_.Rd("kevlar_watch_flexy_metadata_height",136);_.DGa=_.YIq+310+_.dz;_.soc=_.YIq+360+_.dz;var NC9={PAUSE_CHAT:18};var PS0;var FIq;var eW=function(){return _.u.apply(this,arguments)||this};
_.X(eW,_.u);eW.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
eW.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var O=_.b(this.data.button,_.rc);O&&(O.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.vr.Object.defineProperties(eW,{template:{configurable:!0,enumerable:!0,get:function(){if(FIq===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;PS0===void 0&&(PS0=document.createElement("template"));var B=PS0;G.call(m,B.content.cloneNode(!0),O.content.firstChild);FIq=O}O=FIq;return O}}});
_.c([_.h(_.RF),_.Y("design:type",Object)],eW.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g({selectorArgs:["data.enabledEntityKey"],selector:FAh,observer:"onEnabledChange"}),_.Y("design:type",Boolean)],eW.prototype,"enabled",void 0);_.c([_.g(),_.Y("design:type",Object)],eW.prototype,"data",void 0);_.c([_.DO({is:"yt-disableable-button-view-model",noInjection:!0})],eW);var AXG;var OL9;var mML=["transVert01","transVert02","transVert03"],GPo="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),DC=function(){var O=_.u.apply(this,arguments)||this;O.emojiManager=_.UL;O.isDarkTheme=document.documentElement.hasAttribute("dark");O.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};O.reactionBuckets=[];O.noEmojiIdentifier="NO_EMOJI";return O};
_.X(DC,_.u);_.v=DC.prototype;_.v.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.v.desktopFountainEmojiSizePxChanged=function(){_.n7(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.v.createUserReactionAnimation=function(O){this.createEmojiAnimation(O,!0)};
_.v.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var O;((O=this.data)==null?0:O.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.jh("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.lS(this.emojiContainer.children)).forEach(function(m){m.remove()})};
_.v.detached=function(){this.cleanupFountain()};
_.v.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var O;this.reactionBuckets=_.aM.unsafeClone((O=this.emojiFountainData)==null?void 0:O.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.v.processEmojiBucket=function(O){var m=this;if(this.reactionBuckets&&!(O>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var G=this.reactionBuckets[O];this.generateEmojiAnimations(G);if(O<this.reactionBuckets.length-1){var B;if(G==null?0:(B=G.duration)==null?0:B.seconds)this.emojiBucketTimerId=setTimeout(function(){m.processEmojiBucket(O+1)},Number(G.duration.seconds)*1E3)}}};
_.v.generateEmojiAnimations=function(O){var m=this,G=this.getRandomEmojiIdFromBucketWithOverride(O);if(G&&G!==this.noEmojiIdentifier){var B=0;O.targetEps?(B=this.linearInterpolateBounded(1,20,100,12,O.emojiSizeIndex||0),this.createEmojiAnimation(G,!1,O.emojiAnimationMs,B),B=this.getEmojiDelayMsFromTargetEps(O.targetEps)):(this.createEmojiAnimation(G),B=this.getEmojiDelayMsFromDistribution(O.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){m.generateEmojiAnimations(O)},B)}};
_.v.getRandomEmojiIdFromBucketWithOverride=function(O){if(!(O&&O.reactionsData&&O.reactionsData.length&&O.totalReactions))return this.noEmojiIdentifier;for(var m=O.totalReactions,G=1,B=_.K(O.reactionsData),Q=B.next();!Q.done;Q=B.next())Q=Q.value,(Q.reactionWeightOverride||Q.reactionWeightOverride===0)&&Q.reactionCount&&(m-=Q.reactionCount,G-=Q.reactionWeightOverride);B=!0;G<0&&(B=!1,m=O.totalReactions,G=1);if(B&&G>0&&m===0)if(G===1){Q=0;for(var H=_.K(O.reactionsData),M=H.next();!M.done;M=H.next())M=
M.value,M.reactionCount&&M.reactionCount>0&&Q++;Q=1/Q;H=_.K(O.reactionsData);for(M=H.next();!M.done;M=H.next())M.value.reactionWeightOverride=Q}else for(Q=1/(1-G),H=_.K(O.reactionsData),M=H.next();!M.done;M=H.next())M=M.value,M.reactionWeightOverride&&(M.reactionWeightOverride*=Q);Q=Math.random();H=0;M=_.K(O.reactionsData);for(var R=M.next();!R.done;R=M.next())if(R=R.value,R.reactionCount&&(H=(R.reactionWeightOverride||R.reactionWeightOverride===0)&&B?H+R.reactionWeightOverride:H+G*R.reactionCount/
m,H>Q&&(R.reactionCount--,O.totalReactions--,R=this.reactionItemToEmojiString(R),R!==this.noEmojiIdentifier)))return R;return this.noEmojiIdentifier};
_.v.reactionItemToEmojiString=function(O){if(O.unicodeEmojiId)return O.unicodeEmojiId;if(O.emoteId)return O.emoteId;if(O.videoReactionType)switch(O.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.v.createEmojiAnimation=function(O,m,G,B){m=m===void 0?!1:m;this.lastEmojiRequestedForTesting=O;var Q=O.startsWith("yt-icons:"),H=_.xk(this.emojiManager,O);if(H||Q){var M=document.createElement("emoji");M.classList.add("yt-emoji-fountain-view-model");M.classList.add(mML[Math.floor(Math.random()*mML.length)]);var R=document.createElement("div");R.classList.add("yt-emoji-fountain-view-model");R.classList.add("horizontal-container");R.classList.add(GPo[Math.floor(Math.random()*GPo.length)]);m?(G=document.createElement("div"),
G.classList.add("user-reaction-bubble"),G.classList.add("yt-emoji-fountain-view-model"),R.appendChild(G)):(G&&(M.style.animationDuration=G+"ms",R.style.animationDuration=G+"ms"),B&&(M.style.width=B+"px",M.style.height=B+"px"));Q?(Q=document.createElement("yt-icon"),Q.polymerController.icon=O,B&&(Q.style.width=B+"px",Q.style.height=B+"px"),O=Q):O=this.emojiManager.createEmoji(H,!1);O.classList.add("yt-emoji-fountain-view-model");R.appendChild(O);M.appendChild(R);this.emojiContainer.appendChild(M);
M.addEventListener("animationend",function(){M.remove()});
var x,t;if((x=this.data)==null?0:(t=x.loggingDirectives)==null?0:t.trackingParams)m=m?_.Zv(183501):_.Zv(183500),AsA(this.data.loggingDirectives.trackingParams,m),_.a6S(m);setTimeout(function(){M&&M.remove()},2E3)}};
_.v.getEmojiDelayMsFromDistribution=function(O){return Math.random()*(O||1)*1E3};
_.v.getEmojiDelayMsFromTargetEps=function(O){return Math.random()*2*(1/O)*1E3};
_.v.linearInterpolateBounded=function(O,m,G,B,Q){Q=Math.min(Math.max(Q,O),G);return(m*(G-Q)+B*(Q-O))/(G-O)};
DC.prototype.onEmojiFountainDataEntityUpdate=DC.prototype.onEmojiFountainDataEntityUpdate;DC.prototype.desktopFountainEmojiSizePxChanged=DC.prototype.desktopFountainEmojiSizePxChanged;DC.prototype.isActiveChanged=DC.prototype.isActiveChanged;_.c([_.g(),_.Y("design:type",_.iO)],DC.prototype,"emojiManager",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],DC.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.RF),_.Y("design:type",Object)],DC.prototype,"ytLiveChatReduxBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],DC.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],DC.prototype,"data",void 0);_.c([_.g({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(O,m){return _.Vh(O.entities,"emojiFountainDataEntity",m)}}),
_.Y("design:type",Object)],DC.prototype,"emojiFountainData",void 0);_.c([_.g(),_.Y("design:type",Boolean)],DC.prototype,"isActive",void 0);_.c([_.Tw("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DC.prototype,"isActiveChanged",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],DC.prototype,"isDarkTheme",void 0);_.c([_.g(),_.Y("design:type",String)],DC.prototype,"lastEmojiRequestedForTesting",void 0);
_.c([_.g({value:function(){return _.Rd("desktop_fountain_emoji_size_px",20)}}),
_.Y("design:type",Number)],DC.prototype,"desktopFountainEmojiSizePx",void 0);_.c([_.Tw("desktopFountainEmojiSizePx"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DC.prototype,"desktopFountainEmojiSizePxChanged",null);_.c([_.uc("#emoji-container"),_.Y("design:type",HTMLElement)],DC.prototype,"emojiContainer",void 0);
_.c([_.Tw("emojiFountainData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DC.prototype,"onEmojiFountainDataEntityUpdate",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],DC);
_.y(DC,"yt-emoji-fountain-view-model",function(){if(OL9===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;AXG===void 0&&(AXG=document.createElement("template"));var B=AXG;G.call(m,B.content.cloneNode(!0),O.content.firstChild);OL9=O}O=OL9;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var B9c;var QMA;var sT=function(){return _.u.apply(this,arguments)||this};
_.X(sT,_.u);sT.prototype.onChoiceChanged=function(){this.data&&_.n7(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
sT.prototype.onChoiceChanged=sT.prototype.onChoiceChanged;_.c([_.g(),_.Y("design:type",Object)],sT.prototype,"data",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sT.prototype,"onChoiceChanged",null);_.c([_.l({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],sT);
_.y(sT,"yt-live-chat-banner-poll-choice",function(){if(QMA===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;B9c===void 0&&(B9c=document.createElement("template"));var B=B9c;G.call(m,B.content.cloneNode(!0),O.content.firstChild);QMA=O}O=QMA;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var HLh;var v6a;var Nt=function(){var O=_.u.apply(this,arguments)||this;O.modern=_.V("web_button_rework_with_live");O.small=!1;return O};
_.X(Nt,_.u);Nt.prototype.computeIsSmall=function(){var O;return((O=this.buttonOverrides)==null?void 0:O.size)==="S"};
Nt.prototype.computeId=function(){return this.data&&this.data.targetId};
_.c([_.h(_.iL.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],Nt.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.g({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",String)],Nt.prototype,"id",void 0);_.c([_.g(),_.Y("design:type",Object)],Nt.prototype,"buttonOverrides",void 0);_.c([_.g(),_.Y("design:type",Object)],Nt.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Nt.prototype,"modern",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.Y("design:type",Object)],Nt.prototype,"small",void 0);_.c([_.l({disableElementRegistration:!0,is:"yt-live-chat-button"})],Nt);
_.y(Nt,"yt-live-chat-button",function(){if(v6a===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;HLh===void 0&&(HLh=document.createElement("template"));var B=HLh;G.call(m,B.content.cloneNode(!0),O.content.firstChild);v6a=O}O=v6a;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var Ksc;var $Mc;var P9=function(){var O=_.u.apply(this,arguments)||this;O.inCollapsedBanner=!1;O.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};O.questionButtonOverrides={style:"mono",type:"filled"};return O};
_.X(P9,_.u);_.v=P9.prototype;_.v.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]]"}}}}}};
_.v.onContextMenuButtonClick=function(O){this.ytLiveChatItemBehavior.showContextMenu(O)};
_.v.onYtRendererstamperFinished=function(){this.menuButton=_.ZO(this.hostElement).querySelector("#menu-button")};
_.v.dataChanged=function(){var O,m;if((m=_.b((O=this.data)==null?void 0:O.overflowMenuButton,_.v3))==null?0:m.command)this.data.contextMenuEndpoint=_.b(this.data.overflowMenuButton,_.v3).command};
_.v.onButtonClick=function(){var O,m=_.b((O=this.data)==null?void 0:O.askQuestionButton,_.v3);if(m){if(m.trackingParams&&(O=_.Ez(m.trackingParams))){var G=_.yA();G&&_.Gk(G,O)}_.iP(this.hostElement,"innertube-command",m.command)}};
P9.prototype.onYtRendererstamperFinished=P9.prototype.onYtRendererstamperFinished;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],P9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.RF),_.Y("design:type",Object)],P9.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],P9.prototype,"ytLiveChatItemBehavior",void 0);_.c([_.g({observer:"dataChanged"}),_.Y("design:type",Object)],P9.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],P9.prototype,"inCollapsedBanner",void 0);_.c([_.g(),_.Y("design:type",Object)],P9.prototype,"buttonOverrides",void 0);_.c([_.g(),_.Y("design:type",Object)],P9.prototype,"questionButtonOverrides",void 0);_.c([_.hG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P9.prototype,"onYtRendererstamperFinished",null);
_.c([_.l({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],P9);
_.y(P9,"yt-live-chat-call-for-questions-renderer",function(){if($Mc===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Ksc===void 0&&(Ksc=document.createElement("template"));var B=Ksc;G.call(m,B.content.cloneNode(!0),O.content.firstChild);$Mc=O}O=$Mc;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var MSo={};MSo.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 O=this;window.requestAnimationFrame(function(){O.restoreFocusNode_||(O.restoreFocusNode_=document.activeElement);var m=_.iks(O.hostElement);m.length&&m[m.length-1].focus()})},
isAttachedChanged_:function(O,m){O?this.focusChild_():m&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(O){this.hidden||_.$Z(O).indexOf(this.hostElement)!==-1||(O.stopPropagation(),this.focusChild_())}};var rY5;var Rfn;var Fl=function(){return _.u.apply(this,arguments)||this};
_.X(Fl,_.u);Fl.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Fl.prototype.onClick=function(O){O.target!==this.confirmButton&&O.target!==this.cancelButton&&(this.hidden=!0)};
_.c([_.uc("#confirm_button"),_.Y("design:type",Object)],Fl.prototype,"confirmButton",void 0);_.c([_.uc("#cancel_button"),_.Y("design:type",Object)],Fl.prototype,"cancelButton",void 0);_.c([_.g(),_.Y("design:type",iLG)],Fl.prototype,"data",void 0);_.c([_.g({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Fl.prototype,"hidden",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(MSo.YtLiveChatDialogBehavior),_.Y("design:type",Object)],Fl.prototype,"ytLiveChatDialogBehavior",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Fl);
var iLG=_.y(Fl,"yt-live-chat-dialog-renderer",function(){if(Rfn===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;rY5===void 0&&(rY5=document.createElement("template"));var B=rY5;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Rfn=O}O=Rfn;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var xMA;var q_0,UMh=function(){if(q_0!==void 0)return q_0;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;xMA===void 0&&(xMA=document.createElement("template"));var B=xMA;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return q_0=O};var tS0;var Wsa;var AU=function(){var O=_.u.apply(this,arguments)||this;O.tooltip=null;O.data=null;O.id="";O.active=!1;O.icon="";O.disabled=!1;O.showTooltip=!1;O.useToggledActiveState=!0;O.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return O};
_.X(AU,_.u);_.v=AU.prototype;
_.v.dataChanged=function(){var O;((O=this.data)==null?0:O.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,_.bc)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var m;if((m=this.data)==null?0:m.disabled)this.disabled=!0};
_.v.computeId=function(O){return O};
_.v.computeIcon=function(O,m){if(!O)return"";if(this.useToggledActiveState)return"yt-icons:"+O.toLowerCase();var G,B;return m&&((G=this.data)==null?0:(B=G.toggledIcon)==null?0:B.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+O.toLowerCase()};
_.v.logPDGEntryPoint=function(){_.u$N(_.bu("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")};
_.v.immediatelyShowTooltip=function(){var O=_.ZO(this.hostElement).querySelector("#tooltip");O.animationDelay=0;O.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};O.show()};
_.v.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.v.onClick=function(O){var m;((m=this.data)==null?0:m.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(),O.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.iP(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.v.computeShowTooltip=function(O,m){return!!(O&&O.tooltip&&m)};
_.v.maybeUpdateTooltipText=function(){var O=this,m;if((m=this.data)==null?0:m.tooltip){var G=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.bc)(O.tooltip).textContent=G},250)}};
_.v.handleLiveChatActions=function(O){var m=this;O.length&&(this.id!=="creator"&&this.id!=="product-picker"||O.forEach(function(G){(G=m.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",G))&&G.durationSec===G.fullDurationSec&&m.startBubble(m.colorFromDecimal(G.startBackgroundColor))}))};
_.v.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.v.startBubble=function(O){_.n7(this.hostElement,{"--yt-live-chat-monetization-button-glow":O});this.hostElement.setAttribute("bubble","")};
_.v.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.v.colorFromDecimal=function(O){typeof O==="string"&&(O=Number(O));return"rgba("+[O>>16&255,O>>8&255,O&255,(O>>24&255)/255].join()+")"};
AU.prototype.onAnimationEnd=AU.prototype.onAnimationEnd;AU.prototype.disabledChanged=AU.prototype.disabledChanged;AU.prototype.dataChanged=AU.prototype.dataChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],AU.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.iL.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],AU.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],AU.prototype,"data",void 0);_.c([_.g({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",Object)],AU.prototype,"id",void 0);_.c([_.g({notify:!0,reflectToAttribute:!0}),_.Y("design:type",Object)],AU.prototype,"active",void 0);
_.c([_.g({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.Y("design:type",Object)],AU.prototype,"icon",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AU.prototype,"disabled",void 0);_.c([_.g({computed:"computeShowTooltip(data, disabled)"}),_.Y("design:type",Object)],AU.prototype,"showTooltip",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AU.prototype,"useToggledActiveState",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AU.prototype,"dataChanged",null);_.c([_.Tw("disabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AU.prototype,"disabledChanged",null);_.c([_.hG("animationend"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],AU.prototype,"onAnimationEnd",null);
_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],AU);
_.y(AU,"yt-live-chat-icon-toggle-button-renderer",function(){if(Wsa===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;tS0===void 0&&(tS0=document.createElement("template"));var B=tS0;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Wsa=O}O=Wsa;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var ZL5;var zfL;var Ow=function(){return _.u.apply(this,arguments)||this};
_.X(Ow,_.u);Ow.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.c([_.g(),_.Y("design:type",Object)],Ow.prototype,"data",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.c([_.l({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Ow);
_.y(Ow,"yt-live-chat-message-input-prompt-header-renderer",function(){if(zfL===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;ZL5===void 0&&(ZL5=document.createElement("template"));var B=ZL5;G.call(m,B.content.cloneNode(!0),O.content.firstChild);zfL=O}O=zfL;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var JYc;var VSc;var bLa;var n6c;var XYc;var fnO;var hfn=function(){return _.u.apply(this,arguments)||this};
_.X(hfn,_.u);_.c([_.g(),_.Y("design:type",Object)],hfn.prototype,"data",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],hfn);
_.y(hfn,"yt-live-chat-message-subtext-renderer",function(){if(fnO===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;XYc===void 0&&(XYc=document.createElement("template"));var B=XYc;G.call(m,B.content.cloneNode(!0),O.content.firstChild);fnO=O}O=fnO;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var mh=function(){var O=_.u.apply(this,arguments)||this;O.subtextOnBottom=!1;O.buttonOverrides={style:"mono",type:"tonal"};return O};
_.X(mh,_.u);mh.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],mh.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mh.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],mh.prototype,"subtextOnBottom",void 0);_.c([_.g(),_.Y("design:type",Object)],mh.prototype,"buttonOverrides",void 0);
_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],mh);
_.y(mh,"yt-live-chat-message-renderer",function(){if(n6c===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;bLa===void 0&&(bLa=document.createElement("template"));var B=bLa;G.call(m,B.content.cloneNode(!0),O.content.firstChild);n6c=O}O=n6c;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var T9h;var g6A;var Ge=function(){var O=_.u.apply(this,arguments)||this;O.isRemovable=!1;O.hasPrefilledText=!1;O.isInputDirty=!1;O.overCharacterLimit=!1;O.underCharacterLimit=!1;O.showErrorMessage=!1;return O};
_.X(Ge,_.u);_.v=Ge.prototype;_.v.computeId=function(){return this.data.id};
_.v.computeInputData=function(){return this.data.inputData};
_.v.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.v.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.v.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.v.getLiveChatRichMessageInput=function(){return _.ZO(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.v.clearInput=function(){_.ZO(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.v.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.v.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.v.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.v.handleTextInputCharCountChanged=function(O){O=O.detail&&O.detail.characterCount;O!==void 0&&(this.characterCount=O,O!==0&&(this.isInputDirty=!0))};
_.v.onInputFocusOut=function(){this.isInputDirty=!0};
_.v.onClickCloseButton=function(){_.iP(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Ge.prototype.handleTextInputCharCountChanged=Ge.prototype.handleTextInputCharCountChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ge.prototype,"data",void 0);_.c([_.g({computed:"computeId(data.id)"}),_.Y("design:type",String)],Ge.prototype,"id",void 0);_.c([_.g({computed:"computeInputData(data.inputData)"}),_.Y("design:type",Object)],Ge.prototype,"inputData",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.Y("design:type",Object)],Ge.prototype,"isRemovable",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.Y("design:type",Object)],Ge.prototype,"hasPrefilledText",void 0);_.c([_.g({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.Y("design:type",Number)],Ge.prototype,"charactersRemaining",void 0);
_.c([_.g(),_.Y("design:type",Number)],Ge.prototype,"characterCount",void 0);_.c([_.g(),_.Y("design:type",Object)],Ge.prototype,"isInputDirty",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.Y("design:type",Object)],Ge.prototype,"overCharacterLimit",void 0);_.c([_.g({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.Y("design:type",Object)],Ge.prototype,"underCharacterLimit",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.Y("design:type",Object)],Ge.prototype,"showErrorMessage",void 0);_.c([_.hG("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Ge.prototype,"handleTextInputCharCountChanged",null);
_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Ge);
_.y(Ge,"yt-live-chat-poll-editor-input",function(){if(g6A===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;T9h===void 0&&(T9h=document.createElement("template"));var B=T9h;G.call(m,B.content.cloneNode(!0),O.content.firstChild);g6A=O}O=g6A;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var uyP;var jMc;var Inn={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Bm=function(){var O=_.u.apply(this,arguments)||this;O.modern=_.V("web_button_rework_with_live");O.closeButtonOverrides={iconPosition:"icon-only"};O.startButtonOverrides={style:"mono",type:"filled"};O.addOptionButtonOverrides={style:"mono",type:"text"};return O};
_.X(Bm,_.u);_.v=Bm.prototype;
_.v.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"}}}}};
_.v.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var O;_.b((O=this.data)==null?void 0:O.startButton,_.v3)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.v.computeId=function(){return this.data&&this.data.id||""};
_.v.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.v.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.v.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.v.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.v.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var O=0;O<this.pollEditorInfoWithDefaults.minPollOptions;O++)this.addPollOptionData()};
_.v.getIsValidPoll=function(){var O=this;if(!this.pollEditorInfoWithDefaults)return!1;var m=this.pollEditorInfoWithDefaults,G=m.minPollOptionChars,B=m.maxPollOptionChars,Q=m.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>m.maxPollQuestionChars)return!1;m=_.ZO(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(m).every(function(H,M){H=H.characterCount;!H&&Q[M]&&(H=O.ytRendererBehavior.getSimpleString(Q[M]).length);return H!==void 0&&H>=G&&H<=B})};
_.v.isValidPollChanged=function(){var O;_.b((O=this.data)==null?void 0:O.startButton,_.v3)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.v.addPollOptionData=function(){var O=this.pollEditorInfoWithDefaults,m=O.maxPollOptionChars,G=O.optionPlaceholderText,B=O.customOptionPlaceholderText,Q=O.pollOptionData;this.currentNumPollOptions>=O.maxPollOptions||(O={liveChatPollOptionInput:{inputData:{placeholder:B[this.currentNumPollOptions]||G,maxCharacterLimit:m},maxCharacterLimit:m,minCharacterLimit:O.minPollOptionChars,hasPrefilledText:!!B[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=O.minPollOptions}},Q.charCountErrorText&&
(O.liveChatPollOptionInput.charCountErrorText=Q.charCountErrorText),Q.charsRemainingAltLabel&&(O.liveChatPollOptionInput.charsRemainingAltLabel=Q.charsRemainingAltLabel),Q.removeOptionAltText&&(O.liveChatPollOptionInput.removeOptionAltText=Q.removeOptionAltText),this.push("pollOptionsData",O),Q=Array.from(_.ZO(_.ZO(this.hostElement).querySelector("#poll-options")).children),Q.forEach(function(H,M){H.polymerController.set("data.id",M)}),_.ZO(Q[Q.length-1]).querySelector("#input").focus())};
_.v.getPollOptionInputValues=function(){var O=this,m=[],G=_.ZO(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),B=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(G).forEach(function(Q,H){var M=null;Q=Q.getLiveChatRichMessageInput();var R;(Q==null?0:(R=Q.textSegments)==null?0:R.length)?M=_.sf(Q):B[H]&&(M=O.formattedStringToLiveChatRichMessageInput(B[H]));m.push(M)});
return m};
_.v.requestCreateAndStartPoll=function(O){var m=this.getPollOptionInputValues();if(!m.some(function(B){return!B})){m={optionText:m};
var G=_.ZO(_.ZO(this.hostElement).querySelector("#poll-question")).firstChild;G&&G.liveChatRichMessageInput&&(m.questionText=_.sf(G.liveChatRichMessageInput));_.tK(this.hostElement,[O,m])}};
_.v.selectedChanged=function(){if(this.selected){var O=_.ZO(_.ZO(this.hostElement).querySelector("#start-button")).firstElementChild;if(O){var m;(m=_.ZO(O).querySelector("#button")||_.zw(O).querySelector("button"))==null||m.focus()}}};
_.v.handleTextInputChanged=function(O){var m;((m=O.target)==null?void 0:m.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=O.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.v.handleStartButtonAction=function(O){O.detail.actionName==="yt-service-request"&&(O.stopPropagation(),(O=O.detail.args[1])&&this.requestCreateAndStartPoll(O))};
_.v.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.v.handleServiceRequestCompleted=function(O){this.createPollRequestInFlight=!1;(O=O.detail&&O.detail.data)&&O.success&&(_.iP(this.hostElement,"picker-cancelled"),_.xc(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.v.onCloseClick=function(){_.iP(this.hostElement,"picker-cancelled");_.xc(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.v.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.v.handlePollEditorInputClosed=function(O){var m=this.pollOptionsData.findIndex(function(G){return G.liveChatPollOptionInput.id===O.detail.id});
this.splice("pollOptionsData",m,1);this.isValidPoll=this.getIsValidPoll()};
_.v.onPickerCancelled=function(){this.reset()};
_.v.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var O=_.ZO(_.ZO(this.hostElement).querySelector("#poll-question")).firstChild;O&&O.setLiveChatRichMessageInput(null);if(O=_.ZO(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){O=_.K(Array.from(O));for(var m=O.next();!m.done;m=O.next())m.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.v.formattedStringToLiveChatRichMessageInput=function(O){return O.simpleText?{text_segments:[O.simpleText]}:{text_segments:O.runs}};
_.vr.Object.defineProperties(Bm.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(Inn,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Bm.prototype.onPickerCancelled=Bm.prototype.onPickerCancelled;Bm.prototype.handlePollEditorInputClosed=Bm.prototype.handlePollEditorInputClosed;Bm.prototype.handleServiceRequestCompleted=Bm.prototype.handleServiceRequestCompleted;Bm.prototype.handleServiceRequestSent=Bm.prototype.handleServiceRequestSent;Bm.prototype.handleTextInputChanged=Bm.prototype.handleTextInputChanged;Bm.prototype.selectedChanged=Bm.prototype.selectedChanged;Bm.prototype.isValidPollChanged=Bm.prototype.isValidPollChanged;
Bm.prototype.shouldInitializePollChanged=Bm.prototype.shouldInitializePollChanged;Bm.prototype.dataChanged=Bm.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Bm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Bm.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Bm.prototype,"modern",void 0);
_.c([_.g(),_.Y("design:type",Object)],Bm.prototype,"closeButtonOverrides",void 0);_.c([_.g(),_.Y("design:type",Object)],Bm.prototype,"startButtonOverrides",void 0);_.c([_.g(),_.Y("design:type",Object)],Bm.prototype,"addOptionButtonOverrides",void 0);_.c([_.g({computed:"computeId(data.id)",reflectToAttribute:!0}),_.Y("design:type",String)],Bm.prototype,"id",void 0);_.c([_.g({value:function(){return[]}}),
_.Y("design:type",Array)],Bm.prototype,"pollOptionsData",void 0);_.c([_.T("pollEditorInfoWithDefaults"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Bm.prototype,"pollQuestionData",null);_.c([_.g({value:0}),_.Y("design:type",Number)],Bm.prototype,"pollQuestionCharacterCount",void 0);_.c([_.T("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Bm.prototype,"pollQuestionCharactersRemaining",null);
_.c([_.g({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.Y("design:type",Boolean)],Bm.prototype,"overQuestionCharacterLimit",void 0);_.c([_.T("data.pollEditorInfo"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Bm.prototype,"pollEditorInfoWithDefaults",null);_.c([_.g({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.Y("design:type",Number)],Bm.prototype,"currentNumPollOptions",void 0);
_.c([_.g({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Bm.prototype,"hasMaxNumPollOptions",void 0);_.c([_.T("pollEditorInfoWithDefaults","pollOptionsData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Bm.prototype,"shouldInitializePoll",null);_.c([_.g(),_.Y("design:type",Object)],Bm.prototype,"isValidPoll",void 0);
_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Bm.prototype,"createPollRequestInFlight",void 0);_.c([_.g(),_.Y("design:type",Object)],Bm.prototype,"selected",void 0);_.c([_.g({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.Y("design:type",Boolean)],Bm.prototype,"showQuestionErrorMessage",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bm.prototype,"dataChanged",null);_.c([_.Tw("shouldInitializePoll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bm.prototype,"shouldInitializePollChanged",null);_.c([_.Tw("isValidPoll"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bm.prototype,"isValidPollChanged",null);
_.c([_.Tw("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bm.prototype,"selectedChanged",null);_.c([_.hG("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Bm.prototype,"handleTextInputChanged",null);
_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bm.prototype,"handleServiceRequestSent",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Bm.prototype,"handleServiceRequestCompleted",null);
_.c([_.hG("yt-live-chat-poll-editor-input-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Bm.prototype,"handlePollEditorInputClosed",null);_.c([_.hG("picker-cancelled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bm.prototype,"onPickerCancelled",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Bm);
_.y(Bm,"yt-live-chat-poll-editor-panel-renderer",function(){if(jMc===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;uyP===void 0&&(uyP=document.createElement("template"));var B=uyP;G.call(m,B.content.cloneNode(!0),O.content.firstChild);jMc=O}O=jMc;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var pY8;var S_8;var Qz=function(){return _.u.apply(this,arguments)||this};
_.X(Qz,_.u);Qz.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Qz.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.vr.Object.defineProperties(Qz.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var O,m;return(O=this.data)==null?void 0:(m=O.title)==null?void 0:m.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var O;return _.eg((O=this.data)==null?void 0:O.onTapCommand)}}});
_.c([_.h(_.yZ.YtEndpointBehavior),_.Y("design:type",Object)],Qz.prototype,"ytEndpointBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Qz.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qz.prototype,"itemId",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Qz.prototype,"hasPromotion",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Qz.prototype,"innertubeCommand",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Qz);
_.y(Qz,"yt-live-chat-product-picker-panel-item-view-model",function(){if(S_8===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;pY8===void 0&&(pY8=document.createElement("template"));var B=pY8;G.call(m,B.content.cloneNode(!0),O.content.firstChild);S_8=O}O=S_8;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var E6L;var Lsc;var Hm=function(){var O=_.u.apply(this,arguments)||this;O.id="product-picker";O.selected=!1;O.closeButtonId="close-button";O.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return O};
_.X(Hm,_.u);_.v=Hm.prototype;_.v.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.v.observeSelected=function(){this.selected&&this.hostElement.focus();var O=_.ZO(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");O.length&&O[0].focus()};
_.v.onCloseBuyFlow=function(){_.iP(this.hostElement,"picker-cancelled")};
_.v.onCloseClick=function(){_.iP(this.hostElement,"picker-cancelled");var O;((O=this.data)==null?0:O.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.b(this.data.closeButton,_.rc))};
_.v.onCloseEngageWithAudienceEditorPanels=function(){_.iP(this.hostElement,"picker-cancelled")};
Hm.prototype.observeSelected=Hm.prototype.observeSelected;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Hm.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Hm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Hm.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Hm.prototype,"id",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Hm.prototype,"selected",void 0);_.c([_.g(),_.Y("design:type",Object)],Hm.prototype,"closeButtonId",void 0);_.c([_.Tw("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hm.prototype,"observeSelected",null);
_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],Hm);
_.y(Hm,"yt-live-chat-product-picker-panel-view-model",function(){if(Lsc===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;E6L===void 0&&(E6L=document.createElement("template"));var B=E6L;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Lsc=O}O=Lsc;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var CCo;var o6h;var Kl=function(){var O=_.u.apply(this,arguments)||this;O.iconId="";O.icon="";O.disabled=!1;O.systemIcons=_.V("kevlar_system_icons");return O};
_.X(Kl,_.u);_.v=Kl.prototype;_.v.computeIconId=function(O){return O&&O.icon&&O.icon.iconType?O.icon.iconType.toLowerCase():""};
_.v.computeIcon=function(O){return O&&O.icon&&O.icon.iconType?(O=O.icon.iconType.toLowerCase(),(O.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+O):""};
_.v.computeDisabled=function(O){return!!O};
_.v.computeCommand=function(O,m){return m?void 0:O};
_.v.computeTooltip=function(O,m){return m&&O?O:""};
_.v.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.vr.Object.defineProperties(Kl.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var O="",m,G,B;if((m=this.data)==null?0:(G=m.text)==null?0:(B=G.runs)==null?0:B.length)O=this.data.text.runs[0].text||"";else{var Q,H;if((Q=this.data)==null?0:(H=Q.text)==null?0:H.simpleText)O=this.data.text.simpleText}var M,R,x;if((M=this.data)==null?0:(R=M.subtext)==null?0:(x=R.runs)==null?0:x.length)O&&(O+=". "),O+=this.data.subtext.runs[0].text||"";else{var t,W;if((t=this.data)==null?0:(W=t.subtext)==
null?0:W.simpleText)O&&(O+=". "),O+=this.data.subtext.simpleText}return O}}});
_.c([_.h(_.yZ.YtEndpointBehavior),_.Y("design:type",Object)],Kl.prototype,"ytEndpointBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Kl.prototype,"data",void 0);_.c([_.g({computed:"computeIconId(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],Kl.prototype,"iconId",void 0);
_.c([_.g({computed:"computeIcon(data)",reflectToAttribute:!0}),_.Y("design:type",Object)],Kl.prototype,"icon",void 0);_.c([_.g({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.Y("design:type",Object)],Kl.prototype,"disabled",void 0);_.c([_.g({computed:"computeCommand(data.command, disabled)"}),_.Y("design:type",Object)],Kl.prototype,"command",void 0);_.c([_.g({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.Y("design:type",String)],Kl.prototype,"tooltip",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Kl.prototype,"systemIcons",void 0);_.c([_.T("data.text","data.subtext"),_.g(),_.Y("design:type",String),_.Y("design:paramtypes",[])],Kl.prototype,"ariaLabel",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Kl);
_.y(Kl,"yt-live-chat-product-button-renderer",function(){if(o6h===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;CCo===void 0&&(CCo=document.createElement("template"));var B=CCo;G.call(m,B.content.cloneNode(!0),O.content.firstChild);o6h=O}O=o6h;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var ln9;var anP;var $Y=function(){var O=_.u.apply(this,arguments)||this;O.selected=!1;O.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 O};
_.X($Y,_.u);_.v=$Y.prototype;_.v.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"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.computeId=function(O){return O.id||""};
_.v.onCloseClick=function(){_.iP(this.hostElement,"picker-cancelled")};
_.v.observeSelected=function(){this.selected&&this.hostElement.focus();var O=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");O.length&&O[0].focus()};
_.v.onCloseBuyFlow=function(){_.iP(this.hostElement,"picker-cancelled")};
_.v.onCloseEngageWithAudienceEditorPanels=function(){_.iP(this.hostElement,"picker-cancelled")};
$Y.prototype.observeSelected=$Y.prototype.observeSelected;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],$Y.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],$Y.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$Y.prototype,"data",void 0);
_.c([_.g({computed:"computeId(data)",reflectToAttribute:!0}),_.Y("design:type",String)],$Y.prototype,"id",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],$Y.prototype,"selected",void 0);_.c([_.Tw("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$Y.prototype,"observeSelected",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],$Y);
_.y($Y,"yt-live-chat-product-picker-renderer",function(){if(anP===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;ln9===void 0&&(ln9=document.createElement("template"));var B=ln9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);anP=O}O=anP;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var kP5;var yYq;var cYP;var Y_5;var M6=function(){return _.u.apply(this,arguments)||this};
_.X(M6,_.u);M6.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()};
M6.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
M6.prototype.created=function(){this.ids={background:_.Wn(),maskOne:_.Wn(),maskTwo:_.Wn(),gradient:_.Wn(),largeBackground:_.Wn(),largeGradientOne:_.Wn(),largeGradientTwo:_.Wn(),largeGradientPath:_.Wn()}};
M6.prototype.maybeLoadAnimationBackground=M6.prototype.maybeLoadAnimationBackground;_.c([_.g({value:!1}),_.Y("design:type",Boolean)],M6.prototype,"useLargeBackground",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],M6.prototype,"useAnimationBackground",void 0);_.c([_.g({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.Y("design:type",Boolean)],M6.prototype,"useRegularBackground",void 0);
_.c([_.g(),_.Y("design:type",Object)],M6.prototype,"ids",void 0);_.c([_.g(),_.Y("design:type",Object)],M6.prototype,"lottieAnimation",void 0);_.c([_.uc("#animation-background"),_.Y("design:type",HTMLDivElement)],M6.prototype,"animationBackground",void 0);_.c([_.Tw("useAnimationBackground"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],M6.prototype,"maybeLoadAnimationBackground",null);
_.c([_.DO({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],M6);
_.y(M6,"yt-live-interactivity-component-background",function(){if(Y_5===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;cYP===void 0&&(cYP=document.createElement("template"));var B=cYP;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Y_5=O}O=Y_5;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var rp=function(){var O=_.u.apply(this,arguments)||this;O.characterCount=0;O.showInputErrorMessage=!1;O.startQnaRequestInFlight=!1;O.modern=_.V("web_button_rework_with_live");O.buttonOverrides={style:"mono",type:"filled"};O.closeButtonOverrides={iconPosition:"icon-only"};O.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return O};
_.X(rp,_.u);_.v=rp.prototype;
_.v.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]]"}}}}}};
_.v.onCharacterCountChanged=function(O){var m,G,B,Q,H=(G=_.b(this==null?void 0:(m=this.data)==null?void 0:m.creatorCallForQuestions,Vuc))==null?void 0:(B=G.inputField)==null?void 0:(Q=B.liveChatTextInputFieldRenderer)==null?void 0:Q.maxCharacterLimit,M,R;H!=null&&(O==null?void 0:(M=O.detail)==null?void 0:M.characterCount)!=null&&_.b(this==null?void 0:(R=this.data)==null?void 0:R.startButton,_.v3)&&(m=O.detail.characterCount>H,this.set("data.startButton.buttonRenderer.isDisabled",O.detail.characterCount===
0||m),this.showInputErrorMessage=m)};
_.v.onCloseClick=function(){_.iP(this.hostElement,"picker-cancelled");_.xc(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.v.onPickerCancelled=function(){var O=_.ZO(this.hostElement).querySelector("#qna-creator-text-input-field");O&&O.setLiveChatRichMessageInput(null)};
_.v.handleOpenQnaStartPanel=function(){var O=_.ZO(this.hostElement).querySelector("#qna-creator-text-input-field");O&&O.focus()};
_.v.handleStartButtonAction=function(O){var m=this;if(O.detail.actionName==="yt-service-request"&&(O.stopPropagation(),O=O.detail.args[1])){var G=_.ZO(this.hostElement).querySelector("#qna-creator-text-input-field"),B;(G==null?0:(B=G.liveChatRichMessageInput)==null?0:B.textSegments)&&G.liveChatRichMessageInput.textSegments.length!==0&&(B={rich_message:_.sf(G.liveChatRichMessageInput)},_.tK(this.hostElement,[O,B]).then(function(){_.iP(m.hostElement,"picker-cancelled")}))}};
_.v.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.v.handleServiceRequestCompleted=function(O){var m;O=O==null?void 0:(m=O.detail)==null?void 0:m.data;(O==null?0:O.actions)&&O.actions.length>0?this.startQnaRequestInFlight=!1:_.xc(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.v.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
rp.prototype.handleServiceRequestError=rp.prototype.handleServiceRequestError;rp.prototype.handleServiceRequestCompleted=rp.prototype.handleServiceRequestCompleted;rp.prototype.handleServiceRequestSent=rp.prototype.handleServiceRequestSent;rp.prototype.onPickerCancelled=rp.prototype.onPickerCancelled;rp.prototype.onCharacterCountChanged=rp.prototype.onCharacterCountChanged;_.c([_.g(),_.Y("design:type",Object)],rp.prototype,"characterCount",void 0);
_.c([_.g(),_.Y("design:type",Object)],rp.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],rp.prototype,"showInputErrorMessage",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],rp.prototype,"startQnaRequestInFlight",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],rp.prototype,"modern",void 0);_.c([_.g(),_.Y("design:type",Object)],rp.prototype,"buttonOverrides",void 0);
_.c([_.g(),_.Y("design:type",Object)],rp.prototype,"closeButtonOverrides",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],rp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.RF),_.Y("design:type",Object)],rp.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.h(_.tn.YtLiveChatItemBehavior),_.Y("design:type",_.WT)],rp.prototype,"ytLiveChatItemBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],rp.prototype,"ytActionHandlerBehavior",void 0);_.c([_.hG("yt-live-chat-text-input-field-renderer-character-count-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rp.prototype,"onCharacterCountChanged",null);_.c([_.hG("picker-cancelled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rp.prototype,"onPickerCancelled",null);
_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rp.prototype,"handleServiceRequestSent",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rp.prototype,"handleServiceRequestCompleted",null);
_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],rp.prototype,"handleServiceRequestError",null);_.c([_.l({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],rp);
_.y(rp,"yt-live-chat-qna-start-panel-renderer",function(){if(yYq===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;kP5===void 0&&(kP5=document.createElement("template"));var B=kP5;G.call(m,B.content.cloneNode(!0),O.content.firstChild);yYq=O}O=yYq;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var dM9;var wY8;var RL=function(){return _.u.apply(this,arguments)||this};
_.X(RL,_.u);RL.prototype.dismiss=function(){_.iP(this.hostElement,"yt-live-chat-error-message-dismiss")};
RL.prototype.edit=function(){_.iP(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.c([_.g(),_.Y("design:type",Object)],RL.prototype,"data",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],RL);
_.y(RL,"yt-live-chat-text-actions-error-message-renderer",function(){if(wY8===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;dM9===void 0&&(dM9=document.createElement("template"));var B=dM9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);wY8=O}O=wY8;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var efL;var DM5;var sM0;var N9n;var iv=function(){var O=_.u.apply(this,arguments)||this;O.isDarkTheme=document.documentElement.hasAttribute("dark");O.newnessDotEligible=!1;return O};
_.X(iv,_.u);iv.prototype.sendReaction=function(){var O,m,G=((O=this.data)==null?void 0:O.emojiId)||((m=this.data)==null?void 0:m.emoteId),B;G&&((B=this.data)==null?0:B.shouldTriggerAnimation)&&_.xc(this.hostElement,"yt-create-user-reaction-animation",[G]);var Q;(O=_.eg((Q=this.data)==null?void 0:Q.onTap))&&_.fm(O,this.hostElement);this.showNewnessDot&&_.xc(this.hostElement,"yt-hide-newness-dot")};
iv.prototype.onClick=function(O){(!O||O.clientX||O.clientY)&&this.sendReaction()};
iv.prototype.onKeyDown=function(O){O.key!=="Enter"&&O.key!==" "||O.repeat||this.sendReaction()};
_.vr.Object.defineProperties(iv.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var O,m;return!!(((O=this.data)==null?0:O.emojiId)||((m=this.data)==null?0:m.emoteId))}}});
_.c([_.g(),_.Y("design:type",Object)],iv.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],iv.prototype,"isDarkTheme",void 0);_.c([_.g(),_.Y("design:type",Object)],iv.prototype,"newnessDotEligible",void 0);_.c([_.T("data.maybeShowNewnessDot"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],iv.prototype,"showNewnessDot",null);_.c([_.T("data.emojiId","data.emoteId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],iv.prototype,"useYtImage",null);
_.c([_.DO({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],iv);
_.y(iv,"yt-reaction-control-panel-button-view-model",function(){if(N9n===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;sM0===void 0&&(sM0=document.createElement("template"));var B=sM0;G.call(m,B.content.cloneNode(!0),O.content.firstChild);N9n=O}O=N9n;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var PC0;var Fsc;var xY=function(){var O=_.u.apply(this,arguments)||this;O.reactionControlPanelExpanded=!1;O.isDarkTheme=document.documentElement.hasAttribute("dark");O.newnessDotEligible=!1;return O};
_.X(xY,_.u);_.v=xY.prototype;_.v.expandedButtonsChanged=function(){var O,m;_.n7(this.hostElement,{"--expanded-buttons-height":((m=(O=this.expandedButtonsData)==null?void 0:O.length)!=null?m:0)*36+"px"})};
_.v.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}}};
_.v.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.v.onMouseLeave=function(){var O=this;this.collapseTimer=setTimeout(function(){O.reactionControlPanelExpanded=!1},500)};
_.v.onFocusIn=function(){this.onMouseEnter()};
_.v.onFocusOut=function(){this.onMouseLeave()};
_.v.onCollapsedButtonFocusIn=function(){var O=this;setTimeout(function(){var m;(m=O.expandedButtons.querySelector("button"))==null||m.focus()},100)};
_.v.onCollapsedButtonFocusOut=function(O){O.stopPropagation()};
_.vr.Object.defineProperties(xY.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var O,m;return _.aM.unsafeClone((O=this.liveReactionsData)==null?void 0:O.emojiButtonData)||((m=this.data)==null?void 0:m.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var O;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((O=this.data)==null||!O.maybeShowNewnessDot)}}});
xY.prototype.expandedButtonsChanged=xY.prototype.expandedButtonsChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],xY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.RF),_.Y("design:type",Object)],xY.prototype,"ytLiveChatReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],xY.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],xY.prototype,"reactionControlPanelExpanded",void 0);_.c([_.g({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Pyn}),_.Y("design:type",Object)],xY.prototype,"liveReactionsData",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],xY.prototype,"isDarkTheme",void 0);_.c([_.g(),_.Y("design:type",Object)],xY.prototype,"newnessDotEligible",void 0);
_.c([_.T("liveReactionsData","data.expandedButtons"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xY.prototype,"expandedButtonsData",null);_.c([_.T("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.g({reflectToAttribute:!0}),_.Y("design:type",Object),_.Y("design:paramtypes",[])],xY.prototype,"showNewnessDot",null);_.c([_.uc("#expanded-buttons"),_.Y("design:type",HTMLElement)],xY.prototype,"expandedButtons",void 0);
_.c([_.Tw("expandedButtonsData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xY.prototype,"expandedButtonsChanged",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],xY);
_.y(xY,"yt-reaction-control-panel-view-model",function(){if(Fsc===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;PC0===void 0&&(PC0=document.createElement("template"));var B=PC0;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Fsc=O}O=Fsc;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var q6=new _.YG("yt-live-chat"),AYG=Date.parse("2024-7-24"),Uw=function(){var O=_.u.apply(this,arguments)||this;O.emojiManager=_.UL;O.newnessDotEligible=!1;O.newnessDotImpressionCounted=!1;O.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return O};
_.X(Uw,_.u);_.v=Uw.prototype;_.v.emojiCustomizationEnabledChanged=function(){var O;((O=this.data)==null?0:O.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((O=q6.getCreationTime("emoji-customization-count"))&&O<AYG&&q6.set("emoji-customization-count","0"),O=Number(q6.get("emoji-customization-count"))||0,O<3&&(this.newnessDotEligible=!0,q6.set("emoji-customization-count",(O+1).toString())),this.newnessDotImpressionCounted=!0)};
_.v.hideNewnessDot=function(){this.newnessDotEligible=!1;q6.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.v.handleReactionsMute=function(O){var m=_.yA(),G=_.Zv(206221),B={checkboxData:{state:O?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};m&&_.Gk(m,G,B);this.reactionsMuted=O};
_.v.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.v.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}}};
_.vr.Object.defineProperties(Uw.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var O;return(!((O=this.liveReactionsData)==null||!O.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Uw.prototype.liveReactionsSettingChanged=Uw.prototype.liveReactionsSettingChanged;Uw.prototype.emojiCustomizationEnabledChanged=Uw.prototype.emojiCustomizationEnabledChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.RF),_.Y("design:type",Object)],Uw.prototype,"ytLiveChatReduxBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Uw.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Uw.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",_.iO)],Uw.prototype,"emojiManager",void 0);_.c([_.g(),_.Y("design:type",Object)],Uw.prototype,"newnessDotEligible",void 0);_.c([_.g(),_.Y("design:type",Object)],Uw.prototype,"newnessDotImpressionCounted",void 0);
_.c([_.g({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:FAh}),_.Y("design:type",Boolean)],Uw.prototype,"liveReactionsSetting",void 0);_.c([_.g({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Pyn}),_.Y("design:type",Object)],Uw.prototype,"liveReactionsData",void 0);_.c([_.g({value:function(){var O=_.V("enable_lwe_web_mute"),m=q6.get("allow-reactions");return m===void 0?!1:!m&&O}}),
_.Y("design:type",Boolean)],Uw.prototype,"reactionsMuted",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Uw.prototype,"liveReactionsEnabled",null);_.c([_.Tw("data.emojiCustomizationEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uw.prototype,"emojiCustomizationEnabledChanged",null);
_.c([_.Tw("liveReactionsEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Uw.prototype,"liveReactionsSettingChanged",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Uw);
_.y(Uw,"yt-reaction-control-panel-overlay-view-model",function(){if(DM5===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;efL===void 0&&(efL=document.createElement("template"));var B=efL;G.call(m,B.content.cloneNode(!0),O.content.firstChild);DM5=O}O=DM5;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var Odq={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(O){var m=this.$.pickers.selected;if(m){_.ZO(this.hostElement).removeAttribute(m+"-open");var G="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(G="#picker-buttons",m==="emoji"&&_.ZO(this.hostElement).querySelector("#emoji-picker-button")&&(G="#emoji-picker-button"));if(G=_.ZO(this.hostElement).querySelector(G).querySelector("#"+m))G.active=!1}G=O;m==O&&(G=null);m!=
O&&_.ZO(this.hostElement).setAttribute(O+"-open","");this.$.pickers.selected=G;_.xc(this.hostElement,"yt-live-chat-picker-changed",[G])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var tA=function(){var O=_.u.apply(this,arguments)||this;O.numSentMessages=0;O.timeoutDurationMs=0;O.timeoutMs=0;O.lastTimeoutTimeMs=0;O.pendingMessageId="";O.hasFiredInitialFocusActions=!1;O.isBeforeFocusEnabled=!0;O.id="";O.characterCount=0;O.maxCharacterLimit=0;O.remainingCharacterCount=0;O.inputExpanded=!1;O.buttonOverrides={iconPosition:"icon-only"};O.inReplyPanel=!1;O.countdownRatio=0;O.isTooltipVisible=!1;O.tooltipTimeout=1E4;O.systemIcons=_.V("kevlar_system_icons");O.tallerEmojiPicker=_.V("live_chat_taller_emoji_picker");
O.sendReplyMessageInFlight=!1;O.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"};O.onResize=function(){O.maybeToggleCharacterCount()};
return O};
_.X(tA,_.u);_.v=tA.prototype;
_.v.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"}}}};
_.v.attached=function(){window.addEventListener("resize",this.onResize)};
_.v.detached=function(){window.removeEventListener("resize",this.onResize)};
_.v.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.v.sendMessage=function(){var O=this,m,G,B,Q;return _.r(function(H){if(O.sendDisabled)return H.return();O.isTooltipVisible&&_.xc(O.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(O.data.sendButton&&O.data.sendButton.buttonRenderer){O.input.completeEmojis();m=O.data.sendButton.buttonRenderer.serviceEndpoint;if(!m)return H.return();B=((G=_.b(m,_.yxC))==null?void 0:G.clientIdPrefix)||"";Q={client_message_id:B+String(O.numSentMessages++),rich_message:_.sf(O.input.liveChatRichMessageInput)};
O.pendingMessageId=Q.client_message_id;O.inReplyPanel&&(O.sendReplyMessageInFlight=!0);_.tK(O.hostElement,[m,Q]);O.input.setLiveChatRichMessageInput(null)}_.ju(H)})};
_.v.handleSendButtonAction=function(O){O.detail.actionName==="yt-service-request"&&(O.stopPropagation(),this.sendMessage())};
_.v.onSendCompleted=function(O,m){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(O=this.get("timeoutDurationUsec",m.data))&&this.handleTimeout(Number(O)/1E3);this.errorMessage=this.get("errorMessage",m.data);this.pendingMessageId=""};
_.v.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.xc(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.v.handlePickerButtonToggle=function(O){O=O.detail.targetId;this.ytPickerBehavior.togglePicker_(O);if(O==="emoji")this.input.focus();else if(O==="qna-start-panel"){var m,G;(m=_.ZO(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(G=m.querySelector("#qna-creator-text-input-field"))==null||G.focus()}};
_.v.onComponentReplaced=function(O){var m,G;O.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((m=O.replacement.liveChatMessageInputRenderer)==null?0:(G=m.headerRenderer)==null?0:G.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.v.onEmojiSelect=function(O){this.input.focus();this.input.insertEmoji(O.detail)};
_.v.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.v.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.xc(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.xc(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.v.onOpenPopupAction=function(O,m){var G=this;m===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.xc(G.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.v.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.v.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.v.focusChanged=function(){this.maybeToggleCharacterCount()};
_.v.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var O=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",O>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.v.computeId=function(){return this.data&&this.data.targetId||""};
_.v.computeSendDisabled=function(O,m,G,B){O=!!(!O||m&&O>m||B);(m=_.ZO(this.hostElement).querySelector("#send-button"))&&m.children.length&&(m.children[0].disabled=O);return O};
_.v.handleTimeout=function(O){this.timeoutDurationMs=this.timeoutMs=O;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.v.updateTimeout=function(O){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(O-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=O,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.v.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.v.onErrorMessageEdit=function(O){this.input.setLiveChatRichMessageInput(O.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.v.errorMessageChanged=function(){var O=this;_.mp(function(){_.xc(O.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.v.computeAuthorNameColor=function(O){var m;if(_.V("live_chat_author_name_color_usernames")&&(O==null?0:(m=O.authorName)==null?0:m.simpleText))return _.DEs(_.s2S(O.authorName.simpleText));if(_.V("live_chat_seed_color_usernames")&&(O==null?0:O.authorSeedColorArgb))return _.DEs(_.J1(O.authorSeedColorArgb));if(_.V("live_chat_colored_usernames"))return"#cc0000";var G;return _.V("live_chat_simple_color_usernames")&&(O==null?0:(G=O.authorName)==null?0:G.simpleText)&&(O==null?0:O.authorUsernameColorLight)&&
(O==null?0:O.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.J1(O.authorUsernameColorDark):_.J1(O.authorUsernameColorLight):""};
_.v.onIsTooltipVisibleChanged=function(){var O=_.ZO(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){O.hidden=!1;O.setAttribute("role","alert")},0):(O.hidden=!0,O.removeAttribute("role"))};
_.v.onFocusedChanged=function(O){this.inputFocused=O.detail.value};
_.vr.Object.defineProperties(tA.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 O;return!((O=this.data)==null||!O.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?void 0:(m=O.pickers)==null?void 0:m.find(function(G){return G.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var O=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return O?this.ytRendererBehavior.getSimpleString(O):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
tA.prototype.onIsTooltipVisibleChanged=tA.prototype.onIsTooltipVisibleChanged;tA.prototype.errorMessageChanged=tA.prototype.errorMessageChanged;tA.prototype.onErrorMessageEdit=tA.prototype.onErrorMessageEdit;tA.prototype.onErrorMessageDismiss=tA.prototype.onErrorMessageDismiss;tA.prototype.focusChanged=tA.prototype.focusChanged;tA.prototype.characterCountChanged=tA.prototype.characterCountChanged;tA.prototype.onEmojiSelect=tA.prototype.onEmojiSelect;tA.prototype.handlePickerButtonToggle=tA.prototype.handlePickerButtonToggle;
tA.prototype.onSendError=tA.prototype.onSendError;tA.prototype.onSendCompleted=tA.prototype.onSendCompleted;tA.prototype.sendMessage=tA.prototype.sendMessage;tA.prototype.dataChanged=tA.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],tA.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h(Odq.YtPickerBehavior),_.Y("design:type",Object)],tA.prototype,"ytPickerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.iL.YtLiveChatTooltipTargetingBehavior),_.Y("design:type",Object)],tA.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],tA.prototype,"hasFiredInitialFocusActions",void 0);
_.c([_.g(),_.Y("design:type",Object)],tA.prototype,"isBeforeFocusEnabled",void 0);_.c([_.g(),_.Y("design:type",Object)],tA.prototype,"data",void 0);_.c([_.g({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.Y("design:type",Object)],tA.prototype,"id",void 0);_.c([_.g(),_.Y("design:type",Object)],tA.prototype,"characterCount",void 0);_.c([_.g(),_.Y("design:type",Object)],tA.prototype,"maxCharacterLimit",void 0);
_.c([_.g(),_.Y("design:type",Object)],tA.prototype,"remainingCharacterCount",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],tA.prototype,"inputExpanded",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tA.prototype,"inputFocused",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],tA.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.c([_.g(),_.Y("design:type",_.Jn)],tA.prototype,"participantsManager",void 0);
_.c([_.g(),_.Y("design:type",Object)],tA.prototype,"buttonOverrides",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],tA.prototype,"inReplyPanel",void 0);_.c([_.T("characterCount, maxCharacterLimit, countdownActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tA.prototype,"sendDisabled",null);_.c([_.g(),_.Y("design:type",Object)],tA.prototype,"countdownRatio",void 0);
_.c([_.T("countdownRatio"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],tA.prototype,"countdownStrokeDashOffset",null);_.c([_.T("countdownRatio"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tA.prototype,"countdownActive",null);_.c([_.T("data.interactionMessage"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tA.prototype,"hasInteractionMessage",null);
_.c([_.T("data.emojiPickerButton"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tA.prototype,"hasEmojiPickerButton",null);_.c([_.T("data, characterCount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tA.prototype,"showAvatar",null);_.c([_.T("data.pickers"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tA.prototype,"hasProductPickerPanelViewModel",null);
_.c([_.g(),_.Y("design:type",Object)],tA.prototype,"errorMessage",void 0);_.c([_.g(),_.Y("design:type",Object)],tA.prototype,"genericErrorMessage",void 0);_.c([_.g(),_.Y("design:type",Object)],tA.prototype,"isTooltipVisible",void 0);_.c([_.g(),_.Y("design:type",Object)],tA.prototype,"tooltipTimeout",void 0);_.c([_.T("data.onInitialFocusCommand"),_.Y("design:type",String),_.Y("design:paramtypes",[])],tA.prototype,"tooltipMessage",null);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],tA.prototype,"systemIcons",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],tA.prototype,"tallerEmojiPicker",void 0);_.c([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],tA.prototype,"authorNameColor",null);_.c([_.g(),_.Y("design:type",Object)],tA.prototype,"sendReplyMessageInFlight",void 0);_.c([_.uc("#input"),_.Y("design:type",_.p0p)],tA.prototype,"input",void 0);
_.c([_.uc("#count"),_.Y("design:type",HTMLElement)],tA.prototype,"count",void 0);_.c([_.uc("#input-container"),_.Y("design:type",HTMLElement)],tA.prototype,"inputContainer",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"dataChanged",null);_.c([_.hG("yt-live-chat-send-message"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],tA.prototype,"sendMessage",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,_.Qp]),_.Y("design:returntype")],tA.prototype,"onSendCompleted",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"onSendError",null);
_.c([_.hG("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],tA.prototype,"handlePickerButtonToggle",null);_.c([_.hG("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],tA.prototype,"onEmojiSelect",null);
_.c([_.Tw("characterCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"characterCountChanged",null);_.c([_.Tw("inputFocused"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"focusChanged",null);_.c([_.hG("yt-live-chat-error-message-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"onErrorMessageDismiss",null);
_.c([_.hG("yt-live-chat-error-message-edit"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],tA.prototype,"onErrorMessageEdit",null);_.c([_.Tw("errorMessage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"errorMessageChanged",null);_.c([_.Tw("isTooltipVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tA.prototype,"onIsTooltipVisibleChanged",null);
_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],tA);
_.y(tA,"yt-live-chat-message-input-renderer",function(){if(VSc===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;JYc===void 0&&(JYc=document.createElement("template"));var B=JYc;G.call(m,B.content.cloneNode(!0),O.content.firstChild);VSc=O}O=VSc;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var mZc;var Gy9;var Wm=function(){var O=_.u.apply(this,arguments)||this;O.systemIcons=_.V("kevlar_system_icons");O.firedOnClickCommand=!1;O.inReplyPanel=!1;return O};
_.X(Wm,_.u);
Wm.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"}}}};
Wm.prototype.onButtonToggle=function(O){O.target.disabled||this.ytPickerBehavior.togglePicker_(O.detail.targetId)};
Wm.prototype.onClick=function(){var O=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.xc(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return O.firedOnClickCommand=!1},5E3))};
_.vr.Object.defineProperties(Wm.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?void 0:(m=O.panels)==null?void 0:m.find(function(G){return G.liveChatProductPickerPanelViewModel}))!==void 0}}});
Wm.prototype.onButtonToggle=Wm.prototype.onButtonToggle;_.c([_.h(Odq.YtPickerBehavior),_.Y("design:type",Object)],Wm.prototype,"ytPickerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Wm.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Wm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Wm.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Wm.prototype,"systemIcons",void 0);_.c([_.g({reflectToAttribute:!1}),_.Y("design:type",Object)],Wm.prototype,"firedOnClickCommand",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Wm.prototype,"inReplyPanel",void 0);_.c([_.T("data.pickers"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Wm.prototype,"hasProductPickerPanelViewModel",null);
_.c([_.hG("yt-live-chat-icon-toggle-button-renderer-toggle"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Wm.prototype,"onButtonToggle",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Wm);
_.y(Wm,"yt-live-chat-restricted-participation-renderer",function(){if(Gy9===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;mZc===void 0&&(mZc=document.createElement("template"));var B=mZc;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Gy9=O}O=Gy9;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var Z7=function(){var O=_.u.apply(this,arguments)||this;O.genericErrorMessage=_.Qg("Error, try again.");O.inReplyPanel=!1;O.hideBorder=!1;return O};
_.X(Z7,_.u);Z7.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}}}}}};
_.vr.Object.defineProperties(Z7,{template:{configurable:!0,enumerable:!0,get:function(){return UMh()}}});
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Z7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Z7.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Z7.prototype,"genericErrorMessage",void 0);_.c([_.g(),_.Y("design:type",Object)],Z7.prototype,"inReplyPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Z7.prototype,"hideBorder",void 0);
_.c([_.DO({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Z7);_.y(Z7,"yt-live-chat-engagement-panel-input-renderer",function(){return UMh()},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var B_n,QwP;B_n=_.Zv(115994);QwP=_.Zv(115993);_.ze=function(O,m,G){var B=this;var Q=G.dragDownAction;this.layer=0;this.JSC$22586_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return B.dragDownAction()}}}};
this.JSC$22586_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return B.dragDownAction()}}}};
this.fullscreen=!1;var H=_.uK();_.CK(H,B_n,this.layer);_.CK(H,QwP,this.layer);this.dragDownAction=function(){Q();_.P6(H,{visualElement:B.fullscreen?B_n:QwP})};
this.gesture=new _.k8(O,m,this.getConfig(!1),"pandown");this.attach()};
_.ze.prototype.attach=function(){this.gesture.attach()};
_.ze.prototype.detach=function(){this.gesture.detach()};
_.ze.prototype.update=function(O){this.fullscreen=O;var m=this.gesture;O=this.getConfig(O);m.config=O};
_.ze.prototype.getConfig=function(O){return O?this.JSC$22586_watchFullScreenConfig:this.JSC$22586_watchConfig};var HdG={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(O){if(O&&O.length==1&&Array.isArray(O[0].loggingUrls)){O=_.aM.unsafeClone(O[0]);var m=this.macros||{},G=this.getAdModuleClient_();if(!G)return _.ZY();O.loggingUrls.forEach(function(B){if(B.baseUrl){var Q=B.baseUrl;var H=m;H=H===void 0?{}:H;Q=G.getOptions().includes("replaceUrlMacros")?_.FQp(G,"replaceUrlMacros",{url:Q,additionalMapping:H}):Q;B.baseUrl=Q}},this);
O=[O]}return _.tK(this.hostElement,O)},
getAdModuleClient_:function(){var O=_.M1(this);return O?(O=O.getPlayer())?new _.OA(O):null:null}}]};var va0;var JA=function(){var O=_.u.apply(this,arguments)||this;O.isCollapsed=!1;O.modernPanels=_.V("kevlar_watch_modern_panels");O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return O};
_.X(JA,_.u);_.v=JA.prototype;_.v.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.onDonateTap=function(){var O=this.get("data.donateButton.buttonRenderer.command");if(O){var m=_.yA(),G=this.get("data.donateButton.buttonRenderer.trackingParams");m&&G&&_.Gk(m,_.Ez(G));this.ytOpenPopupBehavior.openPopup(O)}};
_.v.onShowMore=function(){this.isCollapsed=!1;var O=_.yA(),m=this.get("data.expandButton.buttonRenderer.trackingParams");O&&m&&_.Gk(O,_.Ez(m))};
_.v.onShowLess=function(){this.isCollapsed=!0};
_.v.dataChanged=function(){_.n7(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.v.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.v.handleUpdate=function(O){if(O=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",O))this.set("data.startLabel",O.startLabel),this.set("data.endLabel",O.endLabel),this.set("data.progress",O.progress),this.set("data.amountRaisedLabel",O.amountRaisedLabel),this.dataChanged()};
_.v.handleOpenPopupAction=function(O){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",O)&&_.xc(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.v.computeHeaderBackgroundUrl=function(O,m){if(O)return m?O.headerBackgroundDarkUrl:O.headerBackgroundUrl};
_.v.isProgressBarVisible=function(O){return!(!O||O.progress===void 0)};
_.v.headerBackgroundClass=function(){return _.kB("HTML_DIR")==="rtl"?"flip":""};
JA.prototype.dataChanged=JA.prototype.dataChanged;_.c([_.h(_.ko.YtOpenPopupBehavior),_.Y("design:type",Object)],JA.prototype,"ytOpenPopupBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],JA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],JA.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],JA.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],JA.prototype,"isCollapsed",void 0);_.c([_.g({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.Y("design:type",String)],JA.prototype,"headerBackgroundUrl",void 0);_.c([_.g(),_.Y("design:type",Boolean)],JA.prototype,"isDarkTheme",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],JA.prototype,"modernPanels",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JA.prototype,"dataChanged",null);_.c([_.l({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],JA);
_.y(JA,"ytd-donation-shelf-renderer",function(){if(va0!==void 0)return va0;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return va0=O},{mode:1});var K_0;var $Zo=function(){return _.u.apply(this,arguments)||this};
_.X($Zo,_.u);_.c([_.g(),_.Y("design:type",Object)],$Zo.prototype,"data",void 0);_.c([_.l({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],$Zo);
_.y($Zo,"ytd-donation-unavailable-renderer",function(){if(K_0!==void 0)return K_0;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return K_0=O},{mode:1});var MeA;var Vz=function(){return _.u.apply(this,arguments)||this};
_.X(Vz,_.u);Vz.prototype.computeIconType=function(O){return O?"yt-icons:"+O.toLowerCase():null};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Vz.prototype,"data",void 0);_.c([_.l({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Vz);
_.y(Vz,"ytd-limited-state-message-renderer",function(){if(MeA!==void 0)return MeA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return MeA=O},{mode:1});var rF9;var bv=function(){return _.u.apply(this,arguments)||this};
_.X(bv,_.u);bv.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
bv.prototype.onTap=function(O){var m=this.data&&this.data.endpoint;m&&!_.Hu(_.$Z(O),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.iP(this.hostElement,"yt-navigate",{endpoint:m})};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],bv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],bv.prototype,"data",void 0);_.c([_.l({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],bv);
_.y(bv,"ytd-autotagging-metadata-renderer",function(){if(rF9!==void 0)return rF9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return rF9=O},{mode:1});var REL;var nl=function(){return _.u.apply(this,arguments)||this};
_.X(nl,_.u);nl.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],nl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],nl.prototype,"data",void 0);_.c([_.l({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],nl);
_.y(nl,"ytd-autotagging-metadata-row-renderer",function(){if(REL!==void 0)return REL;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return REL=O},{mode:1});var id9;var xZO;var Xo=function(){var O=_.u.apply(this,arguments)||this;O.engagementPanelContent=!1;return O};
_.X(Xo,_.u);Xo.prototype.computeHasDividerLine=function(O,m){return O&&!m};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Xo.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.Y("design:type",Boolean)],Xo.prototype,"hasDividerLine",void 0);_.c([_.g(),_.Y("design:type",Object)],Xo.prototype,"engagementPanelContent",void 0);
_.c([_.l({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Xo);
_.y(Xo,"ytd-metadata-row-header-renderer",function(){if(xZO!==void 0)return xZO;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return xZO=O},{mode:1});var q0c;var fl=function(){return _.u.apply(this,arguments)||this};
_.X(fl,_.u);fl.prototype.computeHasDividerLine=function(O){return O};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],fl.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Y("design:type",Boolean)],fl.prototype,"hasDividerLine",void 0);_.c([_.l({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],fl);
_.y(fl,"ytd-metadata-row-renderer",function(){if(q0c!==void 0)return q0c;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return q0c=O},{mode:1});var UZn;var te8=function(){return _.u.apply(this,arguments)||this};
_.X(te8,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],te8.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],te8.prototype,"data",void 0);_.c([_.l({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],te8);
_.y(te8,"ytd-metadata-with-image-row-renderer",function(){if(UZn!==void 0)return UZn;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return UZn=O},{mode:1});var W_n;var hA=function(){var O=_.u.apply(this,arguments)||this;O.rounded=!0;O.fixie=!1;O.fullWidth=!1;return O};
_.X(hA,_.u);_.v=hA.prototype;_.v.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.onDataChanged=function(){var O=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(m){O.onEndpointLinkKeyPress(m)}))};
_.v.onEndpointLinkKeyPress=function(O){O.target===this.endpointLink&&O.keyCode===13&&_.iP(this.hostElement,"click")};
_.v.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var O;if((O=this.data)==null?0:O.endpoint)_.Wd(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.v.onYtNavigate=function(O){this.endpointHref||(O.stopPropagation(),O.preventDefault())};
_.v.onInformationButtonContainerClick=function(O){O.target.id!=="information-button-container"&&(O.stopPropagation(),O.preventDefault())};
_.v.computeStyle=function(O){return O};
_.v.computeIsThumbnailStyle=function(O){return O==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.v.computeThumbnailWidth=function(O){switch(O){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}};
_.v.computeThumbnailObjectFit=function(O){switch(O){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.vr.Object.defineProperties(hA.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?0:O.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
hA.prototype.onYtNavigate=hA.prototype.onYtNavigate;hA.prototype.onClick=hA.prototype.onClick;hA.prototype.onDataChanged=hA.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],hA.prototype,"componentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],hA.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],hA.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],hA.prototype,"componentStyle",void 0);_.c([_.g({computed:"computeIsThumbnailStyle(data.style)"}),_.Y("design:type",Boolean)],hA.prototype,"isThumbnailStyle",void 0);_.c([_.g({computed:"computeThumbnailObjectFit(data.style)"}),_.Y("design:type",String)],hA.prototype,"thumbnailObjectFit",void 0);
_.c([_.g({computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],hA.prototype,"thumbnailWidth",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hA.prototype,"rounded",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hA.prototype,"fixie",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hA.prototype,"fullWidth",void 0);_.c([_.uc("#endpoint-link"),_.Y("design:type",HTMLAnchorElement)],hA.prototype,"endpointLink",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hA.prototype,"onDataChanged",null);_.c([_.T("data.endpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hA.prototype,"endpointHref",null);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],hA.prototype,"onClick",null);
_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],hA.prototype,"onYtNavigate",null);_.c([_.l({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],hA);
_.y(hA,"ytd-rich-metadata-renderer",function(){if(W_n!==void 0)return W_n;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return W_n=O},{mode:_.ZB("kevlar_poly_si_batch_j075")?1:2});var Zd5;var Te=function(){var O=_.u.apply(this,arguments)||this;O.fixie=!1;O.fullWidth=!1;return O};
_.X(Te,_.u);Te.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Te.prototype.computeHasDividerLine=function(O){return O};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Te.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Te.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.Y("design:type",Boolean)],Te.prototype,"hasDividerLine",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Te.prototype,"fixie",void 0);_.c([_.g(),_.Y("design:type",Object)],Te.prototype,"fullWidth",void 0);
_.c([_.l({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Te);
_.y(Te,"ytd-rich-metadata-row-renderer",function(){if(Zd5!==void 0)return Zd5;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Zd5=O},{mode:1});var gp=function(){var O=_.u.apply(this,arguments)||this;O.engagementPanelContent=!1;O.fixie=!1;O.fullWidth=!1;return O};
_.X(gp,_.u);
gp.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"}}}};
gp.prototype.computeCollapsibleItems=function(O,m,G){return O===void 0||m===void 0||G===void 0||G?[]:O.slice(m)};
gp.prototype.computeAlwaysShownItems=function(O,m){return O&&O.length?O.slice(0,m):[]};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],gp.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],gp.prototype,"collapsed",void 0);
_.c([_.g({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.Y("design:type",Array)],gp.prototype,"alwaysShownItems",void 0);_.c([_.g({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.Y("design:type",Array)],gp.prototype,"collapsibleItems",void 0);_.c([_.g(),_.Y("design:type",Object)],gp.prototype,"engagementPanelContent",void 0);_.c([_.g(),_.Y("design:type",Object)],gp.prototype,"fixie",void 0);
_.c([_.g(),_.Y("design:type",Object)],gp.prototype,"fullWidth",void 0);_.c([_.l({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],gp);
_.y(gp,"ytd-metadata-row-container-renderer",function(){if(id9!==void 0)return id9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return id9=O},{mode:1});var zEc;var uv=function(){var O=_.u.apply(this,arguments)||this;O.currentPageUrl="";O.baseUrl="";O.isHiddenByUser=null;O.hidden=!1;O.showAboveScrim=!1;O.watchNextGrid=_.V("kevlar_watch_grid");O.modernButtons=_.V("web_modern_buttons");O.roundedContainer=!0;O.noBorder=!1;O.roundBackground=!_.V("live_chat_round_background_killswitch");O.overflowHideChat=_.V("live_chat_overflow_hide_chat");O.forceDarkTheme=!1;O.theaterWatchWhile=!1;O.isListeningForPlayerProgress=!1;O.JSC$22622_playerEvents=new Map;O.isFrameReady=
!1;O.player=null;O.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 O};
_.X(uv,_.u);_.v=uv.prototype;_.v.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.UB(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.v.created=function(){var O=this;this.handleIframeEventListener=function(m){O.handleIframeEvent(m)};
this.handleKeyboardEventListener=function(m){O.handleKeyboardEvent(m)};
this.JSC$22622_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22622_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22622_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22622_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22622_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.v.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()};
_.v.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};
_.v.computeBaseUrl=function(O){var m="/live_chat";this.isChatReplay()&&(m="/live_chat_replay");return _.ZI(_.WG(_.tZ(_.Ph(O),m),null),"").toString()};
_.v.dataChanged=function(){_.V("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.v.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var O=this.url;if(this.isChatReplay()&&this.player){var m=Math.floor(this.player.getProgressState().current*1E3);O=_.AF(_.Ph(O),"playerOffsetMs",m.toString()).toString()}m=this.chatframe;try{var G=O==="about:blank"?_.oO2:_.d5(O),B=m.contentDocument.location,Q=_.Dq(G);Q!==void 0&&B.replace(Q)}catch(H){m.src=O}}};
_.v.collapsedChanged=function(){_.iP(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.v.handleIframeEvent=function(O){if(O&&this.baseUrl.startsWith(O.origin)&&O.source===this.chatframe.contentWindow&&_.Dp(O.data))if(O.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(O);else if(O.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(O.data["yt-show-feedback-dialog"]){var m=_.KR().resolve(_.v7(_.xp9));if(m){var G=O.ports,B;G&&G.length&&(B=function(){G[0].postMessage({})});
O=O.data["yt-show-feedback-dialog"];m.showFeedbackDialog(O.customProductData,O.feedbackContent,B,O.bucket)}}else if(O.data["yt-show-survey"])_.iP(this.hostElement,"yt-show-survey",O.data["yt-show-survey"]);else if(O.data["yt-purchase-membership"])_.KR().resolve(_.Mu).resolveCommand(O.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(O.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(O.data["yt-tunnel-out-live-service-request"]);else if(O.data["yt-user-activity"])_.KE();
else if(O.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(O.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(O.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(O.data["yt-open-popup"]);else if(O.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(O.data["yt-log-flow-logging-event-command"]);else if(O.data["yt-hide-live-chat"])this.onShowHideChat();else O.data["yt-report-moderation-state-log"]&&
this.player&&(m={cpn:this.player.getVideoData().cpn},_.LE("liveChatBeingModerated",m))};
_.v.attachLiveChatResponseVeTrackingParams=function(O){O=_.Ez(O);var m=_.yA(),G=_.ex("liveChatRenderer.trackingParams",this.data);m&&G&&_.Pd(m,_.Ez(G),O)};
_.v.handleBuyflowMessages=function(O){var m=O.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,G=O.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,B=O.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.O0z(_.Q4(_.K7),m.replace(/-/g,"+").replace(/_/g,"/"),function(Q){O.ports[0].postMessage({success:!0,buyFlowResponse:Q})},void 0,function(Q){O.ports[0].postMessage({success:!1,
error:Q&&Q.message||"Buyflow rejected without error."})},_.TC().get("hl"),void 0,function(){O.ports[0].postMessage({closed:!0})},G,B)};
_.v.setupPlayerProgressRelay=function(){var O=this;if(!this.isListeningForPlayerProgress){var m=_.rR();m!=null&&m.getPlayerPromise&&(m.getPlayerPromise().then(function(G){O.playerApiReady(G)}),this.isListeningForPlayerProgress=!0)}};
_.v.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.v.playerApiReady=function(O){this.setPlayer(O)};
_.v.playerProgressHandler=function(){if(this.player){var O=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":O.current})}};
_.v.playerAdStartHandler=function(O){this.postToContentWindow({"yt-player-ad-start":O})};
_.v.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.v.playerStateChangeHandler=function(O){this.postToContentWindow({"yt-player-state-change":O})};
_.v.setPlayer=function(O){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22622_playerEvents);O&&(this.player=O,this.ytPlayerListenerBehavior.listenToPlayerEvents(O,this.JSC$22622_playerEvents),_.iP(this.hostElement,"player-api-ready"))};
_.v.liveChatPageUrl=function(O,m,G,B){return!G||m?"about:blank":G.liveChatRenderer?(m=_.Ph(this.currentPageUrl).JSC$10033_queryData_,PGG(m),O=_.Ph(O),m.add("continuation",G.liveChatRenderer.continuations[0].reloadContinuationData.continuation),G=_.oh()==="USER_INTERFACE_THEME_DARK",(B||G)&&m.add("dark_theme","true"),_.WG(O,m),B=_.Ph(O.toString()),G=B.JSC$10033_queryData_,"SESSION_INDEX"in _.lz&&(G.add("authuser",_.kB("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.lz&&G.add("pageId",_.kB("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.lz&&G.add("sdc",_.kB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),B.toString()):""};
_.v.isCollapsed=function(O,m){return m!==null?m:this.isChatReplay()||O&&O.conversationBarRenderer&&O.conversationBarRenderer.availabilityMessage?!0:O?O.liveChatRenderer?O.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.V("live_chat_hide_premiere_replay_message")||O.conversationBarRenderer&&O.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.v.isHidden=function(O,m,G){var B=m&&m.conversationBarRenderer&&m.conversationBarRenderer.availabilityMessage,Q=m&&m.liveChatRenderer&&m.liveChatRenderer.showHideButton,H=m&&m.liveChatRenderer&&m.liveChatRenderer.showButton;return G&&O&&!B&&!H||!G&&O&&!B&&!Q?!0:m&&m.liveChatRenderer&&m.liveChatRenderer.initialDisplayState?m.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.v.computeButtonOverride=function(O,m){if(O&&m)return{type:"outline"}};
_.v.setCollapsedState=function(O){_.b(O,_.HUm)&&(this.isHiddenByUser=!!_.b(O,_.HUm).collapsed,!this.isHiddenByUser&&_.V("enable_teaser_framework_web_client")&&_.xc(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.v.forwardReduxActionToIframe=function(O){this.postToContentWindow({"yt-live-chat-forward-redux-action":O})};
_.v.onLoopRangeChange=function(O){this.showAboveScrim=!(O==null||!O.postId)};
_.v.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.v.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.v.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.v.sendDarkThemePostMessage=function(O){this.postToContentWindow({"yt-live-chat-set-dark-theme":O})};
_.v.onLiveChatBuyFlowCallback=function(O){this.postToContentWindow({"yt-live-chat-buy-flow-callback":O})};
_.v.handleKeyboardEvent=function(O){(0,_.aM.containsValue)(NC9,O.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:O.type,keyCode:O.keyCode}})};
_.v.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.v.postToContentWindow=function(O){if(this.isFrameReady)try{var m=window.location.protocol+"//"+window.location.host,G;(G=this.chatframe)!=null&&G.contentWindow?this.chatframe.contentWindow.postMessage(O,m):_.ay(new _.j9("Tried posting a message to an iframe with no content window",O))}catch(B){_.oy(B)}};
_.v.shouldHideChatFrame=function(O){return O&&_.V("hide_live_chat_button_when_collapsed")};
_.vr.Object.defineProperties(uv.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.V("live_chat_overflow_hide_chat")||_.V("web_watch_chat_hide_button_killswitch"))return _.V("live_chat_overflow_hide_chat");var O,m,G,B;return!!((O=this.data)==null?0:(m=O.liveChatRenderer)==null?0:(G=m.header)==null?0:(B=G.liveChatHeaderRenderer)==null?0:B.collapseButton)}}});
uv.prototype.collapsedChanged=uv.prototype.collapsedChanged;uv.prototype.urlChanged=uv.prototype.urlChanged;uv.prototype.dataChanged=uv.prototype.dataChanged;uv.prototype.onShowHideChat=uv.prototype.onShowHideChat;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],uv.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],uv.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",_.Vw)],uv.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.h(_.ko.YtOpenPopupBehavior),_.Y("design:type",Object)],uv.prototype,"ytOpenPopupBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],uv.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],uv.prototype,"currentPageUrl",void 0);
_.c([_.g({computed:"computeBaseUrl(currentPageUrl,data)"}),_.Y("design:type",Object)],uv.prototype,"baseUrl",void 0);_.c([_.g({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.Y("design:type",String)],uv.prototype,"url",void 0);_.c([_.g(),_.Y("design:type",Object)],uv.prototype,"isHiddenByUser",void 0);_.c([_.g({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.Y("design:type",Object)],uv.prototype,"hidden",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.Y("design:type",Boolean)],uv.prototype,"collapsed",void 0);_.c([_.g({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.Y("design:type",Boolean)],uv.prototype,"hideChatFrame",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uv.prototype,"showAboveScrim",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uv.prototype,"watchNextGrid",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],uv.prototype,"modernButtons",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uv.prototype,"roundedContainer",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uv.prototype,"noBorder",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],uv.prototype,"roundBackground",void 0);
_.c([_.g({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.Y("design:type",Object)],uv.prototype,"toggleButtonOverride",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],uv.prototype,"overflowHideChat",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uv.prototype,"forceDarkTheme",void 0);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uv.prototype,"enableShowWithoutHideChatButton",null);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uv.prototype,"theaterWatchWhile",void 0);_.c([_.uc("#chatframe"),_.Y("design:type",HTMLIFrameElement)],uv.prototype,"chatframe",void 0);_.c([_.hG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uv.prototype,"onShowHideChat",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uv.prototype,"dataChanged",null);
_.c([_.Tw("url"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uv.prototype,"urlChanged",null);_.c([_.Tw("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uv.prototype,"collapsedChanged",null);_.c([_.l({is:"ytd-live-chat-frame",disableElementRegistration:!0})],uv);
_.y(uv,"ytd-live-chat-frame",function(){if(zEc!==void 0)return zEc;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return zEc=O},{mode:1});var JF8;var jM=function(){var O=_.u.apply(this,arguments)||this;O.modern=_.V("web_modern_buttons");O.buttonOverrides={style:"call-to-action",type:"filled"};return O};
_.X(jM,_.u);jM.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=_.Fs(this.data.backgroundColor)))};
jM.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var O=this.getFormattedStringLoggingDirectives(this.data.headline);O&&this.rendererBehavior.logExplicitClick(O)}};
jM.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var O=this.getFormattedStringLoggingDirectives(this.data.description);O&&this.rendererBehavior.logExplicitClick(O)}};
jM.prototype.getFormattedStringLoggingDirectives=function(O){return O&&O.runs&&O.runs.length>0&&O.runs[0]&&O.runs[0].loggingDirectives?O.runs[0].loggingDirectives:null};
jM.prototype.dataChanged=jM.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],jM.prototype,"rendererBehavior",void 0);_.c([_.h(HdG.YtMacroReplacementBehavior),_.Y("design:type",Object)],jM.prototype,"macroReplacementBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],jM.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],jM.prototype,"navigationEndpoint",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],jM.prototype,"enableColors",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jM.prototype,"modern",void 0);_.c([_.g(),_.Y("design:type",Object)],jM.prototype,"buttonOverrides",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jM.prototype,"dataChanged",null);_.c([_.l({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],jM);
_.y(jM,"ytd-action-basic-immersive-content-renderer",function(){if(JF8!==void 0)return JF8;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return JF8=O},{mode:1});var Veh;var bdO;var IL=function(){return _.u.apply(this,arguments)||this};
_.X(IL,_.u);IL.prototype.dataChanged=function(){var O;((O=this.data)==null?void 0:O.backgroundColor)!==void 0&&_.n7(this.hostElement,{"--bgu-color":_.Fs(this.data.backgroundColor)})};
IL.prototype.onImageTileClick=function(){var O;((O=this.data)==null?0:O.navigationEndpoint)&&_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var m;((m=this.data)==null?0:m.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.vr.Object.defineProperties(IL.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var O;if(((O=this.data)==null?void 0:O.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 O;return((O=this.data)==null?void 0:O.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var O,m,G;if(((O=this.data)==null?void 0:(m=O.detailsLine)==null?void 0:m.texts)!=null&&((G=this.data)==null?void 0:G.detailsLine.texts.length)>0){var B;return(B=this.data)==null?void 0:B.detailsLine.texts.map(function(Q){return Q.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var O,m,G;if(((O=this.data)==null?void 0:(m=O.optionalDetailsLine)==null?void 0:m.texts)!=null&&((G=this.data)==null?void 0:G.optionalDetailsLine.texts.length)>0){var B;return(B=this.data)==null?void 0:B.optionalDetailsLine.texts.map(function(Q){return Q.text}).join("")}return null}}});
IL.prototype.dataChanged=IL.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],IL.prototype,"rendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],IL.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],IL.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data.backgroundColor"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],IL.prototype,"hasBackgroundColor",null);
_.c([_.T("data.objectFit"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],IL.prototype,"getObjectFit",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.tileRenderingStyle"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],IL.prototype,"hasTileMetadata",null);_.c([_.T("data.detailsLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],IL.prototype,"getSecondaryDetails",null);
_.c([_.T("data.optionalDetailsLine"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],IL.prototype,"getOptionalDetails",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],IL.prototype,"dataChanged",null);_.c([_.l({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],IL);
_.y(IL,"ytd-image-tile-renderer",function(){if(bdO!==void 0)return bdO;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return bdO=O},{mode:1});var naO;var pl=function(){return _.u.apply(this,arguments)||this};
_.X(pl,_.u);pl.prototype.getOpenLinkIcon=function(){return _.V("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
pl.prototype.onSitelinkTap=function(){_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.V("kevlar_command_handler_migration_killswitch"))_.Wd(this.hostElement,this.data.clickCommands,this.hostElement);else for(var O=_.K(this.data.clickCommands),m=O.next();!m.done;m=O.next())this.ytComponentBehavior.resolveCommand(m.value)};
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],pl.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],pl.prototype,"rendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],pl.prototype,"data",void 0);_.c([_.l({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],pl);
_.y(pl,"ytd-sitelink-renderer",function(){if(naO!==void 0)return naO;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return naO=O},{mode:1});var SM=function(){var O=_.u.apply(this,arguments)||this;O.paddingFix=_.V("enable_ads_web_ep_buenos_aires_and_padding_fix");return O};
_.X(SM,_.u);SM.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"}}}};
SM.prototype.dataChanged=function(){var O=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(m){m.clickTrackingParams&&delete m.clickTrackingParams;O.ytMacroReplacementBehavior.sendServiceRequestAction([m])})};
SM.prototype.shouldHideFooter=function(O){return!(O&&_.V("use_ads_engagement_panel_desktop_footer_cta"))};
_.vr.Object.defineProperties(SM.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?void 0:O.imageTileRenderers)===void 0||((m=this.data)==null?void 0:m.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(G){var B;return(B=_.b(G,G9h))==null?void 0:B.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?void 0:O.imageTileRenderers)===void 0||((m=this.data)==null?void 0:m.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(G){var B;return((B=_.b(G,G9h))==null?void 0:B.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
SM.prototype.dataChanged=SM.prototype.dataChanged;_.c([_.h(HdG.YtMacroReplacementBehavior),_.Y("design:type",Object)],SM.prototype,"ytMacroReplacementBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],SM.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],SM.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],SM.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],SM.prototype,"paddingFix",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data.imageTileRenderers"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],SM.prototype,"removeBorderFromImageTiles",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.imageTileRenderers"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],SM.prototype,"useFooteredMetadataRenderingStyle",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SM.prototype,"dataChanged",null);_.c([_.l({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],SM);
_.y(SM,"ytd-action-engagement-panel-content-renderer",function(){if(Veh!==void 0)return Veh;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Veh=O},{mode:1});var Xha;var fZc=_.a(function(O){var m=O.data;var G=O.customCommandResolver;return _.q("ad-grid-card-image-full-metadata-view-model",{class:function(){var B;return((B=m().interaction)==null?0:B.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.Mi(_.$V({visibilityCallback:function(B){var Q,H=(Q=m().interaction)==null?void 0:Q.onFirstVisible;B&&H&&_.PE(H)},
showOption:_.Ta}),_.wR(function(){return m().interaction},G)),
"aria-label":function(){var B,Q;return(B=m().interaction)==null?void 0:(Q=B.accessibility)==null?void 0:Q.label}},_.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.q(_.u5,{data:function(){return m().adImage}},{adImageViewModel:function(B){return _.q(_.cw,{data:B.data,
customCommandResolver:G})}})),_.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.q(_.U,{cond:function(){return m().headline},
then:function(B){return _.q(_.Jg,{text:B,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.q(_.U,{cond:function(){return m().detailsLine},
then:function(B){return _.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.q(_.u5,{data:B},{adDetailsLineViewModel:function(Q){return _.q(_.L5,{data:Q.data,customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.q(_.U,{cond:function(){return m().secondaryDetailsLine},
then:function(B){return _.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.q(_.u5,{data:B},{adDetailsLineViewModel:function(Q){return _.q(_.L5,{data:Q.data,customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Jk");var hEa=_.a(function(O){var m=O.data;var G=O.customCommandResolver;return _.q("ad-grid-card-image-view-model",{class:function(){var B;return((B=m().interaction)==null?0:B.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.Mi(_.$V({visibilityCallback:function(B){var Q,H=(Q=m().interaction)==null?void 0:Q.onFirstVisible;B&&H&&_.PE(H)},
showOption:_.Ta}),_.wR(function(){return m().interaction},G)),
"aria-label":function(){var B,Q;return(B=m().interaction)==null?void 0:(Q=B.accessibility)==null?void 0:Q.label}},_.q(_.u5,{data:function(){return m().adImage}},{adImageViewModel:function(B){return _.q(_.cw,{data:B.data,
customCommandResolver:G})}}),_.q("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.q(_.u5,{data:function(){return m().adCardBadge}},{adCardBadgeViewModel:_.f_2})))},"Kk");var T_n=_.a(function(O){var m=O.data;var G=O.customCommandResolver;return _.q("ad-grid-card-text-view-model",{class:function(){var B;return((B=m().interaction)==null?0:B.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.Mi(_.$V({visibilityCallback:function(B){var Q,H=(Q=m().interaction)==null?void 0:Q.onFirstVisible;B&&H&&_.PE(H)},
showOption:_.Ta}),_.wR(function(){return m().interaction},G)),
"aria-label":function(){var B,Q;return(B=m().interaction)==null?void 0:(Q=B.accessibility)==null?void 0:Q.label}},_.q("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.q(_.U,{cond:function(){return m().title},
then:function(B){return _.q(_.Jg,{text:B,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.q("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.q(_.gi,{each:function(){var B;
return((B=m())==null?void 0:B.descriptions)||[]},
keyBy:"INDEX"},function(B){return _.q(_.Jg,{text:B,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.q("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.q(_.u5,{data:function(){return m().moreInfoButton}},{adButtonViewModel:function(B){return _.q(_.ud,{data:B.data,
customCommandResolver:G})}})))},"Lk");var ga0=_.a(function(O){var m=O.data;var G=O.customCommandResolver;var B=O.adGridCardCollectionStyle;return _.q("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.Mi(_.$V({visibilityCallback:function(Q){var H,M=(H=m().interaction)==null?void 0:H.onFirstVisible;Q&&M&&_.PE(M)},
showOption:_.Ta})),style:function(){return"grid-template-columns: repeat("+MAo(B?B():m().style)+", minmax(0, 1fr));"}},_.q(_.u5,{data:function(){var Q;
return(Q=m())==null?void 0:Q.gridCards}},{adGridCardImageViewModel:function(Q){return _.q(hEa,{data:Q.data,
customCommandResolver:G})},
adGridCardImageFullMetadataViewModel:function(Q){return _.q(fZc,{data:Q.data,customCommandResolver:G})},
adGridCardTextViewModel:function(Q){return _.q(T_n,{data:Q.data,customCommandResolver:G})}}))},"Mk");_.qi(_.a(function(O){var m=O.data;return _.q("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.Mi(_.$V({visibilityCallback:function(G){var B,Q=(B=m().interaction)==null?void 0:B.onFirstVisible;G&&Q&&_.PE(Q)},
showOption:_.Ta}),_.wR(function(){return m().interaction},Roa))},_.q("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.q(_.U,{cond:_.pS5("(min-width: "+((0,_.Zu)()+_.wz)+"px)"),
then:function(){return _.q(_.u5,{data:function(){return m().adGridCardCollection}},{adGridCardCollectionViewModel:function(G){return _.q(ga0,{data:G.data,
customCommandResolver:Roa})}})},
else:function(){return _.q(_.u5,{data:function(){return m().adGridCardCollection}},{adGridCardCollectionViewModel:function(G){return _.q(ga0,{data:G.data,
customCommandResolver:Roa,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.q("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.q(_.u5,{data:function(){return m().adButton}},{adButtonViewModel:function(G){return _.q(_.ud,{data:G.data,
customCommandResolver:Roa})}})))},"Nk"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=O.data;return _.q("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.Mi(_.$V({visibilityCallback:function(G){var B,Q=(B=m().interaction)==null?void 0:B.onFirstVisible;G&&Q&&_.PE(Q)},
showOption:_.Ta}),_.wR(function(){return m().interaction},i9G))},_.q("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.q(_.u5,{data:function(){if(_.pS5("(min-width: "+((0,_.Zu)()+_.wz)+"px)")())var G=m().adGridCardCollection;
else{G=Object.assign({},_.b(m().adGridCardCollection,BCq));var B;G.gridCards!==void 0&&((B=G.gridCards)==null?void 0:B.length)>1?G.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":G.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";G={adGridCardCollectionViewModel:G}}return G}},{adGridCardCollectionViewModel:function(G){return _.q(ga0,{data:G.data,
customCommandResolver:i9G})}})),_.q("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.q(_.u5,{data:function(){return m().adButton}},{adButtonViewModel:function(G){return _.q(_.ud,{data:G.data,
customCommandResolver:i9G})}})))},"Ok"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.VZ}});var Ew=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return O};
_.X(Ew,_.u);_.v=Ew.prototype;_.v.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"}}}};
_.v.attached=function(){this.getDataFromPlayerAndRender()};
_.v.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.v.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.v.getDataFromPlayerAndRender=function(){var O=this,m=_.M1(this.hostElement);m&&m.getPlayerPromise().then(function(G){O.getCachedDataAndListen(G)})};
_.v.getCachedDataAndListen=function(O){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(O,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(O,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=O)};
_.v.resolveCachedActions=function(){var O=_.ex("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(O=O&&O())&&!_.aM.isEmpty(O)&&this.sendUpdateEngagementPanelAction(O);(O=(O=_.ex("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&O())&&!_.aM.isEmpty(O)&&this.sendChangeEngagementPanelVisibilityAction(O);(O=(O=_.ex("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&O())&&!_.aM.isEmpty(O)&&this.sendScrollToEngagementPanelCommand(O)};
_.v.sendUpdateEngagementPanelAction=function(O){var m;_.xc(this.hostElement,"yt-update-engagement-panel-action",[(m=_.aM.get(O,"action"))!=null?m:O])};
_.v.sendChangeEngagementPanelVisibilityAction=function(O){_.xc(this.hostElement,"yt-change-engagement-panel-visibility-action",[O])};
_.v.sendScrollToEngagementPanelCommand=function(O){_.xc(this.hostElement,"yt-scroll-to-engagement-panel-command",[O])};
_.v.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.V("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.ay(Error("Po"))};
Ew.prototype.dataChanged=Ew.prototype.dataChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Ew.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Ew.prototype,"componentBehavior",void 0);_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",_.Vw)],Ew.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ew.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ew.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Ew.prototype,"player",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ew.prototype,"dataChanged",null);_.c([_.l({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Ew);
_.y(Ew,"ytd-ads-engagement-panel-content-renderer",function(){if(Xha!==void 0)return Xha;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
return Xha=O},{mode:1});var uKL;var Ll=function(){var O=_.u.apply(this,arguments)||this;O.player=null;O.JSC$22659_playerEvents=new Map;O.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return O};
_.X(Ll,_.u);_.v=Ll.prototype;_.v.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]]"}}}}}};
_.v.created=function(){this.player=null;this.JSC$22659_playerEvents=new Map;this.JSC$22659_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22659_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22659_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22659_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.v.attached=function(){var O=this,m=_.M1();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));m&&m.getPlayerPromise().then(function(G){O.setPlayer(G);O.set("isPageLoad",!1)})};
_.v.setPlayer=function(O){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22659_playerEvents);this.set("player",O);O&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(O,this.JSC$22659_playerEvents),O.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.v.onLoopRangeChange=function(O){var m=_.KR().resolve(_.v7(_.KJ));if((!m||m.isOnWatch())&&this.hostElement.clientHeight){var G;!O&&((G=this.data)==null?0:G.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.v.onVideoProgress=function(O){var m,G,B=((m=this.player)==null?void 0:(G=m.getPresentingPlayerType)==null?void 0:G.call(m))===2;this.isAdPlaying!==B&&this.set("isAdPlaying",B);var Q;if(!B&&(Q=this.player)!=null&&Q.getLoopRange()){G=this.player.getLoopRange();m=G.startTimeMs;G=G.endTimeMs;B=this.player.getProgressState(1).seekableStart;var H;m<B*1E3&&((H=this.data)==null?0:H.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
O=G<O*1E3;var M;((M=this.player)==null?0:M.getLoopRange())&&O&&this.player.seekTo(m/1E3)}};
_.v.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.v.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.v.onYtDeleteClipEngagementPanelCommand=function(O){_.b(O,Z_n).command&&this.ytComponentBehavior.resolveCommand(_.b(O,Z_n).command)};
_.vr.Object.defineProperties(Ll.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.voteCount)||_.Qg("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Ll.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ll.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Ll.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",_.Vw)],Ll.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ll.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Ll.prototype,"isAdPlaying",void 0);_.c([_.g({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],Ll.prototype,"isPageLoad",void 0);_.c([_.g({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],Ll.prototype,"isDarkTheme",void 0);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ll.prototype,"voteCount",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ll.prototype,"channelEndpoint",null);_.c([_.T("channelEndpoint"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ll.prototype,"channelHref",null);_.c([_.l({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Ll);
_.y(Ll,"ytd-clip-attribution-renderer",function(){if(uKL!==void 0)return uKL;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return uKL=O},{mode:1});var jwO;var Cl=function(){var O=_.u.apply(this,arguments)||this;O.player=null;O.JSC$22664_playerEvents=new Map;return O};
_.X(Cl,_.u);_.v=Cl.prototype;_.v.created=function(){this.player=null;this.JSC$22664_playerEvents=new Map;this.JSC$22664_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22664_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22664_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.v.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.v.attached=function(){var O=this,m=_.M1();m&&m.getPlayerPromise().then(function(G){O.setPlayer(G);O.set("isPageLoad",!1)})};
_.v.setPlayer=function(O){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22664_playerEvents);this.set("player",O);if(O){this.ytPlayerListenerBehavior.listenToPlayerEvents(O,this.JSC$22664_playerEvents);var m;(O==null?void 0:(m=O.getPresentingPlayerType)==null?void 0:m.call(O))===2&&this.playerAdStartHandler()}};
_.v.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.v.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.v.onVideoProgress=function(){var O,m,G=((O=this.player)==null?void 0:(m=O.getPresentingPlayerType)==null?void 0:m.call(O))===2;this.isAdPlaying!==G&&this.set("isAdPlaying",G)};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Cl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",_.Vw)],Cl.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Cl.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],Cl.prototype,"isAdPlaying",void 0);
_.c([_.g({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],Cl.prototype,"isPageLoad",void 0);_.c([_.l({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Cl);
_.y(Cl,"ytd-clip-section-footer-renderer",function(){if(jwO!==void 0)return jwO;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return jwO=O},{mode:1});var IZc;var ph9;var S0h=function(){return _.u.apply(this,arguments)||this};
_.X(S0h,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],S0h.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],S0h.prototype,"data",void 0);_.c([_.l({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],S0h);
_.y(S0h,"ytd-clip-ad-state-renderer",function(){if(ph9!==void 0)return ph9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ph9=O},{mode:1});var Ea9;var oL=function(){var O=_.u.apply(this,arguments)||this;O.value="";O.valid=!1;O.userChangedValue=!1;O.disabled=!1;O.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return O};
_.X(oL,_.u);_.v=oL.prototype;_.v.detached=function(){this.userChangedValue=!1};
_.v.handleKeyDown=function(O){if(_.qQ)var m=13;else _.o_I&&_.Ug?m=13:m=13;O.keyCode===m&&O.preventDefault()};
_.v.handleInput=function(){var O=_.ZO(this.hostElement).querySelector("#title");if(O){var m=(O.value||"").replace(/\r|\n/g," ");this.set("value",m);O.value=m;this.valid=O.validate();this.userChangedValue=!0}};
_.v.handleBlur=function(){this.valid=_.ZO(this.hostElement).querySelector("#title").validate()};
_.v.onValueChanged=function(){_.iP(this.hostElement,"title-changed",{title:this.value})};
_.v.onValidChanged=function(){_.iP(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.v.setInput=function(O,m){var G=_.ZO(this.hostElement).querySelector("#title");G&&(G.value=O,this.handleInput(),m&&(G.invalid=!1,this.valid=!0))};
_.v.onClipCreationDisable=function(){this.set("disabled",!0)};
_.v.onClipCreationEnable=function(){this.set("disabled",!1)};
_.v.onClipCreationVisibilityChange=function(O){var m=this;O.visible?requestAnimationFrame(function(){var G;((G=_.ZO(m.hostElement).querySelector("#title"))==null?void 0:G.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
oL.prototype.onValidChanged=oL.prototype.onValidChanged;oL.prototype.onValueChanged=oL.prototype.onValueChanged;oL.prototype.handleBlur=oL.prototype.handleBlur;oL.prototype.handleInput=oL.prototype.handleInput;oL.prototype.handleKeyDown=oL.prototype.handleKeyDown;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],oL.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],oL.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],oL.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],oL.prototype,"value",void 0);_.c([_.g(),_.Y("design:type",Object)],oL.prototype,"valid",void 0);_.c([_.g(),_.Y("design:type",Object)],oL.prototype,"userChangedValue",void 0);_.c([_.g(),_.Y("design:type",Object)],oL.prototype,"disabled",void 0);_.c([_.hG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],oL.prototype,"handleKeyDown",null);
_.c([_.hG("input"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oL.prototype,"handleInput",null);_.c([_.hG("blur"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oL.prototype,"handleBlur",null);_.c([_.Tw("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oL.prototype,"onValueChanged",null);
_.c([_.Tw("valid"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oL.prototype,"onValidChanged",null);_.c([_.l({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],oL);
_.y(oL,"ytd-clip-creation-text-input-renderer",function(){if(Ea9!==void 0)return Ea9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Ea9=O},{mode:1});var L_P;var Cj0;var oa9;var lZL;var aZG;var lv=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};O.pendingStoryboardImages_={};O.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];O.tickLabelInterval=30;O.mediumTickInterval=5;O.largeTickInterval=15;O.aboveRulerHeight=32;O.rulerHeight=50;O.smallTickHeight=4;O.mediumTickHeight=8;O.largeTickHeight=16;O.mediaListeners_=
{};return O};
_.X(lv,_.u);_.v=lv.prototype;_.v.attached=function(){var O=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(m){m=_.K(["screen and (min-resolution: "+m+")","screen and (max-resolution: "+m+")"]);for(var G=m.next();!G.done;G=m.next()){G=G.value;var B=window.matchMedia(G);B&&(O.mediaListeners_[G]=O.updatePixelRatio_.bind(O),B.addEventListener?B.addEventListener("change",O.mediaListeners_[G]):B.addListener?B.addListener(O.mediaListeners_[G]):delete O.mediaListeners_[G])}})};
_.v.detached=function(){this.setPlayer(null);for(var O=_.K(Object.keys(this.mediaListeners_)),m=O.next();!m.done;m=O.next()){var G=m.value;m=this.mediaListeners_[G];(G=window.matchMedia(G))&&(G.removeEventListener?G.removeEventListener("change",m):G.removeListener&&G.removeListener(m))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.v.onVisibilityChangedAction_=function(O){var m=this;O.visible&&!this.player_&&(O=_.M1())&&O.getPlayerPromise().then(function(G){m.setPlayer(G)})};
_.v.setPlayer=function(O){O&&this.set("player_",O)};
_.v.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.v.setUpCanvas_=function(){var O=this.rulerWidth,m=this.devicePixelRatio_,G=this.visible;this.set("canvasReady_",!1);if(G&&m!==0){G=this.aboveRulerHeight+this.rulerHeight;var B=_.ZO(this.hostElement).querySelector("#ticks");B.width=O*m;B.height=G*m;B.style.width=O+"px";B.style.height=G+"px";B.getContext("2d").scale(m,m);this.set("canvasReady_",!0)}};
_.v.drawRuler_=function(O,m,G,B,Q,H,M,R,x,t,W,Z){O&&G&&m&&(O=_.ZO(this.hostElement).querySelector("#ticks"),m=O.getContext("2d"),m.clearRect(0,0,O.width,O.height),m.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),m.lineWidth=2,m.beginPath(),m.moveTo(0,this.aboveRulerHeight),m.lineTo(O.width,this.aboveRulerHeight),m.moveTo(0,O.height),m.lineTo(O.width,O.height),m.stroke(),this.drawRulerTicks_(O,H,Q,B),this.drawStoryboardImages_(O,G,H,Q,B),m.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
m.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(M-H,B,!1),this.rulerHeight),G=this.timeToPixels_(R-H,B,!1),m.fillRect(G,this.aboveRulerHeight,O.width-G,this.rulerHeight),this.drawSpeedLines_(O,H,Z))};
_.v.drawRulerTicks_=function(O,m,G,B){var Q=O.getContext("2d");Q.save();Q.lineWidth=1;for(var H=Math.floor(Math.max(0,m-this.tickLabelInterval));H<m+G;H++){Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var M=(H-m)*B;Q.beginPath();Q.moveTo(M,O.height);var R=this.smallTickHeight;H%this.largeTickInterval===0?R=this.largeTickHeight:H%this.mediumTickInterval===0&&(R=this.mediumTickHeight);Q.lineTo(M,O.height-R);Q.stroke();H%this.tickLabelInterval===0&&(Q.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),Q.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),Q.fillText(k_(H),M+4,12),Q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),Q.moveTo(M,0),Q.lineTo(M,this.aboveRulerHeight),Q.stroke())}Q.restore()};
_.v.percentToHex_=function(O){O=Math.round(O*255).toString(16);O.length<2&&(O="0"+O);return O};
_.v.drawSpeedLines_=function(O,m,G){var B=O.getContext("2d");B.save();var Q=Math.min(25,Math.abs(G)-15)/25,H=O.width*.3*Q,M=O.width*-.3,R=O.width*1.3,x=this.aboveRulerHeight;O=O.height;var t=Math.round(4*Q),W=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");W.length<7&&(W="#"+W.substring(1,4).repeat(2));var Z=this.percentToHex_(.5+Q/2);Z=W+Z;W+="00";if(Q>0)for(Q=0;Q<t;Q++){var z=M+Math.random()*(R-M),J=x+Math.random()*(O-x),n=H+m%H,I=B.createLinearGradient(z,J,z+n,J);
G<0?(I.addColorStop(0,Z),I.addColorStop(.4,Z),I.addColorStop(.9,W)):(I.addColorStop(.1,W),I.addColorStop(.6,Z),I.addColorStop(1,Z));B.strokeStyle=I;B.lineWidth=1;B.beginPath();B.moveTo(z,J);B.lineTo(z+n,J);B.stroke()}B.restore()};
_.v.getStoryboardForTime_=function(O,m,G){G===void 0&&(G=m.getNumberOfStoryboardLevels()-1);O=m.getStoryboardFrameIndex(O,G);return m.getStoryboardFrame(O,G)};
_.v.drawStoryboardImages_=function(O,m,G,B,Q){if(!this.disabled){O=O.getContext("2d");var H=this.getStoryboardForTime_(0,m);if(H){var M=H.width/H.columns;H=H.height/H.rows;var R=M/H,x=this.rulerHeight*R;x=this.tickLabelInterval*(R<this.tickLabelInterval*Q/this.rulerHeight?1/Math.floor(this.tickLabelInterval*Q/x):Math.round(x/(this.tickLabelInterval*Q)));var t=x*Q,W=this.rulerHeight,Z=t/this.rulerHeight,z=Math.floor(Math.max(0,G-x));for(z-=z%x;z<G+B;z+=x){var J=this.getStoryboardForTime_(z,m),n=this.getPreloadedStoryboard_(J.url);
if(n){var I=(z-G)*Q,S=this.aboveRulerHeight,L=J.column*M,C=J.row*H;if(R<Z){var P=W/(t/R);J=M;P*=H;C+=(H-P)/2}else J=t/(W*R)*M,P=H,L+=(M-J)/2;O.drawImage(n,L,C,J,P,I,S,t,W)}else this.fetchStoryboardImage_(J)}}}};
_.v.getPreloadedStoryboard_=function(O){return this.storyboardImages_.find(function(m){if(m.src==O)return!0;var G=m.src.indexOf(O);return G!=-1&&G==m.src.length-O.length})};
_.v.fetchStoryboardImage_=function(O){var m=this,G=this.getPreloadedStoryboard_(O.url),B=this.pendingStoryboardImages_[O.url];G||B!==void 0||(G=new Promise(function(Q){var H=new Image(O.width,O.height);H.src=O.url;H.onload=function(){Q(H)};
H.onerror=function(){Q(null)}}),this.pendingStoryboardImages_[O.url]=G,G.then(function(Q){Q&&m.push("storyboardImages_",Q);
return Q}).finally(function(){delete m.pendingStoryboardImages_[O.url]}))};
_.v.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.v.timeToPixels_=function(O,m,G){O*=m;return G===void 0||G?O+"px":O};
_.v.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
lv.prototype.drawRuler_=lv.prototype.drawRuler_;lv.prototype.setUpCanvas_=lv.prototype.setUpCanvas_;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],lv.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],lv.prototype,"start",void 0);_.c([_.g({value:30}),_.Y("design:type",Number)],lv.prototype,"end",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],lv.prototype,"visible",void 0);_.c([_.g(),_.Y("design:type",Object)],lv.prototype,"player_",void 0);_.c([_.g(),_.Y("design:type",Number)],lv.prototype,"tickSpacing",void 0);_.c([_.g(),_.Y("design:type",Number)],lv.prototype,"windowSizeSec",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],lv.prototype,"rulerWidth",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],lv.prototype,"rulerShift",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],lv.prototype,"canvasReady_",void 0);_.c([_.g({value:function(){return[]}}),
_.Y("design:type",Array)],lv.prototype,"storyboardImages_",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],lv.prototype,"disabled",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],lv.prototype,"forceRender_",void 0);_.c([_.g({value:1}),_.Y("design:type",Number)],lv.prototype,"devicePixelRatio_",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],lv.prototype,"windowSpeed",void 0);
_.c([_.Tw("visible","devicePixelRatio_","rulerWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lv.prototype,"setUpCanvas_",null);
_.c([_.Tw("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.Y("design:returntype")],lv.prototype,"drawRuler_",null);_.c([_.DO({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],lv);
_.y(lv,"yt-clip-creation-scrubber-canvas",function(){if(aZG===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);aZG=O}O=aZG;return O},
{mode:2});var kyA;var yF8;var aL=function(){var O=_.u.apply(this,arguments)||this;O.start=0;O.end=30;O.visible=!1;O.draggingLeft_=!1;O.draggingRight_=!1;O.draggingRuler_=!1;O.draggingWindow_=!1;O.seekableStart=0;O.seekableEnd=0;O.rulerWidth_=0;O.rulerShift_=0;O.windowSlideSpeed=0;O.disabled=!1;O.initialized=!1;O.durationAccessibilityLabel="";O.activeLoopRange_=!1;O.rulerDragMouseStart_=0;O.rulerDragRulerStart_=0;O.rulerDragStartTime_=0;O.rulerDragEndTime_=0;O.dragMouseLastX_=0;O.scrollInterval_=null;O.scrubberVe_=null;O.boundHandlers_=
{};O.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return O};
_.X(aL,_.u);_.v=aL.prototype;
_.v.created=function(){var O=this;this.JSC$22677_playerEvents=new Map;this.JSC$22677_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22677_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22677_playerEvents.set("onStateChange",this.onStateChange_);var m={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(m).forEach(function(G){O.boundHandlers_[G]=m[G].bind(O)})};
_.v.attached=function(){this.activeLoopRange_=!1;_.ZO(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ZO(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Zv(156731)};
_.v.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.ZO(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.ZO(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.v.onVisibilityChangedAction_=function(O){var m=this;O.visible&&!this.player_&&(O=_.M1())&&O.getPlayerPromise().then(function(G){m.setPlayer(G)})};
_.v.setPlayer=function(O){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22677_playerEvents);O&&(this.set("player_",O),this.ytPlayerListenerBehavior.listenToPlayerEvents(O,this.JSC$22677_playerEvents))};
_.v.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.v.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.v.beginHandleDrag_=function(O){this.disabled||(O.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=O.clientX,O.target===_.ZO(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():O.target===_.ZO(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.v.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.v.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.v.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.v.beginRulerDrag_=function(O){this.disabled||(O.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=O.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.v.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.v.beginWindowScroll_=function(){var O=this;this.scrollInterval_=setInterval(function(){var m=O.windowSlideSpeed;if(m=_.to8(O.start,O.boundedRulerStartLimit_())?m-.1:_.to8(O.end,O.boundedRulerEndLimit_())?m+.1:0){var G=O.capRulerOffset_(O.rulerShift_+m);G==O.rulerShift_?m=0:(O.set("rulerShift_",G),_.iP(O.hostElement,"set-fixed-length-range",{start:O.start+m,duration:O.end-O.start}))}O.set("windowSlideSpeed",m)},33)};
_.v.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.v.endDrag_=function(){this.logClick();var O=void 0;this.draggingRight_?O=this.end-1:this.draggingLeft_&&(O=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,O);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))};
_.v.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.v.updateRulerSize_=function(){this.set("rulerWidth_",_.ZO(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.v.handleMouseDrag_=function(O){O.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(O):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(O):this.draggingWindow_&&this.handleWindowDrag_(O))};
_.v.handleRulerDrag_=function(O){O=this.pixelsToTime_(O.clientX-this.rulerDragMouseStart_);O=this.capRulerOffset_(this.rulerDragRulerStart_-O);this.set("rulerShift_",O);var m=this.rulerDragStartTime_-(this.rulerDragRulerStart_-O);_.iP(this.hostElement,"set-fixed-length-range",{start:m,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-O)-m})};
_.v.handleWindowDrag_=function(O){var m=O.clientX-this.dragMouseLastX_;this.dragMouseLastX_=O.clientX;O=this.pixelsToTime_(m);_.iP(this.hostElement,"set-fixed-length-range",{start:this.start+O,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.v.capRulerOffset_=function(O){var m=this.seekableStart-this.pixelsToTime_(16),G=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(m,O),G)};
_.v.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.v.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.v.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.v.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.v.handleWindowHandleDrag_=function(O){var m=O.clientX-this.dragMouseLastX_;this.dragMouseLastX_=O.clientX;O=this.pixelsToTime_(m);if(this.draggingLeft_){var G=this.start+O;var B=this.end}else this.draggingRight_&&(G=this.start,B=this.end+O);_.iP(this.hostElement,"set-range",{start:G,end:B,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.v.onVideoProgress_=function(O){this.disabled||(O=this.timeToPixels_(O-this.rulerShift_,this.tickSpacing_),_.ZO(this.hostElement).querySelector("#playhead").style.transform="translateX("+O+")")};
_.v.onClipCreationDisable_=function(){this.endDrag_()};
_.v.timeToPixels_=function(O,m,G){O*=m;return G===void 0||G?O+"px":O};
_.v.pixelsToTime_=function(O){return O/this.tickSpacing_};
_.v.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.v.centerRuler_=function(O,m,G){this.set("rulerShift_",this.capRulerOffset_(O+(m-O)/2-G/2))};
_.v.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.v.updateLoopRange_=function(O,m,G,B,Q,H,M){O&&(m&&B&&!G?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(O.pauseVideo(),O.seekTo(Q,!1,void 0,void 0,50)):this.draggingRight_?(O.pauseVideo(),O.seekTo(H-.1,!1,void 0,void 0,50)):(M!==void 0?O.seekTo(M,!0,void 0,void 0,50):(m=O.getCurrentTime(),m<Q||m>H?O.seekTo(Q,!0,void 0,void 0,50):O.seekTo(m,!0,void 0,void 0,50)),O.playVideo()),O.setLoopRange({startTimeMs:Q*1E3,endTimeMs:H*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(O.getCurrentTime())):
this.activeLoopRange_&&(O.setLoopRange(null),this.activeLoopRange_=!1))};
_.v.updateHandles_=function(){_.ZO(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.ZO(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.v.updateRuler_=function(){var O=this.end,m=this.start,G=this.draggableStartLimit_(),B=this.draggableEndLimit_();(m<G-.001||O>B+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.v.computeDurationLabel_=function(O,m){return O?O.replace("$clip_length",parseFloat(m).toFixed(1)):""};
_.v.computeDuration_=function(O,m){return this.isValidTime_(O)&&this.isValidTime_(m)&&O<m?m-O:0};
_.v.isValidTime_=function(O){return isNaN(parseFloat(O))||O<0?!1:this.player_?O>=this.seekableStart&&O<=this.seekableEnd:!0};
_.v.computeWindowSizeSec_=function(O,m,G){return Math.min((O||12E4)/1E3,G-m)};
_.v.computeTickSpacing_=function(O,m){return m?m/O:1};
_.v.onDragStateChanged_=function(){_.iP(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.v.centerRangeOnTime_=function(O){var m=this.duration;O=qha(O-m/2,m,this.seekableStart,this.seekableEnd);_.iP(this.hostElement,"set-fixed-length-range",{start:O.start,duration:O.end-O.start})};
_.v.nearlyLessThan_=function(O,m,G){return O+(G===void 0?1E-6:G)<m};
_.v.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var O=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(O,this.start)||this.nearlyLessThan_(this.end,O))&&this.centerRangeOnTime_(O)}};
_.v.onStateChange_=function(O){this.visible&&!this.disabled&&O==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.v.computeDragState_=function(O,m,G,B){return O?"left":m?"right":G?"ruler":B?"window":"none"};
_.v.logClick=function(){var O=_.yA(),m=_.kf();O&&m&&this.scrubberVe_&&(_.V("combine_ve_grafts")?_.LK(_.uK(),this.scrubberVe_,m):_.Pd(O,m,this.scrubberVe_),_.Gk(O,this.scrubberVe_))};
aL.prototype.onDragStateChanged_=aL.prototype.onDragStateChanged_;aL.prototype.updateRuler_=aL.prototype.updateRuler_;aL.prototype.updateHandles_=aL.prototype.updateHandles_;aL.prototype.onUpdateLoopRange=aL.prototype.onUpdateLoopRange;aL.prototype.onInitializedChanged_=aL.prototype.onInitializedChanged_;aL.prototype.onVisibleChanged_=aL.prototype.onVisibleChanged_;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],aL.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",Object)],aL.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"start",void 0);_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"end",void 0);_.c([_.g({computed:"computeDuration_(start, end)"}),_.Y("design:type",Number)],aL.prototype,"duration",void 0);
_.c([_.g(),_.Y("design:type",String)],aL.prototype,"lengthTemplate",void 0);_.c([_.g({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.Y("design:type",String)],aL.prototype,"durationLabel",void 0);_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"visible",void 0);_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"player_",void 0);_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"draggingLeft_",void 0);_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"draggingRight_",void 0);
_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"draggingRuler_",void 0);_.c([_.g({value:!1}),_.Y("design:type",Object)],aL.prototype,"draggingWindow_",void 0);_.c([_.g({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.Y("design:type",Number)],aL.prototype,"tickSpacing_",void 0);_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"seekableStart",void 0);_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"seekableEnd",void 0);
_.c([_.g(),_.Y("design:type",Number)],aL.prototype,"windowSizeMs",void 0);_.c([_.g({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.Y("design:type",Number)],aL.prototype,"windowSizeSec_",void 0);_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"rulerWidth_",void 0);_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"rulerShift_",void 0);_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"windowSlideSpeed",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],aL.prototype,"disabled",void 0);_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"initialized",void 0);_.c([_.g(),_.Y("design:type",Object)],aL.prototype,"durationAccessibilityLabel",void 0);_.c([_.g({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.Y("design:type",String)],aL.prototype,"dragState",void 0);
_.c([_.Tw("visible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aL.prototype,"onVisibleChanged_",null);_.c([_.Tw("initialized"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aL.prototype,"onInitializedChanged_",null);_.c([_.Tw("player_","visible","disabled","initialized","start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aL.prototype,"onUpdateLoopRange",null);
_.c([_.Tw("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aL.prototype,"updateHandles_",null);_.c([_.Tw("start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aL.prototype,"updateRuler_",null);
_.c([_.Tw("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aL.prototype,"onDragStateChanged_",null);_.c([_.DO({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],aL);
_.y(aL,"yt-clip-creation-scrubber-view",function(){if(yF8===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;kyA===void 0&&(kyA=document.createElement("template"));var B=kyA;G.call(m,B.content.cloneNode(!0),O.content.firstChild);yF8=O}O=yF8;return O},{mode:2});var kY=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};O.startHighlightTimeout=0;O.endHighlightTimeout=0;return O};
_.X(kY,_.u);_.v=kY.prototype;_.v.attached=function(){var O=this;this.startInput.addEventListener("input",function(m){return O.handleStartInput_(m)});
this.endInput.addEventListener("input",function(m){return O.handleEndInput_(m)});
this.startInput.addEventListener("focusout",function(m){return O.handleStartBlur_(m)});
this.endInput.addEventListener("focusout",function(m){return O.handleEndBlur_(m)})};
_.v.setPlayer=function(O){this.set("player_",O)};
_.v.onSetFixedLengthRange_=function(O){var m=O.detail;O=m.start;var G=m.duration,B=m.startLimit;m=m.endLimit;B||(B=this.seekableStart_);m||(m=this.seekableEnd_);O=qha(O,G,B,m);this.start=O.start;this.end=O.end};
_.v.onSetRange_=function(O){var m=O.detail;O=m.start;var G=m.end,B=m.startLimit;m=m.endLimit;B||(B=this.seekableStart_);m||(m=this.seekableEnd_);if(O=UP8(O,G,B,m,this.minLengthSec,this.maxLengthSec))this.start=O.start,this.end=O.end};
_.v.updateInputs_=function(){var O=this.end,m=this.start;this.startInput.focused||(this.startInput.value=k_(m,!0));this.endInput.focused||(this.endInput.value=k_(O,!0))};
_.v.handleStartInput_=function(O){O=xP0(O.target.value);if(O===null)this.set("startValid",!1);else{var m=this.end,G=UP8(O,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);G?(this.set("endWillUpdate",G.end!==m),this.set("startValid",G.start===O)):this.set("startValid",!1)}};
_.v.handleEndInput_=function(O){O=xP0(O.target.value);if(O===null)this.set("endValid",!1);else{var m=this.start,G=tAn(this.start,O,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);G?(this.set("startWillUpdate",G.start!==m),this.set("endValid",G.end===O)):this.set("endValid",!1)}};
_.v.handleStartBlur_=function(O){O=xP0(O.target.value);O===null?this.startInput.value=k_(this.start,!0):this.forceUpdateInputs_(UP8(O,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.v.handleEndBlur_=function(O){O=xP0(O.target.value);O===null?this.endInput.value=k_(this.end,!0):this.forceUpdateInputs_(tAn(this.start,O,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.v.forceUpdateInputs_=function(O){O&&(this.start=O.start,this.end=O.end);this.startInput.value=k_(this.start,!0);this.endInput.value=k_(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.v.initializeClipRange_=function(){var O=this.seekableEnd_,m=this.seekableStart_,G=this.visible_,B=this.player_;if(!B||!G||m===null||!O)this.set("initialized",!1);else if(!this.initialized){var Q=B.getCurrentTime(),H=this.getDefaultLengthSec_();G=B.getVideoData();var M=B.getPlayerState()==1,R=G.isLive;H=Math.min(H,O-m);Q=Math.max(0,Q);O=R?tAn(Q-H,Q,m,O,this.minLengthSec,this.maxLengthSec):M?qha(Q-H/2,H,m,O):qha(Q,H,m,O);this.start=O.start;this.end=O.end;this.set("initialized",!0);G.isLive&&B.seekTo(O.start);
this.startInput.value=k_(this.start,!0);this.endInput.value=k_(this.end,!0)}};
_.v.onStartChanged_=function(){var O=this;_.iP(this.hostElement,"start-changed",{start:this.start});var m;isNaN((m=this.oldStart)!=null?m:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){O.set("highlightStart",!1);O.startHighlightTimeout=0;O.oldStart=O.start},3E3))};
_.v.onEndChanged_=function(){var O=this;_.iP(this.hostElement,"end-changed",{end:this.end});var m;isNaN((m=this.oldEnd)!=null?m:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){O.set("highlightEnd",!1);O.endHighlightTimeout=0;O.oldEnd=O.end},3E3))};
_.v.onVisibilityChangedAction_=function(O){var m=this;this.set("visible_",O.visible);this.visible_&&!this.player_&&(O=_.M1())&&O.getPlayerPromise().then(function(G){m.setPlayer(G)})};
_.v.computeMinLengthSec_=function(O){return O/1E3||5};
_.v.computeMaxLengthSec_=function(O){return O/1E3||60};
_.v.computeDefaultLengthSec_=function(O){return O/1E3};
_.v.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.v.computeSeekableStart_=function(O,m){return O&&m?O.getProgressState(1).seekableStart:0};
_.v.computeSeekableEnd_=function(O,m){return O&&m?O.getProgressState(1).seekableEnd:0};
_.v.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.v.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.v.onDragState_=function(O){this.set("highlightStart",O.detail.startChanging);this.set("highlightEnd",O.detail.endChanging)};
kY.prototype.onDragState_=kY.prototype.onDragState_;kY.prototype.onEndChanged_=kY.prototype.onEndChanged_;kY.prototype.onStartChanged_=kY.prototype.onStartChanged_;kY.prototype.initializeClipRange_=kY.prototype.initializeClipRange_;kY.prototype.updateInputs_=kY.prototype.updateInputs_;kY.prototype.onSetRange_=kY.prototype.onSetRange_;kY.prototype.onSetFixedLengthRange_=kY.prototype.onSetFixedLengthRange_;
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],kY.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],kY.prototype,"data",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],kY.prototype,"start",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],kY.prototype,"startValid",void 0);
_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],kY.prototype,"startWillUpdate",void 0);_.c([_.g({value:30}),_.Y("design:type",Number)],kY.prototype,"end",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],kY.prototype,"endValid",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],kY.prototype,"endWillUpdate",void 0);_.c([_.g({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.Y("design:type",Number)],kY.prototype,"minLengthSec",void 0);
_.c([_.g({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.Y("design:type",Number)],kY.prototype,"maxLengthSec",void 0);_.c([_.g({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.Y("design:type",Number)],kY.prototype,"defaultLengthSec",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],kY.prototype,"visible_",void 0);_.c([_.g(),_.Y("design:type",Object)],kY.prototype,"player_",void 0);
_.c([_.g({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.Y("design:type",Number)],kY.prototype,"seekableStart_",void 0);_.c([_.g({computed:"computeSeekableEnd_(player_, visible_)"}),_.Y("design:type",Number)],kY.prototype,"seekableEnd_",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],kY.prototype,"initialized",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],kY.prototype,"disabled",void 0);
_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],kY.prototype,"highlightStart",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],kY.prototype,"highlightEnd",void 0);_.c([_.uc("#start"),_.Y("design:type",HTMLInputElement)],kY.prototype,"startInput",void 0);_.c([_.uc("#end"),_.Y("design:type",HTMLInputElement)],kY.prototype,"endInput",void 0);
_.c([_.hG("set-fixed-length-range"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],kY.prototype,"onSetFixedLengthRange_",null);_.c([_.hG("set-range"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],kY.prototype,"onSetRange_",null);_.c([_.Tw("start","end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kY.prototype,"updateInputs_",null);
_.c([_.Tw("player_","visible_","seekableStart_","seekableEnd_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kY.prototype,"initializeClipRange_",null);_.c([_.Tw("start"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kY.prototype,"onStartChanged_",null);_.c([_.Tw("end"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kY.prototype,"onEndChanged_",null);
_.c([_.hG("clips-drag-state"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],kY.prototype,"onDragState_",null);_.c([_.DO({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],kY);
_.y(kY,"yt-clip-creation-scrubber-renderer",function(){if(lZL===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;oa9===void 0&&(oa9=document.createElement("template"));var B=oa9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);lZL=O}O=lZL;return O},{mode:2});var yz=function(){var O=_.u.apply(this,arguments)||this;O.player_=null;O.JSC$22691_playerEvents=new Map;O.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return O};
_.X(yz,_.u);_.v=yz.prototype;_.v.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"}}}};
_.v.created=function(){this.JSC$22691_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22691_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22691_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22691_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.v.detached=function(){this.setPlayer(null)};
_.v.onVisibilityChangedAction_=function(O){var m=this,G;if((G=this.data)==null?0:G.externalVideoId){var B;this.videoId=(B=this.data)==null?void 0:B.externalVideoId}this.getPlayer().then(function(Q){if(O.visible)m.returnTime=Q.getCurrentTime(),m.isAtLiveHead=Q.getProgressState().isAtLiveHead;else{var H=m.returnTime;m.isAtLiveHead&&(H=Number.POSITIVE_INFINITY);Q.seekTo(H,void 0,void 0,void 0,51)}})};
_.v.getPlayer=function(){var O=this;if(!this.player_){var m=_.M1();if(m)return m.getPlayerPromise().then(function(G){O.setPlayer(G);return G})}return Promise.resolve(this.player_)};
_.v.setPlayer=function(O){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22691_playerEvents);if(O){this.player_=O;var m;((m=this.data)==null?0:m.externalVideoId)||this.set("videoId",O.getVideoData().video_id||"");var G;(O==null?void 0:(G=O.getPresentingPlayerType)==null?void 0:G.call(O))===2&&(this.set("isAdPlaying",!0),_.xc(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(O,this.JSC$22691_playerEvents)}};
_.v.ready=function(){_.ZO(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.v.onTitleChanged_=function(O){this.set("titleValue",O.detail.title)};
_.v.onStartChanged_=function(O){this.set("start",O.detail.start)};
_.v.onEndChanged_=function(O){this.set("end",O.detail.end)};
_.v.onTitleValidChanged_=function(O){this.set("titleValid",O.detail.valid)};
_.v.onStartValidChanged_=function(O){this.set("startValid",O.detail.valid)};
_.v.onEndValidChanged_=function(O){this.set("endValid",O.detail.valid)};
_.v.onVideoDataChange_=function(){var O;if((O=this.data)==null||!O.externalVideoId){var m;this.set("videoId",((m=this.player_)==null?void 0:m.getVideoData().video_id)||"")}};
_.v.computeFormValid_=function(O,m,G,B){return!!(O&&m&&G&&B)};
_.v.computeCancelButton_=function(O,m,G){return O&&_.b(O,_.v3)?{buttonRenderer:Object.assign({},_.b(O,_.v3),{isDisabled:m||G})}:null};
_.v.computeSubmitButton_=function(O,m,G){return O&&_.b(O,_.v3)?{buttonRenderer:Object.assign({},_.b(O,_.v3),{command:void 0,isDisabled:!this.formValid||m||G})}:null};
_.v.computeSubmitCommand_=function(O){return O||null};
_.v.onSubmit_=function(O){var m=this;O.stopPropagation();O.preventDefault();this.submitCommand_&&(O={},O.comment_text=this.titleValue,O.clip_external_video_id=this.videoId,O.clip_offset_ms=parseInt(this.start*1E3,10),O.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.tK(this.hostElement,[this.submitCommand_,O]).then(function(){m.set("isLoading_",!1)},function(){m.set("isLoading_",!1)}))};
_.v.playerAdStartHandler_=function(){_.xc(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.v.playerAdEndHandler_=function(){_.xc(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.v.onVideoProgress_=function(){var O=this;this.getPlayer().then(function(m){var G,B=(m==null?void 0:(G=m.getPresentingPlayerType)==null?void 0:G.call(m))===2;O.isAdPlaying!==B&&(B?O.playerAdStartHandler_():O.playerAdEndHandler_())})};
yz.prototype.onEndValidChanged_=yz.prototype.onEndValidChanged_;yz.prototype.onStartValidChanged_=yz.prototype.onStartValidChanged_;yz.prototype.onTitleValidChanged_=yz.prototype.onTitleValidChanged_;yz.prototype.onEndChanged_=yz.prototype.onEndChanged_;yz.prototype.onStartChanged_=yz.prototype.onStartChanged_;yz.prototype.onTitleChanged_=yz.prototype.onTitleChanged_;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],yz.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",Object)],yz.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],yz.prototype,"data",void 0);_.c([_.g({value:""}),_.Y("design:type",String)],yz.prototype,"titleValue",void 0);
_.c([_.g({value:!1}),_.Y("design:type",Boolean)],yz.prototype,"titleValid",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],yz.prototype,"start",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],yz.prototype,"startValid",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],yz.prototype,"end",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],yz.prototype,"endValid",void 0);_.c([_.g({value:""}),_.Y("design:type",String)],yz.prototype,"videoId",void 0);
_.c([_.g({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.Y("design:type",Boolean)],yz.prototype,"formValid",void 0);_.c([_.g({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.Y("design:type",Object)],yz.prototype,"submitButton_",void 0);_.c([_.g({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.Y("design:type",Object)],yz.prototype,"submitCommand_",void 0);
_.c([_.g({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.Y("design:type",Object)],yz.prototype,"cancelButton_",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],yz.prototype,"isLoading_",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],yz.prototype,"isAdPlaying",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],yz.prototype,"returnTime",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],yz.prototype,"isAtLiveHead",void 0);
_.c([_.hG("title-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],yz.prototype,"onTitleChanged_",null);_.c([_.hG("start-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],yz.prototype,"onStartChanged_",null);_.c([_.hG("end-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],yz.prototype,"onEndChanged_",null);
_.c([_.hG("title-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],yz.prototype,"onTitleValidChanged_",null);_.c([_.hG("start-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],yz.prototype,"onStartValidChanged_",null);_.c([_.hG("end-valid-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],yz.prototype,"onEndValidChanged_",null);
_.c([_.DO({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],yz);
_.y(yz,"yt-clip-creation-renderer",function(){if(Cj0===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;L_P===void 0&&(L_P=document.createElement("template"));var B=L_P;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Cj0=O}O=Cj0;return O},{mode:2});var cm=function(){return _.u.apply(this,arguments)||this};
_.X(cm,_.u);cm.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"}}}};
cm.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(O){return O.hasOwnProperty("clipCreationRenderer")})&&_.xc(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
cm.prototype.onPanelContentVisibleChanged=cm.prototype.onPanelContentVisibleChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],cm.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.tg.YtVisibilityBehavior),_.Y("design:type",Object)],cm.prototype,"ytVisibilityBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],cm.prototype,"ytdReduxBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],cm.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],cm.prototype,"panelContentVisible",void 0);_.c([_.Tw("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cm.prototype,"onPanelContentVisibleChanged",null);_.c([_.l({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],cm);
_.y(cm,"ytd-clip-section-renderer",function(){if(IZc!==void 0)return IZc;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return IZc=O},{mode:1});var cF8;var YY=function(){return _.u.apply(this,arguments)||this};
_.X(YY,_.u);_.v=YY.prototype;
_.v.onKeyDown=function(O){if(this.snippetElements.length!==0&&(O=O.keyCode,O===38||O===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);O===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Lk(this.highlightedIndex,-1,this.snippetElements.length);O=this.snippetElements.length;var m=this.highlightedIndex%O;this.highlightedIndex=m*O<0?m+O:m;O=this.snippetElements[this.highlightedIndex];this.highlightSnippet(O);this.ensureVisible(O)}};
_.v.onKeyUp=function(O){var m=this;O_5(O)&&(O.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.ln.cancelJob(this.inputTimerId),this.inputTimerId=_.ln.addLowPriorityJob(function(){m.typedValue&&(m.fetchSnippets(m.typedValue),m.logInputGesture(m.data))},1E3))};
_.v.onClick=function(O){(O=_.Ix9(O.target,null,"snippet-item"))&&this.selectSnippet(O)};
_.v.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.v.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.v.ready=function(){var O=this;this.inputElement.addEventListener("focus",function(){O.snippetsWrapper.style.removeProperty("display")})};
_.v.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.v.getSourceTimelines=function(){if(!this.data)return[];var O=[];if(this.data.searchInVideoSources)for(var m=_.K(this.data.searchInVideoSources),G=m.next();!G.done;G=m.next())G=G.value,G==="SEARCH_IN_VIDEO_SOURCE_ASR"?O.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):G==="SEARCH_IN_VIDEO_SOURCE_OCR"&&O.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return O};
_.v.fetchSnippets=function(O){var m=_.xc(this.hostElement,"yt-get-current-video-id-action")[0],G=this.getSourceTimelines();O={getSearchInVideoCommand:{externalVideoId:m,query:O!=null?O:"",sourceTimelines:G},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}})};
_.v.filterSnippets=function(O,m){var G=this;if(m){this.filteredSnippets=(0,_.aM.unsafeClone)(O);var B=RegExp(_.vr5(m),"i");this.filteredSnippets=this.filteredSnippets.filter(function(M){return B.test(G.ytRendererBehavior.getSimpleString(M.snippet))});
O=_.K(this.filteredSnippets);for(var Q=O.next();!Q.done;Q=O.next()){Q=Q.value;var H=this.ytRendererBehavior.getSimpleString(Q.snippet);Q.snippet={runs:[{text:H.substring(0,H.toLowerCase().indexOf(m))},{text:H.substring(H.toLowerCase().indexOf(m),H.toLowerCase().indexOf(m)+m.length),bold:!0},{text:H.substring(H.toLowerCase().indexOf(m)+m.length,H.length)}]}}}else this.filteredSnippets=O};
_.v.onUpdateSearchInVideoResults=function(O){if(!(this.snippets.length>0)){var m,G,B;if((B=(m=_.b(O,i_c))==null?void 0:(G=m.results)==null?void 0:G.length)!=null&&B){var Q;this.filteredSnippets=this.snippets=((Q=_.b(O,i_c))==null?void 0:Q.results).map(function(H){var M,R,x;return{startMs:H==null?void 0:(M=H.searchInVideoResultRenderer)==null?void 0:M.startMs,startTimeText:H==null?void 0:(R=H.searchInVideoResultRenderer)==null?void 0:R.startTimeText,snippet:H==null?void 0:(x=H.searchInVideoResultRenderer)==
null?void 0:x.snippet}})}}};
_.v.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};
_.v.highlightSnippet=function(O){O.classList.add("highlighted")};
_.v.removeSnippetHighlight=function(O){O.classList.remove("highlighted")};
_.v.selectSnippet=function(O){this.typedValue=String(O.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(O);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.v.ensureVisible=function(O){var m=this.snippetsWrapper.scrollTop,G=m+this.snippetsWrapper.clientHeight,B=O.offsetTop-this.snippetsWrapper.offsetTop;O=B+O.clientHeight;B<m?this.snippetsWrapper.scrollTop-=m-B:O>G&&(this.snippetsWrapper.scrollTop+=O-G)};
_.v.seekPlayer=function(O){var m,G;return _.r(function(B){if(B.nextAddress==1){if(!O)return B.jumpTo(0);m=Number(O.dataset.startOffset);return B.yield(_.rR().getPlayerPromise(),3)}G=B.yieldResult;G.seekTo(m/1E3,!0);G.wakeUpControls();_.ju(B)})};
_.v.logInputGesture=function(O){var m=_.yA();m&&(O==null?0:O.trackingParams)&&_.Bq(m,_.Ez(O.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.v.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("typed-value-changed",this.typedValue))};
_.v.updateTypedValueFromBinding=function(O){this.typedValue=O.currentTarget.value};
YY.prototype.typedValueChangedForBinding=YY.prototype.typedValueChangedForBinding;YY.prototype.dataChanged=YY.prototype.dataChanged;YY.prototype.panelContentVisibleChanged=YY.prototype.panelContentVisibleChanged;YY.prototype.onClick=YY.prototype.onClick;YY.prototype.onKeyUp=YY.prototype.onKeyUp;YY.prototype.onKeyDown=YY.prototype.onKeyDown;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],YY.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],YY.prototype,"data",void 0);_.c([_.g({value:[]}),_.Y("design:type",Array)],YY.prototype,"snippets",void 0);_.c([_.g({value:[]}),_.Y("design:type",Array)],YY.prototype,"filteredSnippets",void 0);_.c([_.g({value:[]}),_.Y("design:type",Array)],YY.prototype,"snippetElements",void 0);
_.c([_.uc("#siv-input"),_.Y("design:type",HTMLElement)],YY.prototype,"inputElement",void 0);_.c([_.uc("#siv-snippets-wrapper"),_.Y("design:type",HTMLElement)],YY.prototype,"snippetsWrapper",void 0);_.c([_.g(),_.Y("design:type",String)],YY.prototype,"typedValue",void 0);_.c([_.g({value:-1}),_.Y("design:type",Number)],YY.prototype,"highlightedIndex",void 0);_.c([_.hG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.I7]),_.Y("design:returntype")],YY.prototype,"onKeyDown",null);
_.c([_.hG("keyup"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.I7]),_.Y("design:returntype")],YY.prototype,"onKeyUp",null);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],YY.prototype,"onClick",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],YY.prototype,"panelContentVisible",void 0);
_.c([_.Tw("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YY.prototype,"panelContentVisibleChanged",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YY.prototype,"dataChanged",null);_.c([_.Tw("typedValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YY.prototype,"typedValueChangedForBinding",null);
_.c([_.l({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],YY);
_.y(YY,"ytd-search-in-video-renderer",function(){if(cF8!==void 0)return cF8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return cF8=O},{mode:1});var Y0A;var dp=function(){return _.u.apply(this,arguments)||this};
_.X(dp,_.u);dp.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
dp.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]]"}}}}}};
dp.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var O,m,G,B,Q=(m=_.b((O=this.data)==null?void 0:O.onClickCommand,_.lq))==null?void 0:(G=m.item)==null?void 0:(B=G.notificationTextRenderer)==null?void 0:B.successResponseText;Q&&_.lAN(this.hostElement,Q)}};
_.vr.Object.defineProperties(dp.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B;return this.isProductPlaceholder&&((O=this.data)==null?void 0:(m=O.hiddenProductOptions)==null?void 0:m.showDropCountdown)&&!!((G=this.data)==null?0:(B=G.hiddenProductOptions)==null?0:B.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var O;return!this.isProductPlaceholder&&!((O=this.data)==null?0:O.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var O,m;return!((O=this.data)==null?0:O.priceReplacementText)&&!((m=this.data)==null||!m.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],dp.prototype,"componentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],dp.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dp.prototype,"useCenterLayoutContainer",null);_.c([_.g({computed:"computeButtonOverride(data)"}),_.Y("design:type",Object)],dp.prototype,"buttonOverride",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dp.prototype,"isProductPlaceholder",null);
_.c([_.T("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dp.prototype,"showDropCountdown",null);_.c([_.T("isProductPlaceholder","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dp.prototype,"showBrandName",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dp.prototype,"showPriceReplacementText",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dp.prototype,"showPrice",null);
_.c([_.T("isProductPlaceholder"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dp.prototype,"showMetadata",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],dp);
_.y(dp,"ytd-product-list-item-renderer",function(){if(Y0A!==void 0)return Y0A;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Y0A=O},{mode:1});var dZq;var wp=function(){return _.u.apply(this,arguments)||this};
_.X(wp,_.u);wp.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
wp.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
wp.prototype.panelContentVisibleChanged=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return O.playerApi?G.jumpTo(2):G.yield(_.rR().getPlayerPromise(),3);G.nextAddress!=2&&(O.playerApi=G.yieldResult);(m=O.playerApi)==null||m.productsInVideoVisibilityUpdated(!!O.panelContentVisible);_.ju(G)})};
wp.prototype.panelContentVisibleChanged=wp.prototype.panelContentVisibleChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wp.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],wp.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],wp.prototype,"panelContentVisible",void 0);_.c([_.g(),_.Y("design:type",Object)],wp.prototype,"data",void 0);
_.c([_.Tw("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],wp.prototype,"panelContentVisibleChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],wp);
_.y(wp,"ytd-product-list-renderer",function(){if(dZq!==void 0)return dZq;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return dZq=O},{mode:1});var whA;var eM=function(){var O=_.u.apply(this,arguments)||this;O.hideTimestamps=!!_.YH("hide-transcript-timestamps");O.currentCueIndex=-1;O.flatCues=[];O.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};O.TEST_ONLY={getFlatCues:function(){return O.flatCues}};
return O};
_.X(eM,_.u);_.v=eM.prototype;_.v.hideTimestampsChanged=function(){_.cX("hide-transcript-timestamps",this.hideTimestamps)};
_.v.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.v.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.v.dataChanged=function(){var O;if((O=this.data)!=null&&O.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;O=_.K(this.data.cueGroups);for(var m=O.next();!m.done;m=O.next()){m=_.K(_.b(m.value,xGO).cues);for(var G=m.next();!G.done;G=m.next())this.flatCues.push(Number(_.b(G.value,qIh).startOffsetMs))}}};
_.v.onYtPlayerTimeChanged=function(O){if(!(O<0)){for(var m=this.currentCueIndex,G=m;;){var B=G>=0?this.flatCues[G]/1E3:-1;if(O+.5<B)--G;else if(B=G+1<this.flatCues.length?this.flatCues[G+1]/1E3:Infinity,O+.5>B)G+=1;else break}G!==m&&(m>=0&&((O=this.getCueElement(m))&&O.classList.remove("active"),(m=this.getCueGroupElement(m))&&m.classList.remove("active")),(m=this.getCueElement(G))&&m.classList.add("active"),(m=this.getCueGroupElement(G))&&m.classList.add("active"),this.currentCueIndex=G,this.isHovered||
this.scrollElementToTop(G))}};
_.v.scrollElementToTop=function(O){O=this.getCueElement(O>=3?O-3:0);this.hostElement.scrollTop=Math.min(O.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.v.getCueElement=function(O){return _.ZO(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[O]+'"]')};
_.v.getCueGroupElement=function(O){return(O=this.getCueElement(O))&&O.parentElement?O.parentElement.parentElement:null};
_.v.onTap=function(O){var m=_.Mj(O);O.target.classList.contains("cue")&&this.seekCueElement(m)};
_.v.onKeyPress=function(O){O.keyCode==13&&(O=_.Ix9(O.target,null,"cue"))&&this.seekCueElement(O)};
_.v.seekCueElement=function(O){O=Number(O.getAttribute("start-offset"));_.xc(this.hostElement,"yt-transcript-player-seek",[O/1E3])};
_.v.onMouseEnter=function(){this.isHovered=!0};
_.v.onMouseLeave=function(){this.isHovered=!1};
eM.prototype.onMouseLeave=eM.prototype.onMouseLeave;eM.prototype.onMouseEnter=eM.prototype.onMouseEnter;eM.prototype.onKeyPress=eM.prototype.onKeyPress;eM.prototype.onTap=eM.prototype.onTap;eM.prototype.dataChanged=eM.prototype.dataChanged;eM.prototype.hideTimestampsChanged=eM.prototype.hideTimestampsChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],eM.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],eM.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],eM.prototype,"hideTimestamps",void 0);_.c([_.g(),_.Y("design:type",Boolean)],eM.prototype,"isHovered",void 0);_.c([_.Tw("hideTimestamps"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eM.prototype,"hideTimestampsChanged",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eM.prototype,"dataChanged",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],eM.prototype,"onTap",null);_.c([_.hG("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],eM.prototype,"onKeyPress",null);
_.c([_.hG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eM.prototype,"onMouseEnter",null);_.c([_.hG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],eM.prototype,"onMouseLeave",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],eM);
_.y(eM,"ytd-transcript-body-renderer",function(){if(whA!==void 0)return whA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return whA=O},{mode:1});var eEP;var D7=function(){var O=_.u.apply(this,arguments)||this;O.darkerPanels=_.V("web_watch_darker_panels");return O};
_.X(D7,_.u);D7.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],D7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],D7.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],D7.prototype,"darkerPanels",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],D7);
_.y(D7,"ytd-transcript-footer-renderer",function(){if(eEP!==void 0)return eEP;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return eEP=O},{mode:1});var DZn;var swP;var sw=function(){var O=_.u.apply(this,arguments)||this;O.systemIcons=_.V("kevlar_system_icons");O.showClearButton=!1;return O};
_.X(sw,_.u);_.v=sw.prototype;_.v.handleInput=function(O){var m=this;O.target.value.length?_.GS(this,"ytdTranscriptSearchBoxSearch",function(){m.emitSearchEvent(O)},500):(_.m8N(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=O.target.value.length>0};
_.v.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.v.handleClick=function(){var O,m=(O=this.data)==null?void 0:O.trackingParams;m&&_.lR(_.uK(),m)};
_.v.handleClear=function(){_.m8N(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var O,m,G=(m=_.b((O=this.data)==null?void 0:O.clearButton,_.v3))==null?void 0:m.trackingParams;G&&_.lR(_.uK(),G);this.clear()};
_.v.emitSearchEvent=function(O){_.iP(this.hostElement,"yt-transcript-search-box-search",{query:O.target.value});var m,G;(O=(G=_.b((m=this.data)==null?void 0:m.searchButton,_.v3))==null?void 0:G.trackingParams)&&_.lR(_.uK(),O)};
_.v.emitClearEvent=function(){_.iP(this.hostElement,"yt-transcript-search-box-clear")};
_.vr.Object.defineProperties(sw.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.ZO(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],sw.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],sw.prototype,"systemIcons",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],sw);
_.y(sw,"ytd-transcript-search-box-renderer",function(){if(swP!==void 0)return swP;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return swP=O},{mode:1});var N_c;var PjA;var N6=function(){return _.u.apply(this,arguments)||this};
_.X(N6,_.u);N6.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var O,m;this.sectionHeaderAriaLabel=(O=this.data)==null?void 0:(m=O.accessibility)==null?void 0:m.accessibilityData.label}};
N6.prototype.fireSelectedEvent=function(O){_.iP(this.hostElement,"ytd-transcript-section-header",{startMs:O})};
N6.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
N6.prototype.handleKeyPress=function(O){this.data&&O.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.vr.Object.defineProperties(N6.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var O,m;return(m=(O=this.data)==null?void 0:O.enableTappableTranscriptHeader)!=null?m:!1}}});
N6.prototype.dataChanged=N6.prototype.dataChanged;_.c([_.g(),_.Y("design:type",Object)],N6.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],N6.prototype,"sectionHeaderAriaLabel",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],N6.prototype,"enableTappableTranscriptHeader",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],N6.prototype,"dataChanged",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],N6);
_.y(N6,"ytd-transcript-section-header-renderer",function(){if(PjA!==void 0)return PjA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return PjA=O},{mode:1});var F_A;var AF8;var Pm=function(){var O=_.u.apply(this,arguments)||this;O.isEditMode=!1;O.touchCaptionsEnabled=!1;O.deleteCaptionCorrectionPopupCommand=null;O.voteCaptionCorrectionPopupCommand=null;O.roundedContainer=!0;O.mouseOver=!1;O.textChanged=!1;O.messages={suggest_correction:_.Xm("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Xm("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Xm("submit_correction",void 0,"Submit for review"),cancel_correction:_.Xm("cancel_correction",
void 0,"Cancel"),replay_segment:_.Xm("replay_segment",void 0,"Re-play segment"),delete_correction:_.Xm("delete_correction",void 0,"Delete correction")};O.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return O};
_.X(Pm,_.u);_.v=Pm.prototype;_.v.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)};
_.v.handleDelete=function(O){if(this.deleteCaptionCorrectionPopupCommand){var m=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);m&&this.ytdOpenPopupBehavior.openPopup(m);O.stopPropagation()}};
_.v.handleSubmit=function(O){if(this.data&&this.data.submitCaptionCorrectionCommand&&(O.stopPropagation(),this.textChanged)){var m;O=(m=_.b(this.data.submitCaptionCorrectionCommand,_.OQj))==null?void 0:m.params;m=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:O,correctionText:String(this.ironTextAreaElement.value),originalText:_.HX(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(m);this.isEditMode=!1}};
_.v.handleUpdateSegmentText=function(O){(O=_.b(O,I90))&&O.targetId&&this.data&&O.targetId===this.data.targetId&&(O.userCorrection&&(this.editedText=O.userCorrection),O.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.HX(this.data.snippet)),O.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=O.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=O.voteCaptionCorrectionPopupCommand?
O.voteCaptionCorrectionPopupCommand:null,O.accessibility&&(this.segmentAriaLabel=O.accessibility.accessibilityData.label))};
_.v.handleCancel=function(O){this.isEditMode=!1;O.stopPropagation();this.logClientVe(159409)};
_.v.handleEditSegmentCommand=function(O){(O=_.b(O,joL))&&O.targetId&&this.data&&O.targetId===this.data.targetId&&this.handleEdit()};
_.v.handleEditButtonClick=function(O){this.data&&(this.handleEdit(),O.stopPropagation())};
_.v.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var O;(O=this.ironTextAreaElement.textarea)==null||O.focus();this.logClientVe(159407)}};
_.v.handleMouseEnter=function(){this.mouseOver=!0};
_.v.handleMouseLeave=function(){this.mouseOver=!1};
_.v.handleReplay=function(O){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),O.stopPropagation(),this.logClientVe(159408))};
_.v.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()))};
_.v.handleKeypress=function(O){this.data&&(this.isEditMode?O.stopPropagation():this.isEnterPress(O)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(O)&&this.logClientVe(138758))};
_.v.handleTextboxClick=function(O){O.stopPropagation()};
_.v.handleTextboxKeydown=function(O){this.isControlEnterPress(O)?this.handleSubmit(O):O.key==="Escape"&&this.handleCancel(O)};
_.v.handleTextboxKeyup=function(){this.textChanged=_.HX(this.latestText)!==String(this.ironTextAreaElement.value)};
_.v.fireSelectedEvent=function(O){_.iP(this.hostElement,"yt-transcript-segment-selected",{startMs:O})};
_.v.fireReplayEvent=function(O,m){_.iP(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(O-100,0),endMs:m})};
_.v.fireEditEvent=function(O,m){_.iP(this.hostElement,"yt-transcript-segment-edit",{startMs:O,endMs:m})};
_.v.isEnterPress=function(O){return O.key==="Enter"||O.code==="Enter"||O.code==="NumpadEnter"||O.keyCode===13?!0:!1};
_.v.isControlEnterPress=function(O){var m=O.key==="Enter"||O.code==="Enter"||O.code==="NumpadEnter"||O.keyCode===13;return(O.ctrlKey||O.metaKey)&&m};
_.v.isCopyPress=function(O){var m=O.ctrlKey;return O.key==="c"&&m};
_.v.logClick=function(){var O,m=(O=this.data)==null?void 0:O.trackingParams;m&&_.lR(_.uK(),m)};
_.v.logClientVe=function(O){_.oS(_.uK(),_.Zv(O))};
_.vr.Object.defineProperties(Pm.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}}});
Pm.prototype.handleMouseLeave=Pm.prototype.handleMouseLeave;Pm.prototype.handleMouseEnter=Pm.prototype.handleMouseEnter;Pm.prototype.dataChanged=Pm.prototype.dataChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Pm.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],Pm.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],Pm.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Pm.prototype,"isEditMode",void 0);_.c([_.g(),_.Y("design:type",Object)],Pm.prototype,"touchCaptionsEnabled",void 0);_.c([_.g(),_.Y("design:type",Object)],Pm.prototype,"editedText",void 0);_.c([_.g(),_.Y("design:type",Object)],Pm.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.c([_.g(),_.Y("design:type",Object)],Pm.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.c([_.g(),_.Y("design:type",String)],Pm.prototype,"segmentAriaLabel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Pm.prototype,"roundedContainer",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Pm.prototype,"mouseOver",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Pm.prototype,"textChanged",void 0);_.c([_.g(),_.Y("design:type",Object)],Pm.prototype,"messages",void 0);
_.c([_.uc("#suggestion"),_.Y("design:type",Object)],Pm.prototype,"ironTextAreaElement",void 0);_.c([_.T("data","editedText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pm.prototype,"latestText",null);_.c([_.T("touchCaptionsEnabled","isEditMode"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pm.prototype,"enableEditButton",null);
_.c([_.T("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pm.prototype,"enableUndoButton",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pm.prototype,"dataChanged",null);_.c([_.hG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pm.prototype,"handleMouseEnter",null);
_.c([_.hG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pm.prototype,"handleMouseLeave",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Pm);
_.y(Pm,"ytd-transcript-segment-renderer",function(){if(AF8!==void 0)return AF8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return AF8=O},{mode:1});var Fo=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};O.isError=!1;O.darkerPanels=_.V("web_watch_darker_panels");O.useParentMaxHeight=_.V("web_watch_transscript_use_parent_max_height");O.segmentOffsets=[];O.segmentIndex=-1;return O};
_.X(Fo,_.u);_.v=Fo.prototype;_.v.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"}}}}};
_.v.segmentsChanged=function(){this.updateOffsets()};
_.v.onYtPlayerTimeChanged=function(O){for(var m=this.segmentIndex,G=m;;){if(G>=0){var B=this.segmentOffsets[G].start;var Q=this.segmentOffsets[G].isAutoScrollable}else B=-1,Q=!0;var H=O+.5;if(!Q){B=G+1<this.segmentOffsets.length?this.segmentOffsets[G+1].start:Infinity;if(H>=B){G+=1;continue}G=-1;break}if(H<B)B=G-1>=0&&this.segmentOffsets[G-1].isAutoScrollable,Q=G===0||B?1:2,G-=Q;else if(Q=G+1<this.segmentOffsets.length&&this.segmentOffsets[G+1].isAutoScrollable?1:2,B=G+Q<this.segmentOffsets.length?
this.segmentOffsets[G+Q].start:Infinity,H>B)G+=Q;else{if(G<0)break;G<this.segmentOffsets.length&&H>this.segmentOffsets[G].end&&(G=-1);break}}if(m!==G){if(m>=0){var M;(M=this.getSegmentElement(m))==null||M.classList.remove("active")}this.segmentIndex=G;if(!(G<0)){var R;(R=this.getSegmentElement(G))==null||R.classList.add("active");this.isHovered||this.scrollElementToTop(G)}}};
_.v.handleSegmentEdit=function(O){O.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=O.target,_.xc(this.hostElement,"yt-transcript-player-edit",[O.detail.startMs/1E3,O.detail.endMs/1E3]))};
_.v.handleSegmentSelected=function(O){_.xc(this.hostElement,"yt-transcript-player-seek",[O.detail.startMs/1E3])};
_.v.handleSegmentReplay=function(O){_.xc(this.hostElement,"yt-transcript-player-replay",[O.detail.startMs/1E3,O.detail.endMs/1E3])};
_.v.handleSectionHeaderSelected=function(O){_.xc(this.hostElement,"yt-transcript-player-seek",[O.detail.startMs/1E3])};
_.v.onMouseEnter=function(){this.isHovered=!0};
_.v.onMouseLeave=function(){this.isHovered=!1};
_.v.onRetryButtonClick=function(){_.iP(this.hostElement,"transcript-retry-button-click")};
_.v.getSegmentElement=function(O){return _.ZO(this.hostElement).querySelector(":nth-child("+(O+1)+")")};
_.v.scrollElementToTop=function(O){O=this.getSegmentElement(O>=2?O-2:0);this.hostElement.scrollTop=Math.min(O.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.v.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(O){var m,G=(m=O.transcriptSegmentRenderer)!=null?m:O.transcriptSectionHeaderRenderer;return{start:Number(G.startMs)/1E3,end:Number(G.endMs)/1E3,isAutoScrollable:O.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.v.clearHighlightedSegments=function(){var O=_.ZO(this.hostElement);O=_.K(O.querySelectorAll("ytd-transcript-segment-renderer"));for(var m=O.next();!m.done;m=O.next())m.value.classList.remove("active")};
_.vr.Object.defineProperties(Fo.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?void 0:O.searchResultSegments)||((m=this.data)==null?void 0:m.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
Fo.prototype.onMouseLeave=Fo.prototype.onMouseLeave;Fo.prototype.onMouseEnter=Fo.prototype.onMouseEnter;Fo.prototype.handleSectionHeaderSelected=Fo.prototype.handleSectionHeaderSelected;Fo.prototype.handleSegmentReplay=Fo.prototype.handleSegmentReplay;Fo.prototype.handleSegmentSelected=Fo.prototype.handleSegmentSelected;Fo.prototype.handleSegmentEdit=Fo.prototype.handleSegmentEdit;Fo.prototype.segmentsChanged=Fo.prototype.segmentsChanged;
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Fo.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Fo.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Fo.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Fo.prototype,"isError",void 0);
_.c([_.g(),_.Y("design:type",Object)],Fo.prototype,"noResultLabel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Fo.prototype,"darkerPanels",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Fo.prototype,"useParentMaxHeight",void 0);_.c([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],Fo.prototype,"segments",null);
_.c([_.T("segments","noResultLabel"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Fo.prototype,"displayNoResults",null);_.c([_.Tw("segments"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fo.prototype,"segmentsChanged",null);_.c([_.hG("yt-transcript-segment-edit"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Fo.prototype,"handleSegmentEdit",null);
_.c([_.hG("yt-transcript-segment-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Fo.prototype,"handleSegmentSelected",null);_.c([_.hG("yt-transcript-segment-replay"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Fo.prototype,"handleSegmentReplay",null);
_.c([_.hG("ytd-transcript-section-header"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Fo.prototype,"handleSectionHeaderSelected",null);_.c([_.hG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fo.prototype,"onMouseEnter",null);_.c([_.hG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Fo.prototype,"onMouseLeave",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],Fo);
_.y(Fo,"ytd-transcript-segment-list-renderer",function(){if(F_A!==void 0)return F_A;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return F_A=O},{mode:1});var AA=function(){var O=_.u.apply(this,arguments)||this;O.hideTimestamps=!!_.YH("hide-transcript-timestamps");O.isLoadingTranscripts=!1;O.darkerPanels=_.V("web_watch_darker_panels");O.isError=!1;O.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return O};
_.X(AA,_.u);_.v=AA.prototype;_.v.headerChanged=function(){var O,m;this.baseGetTranscriptsCommand=(m=_.b((O=this.data)==null?void 0:O.header,pi8))==null?void 0:m.onTextChangeCommand};
_.v.bodyChanged=function(){var O=this.getBodyRenderer();O&&(O.initialSegments&&(this.initialTranscriptsRenderer=O),O.noResultLabel&&(this.noResultLabel=O.noResultLabel),O.retryLabel&&(this.retryLabel=O.retryLabel))};
_.v.detached=function(){this.clearSearchBoxText()};
_.v.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.v.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"}}}};
_.v.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.v.fireSearch=function(O){var m=this;if(O){var G=O.detail.query;if(this.baseGetTranscriptsCommand){var B;O=(B=_.b(this.baseGetTranscriptsCommand,_.QR_))==null?void 0:B.params;var Q;B=_.b((Q=this.data)==null?void 0:Q.footer,UGn);var H;if((Q=(H=_.b(B==null?void 0:B.languageMenu,TC5))==null?void 0:H.subMenuItems)&&Q.length>0&&(H=Q.find(function(x){return x.selected}))){var M,R;
O=(M=H.continuation)==null?void 0:(R=M.reloadContinuationData)==null?void 0:R.continuation}M=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:O,searchQuery:G}});this.ytComponentBehavior.resolveCommand(M,{commandController:{onServerError:function(){m.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Fao(this.ytContinuationHandlerBehavior,function(){return G===m.getCurrentSearchBoxText()})}}};
_.v.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.v.onRetryButtonClick=function(){this.isError=!1;var O={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:O}))};
_.v.hideTimestampsChanged=function(){_.cX("hide-transcript-timestamps",this.hideTimestamps)};
_.v.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.v.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.v.handleSignalActionCopyTranscript=function(){var O=this,m=this.getBodyRenderer();m&&(m=((m==null?void 0:m.searchResultSegments)||(m==null?void 0:m.initialSegments)||[]).map(function(G){return _.b(G,E39)}).filter(function(G){return!!G}).map(function(G){return{snippet:G.snippet||{runs:[{text:""}]},
startTimeText:G.startTimeText||{simpleText:""}}}).map(function(G){var B=(G.snippet.runs||[]).reduce(function(Q,H){return Q+H.text},"");
return O.hideTimestamps?B:G.startTimeText.simpleText+" "+B}).join("\n"),this.copyToClipboard(m))};
_.v.copyToClipboard=function(O){navigator.clipboard&&navigator.clipboard.writeText(O)};
_.v.getCurrentSearchBoxText=function(){var O;return(O=this.searchBox)==null?void 0:O.value};
_.v.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.v.getBodyRenderer=function(){var O;return _.b((O=this.data)==null?void 0:O.body,SI8)};
_.v.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.vr.Object.defineProperties(AA.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.ZO(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
AA.prototype.hideTimestampsChanged=AA.prototype.hideTimestampsChanged;AA.prototype.searchCleared=AA.prototype.searchCleared;AA.prototype.fireSearch=AA.prototype.fireSearch;AA.prototype.onReloadContinuationFinish=AA.prototype.onReloadContinuationFinish;AA.prototype.bodyChanged=AA.prototype.bodyChanged;AA.prototype.headerChanged=AA.prototype.headerChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],AA.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],AA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Ww),_.Y("design:type",Object)],AA.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],AA.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AA.prototype,"hideTimestamps",void 0);
_.c([_.g(),_.Y("design:type",Object)],AA.prototype,"isLoadingTranscripts",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AA.prototype,"darkerPanels",void 0);_.c([_.g(),_.Y("design:type",Object)],AA.prototype,"isError",void 0);_.c([_.Tw("data.header"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AA.prototype,"headerChanged",null);
_.c([_.Si("data.body"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AA.prototype,"bodyChanged",null);_.c([_.hG("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AA.prototype,"onReloadContinuationFinish",null);_.c([_.hG("yt-transcript-search-box-search"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],AA.prototype,"fireSearch",null);
_.c([_.hG("yt-transcript-search-box-clear"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AA.prototype,"searchCleared",null);_.c([_.Tw("hideTimestamps"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AA.prototype,"hideTimestampsChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],AA);
_.y(AA,"ytd-transcript-search-panel-renderer",function(){if(N_c!==void 0)return N_c;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return N_c=O},{mode:1});var Oq=function(){var O=_.u.apply(this,arguments)||this;O.player=null;O.playerPollJobId=0;return O};
_.X(Oq,_.u);_.v=Oq.prototype;_.v.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.v.onLoadReloadContinuation=function(O){_.V("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:O.target.data.continuation}}):(O={clickTrackingParams:O.target.data.clickTrackingParams,getTranscriptEndpoint:{params:O.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}}))};
_.v.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"}}}};
_.v.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.v.attached=function(){this.updatePlayerListening()};
_.v.detached=function(){this.updatePlayerListening()};
_.v.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.v.startPlayerListening=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return(m=_.M1())?G.yield(m.getPlayerPromise(),2):G.return();O.player=G.yieldResult;O.playerPollJobId=_.ln.addLowPriorityJob(function(){O.getPlayerVideoProgress()},1E3);
O.player.addEventListener("onCueRangeEnter",function(B){O.onCueRangeEnter(B)});
O.player.addEventListener("onCueRangeExit",function(B){O.onCueRangeExit(B)});
O.player.addEventListener("onStateChange",function(B){O.onPlayerStateChange(B)});
O.player.addEventListener("SEEK_TO",function(B){O.onPlayerSeek(B)});
_.ju(G)})};
_.v.getPlayerVideoProgress=function(){var O=this;_.ln.cancelJob(this.playerPollJobId);if(this.player){var m=this.player.getCurrentTime();_.xc(this.hostElement,"yt-player-time-changed",[m])}this.playerPollJobId=_.ln.addLowPriorityJob(function(){O.getPlayerVideoProgress()},1E3)};
_.v.stopPlayerListening=function(){this.player=null;_.ln.cancelJob(this.playerPollJobId)};
_.v.onPlayerStateChange=function(O){O===2&&this.removePendingCue()};
_.v.onPlayerSeek=function(O){var m;if(m=this.pendingReplayCueId)m=this.pendingReplayCueId,m=O===(_.V("web_transcript_cue_id_killswitch")?Number(m):Number(m.split("_")[1]));m||this.removePendingCue()};
_.v.onCueRangeEnter=function(O){Z9a(O)&&(this.pendingReplayCueId=O)};
_.v.onCueRangeExit=function(O){Z9a(O)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.v.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.v.onYtTranscriptPlayerSeek=function(O){this.player&&this.player.seekTo(O,!0)};
_.v.onYtTranscriptPlayerReplay=function(O,m){this.player&&(this.player.addCueRange(Wah(O),O,m),this.player.seekTo(O,!0),this.player.playVideo())};
_.v.onYtTranscriptPlayerEdit=function(O,m){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(Wah(O),O,m),this.player.seekTo(O,!0))};
Oq.prototype.onLoadReloadContinuation=Oq.prototype.onLoadReloadContinuation;Oq.prototype.panelContentVisibleChanged=Oq.prototype.panelContentVisibleChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Oq.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Oq.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Oq.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Oq.prototype,"panelContentVisible",void 0);_.c([_.Tw("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Oq.prototype,"panelContentVisibleChanged",null);
_.c([_.hG("yt-load-reload-continuation"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],Oq.prototype,"onLoadReloadContinuation",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Oq);
_.y(Oq,"ytd-transcript-renderer",function(){if(DZn!==void 0)return DZn;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return DZn=O},{mode:1});var OSh;var m_L;var mq=function(){return _.u.apply(this,arguments)||this};
_.X(mq,_.u);mq.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Wd(this.hostElement,[this.data.clickCommand],this.hostElement))};
mq.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Zu)()+_.wz)+"px)"};
mq.prototype.updateShouldHideFromBinding=function(O){this.shouldHide=O.detail.value};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mq.prototype,"rendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mq.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],mq.prototype,"shouldHide",void 0);_.c([_.l({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],mq);
_.y(mq,"ytd-ad-engagement-panel-banner-renderer",function(){if(m_L!==void 0)return m_L;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return m_L=O},{mode:_.ZB("kevlar_poly_si_batch_j070")?1:2});var GJP;var G6=function(){var O=_.u.apply(this,arguments)||this;O.modernPanels=_.V("kevlar_watch_modern_panels");O.buttonUpdate=_.V("web_modern_buttons");O.adsSemanticText=_.V("enable_ads_web_ep_buenos_aires_and_padding_fix");return O};
_.X(G6,_.u);G6.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.c([_.g(),_.Y("design:type",Object)],G6.prototype,"data",void 0);_.c([_.g({computed:"computeHideDefaultAdBadge(data)"}),_.Y("design:type",Boolean)],G6.prototype,"hideDefaultAdBadge",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],G6.prototype,"modernPanels",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],G6.prototype,"buttonUpdate",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],G6.prototype,"adsSemanticText",void 0);
_.c([_.l({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],G6);
_.y(G6,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(GJP!==void 0)return GJP;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return GJP=O},{mode:1});var Bhc;var B2=function(){var O=_.u.apply(this,arguments)||this;O.darkerPanels=_.V("web_watch_darker_panels");O.enableSqueezebackPanels=_.V("web_shorts_enable_squeezeback_panels");O.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");O.modernPanels=_.V("kevlar_watch_modern_panels");O.headerClickListener=function(m){O.onHeaderClick(m)};
O.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return O};
_.X(B2,_.u);_.v=B2.prototype;_.v.computeAdsInfoButton=function(){if(_.V("web_modern_buttons")){var O,m;return(m=_.b((O=this.data)==null?void 0:O.subtitleComplex,tuq))==null?void 0:m.adInfoRenderer}};
_.v.updateHeaderClickListener=function(){var O,m,G;((O=this.data)==null?0:O.navigationEndpoint)||((m=this.data)==null?0:m.onClickCommand)||_.b((G=this.data)==null?void 0:G.visibilityButton,_.KK)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.v.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}}}}}};
_.v.collapsedChanged=function(){var O;(O=this.data)!=null&&O.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.V("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.v.focus=function(O){var m=this;this.titleElement&&_.ln.addJob(function(){_.OJ(m.titleElement,O)},0,500)};
_.v.computeTitleAriaLabel=function(O){var m=[];if(O.title){var G,B;m.push(this.ytRendererBehavior.getSimpleString(O.title)||((G=O.title.accessibility)==null?void 0:(B=G.accessibilityData)==null?void 0:B.label))}O.contextualInfo&&m.push(this.ytRendererBehavior.getSimpleString(O.contextualInfo));return m.join(" ")};
_.v.onHeaderClick=function(O){this.shouldTriggerHeaderClick(O)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Wd(this.hostElement,[this.data.onClickCommand],this.hostElement)):(O=this.getVisibilityToggleButton())&&O.click())};
_.v.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var O=_.b(this.data.visibilityButton,_.v3)||_.b(this.data.visibilityButton,_.KK);O&&this.ytRendererBehavior.logExplicitClick(O)}};
_.v.getVisibilityToggleButton=function(){var O=_.ZO(this.hostElement).querySelector("#visibility-button").firstElementChild;return(O==null?void 0:O.is)==="ytd-toggle-button-renderer"?O:null};
_.v.shouldTriggerHeaderClick=function(O){return!_.Hu(_.$Z(O),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.v.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(O){O=_.b(O,_.KIq);this.targetId&&(O==null?void 0:O.targetId)===this.targetId&&(O=O.navigationButton)&&this.set("data.navigationButton",O)};
_.vr.Object.defineProperties(B2.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var O;return!!(((O=this.entity)==null?0:O.isActionButtonHidden)||this.hideActionButton)}}});
B2.prototype.collapsedChanged=B2.prototype.collapsedChanged;B2.prototype.updateHeaderClickListener=B2.prototype.updateHeaderClickListener;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],B2.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],B2.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.MK),_.Y("design:type",Object)],B2.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],B2.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],B2.prototype,"targetId",void 0);_.c([_.g(),_.Y("design:type",Boolean)],B2.prototype,"collapsed",void 0);_.c([_.g(),_.Y("design:type",Boolean)],B2.prototype,"hideActionButton",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],B2.prototype,"shortsPanel",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],B2.prototype,"liveChatEngagementPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],B2.prototype,"learningChatEngagementPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],B2.prototype,"darkerPanels",void 0);_.c([_.uc("#title"),_.Y("design:type",HTMLElement)],B2.prototype,"titleElement",void 0);_.c([_.uc("#header"),_.Y("design:type",HTMLElement)],B2.prototype,"headerElement",void 0);
_.c([_.g({computed:"computeAdsInfoButton(data)"}),_.Y("design:type",Object)],B2.prototype,"adsInfoButton",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],B2.prototype,"enableSqueezebackPanels",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],B2.prototype,"enableAnchoredPanel",void 0);_.c([_.g({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(O,m){return _.Vh(O.entities,"engagementPanelTitleHeaderEntity",m)}}),
_.Y("design:type",Object)],B2.prototype,"entity",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],B2.prototype,"modernPanels",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("targetId"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],B2.prototype,"adsSemanticText",null);_.c([_.Tw("data","data.navigationEndpoint","data.onClickCommand"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],B2.prototype,"updateHeaderClickListener",null);
_.c([_.Si("collapsed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],B2.prototype,"collapsedChanged",null);_.c([_.T("entity","hideActionButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],B2.prototype,"isActionButtonHidden",null);_.c([_.l({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],B2);
_.y(B2,"ytd-engagement-panel-title-header-renderer",function(){if(Bhc!==void 0)return Bhc;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Bhc=O},{mode:1});var Q9c;var QS=function(){return _.u.apply(this,arguments)||this};
_.X(QS,_.u);QS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],QS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],QS.prototype,"data",void 0);_.c([_.l({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],QS);
_.y(QS,"ytd-macro-markers-info-item-renderer",function(){if(Q9c!==void 0)return Q9c;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Q9c=O},{mode:1});var HSn;var H2=function(O,m,G,B,Q,H){_.Iw.call(this);var M=this;this.JSC$22793_containerElement=O;this.hostElement=m;this.supportedSyncItems=G;this.syncEntityKey=B;this.options=Q;this.renderLazyListItems=H;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;vvL(this);KN9(this);this.JSC$22793_scrollAnimation=new _.WU(function(R){O.scrollTop=R});
_.VV(this,this.JSC$22793_scrollAnimation);this.addOnDisposeCallback(function(){$_o(M,!1);M.activeItem&&M.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.X(H2,_.Iw);var vvL=function(O){var m=_.dc(_.KR().resolve(_.ry),function(G){return G.entities.markersEngagementPanelSyncEntity||{}},function(G,B){var Q;
if(G[O.syncEntityKey]!==B[O.syncEntityKey]&&((Q=G[O.syncEntityKey])==null?void 0:Q.activeItemIndex)!==void 0)if(B=G[O.syncEntityKey].activeItemIndex,G=O.getItemByIndex(B)){if(MEh(O,G),O.contentVisible)if(O.browsingMode){var H;((H=O.options)==null?void 0:H.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(H=r00(O),G.offsetTop<O.JSC$22793_containerElement.clientHeight+O.JSC$22793_containerElement.scrollTop&&H&&!O.activeItemBelowSyncPosition&&$_o(O,!1));RlL(O)}else O.scrollToItem(G)}else _.ay(new _.j9("Could not find "+
O.supportedSyncItems+" sync child to set active.",B,O.JSC$22793_containerElement.querySelectorAll(O.supportedSyncItems).length))});
O.unsubscribeFromTimedMarkersListSyncEntity=m;O.addOnDisposeCallback(m);iSL(O)},iSL=function(O){var m=_.KR().resolve(_.ry);
m=_.mnI(m.getState(),O.syncEntityKey);(m==null?void 0:m.activeItemIndex)!==void 0&&(m=O.getItemByIndex(m.activeItemIndex))&&MEh(O,m)},KN9=function(O){var m=new _.Pu(O.onScroll,50,O);
_.VV(O,m);var G=function(){m.fire()};
O.JSC$22793_containerElement.addEventListener("scroll",G);O.addOnDisposeCallback(function(){O.JSC$22793_containerElement.removeEventListener("scroll",G)})};
H2.prototype.getItemByIndex=function(O){var m;(m=this.renderLazyListItems)==null||m.call(this,O);m=this.JSC$22793_containerElement.querySelectorAll(this.supportedSyncItems);if(m.length>O)return m[O]};
var MEh=function(O,m){O.activeItem&&O.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));m.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));O.activeItem=m};
H2.prototype.scrollToItem=function(O){O=this.getScrollPositionForItem(O);this.JSC$22793_containerElement.scrollTop!==O&&this.JSC$22793_scrollAnimation.start(this.JSC$22793_containerElement.scrollTop,O,300)};
H2.prototype.getScrollPositionForItem=function(O){if(this.JSC$22793_containerElement.querySelectorAll(this.supportedSyncItems)[0]===O)return 0;var m,G=((m=this.options)==null?0:m.percentOffset)?this.JSC$22793_containerElement.clientHeight*this.options.percentOffset:0;O=_.d9(O).y+this.JSC$22793_containerElement.scrollTop-(_.d9(this.JSC$22793_containerElement).y+G);return Math.max(0,Math.min(O,this.JSC$22793_containerElement.scrollHeight-this.JSC$22793_containerElement.offsetHeight))};
H2.prototype.onScroll=function(){this.activeItemBelowSyncPosition=r00(this);if(this.activeItem&&!this.JSC$22793_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22793_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var O;switch((O=this.options)==null?void 0:O.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":x_n(this,!qR5(this));RlL(this);break;default:x_n(this,!0)}}};
var x_n=function(O,m){var G,B;_.r(function(Q){if(Q.nextAddress==1){if(O.browsingMode)return Q.return();O.browsingMode=!0;m&&O.hostElement.classList.add("browsing-mode");O.playerExitBrowsingModeListener=function(){$_o(O,!1)};
return Q.yield(_.zM(),2)}G=Q.yieldResult;(B=G)==null||B.addEventListener("SEEK_TO",O.playerExitBrowsingModeListener);_.ju(Q)})},$_o=function(O,m){m=m===void 0?!0:m;
O.browsingMode&&(O.browsingMode=!1,O.hostElement.classList.remove("browsing-mode"),m&&O.scrollToItem(O.activeItem),U_G(O))},U_G=function(O){var m,G;
_.r(function(B){if(B.nextAddress==1)return O.playerExitBrowsingModeListener?B.yield(_.zM(),3):B.jumpTo(0);m=B.yieldResult;(G=m)==null||G.removeEventListener("SEEK_TO",O.playerExitBrowsingModeListener);O.playerExitBrowsingModeListener=void 0;_.ju(B)})},RlL=function(O){var m;
((m=O.options)==null?void 0:m.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(qR5(O)?O.hostElement.classList.remove("browsing-mode"):O.activeItem&&O.hostElement.classList.add("browsing-mode"))},r00=function(O){if(!O.activeItem)return!1;
var m,G=((m=O.options)==null?0:m.percentOffset)?O.JSC$22793_containerElement.clientHeight*O.options.percentOffset:0;return O.activeItem.offsetTop>=O.JSC$22793_containerElement.scrollTop+G},qR5=function(O){if(!O.activeItem)return!1;
var m=O.activeItem.offsetTop+14<=O.JSC$22793_containerElement.scrollTop+O.JSC$22793_containerElement.clientHeight;return O.activeItem.offsetTop+O.activeItem.clientHeight-14>=O.JSC$22793_containerElement.scrollTop&&m};
H2.prototype.panelContentVisibleChanged=function(O){(this.contentVisible=O)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var tEG=function(O,m){O.syncEntityKey=m;var G;(G=O.unsubscribeFromTimedMarkersListSyncEntity)==null||G.call(O);vvL(O)},WNA=function(O,m){O.options=m};var v2=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return O};
_.X(v2,_.u);_.v=v2.prototype;_.v.detached=function(){var O;(O=this.scrollController)==null||O.dispose();this.scrollController=void 0};
_.v.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"}}}};
_.v.dataChanged=function(){var O=this;_.QA(this,function(){if(O.scrollController){var m;(m=O.scrollController)==null||$_o(m,!1);var G,B,Q;(B=O.scrollController)==null||tEG(B,(Q=(G=O.data)==null?void 0:G.syncModelEntityKey)!=null?Q:"default-macro-markers-list-renderer-entity-key");var H,M,R;(R=O.scrollController)==null||WNA(R,{percentOffset:(H=O.data)==null?void 0:H.selectedItemAlignmentPercentOffset,floatingPillType:(M=O.data)==null?void 0:M.floatingPillType})}else{var x,t,W,Z;O.scrollController=
new H2(O.contents,O.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(Z=(x=O.data)==null?void 0:x.syncModelEntityKey)!=null?Z:"default-macro-markers-list-renderer-entity-key",{percentOffset:(t=O.data)==null?void 0:t.selectedItemAlignmentPercentOffset,floatingPillType:(W=O.data)==null?void 0:W.floatingPillType},function(z){O.renderLazyListItems(z)})}O.scrollController.panelContentVisibleChanged(!!O.panelContentVisible)})};
_.v.computeButtonShape=function(){var O=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){O.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.v.renderLazyListItems=function(O){for(var m=this.contents.children,G=0,B=0;B<m.length;B++){var Q=void 0;(Q=m[B].ytLazyListBehavior)==null||Q.fillRemainingListItems();var H=void 0,M=void 0;Q=_.b((H=this.data)==null?void 0:(M=H.contents)==null?void 0:M[B],_.Ezm);M=H=void 0;if((H=Q)==null?0:(M=H.contents)==null?0:M.length)G+=Q.contents.length;if(G>=O)break}};
_.v.handleSetActivePanelItemAction=function(O){if((O=_.b(O,Mun))&&this.panelTargetId===O.panelTargetId){O=O.itemIndex;var m,G,B=(G=(m=this.data)==null?void 0:m.syncModelEntityKey)!=null?G:"default-macro-markers-list-renderer-entity-key",Q;((Q=this.syncEntity)==null?void 0:Q.activeItemIndex)!==O&&this.ytdReduxBehavior.dispatch(_.jh("markersEngagementPanelSyncEntity",B,{key:B,activeItemIndex:O}))}};
_.v.onSyncClick=function(){var O;(O=this.scrollController)==null||$_o(O)};
_.v.panelContentVisibleChanged=function(){var O;(O=this.scrollController)==null||O.panelContentVisibleChanged(!!this.panelContentVisible)};
v2.prototype.panelContentVisibleChanged=v2.prototype.panelContentVisibleChanged;v2.prototype.dataChanged=v2.prototype.dataChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],v2.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],v2.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.MK),_.Y("design:type",Object)],v2.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],v2.prototype,"data",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],v2.prototype,"useCustomColors",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],v2.prototype,"panelTargetId",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],v2.prototype,"panelContentVisible",void 0);
_.c([_.uc("#contents"),_.Y("design:type",HTMLElement)],v2.prototype,"contents",void 0);_.c([_.g({selectorArgs:["data.syncModelEntityKey"],selector:_.mnI}),_.Y("design:type",Object)],v2.prototype,"syncEntity",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v2.prototype,"dataChanged",null);
_.c([_.Tw("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v2.prototype,"panelContentVisibleChanged",null);_.c([_.l({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],v2);
_.y(v2,"ytd-macro-markers-list-renderer",function(){if(HSn!==void 0)return HSn;var O=document.createElement("template");_.f(O,'\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" 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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return HSn=O},{mode:1});var ZSc;var Ko=function(){return _.u.apply(this,arguments)||this};
_.X(Ko,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Ko.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ko.prototype,"data",void 0);_.c([_.l({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Ko);
_.y(Ko,"ytd-error-corrections-section-item-renderer",function(){if(ZSc!==void 0)return ZSc;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return ZSc=O},{mode:1});var zl5;var $w=function(){return _.u.apply(this,arguments)||this};
_.X($w,_.u);$w.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],$w.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],$w.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$w.prototype,"data",void 0);_.c([_.l({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],$w);
_.y($w,"ytd-error-corrections-section-renderer",function(){if(zl5!==void 0)return zl5;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return zl5=O},{mode:1});var J0n;var M3=function(){return _.u.apply(this,arguments)||this};
_.X(M3,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],M3.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],M3.prototype,"data",void 0);_.c([_.l({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],M3);
_.y(M3,"ytd-topic-link-renderer",function(){if(J0n!==void 0)return J0n;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return J0n=O},{mode:1});var VE0;var r3=function(){var O=_.u.apply(this,arguments)||this;O.modern=_.V("kevlar_modern_sd_v2");O.modernLockupV2=_.V("modernize_structured_description_playlist_lockups_v2");return O};
_.X(r3,_.u);r3.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],r3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],r3.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],r3.prototype,"modern",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],r3.prototype,"modernLockupV2",void 0);
_.c([_.l({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],r3);
_.y(r3,"ytd-video-description-course-section-renderer",function(){if(VE0!==void 0)return VE0;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return VE0=O},{mode:1});var bSa;var RY=function(){var O=_.u.apply(this,arguments)||this;O.modern=_.V("kevlar_modern_sd_v2");return O};
_.X(RY,_.u);RY.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],RY.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],RY.prototype,"modern",void 0);_.c([_.l({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],RY);
_.y(RY,"ytd-video-description-files-section-renderer",function(){if(bSa!==void 0)return bSa;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return bSa=O},{mode:1});var nv0;var iV=function(){return _.u.apply(this,arguments)||this};
_.X(iV,_.u);iV.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],iV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],iV.prototype,"data",void 0);_.c([_.l({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],iV);
_.y(iV,"ytd-video-description-gaming-section-renderer",function(){if(nv0!==void 0)return nv0;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return nv0=O},{mode:1});var Xfa;var xw=function(){var O=_.u.apply(this,arguments)||this;O.isExpanded=!1;return O};
_.X(xw,_.u);xw.prototype.computeHasDefaultMetadataEndpoint=function(O){var m;O=O==null?void 0:(m=O.defaultMetadata)==null?void 0:m.runs;return!(!O||O.length!==1||!O[0].navigationEndpoint)};
xw.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.vr.Object.defineProperties(xw.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],xw.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],xw.prototype,"isExpanded",void 0);_.c([_.g({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],xw.prototype,"hasDefaultMetadataEndpoint",void 0);
_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xw.prototype,"isExpandable",null);_.c([_.T("data","isExpandable","isExpanded"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xw.prototype,"showExpandedMetadata",null);_.c([_.l({is:"ytd-info-row-renderer",disableElementRegistration:!0})],xw);
_.y(xw,"ytd-info-row-renderer",function(){if(Xfa!==void 0)return Xfa;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Xfa=O},{mode:1});var fKP;var q3=function(){var O=_.u.apply(this,arguments)||this;O.currentIndex=0;O.supportComponentResize=!0;O.modern=_.V("kevlar_modern_sd_v2");O.JSC$22823_lastScrollContainerWidth=NaN;return O};
_.X(q3,_.u);_.v=q3.prototype;
_.v.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"}}}};
_.v.getItemsPath=function(){return"videoLockups"};
_.v.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.v.onIronResize=function(){this.updateVideoLockupStyles()};
_.v.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.v.updateVideoLockupStyles=function(){var O;this.JSC$22823_scrollContainer!==void 0&&(O=this.videoLockups)!=null&&O.length&&(O=this.JSC$22823_scrollContainer.clientWidth,O!==this.JSC$22823_lastScrollContainerWidth&&(this.JSC$22823_lastScrollContainerWidth=O,_.n7(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(O*.8,415)+"px"}),_.iP(this.hostElement,"iron-resize")))};
_.vr.Object.defineProperties(q3.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var O=[],m;if((m=this.data)==null||!m.carouselLockups)return O;m=_.K(this.data.carouselLockups);for(var G=m.next();!G.done;G=m.next()){G=G.value;var B=void 0;((B=_.b(G,l9P))==null?0:B.videoLockup)&&O.push(_.b(G,l9P).videoLockup)}return O}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.videoLockups)==null||!O.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var O=[],m;if((m=this.data)==null||!m.carouselLockups)return O;var G;return(G=_.b(this.data.carouselLockups[this.scrollCount],l9P))==null?void 0:G.infoRows}}});
q3.prototype.dataChanged=q3.prototype.dataChanged;q3.prototype.onIronResize=q3.prototype.onIronResize;q3.prototype.hiddenChanged=q3.prototype.hiddenChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],q3.prototype,"componentBehavior",void 0);_.c([_.h(_.Ir.YtdHorizontalListBehavior),_.Y("design:type",Object)],q3.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],q3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],q3.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],q3.prototype,"inlineStructuredDescription",void 0);_.c([_.g({value:2}),_.Y("design:type",Number)],q3.prototype,"initialCount",void 0);_.c([_.g(),_.Y("design:type",Object)],q3.prototype,"currentIndex",void 0);
_.c([_.g(),_.Y("design:type",Number)],q3.prototype,"scrollCount",void 0);_.c([_.g(),_.Y("design:type",Object)],q3.prototype,"supportComponentResize",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],q3.prototype,"contentHidden",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],q3.prototype,"modern",void 0);_.c([_.uc("#scroll-container"),_.Y("design:type",HTMLDivElement)],q3.prototype,"JSC$22823_scrollContainer",void 0);
_.c([_.Tw("contentHidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],q3.prototype,"hiddenChanged",null);_.c([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],q3.prototype,"videoLockups",null);_.c([_.T("videoLockups"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],q3.prototype,"hasVideoLockups",null);
_.c([_.hG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],q3.prototype,"onIronResize",null);_.c([_.T("data","scrollCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],q3.prototype,"infoRows",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],q3.prototype,"dataChanged",null);_.c([_.l({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],q3);
_.y(q3,"ytd-video-description-music-section-renderer",function(){if(fKP!==void 0)return fKP;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return fKP=O},{mode:_.ZB("kevlar_poly_si_batch_j081")?1:2});var hlL;var Uq=function(){var O=_.u.apply(this,arguments)||this;O.modern=_.V("kevlar_modern_sd_v2");return O};
_.X(Uq,_.u);Uq.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Uq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.c([_.g({}),_.Y("design:type",Object)],Uq.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Uq.prototype,"modern",void 0);_.c([_.l({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Uq);
_.y(Uq,"ytd-video-description-transcript-section-renderer",function(){if(hlL!==void 0)return hlL;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return hlL=O},{mode:1});var ThL;_.qi(_.a(function(O){var m=_.fJ(_.YtN,function(){return O.data().firstProviderLinkStatusEntityKey}),G=_.fJ(_.YtN,function(){return O.data().secondProviderLinkStatusEntityKey}),B=function(){var Q,H;
return((Q=m())==null?void 0:Q.linked)||((H=G())==null?void 0:H.linked)};
return _.q("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.q(_.Jg,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return O.data().sectionTitle}}),_.q(_.Jg,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return B()?O.data().connectedMessage:O.data().notConnectedMessage}}),_.q(_.U,{cond:B,
then:function(){return _.q(_.u5,{data:function(){return O.data().connectedButton}},{buttonViewModel:function(Q){return _.q(_.oF,{data:Q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.q(_.U,{cond:function(){return!B()},
then:function(){return _.q(_.u5,{data:function(){return O.data().notConnectedButton}},{buttonViewModel:function(Q){return _.q(_.oF,{data:Q.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Pk"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=O.data;return _.q("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.q("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.q(_.Jg,{text:function(){return m().sectionTitle}})),_.q("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.q(_.Jg,{text:function(){return m().bodyHeader}})),_.q("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.q(_.Jg,{text:function(){return m().bodyText}})),_.q(_.U,{cond:function(){return m().attributionText},
then:function(){return _.q("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.q(_.Jg,{text:function(){return m().attributionText}}))}}))},"Qk"),"how-this-was-made-section-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){return _.q("yt-video-description-youchat-section-view-model",{class:_.bE("ytVideoDescriptionYouchatSectionViewModelHost")},_.q("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.q(_.Jg,{text:function(){return O.data().sectionTitle}})),_.q("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.q(_.Jg,{text:function(){return O.data().subHeaderText}})),_.q("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.q(_.oF,{data:function(){return _.b(O.data().primaryButton,
_.rc)}})))},"Rk"),"yt-video-description-youchat-section-view-model",{props:{data:_.VZ}});var tM=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return O};
_.X(tM,_.u);_.v=tM.prototype;
_.v.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}}}}}};
_.v.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.v.dataChanged=function(){var O,m;this.hasDescriptionOnly=!(((O=this.data)==null?void 0:(m=O.items)==null?void 0:m.length)!==1||!_.b(this.data.items[0],Y_))};
_.v.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.v.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.v.autoFocusDescription=function(){var O;((O=_.KR().resolve(_.v7(_.IF)))==null?0:O.isKeyBoardInUse())&&this.description&&_.mP(this.description)};
_.v.resize=function(){if(_.V("kevlar_disable_sd_resize"))this.JSC$22832_cardList&&_.iP(this.JSC$22832_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.iP(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.iP(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.v.scrollToSection=function(O){if(O=this.getSectionElement(O))_.xc(this.hostElement,"yt-scroll-to-watch-element",[O]),O.focus()};
_.v.getSectionElement=function(O){switch(O){case "infocards-item-section":var m;return(m=this.infocardsSection)!=null?m:null;case "transcript-item-section":var G;return(G=this.transcriptSection)!=null?G:null;case "how-this-was-made-section-item-section":var B;return(B=this.howThisWasMadeSection)!=null?B:null;case "files-item-section":var Q;return(Q=this.filesSection)!=null?Q:null;default:return null}};
_.v.handleSetActiveItemAction=function(O){var m=_.b(O,Mun),G=m&&(m==null?void 0:m.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22832_cardList;if(m&&G){O=this.currentActiveChapter;var B=this.currentActiveProblem;m=G==null?void 0:G.getItemByIndex(m.itemIndex);var Q=G=!0;m&&(m.active=!0,m.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(G=O!==m,Q=!1,this.currentActiveChapter=m):(m==null?void 0:m.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(G=!1,Q=B!==m,this.currentActiveProblem=m));O&&G&&(O.active=!1);B&&Q&&(B.active=!1)}};
_.vr.Object.defineProperties(tM.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.V("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
tM.prototype.onYtExpanderMoreTapped=tM.prototype.onYtExpanderMoreTapped;tM.prototype.onHiddenChanged=tM.prototype.onHiddenChanged;tM.prototype.dataChanged=tM.prototype.dataChanged;tM.prototype.panelContentVisibleChanged=tM.prototype.panelContentVisibleChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],tM.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],tM.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.Dm),_.Y("design:type",Object)],tM.prototype,"ironResizableBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],tM.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],tM.prototype,"panelContentVisible",void 0);_.c([_.g(),_.Y("design:type",Boolean)],tM.prototype,"hasDescriptionOnly",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tM.prototype,"inlineStructuredDescription",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tM.prototype,"hidden",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tM.prototype,"shortsPanel",void 0);_.c([_.g(),_.Y("design:type",Object)],tM.prototype,"videoSummary",void 0);_.c([_.g(),_.Y("design:type",Object)],tM.prototype,"merchShelf",void 0);
_.c([_.T("videoSummary"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],tM.prototype,"showVideoSummary",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tM.prototype,"engagementPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],tM.prototype,"watchWhileSdp",void 0);_.c([_.uc("ytd-expandable-video-description-body-renderer"),_.Y("design:type",Object)],tM.prototype,"description",void 0);
_.c([_.uc("ytd-horizontal-card-list-renderer"),_.Y("design:type",Object)],tM.prototype,"JSC$22832_cardList",void 0);_.c([_.uc("ytd-horizontal-card-list-renderer[center-items]"),_.Y("design:type",Object)],tM.prototype,"problemWalkthroughCardList",void 0);_.c([_.uc("ytd-shelf-renderer"),_.Y("design:type",Object)],tM.prototype,"shelfSection",void 0);_.c([_.uc("ytd-video-description-music-section-renderer"),_.Y("design:type",Object)],tM.prototype,"musicMetadataSection",void 0);
_.c([_.uc("ytd-video-description-infocards-section-renderer"),_.Y("design:type",Object)],tM.prototype,"infocardsSection",void 0);_.c([_.uc("ytd-video-description-transcript-section-renderer"),_.Y("design:type",Object)],tM.prototype,"transcriptSection",void 0);_.c([_.uc("how-this-was-made-section-view-model"),_.Y("design:type",Object)],tM.prototype,"howThisWasMadeSection",void 0);_.c([_.uc("ytd-video-description-files-section-renderer"),_.Y("design:type",Object)],tM.prototype,"filesSection",void 0);
_.c([_.Tw("panelContentVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tM.prototype,"panelContentVisibleChanged",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tM.prototype,"dataChanged",null);_.c([_.Tw("hidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tM.prototype,"onHiddenChanged",null);
_.c([_.hG("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tM.prototype,"onYtExpanderMoreTapped",null);_.c([_.l({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],tM);
_.y(tM,"ytd-structured-description-content-renderer",function(){if(ThL!==void 0)return ThL;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ThL=O},{mode:2});var gvh;var uHo;var W2=function(){return _.u.apply(this,arguments)||this};
_.X(W2,_.u);W2.prototype.computeAriaLabel=function(O){var m,G;return(O==null?void 0:(m=O.accessibility)==null?void 0:(G=m.accessibilityData)==null?void 0:G.label)||_.Xm("LOADING",void 0,"Loading")};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],W2.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],W2.prototype,"data",void 0);_.c([_.g({computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],W2.prototype,"ariaLabel",void 0);_.c([_.DO({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],W2);
_.y(W2,"yt-content-loading-renderer",function(){if(uHo===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;gvh===void 0&&(gvh=document.createElement("template"));var B=gvh;G.call(m,B.content.cloneNode(!0),O.content.firstChild);uHo=O}O=uHo;return O},{mode:_.ZB("kevlar_poly_si_batch_j043")?1:2});_.qi(_.a(function(O){var m=_.K(_.Wf(!1,void 0,"OZMtVb")),G=m.next().value,B=m.next().value;m=_.K(_.Wf(!1,void 0,"qWERsf"));var Q=m.next().value,H=m.next().value;_.Ln(function(){var x=_.b(O.data().collaboratePlaylistCollaborationSetting,g3A);x&&B(x.switchedOnByDefault);var t=_.b(O.data().allowNewCollaboratorsPlaylistCollaborationSetting,g3A);t&&H(t.switchedOnByDefault);if(!x&&!t||!x&&O.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")B(!0),H(!0)});
var M=function(x){B(x);H(x);var t=O.data().playlistCollaborationEntityKey||"";var W=_.Km().getState();(W=_.Vh(W.entities,"playlistCollaborationEntity",t))&&(W==null?void 0:W.isCollaborative)===x||_.Km().dispatch(_.jh("playlistCollaborationEntity",t,Object.assign({},W,{isCollaborative:x})))},R=function(x){H(x)};
return _.q("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.q("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.q(_.u5,{data:function(){return O.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(x){return _.q(_.NZm,{data:x.data,
onSwitch:M})}})),_.q(_.U,{cond:G,
then:function(){return _.q(_.Mr,null,_.q("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.q(_.u5,{data:function(){return O.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(x){return _.q(_.NZm,{data:x.data,
onSwitch:R,overrideDisabled:!1})}})),_.q(_.U,{cond:Q,
then:function(){return _.q("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.q(_.u5,{data:function(){return O.data().copyLinkButton}},{buttonViewModel:_.oF}))}}),_.q("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.q(_.u5,{data:function(){return O.data().playlistCollaborators}},{contentListItemViewModel:_.U63})))}}))},"Sk"),"playlist-collaboration-view-model",{props:{data:_.VZ}});var j9n=_.a(function(O){var m=O.data;var G=O.customCommandResolver;return _.q(_.Mr,null,_.q("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.q(_.u5,{data:function(){return m().adAvatar}},{adAvatarViewModel:function(B){return _.q(_.X5C,{data:B.data,
customCommandResolver:G})}})),_.q("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.q(_.U,{cond:function(){return m().headline},
then:function(B){return _.q(_.Jg,{text:B,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.q("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.q(_.u5,{data:function(){return m().adBadge}},{adBadgeViewModel:function(B){return _.q(_.EM,{data:B.data,
hasDot:function(){return m().primaryDetailsLine!==void 0},
customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.q(_.u5,{data:function(){return m().primaryDetailsLine}},{adDetailsLineViewModel:function(B){return _.q(_.L5,{data:B.data,
customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Tk"),IK0=_.a(function(O){var m=O.data;
var G=O.customCommandResolver;return _.q("ad-avatar-lockup-view-model",{class:function(){var B;return((B=m().interaction)==null?0:B.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.Mi(_.$V({visibilityCallback:function(B){var Q,H=(Q=m().interaction)==null?void 0:Q.onFirstVisible;B&&H&&_.PE(H)},
showOption:_.Ta}),_.wR(function(){return m().interaction},G)),
"aria-label":function(){var B,Q;return(B=m().interaction)==null?void 0:(Q=B.accessibility)==null?void 0:Q.label}},_.q(_.I8,null,_.q(_.uz,{when:function(){return m().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.q(j9n,{data:m,
customCommandResolver:G})}),_.q(_.jx,null,function(){return null})))},"Uk");_.qi(_.a(function(O){var m=O.data;var G=O.panelContentVisibility;O=_.$V({visibilityCallback:function(H){var M,R=(M=m().interaction)==null?void 0:M.onFirstVisible;H&&R&&_.PE(R)},
showOption:_.Ta});var B=_.wR(function(){return m().interaction},zoA);
_.lF(function(){var H,M;if(M=_.ex("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;M=(R=M())==null?void 0:R.onLayoutVisibleCallback}else M=null;(H=M)==null||H()});
var Q=function(){return G()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.q("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.Mi(O,B)},_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.q(_.U,{cond:_.pS5("(min-width: "+((0,_.Zu)()+_.wz)+"px) or (max-width: 600px)"),then:function(){return _.q(_.u5,{data:function(){return m().adImage}},{adImageViewModel:function(H){return _.q(_.cw,{data:H.data,
targetHeight:80,customCommandResolver:zoA})}})}})),_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.q(_.u5,{data:function(){return m().adAvatarLockup}},{adAvatarLockupViewModel:function(H){return _.q(IK0,{data:H.data,
customCommandResolver:zoA})}})),_.q(_.U,{cond:Q,
then:function(){return _.q(_.u5,{data:function(){return m().adButton}},{adButtonViewModel:function(H){return _.q(_.ud,{data:H.data,
customCommandResolver:zoA})}})},
else:function(){return _.q(_.u5,{data:function(){return m().menu}},{buttonViewModel:_.oF})}}),_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.q(_.u5,{data:function(){var H=_.b(m().toggleButton,_.iR);
return{toggleButtonViewModel:Object.assign({},H,{isTogglingDisabled:!0,isToggled:Q()})}}},{toggleButtonViewModel:_.BT})))))},"Vk"),"panel-ad-header-image-lockup-view-model",{props:{data:_.VZ,
panelContentVisibility:_.VZ}});_.qi(_.a(function(O){var m=function(){return _.b(O.data().inputComposerViewModel,uP5)},G=function(){var n;
return((n=m())==null?void 0:n.youchatPendingResponseEntityKey)||""},B=_.fJ(_.lCK,G),Q=function(){var n;
return!((n=B())==null||!n.isPendingResponse)},H=_.K(_.Wf(!0,void 0,"UmKX1e")),M=H.next().value,R=H.next().value,x=function(){return m().sectionTargetId||"youchat_messages_section"};
H=_.GX("yt-chat-input-view-model");var t=_.Al("textarea"),W=_.fJ(Ka0,"chat_input_view_model_state"),Z=$P5(),z=function(){var n;return!((n=W())==null||!n.value)};
_.Ln(function(){var n;if(!z()&&((n=m())==null?0:n.welcomeFeatureContinuation)){var I;((I=m())==null?0:I.setPendingResponseOnWelcome)&&_.aCr(G())(!0);n={continuationCommand:{token:m().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var S;I=String(Math.floor(((S=_.Jt())==null?void 0:S.getCurrentTime())||0)*1E3);S={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:I}};_.DB(n,{form:{formData:S}});Z(!0)}var L=x(),C;(C=_.KR().resolve(_.v7(_.N2)))==null||
C.addEventListener("yt-navigate-start",function(){_.TM.remove(L);Z(!1)},{once:!0})});
var J=function(){var n=t.value.value;t.value.value="";JLh(t.value);var I,S=((I=m())==null?void 0:I.enableGradientColorBg)||!1;I=VAa(x(),n,S);_.DB(I);var L=_.aCr(G()),C;_.PE(((C=m())==null?void 0:C.onSubmitCommand)||{});L(!0);var P;C=String(Math.floor(((P=_.Jt())==null?void 0:P.getCurrentTime())||0)*1E3);var w;P={continuationCommand:{token:(w=m())==null?void 0:w.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};n={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:n,
playerOffsetMs:C}};_.DB(P,{form:{formData:n},commandController:{onSuccess:function(){L(!1)},
onServerError:function(){var d=x();_.DB({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:d}}]}}});L(!1)}}})};
return _.q("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:H},_.q("div",{class:"chatInputViewModelChatInputWrapper"},_.q("form",{class:"chatInputViewModelChatInputForm"},_.q("textarea",{class:"chatInputViewModelChatInput",el:t,"on:keydown":_.nH(function(n){var I=Q()||!1;JLh(t.value);I||n.key!=="Enter"||n.shiftKey||(n.preventDefault(),J());return!1}),
"on:keyup":_.nH(function(){R(t.value.value.length===0);return!1}),
placeholder:function(){var n,I;var S=_.b((I=m())==null?void 0:I.inputFormField,v3L);return S==null?void 0:(n=S.contentProperties)==null?void 0:n.placeholderText},
rows:1}),_.q(_.oF,{data:function(){return _.b(O.data().sendButton,_.rc)},
onClick:function(n){n.preventDefault();J();R(t.value.value.length===0)},
buttonOverrides:function(){return{disabled:M()||Q()}}})),_.q(_.Jg,{className:"chatInputViewModelChatDisclaimer",
text:function(){var n;return(n=_.b(O.data().disclaimer,_.LE8))==null?void 0:n.text}})))},"Wk"),"yt-chat-input-view-model",{props:{data:_.VZ}});var pfn=["engagement-panel-clip-create","engagement-panel-clip-view"],SR9=0,ZE=function(){var O=_.u.apply(this,arguments)||this;var m;O.headerData=(m=O.data)==null?void 0:m.header;O.darkerPanels=_.V("web_watch_darker_panels");O.matchContentTheme=_.V("web_watch_panel_content_match_theme");O.disableAutoFill=!1;O.isFullscreen=!1;O.isTheaterMode=!1;O.modernPanels=_.V("kevlar_watch_modern_panels");O.liveChatReplyPanel=!1;O.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");O.disableBackdropFilter=
_.V("web_disable_backdrop_filter");O.isPersistentPanel=!1;O.trackEngagementPanelVisibility=_.V("web_watch_track_engagement_panel_visibility");O.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 O};
_.X(ZE,_.u);_.v=ZE.prototype;
_.v.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(O){var m;return(O==null?void 0:(m=O.webComponentHint)==null?void 0:m.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"}}}};
_.v.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var O;if((O=this.hostElement.parentElement)==null?0:O.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.v.detached=function(){this.updateTheaterDisablement()};
_.v.showPanel=function(){var O=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.ln.addJob(function(){O.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.v.maybeScrollToItemSection=function(O){var m=this,G,B=O==null?void 0:(G=O.sectionListEngagementPanelExtras)==null?void 0:G.scrollToItemSectionIdentifier;B&&_.ln.addJob(function(){var Q;(Q=m.sectionListRendererElement)==null||Q.scrollToItemSection(B)},8)};
_.v.hidePanel=function(){var O=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.ln.addJob(function(){O.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.v.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.v.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.v.updatePanel=function(O,m,G,B){var Q=this;if((O=O==null?void 0:O.engagementPanelSectionListRenderer)||B){if(O){B=O.header;var H=O.content,M=O.footer;(O=O.targetId)&&this.set("data.targetId",O);B&&this.set("data.header",B);H&&this.set("data.content",H);M&&this.set("data.footer",M)}else B&&(O=B.content,H=B.secondaryHeaderContent,(B=B.targetId)&&this.set("data.targetId",B),O&&this.set("data.content",O),H&&(this.secondaryHeaderData=H));this.updateChildVisibilityProperties();if(m){var R;_.V("kevlar_update_panel_focus_scroll_killswitch")||
(R={preventScroll:!0});this.focus(R)}_.QA(this,function(){_.iP(Q.hostElement,"yt-refit");Q.maybeScrollToItemSection(G)})}};
_.v.computeHeaderData=function(){var O,m=(0,_.aM.unsafeClone)((O=this.data)==null?void 0:O.header);if(m){O=new _.q$(Object.keys(m)[0]);var G=_.b(m,O),B=_.b(this.secondaryHeaderData,O);B&&_.ya(m,O,Object.assign({},B,G))}return m};
_.v.getReloadContinuation=function(){var O,m,G,B=_.K(((O=this.data)==null?void 0:(m=O.content)==null?void 0:(G=m.sectionListRenderer)==null?void 0:G.continuations)||[]);for(O=B.next();!O.done;O=B.next())if(O=O.value,O.reloadContinuationData)return O.reloadContinuationData.continuation};
_.v.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var O;((O=this.data)==null?0:O.targetId)&&(O=this.contentElement.firstElementChild)&&O.setAttribute("panel-target-id",this.data.targetId)};
_.v.forwardPopupClosedToFlowRootRenderer=function(){var O=_.ZO(this.hostElement).querySelector("ytd-flow-root-renderer");if(O)O.onPopupClosed()};
_.v.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var O;if(!pfn.includes((O=this.theaterDisablementPanelIdentifier)!=null?O:""))if(O=_.V("web_watch_imax_theater_mode")&&this.isTheaterMode,O=_.V("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||O,_.V("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||O){var m;this.visibility=(m=this.data)==null?void 0:m.visibility;var G;this.trackEngagementPanelVisibility&&((G=this.data)==null?void 0:G.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var B,Q,H,M;this.contentEmpty=!!(((B=this.data)==null?0:(Q=B.content)==null?0:Q.structuredDescriptionContentRenderer)&&Object.keys((H=this.data)==null?void 0:(M=H.content)==null?void 0:
M.structuredDescriptionContentRenderer).length===0);(m=_.KR().resolve(_.Ah))&&m.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.v.isTheaterModeChanged=function(){_.V("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.v.isFullscreenChanged=function(){_.V("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.v.focus=function(O){if(this.header)this.header.focus(O);else{var m;(m=_.ZO(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||m.focus(O)}};
_.v.visibilityChanged=function(){if(!_.V("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var O=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",m=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",B=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q=B||!this.lastVisibility,H,M,R,x=((H=this.data)==null?void 0:(M=H.identifier)==null?void 0:
M.tag)||((R=this.data)==null?void 0:R.panelIdentifier);if(O&&Q){var t;((t=this.data)==null?0:t.onShowCommands)&&_.Wd(this.hostElement,this.data.onShowCommands,this.hostElement);x&&_.Kf().dispatch(_.xs({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:x}}))}else if(m&&G){var W;((W=this.data)==null?0:W.onHideCommands)&&_.Wd(this.hostElement,this.data.onHideCommands,this.hostElement);x&&_.Kf().dispatch(_.xs({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:x}}))}O&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*SR9++));_.V("kevlar_watch_focus_on_engagement_panels")&&O&&B&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.v.notifyVisibilityChanged=function(O){var m;_.UB(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,O,(m=this.data)==null?void 0:m.targetId])};
_.v.updateTheaterDisablement=function(){if(!_.V("kevlar_watch_theater_disablement_killswitch")){var O=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&pfn.includes(O)&&!_.V("watch_next_grid_ignore_disallowed_panels")){var m=_.c6(_.Kf().getState()),G=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";O!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():G?(this.originalTheaterState===void 0&&(this.originalTheaterState=m,this.theaterDisablementPanelIdentifier=
O),m&&_.xc(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.v.clearTheaterDisablement=function(){_.xc(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.v.updateChildVisibilityProperties=function(){this.hostElement||_.V("kevlar_panel_property_init_killswitch")||this._enableProperties();var O=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=O);var m,G=(m=this.headerElement)==null?void 0:m.firstElementChild;if(G&&!this.adHeaderImageLockupViewModel){m=O==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";G.collapsed=m;G=_.ZO(G).querySelector("#visibility-button");if(!G)return;(G=G.firstElementChild)&&
G.polymerController.is==="ytd-toggle-button-renderer"&&G.polymerController.data.isToggled!==m&&G.polymerController.set("data.isToggled",m)}var B;if(m=(B=this.contentElement)==null?void 0:B.firstElementChild)if(O&&O!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")m.removeAttribute("panel-content-visible");else{m.setAttribute("panel-content-visible","");var Q;(Q=m.markDirty)==null||Q.call(m)}};
_.v.onYtChangeEngagementPanelVisibilityAction=function(O){var m=this,G,B=(G=this.data)==null?void 0:G.targetId,Q,H,M;G=((Q=this.data)==null?void 0:(H=Q.identifier)==null?void 0:H.tag)||((M=this.data)==null?void 0:M.panelIdentifier);var R=_.b(O,_.rZC),x;O=B&&(R==null?void 0:R.targetId)===B||G&&(R==null?void 0:(x=R.panelIdentifier)==null?void 0:x.tag)===G;this.dialog&&O&&(R==null?void 0:R.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(B==="engagement-panel-comments-section"?_.xc(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.xc(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",G]));!_.V("kevlar_use_engagement_panel_management_component")&&O&&(B=R.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!B?_.ln.addJob(function(){m.visibility=R.visibility},2,this.hideDelayMs):this.visibility=R.visibility,R.visibility&&this.notifyVisibilityChanged(R.visibility))};
_.v.onYtScrollToEngagementPanelCommand=function(O){var m,G=(m=this.data)==null?void 0:m.targetId,B,Q,H;m=((B=this.data)==null?void 0:(Q=B.identifier)==null?void 0:Q.tag)||((H=this.data)==null?void 0:H.panelIdentifier);O=_.b(O,_.bY8);var M;(G&&(O==null?void 0:O.targetId)===G||m&&(O==null?void 0:(M=O.panelIdentifier)==null?void 0:M.tag)===m)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.xc(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.v.attachVEs=function(O){var m,G;(O==null?0:(m=O.content)==null?0:(G=m.productListRenderer)==null?0:G.trackingParams)&&_.uK().graftServerVe(O.content.productListRenderer.trackingParams);var B,Q;(O==null?0:(B=O.content)==null?0:(Q=B.transcriptRenderer)==null?0:Q.trackingParams)&&_.uK().graftServerVe(O.content.transcriptRenderer.trackingParams)};
_.v.onYtUpdateEngagementPanelAction=function(O){var m,G=(m=this.data)==null?void 0:m.targetId;O=_.b(O,Rq0);G&&(O==null?void 0:O.targetId)===G&&(this.updatePanel({engagementPanelSectionListRenderer:{header:O==null?void 0:O.header,content:O==null?void 0:O.content}},!1),this.attachVEs(O))};
_.v.onYtShowEngagementPanelScrimAction=function(O){var m,G=(m=this.data)==null?void 0:m.targetId;O=_.b(O,rXn);G&&(O==null?void 0:O.engagementPanelTargetId)===G&&(this.scrimmed=!0)};
_.v.onYtHideEngagementPanelScrimAction=function(O){var m,G=(m=this.data)==null?void 0:m.targetId;O=_.b(O,$Gq);G&&(O==null?void 0:O.engagementPanelTargetId)===G&&(this.scrimmed=!1)};
_.v.getIdentifier=function(){var O,m,G;return((O=this.data)==null?void 0:O.panelIdentifier)||((m=this.data)==null?void 0:(G=m.identifier)==null?void 0:G.tag)};
_.v.getSurface=function(){var O,m;return(O=this.data)==null?void 0:(m=O.identifier)==null?void 0:m.surface};
_.vr.Object.defineProperties(ZE.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var O=this.getIdentifier();return O==="engagement-panel-youchat"||O==="PAyouchat"}}});
ZE.prototype.visibilityChanged=ZE.prototype.visibilityChanged;ZE.prototype.isFullscreenChanged=ZE.prototype.isFullscreenChanged;ZE.prototype.isTheaterModeChanged=ZE.prototype.isTheaterModeChanged;ZE.prototype.dataChanged=ZE.prototype.dataChanged;ZE.prototype.forwardPopupClosedToFlowRootRenderer=ZE.prototype.forwardPopupClosedToFlowRootRenderer;ZE.prototype.onYtRendererstamperFinished=ZE.prototype.onYtRendererstamperFinished;
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],ZE.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ZE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],ZE.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],ZE.prototype,"ytEventForwardingBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ZE.prototype,"data",void 0);
_.c([_.g({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.Y("design:type",Object)],ZE.prototype,"headerData",void 0);_.c([_.g(),_.Y("design:type",Object)],ZE.prototype,"secondaryHeaderData",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ZE.prototype,"visibility",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZE.prototype,"contentEmpty",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZE.prototype,"scrimmed",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZE.prototype,"dialog",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZE.prototype,"dropdown",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ZE.prototype,"darkerPanels",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ZE.prototype,"matchContentTheme",void 0);_.c([_.g(),_.Y("design:type",Object)],ZE.prototype,"disableAutoFill",void 0);
_.c([_.g({reflectToAttribute:!0,value:_.V("optimal_reading_width_comments_ep")}),_.Y("design:type",Boolean)],ZE.prototype,"optimalReadingWidthComments",void 0);_.c([_.g(),_.Y("design:type",Number)],ZE.prototype,"hideDelayMs",void 0);_.c([_.g({selector:_.Yg,reflectToAttribute:!0}),_.Y("design:type",Object)],ZE.prototype,"isFullscreen",void 0);_.c([_.g({selector:_.c6,reflectToAttribute:!0}),_.Y("design:type",Object)],ZE.prototype,"isTheaterMode",void 0);
_.c([_.g(),_.Y("design:type",Number)],ZE.prototype,"showDelayMs",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data.targetId"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ZE.prototype,"targetId",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ZE.prototype,"webSize",null);_.c([_.g(),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ZE.prototype,"hideFooterBorder",null);
_.c([_.g(),_.Y("design:type",Object)],ZE.prototype,"isWatch",void 0);_.c([_.g(),_.Y("design:type",Object)],ZE.prototype,"originalTheaterState",void 0);_.c([_.g(),_.Y("design:type",Object)],ZE.prototype,"theaterDisablementPanelIdentifier",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ZE.prototype,"modernPanels",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZE.prototype,"isWatchWhilePanel",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZE.prototype,"shortsPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZE.prototype,"liveChatEngagementPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ZE.prototype,"learningChatEngagementPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ZE.prototype,"liveChatReplyPanel",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ZE.prototype,"enableAnchoredPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ZE.prototype,"disableBackdropFilter",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ZE.prototype,"isPersistentPanel",void 0);_.c([_.g(),_.Y("design:type",Object)],ZE.prototype,"trackEngagementPanelVisibility",void 0);_.c([_.uc("#header"),_.Y("design:type",HTMLElement)],ZE.prototype,"headerElement",void 0);
_.c([_.uc("#header > *"),_.Y("design:type",HTMLElement)],ZE.prototype,"header",void 0);_.c([_.uc("ytd-section-list-renderer"),_.Y("design:type",Object)],ZE.prototype,"sectionListRendererElement",void 0);_.c([_.uc("panel-ad-header-image-lockup-view-model"),_.Y("design:type",HTMLElement)],ZE.prototype,"adHeaderImageLockupViewModel",void 0);_.c([_.uc("#content"),_.Y("design:type",HTMLElement)],ZE.prototype,"contentElement",void 0);
_.c([_.hG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZE.prototype,"onYtRendererstamperFinished",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZE.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.c([_.Si("data","isFullscreen","isTheaterMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZE.prototype,"dataChanged",null);
_.c([_.Tw("isTheaterMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZE.prototype,"isTheaterModeChanged",null);_.c([_.Tw("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZE.prototype,"isFullscreenChanged",null);_.c([_.Tw("visibility"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZE.prototype,"visibilityChanged",null);
_.c([_.l({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],ZE);
_.y(ZE,"ytd-engagement-panel-section-list-renderer",function(){if(OSh!==void 0)return OSh;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return OSh=O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var Evn;var z6=function(){var O=_.u.apply(this,arguments)||this;O.lastRenderedPanelIds=new Set;O.visiblePanels=[];O.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return O};
_.X(z6,_.u);_.v=z6.prototype;_.v.dataChanged=function(){if(this.data){for(var O=[],m=_.K(this.data),G=m.next();!G.done;G=m.next()){G=G.value;var B=void 0,Q=void 0,H=(B=G)==null?void 0:(Q=B.engagementPanelSectionListRenderer)==null?void 0:Q.visibility;Q=B=void 0;((B=G)==null?0:(Q=B.engagementPanelSectionListRenderer)==null?0:Q.targetId)&&H!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&O.push(G)}this.visiblePanels=O}else this.visiblePanels=[]};
_.v.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}}};
_.v.withoutVisiblePanelById=function(O){return this.visiblePanels.filter(function(m){var G;return((G=m.engagementPanelSectionListRenderer)==null?void 0:G.targetId)!==O})};
_.v.onYtChangeEngagementPanelVisibilityAction=function(O){var m=this,G=_.b(O,_.rZC);if(this.data&&(G==null?0:G.targetId)&&(G==null?0:G.visibility)){var B,Q=(B=this.data.find(function(M){var R;return((R=M.engagementPanelSectionListRenderer)==null?void 0:R.targetId)===G.targetId}))==null?void 0:B.engagementPanelSectionListRenderer;
if(Q){var H=this.withoutVisiblePanelById(G.targetId);G.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(O=this.data.find(function(M){var R;return((R=M.engagementPanelSectionListRenderer)==null?void 0:R.targetId)===G.targetId}))&&(H=[O].concat(_.lS(H)));
this.hideDelayMs&&G.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&H.length===0?_.ln.addJob(function(){Q.visibility=G.visibility;m.visiblePanels=H},10,this.hideDelayMs):(Q.visibility=G.visibility,this.visiblePanels=H);
_.UB(this.hostElement,"yt-engagement-panels-visible-changed",[H])}}};
_.v.onRendererstamperFinished=function(){var O=new Set(this.visiblePanels.map(function(m){var G;return(G=m.engagementPanelSectionListRenderer)==null?void 0:G.targetId}));
this.handlePanelVisibilityChange(O,this.lastRenderedPanelIds);this.lastRenderedPanelIds=O};
_.v.handlePanelVisibilityChange=function(O,m){O=O===void 0?new Set:O;m=m===void 0?new Set:m;if(this.data)for(var G=_.K(this.data),B=G.next();!B.done;B=G.next()){B=B.value;var Q=void 0,H=void 0,M=(Q=B)==null?void 0:(H=Q.engagementPanelSectionListRenderer)==null?void 0:H.targetId;if(M&&(Q=m.has(M),H=O.has(M),M=void 0,!Q&&H?(H=Q=void 0,M=(Q=B)==null?void 0:(H=Q.engagementPanelSectionListRenderer)==null?void 0:H.onShowCommands):Q&&!H&&(H=Q=void 0,M=(Q=B)==null?void 0:(H=Q.engagementPanelSectionListRenderer)==
null?void 0:H.onHideCommands),M))for(B=_.K(M),M=B.next();!M.done;M=B.next())this.ytComponentBehavior.resolveCommand(M.value)}};
z6.prototype.onRendererstamperFinished=z6.prototype.onRendererstamperFinished;z6.prototype.dataChanged=z6.prototype.dataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],z6.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],z6.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],z6.prototype,"lastRenderedPanelIds",void 0);_.c([_.g(),_.Y("design:type",Number)],z6.prototype,"hideDelayMs",void 0);_.c([_.g(),_.Y("design:type",Array)],z6.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Array)],z6.prototype,"visiblePanels",void 0);_.c([_.g(),_.Y("design:type",Boolean)],z6.prototype,"isWatchWhilePanel",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],z6.prototype,"dataChanged",null);_.c([_.hG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],z6.prototype,"onRendererstamperFinished",null);_.c([_.l({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],z6);
_.y(z6,"ytd-watch-engagement-panels",function(){if(Evn!==void 0)return Evn;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Evn=O},{mode:1});var LNn;var JM=function(){return _.u.apply(this,arguments)||this};
_.X(JM,_.u);JM.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.MG(_.ZO(this.hostElement).querySelector("#text"),_.wsm(_.sjU,this.data.companionLegalText))};
JM.prototype.computeAutoScrollEnabled=function(O,m){return O&&!m};
JM.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
JM.prototype.onToggleTap=function(){this.expanded=!this.expanded};
JM.prototype.expandedChanged=JM.prototype.expandedChanged;JM.prototype.dataChanged=JM.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Ol0),_.Y("design:type",Object)],JM.prototype,"ytdAutoScrollBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],JM.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],JM.prototype,"expanded",void 0);
_.c([_.g({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.Y("design:type",Boolean)],JM.prototype,"autoScrollEnabled",void 0);_.c([_.g(),_.Y("design:type",String)],JM.prototype,"expanderIcon",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JM.prototype,"dataChanged",null);
_.c([_.Tw("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],JM.prototype,"expandedChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],JM);
_.y(JM,"ytd-companion-legal-text-renderer",function(){if(LNn!==void 0)return LNn;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return LNn=O},{mode:1});var CF8;var VS=function(){var O=_.u.apply(this,arguments)||this;O.buttonUpdate=_.V("web_modern_buttons");O.kevlarWatchGrid=_.V("kevlar_watch_grid");O.centerAlignDescription=_.V("action_companion_center_align_description");O.truncateDomain=_.V("action_companion_truncate_domain");O.enableMonoStyle=_.V("enable_default_mono_cta_migration_web_client");return O};
_.X(VS,_.u);_.v=VS.prototype;_.v.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.v.getOnLayoutVisibleCallback=function(){var O=_.ex("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.onLayoutVisibleCallback:null};
_.v.getLayoutId=function(){var O=_.ex("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.layoutId:null};
_.v.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",VS.JSC$22879_DEFAULT_AD_BADGE_RENDERER);var O=this.getOnLayoutVisibleCallback();O&&O()}};
_.v.getButtonRenderer=function(O){return O.actionButton&&_.b(O.actionButton,_.v3)?(delete _.b(O.actionButton,_.v3).navigationEndpoint,_.b(O.actionButton,_.v3)):{}};
_.v.onClick=function(O){var m=this;if((!_.V("web_modern_buttons")||!_.Hu(_.$Z(O),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){O=_.M1();var G=this.getLayoutId();O&&G&&_.V("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?O.getPlayerPromise().then(function(B){(new _.OA(B)).executeCommand(m.data.navigationEndpoint,G)}):_.V("kevlar_companion_resolve_command_killswitch")?_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.xc(this.hostElement,"yt-companion-ad-clicked",["action-companion",G])}};
_.vr.Object.defineProperties(VS.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return((O=this.data)==null?0:(m=O.detailsLine)==null?0:(G=m.adRating)==null?0:G.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 O,m,G,B;return((O=this.data)==null?0:(m=O.detailsLine)==null?0:(G=m.adRating)==null?0:(B=G.ratingIcon)==null?0:B.iconType)?_.bK(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B;return((O=this.data)==null?0:(m=O.detailsLine)==null?0:(G=m.texts)==null?0:(B=G[0])==null?0:B.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 O,m;return((O=this.data)==null?0:(m=O.description)==null?0:m.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var O=_.ex("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var O=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return O?O.indexOf("/default_banner")!==-1:!0}}});
VS.prototype.onClick=VS.prototype.onClick;VS.prototype.dataChanged=VS.prototype.dataChanged;VS.JSC$22879_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Xm("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],VS.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],VS.prototype,"rendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],VS.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],VS.prototype,"buttonUpdate",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],VS.prototype,"kevlarWatchGrid",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],VS.prototype,"centerAlignDescription",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],VS.prototype,"truncateDomain",void 0);
_.c([_.g({computed:"computeButtonOverride(buttonUpdate)"}),_.Y("design:type",Object)],VS.prototype,"buttonOverride",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],VS.prototype,"enableMonoStyle",void 0);_.c([_.T("data.detailsLine.adRating.ratingText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VS.prototype,"getRating",null);_.c([_.T("getRating"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VS.prototype,"computeRatingHidden",null);
_.c([_.T("data.detailsLine.adRating.ratingIcon.iconType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VS.prototype,"iconType",null);_.c([_.T("data.detailsLine.texts.0.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VS.prototype,"getDetailsLine",null);_.c([_.T("getDetailsLine"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VS.prototype,"computeDetailsLineHidden",null);
_.c([_.T("data.description.text"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VS.prototype,"getDescriptionText",null);_.c([_.T("getDescriptionText"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VS.prototype,"computeDescriptionTextHidden",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],VS.prototype,"interactionLoggingClientData",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VS.prototype,"hideBanner",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VS.prototype,"dataChanged",null);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],VS.prototype,"onClick",null);_.c([_.l({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],VS);
_.y(VS,"ytd-action-companion-ad-renderer",function(){if(CF8!==void 0)return CF8;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return CF8=O},{mode:_.ZB("kevlar_poly_si_batch_j067")?1:2});var ov9;var lK5;var bV=function(){var O=_.u.apply(this,arguments)||this;O.buttonUpdate=_.V("web_modern_buttons");O.hideLegacyBanner=_.V("enable_dsa_one_click_ata_translators_infeed_elements");O.adInfoButtonStyle="mono";O.adInfoButtonType="text";O.noDotAdBadge=!0;return O};
_.X(bV,_.u);_.v=bV.prototype;_.v.getOnLayoutVisibleCallback=function(){var O=_.ex("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.onLayoutVisibleCallback:null};
_.v.getLayoutId=function(){var O=_.ex("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.layoutId:null};
_.v.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 O=this.data.image.thumbnail.thumbnails[0];this.imageSrc=O.url?_.d5(O.url):void 0;this.imageWidth=O.width||0;this.imageHeight=O.height||0}this.data.clickthroughEndpoint&&_.b(this.data.clickthroughEndpoint,_.Db)&&(O=_.b(this.data.clickthroughEndpoint,_.Db).url,_.V("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
O||"":O?(O=_.d5(O),this.clickThroughUrl=_.an(O)):this.clickThroughUrl=void 0);(O=this.getOnLayoutVisibleCallback())&&O()}};
_.v.onClick=function(O){_.Hu(_.$Z(O),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(O)};
_.v.handleClick=function(){var O=this;this.data&&this.data.clickthroughEndpoint&&(_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(m){O.macroReplacementBehavior.sendServiceRequestAction([m])}),_.xc(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.v.onLoad=function(){_.UB(this.hostElement,"yt-refit-popups-action")};
_.vr.Object.defineProperties(bV.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var O=_.ex("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var O=_.ex("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.interactionLoggingClientData:null}}});
bV.prototype.onLoad=bV.prototype.onLoad;bV.prototype.onClick=bV.prototype.onClick;bV.prototype.dataChanged=bV.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],bV.prototype,"rendererBehavior",void 0);_.c([_.h(HdG.YtMacroReplacementBehavior),_.Y("design:type",Object)],bV.prototype,"macroReplacementBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],bV.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],bV.prototype,"buttonUpdate",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],bV.prototype,"hideLegacyBanner",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],bV.prototype,"adInfoButtonStyle",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],bV.prototype,"adInfoButtonType",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bV.prototype,"macros",null);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],bV.prototype,"interactionLoggingClientData",null);_.c([_.g(),_.Y("design:type",String)],bV.prototype,"clickThroughUrl",void 0);_.c([_.g(),_.Y("design:type",_.C9)],bV.prototype,"imageSrc",void 0);_.c([_.g(),_.Y("design:type",Number)],bV.prototype,"imageWidth",void 0);_.c([_.g(),_.Y("design:type",Number)],bV.prototype,"imageHeight",void 0);_.c([_.g(),_.Y("design:type",Object)],bV.prototype,"noDotAdBadge",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bV.prototype,"dataChanged",null);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],bV.prototype,"onClick",null);_.c([_.hG("load"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bV.prototype,"onLoad",null);_.c([_.l({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],bV);
_.y(bV,"ytd-image-companion-renderer",function(){if(lK5!==void 0)return lK5;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return lK5=O},{mode:_.ZB("kevlar_poly_si_batch_j067")?1:2});var aKA;var no=function(){return _.u.apply(this,arguments)||this};
_.X(no,_.u);_.v=no.prototype;_.v.dataChanged=function(){this.set("data.adBadge",no.JSC$22888_DEFAULT_AD_BADGE_RENDERER);if(this.data){var O=this.getOnLayoutVisibleCallback();O&&O()}};
_.v.getOnLayoutVisibleCallback=function(){var O=_.ex("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.onLayoutVisibleCallback:null};
_.v.getLayoutId=function(){var O=_.ex("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.layoutId:null};
_.v.onCompanionClicked=function(O){this.data&&(O.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.xc(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.v.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var O=_.M1(),m=this.getLayoutId(),G=this.data.clickToAdvSiteEndpoint;O&&m&&_.V("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?O.getPlayerPromise().then(function(B){(new _.OA(B)).executeCommand(G,m)}):_.iP(this.hostElement,"yt-navigate",{endpoint:G})}};
_.v.sendTrackingPings=function(O){if(O&&O.length!==0&&O[0].loggingUrls&&(O=O[0].loggingUrls.map(this.getBaseUrl)))for(var m=0;m<O.length;m++)_.sO(O[m])};
_.v.getBaseUrl=function(O){return O.baseUrl||""};
_.vr.Object.defineProperties(no.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var O=_.ex("yt.www.ads.eventcache.getLastCompanionData");return O?(O=O())&&O.interactionLoggingClientData:null}}});
no.prototype.onCompanionClicked=no.prototype.onCompanionClicked;no.prototype.dataChanged=no.prototype.dataChanged;no.JSC$22888_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Xm("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],no.prototype,"data",void 0);_.c([_.uc("#title"),_.Y("design:type",HTMLElement)],no.prototype,"shopTitle",void 0);
_.c([_.Si("data.impressionEndpoints"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],no.prototype,"dataChanged",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],no.prototype,"interactionLoggingClientData",null);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],no.prototype,"onCompanionClicked",null);
_.c([_.l({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],no);
_.y(no,"ytd-shopping-companion-renderer",function(){if(aKA!==void 0)return aKA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return aKA=O},{mode:1});_.qi(_.a(function(O){var m=O.data;O=_.$V({visibilityCallback:function(B){var Q,H=(Q=m().interaction)==null?void 0:Q.onFirstVisible;B&&H&&_.PE(H)},
showOption:_.Ta});var G=_.wR(function(){return m().interaction},b90);
_.lF(function(){var B,Q;Q=(Q=_.ex("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.onLayoutVisibleCallback:null;(B=Q)==null||B()});
return _.q("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.nH(function(B){_.UB(B.currentTarget,"yt-refit-popups-action")}),
el:_.Mi(O,G),"aria-label":function(){var B,Q;return(B=m().interaction)==null?void 0:(Q=B.accessibility)==null?void 0:Q.label}},_.q("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.q(_.u5,{data:function(){return m().adImage}},{adImageViewModel:function(B){return _.q(_.cw,{data:B.data,
targetHeight:80,customCommandResolver:b90})}})),_.q("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.q("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.q(_.u5,{data:function(){return m().adBadge}},{adBadgeViewModel:function(B){return _.q(_.EM,{data:B.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.q("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.q(_.u5,{data:function(){return m().menu}},{buttonViewModel:_.oF}))))},"Xk"),"banner-image-layout-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=O.data;O=_.$V({visibilityCallback:function(B){var Q,H=(Q=m().interaction)==null?void 0:Q.onFirstVisible;B&&H&&_.PE(H)},
showOption:_.Ta});var G=_.wR(function(){return m().interaction},n0G);
_.lF(function(){var B,Q;Q=(Q=_.ex("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.onLayoutVisibleCallback:null;(B=Q)==null||B()});
return _.q("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.Mi(O,G)},_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.q(_.u5,{data:function(){return m().adImage}},{adImageViewModel:function(B){return _.q(_.cw,{data:B.data,
targetHeight:80,customCommandResolver:n0G})}})),_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.q(_.u5,{data:function(){return m().adAvatarLockup}},{adAvatarLockupViewModel:function(B){return _.q(IK0,{data:B.data,
customCommandResolver:n0G})}})),_.q(_.u5,{data:function(){return m().adButton}},{adButtonViewModel:function(B){return _.q(_.ud,{data:B.data,
customCommandResolver:n0G})}}),_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.q(_.u5,{data:function(){return m().menu}},{buttonViewModel:_.oF}))))},"Yk"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.VZ}});var kJP={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"},X8=function(){var O=_.u.apply(this,arguments)||this;O.updateCompanionDataJobId=0;O.contentVideoId=null;O.player=null;O.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return O};
_.X(X8,_.u);_.v=X8.prototype;_.v.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:kJP}}};
_.v.attached=function(){var O=this,m=_.M1();m&&m.getPlayerPromise().then(function(G){O.getCachedDataAndListen(G)})};
_.v.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.v.updateRendererStamper=function(){var O={};if(this.data)for(var m in kJP)if(this.data[m]){O[m]=this.data[m];break}if(this.oneofRenderer!=void 0||Object.keys(O).length)this.oneofRenderer=O};
_.v.getCachedDataAndListen=function(O){var m=this.retrieveCachedCompanionData();m&&Object.keys(m).length&&this.receiveCompanionData(m);this.ytPlayerListenerBehavior.listenToPlayerEvent(O,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=O};
_.v.retrieveCachedCompanionData=function(){return _.Qf.yt&&_.Qf.yt.www&&_.Qf.yt.www.ads&&_.Qf.yt.www.ads.eventcache&&_.Qf.yt.www.ads.eventcache.getLastCompanionData?_.Qf.yt.www.ads.eventcache.getLastCompanionData():null};
_.v.receiveCompanionData=function(O){O&&Object.keys(O).length?(this.contentVideoId=O.contentVideoId,this.setCompanionData(O)):this.setCompanionData(O)};
_.v.setCompanionData=function(O){this.cancelPendingCompanionAdJobs();if(O){this.updateCompanionDataJobId=0;for(var m in kJP)kJP.hasOwnProperty(m)&&(this.data[m]=void 0);O.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",O.shoppingCompanionCarouselRenderer):O.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",O.imageCompanionAdRenderer):O.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",O.actionCompanionAdRenderer),_.UB(this.hostElement,
"yt-hide-unlimited-offer-module"),_.UB(this.hostElement,"yt-hide-tvfilm-offer-module")):O.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",O.bannerImageLayoutViewModel):O.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",O.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.v.dataChanged=function(){var O=this,m=_.M1();m?m.getPlayerPromise().then(function(G){O.contentVideoId&&G.getVideoUrl().includes("v="+O.contentVideoId)||(O.cancelPendingCompanionAdJobs(),O.updateRendererStamper())}):_.Dy(Error("Qo"))};
_.v.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.ln.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.v.handleCompanionAdClicked=function(O,m){this.player.onAdUxClicked(O,m);this.player.pauseVideo()};
X8.prototype.dataChanged=X8.prototype.dataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],X8.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],X8.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],X8.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],X8.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",_.Vw)],X8.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],X8.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],X8.prototype,"oneofRenderer",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X8.prototype,"dataChanged",null);_.c([_.l({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],X8);
_.y(X8,"ytd-companion-slot-renderer",function(){if(ov9!==void 0)return ov9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return ov9=O},{mode:_.ZB("kevlar_poly_si_batch_j067")?
1:2});var y0c;var fo=function(){return _.u.apply(this,arguments)||this};
_.X(fo,_.u);fo.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
fo.prototype.dataChanged=fo.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],fo.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],fo.prototype,"companionSlotData",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fo.prototype,"dataChanged",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],fo);
_.y(fo,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(y0c!==void 0)return y0c;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return y0c=O},{mode:1});var c0c;var hM=function(){var O=_.u.apply(this,arguments)||this;O.skinnyMode=!1;O.COMPACT_EVENT_COUNT=4;O.onShelfToggleButtonTap=function(){O.logTap(O.data);O.showingMore=!O.showingMore};
O.onShelfToggleButtonFocus=function(){O.showingMore||(O.logTap(O.data),O.showingMore=!0,_.QA(O,function(){var m=O.COMPACT_EVENT_COUNT-1,G;(G=_.ZO(O.hostElement).querySelector("#event-"+m))==null||G.focus()}))};
return O};
_.X(hM,_.u);_.v=hM.prototype;_.v.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.v.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.v.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.f7(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.f7(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.f7(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.f7(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.f7(this.infoTooltip,this.infoTooltip.hide))};
_.v.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.f7(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.f7(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.f7(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.f7(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.f7(this.infoTooltip,this.infoTooltip.hide))};
_.v.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)};
_.v.onShowingMoreChanged=function(){var O;this.showingMoreChanged((O=this.showingMore)!=null?O:!1)};
_.v.showingMoreChanged=function(O){var m=this.get("data.events")||[];this.set("restEvents",m.slice(1,O?m.length:this.COMPACT_EVENT_COUNT).map(function(G){return G.ticketEventRenderer}));
m.slice(0,O?m.length:this.COMPACT_EVENT_COUNT).forEach(function(G){var B=_.yA();G=G.ticketEventRenderer.trackingParams;_.kf()&&B&&G&&(G=_.Ez(G),B&&_.AK(B,G))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.v.computeAriaLabel=function(O){return O.subtitle1+", "+O.subtitle2};
_.v.logTap=function(O){_.kf()&&this.ytRendererBehavior.logExplicitClick(O)};
_.v.isKeyboardAction=function(O){return this.get("detail.x",O)===0&&this.get("detail.y",O)===0};
_.v.onFirstEventTap=function(O){O.target&&this.handleTap(O.target,this.firstEvent,this.isKeyboardAction(O))};
_.v.onTicketLinkTap=function(O){O.target&&this.handleTap(O.target,O.model.item,this.isKeyboardAction(O))};
_.v.handleTap=function(O,m,G){if(m.buttonCommand)if(m.hasMultipleOffers)Object.assign(_.b(m.buttonCommand,_.Y4),{properties:{source:G?"keyboard":"tap"}}),this.logTap(m),this.popupPositionTarget=O,_.Wd(this.hostElement,[m.buttonCommand],this.hostElement);else{var B;if((B=_.b(m.buttonCommand,_.Db))==null?0:B.url)this.logTap(m),_.Bi(window,_.b(m.buttonCommand,_.Db).url)}};
hM.prototype.onShowingMoreChanged=hM.prototype.onShowingMoreChanged;hM.prototype.dataChanged=hM.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],hM.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],hM.prototype,"firstEvent",void 0);_.c([_.g(),_.Y("design:type",Object)],hM.prototype,"restEvents",void 0);_.c([_.g(),_.Y("design:type",String)],hM.prototype,"imageUrl",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],hM.prototype,"showingMore",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],hM.prototype,"canShowMore",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hM.prototype,"skinnyMode",void 0);_.c([_.g(),_.Y("design:type",HTMLElement)],hM.prototype,"popupPositionTarget",void 0);_.c([_.uc("#banner-info-tooltip"),_.Y("design:type",Object)],hM.prototype,"infoTooltip",void 0);
_.c([_.uc("#info-container"),_.Y("design:type",HTMLElement)],hM.prototype,"infoContainer",void 0);_.c([_.uc("#shelf-toggler"),_.Y("design:type",HTMLElement)],hM.prototype,"shelfToggleButton",void 0);_.c([_.uc("#separator"),_.Y("design:type",HTMLDivElement)],hM.prototype,"separator",void 0);_.c([_.g(),_.Y("design:type",String)],hM.prototype,"shelfTogglerLabelText",void 0);_.c([_.g(),_.Y("design:type",String)],hM.prototype,"shelfTogglerIcon",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hM.prototype,"dataChanged",null);_.c([_.Si("showingMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hM.prototype,"onShowingMoreChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],hM);
_.y(hM,"ytd-ticket-shelf-renderer",function(){if(c0c!==void 0)return c0c;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return c0c=O},{mode:1});var YRh;var d_o;var wf0=function(){return _.u.apply(this,arguments)||this};
_.X(wf0,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wf0.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],wf0.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],wf0);
_.y(wf0,"ytd-comments-entry-point-message-renderer",function(){if(d_o!==void 0)return d_o;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return d_o=O},{mode:1});var elO;var T6=function(){return _.u.apply(this,arguments)||this};
_.X(T6,_.u);_.vr.Object.defineProperties(T6.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.teaserAvatar)}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],T6.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],T6.prototype,"hasAvatar",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],T6);
_.y(T6,"ytd-comments-entry-point-teaser-renderer",function(){if(elO!==void 0)return elO;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return elO=O},{mode:1});var D_h;var s9n=function(){return _.u.apply(this,arguments)||this};
_.X(s9n,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],s9n.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],s9n.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],s9n);
_.y(s9n,"ytd-comments-simplebox-renderer",function(){if(D_h!==void 0)return D_h;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return D_h=O},{mode:1});var g3=function(){var O=_.u.apply(this,arguments)||this;O.fullHeight=!_.V("comment_teaser_full_height_kill_switch")&&_.V("kevlar_watch_grid");return O};
_.X(g3,_.u);g3.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"}}}};
g3.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
g3.prototype.onTap=function(){var O=this.tapCommand;O&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(O))};
g3.prototype.onKeyUp=function(O){if(O.keyCode===13)this.onTap()};
_.vr.Object.defineProperties(g3.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null?0:O.onTap)return this.data.onTap;var m,G;if(((m=this.data)==null?0:m.teaserContent)||((G=this.data)==null?0:G.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)!=null&&O.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
g3.prototype.onKeyUp=g3.prototype.onKeyUp;g3.prototype.onTap=g3.prototype.onTap;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],g3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],g3.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],g3.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],g3.prototype,"fullHeight",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],g3.prototype,"tapCommand",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],g3.prototype,"simpleboxPlaceholder",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],g3.prototype,"hasSimpleboxPlaceholder",null);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],g3.prototype,"simpleboxAvatar",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],g3.prototype,"teaserContent",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],g3.prototype,"hasTeaserContent",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],g3.prototype,"teaserAvatar",null);
_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],g3.prototype,"hasTeaserAvatar",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],g3.prototype,"messageText",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],g3.prototype,"contentRenderer",null);_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],g3.prototype,"hasContents",null);
_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],g3.prototype,"hasContentRenderer",null);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],g3.prototype,"onTap",null);_.c([_.hG("keypress"),_.Y("design:type",Function),_.Y("design:paramtypes",[_.I7]),_.Y("design:returntype")],g3.prototype,"onKeyUp",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],g3);
_.y(g3,"ytd-comments-entry-point-header-renderer",function(){if(YRh!==void 0)return YRh;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return YRh=O},{mode:1});var Nhq;_.qi(_.XUU,"yt-animated-rolling-number",{props:{numberText:_.VZ,numberValue:_.VZ,heightPx:_.VZ,fontSizeMultiplier:_.VZ,shouldAnimate:_.VZ,forceRollUp:_.VZ}});var PFc=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),FNG={numberText:"",heightPx:2*PFc,shouldAnimate:!1},uV=function(){var O=_.u.apply(this,arguments)||this;O.usingAnimatedComponents=!0;O.wasDetailed=!1;O.JSC$22925_browserSupportsAnimation=_.V("web_supports_animations_api");O.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};O.detailed=!1;O.shouldAnimate=!1;O.viewCountProps=FNG;O.dateTextProps=
FNG;O.metadataBadgesInDescription=_.V("web_metadata_badges_in_description");return O};
_.X(uV,_.u);_.v=uV.prototype;_.v.resetAnimationState=function(){this.shouldAnimate=!1};
_.v.updateDynamicMetadata=function(){if(this.JSC$22925_browserSupportsAnimation){if(!this.detailed){var O,m,G,B;var Q=(O=this.videoPrimaryInfoRenderer)==null?void 0:(m=O.viewCount)==null?void 0:(G=m.videoViewCountRenderer)==null?void 0:(B=G.extraShortViewCount)==null?void 0:B.simpleText;var H,M,R,x;var t=(H=this.videoPrimaryInfoRenderer)==null?void 0:(M=H.viewCount)==null?void 0:(R=M.videoViewCountRenderer)==null?void 0:(x=R.shortViewCount)==null?void 0:x.simpleText}if(!t){var W,Z,z,J;Q=(W=this.videoPrimaryInfoRenderer)==
null?void 0:(Z=W.viewCount)==null?void 0:(z=Z.videoViewCountRenderer)==null?void 0:(J=z.unlabeledViewCountValue)==null?void 0:J.simpleText;var n,I,S,L;t=(n=this.videoPrimaryInfoRenderer)==null?void 0:(I=n.viewCount)==null?void 0:(S=I.videoViewCountRenderer)==null?void 0:(L=S.viewCount)==null?void 0:L.simpleText}var C,P,w;O=Number((C=this.videoPrimaryInfoRenderer)==null?void 0:(P=C.viewCount)==null?void 0:(w=P.videoViewCountRenderer)==null?void 0:w.originalViewCount);var d,D;C=(d=this.videoPrimaryInfoRenderer)==
null?void 0:(D=d.relativeDateText)==null?void 0:D.simpleText;var OS;d=!((OS=this.videoPrimaryInfoRenderer)==null||!OS.relativeDateText);if(Q&&t&&O&&(C||!d)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;OS=t.split(new RegExp("("+Q+")"));Q=ucn(OS[0]);var rN;t={numberText:(rN=OS[1])!=null?rN:"",numberValue:O,heightPx:2*PFc,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var xO;rN=((xO=OS[2])!=null?xO:"")+"  ";this.setViewCount(t,Q,ucn(rN));
if(!this.detailed&&d){Q=C.split(/(\d+)/);xO=ucn(Q[0]);var XI;rN={numberText:(XI=Q[1])!=null?XI:"",heightPx:2*PFc,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Vf;XI=((Vf=Q[2])!=null?Vf:"")+"  ";this.setDateText(rN,xO,ucn(XI))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.v.setViewCount=function(O,m,G){_.HX(m)!==_.HX(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=m);this.viewCountProps.numberText!==(O==null?void 0:O.numberText)&&(this.viewCountProps=O||FNG);_.HX(G)!==_.HX(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=G)};
_.v.setDateText=function(O,m,G){_.HX(m)!==_.HX(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=m);this.dateTextProps.numberText!==(O==null?void 0:O.numberText)&&(this.dateTextProps=O||FNG);_.HX(G)!==_.HX(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=G)};
_.v.onYtUpdateViewershipAction=function(O){this.videoPrimaryInfoRenderer&&(_.b(O,o3c).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.b(O,o3c).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.b(O,o3c).viewCount)))};
_.v.onYtUpdateDateTextAction=function(O){if(this.videoPrimaryInfoRenderer){O=_.b(O,_.LIn).dateText;this.shouldAnimate=!0;var m;((m=this.videoPrimaryInfoRenderer)==null?0:m.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",O):this.set("videoPrimaryInfoRenderer.dateText",O)}};
_.vr.Object.defineProperties(uV.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return g0c(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.HX(g0c(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.HX(this.viewCountPreNumberText),this.viewCountProps.numberText,_.HX(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.HX(this.dateTextPreNumberText),this.dateTextProps.numberText,_.HX(this.dateTextPostNumberText)].join("")}}});
uV.prototype.updateDynamicMetadata=uV.prototype.updateDynamicMetadata;uV.prototype.resetAnimationState=uV.prototype.resetAnimationState;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],uV.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],uV.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],uV.prototype,"videoPrimaryInfoRenderer",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uV.prototype,"detailed",void 0);_.c([_.g(),_.Y("design:type",Object)],uV.prototype,"shouldAnimate",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uV.prototype,"viewCountPreNumberText",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uV.prototype,"viewCountProps",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uV.prototype,"viewCountPostNumberText",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uV.prototype,"dateTextPreNumberText",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uV.prototype,"dateTextProps",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uV.prototype,"dateTextPostNumberText",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uV.prototype,"metadataBadgesInDescription",void 0);_.c([_.T("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uV.prototype,"infoText",null);
_.c([_.T("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.Y("design:type",String),_.Y("design:paramtypes",[])],uV.prototype,"descriptionInfoTooltipText",null);_.c([_.T("detailed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uV.prototype,"showDescriptionInfoTooltip",null);
_.c([_.T("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],uV.prototype,"animatedViewCountAccessibilityLabel",null);_.c([_.T("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],uV.prototype,"animatedDateTextAccessibilityLabel",null);
_.c([_.Tw("videoPrimaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uV.prototype,"resetAnimationState",null);_.c([_.Tw("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uV.prototype,"updateDynamicMetadata",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-watch-info-text"})],uV);
_.y(uV,"ytd-watch-info-text",function(){if(Nhq!==void 0)return Nhq;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Nhq=O},{mode:1});var A0O;var On9="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var mrO=_.a(function(O){var m=O.data;var G=O.setTapCommand;_.ER(function(){var B=_.eg(m().onTap);G(B)},"Hj6Srd");
return _.q("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.q(_.u5,{data:function(){return m().avatar}},{avatarViewModel:_.HP}),_.q("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.q("span",null,function(){return m().simpleboxText})))},"Zk");var Gnh=_.a(function(O){return _.q("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.q(_.U,{cond:function(){return _.b(O.data().avatar,_.cu)},
then:function(m){return _.q(_.HP,{data:m,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.q("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.q(_.Jg,{text:function(){return O.data().teaserText}})))},"$k");var Bi5=_.a(function(O){var m=O.data;var G=O.setTapCommand;_.ER(function(){var B=_.eg(m().onTap);G(B)},"IlZFqc");
return _.q("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.q(_.u5,{data:function(){return m().teasers}},{commentsEntryPointTeaserViewModel:Gnh}))},"al");var Q8G=_.a(function(O){var m=O.data;var G=O.setTapCommand;_.ER(function(){var B=_.eg(m().onTap);G(B)},"sYe8ye");
return _.q("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.q(_.Jg,{text:function(){return m().messageText}}))},"bl");var Hn5=_.a(function(O){var m=O.data;var G=O.setTapCommand;var B=O.isDisabled;_.ER(function(){var Q=(B==null?0:B())?void 0:_.eg(m().onTap);G(Q)},"GZxRqd");
return _.q("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.q(_.T$,{icon:function(){return m().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.q(_.U,{cond:function(){return m().image},
then:function(Q){return _.q(_.KH,{data:Q,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.q(_.Jg,{text:function(){return m().text},
className:function(){return m().image||m().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.q(_.u5,{data:function(){return m().button}},{buttonViewModel:function(Q){return _.q(_.oF,{data:Q.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:B==null?void 0:B()}}})}}))},"cl");var vB0=_.a(function(O){var m=O.data;var G=O.itemIndex;var B=O.selectedIndex;var Q=O.indexUpdatedCallback;var H=O.observer;O=O.title;var M=_.Al("yt-carousel-item-view-model",function(Z){H&&H().observe(Z)}),R=function(Z){G()===B()&&Q(Z)},x=_.wg(Qnc),t=_.wg(_.EjM),W=function(){var Z,z,J;
return((Z=m())==null?void 0:Z.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!x()||((z=m())==null?void 0:z.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&t().includes("PAposts_by_host")||((J=m())==null?void 0:J.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&t().includes("PAyouchat")};
return _.q("yt-carousel-item-view-model",{el:M,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":O},_.q(_.u5,{data:function(){var Z,z;return(z=(Z=_.b(m().carouselItem,H_A))==null?void 0:Z.textCarousel)!=null?z:m().carouselItem}},{textCarouselItemViewModel:function(Z){return _.q(Hn5,{data:Z.data,
setTapCommand:R,isDisabled:W})},
commentTeaserCarouselItemViewModel:function(Z){return _.q(Bi5,{data:Z.data,setTapCommand:R})},
commentInputBoxCarouselItemViewModel:function(Z){return _.q(mrO,{data:Z.data,setTapCommand:R})},
commentsEntryPointMessageViewModel:function(Z){return _.q(Q8G,{data:Z.data,setTapCommand:R})}}))},"dl");var Kmq=_.a(function(O){var m=O.numDots;var G=O.activeIndex;return _.q("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.q(_.gi,{each:function(){return Array.from({length:m()})},
keyBy:"INDEX"},function(B,Q){return _.q("div",{class:function(){var H={};return _.CJ("ytCarouselDotsShapeDot",(H.ytCarouselDotsShapeDotActive=Q===G(),H))}})}))},"el");var $ro=_.a(function(O){var m=O.data;var G=O.handleCarouselNavigation;var B=O.numItems;var Q=O.selectedIndex;var H=function(){return{disabled:Q()===0}},M=function(){return{disabled:Q()===B()-1}};
return _.q("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.q("div",null,_.q("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return m().title}),_.q(_.U,{cond:function(){return m().subtitle},
then:function(R){return _.q("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return m().subtitleAccessibilityText}},R)}})),_.q(_.U,{cond:function(){return B()>1},
then:function(){return _.q("div",{class:"ytCarouselTitleViewModelNavigation"},_.q(Kmq,{numDots:B,activeIndex:Q}),_.q(_.U,{cond:function(){return m().previousButton},
then:function(R){return _.q(_.u5,{data:R},{buttonViewModel:function(x){return _.q(_.oF,{data:x.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return G(-1)},
buttonOverrides:H})}})}}),_.q(_.U,{cond:function(){return m().nextButton},
then:function(R){return _.q(_.u5,{data:R},{buttonViewModel:function(x){return _.q(_.oF,{data:x.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return G(1)},
buttonOverrides:M})}})}}))}}))},"fl");_.qi(_.a(function(O){var m=O.data;var G,B=_.Al("yt-video-metadata-carousel-view-model"),Q=_.Al("div",function(d){var D=function(){var OS=d.offsetWidth*I(),rN=24*(I()-1);z(OS+rN)};
D();window.ResizeObserver&&(G=new ResizeObserver(D),G.observe(d))}),H=_.kB("HTML_DIR")==="rtl",M=!1,R=0,x=0;
O=_.K(_.Wf(0,void 0,"M49TDf"));var t=O.next().value,W=O.next().value;O=_.K(_.Wf(0,void 0,"zLIok"));var Z=O.next().value,z=O.next().value;O=_.K(_.Wf(!1,void 0,"bhelhc"));var J=O.next().value,n=O.next().value,I=function(){var d,D,OS;return(OS=(d=m())==null?void 0:(D=d.carouselTitles)==null?void 0:D.length)!=null?OS:0},S=function(){Q.value&&Q.value.scrollLeft!==R&&W((H?Q.value.scrollLeft<R:Q.value.scrollLeft>R)?Math.min(t()+1,I()-1):Math.max(t()-1,0))},L;
window.IntersectionObserver&&(L=new IntersectionObserver(function(d){d=_.K(d);for(var D=d.next();!D.done;D=d.next())if(D.value.isIntersecting){if(M){M=!1;break}S()}else W(x)},{threshold:.2}));
_.ER(function(){if(Q.value){var d=(H?-1:1)*(Z()/I()+12)*(J()&&L?x:t());typeof Q.value.scrollTo==="function"?Q.value.scrollTo({left:d,behavior:"smooth"}):Q.value.scrollLeft=d;R=d;x=J()&&L?x:t()}},"s9rbgc");
var C,P=function(d){C=d};
_.LS(function(){var d;(d=G)==null||d.disconnect();var D;(D=L)==null||D.disconnect()});
var w=function(d){d=t()+d;d>=0&&d<I()&&(M=!0,W(d))};
return _.q("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:B,"on:click":_.nH(function(d){if(_.l5(_.o_(d),B.value,["BUTTON".toString()])||!C)return!1;_.KR().resolve(_.Mu).resolveCommand(C,{forceClickLogging:!0});return!1}),
"on:touchstart":_.nH(function(){n(!0);return!1}),
"on:touchend":_.nH(function(){L||S();n(!1);return!1}),
hidden:function(){var d,D;return!((d=m())==null?0:(D=d.carouselItems)==null?0:D.length)}},_.q("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.q(_.U,{cond:function(){return m().carouselTitles},
then:function(d){return _.q(_.u5,{data:function(){return d()[J()&&L?x:t()]}},{carouselTitleViewModel:function(D){return _.q($ro,{data:D.data,
handleCarouselNavigation:w,numItems:I,selectedIndex:t})}})}})),_.q("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:Q},_.q("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+Z()+"px;"}},_.q(_.U,{cond:function(){return m().carouselItems},
then:function(d){return _.q(_.gi,{each:d},function(D,OS){return _.q(_.u5,{data:function(){return D}},{carouselItemViewModel:function(rN){return _.q(vB0,{data:rN.data,
itemIndex:OS,selectedIndex:t,indexUpdatedCallback:P,observer:L,title:function(){a:{var xO=OS();var XI,Vf=(XI=m())==null?void 0:XI.carouselTitles;if(Vf&&(xO=Vf[xO])){var US;xO=(US=_.b(xO,Qoo))==null?void 0:US.title;break a}xO=void 0}return xO}})}})})}}))))},"gl"),"yt-video-metadata-carousel-view-model",{props:{data:_.VZ}});var Mxa=_.V("web_action_buttons_update_owner_width")?32:12,jN=function(){var O=_.u.apply(this,arguments)||this;O.isHovering=!1;O.enableColorSampling=_.V("web_delhi_colorful_sd");O.metadataBadgesInDescription=_.V("web_metadata_badges_in_description");O.descriptionCollapsed=!0;O.useFadedScrimDescription=_.V("kevlar_enable_faded_scrim_on_description");O.skinnyMode=!1;O.playlist=!1;O.isDark=document.documentElement.hasAttribute("dark");O.disableVideoOwnerOnTap=_.V("swatchie_video_owner_on_tap_ks");O.swatcherooDelayLoad=
_.V("swatcheroo_enable_ghost_cards");O.primaryMenuWidth=0;O.videoId="";O.titleHeadlineXs=_.V("web_watch_typography_title_headline_xs");O.titleHeadlineS=_.V("web_watch_typography_title_headline_s");O.titleHeadlineM=_.V("web_watch_typography_title_headline_m");O.titleHashtagBlackLinkified=_.V("web_title_hashtag_black_linkified");O.titleHashtagGreyLinkified=_.V("web_title_hashtag_grey_linkified");O.actionButtonsUpdateOwnerWidth=_.V("web_action_buttons_update_owner_width");O.shouldForceIconOnly=!1;O.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};O.isFullscreen=!1;O.isTheaterMode=!1;return O};
_.X(jN,_.u);_.v=jN.prototype;_.v.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.v.updateOwnerAndDescriptionPosition=function(){_.V("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.c9(this.bottomRowElement,this.ownerElement)):(_.c9(this.bottomRowElement,this.descriptionElement),_.c9(this.topRowElement,this.ownerElement)))};
_.v.titleOnTap=function(O){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Hu(_.$Z(O)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var m;((m=window.getSelection())==null?0:m.toString().length)||this.handleExpandDescriptionCommands()}};
_.v.videoOwnerOnTap=function(O){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Hu(_.$Z(O)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.v.detached=function(){var O=this,m;return _.r(function(G){(m=O.resizeObserver)==null||m.disconnect();_.ju(G)})};
_.v.maybeAttachResizeObserver=function(){var O=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Pu(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){O.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.v.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var O=this.hostElement.clientWidth,m=Math.max(this.largerItemWrap?400:350,O/2-Mxa);_.V("web_action_buttons_update_owner_width")&&(m=this.ownerElement.clientWidth+Mxa);this.actionsOnSeparateLine=this.primaryMenuWidth>O-m?!0:!1}};
_.v.stripAttributedDescription=function(O){return{content:O.content.replace(/[\r\n]{2,}/g,"\n")}};
_.v.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.V("web_modern_buttons"),forceIconButton:!_.V("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:_.V("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"}}}};
_.v.videoPrimaryInfoRendererChanged=function(){var O;if((O=this.videoPrimaryInfoRenderer)==null?0:O.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.v.videoSecondaryInfoRendererChanged=function(){var O,m;(m=(O=this.descriptionInlineExpander).collapse)==null||m.call(O);this.descriptionExpandClientVe=_.Zv(110509);this.descriptionCollapseClientVe=_.Zv(110510);O=_.yA();m=_.kf();O&&m&&(_.V("combine_ve_grafts")?(_.LK(_.uK(),this.descriptionExpandClientVe,m),_.LK(_.uK(),this.descriptionCollapseClientVe,m)):_.Fm(O,m,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.v.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.v.updateTopLevelIconsOnly=function(){var O=this;_.V("top_level_update_killswitch")||this.menu&&_.ln.addLowPriorityJob(function(){O.menu.topLevelIconsOnly=O.skinnyMode},_.Rd("swathceroo_delay_flexible_menu_update",100))};
_.v.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.V("web_action_buttons_minimize_subscribe")};
_.v.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.v.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.v.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.v.onYtTextInlineExpanderExpandedChanged=function(){if(!_.V("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var O,m;(m=(O=this.structuredDescriptionContentRendererElement).resize)==null||m.call(O)}};
_.v.onRenderStamperFinished=function(O){(O==null?void 0:O.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.v.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.v.onYtExpanderLessTapped=function(){var O,m=(O=this.videoSecondaryInfoRenderer)==null?void 0:O.showLessCommand;m&&this.ytComponentBehavior.resolveCommand(m)};
_.v.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.v.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.v.onDescriptionClick=function(O){if(!_.Hu(_.$Z(O)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var m;((m=window.getSelection())==null?0:m.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.V("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.v.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.v.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.v.logCollapseClick=function(){var O=_.yA();O&&this.descriptionCollapseClientVe&&_.Gk(O,this.descriptionCollapseClientVe)};
_.v.logExpandClick=function(){var O=_.yA();O&&this.descriptionExpandClientVe&&_.Gk(O,this.descriptionExpandClientVe)};
_.v.collapseDescription=function(){this.descriptionCollapsed=!0};
_.v.scrollToTopOfContainer=function(){_.xc(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.v.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.v.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.v.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.v.resize=function(){if(this.descriptionInlineExpander){var O,m;(m=(O=this.descriptionInlineExpander).resize)==null||m.call(O)}else _.ay(new _.j9("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var G;(G=this.menu)==null||G.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.v.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var O,m,G,B,Q=_.V("web_action_buttons_update_owner_width")?(G=(O=_.ZO(this.menu).querySelector("#button-shape"))==null?void 0:O.clientWidth)!=null?G:0:(B=(m=_.ZO(this.menu).querySelector("#button"))==null?void 0:m.clientWidth)!=null?B:0,H,M;O=((M=(H=_.ZO(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:H.clientWidth)!=null?M:0)+8+Q;var R,x;Q=(x=(R=_.ZO(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:R.children.length)!=null?x:2;O<=8*Q||(this.primaryMenuWidth=O)}};
_.v.onYtUpdateTitleAction=function(O){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.b(O,CSO).title)};
_.v.onYtUpdateDescriptionAction=function(O){if(O=_.b(O,_.HQ3)){var m,G=!((m=this.videoSecondaryInfoRenderer)==null||!m.attributedDescription);O.isEmpty||!O.description&&!O.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):O.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",O.attributedDescription):O.description&&(G?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.cE(O.description)):this.set("videoSecondaryInfoRenderer.description",O.description))}};
_.v.onYtDarkModeToggledAction=function(O){this.isDark=O};
_.v.registerPanel=function(){if(!_.V("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var O=_.V("web_watch_imax_theater_mode")&&this.isTheaterMode;O=_.V("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||O;var m=_.KR().resolve(_.Ah);m&&!O&&m.registerPanel("engagement-panel-structured-description",this)}};
_.v.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.v.parseColorSamplingData=function(){var O;if(_.V("web_delhi_colorful_sd")&&((O=this.structuredDescriptionContentRenderer)==null?0:O.items)&&(O=this.structuredDescriptionContentRenderer.items.find(function(Q){return!!_.b(Q,Y_)}))){var m,G;
this.hoverColor={lightTheme:(m=_.b(O,Y_))==null?void 0:m.lightThemeColorPalette,darkTheme:(G=_.b(O,Y_))==null?void 0:G.darkThemeColorPalette};var B;this.hoverText=(B=_.b(O,Y_))==null?void 0:B.colorSampledDescriptionBodyText}};
_.v.updateHoverColor=function(){if(_.V("web_delhi_colorful_sd")){var O=this.hoverColor,m={},G;O=(G=this.isDark?O==null?void 0:O.darkTheme:O==null?void 0:O.lightTheme)!=null?G:{};G=_.K(On9);for(var B=G.next();!B.done;B=G.next()){B=B.value;var Q=O[B];m["--yt-saturated-"+_.fC(B)]=Q?_.AV(Q):"initial"}_.n7(this.hostElement,m)}};
_.v.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.v.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.v.showPanel=function(O){this.expandDescription();var m=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;m.resize();var G,B=O==null?void 0:(G=O.sectionListEngagementPanelExtras)==null?void 0:G.scrollToItemSectionIdentifier;B?_.ln.addJob(function(){m==null||m.scrollToSection(B)},8):this.scrollToTopOfContainer()};
_.v.isVisible=function(){return!this.descriptionCollapsed};
_.v.getReloadContinuation=function(){};
_.v.hidePanel=function(){};
_.v.updatePanel=function(){};
_.vr.Object.defineProperties(jN.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var O;return _.V("web_delhi_colorful_sd")&&(O=this.structuredDescriptionContentRenderer)!=null&&O.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(m){return!_.b(m,Y_)&&!_.b(m,a95)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.structuredDescriptionContentRendererComputed)!=null&&O.items){var m;O=_.K((m=this.structuredDescriptionContentRendererComputed)==null?void 0:m.items);for(m=O.next();!m.done;m=O.next())if(m=_.b(m.value,_.FO$))return m}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.videoPrimaryInfoRenderer)==null?0:O.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return!!((O=this.videoSecondaryInfoRenderer)==null?0:(m=O.owner)==null?0:(G=m.videoOwnerRenderer)==null?0:G.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var O,m;if((O=this.videoSecondaryInfoRenderer)==null?0:(m=O.attributedDescription)==null?0:m.content){var G,B;return(B=this.stripAttributedDescription((G=this.videoSecondaryInfoRenderer)==null?void 0:G.attributedDescription))!=null?B:{runs:[]}}}if(_.V("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var Q,H,M,R;return(R=(M=(Q=this.videoSecondaryInfoRenderer)==
null?void 0:Q.description)!=null?M:(H=this.videoSecondaryInfoRenderer)==null?void 0:H.attributedDescription)!=null?R:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var O,m;return(m=(O=this.videoSecondaryInfoRenderer)==null?void 0:O.headerRuns)!=null?m:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.commentsEntryPointHeaderRenderer)==null||!O.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.videoMetadataCarousel)==null||!O.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Rd("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Rd("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var O,m,G=Object.assign({},(O=this.videoSecondaryInfoRenderer)==null?void 0:(m=O.metadataRowContainer)==null?void 0:m.metadataRowContainerRenderer);if(G&&G.rows&&G.collapsedItemCount!==void 0&&!(G.rows.length<=G.collapsedItemCount))return G.rows=G.rows.slice(G.collapsedItemCount),G.collapsedItemCount=0,G}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var O,m,G=Object.assign({},(O=this.videoSecondaryInfoRenderer)==null?void 0:(m=O.metadataRowContainer)==null?void 0:m.metadataRowContainerRenderer);if(G&&G.rows&&G.collapsedItemCount!==void 0)return G.rows=G.rows.slice(0,G.collapsedItemCount),G.collapsedItemCount=G.rows.length,G}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var O,m;return!!((O=this.structuredDescriptionContentRendererComputed)==null?0:(m=O.items)==null?0:m.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 O;return(O=this.videoSecondaryInfoRenderer)==null?void 0:O.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return((O=this.videoSecondaryInfoRenderer)==null?0:(m=O.owner)==null?0:(G=m.videoOwnerRenderer)==null?0:G.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B;return!!((O=this.videoPrimaryInfoRenderer)==null?0:(m=O.videoActions)==null?0:(G=m.menuRenderer)==null?0:(B=G.flexibleItems)==null?0:B.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.QX(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.QX(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var O=this;if(_.V("web_title_hashtag_grey_delinkified")){var m,G=_.aM.unsafeClone((m=this.videoPrimaryInfoRenderer)==null?void 0:m.title);(m=G==null?void 0:G.runs)&&m.forEach(function(B){if(B==null?0:B.navigationEndpoint)B.textColor=4284506208,O.isDark&&(B.textColor=4289374890)});
return G}return(G=this.videoPrimaryInfoRenderer)==null?void 0:G.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.V("web_title_hashtag_black_delinkified")||_.V("web_title_hashtag_grey_delinkified")}}});
jN.prototype.updateHoverColor=jN.prototype.updateHoverColor;jN.prototype.parseColorSamplingData=jN.prototype.parseColorSamplingData;jN.prototype.resetDescriptionState=jN.prototype.resetDescriptionState;jN.prototype.registerPanel=jN.prototype.registerPanel;jN.prototype.onYtExpanderLessTapped=jN.prototype.onYtExpanderLessTapped;jN.prototype.onYtExpanderMoreTapped=jN.prototype.onYtExpanderMoreTapped;jN.prototype.onRenderStamperFinished=jN.prototype.onRenderStamperFinished;
jN.prototype.onYtTextInlineExpanderExpandedChanged=jN.prototype.onYtTextInlineExpanderExpandedChanged;jN.prototype.onYtTextInlineExpanderCollapseClicked=jN.prototype.onYtTextInlineExpanderCollapseClicked;jN.prototype.onYtTextInlineExpanderExpandClicked=jN.prototype.onYtTextInlineExpanderExpandClicked;jN.prototype.moveActionsElement=jN.prototype.moveActionsElement;jN.prototype.updateShouldForceIconOnly=jN.prototype.updateShouldForceIconOnly;jN.prototype.updateTopLevelIconsOnly=jN.prototype.updateTopLevelIconsOnly;
jN.prototype.structuredDescriptionContentRendererChanged=jN.prototype.structuredDescriptionContentRendererChanged;jN.prototype.videoSecondaryInfoRendererChanged=jN.prototype.videoSecondaryInfoRendererChanged;jN.prototype.videoPrimaryInfoRendererChanged=jN.prototype.videoPrimaryInfoRendererChanged;jN.prototype.maybeUpdateActionsOnSeparateLine=jN.prototype.maybeUpdateActionsOnSeparateLine;jN.prototype.updateOwnerAndDescriptionPosition=jN.prototype.updateOwnerAndDescriptionPosition;
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],jN.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],jN.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],jN.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.MK),_.Y("design:type",Object)],jN.prototype,"ytdReduxBehavior",void 0);_.c([_.uc("#above-the-fold"),_.Y("design:type",HTMLElement)],jN.prototype,"aboveTheFoldContainer",void 0);_.c([_.uc("#menu ytd-menu-renderer"),_.Y("design:type",Object)],jN.prototype,"menu",void 0);_.c([_.uc("#description-inline-expander"),_.Y("design:type",Object)],jN.prototype,"descriptionInlineExpander",void 0);
_.c([_.uc("#faded-structured-description"),_.Y("design:type",Object)],jN.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.c([_.uc("#structured-description"),_.Y("design:type",Object)],jN.prototype,"structuredDescriptionContentRendererElement",void 0);_.c([_.uc("#title"),_.Y("design:type",HTMLElement)],jN.prototype,"titleElement",void 0);_.c([_.uc("#description"),_.Y("design:type",HTMLElement)],jN.prototype,"descriptionElement",void 0);
_.c([_.uc("#description-interaction"),_.Y("design:type",Object)],jN.prototype,"descriptionInteraction",void 0);_.c([_.uc("#owner"),_.Y("design:type",HTMLElement)],jN.prototype,"ownerElement",void 0);_.c([_.uc("#top-row"),_.Y("design:type",HTMLElement)],jN.prototype,"topRowElement",void 0);_.c([_.uc("#bottom-row"),_.Y("design:type",HTMLElement)],jN.prototype,"bottomRowElement",void 0);_.c([_.uc("#actions"),_.Y("design:type",HTMLElement)],jN.prototype,"actionsElement",void 0);
_.c([_.uc("#bottom-actions"),_.Y("design:type",HTMLElement)],jN.prototype,"bottomActionsElement",void 0);_.c([_.uc("#ytd-watch-info-text"),_.Y("design:type",Object)],jN.prototype,"watchInfoTextElement",void 0);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"videoPrimaryInfoRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"videoSecondaryInfoRenderer",void 0);
_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"commentsEntryPointHeaderRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"videoMetadataCarousel",void 0);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"structuredDescriptionContentRenderer",void 0);_.c([_.T("structuredDescriptionContentRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"structuredDescriptionContentRendererComputed",null);
_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"videoSummary",void 0);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"merchShelf",void 0);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"infoPanelBelowMetadata",void 0);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"hoverColor",void 0);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"hoverText",void 0);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"isHovering",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"enableColorSampling",void 0);_.c([_.T("structuredDescriptionContentRendererComputed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"productShelf",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"metadataBadgesInDescription",void 0);_.c([_.T("videoPrimaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"shouldHideBadges",null);
_.c([_.T("productShelf","descriptionCollapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jN.prototype,"shouldShowProductShelf",null);_.c([_.g(),_.Y("design:type",Boolean)],jN.prototype,"isWatchFlexy",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"descriptionCollapsed",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],jN.prototype,"useFadedScrimDescription",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"skinnyMode",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("videoSecondaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"largerItemWrap",null);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"playlist",void 0);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"clarifyBox",void 0);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"playerAds",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],jN.prototype,"isDark",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],jN.prototype,"actionsOnSeparateLine",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"disableVideoOwnerOnTap",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"swatcherooDelayLoad",void 0);_.c([_.g(),_.Y("design:type",Boolean)],jN.prototype,"suppressTopLevelMetadataRows",void 0);
_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"primaryMenuWidth",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"videoId",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"titleHeadlineXs",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"titleHeadlineS",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"titleHeadlineM",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"titleHashtagBlackLinkified",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"titleHashtagGreyLinkified",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.c([_.g(),_.Y("design:type",Object)],jN.prototype,"shouldForceIconOnly",void 0);
_.c([_.Si("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"updateOwnerAndDescriptionPosition",null);_.c([_.Si("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.c([_.T("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"descriptionText",null);_.c([_.T("videoSecondaryInfoRenderer.headerRuns"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],jN.prototype,"headerRuns",null);
_.c([_.g({value:!1}),_.T("commentsEntryPointHeaderRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"hasTeaser",null);_.c([_.g({value:!1,reflectToAttribute:!0}),_.T("videoMetadataCarousel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"hasTeaserCarousel",null);_.c([_.g({value:3}),_.T("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"descriptionMaxLines",null);
_.c([_.T("videoSecondaryInfoRenderer.metadataRowContainer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"collapsibleMetadataRows",null);_.c([_.T("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"alwaysVisibleMetadataRows",null);
_.c([_.T("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jN.prototype,"hasInlineStructuredDescription",null);_.c([_.T("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jN.prototype,"showInlineStructuredDescription",null);
_.c([_.T("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"descriptionExpandCommand",null);_.c([_.T("videoSecondaryInfoRenderer.owner"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"videoOwnerCommand",null);_.c([_.g({reflectToAttribute:!0}),_.T("videoPrimaryInfoRenderer.videoActions"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jN.prototype,"flexMenuEnabled",null);
_.c([_.g({selector:_.Yg,reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"isFullscreen",void 0);_.c([_.g({selector:_.c6,reflectToAttribute:!0}),_.Y("design:type",Object)],jN.prototype,"isTheaterMode",void 0);_.c([_.T("descriptionText","useFadedScrimDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jN.prototype,"showAttributedStringDescription",null);
_.c([_.T("descriptionText","useFadedScrimDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jN.prototype,"showFormattedStringDescription",null);_.c([_.T("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jN.prototype,"showFadedStructuredDescription",null);
_.c([_.Si("videoPrimaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"videoPrimaryInfoRendererChanged",null);_.c([_.T("videoPrimaryInfoRenderer.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"videoTitle",null);_.c([_.T("videoPrimaryInfoRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jN.prototype,"noEndpoints",null);
_.c([_.Si("videoSecondaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"videoSecondaryInfoRendererChanged",null);_.c([_.Tw("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"structuredDescriptionContentRendererChanged",null);
_.c([_.Tw("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"updateTopLevelIconsOnly",null);_.c([_.Tw("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"updateShouldForceIconOnly",null);_.c([_.Tw("skinnyMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"moveActionsElement",null);
_.c([_.hG("yt-text-inline-expander-expand-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"onYtTextInlineExpanderExpandClicked",null);_.c([_.hG("yt-text-inline-expander-collapse-clicked"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.c([_.hG("yt-text-inline-expander-expanded-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.c([_.hG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],jN.prototype,"onRenderStamperFinished",null);
_.c([_.hG("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"onYtExpanderMoreTapped",null);_.c([_.hG("yt-expander-less-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"onYtExpanderLessTapped",null);
_.c([_.Tw("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"registerPanel",null);_.c([_.Tw("videoSecondaryInfoRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"resetDescriptionState",null);
_.c([_.Tw("structuredDescriptionContentRenderer"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"parseColorSamplingData",null);_.c([_.Tw("hoverColor","isDark"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jN.prototype,"updateHoverColor",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-watch-metadata"})],jN);
_.y(jN,"ytd-watch-metadata",function(){if(A0O!==void 0)return A0O;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return A0O=O},{mode:2});_.Wma=function(O){_.Iw.call(this);this.JSC$22950_watchApi=O;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;rNG(this);R2h(this);inh(this);xr9(this);qZ9(this);Urh(this);txO(this)};
_.X(_.Wma,_.Iw);var inh=function(O){var m=function(){_.V("kevlar_is_pupi_enabled")||IY(O)};
O.JSC$22950_watchApi.getRoot().addEventListener("yt-player-updated",m);O.addOnDisposeCallback(function(){O.JSC$22950_watchApi.getRoot().removeEventListener("yt-player-updated",m)})},qZ9=function(O){if(_.V("kevlar_endscreen_auto_theater_mode")){var m=O.JSC$22950_watchApi.subscribeToActiveChanged(function(){ZnP(O)},!1);
O.addOnDisposeCallback(m)}},rNG=function(O){var m,G,B,Q,H;
_.r(function(M){if(M.nextAddress==1)return M.yield(O.JSC$22950_watchApi.playerApi,2);m=M.yieldResult;G=function(R){R=!!R;z2o(O)&&(R=R?2:1,_.nK.getInstance().setState(R,!0,!1))};
B=function(R){R&&_.B5a(_.Kf().getState())&&(_.xc(O.JSC$22950_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),O.temporaryTheaterMode=!0)};
Q=function(R){_.V("kevlar_player_update_autonav_on_new_data")&&R.type==="newdata"&&(_.V("kevlar_is_pupi_enabled")||IY(O))};
H=function(R){O.onPlayerStateChange(R)};
_.V("kevlar_endscreen_auto_theater_mode")&&m.addEventListener("onAutonavCancelled",B);m.addEventListener("onAutonavChangeRequest",G);m.addEventListener("onVideoDataChange",Q);m.addEventListener("onStateChange",H);O.addOnDisposeCallback(function(){m.removeEventListener("onAutonavChangeRequest",G);m.removeEventListener("onVideoDataChange",Q);m.removeEventListener("onStateChange",H);_.V("kevlar_endscreen_auto_theater_mode")&&m.removeEventListener("onAutonavCancelled",B)});
_.ju(M)})},R2h=function(O){O.JSC$22950_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){O.autonavCancelledBySignal=!0;
_.V("kevlar_is_pupi_enabled")||IY(O)});
O.JSC$22950_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(m,G,B){G&&IY(O,B)});
O.JSC$22950_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){z2o(O)&&_.nK.getInstance().setState(2,!0,!0)});
O.JSC$22950_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){z2o(O)&&_.nK.getInstance().setState(1,!0,!0)});
O.addOnDisposeCallback(function(){O.JSC$22950_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");O.JSC$22950_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");O.JSC$22950_watchApi.unregisterActionHandler("yt-enable-autoplay-command");O.JSC$22950_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},xr9=function(O){var m=O.JSC$22950_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){txO(O)}),G=O.JSC$22950_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){Urh(O)});
O.addOnDisposeCallback(function(){O.JSC$22950_watchApi.unsubscribeByKey(m);O.JSC$22950_watchApi.unsubscribeByKey(G)})},txO=function(O){O.autonavCancelledBySignal=!1;
_.V("kevlar_is_pupi_enabled")||IY(O)},Urh=function(O){var m=O.JSC$22950_watchApi.getWatchNextResponse(),G,B;
var Q=(m=(B=_.b(m==null?void 0:(Q=m.playerOverlays)==null?void 0:(G=Q.playerOverlayRenderer)==null?void 0:G.autonavToggle,_.KTe))==null?void 0:B.enabled)?2:1;_.V("kevlar_is_pupi_enabled")?_.nK.getInstance().setState(Q,!1,!1):IY(O);_.V("web_persist_server_autonav_state_on_client")&&typeof m==="boolean"&&_.cx6(Q===2)},z2o=function(O){if(O.autonavCancelledBySignal)return!1;
var m,G,B,Q;return!!((m=O.JSC$22950_watchApi.getWatchNextResponse())==null?0:(G=m.contents)==null?0:(B=G.twoColumnWatchNextResults)==null?0:(Q=B.autoplay)==null?0:Q.autoplay)};
_.Wma.prototype.onPlayerStateChange=function(O){if(O===0){O=!_.nK.getInstance().isAutoplaySetExplicitly();var m=this.JSC$22950_watchApi.getWatchNextResponse(),G,B,Q,H;m=_.b(m==null?void 0:(G=m.contents)==null?void 0:(B=G.twoColumnWatchNextResults)==null?void 0:(Q=B.autoplay)==null?void 0:(H=Q.autoplay)==null?void 0:H.autoplayExplicitChoiceDialogRenderer,_.fN9);z2o(this)&&O&&m&&_.XJ.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:m},popupType:"DIALOG"}})}else ZnP(this)};
var ZnP=function(O){O.temporaryTheaterMode&&(O.temporaryTheaterMode=!1,_.xc(O.JSC$22950_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},IY=function(O,m){m=m===void 0?!1:m;
var G;_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$22950_watchApi.playerApi,2);G=B.yieldResult;z2o(O)?G.setAutonavState(_.nK.getInstance().getState(),m):G.setAutonavState(1,m);_.ju(B)})};var JNG={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"};_.bn0=function(O){_.Iw.call(this);var m=this;this.JSC$22955_watchApi=O;var G=this.JSC$22955_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Vxc(m)});
this.addOnDisposeCallback(function(){m.JSC$22955_watchApi.unsubscribeByKey(G)});
Vxc(this)};
_.X(_.bn0,_.Iw);var Vxc=function(O){var m=O.JSC$22955_watchApi.getPlayerResponse(),G=O.JSC$22955_watchApi.getWatchNextResponse();if(!_.sxN(m==null?void 0:m.playabilityStatus,G==null?void 0:G.playerOverlays)){var B;var Q=m==null?void 0:(B=m.playabilityStatus)==null?void 0:B.errorScreen}O.JSC$22955_watchApi.provideRenderingData("ERROR_SCREEN",Q)};var nBn=_.a(function(O){var m=O.data;O=_.V("web_watch_video_details_hide_subtitle");var G=_.V("web_watch_video_details_single_line_title"),B=_.nH(function(){var R=m().onTap;R&&_.KR().resolve(_.Mu).resolveCommand(R)}),Q={},H={},M={};
return _.q("yt-player-overlay-video-details-renderer",{class:_.bE("ytPlayerOverlayVideoDetailsRendererHost",(Q.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.V("web_watch_video_details_transparent_background"),Q)),"on:click":B,role:"button"},_.q("h2",{class:_.bE("ytPlayerOverlayVideoDetailsRendererTitle",(H.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return G},H))},_.q(_.Jg,{text:function(){return m().title}})),_.q("div",{class:_.bE("ytPlayerOverlayVideoDetailsRendererSubtitle",
(M.ytPlayerOverlayVideoDetailsRendererHideSubtitle=O,M))},_.q(_.Jg,{text:function(){return m().subtitle}})))},"hl");var po={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},Xx9=_.a(function(O){var m=O.data;var G=_.wg(_.Yg),B=_.V("web_watch_action_bar_resize_buttons"),Q=_.V("web_watch_video_action_dsdvb"),H=_.V("delhi_modern_web_player_icons")&&!_.V("enable_web_delhi_icons");O=_.V("delhi_modern_web_player_disable_frosted_glass");var M=_.V("delhi_modern_web_player_compact_controls"),R=function(){return M?
{size:"S",iconPosition:"icon-only"}:B&&!G()?{size:"M"}:void 0},x={};
return _.q("yt-player-quick-action-buttons",{class:_.bE("ytPlayerQuickActionButtonsHost",(x.ytPlayerQuickActionButtonsHostCompactControls=function(){return!G()||M},x.ytPlayerQuickActionButtonsHostDisableBackdropFilter=O,x))},_.q(_.gi,{each:function(){var t=m();
if(H){t=JSON.parse(JSON.stringify(t));for(var W=_.K(t),Z=W.next();!Z.done;Z=W.next()){var z=Z.value,J=void 0;Z=_.b((J=_.b(z,_.mE))==null?void 0:J.toggleButtonViewModel,_.iR);var n=void 0;J=_.b((n=_.b(z,_.O1))==null?void 0:n.toggleButtonViewModel,_.iR);n=_.b(z,_.rc);z=_.b(z,_.iR);if(Z)J=_.b(Z.defaultButtonViewModel,_.rc),Z=_.b(Z.toggledButtonViewModel,_.rc),J&&J.iconName&&(J.iconName=po[J.iconName]),Z&&Z.iconName&&(Z.iconName=po[Z.iconName]);else if(J)Z=_.b(J.defaultButtonViewModel,_.rc),J=_.b(J.toggledButtonViewModel,
_.rc),Z&&Z.iconName&&(Z.iconName=po[Z.iconName]),J&&J.iconName&&(J.iconName=po[J.iconName]);else if(n)n.iconName&&(n.iconName=po[n.iconName]);else if(z){Z=_.b(z.defaultButtonViewModel,_.rc);J=_.b(z.toggledButtonViewModel,_.rc);z=void 0;if((z=Z)==null?0:z.iconName)Z.iconName=po[Z.iconName];Z=void 0;if((Z=J)==null?0:Z.iconName)J.iconName=po[J.iconName]}}}Q&&(t=jn5(t));return t}},function(t){return _.q(_.u5,{data:function(){return t}},{buttonViewModel:function(W){return _.q(_.oF,{data:W.data,
buttonOverrides:R})},
likeButtonViewModel:function(W){return _.q(_.$U,{data:W.data,buttonShapeOverrideables:R})},
dislikeButtonViewModel:function(W){return _.q(_.Kx,{data:W.data,buttonShapeOverrideables:R})},
toggleButtonViewModel:function(W){return _.q(_.BT,{data:W.data,buttonShapeOverrides:R})}})}))},"il");_.h2a=function(O){_.Iw.call(this);var m=this;this.JSC$22959_watchApi=O;O=_.K(_.Wf({},void 0,"n9wCVe"));this.quickActionsViewModel=O.next().value;this.setQuickActionsViewModel=O.next().value;O=_.K(_.Wf({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=O.next().value;this.setPlayerOverlayVideoDetailsRenderer=O.next().value;var G=this.JSC$22959_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){fyA(m)});
this.addOnDisposeCallback(function(){m.JSC$22959_watchApi.unsubscribeByKey(G)});
fyA(this)};
_.X(_.h2a,_.Iw);
var fyA=function(O){var m,G,B,Q,H,M,R,x,t,W,Z,z,J,n;_.r(function(I){if(I.nextAddress==1)return I.yield(O.JSC$22959_watchApi.playerApi,2);m=I.yieldResult;G=O.JSC$22959_watchApi.getWatchNextResponse();H=(B=G)==null?void 0:(Q=B.playerOverlays)==null?void 0:Q.playerOverlayRenderer;R=_.b((M=H)==null?void 0:M.fullscreenQuickActionsBar,_.vz2);(t=(x=O).setQuickActionsViewModel)==null||t.call(x,R||{});R&&Ti0(O,m);z=(W=H)==null?void 0:(Z=W.videoDetails)==null?void 0:Z.playerOverlayVideoDetailsRenderer;(n=(J=
O).setPlayerOverlayVideoDetailsRenderer)==null||n.call(J,z||{});z&&gB5(O,m);_.ju(I)})},Ti0=function(O,m){if(!O.quickActionButtonsContainer)if(m.setFullscreenQuickActions){O.quickActionButtonsContainer=document.createElement("div");
m.setFullscreenQuickActions(O.quickActionButtonsContainer);var G=function(){return O.quickActionsViewModel().quickActionButtons||[]},B=_.Sx(O.quickActionButtonsContainer,function(){return _.q(Xx9,{data:G})},"jl");
O.addOnDisposeCallback(function(){m.setFullscreenQuickActions(void 0);B()})}else _.ay(new _.j9("setFullscreenQuickActions not defined",{playerApi:Object.keys(m),
isReady:m.isReady(),appState:m.getAppState()}))},gB5=function(O,m){if(!O.playerOverlayVideoDetailsRendererContainer)if(m.setPlayerOverlayVideoDetailsRenderer){O.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
m.setPlayerOverlayVideoDetailsRenderer(O.playerOverlayVideoDetailsRendererContainer);var G=_.Sx(O.playerOverlayVideoDetailsRendererContainer,function(){return _.q(nBn,{data:O.playerOverlayVideoDetailsRenderer})},"kl");
O.addOnDisposeCallback(function(){m.setPlayerOverlayVideoDetailsRenderer(void 0);G()})}else _.ay(new _.j9("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(m),
isReady:m.isReady(),appState:m.getAppState()}))};_.SN=function(O){_.Iw.call(this);var m=this;this.JSC$22965_watchApi=O;this.JSC$22965_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;O=_.dc(_.Kf(),_.Yg,function(G){m.onFullscreenChanged(G)});
this.addOnDisposeCallback(O);O=_.dc(_.Kf(),_.am,function(G){m.onWatchScroll(G)});
this.addOnDisposeCallback(O);_.V("kevlar_watch_while_v2")&&(O=_.dc(_.Kf(),_.Ys,function(G){uq9(m,G)}),this.addOnDisposeCallback(O));
j80(this);Iyh(this);pxP();this.onWatchScroll(_.am(_.Kf().getState()));_.yE("START_IN_FULL_WINDOW_MODE")&&this.JSC$22965_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.X(_.SN,_.Iw);var j80=function(O){O.JSC$22965_watchApi.registerActionHandler("yt-fullscreen-change-action",function(m){var G=O.JSC$22965_watchApi.isActive();m&&!G||_.Kf().dispatch(_.xs({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!m}}))});
O.addOnDisposeCallback(function(){O.JSC$22965_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},Iyh=function(O){var m,G;
_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$22965_watchApi.playerApi,2);m=B.yieldResult;G=function(){O.onFullerscreenEduClicked()};
m.addEventListener("onFullerscreenEduClicked",G);O.addOnDisposeCallback(function(){m.removeEventListener("onFullerscreenEduClicked",G)});
_.ju(B)})};
_.SN.prototype.onFullscreenChanged=function(O){var m=this,G;return _.r(function(B){if(B.nextAddress==1)return m.isFullscreen=!!_.$c(),B.yield(m.JSC$22965_watchApi.playerApi,2);G=B.yieldResult;m.JSC$22965_miniplayerActive||G.setFauxFullscreen(m.isFullscreen);if(O&&(m.JSC$22965_watchApi.focusOnPlayer(),!m.fullerscreenEduButtonShownThisPlayback)){m.fullerscreenEduButtonShownThisPlayback=!0;var Q=_.YH("yt-fullerscreen-edu-button-shown-count")||0;_.cX("yt-fullerscreen-edu-button-shown-count",Q+1,31536E3);
m.updateFullerscreenEduButtonSubtleModeState()}_.ju(B)})};
var uq9=function(O,m){var G;_.r(function(B){if(B.nextAddress==1)return O.JSC$22965_miniplayerActive=m,B.yield(O.JSC$22965_watchApi.playerApi,2);G=B.yieldResult;G.setFauxFullscreen(!O.JSC$22965_miniplayerActive&&O.isFullscreen);_.ju(B)})};
_.SN.prototype.onWatchScroll=function(O){var m=this,G,B;return _.r(function(Q){if(Q.nextAddress==1)return _.V("external_fullscreen_with_edu")?Q.yield(m.JSC$22965_watchApi.playerApi,2):Q.return();G=Q.yieldResult;B=O<=0;m.shouldShowFullerscreenEdu!==B&&(m.shouldShowFullerscreenEdu=B,G.updateFullerscreenEduButtonVisibility(!m.shouldShowFullerscreenEdu));_.ju(Q)})};
_.SN.prototype.onFullerscreenEduClicked=function(){this.JSC$22965_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var O=_.YH("yt-fullerscreen-edu-button-click-count")||0;_.cX("yt-fullerscreen-edu-button-click-count",O+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.SN.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var O=this,m,G,B,Q,H,M;return _.r(function(R){if(R.nextAddress==1)return m=_.YH("yt-fullerscreen-edu-button-click-count")||0,G=_.YH("yt-fullerscreen-edu-button-shown-count")||0,B=_.Rd("external_fullscreen_button_click_threshold"),Q=_.Rd("external_fullscreen_button_shown_threshold"),H=m>=B||G>=Q,R.yield(O.JSC$22965_watchApi.playerApi,2);M=R.yieldResult;M.updateFullerscreenEduButtonSubtleModeState(H);_.ju(R)})};
_.SN.prototype.disposeInternal=function(){_.Iw.prototype.disposeInternal.call(this);var O=_.$c();_.V("kevlar_exit_fullscreen_leaving_watch")&&O&&_.MC(O)};
var pxP=function(){if(_.V("web_watch_add_viewport_meta_tag")){var O=document.querySelector("meta[name=viewport]"),m=document.head;m&&!O&&(O=document.createElement("meta"),O.name="viewport",O.content="width=device-width, initial-scale=1.0, viewport-fit=cover",m.appendChild(O))}};_.EBn=function(O){_.Iw.call(this);var m=this;this.JSC$22969_watchApi=O;this.jobId=0;this.pendingRequestId=void 0;var G=this.JSC$22969_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){SZh(m)});
this.addOnDisposeCallback(function(){m.JSC$22969_watchApi.unsubscribeByKey(G)});
SZh(this)};
_.X(_.EBn,_.Iw);var Lmo=function(O){_.ln.cancelJob(O.jobId);O.pendingRequestId=void 0},SZh=function(O){Lmo(O);
var m=IqO(O.JSC$22969_watchApi.getWatchNextResponse());if(m){var G=250,B,Q=(B=_.b(m,_.Hi3))==null?void 0:B.initialDelayMs;_.V("web_watch_updated_metadata_server_initial_delay")&&Q&&(G=Q);O.jobId=_.ln.addLowPriorityJob(function(){return O.fetchUpdatedMetadata(m)},G)}};
_.EBn.prototype.fetchUpdatedMetadata=function(O,m){var G=this,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L;return _.r(function(C){switch(C.nextAddress){case 1:m&&(B={continuation:m});if(!_.V("web_get_updated_metadata_fantasy_panel_continuation_params")){C.jumpTo(2);break}Q=_.KR().resolve(_.Ah);H="PAsports_fantasy";return C.yield(Q.isVisible(H,!0),3);case 3:C.yieldResult&&(t=(R=(M=Q).getUpdatePanelContinuationData)==null?void 0:(x=R.call(M,H))==null?void 0:x.updatePanelContinuationRequest)&&(B||(B={}),B.clientParams=
{panelContinuationParams:{panelContinuation:t}});case 2:W=_.KR().resolve(_.Dk);if(!W)return _.oy(Error("Ro")),C.return();Z={};G.pendingRequestId=Z;return C.yield(_.Ov(W,O,B),4);case 4:z=C.yieldResult;if(Z!==G.pendingRequestId)return C.return();I=(J=z)==null?void 0:(n=J.continuation)==null?void 0:n.timedContinuationData;((S=I)==null?0:S.continuation)&&((L=I)==null?0:L.timeoutMs)&&(G.jobId=_.ln.addLowPriorityJob(function(){return G.fetchUpdatedMetadata(O,I.continuation)},I.timeoutMs));
_.ju(C)}})};
_.EBn.prototype.disposeInternal=function(){_.Iw.prototype.disposeInternal.call(this);Lmo(this)};var Cz8=_.a(function(O){var m=_.nH(function(){var B=O.data().videoId;if(O.active())B=_.Mo(B),_.KR().resolve(_.Mu).resolveCommand(B);else{var Q=O.playerApi(),H=Q.getAvailableAudioTracks(),M,R,x=(M=O.sourceVideoConfig().audioTracks)==null?void 0:(R=M.find(function(t){return t.isDefaultForSource}))==null?void 0:R.id;
if(H=H.find(function(t){return t.getLanguageInfo().getId()===x}))Q.setAudioTrack(H,!0),Q.setCompositeParam({activeVideoId:B}),O.setActiveSourceId(B)}}),G={};
return _.q("ytw-composite-source-video-overlay",{class:_.bE("ytwCompositeSourceVideoOverlayHost",(G.ytwCompositeSourceVideoOverlayActive=O.active,G.ytwCompositeSourceVideoOverlayInteracting=O.interacting,G)),style:_.hH({left:function(){var B;return((B=O.data().topLeftCornerX)!=null?B:0)*100+"%"},
top:function(){var B;return((B=O.data().topLeftCornerY)!=null?B:0)*100+"%"},
width:function(){var B;return((B=O.data().width)!=null?B:0)*100+"%"},
height:function(){var B;return((B=O.data().height)!=null?B:0)*100+"%"}}),
"on:click":m},_.q("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"ll");var oB5=_.a(function(O){var m=_.K(_.fH(function(){var M,R=(M=O.data().sources)==null?void 0:M.find(function(x){return x.isActive});
if(R)return R.videoId})),G=m.next().value,B=m.next().value;
m=_.K(_.Wf(!1,void 0,"yNRzwd"));var Q=m.next().value,H=m.next().value;return _.q("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.nH(function(){H(!0)}),
"on:mouseout":_.nH(function(){H(!1)})},_.q(_.U,{cond:function(){return O.data().sources},
then:function(M){return _.q(_.gi,{each:M},function(R){return _.q(Cz8,{data:R,active:function(){return R.videoId===G()},
setActiveSourceId:B,interacting:Q,playerApi:O.playerApi,sourceVideoConfig:function(){return p8h(O.compositeVideoConfig(),R.videoId)}})})}}))},"ml");_.kn5=function(O){_.Iw.call(this);this.JSC$22985_watchApi=O;O=_.K(_.Wf({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=O.next().value;this.setCompositeVideoOverlayRenderer=O.next().value;O=_.K(_.Wf({},void 0,"OlaJpc"));this.compositeVideoConfig=O.next().value;this.setCompositeVideoConfig=O.next().value;ly0(this);ay8(this)};
_.X(_.kn5,_.Iw);var ly0=function(O){var m=O.JSC$22985_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ay8(O)});
O.addOnDisposeCallback(function(){O.JSC$22985_watchApi.unsubscribeByKey(m)})},yNA=function(O){var m;
return _.r(function(G){if(G.nextAddress==1)return G.yield(O.JSC$22985_watchApi.playerApi,2);m=G.yieldResult;m.setCompositeVideoOverlayRendererComponent(O.container);_.ju(G)})},cNc=function(O){var m;
return _.r(function(G){if(G.nextAddress==1)return G.yield(O.JSC$22985_watchApi.playerApi,2);m=G.yieldResult;m.setCompositeVideoOverlayRendererComponent(void 0);_.ju(G)})},YZq=function(O){var m,G;
return _.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$22985_watchApi.playerApi,2);m=B.yieldResult;O.container=document.createElement("div");G=_.Sx(O.container,function(){return _.q(oB5,{data:O.compositeVideoOverlayRenderer,compositeVideoConfig:O.compositeVideoConfig,playerApi:m})},"nl");
O.addOnDisposeCallback(G);_.ju(B)})},ay8=function(O){var m,G,B,Q,H,M,R,x;
_.r(function(t){return t.nextAddress==1?(m=O.JSC$22985_watchApi.getPlayerResponse(),H=_.b((G=m)==null?void 0:(B=G.overlay)==null?void 0:(Q=B.playerControlsOverlayRenderer)==null?void 0:Q.compositeVideoOverlay,hqc),x=(M=m)==null?void 0:(R=M.playerConfig)==null?void 0:R.compositeVideoConfig,H&&O.setCompositeVideoOverlayRenderer(H),x&&O.setCompositeVideoConfig(x),H&&x?O.container?t.jumpTo(6):t.yield(YZq(O),6):dro(O)?t.yield(cNc(O),0):t.jumpTo(0)):dro(O)?t.jumpTo(0):t.yield(yNA(O),0)})},dro=function(O){var m;
return!((m=O.container)==null||!m.parentElement)};
_.kn5.prototype.disposeInternal=function(){dro(this)&&cNc(this);_.Iw.prototype.disposeInternal.call(this)};_.Nia=function(O){_.Iw.call(this);var m=this;this.JSC$22991_watchApi=O;var G=this.JSC$22991_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var B=m.JSC$22991_watchApi.getPlayerResponse();if(B){var Q,H;if(B=_.b((Q=B.endscreen)==null?void 0:(H=Q.endscreenRenderer)==null?void 0:H.hideButton,_.iR)){var M;(M=m.setEndscreenHideButton)==null||M.call(m,B);wx8(m)}}});
this.addOnDisposeCallback(function(){m.JSC$22991_watchApi.unsubscribeByKey(G)});
O=_.K(_.Wf({},void 0,"ER3tqb"));this.endscreenHideButton=O.next().value;this.setEndscreenHideButton=O.next().value;e2G(this);Dr8(this);s85(this)};
_.X(_.Nia,_.Iw);
var wx8=function(O){var m,G;_.r(function(B){if(B.nextAddress==1)return O.creatorEndscreenHideButtonContainer?B.return():B.yield(O.JSC$22991_watchApi.playerApi,2);m=B.yieldResult;O.creatorEndscreenHideButtonContainer=document.createElement("div");_.OR(O.creatorEndscreenHideButtonContainer,!1);m.setCreatorEndscreenHideButton(O.creatorEndscreenHideButtonContainer);G=_.Sx(O.creatorEndscreenHideButtonContainer,function(){return _.q(_.BT,{data:O.endscreenHideButton,useOutlinedIcon:!0})},"ol");
O.addOnDisposeCallback(function(){G();var Q;(Q=m)==null||Q.setCreatorEndscreenHideButton(void 0)});
_.ju(B)})},e2G=function(O){var m,G;
_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$22991_watchApi.playerApi,2);m=B.yieldResult;G=function(){O.creatorEndscreenHideButtonContainer&&_.OR(O.creatorEndscreenHideButtonContainer,!0)};
m.addEventListener("endscreenelementshown",G);O.addOnDisposeCallback(function(){var Q;(Q=m)==null||Q.removeEventListener("endscreenelementshown",G)});
_.ju(B)})},Dr8=function(O){var m=function(){O.creatorEndscreenHideButtonContainer&&_.OR(O.creatorEndscreenHideButtonContainer,!1)},G=O.JSC$22991_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",m),B=O.JSC$22991_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",m);
O.addOnDisposeCallback(function(){O.JSC$22991_watchApi.unsubscribeByKey(G);O.JSC$22991_watchApi.unsubscribeByKey(B)})},s85=function(O){O.JSC$22991_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(m){var G=_.b(m,JXa);
O.JSC$22991_watchApi.playerApi.then(function(B){B==null||B.setCreatorEndscreenVisibility(!!G.hide)})});
O.addOnDisposeCallback(function(){O.JSC$22991_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.Fma=function(O){_.Iw.call(this);this.JSC$22997_watchApi=O;Pza(this)};
_.X(_.Fma,_.Iw);var Pza=function(O){var m,G;_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$22997_watchApi.playerApi,2);m=B.yieldResult;G=function(Q){_.Kf().dispatch(_.xs({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:Q}}))};
m.addEventListener("onRetroModeChanged",G);O.addOnDisposeCallback(function(){m.removeEventListener("onRetroModeChanged",G)});
_.ju(B)})};var kcc=0,y9=0,cLP=0;var ANn;ANn=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Eq=function(O){_.Iw.call(this);this.JSC$23002_watchApi=O;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;ORA(this)};
_.X(_.Eq,_.Iw);
var ORA=function(O){var m,G,B;_.r(function(Q){if(Q.nextAddress==1)return Q.yield(O.JSC$23002_watchApi.playerApi,2);m=Q.yieldResult;if(O.isDisposed())return Q.return();O.sessionStorage=_.FIx("yt-sleep-timer");O.sessionStorage||_.ay(new _.j9("SessionStorage for Sleep Timer is undefined."));((G=O.sessionStorage)==null?void 0:G.get("yt-sleep-timer"))==="true"&&(w8n(),(B=O.sessionStorage)==null||B.remove("yt-sleep-timer"),m.syncVolume());mun(O,m);Ggo(O,m);BIO(O,m);_.ju(Q)})},mun=function(O,m){var G=function(t){O.onSleepTimerSettingsChanged(t,
m)},B=function(t){O.onPlayerStateChange(t,m)},Q=function(){O.onLoopChange(m)},H=function(){O.onCloseMiniplayer(m)},M=function(){aq0(m,(0,_.$G)(),eoq(m),O.selectedOption==="End of video",m.getPlayerState()!==1)},R=function(){O.onSeekComplete(m)},x=function(){_.ln.cancelJob(y9);
var t=m.getCurrentTime()>=m.getDuration(),W=O.selectedOption==="End of video"||O.selectedOption==="End of playlist"&&!CGc(O.playlistId);t&&W&&Qda(O,m)};
m.addEventListener("onSleepTimerSettingsChanged",G);m.addEventListener("onLoopChange",Q);m.addEventListener("onLoopRangeChange",Q);m.addEventListener("onStateChange",B);m.addEventListener("onCloseMiniplayer",H);m.addEventListener("onSleepTimerFeatureAvailable",M);m.addEventListener("SEEK_COMPLETE",R);m.addEventListener("onAdStart",x);O.addOnDisposeCallback(function(){m.removeEventListener("onSleepTimerSettingsChanged",G);m.removeEventListener("onLoopChange",Q);m.removeEventListener("onLoopRangeChange",
Q);m.removeEventListener("onStateChange",B);m.removeEventListener("onCloseMiniplayer",H);m.removeEventListener("onSleepTimerFeatureAvailable",M);m.removeEventListener("SEEK_COMPLETE",R);m.removeEventListener("onAdStart",x)})},Ggo=function(O,m){var G=O.JSC$23002_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var B=m.getVideoData().video_id,Q,H=(Q=E0c(O.JSC$23002_watchApi))==null?void 0:Q.playlistId;
O.pauseAutonavPlayback&&(m.pauseVideo(),m.syncVolume(),O.pauseAutonavPlayback=!1);if(O.selectedOption==="End of video"&&B!==O.videoId)Lo(O,m);else{if(O.selectedOption==="End of playlist"){Q=CGc(O.playlistId);if(H!==O.playlistId){Lo(O,m);break a}Q?Q&&HR5(O,m):vRh(O,m)}O.videoId=B;O.playlistId=H}}});
O.addOnDisposeCallback(function(){O.JSC$23002_watchApi.unsubscribeByKey(G)})},BIO=function(O,m){var G=_.KR().resolve(_.ry),B=_.dc(G,_.vAf,function(H){H&&O.selectedOption!=="Off"&&Lo(O,m)}),Q=O.JSC$23002_watchApi.subscribeToActiveChanged(function(H){var M,R;
return _.r(function(x){if(x.nextAddress==1)return x.yield(_.c3().navigationFinishPromise,2);M=!_.nS8();R=_.KR().resolve(_.c$).isMiniplayerActive();H||!ShA(O.selectedOption)||R||M||Lo(O,m);_.ju(x)})},!1);
G=_.dc(G,function(H){return H.entities.playlistLoopStateEntity||{}},function(H){H=H===void 0?{}:H;
var M=LaG(O.JSC$23002_watchApi);if(M){var R;((R=H[M])==null?void 0:R.state)==="PLAYLIST_LOOP_STATE_ALL"&&ShA(O.selectedOption)&&Lo(O,m)}});
O.addOnDisposeCallback(B);O.addOnDisposeCallback(G);O.addOnDisposeCallback(Q)};
_.Eq.prototype.onSleepTimerSettingsChanged=function(O,m){switch(O){case "Off":this.selectedOption!=="Off"&&Lo(this,m);break;case "End of video":case "End of playlist":KMh(this,O,m);break;default:KMh(this,O,m,ANn.get(O))}};
_.Eq.prototype.onLoopChange=function(O){(O.getLoopVideo()||O.getLoopRange())&&ShA(this.selectedOption)&&Lo(this,O)};
_.Eq.prototype.onCloseMiniplayer=function(O){ShA(this.selectedOption)&&Lo(this,O)};
var KMh=function(O,m,G,B){$uc(O,G);O.selectedOption=m;O.videoId=G.getVideoData().video_id;O.playlistId="";var Q;(Q=O.sessionStorage)==null||Q.set("yt-sleep-timer","true");O.adjustmentsCount++;aq0(G,(0,_.$G)(),eoq(G),O.selectedOption==="End of video");if(O.selectedOption==="End of video")vRh(O,G),M9c(O,G);else if(O.selectedOption==="End of playlist"){M9c(O,G);var H,M;O.playlistId=(M=(H=E0c(O.JSC$23002_watchApi))==null?void 0:H.playlistId)!=null?M:"";CGc(O.playlistId)||vRh(O,G)}else B&&(O.presetFadeSchedulerId=
_.Sh(_.ln,function(){YhP(G,15E3)},B-15E3),O.presetPauseSchedulerId=_.Sh(_.ln,function(){Qda(O,G)},B),yLq(G,(0,_.$G)(),B))},Qda=function(O,m){if(O.JSC$23002_watchApi.isActive()){var G={dismissDialogEndpoint:{}};
var B={commandExecutorCommand:{commands:[G,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};G={buttonViewModel:{title:_.Xm("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:G}}};B={buttonViewModel:{title:_.Xm("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:B}}};var Q={dialogHeaderViewModel:{headline:{content:_.Xm("SLEEP_TIMER_ENDED_TITLE")}}},
H={basicContentViewModel:{paragraphs:[{text:{content:_.Xm("SLEEP_TIMER_ENDED_TEXT")}}]}};G={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Q,content:H,footer:{panelFooterViewModel:{primaryButton:G,secondaryButton:B,shouldHideDivider:!0}}}}}}};_.KR().resolve(_.Mu).resolveCommand(G,{form:{element:O}})}else w8n();rEa(O,!1);RJn(O,m);m.pauseVideo();_.nK.getInstance().getState()===2&&m.getPlayerState()===5&&(O.pauseAutonavPlayback=!0)},Lo=function(O,m){rEa(O,!0);
RJn(O,m);w8n()},RJn=function(O,m){$uc(O,m);
O.selectedOption="Off";O.videoId="";O.playlistId="";O.adjustmentsCount=0;var G;(G=O.sessionStorage)==null||G.remove("yt-sleep-timer");_.ln.cancelJob(kcc);m.resetSleepTimerMenuSettings()},rEa=function(O,m){m={timer_length_adjustment_times_during_session:O.adjustmentsCount-1,
is_session_cancelled:m};switch(O.selectedOption){case "Off":m.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":m.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":m.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:m.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",m.option_duration_in_minutes=ANn.get(O.selectedOption)/6E4}_.LE("sleepTimerSessionFinishEvent",m)};
_.Eq.prototype.onPlayerStateChange=function(O,m){O===1?aq0(m,(0,_.$G)(),eoq(m),this.selectedOption==="End of video"):O===0?(_.ln.cancelJob(y9),m.setVideoTimeLeft(lq9(0,0))):O===2&&_.ln.cancelJob(y9);this.selectedOption==="End of video"?O===0?Qda(this,m):O===2&&dPG(m):this.selectedOption!=="End of playlist"||CGc(this.playlistId)||(O===0?Qda(this,m):O===2&&dPG(m))};
_.Eq.prototype.onSeekComplete=function(O){O.getPlayerState()===2&&aq0(O,(0,_.$G)(),eoq(O),this.selectedOption==="End of video",!0)};
_.Eq.prototype.onCueRangeEnter=function(O,m){O==="sleep-timer-fade-audio"&&YhP(m,(m.getDuration()-m.getProgressState().current)*1E3)};
_.Eq.prototype.onCueRangeExit=function(O,m){O==="sleep-timer-fade-audio"&&m.getPlayerState()!==0&&dPG(m,!0)};
var vRh=function(O,m){m.addCueRange("sleep-timer-fade-audio",m.getDuration()-15,m.getDuration());m.addEventListener("onCueRangeEnter",function(G){O.onCueRangeEnter(G,m)});
m.addEventListener("onCueRangeExit",function(G){O.onCueRangeExit(G,m)})},HR5=function(O,m){m.removeCueRange("sleep-timer-fade-audio");
m.removeEventListener("onCueRangeEnter",function(G){O.onCueRangeEnter(G,m)});
m.removeEventListener("onCueRangeExit",function(G){O.onCueRangeExit(G,m)})},$uc=function(O,m){ShA(O.selectedOption)?HR5(O,m):(_.ln.cancelJob(O.presetPauseSchedulerId),_.ln.cancelJob(O.presetFadeSchedulerId),O.presetPauseSchedulerId=0,O.presetFadeSchedulerId=0);
dPG(m,!0)},M9c=function(O,m){m.setLoop(!1);
m.setLoopVideo(!1);m.setLoopRange(null);(O=LaG(O.JSC$23002_watchApi))&&_.KR().resolve(_.ry).dispatch(_.jh("playlistLoopStateEntity",O,{key:O,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.Uuc=function(O){_.Iw.call(this);this.JSC$23005_watchApi=O;iR8(this);xuP(this);qeP(this);O=O.getRoot();if(O.is==="ytd-watch-flexy"||O.is==="ytd-watch-grid")O.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.H9n();_.V("web_watch_log_theater_mode_cookie_state")&&_.fR.get("wide","0")==="1"&&_.FyI("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.X(_.Uuc,_.Iw);var iR8=function(O){var m,G;_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$23005_watchApi.playerApi,2);m=B.yieldResult;G=function(Q){t9c(O,!!Q)};
m.addEventListener("SIZE_CLICKED",G);O.addOnDisposeCallback(function(){m.removeEventListener("SIZE_CLICKED",G)});
_.ju(B)})},xuP=function(O){O.JSC$23005_watchApi.registerActionHandler("yt-toggle-theater-mode",function(m,G){t9c(O,m,G===void 0?!0:G)});
O.addOnDisposeCallback(function(){O.JSC$23005_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.Uuc.prototype.getState=function(){return _.c6(_.Kf().getState())};
var t9c=function(O,m,G){G=G===void 0?!0:G;var B,Q,H,M=_.V("enable_player_resize_transition")&&!!O.JSC$23005_watchApi.getWatchNextResponse()&&!((B=O.JSC$23005_watchApi.getWatchNextResponse())==null?0:(Q=B.contents)==null?0:(H=Q.twoColumnWatchNextResults)==null?0:H.conversationBar);_.FNy(function(){_.Kf().dispatch(_.xs({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:m}}));_.V("theater_mode_scroll_to_top_killswitch")||O.JSC$23005_watchApi.scrollWatchTo(0,!1);_.$c()&&_.V("external_fullscreen")&&_.MC(document.documentElement);
qeP(O);G&&_.hE("wide",m?"1":"0",-1);_.xc(O.JSC$23005_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);O.JSC$23005_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:m});m&&_.H9n()},{shouldWrap:M})},qeP=function(O){var m;
_.r(function(G){if(G.nextAddress==1)return G.yield(O.JSC$23005_watchApi.playerApi,2);m=G.yieldResult;m.setSizeStyle(!0,O.getState());_.ju(G)})};var zJc=function(O){_.Iw.call(this);var m=this;this.playerApi=O;this.timeToPanelSyncKeyMap={};var G;if(O==null?0:(G=O.isReady)==null?0:G.call(O)){G=_.dc(_.KR().resolve(_.ry),function(Q){return Q.entities.timedMarkersListSyncEntity||{}},function(Q,H){Q=Q===void 0?{}:Q;
H=H===void 0?{}:H;for(var M=_.K(Object.keys(H)),R=M.next();!R.done;R=M.next())R=R.value,Q[R]!==H[R]&&WM8(m,H[R]);H=_.K(Object.keys(Q));for(M=H.next();!M.done;M=H.next())M=M.value,R=Q[M],m.timeToPanelSyncKeyMap[M]&&ZRG(m,R)});
this.addOnDisposeCallback(G);var B=function(Q){m.onCueRangeEnter(Q)};
O.addEventListener("onCueRangeEnter",B);this.addOnDisposeCallback(function(){var Q;(Q=O.removeEventListener)==null||Q.call(O,"onCueRangeEnter",B)})}};
_.X(zJc,_.Iw);
var ZRG=function(O,m){var G,B;if((G=O.playerApi)==null?0:(B=G.isReady)==null?0:B.call(G)){var Q;if((G=m==null?void 0:(Q=m.timedListData)==null?void 0:Q.sections)&&m!=null&&m.key)for(Q=_.K(G),G=Q.next();!G.done;G=Q.next())if(G=G.value,G.timedSyncDataList&&G.sectionId)for(B=0;B<G.timedSyncDataList.length;B++){var H=G.timedSyncDataList[B];H.syncItemId&&O.playerApi.addCueRange(G.sectionId+"_"+m.key+"_"+H.syncItemId,Number(H.videoTimeMs)/1E3,B===G.timedSyncDataList.length-1?0x8000000000000:Number(G.timedSyncDataList[B+
1].videoTimeMs)/1E3)}}},WM8=function(O,m){var G,B;
if((G=O.playerApi)==null?0:(B=G.isReady)==null?0:B.call(G)){var Q;if((G=m==null?void 0:(Q=m.timedListData)==null?void 0:Q.sections)&&m!=null&&m.key)for(Q=_.K(G),G=Q.next();!G.done;G=Q.next())if(G=G.value,G.timedSyncDataList&&G.sectionId){B=_.K(G.timedSyncDataList);for(var H=B.next();!H.done;H=B.next())H=H.value,H.syncItemId&&O.playerApi.removeCueRange(G.sectionId+"_"+m.key+"_"+H.syncItemId)}}};
zJc.prototype.onCueRangeEnter=function(O){for(var m=_.K(Object.keys(this.timeToPanelSyncKeyMap)),G=m.next();!G.done;G=m.next()){G=G.value;var B=_.K(O.split("_"+G+"_")),Q=B.next().value;B=B.next().value;if(Q&&B){O=_.KR().resolve(_.ry);m=this.timeToPanelSyncKeyMap[G];var H=_.mnI(O.getState(),m);G=JEc(G,Q,B);if(G===-1)break;G={activeSyncId:B,activeItemIndex:G,activeSectionInfo:{sectionIdentifier:Q}};H?O.dispatch(_.Cz("markersEngagementPanelSyncEntity",m,G)):O.dispatch(_.jh("markersEngagementPanelSyncEntity",
m,Object.assign({},{key:m},G)));break}}};
var JEc=function(O,m,G){var B=_.KR().resolve(_.ry),Q,H;O=(Q=O9O(B.getState(),O))==null?void 0:(H=Q.timedListData)==null?void 0:H.sections;if(!O)return-1;Q=0;H=_.K(O);for(O=H.next();!O.done;O=H.next()){O=O.value;B=O.timedSyncDataList||[];if(O.sectionId===m)return m=B.findIndex(function(M){return M.syncItemId===G}),m===-1?m:Q+m;
Q+=B.length}return-1};_.nR9=function(O){_.Iw.call(this);var m=this;this.JSC$23018_watchApi=O;this.unresolvedCommands=[];this.JSC$23018_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(G){V9L(m,G)});
this.addOnDisposeCallback(function(){m.JSC$23018_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
bRh(this)};
_.X(_.nR9,_.Iw);var bRh=function(O){var m;_.r(function(G){if(G.nextAddress==1)return G.yield(O.JSC$23018_watchApi.playerApi,2);m=G.yieldResult;if(O.isDisposed())return G.return();O.timedSyncObserver=new zJc(m);O.unresolvedCommands.length&&(O.unresolvedCommands.forEach(function(B){return V9L(O,B)}),O.unresolvedCommands=[]);
_.VV(O,O.timedSyncObserver);_.ju(G)})},V9L=function(O,m){if(O.timedSyncObserver){var G=_.b(m,b_n);
if(G&&G.timedSyncEntityKey&&G.panelSyncEntityKey){O=O.timedSyncObserver;m=G.timedSyncEntityKey;var B=G.panelSyncEntityKey;G=!!G.isEnabled;G=G===void 0?!0:G;var Q=_.KR().resolve(_.ry);Q=O9O(Q.getState(),m);G?O.timeToPanelSyncKeyMap[m]||(O.timeToPanelSyncKeyMap[m]=B,ZRG(O,Q)):(delete O.timeToPanelSyncKeyMap[m],WM8(O,Q))}}else O.unresolvedCommands.push(m)};var X7a=_.a(function(O){var m=O.data,G=O.maybeLogSmartSkipClientData,B=null,Q=null,H=_.V("web_enable_auto_focus_for_timely_action_button"),M=function(){B=document.activeElement},R=function(){m().smartSkipMetadata&&(B=document.activeElement,_.ZuB(function(){return Q}))},x=function(W){if(m().smartSkipMetadata&&(!W||W.key!=="Enter")){B&&B.isConnected&&(_.ZuB(function(){return B}),B=null);
var Z;(Z=Q)==null||Z.blur()}};
O=_.nH(function(){G==null||G(!0,m());return!1});
var t=_.Mi(_.yp(function(){return m().rendererContext},{onTap:function(W,Z){Z({disableClickTracking:!0})}}),_.$V({visibilityCallback:function(W){if(H)W?Q&&m().smartSkipMetadata&&(R(),document.addEventListener("focusin",M)):(document.removeEventListener("focusin",M),x());
else if(W){W=_.a_(m().rendererContext);var Z=Number(m().maxVisibleDurationMilliseconds),z,J=(z=_.b(m().rendererContext,_.gD))==null?void 0:z.label;W&&Z&&J&&(z={label:J,command:W,durationMs:Z},_.KR().resolve(_.Bn).enqueue(z))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.EZ(function(){if(H){var W;if((Q=(W=t.value)==null?void 0:W.querySelector("button"))&&m().smartSkipMetadata){var Z;(Z=t.value)==null||Z.addEventListener("keydown",x)}}});
_.LS(function(){H&&(Q&&m().smartSkipMetadata&&Q.removeEventListener("keydown",x),document.removeEventListener("focusin",M),x())});
return _.q("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:t,"on:click":O},_.q(_.u5,{data:function(){return m().content}},{buttonViewModel:_.oF}))},"pl");var fg8=_.a(function(O){var m=O.data,G=O.playerApi,B=_.KR().resolve(_.cmu);O=_.K(_.fH(function(){m()}));
var Q=O.next().value,H=O.next().value,M=function(){return N5n(m(),Q())},R=function(t,W){var Z,z,J=(Z=_.b(W==null?void 0:W.rendererContext,_.jg))==null?void 0:(z=Z.loggingDirectives)==null?void 0:z.trackingParams;
if((W=W==null?void 0:W.smartSkipMetadata)&&W.loggingData&&(z=W.loggingData,W=z.algorithmId,Z=z.startMilliseconds,z=z.endMilliseconds,W&&Z!==void 0&&z!==void 0)){var n,I;t={smartSkipData:Object.assign({},{versionName:W,startMediaTimeMs:Z,endMediaTimeMs:z},t&&{userInteractionMediaTimeMs:(Math.floor(((n=_.M1())==null?void 0:(I=n.getPlayer())==null?void 0:I.getCurrentTime())||0)*1E3).toString()})};n=_.yA();var S;J&&(S=_.Ez(J));n&&S&&_.Qh(n,S,t)}},x=function(t,W){var Z=N5n(m(),t);
if(Z){var z=_.b(Z,snn),J;if(J=W)J=G(),Z=_.b(Z,snn),J=Z!=null&&Z.smartSkipMetadata?!(J==null?0:J.isSameMarkerTypeVisible((Z==null?void 0:Z.smartSkipMetadata.markerKey)||"")):!0;if(J){var n,I;(z==null?0:(n=z.smartSkipMetadata)==null?0:(I=n.loggingData)==null?0:I.isCounterfactual)||(R(!1,z),H(t))}else W||Q()!==t||H(void 0)}};
_.ER(function(){var t=m().timelyActions;if(t){t=_.K(t);for(var W=t.next();!W.done;W=t.next()){W=_.b(W.value,snn);var Z=void 0;(Z=W)!=null&&Z.cueRangeId&&B.timelyActionsMap.set(W.cueRangeId,x)}_.LS(function(){B.timelyActionsMap.clear()})}},"PSaw4c");
return _.q("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.q(_.u5,{data:M},{timelyActionViewModel:function(t){return _.q(X7a,{data:t.data,maybeLogSmartSkipClientData:function(){R(!0,_.b(M(),snn))}})}}))},"ql");_.TIc=function(O){_.Iw.call(this);this.JSC$23030_watchApi=O;O=_.K(_.Wf({},void 0,"UN7k5e"));this.timelyActionsOverlay=O.next().value;this.setTimelyActionsOverlay=O.next().value;hJ9(this)};
_.X(_.TIc,_.Iw);var hJ9=function(O){var m,G,B,Q;_.r(function(H){if(H.nextAddress==1)return gRc(O),uzG(O),O.timelyActionsContainer=document.createElement("div"),H.yield(O.JSC$23030_watchApi.playerApi,2);m=H.yieldResult;(B=(G=m).insertTimelyActionUi)==null||B.call(G,O.timelyActionsContainer);Q=_.Sx(O.timelyActionsContainer,function(){return _.q(fg8,{data:O.timelyActionsOverlay,playerApi:m})},"rl");
O.addOnDisposeCallback(Q);_.ju(H)})},uzG=function(O){var m=O.JSC$23030_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gRc(O)});
O.addOnDisposeCallback(function(){O.JSC$23030_watchApi.unsubscribeByKey(m)})},gRc=function(O){var m=O.JSC$23030_watchApi.getWatchNextResponse();
if(m){var G,B;if(m=_.b((G=m.playerOverlays)==null?void 0:(B=G.playerOverlayRenderer)==null?void 0:B.timelyActionsOverlayViewModel,n30)){var Q;(Q=O.setTimelyActionsOverlay)==null||Q.call(O,m)}}};_.Igq=function(O){_.Iw.call(this);this.JSC$23034_watchApi=O;jdG(this)};
_.X(_.Igq,_.Iw);var jdG=function(O){var m,G;_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$23034_watchApi.playerApi,2);m=B.yieldResult;G=function(Q){_.XJ.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.b(Q,_.Z$L)},popupType:"TOAST"}})};
m.addEventListener("onYtShowToast",G);O.addOnDisposeCallback(function(){m.removeEventListener("onYtShowToast",G)});
_.ju(B)})};var p70,LMh,kgc,Seq,ERa,ag0,oR9,lgc,yE0,YeL;p70=!1;_.Cb9=function(O){_.Iw.call(this);this.JSC$23037_watchApi=O;this.fullscreen=this.theater=!1;Seq(this);ERa(this);LMh(this)};
_.X(_.Cb9,_.Iw);LMh=function(O){var m,G,B;_.r(function(Q){if(Q.nextAddress==1)return Q.yield(O.JSC$23037_watchApi.playerApi,2);m=Q.yieldResult;if(O.isDisposed())return Q.return();G=O.JSC$23037_watchApi.getElement("CINEMATICS");if(!G)return Q.return();O.JSC$23037_cinematicController=new _.bI(G,m);_.VV(O,O.JSC$23037_cinematicController);_.kpP(O.JSC$23037_cinematicController);oR9(O,_.YHp());B=O.JSC$23037_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(H){lgc(O,H)});
O.addOnDisposeCallback(function(){O.JSC$23037_watchApi.unsubscribeByKey(B)});
ag0(O);lgc(O,O.JSC$23037_cinematicController.isAllowed());kgc(O);yE0(O);_.ju(Q)})};
kgc=function(O){O.fullscreen=_.Yg(_.Kf().getState());O.theater=_.c6(_.Kf().getState());_.cE5(O,O.fullscreen,O.theater);var m=_.dc(_.Kf(),_.Yg,function(B){O.fullscreen=B;_.cE5(O,O.fullscreen,O.theater)}),G=_.dc(_.Kf(),_.c6,function(B){O.theater=B;
_.cE5(O,O.fullscreen,O.theater)});
O.addOnDisposeCallback(m);O.addOnDisposeCallback(G)};
Seq=function(O){var m=O.JSC$23037_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ag0(O)});
O.addOnDisposeCallback(function(){O.JSC$23037_watchApi.unsubscribeByKey(m)})};
ERa=function(O){var m,G;_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$23037_watchApi.playerApi,2);m=B.yieldResult;G=function(Q){oR9(O,Q)};
m.addEventListener("cinematicSettingsToggleChange",G);O.addOnDisposeCallback(function(){m.removeEventListener("cinematicSettingsToggleChange",G)});
_.ju(B)})};
ag0=function(O){var m=O.JSC$23037_watchApi.getWatchNextResponse(),G;m=_.b(m==null?void 0:(G=m.pageVisualEffects)==null?void 0:G[0],_.BW);var B;(B=O.JSC$23037_cinematicController)==null||_.cmc(B,m)};
oR9=function(O,m){var G;(G=O.JSC$23037_cinematicController)==null||_.ymP(G,m);YeL(O)};
lgc=function(O,m){var G;_.r(function(B){if(B.nextAddress==1)return _.V("kevlar_watch_cinematics_invisible")&&(m=!1),B.yield(O.JSC$23037_watchApi.playerApi,2);G=B.yieldResult;G.updateCinematicSettings(m);YeL(O);_.ju(B)})};
yE0=function(O){var m=_.TC();if(_.V("kevlar_measure_ambient_mode_idle")&&!m.getFlag(192)&&!p70){p70=!0;var G=_.uT(_.ln,function(){_.KR().resolve(_.NCB).start(1E4)},5E3);
O.addOnDisposeCallback(function(){_.ln.cancelJob(G);_.KR().resolve(_.NCB).stop()})}};
_.cE5=function(O,m,G){O.fullscreen=m;O.theater=G;var B;(B=O.JSC$23037_cinematicController)==null||B.setFullscreen(O.fullscreen,O.theater);if(_.V("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(O.theater||O.fullscreen){var Q;(Q=O.JSC$23037_cinematicController)==null||_.Y3n(Q)}else if((O=O.JSC$23037_cinematicController)!=null){var H;(H=O.currentCinematicEffect)==null||H.pause()}};
YeL=function(O){if(_.V("web_cinematic_theater_mode")||_.V("web_cinematic_fullscreen")){var m;O.JSC$23037_watchApi.getRoot().toggleCinematicsActive(!((m=O.JSC$23037_cinematicController)==null||!m.isEnabled()))}};_.Duc=function(O){_.Iw.call(this);var m=this;this.JSC$23040_watchApi=O;this.commentsReady=!1;this.setCommentsJobId=0;O=_.dc(_.Kf(),_.am,function(){duG(m)});
this.addOnDisposeCallback(O);var G=this.JSC$23040_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){w75(m)}),B=this.JSC$23040_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){w75(m)});
this.addOnDisposeCallback(function(){m.JSC$23040_watchApi.unsubscribeByKey(G);m.JSC$23040_watchApi.unsubscribeByKey(B)});
var Q=function(){_.V("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&eJc(m,"false")};
this.JSC$23040_watchApi.getRoot().addEventListener("yt-page-data-will-update",Q);this.addOnDisposeCallback(function(){m.JSC$23040_watchApi.getRoot().removeEventListener("yt-page-data-will-update",Q)});
w75(this)};
_.X(_.Duc,_.Iw);var w75=function(O){O.commentsReady=!1;_.ln.cancelJob(O.setCommentsJobId);O.setCommentsJobId=_.uT(_.ln,function(){duG(O)},1E3)},duG=function(O){if(!O.commentsReady){_.cd("cmi");
_.ln.cancelJob(O.setCommentsJobId);var m,G,B,Q,H=(m=O.JSC$23040_watchApi.getWatchNextResponse())==null?void 0:(G=m.contents)==null?void 0:(B=G.twoColumnWatchNextResults)==null?void 0:(Q=B.results)==null?void 0:Q.results.contents;m=void 0;if(H&&H.length)for(H=_.K(H),G=H.next();!G.done;G=H.next())if(G=G.value,Q=B=void 0,((B=G)==null?void 0:(Q=B.itemSectionRenderer)==null?void 0:Q.sectionIdentifier)==="comment-item-section"){_.V("web_watch_provide_undefined_comments")?m=G.itemSectionRenderer:O.JSC$23040_watchApi.provideRenderingData("COMMENTS",
G.itemSectionRenderer);eJc(O,"true");break}_.V("web_watch_provide_undefined_comments")&&O.JSC$23040_watchApi.provideRenderingData("COMMENTS",m);O.commentsReady=!0;O.JSC$23040_watchApi.dispatchEvent("yt-watch-comments-ready")}},eJc=function(O,m){var G;
(G=O.JSC$23040_watchApi.getElement("COMMENTS"))==null||G.setAttribute("canScheduleJobs",m)};_.AEP=function(O){_.Iw.call(this);var m=this;this.JSC$23043_watchApi=O;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.V("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.V("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.V("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Rd("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)sdL(this);
else{var G=this.JSC$23043_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){NIO(m);Co(m)}),B=this.JSC$23043_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){oY(m);
Co(m)});
this.JSC$23043_watchApi.getRoot().is==="ytd-watch-grid"&&_.V("swatcheroo_pbs_load_grid")&&(PbA(this),FMh(this));this.addOnDisposeCallback(function(){m.JSC$23043_watchApi.unsubscribeByKey(G);m.JSC$23043_watchApi.unsubscribeByKey(B);_.ln.cancelJob(m.provideRichGridJobId)});
NIO(this);oY(this)}};
_.X(_.AEP,_.Iw);var sdL=function(O){var m=O.JSC$23043_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){O.providePlayerJobId=_.t8(_.ln,function(){NIO(O);Co(O)},O.provideAllDataDelayMs)}),G=O.JSC$23043_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){O.provideWatchNextJobId=_.t8(_.ln,function(){oY(O);
Co(O)},O.provideAllDataDelayMs)}),B=O.JSC$23043_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){O.provideWatchNextJobId=_.t8(_.ln,function(){oY(O);
Co(O)},O.provideAllDataDelayMs)});
O.JSC$23043_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.uT(_.ln,function(){NIO(O);oY(O);Co(O)},100)});
O.JSC$23043_watchApi.addPageDisposeJob(function(){_.ln.cancelJob(O.provideWatchNextJobId);_.ln.cancelJob(O.providePlayerJobId)});
O.addOnDisposeCallback(function(){O.JSC$23043_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");O.JSC$23043_watchApi.unsubscribeByKey(m);O.JSC$23043_watchApi.unsubscribeByKey(G);O.JSC$23043_watchApi.unsubscribeByKey(B);_.ln.cancelJob(O.providePlayerJobId);_.ln.cancelJob(O.provideWatchNextJobId)});
NIO(O);oY(O)},NIO=function(O){var m=O.JSC$23043_watchApi.getPlayerResponse(),G,B,Q=(B=m==null?void 0:(G=m.playabilityStatus)==null?void 0:G.messageRenderers)!=null?B:[],H,M;
m=(M=m==null?void 0:(H=m.playabilityStatus)==null?void 0:H.messages)!=null?M:[];H=_.K(m);for(M=H.next();!M.done;M=H.next())Q.push({alertRenderer:{text:_.Qg(M.value),type:"WARNING"}});O.JSC$23043_watchApi.provideRenderingData("ALERTS",Q)},oY=function(O){var m=[],G,B,Q,H=O.JSC$23043_watchApi.getWatchNextResponse(),M,R,x,t,W=H==null?void 0:(M=H.contents)==null?void 0:(R=M.twoColumnWatchNextResults)==null?void 0:(x=R.results)==null?void 0:(t=x.results)==null?void 0:t.contents;
if(W)for(M=_.K(W),R=M.next();!R.done;R=M.next())if(R=R.value,R.videoPrimaryInfoRenderer)var Z=R;else if(R.videoSecondaryInfoRenderer){var z=R;t=x=void 0;R=Object.assign({},(x=R.videoSecondaryInfoRenderer)==null?void 0:(t=x.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer);if(R.rows&&R.collapsedItemCount!==void 0){R.rows=R.rows.slice(0,R.collapsedItemCount).filter(function(Am){return!!Am.richMetadataRowRenderer});
R.collapsedItemCount=R.rows.length;var J={metadataRowContainerRenderer:R}}}else if(R.merchandiseShelfRenderer)var n=R;else if(R.ticketShelfRenderer)var I=R;else if(R.expandableMetadataRenderer)var S=R;else if(R.itemSectionRenderer)if(x=R.itemSectionRenderer.contents,t=void 0,O.directlyProvideComments&&((t=R.itemSectionRenderer)==null?void 0:t.sectionIdentifier)==="comment-item-section")_.cd("cmi"),O.JSC$23043_watchApi.provideRenderingData("COMMENTS",R.itemSectionRenderer);else if(x)for(R=_.K(x),x=
R.next();!x.done;x=R.next())if(x=x.value,x.commentsEntryPointHeaderRenderer)var L=x;else if(x.clarificationRenderer||x.infoPanelContainerRenderer||x.infoPanelContentRenderer||x.emergencyOneboxRenderer){m.push(x);var C=C||!!z}else x.limitedStateMessageRenderer?B=x:x.videoMetadataCarouselViewModel&&(Q=x);if(_.V("web_watch_merch_in_sd_when_ticket_shelf_present")&&n&&I){var P=n;n=void 0}if(O.provideWatchNextSecondaryResults){var w,d,D;O.JSC$23043_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
H==null?void 0:(w=H.contents)==null?void 0:(d=w.twoColumnWatchNextResults)==null?void 0:(D=d.secondaryResults)==null?void 0:D.secondaryResults)}if(O.JSC$23043_watchApi.getRoot().is==="ytd-watch-grid"){var OS,rN;O.JSC$23043_watchApi.provideRenderingData("LIVE_CHAT",H==null?void 0:(OS=H.contents)==null?void 0:(rN=OS.twoColumnWatchNextResults)==null?void 0:rN.conversationBar)}var xO,XI,Vf,US;(w=H==null?void 0:(xO=H.contents)==null?void 0:(XI=xO.twoColumnWatchNextResults)==null?void 0:(Vf=XI.secondaryResults)==
null?void 0:(US=Vf.secondaryResults)==null?void 0:US.offerModule)&&(w.donationShelfRenderer||w.donationUnavailableRenderer)&&O.JSC$23043_watchApi.getRoot().is!=="ytd-watch-grid"&&(G=w);xO=O.JSC$23043_watchApi.getPlayerResponse();if(!xO||!_.sxN(xO.playabilityStatus,H==null?void 0:H.playerOverlays)){var CN;if(H==null?0:(CN=H.contents)==null?0:CN.singleColumnWatchNextResults){var oe,K$;var n$=H==null?void 0:(oe=H.contents.singleColumnWatchNextResults.results)==null?void 0:(K$=oe.results)==null?void 0:
K$.contents}else{var qe,PM,ZH,U3;CN=!!(W==null?0:(qe=W[0])==null?0:(PM=qe.itemSectionRenderer)==null?0:(ZH=PM.contents)==null?0:(U3=ZH[0])==null?0:U3.backgroundPromoRenderer);var p$,uy;qe=!!(H==null?0:(p$=H.contents)==null?0:(uy=p$.twoColumnWatchNextResults)==null?0:uy.secondaryResults);CN&&!qe&&(n$=W)}}W=m[0];p$=m[1];C&&m.length===1&&(p$=W,W=void 0);O.JSC$23043_watchApi.provideRenderingData("PRIMARY_INFO",Z);O.JSC$23043_watchApi.provideRenderingData("SECONDARY_INFO",z);O.JSC$23043_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
L);O.JSC$23043_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",Q);O.JSC$23043_watchApi.provideRenderingData("CLARIFICATION",W);O.JSC$23043_watchApi.provideRenderingData("RICH_METADATA",J);O.JSC$23043_watchApi.provideRenderingData("MERCH_SHELF",n);_.V("web_watch_merch_in_sd_when_ticket_shelf_present")&&O.JSC$23043_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",P);O.JSC$23043_watchApi.provideRenderingData("TICKET_SHELF",I);O.JSC$23043_watchApi.provideRenderingData("LIMITED_STATE",B);O.JSC$23043_watchApi.getRoot().is!==
"ytd-watch-grid"&&O.JSC$23043_watchApi.provideRenderingData("DONATION_SHELF",G);O.JSC$23043_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",n$);O.JSC$23043_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",p$);O.JSC$23043_watchApi.provideRenderingData("EXPANDABLE_METADATA",S);if(O.swatcherooProvideAllDataOnScheduledJob){var vb,vM,Gp,Vu,Gu,x9;Z=H==null?void 0:(vb=H.contents)==null?void 0:(vM=vb.twoColumnWatchNextResults)==null?void 0:(Gp=vM.secondaryResults)==null?void 0:(Vu=Gp.secondaryResults)==
null?void 0:(Gu=Vu.results)==null?void 0:(x9=Gu[0])==null?void 0:x9.richGridRenderer;O.JSC$23043_watchApi.provideRenderingData("RICH_GRID_RENDERER",Z)}};
_.AEP.prototype.hasCompanionAds=function(O){var m,G;return(G=O==null?void 0:(m=O.adPlacements)==null?void 0:m.some(function(B){var Q,H,M,R;return(B==null?void 0:(Q=B.adPlacementRenderer)==null?void 0:(H=Q.renderer)==null?void 0:H.actionCompanionAdRenderer)||(B==null?void 0:(M=B.adPlacementRenderer)==null?void 0:(R=M.renderer)==null?void 0:R.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?G:!1};
var Co=function(O){if(!_.V("swaterdoo_ps_wn_handle_ks")){O.swatcherooProvideAllDataOnScheduledJob||FMh(O,3E3);var m=O.JSC$23043_watchApi.getPlayerResponse(),G,B,Q,H,M,R=(G=O.JSC$23043_watchApi.getWatchNextResponse())==null?void 0:(B=G.contents)==null?void 0:(Q=B.twoColumnWatchNextResults)==null?void 0:(H=Q.secondaryResults)==null?void 0:(M=H.secondaryResults)==null?void 0:M.offerModule;m=O.hasCompanionAds(m);var x,t;G=(R==null?void 0:(x=R.tvfilmOfferModuleRenderer)==null?void 0:x.clientShouldSuppressIfCompanionAdDisplayed)||
(R==null?void 0:(t=R.unlimitedOfferModuleRenderer)==null?void 0:t.suppressIfCompanionAds);x=m&&G;O.JSC$23043_watchApi.getRoot().is==="ytd-watch-grid"&&O.JSC$23043_watchApi.provideRenderingData("OFFER_MODULE",x?void 0:R)}},FMh=function(O,m){_.V("swatcheroo_pbs_load_grid")&&(O.provideRichGridJobId&&_.ln.cancelJob(O.provideRichGridJobId),O.provideRichGridJobId=_.t8(_.ln,function(){O.provideRichGridJobId=0;
var G,B,Q,H,M,R,x,t=(G=O.JSC$23043_watchApi.getWatchNextResponse())==null?void 0:(B=G.contents)==null?void 0:(Q=B.twoColumnWatchNextResults)==null?void 0:(H=Q.secondaryResults)==null?void 0:(M=H.secondaryResults)==null?void 0:(R=M.results)==null?void 0:(x=R[0])==null?void 0:x.richGridRenderer;t&&O.JSC$23043_watchApi.provideRenderingData("RICH_GRID_RENDERER",t)},m))},PbA=function(O){var m,G;
_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$23043_watchApi.playerApi,2);m=B.yieldResult;G=function(){O.onPlaybackStart()};
m.addEventListener("onPlaybackStartExternal",G);O.addOnDisposeCallback(function(){m.removeEventListener("onPlaybackStartExternal",G)});
_.ju(B)})};
_.AEP.prototype.onPlaybackStart=function(){FMh(this)};_.mIc=function(O){_.Iw.call(this);var m=this;this.JSC$23056_watchApi=O;O.playerApi.then(function(G){m.player=G});
this.gestures=new _.ze(this.JSC$23056_watchApi.getRoot(),O.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.mP0(_.Kf().getState())&&_.am(_.Kf().getState())<=0)if(_.Yg(_.Kf().getState())){var G;(G=m.player)==null||G.toggleFullscreen()}else _.xc(m.JSC$23056_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
OpP(this)};
_.X(_.mIc,_.Iw);var OpP=function(O){var m=_.dc(_.Kf(),_.Yg,function(G){O.onFullscreenChanged(G)});
O.addOnDisposeCallback(m);m=_.dc(_.Kf(),_.am,function(G){O.gestures&&(G>0?O.gestures.detach():O.gestures.attach())});
O.addOnDisposeCallback(m)};
_.mIc.prototype.onFullscreenChanged=function(O){this.gestures&&this.gestures.update(O)};_.BYP=function(O){_.Iw.call(this);var m=this;this.JSC$23059_watchApi=O;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(O.subscribeToActiveChanged(function(G){m.onActiveChanged(G)}));
GVP(this)};
_.X(_.BYP,_.Iw);var QOG=function(O){if(_.V("swatcheroo_page_dispose_all_watch_data"))O.pageDisposalDataTypes=Object.values(JNG).filter(function(G){return G!=="PLAYLIST"});
else if(_.V("swatcheroo_page_dispose_rich_grid")){var m;(m=O.pageDisposalDataTypes)==null||m.push("RICH_GRID_RENDERER")}},GVP=function(O){_.V("swatcheroo_enable_ghost_cards")&&(QOG(O),O.JSC$23059_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.ln.cancelJob(O.clearDataJobId);
O.clearDataJobId=0}),O.runPageDisposeJob=function(){var m=_.KR().resolve(_.KJ).getDestinationPageType()==="watch";
O.clearDataJobId=_.t8(_.ln,O.runClearDataJob,m?0:_.Rd("web_watch_delay_page_dispose_ms",1E4))},O.runClearDataJob=function(){HpL(O)},O.runOnYtNavigateAwayFinish=function(){O.clearDataJobId&&(_.ln.cancelJob(O.clearDataJobId),O.clearDataJobId=0,HpL(O))},document.addEventListener("yt-navigate-finish",O.runOnYtNavigateAwayFinish),O.JSC$23059_watchApi.addPageDisposeJob(O.runPageDisposeJob),O.addOnDisposeCallback(function(){O.JSC$23059_watchApi.removePageDisposeJob(O.runPageDisposeJob);
O.JSC$23059_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",O.runOnYtNavigateAwayFinish)}))},HpL=function(O){O.pageDisposalDataTypes.forEach(function(m){O.JSC$23059_watchApi.provideRenderingData(m,void 0)});
O.clearDataJobId=0};
_.BYP.prototype.onActiveChanged=function(O){O&&((O=document.querySelector("#watch-page-skeleton"))&&_.hF(O),vGA(this),document.body.removeAttribute("no-y-overflow"),_.yE("IS_SHELL_LOAD")&&_.a7B())};
var vGA=function(O){_.r(function(m){if(m.nextAddress==1)return m.yield(O.JSC$23059_watchApi.playerApi,2);_.el();_.ju(m)})};var KoA;KoA=_.V("kevlar_watch_while_counterfactual")?0:.25;_.Rtc=function(O){_.Iw.call(this);this.JSC$23062_watchApi=O;this.JSC$23062_watchWhileEnabled=_.V("kevlar_watch_while_v2");this.pipEnabled=_.V("web_enable_pip_on_miniplayer");$Io(this);Mah(this);rvc(this)};
_.X(_.Rtc,_.Iw);var $Io=function(O){O.JSC$23062_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){ip5(O)});
O.addOnDisposeCallback(function(){O.JSC$23062_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Mah=function(O){var m,G;
_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$23062_watchApi.playerApi,2);m=B.yieldResult;G=function(){ip5(O)};
m.addEventListener("onCollapseMiniplayer",G);O.addOnDisposeCallback(function(){m.removeEventListener("onCollapseMiniplayer",G)});
_.ju(B)})},rvc=function(O){var m=O.JSC$23062_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&m&&O.JSC$23062_watchWhileEnabled&&(O.playerIntersectionObserver=new IntersectionObserver(function(G){O.handleIntersect(G)},{threshold:[KoA]}),O.playerIntersectionObserver.observe(m),O.addOnDisposeCallback(function(){var G;
(G=O.playerIntersectionObserver)==null||G.disconnect()}))},ip5=function(O){var m,G,B;
_.r(function(Q){if(Q.nextAddress==1){m=_.KR().resolve(_.KJ);G=m.data;B=_.EQ(G.response,!1,G.playerResponse);_.c3().miniplayerButtonActivation=!0;if(O.pipEnabled)return _.c3().watchPipActivation=!0,Q.jumpTo(2);_.KR().resolve(_.c$).collapse();return Q.yield(_.c3().navigationFinishPromise,2)}if(Q.nextAddress!=4)return _.c3().currentEndpoint=B.watchEndpoint||null,Q.yield(_.KR().resolve(_.c$).activate(O.JSC$23062_watchApi.getElement("PLAYER"),B,G),4);_.c3().userActivation=!0;_.ju(Q)})};
_.Rtc.prototype.handleIntersect=function(O){xI8(this,O[O.length-1])};
var xI8=function(O,m){O.watchWhileJobId&&_.ln.cancelJob(O.watchWhileJobId);O.watchWhileJobId=_.ln.addLowPriorityJob(function(){var G,B;return _.r(function(Q){if(Q.nextAddress==1)return O.watchWhileJobId=void 0,G=_.KR().resolve(_.c$),m.intersectionRatio>KoA?G.isMiniplayerActive()?Q.yield(G.deactivate(),0):Q.jumpTo(0):(B=!G.isMiniplayerActive())?Q.yield(qOP(O),5):Q.jumpTo(4);Q.nextAddress!=4&&(B=Q.yieldResult);if(!B)return Q.jumpTo(0);_.c3().watchWhileActivation=!0;return Q.yield(UI8(O),0)})},100)},
qOP=function(O){return _.r(function(m){return m.nextAddress==1?_.V("kevlar_watch_while_paused")?m.return(!0):m.yield(O.isPlayerPlaying(),2):m.return(m.yieldResult)})};
_.Rtc.prototype.isPlayerPlaying=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return G.yield(O.JSC$23062_watchApi.playerApi,2);m=G.yieldResult;return G.return(m.getPlayerStateObject().isPlaying)})};
var UI8=function(O){var m,G;return _.r(function(B){m=_.KR().resolve(_.KJ).data;G=_.EQ(m.response,!1,m.playerResponse);_.c3().currentEndpoint=G.watchEndpoint||null;return B.yield(_.KR().resolve(_.c$).activate(O.JSC$23062_watchApi.getElement("PLAYER"),G,m),0)})};_.Zp9=function(O){_.Iw.call(this);this.JSC$23066_watchApi=O;tan(this);Woc(this)};
_.X(_.Zp9,_.Iw);var Woc=function(O){var m,G;_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$23066_watchApi.playerApi,2);m=B.yieldResult;G=function(Q){var H;Q.sessionData&&Q.sessionData.itct&&(H=Q.sessionData.itct);var M=Q.watchEndpoint;if(M&&Q.sessionData&&Q.sessionData.autonav)M=_.WXI(M,H);else{var R;M=_.Mo(Q.videoId,(R=Q.listId)!=null?R:void 0,H)}H={endpoint:M};Q.sessionData&&(H.tempData=Q.sessionData);O.JSC$23066_watchApi.dispatchEvent("yt-navigate",H)};
m.addEventListener("onPlayVideo",G);O.addOnDisposeCallback(function(){m.removeEventListener("onPlayVideo",G)});
_.ju(B)})},tan=function(O){var m=function(G){O.onYtNavigate(G)};
O.JSC$23066_watchApi.getRoot().addEventListener("yt-navigate",m);O.addOnDisposeCallback(function(){O.JSC$23066_watchApi.getRoot().removeEventListener("yt-navigate",m)})};
_.Zp9.prototype.onYtNavigate=function(O){var m=this,G,B,Q,H,M,R,x,t,W;return _.r(function(Z){if(Z.nextAddress==1){if(!((G=O.detail)==null?0:(B=G.endpoint)==null?0:B.watchEndpoint))return Z.return();Q=O.detail.endpoint.watchEndpoint;H=m.JSC$23066_watchApi.getWatchNextResponse();R=_.b((M=H)==null?void 0:M.currentVideoEndpoint,_.GC);if(!R)return Z.return();if(Q.videoId!==R.videoId||Q.playlistId&&Q.playlistId!==R.playlistId||typeof Q.startTimeSeconds!=="number")return Z.jumpTo(0);O.stopPropagation();
(x=_.V("kevlar_watch_while_v2")&&!_.V("kevlar_watch_while_counterfactual"))&&_.KR().resolve(_.c$).isMiniplayerActive()||m.JSC$23066_watchApi.scrollWatchTo(0,!0);return Z.yield(m.JSC$23066_watchApi.playerApi,3)}t=Z.yieldResult;W=Q.startTimeSeconds;t.seekTo(W,void 0,void 0,void 0,84);t.wakeUpControls();W<t.getDuration()&&t.playVideo();_.ju(Z)})};_.Jv8=function(O){_.Iw.call(this);var m=this;this.JSC$23069_watchApi=O;var G=this.JSC$23069_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ztG(m)});
this.addOnDisposeCallback(function(){m.JSC$23069_watchApi.unsubscribeByKey(G)});
ztG(this);_.V("enable_ai_companion")&&(O=this.JSC$23069_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.A0r(_.KR().resolve(_.GF),O,"WATCH")};
_.X(_.Jv8,_.Iw);var ztG=function(O){var m=O.JSC$23069_watchApi.getWatchNextResponse();if(m){var G,B=[].concat(_.lS((G=m==null?void 0:m.engagementPanels)!=null?G:[]));B.unshift.apply(B,_.lS(VaG(m)));O.JSC$23069_watchApi.provideRenderingData("ENGAGEMENT_PANELS",B)}},bpo=function(O){var m,G,B,Q=(m=O.engagementPanels)==null?void 0:(G=m.find(function(J){var n;
return((n=J.engagementPanelSectionListRenderer)==null?void 0:n.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(B=G.engagementPanelSectionListRenderer.content)==null?void 0:B.structuredDescriptionContentRenderer,H;
if(_.b(Q==null?void 0:(H=Q.items)==null?void 0:H.find(function(J){return!!_.b(J,k9L)}),k9L))return!0;
var M,R,x,t;if(O=(((M=O.contents)==null?void 0:(R=M.twoColumnWatchNextResults)==null?void 0:(x=R.results)==null?void 0:(t=x.results)==null?void 0:t.contents)||[]).find(function(J){return J.videoPrimaryInfoRenderer})){var W,Z,z;
return(((W=O.videoPrimaryInfoRenderer)==null?void 0:(Z=W.videoActions)==null?void 0:(z=Z.menuRenderer)==null?void 0:z.flexibleItems)||[]).some(function(J){J=_.b(J,_.Tcm);if(!J)return!1;var n,I;J=(n=J.topLevelButton)==null?void 0:(I=n.buttonViewModel)==null?void 0:I.onTap;if(!J)return!1;n=_.eg(J);if(!n)return!1;var S;return((S=_.b(n,_.pk))==null?void 0:S.panelIdentifier)==="PAyouchat"})}return!1},VaG=function(O){var m=[];
if(!_.V("web_watch_inject_placeholder_fantasy_panel_killswitch")){var G,B,Q,H=(G=O.engagementPanels)==null?void 0:(B=G.find(function(R){var x;return((x=R.engagementPanelSectionListRenderer)==null?void 0:x.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Q=B.engagementPanelSectionListRenderer.content)==null?void 0:Q.structuredDescriptionContentRenderer,M;
_.b(H==null?void 0:(M=H.items)==null?void 0:M.find(function(R){return!!_.b(R,WIo)}),WIo)&&(G=_.LJ6("PAsports_fantasy"),G.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",m.push(G))}bpo(O)&&(O=_.LJ6("PAyouchat"),O.engagementPanelSectionListRenderer.targetId="PAyouchat",O.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",m.push(O));
return m};_.XI8=function(O){_.Iw.call(this);this.JSC$23072_watchApi=O;nGa(this)};
_.X(_.XI8,_.Iw);var nGa=function(O){O.JSC$23072_watchApi.registerActionHandler("yt-loop-command",function(m){fDh(O,m)});
O.JSC$23072_watchApi.registerActionHandler("yt-repeat-chapter-command",function(m){htL(O,m)});
O.addOnDisposeCallback(function(){O.JSC$23072_watchApi.unregisterActionHandler("yt-loop-command");O.JSC$23072_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},fDh=function(O,m){var G;
_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$23072_watchApi.playerApi,2);G=B.yieldResult;_.b(m,zqh).loop?(G.setLoopRange({startTimeMs:Number(_.b(m,zqh).startTimeMs),endTimeMs:Number(_.b(m,zqh).endTimeMs),postId:_.b(m,zqh).postId,type:"clips"}),G.playVideo()):G.setLoopRange(null);_.ju(B)})},htL=function(O,m){var G,B;
_.r(function(Q){if(Q.nextAddress==1)return Q.yield(O.JSC$23072_watchApi.playerApi,2);G=Q.yieldResult;B=_.b(m,XiL).repeat;B==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(G.setLoopRange({startTimeMs:Number(_.b(m,XiL).startTimeMs),endTimeMs:Number(_.b(m,XiL).endTimeMs),type:"repeatChapter"}),G.playVideo()):B==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&G.setLoopRange(null);_.ju(Q)})};_.gG5=function(O){_.Iw.call(this);this.JSC$23077_watchApi=O;TYL(this)};
_.X(_.gG5,_.Iw);var TYL=function(O){O.JSC$23077_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(m){uF0(O,m)});
O.addOnDisposeCallback(function(){O.JSC$23077_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},uF0=function(O,m){var G,B,Q,H,M,R,x,t,W,Z,z;
_.r(function(J){if(J.nextAddress==1)return J.yield(O.JSC$23077_watchApi.playerApi,2);G=J.yieldResult;if(H=(Q=(B=_.b(m,f9L))==null?void 0:B.highlightedMenuItemKey)!=null?Q:"")(R=(M=G).highlightSettingsMenuItem)==null||R.call(M,H);if(W=(t=(x=_.b(m,f9L))==null?void 0:x.openMenuItemKey)!=null?t:"")(z=(Z=G).openSettingsMenuItem)==null||z.call(Z,W);_.ju(J)})};var jOL=_.Ja("/youtube/app/watch/player_state","playerStateEntity");_.pI0=function(O){_.Iw.call(this);this.JSC$23080_watchApi=O;IDc(this)};
_.X(_.pI0,_.Iw);var SO0=function(O){switch(O){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"}},IDc=function(O){var m,G;
_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$23080_watchApi.playerApi,2);m=B.yieldResult;G=function(Q){O.onPlayerStateChange(Q)};
m.addEventListener("onStateChange",G);O.addOnDisposeCallback(function(){m.removeEventListener("onStateChange",G)});
_.ju(B)})};
_.pI0.prototype.onPlayerStateChange=function(O){var m=this,G,B;return _.r(function(Q){if(Q.nextAddress==1)return Q.yield(m.JSC$23080_watchApi.playerApi,2);G=Q.yieldResult;B=G.getVideoData().video_id;_.Km().dispatch(_.jh("playerStateEntity",jOL,{key:jOL,playerState:SO0(O),videoId:B}));_.ju(Q)})};_.Loa=function(O){_.Iw.call(this);var m=this;this.JSC$23084_watchApi=O;this.enableExternalPlaylistPanelInPlayer=_.V("delhi_web_player_use_external_playlist_panel");_.KR().resolve(_.Rt).setPlayer(this.JSC$23084_watchApi.getElement("PLAYER"));O=this.JSC$23084_watchApi.subscribeToActiveChanged(function(G){m.onActiveChanged(G)});
this.addOnDisposeCallback(O);EGn(this)};
_.X(_.Loa,_.Iw);var EGn=function(O){var m,G;_.r(function(B){if(B.nextAddress==1)return O.enableExternalPlaylistPanelInPlayer?B.yield(O.JSC$23084_watchApi.playerApi,2):B.return();m=B.yieldResult;G=function(){if(O.playlistPanelElement)O.playlistPanelElement.onToggleExpanded()};
m.addEventListener("onToggleExternalPlaylistPanel",G);O.addOnDisposeCallback(function(){m.removeEventListener("onToggleExternalPlaylistPanel",G)});
_.ju(B)})};
_.Loa.prototype.onActiveChanged=function(O){var m=this,G=_.KR().resolve(_.Rt),B=function(){CnP(m)};
O?(this.playlistPanelElement=this.JSC$23084_watchApi.getElement("PLAYLIST_PANEL"))?(G.setPlaylistComponent(this.playlistPanelElement),G.addEventListener("yt-playlist-data-updated",B),this.addOnDisposeCallback(function(){G.removeEventListener("yt-playlist-data-updated",B)}),CnP(this)):_.Dy(Error("So")):(G.removeEventListener("yt-playlist-data-updated",B),G.cancelVideoSkip())};
var CnP=function(O){var m=_.KR().resolve(_.Rt);O.JSC$23084_watchApi.provideRenderingData("PLAYLIST",m.getPlaylistData())};_.lV=function(O){_.Iw.call(this);var m=this;this.JSC$23087_watchApi=O;this.onPageScroll=function(){m.scrollThrottle.fire();m.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Pu(this.onThrottledScroll,200,this);_.VV(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Pu(this.onMastheadThrottledScroll,50,this);_.VV(this,this.mastheadScrollThrottle);this.animation=new _.WU(function(G){m.JSC$23087_watchApi.getRoot().setScrollTop(G)});
O=_.dc(_.Kf(),_.Yg,function(){m.onFullscreenChanged()});
this.addOnDisposeCallback(O);oGh(this);lDG(this);this.onThrottledScroll()};
_.X(_.lV,_.Iw);
_.lV.prototype.onFullscreenChanged=function(){var O=this,m=this.JSC$23087_watchApi.getRoot();!this.pageScrollElement&&m.pageScrollElement?(this.pageScrollElement=m.pageScrollElement,m.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){O.pageScrollElement&&O.pageScrollElement.removeEventListener("scroll",O.onPageScroll)})):this.pageScrollElement&&!m.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var oGh=function(O){window.addEventListener("scroll",O.onPageScroll);O.addOnDisposeCallback(function(){window.removeEventListener("scroll",O.onPageScroll)})},lDG=function(O){O.JSC$23087_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(m){a:{var G;
if(G=O.JSC$23087_watchApi.getRoot().contains(m)&&!O.animation.isAnimating()){G=m.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var B,Q,H=(m==null?void 0:(B=m.parentElement)==null?void 0:(Q=B.parentElement)==null?void 0:Q.id)==="fixed-secondary";G=!(G&&H)}if(G){if(_.V("kevlar_watch_scroll_manager_absolute_offset_killswitch"))B=m.offsetTop;else for(B=0,Q=m;Q!==null;)B+=Q.offsetTop,B-=Q.scrollTop,Q=Q.offsetParent;Q=B;B=Q-24;m=Q+m.offsetHeight+24;Q=O.JSC$23087_watchApi.getRoot().getPageScrollingElement();
G=O.JSC$23087_watchApi.getRoot().getScrollTop();H=G+Q.clientHeight-56;if(B<G+56)m=B-56;else if(m>H)m-=Q.clientHeight;else break a;O.scrollWatchTo(Math.max(0,m),!0)}}});
O.addOnDisposeCallback(function(){O.JSC$23087_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.lV.prototype.onThrottledScroll=function(){var O=_.Kf(),m=O.dispatch,G=this.JSC$23087_watchApi.getRoot().getScrollTop();m.call(O,_.xs({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:G}}))};
_.lV.prototype.onMastheadThrottledScroll=function(){this.JSC$23087_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23087_watchApi.getRoot().getScrollTop())};
_.lV.prototype.scrollWatchTo=function(O,m){(m===void 0?0:m)?this.animation.start(this.JSC$23087_watchApi.getRoot().getScrollTop(),Math.max(0,O),500):this.JSC$23087_watchApi.getRoot().setScrollTop(O)};_.yva=function(O){_.Iw.call(this);var m=this;this.JSC$23090_watchApi=O;var G=this.JSC$23090_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){aDA(m)}),B=this.JSC$23090_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){kVc(m)});
this.addOnDisposeCallback(function(){m.JSC$23090_watchApi.unsubscribeByKey(G);m.JSC$23090_watchApi.unsubscribeByKey(B)});
aDA(this);kVc(this)};
_.X(_.yva,_.Iw);
var aDA=function(O){var m,G,B,Q=(B=(m=O.JSC$23090_watchApi.getPlayerResponse())==null?void 0:(G=m.videoDetails)==null?void 0:G.title)!=null?B:"";O.JSC$23090_watchApi.dispatchEvent("yt-update-title",Q)},kVc=function(O){var m,G,B,Q,H,M,R,x=(R=((M=(m=O.JSC$23090_watchApi.getWatchNextResponse())==null?void 0:(G=m.contents)==null?void 0:(B=G.twoColumnWatchNextResults)==null?void 0:(Q=B.results)==null?void 0:(H=Q.results)==null?void 0:H.contents)!=null?M:[]).find(function(t){return!!t.videoPrimaryInfoRenderer}))==null?
void 0:R.videoPrimaryInfoRenderer;
(m=_.HX(x==null?void 0:x.title))&&O.JSC$23090_watchApi.dispatchEvent("yt-update-title",m)};_.YOG=function(O){_.Iw.call(this);this.JSC$23093_watchApi=O;cvc(this)};
_.X(_.YOG,_.Iw);var cvc=function(O){var m,G;_.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$23093_watchApi.playerApi,2);m=B.yieldResult;G=function(){O.onYpcContentRequest()};
m.addEventListener("onYpcContentRequest",G);O.addOnDisposeCallback(function(){m.removeEventListener("onYpcContentRequest",G)});
_.ju(B)})};
_.YOG.prototype.onYpcContentRequest=function(){var O,m,G,B,Q,H=(O=this.JSC$23093_watchApi.getWatchNextResponse())==null?void 0:(m=O.contents)==null?void 0:(G=m.twoColumnWatchNextResults)==null?void 0:(B=G.secondaryResults)==null?void 0:(Q=B.secondaryResults)==null?void 0:Q.offerModule,M,R,x,t;O=(t=(x=(R=(M=H==null?void 0:H.episodeOfferModuleRenderer)!=null?M:H==null?void 0:H.movieOfferModuleRenderer)!=null?R:H==null?void 0:H.unlimitedOfferModuleRenderer)!=null?x:H==null?void 0:H.liveOfferModuleRenderer)!=
null?t:H==null?void 0:H.tvfilmOfferModuleRenderer;var W,Z,z;H=(z=H==null?void 0:(W=H.tvfilmOfferModuleRenderer)==null?void 0:(Z=W.actionButtons)==null?void 0:Z.length)!=null?z:0;Z=Math.max(H-1,0);var J,n,I;W=(I=O==null?void 0:(J=O.offerButton)==null?void 0:J.buttonRenderer)!=null?I:O==null?void 0:(n=O.actionButtons)==null?void 0:n[Z].buttonRenderer;var S,L;(J=(L=(S=W==null?void 0:W.navigationEndpoint)!=null?S:W==null?void 0:W.serviceEndpoint)!=null?L:W==null?void 0:W.command)&&_.XJ.instance.resolveCommand(J)};
}catch(e){_._DumpException(e)}
try{
var ccb,afB,ofA;_.lfh=function(){var O=_.aM.clone(CHr),m;return(new _.zH(function(G,B){O.onSuccess=function(Q){_.dCe(Q)?G(new ofA(Q)):B(new _.aX("Request failed, status="+_.tE(Q),"net.badstatus",Q))};
O.onError=function(Q){B(new _.aX("Unknown request error","net.unknown",Q))};
O.onTimeout=function(Q){B(new _.aX("Request timed out","net.timeout",Q))};
m=_.Vb("//googleads.g.doubleclick.net/pagead/id",O)})).thenCatch(function(G){if(G instanceof _.YK){var B;
(B=m)==null||B.abort()}return _.lK(G)})};
_.kAo=function(O){a:{var m="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(m="EMBEDDED_PLAYER_MODE_PFL");var G=O.raw_embedded_player_response;if(!G&&(O=O.embedded_player_response))try{G=JSON.parse(O)}catch(Q){break a}if(G)b:for(var B in afB)if(afB[B]==G.embeddedPlayerMode){m=afB[B];break b}}return m==="EMBEDDED_PLAYER_MODE_PFL"};
_.ych=function(){if(_.V("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("tf");if(!_.nJz())return Error("uf");var O=_.kB("PLAYER_VARS",{});if(_.aM.get(O,"privembed",!1)=="1")return Error("vf");if(_.kAo(O))return Error("wf")};
ccb=function(O){switch(O){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:_.d8(O,"unknown result type")}};
_.YFK=function(O,m,G){m=_.TmN[m];G={detected:O===0,source:m.rFp,detectionResult:ccb(O),contentCpn:G};_.LE("biscottiBasedDetection",G);_.xWe.increment(m.rFp,O);m.lcI!==void 0&&_.a8("CATSTAT",_.f2f(O,m))};
_.kd=function(O,m){var G={};G.key=O;G.value=m;return _.$fz().then(function(B){return new Promise(function(Q,H){try{var M=B.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(G);M.onsuccess=function(){Q()};
M.onerror=function(){H()}}catch(R){H(R)}})})};
_.wrA=function(){var O=_.Rd("user_engagement_experiments_rate_limit_ms"),m=d59.get("last-user-engagement-exp-trigger-timestamp");return!m||(0,_.$G)()>=m+O?(d59.set("last-user-engagement-exp-trigger-timestamp",(0,_.$G)()),!0):!1};
_.y6=function(O,m,G,B,Q){m=m===void 0?null:m;G=G===void 0?null:G;B=B===void 0?null:B;Q=Q===void 0?null:Q;O={youThereEventType:O};G&&(O.lactThresholdMs=G.lactThresholdMs,O.mediaPosSec=G.promptDelaySec,O.lactServerRequestMs=G.lactServerRequestMs,O.triggerReason=G.triggerReason);Q!=null&&(O.renderingMediaPosSec=Math.round(Q));m||(m=_.yA());m&&(O.clientScreenNonce=m);B&&(O.clientPlaybackNonce=B);_.LE("youThere",O)};
afB={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"};ofA=function(O){this.xhr=O};
_.aX=function(O,m,G){_.GY.call(this,O+", errorCode="+m);this.errorCode=m;this.xhr=G;this.name="PromiseAjaxError"};
_.X(_.aX,_.GY);var CHr={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var d59=new _.YG("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.L9y=function(O){return _.xs({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:O})};
}catch(e){_._DumpException(e)}
try{
var c2,t0a,ZEq,zNc,Jln,V0A,nt0,pH5,SJ8,EtO,bEq,WPn,TE0,hN9,ot9;_.UTh=function(){var O=window.location.hash;O.charAt(0)==="#"&&(O=O.charAt(1)==="!"?O.substring(2):O.substring(1));return _.Px(O)};
c2=function(O,m,G){var B;return _.r(function(Q){if(Q.nextAddress==1)return Q.yield(m(),2);B=Q.yieldResult;G(B,O);_.ju(Q)})};
t0a=function(){return _.r(function(O){return O.nextAddress==1?O.yield((_.ych()!==void 0?_.lK(Error("xf")):_.lfh()).then(function(){return 1},function(m){if(m.message==="Biscotti id is disabled")return 3;
_.ay("Failed fetching bid");return 0}),2):O.return(O.yieldResult)})};
ZEq=function(){var O=_.iu("M3J0eXQtaGF2ZW4tZW1iZWQtcGxheWVyIzk1NzkwbTZlZg=="),m=_.iu("ZnJhbWUjNmhuMTF6amZudHNyaQ==");return document.querySelector(m+WPn+O)?0:1};
zNc=function(){return _.iW5(_.zb)};
Jln=function(){return _.xKp()===0?0:_.qHp()};
V0A=function(){return _.zLM(_.SLf([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
nt0=function(){return _.QrI(bEq)};
_.XHh=function(O){_.r(function(m){switch(m.nextAddress){case 1:return m.yield(c2("b.f_",t0a,O),2);case 2:return m.yield(c2("j.s_",_.Gjp,O),3);case 3:return m.yield(c2("r.s_",_.Anf,O),4);case 4:return m.yield(c2("e.h_",nt0,O),5);case 5:if(!_.V("ab_det_sc_inj")){m.jumpTo(6);break}return m.yield(c2("s.i_",_.rh6,O),6);case 6:if(_.V("ab_deg_unex_thr")){m.jumpTo(8);break}return m.yield(c2("a.o_",_.$KO,O),8);case 8:if(_.V("ks_get_o_pp")){m.jumpTo(10);break}return m.yield(c2("g.o_",_.KFN,O),10);case 10:if(_.V("ks_det_gpbl")){m.jumpTo(12);
break}return m.yield(c2("p.i_",_.vmz,O),12);case 12:return m.yield(c2("f.i_",_.ynN,O),14);case 14:return m.yield(c2("a.b_",_.PON,O),15);case 15:return m.yield(c2("p.m_",_.dd5,O),16);case 16:if(!_.V("ab_det_el_h_v2")){m.jumpTo(17);break}return m.yield(c2("n.h_",V0A,O),17);case 17:return m.yield(c2("o.p_",zNc,O),19);case 19:return m.yield(c2("e.i_",ZEq,O),20);case 20:if(_.V("ab_det_apm"))return m.yield(c2("o.a_",Jln,O),0);m.jumpTo(0)}})};
_.fbh=function(O,m){O={videoId:O};m&&(O.playlistId=m);return O};
_.gtO=function(){if(_.nJz()){var O=_.kB("PLAYER_VARS",{});if(_.aM.get(O,"privembed",!1)!="1"&&!_.kAo(O)){var m=function(){hN9=!0;"google_ad_status"in window?_.a8("DCLKSTAT",1):_.a8("DCLKSTAT",2)};
try{_.sF(_.h6y,m)}catch(G){}TE0.push(_.ln.addLowPriorityJob(function(){if(!(hN9||"google_ad_status"in window)){try{_.Us5(_.h6y.toString(),m)}catch(G){}hN9=!0;_.a8("DCLKSTAT",3)}},5E3))}}};
_.ugo=function(O,m,G){G=G===void 0?!1:G;var B=Math.max(O.width,_.cXn);if(_.V("kevlar_watch_feed_big_thumbs")&&O.width>=1550-_.Zu()&&O.height>=800)B-=_.soc;else if(O.width>=_.wz){var Q=_.YIq+_.dG9+_.dz;_.V("kevlar_watch_feed_big_thumbs")&&(Q=_.DGa);B-=Q}else B-=_.YIq;B=Math.min(B,_.wi0);Q=240;G&&(Q=380);m<.5624||(!_.V("kevlar_watch_flexy_disable_small_window_sizing")&&(O.height<630&&O.width>=657||O.height>=630&&O.width>=_.wz&&O.width<1327)?Q=360:!_.V("kevlar_watch_flexy_disable_large_window_sizing")&&
O.height>=630&&O.width>=1327&&(Q=480));var H=Math.min(B*m,O.height-(56+_.yXo+_.eqq));H=Math.max(H,Q);m<1?B=H/m:O.width>=_.wz&&(B=_.ugo(O,.5625,G).width);return new _.hY(Math.round(B),Math.round(H))};
_.jyc=function(O){var m=0;O.indexOf("h")!=-1&&(O=O.split("h"),m=O[0]*60*60,O=O[1]);O.indexOf("m")!=-1&&(O=O.split("m"),m=O[0]*60+m,O=O[1]);O.indexOf("s")!=-1?(O=O.split("s"),m=O[0]*1+m):m=O*1+m;return m};
_.Ib9=function(){_.Rd("service_worker_push_logged_out_prompt_watches")!=-1&&_.yH("WatchCount").then(function(O){O>=100||_.kd("WatchCount",O+1)})};
pH5=function(O){var m=O.externalVideoId||"";return m?O.isShortsEligible?"https://www.youtube.com/shorts/"+m:"https://www.youtube.com/watch?v="+m:""};
SJ8=function(O){var m=[];O.viewCount&&m.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:O.viewCount});O.likeCount&&m.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:O.likeCount});return m};
EtO=function(O){var m,G,B={"@context":"https://schema.org","@type":"VideoObject",description:_.HX(O.description),duration:"PT"+(O.lengthSeconds||"0")+"S",embedUrl:O.embed?O.embed.iframeUrl:"",name:_.HX(O.title),thumbnailUrl:((m=O.thumbnail)==null?void 0:(G=m.thumbnails)==null?void 0:G.map(function(W){return W&&W.url||""}))||[],
uploadDate:O.publishDate};_.V("mweb_video_schema_id_killswitch")||(B["@id"]=pH5(O));m=SJ8(O);m.length&&(B.interactionStatistic=m);O.category&&(B.genre=O.category);O.ownerChannelName&&(B.author=O.ownerChannelName);O.liveBroadcastDetails&&(B.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:O.liveBroadcastDetails.startTimestamp,endDate:O.liveBroadcastDetails.endTimestamp}]);if(O.learningResource){O=O.learningResource;B["@type"]=["VideoObject","LearningResource"];var Q;if((Q=O.learningResourceType)==
null?0:Q.length)B.learningResourceType=O.learningResourceType[0];var H;if((H=O.educationalAlignment)==null?0:H.length)B.educationalAlignment={"@type":"AlignmentObject",targetName:O.educationalAlignment[0]};var M;if((M=O.educationalLevel)==null?0:M.length){Q=O.educationalLevel[0];var R;if((R=O.educationalLevelCountry)==null?0:R.length)Q+=" ("+O.educationalLevelCountry+")";B.educationalLevel=Q}var x,t;if(((x=O.learningResourceType)==null?0:x.length)&&O.learningResourceType[0]==="Problem walkthrough"&&
((t=O.problemDescriptions)==null?0:t.length))for(B.hasPart=[],R=_.K(O.problemDescriptions),x=R.next();!x.done;x=R.next())Q=x.value,x=Q.problemDescriptionText,t=Q.startOffset,Q=Q.url,x&&t!==void 0&&Q&&B.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:x,text:x,startOffset:t,url:Q})}return B};
_.LP8=function(O){return _.xs({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:O}})};
bEq=[[["bWFyeSM0Y3pveWp2eGpzMnlwcmk=",null,null],[null,["LWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI3A3dXZpeWc1OG13Y3l0ZC10d28tY29sdW1u","I3dhanBmamRobm9keXN0eWxlLXNjb3Bl"],null],["I3R2M25rOGExYjQxaG1hc3RoZWFkLWFk",["bjZ5dGQtcmljaC1ncmlkLXJlbmRlcmVyIzMwazZ2d3h2d2k="],null],[null,["MGF5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3N3dTNqYnh6emw=","Izl1eGEyY2RkOXg1bHN0eWxlLXNjb3Bl"],null],[null,["dGQtYmFubmVyLXByb21vLXJlbmRlcmVyIzh2MmszeW9haWh4N3k=","IzZ5aG4xdzN0eTdndHN0eWxlLXNjb3Bl"],null],[null,["NmFxOHl0ZC1hZC1zbG90LXJlbmRlcmVyIzNhd3JjODM3"],
null]],[["cyNjcmxmeWltazB3MHlwbGF5ZXItYWQ=",null,null]],[["ZXdoZ2htMmRlc2NyaXB0aW9uLWlubmVyI3R0d3lh",null,null],[null,null,"eXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyI3ozbnY2ZXNrOTVhcA=="],["bHltbWFpbiNlZWNrY2hzdGU=",["eXRkLW1lcmNoLXNoZWxmLXJlbmRlcmVyI2Z1OXVvY2d2bXdpNw=="],null]]];WPn="#";TE0=[];hN9=!1;_.CTh=["engagement-panel-ads"];ot9=new _.q$("updateSentimentBarStateCommand");_.lba=new _.q$("showSurveyCommand");_.Yw=new _.q$("changeMarkersVisibilityCommand");var kH5,ylL,wHn,dTG,YJc,d3;_.aba=function(O,m){this.playerProvider_=O;this.actionSenderElement_=m;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.aba.prototype.reset=function(){kH5(this);this.isUserPredictedAbsent_=!1};
kH5=function(O,m){!O.youThereData_||O.showWarningJob_||m!==void 0&&m||(_.y6("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.yA(),O.youThereData_,O.clientPlaybackNonce_),_.CE());_.ln.cancelJob(O.showWarningJob_);O.showWarningJob_=0;_.ln.cancelJob(O.showBlockingWarningJob_);O.showBlockingWarningJob_=0;_.ln.cancelJob(O.pausePlaybackJob_);O.pausePlaybackJob_=0;O.youThereData_=null;O.clientPlaybackNonce_=void 0;O.inYouThereFlow_=!1};
_.clO=function(O,m){var G,B,Q;_.r(function(H){if(H.nextAddress==1)return O.reset(),H.yield(O.playerProvider_().getPlayerPromise(),2);G=H.yieldResult;O.clientPlaybackNonce_=G.getVideoData().cpn;O.youThereData_=m.configData.youThereData;if(!O.youThereData_)return H.return();if(O.youThereData_.triggerReason&&O.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.wrA())return _.y6("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.yA(),O.youThereData_,O.clientPlaybackNonce_),H.return();B=O.youThereData_.promptDelaySec;
Q=G.getCurrentTime();O.showWarningJob_=_.ln.addLowPriorityJob(function(){return _.r(function(M){O.showWarningJob_=0;return M.yield(ylL(O),0)})},Math.max(B-Q,0)*1E3);
_.ju(H)})};
ylL=function(O){var m,G,B,Q,H,M;return _.r(function(R){if(R.nextAddress==1)return R.yield(O.playerProvider_().getPlayerPromise(),2);if(R.nextAddress!=3)return m=R.yieldResult,G=m.getCurrentTime(),R.yield(YJc(O),3);B=R.yieldResult;if(!B||!O.youThereData_)return R.return();if(_.V("check_user_lact_at_prompt_shown_time_on_web")&&(Q=parseInt(O.youThereData_.lactThresholdMs,10),_.MT()<Q))return _.y6("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.yA(),O.youThereData_,O.clientPlaybackNonce_),R.return();if(O.youThereData_.playbackPauseDelayMs<=
0)return dTG(O),R.return();!_.V("external_fullscreen")&&(H=_.$c())&&(O.ignoreFullscreenExitUserActivity_=!0,_.ln.addLowPriorityJob(function(){O.ignoreFullscreenExitUserActivity_=!1},2E3),_.MC(H));
O.youThereData_.showToastWarningPrompt&&(d3(O,O.youThereData_.showWarningActions),O.inYouThereFlow_=!0,_.y6("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.yA(),O.youThereData_,O.clientPlaybackNonce_,G),_.y6("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.yA(),O.youThereData_,O.clientPlaybackNonce_,G));M=0;O.youThereData_.blockingPromptDelayMs&&(M=O.youThereData_.blockingPromptDelayMs);O.showBlockingWarningJob_=_.ln.addLowPriorityJob(function(){return _.r(function(x){O.showBlockingWarningJob_=0;return x.yield(wHn(O),
0)})},M);
_.ju(R)})};
wHn=function(O){var m,G,B;return _.r(function(Q){if(Q.nextAddress==1)return Q.yield(YJc(O),2);m=Q.yieldResult;if(!O.youThereData_)return Q.return();m&&(O.youThereData_.showBlockingWarningAction&&(_.y6("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.yA(),O.youThereData_,O.clientPlaybackNonce_),(G=_.b(O.youThereData_.showBlockingWarningAction,_.zC))?d3(O,G.commands):d3(O,[O.youThereData_.showBlockingWarningAction]),O.inYouThereFlow_=!0),B=O.youThereData_.playbackPauseDelayMs,O.pausePlaybackJob_=
_.ln.addLowPriorityJob(function(){return _.r(function(H){O.pausePlaybackJob_=0;return H.yield(dTG(O),0)})},B));
_.ju(Q)})};
dTG=function(O){var m;return _.r(function(G){if(G.nextAddress==1)return G.yield(YJc(O),2);m=G.yieldResult;if(!O.youThereData_)return G.return();m&&(_.y6("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.yA(),O.youThereData_,O.clientPlaybackNonce_),d3(O,O.youThereData_.showPausedActions),O.inYouThereFlow_=!0);_.ju(G)})};
_.aba.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var O=_.b(this.youThereData_.userActiveDuringFlowAction,_.zC);O?d3(this,O.commands):d3(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.y6("YOU_THERE_EVENT_TYPE_LACT_RESET",_.yA(),this.youThereData_,this.clientPlaybackNonce_),_.CE());kH5(this,!0)}_.eN9(this,!1)};
_.DT0=function(O){_.y6("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.yA(),O.youThereData_,O.clientPlaybackNonce_)};
YJc=function(O){var m,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(O.playerProvider_().getPlayerPromise(),2);m=B.yieldResult;G=m.getPlayerState();return B.return(G==-1||G==1||G==3)})};
_.eN9=function(O,m){var G;_.r(function(B){if(B.nextAddress==1){if(O.isUserPredictedAbsent_==m)return B.jumpTo(0);O.isUserPredictedAbsent_=m;return B.yield(O.playerProvider_().getPlayerPromise(),3)}G=B.yieldResult;G.setUserEngagement(m);m&&_.y6("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.yA(),O.youThereData_,O.clientPlaybackNonce_);_.ju(B)})};
d3=function(O,m){if(_.V("handle_service_request_actions")||_.V("kevlar_youthere_service_endpoint_actions_killswitch"))_.Wd(O.actionSenderElement_,m,O.actionSenderElement_);else{m=_.K(m);for(var G=m.next();!G.done;G=m.next())G=G.value,G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.sendPost?_.tK(O.actionSenderElement_,[G]):_.Wd(O.actionSenderElement_,[G],O.actionSenderElement_)}};var sy5;var NE5;var w3=function(){var O=_.u.apply(this,arguments)||this;O.systemIcons=_.V("kevlar_system_icons");O.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return O};
_.X(w3,_.u);w3.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var O=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(O=this.data.percentIfLiked||0,this.activated=!0):(O=this.data.percentIfIndifferent||0,this.activated=!1);_.ZO(this.hostElement).querySelector("#like-bar").style.width=O+"%"}};
w3.prototype.handleUpdateSentimentBarStateCommand=function(O){this.data&&this.set("data.likeStatus",_.b(O,ot9).likeStatus)};
w3.prototype.observeLikeStatus=w3.prototype.observeLikeStatus;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],w3.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],w3.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],w3.prototype,"activated",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],w3.prototype,"systemIcons",void 0);_.c([_.Tw("data.likeStatus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],w3.prototype,"observeLikeStatus",null);_.c([_.l({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],w3);
_.y(w3,"ytd-sentiment-bar-renderer",function(){if(NE5!==void 0)return NE5;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return NE5=O},{mode:1});var PTG;var eN=function(){var O=_.u.apply(this,arguments)||this;O.small=!0;return O};
_.X(eN,_.u);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],eN.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],eN.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],eN.prototype,"small",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],eN);
_.y(eN,"ytd-video-view-count-renderer",function(){if(PTG!==void 0)return PTG;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return PTG=O},{mode:_.ZB("kevlar_poly_si_batch_j080")?1:2});var DE=function(){var O=_.u.apply(this,arguments)||this;O.infoFormattedStrings=[];O.wrapVideoActions=_.V("kevar_watch_wrap_video_actions");O.hideSentimentBar=_.V("kevlar_watch_hide_sentiment_bar");O.actionMap={};return O};
_.X(DE,_.u);_.v=DE.prototype;_.v.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.V("web_modern_buttons"),forceIconButton:!_.V("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.v.dataChanged=function(){_.V("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.v.computeInfoFormattedStrings=function(O){if(!O)return[];var m=[];O.dateText&&m.push(O.dateText);O.stationName&&m.push(O.stationName);O.rating&&m.push(O.rating);O.startEndTimeTemplate&&O.startTimeUtcMillis&&O.endTimeUtcMillis&&m.push(_.Qg(_.v0q(_.HX(O.startEndTimeTemplate),Number(O.startTimeUtcMillis),Number(O.endTimeUtcMillis))));O.upNextProgramText&&m.push(O.upNextProgramText);return m};
_.v.scheduleInitialUpdatedMetadataRequest=function(){var O,m=(O=this.data)==null?void 0:O.updatedMetadataEndpoint;if(m){var G;O=Number((G=_.b(m,_.Hi3))==null?void 0:G.initialDelayMs);G=isNaN(O)?250:O;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),G)}};
_.v.setSentimentBarWidth=function(){var O=this;_.QA(this,function(){var m=_.ZO(O.hostElement).querySelector("ytd-menu-renderer");if(m){m=m.topLevelButtons;for(var G=0,B=0;B<m.length;B++){var Q=m[B],H=O.get("toggleButtonSupportedData.toggleButtonIdData.id",Q.data);if(H==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||H==="TOGGLE_BUTTON_ID_TYPE_LIKE")G+=Q.clientWidth+8;else break}G&&(O.sentiment.style.width=G-8+" px")}})};
_.v.fetchUpdatedMetadata=function(O){var m;O&&(m={continuation:O});var G;(O=(G=this.data)==null?void 0:G.updatedMetadataEndpoint)&&_.KR().resolve(_.Mu).resolveCommand(O,{form:Object.assign({},m,{element:this.hostElement})})};
_.v.onYtServiceRequestSent=function(O,m){m.endpoint&&_.b(m.endpoint,_.cc)&&(this.hasUpdateSentimentBarStateCommands()&&!_.V("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.b(m.endpoint,_.cc).status),this.setSentimentBarWidth())};
_.v.hasUpdateSentimentBarStateCommands=function(){var O,m,G,B,Q=(B=(O=this.data)==null?void 0:(m=O.videoActions)==null?void 0:(G=m.menuRenderer)==null?void 0:G.topLevelButtons)!=null?B:[];O=_.K(Q);for(m=O.next();!m.done;m=O.next()){m=m.value;Q=B=G=void 0;var H=(G=m.toggleButtonRenderer)==null?void 0:(B=G.toggleButtonSupportedData)==null?void 0:(Q=B.toggleButtonIdData)==null?void 0:Q.id;if(H==="TOGGLE_BUTTON_ID_TYPE_LIKE"||H==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){B=G=void 0;m=(B=_.b((G=m.toggleButtonRenderer)==
null?void 0:G.defaultServiceEndpoint,_.zC))==null?void 0:B.commands;if(!m)break;m=_.K(m);for(G=m.next();!G.done;G=m.next())if(_.b(G.value,ot9))return!0}}return!1};
_.v.onYtServiceRequestCompleted=function(O,m){var G;(O=(G=m.data)==null?void 0:G.loggingDirectives)&&_.DUz(_.uK(),O);this.get("continuation.timedContinuationData",m.data)&&this.data&&this.data.updatedMetadataEndpoint&&(m=m.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,m.continuation),m.timeoutMs))};
_.v.computeHasDateText=function(O){return!!O&&!!O.dateText};
_.vr.Object.defineProperties(DE.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B;return!((B=(O=this.data)==null?void 0:(m=O.videoActions)==null?void 0:(G=m.menuRenderer)==null?void 0:G.flexibleItems)==null||!B.length)}}});
DE.prototype.onYtServiceRequestCompleted=DE.prototype.onYtServiceRequestCompleted;DE.prototype.onYtServiceRequestSent=DE.prototype.onYtServiceRequestSent;DE.prototype.dataChanged=DE.prototype.dataChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],DE.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],DE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.hg.YtTaskEmitterBehavior),_.Y("design:type",Object)],DE.prototype,"ytTaskEmitterBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],DE.prototype,"data",void 0);_.c([_.g({computed:"computeInfoFormattedStrings(data)"}),_.Y("design:type",Array)],DE.prototype,"infoFormattedStrings",void 0);
_.c([_.g({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],DE.prototype,"hasDateText",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],DE.prototype,"wrapVideoActions",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],DE.prototype,"hideSentimentBar",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],DE.prototype,"flexMenuEnabled",null);
_.c([_.uc("#sentiment"),_.Y("design:type",Object)],DE.prototype,"sentiment",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DE.prototype,"dataChanged",null);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],DE.prototype,"onYtServiceRequestSent",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],DE.prototype,"onYtServiceRequestCompleted",null);
_.y(DE,"ytd-video-primary-info-renderer",function(){if(sy5===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);sy5=O}O=sy5;return O},{mode:1});var FP8;var sq=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return O};
_.X(sq,_.u);_.v=sq.prototype;_.v.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"}}}};
_.v.dataChanged=function(){var O;this.descriptionToggled=!((O=this.data)==null||!O.defaultExpanded);var m;this.collapsed=this.descriptionAlwaysCollapsed||!((m=this.data)==null?0:m.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Zv(110509);this.showLessClientVe=_.Zv(110510);O=_.yA();m=_.kf();O&&m&&_.Fm(O,m,[this.showMoreClientVe,this.showLessClientVe])};
_.v.onYtExpanderMoreTapped=function(){var O,m=(O=this.data)==null?void 0:O.showMoreCommand;m&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(m);(O=_.yA())&&this.showMoreClientVe&&_.Gk(O,this.showMoreClientVe)};
_.v.onYtExpanderLessTapped=function(){var O=_.yA();O&&this.showLessClientVe&&_.Gk(O,this.showLessClientVe);var m;(O=(m=this.data)==null?void 0:m.showLessCommand)&&this.componentBehavior.resolveCommand(O)};
_.v.handleUpdateDateTextAction=function(O){this.data&&this.data.dateText&&this.set("data.dateText",_.b(O,_.LIn).dateText)};
_.v.handleUpdateDescriptionAction=function(O){if(O=_.b(O,_.HQ3))O.isEmpty||!O.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.cE(O.description)):this.set("data.description",O.description)};
_.v.onYtChangeEngagementPanelVisibilityAction=function(O){if(_.V("web_structured_description_show_more")||_.V("web_engagement_panel_open_description")){var m,G=(m=_.b(O,_.rZC))==null?void 0:m.targetId,B;O=((B=_.b(O,_.rZC))==null?void 0:B.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";G==="engagement-panel-structured-description"&&O&&(this.descriptionToggled=!0)}};
_.v.updateCollapsedFromBinding=function(O){this.collapsed=O.detail.value};
_.v.updateDescriptionToggledFromBinding=function(O){this.descriptionToggled=O.detail.value};
_.v.updateCanCollapseFromBinding=function(O){this.canCollapse=O.detail.value};
_.vr.Object.defineProperties(sq.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var O,m,G=(O=this.data)==null?void 0:(m=O.metadataRowContainer)==null?void 0:m.metadataRowContainerRenderer;return!!G&&!!G.rows&&G.rows.length>G.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.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}}});
sq.prototype.onYtExpanderLessTapped=sq.prototype.onYtExpanderLessTapped;sq.prototype.onYtExpanderMoreTapped=sq.prototype.onYtExpanderMoreTapped;sq.prototype.dataChanged=sq.prototype.dataChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],sq.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],sq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],sq.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],sq.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],sq.prototype,"collapsed",void 0);_.c([_.g(),_.Y("design:type",Boolean)],sq.prototype,"descriptionToggled",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],sq.prototype,"canCollapse",void 0);_.c([_.g(),_.Y("design:type",Object)],sq.prototype,"subscribeButtonData",void 0);_.c([_.g(),_.Y("design:type",Number)],sq.prototype,"descriptionCollapsedHeight",void 0);_.c([_.g(),_.Y("design:type",Object)],sq.prototype,"structuredDescriptionContentRenderer",void 0);_.c([_.g({value:function(){return _.V("web_watch_description_always_collapsed")}}),
_.Y("design:type",Boolean)],sq.prototype,"descriptionAlwaysCollapsed",void 0);_.c([_.uc("#description"),_.Y("design:type",HTMLDivElement)],sq.prototype,"description",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sq.prototype,"dataChanged",null);_.c([_.hG("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sq.prototype,"onYtExpanderMoreTapped",null);
_.c([_.hG("yt-expander-less-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sq.prototype,"onYtExpanderLessTapped",null);_.c([_.T("data.metadataRowContainer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],sq.prototype,"metadataCollapsible",null);_.c([_.T("data","structuredDescriptionContentRenderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],sq.prototype,"hasInlineStructuredDescription",null);
_.c([_.T("data.attributedDescription"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],sq.prototype,"hasAttributedDescription",null);_.c([_.T("hasInlineStructuredDescription","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],sq.prototype,"loadStructuredDescription",null);_.c([_.T("data","structuredDescriptionContentRenderer","collapsed"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],sq.prototype,"showInlineStructuredDescription",null);
_.c([_.T("data","hasInlineStructuredDescription","metadataCollapsible"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],sq.prototype,"descriptionAlwaysCollapsible",null);
_.y(sq,"ytd-video-secondary-info-renderer",function(){if(FP8===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);FP8=O}O=FP8;return O},{mode:2});var Al8;var N3=function(){return _.u.apply(this,arguments)||this};
_.X(N3,_.u);N3.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:_.V("web_modern_buttons"),forceIconButton:!_.V("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
N3.prototype.activate=function(O){O.appendTo(this.player);O.getPlayerPromise().then(function(m){m.setMinimized(!0)});
this.active=!0};
N3.prototype.deactivate=function(){var O=this.player.firstElementChild;O.getPlayerPromise().then(function(m){m.setMinimized(!1)});
this.active=!1;return O};
N3.prototype.onScrollUpTap=function(){var O=_.KR().resolve(_.KJ).getCurrentPage();O&&O.setScrollTop(0)};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],N3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],N3.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],N3.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],N3.prototype,"active",void 0);
_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.Y("design:type",Boolean)],N3.prototype,"darkLaunch",void 0);_.c([_.uc("#player"),_.Y("design:type",HTMLDivElement)],N3.prototype,"player",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],N3);
_.y(N3,"ytd-miniplayer-bar-renderer",function(){if(Al8!==void 0)return Al8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Al8=O},{mode:1});_.qi(_.a(function(O){var m=_.Al("script");_.ER(function(){var G;if(G=JSON)G=EtO(O.data()),G=_.vi(JSON.stringify(G).replace(/</g,"\\u003C"));var B=O.data(),Q=_.HX(B.title).trim().length===0,H=!B.publishDate||B.publishDate.trim().length===0,M,R,x,t,W=!((M=B.thumbnail)==null?0:(R=M.thumbnails)==null?0:R.length)||!((x=B.thumbnail)==null?0:x.thumbnails[0].url)||((t=B.thumbnail)==null?void 0:t.thumbnails[0].url.trim().length)===0;m.value&&G&&!(Q||H||W)&&_.K_(m.value,G)},"Vy9K7b");
return _.q("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.q("script",{el:m,type:"application/ld+json"}))},"sl"),"player-microformat-renderer",{props:{data:_.RZ}});
}catch(e){_._DumpException(e)}
try{
var wIq,et0,sOo;_.dIG=function(O){return O.watch.watchWindowSize};
wIq=function(O,m){var G=document.querySelector(O);G?m(G):setTimeout(function(){wIq(O,m)},1E3)};
et0=function(O,m,G,B){if(O.isLockupToWatchTransitionEnabled){if(m){var Q={};Q=(Q["watch-next-appears"]="player-watch-next-loaded",Q);Q["lockup-to-watch"]=O.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";O.viewTransitionCoordinator.registerElement(m,Q)}G&&(m={},O.viewTransitionCoordinator.registerElement(G,(m["lockup-to-watch"]="below-lockup-to-watch",m["watch-next-appears"]="below-watch-next-loaded",m)));B&&(G={},O.viewTransitionCoordinator.registerElement(B,
(G["watch-next-appears"]="secondary-watch-next-loaded",G)))}};
_.DIq=function(O){return _.xs({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:O}})};
sOo=new _.q$("webWatchNextResponseExtensionData");var Pnq=function(O){_.Iw.call(this);var m=this;this.JSC$23097_watchApi=O;this.observer=null;var G=this.JSC$23097_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){NY0(m)});
this.addOnDisposeCallback(function(){m.JSC$23097_watchApi.unsubscribeByKey(G);m.observer&&(m.observer.disconnect(),m.observer=null)});
NY0(this)};
_.X(Pnq,_.Iw);
var NY0=function(O){var m,G,B,Q;_.r(function(H){if(H.nextAddress==1){O.observer&&(O.observer.disconnect(),O.observer=null);m=O.JSC$23097_watchApi.getWatchNextResponse();if(!m)return H.return();G=_.b(m,sOo);return(B=G)!=null&&B.enableCreatorChatbot?H.yield((0,_.lLI)("NSzT5"),3):H.jumpTo(0)}Q=_.GCh;Q();wIq("ytd-watch-metadata",function(M){O.observer=new MutationObserver(function(){var R,x;(R=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(x=R.closest("yt-button-view-model.ytd-menu-renderer"))==
null||x.remove()});
O.observer.observe(M,{childList:!0,subtree:!0})});
_.ju(H)})};var AvO=function(O){_.Iw.call(this);this.JSC$23101_watchApi=O;FoG(this)};
_.X(AvO,_.Iw);var FoG=function(O){_.r(function(m){if(m.nextAddress==1)return m.yield(OE5(O),2);mTn(O);_.ju(m)})},OE5=function(O){var m,G,B,Q;
return _.r(function(H){if(H.nextAddress==1)return H.yield(O.JSC$23101_watchApi.playerApi,2);m=H.yieldResult;O.JSC$23101_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){GH9(O)});
G=O.JSC$23101_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){mTn(O)});
B=function(M){O.onCueRangeEnter(M)};
m.addEventListener("onCueRangeEnter",B);Q=function(M){O.onCueRangeExit(M)};
m.addEventListener("onCueRangeExit",Q);O.addOnDisposeCallback(function(){O.JSC$23101_watchApi.unsubscribeByKey(G);m.removeEventListener("onCueRangeEnter",B);m.removeEventListener("onCueRangeExit",Q)});
_.ju(H)})},BEc=function(O){var m,G,B,Q,H,M,R,x,t;
return(H=(m=O.contents)==null?void 0:(G=m.twoColumnWatchNextResults)==null?void 0:(B=G.results)==null?void 0:(Q=B.results)==null?void 0:Q.contents)==null?void 0:(M=H.find(function(W){var Z,z,J;return(Z=W.itemSectionRenderer)==null?void 0:(z=Z.contents)==null?void 0:(J=z[0])==null?void 0:J.shoppingTimelyShelfViewModel}))==null?void 0:(R=M.itemSectionRenderer)==null?void 0:(x=R.contents)==null?void 0:(t=x[0])==null?void 0:t.shoppingTimelyShelfViewModel},mTn=function(O){var m;
_.r(function(G){if(G.nextAddress==1)return(m=O.JSC$23101_watchApi.getWatchNextResponse())?G.yield(GH9(O),2):G.return();O.shoppingTimelyShelfViewModel=BEc(m);QyA(O);HEO(O);_.ju(G)})},QyA=function(O){var m,G=(m=O.shoppingTimelyShelfViewModel)==null?void 0:m.offerIdToVariants;
G&&(m=G.filter(function(B){return B.key&&B.value}).map(function(B){return[B.key,
B.value]}),O.variantsMap=new Map(m))},HEO=function(O){var m,G,B,Q,H,M;
_.r(function(R){if(R.nextAddress==1)return(G=(m=O.shoppingTimelyShelfViewModel)==null?void 0:m.cueRanges)?R.yield(O.JSC$23101_watchApi.playerApi,2):R.return();B=R.yieldResult;O.cueRanges=G;Q=_.K(G);for(H=Q.next();!H.done;H=Q.next())M=H.value,M.startTime!==void 0&&M.endTime!==void 0&&M.id!==void 0&&B.addCueRange("shopping_timely_shelf"+M.id,vtn(M.startTime),vtn(M.endTime));_.ju(R)})},vtn=function(O){return Number(O.seconds||0)+(O.nanos||0)/1E9};
AvO.prototype.onCueRangeEnter=function(O){if(O.startsWith("shopping_timely_shelf")){var m=O.substring(21),G,B;O=(G=this.variantsMap)==null?void 0:(B=G.get(m))==null?void 0:B.shelf;if(_.V("web_enable_shopping_timely_shelf_client_overwrite")){var Q,H,M,R,x;G=O==null?void 0:(Q=O.shoppingTimelyShelfContentViewModel)==null?void 0:(H=Q.button)==null?void 0:(M=H[1])==null?void 0:(R=M.buttonViewModel)==null?void 0:(x=R.onTap)==null?void 0:x.innertubeCommand;var t,W;if(G==null?0:(t=G.menuEndpoint)==null?0:
(W=t.menu)==null?0:W.menuRenderer)G.openPopupAction=G.menuEndpoint,G.openPopupAction.popup=G.openPopupAction.menu,G.openPopupAction.popup.menuPopupRenderer=G.openPopupAction.popup.menuRenderer,G.openPopupAction.popupType="DROPDOWN",delete G.menuEndpoint,delete G.openPopupAction.menu,delete G.openPopupAction.popup.menuRenderer}O&&this.JSC$23101_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",O)}};
AvO.prototype.onCueRangeExit=function(O){O.startsWith("shopping_timely_shelf")&&this.JSC$23101_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var GH9=function(O){var m,G,B,Q,H;return _.r(function(M){if(M.nextAddress==1)return M.yield(O.JSC$23101_watchApi.playerApi,2);m=M.yieldResult;if(O.cueRanges)for(G=_.K(O.cueRanges),B=G.next();!B.done;B=G.next())Q=B.value,Q.id&&(H="shopping_timely_shelf"+Q.id,m.removeCueRange(H));O.JSC$23101_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});O.shoppingTimelyShelfViewModel=void 0;O.cueRanges=void 0;O.variantsMap=void 0;_.ju(M)})};var RNc=function(O){_.Iw.call(this);var m=this;this.JSC$23108_watchApi=O;O=_.dc(_.Kf(),_.SNs,function(){KPh(m)});
this.addOnDisposeCallback(O);O=_.dc(_.Kf(),_.dIG,function(){KPh(m)});
this.addOnDisposeCallback(O);$Tc(this);M0q(this);rl0()};
_.X(RNc,_.Iw);var $Tc=function(O){var m=function(B){_.Kf().dispatch(_.mG8(B.matches))},G=window.matchMedia("(max-width: "+(999+_.Zu())+"px)");
G.addListener(m);O.addOnDisposeCallback(function(){G.removeListener(m)});
m(G)},M0q=function(O){O.JSC$23108_watchApi.registerActionHandler("yt-window-resized",function(){rl0()});
O.addOnDisposeCallback(function(){O.JSC$23108_watchApi.unregisterActionHandler("yt-window-resized")})},rl0=function(){var O=_.Ih();
_.Kf().dispatch(_.xs({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:O.width,height:O.height}}}))},KPh=function(O){var m;
_.r(function(G){if(G.nextAddress==1)return G.yield(O.JSC$23108_watchApi.playerApi,2);m=G.yieldResult;m.setSize(NaN,NaN);_.ju(G)})};var iEn=function(O){_.Iw.call(this);var m=_.KR().resolve(_.dF);et0(m,O.getElement("PLAYER_CONTAINER"),O.getElement("BELOW_THE_PLAYER"),O.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var G=O.getElement("PLAYER_CONTAINER"),B=O.getElement("BELOW_THE_PLAYER"),Q=O.getElement("SECONDARY");m.isLockupToWatchTransitionEnabled&&(G&&_.dR(m.viewTransitionCoordinator,G),B&&_.dR(m.viewTransitionCoordinator,B),Q&&_.dR(m.viewTransitionCoordinator,Q))})};
_.X(iEn,_.Iw);_.aY=function(O){_.Yd.call(this);var m=this;this.rootElement=O;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return m.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(G){m.initOrDisposeActiveModules(G)}));
this.onAttached()};
_.X(_.aY,_.Yd);_.v=_.aY.prototype;_.v.getRoot=function(){return this.rootElement};
_.v.getElement=function(O){return this.rootElement.getElement(O)};
_.v.setPlayerResponse=function(O){this.playerResponse=O;this.publish("PLAYER_RESPONSE_UPDATED",O)};
_.v.getPlayerResponse=function(){return this.playerResponse};
_.v.setWatchNextResponse=function(O){this.watchNextResponse===O?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=O,this.publish("WATCH_NEXT_RESPONSE_UPDATED",O))};
_.v.getWatchNextResponse=function(){return this.watchNextResponse};
_.v.registerActionHandler=function(O,m){var G=this;if(_.V("web_watch_controller_reg_multiple_handlers_killswitch")){var B={};_.NT(_.sJ.getInstance(),(B[O]=m,B),this.getRoot())}else this.actionHandlers.has(O)||(this.actionHandlers.set(O,[]),B={},_.NT(_.sJ.getInstance(),(B[O]=function(){var Q=_.eA.apply(0,arguments);return(G.actionHandlers.get(O)||[]).map(function(H){return H.apply(null,_.lS(Q))})},B),this.getRoot())),this.actionHandlers.get(O).push(m)};
_.v.unregisterActionHandler=function(O){if(_.V("web_watch_controller_reg_multiple_handlers_killswitch")){var m={};_.PH(_.sJ.getInstance(),(m[O]=!0,m),this.getRoot())}else(m=this.actionHandlers.get(O))?(m.pop(),m.length===0&&(m={},_.PH(_.sJ.getInstance(),(m[O]=!0,m),this.getRoot()),this.actionHandlers.delete(O))):_.ay(new _.j9("Attempted to unregister an action handler which is not registered.",O))};
_.v.addPageDisposeJob=function(O){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.bNr(this.rootElement.pageDisposeJobs,O)};
_.v.removePageDisposeJob=function(O){this.rootElement.pageDisposeJobs&&_.yf(this.rootElement.pageDisposeJobs,O)};
_.v.dispatchEvent=function(O,m){_.iP(this.rootElement,O,m)};
_.v.provideRenderingData=function(O,m){this.rootElement.provideRenderingData(O,m)};
_.v.scrollWatchTo=function(O,m){var G;(G=this.watchScrollManager)==null||G.scrollWatchTo(O,m)};
_.v.focusOnPlayer=function(){var O=this.getElement("PLAYER");_.QA(O,function(){if(O&&O.firstElementChild){var m=O.querySelector(".html5-video-player");m&&(_.Tj(_.KR().resolve(_.pH)),m.focus())}else _.ay(Error("To"))})};
_.v.subscribeToActiveChanged=function(O,m){m=m===void 0?!0:m;var G=_.dc(_.Kf(),_.mP0,function(B){O(B)});
m&&O(_.mP0(_.Kf().getState()));return G};
_.v.isActive=function(){return _.mP0(_.Kf().getState())};
_.v.onAttached=function(){var O=_.V("external_fullscreen");_.V("use_unified_flag_accessor")&&(O=_.KR().resolve(_.jos).retriever.getFlag(_.VE9));(O||_.yE("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var xT5=function(O){return O.getRoot().is==="ytd-watch-flexy"||O.getRoot().is==="ytd-watch-grid"},kw=function(O){return O.getRoot().is==="ytd-watch-fixie"};
_.aY.prototype.initPersistentModules=function(){if(kw(this)||xT5(this)&&_.V("kevlar_watch_flexy_theater_manager")){var O=new _.Uuc(this);_.VV(this,O)}O=new _.BYP(this);_.VV(this,O);O=new _.SN(this);_.VV(this,O);O=new _.AEP(this);_.VV(this,O);O=new _.pI0(this);_.VV(this,O);O=new _.Eq(this);_.VV(this,O);if(kw(this)||xT5(this)&&_.V("kevlar_watch_flexy_playlist_manager"))O=new _.Loa(this),_.VV(this,O);_.V("web_thumbnail_to_watch_transition")&&(O=new iEn(this),_.VV(this,O))};
_.aY.prototype.initOrDisposeActiveModules=function(O){O?(this.watchScrollManager=new _.lV(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Zp9(this)),_.V("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new AvO(this)),this.activeModules.push(new _.Wma(this)),kw(this)&&this.activeModules.push(new RNc(this)),this.activeModules.push(new _.yva(this)),this.activeModules.push(new _.Rtc(this)),(kw(this)||_.V("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.bn0(this)),this.activeModules.push(new _.XI8(this)),(kw(this)||_.V("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.YOG(this)),(kw(this)||_.V("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.Igq(this)),_.V("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Cb9(this),this.activeModules.push(this.watchCinematicManager)),_.V("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.gG5(this)),_.V("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.mIc(this)),O=_.V("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.V("kevlar_watch_flexy_comments_manager")&&!O&&this.activeModules.push(new _.Duc(this)),_.V("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.EBn(this)),this.activeModules.push(new _.nR9(this)),this.activeModules.push(new _.Jv8(this)),_.V("web_enable_timely_actions")&&this.activeModules.push(new _.TIc(this)),_.V("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.Nia(this)),_.V("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.kn5(this)),_.V("web_fullscreen_components")&&this.activeModules.push(new _.h2a(this)),_.V("web_player_rtr_ctrls")&&this.activeModules.push(new _.Fma(this)),_.V("enable_creator_chatbot")&&this.activeModules.push(new Pnq(this))):(_.$a(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.aY.prototype.disposeInternal=function(){_.Yd.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.vr.Object.defineProperties(_.aY.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var yAx,HW,cAK,YwJ,wmo,eyr,d6o,D6y;yAx=function(){var O=_.uP();O.info||(O.info={});return O.info};
HW=function(O){return Math.round(_.SY()+O)};
cAK=function(){var O;if(_.V("csi_use_performance_navigation_timing")){var m,G,B,Q=_.pr==null?void 0:(O=_.pr.getEntriesByType)==null?void 0:(m=O.call(_.pr,"navigation"))==null?void 0:(G=m[0])==null?void 0:(B=G.toJSON)==null?void 0:B.call(G);Q?(Q.requestStart=HW(Q.requestStart),Q.responseEnd=HW(Q.responseEnd),Q.redirectStart=HW(Q.redirectStart),Q.redirectEnd=HW(Q.redirectEnd),Q.domainLookupEnd=HW(Q.domainLookupEnd),Q.connectStart=HW(Q.connectStart),Q.connectEnd=HW(Q.connectEnd),Q.responseStart=HW(Q.responseStart),
Q.secureConnectionStart=HW(Q.secureConnectionStart),Q.domainLookupStart=HW(Q.domainLookupStart),Q.isPerformanceNavigationTiming=!0,O=Q):O=_.pr.timing}else O=_.V("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.pr.timing)):_.pr.timing;return O};
YwJ=function(){if(_.pr.getEntriesByType){var O=_.pr.getEntriesByType("paint");if(O=_.ES(O,function(G){return G.name==="first-paint"}))return HW(O.startTime)}var m;
_.V("csi_use_performance_navigation_timing")?m=_.pr.getEntriesByType("first-paint")[0].startTime:m=_.pr.timing.msFirstPaint;return m?Math.max(0,m):0};
wmo=function(){var O=window.location.protocol,m=_.pr.getEntriesByType("resource");m=_.RE(m,function(G){return G.name.indexOf(O+"//fonts.gstatic.com/s/")===0});
(m=d6o(m,function(G,B){return B.duration>G.duration?B:G}))&&m.startTime>0&&m.responseEnd>0&&(_.EB("wffs",HW(m.startTime)),_.EB("wffe",HW(m.responseEnd)))};
eyr=function(O,m){O=document.querySelector(O);if(!O)return!1;var G="",B=O.nodeName;B==="SCRIPT"?(G=O.src,G||(G=O.getAttribute("data-timing-href"))&&(G=window.location.protocol+G)):B==="LINK"&&(G=O.href);_.Qv(document)&&O.setAttribute("nonce",_.Qv(document));return G?(O=_.pr.getEntriesByName(G))&&O[0]&&(O=O[0],G=_.SY(),_.EB("rsf_"+m,G+Math.round(O.fetchStart)),_.EB("rse_"+m,G+Math.round(O.responseEnd)),O.transferSize!==void 0&&O.transferSize===0)?!0:!1:!1};
_.sLu=function(O,m){_.wi(function(){_.Is("").info.actionType=O;m&&_.a8("TIMING_AFT_KEYS",m);_.a8("TIMING_ACTION",O);var G=_.qoO(_.kB("TIMING_INFO",{}));Object.keys(G).length>0&&_.Lr(G);G={isNavigation:!0,actionType:_.m4M(_.kB("TIMING_ACTION"))};var B=_.kB("PREVIOUS_ACTION");B&&(G.previousAction=_.m4M(B));if(B=_.kB("CLIENT_PROTOCOL"))G.httpProtocol=B;if(B=_.kB("CLIENT_TRANSPORT"))G.transportProtocol=B;(B=_.yA())&&B!=="UNDEFINED_CSN"&&(G.clientScreenNonce=B);B=_.x4f();if(B===1||B===-1)G.isVisible=!0;
B=_.ehp().loadType==="cold";var Q=yAx();B||(B=Q.yt_lt==="cold");if(B){G.loadType="cold";B=yAx();Q=cAK();var H=_.SY(),M=_.kB("CSI_START_TIMESTAMP_MILLIS",0);M>0&&!_.V("embeds_web_enable_csi_start_override_killswitch")&&(H=M);H&&(_.EB("srt",Q.responseStart),B.prerender!==1&&_.vL5(H));B=YwJ();B>0&&_.EB("fpt",B);B=cAK();B.isPerformanceNavigationTiming&&_.Lr({performanceNavigationTiming:!0},void 0);_.EB("nreqs",B.requestStart,void 0);_.EB("nress",B.responseStart,void 0);_.EB("nrese",B.responseEnd,void 0);
B.redirectEnd-B.redirectStart>0&&(_.EB("nrs",B.redirectStart,void 0),_.EB("nre",B.redirectEnd,void 0));B.domainLookupEnd-B.domainLookupStart>0&&(_.EB("ndnss",B.domainLookupStart,void 0),_.EB("ndnse",B.domainLookupEnd,void 0));B.connectEnd-B.connectStart>0&&(_.EB("ntcps",B.connectStart,void 0),_.EB("ntcpe",B.connectEnd,void 0));B.secureConnectionStart>=_.SY()&&B.connectEnd-B.secureConnectionStart>0&&(_.EB("nstcps",B.secureConnectionStart,void 0),_.EB("ntcpe",B.connectEnd,void 0));_.pr&&"getEntriesByType"in
_.pr&&wmo();B=[];if(document.querySelector&&_.pr&&_.pr.getEntriesByName)for(var R in D6y)D6y.hasOwnProperty(R)&&(Q=D6y[R],eyr(R,Q)&&B.push(Q));if(B.length>0)for(G.resourceInfo=[],R=_.K(B),B=R.next();!B.done;B=R.next())G.resourceInfo.push({resourceCache:B.value})}_.Lr(G);G=_.jY();G.preLoggedGelInfos||(G.preLoggedGelInfos=[]);R=G.preLoggedGelInfos;G=_.scf();B=void 0;for(Q=0;Q<R.length;Q++)if(H=R[Q],H.loadType){B=H.loadType;break}if(_.ehp().loadType==="cold"&&(G.loadType==="cold"||B==="cold")){B=_.Dsf();
Q=_.jY();Q=Q.gelTicks?Q.gelTicks:Q.gelTicks={};for(var x in B)if(!(x in Q))if(typeof B[x]==="number")_.EB(x,_.Cr(x));else if(_.V("log_repeated_ytcsi_ticks"))for(H=_.K(B[x]),M=H.next();!M.done;M=H.next())M=M.value,_.EB(x.slice(1),M);x={};B=!1;R=_.K(R);for(Q=R.next();!Q.done;Q=R.next())B=Q.value,_.wK(G,B),_.wK(x,B),B=!0;B&&_.Lr(x)}_.ZGM(!0);x=_.kB("TIMING_ACTION");_.ex("ytglobal.timingready_")&&x&&_.T2N()&&_.WO6()&&_.ReI()})()};
d6o=function(O,m){return Array.prototype.reduce.call(O,m,{duration:0})};
D6y={'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 Npr={};Npr.YtVisibilityRootBehavior=[_.QzH.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Kd(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.kB("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var O=_.kB("INNERTUBE_CLIENT_NAME")!=="WEB";_.V("kevlar_use_vimio_behavior")&&O&&_.QUs()}}];_.vW={};_.vW.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(O){O.detail.contextProvider=this;O.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
Npr.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.m3();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(O){var m=this;this.pageCount+=1;_.V("kevlar_use_vimio_behavior")&&(_.kB("INNERTUBE_CLIENT_NAME")==="WEB"?_.ln.addJob(function(){m.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(O)},
loadPage_:function(O){this.data=O},
ytPageBehaviorActiveObserver_:function(O){var m=this;_.V("kevlar_use_vimio_behavior")&&(O?_.kB("INNERTUBE_CLIENT_NAME")==="WEB"?_.ln.addJob(function(){m.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(O){if(!this.setScrollTopJobId_){var m=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){m.setScrollTopJobId_=0;var G=_.KR().resolve(_.v7(_.pH));G&&_.Tj(G);this.getPageScrollingElement().scrollTop=O}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.l4(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var key;var Qd=function(){var O=_.u.apply(this,arguments)||this;O.playerListenerConfig=null;O.actionMap={"yt-show-watch-page-survey":"openSurvey"};return O};
_.X(Qd,_.u);_.v=Qd.prototype;_.v.dataChanged=function(){var O=this,m=_.M1();m&&m.getPlayerPromise().then(function(B){O.maybeRemovePlayerListeners(B)});
var G=this.data&&this.data.survey;G&&((G=(G=G.singleOptionSurveyRenderer||G.checkboxSurveyRenderer||G.multiStageSurveyRenderer)&&G.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(m,G):this.openSurvey())};
_.v.triggerWatchPageSurvey=function(O,m){var G=this,B,Q,H,M,R,x,t,W,Z;return _.r(function(z){if(z.nextAddress==1)return O?z.yield(O.getPlayerPromise(),2):z.return();G.player=z.yieldResult;if(!G.player)return z.return();B={};Q=_.K(m);for(H=Q.next();!H.done;H=Q.next())M=H.value,R=_.K(G.createEventListenerPair(M)),x=R.next().value,t=R.next().value,W=x,Z=t,W&&Z&&(B[W]=Z,G.ytPlayerListenerBehavior.listenToPlayerEvent(G.player,W,Z));G.playerListenerConfig=B;_.ju(z)})};
_.v.createEventListenerPair=function(O){var m=O.playbackEventTrigger;return m?this.handlePlaybackTrigger(m):(O=O.watchTimeTrigger)?this.handleWatchTimeTrigger(O):[void 0,void 0]};
_.v.handleWatchTimeTrigger=function(O){var m=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var G=O.videoWatchFraction,B=O.watchTimeSec;return B&&G?["onVideoProgress",function(){m.player&&m.isWatchTimeConditionMet(m.player,G,B)&&m.showSurvey()}]:[void 0,
void 0]};
_.v.isWatchTimeConditionMet=function(O,m,G){var B=O.getProgressState(),Q=B.current-this.lastKnownPlaybackPosition;Q<5&&(this.accumulatedMediaTime+=Q);this.lastKnownPlaybackPosition=B.current;B=Math.round(this.accumulatedMediaTime/B.duration*1E3)/1E3;return O.getPresentingPlayerType&&O.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>G||B>m)};
_.v.handlePlaybackTrigger=function(O){var m=this;O=O.playbackEvent;if(O==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var G="onStateChange";var B=function(Q){Q===0&&m.showSurvey()}}else O==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(G="onVideoProgress",B=function(Q){m.player&&m.player.getPresentingPlayerType&&m.player.getPresentingPlayerType()===1&&Q&&m.showSurvey()}):O==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(G="onAdEnd",B=this.showSurvey);
return[G,B]};
_.v.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.v.openSurvey=function(){var O=this,m=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.L9y(!!m));_.ln.addJob(function(){O.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:m}})},0,0)};
_.v.maybeRemovePlayerListeners=function(O){if(this.playerListenerConfig){for(var m=_.K(Object.keys(this.playerListenerConfig)),G=m.next();!G.done;G=m.next())G=G.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(O,G,this.playerListenerConfig[G]);this.playerListenerConfig=null}};
Qd.prototype.dataChanged=Qd.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],Qd.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",_.Vw)],Qd.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Qd.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h(_.MK),_.Y("design:type",Object)],Qd.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Qd.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Qd.prototype,"playerListenerConfig",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],Qd.prototype,"lastKnownPlaybackPosition",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],Qd.prototype,"accumulatedMediaTime",void 0);_.c([_.g(),_.Y("design:type",Object)],Qd.prototype,"player",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Qd.prototype,"dataChanged",null);_.c([_.l({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Qd);
_.y(Qd,"ytd-survey-trigger-renderer",function(){if(key!==void 0)return key;var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return key=O},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Cy8=new _.q$("promotedSparklesWebRenderer");var ohc=new _.q$("relatedChipCommand");var lxO;var axO;var pu=function(){return _.u.apply(this,arguments)||this};
_.X(pu,_.u);pu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],pu.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],pu);
_.y(pu,"ytd-compact-tvfilm-entry-point-renderer",function(){if(axO!==void 0)return axO;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return axO=O},{mode:1});var kuG;var ysG;var cs5;var SW=function(){return _.u.apply(this,arguments)||this};
_.X(SW,_.u);SW.prototype.ready=function(){this.initializeDefs()};
SW.prototype.initializeDefs=function(){var O=this.meta.byKey("yt-icons"),m=_.ZO(O).querySelector("#star"),G=_.ZO(O).querySelector("#star_half");O=_.ZO(O).querySelector("#star_border");m&&this.defs.appendChild(m.cloneNode(!0));G&&this.defs.appendChild(G.cloneNode(!0));O&&this.defs.appendChild(O.cloneNode(!0))};
SW.prototype.percentChanged=function(){for(var O=this.rating;O.firstChild;)O.removeChild(O.firstChild);var m=Math.round(this.percent/10);O=Math.floor(m/2);m%=2;var G=5-O-m;this.appendStars("star",O,0);this.appendStars("star_half",m,O);this.appendStars("star_border",G,O+m)};
SW.prototype.appendStars=function(O,m,G){for(var B=0;B<m;B++){var Q=(18+this.spacing)*(B+G),H=document.createElementNS("http://www.w3.org/2000/svg","use");_.AN3(H,"#"+O);H.setAttribute("x",""+Q);H.setAttribute("y","0");this.rating.appendChild(H)}};
SW.prototype.percentChanged=SW.prototype.percentChanged;_.c([_.uc("#defs"),_.Y("design:type",HTMLElement)],SW.prototype,"defs",void 0);_.c([_.uc("#rating"),_.Y("design:type",HTMLElement)],SW.prototype,"rating",void 0);_.c([_.g(),_.Y("design:type",Number)],SW.prototype,"percent",void 0);_.c([_.g({value:6}),_.Y("design:type",Number)],SW.prototype,"spacing",void 0);_.c([_.g({value:_.ac.create("iron-meta",{type:"iconset"})}),_.Y("design:type",_.YL)],SW.prototype,"meta",void 0);
_.c([_.Tw("percent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],SW.prototype,"percentChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-ratings"})],SW);
_.y(SW,"ytd-ratings",function(){if(cs5!==void 0)return cs5;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return cs5=O},{mode:1});var Y9a=function(){return _.u.apply(this,arguments)||this};
_.X(Y9a,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Y9a.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Y9a.prototype,"data",void 0);_.c([_.l({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Y9a);
_.y(Y9a,"ytd-offer-review-renderer",function(){if(ysG!==void 0)return ysG;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ysG=O},{mode:1});var ET=function(){var O=_.u.apply(this,arguments)||this;O.badges=[{textBadge:{label:_.Qg("CC")}}];return O};
_.X(ET,_.u);_.v=ET.prototype;_.v.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.v.dataChanged=function(){var O=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(O&&O.commandMetadata&&_.b(O.commandMetadata,_.dT)&&_.b(O.commandMetadata,_.dT).fireAutomatically)_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}});else{var m;O&&((m=_.b(O,_.dT))==null?0:m.fireAutomatically)&&_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}})}};
_.v.isEmptyContent=function(O){return this.isStorefrontEntryPointEmpty(O)&&this.shouldHideOfferModule(O)};
_.v.isStorefrontEntryPointEmpty=function(O){return!O||!O.storefrontEntryPoint};
_.v.shouldHideOfferModule=function(O){return!!O.hideVideoDetails};
_.v.isOfferModuleNavigationInactive=function(O){return!O.navigationEndpoint&&!O.serviceEndpoint};
_.v.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.KR().resolve(_.Mu).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
ET.prototype.dataChanged=ET.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ET.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ET.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ET.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.Y("design:type",Boolean)],ET.prototype,"hidden",void 0);
_.c([_.g(),_.Y("design:type",Object)],ET.prototype,"badges",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ET.prototype,"dataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],ET);
_.y(ET,"ytd-movie-offer-module-renderer",function(){if(kuG!==void 0)return kuG;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return kuG=O},{mode:1});var dJA;var wba=function(){return _.u.apply(this,arguments)||this};
_.X(wba,_.u);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],wba.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],wba.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],wba);
_.y(wba,"ytd-media-masthead-renderer",function(){if(dJA!==void 0)return dJA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return dJA=O},{mode:1});var e0n;_.qi(_.IXH,"course-metadata-view-model",{props:{data:_.RZ,isOverlay:_.RZ}});var Lu=function(){var O=_.u.apply(this,arguments)||this;O.isMetadataVisible=!1;O.modernPanels=_.V("kevlar_watch_modern_panels");O.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return O};
_.X(Lu,_.u);_.v=Lu.prototype;
_.v.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"}}}}};
_.v.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.v.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.v.expanderChanged=function(){var O;if((O=this.data)==null?0:O.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.v.isExpandButtonToggled=function(){var O,m;return(m=_.b((O=this.data)==null?void 0:O.expandMetadataButton,_.iR))==null?void 0:m.isToggled};
_.v.onVisibilityButtonClick=function(){var O;if((O=this.data)==null?0:O.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.v.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Lu.prototype.expanderChanged=Lu.prototype.expanderChanged;Lu.prototype.dataChanged=Lu.prototype.dataChanged;Lu.prototype.descriptionChanged=Lu.prototype.descriptionChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Lu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h([_.cg.YtActionHandlerBehavior]),_.Y("design:type",Object)],Lu.prototype,"actionHandlerBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],Lu.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Lu.prototype,"isMetadataVisible",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Lu.prototype,"modernPanels",void 0);_.c([_.uc("#expander"),_.Y("design:type",Object)],Lu.prototype,"expander",void 0);_.c([_.Tw("data.description"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lu.prototype,"descriptionChanged",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lu.prototype,"dataChanged",null);_.c([_.Tw("isMetadataVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Lu.prototype,"expanderChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Lu);
_.y(Lu,"ytd-tvfilm-offer-module-renderer",function(){if(e0n!==void 0)return e0n;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return e0n=O},{mode:2});var DJh;var Cu=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return O};
_.X(Cu,_.u);Cu.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Cu.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Cu.prototype.onThumbnailTap=function(O){this.data&&this.data.serviceEndpoint&&(_.KR().resolve(_.Mu).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),O.stopPropagation())};
Cu.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Cu.prototype.dataChanged=Cu.prototype.dataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Cu.prototype,"rendererBehaviors",void 0);_.c([_.h([_.cg.YtActionHandlerBehavior]),_.Y("design:type",Object)],Cu.prototype,"actionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Cu.prototype,"data",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Cu.prototype,"dataChanged",null);_.c([_.l({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Cu);
_.y(Cu,"ytd-unlimited-offer-module-renderer",function(){if(DJh!==void 0)return DJh;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return DJh=O},{mode:1});var s39;var Non;var om=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return O};
_.X(om,_.u);om.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
om.prototype.handleRelatedChipCommand=function(O){O=_.b(O,ohc);var m=O.contents;m?_.UB(this.hostElement,"yt-item-section-replace-action",[m,O.targetSectionIdentifier]):_.UB(this.hostElement,"yt-item-section-continuation-action",[O.continuationData,O.targetSectionIdentifier])};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],om.prototype,"actionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],om.prototype,"data",void 0);_.c([_.DO({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],om);
_.y(om,"yt-related-chip-cloud-renderer",function(){if(Non===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;s39===void 0&&(s39=document.createElement("template"));var B=s39;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Non=O}O=Non;return O},{mode:2});var lI=function(){var O=_.u.apply(this,arguments)||this;O.isTwoColumns=!0;O.watchFeedBigThumbs=_.V("kevlar_watch_feed_big_thumbs");O.watchFeedBigThumbsOnLockup=_.V("web_watch_next_big_thumbs");O.watchNextGridHideChips=_.V("kevlar_watch_grid_hide_chips");O.eligibleToSwitchToGrid=_.V("web_watch_eligible_to_switch_to_grid");O.disableShortsShelfHeightOverride=_.V("web_shorts_wn_shelf_ratio_tuning");O.isWatchNextGrid=!1;O.reuseComponents=!_.V("kevlar_watch_grid");O.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",
contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return O};
_.X(lI,_.u);_.v=lI.prototype;
_.v.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:!_.V("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}}};
_.v.getItemsPath=function(){return"data.results"};
_.v.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.v.created=function(){this.ytLazyListBehavior.initialCount=1};
_.v.ready=function(){_.n7(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%"})};
_.v.resultsChanged=function(){if(this.data&&this.data.results){for(var O=this.data.results,m=null,G=null,B=0;B<O.length;B++)O[B].relatedChipCloudRenderer?m=O[B].relatedChipCloudRenderer:O[B].itemSectionRenderer&&(G=O[B].itemSectionRenderer);if(m&&G)for(this.set("data.continuations",[]),O=_.b(m.content,_.jSs).chips,m=0;m<O.length;m++)if(B=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",O[m]),B.loadCached||!B.contents){B.contents=G.contents;break}}};
_.v.dataChanged=function(){var O=this,m;if((m=this.data)!=null&&m.results&&this.hasAllowedInstreamAd(this.playerData)){if(m=this.data.results.filter(function(R){return!!R.promotedSparklesWebRenderer})){for(var G=0;G<m.length;G++){var B=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",m[G]);
if(B)for(var Q=0;Q<B.length;Q++)B[Q]&&B[Q].baseUrl&&_.sO(B[Q].baseUrl)}this.set("data.results",this.data.results.filter(function(R){return!R.promotedSparklesWebRenderer}))}if(m=this.data.results.filter(function(R){return!!O.getSparklesAd(R)})){m=_.K(m);
for(Q=m.next();!Q.done;Q=m.next())if(B=G=void 0,Q=(G=this.getSparklesAd(Q.value))==null?void 0:(B=G.errorCommand)==null?void 0:B.loggingUrls)for(G=_.K(Q),B=G.next();!B.done;B=G.next())(B=B.value)&&B.baseUrl&&_.sO(B.baseUrl);var H,M;this.set("data.results",(H=this.data)==null?void 0:(M=H.results)==null?void 0:M.filter(function(R){return!R.adSlotRenderer}))}}};
_.v.getSparklesAd=function(O){var m,G;O=_.b((m=O.adSlotRenderer)==null?void 0:(G=m.fulfillmentContent)==null?void 0:G.fulfilledLayout,_.$vH);return _.b(O==null?void 0:O.renderingContent,Cy8)};
_.v.hasAllowedInstreamAd=function(O){O=this.get("adPlacements",O)||[];for(var m=0;m<O.length;m++){var G=this.get("adPlacementRenderer.config.adPlacementConfig",O[m]);if(G&&G.suppressDisplayAd)return!0}return!1};
_.v.computeHideUnlimitedOfferModule=function(O,m){return O&&O.offerModule&&m&&O.offerModule.unlimitedOfferModuleRenderer&&O.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(m)?!0:!1};
_.v.hideUnlimitedOfferModuleChanged=function(){var O=_.ZO(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");O&&(O.hidden=this.hideUnlimitedOfferModule)};
_.v.updateLockupContainerTypes=function(O){if(this.eligibleToSwitchToGrid){var m;(m=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||m.forEach(function(G){G.containerType=O})}};
_.v.computeHideTvfilmOfferModule=function(O,m){var G,B;return!!((O==null?0:(G=O.offerModule)==null?0:(B=G.tvfilmOfferModuleRenderer)==null?0:B.clientShouldSuppressIfCompanionAdDisplayed)&&m&&this.hasCompanionAds(m))};
_.v.hideTvfilmOfferModuleChanged=function(){var O=_.ZO(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");O&&(O.hidden=this.hideTvfilmOfferModule)};
_.v.hasCompanionAds=function(O){O=this.get("adPlacements",O)||[];for(var m=0;m<O.length;m++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",O[m]))return!0;var G=void 0,B=void 0,Q=void 0;if(!_.V("web_watch_top_banner_companion_check_killswitch")&&((G=O[m])==null?0:(B=G.adPlacementRenderer)==null?0:(Q=B.renderer)==null?0:Q.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.v.hasSuppressedResults=function(O){return O==null?!0:O.filter(function(m){return!m.continuationItemRenderer&&!m.compactPromotedVideoRenderer&&!m.promotedSparklesWebRenderer}).length===0};
_.v.computeShowButton=function(O,m){return this.isWatchNextGrid?O:O||this.hasSuppressedResults(m)};
_.v.showButtonChanged=function(){if(this.isWatchNextGrid){var O=_.ZO(this.hostElement).querySelector("ytd-rich-grid-renderer");O&&this.showButton!==null&&(O.continuationShowButton=this.showButton)}else{O=_.ZO(this.hostElement).querySelector("yt-next-continuation");var m=_.ZO(this.hostElement).querySelector("ytd-continuation-item-renderer"),G=_.ZO(this.hostElement).querySelector("ytd-item-section-renderer");O&&(O.showButton=this.showButton);m&&(m.showButton=this.showButton);G&&(G.continuationShowButton=
this.showButton)}};
_.v.continuationTap=function(O){var m;if(((m=this.data)==null?void 0:m.continuations)!=null&&O.target.tagName==="TP-YT-PAPER-BUTTON")for(O=this.data.continuations,m=0;m<O.length;m++)O[m].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(O[m].nextContinuationData||{})};
_.v.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("shown-items-changed",this.shownItems))};
_.vr.Object.defineProperties(lI.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 O;return!((O=this.shownItems)==null||!O.some(function(m){return!!m.lockupViewModel||m.compactVideoRenderer}))}}});
lI.prototype.shownItemsChangedForBinding=lI.prototype.shownItemsChangedForBinding;lI.prototype.showButtonChanged=lI.prototype.showButtonChanged;lI.prototype.hideTvfilmOfferModuleChanged=lI.prototype.hideTvfilmOfferModuleChanged;lI.prototype.updateLockupContainerTypes=lI.prototype.updateLockupContainerTypes;lI.prototype.hideUnlimitedOfferModuleChanged=lI.prototype.hideUnlimitedOfferModuleChanged;lI.prototype.dataChanged=lI.prototype.dataChanged;lI.prototype.resultsChanged=lI.prototype.resultsChanged;
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.jQ.YtLazyListBehavior),_.Y("design:type",Object)],lI.prototype,"ytLazyListBehavior",void 0);_.c([_.h(_.Z8.YtNextContinuationBehavior),_.Y("design:type",Object)],lI.prototype,"ytNextContinuationBehavior",void 0);
_.c([_.h(_.Ww),_.Y("design:type",Object)],lI.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],lI.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],lI.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],lI.prototype,"playerData",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],lI.prototype,"autoFill",void 0);_.c([_.g({value:60}),_.Y("design:type",Number)],lI.prototype,"targetFramerate",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],lI.prototype,"isTwoColumns",void 0);_.c([_.g(),_.Y("design:type",Object)],lI.prototype,"shownItems",void 0);_.c([_.g({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.Y("design:type",Boolean)],lI.prototype,"hideUnlimitedOfferModule",void 0);_.c([_.g({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.Y("design:type",Boolean)],lI.prototype,"hideTvfilmOfferModule",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],lI.prototype,"watchFeedBigThumbs",void 0);_.c([_.g(),_.Y("design:type",Object)],lI.prototype,"watchFeedBigThumbsOnLockup",void 0);_.c([_.g(),_.Y("design:type",Object)],lI.prototype,"watchNextGridHideChips",void 0);_.c([_.g(),_.Y("design:type",Object)],lI.prototype,"eligibleToSwitchToGrid",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],lI.prototype,"disableShortsShelfHeightOverride",void 0);
_.c([_.g({selector:_.dg,reflectToAttribute:!0}),_.Y("design:type",Object)],lI.prototype,"isGridViewEnabled",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],lI.prototype,"showMoreButton",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],lI.prototype,"isWatchNextGrid",void 0);_.c([_.g({computed:"computeShowButton(showMoreButton, data.results)"}),_.Y("design:type",Boolean)],lI.prototype,"showButton",void 0);
_.c([_.Si("data.results.*"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lI.prototype,"resultsChanged",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lI.prototype,"dataChanged",null);_.c([_.Tw("hideUnlimitedOfferModule"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lI.prototype,"hideUnlimitedOfferModuleChanged",null);
_.c([_.T("isGridViewEnabled","containsLockups","data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Number),_.Y("design:paramtypes",[])],lI.prototype,"lockupContainerType",null);_.c([_.Tw("lockupContainerType","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[Number]),_.Y("design:returntype")],lI.prototype,"updateLockupContainerTypes",null);
_.c([_.Tw("hideTvfilmOfferModule"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lI.prototype,"hideTvfilmOfferModuleChanged",null);_.c([_.Tw("showButton"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lI.prototype,"showButtonChanged",null);_.c([_.Tw("shownItems"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lI.prototype,"shownItemsChangedForBinding",null);
_.c([_.T("shownItems"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],lI.prototype,"containsLockups",null);
_.y(lI,"ytd-watch-next-secondary-results-renderer",function(){if(lxO===void 0){var O=document.createElement("template");_.f(O,'\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" 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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);lxO=O}O=lxO;return O},{mode:1});
}catch(e){_._DumpException(e)}
try{
var uob=new _.q$("replaceFeedContentAction");var jLr;var I7h;var pmr=function(){return _.u.apply(this,arguments)||this};
_.X(pmr,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],pmr.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],pmr.prototype,"data",void 0);_.c([_.l({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],pmr);
_.y(pmr,"ytd-sub-feed-option-renderer",function(){if(I7h!==void 0)return I7h;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return I7h=O},{mode:1});var Swr;var PQ=function(){return _.u.apply(this,arguments)||this};
_.X(PQ,_.u);PQ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],PQ.prototype,"ytRendererStamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],PQ.prototype,"data",void 0);_.c([_.l({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],PQ);
_.y(PQ,"ytd-sub-feed-selector-renderer",function(){if(Swr!==void 0)return Swr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Swr=O},{mode:1});var Fa=function(){return _.u.apply(this,arguments)||this};
_.X(Fa,_.u);
Fa.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Fa.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Fa.prototype,"data",void 0);_.c([_.l({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Fa);
_.y(Fa,"ytd-browse-feed-actions-renderer",function(){if(jLr!==void 0)return jLr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return jLr=O},{mode:1});var EYx;var LhB;var A6=function(){return _.u.apply(this,arguments)||this};
_.X(A6,_.u);A6.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],A6.prototype,"data",void 0);_.c([_.l({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],A6);
_.y(A6,"ytd-mini-channel-renderer",function(){if(LhB!==void 0)return LhB;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return LhB=O},{mode:1});var Cvy;var OP=function(){return _.u.apply(this,arguments)||this};
_.X(OP,_.u);OP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],OP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],OP.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],OP);
_.y(OP,"ytd-vertical-channel-section-renderer",function(){if(Cvy!==void 0)return Cvy;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Cvy=O},{mode:1});var mB=function(){return _.u.apply(this,arguments)||this};
_.X(mB,_.u);mB.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mB.prototype,"data",void 0);_.c([_.l({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],mB);
_.y(mB,"ytd-browse-secondary-contents-renderer",function(){if(EYx!==void 0)return EYx;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
return EYx=O},{mode:1});var oY0;var Gs=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};O.notActive=!1;O.isConstrainedList=!1;return O};
_.X(Gs,_.u);_.v=Gs.prototype;
_.v.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(O){var m;return(O==null?void 0:(m=O.webComponentHint)==null?void 0:m.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}}}}};
_.v.getPath=function(O,m){var G="data.tabs.#"+m+".";O.tabs[m].tabRenderer?G+="tabRenderer.":O.tabs[m].expandableTabRenderer&&(G+="expandableTabRenderer.");return G+"content.sectionListRenderer"};
_.v.computeDisplayedContent=function(O){this.unlinkPaths("content");if(O&&O.tabs)for(var m=O.tabs.length,G=0;G<m;G++){var B=O.tabs[G].tabRenderer||O.tabs[G].expandableTabRenderer;if(B.selected&&B.content)return this.linkPaths("content",this.getPath(O,G)),B.content}return null};
_.v.computeHasSecondaryColumnData=function(O){return!!O&&!!O.secondaryContents};
_.v.onRetrieveLocation=function(O,m){m.locationRetrieved(m.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);O.stopPropagation()};
_.v.onYtServiceRequestSent=function(O,m){_.V("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(m)};
_.v.onYtServiceRequestCompleted=function(O,m){_.V("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(m)};
_.v.onReplaceFeedContentAction=function(O){if(!_.V("replace_feed_content_action_killswitch")&&!this.notActive){var m;(O=(m=_.b(O,uob))==null?void 0:m.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(O)}};
_.v.handleServiceRequestActions=function(O){if(O=O.actions){O=_.K(O);for(var m=O.next();!m.done;m=O.next()){m=m.value;var G=void 0;((G=_.b(m,uob))==null?0:G.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.b(m,uob).items)}}};
Gs.prototype.onYtServiceRequestCompleted=Gs.prototype.onYtServiceRequestCompleted;Gs.prototype.onYtServiceRequestSent=Gs.prototype.onYtServiceRequestSent;Gs.prototype.onRetrieveLocation=Gs.prototype.onRetrieveLocation;_.c([_.h(_.xm),_.Y("design:type",Object)],Gs.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Gs.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Gs.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Gs.prototype,"data",void 0);_.c([_.g({computed:"computeDisplayedContent(data)"}),_.Y("design:type",Object)],Gs.prototype,"content",void 0);
_.c([_.g({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Gs.prototype,"hasSecondaryColumnData",void 0);_.c([_.g({value:function(){return window.outerHeight>1024?3:2}}),
_.Y("design:type",Number)],Gs.prototype,"initialCount",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],Gs.prototype,"pageSubtype",void 0);_.c([_.uc("ytd-section-list-renderer"),_.Y("design:type",Object)],Gs.prototype,"listRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],Gs.prototype,"notActive",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Gs.prototype,"isConstrainedList",void 0);
_.c([_.g(),_.Y("design:type",String)],Gs.prototype,"responsiveSizing",void 0);_.c([_.hG("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Gs.prototype,"onRetrieveLocation",null);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],Gs.prototype,"onYtServiceRequestSent",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],Gs.prototype,"onYtServiceRequestCompleted",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Gs);
_.y(Gs,"ytd-two-column-browse-results-renderer",function(){if(oY0!==void 0)return oY0;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return oY0=O},{mode:2});
}catch(e){_._DumpException(e)}
try{
var OIO=function(O){if((O==null?void 0:O.value)===void 0||O==null||!O.unit)return"initial";a:{switch(O.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var m="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":m="%";break a}m=void 0}return m?""+O.value+m:"initial"};_.qi(_.a(function(O){var m=_.ru(O,{}).data,G=function(){var B;return((B=m().image)==null?void 0:B.height)||40};
return _.q("yt-shopping-timely-shelf-content-view-model",{el:_.Mi(_.yp(function(){var B;return(B=m())==null?void 0:B.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.bE("ytShoppingTimelyShelfContentViewModelHost"),style:_.hH({"--shopping-timely-shelf-content-padding-top":function(){var B;return OIO((B=m().padding)==null?void 0:B.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var B;return OIO((B=m().padding)==null?void 0:B.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var B;return OIO((B=m().padding)==null?void 0:B.start)},
"--shopping-timely-shelf-content-padding-end":function(){var B;return OIO((B=m().padding)==null?void 0:B.end)},
"--yt-shopping-timely-shelf-background-color":function(){return m().backgroundColor!==void 0?_.AV(m().backgroundColor):"initial"}})},_.q(_.U,{cond:function(){var B;
return(B=m().image)==null?void 0:B.image},
then:function(B){return _.q(_.KH,{preserveHeight:!0,preserveWidth:!0,height:G,data:B,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.q(_.u5,{data:function(){return m().avatar}},{avatarViewModel:_.HP}),_.q("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.q(_.u5,{data:function(){return m().line1}},{shoppingContentLineViewModel:function(B){return _.q(_.U4,{data:B.data})}}),_.q(_.u5,{data:function(){return m().line2}},{shoppingContentLineViewModel:function(B){return _.q(_.U4,
{data:B.data})}})),_.q("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.q(_.gi,{each:function(){var B;
return(B=m().button)!=null?B:[]}},function(B){return _.q(_.u5,{data:function(){return B}},{buttonViewModel:_.oF})})))},"tl"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.VZ}});_.mDc={};
_.mDc.YtdWatchBehavior=[_.N.YtRendererBehavior,_.Jh.YtPlayerListenerBehavior,_.j1.YtRendererstamperBehavior,_.cg.YtActionHandlerBehavior,_.vW.YtPageBehavior,_.yZ.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 _.yE("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.V("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 _.yE("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_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,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 _.V("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.V("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 _.Rd("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Rd("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)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.V("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("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 _.V("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.V("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.V("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("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 _.V("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("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 _.V("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var O={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:_.VH(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.VH(["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"||_.V("swa_prov_panels_ks")?O.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(O.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},O.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return O},
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 O=this;this.watchController=void 0;this.pageDisposeJobs=[function(){O.showMetadataPlaceholder_()},
function(){_.V("web_watch_dont_clear_comments")||O.clearComments_()},
function(){O.clearPlayerAds_()},
function(){O.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;_.V("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.V("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.aba(function(){return _.$i(O)},this.hostElement);
this.pageDisposeJobs.push(function(){O.youThereManager_.reset()});
_.V("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){O.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.he;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;_.V("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));_.V("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.f7(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(O){O&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:O}),O.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(O){_.V("kevlar_watch_flexy_theater_manager")&&(this.theater=O,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(O){!_.V("kevlar_watch_while_v2")&&!_.V("web_watch_pip")||O||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(O){this.active!==void 0&&(this.fullscreen=O,_.V("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(O){this.active!==void 0&&(_.iP(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.V("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(O>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(O){this.initCsi_();this.updatePageData_(O)},
updatePageData_:function(O){var m=this;if(O)if(this.data===O){this.onPageLoadWithSameData_();var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data)}else this.data=O;this.playlist&&_.as({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.cd("nw");this.loading=!1;_.uT(_.ln,function(){m.initDclkstatus_();var B,Q=((B=m.player)==null?void 0:B.getVideoData().cpn)||"";_.XHh(function(H,M){_.YFK(H,M,Q)})})},
onPageLoadWithSameData_:function(){_.V("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 O=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!O);this.set("loadingData.playlistLoading",O&&O!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),O=this.watchNextSkeletonEl_.firstElementChild;O;)O.classList.remove("hidden"),O=O.nextElementSibling;if(_.V("kevlar_watch_frame0_loading_state")){var m,G,B;O=(m=this.loadingData)==null?void 0:(G=m.endpoint)==null?void 0:(B=G.watchEndpoint)==null?void 0:B.videoId;var Q;O&&(Q="https://i.ytimg.com/vi/"+O+"/frame0.jpg");_.ZO(this.hostElement).querySelector("#player").style.backgroundImage=Q?"url("+Q+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var O=_.ZO(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&O&&(O.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var m,G;(G=(m=this.watchMetadata).updateSentimentBarWidth)==
null||G.call(m);var B,Q;(Q=(B=this.watchMetadata).resize)==null||Q.call(B)}_.V("kevlar_watch_frame0_loading_state")&&(_.ZO(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(O){var m=_.ZO(this.hostElement).querySelector(O);m?_.rr(m,!1):_.ay(new _.j9("Overscroll monitor not found for component: ",O))},
removeSplitScrollMouseTrap:function(O){var m=_.ZO(this.hostElement).querySelector(O);m?_.Rs(m):_.ay(new _.j9("Disposal component for  overscroll monitoring not found: ",O))},
onLoadingChanged_:function(O){O?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.V("web_thumbnail_to_watch_transition")&&!_.AYy||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.V("web_thumbnail_to_watch_transition")&&!_.AYy||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(O){var m=this;O?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ln.addLowPriorityJob(function(){m.onWindowResized_(_.Ih(!0))})},
updateTheaterModeState_:function(O){if(!_.V("kevlar_watch_flexy_theater_manager")){O=O||this.fullWindowMode_;if(this.theater!==void 0||O)this.theater=O;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();O&&_.H9n()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var O=this.fullBleedPlayer?_.ZO(this.hostElement).querySelector("#player-full-bleed-container"):_.ZO(this.hostElement).querySelector("#player-container-inner");var m=this.getPlayerContainer(),G=_.V("kevlar_watch_while_v2")||_.V("web_watch_pip");m.parentElement!==O&&(G&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.$i(this).appendTo(O,m))},
updateErrorScreenLocation:function(){var O=_.ZO(this.hostElement).querySelector("#error-screen"),m=this.fullBleedPlayer?_.ZO(this.hostElement).querySelector("#player-full-bleed-container"):_.ZO(this.hostElement).querySelector("#player");O.parentElement!==m&&m.appendChild(O)},
deactivateMiniplayerAndResetPlayer:function(){var O=this;return _.r(function(m){if(m.nextAddress==1)return m.yield(_.KR().resolve(_.c$).deactivate(),2);O.updatePlayerLocation();_.ju(m)})},
updateCinematicsLocation:function(){var O=this.getElement("CINEMATICS");if(O){var m=this.getCinematicsLocationContainer();O.parentElement!==m&&m.appendChild(O)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.ZO(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ZO(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(O,m,G){var B=document.documentElement.hasAttribute("dark"),Q=B&&_.V("web_cinematic_theater_mode"),H=B&&_.V("web_cinematic_fullscreen");B=!B&&this.cinematicLightTheme;return G||O&&Q||m&&H||(m||O)&&B},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var O=this,m;(m=this.watchController)==null||m.setWatchNextResponse(this.data);_.V("kevlar_watch_flexy_comments_manager")||this.initComments_();_.V("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.KR().resolve(_.Rt).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,_.V("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.ln.addLowPriorityJob(function(){_.UB(O.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.V("web_watch_start_chat_in_theater_mode")){var G,B,Q;if((G=this.data)==null?0:(B=G.contents)==null?0:(Q=B.twoColumnWatchNextResults)==null?0:Q.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var H,M;((H=this.data)==null?0:(M=H.contents)==null?0:M.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(O){var m;(m=this.watchController)==null||m.setPlayerResponse(this.playerData);O&&O.playabilityStatus&&(m=this.isVideoPlayable_(O.playabilityStatus,this.getPlayerOverlays_(this.data)),O=this.isLiveStreamOffline_(O.playabilityStatus),m&&!O||_.QA(this,function(){_.cd("pbu")}));
this.setPlayerAds_();_.UB(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(O,m){if((_.V("kevlar_watch_while_v2")||_.V("web_watch_pip"))&&this.playerData&&m)return this.playerData.videoDetails},
watchPageActiveChanged_:function(O){_.Kf().dispatch(_.DIq(this.active));O?this.activate_():this.deactivate_()},
attached:function(){var O=this;this.watchController=new _.aY(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);_.V("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var m=_.$i(this);_.V("kevlar_disable_prepare_player")||
m.preparePlayer();_.V("kevlar_watch_flexy_playlist_manager")||_.KR().resolve(_.Rt).setPlayer(m);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();m={"--ytd-watch-flexy-scrollbar-width":_.Zu()+"px"};this.is==="ytd-watch-grid"&&(m["--ytd-watch-flexy-sidebar-width"]=_.dG9+"px",m["--ytd-watch-grid-horizontal-page-margins"]=_.dz+"px",m["--ytd-watch-grid-columns-top-margins"]=_.yXo+"px",m["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Rd("kv_pl_mx_sz_ks")&&
_.Rd("kevlar_watch_max_player_width")&&(m["--ytd-watch-flexy-max-player-width-wide-screen"]=_.wi0+"px");_.Rd("kevlar_watch_flexy_metadata_height")&&(m["--ytd-watch-flexy-space-below-player"]=_.eqq+"px");this.safeUpdateStyles(m);_.V("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.ze(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return O.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.ZO(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var O=_.Zu(),m=_.wz+O,G=m;this.fixedPanels&&(m+=_.dG9);var B=657+O;O=1327+O;_.ZO(this.hostElement).querySelector("#two-column-query").query="(min-width: "+m+"px)";_.ZO(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(B+"px), (min-height: 630px) and (min-width: ")+(m+"px) and (max-width: ")+(O+"px)");_.ZO(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(O+"px)");
_.ZO(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+G+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var O=_.ZO(this.hostElement).querySelector("#miniplayer-bar").firstChild,m=this.squeezeback&&!_.V("web_watch_squeezeback_player_size_killswitch");return O&&O.active||this.theater||_.V("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||m||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.hY(NaN,NaN):_.ugo(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.ugo(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Kd(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var O=this;this.onWindowResized_(_.Ih());_.V("browse_skeleton_removal_on_watch_killswitch")||_.yE("IS_SHELL_LOAD")&&_.a7B();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var m=_.$i(this);m.addEventListener("yt-player-updated",_.f7(this,this.onPlayerUpdated_));m.getPlayerPromise().then(function(G){O.playerApiReady_(G)});
_.V("kevlar_watch_flexy_playlist_manager")||(m=_.KR().resolve(_.Rt),_.V("kevlar_watch_observe_playlist_navigations_killswitch")&&m.addEventListener("yt-navigate",_.f7(this,this.onYtNavigate_)),m.setPlaylistComponent(_.ZO(this.hostElement).querySelector("#playlist")),m.addEventListener("yt-playlist-data-updated",_.f7(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ln.addLowPriorityJob(function(){_.iP(O.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.$i(this).removeEventListener("yt-player-updated",_.f7(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.V("kevlar_watch_flexy_playlist_manager")){var O=_.KR().resolve(_.Rt);_.V("kevlar_watch_observe_playlist_navigations_killswitch")&&O.removeEventListener("yt-navigate",_.f7(this,this.onYtNavigate_));
O.cancelVideoSkip();O.removeEventListener("yt-playlist-data-updated",_.f7(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.iP(this.hostElement,"yt-autonav-pause-player",!1);O=_.$c();_.V("kevlar_exit_fullscreen_leaving_watch")&&O&&_.MC(O)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(O){this.player&&this.player.updateVideoData({rvs:O.rvs})},
getPageContents:function(O){return O&&O.contents&&O.contents.twoColumnWatchNextResults&&O.contents.twoColumnWatchNextResults.results&&O.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(O){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",O)},
onRetrieveLocation_:function(O,m){m.hasComments?m.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):m.locationRetrieved("/related_ajax",void 0);O.stopPropagation()},
onSubscriptionChanged_:function(O,m){this.player&&(m?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.sLu("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ZO(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ZO(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(O){this.player=O;this.setPlayerState(O.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.V("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.V("kevlar_unified_player")||_.V("kevlar_player_new_bootstrap_adoption"))&&_.el()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(O,m){m=m===void 0?!0:m;_.$c()&&_.V("external_fullscreen")&&_.MC(document.documentElement);this.theaterRequested_=O;m&&_.hE("wide",O?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.xc(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.iP(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(O){_.kt(O,typeof this.player),this.player&&_.kt(O,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var O;((O=this.player)==null?0:O.isFullscreen())?this.player.toggleFullscreen():_.xc(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(O,m){return this.loading?m:!!Object.keys(O).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(O){if(O){O=_.K(O);for(var m=O.next();!m.done;m=O.next())m=m.value,m.youThereRenderer&&_.clO(this.youThereManager_,m.youThereRenderer)}},
setPlaylistData_:function(O){return O||{}},
userEngagementConfigDataChanged_:function(O){if(O)if(O.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var m=this.youThereManager_;_.MT()<O.lowEngagementThresholdMs||_.eN9(m,!0)}else O.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.xc(this.hostElement,"yt-autonav-pause-user-engagement",[O])},
isPlayerUnavailable_:function(O,m,G){return!!O&&!this.isVideoPlayable_(O,G)&&!m},
getPlayerOverlays_:function(O){return(O==null?void 0:O.playerOverlays)||null},
isVideoPlayable_:function(O,m){if(!O)return!1;var G=O.status==="OK"||O.status==="LIVE_STREAM_OFFLINE",B=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",O)||this.get("errorScreen.ypcTrailerRenderer",O);O=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",O);var Q;m=m==null?void 0:(Q=m.playerOverlayRenderer)==null?void 0:Q.gatedActionsOverlayRenderer;return!!G||!!B||!!O||!!m},
hasWatchNextResponseErrorRenderer:function(O){var m=this.getPageContents(O),G,B,Q,H,M;return!(O==null?0:(G=O.contents)==null?0:(B=G.twoColumnWatchNextResults)==null?0:B.secondaryResults)&&!!((Q=m[0])==null?0:(H=Q.itemSectionRenderer)==null?0:(M=H.contents[0])==null?0:M.backgroundPromoRenderer)},
isLiveStreamOffline_:function(O){return O?O.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(O,m,G){var B=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",m),Q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Q=_.V("web_no_skip_video_on_verification_checks")?(O==null?void 0:O.status)&&Q.includes(O.status):O&&O.status==="AGE_CHECK_REQUIRED";var H=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",O);H==void 0&&(H=!0);!G||this.isVideoPlayable_(O,this.getPlayerOverlays_(m))||
B||Q||!H||_.KR().resolve(_.Rt).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Ib9()},
onPlayerFeedbackStartRequest_:function(O){_.xc(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:O}])},
onPlayerFeedbackArticleRequest_:function(O){_.xc(this.hostElement,"yt-help-dialog-requested",[O])},
onPlayerYpcContentRequest_:function(){var O,m,G,B,Q,H,M,R,x=((O=this.data)==null?NaN:(m=O.contents)==null?NaN:(G=m.twoColumnWatchNextResults)==null?NaN:(B=G.secondaryResults)==null?NaN:(Q=B.secondaryResults)==null?NaN:(H=Q.offerModule)==null?NaN:(M=H.tvfilmOfferModuleRenderer)==null?NaN:(R=M.actionButtons)==null?NaN:R.length)-1;O=[".offerButton.buttonRenderer.",".actionButtons."+(x>=0?x:0)+".buttonRenderer."];m=_.K(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(G=m.next();!G.done;G=m.next())for(G=G.value,B=_.K(O),Q=B.next();!Q.done;Q=B.next())if(Q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+G+Q.value,Q=this.get(Q+"navigationEndpoint",this.data)||this.get(Q+"serviceEndpoint",this.data)||this.get(Q+"command",this.data)){_.fm(Q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(O){_.iP(this.hostElement,"yt-autonav-pause-player",O)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(O){O()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(O){switch(O){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(O){switch(O){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.iP(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(O)},
setPlayerState:function(O){_.Kf().dispatch(_.VX9(O))},
onPlayerSubscribe_:function(O){_.xc(this.hostElement,"yt-player-subscribe",[O])},
onPlayerUnsubscribe_:function(O){_.xc(this.hostElement,"yt-player-unsubscribe",[O])},
onPlayerAdYtShowToast_:function(O){_.xc(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:O.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(O){if(O)return O},
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(O){return!_.V("web_watch_move_summary_to_sd")&&!!O},
computeWatchMetadataRefresh:function(){return _.V("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.V("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var O,m,G,B;this.watchNextSecondaryResults=(O=this.data)==null?void 0:(m=O.contents)==null?void 0:(G=m.twoColumnWatchNextResults)==null?void 0:(B=G.secondaryResults)==null?void 0:B.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.V("swatcheroo_pbs_load_grid")&&!_.V("swatcheroo_provide_all_data_on_scheduled_job")){_.ln.cancelJob(this.setRichGridJobId_);var O,m,G,B,Q,H,M;this.setRichGridRendererData((O=this.data)==null?void 0:(m=O.contents)==null?void 0:(G=m.twoColumnWatchNextResults)==null?void 0:(B=G.secondaryResults)==null?void 0:(Q=B.secondaryResults)==null?void 0:(H=Q.results)==null?void 0:(M=H[0])==null?
void 0:M.richGridRenderer)}},
setRichGridRendererData:function(O){this.richGridRendererData=O},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var O,m=(O=this.data)==null?void 0:O.engagementPanels;if(m==null?0:m.length){O=null;m=_.K(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;var B=void 0;if(((B=G.engagementPanelSectionListRenderer)==null?void 0:B.targetId)==="engagement-panel-structured-description"){O=G;break}}var Q,H,M;O=(Q=O)==null?void 0:(H=Q.engagementPanelSectionListRenderer)==null?void 0:(M=H.content)==null?void 0:M.structuredDescriptionContentRenderer;if(O==null?0:O.items){Q=
[];H=_.K(O.items);for(M=H.next();!M.done;M=H.next()){M=M.value;if(!_.V("sd_horizontal_list_show_nav_killswitch")){var R=B=G=m=O=void 0,x=void 0,t=(O=M.horizontalCardListRenderer)==null?void 0:(m=O.header)==null?void 0:(G=m.richListHeaderRenderer)==null?void 0:(B=G.navigationButton)==null?void 0:(R=B.buttonRenderer)==null?void 0:(x=R.command)==null?void 0:x.commandExecutorCommand;t&&t.commands&&(t.commands=t.commands.filter(function(W){return!_.b(W,_.KIq)}))}(!M.expandableVideoDescriptionBodyRenderer&&
!M.videoDescriptionHeaderRenderer||_.V("web_delhi_colorful_sd"))&&Q.push(M)}return{items:Q}}}},
constructWarning_:function(O){return{text:_.Qg(O),type:"WARNING"}},
isPlaShelfEnabled_:function(O){if((this.get("adPlacements",O)||[]).length)return!0;O=this.get("playerAds",O)||[];return!(!O.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",O[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var O=this;_.iP(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var m=this.getScrollTop()>0;this.gestures_&&(m?this.gestures_.detach():this.gestures_.attach());m!==this.showFullerscreenEdu_&&_.V("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=m,_.$i(this).getPlayerPromise().then(function(G){G.updateFullerscreenEduButtonVisibility(O.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.iP(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var O=this;this.commentsReady=!1;_.ln.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.uT(_.ln,function(){O.setComments_()},1E3)},
setComments_:function(){if(!_.V("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.cd("cmi");_.ln.cancelJob(this.setCommentsJobId_);var O=this.getPageContents(this.data);if(O&&O.length){O=_.K(O);for(var m=O.next();!m.done;m=O.next())if(m=m.value,this.get("itemSectionRenderer.sectionIdentifier",m)==="comment-item-section"){this.comments=m.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.iP(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.V("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.V("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.cd("cmc")},
doRemoveComments_:function(){this.comments={};_.V("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ln.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ln.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(O,m){var G=_.b(m.endpoint,_.GC);G&&(!(m=this.get("data.currentVideoEndpoint.watchEndpoint"))||G.videoId!==m.videoId||G.playlistId&&G.playlistId!==m.playlistId||G.index!==void 0&&G.index!==m.index||typeof G.startTimeSeconds!=="number"||(O.stopPropagation(),this.setScrollTop(0),_.$i(this).getPlayerPromise().then(function(B){var Q=G.startTimeSeconds;B.seekTo(Q);B.wakeUpControls();Q<B.getDuration()&&B.playVideo()})))},
updatePlayerStartTime_:function(){var O=_.UTh();"t"in O&&(O=_.jyc(O.t),this.player.seekTo(O,!0))},
updateTitleFromWatchNext:function(O){O=this.getPageContents(O);var m,G;(O=_.HX(O==null?void 0:(m=O[0])==null?void 0:(G=m.videoPrimaryInfoRenderer)==null?void 0:G.title))&&_.iP(this.hostElement,"yt-update-title",O)},
updateTitle_:function(O){O=this.get("videoDetails.title",O)||"";_.iP(this.hostElement,"yt-update-title",O)},
syncWithRemoteVideo_:function(O,m,G){if(this.active&&this.player){var B=this.player.getVideoData();if(B.video_id===G&&(G=B.list,_.V("polymer_enable_mdx_queue")&&G&&G.startsWith("RQ")&&(G=void 0),B.video_id!==O||G!=m)){var Q;_.V("kevlar_player_watch_endpoint_navigation")?Q=_.WXI(_.fbh(O,m)):Q=this.buildWatchEndpoint_(O,m);_.iP(this.hostElement,"yt-navigate",{endpoint:Q,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(O,m,G){return _.Mo(O,m,G)},
initDclkstatus_:function(){_.gtO()},
attachWatchPageSkeleton_:function(){var O=document.querySelector("#watch-page-skeleton");if(O){var m=O.querySelector("#primary-info"),G=O.querySelector("#secondary-info"),B=O.querySelector("#related");m&&_.ZO(this.hostElement).querySelector("#info-skeleton").appendChild(m);G&&_.ZO(this.hostElement).querySelector("#meta-skeleton").appendChild(G);B&&(_.ZO(this.hostElement).querySelector("#related-skeleton").appendChild(B),this.watchNextSkeletonEl_=B);_.hF(O)}},
handlePlayerUpdated_:function(){_.$i(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(O,m){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof m!=="undefined"){var G=this.watchNextSkeletonEl_.children,B=O&&O.indexSplices.length?O.indexSplices[0].index:0;O=Math.min(this.watchNextShownItems.length,G.length);m||(B=0,O=G.length);for(m=B;m<O;m++)G[m].classList.add("hidden")}},
onPlayerFullscreenChange_:function(O){_.V("external_fullscreen")||_.xc(this.hostElement,"yt-player-fullscreen",[O.fullscreen])},
onFullscreenChange_:function(O){this.fullscreen=O;this.gestures_&&this.gestures_.update(this.fullscreen);var m=_.$i(this);m.getPlayerPromise().then(function(G){G.setFauxFullscreen(!!_.$c())});
this.updateFullBleedElementLocations();O&&(m.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(O,m){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!m},
computeIsDonationShelfCollapsed_:function(O){return O},
computeShouldShowMerchShelf:function(O,m){return m&&!!O},
computeResponseHasComments:function(O){var m,G,B,Q,H;return!!(O==null?0:(m=O.contents)==null?0:(G=m.twoColumnWatchNextResults)==null?0:(B=G.results)==null?0:(Q=B.results)==null?0:(H=Q.contents)==null?0:H.some(function(M){var R;return(M==null?void 0:(R=M.itemSectionRenderer)==null?void 0:R.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(O,m,G,B){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&B?!1:!!O&&!!Object.keys(O).length&&!m},
identity:_.LN,onWindowResized_:function(O){this.windowSize_=O;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(O){var m=this;O&&O.type!=="dataloaded"&&O.type!=="dataupdated"||_.$i(this).getPlayerPromise().then(function(G){var B=G.getPlayerState();B!==5&&B!==0&&(G=1/G.getVideoAspectRatio(),m.videoHeightToWidthRatio_!==G&&(m.videoHeightToWidthRatio_=G))})},
schedulePlayerSizeUpdate_:function(O){var m=this,G=_.V("kevlar_watch_while_v2")||_.V("web_watch_pip"),B=function(){if(m.watchMetadata){var Q,H;(H=(Q=m.watchMetadata).resize)==null||H.call(Q)}_.$i(m).getPlayerPromise().then(function(M){if(_.V("kevlar_set_internal_player_size")){if(!G||!m.isMiniplayerActive()){var R=m.calculateCurrentPlayerSize_();M.setInternalSize(R.width,R.height)}}else M.setSize(NaN,NaN);_.V("kevlar_watch_while")&&m.updateWatchWhileScrollThreshold_()})};
O?B():_.t8(_.ln,B)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(O){this.set("data.survey",O.detail)},
onYtShowSurveyCommand_:function(O){this.set("data.survey",_.b(O,_.lba).survey)},
onDownloadedVideoDeleted:function(O){var m=this,G,B;return _.r(function(Q){if(Q.nextAddress==1){if(!m.active||(G=m.playerData)==null||!G.offlineState||m.videoId!==O)return Q.return();(B=m.player)==null||B.stopVideo();_.c3().navigatingAwayFromWatchDeletedVideo=!0;_.fm(_.qyf,m.hostElement);return Q.yield(_.c3().navigationFinishPromise,2)}_.c3().navigatingAwayFromWatchDeletedVideo=!1;_.ju(Q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var O;this.theater?O=_.Lk(.5625*this.windowSize_.width,480,this.windowSize_.height-185):O=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==O&&(this.watchWhileScrollThreshold_=O,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var O=_.ZO(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&O){var m=this.windowSize_.height>=624,G=this.active?this.getScrollTop():0;!O.active&&m&&G>=this.watchWhileScrollThreshold_?(O.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):O.active&&(!m||G<this.watchWhileScrollThreshold_&&!_.$c())&&(O.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var O=_.ZO(this.hostElement).querySelector("#secondary-inner");if(O){var m=_.ZO(this.hostElement).querySelector("#below"),G=_.ZO(this.hostElement).querySelector("#secondary"),B=_.ZO(this.hostElement).querySelector("#comments");B&&G&&m&&(this.defaultTwoColumnLayout?(O.appendChild(B),G.appendChild(O)):(m.appendChild(B),_.c9(m,O)))}}},
isTwoColumnsChanged_:function(O,m){if(O!==!0||m!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(O=_.ZO(this.hostElement).querySelector("#secondary-inner"))){m=_.ZO(this.hostElement).querySelector("#below");var G=_.ZO(this.hostElement).querySelector("#secondary"),B=_.ZO(this.hostElement).querySelector("#comments");B&&G&&m&&(this.isTwoColumns_?(O.appendChild(B),G.appendChild(O)):(m.appendChild(B),_.c9(m,O)))}}else{O=!_.V("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);m=_.ZO(this.hostElement).querySelector("#panels");var Q=_.ZO(this.hostElement).querySelector("#alerts"),H=_.ZO(this.hostElement).querySelector("#shopping-timely-shelf");G=_.ZO(this.hostElement).querySelector("#playlist");B=_.ZO(this.hostElement).querySelector("#related");var M=_.ZO(this.hostElement).querySelector("#donation-shelf"),R=_.ZO(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Q=_.ZO(this.hostElement).querySelector("#secondary-inner"),
O&&(Q.appendChild(m),Q.appendChild(G)),Q.appendChild(M),Q.appendChild(B)):(O&&(_.Y7(m,Q),_.Y7(G,Q),_.Y7(H,G)),_.Y7(M,Q),R&&_.Y7(B,R));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.V("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.V("web_watch_enable_fs_squeezeback_panels")&&_.V("web_watch_theater_chat")){var O=_.ZO(this.hostElement).querySelector("#chat-container"),m=this.theater&&!this.fullscreen||_.V("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&m?(m=_.ZO(this.hostElement).querySelector("#columns"),(O==null?void 0:O.parentElement)!==m&&m.append(O),this.fixedPanels=!0):(this.fixedPanels=
!1,m=_.ZO(this.hostElement).querySelector("#playlist"),O&&m?_.ds(O,m):_.ay(new _.j9("Missing element when updating chat location",{"chatContainer defined":!!O,"playlist defined":!!m})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(O,m){return _.V("sw_metadata_vis_toggle_ks")?!0:!!O||!!m},
computeForceDarkPanelTheme:function(O){return _.V("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&O:!1},
safeUpdateStyles:function(O){try{_.n7(this.hostElement,O)}catch(m){_.ay(m)}},
videoHeightToWidthRatioChanged_:function(O,m){m&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(O){this.videoHeightToWidthRatio_=1/O},
computeIsVerticalVideo_:function(O){return O>=1},
computeIsFourThreeToSixteenNineVideo_:function(O){return O<=.7501&&O>=.5624},
computeIsExtraWideVideo_:function(O){return O<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.$i(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.$i(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.DT0(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(O){var m=_.YH(O)||0;_.cX(O,m+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var O=_.YH("yt-fullerscreen-edu-button-click-count")||0,m=_.YH("yt-fullerscreen-edu-button-shown-count")||0,G=_.Rd("external_fullscreen_button_shown_threshold"),B=O>=_.Rd("external_fullscreen_button_click_threshold")||m>=G;_.$i(this).getPlayerPromise().then(function(Q){Q.updateFullerscreenEduButtonSubtleModeState(B)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(O,m){return m},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.KR().resolve(_.Rt).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var O=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.ln.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.ln.addLowPriorityJob(function(){O.fullHeightPanelPositionUpdateJobId=0;var m=_.ZO(O.hostElement).querySelector("#secondary"),G=_.ZO(O.hostElement).querySelector("#fixed-secondary");m=m.getBoundingClientRect();var B=m.width;O.swatcherooSqueezeback&&
(B+=_.dz);if(O.swatcherooSqueezeback){var Q=_.ZO(O.hostElement).querySelector("#squeezeback-constraining-container");Q.style.width=B+"px";Q.style.flex="0 0 "+B+"px"}G.style.width=B+"px";G.style.left=m.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var O=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.ln.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.ln.addLowPriorityJob(function(){O.panelMaxHeightUpdateJob_=0;var m;!O.isTwoColumns_||O.theater||O.fullscreen?m=460:m=O.calculateNormalPlayerSize_().height;var G=m+"px";_.V("live_chat_taller_height")&&!O.theater&&(G="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.V("live_chat_medium_height")&&!O.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.V("live_chat_scaled_height")&&!O.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 238px)");O.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":m+"px","--ytd-watch-flexy-chat-max-height":G,"--ytd-watch-flexy-structured-description-max-height":m+"px","--ytd-watch-flexy-comments-panel-max-height":m+"px","--ytd-comments-engagement-panel-content-height":m+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(O){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",O)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Wd(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(O){var m=_.ZO(this.hostElement).querySelector("#engagement-panel-scrim");O?m.addEventListener("tap",_.f7(this,this.onEngagementPanelScrimClick_)):m.removeEventListener("tap",_.f7(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(O){if(this.hostElement.contains(O)&&!this.scrollToAnimation_.isAnimating()){var m=O.offsetTop-24;O=O.offsetTop+O.offsetHeight+24;var G=this.getPageScrollingElement(),B=this.getScrollTop(),Q=B+G.clientHeight-56;if(m<B+56)m-=56;else if(O>Q)m=O-G.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,m),500)}},
onYtSignalActionScrollToComments:function(){var O=this.hostElement.querySelector("#comments");if(O&&!this.scrollToAnimation_.isAnimating()){O=O.offsetTop-56-24;if(_.V("kevlar_comment_teaser_scroll_to_midpoint")&&(O-=_.TP().height/3,O<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,O),500)}},
onYtEngagementPanelVisibleChanged:function(O,m,G){if(this.active&&this.trackEngagementPanelVisibility&&!_.CTh.includes(G)){if(m==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.UB(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var B=_.KR().resolve(_.Ah);this.visiblePanelIdentifiers_.forEach(function(Q){Q!==G&&B.hidePanel(Q)})}this.visiblePanelIdentifiers_.add(G)}m!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&m!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(G);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(O){return O?"":"watch-active-metadata"},
computeNewMetadataClass:function(O){return O?"watch-active-metadata":""},
computeIsSingleColumn:function(O,m){return m&&!O},
computeFullBleedPlayer:function(O,m,G){return _.V("external_fullscreen")&&O||m||G},
computeDefaultLayout:function(O){return!O},
computeDefaultTwoColumnLayout:function(O,m){return!O&&m},
updatePanelsLocation:function(){if(_.V("web_watch_enable_fs_squeezeback_panels")){var O=_.ZO(this.hostElement).querySelector("#below"),m=_.ZO(this.hostElement).querySelector("#panels"),G=_.ZO(this.hostElement).querySelector("#playlist"),B=_.ZO(this.hostElement).querySelector("#chat-container"),Q=_.ZO(this.hostElement).querySelector("#panels-full-bleed-container"),H=_.ZO(this.hostElement).querySelector("#secondary-inner"),M=_.ZO(this.hostElement).querySelector("#shopping-timely-shelf");if(O&&m&&G&&
B&&Q&&H&&M){var R=this.fullscreen||this.theater&&this.iMaxTheaterMode,x=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;R?(Q.appendChild(m),Q.appendChild(B),Q.appendChild(G)):this.isTwoColumns_?(x?(O=_.ZO(this.hostElement).querySelector("#columns"),(B==null?void 0:B.parentElement)!==O&&O.append(B),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.c9(H,B),_.c9(H,m),_.c9(H,G)):(O.appendChild(m),O.appendChild(M),O.appendChild(B),
O.appendChild(G))}}},
swatcherooUpdatePanelsLocation:function(O,m,G,B,Q,H){if(this.is==="ytd-watch-grid"){m=O&&!m;this.swatcherooSplitScroll&&(m?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));G=_.ZO(this.hostElement).querySelector("#panels");var M=_.ZO(this.hostElement).querySelector("#playlist"),R=_.ZO(this.hostElement).querySelector("#fixed-secondary"),x=_.ZO(this.hostElement).querySelector("#fixed-below"),
t=_.ZO(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),W=_.ZO(this.hostElement).querySelector("#chat-container");H&&(O?R.appendChild(G):x.appendChild(G));Q?O?R.appendChild(W):x.appendChild(W):_.ds(W,t);B?O?R.appendChild(M):x.appendChild(M):_.ds(M,t);this.swatcherooSplitScroll&&(O=_.ZO(this.hostElement).querySelector("#secondary"),B=_.ZO(this.hostElement).querySelector("#columns"),Q=_.ZO(this.hostElement).querySelector("#fixed-columns-secondary"),m?
Q.appendChild(O):B.appendChild(O))}},
computeMetadataSkinnyMode:function(O,m,G){return this.is!=="ytd-watch-grid"?!1:O?G:m},
computeWatchWhilePanelsActive:function(O,m){return O||m},
computeNoBorderOnChat:function(O){return _.V("web_watch_theater_chat_no_border")&&O},
computeLiveChatPresentAndExpanded:function(O,m){return O&&!m},
computePanelExpanded:function(O,m,G){return O||m||G},
computeSqueezeback:function(O,m,G,B){if(_.V("web_watch_enable_fs_squeezeback_panels")){var Q=this.iMaxTheaterMode&&this.theater;return(O||m||G)&&(B||Q)}},
computeSwatcherooSqueezeback:function(O,m,G){return this.is!=="ytd-watch-grid"||_.V("ww_squeezeback_killswitch")?!1:O&&m&&G},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(O){_.$i(this).getPlayerPromise().then(function(m){var G;(G=m.changeMarkerVisibility)==null||G.call(m,_.b(O,_.Yw).isVisible||!1,_.b(O,_.Yw).entityKeys||[],_.b(O,_.Yw).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(O){this.liveChatCollapsed=O.detail;_.Kf().dispatch(_.LP8(O.detail));if(!this.liveChatCollapsed&&this.squeezeback){var m=_.KR().resolve(_.Ah);this.visiblePanelIdentifiers_.forEach(function(G){m.hidePanel(G)})}},
onSetPlaylistCollapsed:function(O){_.V("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!O)},
provideRenderingData:function(O,m){switch(O){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=m;break;case "PRIMARY_INFO":_.V("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=m);this.videoPrimaryInfoRendererValue=m==null?void 0:m.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.V("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=m);this.videoSecondaryInfoRendererValue=m==null?void 0:m.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
m;break;case "CLARIFICATION":this.clarifyBoxValue=m;break;case "LIVE_CHAT":this.conversationBar=m;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=m;break;case "PLAYLIST":this.externalPlaylistData_=m!=null?m:{};break;case "MERCH_SHELF":this.merchShelfValue=m==null?void 0:m.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=m;break;case "TICKET_SHELF":this.ticket=m;break;case "OFFER_MODULE":this.offerModule=m;break;case "LIMITED_STATE":this.limitedStateValue=
m;break;case "DONATION_SHELF":this.donation=m;break;case "ALERTS":this.alertsValue=m;break;case "COMMENTS":this.comments=m;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=m;break;case "ENGAGEMENT_PANELS":this.engagementPanels=m;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=m;break;case "RICH_GRID_RENDERER":this.richGridRendererData=m;break;case "EXPANDABLE_METADATA":this.expandableMetadata=m;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
m;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=m}},
toggleCinematicsActive:function(O){this.cinematicsActive=O},
isMiniplayerActive:function(){return _.KR().resolve(_.c$).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var D5K;_.e89=function(O){if(!(0,_.Ryz)(O))throw Error("K``"+String(O));};
_.sqK=function(O){return O.findIndex(function(m){return D5K.indexOf(m.tagName)>-1})>-1};
_.NKy=function(){var O=_.KR().resolve(_.wS);_.eBN(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(O.isFullscreenEnabled()?_.MC(document.documentElement):_.jcz(document.documentElement))};
D5K=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.dB=new Map;_.dB.set(32,59972);_.dB.set(27,50765);_.dB.set(70,60102);_.dB.set(76,60221);_.dB.set(77,60222);_.dB.set(74,60223);_.dB.set(84,60224);_.dB.set(38,61941);_.dB.set(40,61942);_.dB.set(73,62521);_.dB.set(67,62522);_.dB.set(80,63390);_.dB.set(78,63397);_.dB.set(75,59972);_.dB.set(188,63385);_.dB.set(190,63384);_.dB.set(36,63387);
_.dB.set(35,63386);_.dB.set(37,63388);_.dB.set(39,63389);_.dB.set(79,63423);_.dB.set(87,63424);_.dB.set(107,63426);_.dB.set(109,63425);_.dB.set(65,63428);_.dB.set(83,63430);_.dB.set(68,63429);_.dB.set(221,63431);_.dB.set(219,63432);_.dB.set(97,63439);_.dB.set(98,63440);_.dB.set(99,63441);_.dB.set(100,63442);_.dB.set(101,63443);_.dB.set(102,63444);_.dB.set(103,63445);_.dB.set(104,63446);_.dB.set(105,63447);_.wB=new Map;_.wB.set(80,63390);_.wB.set(78,63397);_.wB.set(188,63400);_.wB.set(190,63401);
_.wB.set(191,60765);_.wB.set(13,247917);_.e5=new Map;_.D5=new Map;
}catch(e){_._DumpException(e)}
try{
var gBo,Iy9,pxJ,SZ9;_.XxB=function(O){return O.ui.guideIsVisibleButNotPersistent};
_.fyK=function(O){return O.ui.tabGesturesIsActive};
_.h2A=function(){var O=_.ib("service_worker_scope");try{return navigator.serviceWorker.getRegistration(O)}catch(m){return Promise.reject(m)}};
_.Tih=function(O){return!(!O||!O.pushManager)};
gBo=function(){return _.h2A().then(_.Tih).catch(function(){return!1})};
_.uqB=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?gBo():Promise.resolve(!1)};
_.j8h=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Iy9=function(){var O,m,G;return _.r(function(B){switch(B.nextAddress){case 1:return B.yield(_.FW.getInstance(),2);case 2:O=B.yieldResult;if(!O){m=void 0;B.jumpTo(3);break}return B.yield(O.get("lmqf"),4);case 4:m=B.yieldResult;case 3:switch((G=m)||(G="SD"),G){case "HD":return B.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return B.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return B.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return B.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return B.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
pxJ=function(O){var m,G,B;return _.r(function(Q){if(Q.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.V("disable_av1_setting")){var H=window.localStorage["yt-player-av1-pref"];H=H==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":H==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else H="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(m=O===H)return Q.jumpTo(2);B=G=O;return Q.yield(Iy9(),3)}Q.nextAddress!=2&&(m=B===Q.yieldResult);return Q.return(m)})};var EB3;var Lm0=_.yx.IronButtonState,Czb=(0,_.lU)(HTMLElement);
_.kZ({_template:function(){if(EB3!==void 0)return EB3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;SZ9===void 0&&(SZ9=document.createElement("template"));var B=SZ9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return EB3=O},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[Lm0,_.ai,_.cK,_.w2],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(O){var m=(0,_.X2)(this);m.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:O});m.shadowRoot.appendChild(O);return Czb.prototype._attachDom.call(this,O)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var O=this.contentElement;O&&O.selectedItem&&this._setSelectedItem(O.selectedItem)},
get contentElement(){for(var O=_.SU(this.$.content).getDistributedNodes(),m=0,G=O.length;m<G;m++)if(O[m].nodeType===Node.ELEMENT_NODE)return O[m]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(O){this._setSelectedItem(O.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(O){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O)===this&&this.open()},
_selectedItemChanged:function(O){var m="";O?m=O.label||O.getAttribute("label")||O.textContent.trim():m="";this.value=m;this._setSelectedItemLabel(m)},
_computeMenuVerticalOffset:function(O,m){return m?m:O?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var O=this.opened?"true":"false",m=this.contentElement;m&&m.setAttribute("aria-expanded",O)}});_.IW=new _.q$("navigateAction");var oBo=new _.q$("formRenderer");var pt=function(){var O=_.Iu.apply(this,arguments)||this;O.showInput=!1;return O};
_.X(pt,_.Iu);_.v=pt.prototype;_.v.detached=function(){this.showInput&&window.removeEventListener("click",_.f7(this,this.closeOnOutsideClick_))};
_.v.stopPropagation_=function(O){this.showInput&&O.stopPropagation()};
_.v.closeOnOutsideClick_=function(O){this.closeOnOutsideClickCondition(O)&&(this.showInput=!1,window.removeEventListener("click",_.f7(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.v.closeOnOutsideClickCondition=function(){return!0};
_.v.closeOnOutsideClickHandler=function(){};
_.v.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.f7(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.v.openOnClickHandler=function(){};
_.v.showInputChanged=function(){};
_.v.setShowInput=function(O){this.showInput=O};
pt.prototype.setShowInput=pt.prototype.setShowInput;pt.prototype.showInputChanged=pt.prototype.showInputChanged;pt.prototype.openOnClickHandler=pt.prototype.openOnClickHandler;pt.prototype.openOnClick_=pt.prototype.openOnClick_;pt.prototype.closeOnOutsideClickHandler=pt.prototype.closeOnOutsideClickHandler;pt.prototype.closeOnOutsideClickCondition=pt.prototype.closeOnOutsideClickCondition;pt.prototype.closeOnOutsideClick_=pt.prototype.closeOnOutsideClick_;pt.prototype.stopPropagation_=pt.prototype.stopPropagation_;
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],pt.prototype,"showInput",void 0);_.c([_.hG("click"),_.hG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],pt.prototype,"stopPropagation_",null);_.c([_.Tw("showInput"),_.Y("design:type",Function),_.Y("design:paramtypes",[Boolean]),_.Y("design:returntype")],pt.prototype,"showInputChanged",null);_.c([_.p7()],pt);_.lyh=[pt.prototype];var ayb;var kno;var S7=function(){return _.u.apply(this,arguments)||this};
_.X(S7,_.u);_.v=S7.prototype;_.v.computePreselectedOption=function(O,m){return m===this.itemSelected_?O:void 0};
_.v.dataChanged_=function(){var O=this;this.preselectedSubreason=this.itemSelected_=-1;var m;(m=this.data)!=null&&m.key&&_.QA(this,function(){var G,B=Number((G=O.data)==null?void 0:G.key);!Number.isNaN(B)&&(O.itemSelected_=B,G=(G=(O.data.items||[])[B])&&G.optionSelectableItemRenderer&&G.optionSelectableItemRenderer.preselectedIndex)&&(O.preselectedSubreason=G)})};
_.v.isSubReasonHidden_=function(O,m){return O!=m};
_.v.onTopItemSelected_=function(O,m){for(var G=_.ZO(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),B=0,Q=G.length;B<Q;B++)G[B].select(0);_.xc(this.hostElement,"yt-report-form-update",[m.item.value]);O.stopPropagation()};
_.v.onItemSelected_=function(O,m){_.xc(this.hostElement,"yt-report-form-update",[m.item.value]);O.stopPropagation()};
_.v.getItem_=function(O){return O.serviceItem?O.serviceItem:O.navigationItem?O.navigationItem:O.optionSelectableItemRenderer?O.optionSelectableItemRenderer:null};
_.v.computeText_=function(O){return(O=this.getItem_(O))?this.ytRendererBehavior.getSimpleString(O.text):null};
_.v.validate=function(){return this.itemSelected_!==-1};
_.v.computeAriaLabel_=function(O){var m=_.HX(O.text);(O=O.accessibility&&O.accessibility.accessibilityData&&O.accessibility.accessibilityData.label)&&(m+=". "+O);return m};
_.v.computeItemSelected_=function(O){return O};
_.v.preventSelection_=function(O){O.stopPropagation();this.tooltipTapped=!0};
_.v.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.v.updateItemSelectedFromBinding=function(O){this.itemSelected_=O.detail.value};
_.v.save=function(){var O;this.validate()&&(O=this.data)!=null&&O.items&&(O=this.data.items[this.itemSelected_],O!=null&&O.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(O.optionSelectableItemRenderer.submitEndpoint)||_.tK(this.hostElement,[O.optionSelectableItemRenderer.submitEndpoint])))};
S7.prototype.onPaperRippleTransitionEnd_=S7.prototype.onPaperRippleTransitionEnd_;S7.prototype.dataChanged_=S7.prototype.dataChanged_;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],S7.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],S7.prototype,"data",void 0);_.c([_.g({value:-1}),_.Y("design:type",Number)],S7.prototype,"itemSelected_",void 0);
_.c([_.g({computed:"computeItemSelected_(itemSelected_)"}),_.Y("design:type",Number)],S7.prototype,"value",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],S7.prototype,"restoreFocusOnClose",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],S7.prototype,"tooltipTapped",void 0);_.c([_.g({value:-1}),_.Y("design:type",Number)],S7.prototype,"preselectedSubreason",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S7.prototype,"dataChanged_",null);_.c([_.hG("transitionend"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],S7.prototype,"onPaperRippleTransitionEnd_",null);_.c([_.DO({is:"yt-options-renderer",disableElementRegistration:!0})],S7);
_.y(S7,"yt-options-renderer",function(){if(kno===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;ayb===void 0&&(ayb=document.createElement("template"));var B=ayb;G.call(m,B.content.cloneNode(!0),O.content.firstChild);kno=O}O=kno;return O},{mode:2});var yNK;var cNu;var YZx;var dr0;var wxb;var e2y;var Em=function(){return _.u.apply(this,arguments)||this};
_.X(Em,_.u);Em.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Em.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Em.prototype.onTap=function(O){if(this.hostElement.classList.contains("selected")||_.xc(this.hostElement,"yt-share-panel-can-select-contact-action")[0])O&&O.detail&&(O.detail.x||O.detail.y)&&_.ZO(this.hostElement).querySelector("#target").blur(),(O=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),O={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:O?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.xc(this.hostElement,"yt-share-panel-select-contact-action",[O])};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);_.c([_.g({observer:"onDataChanged"}),_.Y("design:type",Object)],Em.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Y("design:type",String)],Em.prototype,"componentTitle",void 0);_.c([_.uc("#thumbnail"),_.Y("design:type",Object)],Em.prototype,"thumbnail",void 0);_.c([_.DO({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Em);
_.y(Em,"yt-enrolled-contact-renderer",function(){if(e2y===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;wxb===void 0&&(wxb=document.createElement("template"));var B=wxb;G.call(m,B.content.cloneNode(!0),O.content.firstChild);e2y=O}O=e2y;return O},{mode:2});var Drb;var s8o;var Lt=function(){return _.u.apply(this,arguments)||this};
_.X(Lt,_.u);Lt.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Lt.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Lt.prototype.onTap=function(O){if(this.hostElement.classList.contains("selected")||_.xc(this.hostElement,"yt-share-panel-can-select-contact-action")[0])O&&O.detail&&(O.detail.x||O.detail.y)&&_.ZO(this.hostElement).querySelector("#target").blur(),(O=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),O={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:O?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.xc(this.hostElement,"yt-share-panel-select-contact-action",[O])};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.c([_.g({observer:"onDataChanged"}),_.Y("design:type",Object)],Lt.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.Y("design:type",String)],Lt.prototype,"componentTitle",void 0);_.c([_.uc("#thumbnail"),_.Y("design:type",Object)],Lt.prototype,"thumbnail",void 0);_.c([_.DO({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Lt);
_.y(Lt,"yt-suggested-contact-renderer",function(){if(s8o===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Drb===void 0&&(Drb=document.createElement("template"));var B=Drb;G.call(m,B.content.cloneNode(!0),O.content.firstChild);s8o=O}O=s8o;return O},{mode:2});var Ct=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-share-panel-reset-action":"onReset"};return O};
_.X(Ct,_.u);Ct.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"}}}}}};
Ct.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.xc(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Ct.prototype.onReset=function(){for(var O=_.ZO(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),m=O.length-1;m>=0;m--)O[m].classList.toggle("selected")};
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Ct.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ct.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g({observer:"onDataChanged"}),_.Y("design:type",Object)],Ct.prototype,"data",void 0);
_.c([_.DO({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Ct);
_.y(Ct,"yt-contact-section-renderer",function(){if(dr0===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;YZx===void 0&&(YZx=document.createElement("template"));var B=YZx;G.call(m,B.content.cloneNode(!0),O.content.firstChild);dr0=O}O=dr0;return O},{mode:2});var oW=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return O};
_.X(oW,_.u);_.v=oW.prototype;_.v.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"}}}};
_.v.onYtRefreshFormCommand=function(O){var m;(O=_.b((m=_.b(O,_.JZ8))==null?void 0:m.formRenderer,oBo))&&this.set("data",O)};
_.v.reset=function(){var O=_.ZO(this.hostElement).querySelector("#fields").children;O=_.K(O);for(var m=O.next();!m.done;m=O.next())m=m.value,m.reset&&m.reset()};
_.v.getForm=function(){var O={},m=_.ZO(this.hostElement).querySelector("#fields").children;m=_.K(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;if(!G.validate())return null;O[G.data.key]=G.value}return O};
_.v.submitFormFields=function(){if(this.fields)for(var O=_.K(this.fields),m=O.next();!m.done;m=O.next())m=m.value,m.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?m.save():m.nodeName==="YT-OPTIONS-RENDERER"&&m.save()};
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],oW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],oW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],oW.prototype,"data",void 0);_.c([_.ji("#fields > *"),_.Y("design:type",Array)],oW.prototype,"fields",void 0);
_.c([_.DO({is:"yt-form-renderer",disableElementRegistration:!0})],oW);
_.y(oW,"yt-form-renderer",function(){if(cNu===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;yNK===void 0&&(yNK=document.createElement("template"));var B=yNK;G.call(m,B.content.cloneNode(!0),O.content.firstChild);cNu=O}O=cNu;return O},{mode:2});var NiA;var lX=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return O};
_.X(lX,_.u);lX.prototype.onCheckboxChange=function(O){this.data&&(O=(this.checked=_.Mj(O).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}})};
lX.prototype.handleUpdateCheckboxCommand=function(O){(O=_.b(O,_.or8))&&this.data&&this.data.id===O.id&&(this.set("data.disabled",O.disabled),this.set("data.title",O.title))};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],lX.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],lX.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],lX.prototype,"checked",void 0);_.c([_.l({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],lX);
_.y(lX,"ytd-settings-checkbox-renderer",function(){if(NiA!==void 0)return NiA;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return NiA=O},{mode:1});var PzA;var aW=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return O};
_.X(aW,_.u);aW.prototype.dataChanged=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return O.radio.removeAttribute("checked"),!O.data||!O.data.id||O.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.j8h()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(m=O.data&&O.data.id)?G.yield(pxJ(O.data.id),4):G.jumpTo(3):(O.set("data.hidden",!0),G.jumpTo(0));G.nextAddress!=3&&(m=G.yieldResult);m&&_.xc(O.hostElement,"yt-select-settings-radio-option",[O.data.id]);_.ju(G)})};
aW.prototype.onButtonChanged=function(O){_.Mj(O).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.KR().resolve(_.Mu).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.xc(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
aW.prototype.onSelectOption=function(O){this.data&&this.data.id&&(this.data.id===O?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
aW.prototype.dataChanged=aW.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],aW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.uc("#radio"),_.Y("design:type",Object)],aW.prototype,"radio",void 0);_.c([_.g(),_.Y("design:type",Object)],aW.prototype,"data",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],aW.prototype,"dataChanged",null);_.c([_.l({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],aW);
_.y(aW,"ytd-settings-radio-option-renderer",function(){if(PzA!==void 0)return PzA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return PzA=O},{mode:1});var FmA;var kM=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return O};
_.X(kM,_.u);
kM.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"}}}};
kM.prototype.handleUpdateTextCommand=function(O){(O=_.b(O,_.lIp))&&this.data&&this.data.id===O.id&&this.set("data",O)};
kM.prototype.handleUpdateConnectedAppRendererCommand=function(O){if(_.b(O,_.yZC)&&this.data){var m,G;if(O=(m=_.b(O,_.yZC))==null?void 0:(G=m.newConnectedAppRenderer)==null?void 0:G.connectedAppRenderer)this.data=O}};
kM.prototype.computeConnectedAppStyle=function(O){return O.style?O.style.toLowerCase().replace(/_/g,"-"):""};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],kM.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],kM.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.Y("design:type",String)],kM.prototype,"connectedAppStyle",void 0);_.c([_.l({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],kM);
_.y(kM,"ytd-connected-app-renderer",function(){if(FmA!==void 0)return FmA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return FmA=O},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.lj("iuT5Oc");

_.aw();
}catch(e){_._DumpException(e)}
try{
_.lj("L3n37");
var $Dq=function(O){return O.watch.isLearningJourneyActive},Mj8=_.Zv(115994),rJc=_.Zv(115993),RW5=function(O,m,G){var B=this;
var Q=G.dragDownAction;this.layer=0;this.JSC$23177_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return B.dragDownAction()}}}};
this.JSC$23177_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return B.dragDownAction()}}}};
this.fullscreen=!1;var H=_.uK();_.CK(H,Mj8,this.layer);_.CK(H,rJc,this.layer);this.dragDownAction=function(){Q();_.P6(H,{visualElement:B.fullscreen?Mj8:rJc})};
this.gesture=new _.k8(O,m,this.getConfig(!1),"pandown");this.attach()};
RW5.prototype.attach=function(){this.gesture.attach()};
RW5.prototype.detach=function(){this.gesture.detach()};
RW5.prototype.update=function(O){this.fullscreen=O;var m=this.gesture;O=this.getConfig(O);m.config=O};
RW5.prototype.getConfig=function(O){return O?this.JSC$23177_watchFullScreenConfig:this.JSC$23177_watchConfig};var iI9=function(O){_.Yd.call(this);var m=this;this.rootElement=O;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return m.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(G){m.initOrDisposeActiveModules(G)}));
this.onAttached()};
_.X(iI9,_.Yd);_.v=iI9.prototype;_.v.getRoot=function(){return this.rootElement};
_.v.getElement=function(O){return this.rootElement.getElement(O)};
_.v.setPlayerResponse=function(O){this.playerResponse=O;this.publish("PLAYER_RESPONSE_UPDATED",O)};
_.v.getPlayerResponse=function(){return this.playerResponse};
_.v.setWatchNextResponse=function(O){this.watchNextResponse===O?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=O,this.publish("WATCH_NEXT_RESPONSE_UPDATED",O))};
_.v.getWatchNextResponse=function(){return this.watchNextResponse};
_.v.registerActionHandler=function(O,m){var G=this;if(_.V("web_watch_controller_reg_multiple_handlers_killswitch")){var B={};_.NT(_.sJ.getInstance(),(B[O]=m,B),this.getRoot())}else this.actionHandlers.has(O)||(this.actionHandlers.set(O,[]),B={},_.NT(_.sJ.getInstance(),(B[O]=function(){var Q=_.eA.apply(0,arguments);return(G.actionHandlers.get(O)||[]).map(function(H){return H.apply(null,_.lS(Q))})},B),this.getRoot())),this.actionHandlers.get(O).push(m)};
_.v.unregisterActionHandler=function(O){if(_.V("web_watch_controller_reg_multiple_handlers_killswitch")){var m={};_.PH(_.sJ.getInstance(),(m[O]=!0,m),this.getRoot())}else(m=this.actionHandlers.get(O))?(m.pop(),m.length===0&&(m={},_.PH(_.sJ.getInstance(),(m[O]=!0,m),this.getRoot()),this.actionHandlers.delete(O))):_.ay(new _.j9("Attempted to unregister an action handler which is not registered.",O))};
_.v.addPageDisposeJob=function(O){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.bNr(this.rootElement.pageDisposeJobs,O)};
_.v.removePageDisposeJob=function(O){this.rootElement.pageDisposeJobs&&_.yf(this.rootElement.pageDisposeJobs,O)};
_.v.dispatchEvent=function(O,m){_.iP(this.rootElement,O,m)};
_.v.provideRenderingData=function(O,m){this.rootElement.provideRenderingData(O,m)};
_.v.scrollWatchTo=function(O,m){var G;(G=this.watchScrollManager)==null||G.scrollWatchTo(O,m)};
_.v.focusOnPlayer=function(){var O=this.getElement("PLAYER");_.QA(O,function(){if(O&&O.firstElementChild){var m=O.querySelector(".html5-video-player");m&&(_.Tj(_.KR().resolve(_.pH)),m.focus())}else _.ay(Error("To"))})};
var xD8=function(O){var m=!!O.rootElement.theater,G=!!O.rootElement.fullscreen,B;(B=O.watchCinematicManager)==null||_.cE5(B,G,m)};
_.v=iI9.prototype;_.v.subscribeToActiveChanged=function(O,m){m=m===void 0?!0:m;var G=_.dc(_.Kf(),$Dq,function(B){O(B)});
m&&O($Dq(_.Kf().getState()));return G};
_.v.isActive=function(){return $Dq(_.Kf().getState())};
_.v.onAttached=function(){var O=_.V("external_fullscreen");_.V("use_unified_flag_accessor")&&(O=_.KR().resolve(_.jos).retriever.getFlag(_.VE9));(O||_.yE("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.v.initPersistentModules=function(){if(_.V("kevlar_watch_flexy_theater_manager")){var O=new _.Uuc(this);_.VV(this,O)}O=new _.BYP(this);_.VV(this,O);O=new _.SN(this);_.VV(this,O);O=new _.AEP(this);_.VV(this,O);O=new _.pI0(this);_.VV(this,O);O=new _.Eq(this);_.VV(this,O);_.V("kevlar_watch_flexy_playlist_manager")&&(O=new _.Loa(this),_.VV(this,O))};
_.v.initOrDisposeActiveModules=function(O){O?(this.watchScrollManager=new _.lV(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Zp9(this)),this.activeModules.push(new _.Wma(this)),this.activeModules.push(new _.yva(this)),this.activeModules.push(new _.Rtc(this)),_.V("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.bn0(this)),this.activeModules.push(new _.XI8(this)),_.V("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.YOG(this)),
_.V("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.Igq(this)),_.V("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Cb9(this),this.activeModules.push(this.watchCinematicManager),xD8(this)),_.V("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.gG5(this)),_.V("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.mIc(this)),O=_.V("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.V("kevlar_watch_flexy_comments_manager")&&
!O&&this.activeModules.push(new _.Duc(this)),_.V("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.EBn(this)),this.activeModules.push(new _.nR9(this)),this.activeModules.push(new _.Jv8(this)),_.V("web_enable_timely_actions")&&this.activeModules.push(new _.TIc(this)),_.V("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.Nia(this)),_.V("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.kn5(this)),_.V("web_fullscreen_components")&&
this.activeModules.push(new _.h2a(this)),_.V("web_player_rtr_ctrls")&&this.activeModules.push(new _.Fma(this))):(_.$a(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.v.disposeInternal=function(){_.Yd.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.vr.Object.defineProperties(iI9.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var qDa={},UD0=["learning-journey-engagement-panel","PAlearning_chat"];
qDa.YtdLearningJourneyWatchBehavior=[_.N.YtRendererBehavior,_.Jh.YtPlayerListenerBehavior,_.j1.YtRendererstamperBehavior,_.cg.YtActionHandlerBehavior,_.vW.YtPageBehavior,_.yZ.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 _.yE("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.V("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 _.yE("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 _.V("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.V("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 _.Rd("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Rd("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)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("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 _.V("web_watch_rounded_player_large")||_.V("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 _.V("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.V("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("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 _.V("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("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:_.VH(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.VH(["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 O=this;this.watchController=void 0;this.pageDisposeJobs=[function(){O.showMetadataPlaceholder_()},
function(){_.V("web_watch_dont_clear_comments")||O.clearComments_()},
function(){O.clearPlayerAds_()},
function(){O.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;_.V("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.V("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.aba(function(){return _.$i(O)},this.hostElement);
this.pageDisposeJobs.push(function(){O.youThereManager_.reset()});
_.V("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){O.resetFullerscreenEduButtonForNewPlayback_()}));
_.V("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.he;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;_.V("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.V("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));_.V("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.f7(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(O){O&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:O}),O.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(O){_.V("kevlar_watch_flexy_theater_manager")&&(this.theater=O,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.V("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(O){!_.V("kevlar_watch_while_v2")&&!_.V("web_watch_pip")||O||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(O){this.active!==void 0&&(this.fullscreen=O,_.V("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(O){this.active!==void 0&&(_.iP(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.V("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(O>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(O){this.initCsi_();this.updatePageData_(O)},
updatePageData_:function(O){var m=this;if(O)if(this.data===O){this.onPageLoadWithSameData_();var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data)}else this.data=O;this.playlist&&_.as({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.cd("nw");this.loading=!1;_.uT(_.ln,function(){m.initDclkstatus_();var B,Q=((B=m.player)==null?void 0:B.getVideoData().cpn)||"";_.XHh(function(H,M){_.YFK(H,M,Q)})})},
onPageLoadWithSameData_:function(){_.V("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 O=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!O);this.set("loadingData.playlistLoading",O&&O!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),O=this.watchNextSkeletonEl_.firstElementChild;O;)O.classList.remove("hidden"),O=O.nextElementSibling;var m,G,B;O=(m=this.loadingData)==null?void 0:(G=m.endpoint)==null?void 0:(B=G.watchEndpoint)==null?void 0:B.videoId;var Q;O&&(Q="https://i.ytimg.com/vi/"+O+"/frame0.jpg");_.ZO(this.hostElement).querySelector("#player").style.backgroundImage=Q?"url("+Q+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var O=_.ZO(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&O&&(O.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var m,G;(G=(m=this.watchMetadata).updateSentimentBarWidth)==
null||G.call(m);var B,Q;(Q=(B=this.watchMetadata).resize)==null||Q.call(B)}_.ZO(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(O){var m=_.ZO(this.hostElement).querySelector(O);m?_.rr(m,!1):_.ay(new _.j9("Overscroll monitor not found for component: ",O))},
removeSplitScrollMouseTrap:function(O){var m=_.ZO(this.hostElement).querySelector(O);m?_.Rs(m):_.ay(new _.j9("Disposal component for  overscroll monitoring not found: ",O))},
onLoadingChanged_:function(O){O?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(O){var m=this;O?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ln.addLowPriorityJob(function(){m.onWindowResized_(_.Ih(!0))})},
updateTheaterModeState_:function(O){if(!_.V("kevlar_watch_flexy_theater_manager")){O=O||this.fullWindowMode_;if(this.theater!==void 0||O)this.theater=O;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();O&&_.H9n()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var O=this.theater;_.V("external_fullscreen")&&this.fullscreen&&(O=!0);O=O?_.ZO(this.hostElement).querySelector("#player-full-bleed-container"):_.ZO(this.hostElement).querySelector("#player-container-inner");var m=this.getPlayerContainer(),G=_.V("kevlar_watch_while_v2")||_.V("web_watch_pip");m.parentElement!==O&&(G&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.$i(this).appendTo(O,m),O.appendChild(_.ZO(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var O=this;return _.r(function(m){if(m.nextAddress==1)return m.yield(_.KR().resolve(_.c$).deactivate(),2);O.updatePlayerLocation();_.ju(m)})},
updateCinematicsLocation:function(){var O=this.getElement("CINEMATICS");if(O){var m=this.getCinematicsLocationContainer();O.parentElement!==m&&m.appendChild(O);var G;(G=this.watchController)==null||xD8(G)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.ZO(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.ZO(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(O,m){var G=document.documentElement.hasAttribute("dark"),B=G&&_.V("web_cinematic_theater_mode"),Q=G&&_.V("web_cinematic_fullscreen");G=!G&&this.cinematicLightTheme;return O&&B||m&&Q||(m||O)&&G},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var O;(O=this.watchController)==null||O.setWatchNextResponse(this.data);_.V("kevlar_watch_flexy_comments_manager")||this.initComments_();_.V("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.KR().resolve(_.Rt).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.V("web_watch_start_chat_in_theater_mode")){var m,
G,B;if((m=this.data)==null?0:(G=m.contents)==null?0:(B=G.twoColumnWatchNextResults)==null?0:B.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var Q,H;((Q=this.data)==null?0:(H=Q.contents)==null?0:H.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(O){var m;(m=this.watchController)==null||m.setPlayerResponse(this.playerData);O&&O.playabilityStatus&&(m=this.isVideoPlayable_(O.playabilityStatus,this.getPlayerOverlays_(this.data)),O=this.isLiveStreamOffline_(O.playabilityStatus),m&&!O||_.QA(this,function(){_.cd("pbu")}));
this.setPlayerAds_();_.UB(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(O){_.Kf().dispatch(_.xs({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));O?this.activate_():this.deactivate_()},
attached:function(){var O=this;this.watchController=new iI9(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.V("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var m=_.$i(this);_.V("kevlar_disable_prepare_player")||m.preparePlayer();_.V("kevlar_watch_flexy_playlist_manager")||_.KR().resolve(_.Rt).setPlayer(m);this.updatePageMediaQueries();m={"--ytd-watch-flexy-scrollbar-width":_.Zu()+
"px"};!_.Rd("kv_pl_mx_sz_ks")&&_.Rd("kevlar_watch_max_player_width")&&(m["--ytd-watch-flexy-max-player-width-wide-screen"]=_.wi0+"px");_.Rd("kevlar_watch_flexy_metadata_height")&&(m["--ytd-watch-flexy-space-below-player"]=_.eqq+"px");this.safeUpdateStyles(m);_.V("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new RW5(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return O.onPlayerTouchPanDown_()}}));
_.V("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.ZO(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var O=_.Zu(),m=_.wz+O,G=m;this.fixedPanels&&(m+=_.dG9);var B=657+O;O=1327+O;_.ZO(this.hostElement).querySelector("#two-column-query").query="(min-width: "+m+"px)";_.ZO(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(B+"px), (min-height: 630px) and (min-width: ")+(m+"px) and (max-width: ")+(O+"px)");_.ZO(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(O+"px)");
_.ZO(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+G+"px)"},
calculateCurrentPlayerSize_:function(){var O=_.ZO(this.hostElement).querySelector("#miniplayer-bar").firstChild;return O&&O.active||this.theater||_.V("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.hY(NaN,NaN):_.ugo(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.ugo(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Kd(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var O=this;this.onWindowResized_(_.Ih());_.V("browse_skeleton_removal_on_watch_killswitch")||_.yE("IS_SHELL_LOAD")&&_.a7B();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var m=_.$i(this);m.addEventListener("yt-player-updated",_.f7(this,this.onPlayerUpdated_));m.getPlayerPromise().then(function(G){O.playerApiReady_(G)});
_.V("kevlar_watch_flexy_playlist_manager")||(m=_.KR().resolve(_.Rt),_.V("kevlar_watch_observe_playlist_navigations_killswitch")&&m.addEventListener("yt-navigate",_.f7(this,this.onYtNavigate_)),m.setPlaylistComponent(_.ZO(this.hostElement).querySelector("#playlist")),m.addEventListener("yt-playlist-data-updated",_.f7(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ln.addLowPriorityJob(function(){_.iP(O.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.$i(this).removeEventListener("yt-player-updated",_.f7(this,this.onPlayerUpdated_));if(!_.V("kevlar_watch_flexy_playlist_manager")){var O=_.KR().resolve(_.Rt);_.V("kevlar_watch_observe_playlist_navigations_killswitch")&&O.removeEventListener("yt-navigate",_.f7(this,this.onYtNavigate_));O.cancelVideoSkip();O.removeEventListener("yt-playlist-data-updated",_.f7(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.V("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.iP(this.hostElement,"yt-autonav-pause-player",!1);O=_.$c();_.V("kevlar_exit_fullscreen_leaving_watch")&&O&&_.MC(O)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(O){this.player&&this.player.updateVideoData({rvs:O.rvs})},
getPageContents:function(O){return O&&O.contents&&O.contents.twoColumnWatchNextResults&&O.contents.twoColumnWatchNextResults.results&&O.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(O){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",O)},
onRetrieveLocation_:function(O,m){m.hasComments?m.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):m.locationRetrieved("/related_ajax",void 0);O.stopPropagation()},
onSubscriptionChanged_:function(O,m){this.player&&(m?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.sLu("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.ZO(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.ZO(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(O){this.player=O;this.setPlayerState(O.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.V("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.V("kevlar_unified_player")||_.V("kevlar_player_new_bootstrap_adoption"))&&_.el()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(O,m){m=m===void 0?!0:m;_.$c()&&_.V("external_fullscreen")&&_.MC(document.documentElement);this.theaterRequested_=O;m&&_.hE("wide",O?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.V("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.xc(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.iP(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(O){_.kt(O,typeof this.player),this.player&&_.kt(O,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var O;((O=this.player)==null?0:O.isFullscreen())?this.player.toggleFullscreen():_.xc(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(O,m){return this.loading?m:!!Object.keys(O).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(O){if(O){O=_.K(O);for(var m=O.next();!m.done;m=O.next())m=m.value,m.youThereRenderer&&_.clO(this.youThereManager_,m.youThereRenderer)}},
setPlaylistData_:function(O){return O||{}},
userEngagementConfigDataChanged_:function(O){if(O)if(O.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var m=this.youThereManager_;_.MT()<O.lowEngagementThresholdMs||_.eN9(m,!0)}else O.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.xc(this.hostElement,"yt-autonav-pause-user-engagement",[O])},
isPlayerUnavailable_:function(O,m,G){return!!O&&!this.isVideoPlayable_(O,G)&&!m},
getPlayerOverlays_:function(O){return(O==null?void 0:O.playerOverlays)||null},
isVideoPlayable_:function(O,m){if(!O)return!1;var G=O.status==="OK"||O.status==="LIVE_STREAM_OFFLINE",B=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",O)||this.get("errorScreen.ypcTrailerRenderer",O);O=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",O);var Q;m=m==null?void 0:(Q=m.playerOverlayRenderer)==null?void 0:Q.gatedActionsOverlayRenderer;return!!G||!!B||!!O||!!m},
hasWatchNextResponseErrorRenderer:function(O){var m=this.getPageContents(O),G,B,Q,H,M;return!(O==null?0:(G=O.contents)==null?0:(B=G.twoColumnWatchNextResults)==null?0:B.secondaryResults)&&!!((Q=m[0])==null?0:(H=Q.itemSectionRenderer)==null?0:(M=H.contents[0])==null?0:M.backgroundPromoRenderer)},
isLiveStreamOffline_:function(O){return O?O.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(O,m,G){var B=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",m),Q=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];Q=_.V("web_no_skip_video_on_verification_checks")?(O==null?void 0:O.status)&&Q.includes(O.status):O&&O.status==="AGE_CHECK_REQUIRED";var H=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",O);H==void 0&&(H=!0);!G||this.isVideoPlayable_(O,this.getPlayerOverlays_(m))||
B||Q||!H||_.KR().resolve(_.Rt).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Ib9()},
onPlayerFeedbackStartRequest_:function(O){_.xc(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:O}])},
onPlayerFeedbackArticleRequest_:function(O){_.xc(this.hostElement,"yt-help-dialog-requested",[O])},
onPlayerYpcContentRequest_:function(){var O,m,G,B,Q,H,M,R,x=((O=this.data)==null?NaN:(m=O.contents)==null?NaN:(G=m.twoColumnWatchNextResults)==null?NaN:(B=G.secondaryResults)==null?NaN:(Q=B.secondaryResults)==null?NaN:(H=Q.offerModule)==null?NaN:(M=H.tvfilmOfferModuleRenderer)==null?NaN:(R=M.actionButtons)==null?NaN:R.length)-1;O=[".offerButton.buttonRenderer.",".actionButtons."+(x>=0?x:0)+".buttonRenderer."];m=_.K(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(G=m.next();!G.done;G=m.next())for(G=G.value,B=_.K(O),Q=B.next();!Q.done;Q=B.next())if(Q="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+G+Q.value,Q=this.get(Q+"navigationEndpoint",this.data)||this.get(Q+"serviceEndpoint",this.data)||this.get(Q+"command",this.data)){_.fm(Q,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(O){_.iP(this.hostElement,"yt-autonav-pause-player",O)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(O){O()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(O){switch(O){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(O){switch(O){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.iP(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(O)},
setPlayerState:function(O){_.Kf().dispatch(_.VX9(O))},
onPlayerSubscribe_:function(O){_.xc(this.hostElement,"yt-player-subscribe",[O])},
onPlayerUnsubscribe_:function(O){_.xc(this.hostElement,"yt-player-unsubscribe",[O])},
onPlayerAdYtShowToast_:function(O){_.xc(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:O.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(O){if(O)return O},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(O){return!_.V("web_watch_move_summary_to_sd")&&!!O},
computeWatchMetadataRefresh:function(){return _.V("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var O,m,G,B;this.watchNextSecondaryResults=(O=this.data)==null?void 0:(m=O.contents)==null?void 0:(G=m.twoColumnWatchNextResults)==null?void 0:(B=G.secondaryResults)==null?void 0:B.secondaryResults}},
setRichGridRendererData:function(O){this.richGridRendererData=O},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var O,m=(O=this.data)==null?void 0:O.engagementPanels;if(m==null?0:m.length){O=null;m=_.K(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;var B=void 0;if(((B=G.engagementPanelSectionListRenderer)==null?void 0:B.targetId)==="engagement-panel-structured-description"){O=G;break}}var Q,H,M;O=(Q=O)==null?void 0:(H=Q.engagementPanelSectionListRenderer)==null?void 0:(M=H.content)==null?void 0:M.structuredDescriptionContentRenderer;if(O==null?0:O.items){Q=
[];H=_.K(O.items);for(M=H.next();!M.done;M=H.next()){M=M.value;if(!_.V("sd_horizontal_list_show_nav_killswitch")){var R=B=G=m=O=void 0,x=void 0,t=(O=M.horizontalCardListRenderer)==null?void 0:(m=O.header)==null?void 0:(G=m.richListHeaderRenderer)==null?void 0:(B=G.navigationButton)==null?void 0:(R=B.buttonRenderer)==null?void 0:(x=R.command)==null?void 0:x.commandExecutorCommand;t&&t.commands&&(t.commands=t.commands.filter(function(W){return!_.b(W,_.KIq)}))}M.expandableVideoDescriptionBodyRenderer||
M.videoDescriptionHeaderRenderer||Q.push(M)}return{items:Q}}}},
constructWarning_:function(O){return{text:_.Qg(O),type:"WARNING"}},
isPlaShelfEnabled_:function(O){if((this.get("adPlacements",O)||[]).length)return!0;O=this.get("playerAds",O)||[];return!(!O.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",O[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var O=this;_.iP(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var m=this.getScrollTop()>0;this.gestures_&&(m?this.gestures_.detach():this.gestures_.attach());m!==this.showFullerscreenEdu_&&_.V("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=m,_.$i(this).getPlayerPromise().then(function(G){G.updateFullerscreenEduButtonVisibility(O.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.iP(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var O=this;this.commentsReady=!1;_.ln.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.uT(_.ln,function(){O.setComments_()},1E3)},
setComments_:function(){if(!_.V("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.cd("cmi");_.ln.cancelJob(this.setCommentsJobId_);var O=this.getPageContents(this.data);if(O&&O.length){O=_.K(O);for(var m=O.next();!m.done;m=O.next())if(m=m.value,this.get("itemSectionRenderer.sectionIdentifier",m)==="comment-item-section"){this.comments=m.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.iP(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.V("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.V("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.cd("cmc")},
doRemoveComments_:function(){this.comments={};_.V("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ln.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ln.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(O,m){var G=_.b(m.endpoint,_.GC);G&&(!(m=this.get("data.currentVideoEndpoint.watchEndpoint"))||G.videoId!==m.videoId||G.playlistId&&G.playlistId!==m.playlistId||G.index!==void 0&&G.index!==m.index||typeof G.startTimeSeconds!=="number"||(O.stopPropagation(),this.setScrollTop(0),_.$i(this).getPlayerPromise().then(function(B){var Q=G.startTimeSeconds;B.seekTo(Q);B.wakeUpControls();Q<B.getDuration()&&B.playVideo()})))},
updatePlayerStartTime_:function(){var O=_.UTh();"t"in O&&(O=_.jyc(O.t),this.player.seekTo(O,!0))},
updateTitleFromWatchNext:function(O){O=this.getPageContents(O);var m,G;(O=_.HX(O==null?void 0:(m=O[0])==null?void 0:(G=m.videoPrimaryInfoRenderer)==null?void 0:G.title))&&_.iP(this.hostElement,"yt-update-title",O)},
updateTitle_:function(O){O=this.get("videoDetails.title",O)||"";_.iP(this.hostElement,"yt-update-title",O)},
syncWithRemoteVideo_:function(O,m,G){if(this.active&&this.player){var B=this.player.getVideoData();if(B.video_id===G&&(G=B.list,_.V("polymer_enable_mdx_queue")&&G&&G.startsWith("RQ")&&(G=void 0),B.video_id!==O||G!=m)){var Q;_.V("kevlar_player_watch_endpoint_navigation")?Q=_.WXI(_.fbh(O,m)):Q=this.buildWatchEndpoint_(O,m);_.iP(this.hostElement,"yt-navigate",{endpoint:Q,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(O,m,G){return _.Mo(O,m,G)},
initDclkstatus_:function(){_.gtO()},
attachWatchPageSkeleton_:function(){var O=document.querySelector("#watch-page-skeleton");if(O){var m=O.querySelector("#primary-info"),G=O.querySelector("#secondary-info"),B=O.querySelector("#related");m&&_.ZO(this.hostElement).querySelector("#info-skeleton").appendChild(m);G&&_.ZO(this.hostElement).querySelector("#meta-skeleton").appendChild(G);B&&(_.ZO(this.hostElement).querySelector("#related-skeleton").appendChild(B),this.watchNextSkeletonEl_=B);_.hF(O)}},
handlePlayerUpdated_:function(){_.$i(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(O,m){if(this.watchNextSkeletonEl_&&typeof m!=="undefined"){var G=this.watchNextSkeletonEl_.children,B=O&&O.indexSplices.length?O.indexSplices[0].index:0;O=Math.min(this.watchNextShownItems.length,G.length);m||(B=0,O=G.length);for(m=B;m<O;m++)G[m].classList.add("hidden")}},
onPlayerFullscreenChange_:function(O){_.V("external_fullscreen")||_.xc(this.hostElement,"yt-player-fullscreen",[O.fullscreen])},
onFullscreenChange_:function(O){this.fullscreen=O;this.gestures_&&this.gestures_.update(this.fullscreen);var m=_.$i(this);m.getPlayerPromise().then(function(G){G.setFauxFullscreen(!!_.$c())});
this.updateFullBleedElementLocations();O&&(m.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(O,m){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!m},
computeIsDonationShelfCollapsed_:function(O){return O},
computeShouldShowMerchShelf:function(O,m){return m&&!!O},
computeResponseHasComments:function(O){var m,G,B,Q,H;return!!(O==null?0:(m=O.contents)==null?0:(G=m.twoColumnWatchNextResults)==null?0:(B=G.results)==null?0:(Q=B.results)==null?0:(H=Q.contents)==null?0:H.some(function(M){var R;return(M==null?void 0:(R=M.itemSectionRenderer)==null?void 0:R.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(O,m){this.responseHasComments=this.computeResponseHasComments(this.data);return!!O&&!!Object.keys(O).length&&!m},
identity:_.LN,onWindowResized_:function(O){this.windowSize_=O;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.V("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(O){var m=this;O&&O.type!=="dataloaded"&&O.type!=="dataupdated"||_.$i(this).getPlayerPromise().then(function(G){var B=G.getPlayerState();B!==5&&B!==0&&(G=1/G.getVideoAspectRatio(),m.videoHeightToWidthRatio_!==G&&(m.videoHeightToWidthRatio_=G))})},
schedulePlayerSizeUpdate_:function(O){var m=this,G=_.V("kevlar_watch_while_v2")||_.V("web_watch_pip"),B=function(){if(m.watchMetadata){var Q,H;(H=(Q=m.watchMetadata).resize)==null||H.call(Q)}_.$i(m).getPlayerPromise().then(function(M){if(_.V("kevlar_set_internal_player_size")){if(!G||!m.isMiniplayerActive()){var R=m.calculateCurrentPlayerSize_();M.setInternalSize(R.width,R.height)}}else M.setSize(NaN,NaN);_.V("kevlar_watch_while")&&m.updateWatchWhileScrollThreshold_()})};
O?B():_.t8(_.ln,B)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(O){this.set("data.survey",O.detail)},
onYtShowSurveyCommand_:function(O){this.set("data.survey",_.b(O,_.lba).survey)},
onDownloadedVideoDeleted:function(O){var m=this,G,B;return _.r(function(Q){if(Q.nextAddress==1){if(!m.active||(G=m.playerData)==null||!G.offlineState||m.videoId!==O)return Q.return();(B=m.player)==null||B.stopVideo();_.c3().navigatingAwayFromWatchDeletedVideo=!0;_.fm(_.qyf,m.hostElement);return Q.yield(_.c3().navigationFinishPromise,2)}_.c3().navigatingAwayFromWatchDeletedVideo=!1;_.ju(Q)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var O;this.theater?O=_.Lk(.5625*this.windowSize_.width,480,this.windowSize_.height-185):O=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==O&&(this.watchWhileScrollThreshold_=O,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var O=_.ZO(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&O){var m=this.windowSize_.height>=624,G=this.active?this.getScrollTop():0;!O.active&&m&&G>=this.watchWhileScrollThreshold_?(O.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):O.active&&(!m||G<this.watchWhileScrollThreshold_&&!_.$c())&&(O.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(O,m){if(O!==!0||m!==void 0){O=!_.V("live_chat_over_engagement_panels");m=_.ZO(this.hostElement).querySelector("#chat-container");var G=_.ZO(this.hostElement).querySelector("#plj-sidebar"),B=_.ZO(this.hostElement).querySelector("#panels"),Q=_.ZO(this.hostElement).querySelector("#plj-panels"),H=_.ZO(this.hostElement).querySelector("#plj-playlist"),M=_.ZO(this.hostElement).querySelector("#alerts"),R=_.ZO(this.hostElement).querySelector("#playlist"),x=_.ZO(this.hostElement).querySelector("#related"),
t=_.ZO(this.hostElement).querySelector("#donation-shelf"),W=_.ZO(this.hostElement).querySelector("#comments");this.isTwoColumns_?(M=_.ZO(this.hostElement).querySelector("#secondary-inner"),M.appendChild(G),G.appendChild(H),H.appendChild(R),G.appendChild(Q),O&&M.appendChild(B),_.V("web_watch_theater_chat")||M.appendChild(m),O||M.appendChild(B),M.appendChild(t),M.appendChild(x)):(O&&_.Y7(B,M),_.Y7(R,M),_.V("web_watch_theater_chat")||_.Y7(m,M),O||_.Y7(B,M),_.Y7(t,M),W&&(Q&&_.Y7(Q,W),_.Y7(x,W)));_.V("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.V("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.V("web_watch_theater_chat")){var O=_.ZO(this.hostElement).querySelector("#chat-container"),m=this.theater&&!this.fullscreen||_.V("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&m?_.V("web_watch_theater_chat_beside_player")?(m=_.ZO(this.hostElement).querySelector("#panels-full-bleed-container"),(O==null?void 0:O.parentElement)!==m&&m.append(O),this.panelsBesidePlayer=!0):_.V("web_watch_theater_fixed_chat")&&
(m=_.ZO(this.hostElement).querySelector("#columns"),(O==null?void 0:O.parentElement)!==m&&m.append(O),this.fixedPanels=!0):(_.V("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.V("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),m=_.ZO(this.hostElement).querySelector("#playlist"),O&&m?_.ds(O,m):_.ay(new _.j9("Missing element when updating chat location",{"chatContainer defined":!!O,"playlist defined":!!m})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(O,m){return _.V("sw_metadata_vis_toggle_ks")?!0:!!O||!!m},
computeForceDarkPanelTheme:function(O){return _.V("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&O:!1},
safeUpdateStyles:function(O){try{_.n7(this.hostElement,O)}catch(m){_.ay(m)}},
videoHeightToWidthRatioChanged_:function(O,m){m&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.V("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(O){this.videoHeightToWidthRatio_=1/O},
computeIsVerticalVideo_:function(O){return O>=1},
computeIsFourThreeToSixteenNineVideo_:function(O){return O<=.7501&&O>=.5624},
computeIsExtraWideVideo_:function(O){return O<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.$i(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.$i(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.DT0(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(O){var m=_.YH(O)||0;_.cX(O,m+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var O=_.YH("yt-fullerscreen-edu-button-click-count")||0,m=_.YH("yt-fullerscreen-edu-button-shown-count")||0,G=_.Rd("external_fullscreen_button_shown_threshold"),B=O>=_.Rd("external_fullscreen_button_click_threshold")||m>=G;_.$i(this).getPlayerPromise().then(function(Q){Q.updateFullerscreenEduButtonSubtleModeState(B)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(O,m){return m},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.KR().resolve(_.Rt).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var O=this;this.panelMaxHeightUpdateJob_&&_.ln.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.ln.addLowPriorityJob(function(){O.panelMaxHeightUpdateJob_=0;var m;!O.isTwoColumns_||O.theater||O.fullscreen?m=460:m=O.calculateNormalPlayerSize_().height;var G=m+"px";_.V("live_chat_taller_height")&&!O.theater&&(G="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.V("live_chat_medium_height")&&
!O.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.V("live_chat_scaled_height")&&!O.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 238px)");O.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":m+"px","--ytd-watch-flexy-chat-max-height":G,"--ytd-watch-flexy-structured-description-max-height":m+"px","--ytd-watch-flexy-comments-panel-max-height":m+"px","--ytd-comments-engagement-panel-content-height":m+"px"})})},
onYtShowEngagementPanelScrimAction_:function(O){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",O)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Wd(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(O){var m=_.ZO(this.hostElement).querySelector("#engagement-panel-scrim");O?m.addEventListener("tap",_.f7(this,this.onEngagementPanelScrimClick_)):m.removeEventListener("tap",_.f7(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(O){if(this.hostElement.contains(O)&&!this.scrollToAnimation_.isAnimating()){var m=O.offsetTop-24;O=O.offsetTop+O.offsetHeight+24;var G=this.getPageScrollingElement(),B=this.getScrollTop(),Q=B+G.clientHeight-56;if(m<B+56)m-=56;else if(O>Q)m=O-G.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,m),500)}},
onYtSignalActionScrollToComments:function(){var O=this.hostElement.querySelector("#comments");if(O&&!this.scrollToAnimation_.isAnimating()){O=O.offsetTop-56-24;if(_.V("kevlar_comment_teaser_scroll_to_midpoint")&&(O-=_.TP().height/3,O<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,O),500)}},
onYtEngagementPanelVisibleChanged:function(O,m,G){this.active&&this.trackEngagementPanelVisibility&&!_.CTh.includes(G)&&(m==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(G),m!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&m!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(G),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(O){return O?"":"watch-active-metadata"},
computeNewMetadataClass:function(O){return O?"watch-active-metadata":""},
computeFullBleedPlayer:function(O,m){return O||m},
computeDefaultLayout:function(O){return!O},
computeDefaultTwoColumnLayout:function(O,m){return!O&&m},
computeWatchWhilePanelsActive:function(O,m){return O||m},
computeNoBorderOnChat:function(O){return _.V("web_watch_theater_chat_no_border")&&O},
computeLiveChatPresentAndExpanded:function(O,m){return O&&!m},
computePanelExpanded:function(O,m,G){return O||m||G},
onChangeMarkersVisibility:function(O){_.$i(this).getPlayerPromise().then(function(m){var G;(G=m.changeMarkerVisibility)==null||G.call(m,_.b(O,_.Yw).isVisible||!1,_.b(O,_.Yw).entityKeys||[],_.b(O,_.Yw).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(O){this.liveChatCollapsed=O.detail;_.Kf().dispatch(_.LP8(O.detail))},
provideRenderingData:function(O,m){switch(O){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=m;break;case "PRIMARY_INFO":_.V("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=m);this.videoPrimaryInfoRendererValue=m==null?void 0:m.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.V("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=m);this.videoSecondaryInfoRendererValue=m==null?void 0:m.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
m;break;case "CLARIFICATION":this.clarifyBoxValue=m;break;case "LIVE_CHAT":this.conversationBar=m;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=m;break;case "PLAYLIST":this.externalPlaylistData_=m!=null?m:{};break;case "MERCH_SHELF":this.merchShelfValue=m==null?void 0:m.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=m;break;case "OFFER_MODULE":this.offerModule=m;break;case "LIMITED_STATE":this.limitedStateValue=m;break;case "DONATION_SHELF":this.donation=m;break;
case "ALERTS":this.alertsValue=m;break;case "COMMENTS":this.comments=m;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=m;break;case "ENGAGEMENT_PANELS":this.engagementPanels=m;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=m;break;case "RICH_GRID_RENDERER":this.richGridRendererData=m;break;case "EXPANDABLE_METADATA":this.expandableMetadata=m;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=m}},
toggleCinematicsActive:function(O){this.cinematicsActive=O},
isMiniplayerActive:function(){return _.KR().resolve(_.c$).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(O){return UD0.map(function(m){return O.find(function(G){var B;return(G==null?void 0:(B=G.engagementPanelSectionListRenderer)==null?void 0:B.targetId)===m})}).filter(function(m){return m!==void 0})},
getNonLearningJourneyEngagementPanels:function(O){return O.filter(function(m){var G;return!UD0.includes((m==null?void 0:(G=m.engagementPanelSectionListRenderer)==null?void 0:G.targetId)||"")})}}];var tjA;var AM=function(){var O=_.u.apply(this,arguments)||this;O.flexy=!0;O.learningJourney=!0;O.viewTransitionEnabled=_.V("enable_player_resize_transition");O.smallerChatMinHeight=_.V("live_chat_smaller_min_height");O.cinematicTheaterMode=_.V("web_cinematic_theater_mode");O.transparentTheaterMode=_.V("web_transparent_theater_mode");O.cinematicFullscreen=_.V("web_cinematic_fullscreen");O.useLargerMaxPlayerValue=_.V("kevlar_flexy_use_larger_player_value");O.cinematicFullscreenV2=_.V("web_cinematic_fullscreen_v2");
O.isDarkTheme=document.documentElement.hasAttribute("dark");O.theaterLargerPlayer=_.V("web_watch_theater_larger_player");O.defaultCollapsePlaylist=_.V("web_watch_default_collapse_playlist");O.enableCanvasLayout=_.V("web_enable_canvas_on_learning_journey");return O};
_.X(AM,_.u);_.v=AM.prototype;_.v.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.v.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.v.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.v.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.v.ready=function(){var O=this,m=function(){O.onColumnScroll()};
this.primary.addEventListener("scroll",m);this.secondary.addEventListener("scroll",m)};
_.v.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.v.updateIsTwoColumnsFromBinding=function(O){_.V("web_watch_update_narrow_width_killswitch")||_.Kf().dispatch(_.mG8(!O.detail.value));this.ytdWatchBehavior.isTwoColumns_=O.detail.value};
_.v.updateFlexySmallWindowFromBinding=function(O){this.ytdWatchBehavior.flexySmallWindow_=O.detail.value};
_.v.updateFlexyLargeWindowFromBinding=function(O){this.ytdWatchBehavior.flexyLargeWindow_=O.detail.value};
_.v.updateWatchWhileWindowSizeSufficientFromBinding=function(O){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=O.detail.value};
_.v.updateWatchNextCanShowMoreFromBinding=function(O){this.ytdWatchBehavior.watchNextCanShowMore=O.detail.value};
_.v.updateShownItemsFromBinding=function(O){O.detail.path?this.set(O.detail.path,O.detail.value):this.ytdWatchBehavior.watchNextShownItems=O.detail.value};
_.v.getElement=function(O){switch(O){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23186_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23186_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.vr.Object.defineProperties(AM.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.pageVisualEffects)return!1;for(var m=0;m<this.data.pageVisualEffects.length;m++)if(O=_.b(this.data.pageVisualEffects[m],_.BW))return m=void 0,(m=O.config)==null?void 0:m.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.learningJourneyEngagementPanels)==null?void 0:O.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var O,m=(O=this.learningJourneyEngagementPanels)==null?void 0:O.find(function(z){var J;return(z==null?void 0:(J=z.engagementPanelSectionListRenderer)==null?void 0:J.panelIdentifier)==="learning-journey-engagement-panel"});
if(m){var G,B,Q,H,M,R,x,t,W;if(O=(t=((x=(M=((H=m==null?void 0:(G=m.engagementPanelSectionListRenderer)==null?void 0:(B=G.content)==null?void 0:(Q=B.sectionListRenderer)==null?void 0:Q.contents)!=null?H:[])[0])==null?void 0:(R=M.itemSectionRenderer)==null?void 0:R.contents)!=null?x:[])[0])==null?void 0:(W=t.accordionViewModel)==null?void 0:W.onTitleTap){var Z=_.eg(O);if(Z)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.XJ.instance.resolveCommand(Z)}}}}}}});
_.vr.Object.defineProperties(AM,{template:{configurable:!0,enumerable:!0,get:function(){if(tjA===void 0){var O=document.createElement("template");_.f(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);tjA=O}O=tjA;return O}}});
AM.prototype.updateMiniplayerIsActiveValue=AM.prototype.updateMiniplayerIsActiveValue;AM.prototype.updateScrollTopValue=AM.prototype.updateScrollTopValue;AM.prototype.updateFullscreenValue=AM.prototype.updateFullscreenValue;AM.prototype.updateTheaterValue=AM.prototype.updateTheaterValue;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],AM.prototype,"ytComponentBehavior",void 0);
_.c([_.h(qDa.YtdLearningJourneyWatchBehavior),_.Y("design:type",Object)],AM.prototype,"ytdWatchBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],AM.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],AM.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],AM.prototype,"playerData",void 0);_.c([_.g(),_.Y("design:type",Object)],AM.prototype,"browseData",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AM.prototype,"flexy",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AM.prototype,"learningJourney",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AM.prototype,"viewTransitionEnabled",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AM.prototype,"smallerChatMinHeight",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AM.prototype,"cinematicTheaterMode",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AM.prototype,"transparentTheaterMode",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AM.prototype,"cinematicFullscreen",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AM.prototype,"useLargerMaxPlayerValue",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AM.prototype,"cinematicFullscreenV2",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AM.prototype,"isDarkTheme",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],AM.prototype,"theaterLargerPlayer",void 0);_.c([_.g(),_.Y("design:type",Object)],AM.prototype,"defaultCollapsePlaylist",void 0);_.c([_.g(),_.Y("design:type",Object)],AM.prototype,"enableCanvasLayout",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("playerData","browseData","enableCanvasLayout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AM.prototype,"showBrowseResponse",null);_.c([_.g({reflectToAttribute:!0}),_.T("playerData","enableCanvasLayout"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],AM.prototype,"showWatchResponse",null);_.c([_.g({selector:_.c6}),_.Y("design:type",Object)],AM.prototype,"theaterValue",void 0);
_.c([_.g({selector:_.Yg}),_.Y("design:type",Object)],AM.prototype,"fullscreenValue",void 0);_.c([_.g({selector:_.am}),_.Y("design:type",Object)],AM.prototype,"scrollTopValue",void 0);_.c([_.g({selector:_.Ys}),_.Y("design:type",Object)],AM.prototype,"miniplayerIsActiveValue",void 0);_.c([_.uc("#ytd-plj-player"),_.Y("design:type",HTMLElement)],AM.prototype,"ytdPlayer",void 0);_.c([_.uc("#playlist"),_.Y("design:type",HTMLElement)],AM.prototype,"JSC$23186_ytdPlaylistPanelRenderer",void 0);
_.c([_.cO("ytd-comments"),_.Y("design:type",HTMLElement)],AM.prototype,"ytdComments",void 0);_.c([_.uc("#primary"),_.Y("design:type",HTMLElement)],AM.prototype,"primary",void 0);_.c([_.uc("#secondary"),_.Y("design:type",HTMLElement)],AM.prototype,"secondary",void 0);_.c([_.uc("#player-container"),_.Y("design:type",HTMLElement)],AM.prototype,"playerContainer",void 0);_.c([_.uc("#cinematics"),_.Y("design:type",HTMLElement)],AM.prototype,"JSC$23186_cinematics",void 0);
_.c([_.Tw("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AM.prototype,"updateTheaterValue",null);_.c([_.Tw("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AM.prototype,"updateFullscreenValue",null);_.c([_.Tw("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AM.prototype,"updateScrollTopValue",null);
_.c([_.Tw("miniplayerIsActiveValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],AM.prototype,"updateMiniplayerIsActiveValue",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AM.prototype,"cinematicLightTheme",null);_.c([_.g({reflectToAttribute:!0}),_.T("learningJourneyEngagementPanels"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AM.prototype,"hasLearningJourneyPanels",null);
_.c([_.T("learningJourneyEngagementPanels"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],AM.prototype,"backButtonData",null);_.c([_.l({is:"ytd-watch-learning-journey"})],AM);_.Ci.registerService(_.qPp,AM);
_.aw();
}catch(e){_._DumpException(e)}
try{
_.lj("Tm0L3c");
var BjA;var QaG;var HIa=function(){return _.u.apply(this,arguments)||this};
_.X(HIa,_.u);_.c([_.l({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],HIa);
_.y(HIa,"ytd-ghost-comments-renderer",function(){if(QaG===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);QaG=O}O=QaG;return O},{mode:1});var vV0;var Kd0=function(){return _.u.apply(this,arguments)||this};
_.X(Kd0,_.u);_.c([_.l({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Kd0);
_.y(Kd0,"ytd-ghost-watch-metadata-renderer",function(){if(vV0===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);vV0=O}O=vV0;return O},{mode:1});var F8=function(){var O=_.u.apply(this,arguments)||this;O.ghostGridRenderer={rows:6};O.smallerChatMinHeight=_.V("live_chat_smaller_min_height");O.cinematicTheaterMode=_.V("web_cinematic_theater_mode");O.transparentTheaterMode=_.V("web_transparent_theater_mode");O.darkerPanels=_.V("web_watch_darker_panels");O.cinematicFullscreen=_.V("web_cinematic_fullscreen");O.cinematicFullscreenV2=_.V("web_cinematic_fullscreen_v2");O.isDarkTheme=document.documentElement.hasAttribute("dark");return O};
_.X(F8,_.u);_.v=F8.prototype;_.v.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.v.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.v.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.v.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.v.ready=function(){var O=this,m=function(){O.onColumnScroll()};
this.primary.addEventListener("scroll",m);this.secondary.addEventListener("scroll",m)};
_.v.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.v.updateIsTwoColumnsFromBinding=function(O){this.ytdWatchBehavior.isTwoColumns_=O.detail.value};
_.v.updateFlexySmallWindowFromBinding=function(O){this.ytdWatchBehavior.flexySmallWindow_=O.detail.value};
_.v.updateFlexyLargeWindowFromBinding=function(O){this.ytdWatchBehavior.flexyLargeWindow_=O.detail.value};
_.v.updateWatchWhileWindowSizeSufficientFromBinding=function(O){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=O.detail.value};
_.v.updateWatchNextCanShowMoreFromBinding=function(O){this.ytdWatchBehavior.watchNextCanShowMore=O.detail.value};
_.v.updateShownItemsFromBinding=function(O){_.V("swatcheroo_direct_use_rich_grid")||(O.detail.path?this.set(O.detail.path,O.detail.value):this.ytdWatchBehavior.watchNextShownItems=O.detail.value)};
_.v.getElement=function(O){switch(O){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23174_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23174_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.vr.Object.defineProperties(F8.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.pageVisualEffects)return!1;for(var m=0;m<this.data.pageVisualEffects.length;m++)if(O=_.b(this.data.pageVisualEffects[m],_.BW))return m=void 0,(m=O.config)==null?void 0:m.enableInLightTheme;return!1}}});
F8.prototype.updateMiniplayerIsActiveValue=F8.prototype.updateMiniplayerIsActiveValue;F8.prototype.updateScrollTopValue=F8.prototype.updateScrollTopValue;F8.prototype.updateFullscreenValue=F8.prototype.updateFullscreenValue;F8.prototype.updateTheaterValue=F8.prototype.updateTheaterValue;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],F8.prototype,"ytComponentBehavior",void 0);
_.c([_.h(_.mDc.YtdWatchBehavior),_.Y("design:type",Object)],F8.prototype,"ytdWatchBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],F8.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],F8.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],F8.prototype,"ghostGridRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],F8.prototype,"playerData",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],F8.prototype,"smallerChatMinHeight",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],F8.prototype,"cinematicTheaterMode",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],F8.prototype,"transparentTheaterMode",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],F8.prototype,"darkerPanels",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],F8.prototype,"cinematicFullscreen",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],F8.prototype,"cinematicFullscreenV2",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],F8.prototype,"isDarkTheme",void 0);_.c([_.g({selector:_.c6}),_.Y("design:type",Object)],F8.prototype,"theaterValue",void 0);_.c([_.g({selector:_.Yg}),_.Y("design:type",Object)],F8.prototype,"fullscreenValue",void 0);_.c([_.g({selector:_.am}),_.Y("design:type",Object)],F8.prototype,"scrollTopValue",void 0);
_.c([_.g({selector:_.Ys}),_.Y("design:type",Object)],F8.prototype,"miniplayerIsActiveValue",void 0);_.c([_.uc("#ytd-player"),_.Y("design:type",HTMLElement)],F8.prototype,"ytdPlayer",void 0);_.c([_.uc("#playlist"),_.Y("design:type",HTMLElement)],F8.prototype,"JSC$23174_ytdPlaylistPanelRenderer",void 0);_.c([_.uc("#ytd-comments"),_.Y("design:type",HTMLElement)],F8.prototype,"ytdComments",void 0);_.c([_.uc("#primary"),_.Y("design:type",HTMLElement)],F8.prototype,"primary",void 0);
_.c([_.uc("#secondary"),_.Y("design:type",HTMLElement)],F8.prototype,"secondary",void 0);_.c([_.uc("#player-container"),_.Y("design:type",HTMLElement)],F8.prototype,"playerContainer",void 0);_.c([_.uc("#cinematics"),_.Y("design:type",HTMLElement)],F8.prototype,"JSC$23174_cinematics",void 0);_.c([_.Tw("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],F8.prototype,"updateTheaterValue",null);
_.c([_.Tw("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],F8.prototype,"updateFullscreenValue",null);_.c([_.Tw("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],F8.prototype,"updateScrollTopValue",null);_.c([_.Tw("miniplayerIsActiveValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],F8.prototype,"updateMiniplayerIsActiveValue",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],F8.prototype,"cinematicLightTheme",null);
_.y(F8,"ytd-watch-grid",function(){if(BjA===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);BjA=O}O=BjA;return O},{mode:2});_.Ci.registerService(_.x7N,F8);
_.aw();
}catch(e){_._DumpException(e)}
try{
_.lj("CF909");
var GXA;var P2=function(){var O=_.u.apply(this,arguments)||this;O.viewTransitionEnabled=_.V("enable_player_resize_transition");O.smallerChatMinHeight=_.V("live_chat_smaller_min_height");O.cinematicTheaterMode=_.V("web_cinematic_theater_mode");O.transparentTheaterMode=_.V("web_transparent_theater_mode");O.cinematicFullscreen=_.V("web_cinematic_fullscreen");O.useLargerMaxPlayerValue=_.V("kevlar_flexy_use_larger_player_value");O.isDarkTheme=document.documentElement.hasAttribute("dark");O.defaultCollapsePlaylist=
_.V("web_watch_default_collapse_playlist");O.retroModeReduxValue=!1;O.persistentPanelVisibleValue=!1;return O};
_.X(P2,_.u);_.v=P2.prototype;_.v.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.v.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.v.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.v.updateRetroModeReduxValue=function(){_.V("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.v.updatePersistentPanelVisibleValue=function(){_.V("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.v.ready=function(){var O=this,m=function(){O.onColumnScroll()};
this.primary.addEventListener("scroll",m);this.secondary.addEventListener("scroll",m)};
_.v.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.v.updateIsTwoColumnsFromBinding=function(O){_.V("web_watch_update_narrow_width_killswitch")||_.Kf().dispatch(_.mG8(!O.detail.value));this.ytdWatchBehavior.isTwoColumns_=O.detail.value};
_.v.updateFlexySmallWindowFromBinding=function(O){this.ytdWatchBehavior.flexySmallWindow_=O.detail.value};
_.v.updateFlexyLargeWindowFromBinding=function(O){this.ytdWatchBehavior.flexyLargeWindow_=O.detail.value};
_.v.updateWatchWhileWindowSizeSufficientFromBinding=function(O){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=O.detail.value};
_.v.updateWatchNextCanShowMoreFromBinding=function(O){this.ytdWatchBehavior.watchNextCanShowMore=O.detail.value};
_.v.updateShownItemsFromBinding=function(O){O.detail.path?this.set(O.detail.path,O.detail.value):this.ytdWatchBehavior.watchNextShownItems=O.detail.value};
_.v.getElement=function(O){switch(O){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23169_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23169_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.vr.Object.defineProperties(P2.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.pageVisualEffects)return!1;for(var m=0;m<this.data.pageVisualEffects.length;m++)if(O=_.b(this.data.pageVisualEffects[m],_.BW))return m=void 0,(m=O.config)==null?void 0:m.enableInLightTheme;return!1}}});
_.vr.Object.defineProperties(P2,{template:{configurable:!0,enumerable:!0,get:function(){if(GXA===void 0){var O=document.createElement("template");_.f(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);GXA=O}O=GXA;return O}}});
P2.prototype.updatePersistentPanelVisibleValue=P2.prototype.updatePersistentPanelVisibleValue;P2.prototype.updateRetroModeReduxValue=P2.prototype.updateRetroModeReduxValue;P2.prototype.updateScrollTopValue=P2.prototype.updateScrollTopValue;P2.prototype.updateFullscreenValue=P2.prototype.updateFullscreenValue;P2.prototype.updateTheaterValue=P2.prototype.updateTheaterValue;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],P2.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],P2.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.mDc.YtdWatchBehavior),_.Y("design:type",Object)],P2.prototype,"ytdWatchBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],P2.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],P2.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],P2.prototype,"playerData",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],P2.prototype,"viewTransitionEnabled",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],P2.prototype,"smallerChatMinHeight",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],P2.prototype,"cinematicTheaterMode",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],P2.prototype,"transparentTheaterMode",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],P2.prototype,"cinematicFullscreen",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],P2.prototype,"useLargerMaxPlayerValue",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],P2.prototype,"isDarkTheme",void 0);_.c([_.g(),_.Y("design:type",Object)],P2.prototype,"defaultCollapsePlaylist",void 0);_.c([_.g({selector:_.c6}),_.Y("design:type",Object)],P2.prototype,"theaterValue",void 0);
_.c([_.g({selector:_.Yg}),_.Y("design:type",Object)],P2.prototype,"fullscreenValue",void 0);_.c([_.g({selector:_.am}),_.Y("design:type",Object)],P2.prototype,"scrollTopValue",void 0);_.c([_.g({selector:_.Ys}),_.Y("design:type",Object)],P2.prototype,"miniplayerIsActive",void 0);_.c([_.g({selector:function(O){return O.watch.isWatchRetroMode}}),
_.Y("design:type",Object)],P2.prototype,"retroModeReduxValue",void 0);_.c([_.g({selector:_.sv.persistentPanelVisibleSelector}),_.Y("design:type",Object)],P2.prototype,"persistentPanelVisibleValue",void 0);_.c([_.cO("ytd-player"),_.Y("design:type",HTMLElement)],P2.prototype,"ytdPlayer",void 0);_.c([_.uc("#playlist"),_.Y("design:type",HTMLElement)],P2.prototype,"JSC$23169_ytdPlaylistPanelRenderer",void 0);_.c([_.cO("ytd-comments"),_.Y("design:type",HTMLElement)],P2.prototype,"ytdComments",void 0);
_.c([_.uc("#primary"),_.Y("design:type",HTMLElement)],P2.prototype,"primary",void 0);_.c([_.uc("#secondary"),_.Y("design:type",HTMLElement)],P2.prototype,"secondary",void 0);_.c([_.uc("#player-container"),_.Y("design:type",HTMLElement)],P2.prototype,"playerContainer",void 0);_.c([_.uc("#below"),_.Y("design:type",HTMLElement)],P2.prototype,"below",void 0);_.c([_.uc("#cinematics"),_.Y("design:type",HTMLElement)],P2.prototype,"JSC$23169_cinematics",void 0);
_.c([_.uc("#persistent-panel-container"),_.Y("design:type",HTMLElement)],P2.prototype,"persistentPanelContainer",void 0);_.c([_.Tw("theaterValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P2.prototype,"updateTheaterValue",null);_.c([_.Tw("fullscreenValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P2.prototype,"updateFullscreenValue",null);
_.c([_.Tw("scrollTopValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P2.prototype,"updateScrollTopValue",null);_.c([_.Tw("retroModeReduxValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P2.prototype,"updateRetroModeReduxValue",null);_.c([_.Tw("persistentPanelVisibleValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],P2.prototype,"updatePersistentPanelVisibleValue",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],P2.prototype,"cinematicLightTheme",null);_.c([_.l({is:"ytd-watch-flexy"})],P2);_.Ci.registerService(_.icN,P2);
_.aw();
}catch(e){_._DumpException(e)}
try{
_.lj("nmfa2d");
var qJ0;var yS=function(){var O=_.u.apply(this,arguments)||this;O.hidden=!1;O.errorScreen=null;O.playlistData={};return O};
_.X(yS,_.u);_.v=yS.prototype;_.v.getPlayer=function(){return this.ytdPlayer};
_.v.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:_.VH(["aa","eocs"])}}};
_.v.onActiveChanged=function(){_.Kf().dispatch(_.DIq(this.ytPageBehavior.active))};
_.v.playerDataChanged=function(){var O;(O=this.watchController)==null||O.setPlayerResponse(this.playerData)};
_.v.dataChanged=function(){var O;(O=this.watchController)==null||O.setWatchNextResponse(this.data)};
_.v.sizeChanged=function(){var O,m;(m=(O=this.metadata).resize)==null||m.call(O)};
_.v.attached=function(){this.watchController=new _.aY(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.v.detached=function(){_.Kd(this.watchController);this.watchController=void 0};
_.v.getPlayerContainer=function(){return this.playerContainer};
_.v.getElement=function(O){switch(O){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.v.provideRenderingData=function(O,m){switch(O){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=m;break;case "ERROR_SCREEN":this.errorScreen=m!=null?m:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=m;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=m;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=m;break;case "RICH_METADATA":this.richMetadataRowContainer=m;break;case "CLARIFICATION":this.clarificationData=m;break;case "PLAYLIST":this.playlistData=
m!=null?m:{};break;case "MERCH_SHELF":this.merchShelf=m;break;case "TICKET_SHELF":this.ticketShelf=m;break;case "LIMITED_STATE":this.limitedState=m;break;case "DONATION_SHELF":this.donationShelf=m;break;case "ALERTS":this.alerts=m}};
_.vr.Object.defineProperties(yS.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return!this.hidden&&!!((O=this.data)==null?0:(m=O.contents)==null?0:(G=m.twoColumnWatchNextResults)==null?0:G.conversationBar)}}});
yS.prototype.sizeChanged=yS.prototype.sizeChanged;yS.prototype.dataChanged=yS.prototype.dataChanged;yS.prototype.playerDataChanged=yS.prototype.playerDataChanged;yS.prototype.onActiveChanged=yS.prototype.onActiveChanged;_.c([_.h(_.vW.YtPageBehavior),_.Y("design:type",Object)],yS.prototype,"ytPageBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],yS.prototype,"ytComponentBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],yS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],yS.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"playerData",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],yS.prototype,"hidden",void 0);_.c([_.uc("#ytd-player"),_.Y("design:type",HTMLElement)],yS.prototype,"ytdPlayer",void 0);_.c([_.uc("#player-container"),_.Y("design:type",HTMLElement)],yS.prototype,"playerContainer",void 0);_.c([_.uc("#metadata"),_.Y("design:type",Object)],yS.prototype,"metadata",void 0);_.c([_.uc("#playlist"),_.Y("design:type",HTMLElement)],yS.prototype,"playlistPanel",void 0);
_.c([_.g({selector:_.B5a,reflectToAttribute:!0}),_.Y("design:type",Object)],yS.prototype,"fixie",void 0);_.c([_.g({selector:_.Gcn,reflectToAttribute:!0}),_.Y("design:type",Object)],yS.prototype,"singleColumn",void 0);_.c([_.g({selector:function(O){return _.c6(O)&&!_.Yg(O)},
reflectToAttribute:!0}),_.Y("design:type",Object)],yS.prototype,"theater",void 0);_.c([_.g({selector:_.Yg,reflectToAttribute:!0}),_.Y("design:type",Object)],yS.prototype,"fullscreen",void 0);_.c([_.g({selector:_.dIG}),_.Y("design:type",Object)],yS.prototype,"windowSize",void 0);_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"singleColumnContents",void 0);_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"errorScreen",void 0);_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"playlistData",void 0);
_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"videoPrimaryInfoRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"videoSecondaryInfoRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"richMetadataRowContainer",void 0);_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"clarificationData",void 0);_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"commentsEntryPointHeaderRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"ticketShelf",void 0);
_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"merchShelf",void 0);_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"donationShelf",void 0);_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"limitedState",void 0);_.c([_.g(),_.Y("design:type",Object)],yS.prototype,"alerts",void 0);_.c([_.T("playlistData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],yS.prototype,"hasPlaylistData",null);
_.c([_.T("data","hidden"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],yS.prototype,"hasChat",null);_.c([_.Tw("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yS.prototype,"onActiveChanged",null);_.c([_.Tw("playerData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yS.prototype,"playerDataChanged",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yS.prototype,"dataChanged",null);_.c([_.Tw("windowSize","singleColumn"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yS.prototype,"sizeChanged",null);
_.y(yS,"ytd-watch-fixie",function(){if(qJ0===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);qJ0=O}O=qJ0;return O},{mode:1});_.Ci.registerService(_.RYS,yS);
_.aw();
}catch(e){_._DumpException(e)}
try{
_.lj("xwEKAe");
var deG=function(O){return _.GH(O)?O.getAttribute("jsname")==="coFSxe":!1},wsL=function(O,m){m.id||(m.id="ow"+_.sS(m));
O.setAttribute("jsowner",m.id);O.__owner=m;var G=_.w9(m,deG);G&&(_.LPs.has(G)||_.LPs.set(G,[]),_.LPs.get(G).push(O));(G=_.Etu.get(m))||_.Etu.set(m,G=[]);G.includes(O)||G.push(O);m.setAttribute("__IS_OWNER",!0)},e_h=function(){var O=_.nG5(1);
O=_.vf(O,_.uFO);if(!(_.bp6(O)||O[_.Qs5]&&!O.__hasBeenSet))return O.value},Dec=function(O){var m=_.TC();
if(m.getFlag(202))m=m.getFlag(201);else{var G;m=(O==null?void 0:(G=O.config)==null?void 0:G.settingOnByDefault)!==void 0?O.config.settingOnByDefault:!_.V("web_shorts_cinematics_disabled_by_default")}return m},sja=function(O){var m=_.TC();
_.gr(0,201,O);_.gr(0,202,!0);m.save()},N88=function(O){return(O=_.LKr(O))?_.oDY(O):0},P29=function(O){return O.shorts.isSmallScreenSqueezeback},FUO=function(O){return O.shorts.isPlaybackStarted},mJc=function(O){var m=_.nG5(2),G=new Set;
_.LS(function(){return void G.forEach(function(B){return void B()})});
return function(B){var Q=_.Hf(m);try{var H=Am9(OBo(O),B);G.add(H);return function(){H();G.delete(H)}}finally{_.Hf(Q)}}},Gu8=function(O){var m=O.children;
var G=O.root;_.EZ(function(){var B=mJc(G)(m);_.LS(B)});
return document.createTextNode("")},Am9=function(O,m){var G=Bo9(O);
(O=e_h())&&wsL(G,O);_.tN.setUp();m=_.K(_.TDp(m,!0));O=m.next().value;var B=m.next().value;m=_.K(O);for(O=m.next();!O.done;O=m.next())G.appendChild(O.value);_.tN.log(G);_.tN.tearDown();return function(){B();G.remove()}},OBo=function(O){if(typeof O==="string")return O=document.querySelector(O),_.e89(O),O;
if(_.R8(O)&&O.nodeType===Node.ELEMENT_NODE)return O;if(!O.__value&&!O.__optional){var m=_.vc5.USE_ELEMENT_NOT_ASSIGNED(O.__expectedTagName);O.__hasErrored=!0;throw m;}return O.value},Bo9=function(O){var m=document.createElementNS(O.namespaceURI,O.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return O.appendChild(m)},Q3q=function(O,m,G,B){O=m-O;
G=B-G;return Math.sqrt(O*O+G*G)},HBh=function(O,m){O&&_.KR().resolve(_.Mu).resolveCommand(O,{forceClickLogging:!0,
form:{element:m}})},vhc=function(O,m,G,B){O=m-O;
G=B-G;return Math.sqrt(O*O+G*G)},KAP=function(O,m){O&&_.KR().resolve(_.Mu).resolveCommand(O,{forceClickLogging:!0,
form:{element:m}})},$JL=function(){return _.KR().resolve(_.wS).dismissedIndices},MKO=function(O,m){var G,B,Q,H,M,R,x,t,W;
return _.r(function(Z){if(Z.nextAddress==1){G=_.KR().resolve(_.KAJ);H=(B=G)==null?void 0:(Q=B.reelWatchEndpointMap)==null?void 0:Q.reelWatchSequence;R=(M=O.innertubeTransportService)!=null?M:_.KR().resolve(_.Dk);if(!H)return Z.jumpTo(2);x=H();return(t=x.JSC$13116_getRequest(m,{}))?Z.yield(_.rS(R,t.innerTubeRequest,t.input,m.clickTrackingParams,t.config),4):Z.jumpTo(2)}return Z.nextAddress!=2?(W=Z.yieldResult,Z.return(W)):Z.return(void 0)})},rsh=function(O){return _.xs({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:O}})},R0P=function(O){return _.xs({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:O}})},iBa=function(O){return _.xs({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:O}})};var nu=function(O,m){if(O instanceof nu)this.array_=O.array_;else{var G;if(G=_.YO(O))a:{for(var B=G=0;B<O.length;B++){if(!_.YO(O[B])||G>0&&O[B].length!=G){G=!1;break a}for(var Q=0;Q<O[B].length;Q++)if(typeof O[B][Q]!=="number"){G=!1;break a}G==0&&(G=O[B].length)}G=G!=0}if(G)this.array_=_.cM(O);else if(O instanceof _.hY)this.array_=xJc(O.height,O.width);else if(typeof O==="number"&&typeof m==="number"&&O>0&&m>0)this.array_=xJc(O,m);else throw Error("Go");}this.size_=new _.hY(this.array_[0].length,
this.array_.length)},q9q=function(O,m,G){for(var B=0;B<O.getSize().height;B++)for(var Q=0;Q<O.getSize().width;Q++)m.call(G,O.array_[B][Q],B,Q,O)},UJP=function(O,m){var G=new nu(O.getSize());
q9q(O,function(B,Q,H){G.array_[Q][H]=m.call(void 0,B,Q,H,O)});
return G},xJc=function(O,m){for(var G=[],B=0;B<O;B++){G[B]=[];
for(var Q=0;Q<m;Q++)G[B][Q]=0}return G};
nu.prototype.add=function(O){if(!_.WU8(this.size_,O.getSize()))throw Error("Ho");return UJP(this,function(m,G,B){return m+O.array_[G][B]})};
nu.prototype.equals=function(O,m){if(this.size_.width!=O.size_.width||this.size_.height!=O.size_.height)return!1;m=m||0;for(var G=0;G<this.size_.height;G++)for(var B=0;B<this.size_.width;B++)if(!_.to8(this.array_[G][B],O.array_[G][B],m))return!1;return!0};
nu.prototype.getSize=function(){return this.size_};
var Xl=function(O,m,G){return m>=0&&m<O.size_.height&&G>=0&&G<O.size_.width?O.array_[m][G]:null};
nu.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var tKo=function(O,m,G,B){if(!(m>=0&&m<O.size_.height&&G>=0&&G<O.size_.width))throw Error("Io`"+m+"`"+G+"`"+O.size_.height+"`"+O.size_.width);O.array_[m][G]=B};
nu.prototype.multiply=function(O){if(O instanceof nu){if(this.size_.width!=O.getSize().height)throw Error("Jo");return WAc(this,O)}if(typeof O==="number")return ZBO(this,O);throw Error("Ko");};
var WAc=function(O,m){var G=new nu(O.size_.height,m.getSize().width);q9q(G,function(B,Q,H){for(var M=B=0;M<this.size_.width;M++)B+=Xl(this,Q,M)*Xl(m,M,H);tKo(G,Q,H,B)},O);
return G},ZBO=function(O,m){return UJP(O,function(G){return G*m})};var z0P=new _.q$("inlineSurveyRenderer");var JsO=new _.q$("interstitialViewModel");var VK5=new _.q$("reelNavigateCommand");var bBG=new _.q$("reelNonVideoContentDismissalCommand");var nhA=new _.q$("showReelsCommentsOverlayCommand");var Xbc=new _.q$("shortsSuggestedActionViewModel");var fxc=new _.q$("videoInteractionPopUpRenderer");var h08;var ToL;var gh8;var fu=function(){var O=_.u.apply(this,arguments)||this;O.ctaVisualElement=null;O.currentCsn=null;return O};
_.X(fu,_.u);_.v=fu.prototype;_.v.onDataChanged=function(){this.maybeLogShows()};
_.v.computeButtonShape=function(){var O=this;if(this.data)return{buttonText:_.HX(this.data.text),state:"active",onTap:function(){O.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.v.maybeCreateCtaVe=function(){var O;if((O=this.data)!=null&&O.badgeInteractionLogging){var m;if(O=(m=this.data.badgeInteractionLogging)==null?void 0:m.trackingParams)this.ctaVisualElement=_.Ez(O)}};
_.v.maybeLogClicks=function(){this.currentCsn=_.yA(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Gk(this.currentCsn,this.ctaVisualElement)};
_.v.maybeLogShows=function(){this.currentCsn=_.yA(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Or(this.currentCsn,[this.ctaVisualElement])};
_.v.onTap=function(){var O;if((O=this.data)!=null&&O.onClickCommand){var m;this.ytComponentBehavior.resolveCommand((m=this.data)==null?void 0:m.onClickCommand);this.maybeLogClicks()}};
fu.prototype.onDataChanged=fu.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],fu.prototype,"ytComponentBehavior",void 0);_.c([_.g({}),_.Y("design:type",Object)],fu.prototype,"data",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fu.prototype,"onDataChanged",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],fu);
_.y(fu,"ytd-shopping-overlay-badge-renderer",function(){if(gh8!==void 0)return gh8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return gh8=O},{mode:1});_.qi(_.N53,"reel-sound-metadata-view-model",{props:{data:_.RZ,overlayDensity:_.RZ}});_.qi(_.swJ,"player-disclosure-view-model",{props:{data:_.VZ,extractOverlay:_.VZ}});_.qi(_.j1m,"pivot-button-view-model",{props:{data:_.RZ,className:_.RZ}});_.qi(_.I_3,"reel-action-bar-view-model",{props:{data:_.VZ,buttonShapeOverrideables:_.VZ}});_.qi(_.a(function(O){function m(){var rN,xO,XI,Vf,US=(xO=_.b((rN=P())==null?void 0:rN.command,_.lq))==null?void 0:(XI=xO.item)==null?void 0:(Vf=XI.notificationTextRenderer)==null?void 0:Vf.successResponseText;if(US)_.xc(B.value,"yt-open-popup-action",[_.rH(US),B.value]);else if(w())HBh(w(),n.value);else{var CN;HBh((CN=P())==null?void 0:CN.command,n.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var G=O.data;var B=_.Al("yt-player-overlay-video-interactions");O=_.K(_.Wf("0px",void 0,"O3ow6c"));var Q=O.next().value,H=O.next().value;O=_.K(_.Wf("0px",void 0,"V0TSYd"));var M=O.next().value,R=O.next().value;O=_.K(_.Wf(0,void 0,"ipRdDf"));var x=O.next().value,t=O.next().value;O=_.K(_.Wf(0,void 0,"ztYEKb"));var W=O.next().value,Z=O.next().value,z=function(){var rN;if(((rN=_.Jt())==null?void 0:rN.getPlayerState())!==-1){B.value.style.display="inherit";var xO;(xO=_.Jt())==null||xO.removeEventListener("onStateChange",
z)}J()},J=function(){var rN=document.querySelector("video");
if(rN){t(rN.getBoundingClientRect().width);Z(rN.getBoundingClientRect().height);var xO;H((rN==null?void 0:(xO=rN.style)==null?void 0:xO.left)||"0px");var XI;R((rN==null?void 0:(XI=rN.style)==null?void 0:XI.top)||"0px")}};
_.ER(function(){var rN,xO,XI;if(((rN=_.Jt())==null?void 0:rN.getPlayerState())===-1&&Math.round(((XI=(xO=_.Jt())==null?void 0:xO.getVideoAspectRatio())!=null?XI:0)*100)!==Math.round(x()/W()*100)){B.value.style.display="none";var Vf,US;Z(x()/((US=(Vf=_.Jt())==null?void 0:Vf.getVideoAspectRatio())!=null?US:1))}},"ikzYW");
_.EZ(function(){var rN;(rN=_.Jt())==null||rN.addEventListener("onStateChange",z);window.addEventListener("resize",J);J();var xO,XI,Vf;if((Vf=(xO=G())==null?void 0:(XI=xO.regions)==null?void 0:XI[0])==null||!Vf.transformationMatrix)throw Error("Oo");var US;if((US=G())==null?0:US.trackingParams){var CN;_.uK().graftServerVe((CN=G().trackingParams)!=null?CN:"")}_.LS(function(){var oe;(oe=_.Jt())==null||oe.removeEventListener("onStateChange",z);window.removeEventListener("resize",J)})});
var n=_.Al("svg"),I=_.K(_.Wf(!1,void 0,"Thzfnf"));O=I.next().value;var S=I.next().value,L=_.K(_.Wf(!1,void 0,"nsniPd"));I=L.next().value;var C=L.next().value,P=function(){var rN;return _.b((rN=G())==null?void 0:rN.popUp,fxc)},w=function(){var rN;
return(rN=G())==null?void 0:rN.command},d=function(){return _.b(w(),_.I_)!==void 0};
L=_.nH(function(){m();return!1});
var D={},OS={};return _.q("yt-player-overlay-video-interactions",{el:B},_.q("svg",{"on:mouseover":_.nH(function(){d()&&S(!0);C(!0);return!1}),
"on:mouseout":_.nH(function(){S(!1);C(!1);return!1}),
"on:keydown":_.nH(function(rN){rN.key==="Enter"&&m();return!1}),
"on:focus":_.nH(function(){d()&&S(!0);return!1}),
"on:blur":_.nH(function(){d()&&S(!1);return!1}),
el:n,tabindex:0,"aria-label":function(){var rN;return(rN=G())==null?void 0:rN.a11yString},
id:"player-overlay-video-interaction-svg",class:_.bE("ytPlayerOverlayVideoInteractionsInteractionsSvg",(D.ytPlayerOverlayVideoInteractionsInteractionsSvgHover=O,D),(OS.ytPlayerOverlayVideoInteractionsInteractionsSvgHideOutline=I,OS)),role:"button",style:function(){var rN,xO,XI,Vf=(XI=(rN=G())==null?void 0:(xO=rN.regions)==null?void 0:xO[0].transformationMatrix)!=null?XI:[];rN=x();xO=W();XI=[];for(var US=0,CN=-1;US<Vf.length;US++)US%3===0&&(CN++,XI[CN]=[]),XI[CN].push(Vf[US]);Vf=new nu(XI);XI=new nu([[0,
1,1,0],[0,0,1,1],[1,1,1,1]]);XI=Vf.multiply(XI);Vf=new nu([[0,0],[0,0],[0,0],[0,0]]);for(US=0;US<XI.getSize().width;US++){CN=Xl(XI,0,US);var oe=Xl(XI,1,US);if(CN===null||oe===null)throw Error("No`"+(US+1).toString());tKo(Vf,US,0,CN*rN);tKo(Vf,US,1,oe*xO)}rN=Xl(Vf,0,0);US=Xl(Vf,1,0);xO=Xl(Vf,0,1);CN=Xl(Vf,1,1);if(rN===null||US===null||xO===null||CN===null)throw Error("Lo");XI=Q3q(rN,US,xO,CN);oe=Xl(Vf,3,0);Vf=Xl(Vf,3,1);if(oe===null||Vf===null)throw Error("Mo");Vf=Q3q(rN,oe,xO,Vf);CN=(Number((CN*-1).toFixed(2))-
Number((xO*-1).toFixed(2)))/(Number(US.toFixed(2))-Number(rN.toFixed(2)));oe=Math.atan(CN)*180/Math.PI;US=CN===Number.POSITIVE_INFINITY?-90:CN===Number.NEGATIVE_INFINITY?90:Object.is(CN,-0)?180:CN===0?0:CN>0?oe*-1:rN<US?oe*-1:Math.abs(oe)+180;return"left:calc("+rN+"px + "+Q()+"); top:calc("+(xO+"px + "+M()+"); width:")+(XI+"px; height:")+(Vf+"px; transform:rotate(")+(US+"deg);")},
"on:click":L}))},"Ek"),"yt-player-overlay-video-interactions",{props:{data:_.VZ}});_.qi(_.OS9,"yt-reel-metapanel-view-model",{props:{data:_.VZ,overlayDensity:_.VZ,extractOverlay:_.VZ}});var urO=_.a(function(O){var m=O.children;var G=O.region;O=_.K(_.Wf(void 0,void 0,"MsSyte"));var B=O.next().value,Q=O.next().value;O=_.K(_.Wf("0px",void 0,"U9Yihd"));var H=O.next().value,M=O.next().value;O=_.K(_.Wf("0px",void 0,"UO1H6d"));var R=O.next().value,x=O.next().value;O=_.K(_.Wf(0,void 0,"sMVTKb"));var t=O.next().value,W=O.next().value;O=_.K(_.Wf(0,void 0,"kZZV8b"));var Z=O.next().value,z=O.next().value,J=function(){var P=B();if(P){var w;if(((w=_.Jt())==null?void 0:w.getPlayerState())!==-1){P.style.display=
"inherit";var d;(d=_.Jt())==null||d.removeEventListener("onStateChange",J)}I()}},n=function(){var P=document.querySelectorAll("video");
return Array.from(P).find(function(w){var d;return w==null?void 0:(d=w.style)==null?void 0:d.width})},I=function(){var P=n();
if(P){W(P.getBoundingClientRect().width);z(P.getBoundingClientRect().height);var w;M((P==null?void 0:(w=P.style)==null?void 0:w.left)||"0px");var d;x((P==null?void 0:(d=P.style)==null?void 0:d.top)||"0px")}};
_.ER(function(){var P=B();if(P){var w,d,D;if(((w=_.Jt())==null?void 0:w.getPlayerState())===-1&&Math.round(((D=(d=_.Jt())==null?void 0:d.getVideoAspectRatio())!=null?D:0)*100)!==Math.round(t()/Z()*100)){P.style.display="none";var OS,rN;z(t()/((rN=(OS=_.Jt())==null?void 0:OS.getVideoAspectRatio())!=null?rN:1))}}},"jJLfwe");
var S=function(){I()},L;
_.EZ(function(){I();var P;if(!(G==null?0:(P=G())==null?0:P.transformationMatrix))throw Error("Oo");var w;(w=_.Jt())==null||w.addEventListener("onStateChange",J);if(window.ResizeObserver){if(P=n())L=new ResizeObserver(S),L.observe(P)}else window.addEventListener("resize",I);_.LS(function(){var d;(d=_.Jt())==null||d.removeEventListener("onStateChange",J);L?L.disconnect():window.removeEventListener("resize",I)})});
var C=function(){var P,w,d=(w=G==null?void 0:(P=G())==null?void 0:P.transformationMatrix)!=null?w:[];P=t();w=Z();for(var D=[],OS=0,rN=-1;OS<d.length;OS++)OS%3===0&&(rN++,D[rN]=[]),D[rN].push(d[OS]);d=new nu(D);D=new nu([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);D=d.multiply(D);d=new nu([[0,0],[0,0],[0,0],[0,0]]);for(OS=0;OS<D.getSize().width;OS++){rN=Xl(D,0,OS);var xO=Xl(D,1,OS);if(rN===null||xO===null)throw Error("No`"+(OS+1).toString());tKo(d,OS,0,rN*P);tKo(d,OS,1,xO*w)}P=Xl(d,0,0);OS=Xl(d,1,0);w=Xl(d,0,
1);rN=Xl(d,1,1);if(P===null||OS===null||w===null||rN===null)throw Error("Lo");D=vhc(P,OS,w,rN);xO=Xl(d,3,0);d=Xl(d,3,1);if(xO===null||d===null)throw Error("Mo");d=vhc(P,xO,w,d);rN=(Number((rN*-1).toFixed(2))-Number((w*-1).toFixed(2)))/(Number(OS.toFixed(2))-Number(P.toFixed(2)));xO=Math.atan(rN)*180/Math.PI;OS=rN===Number.POSITIVE_INFINITY?-90:rN===Number.NEGATIVE_INFINITY?90:Object.is(rN,-0)?180:rN===0?0:rN>0?xO*-1:P<OS?xO*-1:Math.abs(xO)+180;return"left:calc("+P+"px + "+H()+"); top:calc("+(w+"px + "+
R()+"); width:")+(D+"px; height:")+(d+"px; transform:rotate(")+(OS+"deg);")};
return _.q(Gu8,{root:"#sticker-layer"},function(){return _.q("yt-overlay-sticker",{el:_.Mi(Q),style:C,class:"ytOverlayStickerHost"},m)})},"Fk");var j35=_.a(function(O){function m(){var J,n,I,S,L=(n=_.b((J=x())==null?void 0:J.command,_.lq))==null?void 0:(I=n.item)==null?void 0:(S=I.notificationTextRenderer)==null?void 0:S.successResponseText;if(L)_.xc(B.value,"yt-open-popup-action",[_.rH(L),B.value]);else if(t())KAP(t(),B.value);else{var C;KAP((C=x())==null?void 0:C.command,B.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var G=O.data;var B=_.Al("svg"),Q=_.K(_.Wf(!1,void 0,"i4BL1"));O=Q.next().value;var H=Q.next().value,M=_.K(_.Wf(!1,void 0,"FzRJKd"));Q=M.next().value;var R=M.next().value,x=function(){var J;return _.b((J=G())==null?void 0:J.popUp,fxc)},t=function(){var J;
return(J=G())==null?void 0:J.command},W=function(){return _.b(t(),_.I_)!==void 0};
M=_.nH(function(){m();return!1});
var Z={},z={};return _.q("svg",{"on:mouseover":_.nH(function(){W()&&H(!0);R(!0);return!1}),
"on:mouseout":_.nH(function(){H(!1);R(!1);return!1}),
"on:keydown":_.nH(function(J){J.key==="Enter"&&m();return!1}),
"on:focus":_.nH(function(){W()&&H(!0);return!1}),
"on:blur":_.nH(function(){W()&&H(!1);return!1}),
el:B,tabindex:0,"aria-label":function(){var J;return(J=G())==null?void 0:J.a11yString},
id:"player-overlay-video-interaction-svg",class:_.bE("ytPlayerOverlayInteractionInteractionsSvg",(Z.ytPlayerOverlayInteractionInteractionsSvgHover=O,Z),(z.ytPlayerOverlayInteractionInteractionsSvgHideOutline=Q,z)),role:"button","on:click":M})},"Hk");_.qi(_.a(function(O){var m=O.data;_.EZ(function(){var G;if((G=m())==null?0:G.trackingParams){var B;_.uK().graftServerVe((B=m().trackingParams)!=null?B:"")}});
return _.q("yt-player-overlay-interaction",null,_.q(urO,{region:function(){var G,B;return(G=m())==null?void 0:(B=G.regions)==null?void 0:B[0]}},_.q(j35,Object.assign({},O))))},"Gk"),"yt-player-overlay-interaction",{props:{data:_.VZ}});var hU=function(){var O=_.u.apply(this,arguments)||this;O.showScrubber=!1;O.isWatchWhileMode=!1;O.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");O.enableNewStickers=_.V("use_shorts_sticker_overlay_web");O.anchoredPanelActive=!1;O.enableLivingroomLayout=_.V("reels_enable_livingroom_layout");O.enablePlayerMetadataContainer=_.V("reels_web_enable_metadata_container");O.enableSqueezebackPanels=_.V("web_shorts_enable_squeezeback_panels");O.useAspectRatio=_.V("web_use_aspect_ratio");O.isSqueezebackActive=
!1;O.smallScreenSqueezeback=!1;O.isPlayerStarted=!1;O.overlayDensity=0;O.extractOverlay=!1;O.extractActionBar=!1;O.isOverlay=!1;O.isImmersive=!1;O.isImmersiveHorizontal=!1;O.isFullscreen=!1;O.onWindowResized=function(){var m;O.set("isImmersive",((m=window.getComputedStyle(O.hostElement))==null?void 0:m.getPropertyValue("--immersive-mode-on"))==="1");O.set("isImmersiveHorizontal",O.isImmersive&&O.enableLivingroomLayout&&!O.isWatchWhileMode)};
return O};
_.X(hU,_.u);_.v=hU.prototype;_.v.updateIsOverlay=function(O){this.isOverlay=O.detail.value};
_.v.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.v.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.v.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.v.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.v.onOverlayDensityChange=function(){var O=_.ZO(this.hostElement).querySelector("ytd-info-panel-container-renderer");O&&(O.set("extractOverlay",this.extractOverlay),O.set("roundedContainer",this.extractOverlay))};
_.v.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.v.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.v.ready=function(){(_.V("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"))&&(!_.V("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.ib("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.ib("reels_action_justified_content")||"flex-start")};
_.v.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",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.v.setFakeLoadingButtons=function(){_.V("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Xm("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Xm("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Xm("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Xm("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Xm("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()};
_.v.setEmptyOverlayMetadata=function(){_.V("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}))};
_.vr.Object.defineProperties(hU.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.infoPanel)}}});
hU.prototype.onOverlayDensityChange=hU.prototype.onOverlayDensityChange;hU.prototype.onIsActiveChanged=hU.prototype.onIsActiveChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],hU.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],hU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],hU.prototype,"ytdReduxBehavior",void 0);
_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],hU.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],hU.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],hU.prototype,"isActive",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],hU.prototype,"hidden",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],hU.prototype,"useShortsIcon",void 0);
_.c([_.g({value:"left"}),_.Y("design:type",String)],hU.prototype,"buttonTooltipPosition",void 0);_.c([_.g({value:_.V("reels_enable_livingroom_layout")?"top":"left"}),_.Y("design:type",String)],hU.prototype,"likeButtonTooltipPosition",void 0);_.c([_.g({value:"none"}),_.Y("design:type",String)],hU.prototype,"textTransform",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"showScrubber",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"isWatchWhileMode",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data.infoPanel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hU.prototype,"hasInfoPanel",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"enableAnchoredPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"enableNewStickers",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"anchoredPanelActive",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"enableLivingroomLayout",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],hU.prototype,"enablePlayerMetadataContainer",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"enableSqueezebackPanels",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"useAspectRatio",void 0);_.c([_.g({selector:_.WQp,reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"isSqueezebackActive",void 0);_.c([_.g({selector:P29,reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"smallScreenSqueezeback",void 0);_.c([_.g({selector:FUO}),_.Y("design:type",Object)],hU.prototype,"isPlayerStarted",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"overlayDensity",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"extractOverlay",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"extractActionBar",void 0);_.c([_.g(),_.Y("design:type",Object)],hU.prototype,"isOverlay",void 0);_.c([_.g(),_.Y("design:type",Object)],hU.prototype,"isImmersive",void 0);
_.c([_.g(),_.Y("design:type",Object)],hU.prototype,"isImmersiveHorizontal",void 0);_.c([_.g({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.Y("design:type",Boolean)],hU.prototype,"isShortsImmersive",void 0);_.c([_.g({computed:"computeButtonOverride(extractActionBar)"}),_.Y("design:type",Object)],hU.prototype,"buttonOverride",void 0);
_.c([_.g({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.Y("design:type",Object)],hU.prototype,"actionBarButtonOverride",void 0);_.c([_.g({selector:_.R$,reflectToAttribute:!0}),_.Y("design:type",Object)],hU.prototype,"isFullscreen",void 0);_.c([_.Tw("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hU.prototype,"onIsActiveChanged",null);
_.c([_.Tw("extractOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],hU.prototype,"onOverlayDensityChange",null);_.c([_.l({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],hU);
_.y(hU,"ytd-reel-player-overlay-renderer",function(){if(ToL!==void 0)return ToL;var O=document.createElement("template");_.f(O,'\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]]" extract-overlay="[[extractOverlay]]" 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="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" 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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ToL=O},{mode:1});var Ix0;var Tl=function(){var O=_.u.apply(this,arguments)||this;O.videoDuration=0;O.playedTime=0;O.isActive=!1;O.JSC$22366_playerEvents=new Map;return O};
_.X(Tl,_.u);_.v=Tl.prototype;_.v.created=function(){this.JSC$22366_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22366_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.v.attached=function(){this.getPlayerAndInitializeListeners()};
_.v.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22366_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.f7(this,this.onPageChanged))};
_.v.getPlayerAndInitializeListeners=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return m=_.M1(),m?G.yield(m.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.f7(O,O.onPageChanged)),G.jumpTo(0));O.player=G.yieldResult;O.initializePlayerListeners();_.ju(G)})};
_.v.onPageChanged=function(O){var m=this;return _.r(function(G){if(G.nextAddress==1)return O.detail.newPageType!=="ytd-shorts"?G.return():G.yield(_.rR().getPlayerPromise(),2);m.player=G.yieldResult;m.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.f7(m,m.onPageChanged));_.ju(G)})};
_.v.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22366_playerEvents)};
_.v.onVideoDataChange=function(O){var m=this;return _.r(function(G){if(!m.player||O.type!=="newdata")return G.return();m.videoDuration=_.V("web_shorts_use_progress_state_for_gapless")?m.player.getProgressState(O.playertype).seekableEnd:m.player.getDuration(O.playertype);m.playedTime=0;_.ju(G)})};
_.v.onVideoProgress=function(O){var m=this,G,B;return _.r(function(Q){if(!m.player)return Q.return();G=m.player.getPresentingPlayerType();B=m.player.getPlayerState();m.videoDuration=_.V("web_shorts_use_progress_state_for_gapless")?m.player.getProgressState(G).seekableEnd:m.player.getDuration(G);m.playedTime=B===0?m.videoDuration:O;_.ju(Q)})};
_.v.getPercentPlayed=function(O,m){return O?_.Lk(m/O,0,1):0};
_.vr.Object.defineProperties(Tl.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 O="";return O=this.videoDuration&&this.playedTime?O+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):O+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Tl.prototype,"componentBehavior",void 0);_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",_.Vw)],Tl.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Tl.prototype,"player",void 0);_.c([_.g(),_.Y("design:type",Object)],Tl.prototype,"videoDuration",void 0);_.c([_.g(),_.Y("design:type",Object)],Tl.prototype,"playedTime",void 0);_.c([_.g(),_.Y("design:type",Object)],Tl.prototype,"isActive",void 0);
_.c([_.T("videoDuration","playedTime"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Tl.prototype,"percentPlayed",null);_.c([_.T("videoDuration","playedTime"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Tl.prototype,"percentPlayedStyle",null);_.c([_.T("videoDuration","isActive"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Tl.prototype,"hideProgressBar",null);
_.y(Tl,"ytd-progress-bar-line",function(){if(Ix0===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);Ix0=O}O=Ix0;return O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var pbo;_.qi(_.nB3,"ytm-closed-captioning-button",{props:{captionIconType:_.VZ,onClick:_.RZ,ariaLabel:_.VZ,ariaPressed:_.VZ,isOverlay:_.RZ,isModern:_.RZ}});_.qi(_.DZ3,"desktop-shorts-volume-controls",{props:{orientation:_.VZ}});var gz=function(){var O=_.u.apply(this,arguments)||this;O.playerState=null;O.isMuted=!1;O.shortsModernControlsEnabled=_.V("web_shorts_modern_controls");O.volumeControlsOrientationState=_.V("web_shorts_modern_controls")?"vertical_down":"horizontal_right";O.isOverlay=!0;O.captionIconType=-1;O.ariaLabel="";O.overlayDensity=0;O.extractActionBar=!0;O.JSC$22369_playerEvents=new Map;O.onClosedCaptionsButtonClick=function(){O.player&&_.XG(O.player)&&(O.player.toggleSubtitles(),O.updateCaptionIconType())};
return O};
_.X(gz,_.u);_.v=gz.prototype;_.v.created=function(){this.JSC$22369_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22369_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22369_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.v.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Zv(28662);this.playPauseButtonClientVE=_.Zv(36842);this.fullscreenButtonToggleOffClientVE=_.Zv(222256);this.fullscreenButtonToggleOnClientVE=_.Zv(222257);var O=_.yA(),m=_.kf();O&&m&&(_.V("combine_ve_grafts")?(_.LK(_.uK(),this.muteButtonClientVE,m),_.LK(_.uK(),this.playPauseButtonClientVE,m)):_.Fm(O,m,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.v.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22369_playerEvents),this.player=null)};
_.v.updateCaptionIconType=function(){var O=-1,m=void 0,G=_.Xm("CLOSED_CAPTIONS_DISABLED");this.player&&_.XG(this.player)&&(_.R29(this.player)?(m=!0,G=_.Xm("CLOSED_CAPTIONS_ON"),O=1):(m=!1,G=_.Xm("CLOSED_CAPTIONS_OFF"),O=0));this.captionIconType=O;this.ariaPressedState=m;this.ariaLabel=G};
_.v.getPlayerAndInitializeListeners=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return m=_.M1(),m?G.yield(m.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.f7(O,O.onPageChanged)),G.jumpTo(0));O.player=G.yieldResult;O.initializePlayerListeners();_.ju(G)})};
_.v.onPageChanged=function(O){var m=this;return _.r(function(G){if(G.nextAddress==1)return O.detail.newPageType!=="ytd-shorts"?G.return():G.yield(_.rR().getPlayerPromise(),2);m.player=G.yieldResult;m.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.f7(m,m.onPageChanged));_.ju(G)})};
_.v.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22369_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.v.onPlayerStateChange=function(O){this.playerState=O};
_.v.onPlayerVolumeChange=function(O){this.isMuted=O.muted};
_.v.onPlayPauseButtonClick=function(){var O=this,m,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(_.rR().getPlayerPromise(),2);m=B.yieldResult;(G=_.yA())&&O.playPauseButtonClientVE&&_.Gk(G,O.playPauseButtonClientVE);m.getPlayerState()!==1?m.playVideo():m.pauseVideo();_.ju(B)})};
_.v.computePlayPauseIcon=function(O){return O===2||O===-1||O===5?_.V("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.V("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.V("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.v.computeFullscreenLabel=function(O){return O?_.Xm("FULLSCREEN_EXIT_LABEL"):_.Xm("FULLSCREEN_ENTER_LABEL")};
_.v.computePlayPauseLabel=function(O){return O===1||O===3?_.Xm("PLAYER_LABEL_PAUSE"):_.Xm("PLAYER_LABEL_PLAY")};
_.v.onMuteButtonClick=function(){var O=this,m,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(_.rR().getPlayerPromise(),2);m=B.yieldResult;(G=_.yA())&&O.muteButtonClientVE&&_.Gk(G,O.muteButtonClientVE);m.isMuted()?m.unMute(!0):m.mute(!0);_.ju(B)})};
_.v.computeMuteIcon=function(O){return O?"miniplayer:volume-off":"miniplayer:volume-up"};
_.v.computeMuteLabel=function(O){return O?_.Xm("PLAYER_LABEL_UNMUTE"):_.Xm("PLAYER_LABEL_MUTE")};
_.v.onFullscreenButtonClick=function(){var O=_.yA();O&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Gk(O,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Gk(O,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.NKy()};
_.vr.Object.defineProperties(gz.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var O=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(){O.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?_.V("web_shorts_modern_controls")?"player_full_exit_alt":_.V("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.V("web_shorts_modern_controls")?"player_full_enter_alt":_.V("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],gz.prototype,"componentBehavior",void 0);_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",_.Vw)],gz.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],gz.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],gz.prototype,"player",void 0);_.c([_.g(),_.Y("design:type",Object)],gz.prototype,"playerState",void 0);_.c([_.g(),_.Y("design:type",Object)],gz.prototype,"isMuted",void 0);
_.c([_.g({computed:"computePlayPauseIcon(playerState)"}),_.Y("design:type",String)],gz.prototype,"playPauseIcon",void 0);_.c([_.g({computed:"computeMuteIcon(isMuted)"}),_.Y("design:type",String)],gz.prototype,"muteIcon",void 0);_.c([_.g({selector:_.R$}),_.Y("design:type",Boolean)],gz.prototype,"isFullscreen",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],gz.prototype,"shortsModernControlsEnabled",void 0);
_.c([_.g(),_.Y("design:type",Object)],gz.prototype,"volumeControlsOrientationState",void 0);_.c([_.g(),_.Y("design:type",Object)],gz.prototype,"isOverlay",void 0);_.c([_.g(),_.Y("design:type",Object)],gz.prototype,"captionIconType",void 0);_.c([_.g(),_.Y("design:type",Object)],gz.prototype,"ariaLabel",void 0);_.c([_.g(),_.Y("design:type",Object)],gz.prototype,"ariaPressedState",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],gz.prototype,"overlayDensity",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],gz.prototype,"extractActionBar",void 0);_.c([_.T("playerState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gz.prototype,"playPauseButtonData",null);_.c([_.T("isFullscreen"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],gz.prototype,"fullscreenButtonData",null);_.c([_.g(),_.Y("design:type",Object)],gz.prototype,"onClosedCaptionsButtonClick",void 0);
_.c([_.T("isFullscreen"),_.Y("design:type",String),_.Y("design:paramtypes",[])],gz.prototype,"fullscreenIcon",null);
_.y(gz,"ytd-shorts-player-controls",function(){if(pbo===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);pbo=O}O=pbo;return O},{mode:1});var S9c;_.qi(_.Jz3,"yt-interstitial-view-model",{props:{data:_.VZ}});var Eho=_.a(function(O){var m=O.data;return _.q("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.q("h1",{class:"reelWatchBreakViewModelHostTitle"},_.q(_.Jg,{text:function(){return m().title}})),_.q("h2",{class:"reelWatchBreakViewModelHostBody"},_.q(_.Jg,{text:function(){return m().body},
isOverlay:!0})),_.q(_.u5,{data:function(){return m().buttons}},{buttonViewModel:function(G,B){return _.q("div",{class:function(){return B()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.q(_.oF,{data:G.data}))}}))},"Ik");
Eho.idomCompat=!0;_.qi(Eho,"reel-watch-break-view-model",{props:{data:_.VZ}});var uI=function(){return _.u.apply(this,arguments)||this};
_.X(uI,_.u);uI.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}}};
_.vr.Object.defineProperties(uI.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var O;return!!_.b((O=this.data)==null?void 0:O.renderer,z0P)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var O;return!!_.b((O=this.data)==null?void 0:O.renderer,JsO)}}});
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],uI.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],uI.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],uI.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("data.renderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uI.prototype,"isSurvey",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.renderer"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],uI.prototype,"isInterstitialViewModel",null);_.c([_.l({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],uI);
_.y(uI,"ytd-reel-non-video-content-renderer",function(){if(S9c!==void 0)return S9c;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
return S9c=O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var LA8;_.qi(_.eEJ,"desktop-shorts-player-controls",{});var jW=function(){var O=_.u.apply(this,arguments)||this;O.isPlayerPaused=!1;O.isPlayerStarted=!1;O.showPlayerControls=!1;O.showScrubber=!1;O.autoHideJobId=0;O.modern=_.V("web_button_rework");O.overlayType=_.ib("web_shorts_expanded_overlay_type");O.panelData=void 0;O.isWatchWhileMode=!1;O.hasError=!1;O.panelShowDelayMs=1;O.scrubberComponent={};O.isFullscreen=!1;O.shouldHideOverlay=!1;O.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");O.enablePersistentAnchoredPanel=_.V("desktop_shorts_v2_persistent_anchored_panel");
O.hideWatchWhilePanel=_.V("web_shorts_hide_watch_while_panel");O.useAspectRatio=_.V("web_use_aspect_ratio");O.isPersistentPanelActive=!1;O.anchoredPanelActive=!1;O.isShortsPipActive=!1;O.smallScreenSqueezeback=!1;O.enableFlexibleOverlay=_.V("web_enable_flexible_overlay");O.overlayDensity=0;O.extractOverlay=!1;O.extractActionBar=!1;O.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
O.onWindowResized=function(){_.GS(O,"calculateOverlayDensity",function(){O.calculateOverlayDensity()},100)};
return O};
_.X(jW,_.u);_.v=jW.prototype;_.v.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.v.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.v.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var O=_.KR().resolve(_.Ah);this.isWatchWhileMode&&_.ln.addJob(function(){O.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0)}}else this.panelData=void 0};
_.v.handleShowReelsCommentsOverlayCommand=function(O){O=_.b(O,nhA);this.isActive&&(O==null?0:O.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))};
_.v.updateEngagementPanelVisibility=function(O,m){O&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:m?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:O}})};
_.v.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.v.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.KR().resolve(_.wS).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.v.handleWatchWhilePanelScrimClick=function(){var O=_.KR().resolve(_.Ah);this.activeWatchWhilePanel&&(O.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.v.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.v.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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.v.handlePlayerClick=function(O){var m=this,G,B;if((B=(G=window).matchMedia)!=null&&B.call(G,"(any-pointer: coarse)").matches||!O)this.showPlayerControls=!0,_.ln.cancelJob(this.autoHideJobId),this.autoHideJobId=_.uT(_.ln,function(){m.showPlayerControls=!1},4E3)};
_.v.isFirstReel=function(){return this.index===0};
_.v.handleMouseenter=function(){_.ln.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.v.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.v.handleScrubberEnter=function(){this.showScrubber=!0};
_.v.handleScrubberLeave=function(){this.showScrubber=!1};
_.v.maybeLogNonDefaultAspectRatio=function(){var O;(O=this.data)!=null&&O.thumbnail&&this.isActive&&.5625!==N88(this.data.thumbnail)&&_.FyI("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.v.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var O=document.querySelector("#shorts-container");if(O){var m=!1,G,B=this.playerContainer.offsetWidth;O=O.offsetWidth/2-B/2;O>=368?(O=1,m=G=!0):O>=72?(O=0,G=!0):(O=2,G=!1);B>=600?O=1:window.innerWidth<=599&&(O=2,G=m=!1);this.isPersistentPanelActive&&(O=0,m=!1);this.extractActionBar=G;_.V("web_enable_flexible_overlay")&&(this.overlayDensity=O,this.extractOverlay=m);var Q;(Q=this.onOverlayDensityChanged)==
null||Q.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.v.onOverlayDensityChange=function(){var O;(O=this.onOverlayDensityChanged)==null||O.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(O=_.ZO(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))O.set("overlayDensity",this.overlayDensity),O.set("extractOverlay",this.extractOverlay),O.set("extractActionBar",this.extractActionBar);if(O=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))O.overlayDensity=this.overlayDensity,O.extractOverlay=
this.extractOverlay,O.extractActionBar=this.extractActionBar};
_.v.isVideoContent=function(O){_.KR().resolve(_.wS);return!!_.b(O,_.pf)};
_.v.isNonVideoContent=function(O){_.KR().resolve(_.wS);return!!_.b(O,_.Q0)};
_.v.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.vr.Object.defineProperties(jW.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var O,m;return _.V("web_enable_format_first")||((O=this.data)==null?void 0:O.adsOverlay)&&_.V("web_enable_format_first_ads_only")||((m=this.data)==null?void 0:m.reelPlayerOverlayRenderer)&&_.V("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.V("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var O;return!this.isActive||!this.isPlayerStarted||(O=this.data)!=null&&O.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var O;if(((O=this.data)==null?0:O.command)&&this.isVideoContent(this.data.command)){var m,G;if(((m=this.data)==null?0:m.adsOverlay)&&Object.keys((G=this.data)==null?void 0:G.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var B,Q;if(((B=this.data)==null?0:B.reelPlayerOverlayRenderer)&&Object.keys((Q=this.data)==null?void 0:Q.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
jW.prototype.onOverlayDensityChange=jW.prototype.onOverlayDensityChange;jW.prototype.calculateOverlayDensity=jW.prototype.calculateOverlayDensity;jW.prototype.maybeLogNonDefaultAspectRatio=jW.prototype.maybeLogNonDefaultAspectRatio;jW.prototype.onEngagementPanelsChanged=jW.prototype.onEngagementPanelsChanged;jW.prototype.onScrubberDataChange=jW.prototype.onScrubberDataChange;jW.prototype.updateShouldHideOverlay=jW.prototype.updateShouldHideOverlay;
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],jW.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],jW.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],jW.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Number)],jW.prototype,"index",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],jW.prototype,"isActive",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],jW.prototype,"isHiddenInDom",void 0);_.c([_.g(),_.Y("design:type",Object)],jW.prototype,"isPlayerPaused",void 0);_.c([_.g({selector:FUO}),_.Y("design:type",Object)],jW.prototype,"isPlayerStarted",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"showPlayerControls",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"showScrubber",void 0);_.c([_.g(),_.Y("design:type",Object)],jW.prototype,"autoHideJobId",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"modern",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"overlayType",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],jW.prototype,"ytdReduxBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],jW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],jW.prototype,"watchWhileEngagementPanels",void 0);_.c([_.g(),_.Y("design:type",Object)],jW.prototype,"panelData",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"isWatchWhileMode",void 0);_.c([_.g(),_.Y("design:type",String)],jW.prototype,"activeWatchWhilePanel",void 0);
_.c([_.g(),_.Y("design:type",Object)],jW.prototype,"hasError",void 0);_.c([_.g(),_.Y("design:type",Object)],jW.prototype,"panelShowDelayMs",void 0);_.c([_.g(),_.Y("design:type",Object)],jW.prototype,"scrubberComponent",void 0);_.c([_.g({selector:_.R$,reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"isFullscreen",void 0);_.c([_.g(),_.Y("design:type",Object)],jW.prototype,"shouldHideOverlay",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"enableAnchoredPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"enablePersistentAnchoredPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"hideWatchWhilePanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"useAspectRatio",void 0);
_.c([_.g({selector:_.WQp,reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"isPersistentPanelActive",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"anchoredPanelActive",void 0);_.c([_.g({selector:_.im,reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"isShortsPipActive",void 0);_.c([_.g({selector:P29,reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"smallScreenSqueezeback",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jW.prototype,"enableFormatFirst",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"enableFlexibleOverlay",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"overlayDensity",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"extractOverlay",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jW.prototype,"extractActionBar",void 0);_.c([_.g(),_.Y("design:type",Function)],jW.prototype,"onOverlayDensityChanged",void 0);_.c([_.g(),_.T("isActive","hasError","isPlayerStarted"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jW.prototype,"shouldRenderPlayerElements",null);_.c([_.g(),_.T("isActive","isWatchWhileMode"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jW.prototype,"watchWhileOrPersistentActive",null);
_.c([_.Tw("isActive","hasError","showingExpandedOverlay"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jW.prototype,"updateShouldHideOverlay",null);_.c([_.g({reflectToAttribute:!0}),_.T("isActive","isPlayerStarted","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jW.prototype,"shouldRenderScrubber",null);
_.c([_.Tw("shouldRenderScrubber"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jW.prototype,"onScrubberDataChange",null);_.c([_.T("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jW.prototype,"overlayComponent",null);_.c([_.Tw("watchWhileEngagementPanels"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jW.prototype,"onEngagementPanelsChanged",null);
_.c([_.uc("#player-container"),_.Y("design:type",HTMLElement)],jW.prototype,"playerContainer",void 0);_.c([_.uc("#cinematic-container"),_.Y("design:type",HTMLElement)],jW.prototype,"cinematicContainer",void 0);_.c([_.Tw("isPersistentPanelActive","data.thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jW.prototype,"maybeLogNonDefaultAspectRatio",null);
_.c([_.Tw("isPersistentPanelActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jW.prototype,"calculateOverlayDensity",null);_.c([_.Tw("overlayDensity","extractOverlay","extractActionBar"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jW.prototype,"onOverlayDensityChange",null);_.c([_.l({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],jW);
_.y(jW,"ytd-reel-video-renderer",function(){if(LA8!==void 0)return LA8;var O=document.createElement("template");_.f(O,'\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]]" extract-action-bar="[[extractActionBar]]" 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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return LA8=O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var Im=function(){var O=_.u.apply(this,arguments)||this;O.isPreviousPageShorts=!1;O.index=0;O.delayedActiveIndex=0;O.playablePreviousIndex=null;O.isPlayerPaused=!1;O.isPlayerStarted=!1;O.intersectionObserverThreshold=.6;O.fitToVisibleBounds=!1;O.pageSubtype="shorts";O.enablePreviousContinuation=_.V("shorts_in_playlists_web");O.shortsPipEnabled=_.V("web_shorts_pip");O.isDark=document.documentElement.hasAttribute("dark");O.shortsViewTransitions=_.V("web_shorts_view_transitions");O.isFullscreen=!1;O.isShortsPipActive=
!1;O.buttonOverride={iconPosition:"icon-only",size:"XL"};O.anchoredPanelActive=!1;O.isActive=!1;O.smallScreenPersistentPanel=!1;O.isPersistentPanelActive=!1;O.smallScreenSqueezeBack=!1;O.enableScrollIntoViewCenter=_.V("web_scroll_into_view_center");O.formatFirst=_.V("web_enable_format_first")||_.V("web_enable_format_first_ads_only")||_.V("web_enable_format_first_organic_only");O.enableFlexibleOverlay=_.V("web_enable_flexible_overlay");O.extractOverlay=!1;O.useAspectRatio=_.V("web_use_aspect_ratio");
O.sequenceRefactor=_.V("web_enable_shorts_sequence_refactor");O.isShortsInitialized=!1;O.hidePreviousButtonImmediately=!1;O.showPreviousButtonImmediately=!1;O.endOfNextContinuation=!1;O.currentPlayerIndex=0;O.nextReelVe=_.Zv(56921);O.prevReelVe=_.Zv(56922);O.loopToggleOffVe=_.Zv(198013);O.loopToggleOnVe=_.Zv(198014);O.ambientModeToggleVe=_.Zv(227860);O.reelPlayerPausedStateRendererVe=_.Zv(141313);O.storedPlaybackSpeed=null;O.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"};O.onOverlayDensityChanged=function(m,G,B,Q){m=O.getActiveReelVideo(m);O.extractOverlay=!!B;m==null||m.setAttribute("overlay-density",String(G));B===void 0||m!=null&&m.toggleAttribute("extract-overlay",B);Q===void 0||m!=null&&m.toggleAttribute("extract-action-bar",Q)};
return O};
_.X(Im,_.u);_.v=Im.prototype;_.v.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.v.deflateInactivePreviousSlides=function(){var O=_.Rd("web_shorts_deflate_inactive_slides_aggressive_distance");if(O>0&&this.shortsProcessedSequence&&this.activeIndex){O=this.activeIndex-O;for(var m=0;m<=O;m++){var G=void 0;((G=this.shortsProcessedSequence[m].reelPlayerOverlayRenderer)==null?0:G.metapanel)&&this.set("shortsProcessedSequence."+m+".reelPlayerOverlayRenderer",{});G=void 0;((G=this.shortsProcessedSequence[m].adsOverlay)==null?0:G.adSlotMetadata)&&this.set("shortsProcessedSequence."+
m+".adsOverlay",{})}}};
_.v.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.v.onResize=function(){var O=_.Kf(),m=O.dispatch,G=this.calculateIsSmallWidth();m.call(O,_.xs({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:G}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.v.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:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.v.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var O=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,m=O,G=0;O<250&&(m=O+this.shortsInnerContainer.clientWidth,G=24);_.n7(this.hostElement,{"--ytd-shorts-header-width":m+"px","--ytd-shorts-top-spacing":G+"px"})}};
_.v.isFirstShorts=function(O){return O?this.index===-O.length:this.index===0};
_.v.isActiveReel=function(O,m,G){G&&(m=this.calculatePrevIndex(m,G));return O===m};
_.v.onFullscreenChange=function(){if(_.V("web_fullscreen_shorts")){var O;(O=this.getActiveReelVideo(this.activeIndex))==null||O.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.KR().resolve(_.c$).close(!0)}};
_.v.engagementPanelsChanged=function(){var O;this.watchWhileEngagementPanels=(O=this.data)==null?void 0:O.engagementPanels};
_.v.unregisterPanels=function(){var O=_.KR().resolve(_.Ah);if(this.watchWhileEngagementPanels)for(var m=_.K(this.watchWhileEngagementPanels),G=m.next();!G.done;G=m.next()){var B=G.value,Q=void 0,H=void 0;G=(Q=B.engagementPanelSectionListRenderer)==null?void 0:(H=Q.identifier)==null?void 0:H.tag;B=this.getPanelContentIdentifier(B.engagementPanelSectionListRenderer);O&&(G&&O.panelMap.delete(G),B&&_.V("web_shorts_panel_caching_bugfix")&&(Q=G=void 0,(Q=(G=O).unregisterPanelContent)==null||Q.call(G,B)))}};
_.v.isVideoContent=function(O){return this.isVideoContentCommand(O==null?void 0:O.command)};
_.v.getActiveReelVideo=function(O){return _.ZO(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+O+'"]')};
_.v.calculatePrevIndex=function(O,m){return m?O-((m==null?void 0:m.length)||0):-1};
_.v.onKeydown=function(O){var m=_.$Z(O)||[];if(!_.sqK(m))if(O.code==="ArrowUp")O.preventDefault(),this.handlePrevButtonClick();else if(O.code==="ArrowDown")O.preventDefault(),this.handleNextButtonClick();else if(O.code==="KeyM")this.toggleMuteUnmuteVideo();else if(O.code==="KeyK"||O.code==="Space")this.togglePlayPauseVideo();else if((O.code==="KeyA"||O.code==="ArrowLeft")&&_.V("web_shorts_keyboard_enable_seek_shortcuts")){var G;(G=this.player)==null||G.seekBy(-5)}else if((O.code==="KeyD"||O.code===
"ArrowRight")&&_.V("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var B;(B=this.player)==null||B.seekBy(5)}};
_.v.onServiceRequestCompleted=function(O,m){O=m.data;O.continuationEndpoint&&O.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:O.entries,continuationEndpoint:O.continuationEndpoint}}):O.prevContinuationEndpoint&&O.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:O.prevEntries,prevContinuationEndpoint:O.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.v.handleEngagementPanelVisibilityChanged=function(O,m){var G=_.KR().resolve(_.Ah);if(O&&G){var B=this.getPanelIdentifier(O);if(m==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==B){G.hidePanel(this.activePanel);var Q;this.activePanel=((Q=O.identifier)==null?void 0:Q.tag)||O.panelIdentifier}else this.isPersistentPanelActive=!0,_.Kf().dispatch(rsh(!0)),this.anchoredPanelActive=!0,this.activePanel=B;else m==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
B&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Kf().dispatch(rsh(!1)))}};
_.v.handlePanelScrimClick=function(){var O=_.KR().resolve(_.Ah);this.activePanel&&(O.hidePanel(this.activePanel),_.Kf().dispatch(rsh(!1)))};
_.v.getShortsLoopSetting=function(){var O,m,G,B,Q;return _.r(function(H){switch(H.nextAddress){case 1:return _.V("kevlar_shorts_auto_advance")?H.yield(_.FW.getInstance(),2):H.return(!0);case 2:return(O=H.yieldResult)?H.yield(O.get("sfvles"),3):H.return(!0);case 3:return G=(m=H.yieldResult)!=null?m:!1,H.yield(O.get("sfvle"),4);case 4:return Q=(B=H.yieldResult)!=null?B:!0,G?H.return(Q):H.return(!0)}})};
_.v.handleSignalActionToggleLoopShortsOff=function(){var O=this,m,G,B;return _.r(function(Q){switch(Q.nextAddress){case 1:if(!O.player)return Q.return();O.player.setLoopVideo(!1);m=_.uK();_.oS(m,O.loopToggleOffVe);return Q.yield(_.FW.getInstance(),2);case 2:return(G=Q.yieldResult)?Q.yield(G.set("sfvle",!1),3):Q.return();case 3:return Q.yield(G.set("sfvles",!0),4);case 4:B=_.TC(),_.gr(0,203,!1),_.gr(0,204,!0),B.save(),_.ju(Q)}})};
_.v.handleSignalActionToggleLoopShortsOn=function(){var O=this,m,G,B;return _.r(function(Q){switch(Q.nextAddress){case 1:if(!O.player)return Q.return();O.player.setLoopVideo(!0);m=_.uK();_.oS(m,O.loopToggleOnVe);return Q.yield(_.FW.getInstance(),2);case 2:return(G=Q.yieldResult)?Q.yield(G.set("sfvle",!0),3):Q.return();case 3:return Q.yield(G.set("sfvles",!0),4);case 4:B=_.TC(),_.gr(0,203,!0),_.gr(0,204,!0),B.save(),_.ju(Q)}})};
_.v.handleSignalActionToggleCinematicShortsOn=function(){sja(!0);var O;(O=this.JSC$22393_cinematicController)==null||_.ymP(O,!0);_.oS(_.uK(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.v.handleSignalActionToggleCinematicShortsOff=function(){sja(!1);var O;(O=this.JSC$22393_cinematicController)==null||_.ymP(O,!1);_.oS(_.uK(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.v.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.v.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.v.unhideCurrentOverlay=function(){if(this.overlayContainer){var O=this.overlayContainer.querySelector("#experiment-overlay");O&&_.ln.addLowPriorityJob(function(){O.style.display="unset"},100)}};
_.v.getCurrentShort=function(){if(this.currentEndpoint){var O=this.currentEndpoint;if(this.isNonVideoContentCommand(O)){var m=_.b(O,_.Q0);return{reelNonVideoContentRenderer:_.b(m==null?void 0:m.renderer,_.zA9),command:O}}if(this.data){var G;m=(G=_.b(this.currentEndpoint,_.pf))==null?void 0:G.thumbnail;var B;G=(B=this.data.overlay)==null?void 0:B.reelPlayerOverlayRenderer;_.KR().resolve(_.wS);O=this.data;var Q,H;B=(Q=O.overlay)==null?void 0:(H=Q.shortsAdsRenderer)==null?void 0:H.adSlots;if(B!==void 0)B.length===
0?(_.F4("Shorts ads returned no ad slots."),O=void 0):(B.length>1&&_.F4("Shorts ads has more than one ad slots."),O=_.b(B[0],_.r$2));else{var M,R;O=_.b((M=O.overlay)==null?void 0:(R=M.shortsAdsRenderer)==null?void 0:R.overlay,_.r$2)}M=O;O=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.b(this.currentEndpoint,_.pf),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:G,thumbnail:m,command:O,adsOverlay:M}}}};
_.v.created=function(){var O=this;this.scrollToVideoThrottle=new _.Pu(function(m){var G;(G=O.getActiveReelVideo(m))==null||G.scrollIntoView({behavior:"smooth",block:"nearest",inline:O.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Pu(function(m){var G;(G=O.getActiveReelVideo(m))==null||G.scrollIntoView({behavior:"auto",block:"nearest",inline:O.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.v.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.v.attached=function(){var O=this;_.KR().resolve(_.wS).registerRootElement(this);this.pageScrollElement=_.ZO(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.f7(this,this.processResetAction));_.V("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var m=O.getActiveReelVideo(O.activeIndex);O.maybeCreateIntersectionObserver();m==null||m.scrollIntoView({behavior:"instant",
block:"nearest",inline:O.enableScrollIntoViewCenter?"center":"start"});O.shortsContainer.style.overflowY="scroll"}))};
_.v.updateReelWatchSequenceResponse=function(){var O=this,m;_.V("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((m=_.b(this.currentEndpoint,_.pf))==null?0:m.sequenceParams)&&!this.reelWatchSequenceResponse&&(m=_.KR().resolve(_.wS))&&MKO(m,this.currentEndpoint).then(function(G){G&&(O.reelWatchSequenceResponse=G,_.ln.addLowPriorityJob(function(){O.observeShorts()}))})};
_.v.calculateSqueezebackPanelSize=function(){var O=this,m=window.innerWidth-456-(window.innerHeight-106)*.5625;_.ln.addLowPriorityJob(function(){m<360?_.Kf().dispatch(R0P(!0)):(O.hostElement.style.setProperty("--anchored-panel-width",Math.min(m,480)+"px"),_.Kf().dispatch(R0P(!1)))})};
_.v.detached=function(){var O=_.KR().resolve(_.wS);O.rootElement=void 0;var m;(m=O.unsubscribeFromStore)==null||m.call(O);O.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.f7(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.v.onResizeFinished=function(O,m){var G=this,B=new ResizeObserver(function(){G.shortsContainer.style.overflowY="hidden";_.ln.addLowPriorityJob(function(){m()},100)});
B.observe(O);return B};
_.v.resetDocumentScrollTop=function(){var O,m;if((O=document)==null?0:(m=O.scrollingElement)==null?0:m.scrollTop)document.scrollingElement.scrollTop=0};
_.v.loadPage_=function(O){var m=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),O){var G;!_.V("web_enable_delay_shorts_sequence_call")&&((G=_.b(this.currentEndpoint,_.pf))==null?0:G.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=O;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){m.isPlayerStarted&&(m.handleOnPlaybackCommand(),m.afterPlayerStarted=function(){})};
this.registerPanel(O)}};
_.v.afterPlayerStarted=function(){};
_.v.handleOnPlaybackCommand=function(){if(_.V("web_shorts_comment_stickers")&&this.isPlayerStarted){var O,m=(O=_.b(this.currentEndpoint,_.pf))==null?void 0:O.onPlaybackCommand;m&&this.ytComponentBehavior.resolveCommand(m)}};
_.v.maybeCreateIntersectionObserver=function(){var O=this,m=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==m){this.intersectionObserverThreshold=m;var G={rootMargin:"0px",threshold:m},B;(B=this.intersectionObserver)==null||B.disconnect();this.intersectionObserver=new IntersectionObserver(function(Q){Q=_.K(Q);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,H.intersectionRatio>m){H=Number(H.target.id);if(isNaN(H))break;if(H===O.index)break;
_.XKO();O.loadVideo(H);_.dr("r_vtc")}},G);
this.observeShorts()}};
_.v.observeShorts=function(){var O=[].concat(_.lS(_.ZO(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));O=_.K(O);for(var m=O.next();!m.done;m=O.next()){m=m.value;var G=void 0;(G=this.intersectionObserver)==null||G.observe(m)}};
_.v.initCsi=function(){_.sLu("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var O={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"}},m,G;if((m=this.playerData)==null?0:(G=m.cacheMetadata)==null?0:G.isCacheHit)O.isCacheHit=!0;var B;if(m=(B=_.b(this.currentEndpoint,_.pf))==null?void 0:
B.prefetchTaskId)O.prefetchInfo={taskId:m};_.as(O)};
_.v.isAd=function(){var O,m;return!!((O=_.b(this.currentEndpoint,_.pf))==null?0:(m=O.adClientParams)==null?0:m.isAd)};
_.v.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.v.getPlayerContainer=function(){var O;return(O=_.ZO(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:O.playerContainer};
_.v.onPlayerStateChange=function(O){var m=this;this.isPlayerPaused=O===2;O!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?O===1&&this.index===0&&(this.isPlayerStarted||_.Kf().dispatch(iBa(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Kf().dispatch(iBa(!0)));this.player&&!this.player.getLoopVideo()&&_.ln.addLowPriorityJob(function(){m.getShortsLoopSetting().then(function(G){var B;(B=m.player)==null||B.setLoopVideo(G)})});
this.isPlayerPaused&&_.V("web_shorts_paused_state_logging")&&_.Or(_.yA(),[this.reelPlayerPausedStateRendererVe])};
_.v.isInBackground=function(){var O=window.document.visibilityState;return!(!O||O==="visible")};
_.v.isShortPlayable=function(){if(_.V("kevlar_playable_short_killswitch"))return!0;var O;return(O=this.playerData)!=null&&O.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.v.setNormalPlaybackSpeed=function(){var O=this,m,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(O.getPlayer().getPlayerPromise(),2);m=B.yieldResult;G=m.getPlaybackRate();G!==1&&(O.storedPlaybackSpeed=G,m.setPlaybackRate(1));_.ju(B)})};
_.v.restorePlaybackSpeed=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1)return O.storedPlaybackSpeed===null?G.jumpTo(0):G.yield(O.getPlayer().getPlayerPromise(),3);m=G.yieldResult;m.setPlaybackRate(O.storedPlaybackSpeed);O.storedPlaybackSpeed=null;_.ju(G)})};
_.v.playerDataChanged=function(){var O=this,m,G,B,Q,H,M,R,x,t;return _.r(function(W){if(W.nextAddress==1){m=O.getPlayer();(G=O.intersectionObserver)==null||G.disconnect();if(O.playerData){if(((B=O.playerData.videoDetails)==null?void 0:B.videoId)!==((Q=m.getPlayer())==null?void 0:Q.getVideoData().video_id)){H={};if(M=_.b(O.currentEndpoint,_.pf))H.watch_endpoint=M,M.endTimeSeconds&&(H.end=M.endTimeSeconds);m.loadVideoWithPlayerResponse(O.playerData,H)}}else return W.return();return O.player?W.jumpTo(2):
W.yield(m.getPlayerPromise(),3)}W.nextAddress!=2&&(O.player=W.yieldResult,O.JSC$22393_playerStateChangeListener=O.onPlayerStateChange.bind(O),O.player.addEventListener("onStateChange",O.JSC$22393_playerStateChangeListener),_.V("kevlar_client_enable_shorts_player_bootstrap")&&_.el(),O.scrollToVideoThrottle.fire(O.index),O.movePlayerToVideo(O.index),_.ln.addLowPriorityJob(function(){O.getShortsLoopSetting().then(function(Z){var z;(z=O.player)==null||z.setLoopVideo(Z)})}),_.Rks.resolve(O.player),O.player.syncVolume(),
O.getPlayer().focusOnPlayer());
_.ln.addLowPriorityJob(function(){O.observeShorts()},100);
R=O.player.getPlayerState(O.player.getPresentingPlayerType());R!==1||O.isPlayerStarted||_.Kf().dispatch(iBa(!0));O.updateBackNavContainerWidth();x=_.b(O.currentEndpoint,_.pf);((t=x)==null?0:t.startTimeSeconds)&&O.player.seekTo(x.startTimeSeconds);if(O.JSC$22393_cinematicController||O.cinematicsInitializeJobId)return W.return();O.cinematicsInitializeJobId=_.ln.addLowPriorityJob(function(){O.initCinematicController();O.cinematicsInitializeJobId=void 0});
_.ju(W)})};
_.v.onShortUndoDismiss=function(){var O=this,m=$JL().pop();m!==void 0&&(_.QA(this,function(){O.showCardWithIndex(m)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.v.onShortsDismiss=function(O){if(O=O.detail.reelDismissalActionRenderer)(O=_.b(O.onDismissalCompletionRenderer,_.Z$L))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:O}}}),this.scrollAndDismissCard()};
_.v.processReelNonVideoContentDismissalCommand=function(O){var m=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);O=_.b(O,bBG);this.activeDimissalTimeout=setTimeout(function(){m.scrollAndDismissCard()},Number(O==null?void 0:O.delayMs))};
_.v.scrollAndDismissCard=function(){var O=this,m=this.index;$JL().push(m);_.QA(this,function(){var G=O.getPlayableNextIndex();G!==null&&(G=O.getActiveReelVideo(G),O.hideCardWithIndex(m),G==null||G.scrollIntoView({behavior:"smooth",block:"nearest",inline:O.enableScrollIntoViewCenter?"center":"start"}))})};
_.v.hideCardWithIndex=function(O){if(O=this.getActiveReelVideo(O))O.hidden=!0};
_.v.showCardWithIndex=function(O){if(O=this.getActiveReelVideo(O))O.hidden=!1};
_.v.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.v.activeChanged=function(O){_.Kf().dispatch(_.xs({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:O}}));if(O)document.addEventListener("keydown",_.f7(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var m;(m=this.player)==null||m.sendAbandonmentPing()}var G;(G=this.player)==null||G.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.f7(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.v.graftClientVisualElements=function(){if(this.data){var O=_.uK();_.$bs(O,_.ZY({response:this.reelWatchSequenceResponse}));_.LK(O,this.nextReelVe);_.LK(O,this.prevReelVe);_.V("kevlar_shorts_auto_advance")&&(_.LK(O,this.loopToggleOffVe),_.LK(O,this.loopToggleOnVe));_.LK(O,this.ambientModeToggleVe);_.Or(_.yA(),[this.nextReelVe,this.prevReelVe]);_.V("web_shorts_paused_state_logging")&&_.LK(O,this.reelPlayerPausedStateRendererVe)}};
_.v.graftNvcRenderer=function(){var O,m,G,B,Q=this.index<0?(O=this.shortsProcessedPrevSequence)==null?void 0:(m=O[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:m.command:(G=this.shortsProcessedSequence)==null?void 0:(B=G[this.index])==null?void 0:B.command;if(Q&&this.isNonVideoContentCommand(Q)){O=_.b(Q,_.Q0);var H,M;(O=(H=_.b(O==null?void 0:O.renderer,_.zA9))==null?void 0:(M=H.loggingDirectives)==null?void 0:M.trackingParams)&&_.uK().graftServerVe(O)}};
_.v.setActiveIndex=function(){_.KR().resolve(_.wS).setActiveIndex(this.index)};
_.v.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.v.lazyUpdateMiniplayerData=function(){var O=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.ln.addLowPriorityJob(function(){O.updateMiniplayerData();O.updateMiniplayerDataJobId=void 0}))};
_.v.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.ln.cancelJob(this.updateMiniplayerDataJobId)};
_.v.updateMiniplayerData=function(){var O,m,G,B=_.KR().resolve(_.c$),Q={shortsData:this.getCurrentShort(),previousButtonDisabled:!((O=this.prevButtonData)==null||!O.isDisabled),nextButtonDisabled:!((m=this.nextButtonData)==null||!m.isDisabled),playabilityStatus:(G=this.playerData)==null?void 0:G.playabilityStatus};_.t2(B,Q)};
_.v.resetPlayerLocation=function(){var O=this.getPlayer();this.initialPlayerContainer&&O.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.v.movePlayerToVideo=function(O,m){var G=this;m=m===void 0?!0:m;var B=this.getActiveReelVideo(O),Q=this.getPlayer();if(B){this.overlayContainer?B.appendChild(this.overlayContainer):(this.overlayContainer=_.ZO(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,B.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||Q.appendTo(this.overlayContainer.playerContainer,void 0,!0));var H;(H=this.player)==null||H.setSize(NaN,NaN);this.isActive||_.uT(_.ln,function(){G.isActive=
!0});
Q.style.visibility="visible";_.V("reels_web_disable_rtr_tick")||_.V("reels_web_use_pbs_first_shorts")&&O===0||_.cd("r_tr");this.currentPlayerIndex=O;B.appendChild(this.errorScreenContainer);var M;(M=this.JSC$22393_cinematicController)==null||_.Y3n(M)}else m?_.ln.addLowPriorityJob(function(){G.movePlayerToVideo(G.index,!1)}):Math.random()<=_.Rd("web_shorts_error_logging_threshold")&&_.lT(new _.j9("Trying to movePlayerToVideo with undefined container.",{firstAttempt:m,
index:O}))};
_.v.enableFormatFirst=function(O){return _.V("web_enable_format_first")||O.adsOverlay&&_.V("web_enable_format_first_ads_only")||O.reelPlayerOverlayRenderer&&_.V("web_enable_format_first_organic_only")};
_.v.getAspectRatio=function(O){if(this.enableFormatFirst(O))return(O==null?0:O.thumbnail)&&N88(O.thumbnail)?"--ytd-shorts-player-ratio: "+N88(O.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.v.getBackgroundImage=function(O){return(O=this.getBackgroundImageUrl(O))?'background-image:url("'+O+'");':"background-color:black;"};
_.v.getBackgroundImageUrl=function(O){if(O!=null&&O.thumbnail)return _.tH(O.thumbnail.thumbnails)};
_.v.onPersistentPanelActiveChanged=function(){var O=this.getCurrentShort();if(O&&this.enableFormatFirst(O)&&(O==null?0:O.thumbnail)&&N88(O.thumbnail)!==.5625){var m;(m=this.player)==null||m.setSize(NaN,NaN)}};
_.v.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.v.moveCinematicsToVideo=function(){var O=_.ZO(this.hostElement).querySelector("ytd-reel-video-renderer");(O==null?0:O.cinematicContainer)&&O.cinematicContainer!==this.shortsCinematicContainer.parentElement&&O.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.v.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.v.updatePrevButtonData=function(){var O=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(O){var m;this.prevButtonData=O=Object.assign({},O,{accessibility:{label:_.Xm("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:O.isDisabled||this.index===-(((m=this.shortsProcessedPrevSequence)==null?void 0:m.length)||0),tooltip:this.isUpArrowHidden?"":_.Xm("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=O=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.v.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.v.updateNextButtonData=function(){var O=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(O){var m;this.nextButtonData=O=Object.assign({},O,{accessibility:{label:_.Xm("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:O.isDisabled||this.index===((m=this.shortsProcessedSequence)==null?void 0:m.length),tooltip:_.Xm("NEXT_VIDEO_LABEL")||""})}};
_.v.getPlayablePreviousIndex=function(){for(var O,m=this.index-1;m>=-(((O=this.prevShortsSequence)==null?void 0:O.length)||0);m--)if(!$JL().includes(m))return m;return null};
_.v.getIndexInSequence=function(O,m){return O.findIndex(function(G){var B;return((B=_.b(G.command,_.pf))==null?void 0:B.videoId)===m})};
_.v.handlePrevButtonClick=function(O){var m=this,G,B;return _.r(function(Q){G=m.getPlayablePreviousIndex();if(G===null)return Q.return();m.gestureType=((B=O)==null?void 0:B.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";G===0&&(m.hidePreviousButtonImmediately=!0);if(m.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){m.transitionToVideoThrottle.fire(G)}),Q.return();
m.scrollToVideoThrottle.fire(G);_.ju(Q)})};
_.v.getPlayableNextIndex=function(){for(var O,m=this.index+1;m<(((O=this.shortsProcessedSequence)==null?void 0:O.length)||0);m++)if(!$JL().includes(m))return m;return null};
_.v.handleNextButtonClick=function(O,m){var G=this,B,Q;return _.r(function(H){B=G.getPlayableNextIndex();if(B===null)return H.return();B===1&&(G.showPreviousButtonImmediately=!0);G.gestureType=((Q=O)==null?void 0:Q.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";m&&(G.gestureType=m);if(G.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){G.transitionToVideoThrottle.fire(B)}),H.return();
G.scrollToVideoThrottle.fire(B);_.ju(H)})};
_.v.handleReelNavigateCommand=function(O,m,G){(O=_.b(O,VK5))&&m&&O.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(G)};
_.v.loadVideo=function(O,m){m=m===void 0?!1:m;if(O!==this.currentPlayerIndex){_.Kf().dispatch(iBa(!1));if(this.isAd()&&!m){var G;(G=this.player)==null||G.notifyShortsAdSwipeEvent()}if((m=this.JSC$22393_cinematicController)!=null){var B;(B=m.currentCinematicEffect)==null||B.pause()}if((B=this.JSC$22393_cinematicController)!=null){var Q;(Q=B.currentCinematicEffect)==null||Q.clear()}B=O>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(B));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var H,M,R,x;Q=O<0?(H=this.shortsProcessedPrevSequence)==null?void 0:(M=H[this.shortsProcessedPrevSequence.length+O])==null?void 0:M.command:(R=this.shortsProcessedSequence)==null?void 0:(x=R[O])==null?void 0:x.command;this.index=O;this.gestureType||(this.gestureType=B?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
Q&&this.isVideoContentCommand(Q)&&(this.ytComponentBehavior.resolveCommand(Q,{form:{createScreenConfig:{clickedVisualElement:B?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(Q&&this.isNonVideoContentCommand(Q)){this.currentEndpoint=Q;this.data=void 0;H=_.uK();M=_.b(Q,_.Q0);var t,W;(M=(t=_.b(M==null?void 0:M.renderer,_.zA9))==null?void 0:(W=t.screenLoggingData)==null?void 0:W.screenVeType)&&_.E1(H,M);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(t=this.getActiveReelVideo(O))&&t.appendChild(this.overlayContainer)}var Z,z;if(((Z=this.reelWatchSequenceResponse)==null?0:Z.continuationEndpoint)&&((z=this.reelWatchSequenceResponse)==null?0:z.entries)&&O===this.reelWatchSequenceResponse.entries.length-1){var J,n;Z={contentPlaybackContext:_.Lf({},(n=_.b((J=this.currentEndpoint)==null?void 0:J.commandMetadata,_.bP))==null?void 0:n.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:Z})}var I,S,L;((I=this.reelWatchSequenceResponse)==null?0:I.prevContinuationEndpoint)&&O===-(((S=this.reelWatchSequenceResponse)==null?void 0:(L=S.prevEntries)==null?void 0:L.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.v.setMiniplayerPreview=function(O){O=(O===void 0?0:O)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var m,G,B=_.KR().resolve(_.c$),Q={shortsData:void 0,shortsPreviewThumbnail:O?(m=this.shortsProcessedSequence)==null?void 0:(G=m[O])==null?void 0:G.thumbnail:void 0};_.t2(B,Q)};
_.v.updateTitle=function(O){var m,G;O=(O==null?0:O.adSlots)?"":(G=O==null?void 0:(m=O.videoDetails)==null?void 0:m.title)!=null?G:"";_.iP(this.hostElement,"yt-update-title",O)};
_.v.registerPanel=function(O){var m=_.KR().resolve(_.Ah);if(m){O=_.K(O.engagementPanels||[]);for(var G=O.next();!G.done;G=O.next()){G=G.value;var B=this.getPanelContentIdentifier(G.engagementPanelSectionListRenderer),Q=void 0,H=void 0;(H=(Q=m).registerPanelContent)==null||H.call(Q,B,G)}}};
_.v.getPanelIdentifier=function(O){var m;return(O==null?void 0:(m=O.identifier)==null?void 0:m.tag)||(O==null?void 0:O.panelIdentifier)||(O==null?void 0:O.targetId)};
_.v.getPanelContentIdentifier=function(O){var m;return(O==null?void 0:O.targetId)||(O==null?void 0:O.panelIdentifier)||(O==null?void 0:(m=O.identifier)==null?void 0:m.tag)};
_.v.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;_.Kf().dispatch(iBa(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.Kf().dispatch(rsh(!1));var O=_.KR().resolve(_.wS);O.dismissedIndices=[];O.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.KR().resolve(_.c$).close(!0)};
_.v.processAppendReelWatchSequenceContinuationEntriesAction=function(O){var m=this,G;(G=this.intersectionObserver)==null||G.disconnect();O=O.appendReelWatchSequenceContinuationEntriesAction;if(O==null?0:O.entries){var B;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.lS(((B=this.reelWatchSequenceResponse)==null?void 0:B.entries)||[]),_.lS(O.entries)),continuationEndpoint:O.continuationEndpoint})}else if(O==null?0:O.prevEntries){var Q;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.lS(((Q=this.reelWatchSequenceResponse)==null?void 0:Q.prevEntries)||[]),_.lS(O.prevEntries)),prevContinuationEndpoint:O.prevContinuationEndpoint});_.ln.addLowPriorityJob(function(){m.movePlayerToVideo(m.index);var H;(H=m.getActiveReelVideo(m.index))==null||H.scrollIntoView({block:"nearest",inline:m.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.ln.addLowPriorityJob(function(){m.observeShorts()},100)};
_.v.processWatchSequence=function(O){var m=this;return O.map(function(G){G=G.command;if(m.isVideoContentCommand(G)){var B=_.b(G,_.pf);return{reelPlayerOverlayRenderer:_.b(B==null?void 0:B.overlay,_.JQH),thumbnail:B.thumbnail,command:G}}return m.isNonVideoContentCommand(G)?(B=_.b(G,_.Q0),{reelNonVideoContentRenderer:_.b(B==null?void 0:B.renderer,_.zA9),command:G}):{command:G}})};
_.v.calculateIntersectionObserverThreshold=function(){var O=_.ZO(this.hostElement).querySelector("ytd-reel-video-renderer"),m=1;(O==null?0:O.offsetHeight)&&(O==null?0:O.offsetWidth)&&(m=Math.min(O.offsetHeight,this.shortsContainer.offsetHeight)/O.offsetHeight*(Math.min(O.offsetWidth,this.shortsContainer.offsetWidth)/O.offsetWidth));return Math.round(m*.6*10)/10};
_.v.isVideoContentCommand=function(O){_.KR().resolve(_.wS);return!!_.b(O,_.pf)};
_.v.isNonVideoContentCommand=function(O){_.KR().resolve(_.wS);return!!_.b(O,_.Q0)};
_.v.initCinematicController=function(){var O=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22393_cinematicController=new _.bI(this.shortsCinematicContainer,this.player);var m,G=_.b((m=this.data)==null?void 0:m.background,_.BW);_.cmc(this.JSC$22393_cinematicController,G);_.ymP(this.JSC$22393_cinematicController,Dec(G));_.kpP(this.JSC$22393_cinematicController);_.ln.addLowPriorityJob(function(){O.moveCinematicsToVideo()})}};
_.v.handleMiniplayerNavigateShorts=function(O){O==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():O==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.v.handleSignalActionToggleShortsPictureInPicture=function(){if(_.KR().resolve(_.c$).pictureInPictureSupported()){var O=_.KR().resolve(_.wS);if(_.V("web_shorts_pip")){var m=_.KR().resolve(_.c$);O.isShortsPipActive()?m.deactivate():m.isMiniplayerActive()||(_.c3().shortsPipActivation=!0,_.Q9u(m))}}else(O=this.player)==null||O.togglePictureInPicture()};
_.vr.Object.defineProperties(Im.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.reelWatchSequenceResponse)!=null&&O.prevEntries)return this.processWatchSequence([].concat(_.lS(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.V("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.lS(this.prevShortsSequence));var O=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!O)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var m=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.lS(this.prevShortsSequence.slice(0,m)),[O],_.lS(this.prevShortsSequence.slice(m+1)))}m=this.index+this.shortsProcessedPrevSequence.length;O.thumbnail=this.shortsProcessedPrevSequence[m].thumbnail;return[].concat(_.lS(this.shortsProcessedPrevSequence.slice(0,m)),[O],_.lS(this.shortsProcessedPrevSequence.slice(m+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.reelWatchSequenceResponse)!=null&&O.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var O=this;if(_.V("web_enable_shorts_sequence_refactor")){if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var m;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((m=this.shortsProcessedSequence)==null?void 0:m.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var G,B=_.b((G=this.firstShortsData)==null?void 0:G.command,_.pf);if(B==null||!B.videoId)return this.shortsProcessedSequence;
B=this.getIndexInSequence(this.shortsSequence,B.videoId);if(B!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=B,_.ln.addLowPriorityJob(function(){O.transitionToVideoThrottle.fire(O.index);O.movePlayerToVideo(O.index)}));
return[].concat(_.lS(this.shortsSequence))}return[this.firstShortsData].concat(_.lS(this.shortsSequence))}}else if(this.data||this.shortsSequence){G=this.getCurrentShort();if(!G||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[G];if(G==null||!G.reelNonVideoContentRenderer)if(m=this.getIndexInSequence(this.shortsSequence,_.b(this.currentEndpoint,_.pf).videoId),this.index===0&&m!==-1)return this.currentPlayerIndex=this.index=m,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.lS(this.shortsSequence.slice(0,this.index)),[G],_.lS(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){G.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var Q,H,M;m=((Q=_.b((B=this.shortsProcessedSequence[0])==null?void 0:B.command,_.pf))==null?void 0:Q.videoId)===((M=_.b((H=this.shortsSequence[0])==null?void 0:H.command,_.pf))==null?void 0:M.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.lS(this.shortsProcessedSequence.slice(0,
this.index)),[G],_.lS(this.shortsSequence.slice(m)))}return[G].concat(_.lS(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var O=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;O&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(O)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 O,m;return this.index===((O=this.reelWatchSequenceResponse)==null?void 0:(m=O.entries)==null?void 0:m.length)}var G;return!((G=this.reelWatchSequenceResponse)==null?0:G.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var O;(O=this.delayedActiveIndexUpdateDebouncer)==null||O.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return this.isShortPlayable()||((m=_.b((O=this.data)==null?void 0:O.watchStatus,_.uW8))==null?void 0:(G=m.style)==null?void 0:G.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var O=this,m=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),G;if((this.data||m)&&(((G=this.data)==null?0:G.engagementPanels)||this.isAd()||m)){m=!1;this.activePanel="shorts-comments-panel";var B;G=_.K(((B=this.data)==null?void 0:B.engagementPanels)||[]);for(B=G.next();!B.done;B=G.next())if(this.getPanelIdentifier(B.value.engagementPanelSectionListRenderer)===this.activePanel){m=!0;break}if(this.isPersistentPanelActive){var Q=
_.KR().resolve(_.Ah);_.uT(_.ln,function(){Q.showPanel(O.activePanel,void 0,void 0,void 0,null)},100)}var H;
B=[].concat(_.lS(Object.values(((H=this.data)==null?void 0:H.engagementPanels)||{})));if(_.V("enable_preview_panel_for_shorts_search_suggested_action")){var M,R,x,t,W;((t=_.b((M=this.data)==null?void 0:(R=M.overlay)==null?void 0:(x=R.reelPlayerOverlayRenderer)==null?void 0:x.metapanel,_.ZKs))==null?void 0:(W=t.metadataItems)==null?void 0:W.find(function(Z){var z,J;return((z=_.b(Z,Xbc))==null?void 0:(J=z.icon)==null?void 0:J.iconType)==="SEARCH"}))!==void 0&&B.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}H=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);M=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return H===void 0&&M===void 0||(H==null?0:H.isDisabled)||(M==null?void 0:M.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!m?(m=B==null?void 0:B.findIndex(function(Z){var z,
J;return((z=Z.engagementPanelSectionListRenderer)==null?void 0:(J=z.identifier)==null?void 0:J.tag)==="shorts-comments-panel"}),m===-1||m===void 0||B!=null&&B.splice(m,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Xm("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Xm("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:_.Xm("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Xm("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(_.lS(Object.values(B||
{})))):B}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.shortsProcessedSequence)==null?void 0:O[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var O=this,m,G,B;if((m=this.playerData)==null?0:(G=m.playabilityStatus)==null?0:(B=G.errorScreen)==null?0:B.playerInterstitialRenderer)return _.ln.addLowPriorityJob(function(){O.movePlayerToVideo(O.index)}),this.playerData.playabilityStatus.errorScreen;
var Q,H;return((Q=this.data)==null?void 0:Q.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((H=this.data)==null?0:H.watchStatus)&&_.b(this.data.watchStatus,_.AS2)?(_.ln.addLowPriorityJob(function(){O.movePlayerToVideo(O.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.vr.Object.defineProperties(Im,{template:{configurable:!0,enumerable:!0,get:function(){if(h08===void 0){var O=document.createElement("template");_.f(O,'\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            <template is="dom-if" if="[[sequenceRefactor]]" class="style-scope ytd-shorts">\n              <img class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" loading="lazy" src$="[[getBackgroundImageUrl(item)]]" alt="">\n            </template>\n            <template is="dom-if" if="[[!sequenceRefactor]]" class="style-scope ytd-shorts">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </template>\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          <template is="dom-if" if="[[sequenceRefactor]]" class="style-scope ytd-shorts">\n            <img class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" loading="lazy" src$="[[getBackgroundImageUrl(item)]]" alt="">\n          </template>\n          <template is="dom-if" if="[[!sequenceRefactor]]" class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </template>\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);h08=O}O=h08;return O}}});
Im.prototype.onNextButtonDataChange=Im.prototype.onNextButtonDataChange;Im.prototype.onPrevButtonDataChange=Im.prototype.onPrevButtonDataChange;Im.prototype.onPersistentPanelActiveChanged=Im.prototype.onPersistentPanelActiveChanged;Im.prototype.lazyUpdateMiniplayerData=Im.prototype.lazyUpdateMiniplayerData;Im.prototype.onShortsPipActiveChanged=Im.prototype.onShortsPipActiveChanged;Im.prototype.setActiveIndex=Im.prototype.setActiveIndex;Im.prototype.graftNvcRenderer=Im.prototype.graftNvcRenderer;
Im.prototype.graftClientVisualElements=Im.prototype.graftClientVisualElements;Im.prototype.onActiveChanged=Im.prototype.onActiveChanged;Im.prototype.onShortsDismiss=Im.prototype.onShortsDismiss;Im.prototype.onShortUndoDismiss=Im.prototype.onShortUndoDismiss;Im.prototype.playerDataChanged=Im.prototype.playerDataChanged;Im.prototype.afterPlayerStarted=Im.prototype.afterPlayerStarted;Im.prototype.updateReelWatchSequenceResponse=Im.prototype.updateReelWatchSequenceResponse;
Im.prototype.unhideCurrentOverlay=Im.prototype.unhideCurrentOverlay;Im.prototype.onServiceRequestCompleted=Im.prototype.onServiceRequestCompleted;Im.prototype.engagementPanelsChanged=Im.prototype.engagementPanelsChanged;Im.prototype.onFullscreenChange=Im.prototype.onFullscreenChange;Im.prototype.onResize=Im.prototype.onResize;Im.prototype.setFirstShortsData=Im.prototype.setFirstShortsData;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Im.prototype,"ytComponentBehavior",void 0);
_.c([_.h(_.vW.YtPageBehavior),_.Y("design:type",Object)],Im.prototype,"ytPageBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Im.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.Dm),_.Y("design:type",Object)],Im.prototype,"ironResizableBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Im.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],Im.prototype,"ytdDismissibleItemBehavior",void 0);
_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],Im.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],Im.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"playerData",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"reelWatchSequenceResponse",void 0);
_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"cachedReelWatchSequenceResponse",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"cachedSequenceParams",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"cachedSequenceProvider",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"currentEndpoint",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"nextButtonData",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"prevButtonData",void 0);
_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"isPreviousPageShorts",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"index",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"delayedActiveIndex",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"playablePreviousIndex",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"player",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"isPlayerPaused",void 0);
_.c([_.g({selector:FUO}),_.Y("design:type",Object)],Im.prototype,"isPlayerStarted",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"intersectionObserver",void 0);_.c([_.g(),_.Y("design:type",Number)],Im.prototype,"cinematicsInitializeJobId",void 0);_.c([_.g(),_.Y("design:type",Number)],Im.prototype,"updateMiniplayerDataJobId",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"fitToVisibleBounds",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"pageSubtype",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Im.prototype,"enablePreviousContinuation",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Im.prototype,"shortsPipEnabled",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Im.prototype,"isDark",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Im.prototype,"shortsViewTransitions",void 0);
_.c([_.g({selector:_.R$,reflectToAttribute:!0}),_.Y("design:type",Object)],Im.prototype,"isFullscreen",void 0);_.c([_.g({selector:_.im,reflectToAttribute:!0}),_.Y("design:type",Object)],Im.prototype,"isShortsPipActive",void 0);_.c([_.uc("#shorts-inner-container"),_.Y("design:type",HTMLElement)],Im.prototype,"shortsInnerContainer",void 0);_.c([_.uc("#back-nav-button ytd-button-renderer"),_.Y("design:type",_.TR)],Im.prototype,"backNavButton",void 0);
_.c([_.uc("#shorts-container"),_.Y("design:type",HTMLElement)],Im.prototype,"shortsContainer",void 0);_.c([_.cO("error-screen"),_.Y("design:type",HTMLElement)],Im.prototype,"errorScreenContainer",void 0);_.c([_.cO("player"),_.Y("design:type",Object)],Im.prototype,"playerElement",void 0);_.c([_.cO("shorts-cinematic-container"),_.Y("design:type",HTMLElement)],Im.prototype,"shortsCinematicContainer",void 0);
_.c([_.cO("initial-player-container"),_.Y("design:type",HTMLElement)],Im.prototype,"initialPlayerContainer",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"buttonOverride",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Im.prototype,"anchoredPanelActive",void 0);_.c([_.g(),_.Y("design:type",String)],Im.prototype,"activePanel",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"isActive",void 0);
_.c([_.g({selector:P29,reflectToAttribute:!0}),_.Y("design:type",Object)],Im.prototype,"smallScreenPersistentPanel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Im.prototype,"isPersistentPanelActive",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"smallScreenSqueezeBack",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"enableScrollIntoViewCenter",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Im.prototype,"formatFirst",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Im.prototype,"enableFlexibleOverlay",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Im.prototype,"extractOverlay",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Im.prototype,"useAspectRatio",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Im.prototype,"sequenceRefactor",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"panelContainer",void 0);
_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"overlayContainer",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"isShortsInitialized",void 0);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"firstShortsData",void 0);_.c([_.T("reelWatchSequenceResponse"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Im.prototype,"prevShortsSequence",null);
_.c([_.T("data","prevShortsSequence"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Im.prototype,"shortsProcessedPrevSequence",null);_.c([_.T("reelWatchSequenceResponse"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Im.prototype,"shortsSequence",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"setFirstShortsData",null);
_.c([_.T("data","shortsSequence","firstShortsData"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Im.prototype,"shortsProcessedSequence",null);_.c([_.g({reflectToAttribute:!0}),_.T("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Im.prototype,"isUpArrowHidden",null);
_.c([_.g({reflectToAttribute:!0}),_.T("reelWatchSequenceResponse","index","endOfNextContinuation"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Im.prototype,"isDownArrowHidden",null);_.c([_.g(),_.T("index"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Im.prototype,"activeIndex",null);_.c([_.T("isShortPlayable","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Im.prototype,"shouldRenderOfflineContent",null);
_.c([_.hG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"onResize",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Im.prototype,"anchoredEngagementPanels",null);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"watchWhileEngagementPanels",void 0);_.c([_.Tw("isFullscreen"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"onFullscreenChange",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"engagementPanelsChanged",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],Im.prototype,"onServiceRequestCompleted",null);_.c([_.T("data","shortsSequence","index"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Im.prototype,"activeReel",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"unhideCurrentOverlay",null);_.c([_.Tw("currentEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"updateReelWatchSequenceResponse",null);_.c([_.Tw("isPlayerStarted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"afterPlayerStarted",null);
_.c([_.T("playerData","reelWatchSequenceResponse","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Im.prototype,"errorScreen",null);_.c([_.T("errorScreen"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Im.prototype,"hasError",null);_.c([_.Tw("playerData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],Im.prototype,"playerDataChanged",null);
_.c([_.hG("yt-dismissible-item-undo-feedback"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"onShortUndoDismiss",null);_.c([_.hG("yt-disable-lockup-interaction"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],Im.prototype,"onShortsDismiss",null);_.c([_.Si("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"onActiveChanged",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"graftClientVisualElements",null);_.c([_.Tw("currentPlayerIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"graftNvcRenderer",null);_.c([_.Tw("index"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"setActiveIndex",null);
_.c([_.Tw("isShortsPipActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"onShortsPipActiveChanged",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"lazyUpdateMiniplayerData",null);_.c([_.g(),_.Y("design:type",Object)],Im.prototype,"onOverlayDensityChanged",void 0);
_.c([_.Tw("isPersistentPanelActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"onPersistentPanelActiveChanged",null);_.c([_.Tw("index","data","isUpArrowHidden"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"onPrevButtonDataChange",null);_.c([_.Tw("index","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Im.prototype,"onNextButtonDataChange",null);
_.c([_.l({is:"ytd-shorts"})],Im);_.Ci.registerService(_.rbp,Im);
_.aw();
}catch(e){_._DumpException(e)}
try{
_.lj("JzFVk");
var yzc;var czG;var Gl=function(){return _.u.apply(this,arguments)||this};
_.X(Gl,_.u);Gl.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Gl.prototype.computeBlueBottomLink=function(O){return O};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Gl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Gl.prototype,"data",void 0);_.c([_.g({computed:"computeIcon_(data.bottomIcon)"}),_.Y("design:type",String)],Gl.prototype,"bottomIcon",void 0);
_.c([_.g({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Gl.prototype,"enableBlueBottomLink",void 0);_.c([_.l({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Gl);
_.y(Gl,"ytd-web-answer-renderer",function(){if(czG!==void 0)return czG;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return czG=O},{mode:_.ZB("kevlar_poly_si_batch_j035")?1:2});var YSc;var B9=function(){var O=_.u.apply(this,arguments)||this;O.hasChipBar=!1;return O};
_.X(B9,_.u);B9.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}}};
B9.prototype.computeHasChipBar=function(O){return!(O==null||!O.chipBar)};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],B9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],B9.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.Y("design:type",Object)],B9.prototype,"hasChipBar",void 0);_.c([_.l({is:"ytd-search-header-renderer",disableElementRegistration:!0})],B9);
_.y(B9,"ytd-search-header-renderer",function(){if(YSc!==void 0)return YSc;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return YSc=O},{mode:1});var dpO;var Q9=function(){return _.u.apply(this,arguments)||this};
_.X(Q9,_.u);Q9.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Q9.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-page-continuation"})],Q9);
_.y(Q9,"ytd-page-continuation",function(){if(dpO!==void 0)return dpO;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return dpO=O},{mode:1});var wMa;var e6P;var Dpc;var seq=function(){return _.u.apply(this,arguments)||this};
_.X(seq,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],seq.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],seq.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],seq);
_.y(seq,"ytd-watch-card-one-vs-one-event",function(){if(Dpc!==void 0)return Dpc;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Dpc=O},{mode:1});var NNh=function(){return _.u.apply(this,arguments)||this};
_.X(NNh,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],NNh.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],NNh.prototype,"data",void 0);_.c([_.l({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],NNh);
_.y(NNh,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(e6P!==void 0)return e6P;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return e6P=O},{mode:1});var Pso;var F5L=function(){return _.u.apply(this,arguments)||this};
_.X(F5L,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],F5L.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],F5L.prototype,"data",void 0);_.c([_.l({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],F5L);
_.y(F5L,"ytd-banner-and-box-hero-image-renderer",function(){if(Pso!==void 0)return Pso;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Pso=O},{mode:1});var Aza;var H9=function(){var O=_.u.apply(this,arguments)||this;O.modern=_.V("web_modern_buttons");return O};
_.X(H9,_.u);H9.prototype.computeIcon=function(){var O,m,G=(O=this.data)==null?void 0:(m=O.icon)==null?void 0:m.iconType;if(G)return _.bK(G)};
H9.prototype.computeButtonShape=function(){var O;return{buttonText:_.HX((O=this.data)==null?void 0:O.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.vr.Object.defineProperties(H9.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],H9.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],H9.prototype,"modern",void 0);_.c([_.g({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.T("data.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],H9.prototype,"buttonColor",null);
_.c([_.l({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],H9);
_.y(H9,"ytd-call-to-action-button-renderer",function(){if(Aza!==void 0)return Aza;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Aza=O},{mode:1});var O$P;var v9=function(){return _.u.apply(this,arguments)||this};
_.X(v9,_.u);v9.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.ZO(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Uf(this.data.leftThumbnail.thumbnails,216)+")")};
v9.prototype.onLeftThumbnailChanged=v9.prototype.onLeftThumbnailChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],v9.prototype,"data",void 0);_.c([_.Tw("data.leftThumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],v9.prototype,"onLeftThumbnailChanged",null);_.c([_.l({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],v9);
_.y(v9,"ytd-collage-hero-image-renderer",function(){if(O$P!==void 0)return O$P;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return O$P=O},{mode:1});var meA;var Ku=function(){return _.u.apply(this,arguments)||this};
_.X(Ku,_.u);Ku.prototype.computeStyle=function(O){return O};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ku.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.Y("design:type",String)],Ku.prototype,"componentStyle",void 0);_.c([_.l({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Ku);
_.y(Ku,"ytd-single-hero-image-renderer",function(){if(meA!==void 0)return meA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return meA=O},{mode:1});var Gpc;var $_=function(){return _.u.apply(this,arguments)||this};
_.X($_,_.u);_.v=$_.prototype;
_.v.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:_.V("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.v.computeSubtitle=function(O){if(this.data){var m;if(this.data.upcomingEventData){O=_.HX(O.subtitle);var G=Number(this.data.upcomingEventData.startTime);isNaN(G)||(m=_.Qg(_.Ev(O,G)))}else m=O.subtitle;return m}};
_.v.onHeroTap=function(O){O.preventDefault();var m=this.data&&this.data.navigationEndpoint;!m||!_.Hu(_.$Z(O),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Hu(_.$Z(O),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.V("kevlar_watchcard_hero_video_renderer_killswitch")?_.iP(this.hostElement,"yt-navigate",{navigationEndpoint:m}):this.ytComponentBehavior.resolveCommand(m))};
_.v.computeHeroTabIndex=function(O){return O&&O.simpleText?-1:0};
_.v.computeHeroRole=function(O){return O&&O.simpleText?"":"link"};
_.v.computeIsReminderButtonPresent=function(O){return!(!O||!O.reminderButton)};
_.v.computeHideBottomItems=function(O){return!(this.computeIsReminderButtonPresent(O)||O.subtitle)};
_.v.dataChanged=function(){var O=this.get("data.buttons.buttonRenderer.serviceEndpoint"),m;((m=_.b(O==null?void 0:O.commandMetadata,_.dT))==null?0:m.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(O)};
$_.prototype.dataChanged=$_.prototype.dataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],$_.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],$_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$_.prototype,"data",void 0);
_.c([_.g({computed:"computeSubtitle(data)"}),_.Y("design:type",String)],$_.prototype,"subtitle",void 0);_.c([_.g({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],$_.prototype,"isReminderButtonPresent",void 0);_.c([_.g({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],$_.prototype,"hideBottomItems",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$_.prototype,"dataChanged",null);_.c([_.l({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],$_);
_.y($_,"ytd-watch-card-hero-video-renderer",function(){if(Gpc!==void 0)return Gpc;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Gpc=O},{mode:1});var B8P;var Mt=function(){return _.u.apply(this,arguments)||this};
_.X(Mt,_.u);_.v=Mt.prototype;_.v.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"}}}};
_.v.computeTitleBadges=function(O){return O?[O]:[]};
_.v.computeHeaderStyle=function(O){return O?O.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.v.computeAvatarAriaLabel=function(O){if(O){var m,G,B,Q;return(Q=(m=O.avatar)==null?void 0:(G=m.accessibility)==null?void 0:(B=G.accessibilityData)==null?void 0:B.label)!=null?Q:_.HX(O==null?void 0:O.title)}};
_.v.computeAvatarHeight=function(O){return O==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.v.computeBadgeRowClass=function(O){return(O==null?0:O[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Mt.prototype,"data",void 0);_.c([_.g({computed:"computeTitleBadges(data.titleBadge)"}),_.Y("design:type",Array)],Mt.prototype,"titleBadges",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.Y("design:type",String)],Mt.prototype,"headerStyle",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.Y("design:type",String)],Mt.prototype,"badgeRowClass",void 0);_.c([_.l({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Mt);
_.y(Mt,"ytd-watch-card-rich-header-renderer",function(){if(B8P!==void 0)return B8P;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return B8P=O},{mode:1});var Qj8;var H$c;var rz=function(){return _.u.apply(this,arguments)||this};
_.X(rz,_.u);rz.prototype.onMetadataTap=function(O){var m=this.data&&this.data.navigationEndpoint;m&&!_.Hu(_.$Z(O),this.hostElement,["A".toString()])&&_.iP(this.hostElement,"yt-navigate",{endpoint:m})};
_.vr.Object.defineProperties(rz.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 O;if(this.data.upcomingEventData){var m=_.HX(this.data.subtitle),G=Number(this.data.upcomingEventData.startTime);isNaN(G)||(O=_.Qg(_.Ev(m,G)))}else O=this.data.subtitle;return O}}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],rz.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data.style"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],rz.prototype,"isCondensed",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],rz.prototype,"subtitle",null);
_.c([_.l({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],rz);
_.y(rz,"ytd-watch-card-compact-video-renderer",function(){if(H$c!==void 0)return H$c;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return H$c=O},{mode:1});var v90;var KUn=function(){return _.u.apply(this,arguments)||this};
_.X(KUn,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],KUn.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],KUn.prototype,"data",void 0);_.c([_.l({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],KUn);
_.y(KUn,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(v90!==void 0)return v90;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return v90=O},{mode:1});var Rm=function(){return _.u.apply(this,arguments)||this};
_.X(Rm,_.u);Rm.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Rm.prototype,"ytRendererStamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Rm.prototype,"data",void 0);_.c([_.l({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Rm);
_.y(Rm,"ytd-vertical-watch-card-list-renderer",function(){if(Qj8!==void 0)return Qj8;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Qj8=O},{mode:1});var $eA;var iI=function(){var O=_.u.apply(this,arguments)||this;O.ariaExpanded="false";return O};
_.X(iI,_.u);_.v=iI.prototype;_.v.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.v.dataChanged=function(){var O;this.currentSeasonIndex=((O=this.data)==null?void 0:O.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.v.computeEpisodesInfo=function(O,m,G){if(O!==void 0&&m.length===O.length)return O[G]};
_.v.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.v.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.v.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.v.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.v.getUppercaseSimpleString=function(O){return this.ytRendererBehavior.getSimpleString(O).toUpperCase()};
_.v.updateCurrentSeasonIndexFromBinding=function(O){this.currentSeasonIndex=O.detail.value};
iI.prototype.onIronOverlayClosed=iI.prototype.onIronOverlayClosed;iI.prototype.currentSeasonIndexChanged=iI.prototype.currentSeasonIndexChanged;iI.prototype.dataChanged=iI.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],iI.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],iI.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",String)],iI.prototype,"label",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],iI.prototype,"currentSeasonIndex",void 0);_.c([_.g({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.Y("design:type",Object)],iI.prototype,"episodesInfo",void 0);_.c([_.g({value:"false"}),_.Y("design:type",Object)],iI.prototype,"ariaExpanded",void 0);_.c([_.uc("#lists"),_.Y("design:type",Object)],iI.prototype,"lists",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iI.prototype,"dataChanged",null);_.c([_.Si("currentSeasonIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iI.prototype,"currentSeasonIndexChanged",null);_.c([_.hG("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],iI.prototype,"onIronOverlayClosed",null);
_.c([_.l({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],iI);
_.y(iI,"ytd-watch-card-section-dropdown-renderer",function(){if($eA!==void 0)return $eA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return $eA=O},{mode:1});var Moo;var x_=function(){var O=_.u.apply(this,arguments)||this;O.isSearch=!1;return O};
_.X(x_,_.u);x_.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],x_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],x_.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],x_.prototype,"isSearch",void 0);_.c([_.l({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],x_);
_.y(x_,"ytd-watch-card-section-sequence-renderer",function(){if(Moo!==void 0)return Moo;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
return Moo=O},{mode:1});var rmo=_.a(function(O){return _.q("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.q(_.u5,{data:function(){return O.data().ctaButton}},{buttonViewModel:_.oF}),_.q(_.Jg,{text:function(){return O.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Ck");
rmo.idomCompat=!0;_.qi(rmo,"ytd-button-banner-view-model",{props:{data:_.VZ}});var qt=function(){var O=_.u.apply(this,arguments)||this;O.isSearch=!1;return O};
_.X(qt,_.u);
qt.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],qt.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],qt.prototype,"rounded",void 0);_.c([_.g(),_.Y("design:type",Object)],qt.prototype,"isSearch",void 0);
_.c([_.l({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],qt);
_.y(qt,"ytd-universal-watch-card-renderer",function(){if(wMa!==void 0)return wMa;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return wMa=O},{mode:1});var R_o;_.qi(_.a(function(O){var m=O.data;var G;O=!((G=_.KR().resolve(_.v7(_.B6)))==null||!G());G={};return _.q("overview-message-view-model",{class:_.bE("ytwOverviewMessageViewModelHost",(G.ytwOverviewMessageViewModelDarkBackground=O,G.ytwOverviewMessageViewModelLightBackground=!O,G))},_.q(_.U,{cond:function(){return m().primaryImage},
then:function(B){return _.q(_.KH,{data:B,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.q(_.U,{cond:function(){return m().primaryText},
then:function(){return _.q("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.q(_.Jg,{text:function(){return m().primaryText}}))}}),_.q(_.U,{cond:function(){return m().secondaryText},
then:function(){return _.q("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.q(_.Jg,{text:function(){return m().secondaryText}}))}}))},"Dk"),"overview-message-view-model",{props:{data:_.VZ}});_.qi(_.yb3,"ytd-overview-answer-view-model",{props:{data:_.VZ}});var UT=function(){return _.u.apply(this,arguments)||this};
_.X(UT,_.u);UT.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"}}}};
UT.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],UT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],UT.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Ww),_.Y("design:type",Object)],UT.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],UT.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],UT.prototype,"isSearch",void 0);
_.c([_.l({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],UT);
_.y(UT,"ytd-secondary-search-container-renderer",function(){if(R_o!==void 0)return R_o;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
return R_o=O},{mode:1});var i$a;var tU=function(){var O=_.u.apply(this,arguments)||this;O.renderSecondarySearchContainer=!1;O.isSearch=!1;return O};
_.X(tU,_.u);_.v=tU.prototype;_.v.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"}}}};
_.v.created=function(){var O=this;this.boundStampSecondarySearchContainerIfFits=function(){O.stampSecondarySearchContainerIfFits()};
_.a8("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.v.computeIsSearchFrictionPage=function(O){var m,G,B,Q,H;O=O==null?void 0:(m=O.primaryContents)==null?void 0:(G=m.sectionListRenderer)==null?void 0:(B=G.contents)==null?void 0:(Q=B[0])==null?void 0:(H=Q.itemSectionRenderer)==null?void 0:H.contents;if(!O)return!1;m=_.K(O);for(G=m.next();!G.done;G=m.next())if(B=void 0,(B=G.value)==null?0:B.searchFrictionViewModel)return!0;return!1};
_.v.computeShowSecondaryColumn=function(O,m){return!!(m&&m.secondaryContents&&O)};
_.v.activeChanged=function(){var O=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.f7(this,this.debounceStampSecondarySearchContainerIfFits)),_.mp(function(){O.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.f7(this,this.debounceStampSecondarySearchContainerIfFits))};
_.v.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.v.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.v.debounceStampSecondarySearchContainerIfFits=function(){_.GS(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.v.onRetrieveLocation=function(O,m){m.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);O.stopPropagation()};
_.v.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
tU.prototype.dataChanged=tU.prototype.dataChanged;tU.prototype.onRetrieveLocation=tU.prototype.onRetrieveLocation;tU.prototype.persistentGuideChanged=tU.prototype.persistentGuideChanged;tU.prototype.activeChanged=tU.prototype.activeChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],tU.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.h(_.Dm),_.Y("design:type",Object)],tU.prototype,"ironResizableBehavior",void 0);_.c([_.g(),_.Y("design:type",Boolean)],tU.prototype,"active",void 0);_.c([_.g(),_.Y("design:type",Object)],tU.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.Y("design:type",Boolean)],tU.prototype,"useBiggerThumbs",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.ib("desktop_search_bigger_thumbs_style")}}),
_.Y("design:type",String)],tU.prototype,"biggerThumbsStyle",void 0);_.c([_.g(),_.Y("design:type",Object)],tU.prototype,"renderSecondarySearchContainer",void 0);_.c([_.g({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.Y("design:type",Boolean)],tU.prototype,"showSecondaryColumn",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.Y("design:type",Boolean)],tU.prototype,"isSearchFrictionPage",void 0);
_.c([_.g(),_.Y("design:type",Object)],tU.prototype,"isSearch",void 0);_.c([_.Tw("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tU.prototype,"activeChanged",null);_.c([_.Tw("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tU.prototype,"persistentGuideChanged",null);
_.c([_.hG("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],tU.prototype,"onRetrieveLocation",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],tU.prototype,"dataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],tU);
_.y(tU,"ytd-two-column-search-results-renderer",function(){if(i$a!==void 0)return i$a;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return i$a=O},{mode:1});var W9=function(){var O=_.u.apply(this,arguments)||this;O.hasSearchHeader=!1;O.hasSecondaryContent=!1;O.hasBiggerThumbs=_.V("enable_desktop_search_bigger_thumbs");O.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return O};
_.X(W9,_.u);_.v=W9.prototype;_.v.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:_.VH(["aa","eocs"])}}};
_.v.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.v.loadPage_=function(O){this.initCsi();O&&(this.data=O,_.a8("REFINEMENTS_TUPLE",["FromSearchResponse",O.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.mP(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.v.initCsi=function(){_.sLu("results",["ol","cpt"])};
_.v.updateTitle=function(){var O=_.s0(window.location.href,"q");O||(O=_.s0(window.location.href,"search_query"));_.iP(this.hostElement,"yt-update-title",O||"")};
_.v.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.v.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.V("web_srp_data_changed_terminate_imp_killswitch")||_.xc(this.hostElement,"yt-terminate-video-preview-action")};
_.v.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.v.computeHasSearchHeader=function(O){var m;O=O==null?void 0:(m=O.header)==null?void 0:m.searchHeaderRenderer;return!!O&&(!!O.searchFilterButton||!!O.chipBar)};
_.v.computeHasSecondaryContent=function(O){var m,G;return!!(O==null?0:(m=O.contents)==null?0:(G=m.twoColumnSearchResultsRenderer)==null?0:G.secondaryContents)};
_.vr.Object.defineProperties(W9,{template:{configurable:!0,enumerable:!0,get:function(){if(yzc===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);yzc=O}O=yzc;return O}}});
W9.prototype.onReloadContinuationFinish=W9.prototype.onReloadContinuationFinish;W9.prototype.dataChanged=W9.prototype.dataChanged;_.c([_.h(_.vW.YtPageBehavior),_.Y("design:type",Object)],W9.prototype,"ytPageBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],W9.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],W9.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Ww),_.Y("design:type",Object)],W9.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],W9.prototype,"data",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],W9.prototype,"monitorScroll",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],W9.prototype,"hasSearchHeader",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],W9.prototype,"hasSecondaryContent",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],W9.prototype,"hasBiggerThumbs",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W9.prototype,"dataChanged",null);
_.c([_.hG("yt-reload-continuation-finish"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],W9.prototype,"onReloadContinuationFinish",null);_.c([_.l({is:"ytd-search"})],W9);_.Ci.registerService(_.MTs,W9);
_.aw();
}catch(e){_._DumpException(e)}
try{
_.lj("h8y2qb");
var Pv0=function(O){if(O=_.LKr(O)){var m;(m=O.sources)!=null&&m[0]?(m=_.oDY(O),m=m<1?"VERTICAL":m>1?"HORIZONTAL":"SQUARE"):m=void 0;return m}},Kc=function(O){_.oK.call(this,"upload");
this.opts.query=O},AAA=function(O,m){return _.q(FhJ,{data:O,
onYtNavigate:m})},Oo3=function(O,m){return _.Vh(O.entities,"pageHeaderEntity",m)},G6h=function(O,m){return O.map(function(G){if(G.tabRenderer)return m39(G.tabRenderer);
if(G.expandableTabRenderer&&m){var B=G.expandableTabRenderer;return{customTabRenderable:function(){return m(B)}}}return{}})},m39=function(O){return{identifier:O.tabIdentifier,
aTagConfig:_.sz({innertubeCommand:O.endpoint,forceNewState:!0}),title:O.title,selected:O.selected,disabled:O.unselectable,icon:O.icon}},B3y=function(O){return _.xs({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:O})},QY0=function(O){if(!_.R_(document,"gtm-noscript")){var m=document.createElement("noscript");
m.id="gtm-noscript";m.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+O+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(m)}};_.MQ(Kc,_.oK);Kc.prototype.JSC$10075_setLabel=function(O){Kc.superClass_.JSC$10075_setLabel.call(this,O);return this};
Kc.prototype.addUploadMetadata=function(O,m){Kc.superClass_.addUploadMetadata.call(this,O,m);return this};var HoA=function(O){if(O!=="youtubebanner"&&O!=="youtube-channel-banner")throw Error("Co");Kc.call(this,O)};
_.X(HoA,Kc);HoA.prototype.JSC$10075_setLabel=function(O){Kc.prototype.JSC$10075_setLabel.call(this,O);return this};
HoA.prototype.addUploadMetadata=function(O,m){Kc.prototype.addUploadMetadata.call(this,O,m);return this};var vw0=[_.Dm,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(O){_.SU(O).path[0]!==this&&(this.resetLayout(),O.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var O=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Xu(this._layoutDebouncer,_.op,O);_.fU(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var O=this;requestAnimationFrame(function(){O.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(O){this.resizerShouldNotify(O)&&this._notifyDescendant(O)},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 Kqo=[_.s_9,{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(O,m){var G=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[O];if(!G)throw new ReferenceError(this._getUndefinedMsg(O));O=this._boundEffect(G,m||{});O.setUp();return O},
_effectsChanged:function(O,m,G){this._tearDownEffects();O&&G&&(O.split(" ").forEach(function(B){var Q;B!==""&&((Q=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[B])?this._effects.push(this._boundEffect(Q,m[B])):console.warn(this._getUndefinedMsg(B)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(O,m){m=m||{};var G=parseFloat(m.startsAt||0),B=parseFloat(m.endsAt||1),Q=B-G,H=function(){};
B=G===0&&B===1?O.run:function(M,R){O.run.call(this,Math.max(0,(M-G)/Q),R)};
return{setUp:O.setUp?O.setUp.bind(this,m):H,run:O.run?B.bind(this):H,tearDown:O.tearDown?O.tearDown.bind(this):H}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(O){O.setUp()!==!1&&this._effectsRunFn.push(O.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(O){O.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(O,m){this._effectsRunFn&&this._effectsRunFn.forEach(function(G){G(O,m)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var O=this._clampedScrollTop;this._updateScrollState(O);this.threshold>0&&this._setThresholdTriggered(O>=this.threshold)}},
_getDOMRef:function(O){console.warn("_getDOMRef","`"+O+"` is undefined")},
_getUndefinedMsg:function(O){return"Scroll effect `"+O+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+O+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Do`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(O){var m={};O=parseFloat(O.scalar);m.background=this._getDOMRef("background");m.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");m.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");m.deltaBg=m.backgroundFrontLayer.offsetHeight-m.background.offsetHeight;m.deltaBg===0?(isNaN(O)&&(O=.8),m.deltaBg=(this._dHeight||0)*O):(isNaN(O)&&(O=
1),m.deltaBg*=O);this._fxParallaxBackground=m},
run:function(O){var m=this._fxParallaxBackground;this.transform("translate3d(0px, "+m.deltaBg*Math.min(1,O)+"px, 0px)",m.backgroundFrontLayer);m.backgroundRearLayer&&this.transform("translate3d(0px, "+m.deltaBg*Math.min(1,O)+"px, 0px)",m.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var $3y;var MNJ;var rMx=function(){};
_.v=rMx.prototype;_.v._scrollTargetChanged=function(){};
_.v.scroll=function(){};
_.v._isValidScrollTarget=function(){};
_.v._toggleScrollListener=function(){};
_.v.toggleScrollListener=function(){};
_.v.createEffect=function(){};
_.v._effectsChanged=function(){};
_.v._layoutIfDirty=function(){};
_.v._boundEffect=function(){};
_.v._setUpEffect=function(){};
_.v._tearDownEffects=function(){};
_.v._runEffects=function(){};
_.v._scrollHandler=function(){};
_.v._scrollStateChanged=function(){};
_.v._getUndefinedMsg=function(){};
_.v.notifyResize=function(){};
_.v.assignParentResizable=function(){};
_.v.stopResizeNotificationsFor=function(){};
_.v._subscribeIronResize=function(){};
_.v._unsubscribeIronResize=function(){};
_.v.resizerShouldNotify=function(){};
_.v._onDescendantIronResize=function(){};
_.v._fireResize=function(){};
_.v._onIronRequestResizeNotifications=function(){};
_.v._parentResizableChanged=function(){};
_.v._notifyDescendant=function(){};
_.v._requestResizeNotifications=function(){};
_.v._findParent=function(){};
_.v._appResetLayoutHandler=function(){};
_.v.resetLayout=function(){};
_.v._notifyLayoutChanged=function(){};
_.v._notifyDescendantResize=function(){};
_.v._setThresholdTriggered=function(){};
rMx=_.kZ({_template:function(){if(MNJ!==void 0)return MNJ;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;$3y===void 0&&($3y=document.createElement("template"));var B=$3y;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return MNJ=O},
is:"tp-yt-app-header",behaviors:[Kqo,vw0],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 O=_.SU(this.$.slot).getDistributedNodes(),m=0,G;G=O[m];m++)if(G.nodeType===Node.ELEMENT_NODE)if(G.hasAttribute("sticky")){this._stickyElRef=G;break}else this._stickyElRef||(this._stickyElRef=G);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var O=this._clampedScrollTop,m=this._height===0||O===0,G=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;m||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();m?this._updateScrollState(O,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=G}},
_updateScrollState:function(O,m){if(this._height!==0){var G=0,B=this._top;var Q=this._maxHeaderTop;var H=O-this._lastScrollTop,M=Math.abs(H),R=O>this._lastScrollTop,x=performance.now();this._mayMove()&&(G=this._clamp(this.reveals?B+H:O,0,Q));O>=this._dHeight&&(G=this.condenses&&!this.fixed?Math.max(this._dHeight,G):G,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&M<100){if(x-this._initTimestamp>300||this._wasScrollingDown!==R)this._initScrollTop=O,this._initTimestamp=x;O>=Q&&
(Math.abs(this._initScrollTop-O)>30||M>10?(R&&O>=Q?G=Q:!R&&O>=this._dHeight&&(G=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((G-B)/(H/(x-this._lastTimestamp)),0,300)+"ms"):G=this._top)}Q=this._dHeight===0?O>0?1:0:G/this._dHeight;m||(this._lastScrollTop=O,this._top=G,this._wasScrollingDown=R,this._lastTimestamp=x);if(m||Q!==this._progress||B!==G||O===0)this._progress=Q,this._runEffects(Q,G),this._transformHeader(G)}},
_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(O){this.translate3d(0,-O+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&O>=this._stickyElTop?Math.min(O,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(O,m,G){return Math.min(G,Math.max(m,O))},
_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),_.SU(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(O){switch(O){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.SU(this).querySelector("[main-title]");case "condensedTitle":return _.SU(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var RjK;var io0;_.kZ({_template:function(){if(io0!==void 0)return io0;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;RjK===void 0&&(RjK=document.createElement("template"));var B=RjK;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return io0=O},
is:"tp-yt-app-header-layout",behaviors:[vw0],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.SU(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var O=this.header;if(this.isAttached&&O){this.$.wrapper.classList.remove("initializing");O.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)O.style.left=
"",O.style.right="";else{var m=this.getBoundingClientRect(),G=document.documentElement.clientWidth-m.right;O.style.left=m.left+"px";O.style.right=G+"px"}m=this.$.contentContainer.style;G=O.offsetHeight;O.fixed&&!O.condenses&&this.hasScrollingRegion?(m.marginTop=G+"px",m.paddingTop=""):(m.paddingTop=G+"px",m.marginTop="")}}});var x3u=new _.q$("alertCommand");var qqb=new _.q$("manageLabsStateCommand");var U3B=new _.q$("inlineFormRenderer");var tNr=new _.q$("playlistSidebarPrimaryInfoRenderer");var Wqy=new _.q$("productDetailsThumbnailRenderer"),Zor=new _.q$("productDetailsVariantRenderer"),zjx=new _.q$("productDetailsVariantOptionRenderer"),JMh=new _.q$("productDetailsOffersContainerRenderer"),VNb=new _.q$("productDetailsOfferRenderer");var bor=new _.q$("shoppingFlaggingRenderer");var nwo=new _.q$("playlistBylineRenderer");var X2o=new _.q$("insertChannelTabCommand");var $q=function(){return _.Iu.apply(this,arguments)||this};
_.X($q,_.Iu);_.v=$q.prototype;_.v.activeChanged=function(){if(this.active){var O=_.ZO(this.hostElement).querySelector("#header");O&&_.iP(O,"iron-resize");window.addEventListener("scroll",_.f7(this,this.onScroll))}else window.removeEventListener("scroll",_.f7(this,this.onScroll)),_.iP(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.v.guideVisibleChanged=function(){var O=_.ZO(this.hostElement).querySelector("#header");O&&_.iP(O,"iron-resize")};
_.v.onScroll=function(){var O=this;_.GS(this,"onScroll",function(){var m=_.ZO(O.hostElement).querySelector("#header");m&&m.polymerController&&(m=m.polymerController.getScrollState().progress===1?"standard":"seamed",_.iP(O.hostElement,"yt-request-panel-mode-change",{mode:m}))},10)};
_.v.tabsChanged=function(){if(this.tabs){for(var O=null,m=0,G=this.tabs.length;m<G;++m){var B=this.tabs[m].tabRenderer;if(B&&B.selected){O=m;break}}this.selected=O}};
_.v.onTabsActivate=function(O){_.iP(this.hostElement,"yt-navigate",{endpoint:this.tabs[O.detail.selected].tabRenderer.endpoint})};
$q.prototype.tabsChanged=$q.prototype.tabsChanged;$q.prototype.guideVisibleChanged=$q.prototype.guideVisibleChanged;$q.prototype.activeChanged=$q.prototype.activeChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],$q.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.g(),_.Y("design:type",Array)],$q.prototype,"tabs",void 0);
_.c([_.g(),_.Y("design:type",Object)],$q.prototype,"selected",void 0);_.c([_.g(),_.Y("design:type",Boolean)],$q.prototype,"active",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],$q.prototype,"disableHeaderFluidWidth",void 0);_.c([_.Tw("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$q.prototype,"activeChanged",null);
_.c([_.Tw("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$q.prototype,"guideVisibleChanged",null);_.c([_.Tw("tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$q.prototype,"tabsChanged",null);_.c([_.p7()],$q);var fEA=[_.N.YtRendererBehavior,_.UH.YtdGuideStateAwareBehavior,$q.prototype];var hjB=2/3,T3r=_.Zv(130749),gwK=function(O,m){var G=this;this.element=O;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){G.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:hjB,moveAction:function(B){G.moveAction(B)},
triggerAction:function(){G.element.isReloading=!0;_.P6(_.uK(),{visualElement:T3r});_.XJ.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:G.element}})}}}};
_.CK(_.uK(),T3r,this.layer);this.gesture=new _.k8(O,m,this.refreshConfig,"pan-down");this.attach()};
_.v=gwK.prototype;_.v.attach=function(){this.gesture.attach()};
_.v.detach=function(){this.gesture.detach()};
_.v.reset=function(){this.element.close()};
_.v.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.v.moveAction=function(O){this.element.rotation=O*360};var u8u=_.Zv(130750),IE0=function(O,m,G,B,Q){var H=this;this.element=O;this.parent=G;this.channelHeader=B;this.ytdReduxDispatch=Q;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){H.tabsStartAtInPx=H.channelHeader.clientHeight-48;var M;(M=H.selectedTab)!=null&&M.title&&(M=_.KR().resolve(_.v7(_.KJ)))&&(M=M.getCurrentPage(),H.lastVisitedTabScrollPosition=M.getScrollTop(),H.previousTab&&
((H.lastVisitedTabScrollPosition===void 0?0:H.lastVisitedTabScrollPosition<H.channelHeader.clientHeight-48)?H.scrollPositionForTabs.has(H.selectedTab.title)&&H.scrollPositionForTabs.delete(H.selectedTab.title):H.scrollPositionForTabs.set(H.selectedTab.title,M.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:jYx(),triggerAction:function(){H.navigate(H.previousTab)},
moveAction:function(M,R){H.moveAction(M,R)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-jYx(),triggerAction:function(){H.navigate(H.nextTab)},
moveAction:function(M,R){H.moveAction(M,R)}}}};
_.CK(_.uK(),u8u,this.layer);this.gesture=new _.k8(O,m,this.tabConfig);this.attach()};
_.v=IE0.prototype;_.v.attach=function(){this.gesture.attach()};
_.v.detach=function(){this.gesture.detach()};
_.v.tabsChanged=function(O){if(O){var m=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;O=_.K(O);for(var G=O.next();!G.done;G=O.next()){G=G.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=G);var B=void 0;if((B=G)==null?0:B.selected)this.previousTab=m,this.selectedTab=G;m=G}m=this.gesture;O=this.getConfig();m.config=O;this.scrollPositionNeedsUpdate=!0}};
_.v.getConfig=function(){return 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}})};
_.v.moveAction=function(O,m){if(!this.tabsElement){var G;this.tabsElement=(G=this.parent.header)==null?void 0:G.tabsElement;m==="right"&&this.previousTab?_.BF$(_.DU.instance,this.previousTab.endpoint,{},""):m==="left"&&this.nextTab&&_.BF$(_.DU.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}G=this.tabsElement._pos;m==="right"&&(O*=-1);this.tabsElement._positionBar(G.width,G.left*1+G.width*O)};
var jYx=function(){var O,m;return(m=(O=_.KR().resolve(_.KJ).getCurrentPage())==null?void 0:O.clientWidth)!=null?m:0};
IE0.prototype.navigate=function(O){this.element.data=void 0;if(O=O==null?void 0:O.endpoint)this.ytdReduxDispatch(B3y(!0)),_.P6(_.uK(),{visualElement:u8u}),_.XJ.instance.resolveCommand({navigateAction:{endpoint:O}},{form:{element:this.element}})};var p2r;var Sq0;var M7=function(){return _.u.apply(this,arguments)||this};
_.X(M7,_.u);M7.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],M7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],M7.prototype,"data",void 0);_.c([_.l({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],M7);
_.y(M7,"ytd-labs-edit-renderer",function(){if(Sq0!==void 0)return Sq0;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Sq0=O},{mode:1});var Ewu;var rV=function(){var O=_.u.apply(this,arguments)||this;O.dark=!1;O.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";O.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.X(rV,_.u);rV.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
rV.prototype.ready=function(){var O=document.documentElement.hasAttribute("dark");this.setBackgroundImage(O);this.dark=O};
rV.prototype.onDarkModeToggledAction=function(O){this.setBackgroundImage(O);this.dark=O};
rV.prototype.setBackgroundImage=function(O){_.n7(this.hostElement,{"--yt-labs-header-background":"url("+(O?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],rV.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],rV.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],rV.prototype,"dark",void 0);
_.c([_.l({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],rV);
_.y(rV,"ytd-labs-header-renderer",function(){if(Ewu!==void 0)return Ewu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Ewu=O},{mode:1});var Lq3;var RB=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return O};
_.X(RB,_.u);RB.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"}}}}}};
RB.prototype.onYtToggleButton=function(O){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",O.detail.toggled)};
RB.prototype.onManageLabsState=function(O){if(O=_.b(O,qqb))O.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?O.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&O.labsItemId===this.data.labsItemId&&(O.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.xc(this.hostElement,"yt-check-labs-opted-in-state").some(function(m){return m})&&this.data.confirmationDialogCommand?_.Wd(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.KR().resolve(_.Mu).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&O.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.KR().resolve(_.Mu).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
RB.prototype.onCheckLabsOptedInState=function(){var O=this.get("data.primaryButton.toggleButtonRenderer");return O?O.isToggled:!1};
_.vr.Object.defineProperties(RB.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
RB.prototype.onYtToggleButton=RB.prototype.onYtToggleButton;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],RB.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],RB.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],RB.prototype,"itemStyle",null);_.c([_.hG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],RB.prototype,"onYtToggleButton",null);_.c([_.l({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],RB);
_.y(RB,"ytd-labs-item-renderer",function(){if(Lq3!==void 0)return Lq3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Lq3=O},{mode:1});var CVb;var owr;var lEu=function(){return _.u.apply(this,arguments)||this};
_.X(lEu,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],lEu.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],lEu.prototype,"data",void 0);_.c([_.l({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],lEu);
_.y(lEu,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(owr!==void 0)return owr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return owr=O},{mode:1});var aE9;var iM=function(){return _.u.apply(this,arguments)||this};
_.X(iM,_.u);iM.prototype.observeSuperchatChip=function(){if(this.data){var O={"--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)};_.n7(this.hostElement,O)}};
iM.prototype.colorFromDecimal=function(O){return _.AV(Number(O||0))};
iM.prototype.observeSuperchatChip=iM.prototype.observeSuperchatChip;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],iM.prototype,"data",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iM.prototype,"observeSuperchatChip",null);_.c([_.l({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],iM);
_.y(iM,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(aE9!==void 0)return aE9;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return aE9=O},{mode:1});var xq=function(){return _.u.apply(this,arguments)||this};
_.X(xq,_.u);xq.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"}}}};
_.vr.Object.defineProperties(xq.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Rr),_.Y("design:type",Object)],xq.prototype,"ytdDismissibleItemBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],xq.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],xq.prototype,"hideMessageBlock",null);
_.c([_.l({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],xq);
_.y(xq,"ytd-live-chat-history-entry-renderer",function(){if(CVb!==void 0)return CVb;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return CVb=O},{mode:1});var k69;var yMA=function(){return _.u.apply(this,arguments)||this};
_.X(yMA,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],yMA.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],yMA.prototype,"data",void 0);_.c([_.l({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],yMA);
_.y(yMA,"ytd-channel-options-renderer",function(){if(k69!==void 0)return k69;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return k69=O},{mode:1});var cMx;var q7=function(){return _.u.apply(this,arguments)||this};
_.X(q7,_.u);q7.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],q7.prototype,"data",void 0);_.c([_.l({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],q7);
_.y(q7,"ytd-settings-email-item-renderer",function(){if(cMx!==void 0)return cMx;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return cMx=O},{mode:1});var Yqr;var UP=function(){return _.u.apply(this,arguments)||this};
_.X(UP,_.u);UP.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"}}}};
UP.prototype.getExpansionIcon=function(O){return O?"COLLAPSE":"EXPAND"};
UP.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.vr.Object.defineProperties(UP.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],UP.prototype,"data",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],UP.prototype,"expanded",void 0);_.c([_.T("expanded"),_.Y("design:type",String),_.Y("design:paramtypes",[])],UP.prototype,"emailListExpanded",null);
_.c([_.uc("#options"),_.Y("design:type",Object)],UP.prototype,"options",void 0);_.c([_.l({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],UP);
_.y(UP,"ytd-settings-email-list-renderer",function(){if(Yqr!==void 0)return Yqr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Yqr=O},{mode:1});var d3r;var tb=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return O};
_.X(tb,_.u);tb.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"}}}};
tb.prototype.handleSignalActionSubmitForm=function(){var O,m=(O=this.formRenderer)==null?void 0:O.getForm();m&&this.data.serviceEndpoint&&_.KR().resolve(_.Mu).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},m,{element:this.hostElement})})};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],tb.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],tb.prototype,"data",void 0);_.c([_.uc("yt-form-renderer"),_.Y("design:type",Object)],tb.prototype,"formRenderer",void 0);
_.c([_.l({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],tb);
_.y(tb,"ytd-settings-gaia-link-renderer",function(){if(d3r!==void 0)return d3r;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return d3r=O},{mode:1});var w2h;var WW=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return O};
_.X(WW,_.u);WW.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.j8h()&&this.set("data.hidden",!1)};
WW.prototype.onSwitchReady=function(){var O=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.V("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.uqB().then(function(m){m&&(Notification.permission==="default"?O.set("data.hidden",!1):Notification.permission==="granted"&&_.yH("NotificationsDisabled").then(function(G){G||_.xc(O.hostElement,"yt-toggle-settings-switch",[O.data.id,!G]);O.set("data.hidden",!1)}).catch(function(){}))})})};
WW.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}}}}};
WW.prototype.handleUpdateOptionsCommand=function(O){(O=_.b(O,_.aIs))&&this.data&&this.data.id===O.id&&(this.set("data.hidden",O.hidden),O.text!==void 0&&this.set("data.text",O.text),O.clearOptions&&this.set("data.options",[]))};
WW.prototype.onSwitchReady=WW.prototype.onSwitchReady;WW.prototype.dataChanged=WW.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],WW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],WW.prototype,"data",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WW.prototype,"dataChanged",null);_.c([_.hG("yt-settings-switch-ready"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],WW.prototype,"onSwitchReady",null);_.c([_.l({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],WW);
_.y(WW,"ytd-settings-options-renderer",function(){if(w2h!==void 0)return w2h;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return w2h=O},{mode:1});var ej9;var ZX=function(){return _.u.apply(this,arguments)||this};
_.X(ZX,_.u);ZX.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ZX.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
ZX.prototype.onYtExpanderMoreTapped=ZX.prototype.onYtExpanderMoreTapped;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],ZX.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ZX.prototype,"data",void 0);
_.c([_.hG("yt-expander-more-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZX.prototype,"onYtExpanderMoreTapped",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],ZX);
_.y(ZX,"ytd-product-details-description-renderer",function(){if(ej9!==void 0)return ej9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ej9=O},{mode:1});var D3x;var zs=function(){var O=_.u.apply(this,arguments)||this;O.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";O.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";O.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";O.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return O};
_.X(zs,_.u);zs.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vr.Object.defineProperties(zs.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?void 0:(m=O.offerData)==null?void 0:m.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?void 0:O.purchaseButtonRenderers)!==void 0&&((m=this.data)==null?void 0:m.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var O,m;return!((O=this.data)==null||!O.formattedFromMerchantText)&&(!((m=this.data)==null||!m.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],zs.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],zs.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],zs.prototype,"data",void 0);
_.c([_.g({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],zs.prototype,"shippingIcon",void 0);_.c([_.g({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],zs.prototype,"shippingAddressIcon",void 0);_.c([_.g({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],zs.prototype,"googleGuaranteeIcon",void 0);
_.c([_.g({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0}),_.Y("design:type",Object)],zs.prototype,"returnPolicyIcon",void 0);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zs.prototype,"showAdditionalFees",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zs.prototype,"showMultiPurchaseButtons",null);
_.c([_.T("data","showMultiPurchaseButtons"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],zs.prototype,"showPurchaseData",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],zs);
_.y(zs,"ytd-product-details-hero-offer-renderer",function(){if(D3x!==void 0)return D3x;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return D3x=O},{mode:1});var sYK;var N33;var Jb=function(){return _.u.apply(this,arguments)||this};
_.X(Jb,_.u);_.v=Jb.prototype;_.v.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.v.onKeyDown=function(O){O=O.keyCode;O!==13&&O!==32||this.handleSelection()};
_.v.onMouseEnterImage=function(){var O;((O=this.data)==null?void 0:O.thumbnailDetails)!==void 0&&_.UB(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.v.onMouseLeaveImage=function(){_.UB(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.v.handleSelection=function(){this.data&&_.iP(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.vr.Object.defineProperties(Jb.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.isSelected)}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Jb.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Jb.prototype,"isSelected",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Jb);
_.y(Jb,"ytd-product-details-thumbnail-renderer",function(){if(N33!==void 0)return N33;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return N33=O},{mode:1});var Vd=function(){var O=_.u.apply(this,arguments)||this;var m={};O.actionMap=(m["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",m["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",m);O.selectedThumbnailIndex=0;O.selectItem=function(G){G.target.onKeyDown(G)};
return O};
_.X(Vd,_.u);_.v=Vd.prototype;_.v.handlePreviewImageSelect=function(O){this.hoverThumbnail=O};
_.v.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.v.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.v.onThumbnailSelected=function(O,m){this.selectedThumbnailIndex=m};
_.v.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.v.updateOffset=function(){var O=_.ZO(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-O));this.ytdHorizontalListBehavior.reposition_()};
_.vr.Object.defineProperties(Vd.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null?0:O.imageRenderer){var m,G;return((m=this.data)==null?void 0:(G=m.imageRenderer)==null?void 0:G.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var O;if((O=this.data)==null?0:O.imageRenderer){var m;return(m=_.b(this.data.imageRenderer[this.selectedThumbnailIndex],Wqy))==null?void 0:m.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var O=this,m,G,B,Q=(B=(m=this.data)==null?void 0:(G=m.imageRenderer)==null?void 0:G.map(function(H,M){return{productDetailsThumbnailRenderer:Object.assign({},_.b(H,Wqy),{index:M,isSelected:M===O.selectedThumbnailIndex})}}))!=null?B:[];
return Object.assign({},this.data,{imageRenderer:Q})}}});
Vd.prototype.updateOffset=Vd.prototype.updateOffset;Vd.prototype.dataChanged=Vd.prototype.dataChanged;Vd.prototype.onThumbnailSelected=Vd.prototype.onThumbnailSelected;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Ir.YtdHorizontalListBehavior),_.Y("design:type",Object)],Vd.prototype,"ytdHorizontalListBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Vd.prototype,"componentBehavior",void 0);_.c([_.h([_.cg.YtActionHandlerBehavior]),_.Y("design:type",Object)],Vd.prototype,"actionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Vd.prototype,"data",void 0);_.c([_.g({value:"$.items.children"}),_.Y("design:type",String)],Vd.prototype,"itemsPath",void 0);_.c([_.g({value:3}),_.Y("design:type",Number)],Vd.prototype,"initialCount",void 0);
_.c([_.uc("#items"),_.Y("design:type",Object)],Vd.prototype,"items",void 0);_.c([_.g(),_.Y("design:type",Object)],Vd.prototype,"selectedThumbnailIndex",void 0);_.c([_.g(),_.Y("design:type",Object)],Vd.prototype,"hoverThumbnail",void 0);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Vd.prototype,"showThumbnails",null);
_.c([_.hG("ytd-product-details-thumbnail-renderer-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Number]),_.Y("design:returntype")],Vd.prototype,"onThumbnailSelected",null);_.c([_.T("data","selectedThumbnailIndex","hoverThumbnail"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Vd.prototype,"thumbnailDetails",null);_.c([_.T("data","selectedThumbnailIndex"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Vd.prototype,"populatedData",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vd.prototype,"dataChanged",null);_.c([_.hG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Vd.prototype,"updateOffset",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Vd);
_.y(Vd,"ytd-product-details-image-carousel-renderer",function(){if(sYK!==void 0)return sYK;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return sYK=O},{mode:_.ZB("kevlar_poly_si_batch_j079")?1:2});var PV9;var bM=function(){return _.u.apply(this,arguments)||this};
_.X(bM,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],bM.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],bM.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],bM.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],bM);
_.y(bM,"ytd-product-details-offer-renderer",function(){if(PV9!==void 0)return PV9;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return PV9=O},{mode:1});var Fq0;var nc=function(){var O=_.u.apply(this,arguments)||this;O.isOffersHidden=!0;return O};
_.X(nc,_.u);nc.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var O,m=_.b((O=this.data)==null?void 0:O.viewOffersButton,_.v3);m&&this.ytRendererBehavior.logExplicitClick(m)};
nc.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.vr.Object.defineProperties(nc.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B;return(G=_.b((O=this.data)==null?void 0:(m=O.offers)==null?void 0:m[0],VNb))==null?void 0:(B=G.offerData)==null?void 0:B.vendorLogoUrl}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],nc.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],nc.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],nc.prototype,"isOffersHidden",void 0);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],nc.prototype,"firstOfferVendorLogoUrl",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],nc);
_.y(nc,"ytd-product-details-offers-container-renderer",function(){if(Fq0!==void 0)return Fq0;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Fq0=O},{mode:1});var AMy;var ONA;var XU=function(){return _.u.apply(this,arguments)||this};
_.X(XU,_.u);XU.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
XU.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.UB(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
XU.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.UB(this,"ytd-product-details-variant-image-unselect")};
_.vr.Object.defineProperties(XU.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 O;return((O=this.data)==null?void 0:O.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return((O=this.data)==null?void 0:O.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((m=this.data)==null?void 0:m.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((G=this.data)==null?void 0:G.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var O;if(((O=this.data)==null?void 0:O.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var O,m;return this.isUnavailable?(O=this.data)==null?void 0:O.variantOptionUnavailableAccessibilityLabel:(m=this.data)==null?void 0:m.variantOptionAccessibilityLabel}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],XU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],XU.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],XU.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],XU.prototype,"displayType",void 0);
_.c([_.T("displayType","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],XU.prototype,"isImageButton",null);_.c([_.T("displayType","data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],XU.prototype,"isPillButton",null);_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],XU.prototype,"isActive",null);
_.c([_.T("data"),_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],XU.prototype,"isUnavailable",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XU.prototype,"thumbnailDetails",null);_.c([_.T("isUnavailable","data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],XU.prototype,"accessibilityLabel",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],XU);
_.y(XU,"ytd-product-details-variant-option-renderer",function(){if(ONA!==void 0)return ONA;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return ONA=O},{mode:1});var mpO;var fc=function(){var O=_.u.apply(this,arguments)||this;O.variantsExpanded=!1;O.hideShowMoreLessVariantButton=!0;O.initialized=!1;O.computeVariantsDebouncer=null;O.computeVariants=function(m){m=m===void 0?!1:m;O.variantsExpanded||O.showOptions()||!m||(O.variantsExpanded=!0);if(O.variantsExpanded){m=_.K(O.items.children);for(var G=m.next();!G.done;G=m.next())G.value.hidden=!1}O.initialized=!0};
return O};
_.X(fc,_.u);_.v=fc.prototype;_.v.ready=function(){var O=this;setTimeout(function(){O.computeVariants(!0)})};
_.v.showOptions=function(){for(var O=_.K(this.items.children),m=O.next();!m.done;m=O.next())m.value.hidden=!0;var G=this.container.getBoundingClientRect().width,B=0,Q=O=0;m=!1;for(var H=_.K(this.items.children),M=H.next();!M.done;M=H.next()){M=M.value;M.hidden=!1;var R=M.getBoundingClientRect().width;if(B+R<G)B+=R;else if(++Q<2)B=R;else break;O+=1;M.hasAttribute("is-active")&&(m=!0)}for(G=O;G<this.items.children.length;G++)this.items.children[G].hidden=!0;this.hideShowMoreLessVariantButton=O===this.items.children.length;
return m};
_.v.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Xu(this.computeVariantsDebouncer,_.iU.after(100),this.computeVariants)};
_.v.onShowMoreLessVariantsButtonClick=function(){var O;(O=this.data)!=null&&O.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.v.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.vr.Object.defineProperties(fc.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var O,m,G=(O=this.data)==null?void 0:(m=O.variantOptionRenderers)==null?void 0:m.find(function(H){return _.b(H,zjx).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),B,Q;
return(Q=(B=_.b(G,zjx))==null?void 0:B.name)!=null?Q:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.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"}}}});
fc.prototype.debouncedComputeVariants=fc.prototype.debouncedComputeVariants;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],fc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],fc.prototype,"componentBehavior",void 0);_.c([_.h(_.Dm),_.Y("design:type",Object)],fc.prototype,"ironResizableBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],fc.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],fc.prototype,"variantsExpanded",void 0);_.c([_.g(),_.Y("design:type",Object)],fc.prototype,"hideShowMoreLessVariantButton",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],fc.prototype,"initialized",void 0);_.c([_.uc("#items"),_.Y("design:type",HTMLDivElement)],fc.prototype,"items",void 0);_.c([_.uc("#container"),_.Y("design:type",HTMLDivElement)],fc.prototype,"container",void 0);
_.c([_.uc("#more-variants-button"),_.Y("design:type",HTMLElement)],fc.prototype,"moreVariantsButton",void 0);_.c([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],fc.prototype,"selectedOptionName",null);_.c([_.Tw("data","variantsExpanded"),_.hG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fc.prototype,"debouncedComputeVariants",null);
_.c([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],fc.prototype,"displayType",null);_.c([_.T("displayType"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fc.prototype,"variantItemsClassname",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],fc);
_.y(fc,"ytd-product-details-variant-renderer",function(){if(mpO!==void 0)return mpO;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return mpO=O},{mode:1});var hb=function(){return _.u.apply(this,arguments)||this};
_.X(hb,_.u);
hb.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"}}}};
_.vr.Object.defineProperties(hb.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var O,m,G=(m=_.b((O=this.data)==null?void 0:O.offersContainerRenderer,JMh))==null?void 0:m.offers;return G!==void 0&&(G==null?void 0:G.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 O,m,G;return((G=(O=this.data)==null?void 0:(m=O.variants)==null?void 0:m.map(function(B){var Q,H;B=(H=(Q=_.b(B,Zor))==null?void 0:Q.variantOptionRenderers)==null?void 0:H.find(function(R){var x;return((x=_.b(R,zjx))==null?void 0:x.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var M;return(M=_.b(B,zjx))==null?void 0:M.name}).filter(function(B){return typeof B==="string"}))!=null?G:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var O,m,G,B=(m=_.b((O=this.data)==null?void 0:O.shoppingFlaggingRenderer,bor))==null?void 0:(G=m.reportButton)==null?void 0:G.buttonRenderer;if(B)return{text:B.text,command:B.command,icon:{iconType:"FLAG"},accessibilityData:B.accessibilityData,trackingParams:B.trackingParams,loggingDirectives:B.loggingDirectives}}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],hb.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],hb.prototype,"data",void 0);_.c([_.uc("#image-carousel-renderer"),_.Y("design:type",Object)],hb.prototype,"imageCarouselRenderer",void 0);
_.c([_.uc("#hero-offer-renderer"),_.Y("design:type",Object)],hb.prototype,"productDetailsHeroOfferRenderer",void 0);_.c([_.uc("#variants"),_.Y("design:type",Object)],hb.prototype,"productDetailsVariantRenderer",void 0);_.c([_.uc("#offers"),_.Y("design:type",Object)],hb.prototype,"productDetailsOffersContainerRenderer",void 0);_.c([_.uc("#description-renderer"),_.Y("design:type",Object)],hb.prototype,"productDetailsDescriptionRenderer",void 0);
_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hb.prototype,"showPurchaseData",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hb.prototype,"showHeroOfferRenderer",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hb.prototype,"showBrandText",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hb.prototype,"showOffers",null);
_.c([_.T("showOffers","showPurchaseData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hb.prototype,"showBuySeparator",null);_.c([_.T("showOffers","showPurchaseData"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],hb.prototype,"showBuyCard",null);_.c([_.T("data"),_.Y("design:type",String),_.Y("design:paramtypes",[])],hb.prototype,"selectedVariantsText",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],hb.prototype,"shoppingReportingButtonData",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],hb);
_.y(hb,"ytd-product-details-renderer",function(){if(AMy!==void 0)return AMy;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return AMy=O},{mode:1});var GYq;var BNc;var QeP;var Ts=function(){return _.u.apply(this,arguments)||this};
_.X(Ts,_.u);Ts.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.vr.Object.defineProperties(Ts.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ts.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ts.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],Ts.prototype,"formattedAmount",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Ts.prototype,"ariaLabel",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("data.style"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Ts.prototype,"vcBalanceWidgetStyle",null);_.c([_.DO({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Ts);
_.y(Ts,"yt-vc-balance-renderer",function(){if(QeP===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;BNc===void 0&&(BNc=document.createElement("template"));var B=BNc;G.call(m,B.content.cloneNode(!0),O.content.firstChild);QeP=O}O=QeP;return O},{mode:2});_.lE("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var gV=function(){return _.u.apply(this,arguments)||this};
_.X(gV,_.u);_.vr.Object.defineProperties(gV.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],gV.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],gV.prototype,"data",void 0);_.c([_.g({selectorArgs:["data.vcBalanceEntityKey"],selector:function(O,m){return _.Vh(O.entities,"vcBalanceEntity",m)}}),
_.Y("design:type",Object)],gV.prototype,"vcBalanceEntity",void 0);_.c([_.T("vcBalanceEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],gV.prototype,"formattedAmount",null);_.c([_.T("vcBalanceEntity"),_.Y("design:type",String),_.Y("design:paramtypes",[])],gV.prototype,"vcBalanceAriaLabel",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],gV);
_.y(gV,"ytd-vc-balance-renderer",function(){if(GYq!==void 0)return GYq;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return GYq=O},{mode:1});var HN8;var uM=function(){var O=_.u.apply(this,arguments)||this;O.rotation=0;O.isReloading=!1;return O};
_.X(uM,_.u);uM.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
uM.prototype.reset=function(){this.hostElement.style.opacity=""};
uM.prototype.close=function(){var O=this;return _.r(function(m){if(m.nextAddress==1)return m.yield(O.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);O.hostElement.style.opacity="0";_.ju(m)})};
uM.prototype.rotationChanged=uM.prototype.rotationChanged;_.c([_.g(),_.Y("design:type",Object)],uM.prototype,"rotation",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uM.prototype,"isReloading",void 0);_.c([_.uc("#icon"),_.Y("design:type",HTMLElement)],uM.prototype,"icon",void 0);_.c([_.Tw("rotation"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uM.prototype,"rotationChanged",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-refresh"})],uM);
_.y(uM,"ytd-refresh",function(){if(HN8!==void 0)return HN8;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return HN8=O},{mode:1});var vO0;var jT=function(){return _.u.apply(this,arguments)||this};
_.X(jT,_.u);jT.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"}}}};
jT.prototype.dataChanged=function(){if(this.data){var O=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var m=_.Uf(this.data.banner.thumbnails,this.hostElement.clientWidth);m&&(m.indexOf("//")===0&&(m="https:"+m),this.hasBannerArt=!0,_.n7(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+m+")"}))}this.hasBannerArt!==O&&_.ZO(this.hostElement).querySelector("#header").fire("iron-resize")}};
jT.prototype.updateSelectedFromBinding=function(O){this.selected=O.detail.value};
jT.prototype.dataChanged=jT.prototype.dataChanged;_.c([_.h(fEA),_.Y("design:type",Object)],jT.prototype,"ytdTabbedHeaderBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],jT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xm),_.Y("design:type",Object)],jT.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],jT.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],jT.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],jT.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Number)],jT.prototype,"selected",void 0);_.c([_.g(),_.Y("design:type",Boolean)],jT.prototype,"active",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],jT.prototype,"hasBannerArt",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jT.prototype,"dataChanged",null);_.c([_.l({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],jT);
_.y(jT,"ytd-interactive-tabbed-header-renderer",function(){if(vO0!==void 0)return vO0;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return vO0=O},{mode:1});var K5A;var IB=function(){return _.u.apply(this,arguments)||this};
_.X(IB,_.u);IB.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
IB.prototype.computeActionsAlignment=function(O){return(O==null?void 0:O.actionsAlignment)||""};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],IB.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.Y("design:type",String)],IB.prototype,"actionsAlignment",void 0);_.c([_.l({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],IB);
_.y(IB,"ytd-page-footer-renderer",function(){if(K5A!==void 0)return K5A;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return K5A=O},{mode:1});var $pG;var MrP;var pc=function(){var O=_.u.apply(this,arguments)||this;O.isEditing=!1;O.useSlot=!1;O.isMultiline=!1;return O};
_.X(pc,_.u);_.v=pc.prototype;_.v.onKeydown=function(O){if(O.keyCode===13&&!this.isMultiline)this.onSave();else if(O.keyCode===27)this.onCancel()};
_.v.computeComponentStyle=function(O){return(O==null?0:O.style)?O.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.v.computeisMultiline=function(O){if(this.multilineOverride!==void 0)return this.multilineOverride;var m,G;return!!(O==null?0:(m=O.formField)==null?0:(G=m.textInputFormFieldRenderer)==null?0:G.isMultiline)};
_.v.computeTextDisplayed=function(O,m){if(O)return O;if(m)return m};
_.v.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.v.onSave=function(){if(this.textForm.validate()){this.textForm.save();var O=this.textForm.value;if(O)this.set("data.textDisplayed",_.Qg(O));else{var m;((m=this.data)==null?0:m.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.zR("inline-form-changed",this.data));this.isEditing=!1}};
_.v.onCancel=function(){var O=_.HX(this.data.textDisplayed);O===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(O);this.isEditing=!1};
pc.prototype.onKeydown=pc.prototype.onKeydown;_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],pc.prototype,"ytEventForwardingBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],pc.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],pc.prototype,"isEditing",void 0);_.c([_.g(),_.Y("design:type",Object)],pc.prototype,"useSlot",void 0);_.c([_.g(),_.Y("design:type",Boolean)],pc.prototype,"multilineOverride",void 0);_.c([_.g(),_.Y("design:type",Boolean)],pc.prototype,"enableOverlayTheme",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.Y("design:type",String)],pc.prototype,"componentStyle",void 0);
_.c([_.g({computed:"computeisMultiline(data)"}),_.Y("design:type",Object)],pc.prototype,"isMultiline",void 0);_.c([_.uc("#text-form"),_.Y("design:type",Object)],pc.prototype,"textForm",void 0);_.c([_.hG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],pc.prototype,"onKeydown",null);_.c([_.l({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],pc);
_.y(pc,"ytd-inline-form-renderer",function(){if(MrP!==void 0)return MrP;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return MrP=O},{mode:1});var rzh;var ST=function(){var O=_.u.apply(this,arguments)||this;O.previousSelectValue=void 0;O.selectedItemMessage=void 0;return O};
_.X(ST,_.u);ST.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
ST.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var O,m,G,B,Q=(O=this.data)==null?void 0:(m=O.dropdown)==null?void 0:(G=m.dropdownRenderer)==null?void 0:(B=G.entries)==null?void 0:B.map(function(R){return R.privacyDropdownItemRenderer});
O=_.K(Q!=null?Q:[]);for(m=O.next();!m.done;m=O.next())if((m=m.value)&&m.int32Value===this.selectedValue){this.selectedItemMessage=m.itemMessage;break}}else this.selectedItemMessage=void 0;var H;(H=this.onValueChanged)==null||H.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var M;(M=this.data)!=null&&M.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
ST.prototype.onValueChangedForSelectedValue=function(O){this.selectedValue=O.detail.value};
ST.prototype.selectedValueChanged=ST.prototype.selectedValueChanged;_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],ST.prototype,"ytEventForwardingBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],ST.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ST.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ST.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],ST.prototype,"theme",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Number)],ST.prototype,"selectedValue",void 0);_.c([_.g(),_.Y("design:type",Function)],ST.prototype,"onValueChanged",void 0);
_.c([_.Si("selectedValue"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ST.prototype,"selectedValueChanged",null);_.c([_.l({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],ST);
_.y(ST,"ytd-dropdown-form-field-renderer",function(){if(rzh!==void 0)return rzh;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return rzh=O},{mode:_.ZB("kevlar_poly_si_batch_j025")?1:2});var R6G;var EP=function(){return _.u.apply(this,arguments)||this};
_.X(EP,_.u);_.vr.Object.defineProperties(EP.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var O=[],m=_.K(this.data||[]),G=m.next();!G.done;G=m.next())(G=_.b(G.value,nwo))&&O.push(G);return O}}});
_.c([_.g(),_.Y("design:type",Array)],EP.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EP.prototype,"byline",null);_.c([_.l({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],EP);
_.y(EP,"ytd-playlist-byline-renderer",function(){if(R6G!==void 0)return R6G;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return R6G=O},{mode:1});var iNG;var Lc=function(){var O=_.u.apply(this,arguments)||this;O.rtlBullet=_.V("web_playlist_stats_rtl_bullet_icon_killswitch");O.modern=_.V("web_modern_buttons");O.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return O};
_.X(Lc,_.u);_.v=Lc.prototype;_.v.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"}}}}};
_.v.attached=function(){};
_.v.computeIsCustomThumbnail=function(O){return O?!!O.playlistCustomThumbnailRenderer:!1};
_.v.onYtNavigate=function(O,m){if(m&&m.actions&&m.actions.indexOf("shuffle")>-1){O=_.KR().resolve(_.Rt);var G=m.tempData||{};G.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);m.tempData=G;O.isShuffleNextPlaylist=!0}};
_.v.onUpdatePlaylistAction=function(O){var m;O=(m=_.b(O,_.Um2))==null?void 0:m.updatedRenderer;if(m=_.b(O,tNr))this.data=m};
_.v.computeStyleType=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.v.computeThumbnailWidth=function(O){return O==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.v.computeHideThumbnailAria=function(O){if(O==null?0:O.thumbnailOverlays)for(var m=0;m<O.thumbnailOverlays.length;m++){var G=void 0;if((G=O.thumbnailOverlays[m])==null?0:G.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Lc.prototype.onYtNavigate=Lc.prototype.onYtNavigate;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Lc.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Lc.prototype,"ytComponentBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],Lc.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Lc.prototype,"rtlBullet",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.Y("design:type",String)],Lc.prototype,"styleType",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.Y("design:type",Number)],Lc.prototype,"thumbnailWidth",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Lc.prototype,"modern",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.Y("design:type",Boolean)],Lc.prototype,"isCustomThumbnail",void 0);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],Lc.prototype,"onYtNavigate",null);_.c([_.l({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Lc);
_.y(Lc,"ytd-playlist-sidebar-primary-info-renderer",function(){if(iNG!==void 0)return iNG;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return iNG=O},{mode:1});var xph;var Cc=function(){return _.u.apply(this,arguments)||this};
_.X(Cc,_.u);Cc.prototype.computeOwnerVisibility=function(O){return!(!O.videoOwner&&!O.button)};
Cc.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Cc.prototype,"data",void 0);_.c([_.l({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Cc);
_.y(Cc,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(xph!==void 0)return xph;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return xph=O},{mode:1});var qSh;var oB=function(){var O=_.u.apply(this,arguments)||this;O.expanded=!1;O.isCompact=!1;return O};
_.X(oB,_.u);_.v=oB.prototype;_.v.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.v.dataChanged=function(){this.data&&_.MG(_.ZO(this.text),_.wsm(_.sjU,_.HX(this.data.text||null)))};
_.v.computeAutoScrollEnabled=function(O,m){return O&&!m};
_.v.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.v.toggleOnTap=function(){this.expanded=!this.expanded};
oB.prototype.expandedChanged=oB.prototype.expandedChanged;oB.prototype.dataChanged=oB.prototype.dataChanged;_.c([_.h(_.Ol0),_.Y("design:type",Object)],oB.prototype,"ytdAutoScrollBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],oB.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],oB.prototype,"expanded",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],oB.prototype,"isCompact",void 0);_.c([_.g({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.Y("design:type",Boolean)],oB.prototype,"autoScrollEnabled",void 0);_.c([_.uc("#text"),_.Y("design:type",Object)],oB.prototype,"text",void 0);_.c([_.uc("#expander-icon"),_.Y("design:type",Object)],oB.prototype,"expanderIcon",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oB.prototype,"dataChanged",null);_.c([_.Tw("expanded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],oB.prototype,"expandedChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],oB);
_.y(oB,"ytd-channel-legal-info-renderer",function(){if(qSh!==void 0)return qSh;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return qSh=O},{mode:1});var Up8;var trn=_.Xm("DOWNLOAD",{},"Download"),W5q=_.Xm("DOWNLOADING",{},"Downloading"),ZNA=_.Xm("DOWNLOADED",{},"Downloaded"),lM=function(){var O=_.u.apply(this,arguments)||this;O.downloadProgress=0;O.isDownloadComplete=!1;O.transferState="TRANSFER_STATE_UNKNOWN";return O};
_.X(lM,_.u);_.v=lM.prototype;_.v.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.v.dataChanged=function(){var O;(O=this.data)!=null&&O.tooltip||(O=_.Dh(_.Kf().getState(),this.playlistId),this.updateButtonState(O))};
_.v.computePlaylistId=function(O){return O};
_.v.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.v.updateButtonState=function(O){if(this.data&&(this.data.tooltip!==W5q||!_.IQ(O))){this.isDownloadComplete=!1;switch(O){case "TRANSFER_STATE_UNKNOWN":O=trn;var m="OFFLINE_DOWNLOAD";var G="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":O=ZNA;m="OFFLINE_PIN";G="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":O=W5q;m="OFFLINE_DOWNLOADING_ZERO";G="ACTION_REMOVE_WITH_PROMPT";
break;default:O=trn,m="OFFLINE_DOWNLOAD",G="ACTION_ADD"}var B=Object.assign({},this.data);B.tooltip=O;B.accessibilityData={accessibilityData:{label:O}};B.icon={iconType:m};B.size="SIZE_DEFAULT";_.b(B.command,_.X4)&&(_.b(B.command,_.X4).action=G);this.set("data",B)}};
_.v.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var O="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?O="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?O="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?O="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?O="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?O="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(O="OFFLINE_PIN",this.isDownloadComplete=!0);var m;O!==((m=this.data.icon)==null?void 0:m.iconType)&&(m=Object.assign({},this.data),m.tooltip=W5q,m.accessibilityData={accessibilityData:{label:W5q}},m.icon={iconType:O},_.b(m.command,_.X4)&&(_.b(m.command,_.X4).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",m))}};
lM.prototype.updateProgress=lM.prototype.updateProgress;lM.prototype.onTransferStateChanged=lM.prototype.onTransferStateChanged;lM.prototype.dataChanged=lM.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],lM.prototype,"ytdReduxBehavior",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],lM.prototype,"forceIconButton",void 0);
_.c([_.g({value:!0}),_.Y("design:type",Boolean)],lM.prototype,"forceIconOnly",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],lM.prototype,"overrides",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],lM.prototype,"buttonTooltipPosition",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],lM.prototype,"styleActionButton",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],lM.prototype,"disableTextTransform",void 0);
_.c([_.g({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.Y("design:type",String)],lM.prototype,"playlistId",void 0);_.c([_.g(),_.Y("design:type",Object)],lM.prototype,"data",void 0);_.c([_.g({selector:_.ttS,selectorArgs:["playlistId"]}),_.Y("design:type",Object)],lM.prototype,"downloadProgress",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],lM.prototype,"isDownloadComplete",void 0);
_.c([_.g({selector:_.Dh,selectorArgs:["playlistId"]}),_.Y("design:type",String)],lM.prototype,"transferState",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],lM.prototype,"showTooltips",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],lM.prototype,"sendCommandWhenDisabled",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],lM.prototype,"disabled",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lM.prototype,"dataChanged",null);_.c([_.Si("transferState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lM.prototype,"onTransferStateChanged",null);_.c([_.Si("downloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lM.prototype,"updateProgress",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],lM);
_.y(lM,"ytd-download-playlist-button-renderer",function(){if(Up8!==void 0)return Up8;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Up8=O},{mode:1});var z6h;_.qi(_.mF8,"thumbnail-overlay-button-view-model",{props:{data:_.VZ,lockupExperiments:_.VZ}});var aB=function(){var O=_.u.apply(this,arguments)||this;O.isSquare=!1;O.isVertical=!1;return O};
_.X(aB,_.u);aB.prototype.computeIsSquare=function(O){return O!=null&&O.thumbnail?Pv0(O.thumbnail)==="SQUARE":!1};
aB.prototype.computeIsVertical=function(O){return O!=null&&O.thumbnail?Pv0(O.thumbnail)==="VERTICAL":!1};
aB.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],aB.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],aB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.Y("design:type",Object)],aB.prototype,"isSquare",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.Y("design:type",Object)],aB.prototype,"isVertical",void 0);
_.c([_.g(),_.Y("design:type",Object)],aB.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],aB);
_.y(aB,"ytd-hero-playlist-thumbnail-renderer",function(){if(z6h!==void 0)return z6h;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return z6h=O},{mode:1});var kq=function(){var O=_.u.apply(this,arguments)||this;O.isDarkTheme=!1;O.isUltraWide=!1;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return O};
_.X(kq,_.u);_.v=kq.prototype;_.v.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.KR();var O;(O=_.KR().resolve(_.v7(_.Lb)))!=null&&(O.headerElement=this.hostElement)};
_.v.detached=function(){var O;(O=_.KR().resolve(_.v7(_.Lb)))!=null&&(O.headerElement=void 0)};
_.v.onUpdateHeader=function(O){(O=O.detail)&&this.set("data",O)};
_.v.computeTextDisplayed=function(O){if(O)return O.textDisplayed?O.textDisplayed:O.placeholder};
_.v.gradientColorToLinearGradientStop=function(O){var m=this.isDarkTheme?O.darkThemeColor:O.lightThemeColor;return m?_.AV(m)+" "+((O==null?void 0:O.startLocation)||0)*100+"%":"transparent"};
_.v.onWindowResize=function(){var O;((O=this.data)==null?0:O.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.v.onIronResize=function(O){this.isUltraWide=!O.detail.value};
_.v.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.v.onUpdatePlaylistName=function(O){var m=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},O.detail.value));_.QA(this,function(){var G;(G=m.editableTitle)==null||G.resize()})};
_.v.onUpdatePlaylistDescription=function(O){var m=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},O.detail.value));_.QA(this,function(){var G;(G=m.editableDescriptionInlineExpander)==null||G.resize()})};
_.v.getCinematicData=function(O){return _.b(O==null?void 0:O.cinematicContainer,_.BW)};
_.vr.Object.defineProperties(kq.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 O,m=(O=this.getCinematicData(this.data))==null?void 0:O.config;return(O=this.isDarkTheme?m==null?void 0:m.darkThemeBackgroundColor:m==null?void 0:m.lightThemeBackgroundColor)?"background-color:"+_.Fs(O)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var O;return _.b((O=this.data)==null?void 0:O.descriptionForm,U3B)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var O=this,m,G,B;return"background:linear-gradient(to bottom, "+(((B=(m=this.getCinematicData(this.data))==null?void 0:(G=m.gradientColorConfig)==null?void 0:G.map(function(Q){return O.gradientColorToLinearGradientStop(Q)}))==null?void 0:B.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var O;return _.HX((O=this.data)==null?void 0:O.descriptionTapText)}}});
kq.prototype.onUpdateHeader=kq.prototype.onUpdateHeader;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],kq.prototype,"actionHandlerBehavior",void 0);_.c([_.uc("#description-inline-expander"),_.Y("design:type",Object)],kq.prototype,"descriptionInlineExpander",void 0);
_.c([_.uc("#editable-description-inline-expander"),_.Y("design:type",Object)],kq.prototype,"editableDescriptionInlineExpander",void 0);_.c([_.g(),_.Y("design:type",Object)],kq.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],kq.prototype,"isUltraWide",void 0);_.c([_.uc("#editable-title-display"),_.Y("design:type",Object)],kq.prototype,"editableTitle",void 0);_.c([_.T("isUltraWide"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kq.prototype,"maxDescriptionLines",null);
_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kq.prototype,"noCinematicData",null);_.c([_.hG("yt-new-playlist-header"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],kq.prototype,"onUpdateHeader",null);_.c([_.T("data","isDarkTheme"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kq.prototype,"backgroundStyle",null);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kq.prototype,"descriptionFormData",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kq.prototype,"getDropdownTheme",null);_.c([_.T("data","isDarkTheme"),_.Y("design:type",String),_.Y("design:paramtypes",[])],kq.prototype,"gradientStyle",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],kq.prototype,"descriptionTapText",null);
_.c([_.l({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],kq);
_.y(kq,"ytd-playlist-header-renderer",function(){if($pG!==void 0)return $pG;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return $pG=O},{mode:_.ZB("kevlar_poly_si_batch_j078")?1:2});var Jzn;var Vra;var yd=function(){return _.u.apply(this,arguments)||this};
_.X(yd,_.u);yd.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],yd.prototype,"data",void 0);_.c([_.l({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],yd);
_.y(yd,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Vra!==void 0)return Vra;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Vra=O},{mode:1});var cW=function(){return _.u.apply(this,arguments)||this};
_.X(cW,_.u);
cW.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}}}}};
cW.prototype.computeUsePremiumShowStyle=function(O){if(!O||!O.items)return!1;for(var m=0;m<O.items.length;m++)if(_.b(O.items[m],tNr)){var G=void 0;return((G=_.b(O.items[m],tNr))==null?void 0:G.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],cW.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.Y("design:type",Boolean)],cW.prototype,"usePremiumShowStyle",void 0);
_.c([_.l({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],cW);
_.y(cW,"ytd-playlist-sidebar-renderer",function(){if(Jzn!==void 0)return Jzn;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Jzn=O},{mode:1});var bNA;var nOo;var XML=function(O,m,G,B,Q,H,M,R){this.minWidth=O;this.minHeight=m;this.recommendedWidth=G;this.recommendedHeight=B;this.JSC$22175_maxFileSize=Q;this.title=H;this.bannerGalleryTitle=M;this.channelId=R;this.picker_=null;O=_.Ahf("yt-banner");m=O.addView;G=(new HoA("youtubebanner")).addUploadMetadata("silo_id","19");G.opts.ytMaxFileSize=this.JSC$22175_maxFileSize;B=this.recommendedHeight;G.opts.ytRecWidth=this.recommendedWidth;G.opts.ytRecHeight=B;m.call(O,G);O.addView(new _.kr);m=O.addView;G=new _.kr;
G.opts.type="ytbanner";m.call(O,G.JSC$10075_setLabel(this.bannerGalleryTitle));m=O.setTitle(this.title).setSize(1E3);m.urlParamMap_.set("thumbs","orig");G=this.minWidth;B=this.minHeight;if(isNaN(G)||isNaN(B))throw Error("gb`"+G+"`"+B);m.urlParamMap_.set("minSize",G+"x"+B);m.urlParamMap_.set("cropMode","ytcb");this.builder_=O};
XML.prototype.open=function(){var O=this;return new _.zH(function(m,G){_.SeH(O.builder_,function(B){B.action=="picked"?m(B):B.action=="cancel"&&G(Error("Eo"))});
O.picker_&&O.picker_.dispose();O.picker_=O.builder_.build();O.picker_.setVisible(!0)})};
XML.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var fpL=function(O){this.channelId=O};
fpL.prototype.upload=function(O){var m="";O.viewToken&&(m=O.viewToken[2].type);var G=O.docs[0];O=G.crop;m={channel_id:this.channelId,fife_url:G.thumbnails[0].url,photo_id:G.id,is_gallery_image:m=="ytbanner"};O&&(m.crop_top=O.top,m.crop_right=O.right,m.crop_bottom=O.bottom,m.crop_left=O.left);return _.u1N("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:m})};var Yq=function(){var O=_.u.apply(this,arguments)||this;O.ariaLabel=null;return O};
_.X(Yq,_.u);_.v=Yq.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.v.detached=function(){this.picker&&this.picker.dispose()};
_.v.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.v.computeAriaLabel=function(O){return O};
_.v.onTap=function(){var O=this,m;if((m=this.data)==null||!m.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new XML(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 G;(G=this.picker)==null||G.open().then(function(B){O.handleBannerPicked(B)},function(){})}};
_.v.handleBannerPicked=function(O){var m=this;this.uploader||(this.uploader=new fpL(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(O).then(function(G){m.handleBannerUploadSucceeded(G)},function(G){m.handleBannerUploadFailed(G)})};
_.v.handleBannerUploadSucceeded=function(O){O&&O.errors?this.handleBannerUploadFailed(O):(_.iP(this.hostElement,"yt-banner-updated",O),this.message=null)};
_.v.handleBannerUploadFailed=function(O){this.message=O&&O.errors&&O.errors.length?O.errors[0]:null};
Yq.prototype.dataChanged=Yq.prototype.dataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Yq.prototype,"componentBehavior",void 0);_.c([_.h(_.N4),_.Y("design:type",Object)],Yq.prototype,"ironButtonState",void 0);_.c([_.g(),_.Y("design:type",Object)],Yq.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.Y("design:type",Object)],Yq.prototype,"ariaLabel",void 0);
_.c([_.g(),_.Y("design:type",Object)],Yq.prototype,"message",void 0);_.c([_.g(),_.Y("design:type",Object)],Yq.prototype,"picker",void 0);_.c([_.g(),_.Y("design:type",Object)],Yq.prototype,"uploader",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Yq.prototype,"dataChanged",null);_.c([_.l({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],Yq);
_.y(Yq,"ytd-channel-banner-editor-renderer",function(){if(nOo!==void 0)return nOo;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return nOo=O},{mode:1});var h6G;var TNn=_.FY(["#"]),dV=function(){return _.u.apply(this,arguments)||this};
_.X(dV,_.u);dV.prototype.computeHrefWithDefault=function(O){return this.ytComponentBehavior.computeHref_(O,!0)||_.Fa6(TNn)};
dV.prototype.dataChanged=function(){var O=this.data;O&&O.targetId&&_.z43(_.PD(),O.targetId,this.moreIcon)};
dV.prototype.dataChanged=dV.prototype.dataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],dV.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],dV.prototype,"data",void 0);_.c([_.uc("#more-icon"),_.Y("design:type",Object)],dV.prototype,"moreIcon",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dV.prototype,"dataChanged",null);
_.c([_.l({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],dV);
_.y(dV,"ytd-channel-tagline-renderer",function(){if(h6G!==void 0)return h6G;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return h6G=O},{mode:1});var gOn;var wV=function(){return _.u.apply(this,arguments)||this};
_.X(wV,_.u);_.v=wV.prototype;_.v.ready=function(){var O=this;_.ZO(this.hostElement).querySelector("#form").addEventListener("submit",function(m){O.onSubmit(m)})};
_.v.onDataChanged=function(){var O;((O=this.data)==null?0:O.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.v.onIconButtonKeydown=function(O){O.keyCode===13&&this.iconButton.click()};
_.v.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.v.openOnClickHandler=function(){this.input.focus()};
_.v.onSubmit=function(O){O.preventDefault();return!1};
_.v.submitOnEnterKeyUp=function(O){var m;if(O.keyCode===13&&((m=this.data)==null?0:m.expandedText)){O=this.data.endpoint;m=_.aM.unsafeClone(O);var G;((G=_.b(m==null?void 0:m.commandMetadata,_.bP))==null?0:G.url)?(_.b(m.commandMetadata,_.bP).url=_.cH(_.b(m.commandMetadata,_.bP).url,"query",this.data.expandedText),_.b(m,_.gH)&&(_.b(m,_.gH).query=this.data.expandedText),_.iP(this.hostElement,"yt-navigate",{endpoint:m,tempData:{disableCache:!0}})):(G=new _.j9("Error: Trying to navigate to an endpoint without url",
O),_.oy(G))}};
_.v.updateDataExpandedTextFromBinding=function(O){this.set("data.expandedText",O.detail.value)};
_.vr.Object.defineProperties(wV.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
wV.prototype.onDataChanged=wV.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.lyh),_.Y("design:type",Object)],wV.prototype,"ytdExpandableInputBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],wV.prototype,"data",void 0);_.c([_.uc("#input"),_.Y("design:type",Object)],wV.prototype,"input",void 0);_.c([_.uc("#icon-button"),_.Y("design:type",HTMLElement)],wV.prototype,"iconButton",void 0);
_.c([_.g(),_.Y("design:type",String),_.Y("design:paramtypes",[])],wV.prototype,"searchIcon",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wV.prototype,"onDataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],wV);
var FhJ=_.WE()(wV,"ytd-expandable-tab-renderer",function(){if(gOn===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);gOn=O}O=gOn;return O},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var uIc;var eT=function(){var O=_.u.apply(this,arguments)||this;O.avatarSize=80;O.ariaLabel=_.Xm("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return O};
_.X(eT,_.u);eT.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
eT.prototype.computeHref=function(O){var m;return((m=_.b(O,_.Db))==null?0:m.url)?this.componentBehavior.computeHref_(O):null};
eT.prototype.onTap=function(){var O,m;(O=this.data)==null||!O.editAvatarServiceEndpoint||((m=_.b(this.data.editAvatarServiceEndpoint,_.Db))==null?0:m.url)||_.KR().resolve(_.Mu).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.c([_.h(_.N4),_.Y("design:type",Object)],eT.prototype,"ironButtonState",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],eT.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],eT.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],eT.prototype,"avatarSize",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],eT.prototype,"ariaLabel",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],eT);
_.y(eT,"ytd-channel-avatar-editor",function(){if(uIc!==void 0)return uIc;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return uIc=O},{mode:1});var jeG=_.a(function(O){var m=O.data;var G=O.noPadding;var B=O.enableBanner;var Q=O.cinematicContainerTopbarOffset;var H=O.allowCinematicContainerOverflow;var M=O.displayAsSidebar;O=O.className;_.ER(function(){m().tagManagerId&&(_.m2(m().tagManagerId,_.kB("GL")),QY0(m().tagManagerId))},"vUc8md");
var R=_.fJ(Oo3,function(){return m().pageHeaderEntityKey});
return _.q("yt-page-header-renderer",{class:_.bE("pageHeaderRendererHost",O)},_.q(_.u5,{data:function(){var x;return((x=R())==null?0:x.header)?R().header:(M==null?0:M())&&m().sidebarContent?m().sidebarContent:m().content}},{pageHeaderViewModel:function(x){return _.q(_.LBo,{data:x.data,
noPadding:G,enableBanner:B,cinematicContainerTopbarOffset:Q,allowCinematicContainerOverflow:H,displayAsSidebar:function(){return(M==null?void 0:M())&&m().enableSidebarView}})}}))},"Ak");
jeG.idomCompat=!0;_.qi(jeG,"yt-page-header-renderer",{props:{data:_.VZ,noPadding:_.VZ,enableBanner:_.VZ,cinematicContainerTopbarOffset:_.VZ,allowCinematicContainerOverflow:_.VZ,displayAsSidebar:_.VZ,className:_.VZ}});_.qi(_.ix,"yt-image-banner-view-model",{props:{data:_.VZ,isPositionRelative:_.VZ}});_.qi(_.mt2,"yt-tab-group-shape",{props:{shape:_.VZ}});var DX=function(){var O=_.u.apply(this,arguments)||this;O.expandableCustomTabRenderable=function(m){return AAA(m,function(){return void O.onSearchNavigate()})};
O.isRichGrid=!1;O.isConstrainedList=!1;O.richGridMiniMode=!1;O.richGridStyle="RICH_GRID_STYLE_UNKNOWN";O.isRichGridShorts=!1;O.responsiveSizing="COMPACT";O.disableGridStateAware=!1;O.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return O};
_.X(DX,_.u);_.v=DX.prototype;_.v.computeHeaderDisabled=function(O,m){return m||!O||this.tabsHidden};
_.v.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.v.computeIsRichGridShorts=function(O){return O==="RICH_GRID_STYLE_SHORTS_GRID"||O==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.v.computeImageBannerViewModel=function(){var O,m;return _.b((m=_.b((O=this.data)==null?void 0:O.content,_.cgC))==null?void 0:m.banner,_.L2_)};
_.v.computeHasCinematicContainer=function(){var O,m;return!((m=_.b((O=this.data)==null?void 0:O.content,_.cgC))==null||!m.background)};
_.v.handleHeaderResize=function(){var O=_.ZO(this.hostElement).querySelector("#header");O&&_.iP(O,"iron-resize")};
_.v.handleInsertTabCommand=function(O){var m=_.b(O,X2o);m&&(m.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(G){return G.tabRenderer&&G.tabRenderer.tabIdentifier===m.tabIdentifier})||this.splice("tabs",m.tabIndex||-1,0,m.tab))};
_.v.handleRefreshChannelTabAction=function(O){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===O&&_.iP(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.v.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.n7(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.v.observerRichGridSlimItemsPerRow=function(){_.n7(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.v.updateCssVars=function(){this.richGridItemsPerRow&&_.n7(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Rd("rich_grid_max_item_width",500))+16)-16+"px"})};
_.v.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.n7(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.v.onDataChanged=function(){this.handleHeaderResize()};
_.v.onWindowResize=function(){this.handleHeaderResize()};
_.v.onFocusedChanged=function(O){(O=_.Mj(O))&&O.is==="tp-yt-paper-tab"&&O.hasRipple()&&(O.getRipple().holdDown=!O.pointerDown&&O.focused)};
_.v.updateSelectedFromBinding=function(O){this.ytdTabbedHeaderBehavior.selected=O.detail.value};
_.v.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.vr.Object.defineProperties(DX.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:G6h(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.imageBannerViewModel)==null?void 0:O.style)==="IMAGE_BANNER_STYLE_INSET"}}});
DX.prototype.onDataChanged=DX.prototype.onDataChanged;DX.prototype.updateCssVarsForResponsiveGrid=DX.prototype.updateCssVarsForResponsiveGrid;DX.prototype.updateCssVars=DX.prototype.updateCssVars;DX.prototype.observerRichGridSlimItemsPerRow=DX.prototype.observerRichGridSlimItemsPerRow;DX.prototype.observerRichGridItemsPerRow=DX.prototype.observerRichGridItemsPerRow;_.c([_.h(_.xm),_.Y("design:type",Object)],DX.prototype,"ytdGridStateAwareBehavior",void 0);
_.c([_.h(fEA),_.Y("design:type",Object)],DX.prototype,"ytdTabbedHeaderBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],DX.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],DX.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],DX.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.h(_.MK),_.Y("design:type",Object)],DX.prototype,"ytdReduxBehavior",void 0);_.c([_.uc("#tabs"),_.Y("design:type",Object)],DX.prototype,"tabsElement",void 0);_.c([_.g(),_.Y("design:type",Array)],DX.prototype,"tabs",void 0);_.c([_.g(),_.Y("design:type",Object)],DX.prototype,"expandableCustomTabRenderable",void 0);_.c([_.T("tabs.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DX.prototype,"tabGroupShape",null);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],DX.prototype,"isRichGrid",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],DX.prototype,"isConstrainedList",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.yh}),_.Y("design:type",Object)],DX.prototype,"richGridMiniMode",void 0);_.c([_.g({selector:function(O){return O.ui.richGridStyle}}),
_.Y("design:type",Object)],DX.prototype,"richGridStyle",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.Y("design:type",Object)],DX.prototype,"isRichGridShorts",void 0);_.c([_.g({selector:_.cq}),_.Y("design:type",Number)],DX.prototype,"richGridItemsPerRow",void 0);_.c([_.g({selector:function(O){return O.ui.richGridContainerWidth}}),
_.Y("design:type",Number)],DX.prototype,"richGridContainerWidth",void 0);_.c([_.g({selector:_.Gbz}),_.Y("design:type",Number)],DX.prototype,"richGridSlimItemsPerRow",void 0);_.c([_.g(),_.Y("design:type",Object)],DX.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],DX.prototype,"responsiveSizing",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],DX.prototype,"disableGridStateAware",void 0);
_.c([_.g({computed:"computeImageBannerViewModel(data)"}),_.Y("design:type",Object)],DX.prototype,"imageBannerViewModel",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.Y("design:type",Boolean)],DX.prototype,"hasCinematicContainer",void 0);_.c([_.g({selector:_.XxB,reflectToAttribute:!0}),_.Y("design:type",Boolean)],DX.prototype,"guideIsVisibleButNotPersistent",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("imageBannerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DX.prototype,"hasBanner",null);_.c([_.g({reflectToAttribute:!0}),_.T("imageBannerViewModel"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],DX.prototype,"hasInsetBanner",null);_.c([_.g({computed:"computeTabsHidden(tabs)",value:!0}),_.Y("design:type",Boolean)],DX.prototype,"tabsHidden",void 0);
_.c([_.Tw("richGridItemsPerRow","isRichGrid"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"observerRichGridItemsPerRow",null);_.c([_.Tw("richGridSlimItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"observerRichGridSlimItemsPerRow",null);
_.c([_.Tw("richGridItemsPerRow","richGridMiniMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"updateCssVars",null);_.c([_.Tw("richGridContainerWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"updateCssVarsForResponsiveGrid",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DX.prototype,"onDataChanged",null);
_.c([_.l({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],DX);
_.y(DX,"ytd-tabbed-page-header",function(){if(bNA!==void 0)return bNA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return bNA=O},{mode:1});var Ipn;var sP=function(){return _.u.apply(this,arguments)||this};
_.X(sP,_.u);sP.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.n7(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.vr.Object.defineProperties(sP.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var O,m;return this.componentBehavior.computeIcon_(((m=_.b((O=this.data)==null?void 0:O.badge,_.F7e))==null?void 0:m.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var O,m;return(m=_.b((O=this.data)==null?void 0:O.badge,_.F7e))==null?void 0:m.label}}});
sP.prototype.observerRichGridItemsPerRow=sP.prototype.observerRichGridItemsPerRow;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],sP.prototype,"componentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],sP.prototype,"ytdReduxBehavior",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.yh}),_.Y("design:type",Boolean)],sP.prototype,"richGridMiniMode",void 0);
_.c([_.g({selector:_.cq}),_.Y("design:type",Number)],sP.prototype,"richGridItemsPerRow",void 0);_.c([_.g(),_.Y("design:type",Object)],sP.prototype,"data",void 0);_.c([_.Tw("richGridItemsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],sP.prototype,"observerRichGridItemsPerRow",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sP.prototype,"badgeIconName",null);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],sP.prototype,"badgeLabel",null);_.c([_.l({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],sP);
_.y(sP,"ytd-member-hub-profile-renderer",function(){if(Ipn!==void 0)return Ipn;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Ipn=O},{mode:1});var pMG;var N7=function(){return _.u.apply(this,arguments)||this};
_.X(N7,_.u);N7.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],N7.prototype,"data",void 0);_.c([_.l({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],N7);
_.y(N7,"ytd-settings-sidebar-renderer",function(){if(pMG!==void 0)return pMG;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return pMG=O},{mode:1});var SSc;var PW=function(){var O=_.u.apply(this,arguments)||this;O.expandableCustomTabRenderable=function(m){return AAA(m,function(){return void O.onSearchNavigate()})};
return O};
_.X(PW,_.u);PW.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
PW.prototype.onSearchNavigate=function(){this.selected=void 0};
PW.prototype.onTabsChange=function(){var O,m=(O=this.tabs)==null?void 0:O.findIndex(function(G){var B;return G==null?void 0:(B=G.tabRenderer)==null?void 0:B.selected});
m!==void 0&&(this.selected=m)};
PW.prototype.onTabsActive=function(O){if(this.tabs!==void 0){var m,G;(O=(m=this.tabs[O.detail.selected])==null?void 0:(G=m.tabRenderer)==null?void 0:G.endpoint)&&_.iP(this.hostElement,"yt-navigate",{endpoint:O})}};
_.vr.Object.defineProperties(PW.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:G6h(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
PW.prototype.onTabsChange=PW.prototype.onTabsChange;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xm),_.Y("design:type",Object)],PW.prototype,"ytdGridStateAwareBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],PW.prototype,"ytdGuideStateAwareBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],PW.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Array)],PW.prototype,"tabs",void 0);_.c([_.g(),_.Y("design:type",Number)],PW.prototype,"selected",void 0);_.c([_.T("tabs.*"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],PW.prototype,"tabGroupShape",null);_.c([_.g(),_.Y("design:type",Object)],PW.prototype,"expandableCustomTabRenderable",void 0);
_.c([_.T("tabs"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],PW.prototype,"tabsEnabled",null);_.c([_.Si("tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PW.prototype,"onTabsChange",null);_.c([_.l({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],PW);
_.y(PW,"ytd-topic-channel-details-renderer",function(){if(SSc!==void 0)return SSc;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return SSc=O},{mode:1});var EOc;var FU=function(){var O=_.u.apply(this,arguments)||this;O.disableGridStateAware=!1;return O};
_.X(FU,_.u);FU.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]]"}}}}}};
FU.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
FU.prototype.updateCssVars=function(){_.n7(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Rd("rich_grid_max_item_width",500))+16)-16+"px"})};
FU.prototype.updateCssVars=FU.prototype.updateCssVars;FU.prototype.activeChanged=FU.prototype.activeChanged;_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],FU.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],FU.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],FU.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],FU.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],FU.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Array)],FU.prototype,"tabs",void 0);_.c([_.g(),_.Y("design:type",Boolean)],FU.prototype,"active",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],FU.prototype,"disableGridStateAware",void 0);
_.c([_.g({selector:_.cq}),_.Y("design:type",Number)],FU.prototype,"richGridItemsPerRow",void 0);_.c([_.g({selector:_.yh}),_.Y("design:type",Boolean)],FU.prototype,"richGridMiniMode",void 0);_.c([_.uc("ytd-carousel-item-renderer"),_.Y("design:type",Object)],FU.prototype,"carousel",void 0);_.c([_.Tw("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FU.prototype,"activeChanged",null);
_.c([_.Tw("richGridItemsPerRow","richGridMiniMode"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FU.prototype,"updateCssVars",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],FU);
_.y(FU,"ytd-carousel-header-renderer",function(){if(EOc!==void 0)return EOc;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return EOc=O},{mode:1});var L5a;var Csn=_.FY(["https://www.google-analytics.com/analytics.js"]),Ab=function(){var O=_.u.apply(this,arguments)||this;O.scriptAnalyticsAdded=!1;return O};
_.X(Ab,_.u);Ab.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var O,m=(O=this.data)==null?void 0:O.tagManagerId;m&&(_.m2(m,_.kB("GL")),QY0(m))};
Ab.prototype.sendGoogleAnalyticsPageview=function(O){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var G=_.eA.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(G)};
var m=window.ga;m("set","page",window.location.pathname);m.l=+new Date;m("set","forceSSL",!0);m("create",O,"'auto'");m("send","pageview")};
Ab.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var O=_.fd("SCRIPT");O.name="ga-analytics";var m=_.WY(Csn);_.$3(O,m);O.async=!0;_.ZO(this.hostElement).appendChild(O)};
Ab.prototype.dataChanged=Ab.prototype.dataChanged;_.c([_.g(),_.Y("design:type",Object)],Ab.prototype,"data",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ab.prototype,"dataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Ab);
_.y(Ab,"ytd-channel-metadata-renderer",function(){if(L5a!==void 0)return L5a;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return L5a=O},{mode:1});var oOG;var lp0;var OT=function(){var O=_.u.apply(this,arguments)||this;O.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"]);O.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"]);O.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return O};
_.X(OT,_.u);_.v=OT.prototype;_.v.attached=function(){this.requestElementsPerRow()};
_.v.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_]]"}}}}}};
_.v.onUpdateElementsPerRowAction=function(O){O&&this.elementsPerRow!==O&&(this.elementsPerRow=O)};
_.v.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.v.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.v.computeAlertStyle_=function(O){return O};
_.v.observerElementsPerRow=function(){this.elementsPerRow&&_.n7(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.v.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.v.requestElementsPerRow=function(){_.iP(this.hostElement,"yt-request-elements-per-row")};
OT.prototype.onIsVisibleChanged_=OT.prototype.onIsVisibleChanged_;OT.prototype.observerElementsPerRow=OT.prototype.observerElementsPerRow;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],OT.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],OT.prototype,"actionHandlerBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],OT.prototype,"data",void 0);_.c([_.g({value:6,reflectToAttribute:!0}),_.Y("design:type",Number)],OT.prototype,"elementsPerRow",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],OT.prototype,"wrapButtons",void 0);_.c([_.g({value:_.kB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Y("design:type",Boolean)],OT.prototype,"isMusic",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.Y("design:type",String)],OT.prototype,"alertStyle",void 0);_.c([_.g({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.Y("design:type",Function)],OT.prototype,"dismissBoundButtonTap_",void 0);_.c([_.g({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.Y("design:type",Function)],OT.prototype,"acceptBoundButtonTap_",void 0);_.c([_.Tw("elementsPerRow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OT.prototype,"observerElementsPerRow",null);_.c([_.Tw("data.isVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OT.prototype,"onIsVisibleChanged_",null);_.c([_.DO({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],OT);
_.y(OT,"yt-alert-with-actions-renderer",function(){if(lp0===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;oOG===void 0&&(oOG=document.createElement("template"));var B=oOG;G.call(m,B.content.cloneNode(!0),O.content.firstChild);lp0=O}O=lp0;return O},{mode:2});_.qi(_.a(function(O){function m(z){var J={};return _.q(_.Jg,{text:z,className:_.bE("ytPersonalGreetingViewModelHeadline",(J.ytPersonalGreetingViewModelHeadlineSmall=function(){return R()===48},J))})}
function G(z,J){return _.q("span",{el:z,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},m(J))}
var B=_.Mi(_.yp(function(){var z;return(z=O.data())==null?void 0:z.rendererContext},void 0,void 0,void 0,!0)),Q=_.Al("span"),H=_.Al("span"),M=function(){return O.data().canvasPromoData},R=function(){var z;
return(z=O.data().bannerHeight)!=null?z:56},x=_.H2N(B,{throttleMs:100}),t=_.H2N(Q,{throttleMs:100}),W=_.H2N(H,{throttleMs:100}),Z=function(){return t.width()-x.width()>1};
return _.q("yt-personal-greeting-view-model",{el:B,"aria-hidden":Z,class:_.bE(O.className,"ytPersonalGreetingViewModelHost"),style:_.hH({height:(0,_.vZ)(function(){return Z()?0:R()})})},_.q(_.U,{cond:function(){return O.data().avatar&&!(W.width()+(O.data().avatar?48:0)-x.width()>1)},
then:function(){return _.q(_.u5,{data:function(){return O.data().avatar}},{decoratedAvatarViewModel:function(z){return _.q(_.vP,{data:z.data,
className:_.bE("ytPersonalGreetingViewModelAvatar")})}})}}),_.q("h1",null,m(function(){var z;
return(M==null?void 0:(z=M())==null?void 0:z.headline)||(W.width()+(O.data().avatar?48:0)-x.width()>1?O.data().shorterGreeting:O.data().greeting)})),G(H,function(){return O.data().greeting}),G(Q,function(){return O.data().shorterGreeting}))},"Bk"),"yt-personal-greeting-view-model",{props:{data:_.VZ,
className:_.VZ}});var mu=function(){var O=_.u.apply(this,arguments)||this;O.hidden=!1;O.isConstrainedList=!1;O.darkerDarkTheme=_.V("web_darker_dark_theme");O.responsiveSizing="COMPACT";O.attachedPlayers=_.V("kevlar_channel_trailer_multi_attach")?[]:void 0;O.player=null;O.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return O};
_.X(mu,_.u);_.v=mu.prototype;
_.v.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}}}}};
_.v.created=function(){var O=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){O.disposeMastheadAd()}]};
_.v.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new gwK(this.refresh,this.contents))};
_.v.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.v.activeChanged=function(){var O=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=O)};
_.v.tabsChanged=function(){var O=this,m,G;if(this.pageSubtype==="channels"||_.V("kevlar_tab_gestures_for_tabbed_header_data")&&((m=this.data)==null?0:(G=m.header)==null?0:G.carouselHeaderRenderer))this.tabGestures=new IE0(this.contents,this.contents,this.hostElement,this.header,function(M){O.ytdReduxBehavior.dispatch(M)});
var B,Q,H;m=(B=this.data)==null?void 0:(Q=B.contents)==null?void 0:(H=Q.twoColumnBrowseResultsRenderer)==null?void 0:H.tabs;this.tabGestures&&this.tabGestures.tabsChanged(m)};
_.v.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.v.engagementPanelsChanged=function(){var O=_.KR().resolve(_.Ah);if(O){if(this.engagementPanels)for(var m=_.K(this.engagementPanels),G=m.next();!G.done;G=m.next()){var B=void 0;(G=(B=G.value.identifier)==null?void 0:B.tag)&&O.panelMap.delete(G)}this.engagementPanels=[];var Q;m=_.K(((Q=this.data)==null?void 0:Q.panels)||[]);for(Q=m.next();!Q.done;Q=m.next()){Q=_.b(Q.value,_.emA);var H=G=void 0,M=void 0,R=void 0;if(B=((G=Q)==null?void 0:G.targetId)||((H=Q)==null?void 0:H.panelIdentifier)||((M=Q)==
null?void 0:(R=M.identifier)==null?void 0:R.tag))H=G=void 0,(H=(G=O).registerPanelContent)==null||H.call(G,B,{engagementPanelSectionListRenderer:Q}),this.engagementPanels.push(Q)}}};
_.v.onStampFinished=function(){var O=this;_.QA(this,function(){if(O.tabGestures){var m=O.tabGestures;if(m.scrollPositionNeedsUpdate){var G=_.KR().resolve(_.v7(_.KJ)),B;if((B=m.selectedTab)!=null&&B.title&&G&&(B=G.getCurrentPage())){if(m.scrollPositionForTabs.has(m.selectedTab.title)){var Q,H;G=(H=(Q=G.getCurrentPage())==null?void 0:Q.clientHeight)!=null?H:0;Q=m.scrollPositionForTabs.get(m.selectedTab.title);B.setScrollTop(Q);G>Q+100&&(m.scrollPositionNeedsUpdate=!1)}else B.setScrollTop(Math.min(m.lastVisitedTabScrollPosition!==
void 0?m.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,m.tabsStartAtInPx)),m.scrollPositionNeedsUpdate=!1;m.ytdReduxDispatch(B3y(!1))}}}})};
_.v.loadPage_=function(O){this.initCsi();O&&(this.data=O);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.v.getTitle=function(O){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",O))return this.get("microformat.microformatDataRenderer.title",O);if(this.get("header.feedTabbedHeaderRenderer.title",O))return _.HX(this.get("header.feedTabbedHeaderRenderer.title",O));if(this.get("header.interactiveTabbedHeaderRenderer.title",O))return this.get("header.interactiveTabbedHeaderRenderer.title",O);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
O))return _.HX(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",O));var m,G;return(O==null?0:(m=O.header)==null?0:(G=m.pageHeaderRenderer)==null?0:G.pageTitle)?O.header.pageHeaderRenderer.pageTitle:""};
_.v.updateTitle=function(O){_.iP(this.hostElement,"yt-update-title",this.getTitle(O))};
_.v.initCsi=function(){_.sLu(this.pageSubtype||"browse",["ol","cpt"])};
_.v.getPlayer=function(){if(_.V("kevlar_channel_trailer_multi_attach")){for(var O=_.K(this.attachedPlayers),m=O.next();!m.done;m=O.next())if(m=m.value,m.isConnected||_.DZ(this.hostElement,m))return m;return null}return this.player};
_.v.getPlayerContainer=function(){return null};
_.v.onPlayerAttached=function(O,m){_.V("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(m):this.player=m};
_.v.onPlayerDetached=function(O,m){_.V("kevlar_channel_trailer_multi_attach")?(O=this.attachedPlayers.indexOf(m),O<0||this.attachedPlayers.splice(O,1)):this.player=null};
_.v.getServiceTrackingParams=function(){var O,m;return((O=this.data)==null?void 0:(m=O.responseContext)==null?void 0:m.serviceTrackingParams)||[]};
_.v.setMastheadAd=function(O){O&&O.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=O&&O.mastheadAd};
_.v.dataChanged=function(){var O=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.a7B();_.QA(this,function(){_.UB(O.hostElement,"ytd-update-grid-state-action")})};
_.v.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.v.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var O=this.data.alerts;return O&&O.find(function(m){return!!m.alertWithActionsRenderer})}};
_.v.computeGreetingData=function(){if(this.data&&this.data.alerts){var O=this.data.alerts;return O&&O.find(function(m){return!!m.personalGreetingViewModel})}};
_.v.computeHasMemberHubProfileRenderer=function(O){var m;return!!(O==null?0:(m=O.header)==null?0:m.memberHubProfileRenderer)};
_.v.handleAlertCommand=function(O){this.get("alertCommand.alert.alertWithActionsRenderer",O)&&(O=_.b(O,x3u),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",O.alert))};
_.v.handleYtPlaylistDeletionRedirect=function(O){O=this.get("playlistDeletionRedirectCommand.redirectEndpoint",O);_.iP(this.hostElement,"yt-navigate",{endpoint:O})};
_.v.computeFluidWidth=function(O,m,G){if(m==="mini_app"||G)return!0;var B,Q,H;O=O==null?void 0:(B=O.contents)==null?void 0:(Q=B.twoColumnBrowseResultsRenderer)==null?void 0:(H=Q.tabs)==null?void 0:H.find(function(x){var t;return x==null?void 0:(t=x.tabRenderer)==null?void 0:t.selected});
if(!O)return!1;var M,R;return!!((M=O.tabRenderer)==null?0:(R=M.content)==null?0:R.richGridRenderer)&&!["channel","channels","playables"].includes(m)};
_.v.computeHeaderFluidWidth=function(O){return O==="hashtag-landing-page"};
_.v.computeHasSidebar=function(O){var m;return!!(O.sidebar||((m=O.header)==null?0:m.playlistHeaderRenderer))};
_.v.computeHasPageHeaderSidebar=function(O){var m,G;return!!((m=O.header)==null?0:(G=m.pageHeaderRenderer)==null?0:G.enableSidebarView)};
_.v.computeUseUnifiedShowPageLayout=function(O){if(!O||this.pageSubtype!=="show"||!O.sidebar||!O.sidebar.playlistSidebarRenderer)return!1;O=O.sidebar.playlistSidebarRenderer;if(!O.items)return!1;for(var m=0;m<O.items.length;m++)if(_.b(O.items[m],tNr)){var G=void 0;return((G=_.b(O.items[m],tNr))==null?void 0:G.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.v.computeIsConstrainedList=function(O){return _.V("web_enable_constrained_list_subscriptions_channels")&&O==="subscriptions-channels"};
_.v.computeResponsiveSizing=function(O){return O==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.vr.Object.defineProperties(mu.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var O,m;return((O=this.data)==null?0:(m=O.header)==null?0:m.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var O,m;if(!((O=this.data)==null?0:(m=O.sidebar)==null?0:m.playlistSidebarRenderer))return!1;var G;return(G=this.data)!=null&&G.header?!1:!0}}});
_.vr.Object.defineProperties(mu,{template:{configurable:!0,enumerable:!0,get:function(){if(p2r===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);p2r=O}O=p2r;return O}}});
mu.prototype.dataChanged=mu.prototype.dataChanged;mu.prototype.onPlayerDetached=mu.prototype.onPlayerDetached;mu.prototype.onPlayerAttached=mu.prototype.onPlayerAttached;mu.prototype.onStampFinished=mu.prototype.onStampFinished;mu.prototype.engagementPanelsChanged=mu.prototype.engagementPanelsChanged;mu.prototype.scrollAtTopChanged=mu.prototype.scrollAtTopChanged;mu.prototype.tabsChanged=mu.prototype.tabsChanged;mu.prototype.activeChanged=mu.prototype.activeChanged;
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],mu.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],mu.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],mu.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],mu.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.vW.YtPageBehavior),_.Y("design:type",Object)],mu.prototype,"ytPageBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mu.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],mu.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],mu.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mu.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],mu.prototype,"hidden",void 0);
_.c([_.g(),_.Y("design:type",Object)],mu.prototype,"mastheadAdData",void 0);_.c([_.g({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.Y("design:type",Object)],mu.prototype,"alertBannerData",void 0);_.c([_.g({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.Y("design:type",Object)],mu.prototype,"greetingData",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],mu.prototype,"pageSubtype",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.Y("design:type",Boolean)],mu.prototype,"hasMemberHubProfileRenderer",void 0);_.c([_.g({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],mu.prototype,"hasSidebar",void 0);_.c([_.g({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],mu.prototype,"hasPageHeaderSidebar",void 0);
_.c([_.g({reflectToAttribute:!0,value:!0}),_.Y("design:type",Boolean)],mu.prototype,"roundedContainer",void 0);_.c([_.g({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],mu.prototype,"useUnifiedShowPageLayout",void 0);_.c([_.g({computed:"computeIsConstrainedList(pageSubtype)"}),_.Y("design:type",Object)],mu.prototype,"isConstrainedList",void 0);
_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],mu.prototype,"usePlaylistHeaderRenderer",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],mu.prototype,"useOldPlaylistSidebarRenderer",null);_.c([_.g({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.Y("design:type",Boolean)],mu.prototype,"fluidWidth",void 0);_.c([_.g({selector:function(O){return O.ui.scrollAtTop}}),
_.Y("design:type",Boolean)],mu.prototype,"scrollAtTop",void 0);_.c([_.g({selector:_.fyK}),_.Y("design:type",Boolean)],mu.prototype,"tabGesturesIsActive",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],mu.prototype,"darkerDarkTheme",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.Y("design:type",Boolean)],mu.prototype,"disableHeaderFluidWidth",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.Y("design:type",String)],mu.prototype,"responsiveSizing",void 0);_.c([_.uc("ytd-two-column-browse-results-renderer"),_.Y("design:type",HTMLElement)],mu.prototype,"contents",void 0);_.c([_.uc("#header"),_.Y("design:type",HTMLElement)],mu.prototype,"header",void 0);_.c([_.uc("ytd-refresh"),_.Y("design:type",Object)],mu.prototype,"refresh",void 0);
_.c([_.Tw("active"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mu.prototype,"activeChanged",null);_.c([_.Tw("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mu.prototype,"tabsChanged",null);_.c([_.Tw("scrollAtTop"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mu.prototype,"scrollAtTopChanged",null);
_.c([_.g(),_.Y("design:type",Object)],mu.prototype,"engagementPanels",void 0);_.c([_.Tw("data.panels"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mu.prototype,"engagementPanelsChanged",null);_.c([_.hG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mu.prototype,"onStampFinished",null);
_.c([_.hG("yt-player-attached"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Element]),_.Y("design:returntype")],mu.prototype,"onPlayerAttached",null);_.c([_.hG("yt-player-detached"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Element]),_.Y("design:returntype")],mu.prototype,"onPlayerDetached",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mu.prototype,"dataChanged",null);
_.c([_.l({is:"ytd-browse"})],mu);_.Ci.registerService(_.$7p,mu);
_.aw();
}catch(e){_._DumpException(e)}
try{
_.lj("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 Oj,xCy,qBs,UCB,tYs,W8o,ZrA,zPK,JKr,VYy,br0,ncr,fYr,hPr,gcB,umB,jsb,pd9,SBh,Ec0,L8h,mr,ocK,Gr,lYr,aYy,kCy,yK3,cK0,dC3,ePJ,YBJ,Xdh,DCr,ss3,Nrr,PPx,F8K,AKo,Oss,mo3,GkJ,QQs,Hsr,Kf0,MHb,RZr,isb,xoA,UoJ,WfA,Zso,zZr,Jas,VHy,bsB,nsu,Xqh,fhb,hZo,Tvy,gsA,uZu,jQu,IhA,pqB,SrA,Esb,Lfy,oss,lho,ahh,kk9,yar,caB,Yro,dou,wqy,eZB,Doh,sQ0,Nvx,PQo,Ff3,Aah,OfB,mBu,GLB,BHr,Qh9,Hfy,vHu,KZ9,RH,$Bs,Mwr,rV9,if3,xBr,qK9,UBu,tw0,WZ0,Zf9,Vw0,jh0,EHr,LZu,kL3,yVB,ako,oHb,wX0,shb,mjB,Cu9,Pu3,eaK,ZF,BXB,vZ0,MiJ,K$r,$jb,rGh,qcK,
i73,Uj9,tiA,xjr,RS3,W$r,bt,nZ,nZr,XCA,Xp,fOh,hSx,TX0,ScB,EZr,fZ,hq,Ccr,L$h,oZr,lO0,aOx,kw9,Tr,gf,ut,su3,NXr,Pco,IH,GS9,F$y,mNo,Bur,AGr,HmA,Omh,$Nr,vn0,Kps,pZ,r1o,Mg0,qzr,Zmr,CZ,oH,tgr,J1b,Wpy,zBB,aH,y3,cB,YP,y1r,IBJ,dNr,wE0,eBB,DNx,Nu3,hBA,Tux,ec,uJo,df,wf,jps,spK,c13,gnb,sj,QZr,vg9,Kw9,HHu,OH9,MVr,iHs,OU,Fp,Aq,Ui9,A1x,G7,R$3,mix,rHs,Bgo,Fpr,G$r,Wwx,ZHu,z$A,VVr,ngr,X60,fwr,h$A,ggx,Tgs,jZr,Iwy,Sfr,Egu,CE0,ogh,lwb,awA,k$u,yHo,cHr,diK,Yfs,w6B,e$y,Ht,Diy,sZy,vt,Ng9,PEB,FwK,AHA,OJh,m1K,GMB,BRJ,HJb,Ke,
vio,K3K,rtK,iJ3,x1K,U1J,qv3,th0,W3b,ZJJ,Jtr,VhK,bJr,niB,Xur,fvs,hX9,TRB,giB,u4u,j_K,Ivr,L3y,C5o,Svb,Eib,pur,oiy,kM0,lv9,avb,YvB,ytr,ctb,d1h,wuy,eXb,D1B,NRx,P5y,F3u,Ozs,mkr,BDr,Hzs,KHA,Mlr,RCK,xkB,Uko,WHA,JIu,VlK,bzB,Xc0,nKJ,hCy,TDx,gKB,uv0,Mw,j$y,ILJ,pco,cIr,dkB,wc3,NDA,PmK,FH9,AI0,mXu,OkK,GKB,BJB,Q6A,Hk3,vpr,xP,Kks,qw,$ku,$Xx,Mk0,raK,r8B,Rvb,ikb,xX3,qQr,UXb;
Oj=function(O){if(!O)return"browse";var m=O.page,G=O.url,B,Q,H,M=(B=O.response)==null?void 0:(Q=B.responseContext)==null?void 0:(H=Q.webResponseContextExtensionData)==null?void 0:H.pageTheme;if(M)m=M.toLowerCase().replace(/_/g,"-");else if(m!=="watch"&&m!=="learning_journey_watch"){var R,x;if((m==="browse"||m==="settings")&&((R=O.response)==null?0:(x=R.sidebar)==null?0:x.settingsSidebarRenderer))m="WEB_PAGE_TYPE_SETTINGS";else{var t,W;m==="browse"&&((t=O.response)==null?0:(W=t.metadata)==null?0:W.channelMetadataRenderer)?
m="channel":G&&(m=_.SHp(G)||m)}}return m};
xCy=function(){var O=_.ex("yt.aba.att");return O?O:_.C6.instance!==void 0?_.C6.instance.n02.bind(_.C6.instance):null};
qBs=function(O,m){var G;return _.r(function(B){return(G=xCy())?B.return(G(O,m,6E4)):B.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
UCB=function(O,m,G,B,Q){m=m===void 0?[]:m;Q=Q?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:Q}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.rv(O),dialogMessages:m.map(function(H){return _.rv(H)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.rv(G),serviceEndpoint:Q}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.rv(B)}}}}}};
tYs=function(O){var m=!!_.tC().queueProxy;var G,B,Q;O=O==null?void 0:(G=O.response)==null?void 0:(B=G.currentVideoEndpoint)==null?void 0:(Q=B.watchEndpoint)==null?void 0:Q.playlistId;return!(!m&&!O)};
W8o=function(O,m){var G=_.c3();if(tYs(O)&&!_.V("web_watch_disable_playlist_auto_miniplayer"))return G.playlistWatchPageActivation=!0;switch(Oj(m)){case "yts-products":return G.productDetailsPageActivation=!0;case "mini_app":return G.miniAppPageActivation=!0;case "playables":return G.playablesDestPageActivation=!0;default:return!1}};
ZrA=function(O,m,G){for(var B=typeof O==="string"?O.split(""):O,Q=O.length-1;Q>=0;--Q)Q in B&&m.call(G,B[Q],Q,O)};
zPK=function(O,m){m=_.Jze(O,m);m>=0&&_.nO6(O,m)};
JKr=function(O){return Array.prototype.concat.apply([],arguments)};
VYy=function(O){var m=0;m=m===void 0?0:m;if(!_.FC(O))throw _.O3("uint64");var G=typeof O;switch(m){case 512:switch(G){case "string":return _.Xsp(O);case "bigint":return String((0,_.qJ)(64,O));default:return _.b$e(O)}case 1024:switch(G){case "string":return _.fHY(O);case "bigint":return _.L$((0,_.qJ)(64,O));default:return _.n9S(O)}case 0:switch(G){case "string":return _.Xsp(O);case "bigint":return _.L$((0,_.qJ)(64,O));default:return _.Vo5(O)}default:return _.d8(m,"Unknown format requested type for int64")}};
br0=function(O){O!=null&&(O=O.JSC$8820_value_||"",O=typeof O==="string"?O:new Uint8Array(O));return O};
ncr=function(O,m){if(/-[a-z]/.test(m))return null;if(_.rL3&&O.dataset){if(_.R6s()&&!(m in O.dataset))return null;O=O.dataset[m];return O===void 0?null:O}return O.getAttribute("data-"+_.fC(m))};
fYr=function(){var O=Xdh;_.ex("yt.ads.biscotti.getId_")||_.HI("yt.ads.biscotti.getId_",O)};
hPr=function(O){_.HI("yt.ads.biscotti.lastId_",O)};
gcB=function(){var O={};for(_.LR=new Tr9(O.handleError===void 0?_.lT:O.handleError,O.logEvent===void 0?_.LE:O.logEvent);_.CR.length>0;)switch(O=_.CR.shift(),O.type){case "ERROR":_.LR.logError(O.payload);break;case "EVENT":_.LR.logEvent(O.eventType,O.payload)}};
umB=function(O,m,G){return _.DoO(function(B){return G?B.userIdentifier!==void 0&&!O.includes(B.userIdentifier)&&G.includes(B.publicName):B.userIdentifier!==void 0&&!O.includes(B.userIdentifier)},m)};
jsb=function(O){var m,G;return _.r(function(B){if(B.nextAddress==1)return m=_.gI("YtIdbMeta hasAnyMeta other"),B.yield(_.DoO(function(Q){return Q.userIdentifier!==void 0&&Q.userIdentifier!==m},O),2);
G=B.yieldResult;return B.return(G.length>0)})};
pd9=function(O,m){IYs||(IYs=_.ln.addLowPriorityJob(function(){var G,B,Q,H,M;return _.r(function(R){switch(R.nextAddress){case 1:return R.yield(_.vI(),2);case 2:G=R.yieldResult;if(!G)return R.return();B=!0;_.n_(R,3);return R.yield(umB(O,G,m),5);case 5:Q=R.yieldResult;if(!Q.length){B=!1;R.jumpTo(6);break}H=Q[0];return R.yield(_.Fz(H.actualName),7);case 7:return R.yield(_.mo(H.actualName,G),6);case 6:_.P7(R,4);break;case 3:M=_.uS(R),_.od(M),B=!1;case 4:_.ln.cancelJob(IYs),IYs=0,B&&pd9(O,m),_.ju(R)}})}))};
SBh=function(){var O;return _.r(function(m){return m.nextAddress==1?m.yield(_.vI(),2):(O=m.yieldResult)?m.return(jsb(O)):m.return(!1)})};
Ec0=function(O){var m=100;m=m===void 0?500:m;var G,B,Q,H,M,R;return _.r(function(x){return x.nextAddress==1?(G=_.kB("INNERTUBE_CONTEXT_CLIENT_NAME",0),B=[G,(0,_.$G)()-2592E6],Q=[G,(0,_.$G)()],H=IDBKeyRange.bound(B,Q),x.yield(_.J1M(O),2)):x.nextAddress!=3?(M=x.yieldResult,R=[],x.yield(_.OO(M,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(t){R.length=0;return _.MI(t.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:H,direction:"prev"},function(W){if(W.getValue()&&R.length<
m)return R.push(W.getValue()),W.delete().then(function(){return W.continue()})})}),3)):x.return(R)})};
L8h=function(){var O;return _.r(function(m){if(m.nextAddress==1)return m.yield(_.vI(),2);O=m.yieldResult;if(!O||!_.ub()&&!_.V("nwl_init_require_datasync_id_killswitch")||!_.aB5())return m.jumpTo(0);_.y1I=!0;_.kSf.isNwlInitialized=_.y1I;return m.yield(_.h8_().awaitInitialization(),0)})};
mr=function(O,m){_.HHY[O]=!0;var G=_.rE();G&&G.publish.apply(G,arguments);_.HHY[O]=!1};
ocK=function(){if(_.L$O()&&!CP9){var O=function(G){G=G.data;if(G.op==="serializedGelBatch"){var B=_.viN.get(G.key);B&&(_.$1e(G.serializedBatch,B.client,B.resolve,B.networklessOptions,B.isIsolated,B.useVSSEndpoint,B.dangerousLogToVisitorSession,B.requestsOutstanding),_.viN.delete(G.key))}},m=_.EZf();
m&&(m.addEventListener("message",O),m.onerror=function(){_.viN.clear()});
CP9=!0}};
Gr=function(){this.relativeTimeStart_=_.$F()};
lYr=function(O,m){O!=null&&this.append.apply(this,arguments)};
aYy=function(){return _.eU("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
kCy=function(O,m,G){G=G===void 0?!1:G;var B,Q,H,M,R;return _.r(function(x){switch(x.nextAddress){case 1:_.hE("SOCS",O,34128E3,"youtube.com",!0);if(_.Wp)return Q=fetch(m,{method:"POST",mode:_.Ac(m),credentials:_.FE(m),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),H=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Ac("/upgrade_visitor_cookie?eom=1"),credentials:_.FE("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),x.yield(Promise.all([Q,H]).then(function(t){return t[1]}),5);
fetch(m,{method:"POST",mode:_.Ac(m),credentials:_.FE(m),cache:"no-store",headers:{"Content-Type":"text/plain"}});return x.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Ac("/upgrade_visitor_cookie?eom=1"),credentials:_.FE("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:B=x.yieldResult;x.jumpTo(3);break;case 5:B=M=x.yieldResult;case 3:if(!B.ok)throw Error("sf");return x.yield(B.text(),7);case 7:R=x.yieldResult,
!R.includes('"state_switch":true')&&!G||R.includes("skip_reload_for_test")||window.location.reload(),_.ju(x)}})};
yK3=function(O){return _.r(function(m){return m.nextAddress==1?m.yield(kCy(O.socsCookie,O.savePreferenceUrl,!0),2):m.return()})};
cK0=function(O){return _.r(function(m){return m.nextAddress==1?m.yield(kCy(O.socsCookie,O.savePreferenceUrl),2):m.return()})};
dC3=function(O){O=O.xhr.responseText;if(!_.KN(O,")]}'"))throw new BB;O=JSON.parse(O.substr(4));if((O.type||1)>1)throw new BB;O=O.id;hPr(O);Q3=_.W3(O);YBJ(18E5,2);return O};
ePJ=function(O,m){m=new wdx(m);hPr("");Q3=_.OW$(m);O>0&&YBJ(12E4,O-1);throw m;};
YBJ=function(O,m){_.W7(function(){_.lfh().then(dC3,function(G){return ePJ(m,G)}).thenCatch(_.ID)},O)};
Xdh=function(){var O=_.ych();if(O!==void 0)return _.lK(O);Q3||(Q3=_.lfh().then(dC3).thenCatch(function(m){return ePJ(2,m)}));
return Q3};
DCr=function(){var O=document;return _.ES(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(m){return"on"+m.toLowerCase()in O})};
ss3=function(O){O.addEventListener("click",function(m){var G=m.target;G&&G.getAttribute("href")&&(G=G.getAttribute("href"),_.Bi(window,G,"_blank"),m.preventDefault(),m.stopImmediatePropagation())})};
Nrr=function(O){var m,G,B,Q=(B=(G=((m=O.mainDownloadsListEntity)!=null?m:{})[_.DOp])==null?void 0:G.refresh)!=null?B:"",H;O=(H=O.refresh)==null?void 0:H[Q];Q=O!=null?O:{};return(Q==null?0:Q.refreshTime)?Number(Q==null?void 0:Q.refreshTime):0};
PPx=function(O,m){var G=_.Cs(O);return m.every(function(B){var Q;B=B==null?void 0:(Q=B.playbackDataEntity)==null?void 0:Q.key;if(!B)return!1;Q=_.Ja(_.Ur(B).entityId,"mainVideoEntity");return!!G[Q]})};
F8K=function(O){O=_.SH(O.entities);return _.$OM(O).length};
AKo=function(O,m){if(m){var G;O=(G=_.Vh(O.entities,"downloadQualityPickerEntity",m))!=null?G:void 0}else O=void 0;return O};
Oss=function(O){var m=document.getElementsByTagName("ytd-enforcement-message-view-model");m.length===0||getComputedStyle(m[0]).display==="none"?O(0,"p.h_"):O(1,"p.h_")};
mo3=function(){HB=0;var O=[_.Ih(!0)];vB&&_.UB(vB,"yt-window-resized",O)};
GkJ=function(){HB||(HB=_.ln.addLowPriorityJob(mo3,200))};
QQs=function(){KZ=0;BvB=_.R0e(document);var O=[BvB];vB&&_.UB(vB,"yt-window-scrolled",O)};
Hsr=function(){KZ||(KZ=_.ln.addLowPriorityJob(QQs,200))};
Kf0=function(O){O=O===void 0?null:O;vsr.push(_.HH(window,"resize",GkJ));vsr.push(_.HH(window,"scroll",Hsr));O&&(vB=O)};
MHb=function(){var O={isWide:_.fR.get("wide","0")==="1"},m=_.TC();if(m=m.getFlag(165)||m.getFlag(174))O.theme=_.oh(!0);if(_.eLI()){var G=_.Cf()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";O.systemTheme=G}!m&&_.V("parent_tools_enable_app_settings")&&_.Fq(window.location.href).theme!==void 0&&(O.theme=_.oh());if((m=$P)?!_.aM.equals(m,O):O)m={currentValue:O},$oB&&(m.timeSinceLastSnapshotSecs=Math.round(((0,_.$G)()-$oB)/1E3)),$P&&(m.previousValue=$P),_.LE("appSettingsCaptured",m),$P=O,$oB=
(0,_.$G)()};
RZr=function(){var O=_.yg.getLocalStorage();O&&raK(O,O.mechanism.__iterator__(!0))};
isb=function(O){_.r(function(m){if(m.nextAddress==1)return m.yield(O.delete("yt-appshell-assets"),2);_.ju(m)})};
xoA=function(O){return _.AE((0,_.gQ3)(),O)};
UoJ=function(){var O;_.r(function(m){return m.nextAddress==1?m.yield(Ml.getInstance(),2):(O=m.yieldResult)?m.yield(qr9(O),0):m.jumpTo(0)})};
WfA=function(){var O;_.r(function(m){return m.nextAddress==1?m.yield(rf.getInstance(),2):(O=m.yieldResult)?m.yield(tHr(O),0):m.jumpTo(0)})};
Zso=function(O){isb(O);UoJ();WfA()};
zZr=function(O){var m,G;return _.r(function(B){if(B.nextAddress==1)return B.yield(_.UfM(O),2);if(m=B.yieldResult){var Q;a:{if(m.headers&&(Q=m.headers.get("date"))&&(Q=Date.parse(Q),!isNaN(Q))){Q=Math.round((0,_.$G)()-Q);break a}Q=-1}G=Q;if(G>-1)return B.return(G)}return B.return(-1)})};
Jas=function(){var O=_.Qf.caches,m=_.yE("IS_SHELL_LOAD"),G,B;_.r(function(Q){if(Q.nextAddress==1)return G=-1,m?Q.yield(zZr(O),3):(B=_.SY(),G=Math.round((0,_.$G)()-B),Q.jumpTo(2));Q.nextAddress!=2&&(G=Q.yieldResult);G>=0&&G<2147483648&&_.as({appInstallDataAgeMs:G});_.ju(Q)})};
VHy=function(O){var m=_.Ph(_.Qf.location.href),G={};"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(B){var Q=m.JSC$10033_queryData_.getValues(B);if(Q==null?0:Q.length)G[B]=Q});
return _.Zn(O,new Map(Object.entries(G)))};
bsB=function(O){O=O.match(/(.*)::.*::.*/);if(O!==null)return O[1]};
nsu=function(O){if(_.S5O()){var m=Object.keys(window.localStorage);m=_.K(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;var B=bsB(G);B===void 0||O.includes(B)||self.localStorage.removeItem(G)}}};
Xqh=function(){if(!_.S5O())return!1;var O=_.gI(),m=Object.keys(window.localStorage);m=_.K(m);for(var G=m.next();!G.done;G=m.next())if(G=bsB(G.value),G!==void 0&&G!==O)return!0;return!1};
fhb=function(O){return _.kd("NotificationsDisabled",O)};
hZo=function(){return Notification.permission!="granted"?Promise.resolve():_.h2A().then(function(O){return O?O.pushManager.getSubscription().then(function(m){if(m)return Promise.resolve();m={userVisibleOnly:!0,applicationServerKey:_.Az("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return O.pushManager.subscribe(m).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
Tvy=function(O){return _.h2A().then(function(m){if(!m||!m.active)return Promise.reject(new _.j9("serviceworker.postMessage",O,m));try{return m.active.postMessage(O),Promise.resolve()}catch(G){return Promise.reject(G)}})};
gsA=function(){Tvy({type:"notifications_register",data:_.kB("ID_TOKEN")})};
uZu=function(){if(!_.yE("LOGGED_IN"))return Promise.resolve(!1);var O=_.ib("service_worker_push_force_notification_prompt_tag");return O?_.yH("PromptTags").then(function(m){if(!m)return!0;var G=[];try{G=JSON.parse(m)}catch(B){return!1}return G&&G.indexOf(O)==-1}):Promise.resolve(!1)};
jQu=function(){var O=_.Rd("service_worker_push_prompt_delay_microseconds");return O?_.yH("PromptTime").then(function(m){return Promise.resolve(Date.now()-O>(m||0))}):Promise.resolve(!0)};
IhA=function(){var O=_.Rd("service_worker_push_logged_out_prompt_watches");return O==-1?Promise.resolve(!1):_.yH("WatchCount").then(function(m){return m>=O})};
pqB=function(){var O=_.R_(document,"yt-push-prompt-modal-bg");O&&_.hF(O)};
SrA=function(){return _.Rd("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.yH("PromptCount").then(function(O){O||(O=0);return Promise.resolve(O<_.Rd("service_worker_push_prompt_cap"))})};
Esb=function(O){return _.yE("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.yE("LOGGED_IN")&&(O===void 0?0:O)?uZu().then(function(m){if(m)return!0;m=[SrA(),jQu()];_.yE("LOGGED_IN")||m.push(IhA());return Promise.all(m).then(function(G){return G.every(function(B){return B})})}):Promise.resolve(!1)};
Lfy=function(){_.yH("PromptCount").then(function(O){return _.kd("PromptCount",O+1)}).then(function(){return _.kd("PromptTime",Date.now())}).then(function(){var O=_.ib("service_worker_push_force_notification_prompt_tag");
if(O)return _.yH("PromptTags").then(function(m){var G=[];if(m)try{G=JSON.parse(m)}catch(B){return!1}G||(G=[]);G.push(O);return _.kd("PromptTags",JSON.stringify(G))})})};
oss=function(){CQ3||pqB()};
lho=function(O){O.style.zIndex=2147483648;O.style.pointerEvents="auto";O.style.backgroundColor="rgba(0, 0, 0, 0.6)";O.style.width="100%";O.style.height="100vh";O.style.position="absolute";O.style.top="0";O.style.left="0";O.style.border="none"};
ahh=function(){var O=_.R_(document,"yt-push-prompt-modal-bg");CQ3=_.V("service_worker_push_prompt_modal_ignore_click");O?lho(O):(O=_.aD("div",{id:"yt-push-prompt-modal-bg"}),lho(O),document.body.appendChild(O),_.OHS(document,"click",oss))};
kk9=function(){var O=arguments;_.V("service_worker_push_prompt_modal_enable")&&ahh();return Notification.requestPermission().then(function(m){pqB();var G=document.getElementById("ticker");G&&(G.className=G.classList.remove("show"));if(m=="granted")return hZo().then(function(){fhb(!1);gsA();return Promise.resolve(!0)});
m=="denied"&&gsA();return Promise.resolve(!1)}).catch(function(){pqB();
return Promise.reject.apply(Promise,_.lS(O))})};
yar=function(O){O=O===void 0?!1:O;var m=_.FFp().client;if(m&&m.browserVersion){var G=m.browserVersion,B=m.browserName=="CHROME"&&_.WM(G,"50.0.0")<0;m=m.browserName=="OPERA"&&_.WM(G,"42.0.0")<0;if(B||m)return Promise.resolve()}return _.uqB().then(function(Q){if(!Q)return Promise.resolve();Q=hZo().then(function(){return Tvy({type:"notifications_check_registration",data:_.kB("ID_TOKEN")})});
return Notification.permission!="default"?Q.catch(function(){}):Q.then(function(){return Esb(O)}).then(function(H){if(H)return Lfy(),kk9().then(function(){})}).catch(function(){})})};
caB=function(O){return _.Tih(O)?yar():Promise.resolve()};
Yro=function(O){var m=O.installing||O.waiting;return O.active||!m?Promise.resolve(O):new Promise(function(G){var B=function(Q){Q=Q.target;if(Q.state==="activated"||Q.state==="redundant")m.removeEventListener("statechange",B),G(O)};
m.addEventListener("statechange",B)})};
dou=function(){var O=new _.GEO("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.xp(O,{mainAppWeb:_.QM()});var m=_.wR_;_.V("service_worker_forward_exp_params")&&(m=VHy(m));try{var G=_.AWI(m).catch(function(){_.qX(O,"FAILURE");return new Promise(function(){})});
_.V("service_worker_push_enabled")&&G.then(function(B){_.qX(O,"SUCCESS");return B}).then(Yro).then(caB)}catch(B){if(_.qX(O,"FAILURE"),B.name!=="SecurityError")throw B;
}};
wqy=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&dou()};
eZB=function(O,m){var G={};m&&(G.serializedYpcFamilyCreateLoggingParams=m);_.LE(O,G);_.CE()};
Doh=function(O,m){var G={};G.serializedYpcRefundFlowLoggingParams=m;O&&(G.eventType=O);_.LE("ypcRefundFlowEvent",G);_.CE()};
sQ0=function(O){O&&_.mb6("transactionFlowSucceeded",O)};
Nvx=function(O){O&&_.J2("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",O,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
PQo=function(O){var m,G,B,Q,H,M,R;_.r(function(x){if(x.nextAddress==1)return x.yield(_.Exz(),2);if(x.nextAddress!=3){if(!x.yieldResult)return x.return(!1);m=[];return x.yield(_.JH.keys(),3)}G=x.yieldResult;B=_.K(G);for(Q=B.next();!Q.done;Q=B.next())H=Q.value,M=_.pAN(H),R=M.datasyncId,!R||O.includes(R)||m.push(_.JH.delete(H));return x.return(Promise.all(m).then(function(t){return t.some(function(W){return W})}))})};
Ff3=function(){var O,m,G,B,Q,H,M;return _.r(function(R){if(R.nextAddress==1)return R.yield(_.Exz(),2);if(R.nextAddress!=3){if(!R.yieldResult)return R.return(!1);O=_.gI("cache contains other");return R.yield(_.JH.keys(),3)}m=R.yieldResult;G=_.K(m);for(B=G.next();!B.done;B=G.next())if(Q=B.value,H=_.pAN(Q),(M=H.datasyncId)&&M!==O)return R.return(!0);return R.return(!1)})};
Aah=function(){var O=_.KR().resolve(_.v7(_.yBu));return O?O.getCurrentTime():0};
OfB=function(){var O,m,G,B,Q,H,M,R,x,t,W,Z,z,J;return _.r(function(n){switch(n.nextAddress){case 1:O={},m=_.LXN(),G=_.K(Object.entries(m)),B=G.next();case 4:if(B.done){n.jumpTo(3);break}Q=B.value;H=_.K(Q);M=H.next().value;R=H.next().value;x=M;t=R;if(!t){n.jumpTo(5);break}return n.yield(t(),8);case 8:O[x]=n.yieldResult;case 5:B=G.next();n.jumpTo(4);break;case 2:W=_.K(void 0),Z=W.next();case 9:if(Z.done){n.jumpTo(3);break}z=Z.value;J=m[z];if(!J){n.jumpTo(10);break}return n.yield(J(),13);case 13:O[z]=
n.yieldResult;case 10:Z=W.next();n.jumpTo(9);break;case 3:return n.return(O)}})};
mBu=function(){var O;_.r(function(m){if(m.nextAddress==1)return m.yield(OfB(),2);O=m.yieldResult;return m.yield(navigator.clipboard.writeText(JSON.stringify(O,null,2)),0)})};
GLB=function(O,m){return _.Vh(O.entities,"superThanksSelectedTierEntity",m)};
BHr=function(O,m){return{popup:{searchSuggestionReportDialog:{searchQuery:O,title:_.Xm("SBOX_INAPPROPRIATE_TITLE"),suggestions:m,categoryLabel:_.Xm("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Xm("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Xm("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Xm("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Xm("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Xm("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Xm("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Xm("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.Xm("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.Xm("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
Qh9=function(O){var m,G,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P;return _.r(function(w){switch(w.nextAddress){case 1:return w.yield(_.XZ(),2);case 2:return(m=w.yieldResult)?w.yield(_.b0s(m),3):w.return();case 3:G=w.yieldResult;if(!G)return w.return();Q=((B=G.offlineVideos)==null?void 0:B.length)||0;M=((H=G.offlinePlaylists)==null?void 0:H.length)||0;if(Q===0&&M===0)return w.return();R=0;if(G.offlineVideos)for(x=_.K(G.offlineVideos),t=x.next();!t.done;t=x.next())W=t.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
W.videoState&&(R+=1);O.offline_videos_count=Q.toString();_.V("kevlar_log_offline_current_network_type_ks")||(O.offline_current_network_type=(Z=_.bsN())!=null?Z:"CONN_INVALID");_.V("kevlar_log_updated_time_for_smart_downloads")&&(z=_.Kf().getState().entities,J=_.ks(z),n=Nrr(z),O.offline_smart_downloads_last_sync_time_ms=J.toString(),O.offline_smart_downloads_next_sync_time_ms=n.toString());O.offline_videos_playable=R.toString();O.offline_playlists_count=M.toString();G.offlineVideos&&(I=G.offlineVideos.reduce(function(d,
D){D.downloadedBytes&&(d+=Number(D.downloadedBytes));return d},0).toString())&&(O.offline_used_disk_space_bytes=I);
if(!((S=navigator)==null?0:(L=S.storage)==null?0:L.estimate)){w.jumpTo(4);break}return w.yield(navigator.storage.estimate(),5);case 5:C=w.yieldResult,O.offline_free_disk_space_bytes=(((P=C)==null?void 0:P.quota)||0).toString();case 4:O.offline_client_state=JSON.stringify(G),_.ju(w)}})};
Hfy=function(O){O=O.match(/(.*)::.*::.*/);if(O!==null)return O[1]};
vHu=function(O){if(_.EuN()){var m=Object.keys(window.sessionStorage);m=_.K(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;var B=Hfy(G);B===void 0||O.includes(B)||self.sessionStorage.removeItem(G)}}};
KZ9=function(){if(!_.EuN())return!1;var O=_.gI(),m=Object.keys(window.sessionStorage);m=_.K(m);for(var G=m.next();!G.done;G=m.next())if(G=Hfy(G.value),G!==void 0&&G!==O)return!0;return!1};
RH=function(O,m,G){(_.V("desktop_keyboard_shortcut_usage_log")||G&&_.V("web_shorts_keyboard_shortcut_usage_log"))&&(m?_.wB.get(O):_.dB.get(O))&&(O=m?_.D5.get(O):_.e5.get(O))&&_.Gk(_.yA(),O)};
$Bs=function(O,m){return O.findIndex(function(G){return G.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(m.keyCode):!1};
Mwr=function(){var O,m;return typeof CSS!=="undefined"&&((m=(O=CSS).supports)==null?void 0:m.call(O,"selector(:has(*))"))};
rV9=function(O){return O.visibility!=="hidden"&&O.display!=="none"};
if3=function(O){if(Mwr()||O.tagName!=="DETAILS"?!O.matches(RaA):O.querySelector("summary")!==null)return-1;O=O.getAttribute("tabindex")||"0";return Number(O)};
xBr=function(O){return O.some(function(m){return if3(m)>0})};
qK9=function(O){if(O.textContent)return!0;if(O instanceof HTMLInputElement){if(!O.labels)return!1;O=_.K(O.labels);for(var m=O.next();!m.done;m=O.next())if(m.value.textContent)return!0}return!1};
UBu=function(O){return O.sort(function(m,G){return if3(G)-if3(m)})};
tw0=function(O){O=Array.from(O.querySelectorAll(RaA)).filter(function(m){return(rV9(m.style)?rV9(window.getComputedStyle(m)):!1)&&qK9(m)});
return xBr(O)?UBu(O):O};
WZ0=function(O){O=tw0(O);O.length>0&&O[0].focus()};
Zf9=function(O,m){m.stack&&(O.stack+="\n"+m.stack);return O};
Vw0=function(O){var m=xP(O,"Content-Type");if(!m)return null;m=m.toLowerCase();if(m.startsWith("application/json"))return m.startsWith("application/json+protobuf")?new zas:new _.nG;if(m.startsWith("application/x-protobuf")){O=xP(O,"Content-Transfer-Encoding");if(!O)return new ql;if(O.toLowerCase()=="base64")return new JV9}return null};
jh0=function(O,m,G,B){var Q=new bfy(function(R,x){return nHy.has(x)?R.sentinel==="gal"&&R.event!==void 0:!1},function(R){R.event?(R=XXr(R.event),R=!R||fk9(B,R)?!0:_.XS(O.lastEvent,Uj,2,tq)?!_.XS(R,WB,1,tq)&&!_.XS(R,Uj,2,tq):!_.XS(R,WB,1,tq)&&!_.XS(R,Uj,3,tq)):R=!0;
return R});
G=_.Zn(O.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",ha9(G)]]));if(O.nestedOrigins!==void 0)for(var H=_.K(O.nestedOrigins),M=H.next();!M.done;M=H.next())G=_.Zn(G,new Map([["origin",M.value]]));return THx(Q,G,m).then(function(R){R=gHB(R.event);if(_.XS(R,WB,1,tq)){var x,t=(x=_.lg(R,WB,1,tq))==null?void 0:_.Lq(x,2);t&&B.JSC$19393_logErrorEvent(usA(t));x=_.lg(R,WB,1,tq);_.Lq(x,2)===4?(R=_.lg(R,WB,1,tq),R={statusCode:11,statusMessage:_.Eg(R,
3)}):(R=_.lg(R,WB,1,tq),R={statusCode:12,statusMessage:_.Eg(R,3)});return R}_.XS(R,Uj,3,tq)?(R=_.lg(R,Uj,3,tq),R={statusCode:1,consentLanguageKeys:_.Eg(R,2)}):R={statusCode:1};return R}).catch(function(R){return R.errorCode!==void 0?{statusCode:R.errorCode,
statusMessage:R.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
EHr=function(O){var m={};if(O===void 0||O===null)return m;O.getToken()!==void 0&&Ikh(O.getToken())&&Ikh(O.getToken()).length>0&&(m.scopes=new Set(Ikh(O.getToken())));O.getToken()!==void 0&&pXo(O.getToken())&&pXo(O.getToken()).length>0&&(m.capabilities=new Set(pXo(O.getToken())));_.Eg(O,3)!==void 0&&(m.consistencyKey=_.Eg(O,3));O.getName()!==void 0&&O.getName()!==""&&(m.linkName=O.getName());_.nq(O,SK3,4)&&(O=_.RO(O,SK3,4),O=Object.assign({},_.Eg(O,1)&&{userId:_.Eg(O,1)},_.Eg(O,2)&&{displayName:_.Eg(O,
2)},_.Eg(O,3)&&{email:_.Eg(O,3)},_.Eg(O,5)&&{username:_.Eg(O,5)},_.Eg(O,4)&&{profilePicture:_.Eg(O,4)}),m.profile=O);return m};
LZu=function(O,m){var G=O.flowParams,B;return{serviceId:G.serviceId,sessionId:G.sessionId,currentFlow:O.currentFlow,googleScopesString:m,linkingSessionSerialized:O.session.serialize(),consentLanguageKeys:G.consentLanguageKeys,callerState:O.callerState,dynamicUrlParameters:G.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(B=G.partnerConfigMinReadTimestamp)==null?void 0:B.serialize()}};
kL3=function(O){var m=O.googleScopes!==void 0?Array.from(O.googleScopes).join(","):"";Cu9(LZu(O,m));m=oHb(O);return m===null?Promise.resolve(lkh):m.start().then(function(G){var B,Q=(B=G.link)==null?void 0:B.consistencyKey;return G.statusCode===1&&O.googleScopes!==void 0&&O.googleScopes.size>0&&Q!==void 0?(B=O.flowParams,ako(B.serviceId,B.sessionId,O.googleScopes,Q,B.galService,O.config,G)):G})};
yVB=function(O){var m=oHb(O);return m===null?Promise.resolve(ZF({statusCode:7,statusMessage:"Failed to create flow object"},O.callerState)):m.complete().then(function(G){var B,Q=(B=G.link)==null?void 0:B.consistencyKey;return G.statusCode===1&&O.googleScopes!==void 0&&O.googleScopes.size>0&&Q!==void 0?(B=O.flowParams,ako(B.serviceId,B.sessionId,O.googleScopes,Q,B.galService,O.config,G)):ZF(G,O.callerState)},function(G){return ZF({statusCode:12,
statusMessage:"Failed to complete the flow: "+G.message},O.callerState)})};
ako=function(O,m,G,B,Q,H,M){return cVo(Q,{serviceId:O,sessionId:m,googleScopes:G,consistencyKey:B}).then(function(){return M},function(R){return Q.deleteLink({serviceId:O,
sessionId:m,accountLinkingEntryPoint:H.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+R.message}},function(x){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+x.message}})})};
oHb=function(O){switch(O.currentFlow){case 1:var m=O.flowParams;O=_.RO(O.session,YKr,1);return zr.createOAuthFlow(m,O);case 2:case 3:return m=O.flowParams,O=_.RO(O.session,dBr,6),Jq.createStreamlinedFlow(m,O);default:return null}};
wX0=function(O,m){O===2&&(O=3);var G=0;V3.indexOf(O)!==-1&&(G=V3.indexOf(O)+1);for(O=G;O<V3.length;O++)if(m.has(V3[O]))return V3[O]};
shb=function(O){var m=O.serviceId;var G=O.sessionId;var B=O.config;var Q=O.galService;var H=O.capabilities;var M=O.scopes;var R=O.loginHint;var x=O.callerState;var t=O.consentLanguageKeys;var W=O.linkName;var Z=O.dynamicUrlParameters;var z=O.partnerConfigMinReadTimestamp;O=B.dataUsageNoticeConfig?B.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return Q.startLinkingSession({serviceId:m,sessionId:G,capabilities:H,scopes:M,loginHint:R,callerState:x,supportedFlows:eaK(B.supportedFlows),completionUrl:B.completionUrl,
accountLinkingEntryPoint:B.accountLinkingEntryPoint,consentLanguageKeys:t,dataUsageNoticeConfig:O,linkName:W,dynamicUrlParameters:Z,partnerConfigMinReadTimestamp:z}).then(function(J){return new DBJ(m,G,B,Q,J,void 0,x,t,Z,z)})};
mjB=function(O,m,G){var B=(new NH3).getSession(O);if(B===null)return Promise.resolve({statusCode:2});Pu3(O);var Q=FZx(B.linkingSessionSerialized),H=B.googleScopesString!==""&&B.googleScopesString!==void 0?new Set(B.googleScopesString.split(",")):void 0,M=B.partnerConfigMinReadTimestampSerialized?AVu(B.partnerConfigMinReadTimestampSerialized):void 0;return O7x(new DBJ(O,B.sessionId,m,G,Q,H,B.callerState,B.consentLanguageKeys,B.dynamicUrlParameters,M),B.currentFlow,B.consentLanguageKeys)};
Cu9=function(O){var m=new NH3;m.storage!==null&&m.storage.set("SAVED_SESSION",O)};
Pu3=function(O){var m=new NH3;if(m.storage!==null){var G=m.storage.get("SAVED_SESSION");G!==void 0&&G.serviceId===O&&m.storage.remove("SAVED_SESSION")}};
eaK=function(O){var m=new Set;O=_.K(O);for(var G=O.next();!G.done;G=O.next())G=G.value,G!==1&&GwK.has(G)&&m.add(GwK.get(G));return m};
ZF=function(O,m){m!==void 0&&(O.callerState=m);return O};
BXB=function(O){switch(O){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
vZ0=function(O){return new Qur(O,new H7r(O))};
MiJ=function(O,m){m=m===void 0?!1:m;var G=document.createElement("div");O&&(G.style.transform="scaleX(-1)");G.style.backgroundColor=m?"rgba(138,180,248,.24)":"#e8f0fe";G.style.height="4px";G.style.overflow="hidden";G.style.position="absolute";G.style.top="0";G.style.width="100%";G.style.zIndex="1500";G.setAttribute("aria-label","Loading");G.setAttribute("aria-live","polite");O=document.createElement("style");O.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  }";
G.appendChild(O);O=K$r();O.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";O.style.left="-145.166611%";var B=$jb(m);B.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";O.appendChild(B);G.appendChild(O);O=K$r();O.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";O.style.left="-54.888891%";m=$jb(m);m.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
O.appendChild(m);G.appendChild(O);return G};
K$r=function(){var O=document.createElement("div");O.style.height="100%";O.style.position="absolute";O.style.transformOrigin="top left";O.style.width="100%";return O};
$jb=function(O){var m=document.createElement("span");m.style.borderTop=O?"4px solid #669df6":"4px solid #4285f4";m.style.display="inline-block";m.style.position="absolute";m.style.width="100%";return m};
rGh=function(O){return O==null?void 0:_.Z9U(O).valueOf()};
qcK=function(O){var m=document.body,G=!1,B=function(){G||(G=!0,RS3(Q,H),setTimeout(function(){m.removeChild(H);m.removeChild(Q)},150))},Q=i73(O,getComputedStyle(m).direction==="rtl",B),H=xjr(B);
RS3(Q,H);m.appendChild(H);m.appendChild(Q);window.requestAnimationFrame(function(){H.style.opacity="1";Q.style.opacity="1";Q.style.transform="translate(-50%, -50%) scale(1)";Q.children[0].focus()})};
i73=function(O,m,G){var B=document.createElement("div");B.style.position="fixed";B.style.alignItems="center";B.style.backgroundColor=O?"rgb(32, 33, 36)":"white";B.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";B.style.display="flex";B.style.flexDirection="column";B.style.justifyContent="center";B.style.left="50%";B.style.top="50%";B.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";B.style.zIndex="2002";document.body.clientWidth>=
660?(B.style.borderRadius="8px",B.style.minHeight="220px",B.style.maxHeight="90%",B.style.maxWidth="90%",B.style.minWidth="540px"):(B.style.height="100%",B.style.width="100%");B.setAttribute("aria-label","Error");B.setAttribute("aria-modal","true");B.setAttribute("role","alertdialog");B.addEventListener("keydown",function(H){H.key==="Escape"&&G()});
m=Uj9(O,m,G);B.appendChild(tiA(m));B.appendChild(m);var Q=document.createElement("img");Q.src=O?"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","");B.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=O?"rgb(232,234,237)":"#3c4043";B.appendChild(Q);B.appendChild(tiA(m));return B};
Uj9=function(O,m,G){var B=document.createElement("button");B.style.backgroundColor="transparent";B.style.border="none";B.style.borderRadius="50%";B.style.cursor="pointer";B.style.outline="none";B.style.padding="12px";B.setAttribute("aria-label","Close dialog");B.style.position="absolute";B.style.top="0";m?B.style.right="0":B.style.left="0";B.addEventListener("focus",function(){B.style.backgroundColor=O?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
B.addEventListener("blur",function(){B.style.backgroundColor="transparent"});
B.addEventListener("mouseenter",function(){B.style.backgroundColor=O?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
B.addEventListener("mouseleave",function(){B.style.backgroundColor="transparent"});
B.addEventListener("click",G);B.addEventListener("keydown",function(Q){Q.key!=="Enter"&&Q.key!=="Space"||G()});
m=document.createElement("img");m.src=O?"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";m.style.display="block";m.style.height="24px";m.style.width="24px";m.setAttribute("alt","");B.appendChild(m);return B};
tiA=function(O){var m=document.createElement("div");m.setAttribute("tabindex","0");m.setAttribute("aria-hidden","true");m.addEventListener("focus",function(){return void O.focus()});
return m};
xjr=function(O){var m=document.createElement("div");m.style.backgroundColor="rgba(32,33,36,0.6)";m.style.bottom="0";m.style.left="0";m.style.position="fixed";m.style.right="0";m.style.top="0";m.style.transition=" opacity 150 ms linear";m.style.zIndex="2001";m.addEventListener("click",O);return m};
RS3=function(O,m){m.style.opacity="0";O.style.opacity="0";O.style.transform="translate(-50%, -50%) scale(0.8)"};
W$r=function(O,m){O.sandbox&&O.sandbox.add&&(O.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),O.sandbox.add("allow-downloads"));O.src=m};
bt=function(O){Z7K.call(this,O)};
nZ=function(O,m){m=m===void 0?!1:m;this.parsedImageUrl_=null;O instanceof zSh||(JGy==void 0&&(JGy=new Viu),O=JGy.parse(O.toString(),m));O=this.parsedImageUrl_=O;O.JSC$19605_parsedOptions_==void 0&&((m=O.getOptions())||(m=""),O.JSC$19605_parsedOptions_=(new b7J).parse(m));Z7K.call(this,O.JSC$19605_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;O=this.parsedImageUrl_;m=O.uri_.JSC$10033_port_;this.JSC$19607_domain_=O.uri_.JSC$10033_domain_+(m?":"+m:"");this.JSC$19607_query_=
this.parsedImageUrl_.uri_.JSC$10033_queryData_.toString()};
nZr=function(O){this.mode=4;this.data=O;this.parsedData=[];O=0;for(var m=this.data.length;O<m;O++){var G=[],B=this.data.charCodeAt(O);B>65536?(G[0]=240|(B&1835008)>>>18,G[1]=128|(B&258048)>>>12,G[2]=128|(B&4032)>>>6,G[3]=128|B&63):B>2048?(G[0]=224|(B&61440)>>>12,G[1]=128|(B&4032)>>>6,G[2]=128|B&63):B>128?(G[0]=192|(B&1984)>>>6,G[1]=128|B&63):G[0]=B;this.parsedData.push(G)}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))};
XCA=function(O){this.typeNumber=0;this.errorCorrectLevel=O===void 0?2:O;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
Xp=function(O,m){if(O.length==void 0)throw Error("Jk`"+O.length+"`"+m);for(var G=0;G<O.length&&O[G]==0;)G++;this.num=Array(O.length-G+m);for(m=0;m<O.length-G;m++)this.num[m]=O[m+G]};
fOh=function(O,m){this.totalCount=O;this.dataCount=m};
hSx=function(){this.buffer=[];this.length=0};
TX0=function(){var O=!1;if(_.UpM()){O=_.zY();var m="";_.ZNr()?(m=/Windows (?:NT|Phone) ([0-9.]+)/,m=(O=m.exec(O))?O[1]:"0.0"):_.Ie()?(m=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,m=(O=m.exec(O))&&O[1].replace(/_/g,".")):_.W5p()?(m=/Mac OS X ([0-9_.]+)/,m=(O=m.exec(O))?O[1].replace(/_/g,"."):"10"):_.qp(_.zY(),"KaiOS")?(m=/(?:KaiOS)\/(\S+)/i,m=(O=m.exec(O))&&O[1]):_.UpM()?(m=/Android\s+([^\);]+)(\)|;)/,m=(O=m.exec(O))&&O[1]):_.z6S()&&(m=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,m=(O=m.exec(O))&&O[1]);O=
m||""}return O};
ScB=function(O,m){this.JSC$19630__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(m)for(var G in m)this.JSC$19630__htOption[G]=m[G];this.JSC$19630__htOption.useSVG&&(gZo=uVo);this.JSC$19630__android=TX0();this.JSC$19630__el=O;this._oQRCode=null;this._oDrawing=new gZo(this.JSC$19630__el,this.JSC$19630__htOption);this.JSC$19630__htOption.text&&(O=this.JSC$19630__htOption.text,this._oQRCode=new XCA(this.JSC$19630__htOption.correctLevel),juA(this._oQRCode,
O),m=this._oQRCode,IO9(m,!1,pCu(m)),this.JSC$19630__el.title=O,this._oDrawing.draw(this._oQRCode),this.makeImage())};
EZr=function(O,m,G,B,Q){O.save();var H=new Path2D;H.roundRect(m,G,B*7,B*7,B*2);H.roundRect(m+B,G+B,B*5,B*5,B*1.3);H.roundRect(m+2*B,G+2*B,B*3,B*3,B);O.clip(H,"evenodd");O.fillStyle=Q;O.fillRect(0,0,O.canvas.width,O.canvas.height);O.restore()};
fZ=function(O,m){if(typeof O!=="function")throw Error("Mk");return _.Qf.setTimeout(function(){O()},m)};
hq=function(){};
Ccr=function(O,m,G,B,Q){(new hq).debug("TestLoadImageWithRetries: "+Q);if(B==0)G(!1);else{var H=Q||0;B--;L$h(O,m,function(M){M?G(!0):_.Qf.setTimeout(function(){Ccr(O,m,G,B,H)},H)})}};
L$h=function(O,m,G){var B=new hq;B.debug("TestLoadImage: loading "+O);var Q=new Image;Q.onload=function(){try{B.debug("TestLoadImage: loaded"),oZr(Q),G(!0)}catch(H){}};
Q.onerror=function(){try{B.debug("TestLoadImage: error"),oZr(Q),G(!1)}catch(H){}};
Q.onabort=function(){try{B.debug("TestLoadImage: abort"),oZr(Q),G(!1)}catch(H){}};
Q.ontimeout=function(){try{B.debug("TestLoadImage: timeout"),oZr(Q),G(!1)}catch(H){}};
_.Qf.setTimeout(function(){if(Q.ontimeout)Q.ontimeout()},m);
Q.src=O};
oZr=function(O){O.onload=null;O.onerror=null;O.onabort=null;O.ontimeout=null};
lO0=function(){this.front_=[];this.back_=[]};
aOx=function(O,m){this.action=O;this.params=m||{}};
kw9=function(O,m){_.Iw.call(this);this.delay_=new _.Se(this.JSC$19756_onTick_,0,this);_.VV(this,this.delay_);this.JSC$19754_interval_=5E3;this.nextTickTime_=0;if(typeof O==="function")m&&(O=(0,_.pd)(O,m));else if(O&&typeof O.handleEvent==="function")O=(0,_.pd)(O.handleEvent,O);else throw Error("ya");this.JSC$19756_listener_=O};
Tr=function(O,m,G,B,Q,H,M,R,x,t,W,Z,z,J){G=G===void 0?!1:G;B=B===void 0?function(){return""}:B;
Q=Q===void 0?!1:Q;H=H===void 0?!1:H;M=M===void 0?!1:M;R=R===void 0?function(){return _.ZY({})}:R;
x=x===void 0?!1:x;W=W===void 0?!1:W;Z=Z===void 0?!1:Z;z=z===void 0?!1:z;J=J===void 0?!1:J;this.JSC$19757_pathPrefix_=O;this.defaultQueryParams_=m;this.pubsub_=new _.nR;this.reconnectTimer_=new kw9(this.safeReconnect_,this);this.JSC$19757_channel_=null;this.JSC$19757_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19757_pendingMessages_=[];this.enableAsyncTest_=G;this.JSC$19757_getXsrfToken_=B;this.useAsyncBrowserChannelHandler_=H;this.getAuthorizationHeader_=
R;this.getAuthorizationHeaderSync_=t;this.enableCachedUpdateAuthorizationHeader_=M;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.ZY();this.enableLoungeTokenRefresh_=Q;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=x;this.disableMdxAuthForNonPlaybackMessages_=W;this.disableMdxAuthForAdMessages_=Z;this.enableMdxAuthForConnectionOnly_=z;this.disableMdxAuthForShortsMessages_=J;this.JSC$19757_channelOpenedCounter=new yG3;this.JSC$19757_channelClosedCounter=new cG0;this.channelMessageSentCounter=
new Ycx;this.JSC$19757_channelMessageReceivedCounter=new djo;this.JSC$19757_channelErrorCounter=new wCs;this.pendingMapsOnClosedCounter=new eSr;this.undeliveredMapsOnClosedCounter=new Djh};
gf=function(O){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;O=O||document.location.href;var m=Number(_.mM(O)[4]||null)||"";m&&(this.port=":"+m);this.domain=_.Gg(O)||"";O=_.zY();O.search("MSIE")>=0&&_.WM(O.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
ut=function(O){O=O||{};this.name=O.name||"";this.id=O.id||O.screenId||"";this.token=O.token||O.loungeToken||"";this.uuid=O.uuid||O.dialId||"";this.idType=O.screenIdType||"normal"};
su3=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(O){var m=Math.random()*16|0;return(O=="x"?m:m&3|8).toString(16)})};
NXr=function(O){return _.k6(O,function(m){return{key:m.id,name:m.name}})};
Pco=function(O,m){return _.ES(O,function(G){return G||m?!G!=!m?!1:G.id==m.id:!0})};
IH=function(O,m){return _.ES(O,function(G){return jc(G,m)})};
GS9=function(){var O=F$y(),m=AGr();if(Omh()){var G=O,B=_.gOe(G,m);B<0&&_.fpz(G,-(B+1),0,m)}O=mNo(O);if(O.length==0)try{_.ZsN("remote_sid")}catch(Q){}else try{_.hE("remote_sid",O.join(","),-1)}catch(Q){}};
F$y=function(){var O=_.YH("yt-remote-connected-devices")||[];O.sort(_.TNe);return O};
mNo=function(O){if(O.length==0)return[];var m=O[0].indexOf("#"),G=m==-1?O[0]:O[0].substring(0,m);return _.k6(O,function(B,Q){return Q==0?B:B.substring(G.length)})};
Bur=function(O){_.cX("yt-remote-connected-devices",O,86400)};
AGr=function(){if(QpK)return QpK;var O=_.YH("yt-remote-device-id");O||(O=su3(),_.cX("yt-remote-device-id",O,31536E3));for(var m=F$y(),G=1,B=O;_.kO(m,B);)G++,B=O+"#"+G;return QpK=B};
HmA=function(){return _.YH("yt-remote-session-browser-channel")};
Omh=function(){return _.YH("yt-remote-session-screen-id")};
$Nr=function(O){O.length>5&&(O=O.slice(O.length-5));var m=_.k6(vn0(),function(B){return B.loungeToken}),G=_.k6(O,function(B){return B.loungeToken});
_.j0s(G,function(B){return!_.kO(m,B)})&&Kps();
_.cX("yt-remote-local-screens",O,31536E3)};
vn0=function(){return _.YH("yt-remote-local-screens")||[]};
Kps=function(){_.cX("yt-remote-lounge-token-expiration",!0,86400)};
pZ=function(O){O||(_.dH("yt-remote-session-screen-id"),_.dH("yt-remote-session-video-id"));GS9();O=F$y();_.yf(O,AGr());Bur(O)};
r1o=function(){Mg0();return Sc?!!Sc.get("yt-remote-use-staging-server"):!1};
Mg0=function(){if(!Sc){var O=_.Tvs();O&&(Sc=new _.Id(O))}};
qzr=function(O,m,G,B,Q){G=G===void 0?function(){return""}:G;
var H=function(){return new Tr(Ej(O,"/bc"),m,!1,G,B)};
return _.V("enable_mdx_web_channel_desktop")?new RBu(function(){return new imo(Ej(O,"/wc"),m,G)}):new xNB(H,Q)};
Zmr=function(){var O=UNr;tgr();LZ.push(O);Wpy()};
CZ=function(O,m){tgr();var G=zBB(O,String(m));LZ.length==0?J1b(G):(Wpy(),_.Nr(LZ,function(B){B(G)}))};
oH=function(O){CZ("CP",O)};
tgr=function(){LZ||(LZ=_.ex("yt.mdx.remote.debug.handlers_")||[],_.HI("yt.mdx.remote.debug.handlers_",LZ))};
J1b=function(O){var m=(lt+1)%50;lt=m;VgJ[m]=O;bmr||(bmr=m==49)};
Wpy=function(){var O=LZ;if(VgJ[0]){var m=bmr?lt:-1,G={};do G={record$jscomp$15:void 0},m=(m+1)%50,G.record$jscomp$15=VgJ[m],_.Nr(O,function(B){return function(Q){Q(B.record$jscomp$15)}}(G));
while(m!=lt);VgJ=Array(50);lt=-1;bmr=!1}};
zBB=function(O,m){var G=(Date.now()-nnx)/1E3;G.toFixed&&(G=G.toFixed(3));var B=[];B.push("[",G+"s","] ");B.push("[","yt.mdx.remote","] ");B.push(O+": "+m,"\n");return B.join("")};
aH=function(O){_.Yd.call(this);this.JSC$19781_logName_=O;this.screens=[]};
y3=function(O){aH.call(this,"LocalScreenService");this.JSC$19788_http_=O;this.loungeTokenRefreshTimer_=NaN;kP(this);this.info("Initializing with "+XEu(this.screens))};
cB=function(O,m){m=m===void 0?!1:m;aH.call(this,"ScreenService");this.JSC$19794_http_=O;this.disableAutomaticScreenCache_=m;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};fBK(this)};
YP=function(O,m,G){_.Yd.call(this);this.JSC$19798_logName_=G;this.JSC$19798_screenService_=O;this.receiver_=m;this.screen_=null};
y1r=function(O,m,G){G.disableCastApi?df("Cannot initialize because disabled by Mdx config."):hBA()?Tux(O,G)&&(gnb(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?uJo(m):(window.__onGCastApiAvailable=function(B,Q){B?uJo(m):(wf("Failed to load cast API: "+Q),jps(!1),gnb(!1),_.dH("yt-remote-cast-available"),_.dH("yt-remote-cast-receiver"),IBJ(),m(!1))},G.loadCastApiSetupScript?_.sF(pE3):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
Sz0()>=60&&Enh():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?Lpr():Sz0()>=89?CKK():(ono(),lBo(aBA.map(kSr))))):df("Cannot initialize because not running Chrome")};
IBJ=function(){df("dispose");var O=ec();O&&O.dispose();_.HI("yt.mdx.remote.cloudview.instance_",null);c13(!1);_.vgS(YzJ);YzJ.length=0};
dNr=function(){return!!_.YH("yt-remote-cast-installed")};
wE0=function(){var O=_.YH("yt-remote-cast-receiver");return O?O.friendlyName:null};
eBB=function(){df("clearCurrentReceiver");_.dH("yt-remote-cast-receiver")};
DNx=function(){return dNr()?ec()?ec().getCastSession():(wf("getCastSelector: Cast is not initialized."),null):(wf("getCastSelector: Cast API is not installed!"),null)};
Nu3=function(O,m){spK()?ec().setConnectedScreenStatus(O,m):wf("setConnectedScreenStatus called before ready.")};
hBA=function(){var O=_.zY().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.ZM||O};
Tux=function(O,m){var G=!1;ec()||(O=new DF(O,m),O.subscribe("yt-remote-cast2-availability-change",function(B){_.cX("yt-remote-cast-available",B);mr("yt-remote-cast2-availability-change",B)}),O.subscribe("yt-remote-cast2-receiver-selected",function(B){df("onReceiverSelected: "+B.friendlyName);
_.cX("yt-remote-cast-receiver",B);mr("yt-remote-cast2-receiver-selected",B)}),O.subscribe("yt-remote-cast2-receiver-resumed",function(B){df("onReceiverResumed: "+B.friendlyName);
_.cX("yt-remote-cast-receiver",B);mr("yt-remote-cast2-receiver-resumed",B)}),O.subscribe("yt-remote-cast2-session-change",function(B){df("onSessionChange: "+PKh(B));
B||_.dH("yt-remote-cast-receiver");mr("yt-remote-cast2-session-change",B)}),_.HI("yt.mdx.remote.cloudview.instance_",O),G=!0);
df("cloudview.createSingleton_: "+G);return G};
ec=function(){return _.ex("yt.mdx.remote.cloudview.instance_")};
uJo=function(O){jps(!0);gnb(!1);ec().init(!1,function(m){m?(c13(!0),_.KwS("yt-remote-cast2-api-ready")):(wf("Failed to initialize cast API."),jps(!1),_.dH("yt-remote-cast-available"),_.dH("yt-remote-cast-receiver"),IBJ());O(m)})};
df=function(O){CZ("cloudview",O)};
wf=function(O){CZ("cloudview",O)};
jps=function(O){df("setCastInstalled_ "+O);_.cX("yt-remote-cast-installed",O)};
spK=function(){return!!_.ex("yt.mdx.remote.cloudview.apiReady_")};
c13=function(O){df("setApiReady_ "+O);_.HI("yt.mdx.remote.cloudview.apiReady_",O)};
gnb=function(O){_.HI("yt.mdx.remote.cloudview.initializing_",O)};
sj=function(O){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(O)};
QZr=function(O){Mg0();if(!Sc||!Sc.get("yt-remote-disable-remote-module-for-dev")){O=_.kB("MDX_CONFIG")||O;RZr();GS9();Nl||(Nl=new gf(O?O.loungeApiHost:void 0),r1o()&&(Nl.basePath="/api/loungedev"));PB||(PB=_.ex("yt.mdx.remote.deferredProxies_")||[],_.HI("yt.mdx.remote.deferredProxies_",PB));Fpr();var m=Fp();if(!m){var G=new cB(Nl,O?O.disableAutomaticScreenCache||!1:!1);_.HI("yt.mdx.remote.screenService_",G);m=Fp();var B={};O&&(B={appId:O.appId,disableDial:O.disableDial,theme:O.theme,loadCastApiSetupScript:O.loadCastApiSetupScript,
disableCastApi:O.disableCastApi,enableDialLoungeToken:O.enableDialLoungeToken,enableCastLoungeToken:O.enableCastLoungeToken,forceMirroring:O.forceMirroring});_.HI("yt.mdx.remote.enableConnectWithInitialState_",O?O.enableConnectWithInitialState||!1:!1);y1r(G,function(H){H?Aq()&&Nu3(Aq(),"YouTube TV"):G.subscribe("onlineScreenChange",function(){mr("yt-remote-receiver-availability-change")})},B)}if(O&&!_.ex("yt.mdx.remote.initialized_")){_.HI("yt.mdx.remote.initialized_",!0);
OU("Initializing: "+(0,_.ck)(O));me.push(_.xt("yt-remote-cast2-api-ready",function(){mr("yt-remote-api-ready")}));
me.push(_.xt("yt-remote-cast2-availability-change",function(){mr("yt-remote-receiver-availability-change")}));
me.push(_.xt("yt-remote-cast2-receiver-selected",function(){A1x();mr("yt-remote-auto-connect","cast-selector-receiver")}));
me.push(_.xt("yt-remote-cast2-receiver-resumed",function(){mr("yt-remote-receiver-resumed","cast-selector-receiver")}));
me.push(_.xt("yt-remote-cast2-session-change",OH9));me.push(_.xt("yt-remote-connection-change",function(H){H?Nu3(Aq(),"YouTube TV"):mix()||(Nu3(null,null),eBB())}));
me.push(_.xt("yt-remote-cast2-session-failed",function(){mr("yt-remote-connection-failed")}));
B=G$r();O.isAuto&&(B.id+="#dial");var Q=O.capabilities||[];Q.length>0&&(B.capabilities=Q);B.name=O.device;B.app=O.app;(O=O.theme)&&(B.theme=O);OU(" -- with channel params: "+(0,_.ck)(B));B?(_.cX("yt-remote-session-app",B.app),_.cX("yt-remote-session-name",B.name)):(_.dH("yt-remote-session-app"),_.dH("yt-remote-session-name"));_.HI("yt.mdx.remote.channelParams_",B);m.start();Aq()||Bgo()}}};
vg9=function(){var O=Fp().instance_.$_gos();var m=HHu();m&&G7()&&(Pco(O,m)||O.push(m));return NXr(O)};
Kw9=function(){var O=vg9(),m=HHu();m||(m=mix());return _.ES(O,function(G){return m&&jc(m,G.key)?!0:!1})};
HHu=function(){var O=Aq();if(!O)return null;var m=Fp().getScreens();return IH(m,O)};
OH9=function(O){OU("remote.onCastSessionChange_: "+PKh(O));if(O){var m=HHu();if(m&&m.id==O.id){if(Nu3(m.id,"YouTube TV"),O.idType=="shortLived"&&(O=O.token))$iy&&($iy.token=O),(m=G7())&&m.setLoungeToken(O)}else m&&MVr(),rHs(O,1)}else G7()&&MVr()};
MVr=function(){spK()?ec().stopSession():wf("stopSession called before API ready.");var O=G7();O&&(O.disconnect(1),R$3(null))};
iHs=function(){var O=G7();return O&&O.getProxyState()!=3?new Bt(G7(),void 0):null};
OU=function(O){CZ("remote",O)};
Fp=function(){if(!xi0){var O=_.ex("yt.mdx.remote.screenService_");xi0=O?new qfA(O):null}return xi0};
Aq=function(){return _.ex("yt.mdx.remote.currentScreenId_")};
Ui9=function(O){_.HI("yt.mdx.remote.currentScreenId_",O)};
A1x=function(){_.HI("yt.mdx.remote.connectData_",null)};
G7=function(){return _.ex("yt.mdx.remote.connection_")};
R$3=function(O){var m=G7();A1x();O||Ui9("");_.HI("yt.mdx.remote.connection_",O);PB&&(_.Nr(PB,function(G){G(O)}),PB.length=0);
m&&!O?mr("yt-remote-connection-change",!1):!m&&O&&mr("yt-remote-connection-change",!0)};
mix=function(){var O=Omh();if(!O)return null;var m=Fp();if(!m)return null;m=m.getScreens();return IH(m,O)};
rHs=function(O,m){tV0?$iy=O:(Ui9(O.id),O=new QR(Nl,O,G$r(),_.ex("yt.mdx.remote.enableConnectWithInitialState_")||!1),O.connect(m,_.ex("yt.mdx.remote.connectData_")),O.subscribe("beforeDisconnect",function(G){mr("yt-remote-before-disconnect",G)}),O.subscribe("beforeDispose",function(){G7()&&R$3(null)}),O.subscribe("browserChannelAuthError",function(){var G=HHu();
G&&G.idType=="shortLived"&&(spK()?ec().handleBrowserChannelAuthError():wf("refreshLoungeToken called before API ready."))}),R$3(O))};
Bgo=function(){var O=mix();O?(OU("Resume connection to: "+PKh(O)),rHs(O,0)):(pZ(),eBB(),OU("Skipping connecting because no session screen found."))};
Fpr=function(){var O=G$r();if(_.aM.isEmpty(O)){O=AGr();var m=_.YH("yt-remote-session-name")||"",G=_.YH("yt-remote-session-app")||"";O={device:"REMOTE_CONTROL",id:O,name:m,app:G,mdxVersion:3};O.authuser=String(_.kB("SESSION_INDEX","0"));(m=_.kB("DELEGATED_SESSION_ID"))&&(O.pageId=String(m));_.HI("yt.mdx.remote.channelParams_",O)}};
G$r=function(){return _.ex("yt.mdx.remote.channelParams_")||{}};
Wwx=function(){var O,m;return _.r(function(G){if(G.nextAddress==1)return(_.c1e()||_.V("use_new_nwl"))&&_.lBN().isNetworkAvailable()?G.yield(_.vI(),2):G.return();if(G.nextAddress!=3)return(O=G.yieldResult)?G.yield(Ec0(O),3):G.return();m=G.yieldResult;if(!m.length)return G.return();m.forEach(function(B){var Q={timestamp:B.timestamp};B=B.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:B.appShellAssetLoadReport,options:Q}:B.clientError?{payloadName:"clientError",payload:B.clientError,
options:Q}:void 0;B&&_.LE(B.payloadName,B.payload,B.options)});
m.length===100&&_.ln.addLowPriorityJob(Wwx);_.ju(G)})};
ZHu=function(O){if(O.playerResponse){if(O=O.playerResponse,O.messages&&O.messages.length>0&&(O=O.messages.find(function(m){return!(!m||!m.mealbarPromoRenderer)}))&&O.mealbarPromoRenderer)return O.mealbarPromoRenderer}else if(O.response&&(O=O.response)&&O.overlay&&O.overlay.mealbarPromoRenderer)return O.overlay.mealbarPromoRenderer};
z$A=function(O){if(O.response){var m=O.response;if(m&&m.overlay&&m.overlay.tooltipRenderer)return m.overlay.tooltipRenderer}if(O.playerResponse&&(O=O.playerResponse,O.messages&&O.messages.length>0&&(O=O.messages.find(function(G){return!(!G||!G.tooltipRenderer)}))&&O.tooltipRenderer))return O.tooltipRenderer};
VVr=function(O){if(!JHo&&(O=O||_.kB("ZWIEBACK_PING_URLS"))&&O.length){JHo=!0;for(var m=0;m<O.length;m++)_.sO(O[m])}};
ngr=function(O){if(_.aM.get(_.kB("PLAYER_VARS",{}),"privembed",!1)!="1"){O&&fYr();try{bHs().then(function(){},function(){}),_.W7(ngr,18E5)}catch(m){_.di(m)}}};
X60=function(){var O=_.TC(),m=O.getFlag(119),G=window.devicePixelRatio>1;document.body&&_.BG(document.body,"exp-invert-logo")&&(G&&!_.BG(document.body,"inverted-hdpi")?_.$g(document.body,"inverted-hdpi"):!G&&_.BG(document.body,"inverted-hdpi")&&_.v6(document.body,"inverted-hdpi"));m!=G&&(_.gr(0,119,G),O.save())};
fwr=function(O){return O.filter(function(m){return"ypcGetCartEndpoint"in m||"ypcFixInstrumentEndpoint"in m})};
h$A=function(O){return O.filter(function(m){return!_.b(m,_.lc8)})};
ggx=function(O,m){var G,B,Q,H,M,R,x;_.r(function(t){switch(t.nextAddress){case 1:G=_.kH.getInstance();B=_.XJ.instance;Q=_.Fw.instance;if(!Q)return Tgs(O,B,m),t.return();_.n_(t,2);O.onLoadingCommand&&B.resolveCommand(O.onLoadingCommand);return t.yield(G.getCurrentPositionFromGeolocation(),4);case 4:H=t.yieldResult;if(!O.resolveLocationCommand){t.jumpTo(5);break}M=G.createLocationInfo(H);return t.yield(_.Ov(Q,O.resolveLocationCommand,{locationInfo:M}),6);case 6:R=t.yieldResult;if(!R||"error"in R&&R.error||
R.errorMetadata)return Tgs(O,B,m),t.return();var W;if(R==null?0:(W=R.onResponseReceivedActions)==null?0:W.length){W=_.K(R.onResponseReceivedActions);for(var Z=W.next();!Z.done;Z=W.next())B.resolveCommand(Z.value)}(_.b(O.onSuccessCommand,_.GC)||_.b(O.onSuccessCommand,_.gH))&&_.iP(m.hostElement,"yt-navigate",{endpoint:O.onSuccessCommand,reload:!0});case 5:_.P7(t,0);break;case 2:x=_.uS(t);if(x instanceof GeolocationPositionError&&x.code===GeolocationPositionError.PERMISSION_DENIED)return O.onDeniedCommand&&
B.resolveCommand(O.onDeniedCommand),t.return();Tgs(O,B,m);_.ju(t)}})};
Tgs=function(O,m,G){O.onFailureCommand&&(m.resolveCommand(O.onFailureCommand),_.xc(G.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
jZr=function(O,m){var G=_.b(O,_.tfe);if(G&&m){O=G.videoIds||[G.videoId];var B;m=(B=_.iP(m,"yt-lockup-requested",{videoIds:O}).detail)==null?void 0:B.returnValue;var Q;G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?Q=m?m:O.map(function(H){return{videoId:H,navigationEndpoint:G.videoCommand}}):m&&(Q=m);
Q&&(B=Q.map(function(H){var M=Object,R=M.assign;var x=H.navigationEndpoint;if(!_.b(x,_.pf)){var t=_.b(x,_.GC);if(t){if(delete t.index,delete t.playlistId,t=_.b(x==null?void 0:x.commandMetadata,_.bP),t==null?0:t.url){var W=t.url;W=_.Kr(W,"list");W=_.Kr(W,"index");t.url=W}}else x=void 0}return R.call(M,{},H,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:x})}),uw0(B,G))}};
Iwy=function(O){var m=_.tC();if(O=_.b(O,_.W7o))O.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&m.clearQueue(),O.closeMiniplayer&&_.KR().resolve(_.c$).close(!0)};
Sfr=function(O){p60(_.tC(),O)};
Egu=function(O){var m;(O=(m=_.b(O,_.q62))==null?void 0:m.setVideoIds)&&O.forEach(function(G){_.FLo(_.tC(),G)})};
CE0=function(O){Lwb(_.tC(),O)};
ogh=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(O){return!1}};
lwb=function(O){var m=["h","m","s"],G=_.cM(m);G.reverse();var B={};O=(O.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(M){var R=(M.match(/[hms]/)||[""])[0];return R?(B[R]=parseInt(M.match(/\d+/)[0],10),!1):!0});
for(O.reverse();O.length&&G.length;){var Q=G.shift();Q in B||(B[Q]=parseInt(O.shift(),10))}if(O.length||B.s>59||B.m>59||B.h>9)return null;var H="";m.forEach(function(M){B[M]&&(H+=""+B[M]+M)});
return H||null};
awA=function(O,m){var G=_.aeC(m,{},O,!0);return new Promise(function(B,Q){G.listenOnce("n",function(){Q(Error("xl`"+G.JSC$29492_getErrorDescription()))});
G.listenOnce("l",function(){var H=G.getResponseCode();if(H!==200)Q(Error("yl`"+m+"`"+O.type+"`"+O.size+"`"+H));else try{B(JSON.parse(G.getResponseText()).encryptedBlobId)}catch(M){Q(M)}});
G.run()})};
k$u=function(O){return O.substring(O.indexOf(":")+1,O.indexOf(";"))};
yHo=function(O){return new Promise(function(m,G){var B=new FileReader;B.onloadend=function(){try{var Q=new Uint8Array(B.result);Q.length<8&&G(void 0);var H=Q.subarray(0,8);Q="";for(var M=0;M<H.length;M++)Q+=("0"+H[M].toString(16)).substr(-2);Q.startsWith("ffd8ff")?m("image/jpeg"):Q.startsWith("47494638")?m("image/gif"):Q.startsWith("89504e470d0a1a0a")?m("image/png"):Q.startsWith("424d")?m("image/bmp"):m(void 0)}catch(R){G(R)}};
B.onerror=G;B.readAsArrayBuffer(O)})};
cHr=function(O){return new Promise(function(m,G){var B=new Image;B.crossOrigin="anonymous";B.onload=function(){var Q=document.createElement("canvas");Q.width=B.naturalWidth;Q.height=B.naturalHeight;var H=Q.getContext("2d");if(!H)throw Error("zl");H.drawImage(B,0,0);H=k$u(O);Q.toBlob(function(M){M?m(M):G()},H)};
B.src=O})};
diK=function(O,m){var G;if(((G=_.b(O,_.pf))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var B;_.iP((B=m.hostElement)!=null?B:m,"yt-shorts-reset");_.AuU(_.KR().resolve(_.wS),O).then(function(H){Yfs(H,m,O)})}else{var Q;
_.tK((Q=m.hostElement)!=null?Q:m,[O]).then(function(H){H&&Yfs(H.data,m,O)})}};
Yfs=function(O,m,G){if(O){var B=_.b(O.replacementEndpoint,_.pf);if(B){O.sequenceContinuation&&(B.sequenceParams=O.sequenceContinuation);var Q;_.iP((Q=m.hostElement)!=null?Q:m,"yt-navigate",{endpoint:O.replacementEndpoint})}else if((O==null?void 0:O.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(O==null?0:O.watchStatus)&&_.b(O.watchStatus,_.AS2)){var H;_.iP((H=m.hostElement)!=null?H:m,"yt-navigate",{endpoint:G})}}};
w6B=function(O){var m=_.KR().resolve(_.ry),G=_.sv.currentPageTypeSelector(m.getState())||"";m=_.sv.currentPageSubTypeSelector(m.getState())||"";G=G==="ytd-browse"&&m==="home";return _.V("web_guide_entry_enable_cache_for_non_home_pages")?(O=(O==null?void 0:O.navigationEndpoint)&&_.TL(O.navigationEndpoint)==="home",{disableCache:G&&O}):{disableCache:G}};
e$y=function(O){if(!O)return!1;try{if(O.host&&O.host.tagName==="YT-FORMATTED-STRING"&&O.host.id==="contenteditable-textarea"||O.nodeType===Node.ELEMENT_NODE&&O.tagName==="YTD-COMMENT-INPUT")return!0}catch(m){return!1}return e$y(O.parentNode)};
Ht=function(O){return O?O.tagName==="A"&&O.href&&O.classList.contains("yt-simple-endpoint"):!1};
Diy=function(O){return O?O.tagName==="IMG"&&O.classList.contains("emoji"):!1};
sZy=function(O,m,G){if(!O)return null;var B=Ht(O);if(B&&G)return m=O.pathname.substring(O.pathname.indexOf("/channel/")+9),document.createTextNode("@"+m);if(B&&!G)return document.createTextNode("");if(Diy(O))return G=O.alt,O=O.dataset.emojiId,!O&&m&&(m=_.qk(m,G))&&m.isCustomEmoji&&(O=m.emojiId),O?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+O+">"):document.createTextNode(G);B=O.cloneNode(!1);for(var Q=0;Q<O.childNodes.length;++Q){var H=sZy(O.childNodes[Q],m,G);H&&B.appendChild(H)}return B};
vt=function(O){return O?Ht(O)?O:vt(O.lastChild):null};
Ng9=function(O){return O?Ht(O)?O:Ng9(O.firstChild):null};
PEB=function(O){if(!O)return null;for(var m=O.previousSibling;m;)if(m.nodeType===Node.ELEMENT_NODE&&m.nodeName==="BR")m=m.previousSibling;else if(m.nodeType===Node.TEXT_NODE&&/\s+/.test(m.textContent))m=m.previousSibling;else break;(m=vt(m))?O=m:O=(O=O.parentNode)?vt(O.previousElementSibling):null;return O};
FwK=function(O){if(!O)return null;for(var m=O.nextSibling;m;)if(m.nodeType===Node.ELEMENT_NODE&&m.nodeName==="BR")m=m.nextSibling;else if(m.nodeType===Node.TEXT_NODE&&/\s+/.test(m.textContent))m=m.nextSibling;else break;return(m=Ng9(m))?m:FwK(O.parentNode)};
AHA=function(O){var m=_.tI(),G=m.JSC$11350_getStartNode();if(!e$y(G.parentNode))return null;m=m.JSC$11350_getStartOffset();if(G.nodeType===Node.TEXT_NODE){var B=_.w9(G,Ht);if(B){if(O&&m===0||!O&&m===G.length)return B}else{if(O&&m===G.length)return!G||G.nodeName==="BR"||G.nextElementSibling&&_.Wc(G.nextElementSibling,"display")==="block"?null:Ng9(G.nextElementSibling);if(!O&&m===0)return G?vt(G.previousElementSibling):null}}if(G.nodeType===Node.ELEMENT_NODE)if(O){if(0<=m&&m<G.childNodes.length)return Ng9(G.childNodes[m])}else if(0<
m&&m<=G.childNodes.length)return vt(G.childNodes[m-1]);return null};
OJh=function(O,m,G){if(!O)return null;if(O.nodeType===Node.TEXT_NODE)if(G){var B=PEB(O);if(B&&!/^\s+\S/.test(O.wholeText.substr(0,m)))return B}else if((B=FwK(O))&&!/\S\s+/.test(O.wholeText.substr(m,O.wholeText.length)))return B;return O.nodeType===Node.ELEMENT_NODE?G?PEB(O.childNodes[m]):FwK(O.childNodes[m]):OJh(O.parentNode,m,G)};
m1K=function(O){if(O.hasChildNodes())switch(O.tagName){case "DIV":case "A":case "SPAN":var m="";for(O=O.firstChild;O;O=O.nextSibling)m+=m1K(O);return m;default:return""}else switch(O.nodeType){case 3:return O.textContent;default:return""}};
GMB=function(O){switch(O){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"}};
BRJ=function(O){return O.map(function(m){return{settingsRadioOptionRenderer:{title:_.iQ(m.name),asideText:_.iQ(m.approximateSize),id:GMB(m.format)}}})};
HJb=function(O){if(O&&O.length!==0)return O.filter(Q_x()).map(function(m){return{settingsRadioOptionRenderer:{title:m.name,asideText:m.approximateSize,id:GMB(m.formatType)}}})};
Ke=function(O){if(O)return O.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
vio=function(O,m){O=new Set(O!=null?O:[]);if(O.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(O.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(O.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(O.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(O.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(m)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
K3K=function(O){var m=O.indexOf("(");return m!==-1?O.substring(m+1,O.length-1):O};
_.Mh3=function(O,m,G,B,Q){G||(G=$13);var H;(H=_.b(G.commandMetadata,_.bP))!=null&&H.url||(G=Error("El`"+JSON.stringify(G)),_.oy(G),G=$13);G=_.aM.unsafeClone(G);H=_.cH(_.b(G.commandMetadata,_.bP).url,"search_query",O);_.s0(location.href,"sv")==="1"&&(_.b(G,_.uu).params="EgOAAgE%3D",H=_.cH(H,"sv","1"));_.b(G,_.uu)&&(_.b(G,_.uu).query=O);H=H.replace(/%20/g,"+");_.b(G.commandMetadata,_.bP).url=H;Q=_.V("desktop_enable_entity_suggest")?{entityMid:Q}:{};_.KR().resolve(_.Mu).resolveCommand(G,{form:{tempData:Object.assign({},
{gs_l:m,oq:B!=null?B:O},Q)}})};
rtK=function(O){switch(O){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
iJ3=function(O,m,G,B,Q,H){var M=_.aM.clone(RXo);M.locale=_.kB("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;M.report={description:Q||"<empty>"};Q=_.kB("SBOX_SETTINGS",{});m=m.join(",");var R=Date.now();O={choice_cc:B,choice_id_cc:G,choices_sc:m,gl:Q.REQUEST_DOMAIN,hl:Q.REQUEST_LANGUAGE,query:O,time:R};H&&(O.choice_additional_comment_cc=H);_.w48(M,O)};
x1K=function(O){var m=new Map;m.set("authuser",_.kB("SESSION_INDEX","0"));return _.Zn(O,m)};
U1J=function(O){var m;return _.r(function(G){switch(G.nextAddress){case 1:if(!O||!qv3(O))return G.return(null);m=null;switch(_.kB("INNERTUBE_CLIENT_NAME")){case "WEB":return G.jumpTo(2);case "WEB_REMIX":m=O.getPlayer()}G.jumpTo(3);break;case 2:return G.yield(O.getPlayerPromise(),4);case 4:m=G.yieldResult;G.jumpTo(3);break;case 3:return G.return(m)}})};
qv3=function(O){return["ytd-player","ytmusic-player"].includes(String(O.tagName||"").toLowerCase())};
th0=function(O){O=Math.round(O);return O%2?O-1:O};
W3b=function(O){O=Math.round(O);return O%2===0?O-1:O};
ZJJ=function(O){var m,G,B;if(O=(m=O.createPlaylistDialogFormSchema)==null?void 0:(G=m.fieldSchemas)==null?void 0:(B=G.title)==null?void 0:B.validationSchema)for(m=[O.syncStep,O.asyncStep].filter(function(Q){return Q!==void 0}),m=_.K(m),G=m.next();!G.done;G=m.next()){G=G.value.rules;
if(!G)break;G=_.K(G);for(G=G.next();!G.done;G=G.next())return _.b(G.value,_.eJr)}};
Jtr=function(O){var m,G,B;if(O=(m=O.createPlaylistDialogFormSchema)==null?void 0:(G=m.fieldSchemas)==null?void 0:(B=G.visibility)==null?void 0:B.validationSchema)for(m=[O.syncStep,O.asyncStep].filter(function(Q){return Q!==void 0}),m=_.K(m),G=m.next();!G.done;G=m.next()){G=G.value.rules;
if(!G)break;G=_.K(G);for(B=G.next();!B.done;B=G.next())if(B=_.b(B.value,zXr))return m=void 0,(m=B.translations)==null?void 0:m.visibilityNotValidErrorMessage}};
VhK=function(){var O,m;return(m=(O=_.KR().resolve(_.v7(_.B6)))==null?void 0:O())!=null?m:!1};
bJr=function(O){var m=21;if(!O)return m;m+=O.headerTitle?27:0;m+=O.headerTitle&&O.hasHeaderActionHeader?4:0;return m+=O.headerTitle&&O.headerSubtitle?16:0};
niB=function(O){var m=0;if(!O)return m;m+=O.hasFooterPrimaryButton||O.hasFooterSecondaryButton?48:0;m+=O.footerTrailingLabel||O.footerLeadingLabel?30:0;return m+=O.hasFooterPrimaryButton||O.hasFooterSecondaryButton||!O.footerTrailingLabel&&!O.footerLeadingLabel?0:12};
Xur=function(O){var m=new _.nR,G=O;return{subscribe:function(B){m.subscribe("changed",B)},
dispatch:function(B,Q){var H=G;B==="Touch Start"?G=Object.assign({},H,{isAnimating:!1,initialY:Q.event.touches[0].clientY}):B==="Touch Move"?(B=Math.min(Q.fullContentWrapperHeight,Q.contentHeightMap[Q.contentWrapperId]+bJr(Q.header)-niB(Q.footer)),G=Object.assign({},H,{currentY:Math.max(Q.contentScrollable?-1*(H.initialY-24):0,Q.event.touches[0].clientY-H.initialY),maxHeightForContentWrapper:Math.min(B,Math.max(0,(H.isFullScreen?B:Q.contentWrapperHeight)-H.currentY))})):G=B==="Snap To Full Screen"?
Object.assign({},H,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:Q.maxHeight}):B==="Snap To Neutral Position"?Object.assign({},H,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:Q.maxHeight}):B==="Close Sheet"?Object.assign({},H,{isAnimating:!0,currentY:Q.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:Q.maxHeight}):H;m.publish("changed",G)}}};
fvs=function(O){return _.nH(function(m){O(m);return!1})};
hX9=function(){_.KR().resolve(_.O5).closeSheet()};
TRB=function(O){var m,G,B,Q,H,M,R,x,t,W,Z;return{headerTitle:(m=O.headerTitle)==null?void 0:m.call(O),headerSubtitle:(G=O.headerSubtitle)==null?void 0:G.call(O),headerActionHeader:O.headerActionHeader,footerPrimaryButton:O.footerPrimaryButton,footerSecondaryButton:O.footerSecondaryButton,footerButtonType:(B=O.footerButtonType)==null?void 0:B.call(O),footerLeadingLabel:(Q=O.footerLeadingLabel)==null?void 0:Q.call(O),footerTrailingLabel:(H=O.footerTrailingLabel)==null?void 0:H.call(O),shouldShowIcons:(M=
O.shouldShowIcons)==null?void 0:M.call(O),skipContentClick:(R=O.skipContentClick)==null?void 0:R.call(O),additionalClassName:(x=O.additionalClassName)==null?void 0:x.call(O),onClosedCallback:O.onClosedCallback,focusOnClose:(t=O.focusOnClose)==null?void 0:t.call(O),isDisabled:(W=O.isDisabled)==null?void 0:W.call(O),disabledCommand:(Z=O.disabledCommand)==null?void 0:Z.call(O),headerFn:O.headerFn,contentFn:O.contentFn,footerFn:O.footerFn,hasHeaderFn:O.hasHeaderFn(),hasContentFn:O.hasContentFn(),hasFooterFn:O.hasFooterFn(),
hasFooterPrimaryButton:O.hasFooterPrimaryButton(),hasFooterSecondaryButton:O.hasFooterSecondaryButton(),hasHeaderActionHeader:O.hasHeaderActionHeader()}};
giB=function(O){switch(O){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""}};
u4u=function(O){switch(O){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""}};
j_K=function(O){switch(O){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""}};
Ivr=function(O,m,G){m.forEach(function(B){_.lR(_.KR().resolve(_.GR),B)});
_.xc(O,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",G])};
L3y=function(O,m,G,B){var Q=_.b(G,_.xz).commandLifeCycleConfig;Q&&Q.onStartCommand&&_.Wd(O,[Q.onStartCommand],m);_.dD(m);var H=_.Fw.instance;H&&_.AH(H,G)?_.Ov(H,G,B).then(function(M){if(!M||(M==null?0:M.error))return M=_.b(G,_.xz).serializedTransactionFlowLoggingParams,_.wD(m),_.lK(new $$("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",M));_.wD(m);return{data:M}}).then(function(M){_.wD(m);
pur(M.data);var R=M.data.command;R&&_.Wd(O,[R],m);R=Svb(G,M.data);if(!R){var x=M.data;M=!1;if(x&&x.command&&_.b(x.command,_.zC)){var t;x=((t=_.b(x.command,_.zC))==null?void 0:t.commands)||[];for(t=0;t<x.length;t++)if(_.b(x[t],_.V68)){M=!0;break}}M||_.Gh('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!R&&Q&&Q.onSuccessCommand?_.Wd(O,[Q.onSuccessCommand],m):R&&Q&&Q.onFailureCommand&&_.Wd(O,[Q.onFailureCommand],m)},function(){_.wD(m);
Q&&Q.onFailureCommand&&_.Wd(O,[Q.onFailureCommand],m);Eib(G)}):_.oy(Error("Ql"),"ERROR")};
C5o=function(O,m,G){var B=[m];G&&B.push(G);return _.tK(O,B).then(function(Q){var H=_.b(m,_.xz).serializedTransactionFlowLoggingParams,M=Q.data,R=Svb(m,M);R?Q=_.lK(new $$(R,H)):pur(M);return Q},function(){var Q=_.b(m,_.xz).serializedTransactionFlowLoggingParams;
Eib(m);return _.lK(new $$("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Q))})};
Svb=function(O,m){O=_.b(O,_.xz).serializedTransactionFlowLoggingParams;var G=null;switch(m.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":G="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":G="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":G="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}G?_.vC(G,O):sQ0(O);return G};
Eib=function(O){_.vC("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.b(O,_.xz).serializedTransactionFlowLoggingParams)};
pur=function(O){if(O.trackingParams){var m=_.yA(),G=_.kf();m&&G&&_.Pd(m,G,_.Ez(O.trackingParams))}};
oiy=function(O,m,G){var B=_.Fw.instance,Q=_.PJ6(_.kB("YPC_MB_URL")),H=(new _.sgS).init(),M=_.NAO(),R=_.b(G,_.WTC).languageCode;R===void 0?_.oy(Error("Ni"),"ERROR"):_.ll([H,Q]).then(function(){var x={ctk:_.B$.payments.business.integration.ClientTokenFactory.createClientToken(R,M)};B&&_.AH(B,G)?_.Ov(B,G,x).then(function(t){return{data:t}}).then(function(t){_.iP(m,"yt-service-request-completed",t);
t.code!=="ERROR"&&(t=t.data.command)&&_.Wd(O,[t],m)}):_.oy(Error("Ql"),"ERROR")})};
kM0=function(O,m,G,B){var Q=_.Fw.instance;Q&&_.AH(Q,G)?_.Ov(Q,G,B).then(function(H){return{data:H}}).then(function(H){lv9(O,m,G,H)},function(){avb(G)}):(Q=_.KR().resolve(_.v7(_.ew)))&&Q.requestDataForServiceEndpoint(G,B).then(function(H){lv9(O,m,G,H)},function(){avb(G)})};
lv9=function(O,m,G,B){_.iP(m,"yt-service-request-completed",B);if(B.code&&B.code=="ERROR")avb(G);else{(B=B.data.commands)&&_.Wd(O,B,m);var Q;(O=(Q=_.b(G,_.nk8))==null?void 0:Q.serializedYpcPauseFlowLoggingParams)&&O&&_.J2("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",O)}};
avb=function(O){var m;(O=(m=_.b(O,_.nk8))==null?void 0:m.serializedYpcPauseFlowLoggingParams)&&O&&_.J2("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",O,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
YvB=function(O,m,G){var B=_.Fw.instance;B&&_.AH(B,G)?_.Ov(B,G).then(function(Q){return{data:Q}}).then(function(Q){ytr(O,m,G,Q)},function(){ctb(G)}):(B=_.KR().resolve(_.v7(_.ew)))&&B.requestDataForServiceEndpoint(G).then(function(Q){ytr(O,m,G,Q)},function(){ctb(G)})};
ytr=function(O,m,G,B){_.iP(m,"yt-service-request-completed",B);B.code&&B.code=="ERROR"?ctb(G):((B=B.data.commands)&&_.Wd(O,B,m),(O=_.b(G,_.XT9).serializedYpcResumeFlowLoggingParams)&&O&&_.J2("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",O))};
ctb=function(O){(O=_.b(O,_.XT9).serializedYpcResumeFlowLoggingParams)&&O&&_.J2("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",O,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
d1h=function(O){O=O===void 0?{}:O;_.KR().resolve(_.xp9).showFeedbackDialog(O.customProductData,O.feedbackContent,O.onFeedbackSubmitted,O.bucket)};
wuy=function(O){O=O===void 0?{}:O;_.KR().resolve(_.xp9).showHelpDialog(O.helpContext,O.articleId,O.productData)};
eXb=function(){wuy()};
D1B=function(){d1h()};
NRx=function(O,m,G){var B,Q,H,M,R,x,t;return _.r(function(W){switch(W.nextAddress){case 1:B=_.b(O,s_h);if((Q=B)==null?0:Q.productId){x={productId:B.productId,bucket:B.bucket,enableAnonymousFeedback:(R=B.enableAnonymousFeedback)!=null?R:!0,allowNonLoggedInFeedback:!0};t={feedbackChoice:G.feedbackChoice};if(!_.V("web_collect_offline_state")){W.jumpTo(8);break}_.n_(W,9);return W.yield(Qh9(t),11)}M={bucket:(H=B)==null?void 0:H.bucket};if(!_.V("web_collect_offline_state")){W.jumpTo(4);break}M.customProductData=
{};_.n_(W,5);return W.yield(Qh9(M.customProductData),7);case 7:_.P7(W,4);break;case 5:_.uS(W);case 4:d1h(M);W.jumpTo(0);break;case 11:_.P7(W,8);break;case 9:_.uS(W);case 8:_.CDN(t),_.LWO("GFEEDBACK",t),B.productId==="5295751"&&(t.client_attestation=Number(_.kB("CATSTAT",0))),B.productId==="5295751"&&(t.client_time=Date.now()/1E3/3600),B.productId==="5295751"&&(t.original_playback_id=_.MOe||""),_.w48(x,t),_.ju(W)}})};
P5y=function(O){if(O=_.b(O,_.NeO)){var m={bucket:O.bucketIdentifier};O.additionalDatas&&(m.customProductData={},O.additionalDatas.forEach(function(G){if(G=G.userFeedbackEndpointProductSpecificValueData)m.customProductData[G.key]=G.value}));
d1h(m)}};
F3u=function(O){var m=_.sJ.getInstance();var G=_.Xm("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var B=_.Xm("DELETE",void 0,"Delete"),Q=_.Xm("CANCEL",void 0,"Cancel");G=UCB(G,void 0,B,Q,{signal:"DELETE_ALL_DOWNLOADS"});_.P1(m,[{openPopupAction:G}],O)};
Ozs=function(){return _.r(function(O){return O.nextAddress==1?O.yield(_.KR().resolve(_.Y1),2):O.yield(At0(),0)})};
mkr=function(O){var m,G;return _.r(function(B){return B.nextAddress==1?(G=(m=_.b(O,_.dE))==null?void 0:m.targetId)?B.yield(_.KR().resolve(_.Y1),3):B.jumpTo(0):B.yield(_.KR().resolve(_.cN).deleteVideo(G),0)})};
BDr=function(O){var m,G;return _.r(function(B){return B.nextAddress==1?(G=(m=_.b(O,_.dE))==null?void 0:m.targetId)?B.yield(_.KR().resolve(_.Y1),3):B.jumpTo(0):B.yield(GUx(_.KR().resolve(_.cN),G),0)})};
Hzs=function(O){var m,G;return _.r(function(B){return(G=(m=_.b(O,_.dE))==null?void 0:m.targetId)?B.yield(Q$h(G),0):B.jumpTo(0)})};
KHA=function(){_.V("kevlar_woffle_refresh_dl_load_killswitch")||vKu()};
Mlr=function(){_.V("kevlar_woffle")&&_.ah.instance&&$ku()};
RCK=function(O){var m;if((m=_.b(O,_.nJ))==null||!m.videoId)return!1;rIx(_.KR().resolve(_.cN),_.b(O,_.nJ),O.clickTrackingParams);return!0};
xkB=function(O){var m;if((m=_.b(O,_.X4))==null||!m.playlistId)return!1;izA(_.KR().resolve(_.cN),_.b(O,_.X4),O.clickTrackingParams);return!0};
Uko=function(O){var m=_.b(O,_.KG$);(m==null?void 0:m.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(m==null?void 0:m.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||qp3(_.KR().resolve(_.cN),_.b(O,_.KG$))};
WHA=function(O){O=_.b(O,_.o4U);var m;(O==null?0:(m=O.actions)==null?0:m.length)&&tlx(O)};
JIu=function(O){var m,G;return _.r(function(B){m=_.b(O,ZzJ);return(G=m)!=null&&G.localWatchHistoryCommandType?B.yield(zC9(m),0):B.return()})};
VlK=function(O){setTimeout(function(){requestAnimationFrame(O)},80)};
bzB=function(O){return Object.entries(O).map(function(m){return m.join(":")}).join(";")};
Xc0=function(O){var m,G,B;_.r(function(Q){if(Q.nextAddress==1)return Q.yield(nKJ(),2);m=Q.yieldResult;G=_.XJ.instance;switch(m){case "granted":B=O.getLocationCommand;break;case "denied":B=O.openDeniedDialogAction;break;case "prompt":B=O.openCollectionDialogAction;break;default:B=O.openCollectionDialogAction}B&&G.resolveCommand(B);_.ju(Q)})};
nKJ=function(){var O,m;return _.r(function(G){if(G.nextAddress==1)return O="prompt",navigator.permissions?G.yield(navigator.permissions.query({name:"geolocation"}),3):G.jumpTo(2);G.nextAddress!=2&&(m=G.yieldResult,O=m.state);return G.return(O)})};
hCy=function(){_.r(function(O){return O.yield(_.fL0(),0)})};
TDx=function(){var O,m,G;return _.r(function(B){if(B.nextAddress==1)return O=_.KR().resolve(_.Dk),O?B.yield(_.Ov(O,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.ay(Error("Tl")),B.return(void 0));if(m=B.yieldResult){if(m.errorMetadata)return _.ay(Error("Ul`"+m.errorMetadata.status+"`"+m.error)),B.return(void 0);G=m.datasyncIds;_.tob=G.length;return B.return(G)}_.ay(Error("Vl"));return B.return(void 0)})};
gKB=function(){TDx().then(function(O){O&&(pd9(O),PQo(O),nsu(O),vHu(O))})};
uv0=function(O){_.ln.addLowPriorityJob(function(){var m,G,B,Q,H;return _.r(function(M){switch(M.nextAddress){case 1:if(_.V("ytidb_clear_optimizations_killswitch")){M.jumpTo(2);break}m=_.gI("clear");if(m.startsWith("V")&&m.endsWith("||")){var R=[m];pd9(R);PQo(R);nsu(R);vHu(R);return M.return()}G=Xqh();B=KZ9();return M.yield(Ff3(),3);case 3:return Q=M.yieldResult,M.yield(SBh(),4);case 4:if(H=M.yieldResult,!(G||B||Q||H))return M.return();case 2:O.isNetworkAvailable()?gKB():O.listenOnce("publicytnetworkstatus-online",
gKB),_.ju(M)}})})};
Mw=function(O){O={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.Qg(O)}}}};_.XJ.instance&&_.XJ.instance.resolveCommand(O)};
j$y=function(O){if(O){var m=_.uK();_.E1(m,3854,void 0,{layer:0,parentLayer:4});switch(O){case 1:var G=238708;break;case 2:G=238715;break;case 3:G=238710;break;case 6:G=238709}G&&(O=_.gu(m,{veType:G}))&&_.oS(m,O)}};
ILJ=function(O){if(O){var m=_.uK();_.E1(m,3854,void 0,{layer:0,parentLayer:4});switch(O){case 1:var G=238714;break;case 2:G=238711;break;case 8:G=238709;break;case 7:G=238713;break;case 3:case 4:case 5:G=238712}G&&(O=_.gu(m,{veType:G}))&&_.oS(m,O)}};
pco=function(O){switch(O.latencyType){case 0:_.ys("consent_primitive_flow");_.cd("cpit",O.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.cd("cpist",O.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.cd("cprtif",O.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.cd("cprtli",O.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.cd("cprt",O.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.cd("cpdt",O.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.cd("cpjct",O.timestampEpochMillis,"consent_primitive_flow")}};
cIr=function(O,m){var G,B,Q,H,M,R,x,t,W,Z,z,J,n,I,S,L,C,P,w,d;return _.r(function(D){switch(D.nextAddress){case 1:_.n_(D,2);(B=(G=_.b(O,Spr))==null?void 0:G.serializedConsentRequest)||(B=(Q=_.b(O,EK3))==null?void 0:Q.serializedConsentRequest);B&&(H=LHo(_.Az(B)));if(H===void 0)return D.return();M=CmJ(H);M.latencyCallback=pco;m&&oKJ(M,function(){m.then(function(OS){OS.pauseVideo();(new lLr).increment()})});
return((R=_.b(O,Spr))==null?void 0:R.consentAction)==="CONSENT_ACTION_PREWARM"||((x=_.b(O,EK3))==null?void 0:x.consentAction)==="CONSENT_ACTION_PREWARM"?D.yield(aLA(M),5):D.yield(kUs(M),6);case 6:t=D.yieldResult;W=_.Ti(t,r1);if(W===1){if(((Z=_.lg(t,RJ,1,r1))==null?void 0:_.Lq(Z,1))===1||((z=_.lg(t,RJ,1,r1))==null?void 0:_.Lq(z,1))===2||((J=_.lg(t,RJ,1,r1))==null?void 0:_.Lq(J,1))===3)_.b(O,EK3)?Mw(_.Xm("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Mw(_.Xm("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));j$y((n=_.lg(t,RJ,1,r1))==null?void 0:_.Lq(n,1),_.r_(t,yIo,3,_.Rw()))}else W===2?(((I=iw(t))==null?void 0:_.Lq(I,1))===5?_.b(O,EK3)?Mw(_.Xm("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Mw(_.Xm("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((S=iw(t))==null?void 0:_.Lq(S,1))===1||((L=iw(t))==null?void 0:_.Lq(L,1))===4?Mw(_.Xm("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((C=iw(t))==null?void 0:_.Lq(C,1))===7&&((P=H)==null?void 0:(w=_.RO(P,x$,4))==null?void 0:_.Lq(w,4))!==1&&Mw(_.Xm("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),ILJ((d=iw(t))==null?void 0:_.Lq(d,1))):Mw(_.Xm("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));D.jumpTo(5);break;case 5:_.P7(D,0);break;case 2:_.uS(D),Mw(_.Xm("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.ju(D)}})};
dkB=function(){if(!Yp9.has("Worker")){Yp9.set("Worker",!0);var O={api:"BROWSER_API_WEB_WORKER"};O.available="Worker"in window?!0:!1;_.LE("apiTest",O)}};
wc3=function(O){return typeof O==="undefined"?"-1":String(Math.ceil(O/1048576))};
NDA=function(O,m){eCK(new Dkb(_.b(m,s$h).addToken,_.b(m,s$h).commonToken)).then(function(){_.iP(O,"yt-invoke-instrument-manager-action-completed")},function(G){_.iP(O,"yt-invoke-instrument-manager-action-error",G)})};
PmK=function(){var O,m;return(m=(O=window).matchMedia)==null?void 0:m.call(O,"(prefers-reduced-motion: reduce)").matches};
FH9=function(O){var m=_.KR().resolve(_.v7(_.dF));if(m&&m.isAnyTransitionEnabled){var G={};m.viewTransitionCoordinator.registerElement(O,(G.slide="miniplayer-page-transition",G["lockup-to-watch"]="miniplayer-page-transition",G["learning-journey"]="miniplayer-page-transition",G))}};
AI0=function(O,m,G){return{horizontalAlignment:O.x+G.width/2<m.width/2?"west":"east",verticalAlignment:O.y+G.height/2<m.height/2?"north":"south"}};
mXu=function(O,m,G,B,Q){Q=Q===void 0?new _.yD(0,0):Q;O=OkK(O,m,G,B);return new _.yD(O.x+Q.x,O.y+Q.y)};
OkK=function(O,m,G,B){return new _.yD(O==="west"?16:G.width-B.width-16,m==="north"?16:G.height-B.height-16)};
GKB=function(O,m){var G=0;O&&(G+=76);m&&(G+=285);return G};
BJB=function(O){return _.YF(O)};
Q6A=function(O){var m=1;O=O.split(":");for(var G=[];m>0&&O.length;)G.push(O.shift()),m--;O.length&&G.push(O.join(":"));return G};
Hk3=function(O){var m=new _.ny;return _.aE(m,11,O)};
vpr=function(O){var m={};O=O.getAllResponseHeaders().split("\r\n");for(var G=0;G<O.length;G++)if(!_.Re(O[G])){var B=Q6A(O[G]),Q=B[0];B=B[1];if(typeof B==="string"){B=B.trim();var H=m[Q]||[];m[Q]=H;H.push(B)}}return _.aM.map(m,function(M){return M.join(", ")})};
xP=function(O,m){return O.JSC$9797_xhr_?O.JSC$9797_xhr_.getResponseHeader(m):null};
Kks=function(O,m){if(O.isDisposed())throw Error("Ea");O.yV.hu("n");var G=_.eB(O.yV,function(){return O.nwy([m.fK,m.abL,m.ftk,m.noU])},"n");
O.yV.ajf(G.length);O.yV.kl();return G};
qw=function(O,m,G){Array.isArray(G)||(G=[String(G)]);_.txu(O.JSC$10033_queryData_,m,G);return O};
$ku=function(){var O=_.ah.instance;_.r(function(m){return O.deferredInstallPrompt?m.yield(O.deferredInstallPrompt.prompt(),0):m.jumpTo(0)})};
$Xx=function(O,m,G){if(_.YO(O))_.Nr(O,m,G);else for(O=_.f1U(O);;){var B=O.next();if(B.done)break;m.call(G,B.value,void 0,O)}};
Mk0=function(O,m){var G=[];$Xx(m,function(B){try{var Q=_.UF.prototype.getWrapper.call(this,B,!0)}catch(H){if(H=="Storage: Invalid value was encountered")return;throw H;}Q===void 0?G.push(B):_.Xeu(Q)&&G.push(B)},O);
return G};
raK=function(O,m){Mk0(O,m).forEach(function(G){_.UF.prototype.remove.call(this,G)},O)};
r8B=function(O){var m=_.Kj;m._minimumZ=Math.max(m._minimumZ,O)};
Rvb=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];ikb=function(O,m){_.Kd(O.vm);O.vm=m};
xX3=function(O,m,G,B){O.setState(5);var Q=!!O.fEL&&Rvb.includes(_.Gg(O.fEL)||"");try{var H=new _.Dr({program:m,globalName:G,s6a:{disable:!_.V("att_web_record_metrics")||!_.V("att_skip_metrics_for_cookieless_domains_ks")&&Q,wj:"aGIf"}});H.cAG.then(function(){O.setState(6);B&&B(m)});
ikb(O,H)}catch(M){O.setState(7),M instanceof Error&&_.ay(M)}};
qQr=function(O,m,G,B,Q,H){var M=M===void 0?"trayride":M;G?(O.setState(2),_.sF(_.E0(G),function(){if(window[M])xX3(O,B,M,Q);else{O.setState(3);var R=_.t8I(G),x=document.getElementById(R);x&&(_.MVI(R),x.parentNode.removeChild(x));_.ay(new _.j9("BL:ULB",G))}},H)):m?(H=_.fd("SCRIPT"),m instanceof _.Hi?_.K_(H,m):H.textContent=m,H.nonce=_.Qv(document),document.head.appendChild(H),document.head.removeChild(H),window[M]?xX3(O,B,M,Q):(O.setState(4),_.ay(new _.j9("BL:ULBJ")))):_.ay(new _.j9("BL:ULV"))};
UXb=function(){this.state=1;this.vm=null;this.fEL=void 0};
_.v=UXb.prototype;_.v.initialize=function(O,m,G,B){this.fEL=B;if(O.program){var Q;B=(Q=O.interpreterUrl)!=null?Q:null;if(O.interpreterSafeScript)Q=_.ju5(O.interpreterSafeScript);else{var H;Q=(H=O.interpreterScript)!=null?H:null}O.interpreterSafeUrl&&(B=_.aO(O.interpreterSafeUrl).toString());qQr(this,Q,B,O.program,m,G)}else _.ay(Error("qf"))};
_.v.isInitialized=function(){return!!this.vm};
_.v.getState=function(){return this.state};
_.v.isLoading=function(){return this.state===2};
_.v.invoke=function(O){O=O===void 0?{}:O;var m;this.vm?m=Kks(this.vm,{fK:O}):m=null;return m};
_.v.dispose=function(){ikb(this,null);this.setState(8)};
_.v.setState=function(O){this.state=O};
var tkx=function(O,m){return O.vm.snapshot(m)},WkB=function(O,m){var G=_.Rd("botguard_async_snapshot_timeout_ms",3E3);
m=m===void 0?{}:m;G=G===void 0?3E3:G;return O.vm?new Promise(function(B,Q){var H=!1,M=_.ln.addJob(function(){H=!0;Q(Error("rf"))},1,G);
O.vm?tkx(O,{fK:m}).then(function(R){_.ln.cancelJob(M);H||B(R)}).catch(function(R){_.ln.cancelJob(M);
H||Q(R)}):(_.ln.cancelJob(M),B(null))}):Promise.resolve(null)},Zku=["att/log"],$13;
$13={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var zvh={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},J8r=function(O,m){return _.gv(O,{mode:"readwrite",enableRetries:!0},function(G){return _.e5e(G,m,"settingEntity")})},Vk9=function(O,m,G){return _.gv(O,{mode:"readonly",
enableRetries:!0},function(B){return _.esu(B,m,G)})},bks=function(O){if(!O.storage)return!1;
a:{if(O.storage){try{var m=O.storage.get("TLPQtimestamp")}catch(G){}O=Number(m);if(!isNaN(O))break a}O=void 0}return O?Date.now()-O<864E5:!1},nph=function(O){if(O.storage){try{var m=O.storage.get("TLPQindex")}catch(G){}O=Number(m);
if(!isNaN(O))return O}},X$h=function(O,m){O.queueProxy&&m.forEach(function(G){if(G.videoId&&G.trackingParams&&O.queueProxy instanceof _.$A){var B=_.yA();
O.queueProxy.attributionData.set(G.videoId,{enqueueingVe:_.Ez(G.trackingParams).getAsJson(),enqueueingCsn:B?B:void 0,clientEnqueueingTimeMs:Math.floor((0,_.$G)()).toString()})}})},fos=function(O){var m=_.T49(O);
m!=O.currentSnapState_&&(O.currentSnapState_=m,O.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},UU=function(O){this.JSC$13169_networkManager_=O;
this.partCallbacks_=[]};
UU.prototype.getCacheKeyForEndpoint=function(O){return _.l2f(O,!1)};
UU.prototype.onPartsCallback_=function(O){this.partCallbacks_.forEach(function(m){O&&m(O)})};
var t5=function(O,m,G){UU.call(this,O);this.player_=m;this.autoplayData_=G};
_.X(t5,UU);t5.prototype.getCacheKeyForEndpoint=function(O){return _.l2f(O,!!this.autoplayData_)};
t5.prototype.getTempData=function(O,m){m=m.timeBeforeNextVideo;O={itct:O.clickTrackingParams,lact:_.MT(),pbis:m,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(O.autonav=1);return O};
t5.prototype.getXhrParams=function(O){return Object.assign({pbj:"prefetch"},O)};
t5.prototype.getParams=function(O){O={frags:O.fragmentsRequested.join(",")};_.V("kevlar_droppable_prefetchable_requests")&&(O.prefetch=1);return O};
var hvo=function(O){O.playerEvents_.forEach(function(m){O.player.removeEventListener(m.eventName,m.callback)});
O.playerEvents_.length=0},Wt=function(O,m,G){this.player=O;
this.JSC$13179_taskManager=m;this.prefetchDelay=G;this.completionResolver_=null;this.playerEvents_=[]};
Wt.prototype.start=function(){var O=this;this.completionResolver_=_.m3();_.a7(this.completionResolver_.promise,function(){hvo(O);O.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var TJu=function(O,m,G){O.player.addEventListener(m,G);O.playerEvents_.push({eventName:m,callback:G})},gp9={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},uYy={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},j6y=function(O,m,G){Wt.call(this,O,m,G);this.cueId_="playbackTrigger-"+Math.random()};
_.X(j6y,Wt);
j6y.prototype.prepareTrigger=function(O){var m=this,G=this.player.getDuration(),B=this.player.getVideoData(),Q=B.isLive&&B.hasProgressBarBoundaries;if(Q&&B.progressBarEndPositionUtcTimeMillis){var H=B.progressBarEndPositionUtcTimeMillis/1E3;isNaN(H)||(G=H)}var M=0;this.prefetchDelay>=0?Q?B.progressBarStartPositionUtcTimeMillis&&(B=B.progressBarStartPositionUtcTimeMillis/1E3,isNaN(B)||(M=B+this.prefetchDelay)):M=this.prefetchDelay:M=G+this.prefetchDelay;Q?this.player.addUtcCueRange(this.cueId_,M,G):
this.player.addCueRange(this.cueId_,M,G);_.a7(O.promise,function(){m.player.removeCueRange(m.cueId_)});
TJu(this,"onCueRangeEnter",function(R){R==m.cueId_&&O.resolve(G-M)})};
var Iou=function(O,m){O.fragmentConfiguration_[m].requiredKeys.every(function(G){return!!O.prefetchedData_[G]})&&(O.validatedFragments_.push(m),m=O.missingFragments_.indexOf(m),m!==-1&&O.missingFragments_.splice(m,1))},p$K=function(O){O.prefetchedFragments_.forEach(function(m){Iou(O,m)})},SQ0=function(O,m,G){this.pageFragments_=O;
this.prefetchedFragments_=m;this.fragmentConfiguration_=uYy;this.prefetchedData_=G;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;p$K(this)},Ep0=function(){},Lk3=function(O){this.JSC$13193_playlistManager_=O};
_.X(Lk3,Ep0);Lk3.prototype.getPrefetchEndpoint=function(){return this.JSC$13193_playlistManager_.getAutoplayEndpoint()};
var CWs=function(O){this.autonavEndpoints_=O};
_.X(CWs,Ep0);CWs.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var opK=function(O,m,G,B,Q){this.autonavEndpoints=O;this.foregroundTrigger=m;this.backgroundTrigger=G;this.pageType=B;this.isInPlaylist=Q},lor=function(O,m){if(O.webPrefetchData&&O.webPrefetchData.navigationEndpoints&&O.webPrefetchData.navigationEndpoints.length){O=O.webPrefetchData.navigationEndpoints;
var G=_.b(O[0],_.GC);if(G.watchEndpointSupportedPrefetchConfig&&G.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var B=G.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;G=B.playbackRelativeSecondsPrefetchCondition;G=typeof G==="number"&&Math.abs(G)<m.videoDuration?G:void 0;B=B.countdownUiRelativeSecondsPrefetchCondition;B=typeof B!=="number"||_.V("prefetch_job_config_cleanup_ks")&&m.inPlaylist?void 0:B;if(typeof B==="number")return new opK(O,m.makeUpNextTrigger(B),m.makePlaybackTrigger(B),
"watch",m.inPlaylist);if(typeof G==="number")return new opK(O,m.makePlaybackTrigger(G),null,"watch",m.inPlaylist)}}},aoK=function(O){return O.prefetchJobConfig_.backgroundTrigger?_.wi(_.x4f)()==0?O.prefetchJobConfig_.backgroundTrigger:O.prefetchJobConfig_.foregroundTrigger:O.prefetchJobConfig_.foregroundTrigger},kKy=function(O){_.E2(document,"visibilitychange",O.onVisibilityChange_,!1,O)},ZA=function(O){UU.call(this,O)};
_.X(ZA,UU);ZA.prototype.getCacheKeyForEndpoint=function(O){return UU.prototype.getCacheKeyForEndpoint.call(this,O)};
ZA.prototype.getTempData=function(){return{}};
ZA.prototype.getXhrParams=function(O){return O};
ZA.prototype.getParams=function(){return{}};
var y89=function(O,m,G){var B=O.prefetchDelay*1E3;if(Math.abs(B)>m)G.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var Q=B,H=m-B;B<0&&(Q=m+B,H=Math.abs(B));var M=O.JSC$13179_taskManager.addJob(function(){G.resolve(H/1E3)},10,Q);
G.promise.thenCatch(function(){O.JSC$13179_taskManager.cancelJob(M)})}},c8A=function(O,m,G){Wt.call(this,O,m,G)};
_.X(c8A,Wt);c8A.prototype.prepareTrigger=function(O){var m=this;TJu(this,"onAutonavCoundownStarted",function(G){y89(m,G,O)})};
var YQr=function(O){O.pendingPrefetchJob_&&(O.pendingPrefetchJob_.cancel(),O.pendingPrefetchJob_=null)},dX0=function(O,m,G){if(!O.triggeredTargets.has(m)){var B=_.ZvC(O,m);
B.action=G;_.t$p(O,m,B)}},w$u=function(O){_.QfH();
_.hee("cpt")&&_.ay(Error("qh"));_.Qf.requestAnimationFrame(function(){_.Qf.setTimeout(function(){_.cd("cpt");var m=_.wr("vpl"),G=_.wr("cpt");m&&G&&_.cd("ol",Math.max(m,G))})});
try{_.cd("fr_s"),O()}catch(m){_.oy(m)}_.Qf.requestAnimationFrame(function(){_.cd("bcp")})},evB=function(O,m){O.serviceEndpointHandlers.push(m)},DXh=function(O,m){m=O.pendingPages_.indexOf(m);
m>-1&&O.pendingPages_.splice(m,1)},s6h=function(O,m){var G=_.Tdu.indexOf(m);
G>-1&&_.Tdu.splice(G,1);O.targetPage_==m?(O.abort(),_.uTm(O)):DXh(O,m)},NJs=function(O,m,G,B){m={challenge:m};
G&&(m.webResponse=G);return _.rS(O.innertubeTransportService,m,_.$H(Zku),B)},PWx=function(O,m,G){if(!m.challenge)throw Error("vi");
if(m.botguardData&&m.botguardData.program){var B=new UXb;B.initialize(m.botguardData,function(){WkB(B,{atr_challenge:m.challenge}).then(function(Q){if(!Q)throw Error("wi");return NJs(O,m.challenge,Q,G)}).catch(function(Q){_.ay(Q);
return NJs(O,m.challenge,void 0,G)})},void 0)}else NJs(O,m.challenge,void 0,G)},Fkr=function(O,m,G){var B={};
m.ids&&(B.ids=[].concat(_.lS(m.ids)));m.engagementType&&(B.engagementType=m.engagementType);return _.rS(O.innertubeTransportService,B,_.$H(_.MQ3),G).then(function(Q){if(!Q)throw new _.j9("GetAttestationChallenge returned falsy");PWx(O,Q,G)}).thenCatch(function(Q){_.oy(Q)})},A8K=function(O,m,G){return new _.zH(function(B,Q){var H;
return _.r(function(M){if(M.nextAddress==1){var R=M.yield,x=m.engagementType,t=m.ids,W={};t=_.K(t!=null?t:[]);for(var Z=t.next();!Z.done;Z=t.next())Z=Z.value,Z.encryptedVideoId?W.encryptedVideoId=Z.encryptedVideoId:Z.externalChannelId?W.externalChannelId=Z.externalChannelId:Z.commentId?W.commentId=Z.commentId:Z.externalOwnerId?W.externalOwnerId=Z.externalOwnerId:Z.artistId?W.artistId=Z.artistId:Z.playlistId?W.playlistId=Z.playlistId:Z.externalPostId?W.externalPostId=Z.externalPostId:Z.shareId&&(W.shareId=
Z.shareId);return R.call(M,qBs(x,W),2)}H=M.yieldResult;if(!H.challenge)return _.ay(Error("xi")),Fkr(O,m,G).then(B,Q),M.return();R=H;x={challenge:R.challenge};x.webResponse=R.webResponse;x.engagementType=m.engagementType;x.ids=m.ids;_.rS(O.innertubeTransportService,x,_.$H(Zku),G).then(B,Q);_.ju(M)})})},Lwb=function(O,m){var G,B,Q,H;
_.r(function(M){if(M.nextAddress==1){G=_.b(m,_.z7o);if(!(G&&G.listId&&O.response&&O.response.playingVideoId)||O.listId!==G.listId)return M.return();O.index===void 0&&(O.index=0);return M.yield(_.uhC(O.JSC$12926_playlistNetworkManager,G.listId,O.index,O.response.playingVideoId),2)}B=M.yieldResult;if(!B)return M.return();Q=B.playlistId;H=B.playlistPanelRenderer;O.setPlaylistData(Q,H,B.autoplayRenderer);_.ju(M)})},Oqy=function(O,m,G){var B=O.getParams(G),Q=_.kM6(m,B),H=O.getTempData(m,G);
H.endpoint=JSON.stringify(m);_.V("enable_unknown_lact_fix_on_html5")&&(_.KR().resolve(_.pH),H.lact=_.MT());var M={headers:{"X-YouTube-STS":_.kB("STS"),"x-youtube-csoc":1}};_.vd(Q,H);return new _.zH(function(R,x){var t=O.getXhrParams(B),W;_.V("kevlar_cache_on_ttl_player")&&(W=_.DU.instance);W&&_.sAH(W,m)?_.BF$(W,m,H,window.location.href).then(function(Z){Z?R(Z):x()},x):_.nXj(O.JSC$13169_networkManager_,m,t,O.onPartsCallback_.bind(O),M).then(function(Z){Z?R(Z):x()},x)})},mQA=function(O,m){O.triggerPromise_=
m.start();
O.triggerPromise_.then(function(G){var B=O.prefetchEndpointProvider_.getPrefetchEndpoint();if(B){var Q=gp9[O.prefetchJobConfig_.pageType].prefetchedFragments;O.prefetchRequestPromise_=Oqy(O.JSC$13205_networkPrefetchRequest_,B,{fragmentsRequested:Q,timeBeforeNextVideo:G});O.prefetchResponseCacheKey_=O.JSC$13205_networkPrefetchRequest_.getCacheKeyForEndpoint(B);kKy(O);O.prefetchRequestPromise_.then(function(H){O.storePrefetchedDataCallback_(O.prefetchResponseCacheKey_,H);if(_.V("web_prefetch_preload_video")&&
Q.length===1&&Q[0]==="pl"&&H&&!H.playerAds&&!H.adPlacements){var M=_.b(B,_.pf),R=M!=null,x={raw_player_response:H,watch_endpoint:M};(H=_.KR().resolve(R?_.iM2:_.q1))&&B&&H.then(function(t){R&&_.V("web_queue_preload_video")?(x.prefer_gapless=!0,t.queueNextVideo(x)):t.preloadVideoByPlayerVars(x)})}})}})},z7=function(O,m,G,B){this.prefetchEndpointProvider_=O;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=m;this.prefetchJobConfig_=G;this.JSC$13205_networkPrefetchRequest_=B;this.prefetchResponseCacheKey_=null};
z7.prototype.enqueue=function(){this.triggerPromise_||(mQA(this,aoK(this)),_.Cm(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
z7.prototype.resolve=function(){this.cancel()};
z7.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.");kKy(this)};
z7.prototype.onVisibilityChange_=function(){var O=this;_.wi(_.x4f)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){O.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||mQA(this,aoK(this))};
var Gi0=function(O,m,G,B,Q){m&&(m==null?0:m.videoId)&&G&&G.entries&&_.V("kevlar_enable_shorts_prefetch_in_sequence")&&(YQr(O),m=G.entries.map(function(H){var M;return(M=_.b(H.command,_.pf))==null?void 0:M.videoId}).indexOf(m.videoId),G=G.entries[m+1],G!=null&&G.command&&!_.b(G==null?void 0:G.command,_.Q0)&&(B=new opK([G.command],new j6y(B,_.ln,1),null,"shorts",!1),O.pendingPrefetchJob_=new z7(new CWs(B.autonavEndpoints),function(){return!1},B,new ZA(Q)),O.pendingPrefetchJob_.enqueue()))},B7u=function(O,
m,G,B,Q,H){var M=_.nK.getInstance();
if(!_.V("block_all_player_prefetch_requests")){YQr(O);var R=!!G.getPlaylistId(),x=G.getVideoData().isLive&&G.getVideoData().hasProgressBarBoundaries;if((M.getState()==2||R||x)&&(!G.getVideoData().isLive||x)){M={inPlaylist:R,videoDuration:G.getDuration(),makeUpNextTrigger:function(W){return new c8A(G,_.ln,W)},
makePlaybackTrigger:function(W){return new j6y(G,_.ln,W)}};
var t=lor(m,M);t&&(O.pendingPrefetchJob_=new z7(t.isInPlaylist?new Lk3(Q):new CWs(t.autonavEndpoints),function(W,Z){Z=new SQ0(gp9[t.pageType].pageFragments,gp9[t.pageType].prefetchedFragments,Z);return _.KDH(Z)?(O.prefetchCache_.set(W,Z),!0):!1},t,new t5(B,G,H,Q)),O.pendingPrefetchJob_.enqueue())}}},QE9=function(){var O=_.tC();
O.signals.parkOrScheduleJob(function(){var m=O.storage;if(m.storage)if(bks(m)){var G=m.getPlaylistId();m=nph(m);G=!!G&&m!==void 0}else m.clear(),G=!1;else G=!1;if(G){G=O.pageManager.isOnWatch();a:{var B=O.storage;if(B.storage&&bks(B)&&(m=B.getPlaylistId(),B=nph(B),m&&B!==void 0)){G={recoverPlaylistCommand:{listId:m,index:B,openMiniplayer:!G,openListPanel:G,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}G=void 0}G&&_.P1(O.JSC$12926_actionRouter,[G],null)}},0,"ma")},Hqr=function(O,m,G,B,Q,H){var M=
_.Zv(7111);
_.LK(O.JSC$18322_screenManager,M,H?_.Ez(H):void 0);_.oS(O.JSC$18322_screenManager,M,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:B,offlineId:m,offlineabilityFormatType:G,isDefaultFormatType:Q==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:Q}})},vF0=function(O,m,G,B,Q){var H,M,R,x,t;
return _.r(function(W){if(W.nextAddress==1)return W.yield(O.JSC$18322_playerApiPromise,2);H=W.yieldResult;Hqr(O,m,G,"OFFLINE_OBJECT_TYPE_PLAYLIST",B,Q);if(R=_.OMu[O.entityTypeMap.listEntityType])t={},M=(t[R]={maximumDownloadQuality:(x=G)!=null?x:void 0},t);return W.yield(H.queueOfflineAction(m,O.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",M),0)})},K0o=function(O,m){var G,B,Q,H;
return _.r(function(M){if(M.nextAddress==1)return M.yield(O.JSC$18322_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3){G=M.yieldResult;if(!G)return _.ay(new _.j9("PES is undefined")),M.return();B=_.Ja(m,"downloadStatusEntity");return M.yield(Vk9(G,B,"downloadStatusEntity"),3)}Q=M.yieldResult;return M.return((H=Q)==null?void 0:H.downloadState)})},$Qy=function(O,m,G,B,Q){var H,M,R,x,t,W;
return _.r(function(Z){switch(Z.nextAddress){case 1:return Z.yield(O.JSC$18322_playerApiPromise,2);case 2:H=Z.yieldResult;Hqr(O,m,G,"OFFLINE_OBJECT_TYPE_VIDEO",B,Q);if(R=_.OMu[O.entityTypeMap.singleEntityType])t={},M=(t[R]={maximumDownloadQuality:(x=G)!=null?x:void 0},t);return Z.yield(K0o(O,m),3);case 3:W=Z.yieldResult;if(W!=="DOWNLOAD_STATE_USER_DELETED"){Z.jumpTo(4);break}return Z.yield(O.deleteVideo(m),4);case 4:return Z.yield(H.queueOfflineAction(m,O.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
M),0)}})},MZx=function(O,m,G,B,Q){return _.r(function(H){return H.nextAddress==1?H.yield(O.deleteVideo(m,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):H.yield($Qy(O,m,G,B,Q),0)})},rw3=function(O,m,G){var B,Q;
return _.r(function(H){if(H.nextAddress==1)return H.yield(O.JSC$18322_playerApiPromise,2);B=H.yieldResult;Q=_.Ja(m,"mainVideoDownloadStateEntity");return H.yield(B.updateDownloadState(Q,G),0)})},Q$h=function(O){var m=_.KR().resolve(_.cN);
return _.r(function(G){if(G.nextAddress==1)return m.previousDownloadStateForVideo[O]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&m.previousDownloadStateForVideo[O]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?G.jumpTo(2):G.yield(m.resumeVideoDownload(O),2);if(G.nextAddress!=4)return G.yield(rw3(m,O,m.previousDownloadStateForVideo[O]),4);delete m.previousDownloadStateForVideo[O];_.ju(G)})},GUx=function(O,m){var G;
return _.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$18322_playerApiPromise,2);G=B.yieldResult;return B.yield(G.queueOfflineAction(m,O.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},At0=function(){var O=_.KR().resolve(_.cN),m,G;
return _.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$18322_playerApiPromise,2);if(B.nextAddress!=3)return m=B.yieldResult,G={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},B.yield(m.queueOfflineAction("!*$_ALL_ENTITIES_!*$",O.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",G),3);var Q=O.JSC$18322_commandHandler,H=Q.resolveCommand,M=_.Xm("DELETING_ALL",void 0,"Downloads are being deleted");H.call(Q,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.rv(M)}},
popupType:"TOAST"}});_.ju(B)})},RTr=function(O,m){var G,B,Q,H,M,R;
return _.r(function(x){if(x.nextAddress==1)return x.yield(O.JSC$18322_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return G=x.yieldResult,G?x.yield(Vk9(G,_.oQ,"downloadsPageViewConfigurationEntity"),3):(_.ay(new _.j9("PES is undefined")),x.return());Q=(B=x.yieldResult)!=null?B:{};R=(M=(H=Q)==null?void 0:H.downloadsUpsellBannerVisibility)!=null?M:{};return R.visibleWithConnection?x.yield(m.refreshAllStaleEntities(0),0):x.jumpTo(0)})},iqB=function(O){var m,G;
return _.r(function(B){if(B.nextAddress==1)return B.yield(O.JSC$18322_prefStorage,2);m=B.yieldResult;return B.return((G=m)==null?void 0:G.get("sdois"))})},xQ9=function(O){var m,G,B,Q,H,M;
return _.r(function(R){if(R.nextAddress==1)return R.yield(O.JSC$18322_persistentStorePromiseAccessor(),2);if(R.nextAddress!=3){m=R.yieldResult;if(!m)return _.ay(new _.j9("PES is undefined")),R.return();G=_.Ja("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return R.yield(Vk9(m,G,"settingEntity"),3)}B=R.yieldResult;return R.return((M=(Q=B)==null?void 0:(H=Q.settingOptionValue)==null?void 0:H.boolValue)!=null?M:!1)})},qg9=function(O,m){var G,B,Q,H;
return _.r(function(M){switch(M.nextAddress){case 1:return((G=m)==null?void 0:G.formatType)===void 0?M.return():M.yield(O.JSC$18322_prefStorage,2);case 2:B=M.yieldResult;if(B===void 0)return M.return();if(((Q=m)==null?void 0:Q.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return M.yield(B.set("lmqf",m.formatType),8);if(((H=m)==null?void 0:H.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){M.jumpTo(0);break}return M.yield(B.set("lmqf",m.formatType),6);case 6:return M.yield(B.set("lmqflst",
Math.floor((0,_.$G)())),0);case 8:return M.yield(B.remove("lmqflst"),0)}})},UQJ=function(O){var m,G;
return _.r(function(B){switch(B.nextAddress){case 1:return B.yield(O.JSC$18322_prefStorage,2);case 2:m=B.yieldResult;if(!m){B.jumpTo(3);break}return B.yield(m.get("lmqflst"),4);case 4:if(G=B.yieldResult,G!==void 0)return B.return(G);case 3:return B.return(0)}})},tZ0=function(O){var m,G;
return _.r(function(B){switch(B.nextAddress){case 1:return B.yield(O.JSC$18322_prefStorage,2);case 2:m=B.yieldResult;if(m===void 0){B.jumpTo(3);break}return B.yield(m.get("lmqf"),4);case 4:if(G=B.yieldResult,G!==void 0)return B.return(G);case 3:return B.return("SD")}})},izA=function(O,m,G){var B,Q,H,M,R,x,t,W;
_.r(function(Z){switch(Z.nextAddress){case 1:return Z.yield(qg9(O,(B=m)==null?void 0:B.actionParams),2);case 2:Q=m.playlistId;if(!Q)return Z.return();if(m.action==="ACTION_ADD")return((M=m.actionParams)==null?0:M.formatType)?Z.yield(vF0(O,Q,m.actionParams.formatType,(W=m.actionParams)==null?void 0:W.settingsAction,G),0):Z.yield(O.offlineWebClientEligibility,14);if(m.action==="ACTION_REMOVE_WITH_PROMPT"){var z=O.JSC$18322_commandHandler,J=z.resolveCommand,n=_.kB("INNERTUBE_CLIENT_NAME");var I=n===
"WEB_REMIX"?_.Xm("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Xm("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var S=n==="WEB_REMIX"?[_.Xm("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];n=n==="WEB_REMIX"?_.Xm("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Xm("DELETE",void 0,"Delete");var L=_.Xm("CANCEL",void 0,"Cancel");I=UCB(I,S,n,L,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:Q});J.call(z,{openPopupAction:I});return Z.return()}if(m.action===
"ACTION_REMOVE")return Z.yield(GUx(O,Q),0);if(m.action!=="ACTION_SYNC"){Z.jumpTo(0);break}return Z.yield(O.JSC$18322_playerApiPromise,9);case 9:return H=Z.yieldResult,Z.yield(H.queueOfflineAction(Q,O.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return R=Z.yieldResult,Z.yield(tZ0(O),15);case 15:return x=Z.yieldResult,Z.yield(UQJ(O),16);case 16:t=Z.yieldResult,m.onAddCommand&&O.JSC$18322_commandHandler.resolveCommand(m.onAddCommand,{form:{preferredFormatType:x,
offlineWebClientEligibility:R,lastOfflineQualitySettingsSavedMs:t.toString()}}),Z.jumpTo(0)}})},rIx=function(O,m,G){var B,Q,H,M,R,x,t,W,Z,z,J,n,I,S;
_.r(function(L){switch(L.nextAddress){case 1:return L.yield(qg9(O,(B=m)==null?void 0:B.actionParams),2);case 2:Q=m.videoId;if(!Q)return L.return();if(m.action==="ACTION_REMOVE_WITH_PROMPT"){var C=O.JSC$18322_commandHandler,P=C.resolveCommand,w=_.kB("INNERTUBE_CLIENT_NAME");var d=w==="WEB_REMIX"?_.Xm("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Xm("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var D=w==="WEB_REMIX"?[_.Xm("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];w=w==="WEB_REMIX"?_.Xm("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Xm("DELETE",void 0,"Delete");var OS=_.Xm("CANCEL",void 0,"Cancel");d=UCB(d,D,w,OS,{signal:"DELETE_DOWNLOAD",targetId:Q});P.call(C,{openPopupAction:d});return L.return()}if(m.action==="ACTION_ADD")return((z=m.actionParams)==null?0:z.formatType)?L.yield($Qy(O,Q,m.actionParams.formatType,(S=m.actionParams)==null?void 0:S.settingsAction,G),0):L.yield(O.offlineWebClientEligibility,23);if(m.action==="ACTION_RETRY")return L.yield(tZ0(O),
19);if(m.action==="ACTION_PAUSE")return L.yield(O.pauseVideoDownload(Q),0);if(m.action==="ACTION_RESUME")return L.yield(O.resumeVideoDownload(Q),0);if(m.action!=="ACTION_REMOVE"){L.jumpTo(0);break}return L.yield(K0o(O,Q),13);case 13:return H=L.yieldResult,O.previousDownloadStateForVideo[Q]=(M=H)!=null?M:"DOWNLOAD_STATE_UNKNOWN",L.yield(rw3(O,Q,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(O.previousDownloadStateForVideo[Q]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&O.previousDownloadStateForVideo[Q]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){L.jumpTo(15);break}return L.yield(O.pauseVideoDownload(Q),15);case 15:C=_.Xm("DELETED_VIDEO",void 0,"Video deleted from downloads.");P=_.Xm("UNDO_ACTION",void 0,"Undo");d=_.Xm("CLOSE",void 0,"Close");R={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.rv(C),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.rv(P),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:Q}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:C+" "+P}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:Q}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:d}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};O.JSC$18322_commandHandler.resolveCommand(R);
L.jumpTo(0);break;case 19:x=L.yieldResult;x==="UNKNOWN_FORMAT_TYPE"&&(x="SD");t="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((W=m.actionParams)==null?0:W.formatType)x=m.actionParams.formatType,t=(Z=m.actionParams)==null?void 0:Z.settingsAction;return L.yield(MZx(O,Q,x,t,G),20);case 20:return L.return();case 23:return J=L.yieldResult,L.yield(tZ0(O),24);case 24:return n=L.yieldResult,L.yield(UQJ(O),25);case 25:I=L.yieldResult,m.onAddCommand&&O.JSC$18322_commandHandler.resolveCommand(m.onAddCommand,
{form:{preferredFormatType:n,offlineWebClientEligibility:J,lastOfflineQualitySettingsSavedMs:I.toString()}}),L.jumpTo(0)}})},W0x=function(O,m){var G,B,Q,H,M,R,x;
return _.r(function(t){if(t.nextAddress==1)return t.yield(O.JSC$18322_persistentStorePromiseAccessor(),2);G=t.yieldResult;if(!G)return _.ay(new _.j9("PES is undefined")),t.return();if((B=m)==null||!B.settingItemId)return t.return();Q=m;H=Q.settingItemId;M=Q.boolValue;R=_.Ja(H,"settingEntity");x={key:R,settingOptionValue:{boolValue:M}};return t.yield(J8r(G,x),0)})},ZqA=function(O,m){var G,B,Q,H,M,R,x;
return _.r(function(t){switch(t.nextAddress){case 1:return t.yield(O.JSC$18322_prefStorage,2);case 2:return G=t.yieldResult,B=_.TC(),t.yield(O.JSC$18322_persistentStorePromiseAccessor(),3);case 3:return Q=t.yieldResult,G?Q?t.yield(G.get("sdois"),4):(_.ay(new _.j9("PES is undefined")),t.return()):(_.ay(new _.j9("prefStorage is undefined")),t.return());case 4:H=t.yieldResult;R=(M=m)==null?void 0:M.boolValue;R===void 0||_.V("kevlar_set_sd_enabled_flag_killswitch")||_.gr(0,197,!0);H===void 0&&R===void 0&&
(R=!1);if(R===void 0){t.jumpTo(0);break}return t.yield(G.set("sdois",R),6);case 6:return _.V("kevlar_set_sd_enabled_flag_killswitch")||(_.gr(0,196,R),B.save()),x={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:R},t.yield(W0x(O,x),0)}})},zTr=function(O,m,G){var B,Q,H,M,R;
return _.r(function(x){switch(x.nextAddress){case 1:return x.yield(iqB(O),2);case 2:return B=x.yieldResult,x.yield(ZqA(O,G),3);case 3:return x.yield(iqB(O),4);case 4:return Q=x.yieldResult,H=Q!==B,x.yield(xQ9(O),5);case 5:M=x.yieldResult&&!_.V("kevlar_modern_downloads_page");if((R=!Q&&!M)||H)return x.yield(m.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);x.jumpTo(0)}})},vKu=function(){var O=_.KR().resolve(_.cN),
m;
_.r(function(G){switch(G.nextAddress){case 1:return G.yield(O.JSC$18322_playerApiPromise,2);case 2:m=G.yieldResult;if(!_.V("kevlar_force_refresh_smart_downloads")){G.jumpTo(3);break}return G.yield(m.refreshAllStaleEntities(0),4);case 4:return G.return();case 3:return G.yield(m.refreshAllStaleEntities(),5);case 5:return G.yield(zTr(O,m),6);case 6:if(_.V("enable_download_pep_for_premium_countries_web"))return G.yield(RTr(O,m),0);G.jumpTo(0)}})},qp3=function(O,m){var G,B;
_.r(function(Q){switch(Q.nextAddress){case 1:return Q.yield(O.JSC$18322_playerApiPromise,2);case 2:G=Q.yieldResult;switch((B=m)==null?void 0:B.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(zTr(O,G,m),6);case 6:Q.jumpTo(0);break;case 4:return Q.yield(W0x(O,m),7);case 7:Q.jumpTo(0)}})},JwJ=function(O,m){var G,B,Q;
return _.r(function(H){if(H.nextAddress==1)return H.yield(O.JSC$18322_persistentStorePromiseAccessor(),2);if(H.nextAddress!=3){G=H.yieldResult;if(!G)return _.ay(new _.j9("PES is undefined")),H.return(!1);if(!m)return H.return(!1);B=_.Ja(m,"mainVideoEntity");return H.yield(Vk9(G,B,"mainVideoEntity"),3)}Q=H.yieldResult;return H.return(Q!==void 0)})},tlx=function(O){var m=_.KR().resolve(_.cN),G,B,Q,H,M,R,x,t,W,Z,z;
_.r(function(J){switch(J.nextAddress){case 1:return J.yield(m.JSC$18322_playerApiPromise,2);case 2:G=J.yieldResult;Q=(B=O)==null?void 0:B.actions;if(!Q)return J.return();H=_.K(Q);M=H.next();case 3:if(M.done){J.jumpTo(0);break}R=M.value;t=x=void 0;if(!(((x=R)==null?0:x.entityKey)&&((t=R)==null?0:t.actionType))){J.jumpTo(4);break}W=_.Ur(R.entityKey);Z=W.entityId;z=W.entityType;return J.yield(G.queueOfflineAction(Z,z,R.actionType),4);case 4:M=H.next(),J.jumpTo(3)}})},VZs=function(O,m){var G,B,Q,H,M;
return _.r(function(R){if(R.nextAddress==1)return R.yield(O.JSC$18322_prefStorage,2);if(R.nextAddress!=3)return(G=R.yieldResult)?R.yield(G.get("psi"),3):R.return();B=R.yieldResult;M={isPaused:m,lastSyncTimestamp:(H=(Q=B)==null?void 0:Q.lastSyncTimestamp)!=null?H:"0"};return R.yield(G.set("psi",M),0)})},zC9=function(O){var m=_.KR().resolve(_.cN),G,B,Q,H,M,R,x,t;
return _.r(function(W){switch(W.nextAddress){case 1:return W.yield(m.JSC$18322_playerApiPromise,2);case 2:G=W.yieldResult;Q=((B=O)==null?void 0:B.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((R=O)==null?void 0:R.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":H="!*$_ALL_ENTITIES_!*$";M="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return W.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return W.jumpTo(4)}W.jumpTo(5);break;case 3:return W.yield(VZs(m,Q),6);case 6:W.jumpTo(5);break;case 4:return W.yield(JwJ(m,(x=O)==null?void 0:x.videoId),7);case 7:W.yieldResult&&(H=(t=O)==null?void 0:t.videoId,M="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");W.jumpTo(5);break;case 5:if(H&&M)return W.yield(G.queueOfflineAction(H,"videoPlaybackPositionEntity",M),0);W.jumpTo(0)}})},bqK=function(O,m){var G;
m!==1||((G=O.currentPersistentToast)==null?0:G.isOpened())?O.openToast():O.currentPersistentToast=void 0},nFA=function(O,m){var G;
return(G=O.transitionTasksMap.get(m))!=null?G:[]},Xpr=function(O,m){var G=[];
O.elementTasksMap.forEach(function(B){(B=B.get(m))&&G.push(B)});
return G},fMx=function(O,m,G,B,Q){Q=Q===void 0?{}:Q;
var H=m.defaultViewTransitionOptions;return Object.assign({},H,Q,{beforeTransition:function(){B.forEach(function(t){t.beforeTransition()});
var M;(M=H.beforeTransition)==null||M.call(H);var R,x;(x=(R=Q).beforeTransition)==null||x.call(R);G.forEach(function(t){t.beforeTransition()})},
afterTransition:function(){B.forEach(function(t){t.afterTransition()});
var M;(M=H.afterTransition)==null||M.call(H);var R,x;(x=(R=Q).afterTransition)==null||x.call(R);G.forEach(function(t){t.afterTransition()})},
ignoredErrors:O.config.ignoredErrors})},hTA=function(O,m,G){O.transitionTasksMap.has(m)?O.transitionTasksMap.get(m).push(G):(O=new _.j9("Transition task registered for unknown transition type",m),_.oy(O))},T7u=function(O,m,G){if(O.transitionTasksMap.has(m)){var B=O.transitionTasksMap.get(m).filter(function(Q){return Q!==G});
O.transitionTasksMap.set(m,B)}},gFx=function(O,m){var G=nFA(O,m);
G=_.K(G);for(var B=G.next();!B.done;B=G.next())B=B.value,B.runOnce&&T7u(O,m,B);O.elementTasksMap.forEach(function(Q,H){Q.forEach(function(M,R){M.runOnce&&m===R&&(Q.delete(R),Q.size===0&&O.elementTasksMap.delete(H))})})},uSB=function(O,m,G){var B,Q,H,M,R,x,t,W,Z;
_.r(function(z){if(z.nextAddress==1){if(O.config.disableAllTransitions)return z.return(m());if((B=G)==null||!B.transitionType)return z.return(_.FNy(m,Object.assign({},(Q=G)==null?void 0:Q.viewTransitionOptions,{ignoredErrors:O.config.ignoredErrors})));H=G;M=H.transitionType;R=H.viewTransitionOptions;x=O.config.transitionConfigs.get(M);if(!x)return z.return(m());t=nFA(O,M);W=Xpr(O,M);Z=_.FNy(m,fMx(O,x,t,W,R));return z.yield(Z,2)}gFx(O,M);_.ju(z)})},jEB=function(){var O,m,G,B;
return _.r(function(Q){if(Q.nextAddress==1)return O=navigator,(m=O.storage)!=null&&m.persisted?Q.yield((G=O.storage)==null?void 0:G.persisted(),2):Q.return("PERSISTED_STATE_NOT_SUPPORTED");B=Q.yieldResult;return Q.return(B?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},IMh=function(){var O,m,G,B;
return _.r(function(Q){if(Q.nextAddress==1)return O=navigator,(m=O.storage)!=null&&m.persist?Q.yield((G=O.storage)==null?void 0:G.persist(),2):Q.return("PERSISTED_STATE_NOT_SUPPORTED");B=Q.yieldResult;return Q.return(B?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},ppA=function(){var O,m;
return _.r(function(G){switch(G.nextAddress){case 1:return O="PERSISTED_STATE_NOT_SUPPORTED",_.n_(G,2),G.yield(jEB(),4);case 4:O=G.yieldResult;if(O!=="PERSISTED_STATE_NOT_GRANTED"){G.jumpTo(5);break}return G.yield(IMh(),6);case 6:O=G.yieldResult;case 5:_.P7(G,3);break;case 2:m=_.uS(G),m instanceof Error&&_.oy(m);case 3:return _.LE("persistentStorageStateChecked",{persistedState:O}),G.return(O)}})},Sgh=function(O,m){var G=[],B=!1;
m=_.K(m);for(var Q=m.next();!Q.done;Q=m.next()){Q=O.moduleRegistry[Q.value];var H=void 0,M=void 0;((H=Q)==null?0:H.isFetching)&&((M=Q)==null?0:M.resolver)?(G.push(Q.resolver.promise),B=!0):(Q=new _.Vg,Q.resolve(void 0),G.push(Q.promise))}return B?Promise.all(G):void 0},EFu=function(O,m,G){if(O.isAnyTransitionEnabled){var B={beforeTransition:function(){G(!0);
m.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){m.style.viewTransitionName&&(m.style.viewTransitionName="",G(!1))}};
hTA(O.viewTransitionCoordinator,"slide",B);hTA(O.viewTransitionCoordinator,"lockup-to-watch",B);hTA(O.viewTransitionCoordinator,"watch-next-appears",B);hTA(O.viewTransitionCoordinator,"learning-journey",B)}},L0s=function(O,m){O.isBrowseTransitionEnabled?uSB(O.viewTransitionCoordinator,m,{transitionType:"slide"}):(m(),Promise.resolve())},CgB=function(O,m){O.isLockupToWatchTransitionEnabled?uSB(O.viewTransitionCoordinator,m,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){O.registeredLockupThumbnail=void 0;O.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(m(),Promise.resolve())},oFb=function(O,m){O.isLockupToWatchTransitionEnabled?uSB(O.viewTransitionCoordinator,m,{transitionType:"watch-next-appears"}):(m(),Promise.resolve())},lMK=function(O,m){O.isLearningJourneyTransitionEnabled?uSB(O.viewTransitionCoordinator,m,{transitionType:"learning-journey"}):(m(),Promise.resolve())},aMK=function(O,m,G){if(O.isInitialized()){var B=
Oj(G),Q=B==="watch";
B=B==="shorts";var H=Oj(m)==="watch";if(Q)H||(O.backgroundPageData=m),O.watchPipMode&&H||O.deactivate(G.endpoint);else if(B){if(Oj(m)!=="shorts"){var M;(M=O.getPlayerElement())==null||M.pause()}}else H&&!O.watchPipMode&&(W8o(m,G)?(O.watchWhileMode&&_.ME9(O,!1),_.Bhr(O,m)):O.isMiniplayerActive()&&O.watchWhileMode&&O.deactivate());H&&_.Rls(O);O.shortsPipMode&&!B&&(window.focus(),O.deactivate());if(O.pictureInPictureEnabled())if(B&&O.shortsPipEnabled||Q&&O.watchPipEnabled)_.jx5(O.handleMediaSessionPipActivation);
else if(!O.isMiniplayerActive()&&(O.shortsPipEnabled||O.watchPipEnabled)&&window.documentPictureInPicture&&_.us()&&_.qSS("Chromium")>=120){O=_.uAN().mediaSession;try{O.setActionHandler("enterpictureinpicture",null)}catch(R){}}}},ki9=function(O,m){var G,B;
_.r(function(Q){if(Q.nextAddress==1){if(!O||!O.navigationEndpoint)return Q.return();_.c3().lockupActivation=!0;var H;m?H=_.Qg(_.Xm("QUEUE",void 0,"Queue")):H=O.longBylineText;B=(G=H)&&O.title?{miniplayerTitle:O.title,miniplayerSubtitle:G,playlistData:null}:void 0;return Q.yield(_.V22(_.KR().resolve(_.c$),O.navigationEndpoint,!0,B),2)}_.c3().userActivation=!0;_.ju(Q)})},p60=function(O,m){var G,B,Q,H,M,R;
_.r(function(x){if(x.nextAddress==1){G=_.b(m,_.ZYj);if(!G||!G.listId)return x.return();O.index=G.index||O.index||0;B=O.response&&O.response.playingVideoId||void 0;return x.yield(_.uhC(O.JSC$12926_playlistNetworkManager,G.listId,O.index,B),2)}Q=x.yieldResult;if(!Q)return x.return();H=Q.playlistId;M=Q.playlistPanelRenderer;!O.queueProxy&&H&&M&&H.startsWith("TLPQ")&&(O.queueProxy=new _.$A(O.JSC$12926_playlistNetworkManager,H,O.setPlaylistData.bind(O),O.clearQueue.bind(O),_.gk6(M),O.storage));if(G.openMiniplayer&&
(R=_.utO(M))&&!O.pageManager.isOnWatch()){var t=R,W=G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";O.isMiniplayerActive()?O.openToast(t):ki9(t,W)}O.setPlaylistData(H,M,Q.autoplayRenderer);_.ju(x)})},uw0=function(O,m){var G=_.tC();
G.index===void 0&&(G.index=0);G.temporaryItems.push.apply(G.temporaryItems,_.lS(O));if((m.videoId||m.videoIds)&&G.index!==void 0&&m.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!G.queueProxy){var B=[];if(G.response){var Q=_.KR().resolve(_.c$).isMiniplayerActive();if(G.response.playlistPanelRenderer&&G.response.playlistId&&!G.response.playlistId.startsWith("TLPQ")){if(G.pageManager.isOnWatch()||Q)B=_.gk6(G.response.playlistPanelRenderer)}else G.response.playingVideoId&&!m.openMiniplayer?B.push(G.response.playingVideoId):
Q&&G.response.playingVideoId&&m.openMiniplayer&&B.push(G.response.playingVideoId)}G.queueProxy=new _.$A(G.JSC$12926_playlistNetworkManager,"",G.setPlaylistData.bind(G),G.clearQueue.bind(G),B,G.storage);G.queueProxy.JSC$12872_setCurrentIndex(G.index)}G.queueProxy.addVideos(m.videoIds||[m.videoId],m)}X$h(G,O);G.response&&_.WD(G,_.ZU(G,G.response.autoplayRenderer));G.pageManager.isOnWatch()?G.isMiniplayerActive()&&G.openToast(O[0]):(O=O[0],m=m.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",G.isMiniplayerActive()?
G.openToast(O):ki9(O,m))},ywA=function(O){var m=_.Ne(O);
if(m=="object"||m=="array"){if(typeof O.clone==="function")return O.clone();if(typeof Map!=="undefined"&&O instanceof Map)return new Map(O);if(typeof Set!=="undefined"&&O instanceof Set)return new Set(O);m=m=="array"?[]:{};for(var G in O)m[G]=ywA(O[G]);return m}return O},J5=function(O,m){return _.R_6(_.bg(O,m,void 0,_.Vo))},VR=function(O,m){return _.Hb(_.bg(O,m,void 0,_.Vo))},bw=function(O,m){return _.uC5(_.bg(O,m,void 0,_.Vo))},ne=function(O,m){return _.bg(O,m,void 0,_.Vo,_.eo)},cwb=_.iG(function(O,
m,G){if(O.nextWireType_!==0)return!1;
_.x0(m,G,_.cp(O.decoder_,_.Mo6));return!0},_.W8,_.DM),Ygr=_.iG(function(O,m,G,B){if(O.nextWireType_!==0)return!1;
_.hw(m,G,B,_.cp(O.decoder_,_.Mo6));return!0},_.W8,_.DM),dQb=_.iG(function(O,m,G){if(O.nextWireType_!==1)return!1;
var B=O.decoder_;O=_.d7(B);B=_.d7(B);O=_.aj(O,B);_.x0(m,G,O);return!0},_.T5f,_.Ooe),wpx=_.iG(function(O,m,G){if(O.nextWireType_!==5)return!1;
_.x0(m,G,_.d7(O.decoder_));return!0},function(O,m,G){m=_.q3M(m);
m!=null&&(_.qP(O,G,5),_.Uh(O.encoder_,m))},_.Pv6),eTr=_.iG(function(O,m,G){if(O.nextWireType_!==2)return!1;
O=_.Cvs(O);_.x0(m,G,O===_.g8()?void 0:O);return!0},_.p8S,_.B3s),DQ0=_.JLS(function(O,m,G){if(O.nextWireType_!==0&&O.nextWireType_!==2)return!1;
m=_.Gc(m,m[_.vs]|0,G);O.nextWireType_==2?_.oY6(O,BJB,m):m.push(_.YF(O.decoder_));return!0},function(O,m,G){m=_.zor(_.Hb,m,!0);
if(m!=null&&m.length){G=_.d6N(O,G);for(var B=0;B<m.length;B++)_.X8O(O.encoder_,m[B]);_.wmN(O,G)}},_.QY6),sEb=_.iG(function(O,m,G,B){if(O.nextWireType_!==0)return!1;
_.hw(m,G,B,_.YF(O.decoder_));return!0},_.E0I,_.QY6),N7A=function(O){return O.previousElementSibling!==void 0?O.previousElementSibling:_.ZBu(O.previousSibling,!1)},Pgy=function(O,m){var G=[];
for(m=m||0;m<O.length;m+=2)_.Ka9(O[m],O[m+1],G);return G.join("&")},F00=function(O,m){var G=arguments.length==2?Pgy(arguments[1],0):Pgy(arguments,1);
return _.v0H(O,G)},AVu=_.bG(_.o$),AwK=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(AwK,_.MP);AwK.prototype.getTypeName=function(){return _.Eg(this,1).split("/").pop()};
AwK.prototype.getValue=function(){var O=_.bg(this,2);if(Array.isArray(O)||O instanceof _.MP)throw Error("W");return _.fq(this,2)};
var yG3=function(){var O=_.WX();this.JSC$9918_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.U0("channel_type"))};
yG3.prototype.increment=function(O){this.JSC$9918_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",O)};
var cG0=function(){var O=_.WX();this.JSC$9921_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.U0("channel_type"))};
cG0.prototype.increment=function(O){this.JSC$9921_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",O)};
var djo=function(){var O=_.WX();this.JSC$9924_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.U0("channel_type"))};
djo.prototype.increment=function(O){this.JSC$9924_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",O)};
var Ycx=function(){var O=_.WX();this.JSC$9927_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Ycx.prototype.increment=function(){this.JSC$9927_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var wCs=function(){var O=_.WX();this.JSC$9930_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.U0("channel_type"),_.U0("error_type"))};
wCs.prototype.increment=function(O,m){this.JSC$9930_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",O,m)};
var eSr=function(){var O=_.WX();this.JSC$9933_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
eSr.prototype.increment=function(){this.JSC$9933_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Djh=function(){var O=_.WX();this.JSC$9936_streamzService=O;O.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Djh.prototype.increment=function(){this.JSC$9936_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var lLr=function(){var O=_.WX();this.JSC$9942_streamzService=O;O.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
lLr.prototype.increment=function(){this.JSC$9942_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var O43=function(O){return O.getCount&&typeof O.getCount=="function"?O.getCount():_.YO(O)||typeof O==="string"?O.length:_.aM.getCount(O)},m00=function(O,m){if(typeof O.every=="function")return O.every(m,void 0);
if(_.YO(O)||typeof O==="string")return Array.prototype.every.call(O,m,void 0);for(var G=_.KmH(O),B=_.ie(O),Q=B.length,H=0;H<Q;H++)if(!m.call(void 0,B[H],G&&G[H],O))return!1;return!0},GDu=function(O,m,G,B){var Q=new _.Bd(null);
O&&_.xr(Q,O);m&&_.qm(Q,m);G&&_.U6(Q,G);B&&_.tZ(Q,B);return Q},BsB=function(){var O=_.YR&&_.WM(_.Va2,10)>=0,m;
if(m=_.YTr)m=_.WM(_.Jvs,10)>=0;var G=_.ZM&&_.WM(_.Va2,85)>=0;return _.qQ||O||m||G},QDA=function(O){var m=_.ku2(O);
return m&&BsB()?-O.scrollLeft:m&&_.ee(O,"overflowX")!="visible"?O.scrollWidth-O.clientWidth-O.scrollLeft:O.scrollLeft},H4B=function(O,m){m=Math.max(m,0);
_.ku2(O)?BsB()?O.scrollLeft=-m:O.scrollLeft=O.scrollWidth-m-O.clientWidth:O.scrollLeft=m},IYs=0,CP9=!1;
Gr.prototype.set=function(O){this.relativeTimeStart_=O};
Gr.prototype.reset=function(){this.set(_.$F())};
Gr.prototype.get=function(){return this.relativeTimeStart_};
var v7K=null,Kgy=function(){v7K||(v7K=new Gr)},$0u=function(){v7K||(v7K=new Gr)};
_.MQ($0u,Kgy);_.v=lYr.prototype;_.v.JSC$11359_buffer_="";_.v.set=function(O){this.JSC$11359_buffer_=""+O};
_.v.append=function(O,m,G){this.JSC$11359_buffer_+=String(O);if(m!=null)for(var B=1;B<arguments.length;B++)this.JSC$11359_buffer_+=arguments[B];return this};
_.v.clear=function(){this.JSC$11359_buffer_=""};
_.v.getLength=function(){return this.JSC$11359_buffer_.length};
_.v.toString=function(){return this.JSC$11359_buffer_};
var MGA=!1,wdx=function(O){_.GY.call(this,O.message||O.description||O.name);this.isMissing=O instanceof BB;this.isTimeout=O instanceof _.aX&&O.errorCode=="net.timeout";this.isCanceled=O instanceof _.YK};
_.X(wdx,_.GY);wdx.prototype.name="BiscottiError";var BB=function(){_.GY.call(this,"Biscotti ID is missing from server")};
_.X(BB,_.GY);BB.prototype.name="BiscottiMissingError";var Q3=null,bHs=function(){try{var O=_.ex("yt.ads.biscotti.getId_");return O?O():Xdh()}catch(m){return _.lK(m)}},rRs=function(O,m){return _.xs({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:O,command:m}})},RVA=function(O){return _.xs({type:"SET_GUIDE_IS_EXPANDED",
payload:O})},i4K=function(O){return _.xs({type:"SET_ONLINE_STATUS",
payload:O})},x03=function(O,m){return _.xs({type:"SET_TRANSCRIPTION_STATE",
payload:{high:O,low:m}})},qb3=function(O){return _.xs({type:"SET_OVERLAY_STATE",
payload:O})},U0b=0,tGB=function(O,m,G){var B=this;
this.priority=m;this.delay=G;this.jobId=0;this.completionCallback=_.ID;this.wrappedJob=function(){O();B.completionCallback()};
this.id=++U0b};
tGB.prototype.enqueue=function(O){this.completionCallback=O;this.jobId=_.ln.addJob(this.wrappedJob,this.priority,this.delay)};
var X7=function(){_.ZV.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.X(X7,_.ZV);X7.prototype.addJob=function(O,m,G){O=new tGB(O,m,G);this.taskIdToTask.set(O.id,O);this.isActive?Wgh(this,O):this.suspendedTasks.add(O);return O.id};
var Wgh=function(O,m){O.scheduledTasks.add(m);m.enqueue(function(){O.scheduledTasks.delete(m)})};
X7.prototype.cancelJob=function(O){(O=this.taskIdToTask.get(O))&&(this.scheduledTasks.delete(O)?_.ln.cancelJob(O.jobId):this.suspendedTasks.delete(O))};
X7.prototype.pause=function(){var O=this;this.isActive=!1;this.scheduledTasks.forEach(function(m){_.ln.cancelJob(m.jobId);O.suspendedTasks.add(m)});
this.scheduledTasks.clear()};
X7.prototype.start=function(){var O=this;this.isActive=!0;this.suspendedTasks.forEach(function(m){Wgh(O,m)});
this.suspendedTasks.clear()};
X7.prototype.reset=function(){this.scheduledTasks.forEach(function(O){_.ln.cancelJob(O.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var fe=function(O,m){this.JSC$13052_networkService_=O;this.pageRequestPromise=m};
fe.prototype.fetchData=function(O){Z4y(this,this.JSC$13052_networkService_.fetchData(O))};
fe.prototype.postData=function(O,m){Z4y(this,this.JSC$13052_networkService_.postData(O,m))};
fe.prototype.requestDataForServiceEndpoint=function(O,m){Z4y(this,this.JSC$13052_networkService_.requestDataForServiceEndpoint(O,m))};
var Z4y=function(O,m){m.then(O.pageRequestPromise.onSuccess,O.pageRequestPromise.onFailure,O.pageRequestPromise)};
fe.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var h5=function(O){this.buildNetworkRequest_=O;this.pendingRequests_=new Set};
h5.prototype.reset=function(){this.pendingRequests_.forEach(function(O){O.cancel()});
this.pendingRequests_.clear()};
h5.prototype.fetchData=function(O){var m=zVJ(this);m.fetchData(O);return m.pageRequestPromise};
h5.prototype.postData=function(O,m){var G=zVJ(this);G.postData(O,m);return G.pageRequestPromise};
h5.prototype.requestDataForServiceEndpoint=function(O,m){var G=zVJ(this);G.requestDataForServiceEndpoint(O,m);return G.pageRequestPromise};
var zVJ=function(O){var m=O.buildNetworkRequest_();O.pendingRequests_.add(m);var G=function(){O.pendingRequests_.delete(m)};
m.pageRequestPromise.then(G,G);return m},JRx=function(O){var m=new X7;
this.JSC$13059_networkService_=O;this.JSC$13059_taskManager_=m;this.JSC$13059_networkManager_=new h5(this.networkRequestFactory_.bind(this))};
_.v=JRx.prototype;_.v.networkRequestFactory_=function(){return new fe(this.JSC$13059_networkService_,new _.St(this.JSC$13059_taskManager_))};
_.v.reset=function(){this.JSC$13059_taskManager_.reset();this.JSC$13059_networkManager_.reset()};
_.v.start=function(){this.JSC$13059_taskManager_.start()};
_.v.pause=function(){this.JSC$13059_taskManager_.pause()};
_.v.getTaskManager=function(){return this.JSC$13059_taskManager_};
_.v.getNetworkManager=function(){return this.JSC$13059_networkManager_};
var BvB=null,vsr=[],HB=0,KZ=0,vB=null,VGr=!1,$P=null,$oB=void 0,rf=function(O){this.token=O};
rf.getInstance=function(){var O;return _.r(function(m){if(m.nextAddress==1)return m.yield(_.vI(),2);O=m.yieldResult;if(!O)return m.return();rf.instance||(rf.instance=new rf(O));return m.return(rf.instance)})};
var tHr=function(O){var m;return _.r(function(G){if(G.nextAddress==1)return G.yield(xoA(O.token),2);m=G.yieldResult;return G.return(m.clear("resource-manifest-assets"))})},Ml=function(O){this.token=O};
Ml.getInstance=function(){var O;return _.r(function(m){if(m.nextAddress==1)return m.yield(_.vI(),2);O=m.yieldResult;if(!O)return m.return();Ml.instance||(Ml.instance=new Ml(O));return m.return(Ml.instance)})};
var qr9=function(O){var m;return _.r(function(G){if(G.nextAddress==1)return G.yield(xoA(O.token),2);m=G.yieldResult;return G.yield(m.clear("auth"),0)})},CQ3=!1,b4B=function(O){_.GY.call(this,O)};
_.X(b4B,_.Jj9);var n7A="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(" ");Mwr()&&n7A.push("details:not(:has(summary))");var RaA=n7A.join(",");var Sz0=function(){var O=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return O?parseInt(O[1],10):0},X4b=function(O){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+O)!=-1||document.currentScript.src.indexOf("&"+O)!=-1)},feu=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},lBo=function(O){O.length?hV3(O.shift(),function(){lBo(O)}):Lpr()},kSr=function(O){return"chrome-extension://"+O+"/cast_sender.js"},hV3=function(O,
m,G){var B=document.createElement("script");
B.onerror=m;G&&(B.onload=G);_.$3(B,_.E0(O));(document.head||document.documentElement).appendChild(B)},TsB=function(){var O=Sz0(),m=[];
if(O>1){var G=O-1;m.push("//www.gstatic.com/eureka/clank/"+O+"/cast_sender.js");m.push("//www.gstatic.com/eureka/clank/"+G+"/cast_sender.js")}return m},Lpr=function(){var O=feu();
O&&O(!1,"No cast extension found")},ono=function(){if(g7y){var O=2,m=feu(),G=function(){O--;
O==0&&m&&m(!0)};
window.__onGCastApiAvailable=G;hV3("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",Lpr,G)}},Enh=function(){ono();
var O=TsB();O.push("//www.gstatic.com/eureka/clank/cast_sender.js");lBo(O)},CKK=function(){ono();
var O=TsB();O.push.apply(O,_.lS(aBA.map(kSr)));O.push("//www.gstatic.com/eureka/clank/cast_sender.js");lBo(O)},g7y=X4b("loadCastFramework")||X4b("loadCastApplicationFramework"),aBA=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var u9K=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(u9K,_.MP);var jDh=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(jDh,_.MP);var Ie9=function(){var O=new jDh;return _.kF(O,1,3)};var T7=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(T7,_.MP);var SK3=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(SK3,_.MP);var p4s=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(p4s,_.MP);p4s.prototype.getToken=function(){return _.Eg(this,1)};
p4s.prototype.setToken=function(O){return _.sp(this,1,O)};
var Ikh=function(O){return _.Pb(O,3,_.by,_.Rw())},pXo=function(O){return _.Pb(O,6,_.by,_.Rw())};var g1=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(g1,_.MP);g1.prototype.getToken=function(){return _.RO(this,p4s,2)};
g1.prototype.setToken=function(O){return _.Tc(this,2,O)};
g1.prototype.getName=function(){return _.Eg(this,6)};
var Sbx=_.bG(g1);var E73=function(O,m,G){this.requestMessage=O;this.methodDescriptor=m;this.metadata=G};
E73.prototype.getMetadata=function(){return this.metadata};var Lg9=function(O,m){m=m===void 0?{}:m;this.responseMessage=O;this.metadata=m;this.status=null};
Lg9.prototype.getMetadata=function(){return this.metadata};
Lg9.prototype.getStatus=function(){return this.status};var uw=function(O,m,G,B,Q){this.name=O;this.methodType="unary";this.requestType=m;this.responseType=G;this.requestSerializeFn=B;this.responseDeserializeFn=Q},C49=function(O,m,G){G=G===void 0?{}:G;
return new E73(m,O,G)};
uw.prototype.getName=function(){return this.name};var j_=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(j_,_.MP);j_.prototype.getHeader=function(){return _.RO(this,T7,1)};
j_.prototype.setHeader=function(O){return _.Tc(this,1,O)};
j_.prototype.hasHeader=function(){return _.nq(this,T7,1)};var o7r=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(o7r,_.MP);var leA=new uw("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",j_,o7r,function(O){return O.serialize()},_.bG(o7r));var IJ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(IJ,_.MP);IJ.prototype.getHeader=function(){return _.RO(this,T7,1)};
IJ.prototype.setHeader=function(O){return _.Tc(this,1,O)};
IJ.prototype.hasHeader=function(){return _.nq(this,T7,1)};var aer=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(aer,_.MP);var kDJ=new uw("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",IJ,aer,function(O){return O.serialize()},_.bG(aer));var pe=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(pe,_.MP);pe.prototype.getHeader=function(){return _.RO(this,T7,1)};
pe.prototype.setHeader=function(O){return _.Tc(this,1,O)};
pe.prototype.hasHeader=function(){return _.nq(this,T7,1)};var yRx=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(yRx,_.MP);yRx.prototype.getLink=function(){return _.RO(this,g1,1)};var cRu=new uw("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",pe,yRx,function(O){return O.serialize()},_.bG(yRx));var S_=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(S_,_.MP);S_.prototype.getHeader=function(){return _.RO(this,T7,1)};
S_.prototype.setHeader=function(O){return _.Tc(this,1,O)};
S_.prototype.hasHeader=function(){return _.nq(this,T7,1)};var Ybh=new uw("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",S_,g1,function(O){return O.serialize()},Sbx);var d0u=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(d0u,_.MP);var w4o=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(w4o,_.MP);w4o.prototype.getUrl=function(){return _.Eg(this,2)};
w4o.prototype.setUrl=function(O){return _.sp(this,2,O)};var eVK=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(eVK,_.MP);var D0o=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(D0o,_.MP);var sDs=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(sDs,_.MP);var dBr=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(dBr,_.MP);var YKr=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(YKr,_.MP);var Nsu=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Nsu,_.MP);var FZx=_.bG(Nsu);var P40=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(P40,_.MP);var Fgu=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Fgu,_.MP);_.v=Fgu.prototype;_.v.getHeader=function(){return _.RO(this,T7,1)};
_.v.setHeader=function(O){return _.Tc(this,1,O)};
_.v.hasHeader=function(){return _.nq(this,T7,1)};
_.v.getCompletionUrl=function(){return _.Eg(this,6)};
_.v.getDeviceId=function(){return _.Eg(this,11)};var AR0=new uw("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Fgu,Nsu,function(O){return O.serialize()},FZx);var Oyb=new Set(["SAPISIDHASH","APISIDHASH"]);var mvr=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(mvr,_.MP);mvr.prototype.getMessage=function(){return _.Eg(this,2)};
var GZy=_.bG(mvr);var EU=function(O,m){this.xhrNodeReadableStream_=O.nodeReadableStream;this.grpcResponseDeserializeFn_=m;this.JSC$19319_xhr_=O.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19319_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&B6r(this)},MB9=function(O,m){var G=new Q7h;
_.Cm(O.JSC$19319_xhr_,"complete",function(){if(O.JSC$19319_xhr_.isSuccess()){var B=O.JSC$19319_xhr_.getResponseText();var Q;if(Q=m)Q=O.JSC$19319_xhr_,Q.JSC$9797_xhr_&&Q.isComplete()?(Q=Q.JSC$9797_xhr_.getResponseHeader("Content-Type"),Q=Q===null?void 0:Q):Q=void 0,Q=Q==="text/plain";if(Q){if(!atob)throw Error("ck");B=atob(B)}try{var H=O.grpcResponseDeserializeFn_(B)}catch(R){Le(O,Zf9(new _.yy(13,"Error when deserializing response data; error: "+R+(", response: "+B)),G));return}B=_.Ni5(O.JSC$19319_xhr_.getStatus());
HyK(O,vNB(O));B==0?Kir(O,H):Le(O,Zf9(new _.yy(B,"Xhr succeeded but the status code is not 200"),G))}else{B=O.JSC$19319_xhr_.getResponseText();H=vNB(O);if(B){var M=$vx(O,B);B=M.code;Q=M.details;M=M.metadata}else B=2,Q="Rpc failed due to xhr error. uri: "+String(O.JSC$19319_xhr_.JSC$9797_lastUri_)+", error code: "+O.JSC$19319_xhr_.JSC$9797_lastErrorCode_+", error: "+O.JSC$19319_xhr_.getLastError(),M=H;HyK(O,H);Le(O,Zf9(new _.yy(B,Q,M),G))}})},B6r=function(O){O.xhrNodeReadableStream_.on("data",function(m){if("1"in
m){var G=m["1"];
try{var B=O.grpcResponseDeserializeFn_(G)}catch(Q){Le(O,new _.yy(13,"Error when deserializing response data; error: "+Q+(", response: "+G)))}B&&Kir(O,B)}if("2"in m)for(m=$vx(O,m["2"]),G=0;G<O.onStatusCallbacks_.length;G++)O.onStatusCallbacks_[G](m)});
O.xhrNodeReadableStream_.on("end",function(){HyK(O,vNB(O));for(var m=0;m<O.onEndCallbacks_.length;m++)O.onEndCallbacks_[m]()});
O.xhrNodeReadableStream_.on("error",function(){if(O.JSC$19319_onErrorCallbacks_.length!=0){var m=O.JSC$19319_xhr_.JSC$9797_lastErrorCode_;m!==0||O.JSC$19319_xhr_.isSuccess()||(m=6);var G=-1;switch(m){case 0:var B=2;break;case 7:B=10;break;case 8:B=4;break;case 6:G=O.JSC$19319_xhr_.getStatus();B=_.Ni5(G);break;default:B=14}HyK(O,vNB(O));m=_.ln$(m)+", error: "+O.JSC$19319_xhr_.getLastError();G!=-1&&(m+=", http status code: "+G);Le(O,new _.yy(B,m))}})},vNB=function(O){var m={},G=vpr(O.JSC$19319_xhr_);
Object.keys(G).forEach(function(B){m[B]=G[B]});
return m},$vx=function(O,m){var G=2,B={};
try{var Q=GZy(m);G=_.ij(Q,1);var H=Q.getMessage();_.r_(Q,AwK,3,_.Rw()).length&&(B["grpc-web-status-details-bin"]=m)}catch(M){O.JSC$19319_xhr_&&O.JSC$19319_xhr_.getStatus()===404?(G=5,H="Not Found: "+String(O.JSC$19319_xhr_.JSC$9797_lastUri_)):(G=14,H="Unable to parse RpcStatus: "+M)}return{code:G,details:H,metadata:B}};
EU.prototype.on=function(O,m){O=="data"?this.onDataCallbacks_.push(m):O=="metadata"?this.onMetadataCallbacks_.push(m):O=="status"?this.onStatusCallbacks_.push(m):O=="end"?this.onEndCallbacks_.push(m):O=="error"&&this.JSC$19319_onErrorCallbacks_.push(m);return this};
var Ce=function(O,m){m=O.indexOf(m);m>-1&&O.splice(m,1)};
EU.prototype.removeListener=function(O,m){O=="data"?Ce(this.onDataCallbacks_,m):O=="metadata"?Ce(this.onMetadataCallbacks_,m):O=="status"?Ce(this.onStatusCallbacks_,m):O=="end"?Ce(this.onEndCallbacks_,m):O=="error"&&Ce(this.JSC$19319_onErrorCallbacks_,m);return this};
EU.prototype.cancel=function(){this.JSC$19319_xhr_.abort()};
var Kir=function(O,m){for(var G=0;G<O.onDataCallbacks_.length;G++)O.onDataCallbacks_[G](m)},HyK=function(O,m){for(var G=0;G<O.onMetadataCallbacks_.length;G++)O.onMetadataCallbacks_[G](m)},Le=function(O,m){for(var G=0;G<O.JSC$19319_onErrorCallbacks_.length;G++)O.JSC$19319_onErrorCallbacks_[G](m)};
EU.prototype.cancel=EU.prototype.cancel;EU.prototype.removeListener=EU.prototype.removeListener;EU.prototype.on=EU.prototype.on;var Q7h=function(){var O=Error.call(this);this.message=O.message;"stack"in O&&(this.stack=O.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.X(Q7h,Error);var oJ=function(O){this.JSC$19328_worker_=O.worker||null;this.JSC$19328_streamBinaryChunks_=O.streamBinaryChunks||!1;this.JSC$19328_credentialsMode_=void 0};
_.MQ(oJ,_.Fm5);oJ.prototype.createInstance=function(){var O=new lw(this.JSC$19328_worker_,this.JSC$19328_streamBinaryChunks_);this.JSC$19328_credentialsMode_&&O.setCredentialsMode(this.JSC$19328_credentialsMode_);return O};
oJ.prototype.setCredentialsMode=function(O){this.JSC$19328_credentialsMode_=O};
var lw=function(O,m){_.Ly.call(this);this.JSC$19332_worker_=O;this.JSC$19332_streamBinaryChunks_=m;this.JSC$19332_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$19332_responseHeaders_=null;this.JSC$19332_method_="GET";this.JSC$19332_url_="";this.inProgress_=!1;this.JSC$19332_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.MQ(lw,_.Ly);lw.prototype.open=function(O,m){if(this.readyState!=0)throw this.abort(),Error("dk");this.JSC$19332_method_=O;this.JSC$19332_url_=m;this.readyState=1;aJ(this)};
lw.prototype.send=function(O){if(this.readyState!=1)throw this.abort(),Error("ek");if(this.abortController_.signal.aborted)throw this.abort(),Error("fk");this.inProgress_=!0;var m={headers:this.requestHeaders_,method:this.JSC$19332_method_,credentials:this.JSC$19332_credentialsMode_,cache:void 0,signal:this.abortController_.signal};O&&(m.body=O);(this.JSC$19332_worker_||_.Qf).fetch(new Request(this.JSC$19332_url_,m)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
lw.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,k$(this));this.readyState=0};
lw.prototype.handleResponse_=function(O){if(this.inProgress_&&(this.fetchResponse_=O,this.JSC$19332_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19332_responseHeaders_=O.headers,this.readyState=2,aJ(this)),this.inProgress_&&(this.readyState=3,aJ(this),this.inProgress_)))if(this.responseType==="arraybuffer")O.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Qf.ReadableStream!==
"undefined"&&"body"in O){this.currentReader_=O.body.getReader();if(this.JSC$19332_streamBinaryChunks_){if(this.responseType)throw Error("gk");this.response=[]}else this.response=this.responseText="",this.JSC$19332_textDecoder_=new TextDecoder;r$y(this)}else O.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var r$y=function(O){O.currentReader_.read().then(O.handleDataFromStream_.bind(O)).catch(O.handleSendFailure_.bind(O))};
lw.prototype.handleDataFromStream_=function(O){if(this.inProgress_){if(this.JSC$19332_streamBinaryChunks_&&O.value)this.response.push(O.value);else if(!this.JSC$19332_streamBinaryChunks_){var m=O.value?O.value:new Uint8Array(0);if(m=this.JSC$19332_textDecoder_.decode(m,{stream:!O.done}))this.response=this.responseText+=m}O.done?k$(this):aJ(this);this.readyState==3&&r$y(this)}};
lw.prototype.handleResponseText_=function(O){this.inProgress_&&(this.response=this.responseText=O,k$(this))};
lw.prototype.handleResponseArrayBuffer_=function(O){this.inProgress_&&(this.response=O,k$(this))};
lw.prototype.handleSendFailure_=function(){this.inProgress_&&k$(this)};
var k$=function(O){O.readyState=4;O.fetchResponse_=null;O.currentReader_=null;O.JSC$19332_textDecoder_=null;aJ(O)};
lw.prototype.setRequestHeader=function(O,m){this.requestHeaders_.append(O,m)};
lw.prototype.getResponseHeader=function(O){return this.JSC$19332_responseHeaders_?this.JSC$19332_responseHeaders_.get(O.toLowerCase())||"":""};
lw.prototype.getAllResponseHeaders=function(){if(!this.JSC$19332_responseHeaders_)return"";for(var O=[],m=this.JSC$19332_responseHeaders_.entries(),G=m.next();!G.done;)G=G.value,O.push(G[0]+": "+G[1]),G=m.next();return O.join("\r\n")};
lw.prototype.setCredentialsMode=function(O){this.JSC$19332_credentialsMode_=O};
var aJ=function(O){O.onreadystatechange&&O.onreadystatechange.call(O)};
Object.defineProperty(lw.prototype,"withCredentials",{get:function(){return this.JSC$19332_credentialsMode_==="include"},
set:function(O){this.setCredentialsMode(O?"include":"same-origin")}});var RI0=function(O){var m="";_.aM.forEach(O,function(G,B){m+=B;m+=":";m+=G;m+="\r\n"});
return m},iyJ=function(O,m,G){if(_.aM.isEmpty(G))return O;
G=RI0(G);if(typeof O==="string")return _.mi(O,_.sZ(m),G);_.AF(O,m,G);return O};var xvK=function(){this.isInputValid_=!0;this.JSC$19338_streamPos_=0;this.leftoverInput_=""};
xvK.prototype.isInputValid=function(){return this.isInputValid_};
xvK.prototype.decode=function(O){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("hk`"+this.JSC$19338_streamPos_+"`stream already broken`"+O);this.leftoverInput_+=O;O=Math.floor(this.leftoverInput_.length/4);if(O==0)return null;try{var m=_.FWM(this.leftoverInput_.slice(0,O*4))}catch(G){throw m=this.leftoverInput_,O=G.message,this.isInputValid_=!1,Error("hk`"+this.JSC$19338_streamPos_+"`"+O+"`"+m);}this.JSC$19338_streamPos_+=O*4;this.leftoverInput_=this.leftoverInput_.slice(O*4);return m};var ql=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19341_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
ql.prototype.isInputValid=function(){return this.state_!=3};
var yR=function(O,m,G,B){O.state_=3;O.errorMessage_="The stream is broken @"+O.JSC$19341_streamPos_+"/"+G+". Error: "+B+". With input:\n"+m;throw Error(O.errorMessage_);};
ql.prototype.acceptsBinaryInput=function(){return!0};
ql.prototype.parse=function(O){function m(x){x&128&&yR(H,M,R,"invalid tag");(x&7)!=2&&yR(H,M,R,"invalid wire type");H.tag_=x>>>3;H.tag_!=1&&H.tag_!=2&&H.tag_!=15&&yR(H,M,R,"unexpected tag");H.state_=1;H.length_=0;H.countLengthBytes_=0}
function G(x){H.countLengthBytes_++;H.countLengthBytes_==5&&x&240&&yR(H,M,R,"message length too long");H.length_|=(x&127)<<(H.countLengthBytes_-1)*7;x&128||(H.state_=2,H.countMessageBytes_=0,typeof Uint8Array!=="undefined"?H.messageBuffer_=new Uint8Array(H.length_):H.messageBuffer_=Array(H.length_),H.length_==0&&Q())}
function B(x){H.messageBuffer_[H.countMessageBytes_++]=x;H.countMessageBytes_==H.length_&&Q()}
function Q(){if(H.tag_<15){var x={};x[H.tag_]=H.messageBuffer_;H.result_.push(x)}H.state_=0}
for(var H=this,M=O instanceof Array?O:new Uint8Array(O),R=0;R<M.length;){switch(H.state_){case 3:yR(H,M,R,"stream already broken");break;case 0:m(M[R]);break;case 1:G(M[R]);break;case 2:B(M[R]);break;default:throw Error("ik`"+H.state_);}H.JSC$19341_streamPos_++;R++}O=H.result_;H.result_=[];return O.length>0?O:null};var JV9=function(){this.errorMessage_=null;this.JSC$19344_streamPos_=0;this.base64Decoder_=new xvK;this.pbParser_=new ql};
JV9.prototype.isInputValid=function(){return this.errorMessage_===null};
var q23=function(O,m,G){O.errorMessage_="The stream is broken @"+O.JSC$19344_streamPos_+". Error: "+G+". With input:\n"+m;throw Error(O.errorMessage_);};
JV9.prototype.acceptsBinaryInput=function(){return!1};
JV9.prototype.parse=function(O){this.errorMessage_!==null&&q23(this,O,"stream already broken");var m=null;try{var G=this.base64Decoder_.decode(O);m=G===null?null:this.pbParser_.parse(G)}catch(B){q23(this,O,B.message)}this.JSC$19344_streamPos_+=O.length;return m};var zas=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19347_streamPos_=0;this.result_=[];this.statusParsed_=!1};
zas.prototype.isInputValid=function(){return this.errorMessage_===null};
zas.prototype.acceptsBinaryInput=function(){return!1};
zas.prototype.parse=function(O){function m(x){H.state_=6;H.errorMessage_="The stream is broken @"+H.JSC$19347_streamPos_+"/"+M+". Error: "+x+". With input:\n";throw Error(H.errorMessage_);}
function G(){H.jsonStreamParser_=new _.nG({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function B(x){if(x)for(var t=0;t<x.length;t++){var W={};W[1]=x[t];H.result_.push(W)}}
function Q(x){if(x){(H.statusParsed_||x.length>1)&&m("extra status: "+x);H.statusParsed_=!0;var t={};t[2]=x[0];H.result_.push(t)}}
for(var H=this,M=0;M<O.length;){var R;if(R=H.state_!==2){a:{for(;M<O.length;){if(!_.b8(O[M])){R=!0;break a}M++;H.JSC$19347_streamPos_++}R=!1}R=!R}if(R)return null;switch(H.state_){case 6:m("stream already broken");break;case 0:O[M]==="["?(H.state_=1,M++,H.JSC$19347_streamPos_++):m("unexpected input token");break;case 1:O[M]==="["?(H.state_=2,G()):O[M]===","||O.slice(M,M+5)=="null,"?H.state_=3:O[M]==="]"?(H.state_=5,M++,H.JSC$19347_streamPos_++):m("unexpected input token");break;case 2:R=H.jsonStreamParser_.parse(O.substring(M));
B(R);H.jsonStreamParser_.done()?(H.state_=3,R=H.jsonStreamParser_.JSC$11486_buffer_,H.JSC$19347_streamPos_+=O.length-M-R.length,O=R,M=0):(H.JSC$19347_streamPos_+=O.length-M,M=O.length);break;case 3:O[M]===","||O.slice(M,M+5)=="null,"?(H.state_=4,G(),H.jsonStreamParser_.parse("["),M+=O[M]===","?1:5,H.JSC$19347_streamPos_++):O[M]==="]"&&(H.state_=5,M++,H.JSC$19347_streamPos_++);break;case 4:R=H.jsonStreamParser_.parse(O.substring(M));Q(R);H.jsonStreamParser_.done()?(H.state_=5,R=H.jsonStreamParser_.JSC$11486_buffer_,
H.JSC$19347_streamPos_+=O.length-M-R.length,O=R,M=0):(H.JSC$19347_streamPos_+=O.length-M,M=O.length);break;case 5:m("extra input after stream end")}}return H.result_.length>0?(O=H.result_,H.result_=[],O):null};var Uvh=function(O){this.JSC$19350_xhr_=O;this.JSC$19350_parser_=null;this.status_=this.JSC$19350_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19350_textDecoder_=null;this.JSC$19350_eventHandler_=new _.xf(this);this.JSC$19350_eventHandler_.listen(this.JSC$19350_xhr_,"readystatechange",this.JSC$19352_readyStateChangeHandler_)},ct=function(O,m){O.status_!=m&&(O.status_=m,O.statusHandler_&&O.statusHandler_())},Y$=function(O){O.JSC$19350_eventHandler_.removeAll();
if(O.JSC$19350_xhr_){var m=O.JSC$19350_xhr_;O.JSC$19350_xhr_=null;m.abort();m.dispose()}};
Uvh.prototype.getStatus=function(){return this.status_};
Uvh.prototype.JSC$19352_readyStateChangeHandler_=function(O){O=O.target;try{if(O==this.JSC$19350_xhr_)a:{var m=_.d6(this.JSC$19350_xhr_),G=this.JSC$19350_xhr_.JSC$9797_lastErrorCode_,B=this.JSC$19350_xhr_.getStatus(),Q=this.JSC$19350_xhr_.getResponseText();O=[];if(this.JSC$19350_xhr_.getResponse()instanceof Array){var H=this.JSC$19350_xhr_.getResponse();H.length>0&&H[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,O=H)}if(!(m<3||m==3&&!Q&&O.length==0))if(B=B==200||B==206,m==4&&(G==8?ct(this,
7):G==7?ct(this,8):B||ct(this,3)),this.JSC$19350_parser_||(this.JSC$19350_parser_=Vw0(this.JSC$19350_xhr_),this.JSC$19350_parser_==null&&ct(this,5)),this.status_>2)Y$(this);else{if(O.length>this.JSC$19350_pos_){var M=O.length;G=[];try{if(this.JSC$19350_parser_.acceptsBinaryInput())for(var R=0;R<M;R++){var x=this.JSC$19350_parser_.parse(Array.from(O[R]));x&&(G=G.concat(x))}else{x="";if(!this.JSC$19350_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("jk");this.JSC$19350_textDecoder_=new TextDecoder}for(R=
0;R<M;R++)x+=this.JSC$19350_textDecoder_.decode(O[R],{stream:m==4&&R==M-1});G=this.JSC$19350_parser_.parse(x)}O.splice(0,M);G&&this.dataHandler_(G)}catch(W){ct(this,5);Y$(this);break a}}else if(Q.length>this.JSC$19350_pos_){R=Q.slice(this.JSC$19350_pos_);this.JSC$19350_pos_=Q.length;try{var t=this.JSC$19350_parser_.parse(R);t!=null&&this.dataHandler_&&this.dataHandler_(t)}catch(W){ct(this,5);Y$(this);break a}}m==4?(Q.length!=0||this.hasStreamingResponseData_?ct(this,2):ct(this,4),Y$(this)):ct(this,
1)}}}catch(W){ct(this,6),Y$(this)}};var tBo=function(O){O=this.xhrReader_=O;var m=(0,_.pd)(this.onData_,this);O.dataHandler_=m;O=this.xhrReader_;m=(0,_.pd)(this.onStatusChange_,this);O.statusHandler_=m;this.JSC$19354_callbackMap_={};this.callbackOnceMap_={}};
_.v=tBo.prototype;_.v.on=function(O,m){var G=this.JSC$19354_callbackMap_[O];G||(G=[],this.JSC$19354_callbackMap_[O]=G);G.push(m);return this};
_.v.addListener=function(O,m){this.on(O,m);return this};
_.v.removeListener=function(O,m){var G=this.JSC$19354_callbackMap_[O];G&&_.yf(G,m);(O=this.callbackOnceMap_[O])&&_.yf(O,m);return this};
_.v.once=function(O,m){var G=this.callbackOnceMap_[O];G||(G=[],this.callbackOnceMap_[O]=G);G.push(m);return this};
_.v.onData_=function(O){var m=this.JSC$19354_callbackMap_.data;m&&Wib(O,m);(m=this.callbackOnceMap_.data)&&Wib(O,m);this.callbackOnceMap_.data=[]};
var Wib=function(O,m){for(var G={},B=0;B<O.length;G={message$jscomp$1005:void 0},B++)G.message$jscomp$1005=O[B],m.forEach(function(Q){return function(H){try{H(Q.message$jscomp$1005)}catch(M){}}}(G))};
tBo.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:ZyA(this,"readable");break;case 5:case 6:case 4:case 7:case 3:ZyA(this,"error");break;case 8:ZyA(this,"close");break;case 2:ZyA(this,"end")}};
var ZyA=function(O,m){var G=O.JSC$19354_callbackMap_[m];G&&G.forEach(function(B){try{B()}catch(Q){}});
(G=O.callbackOnceMap_[m])&&G.forEach(function(B){B()});
O.callbackOnceMap_[m]=[]};var zIJ=function(){var O={format:"jspb"};O=O===void 0?{}:O;this.suppressCorsPreflight=O.suppressCorsPreflight||_.ex("suppressCorsPreflight",O)||!1;this.withCredentials=O.withCredentials||_.ex("withCredentials",O)||!1;this.streamInterceptors=O.streamInterceptors||[];this.unaryInterceptors=O.unaryInterceptors||[];this.workerScope=O.workerScope;this.chunkedServerStreaming=O.useFetchDownloadStreams||!1},byb=function(O,m,G,B,Q,H){H=H===void 0?{}:H;
var M=m.substring(0,m.length-Q.name.length),R,x=(R=H)==null?void 0:R.signal;return J$K(function(t){return new Promise(function(W,Z){if(x==null?0:x.aborted){var z=new _.yy(1,"Aborted");z.cause=x.reason;Z(z)}else{var J={},n=VBr(O,t,M);n.on("error",function(I){return void Z(I)});
n.on("metadata",function(I){J=I});
n.on("data",function(I){var S=J;S=S===void 0?{}:S;W(new Lg9(I,S))});
x&&x.addEventListener("abort",function(){n.cancel();var I=new _.yy(1,"Aborted");I.cause=x.reason;Z(I)})}})},O.unaryInterceptors).call(O,C49(Q,G,B)).then(function(t){return t.responseMessage})},d1=function(O,m,G,B,Q,H){H=H===void 0?{}:H;
return byb(O,m,G,B,Q,H)};
zIJ.prototype.serverStreaming=function(O,m,G,B){var Q=this,H=O.substring(0,O.length-B.name.length);return nNh(function(M){var R=M.methodDescriptor,x=M.getMetadata(),t=Xku(Q,!1);x=fr3(Q,x,t,H+R.getName());var W=hIy(t,R.responseDeserializeFn,!0);M=R.requestSerializeFn(M.requestMessage);t.send(x,"POST",M);return W},this.streamInterceptors).call(this,C49(B,m,G))};
var VBr=function(O,m,G){var B=m.methodDescriptor,Q=m.getMetadata(),H=Xku(O,!0);O=fr3(O,Q,H,G+B.getName());G=hIy(H,B.responseDeserializeFn,!1);MB9(G,Q["X-Goog-Encode-Response-If-Executable"]==="base64");m=B.requestSerializeFn(m.requestMessage);H.send(O,"POST",m);return G},Xku=function(O,m){m=O.chunkedServerStreaming&&!m;
return O.workerScope||m?new _.YN(new oJ({worker:O.workerScope,streamBinaryChunks:m})):new _.YN},fr3=function(O,m,G,B){m["Content-Type"]="application/json+protobuf";
m["X-User-Agent"]="grpc-web-javascript/0.1";var Q=m.Authorization;if(Q&&Oyb.has(Q.split(" ")[0])||O.withCredentials)G.JSC$9797_withCredentials_=!0;if(O.suppressCorsPreflight)B=iyJ(B,"$httpHeaders",m);else for(O=_.K(Object.keys(m)),Q=O.next();!Q.done;Q=O.next())Q=Q.value,G.headers.set(Q,m[Q]);return B},hIy=function(O,m,G){if(G){G=new Uvh(O);
var B=new tBo(G)}return new EU({xhr:O,nodeReadableStream:B},m)},nNh=function(O,m){return m.reduce(function(G,B){return function(Q){return B.intercept(Q,G)}},O)},J$K=function(O,m){return m.reduce(function(G,B){return function(Q){return B.intercept(Q,G)}},O)};var T6x=function(O){this.client_=new zIJ;this.hostname_=O==void 0?O:O.replace(/\/+$/,"")};
_.v=T6x.prototype;_.v.JSC$19372_depositGoogleCredential=function(O,m,G){return d1(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",O,m||{},kDJ,G)};
_.v.deleteLink=function(O,m,G){return d1(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",O,m||{},leA,G)};
_.v.JSC$19372_finishOAuth=function(O,m,G){return d1(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",O,m||{},cRu,G)};
_.v.getLink=function(O,m,G){return d1(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",O,m||{},Ybh,G)};
_.v.startLinkingSession=function(O,m,G){return d1(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",O,m||{},AR0,G)};var gNo=[0,_.mg,1,DQ0,[0,_.H4,[0,_.B4,-1]],[0,eTr],[0,_.M0,-1]];var unK=function(){this.storage=new Map},Iru=function(O,m,G,B,Q){if(!O.storage.has(m))return null;
O=_.K(O.storage.get(m));for(m=O.next();!m.done;m=O.next())if(m=m.value,!Q||m.linkName===Q)if(G&&m.scopes&&j7r(m.scopes,G)||B&&m.capabilities&&j7r(m.capabilities,B))return m;return null},pkr=function(O,m,G){if(!G)O.storage.delete(m);
else if(O.storage.has(m)){var B=O.storage.get(m).filter(function(Q){return Q.linkName!==G});
B.length>0?O.storage.set(m,B):O.storage.delete(m)}},j7r=function(O,m){m=_.K(m);
for(var G=m.next();!G.done;G=m.next())if(!O.has(G.value))return!1;return!0};var S2u=function(){var O=_.kB("LINK_GAL_DOMAIN");this.alsDomain1p=_.kB("LINK_GAL_DOMAIN");this.alsDomain3p=O;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},ENy=function(O,m){O.apiKey=m;
return O};
S2u.prototype.build=function(){var O={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("kk");O.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("lk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("mk");O.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(O.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)O.apiKey=
this.apiKey,O.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("nk");O.oauthToken=this.oauthToken;O.alsDomain=this.alsDomain3p}O.clientXd3=this.clientXd3;O.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(O.authUser=this.authUser);this.bucket!==void 0&&(O.bucket=this.bucket);this.completionUrl!==void 0&&(O.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(O.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(O.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(O.locale=this.locale);O.loggerType=this.loggerType;O.clientEnvironment=this.clientEnvironment;O.colorScheme=this.colorScheme;O.showCloseOption=this.showCloseOption;return O};var Uj=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Uj,_.MP);var LiK=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(LiK,_.MP);var Clx=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Clx,_.MP);var WB=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(WB,_.MP);var oNJ=function(O){return _.Lq(O,1)};var lrh=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(lrh,_.MP);var gHB=_.bG(lrh),tq=[1,2,3,4,5];var XXr=function(O){try{return gHB(O)}catch(m){return null}},ary=function(){},fk9=function(O,m){switch(_.Ti(m,tq)){case 4:return(m=_.lg(m,Clx,4,tq))&&O.logStateTransition(_.Lq(m,1)),!0;
case 5:return(m=_.lg(m,LiK,5,tq))&&O.logInternalEvent(_.Lq(m,1)),!0}return!1},usA=function(O){switch(O){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.d8(O)}};var bfy=function(O,m){var G=this;this.validator=O;this.messageListener=m;this.dismissCallback=function(){kZr(G,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19401_receiveMessage=function(B){B.type==="message"&&(B=B.event_,B!==null&&(new URL(G.iframe.src)).origin===B.origin&&G.validator(B.data,B.origin)&&!G.messageListener(B.data)&&(G.JSC$19401_resolveCb!==void 0&&G.JSC$19401_resolveCb(B.data),y$r(G)))}},THx=function(O,m,G){O.uiHandler!==void 0&&kZr(O,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(B,Q){O.JSC$19401_resolveCb=B;O.JSC$19401_rejectCb=Q;O.iframe=document.createElement("iframe");_.mI(O.iframe,m);O.uiHandler=G.displayContent(O.iframe,O.dismissCallback);_.Cm(window,"message",O.JSC$19401_receiveMessage,!1,O)})},kZr=function(O,m){O.JSC$19401_rejectCb!==void 0&&O.JSC$19401_rejectCb(m);
y$r(O)},y$r=function(O){O.uiHandler!==void 0&&O.uiHandler.hideContent();
_.E2(window,"message",O.JSC$19401_receiveMessage,!1,O);O.JSC$19401_resolveCb=void 0;O.JSC$19401_rejectCb=void 0;O.uiHandler=void 0;O.iframe=void 0};var c$B=function(O){if(O===2){var m;O=((m=window)==null?0:m.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return O},ha9=function(O){O=c$B(O);
switch(O){case 0:return"light";case 1:return"dark";default:_.d8(O)}};var nHy=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Y2A=function(O,m){this.JSC$19413_linkingSession=O;this.noticeConfig=m;this.displayInfoMap=new Map;var G=new Map;if(_.nq(this.JSC$19413_linkingSession,eVK,7))for(O=_.RO(this.JSC$19413_linkingSession,eVK,7),O=_.r_(O,w4o,1,_.Rw()),O=_.K(O),m=O.next();!m.done;m=O.next())m=m.value,G.set(_.Lq(m,1),_.iRM(_.RO(m,_.BAr,3)));if(G.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){m=this.noticeConfig.enabledDataUsageNoticeUis;O=m.has(0)?G.get(1):void 0;m=m.has(1)?G.get(2):void 0;G=O!==void 0&&m!==void 0?G.get(3):void 0;var B=this.noticeConfig.nestedOrigins;var Q=new lrh;var H=new Uj;Q=_.g5(Q,2,tq,H);H=new lrh;var M=new Uj;H=_.g5(H,3,tq,M);M=[];O!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:O,lastEvent:Q,nestedOrigins:B}]),M.push({trustedUrl:O,lastEvent:Q,nestedOrigins:B}));m!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:m,lastEvent:H,nestedOrigins:B}]),M.push({trustedUrl:m,lastEvent:H,nestedOrigins:B}));G!==void 0?this.displayInfoMap.set(3,[{trustedUrl:G,lastEvent:H,nestedOrigins:B}]):this.displayInfoMap.set(3,M)}};var dvJ=function(O){var m=new unK;this.galService=O;this.galCache=m};
dvJ.prototype.getLink=function(O){var m=O.serviceId;var G=O.scopes;var B=O.capabilities;var Q=O.linkName;var H=this,M;return _.r(function(R){if(B!==void 0&&G!==void 0)throw Error("ok");M=Iru(H.galCache,m,G,B,Q);return M!==null?R.return(M):R.return(H.galService.getLink({serviceId:m,sessionId:Math.floor(Math.random()*2147483648),scopes:G,capabilities:B,linkName:Q}).then(function(x){x=EHr(x);var t=H.galCache;t.storage.has(m)?t.storage.get(m).push(x):t.storage.set(m,[x]);return x}))})};
dvJ.prototype.deleteLink=function(O,m,G){var B=this;return _.r(function(Q){pkr(B.galCache,O,G);return Q.return(B.galService.deleteLink({serviceId:O,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:m,linkName:G}).then(function(){return!0}))})};var eIB=function(O,m){var G=this;this.validator=O;this.msgHandler=m;this.closedPopupTimeout=this.JSC$19435_rejectCb=this.JSC$19435_resolveCb=this.popup=null;this.JSC$19435_receiveMessage=function(B){if(B!==null&&(B=B.event_,B.source===G.popup)){var Q=B.data;if(G.validator(Q,B.origin)){var H;(H=G.msgHandler)!=null&&H.call(G,Q)||(G.JSC$19435_resolveCb!==null&&G.JSC$19435_resolveCb(Q),wkB(G))}}}};
eIB.prototype.open=function(O,m){var G=this;this.popup!==null&&Dvs(this);return new Promise(function(B,Q){G.JSC$19435_resolveCb=B;G.JSC$19435_rejectCb=Q;G.popup=_.Bi(window,O,"",m);_.Cm(window,"message",G.JSC$19435_receiveMessage,!1,G);s7o(G)})};
var Dvs=function(O,m){O.JSC$19435_rejectCb!==null&&O.JSC$19435_rejectCb(m);wkB(O)},wkB=function(O){O.closedPopupTimeout&&(O.closedPopupTimeout.cancel(),O.closedPopupTimeout=null);
O.popup&&O.popup.close();_.E2(window,"message",O.JSC$19435_receiveMessage,!1,O);O.popup=null;O.JSC$19435_resolveCb=null;O.JSC$19435_rejectCb=null},s7o=function(O){O.closedPopupTimeout=_.S_s(100).then(function(){O.popup?O.popup.closed?N69(O):s7o(O):Dvs(O,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},N69=function(O){O.closedPopupTimeout=_.S_s(100).then(function(){Dvs(O,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var Plu=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),Fir=function(O,m,G,B,Q,H,M,R,x,t){var W=this;this.serviceId=O;this.sessionId=m;this.galService=G;this.oauthDetails=B;this.galLogger=Q;this.interactionMode=H;this.redirectServiceUrl=M;this.consentLanguageKeys=R;this.dynamicUrlParameters=x;this.partnerConfigMinReadTimestamp=t;this.started=!1;this.JSC$19441_dataValidator=function(Z,
z){var J=Plu.has(z);J||W.redirectServiceUrl===void 0||(J=W.redirectServiceUrl===z);return J?Z.sentinel==="gdi":!1}};
Fir.prototype.complete=function(){var O=this,m;return _.r(function(G){if(O.interactionMode!==1)return G.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));m=zr.getRedirectStateFromUri();return m===null?G.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):G.return(A$J(O,m))})};
Fir.prototype.start=function(){var O=this,m;return _.r(function(G){if(O.started)return G.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Eg(O.oauthDetails,1))return G.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(O.interactionMode===1)return zr.setLocation(_.Eg(O.oauthDetails,1)),G.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));O.started=!0;O.galLogger.logStateTransition(5);
m=zr.getPostMessagePopup(O.JSC$19441_dataValidator);return G.return(m.open(_.Eg(O.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(B){O.started=!1;var Q=O.galLogger;if((B==null?void 0:B.error)!==void 0)throw Q.logInternalEvent(59),Error("pk");if((B==null?void 0:B.redirect_state)===void 0)throw Q.logInternalEvent(131),Error("qk");return A$J(O,B.redirect_state)}).catch(function(B){O.started=
!1;
return B.errorCode!==void 0?{statusCode:B.errorCode,statusMessage:B.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var A$J=function(O,m){return _.r(function(G){return G.return(OYr(O.galService,{serviceId:O.serviceId,sessionId:O.sessionId,dynamicUrlParameters:O.dynamicUrlParameters,redirectState:m,consentLanguageKeys:O.consentLanguageKeys,partnerConfigMinReadTimestamp:O.partnerConfigMinReadTimestamp}).then(function(B){var Q={statusCode:1,link:EHr(B.getLink())};br0(_.fq(B,3))!==void 0&&(Q.callerState=br0(_.fq(B,3)));O.galLogger.logInternalEvent(134);return Q}))})},zr={getPostMessagePopup:function(O){return new eIB(O)},
getRedirectStateFromUri:function(){var O=_.Ph(zr.getLocation()).fragment_;return(new _.JZ(O)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(O){_.rXe(window.location,_.d5(O))},
createOAuthFlow:function(O,m){return new Fir(O.serviceId,O.sessionId,O.galService,m,O.galLogger,O.interactionMode,O.redirectServiceUrl,O.consentLanguageKeys,O.dynamicUrlParameters,O.partnerConfigMinReadTimestamp)}};var mmK=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(mmK,_.MP);var Gmr=_.bG(mmK);var BWr=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),QKy=function(O,m,G,B,Q,H,M,R,x){var t=this;this.serviceId=O;this.sessionId=m;this.galService=G;this.gsiWebFlowDetails=B;this.colorScheme=Q;this.showCloseOption=H;this.galLogger=M;this.interactionMode=R;this.redirectServiceUrl=x;this.started=!1;this.JSC$19453_dataValidator=function(W,Z){var z=BWr.has(Z);z||t.redirectServiceUrl===
void 0||(z=t.redirectServiceUrl===Z);return z?W.sentinel==="gal":!1};
this.logEventProcessor=function(W){return W.result?(W=XXr(W.result))?fk9(t.galLogger,W):!1:!1}};
QKy.prototype.complete=function(){var O=this,m,G;return _.r(function(B){if(O.interactionMode!==1)return B.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));m=Jq.getRedirectStateFromUri();if(m===void 0)return O.galLogger.JSC$19393_logErrorEvent(131),B.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return G=HYy(O,m),B.return(vrA(O,G))}catch(Q){return B.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
QKy.prototype.start=function(){var O=this,m;return _.r(function(G){if(O.started)return G.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Eg(O.gsiWebFlowDetails,1))return G.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(O.interactionMode===1)return Jq.setLocation(K7J(O,_.Eg(O.gsiWebFlowDetails,1))),G.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
O.started=!0;m=Jq.getPostMessagePopup(O.JSC$19453_dataValidator,O.logEventProcessor);return G.return(m.open(K7J(O,_.Eg(O.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(B){O.started=!1;if((B==null?void 0:B.result)===void 0)throw O.galLogger.JSC$19393_logErrorEvent(131),Error("qk");B=HYy(O,B.result);return vrA(O,B)}).catch(function(B){O.started=!1;
return B.errorCode!==void 0?{statusCode:B.errorCode,statusMessage:B.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var K7J=function(O,m){O=["result_channel",O.interactionMode===1?"2":"1","color_scheme",ha9(O.colorScheme),"show_close_option",O.showCloseOption];return F00(m,O)},vrA=function(O,m){if(m!==null&&_.nq(m,WB,2)){var G,B=m==null?void 0:(G=_.RO(m,WB,2))==null?void 0:_.Lq(G,2);
B&&O.galLogger.JSC$19393_logErrorEvent(usA(B));return oNJ(_.RO(m,WB,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 O.galService.getLink({serviceId:O.serviceId,sessionId:O.sessionId,consistencyKey:_.Eg(m,1)}).then(function(Q){Q=EHr(Q);O.galLogger.logInternalEvent(134);return{statusCode:1,link:Q}})},HYy=function(O,m){m=Gmr(m);
if(!_.nq(m,WB,2)&&_.Eg(m,1)==="")throw O.galLogger.JSC$19393_logErrorEvent(5),Error("rk");return m},Jq={getPostMessagePopup:function(O,m){return new eIB(O,m)},
getRedirectStateFromUri:function(){return _.FK(_.Ph(Jq.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(O){_.rXe(window.location,_.d5(O))},
createStreamlinedFlow:function(O,m){return new QKy(O.serviceId,O.sessionId,O.galService,m,O.colorScheme,O.showCloseOption,O.galLogger,O.interactionMode,O.redirectServiceUrl)}};var NH3=function(){var O=_.gs5("GAL");this.storage=O?new _.Id(O):null};
NH3.prototype.getSession=function(O){if(this.storage!==null)try{var m=this.storage.get("SAVED_SESSION");if(m===void 0)return null;if(m.serviceId===O)return m}catch(G){}return null};var w1=function(){};
_.X(w1,ary);w1.prototype.logStateTransition=function(){};
w1.prototype.logInternalEvent=function(){};
w1.prototype.JSC$19393_logErrorEvent=function(){};var $mx=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X($mx,_.MP);$mx.prototype.getCompletionUrl=function(){return _.Eg(this,15)};var e_=function(O,m,G,B,Q,H){this.serviceId=O;this.environment=m;this.sessionId=G;this.colorSchemeSelected=B;this.colorThemeDisplayed=Q;this.JSC$19466_transport=H;this.currentState=1};
_.X(e_,ary);e_.prototype.logStateTransition=function(O){var m=MfJ(this);m=_.xG(m,3,this.currentState);m=_.xG(m,1,O);this.currentState=O;O=Hk3(1);this.dispatch(m,O)};
e_.prototype.logInternalEvent=function(O){O=Hk3(O);this.dispatch(MfJ(this),O)};
e_.prototype.JSC$19393_logErrorEvent=function(O){var m=MfJ(this);m=_.xG(m,1,10);O=Hk3(O);this.dispatch(m,O)};
var MfJ=function(O){var m=new $mx;m=_.xG(m,1,O.currentState);m=_.SS(m,7,O.serviceId);var G,B;var Q=((G=window)==null?0:(B=G.location)==null?0:B.href)?_.Ph(window.location.href).JSC$10033_domain_:"NO_PACKAGE_NAME";G=_.SS(m,8,Q);G=_.xG(G,6,O.environment);G=_.SS(G,5,"100");G=_.xG(G,11,O.colorSchemeSelected);return _.xG(G,12,O.colorThemeDisplayed)};
e_.prototype.dispatch=function(O,m){m===void 0&&(m=new _.ny);var G=m;O=O.serialize();G=_.SS(G,8,O);_.TH(G,12,this.sessionId);this.JSC$19466_transport.dispatch(m)};var rZr=function(O,m){this.loggerType=O;this.sessionIndex=m!=null?m:0},R7K;
rZr.prototype.create=function(O,m,G,B,Q){switch(this.loggerType){case 0:return new w1;case 1:return R7K||(R7K=(new _.zy(555,this.sessionIndex.toString())).build()),new e_(O,m,G,B,Q,R7K);default:_.d8(this.loggerType,"unknown logger type")}};var V3=[6,2,3,1],GwK=new Map([[4,1],[1,6],[2,2],[3,3]]),lkh={statusCode:7,statusMessage:"Failed to create flow object"},DBJ=function(O,m,G,B,Q,H,M,R,x,t){this.serviceId=O;this.sessionId=m;this.config=G;this.galService=B;this.JSC$19473_linkingSession=Q;this.googleScopes=H;this.callerState=M;this.consentLanguageKeys=R;this.dynamicUrlParameters=x;this.partnerConfigMinReadTimestamp=t;this.currentFlow=0;B=this.JSC$19473_linkingSession;Q=new Set;_.nq(B,YKr,1)&&Q.add(1);_.nq(B,sDs,2)&&_.nq(B,dBr,6)&&Q.add(2);
_.nq(B,D0o,3)&&_.nq(B,dBr,6)&&Q.add(3);_.nq(B,d0u,4)&&Q.add(6);this.supportedFlows=Q;B=G.loggerType;Q=G.clientEnvironment;a:{H=G.colorScheme;switch(H){case 0:H=1;break a;case 1:H=2;break a;case 2:H=3;break a;default:_.d8(H)}H=void 0}a:{M=G.colorScheme;M=c$B(M);switch(M){case 0:M=1;break a;case 1:M=2;break a;default:_.d8(M)}M=void 0}this.galLogger=(new rZr(B,G.authUser)).create(O,Q,m,H,M)},xmh=function(O){return new Promise(function(m){var G,B,Q,H,M,R,x,t,W,Z;
return _.r(function(z){switch(z.nextAddress){case 1:G=wX0(O.currentFlow,O.supportedFlows),B=!1,Q=new Y2A(O.JSC$19473_linkingSession,O.config.dataUsageNoticeConfig);case 2:if(G===void 0){z.jumpTo(4);break}_.n_(z,5);var J=Q,n=G,I=void 0;B?n===1&&(I=J.displayInfoMap.get(2)):n===2||n===3?I=J.displayInfoMap.get(1):n===1&&(I=J.displayInfoMap.get(3));H=I?I:[];M=O.consentLanguageKeys;R=_.K(H);x=R.next();case 7:if(x.done)return O.currentFlow=G,z.yield(kL3(iYb(O,M)),11);t=x.value;return z.yield(jh0(t,O.config.dataUsageNoticeConfig.uiAdapter,
O.config.colorScheme,O.galLogger),10);case 10:W=z.yieldResult;if(W.statusCode!==1)return Pu3(O.serviceId),O.currentFlow=0,m(ZF({statusCode:W.statusCode,statusMessage:W.statusMessage},O.callerState)),z.return();W.consentLanguageKeys!==void 0&&(M=W.consentLanguageKeys);x=R.next();z.jumpTo(7);break;case 11:Z=z.yieldResult;if(Z.statusCode!==10)return Z.statusCode!==6&&(Pu3(O.serviceId),O.currentFlow=0),Z.statusCode!==1&&O.callerState!==void 0&&(Z.callerState=O.callerState),m(Z),z.return();_.P7(z,6);break;
case 5:_.uS(z);case 6:G=wX0(O.currentFlow,O.supportedFlows);B=!0;z.jumpTo(2);break;case 4:Pu3(O.serviceId),O.currentFlow=0,m(ZF({statusCode:12,statusMessage:"Linking failed"},O.callerState)),_.ju(z)}})})},O7x=function(O,m,G){O.currentFlow=m;
return yVB(iYb(O,G)).then(function(B){return B.statusCode===10&&O.config.interactionMode===1&&wX0(O.currentFlow,O.supportedFlows)!==void 0?xmh(O):B})},iYb=function(O,m){return{flowParams:{serviceId:O.serviceId,
sessionId:O.sessionId,galService:O.galService,galLogger:O.galLogger,interactionMode:O.config.interactionMode,redirectServiceUrl:O.config.redirectServiceUrl,colorScheme:O.config.colorScheme,consentLanguageKeys:m,dynamicUrlParameters:O.dynamicUrlParameters,showCloseOption:O.config.showCloseOption,partnerConfigMinReadTimestamp:O.partnerConfigMinReadTimestamp},currentFlow:O.currentFlow,config:O.config,session:O.JSC$19473_linkingSession,googleScopes:O.googleScopes,callerState:O.callerState}};var Qur=function(O,m){this.config=O;this.galService=m.getService();this.JSC$19486_galRepository=m.JSC$19504_galRepository};
Qur.prototype.getLink=function(O,m){return q6y(this,O,m)};
var q6y=function(O,m,G){return O.JSC$19486_galRepository.getLink({serviceId:m,scopes:void 0,capabilities:void 0,linkName:G}).then(function(B){return{statusCode:1,link:B}}).catch(function(B){return{statusCode:BXB(B.code),
statusMessage:B.message}})};
Qur.prototype.deleteLink=function(O,m){return this.JSC$19486_galRepository.deleteLink(O,this.config.accountLinkingEntryPoint,m).then(function(){return{statusCode:1}}).catch(function(G){return{statusCode:BXB(G.code),
statusMessage:G.message}})};
Qur.prototype.startLinkingSession=function(O){var m=O.serviceId;var G=O.sessionId;return shb({serviceId:m,sessionId:G!==void 0?G:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:O.loginHint,callerState:O.callerState,consentLanguageKeys:O.consentLanguageKeys,linkName:O.linkName,dynamicUrlParameters:O.dynamicUrlParameters,partnerConfigMinReadTimestamp:O.partnerConfigMinReadTimestamp})};var DA=function(O,m,G,B,Q,H,M){this.apiKey=m;this.authUser=G;this.oauthToken=B;this.bucket=Q;this.locale=H;this.galSdkEventHandler=M;if(B===void 0){if(m===void 0)throw Error("sk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new T6x(O)};
DA.prototype.deleteLink=function(O){var m=O.serviceId;var G=O.sessionId;var B=O.accountLinkingEntryPoint;var Q=O.linkName;var H=this,M;return _.r(function(R){var x=(new j_).setHeader(H.getHeader(G));var t=Umy({serviceId:m,linkName:Q});x=_.Tc(x,2,t);M=_.kF(x,3,B);return R.return(H.makeRequest(H.galServiceClient.deleteLink,M,[1,3],[2,4]))})};
var OYr=function(O,m){var G=m.serviceId;var B=m.sessionId;var Q=m.dynamicUrlParameters;var H=m.redirectState;var M=m.consentLanguageKeys;var R=m.partnerConfigMinReadTimestamp;var x;return _.r(function(t){var W=(new pe).setHeader(O.getHeader(B,Q));W=_.sp(W,2,G);x=_.sp(W,4,H);M!==void 0&&_.sp(x,5,M);R!==void 0&&_.Tc(x,6,R);return t.return(O.makeRequest(O.galServiceClient.JSC$19372_finishOAuth,x,[1,3],[2,4]))})};
DA.prototype.getLink=function(O){var m=O.serviceId;var G=O.sessionId;var B=O.scopes;var Q=O.capabilities;var H=O.consistencyKey;var M=O.linkName;var R=this,x;return _.r(function(t){var W=(new S_).setHeader(R.getHeader(G)),Z=Umy({serviceId:m,scopes:B,capabilities:Q,linkName:M});x=_.Tc(W,2,Z);H!==void 0&&(W=Ie9(),W=_.sp(W,2,H),_.Tc(x,3,W));return t.return(R.makeRequest(R.galServiceClient.getLink,x,[1,3],[2,4]))})};
var cVo=function(O,m){var G=m.serviceId;var B=m.sessionId;var Q=m.googleScopes;var H=m.consistencyKey;var M;return _.r(function(R){var x=(new IJ).setHeader(O.getHeader(B));x=_.sp(x,2,G);var t=Array.from(Q.values());x=_.Oh(x,3,t,_.Zx);t=Ie9();t=_.sp(t,2,H);M=_.Tc(x,4,t);return R.return(O.makeRequest(O.galServiceClient.JSC$19372_depositGoogleCredential,M,[1,3],[2,4]))})};
DA.prototype.startLinkingSession=function(O){var m=O.serviceId;var G=O.sessionId;var B=O.scopes;var Q=O.capabilities;var H=O.loginHint;var M=O.supportedFlows;var R=O.completionUrl;var x=O.usePingPong;var t=O.twoWayLinking;var W=O.accountLinkingEntryPoint;var Z=O.callerState;var z=O.consentLanguageKeys;var J=O.googleScopes;var n=O.dataUsageNoticeConfig;var I=O.linkName;var S=O.dynamicUrlParameters;var L=O.partnerConfigMinReadTimestamp;var C=this,P,w;return _.r(function(d){if(Q!==void 0&&B!==void 0)throw Error("ok");
var D=(new Fgu).setHeader(C.getHeader(G,S));P=_.sp(D,2,m);I!==void 0&&_.sp(P,14,I);if(Q!==void 0){D=P;var OS=Array.from(Q.values());_.Oh(D,5,OS,_.Zx)}else B!==void 0&&(D=P,OS=Array.from(B.values()),_.Oh(D,3,OS,_.Zx));R!==void 0&&_.sp(P,6,R);x!==void 0&&_.oq(P,15,x);M!==void 0&&(D=P,OS=Array.from(M.values()),_.Oh(D,4,OS,_.mA));if(t!==void 0){if(t&&(!J||J.size===0))throw Error("tk");_.oq(P,8,t)}W!==void 0&&_.kF(P,9,W);H!==void 0&&_.sp(P,13,H);Z!==void 0&&(D=P,OS=(new TextEncoder).encode(Z),_.ma(D,12,
_.u2(OS,!1),_.g8()));z!==void 0&&_.sp(P,16,z);L!==void 0&&_.Tc(P,18,L);if(n!==void 0&&n.size>0||J!==void 0&&J.size>0)w=new P40,J!==void 0&&J.size>0&&(D=w,OS=Array.from(J.values()),_.Oh(D,1,OS,_.Zx)),n!==void 0&&(n.has(0)&&_.S9Y(w,2,_.mA,1,_.Bb),n.has(1)&&_.S9Y(w,2,_.mA,2,_.Bb)),_.Tc(P,17,w);return d.return(C.makeRequest(C.galServiceClient.startLinkingSession,P,[1],[2]))})};
DA.prototype.getMetadata=function(){var O=this,m,G;return _.r(function(B){m={};O.useFpa?(m["X-Goog-Api-Key"]=O.apiKey,m["X-Goog-AuthUser"]=O.authUser!==void 0?O.authUser.toString():"0",(G=_.OmO([]))&&(m.Authorization=G)):m.Authorization="Bearer "+O.oauthToken;O.locale&&(m["accept-language"]=O.locale);return B.return(m)})};
DA.prototype.makeRequest=function(O,m,G,B){var Q=this,H;return _.r(function(M){if(M.nextAddress==1)return M.yield(Q.getMetadata(),2);H=M.yieldResult;tfJ(Q,G);return M.return(O.bind(Q.galServiceClient)(m,H).finally(function(){tfJ(Q,B)}))})};
var tfJ=function(O,m){O.galSdkEventHandler!==void 0&&m.forEach(function(G){O.galSdkEventHandler.onEvent(G)})};
DA.prototype.getHeader=function(O,m){var G=new T7;O=_.ma(G,2,_.Qr(O),0);O=_.kF(O,5,3);m=_.Oh(O,8,m,_.Zx);this.bucket!==void 0&&_.sp(m,1,this.bucket);return m};
var Umy=function(O){var m=O.serviceId;var G=O.scopes;var B=O.capabilities;O=O.linkName;if(B!==void 0&&G!==void 0)throw Error("ok");var Q=new u9K;m=_.sp(Q,1,m);B!==void 0?(G=Array.from(B.values()),_.Oh(m,5,G,_.Zx)):G!==void 0&&(G=Array.from(G.values()),_.Oh(m,3,G,_.Zx));O!==void 0&&_.sp(m,6,O);return m};var H7r=function(O){this.galService=new DA(O.alsDomain,O.apiKey,O.authUser,O.oauthToken,O.bucket,O.locale,O.galSdkEventHandler);this.JSC$19504_galRepository=new dvJ(this.galService)};
H7r.prototype.getService=function(){return this.galService};var W7K=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(W7K,_.MP);var ZY3=function(O){var m=new W7K;return _.xG(m,1,O)};
W7K.prototype.setErrorMessage=function(O){return _.SS(this,2,O)};var z7K=[0,_.$7,_.GD,_.$7];var sU=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(sU,_.MP);var JZo=[0,[1,2,3],_.K4,[0,cwb,wpx,-1],_.K4,[0,dQb,-1],_.Q7];var Vfs=[0,_.Aw,1,_.$7,_.GD,-1,1,_.ZoI,_.NQ,_.$7,-1,JZo];var bYo=[0,_.$7,[0,_.ZoI,_.NQ,[0,_.GD]],_.Ob,[0,_.$7,-1]];var x$=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(x$,_.MP);var nr3=[0,_.GD,_.$7,-2,_.Aw,_.$7,_.Aw,_.$7,-2,1,_.Ob];var XGK=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(XGK,_.MP);var fIB=[0,_.Aw];var h7h=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(h7h,_.MP);var TWh=[0,_.$7,bYo,fIB,nr3,Vfs];var LHo=_.zc(h7h,TWh);var gr3=[0,gNo];var yIo=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(yIo,_.MP);var u0B=[0,[1,3],sEb,_.$7,sEb];var RJ=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(RJ,_.MP);var jKx=[0,_.$7];var IIu=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(IIu,_.MP);var iw=function(O){return _.lg(O,W7K,2,r1)},pGx=function(O){var m=new IIu;
return _.g5(m,2,r1,O)},r1=[1,
2];var S6K=[0,r1,_.K4,jKx,_.K4,z7K,_.H4,u0B,1,_.$7,gr3];var Ers=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Ers,_.MP);var CeK=function(O){var m=new Ers;return _.g5(m,3,L7s,O)},L7s=[2,
3];var Nw=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Nw,_.MP);var oro=function(O,m){return _.Tc(O,2,m)},lIu=function(O,m){return _.Tc(O,8,m)},aIb=function(O,m){return _.Tc(O,3,m)};var kmr=[0,_.$7,S6K,TWh,_.xN,[0,[5,6,7],[0,_.$7,-2],[0,_.Aw,_.$7,_.GD],[0,JZo],[0,_.GD,_.$7,-1,_.il,_.$7],_.K4,[0,[0,_.Aw],_.$7,-1],_.K4,[0,[3,4],_.$7,-1,_.K4,[0,[0,_.$7,_.Ob]],_.K4,[0,[0,[0,[1,2],_.K4,[0],_.K4,[0]]]]],_.K4,[0,_.$7]],_.xN,-1,[0,L7s,_.$7,_.K4,jKx,_.K4,z7K,_.H4,u0B,[0,gNo]]];var yZr=_.zc(Nw,kmr),cZA=_.JL(kmr);var Y6h=function(){_.Iw.call(this)};
_.X(Y6h,_.Iw);Y6h.prototype.init=function(){};
new Y6h;var dmr=_.FY(["data-"]),wGx=_.FY(["aria-"]),e7u=_.FY(["aria-"]),Pt=function(O,m){this.isLatencyMeasurementExperiment=O===void 0?!1:O;this.enableDialogA11yFix=m===void 0?!1:m;this.JSC$19533_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.Gcj(_.Qf.location.href)},oKJ=function(O,m){O.onConsentPrimitiveShownCallback=m},Dm3=function(O,m){return O.overriddenIframeLoadTimeout?O.overriddenIframeLoadTimeout:m!==void 0?m:5E3},aLA=function(O){if(O.prewarmPromise!==void 0)return O.prewarmPromise;
O.prewarmPromise=new Promise(function(m,G){F7(O,1);sKs(O,NWr(O,!0),Pe0(O));O.iframe?O.prewarmChannel||F7J(O,O.iframe,m):G(Error("uk"))});
O.prewarmPromise.finally(function(){O.prewarmPromise=void 0});
return O.prewarmPromise};
Pt.prototype.showPrimitive=function(){var O=this;if(this.consentPromise!==void 0)return this.consentPromise;var m=Date.now();AZb(this,m);this.consentPromise=new Promise(function(G,B){F7(O,0,m);var Q=O.isDarkTheme();O.isLatencyMeasurementExperiment||O.initialLoadingStrategy===1||O.initialLoadingStrategy===2||(O.loadingBar||(O.loadingBar=MiJ(getComputedStyle(document.body).direction==="rtl",Q),O.loadingBar.style.position="fixed",O.loadingBar.style.zIndex="15000"),document.body.appendChild(O.loadingBar));
sKs(O,NWr(O),Pe0(O));O.iframe?O.channel||OTu(O,O.iframe,G,B):(m$A(O),B(Error("uk")))});
this.consentPromise.finally(function(){O.consentPromise=void 0});
return this.consentPromise};
var OTu=function(O,m,G,B){var Q,H;_.r(function(M){switch(M.nextAddress){case 1:F7(O,3);Q=!1;setTimeout(function(){if(!Q){m$A(O);GBu(O);Bk9(O);var R=ZY3(7).setErrorMessage("Timeout connecting to iframe");G(lIu(oro(new Nw,pGx(R)),CeK(R)))}},Dm3(O,QR0(O)));
if(!O.prewarmPromise){M.jumpTo(2);break}_.n_(M,3);return M.yield(O.prewarmPromise,5);case 5:_.P7(M,2);break;case 3:_.uS(M),H=ZY3(4).setErrorMessage("Error while prewarming."),G(lIu(oro(new Nw,pGx(H)),CeK(H)));case 2:O.prewarmChannel&&O.prewarmChannel.send(cZA(aIb(new Nw,O.consentPrimitiveRequest))),O.channel=_.i4({destination:O.JSC$19533_win,iframe:m,origin:HTb(O),channelName:"cpw",onEstablished:function(){Q=!0;m$A(O);O.isLatencyMeasurementExperiment||(O.JSC$19533_previousBodyOverflow=document.body.style.overflow,
O.JSC$19533_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,O.JSC$19533_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",O.enableDialogA11yFix&&window.addEventListener("blur",O.focusChangeListener));var R=O.iframe;R.style.bottom="0";R.style.position="fixed";R.style.right="0";R.style.border="none";R.style.left="0";R.style.top=
"0";R.style.zIndex="5000";R.style.pointerEvents="";R.style.visibility="";O.initialLoadingStrategy===2||O.initialLoadingStrategy===3?F7(O,4):F7(O,6);var x;(x=O.onConsentPrimitiveShownCallback)==null||x.call(O)},
onMessage:function(R){R=yZr(R.data);switch(_.Lq(R,1)){case 1:GBu(O);var x=rGh(_.RO(R,_.o$,7));x&&(O.initialLoadingStrategy!==2&&O.initialLoadingStrategy!==3||F7(O,6,x),F7(O,5,x));if(x=rGh(_.RO(R,_.o$,6)))F7(O,7,x),F7(O,8);var t,W;((t=_.RO(R,IIu,2))==null?void 0:_.Ti(t,r1))!==0&&((W=_.RO(R,Ers,8))==null?void 0:_.Ti(W,L7s))!==0||B(Error("vk"));G(R);break;case 2:Bk9(O)}}}),_.ju(M)}})},F7J=function(O,m,G){O.prewarmChannel=_.i4({destination:O.JSC$19533_win,
iframe:m,origin:HTb(O),channelName:"pwcp",onEstablished:function(){F7(O,2);G()}})},HTb=function(O){var m=_.Eh(O.src).toString();
return m&&m.indexOf("://")<0&&m.indexOf("//")!==0?O.origin:_.Gcj(m)},NWr=function(O,m){m=m===void 0?!1:m;
var G,B=new Map([["origin",O.origin],["hl",(G=vIu(O))!=null?G:null]]);m&&B.set("pw","1");m=_.K([["cpr",O.consentPrimitiveRequest.serialize()]]);for(G=m.next();!G.done;G=m.next()){var Q=_.K(G.value);G=Q.next().value;Q=Q.next().value;B.set(G,Q)}O.isDarkTheme()&&B.set("color_scheme","dark");return _.Zn(O.src,B)},m$A=function(O){O.isLatencyMeasurementExperiment||O.loadingBar&&document.body.removeChild(O.loadingBar)};
Pt.prototype.getSrc=function(){var O=_.Gg(this.origin),m;var G=(m=_.RO(this.consentPrimitiveRequest,XGK,3))==null?void 0:_.ij(m,1);m="consent.google.com";G=G?"/u/"+encodeURIComponent(G.toString()):"";(O==null?0:O.endsWith("youtube.com"))?m="consent.youtube.com":(O=O==null?void 0:O.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(m="consent.google."+((O[1]?"co.":"")+encodeURIComponent(O[2])));return _.p9("https://"+m+"/signedin"+G+"/landing")};
var sKs=function(O,m,G){O.iframe||(O.iframe=document.createElement("iframe"),O.iframe.style.width="100%",O.iframe.style.height="100%",G!==112496729&&(O.iframe.style.colorScheme="auto"),O.isLatencyMeasurementExperiment&&(O.iframe.style.display="none"),_.mI(O.iframe,m),O.iframe.setAttribute("jsname","C5o1O"),Kb9(O.iframe),document.body.appendChild(O.iframe))},Kb9=function(O){O.style.bottom="-200vh";
O.style.position="fixed";O.style.right="-200vw";O.style.border="";O.style.left="";O.style.top="";O.style.zIndex="";O.style.pointerEvents="none";O.style.visibility="hidden"},GBu=function(O){O.iframe&&(O.isLatencyMeasurementExperiment||(O.JSC$19533_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=O.JSC$19533_previousHtmlOverscroll),O.JSC$19533_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=O.JSC$19533_previousBodyOverscroll),O.JSC$19533_previousBodyOverflow!==
void 0&&(document.body.style.overflow=O.JSC$19533_previousBodyOverflow),O.enableDialogA11yFix&&$$h(O,!1)),Kb9(O.iframe))};
Pt.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&($$h(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var $$h=function(O,m){var G,B,Q=(G=O.iframe)==null?void 0:(B=G.parentElement)==null?void 0:B.children;if(Q)for(G=0;G<Q.length;G++)B=Q[G],B!==O.iframe&&(m?(B.hasAttribute("aria-hidden")&&_.rC([_.x6(dmr)],B,"data-old-aria-hidden",B.getAttribute("aria-hidden")),_.rC([_.x6(wGx)],B,"aria-hidden","true")):(B.removeAttribute("aria-hidden"),B.hasAttribute("data-old-aria-hidden")&&(_.rC([_.x6(e7u)],B,"aria-hidden",B.getAttribute("data-old-aria-hidden")),B.removeAttribute("data-old-aria-hidden"))))},F7=function(O,
m,G){var B;
(B=O.latencyCallback)==null||B.call(O,{latencyType:m,timestampEpochMillis:G!=null?G:Date.now()})};var Mq0=function(O,m,G){Pt.call(this,m,G===void 0?!1:G);this.consentPrimitiveRequest=O;O=vIu(this);_.e89(O);this.src=this.getSrc();var B;this.initialLoadingStrategy=(B=_.RO(this.consentPrimitiveRequest,x$,4))==null?void 0:_.Lq(B,4)},rSr;
_.X(Mq0,Pt);var CmJ=function(O){var m=_.V("enable_primitive_dialog_aria_hide_siblings");O={request:O,enableDialogA11yFix:m===void 0?!1:m};rSr||(rSr=new Mq0(O.request,O.isLatencyMeasurementExperiment||_.Lq(O.request,1)===2,O.enableDialogA11yFix));return rSr},vIu=function(O){var m;
return(m=_.RO(O.consentPrimitiveRequest,x$,4))==null?void 0:_.Eg(m,1)},AZb=function(O,m){if(!_.nq(O.consentPrimitiveRequest,sU,5)){var G=O.consentPrimitiveRequest,B=new sU;
_.Tc(G,5,B)}var Q;if((Q=_.RO(O.consentPrimitiveRequest,sU,5))==null||_.T8I(_.bg(Q,8))==null){var H;(H=_.RO(O.consentPrimitiveRequest,sU,5))!=null&&_.TH(H,8,m)}},Pe0=function(O){var m;
return(m=_.RO(O.consentPrimitiveRequest,sU,5))==null?void 0:_.ij(m,1)};
Mq0.prototype.isDarkTheme=function(){var O;return((O=_.RO(this.consentPrimitiveRequest,x$,4))==null?void 0:_.Lq(O,2))===2};
var QR0=function(O){var m;return((m=_.RO(O.consentPrimitiveRequest,x$,4))==null?void 0:_.ij(m,5))||void 0},Bk9=function(O){O.channel=void 0;
O.prewarmChannel=void 0;O.iframe&&(document.body.contains(O.iframe)&&document.body.removeChild(O.iframe),O.iframe=void 0);rSr=void 0},kUs=function(O){return Pt.prototype.showPrimitive.call(O).then(function(m){return _.RO(m,IIu,2)})};for(var A5={},Rby=(A5[64]="ma",A5[73]="ogb",A5[89]="cr",A5[21]="test",A5[0]="unkn",A5[137]="con",A5[155]="hl",A5[78]="yt",A5[171]="lp",A5[172]="ap",A5[177]="amo",A5[178]="pqe",A5[74]="gg",A5[1]="gm",A5[140]="am",A5[193]="sc",A5),iTy=_.K(Object.keys(Rby)),x$b=iTy.next();!x$b.done;x$b=iTy.next());var qsK=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(qsK,_.MP);var U$K=[0,[2,3,4],_.$7,Ygr,sEb,_.Q7];var tqB=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(tqB,_.MP);var Wb0=_.zc(tqB,[0,_.M0,_.GD,_.$7,_.GD,_.$7,U$K]);var ZTK=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(ZTK,_.MP);ZTK.prototype.getCommand=function(){return _.Lq(this,1)};
var zbo=function(){var O=new ZTK;return _.kF(O,1,0)};var JSo=_.JL([0,_.M0,_.GD,[0,_.$7,_.GD,-1]]);var Vq0=new _.ul("s"),bT9=new _.ul("t"),nIK=new _.ul("u"),X1J=new _.ul("v"),fV0=function(O,m,G){_.jB.call(this,Vq0);this.mediaKey=O;this.photoUrl=m;this.photoSource=G};
_.X(fV0,_.jB);var hbr=function(){_.jB.call(this,bT9)};
_.X(hbr,_.jB);var Tk9=function(O){O=O===void 0?!1:O;_.jB.call(this,nIK);this.isError=O};
_.X(Tk9,_.jB);var gIh=function(){_.jB.call(this,X1J)};
_.X(gIh,_.jB);var ukr=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Ssb=function(O){if(typeof O=="string"){if(O.charAt(0)==".")return jRb(O.substr(1));if(O.charAt(0)=="["){var m=ukr.exec(O);O=O.indexOf("=")==-1?void 0:m[3];return IV9(m[1],O)}return p1J(O)}return O},jRb=function(O){return function(m){return m.getAttribute&&_.BG(m,O)}},IV9=function(O,m){return function(G){return m!==void 0?G.getAttribute&&G.getAttribute(O)==m:G.hasAttribute&&G.hasAttribute(O)}},p1J=function(O){O=O.toUpperCase();
return function(m){return(m=m.tagName)&&m.toUpperCase()==O}},EI9=function(){return!0};var OV=function(O,m){this.JSC$19561_key_=O;this.JSC$19561_value_=m},mQ=function(O){throw Error("wk`"+O.JSC$19561_key_);
},Lb9=function(O,m){return new TypeError("xk`"+m+"`"+O.JSC$19561_key_+"`"+O.JSC$19561_value_+"`"+typeof O.JSC$19561_value_)};
OV.prototype.string=function(O){return arguments.length==0?CaK(this):oIy(this,O)};
var oIy=function(O,m){var G;return(G=lV9(O))!=null?G:m},CaK=function(O){var m=lV9(O);
m===null&&mQ(O);return m},lV9=function(O){var m=O.JSC$19561_value_;
if(m==null)return null;if(typeof m==="string")return m;throw Lb9(O,"string");};
OV.prototype.bool=function(O){if(arguments.length==0){var m=this.optionalBool();m===null&&mQ(this)}else{var G;m=(G=this.optionalBool())!=null?G:O}return m};
OV.prototype.optionalBool=function(){var O=this.JSC$19561_value_;if(O==null)return null;if(typeof O==="boolean")return O;if(typeof O==="string"){O=O.toLowerCase();if(O==="true"||O==="1")return!0;if(O==="false"||O==="0")return!1}throw Lb9(this,"boolean");};
OV.prototype.number=function(O){if(arguments.length==0){var m=aV0(this);m===null&&mQ(this)}else m=kBr(this,O);return m};
var kBr=function(O,m){var G;return(G=aV0(O))!=null?G:m},aV0=function(O){var m=O.JSC$19561_value_;
if(m==null)return null;if(typeof m==="number")return m;if(typeof m==="string"){var G=Number(m);if(!isNaN(G)&&(G!==0||m.trim().length!==0))return G}throw Lb9(O,"number");};
OV.prototype.toString=function(){return CaK(this)};
OV.prototype.enum=function(O,m){var G=!0,B=void 0,Q;for(Q in O){var H=O[Q];G&&(G=!1,B=typeof H==="number"?kBr(this,m):oIy(this,m));if(H==B)return B}JSON.stringify(O);return B};
OV.prototype.array=function(O){if(arguments.length==0){var m=ySr(this);m===null&&mQ(this);return m}m=ySr(this);return m==null?O:m};
var ySr=function(O){var m=O.JSC$19561_value_;if(m==null)return null;Array.isArray(m)||(typeof m!=="string"?m=[m]:(m=m.trim(),m=m==""?[]:m.split(",").map(function(G){return G.trim()})));
return cSh(O,m)},cSh=function(O,m){var G=O.JSC$19561_key_+"[";
return Array.from(m,function(B,Q){return new OV(G+Q+"]",B)})};
OV.prototype.object=function(O){var m=this.JSC$19561_value_;if(m==null)return O===void 0&&mQ(this),O;if(typeof m==="object"&&m.constructor===Object){O={};var G=this.JSC$19561_key_+".",B;for(B in m)O[B]=new OV(G+B,m[B]);return O}throw Lb9(this,"object");};var Gx=function(O){this.list_=Ys0(O)},Ys0=function(O){if(O instanceof Gx)O=O.list_;
else if(O[0]instanceof Gx){for(var m=new Set,G=0;G<O.length;G++)for(var B=_.K(O[G].list_),Q=B.next();!Q.done;Q=B.next())m.add(Q.value);O=m}return[].concat(_.lS(O))};
_.v=Gx.prototype;_.v.each=function(O,m,G){((G===void 0?0:G)?ZrA:_.Nr)(this.list_,O,m);return this};
_.v.size=function(){return this.list_.length};
_.v.isEmpty=function(){return this.list_.length===0};
_.v.get=function(O){return this.list_[O]||null};
_.v.el=function(){return this.list_[0]||null};
_.v.map=function(O,m){return _.k6(this.list_,O,m)};
_.v.equals=function(O){return this===O||_.Np(this.list_,O.list_)};
_.v.first=function(){return this.list_.length==0?null:new B5(this.list_[0])};
_.v.last=function(){return this.list_.length==0?null:new B5(this.list_[this.list_.length-1])};
_.v.find=function(O){var m=[];this.each(function(G){G=G.querySelectorAll(String(O));for(var B=0;B<G.length;B++)m.push(G[B])});
return new Gx(m)};
_.v.parent=function(){var O=[];this.each(function(m){(m=m.parentElement||null)&&!_.kO(O,m)&&O.push(m)});
return new Gx(O)};
_.v.children=function(){var O=[];this.each(function(m){m=_.ws(m);for(var G=0;G<m.length;G++)O.push(m[G])});
return new Gx(O)};
_.v.filter=function(O){O=_.RE(this.list_,Ssb(O));return new Gx(O)};
_.v.closest=function(O){var m=[],G=Ssb(O),B=function(Q){return _.GH(Q)&&G(Q)};
this.each(function(Q){(Q=_.w9(Q,B,!0))&&!_.kO(m,Q)&&m.push(Q)});
return new Gx(m)};
_.v.next=function(O){return d$A(this,_.z0e,O)};
_.v.prev=function(O){return d$A(this,N7A,O)};
var d$A=function(O,m,G){var B=[];var Q=G?Ssb(G):EI9;O.each(function(H){(H=m(H))&&Q(H)&&B.push(H)});
return new Gx(B)};
Gx.prototype.setClass=function(O){return this.each(function(m){_.m7(m,O)})};
var w1A=function(O,m){return O.each(function(G){_.$g(G,m)})},ebo=function(O,m){return O.each(function(G){_.v6(G,m)})};
Gx.prototype.toggleClass=function(O,m){return m===!0?w1A(this,O):m===!1?ebo(this,O):this.each(function(G){_.BG(G,O)?_.v6(G,O):_.$g(G,O)})};
Gx.prototype.setText=function(O){return this.each(function(m){_.eG(m,O)})};
var D$o=function(O){O.each(function(m){m.removeAttribute("aria-hidden")})};
Gx.prototype.getStyle=function(O){if(this.list_.length>0){var m=this.list_[0],G=m.style[_.hc(O)];return typeof G!=="undefined"?G:m.style[_.pb_(m,O)]||""}};
Gx.prototype.getData=function(O){if(this.list_.length===0)return new OV(O,null);var m=ncr(this.list_[0],O);return new OV(O,m)};
Gx.prototype.focus=function(O){try{O?this.el().focus(O):this.el().focus()}catch(m){}return this};
Gx.prototype.click=function(){var O=_.Y6(this.el());if(O.createEvent){var m=O.createEvent("MouseEvents");m.initMouseEvent("click",!0,!0,O.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(m)}else O=O.createEventObject(),O.clientX=0,O.clientY=0,O.screenX=0,O.screenY=0,O.altKey=!1,O.ctrlKey=!1,O.shiftKey=!1,O.button=0,this.el().fireEvent("onclick",O)};
var Q5=function(O,m,G,B){function Q(R,x,t){var W=x;x&&x.parentNode&&(W=x.cloneNode(!0));R(W,t)}
B=B===void 0?!1:B;if(O.list_.length==1){var H=O.list_[0],M=function(R){return m(R,H)};
G instanceof Gx?G.each(M,void 0,B):Array.isArray(G)?(B?ZrA:_.Nr)(G,M):M(G);return O}return O.each(function(R){G instanceof Gx?G.each(function(x){Q(m,x,R)}):Array.isArray(G)?_.Nr(G,function(x){Q(m,x,R)}):Q(m,G,R)})};
_.v=Gx.prototype;_.v.append=function(O){return Q5(this,function(m,G){m&&G.appendChild(m)},O)};
_.v.appendTo=function(O){(new Gx([O])).append(this);return this};
_.v.remove=function(){return Q5(this,function(O,m){_.hF(m)},null)};
_.v.empty=function(){return Q5(this,function(O,m){_.c4(m)},null)};
_.v.after=function(O,m){return Q5(this,function(G,B){G&&_.ds(G,B)},O,!(m===void 0||m))};
_.v.before=function(O){return Q5(this,function(m,G){m&&_.Y7(m,G)},O)};
_.v.replaceWith=function(O){return Q5(this,function(m,G){m&&_.tK_(m,G)},O)};
_.v.toggle=function(O){return this.each(function(m){_.OR(m,O)})};
_.v.show=function(){return this.toggle(!0)};
_.v.hide=function(){return this.toggle(!1)};
_.v.trigger=function(O,m,G,B){return sRK(this,O,m,G,B)};
var sRK=function(O,m,G,B,Q){return O.each(function(H){_.JvM(_.Y6(H)).triggerWizEventInternal(H,m,G,B,Q)})},B5=function(O,m){O instanceof Gx&&(m=O.list_,O=null);
this.list_=Ys0(O!=null?[O]:m)};
_.MQ(B5,Gx);_.v=B5.prototype;_.v.children=function(){return new Gx(Array.prototype.slice.call(_.ws(this.list_[0])))};
_.v.each=function(O,m){O.call(m,this.list_[0],0);return this};
_.v.size=function(){return 1};
_.v.el=function(){return this.list_[0]};
_.v.first=function(){return this};var H5=function(O,m){m=m===void 0?window:m;this.hostId=O;this.JSC$19572_win=m;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$19572_previousHtmlOverscroll=this.JSC$19572_previousBodyOverscroll=this.JSC$19572_previousBodyOverflow="";this.eventTarget=new _.Ly;this.JSC$19572_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
Fbu=function(O){var m=NkA(NkA(NkA(new Pay(78),"po"),"hppp"),"hhc");
m.authUser=Number(_.kB("SESSION_INDEX","0"));m.colorScheme=O;return m};
H5.prototype.getOrigin=function(){return this.origin?this.origin:_.U6(_.qm(_.xr(new _.Bd,this.JSC$19572_win.location.protocol),this.JSC$19572_win.location.hostname),this.JSC$19572_win.location.port).toString()};
H5.prototype.getTargetOrigin=function(){return _.U6(_.qm(_.xr(new _.Bd,this.scheme),this.domain),this.port)};
H5.prototype.preloadIframe=function(O){var m=this;if(this.iframeLoadPromise===void 0){var G=document.createElement("iframe");this.iframe=G;W$r(G,O);this.iframeLoadPromise=new Promise(function(B,Q){var H=!1,M=function(R){R.stopPropagation();G.removeEventListener("error",M);G.removeEventListener("securitypolicyviolation",M);Q(Error("yk",{cause:R}))};
G.addEventListener("error",M);G.addEventListener("securitypolicyviolation",M);setTimeout(function(){H||Q(Error("zk"))},3E4);
ASy(m,G,function(){H=!0;G.removeEventListener("error",M);G.removeEventListener("securitypolicyviolation",M);B()})});
OUr(this);O=this.getTargetOrigin().toString();G.setAttribute("allow","camera "+O+"; display-capture "+O);this.parentElement.appendChild(G)}return this.iframeLoadPromise};
var Bw3=function(O,m){var G,B;return _.r(function(Q){if(Q.nextAddress==1)return G=MiJ(getComputedStyle(O.parentElement).direction==="rtl"),O.parentElement.appendChild(G),document.activeElement instanceof HTMLElement&&(O.elementToFocusAfterClose=document.activeElement),_.n_(Q,2),Q.yield(O.preloadIframe(m),4);if(Q.nextAddress!=2){O.parentElement.removeChild(G);O.JSC$19572_previousBodyOverflow=O.parentElement.style.overflow;O.JSC$19572_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
O.JSC$19572_previousBodyOverscroll=O.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";O.parentElement.style.overscrollBehavior="contain";O.parentElement.style.overflow="hidden";var H=O.iframe;H.style.bottom="0";H.style.border="none";H.style.height="100%";H.style.left="0";H.style.position=O.iframePosition;H.style.right="0";H.style.top="0";H.style.width="100%";H.style.zIndex="2202";H.setAttribute("aria-hidden","false");H.setAttribute("aria-modal","true");
O.opened=!0;msb(O);return _.P7(Q,0)}B=_.uS(Q);O.parentElement.removeChild(G);qcK(O.isDarkTheme());GEh(O,!1);throw Error("Ak",{cause:B});})},GEh=function(O,m){m=m===void 0?!0:m;
O.iframe!==void 0&&(Qcu(O),document.documentElement.style.overscrollBehavior=O.JSC$19572_previousHtmlOverscroll,O.parentElement.style.overscrollBehavior=O.JSC$19572_previousBodyOverscroll,O.parentElement.style.overflow=O.JSC$19572_previousBodyOverflow,O.elementToFocusAfterClose!==void 0&&(O.elementToFocusAfterClose.focus(),O.elementToFocusAfterClose=void 0),m?OUr(O):(O.parentElement.removeChild(O.iframe),O.iframe=void 0,O.iframeLoadPromise=void 0,O.mainChannel=void 0),O.opened=!1)},Qcu=function(O){O.backgroundElementsAriaHiddenIsNull&&
(D$o(O.backgroundElementsAriaHiddenIsNull),O.backgroundElementsAriaHiddenIsNull=void 0);
O.backgroundElementsAriaHiddenIsFalse&&(O.backgroundElementsAriaHiddenIsFalse.each(function(m){m.setAttribute("aria-hidden","false")}),O.backgroundElementsAriaHiddenIsFalse=void 0);
O.backgroundElementsWithoutInert&&(O.backgroundElementsWithoutInert.each(function(m){m.removeAttribute("inert")}),O.backgroundElementsWithoutInert=void 0)},msb=function(O){O.backgroundElementsAriaHiddenIsNull=(new B5(O.iframe.parentElement)).children().filter(function(m){return m.getAttribute("aria-hidden")===null&&m!==O.iframe});
O.backgroundElementsAriaHiddenIsNull.each(function(m){m.setAttribute("aria-hidden","true")});
O.backgroundElementsAriaHiddenIsFalse=(new B5(O.iframe.parentElement)).children().filter(function(m){return m.getAttribute("aria-hidden")==="false"&&m!==O.iframe});
O.backgroundElementsAriaHiddenIsFalse.each(function(m){m.setAttribute("aria-hidden","true")});
O.backgroundElementsWithoutInert=(new B5(O.iframe.parentElement)).children().filter(function(m){return!m.hasAttribute("inert")&&m!==O.iframe});
O.backgroundElementsWithoutInert.each(function(m){m.setAttribute("inert","true")})},OUr=function(O){O=O.iframe;
O.style.bottom="-1000px";O.style.position="fixed";O.style.right="-1000px";O.style.border="";O.style.height="";O.style.left="";O.style.top="";O.style.width="";O.style.zIndex="";O.setAttribute("aria-hidden","true");O.setAttribute("aria-modal","false")};
H5.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var Pay=function(O,m){H5.call(this,Rby[O],m);this.options=[];this.style=""};
_.X(Pay,H5);var HUs=function(O){O.style="youtube";return O},vJ3=function(O,m){O.eventTarget.listen(nIK,m);
return O},KxK=function(O,m){O.eventTarget.listen(Vq0,m);
return O},NkA=function(O,m){O.options.push(m);
return O},$s3=function(O){var m=[O.getOrigin()];
O.ancestorOrigins&&m.push.apply(m,_.lS(O.ancestorOrigins));var G=new _.Bd(O.JSC$19572_win.location.href),B=O.startUrl?O.startUrl:O.options.includes("po")?"profile-picture/art":"profile-picture";m=qw(_.tZ(O.getTargetOrigin(),B),"origin",m);O.startUrl&&_.AF(m,"startPath",O.startUrl);O.authUser>0&&_.AF(m,"authuser",O.authUser);O.pageId!==void 0&&_.AF(m,"pageId",O.pageId);_.AF(m,"hostId",O.hostId);O.jsMode!==void 0&&_.AF(m,"jsmode",O.jsMode);O.rectangleRatio!==void 0&&_.AF(m,"rectangleRatio",O.rectangleRatio);
O.options.length>0&&_.AF(m,"opts",O.options.join(","));try{for(var Q=_.K(["utm_source","utm_medium","utm_campaign","utm_content"]),H=Q.next();!H.done;H=Q.next()){var M=H.value;_.FK(G,M)&&_.AF(m,M,_.FK(G,M))}var R,x=(R=O.hl)!=null?R:_.FK(G,"hl");x!==void 0&&_.AF(m,"hl",x)}catch(t){if(!(t instanceof URIError))throw t;}O.colorScheme&&_.AF(m,"theme",O.colorScheme);O.style&&_.AF(m,"style",O.style);return m},M89=function(O,m){O.mainChannel=_.i4({destination:O.JSC$19572_win,
iframe:m,origin:O.getTargetOrigin().toString(),channelName:"ow",onMessage:function(G){G=Wb0(G.data);if(m===O.iframe)switch(_.Lq(G,1)){case 1:O.eventTarget.dispatchEvent(new Tk9);GEh(O);break;case 2:O.eventTarget.dispatchEvent(new fV0(_.Eg(G,4),_.Eg(G,2),_.Lq(G,5),_.RO(G,qsK,6)));break;case 0:var B;O.eventTarget.dispatchEvent(new hbr(_.Eg(G,2),(B=_.Lq(G,3))!=null?B:0));break;case 3:O.eventTarget.dispatchEvent(new Tk9(!0));GEh(O,!1);break;case 4:O.eventTarget.dispatchEvent(new gIh)}}})},ASy=function(O,
m,G){_.i4({destination:O.JSC$19572_win,
iframe:m,origin:_.U6(_.qm(_.xr(new _.Bd,O.scheme),O.domain),O.port).toString(),channelName:"owi",onMessage:function(B){m===O.iframe&&(G!==void 0&&G(),M89(O,m),O.opened&&O.mainChannel.send(JSo(zbo())),B.reply(),ASy(O,m))}})};
Pay.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?H5.prototype.preloadIframe.call(this,$s3(this).toString()):this.iframeLoadPromise};
Pay.prototype.openPicker=function(O){var m=this;return _.r(function(G){if(G.nextAddress==1)return m.startUrl=O?O:m.options.includes("po")?"profile-picture/art":"profile-picture",G.yield(Bw3(m,$s3(m).toString()),2);if(m.mainChannel){var B=m.mainChannel,Q=B.send;var H=zbo();H=_.SS(H,2,m.startUrl);Q.call(B,JSo(H))}_.ju(G)})};var rxh=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(rxh,_.MP);_.v=rxh.prototype;_.v.getSize=function(){return VR(this,1)};
_.v.setSize=function(O){return _.aE(this,1,O)};
_.v.getWidth=function(){return VR(this,12)};
_.v.getHeight=function(){return VR(this,13)};
_.v.setCenterCrop=function(O){return _.tF(this,20,O)};
_.v.getHtml=function(){return _.IE(this,4)};
_.v.getToken=function(){return _.XK(this,24)};
_.v.setToken=function(O){return _.SS(this,24,O)};
_.v.getBackgroundColor=function(){return VR(this,87)};
_.v.hasBackgroundColor=function(){return _.Hb(_.bg(this,87))!=null};
_.v.getStoryboardLevel=function(){return VR(this,109)};var v5=function(O){this.JSC$19580_value_=void 0;this.childNodes_={};if(O){var m=_.KmH(O);O=_.ie(O);for(var G=0;G<m.length;G++)this.set(m[G],O[G])}};
v5.prototype.set=function(O,m){Rh0(this,O,m,!1)};
v5.prototype.add=function(O,m){Rh0(this,O,m,!0)};
var Rh0=function(O,m,G,B){for(var Q=0;Q<m.length;Q++){var H=m.charAt(Q);O.childNodes_[H]||(O.childNodes_[H]=new v5);O=O.childNodes_[H]}if(B&&O.JSC$19580_value_!==void 0)throw Error("Bk`"+m);O.JSC$19580_value_=G},iUB=function(O,m){for(var G=0;G<m.length;G++)if(O=O.childNodes_[m.charAt(G)],!O)return;
return O};
v5.prototype.get=function(O){return(O=iUB(this,O))?O.JSC$19580_value_:void 0};
v5.prototype.getValues=function(){var O=[];xsr(this,O);return O};
var xsr=function(O,m){O.JSC$19580_value_!==void 0&&m.push(O.JSC$19580_value_);for(var G in O.childNodes_)xsr(O.childNodes_[G],m)};
v5.prototype.getKeys=function(O){var m=[];if(O){for(var G=this,B=0;B<O.length;B++){var Q=O.charAt(B);if(!G.childNodes_[Q])return[];G=G.childNodes_[Q]}qiy(G,O,m)}else qiy(this,"",m);return m};
var qiy=function(O,m,G){O.JSC$19580_value_!==void 0&&G.push(m);for(var B in O.childNodes_)qiy(O.childNodes_[B],m+B,G)};
_.v=v5.prototype;_.v.containsKey=function(O){return this.get(O)!==void 0};
_.v.containsValue=function(O){if(this.JSC$19580_value_===O)return!0;for(var m in this.childNodes_)if(this.childNodes_[m].containsValue(O))return!0;return!1};
_.v.clear=function(){this.childNodes_={};this.JSC$19580_value_=void 0};
_.v.remove=function(O){for(var m=this,G=[],B=0;B<O.length;B++){var Q=O.charAt(B);if(!m.childNodes_[Q])throw Error("Ck`"+O);G.push([m,Q]);m=m.childNodes_[Q]}O=m.JSC$19580_value_;for(delete m.JSC$19580_value_;G.length>0;)if(B=G.pop(),m=B[0],B=B[1],m.childNodes_[B].isEmpty())delete m.childNodes_[B];else break;return O};
_.v.clone=function(){return new v5(this)};
_.v.getCount=function(){return O43(this.getValues())};
_.v.isEmpty=function(){return this.JSC$19580_value_===void 0&&_.aM.isEmpty(this.childNodes_)};var b7J=function(){if(!UsA){var O=UsA=new v5,m;for(m in t8r)O.add(m,t8r[m])}},UsA,KO=function(O,m){this.types=O;
this.setters=m},t8r={a:new KO([3,
0],[function(O,m){_.tF(O,21,m)},
function(O,m){_.aE(O,56,m)}]),
al:new KO([3],[function(O,m){_.tF(O,74,m)}]),
b:new KO([3,0],[function(O,m){_.tF(O,23,m)},
function(O,m){_.aE(O,38,m)}]),
ba:new KO([0],[function(O,m){_.aE(O,85,m)}]),
bc:new KO([0],[function(O,m){_.aE(O,87,m)}]),
br:new KO([0],[function(O,m){_.aE(O,86,m)}]),
c:new KO([3,0],[function(O,m){_.tF(O,2,m)},
function(O,m){_.aE(O,39,m)}]),
cc:new KO([3],[function(O,m){_.tF(O,51,m)}]),
ci:new KO([3],[function(O,m){_.tF(O,32,m)}]),
ckm:new KO([3],[function(O,m){_.tF(O,104,m)}]),
cp:new KO([0],[function(O,m){_.aE(O,92,m)}]),
cr:new KO([3],[function(O,m){_.tF(O,108,m)}]),
cv:new KO([0],[function(O,m){_.aE(O,94,m)}]),
d:new KO([3],[function(O,m){_.tF(O,3,m)}]),
dc:new KO([5],[function(O,m){_.SS(O,99,m)}]),
df:new KO([3],[function(O,m){_.tF(O,80,m)}]),
dv:new KO([3],[function(O,m){_.tF(O,90,m)}]),
e:new KO([0],[function(O,m){_.aE(O,15,m)}]),
em:new KO([0],[function(O,m){_.aE(O,107,m)}]),
f:new KO([4],[function(O,m){_.SS(O,16,m)}]),
fg:new KO([3],[function(O,m){_.tF(O,34,m)}]),
fh:new KO([3],[function(O,m){_.tF(O,30,m)}]),
fm:new KO([3],[function(O,m){_.tF(O,84,m)}]),
fo:new KO([2],[function(O,m){_.qI(O,79,_.w8(m))}]),
ft:new KO([3],[function(O,m){_.tF(O,50,m)}]),
fv:new KO([3],[function(O,m){_.tF(O,31,m)}]),
g:new KO([3],[function(O,m){_.tF(O,14,m)}]),
gce:new KO([4],[function(O,m){_.SS(O,112,m)}]),
gd:new KO([3],[function(O,m){_.tF(O,83,m)}]),
gm:new KO([3],[function(O,m){_.tF(O,105,m)}]),
h:new KO([3,0],[function(O,m){_.tF(O,4,m)},
function(O,m){_.aE(O,13,m)}]),
i:new KO([3],[function(O,m){_.tF(O,22,m)}]),
ic:new KO([0],[function(O,m){_.aE(O,71,m)}]),
id:new KO([3],[function(O,m){_.tF(O,70,m)}]),
il:new KO([3],[function(O,m){_.tF(O,96,m)}]),
ip:new KO([3],[function(O,m){_.tF(O,54,m)}]),
iv:new KO([0],[function(O,m){_.TH(O,75,m)}]),
j:new KO([1],[function(O,m){m=m==null?m:VYy(m);_.qI(O,29,m)}]),
k:new KO([3,0],[function(O,m){_.tF(O,17,m)},
function(O,m){_.aE(O,42,m)}]),
l:new KO([0],[function(O,m){_.aE(O,44,m)}]),
lf:new KO([3],[function(O,m){_.tF(O,65,m)}]),
lo:new KO([3],[function(O,m){_.tF(O,97,m)}]),
m:new KO([0],[function(O,m){_.aE(O,63,m)}]),
md:new KO([3],[function(O,m){_.tF(O,91,m)}]),
mm:new KO([4],[function(O,m){_.SS(O,81,m)}]),
mo:new KO([3],[function(O,m){_.tF(O,73,m)}]),
mp:new KO([0],[function(O,m){_.aE(O,115,m)}]),
mv:new KO([3],[function(O,m){_.tF(O,66,m)}]),
n:new KO([3],[function(O,m){O.setCenterCrop(m)}]),
nc:new KO([3],[function(O,m){_.tF(O,55,m)}]),
nd:new KO([3],[function(O,m){_.tF(O,53,m)}]),
ng:new KO([3],[function(O,m){_.tF(O,95,m)}]),
ngm:new KO([3],[function(O,m){_.tF(O,106,m)}]),
no:new KO([3],[function(O,m){_.tF(O,37,m)}]),
ns:new KO([3],[function(O,m){_.tF(O,40,m)}]),
nt0:new KO([4],[function(O,m){_.SS(O,36,m)}]),
ntm:new KO([3],[function(O,m){_.tF(O,114,m)}]),
nu:new KO([3],[function(O,m){_.tF(O,46,m)}]),
nw:new KO([3],[function(O,m){_.tF(O,48,m)}]),
o:new KO([1,3],[function(O,m){m=m==null?m:VYy(m);_.qI(O,7,m)},
function(O,m){_.tF(O,27,m)}]),
p:new KO([3,0],[function(O,m){_.tF(O,19,m)},
function(O,m){_.aE(O,43,m)}]),
pa:new KO([3],[function(O,m){_.tF(O,61,m)}]),
pc:new KO([0],[function(O,m){_.aE(O,88,m)}]),
pd:new KO([3],[function(O,m){_.tF(O,60,m)}]),
pf:new KO([3],[function(O,m){_.tF(O,67,m)}]),
pg:new KO([3],[function(O,m){_.tF(O,72,m)}]),
pi:new KO([2],[function(O,m){_.qI(O,76,_.w8(m))}]),
pp:new KO([3],[function(O,m){_.tF(O,52,m)}]),
pt:new KO([4],[function(O,m){_.SS(O,111,m)}]),
q:new KO([4],[function(O,m){_.SS(O,28,m)}]),
r:new KO([3,0],[function(O,m){_.tF(O,6,m)},
function(O,m){_.aE(O,26,m)}]),
ra:new KO([3],[function(O,m){_.tF(O,103,m)}]),
rf:new KO([3],[function(O,m){_.tF(O,100,m)}]),
rg:new KO([3],[function(O,m){_.tF(O,59,m)}]),
rh:new KO([3],[function(O,m){_.tF(O,49,m)}]),
rj:new KO([3],[function(O,m){_.tF(O,57,m)}]),
ro:new KO([2],[function(O,m){_.qI(O,78,_.w8(m))}]),
rp:new KO([3],[function(O,m){_.tF(O,58,m)}]),
rw:new KO([3],[function(O,m){_.tF(O,35,m)}]),
rwa:new KO([3],[function(O,m){_.tF(O,64,m)}]),
rwu:new KO([3],[function(O,m){_.tF(O,41,m)}]),
s:new KO([3,0],[function(O,m){_.tF(O,33,m)},
function(O,m){O.setSize(m)}]),
sb:new KO([0],[function(O,m){_.aE(O,110,m)}]),
sc:new KO([0],[function(O,m){_.aE(O,89,m)}]),
sg:new KO([3],[function(O,m){_.tF(O,82,m)}]),
sl:new KO([0],[function(O,m){_.aE(O,109,m)}]),
sm:new KO([3],[function(O,m){_.tF(O,93,m)}]),
t:new KO([4],[function(O,m){O.setToken(m)}]),
tm:new KO([3],[function(O,m){_.tF(O,113,m)}]),
u:new KO([3],[function(O,m){_.tF(O,18,m)}]),
ut:new KO([3],[function(O,m){_.tF(O,45,m)}]),
v:new KO([0],[function(O,m){_.aE(O,62,m)}]),
vb:new KO([0],[function(O,m){_.TH(O,68,m)}]),
vf:new KO([4],[function(O,m){_.SS(O,102,m)}]),
vl:new KO([0],[function(O,m){_.TH(O,69,m)}]),
vm:new KO([3],[function(O,m){_.tF(O,98,m)}]),
w:new KO([0],[function(O,m){_.aE(O,12,m)}]),
x:new KO([0],[function(O,m){_.aE(O,9,m)}]),
y:new KO([0],[function(O,m){_.aE(O,10,m)}]),
ya:new KO([2],[function(O,m){_.qI(O,77,_.w8(m))}]),
z:new KO([0],[function(O,m){_.aE(O,11,m)}])};
b7J.prototype.parse=function(O){var m=new rxh,G=new rxh;if(O=="")O=!0;else{O=O.split("-");for(var B=!0,Q=0;Q<O.length;Q++){var H=O[Q];if(H.length==0)B=!1;else{var M=H,R=!1;var x=M;var t=M.charAt(0);t!=t.toLowerCase()&&(R=!0,x=M.charAt(0).toLowerCase()+M.substring(1));var W=UsA;for(t=1;t<=x.length;++t){var Z=W,z=x.substring(0,t);if(z.length==0?Z.isEmpty():!iUB(Z,z))break}x=t==1?null:(x=W.get(x.substring(0,t-1)))?{option:M.substring(0,t-1),value:M.substring(t-1),signed:R,attributes:x}:null;if(x){M=
[];R=[];t=!1;for(W=0;W<x.attributes.types.length;W++){Z=x.attributes.types[W];var J=x.value;z=Q;if(x.signed&&Z==1)for(var n=J.length;n<12&&z<O.length-1;)J+="-"+O[z+1],n=J.length,++z;else if(Z==2)for(;z<O.length-1&&O[z+1].match(/^[\d\.]/);)J+="-"+O[z+1],++z;n=x.attributes.setters[W];J=Wxr(this,Z)(x.option,J,m,G,n);if(J===null){t=!0;Q=z;break}else M.push(Z),R.push(J)}if(!t)for(x=0;x<R.length;x++)W=M[x],J=R[x],ZUo(this,W)(H,J);B=B&&t}else B=!1}}O=B}return new zhs(m,G,O)};
var $2=function(O,m,G,B,Q,H){Q(G,m);O=O.charAt(0);H=H(O==O.toUpperCase());Q(B,H)};
_.v=b7J.prototype;_.v.parseAndSetIntOption_=function(O,m,G,B,Q){if(m=="")return 0;isFinite(m)&&(m=String(m));m=typeof m==="string"?/^\s*-?0x/i.test(m)?parseInt(m,16):parseInt(m,10):NaN;if(isNaN(m))return 1;$2(O,m,G,B,Q,Number);return null};
_.v.logIntParseError_=function(){};
_.v.parseAndSetFloatOption_=function(O,m,G,B,Q){if(m=="")return 0;var H=Number(m);m=H==0&&_.Re(m)?NaN:H;if(isNaN(m))return 1;$2(O,m,G,B,Q,Number);return null};
_.v.logFloatParseError_=function(){};
_.v.parseAndSetBoolOption_=function(O,m,G,B,Q){if(m!="")return 2;$2(O,!0,G,B,Q,Boolean);return null};
_.v.logBoolParseError_=function(){};
_.v.parseAndSetStringOption_=function(O,m,G,B,Q){if(m=="")return 0;$2(O,m,G,B,Q,function(H){return H?"1":""});
return null};
_.v.logStringParseError_=function(){};
_.v.parseAndSetUint64Base64Option_=function(O,m,G,B,Q){if(m=="")return 0;$2(O,m,G,B,Q,function(H){return H?1:0});
return null};
var Wxr=function(O,m){switch(m){case 0:return(0,_.pd)(O.parseAndSetIntOption_,O);case 2:return(0,_.pd)(O.parseAndSetFloatOption_,O);case 3:return(0,_.pd)(O.parseAndSetBoolOption_,O);case 4:return(0,_.pd)(O.parseAndSetStringOption_,O);case 1:return(0,_.pd)(O.parseAndSetUint64Base64Option_,O);default:return function(){}}},ZUo=function(O,m){switch(m){case 0:return(0,_.pd)(O.logIntParseError_,O);
case 2:return(0,_.pd)(O.logFloatParseError_,O);case 3:return(0,_.pd)(O.logBoolParseError_,O);case 4:case 1:return(0,_.pd)(O.logStringParseError_,O);default:return function(){}}},zhs=function(O,m,G){this.valueProto_=O;
this.signatureFlagProto_=m;this.JSC$19592_valid_=G};
zhs.prototype.isValid=function(){return this.JSC$19592_valid_};var Z7K=function(O){this.JSC$19593_parser_=null;this.JSC$19593_components_=[];this.JSC$19593_parsedOptions_=null;Jxu(this,O)},V8A=function(O){O.JSC$19593_parser_==null&&(O.JSC$19593_parser_=new b7J);
return O.JSC$19593_parser_},Jxu=function(O,m){O.JSC$19593_parsedOptions_=m?typeof m==="string"?V8A(O).parse(m):m:V8A(O).parse("")},MF=function(O,m){return O==m?!1:!0};
_.v=Z7K.prototype;_.v.JSC$19595_setCrop=function(O){O=O||void 0;var m=this.JSC$19593_parsedOptions_,G=m.valueProto_;MF(O,_.IE(G,2),_.IE(m.signatureFlagProto_,2))&&_.tF(G,2,O);return this};
_.v.JSC$19595_setCircleCrop=function(O){O=O||void 0;var m=this.JSC$19593_parsedOptions_,G=m.valueProto_;MF(O,J5(G,51),J5(m.signatureFlagProto_,51))&&_.tF(G,51,O);return this};
_.v.JSC$19595_setImageCrop=function(O){O=O||void 0;var m=this.JSC$19593_parsedOptions_,G=m.valueProto_;MF(O,J5(G,32),J5(m.signatureFlagProto_,32))&&_.tF(G,32,O);return this};
_.v.JSC$19595_setHeight=function(O){var m=this.JSC$19593_parsedOptions_,G=m.valueProto_;MF(O,G.getHeight(),m.signatureFlagProto_.getHeight())&&_.aE(G,13,O);return this};
_.v.setCenterCrop=function(O){O=O||void 0;var m=this.JSC$19593_parsedOptions_,G=m.valueProto_;MF(O,_.IE(G,20),_.IE(m.signatureFlagProto_,20))&&G.setCenterCrop(O);return this};
_.v.JSC$19595_setSmartCrop=function(O){O=O||void 0;var m=this.JSC$19593_parsedOptions_,G=m.valueProto_;MF(O,_.IE(G,19),_.IE(m.signatureFlagProto_,19))&&_.tF(G,19,O);return this};
_.v.JSC$19595_setPad=function(O){O=O||void 0;var m=this.JSC$19593_parsedOptions_,G=m.valueProto_;MF(O,J5(G,60),J5(m.signatureFlagProto_,60))&&_.tF(G,60,O);return this};
_.v.JSC$19595_setSmartCropUseFace=function(O){O=O||void 0;var m=this.JSC$19593_parsedOptions_,G=m.valueProto_;MF(O,_.IE(G,67),_.IE(m.signatureFlagProto_,67))&&_.tF(G,67,O);return this};
_.v.JSC$19595_setSmartCropNoClip=function(O){O=O||void 0;var m=this.JSC$19593_parsedOptions_,G=m.valueProto_;MF(O,_.IE(G,52),_.IE(m.signatureFlagProto_,52))&&_.tF(G,52,O);return this};
_.v.setSize=function(O){var m=this.JSC$19593_parsedOptions_,G=m.valueProto_;MF(O,G.getSize(),m.signatureFlagProto_.getSize())&&G.setSize(O);return this};
_.v.setToken=function(O){O=O||void 0;var m=this.JSC$19593_parsedOptions_,G=m.valueProto_;MF(O,G.getToken(),m.signatureFlagProto_.getToken())&&G.setToken(O);return this};
_.v.JSC$19595_setWidth=function(O){var m=this.JSC$19593_parsedOptions_,G=m.valueProto_;MF(O,G.getWidth(),m.signatureFlagProto_.getWidth())&&_.aE(G,12,O);return this};
_.v.clearOptions=function(){Jxu(this,"");return this};
_.v.build=function(){this.JSC$19593_components_.length=0;var O=this.JSC$19593_parsedOptions_,m=O.valueProto_;O=O.signatureFlagProto_;rq(this,"s",m.getSize(),O.getSize());rq(this,"w",m.getWidth(),O.getWidth());Rb(this,"c",_.IE(m,2),_.IE(O,2));Rb(this,"d",_.IE(m,3),_.IE(O,3));rq(this,"h",m.getHeight(),O.getHeight());Rb(this,"s",J5(m,33),J5(O,33));Rb(this,"h",m.getHtml(),O.getHtml());Rb(this,"p",_.IE(m,19),_.IE(O,19));Rb(this,"pp",_.IE(m,52),_.IE(O,52));Rb(this,"pf",_.IE(m,67),_.IE(O,67));Rb(this,"n",
_.IE(m,20),_.IE(O,20));rq(this,"r",VR(m,26),VR(O,26));Rb(this,"r",_.IE(m,6),_.IE(O,6));Rb(this,"o",J5(m,27),J5(O,27));var G=_.jZ(m,7,_.Vo);iZ(this,"o",G,_.jZ(O,7,_.Vo));G=_.jZ(m,29,_.Vo);iZ(this,"j",G,_.jZ(O,29,_.Vo));rq(this,"x",VR(m,9),VR(O,9));rq(this,"y",VR(m,10),VR(O,10));rq(this,"z",VR(m,11),VR(O,11));Rb(this,"g",_.IE(m,14),_.IE(O,14));rq(this,"e",VR(m,15),VR(O,15));iZ(this,"f",_.XK(m,16),_.XK(O,16));Rb(this,"k",J5(m,17),J5(O,17));Rb(this,"u",J5(m,18),!0);Rb(this,"ut",J5(m,45),!0);Rb(this,"i",
J5(m,22),!0);Rb(this,"a",J5(m,21),J5(O,21));Rb(this,"b",_.IE(m,23),_.IE(O,23));rq(this,"b",VR(m,38),VR(O,38));rq(this,"c",VR(m,39),VR(O,39),16,8);iZ(this,"q",_.XK(m,28),_.XK(O,28));Rb(this,"fh",J5(m,30),J5(O,30));Rb(this,"fv",J5(m,31),J5(O,31));Rb(this,"fg",_.IE(m,34),_.IE(O,34));Rb(this,"ci",J5(m,32),J5(O,32));iZ(this,"t",m.getToken(),O.getToken());iZ(this,"nt0",_.XK(m,36),_.XK(O,36));Rb(this,"rw",_.IE(m,35),_.IE(O,35));Rb(this,"rwu",_.IE(m,41),_.IE(O,41));Rb(this,"rwa",_.IE(m,64),_.IE(O,64));Rb(this,
"nw",_.IE(m,48),_.IE(O,48));Rb(this,"rh",_.IE(m,49),_.IE(O,49));Rb(this,"no",_.IE(m,37),_.IE(O,37));Rb(this,"ns",J5(m,40),J5(O,40));rq(this,"k",VR(m,42),VR(O,42));rq(this,"p",VR(m,43),VR(O,43));rq(this,"l",VR(m,44),VR(O,44));rq(this,"v",VR(m,62),VR(O,62));Rb(this,"nu",J5(m,46),J5(O,46));Rb(this,"ft",J5(m,50),J5(O,50));Rb(this,"cc",J5(m,51),J5(O,51));Rb(this,"nd",J5(m,53),J5(O,53));Rb(this,"ip",J5(m,54),J5(O,54));Rb(this,"nc",J5(m,55),J5(O,55));rq(this,"a",VR(m,56),VR(O,56));Rb(this,"rj",J5(m,57),
J5(O,57));Rb(this,"rp",J5(m,58),J5(O,58));Rb(this,"rg",J5(m,59),J5(O,59));Rb(this,"pd",J5(m,60),J5(O,60));Rb(this,"pa",J5(m,61),J5(O,61));rq(this,"m",VR(m,63),VR(O,63));rq(this,"vb",bw(m,68),bw(O,68));rq(this,"vl",bw(m,69),bw(O,69));Rb(this,"lf",J5(m,65),J5(O,65));Rb(this,"mv",J5(m,66),J5(O,66));Rb(this,"id",J5(m,70),J5(O,70));rq(this,"ic",VR(m,71),!0);Rb(this,"pg",_.IE(m,72),_.IE(O,72));Rb(this,"mo",J5(m,73),J5(O,73));Rb(this,"al",J5(m,74),J5(O,74));rq(this,"iv",bw(m,75),bw(O,75));rq(this,"pi",ne(m,
76),ne(O,76));rq(this,"ya",ne(m,77),ne(O,77));rq(this,"ro",ne(m,78),ne(O,78));rq(this,"fo",ne(m,79),ne(O,79));Rb(this,"df",J5(m,80),J5(O,80));iZ(this,"mm",_.XK(m,81),_.XK(O,81));Rb(this,"sg",J5(m,82),J5(O,82));Rb(this,"gd",J5(m,83),J5(O,83));Rb(this,"fm",J5(m,84),J5(O,84));rq(this,"ba",VR(m,85),VR(O,85));rq(this,"br",VR(m,86),VR(O,86));rq(this,"bc",m.getBackgroundColor(),O.getBackgroundColor(),16,8);rq(this,"pc",VR(m,88),VR(O,88),16,8);rq(this,"sc",VR(m,89),VR(O,89),16,8);Rb(this,"dv",J5(m,90),J5(O,
90));Rb(this,"md",J5(m,91),J5(O,91));rq(this,"cp",VR(m,92),VR(O,92));Rb(this,"sm",J5(m,93),J5(O,93));rq(this,"cv",VR(m,94),VR(O,94));Rb(this,"ng",J5(m,95),J5(O,95));Rb(this,"il",J5(m,96),J5(O,96));Rb(this,"lo",J5(m,97),J5(O,97));Rb(this,"vm",J5(m,98),J5(O,98));iZ(this,"dc",_.XK(m,99),_.XK(O,99));Rb(this,"rf",J5(m,100),J5(O,100));iZ(this,"vf",_.XK(m,102),_.XK(O,102));Rb(this,"ra",_.IE(m,103),_.IE(O,103));Rb(this,"ckm",J5(m,104),J5(O,104));Rb(this,"gm",J5(m,105),J5(O,105));Rb(this,"ngm",J5(m,106),J5(O,
106));rq(this,"em",VR(m,107),VR(O,107));Rb(this,"cr",J5(m,108),J5(O,108));rq(this,"sl",m.getStoryboardLevel(),O.getStoryboardLevel());rq(this,"sb",VR(m,110),VR(O,110));iZ(this,"pt",_.XK(m,111),_.XK(O,111));iZ(this,"gce",_.XK(m,112),_.XK(O,112));Rb(this,"tm",J5(m,113),J5(O,113));Rb(this,"ntm",J5(m,114),J5(O,114));rq(this,"mp",VR(m,115),VR(O,115));return this.JSC$19593_components_.join("-")};
var rq=function(O,m,G,B,Q,H){if(G!=null){var M=Q==void 0||Q!=10&&Q!=16?10:Q;G=Number(G).toString(M);Q=new lYr;Q.append(M==16?"0x":"");M=Q.append;H==void 0?H="":(H-=G.length,H=H<=0?"":(0,_.meo)("0",H));M.call(Q,H);Q.append(G);bUK(O,m,Q.toString(),!!Number(B))}},Rb=function(O,m,G,B){G&&bUK(O,m,"",!!B)},iZ=function(O,m,G,B){G&&bUK(O,m,String(G),!!Number(B))},bUK=function(O,m,G,B){B&&(m=m.charAt(0).toUpperCase()+m.substring(1));
O.JSC$19593_components_.push(m+G)};_.MQ(bt,Z7K);_.v=bt.prototype;_.v.JSC$19595_setCrop=function(O){O&&x2(this);return bt.superClass_.JSC$19595_setCrop.call(this,O)};
_.v.JSC$19595_setHeight=function(O){O=O==null||O<0?void 0:O;O!=null&&this.setSize();return bt.superClass_.JSC$19595_setHeight.call(this,O)};
_.v.JSC$19595_setImageCrop=function(O){O&&x2(this);return bt.superClass_.JSC$19595_setImageCrop.call(this,O)};
_.v.JSC$19595_setCircleCrop=function(O){O&&x2(this);return bt.superClass_.JSC$19595_setCircleCrop.call(this,O)};
_.v.setSize=function(O){_.Dp(O)&&(O=Math.max(O.width,O.height));O=O==null||O<0?void 0:O;O!=null&&(this.JSC$19595_setWidth(),this.JSC$19595_setHeight());return bt.superClass_.setSize.call(this,O)};
_.v.JSC$19595_setSmartCrop=function(O){O&&x2(this);return bt.superClass_.JSC$19595_setSmartCrop.call(this,O)};
_.v.JSC$19595_setSmartCropNoClip=function(O){O&&x2(this);return bt.superClass_.JSC$19595_setSmartCropNoClip.call(this,O)};
_.v.JSC$19595_setSmartCropUseFace=function(O){O&&x2(this);return bt.superClass_.JSC$19595_setSmartCropUseFace.call(this,O)};
_.v.setCenterCrop=function(O){O&&x2(this);return bt.superClass_.setCenterCrop.call(this,O)};
_.v.JSC$19595_setPad=function(O){O&&x2(this);return bt.superClass_.JSC$19595_setPad.call(this,O)};
_.v.JSC$19595_setWidth=function(O){O=O==null||O<0?void 0:O;O!=null&&this.setSize();return bt.superClass_.JSC$19595_setWidth.call(this,O)};
var nJs=function(O){O.clearOptions();var m=O.JSC$19593_parsedOptions_,G=m.valueProto_;MF(!0,_.IE(G,3),_.IE(m.signatureFlagProto_,3))&&_.tF(G,3,!0);return O},x2=function(O){O.setCenterCrop();
O.JSC$19595_setCircleCrop();O.JSC$19595_setCrop();O.JSC$19595_setImageCrop();O.JSC$19595_setPad();O.JSC$19595_setSmartCrop();O.JSC$19595_setSmartCropNoClip();O.JSC$19595_setSmartCropUseFace()};
bt.prototype.build=function(){var O=this.JSC$19593_parsedOptions_.valueProto_;J5(O,18)||J5(O,45)?O.getSize()||this.setSize(0):(O=this.JSC$19593_parsedOptions_.valueProto_,O.getSize()||O.getWidth()||O.getHeight()||(this.setSize(),this.JSC$19595_setHeight(),this.JSC$19595_setWidth(),x2(this)));return bt.superClass_.build.call(this)};var Xv0=/^[^\/]*\/\//,qF=function(O,m){m=m===void 0?!1:m;this.original_=O;this.originalPrefix_="";(O=this.original_.match(Xv0))&&O[0]?(this.originalPrefix_=O[0],O=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):O="http://"+this.original_;this.uri_=_.Ph(O,!0);this.isFreeformUrl_=m;this.JSC$19599_valid_=!0;this.obfuscated_=!1},fdu=function(O,m){O.JSC$19601_pathPrefix_=O.JSC$19601_pathPrefix_?O.JSC$19601_pathPrefix_+("/"+m):m},UV=function(O){if(O.JSC$19601_components_==
void 0){var m=O.uri_.getPath().substring(1);
O.JSC$19601_pathPrefix_=null;if(O.isFreeformUrl_){O.JSC$19601_components_=[];if((m.match(/=/g)||[]).length>1)return O.JSC$19599_valid_=!1,O.JSC$19601_components_;var G=m.indexOf("=");G!=-1?(O.JSC$19601_components_.push(m.substr(0,G)),O.JSC$19601_components_.push(m.substr(G+1))):O.JSC$19601_components_.push(m);return O.JSC$19601_components_}O.JSC$19601_components_=m.split("/");m=O.JSC$19601_components_.length;m>2&&O.JSC$19601_components_[0]=="u"&&(fdu(O,O.JSC$19601_components_[0]+"/"+O.JSC$19601_components_[1]),
O.JSC$19601_components_.shift(),O.JSC$19601_components_.shift(),m-=2);if(m==0||m==4||m>7)return O.JSC$19599_valid_=!1,O.JSC$19601_components_;if(m==2)fdu(O,O.JSC$19601_components_[0]);else if(O.JSC$19601_components_[0]=="image")fdu(O,O.JSC$19601_components_[0]);else if(m==7||m==3)return O.JSC$19599_valid_=!1,O.JSC$19601_components_;if(m<=3){O.obfuscated_=!0;m==3&&(fdu(O,O.JSC$19601_components_[1]),O.JSC$19601_components_.shift(),--m);--m;G=O.JSC$19601_components_[m];var B=G.indexOf("=");B!=-1&&(O.JSC$19601_components_[m]=
G.substr(0,B),O.JSC$19601_components_.push(G.substr(B+1)))}}return O.JSC$19601_components_};
qF.prototype.isValid=function(){UV(this);return this.JSC$19599_valid_};
qF.prototype.isObfuscated=function(){UV(this);return this.obfuscated_};
var hhu=function(O){UV(O);return O.isFreeformUrl_},tP=function(O){UV(O);
O.JSC$19601_pathPrefix_==void 0&&(O.JSC$19601_pathPrefix_=null);return O.JSC$19601_pathPrefix_},TwJ=function(O){switch(UV(O).length){case 7:return!0;
case 6:return tP(O)==null;case 5:return!1;case 3:return!0;case 2:return tP(O)==null;case 1:return!1;default:return!1}},W5=function(O,m){if(hhu(O))a:{switch(m){case 7:m=0;
break;case 4:if(!TwJ(O)){O=null;break a}m=1;break;default:O=null;break a}O=UV(O)[m]}else if(O.isObfuscated())a:{var G=tP(O)!=null?1:0;switch(m){case 6:m=G;break;case 4:if(!TwJ(O)){O=null;break a}m=1+G;break;default:O=null;break a}O=UV(O)[m]}else a:{G=tP(O)!=null?1:0;switch(m){case 0:m=G;break;case 1:m=1+G;break;case 2:m=2+G;break;case 3:m=3+G;break;case 4:if(!TwJ(O)){O=null;break a}m=4+G;break;case 5:m=TwJ(O)?1:0;m=4+G+m;break;default:O=null;break a}O=UV(O)[m]}return O};
qF.prototype.getOptions=function(){this.options_==void 0&&(this.options_=W5(this,4));return this.options_};var Viu=function(){};
Viu.prototype.parse=function(O,m){return new zSh(O,m===void 0?!1:m)};
var zSh=function(O,m){qF.call(this,O,m===void 0?!1:m)};
_.X(zSh,qF);_.MQ(nZ,bt);var JGy;nZ.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
nZ.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var O=nZ.superClass_.build.call(this),m=[];tP(this.parsedImageUrl_)!=null&&m.push(tP(this.parsedImageUrl_));var G=hhu(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var B=this.parsedImageUrl_;B.obfuscatedData_==void 0&&(B.obfuscatedData_=W5(B,6));m.push(B.obfuscatedData_+(O?"="+O:""))}else if(G){B=m.push;var Q=this.parsedImageUrl_;Q.freeformUrlPath_===void 0&&(Q.freeformUrlPath_=W5(Q,
7));B.call(m,Q.freeformUrlPath_);O&&m.push(O)}else B=m.push,Q=this.parsedImageUrl_,Q.obfuscatedGaiaId_==void 0&&(Q.obfuscatedGaiaId_=W5(Q,0)),B.call(m,Q.obfuscatedGaiaId_),B=m.push,Q=this.parsedImageUrl_,Q.photoId_==void 0&&(Q.photoId_=W5(Q,1)),B.call(m,Q.photoId_),B=m.push,Q=this.parsedImageUrl_,Q.imageVersion_==void 0&&(Q.imageVersion_=W5(Q,2)),B.call(m,Q.imageVersion_),B=m.push,Q=this.parsedImageUrl_,Q.signature_==void 0&&(Q.signature_=W5(Q,3)),B.call(m,Q.signature_),O&&m.push(O),O=m.push,B=this.parsedImageUrl_,
B.filename_==void 0&&(B.filename_=W5(B,5)),O.call(m,B.filename_);m=G?m.join("="):m.join("/");m=_.Ph(this.protocolPrefix_+this.JSC$19607_domain_+"/"+m+(this.JSC$19607_query_?"?"+this.JSC$19607_query_:"")).toString();m.startsWith("%3a//")&&(m=m.replace("%3a//","://"));return m};var gJx=_.FY(["viewBox"]),uuu=_.FY(["width"]),jcs=_.FY(["height"]),Idh=_.FY(["fill"]),pvJ=_.FY(["id"]),Sir=_.FY(["x"]),EJ0=_.FY(["y"]);nZr.prototype.getLength=function(){return this.parsedData.length};
nZr.prototype.write=function(O){for(var m=0,G=this.parsedData.length;m<G;m++)O.put(this.parsedData[m],8)};
var juA=function(O,m){var G=new nZr(m);O.dataList.push(G);G=O.errorCorrectLevel;var B=1,Q=encodeURI(m).toString().replace(/%[0-9a-fA-F]{2}/g,"a");m=Q.length+(Q.length!=m?3:0);Q=0;for(var H=Z4.length;Q<=H;Q++){var M=0;switch(G){case 1:M=Z4[Q][0];break;case 0:M=Z4[Q][1];break;case 3:M=Z4[Q][2];break;case 2:M=Z4[Q][3]}if(m<=M)break;else B++}if(B>Z4.length)throw Error("Lk");O.typeNumber=B;O.dataCache=null};
XCA.prototype.isDark=function(O,m){if(O<0||this.moduleCount<=O||m<0||this.moduleCount<=m)throw Error("Dk`"+O+"`"+m);return this.modules[O][m]};
for(var IO9=function(O,m,G){O.moduleCount=O.typeNumber*4+17;O.modules=Array(O.moduleCount);for(var B=0;B<O.moduleCount;B++){O.modules[B]=Array(O.moduleCount);for(var Q=0;Q<O.moduleCount;Q++)O.modules[B][Q]=null}LxJ(O,0,0);LxJ(O,O.moduleCount-7,0);LxJ(O,0,O.moduleCount-7);B=CUh[O.typeNumber-1];for(Q=0;Q<B.length;Q++)for(var H=0;H<B.length;H++){var M=B[Q],R=B[H];if(O.modules[M][R]==null)for(var x=-2;x<=2;x++)for(var t=-2;t<=2;t++)O.modules[M+x][R+t]=x==-2||x==2||t==-2||t==2||x==0&&t==0?!0:!1}for(B=
8;B<O.moduleCount-8;B++)O.modules[B][6]==null&&(O.modules[B][6]=B%2==0);for(B=8;B<O.moduleCount-8;B++)O.modules[6][B]==null&&(O.modules[6][B]=B%2==0);B=O.errorCorrectLevel<<3|G;for(Q=B<<10;zx(Q)-zx(1335)>=0;)Q^=1335<<zx(Q)-zx(1335);B=(B<<10|Q)^21522;for(Q=0;Q<15;Q++)H=!m&&(B>>Q&1)==1,Q<6?O.modules[Q][8]=H:Q<8?O.modules[Q+1][8]=H:O.modules[O.moduleCount-15+Q][8]=H;for(Q=0;Q<15;Q++)H=!m&&(B>>Q&1)==1,Q<8?O.modules[8][O.moduleCount-Q-1]=H:Q<9?O.modules[8][15-Q-1+1]=H:O.modules[8][15-Q-1]=H;O.modules[O.moduleCount-
8][8]=!m;if(O.typeNumber>=7){B=O.typeNumber;for(Q=B<<12;zx(Q)-zx(7973)>=0;)Q^=7973<<zx(Q)-zx(7973);B=B<<12|Q;for(Q=0;Q<18;Q++)H=!m&&(B>>Q&1)==1,O.modules[Math.floor(Q/3)][Q%3+O.moduleCount-8-3]=H;for(Q=0;Q<18;Q++)H=!m&&(B>>Q&1)==1,O.modules[Q%3+O.moduleCount-8-3][Math.floor(Q/3)]=H}if(O.dataCache==null){Q=O.typeNumber;H=O.dataList;m=O.errorCorrectLevel;B=oJK(Q,m);if(B==void 0)throw Error("Kk`"+Q+"`"+m);M=B.length/3;m=[];for(R=0;R<M;R++){x=B[R*3];t=B[R*3+1];for(var W=B[R*3+2],Z=0;Z<x;Z++)m.push(new fOh(t,
W))}B=new hSx;for(M=0;M<H.length;M++)R=H[M],B.put(R.mode,4),B.put(R.getLength(),ldu(R.mode,Q)),R.write(B);for(M=Q=0;M<m.length;M++)Q+=m[M].dataCount;if(B.length>Q*8)throw Error("Ek`"+B.length+"`"+Q*8);for(B.length+4<=Q*8&&B.put(0,4);B.length%8!=0;)adx(B,!1);for(;!(B.length>=Q*8);){B.put(236,8);if(B.length>=Q*8)break;B.put(17,8)}H=Q=t=0;M=Array(m.length);R=Array(m.length);for(x=0;x<m.length;x++){Z=m[x].dataCount;var z=m[x].totalCount-Z;Q=Math.max(Q,Z);H=Math.max(H,z);M[x]=Array(Z);for(W=0;W<M[x].length;W++)M[x][W]=
255&B.buffer[W+t];t+=Z;W=z;Z=new Xp([1],0);for(z=0;z<W;z++)Z=Z.multiply(new Xp([1,kEs(z)],0));W=Z;Z=(new Xp(M[x],W.getLength()-1)).mod(W);R[x]=Array(W.getLength()-1);for(W=0;W<R[x].length;W++)z=W+Z.getLength()-R[x].length,R[x][W]=z>=0?Z.get(z):0}for(W=B=0;W<m.length;W++)B+=m[W].totalCount;B=Array(B);for(W=t=0;W<Q;W++)for(x=0;x<m.length;x++)W<M[x].length&&(B[t++]=M[x][W]);for(W=0;W<H;W++)for(x=0;x<m.length;x++)W<R[x].length&&(B[t++]=R[x][W]);O.dataCache=B}m=O.dataCache;B=-1;Q=O.moduleCount-1;H=7;M=
0;for(R=O.moduleCount-1;R>0;R-=2)for(R==6&&R--;;){for(x=0;x<2;x++)O.modules[Q][R-x]==null&&(t=!1,M<m.length&&(t=(m[M]>>>H&1)==1),yxr(G,Q,R-x)&&(t=!t),O.modules[Q][R-x]=t,H--,H==-1&&(M++,H=7));Q+=B;if(Q<0||O.moduleCount<=Q){Q-=B;B=-B;break}}},LxJ=function(O,m,G){for(var B=-1;B<=7;B++)if(!(m+B<=-1||O.moduleCount<=m+B))for(var Q=-1;Q<=7;Q++)G+Q<=-1||O.moduleCount<=G+Q||(O.modules[m+B][G+Q]=0<=B&&B<=6&&(Q==0||Q==6)||0<=Q&&Q<=6&&(B==0||B==6)||2<=B&&B<=4&&2<=Q&&Q<=4?!0:!1)},pCu=function(O){for(var m=0,
G=0,B=0;B<8;B++){IO9(O,!0,B);
var Q=O;for(var H=Q.moduleCount,M=0,R=0;R<H;R++)for(var x=0;x<H;x++){for(var t=0,W=Q.isDark(R,x),Z=-1;Z<=1;Z++)if(!(R+Z<0||H<=R+Z))for(var z=-1;z<=1;z++)x+z<0||H<=x+z||(Z!=0||z!=0)&&W==Q.isDark(R+Z,x+z)&&t++;t>5&&(M+=3+t-5)}for(R=0;R<H-1;R++)for(x=0;x<H-1;x++)if(t=0,Q.isDark(R,x)&&t++,Q.isDark(R+1,x)&&t++,Q.isDark(R,x+1)&&t++,Q.isDark(R+1,x+1)&&t++,t==0||t==4)M+=3;for(R=0;R<H;R++)for(x=0;x<H-6;x++)Q.isDark(R,x)&&!Q.isDark(R,x+1)&&Q.isDark(R,x+2)&&Q.isDark(R,x+3)&&Q.isDark(R,x+4)&&!Q.isDark(R,x+5)&&
Q.isDark(R,x+6)&&(M+=40);for(x=0;x<H;x++)for(R=0;R<H-6;R++)Q.isDark(R,x)&&!Q.isDark(R+1,x)&&Q.isDark(R+2,x)&&Q.isDark(R+3,x)&&Q.isDark(R+4,x)&&!Q.isDark(R+5,x)&&Q.isDark(R+6,x)&&(M+=40);for(x=t=0;x<H;x++)for(R=0;R<H;R++)Q.isDark(R,x)&&t++;Q=M+=Math.abs(100*t/H/H-50)/5*10;if(B==0||m>Q)m=Q,G=B}return G},CUh=[[],
[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]],zx=function(O){for(var m=0;O!=0;)m++,O>>>=1;return m},yxr=function(O,m,G){switch(O){case 0:return(m+G)%2==0;
case 1:return m%2==0;case 2:return G%3==0;case 3:return(m+G)%3==0;case 4:return(Math.floor(m/2)+Math.floor(G/3))%2==0;case 5:return m*G%2+m*G%3==0;case 6:return(m*G%2+m*G%3)%2==0;case 7:return(m*G%3+(m+G)%2)%2==0;default:throw Error("Fk`"+O);}},ldu=function(O,m){if(1<=m&&m<10)switch(O){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Gk`"+O);}else if(m<27)switch(O){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Gk`"+O);}else if(m<41)switch(O){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Gk`"+O);}else throw Error("Hk`"+m);},JP=function(O){if(O<1)throw Error("Ik`"+O);
return cx0[O]},kEs=function(O){for(;O<0;)O+=255;
for(;O>=256;)O-=255;return V5[O]},V5=Array(256),cx0=Array(256),Yir=0;Yir<8;Yir++)V5[Yir]=1<<Yir;
for(var bZ=8;bZ<256;bZ++)V5[bZ]=V5[bZ-4]^V5[bZ-5]^V5[bZ-6]^V5[bZ-8];for(var dsr=0;dsr<255;dsr++)cx0[V5[dsr]]=dsr;Xp.prototype.get=function(O){return this.num[O]};
Xp.prototype.getLength=function(){return this.num.length};
Xp.prototype.multiply=function(O){for(var m=Array(this.getLength()+O.getLength()-1),G=0;G<this.getLength();G++)for(var B=0;B<O.getLength();B++)m[G+B]^=kEs(JP(this.get(G))+JP(O.get(B)));return new Xp(m,0)};
Xp.prototype.mod=function(O){if(this.getLength()-O.getLength()<0)return this;for(var m=JP(this.get(0))-JP(O.get(0)),G=Array(this.getLength()),B=0;B<this.getLength();B++)G[B]=this.get(B);for(B=0;B<O.getLength();B++)G[B]^=kEs(JP(O.get(B))+m);return(new Xp(G,0)).mod(O)};
var wvr=[[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]],oJK=function(O,m){switch(m){case 1:return wvr[(O-1)*4];case 0:return wvr[(O-1)*4+1];case 3:return wvr[(O-1)*4+2];case 2:return wvr[(O-1)*4+3]}};
hSx.prototype.get=function(O){return(this.buffer[Math.floor(O/8)]>>>7-O%8&1)==1};
hSx.prototype.put=function(O,m){for(var G=0;G<m;G++)adx(this,(O>>>m-G-1&1)==1)};
var adx=function(O,m){var G=Math.floor(O.length/8);O.buffer.length<=G&&O.buffer.push(0);m&&(O.buffer[G]|=128>>>O.length%8);O.length++},Z4=[[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]],uVo=function(){var O=function(m,G){this.JSC$19627__el=m;this.JSC$19627__htOption=G};
O.prototype.draw=function(m){function G(W,Z){W=document.createElementNS("http://www.w3.org/2000/svg",W);for(var z in Z)Z.hasOwnProperty(z)&&(z==="href"?_.AN3(W,Z[z]):_.rC([_.x6(gJx),_.x6(uuu),_.x6(jcs),_.x6(Idh),_.x6(pvJ),_.x6(Sir),_.x6(EJ0)],W,z,Z[z]));return W}
var B=this.JSC$19627__htOption,Q=this.JSC$19627__el,H=m.moduleCount;this.clear();var M=G("svg",{viewBox:"0 0 "+String(H)+" "+String(H),width:"100%",height:"100%",fill:B.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});Q.appendChild(M);M.appendChild(G("rect",{fill:B.colorLight,width:"100%",height:"100%"}));M.appendChild(G("rect",{fill:B.colorDark,width:"1",height:"1",id:"template"}));for(var R=0;R<H;R++)for(var x=0;x<H;x++)if(m.isDark(R,x)){var t=G("use",{x:String(R),y:String(x),href:"#template"});
M.appendChild(t)}};
O.prototype.clear=function(){for(;this.JSC$19627__el.hasChildNodes();)this.JSC$19627__el.removeChild(this.JSC$19627__el.lastChild)};
return O}(),gZo=document.documentElement.tagName.toLowerCase()==="svg"?uVo:typeof CanvasRenderingContext2D!="undefined"?function(){var O=function(m,G){this._bIsPainted=!1;
TX0();this.JSC$19627__htOption=G;this._elCanvas=document.createElement("canvas");this._elCanvas.width=G.width;this._elCanvas.height=G.height;m.appendChild(this._elCanvas);this.JSC$19627__el=m;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$19627__el.appendChild(this._elImage);this._bSupportDataURI=null};
O.prototype._onMakeImage=function(){var m=this._elCanvas.toDataURL("image/png");this._elImage.src=m;this._elImage.style.display="block";this._elCanvas.style.display="none"};
O.prototype._safeSetDataURI=function(m,G){var B=this;B._fFail=G;B._fSuccess=m;B._bSupportDataURI===null?(m=_.fd("IMG"),G=function(){B._bSupportDataURI=!1;B._fFail&&B._fFail.call(B)},m.onabort=G,m.onerror=G,m.onload=function(){B._bSupportDataURI=!0;
B._fSuccess&&B._fSuccess.call(B)},m.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):B._bSupportDataURI===!0&&B._fSuccess?B._fSuccess.call(B):B._bSupportDataURI===!1&&B._fFail&&B._fFail.call(B)};
O.prototype.draw=function(m){var G=this._oContext,B=this.JSC$19627__htOption,Q=m.moduleCount,H=B.width/Q,M=B.height/Q,R=Math.round(H),x=Math.round(M);this._elImage.style.display="none";this.clear();for(var t=0;t<Q;t++)for(var W=0;W<Q;W++){var Z=m.isDark(t,W),z=W*H,J=t*M;G.strokeStyle=Z?B.colorDark:B.colorLight;G.lineWidth=1;G.fillStyle=Z?B.colorDark:B.colorLight;G.fillRect(z,J,H,M);G.strokeRect(Math.floor(z)+.5,Math.floor(J)+.5,R,x);G.strokeRect(Math.ceil(z)-.5,Math.ceil(J)-.5,R,x)}this._bIsPainted=
!0};
O.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
O.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
O.prototype.round=function(m){return m?Math.floor(m*1E3)/1E3:m};
return O}():function(){var O=function(m,G){this.JSC$19627__el=m;
this.JSC$19627__htOption=G};
O.prototype.draw=function(m){for(var G=this.JSC$19627__htOption,B=this.JSC$19627__el,Q=m.moduleCount,H=Math.floor(G.width/Q),M=Math.floor(G.height/Q),R=['<table style="border:0;border-collapse:collapse;">'],x=0;x<Q;x++){R.push("<tr>");for(var t=0;t<Q;t++)R.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+H+"px;height:"+M+"px;background-color:"+(m.isDark(x,t)?G.colorDark:G.colorLight)+';"></td>');R.push("</tr>")}R.push("</table>");m=R.join("");m=_.wsm(_.Dep,m);_.MG(B,m);
m=B.childNodes[0];Q=(G.width-m.offsetWidth)/2;H=(G.height-m.offsetHeight)/2;Q>0&&H>0&&(m.style.margin=H+"px "+Q+"px")};
O.prototype.clear=function(){this.JSC$19627__el.textContent=""};
return O}();
ScB.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19630__android||this.JSC$19630__android>=3)&&this._oDrawing.makeImage()};
ScB.prototype.clear=function(){this._oDrawing.clear()};
_.Qf.QRCode=ScB;var ehJ={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var nO=function(){};
nO.prototype.stringify=function(O){return _.Qf.JSON.stringify(O,void 0)};
nO.prototype.parse=function(O){return _.Qf.JSON.parse(O,void 0)};var Dsr=function(){_.jB.call(this,"z")};
_.MQ(Dsr,_.jB);var scr=function(){_.jB.call(this,"y")};
_.MQ(scr,_.jB);var Nwr=null,PUs=function(){return Nwr=Nwr||new _.Ly},Fxx=function(O){_.jB.call(this,"serverreachability",O)};
_.MQ(Fxx,_.jB);var Xf=function(O){var m=PUs();m.dispatchEvent(new Fxx(m,O))},AxK=function(O,m){_.jB.call(this,"statevent",O);
this.stat=m};
_.MQ(AxK,_.jB);var fO=function(O){var m=PUs();m.dispatchEvent(new AxK(m,O))},OGy=function(O,m,G,B){_.jB.call(this,"timingevent",O);
this.size=m;this.rtt=G;this.retries=B};
_.MQ(OGy,_.jB);var m4b=function(O,m,G){var B=PUs();B.dispatchEvent(new OGy(B,O,m,G))},hP=function(O,m){if(typeof O!=="function")throw Error("Mk");
return _.Qf.setTimeout(function(){O()},m)};var Tx=function(){this.redactEnabled_=!0};
Tx.prototype.disableRedact=function(){this.redactEnabled_=!1};
var GvK=function(O,m,G,B,Q,H){O.info(function(){if(O.redactEnabled_)if(H){var M="";for(var R=H.split("&"),x=0;x<R.length;x++){var t=R[x].split("=");if(t.length>1){var W=t[0];t=t[1];var Z=W.split("_");M=Z.length>=2&&Z[1]=="type"?M+(W+"="+t+"&"):M+(W+"=redacted&")}}}else M=null;else M=H;return"XMLHTTP REQ ("+B+") [attempt "+Q+"]: "+m+"\n"+G+"\n"+M})},B2r=function(O,m,G,B,Q,H,M){O.info(function(){return"XMLHTTP RESP ("+B+") [ attempt "+Q+"]: "+m+"\n"+G+"\n"+H+" "+M})},gq=function(O,m,G,B){O.info(function(){return"XMLHTTP TEXT ("+
m+"): "+Qih(O,G)+(B?" "+B:"")})},HGB=function(O,m){O.info(function(){return"TIMEOUT: "+m})};
Tx.prototype.debug=function(){};
Tx.prototype.info=function(){};
Tx.prototype.warning=function(){};
var Qih=function(O,m){if(!O.redactEnabled_)return m;if(!m)return null;try{var G=JSON.parse(m);if(G)for(var B=0;B<G.length;B++)if(Array.isArray(G[B])){var Q=G[B];if(!(Q.length<2)){var H=Q[1];if(Array.isArray(H)&&!(H.length<1)){var M=H[0];if(M!="noop"&&M!="stop"&&M!="close")for(var R=1;R<H.length;R++)H[R]=""}}}return(0,_.ck)(G)}catch(x){return O.debug("Exception parsing expected JS array - probably was not JS"),m}};var uZ=function(O,m,G,B,Q){this.JSC$19652_channel_=O;this.JSC$19652_channelDebug_=m;this.sid_=G;this.JSC$19652_rid_=B;this.JSC$19652_retryId_=Q||1;this.JSC$19652_eventHandler_=new _.xf(this);this.timeout_=45E3;this.JSC$19652_extraHeaders_=null;this.JSC$19652_successful_=!1;this.JSC$19652_postData_=this.JSC$19652_requestUri_=this.JSC$19652_baseUri_=this.JSC$19652_type_=this.JSC$19652_requestStartTime_=this.JSC$19652_watchDogTimeoutTime_=this.JSC$19652_watchDogTimerId_=null;this.JSC$19652_pendingMessages_=
[];this.JSC$19652_xmlHttp_=null;this.JSC$19652_xmlHttpChunkStart_=0;this.JSC$19652_lastError_=this.JSC$19652_verb_=null;this.JSC$19652_lastStatusCode_=-1;this.JSC$19652_cancelled_=!1;this.JSC$19652_readyStateChangeThrottleMs_=0;this.JSC$19652_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new vLA},vLA=function(){this.JSC$19654_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},KOb=function(O,m){switch(O){case 0:return"Non-200 return code ("+m+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},$4J={},MLu={};
uZ.prototype.setTimeout=function(O){this.timeout_=O};
var Rer=function(O,m,G){O.JSC$19652_type_=1;O.JSC$19652_baseUri_=_.be(m.clone());O.JSC$19652_postData_=G;O.decodeChunks_=!0;reA(O,null)},reA=function(O,m){O.JSC$19652_requestStartTime_=Date.now();
iGr(O);O.JSC$19652_requestUri_=O.JSC$19652_baseUri_.clone();qw(O.JSC$19652_requestUri_,"t",O.JSC$19652_retryId_);O.JSC$19652_xmlHttpChunkStart_=0;var G=O.JSC$19652_channel_.JSC$19671_supportsCrossDomainXhrs_;O.fetchResponseState_=new vLA;O.JSC$19652_xmlHttp_=x4r(O.JSC$19652_channel_,G?m:null,!O.JSC$19652_postData_);O.JSC$19652_readyStateChangeThrottleMs_>0&&(O.JSC$19652_readyStateChangeThrottle_=new _.Pu((0,_.pd)(O.JSC$19656_xmlHttpHandler_,O,O.JSC$19652_xmlHttp_),O.JSC$19652_readyStateChangeThrottleMs_));
O.JSC$19652_eventHandler_.listen(O.JSC$19652_xmlHttp_,"readystatechange",O.JSC$19656_readyStateChangeHandler_);m=O.JSC$19652_extraHeaders_?_.aM.clone(O.JSC$19652_extraHeaders_):{};O.JSC$19652_postData_?(O.JSC$19652_verb_||(O.JSC$19652_verb_="POST"),m["Content-Type"]="application/x-www-form-urlencoded",O.JSC$19652_xmlHttp_.send(O.JSC$19652_requestUri_,O.JSC$19652_verb_,O.JSC$19652_postData_,m)):(O.JSC$19652_verb_="GET",O.JSC$19652_xmlHttp_.send(O.JSC$19652_requestUri_,O.JSC$19652_verb_,null,m));Xf(1);
GvK(O.JSC$19652_channelDebug_,O.JSC$19652_verb_,O.JSC$19652_requestUri_,O.JSC$19652_rid_,O.JSC$19652_retryId_,O.JSC$19652_postData_)};
uZ.prototype.JSC$19656_readyStateChangeHandler_=function(O){O=O.target;var m=this.JSC$19652_readyStateChangeThrottle_;m&&_.d6(O)==3?(this.JSC$19652_channelDebug_.debug("Throttling readystatechange."),m.fire()):this.JSC$19656_xmlHttpHandler_(O)};
uZ.prototype.JSC$19656_xmlHttpHandler_=function(O){try{O==this.JSC$19652_xmlHttp_?qoh(this):this.JSC$19652_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(m){this.JSC$19652_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),U4y(this)}finally{}};
var qoh=function(O){var m=_.d6(O.JSC$19652_xmlHttp_),G=O.JSC$19652_xmlHttp_.JSC$9797_lastErrorCode_,B=O.JSC$19652_xmlHttp_.getStatus();if(!(m<3||m==3&&!U4y(O))){O.JSC$19652_cancelled_||m!=4||G==7||(G==8||B<=0?Xf(3):Xf(2));tLy(O);var Q=O.JSC$19652_xmlHttp_.getStatus();O.JSC$19652_lastStatusCode_=Q;G=WO0(O);U4y(O)||O.JSC$19652_channelDebug_.debug(function(){return"No response text for uri "+O.JSC$19652_requestUri_+" status "+Q});
O.JSC$19652_successful_=Q==200;B2r(O.JSC$19652_channelDebug_,O.JSC$19652_verb_,O.JSC$19652_requestUri_,O.JSC$19652_rid_,O.JSC$19652_retryId_,m,Q);if(O.JSC$19652_successful_){if(O.decodeInitialResponse_&&!O.initialResponseDecoded_)if(B=ZGb(O))gq(O.JSC$19652_channelDebug_,O.JSC$19652_rid_,B,"Initial handshake response via X-HTTP-Initial-Response"),O.initialResponseDecoded_=!0,zey(O,B);else{O.JSC$19652_successful_=!1;O.JSC$19652_lastError_=3;fO(12);O.JSC$19652_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
O.JSC$19652_rid_+")");jp(O);Ib(O);return}O.decodeChunks_?Jex(O,m,G):(gq(O.JSC$19652_channelDebug_,O.JSC$19652_rid_,G,null),zey(O,G));m==4&&jp(O);O.JSC$19652_successful_&&!O.JSC$19652_cancelled_&&(m==4?VL0(O.JSC$19652_channel_,O):(O.JSC$19652_successful_=!1,iGr(O)))}else vpr(O.JSC$19652_xmlHttp_),Q==400&&G.indexOf("Unknown SID")>0?(O.JSC$19652_lastError_=3,fO(12),O.JSC$19652_channelDebug_.warning("XMLHTTP Unknown SID ("+O.JSC$19652_rid_+")")):(O.JSC$19652_lastError_=0,fO(13),O.JSC$19652_channelDebug_.warning("XMLHTTP Bad status "+
Q+" ("+O.JSC$19652_rid_+")")),jp(O),Ib(O)}},ZGb=function(O){return O.JSC$19652_xmlHttp_&&(O=xP(O.JSC$19652_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Re(O)?O:null},WO0=function(O){if(!bG3(O))return O.JSC$19652_xmlHttp_.getResponseText();
var m=O.JSC$19652_xmlHttp_.getResponse();if(m==="")return"";var G="",B=m.length,Q=_.d6(O.JSC$19652_xmlHttp_)==4;if(!O.fetchResponseState_.JSC$19654_textDecoder){if(typeof TextDecoder==="undefined")return jp(O),Ib(O),"";O.fetchResponseState_.JSC$19654_textDecoder=new _.Qf.TextDecoder}for(var H=0;H<B;H++)O.fetchResponseState_.responseArrivedForFetch=!0,G+=O.fetchResponseState_.JSC$19654_textDecoder.decode(m[H],{stream:!(Q&&H==B-1)});m.length=0;O.fetchResponseState_.responseBuffer+=G;O.JSC$19652_xmlHttpChunkStart_=
0;return O.fetchResponseState_.responseBuffer},U4y=function(O){return O.JSC$19652_xmlHttp_?O.fetchResponseState_.responseArrivedForFetch?!0:!(!O.JSC$19652_xmlHttp_.getResponseText()&&!O.JSC$19652_xmlHttp_.getResponse()):!1},bG3=function(O){return O.JSC$19652_xmlHttp_?O.JSC$19652_verb_=="GET"&&O.JSC$19652_type_!=2&&O.JSC$19652_channel_.usesFetchStreams_:!1},Jex=function(O,m,G){for(var B=!0,Q;!O.JSC$19652_cancelled_&&O.JSC$19652_xmlHttpChunkStart_<G.length;)if(Q=nLs(O,G),Q==MLu){m==4&&(O.JSC$19652_lastError_=
4,fO(14),B=!1);
gq(O.JSC$19652_channelDebug_,O.JSC$19652_rid_,null,"[Incomplete Response]");break}else if(Q==$4J){O.JSC$19652_lastError_=4;fO(15);gq(O.JSC$19652_channelDebug_,O.JSC$19652_rid_,G,"[Invalid Chunk]");B=!1;break}else gq(O.JSC$19652_channelDebug_,O.JSC$19652_rid_,Q,null),zey(O,Q);bG3(O)&&O.JSC$19652_xmlHttpChunkStart_!=0&&(O.fetchResponseState_.responseBuffer=O.fetchResponseState_.responseBuffer.slice(O.JSC$19652_xmlHttpChunkStart_),O.JSC$19652_xmlHttpChunkStart_=0);m!=4||G.length!=0||O.fetchResponseState_.responseArrivedForFetch||
(O.JSC$19652_lastError_=1,fO(16),B=!1);O.JSC$19652_successful_=O.JSC$19652_successful_&&B;B?G.length>0&&!O.firstByteReceived_&&(O.firstByteReceived_=!0,m=O.JSC$19652_channel_,m.JSC$19671_backChannelRequest_==O&&m.detectBufferingProxy_&&!m.bpDetectionDone_&&(m.JSC$19671_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+G.length),XKh(m),m.bpDetectionDone_=!0,fO(11))):(gq(O.JSC$19652_channelDebug_,O.JSC$19652_rid_,G,"[Invalid Chunked Response]"),jp(O),Ib(O))},nLs=function(O,m){var G=
O.JSC$19652_xmlHttpChunkStart_,B=m.indexOf("\n",G);
if(B==-1)return MLu;G=Number(m.substring(G,B));if(isNaN(G))return $4J;B+=1;if(B+G>m.length)return MLu;m=m.slice(B,B+G);O.JSC$19652_xmlHttpChunkStart_=B+G;return m};
uZ.prototype.cancel=function(){this.JSC$19652_cancelled_=!0;jp(this)};
var iGr=function(O){O.JSC$19652_watchDogTimeoutTime_=Date.now()+O.timeout_;fmy(O,O.timeout_)},fmy=function(O,m){if(O.JSC$19652_watchDogTimerId_!=null)throw Error("Nk");
O.JSC$19652_watchDogTimerId_=hP((0,_.pd)(O.JSC$19656_onWatchDogTimeout_,O),m)},tLy=function(O){O.JSC$19652_watchDogTimerId_&&(_.Qf.clearTimeout(O.JSC$19652_watchDogTimerId_),O.JSC$19652_watchDogTimerId_=null)};
uZ.prototype.JSC$19656_onWatchDogTimeout_=function(){this.JSC$19652_watchDogTimerId_=null;var O=Date.now();O-this.JSC$19652_watchDogTimeoutTime_>=0?(HGB(this.JSC$19652_channelDebug_,this.JSC$19652_requestUri_),this.JSC$19652_type_!=2&&(Xf(3),fO(17)),jp(this),this.JSC$19652_lastError_=2,Ib(this)):(this.JSC$19652_channelDebug_.warning("WatchDog timer called too early"),fmy(this,this.JSC$19652_watchDogTimeoutTime_-O))};
var Ib=function(O){O.JSC$19652_channel_.state_==0||O.JSC$19652_cancelled_||VL0(O.JSC$19652_channel_,O)},jp=function(O){tLy(O);
_.Kd(O.JSC$19652_readyStateChangeThrottle_);O.JSC$19652_readyStateChangeThrottle_=null;O.JSC$19652_eventHandler_.removeAll();if(O.JSC$19652_xmlHttp_){var m=O.JSC$19652_xmlHttp_;O.JSC$19652_xmlHttp_=null;m.abort();m.dispose()}};
uZ.prototype.getLastError=function(){return this.JSC$19652_lastError_};
var zey=function(O,m){try{var G=O.JSC$19652_channel_;if(G.state_!=0&&(G.JSC$19671_backChannelRequest_==O||he3(G.forwardChannelRequestPool_,O)))if(!O.initialResponseDecoded_&&he3(G.forwardChannelRequestPool_,O)&&G.state_==3){try{var B=G.wireCodec_.JSC$19666_parser_.parse(m)}catch(R){B=null}if(Array.isArray(B)&&B.length==3){m=B;if(m[0]==0)a:if(G.JSC$19671_channelDebug_.debug("Server claims our backchannel is missing."),G.JSC$19671_backChannelTimerId_)G.JSC$19671_channelDebug_.debug("But we are currently starting the request.");
else{if(G.JSC$19671_backChannelRequest_)if(G.JSC$19671_backChannelRequest_.JSC$19652_requestStartTime_+3E3<O.JSC$19652_requestStartTime_)T2o(G),gLb(G);else break a;else G.JSC$19671_channelDebug_.warning("We do not have a BackChannel established");udb(G);fO(18)}else{G.JSC$19671_lastPostResponseArrayId_=m[1];var Q=G.JSC$19671_lastPostResponseArrayId_-G.JSC$19671_lastArrayId_;if(0<Q){var H=m[2];G.JSC$19671_channelDebug_.debug(H+" bytes (in "+Q+" arrays) are outstanding on the BackChannel");H<37500&&
G.enableStreaming_&&G.JSC$19671_backChannelRetryCount_==0&&!G.JSC$19671_deadBackChannelTimerId_&&(G.JSC$19671_deadBackChannelTimerId_=hP((0,_.pd)(G.JSC$19673_onBackChannelDead_,G),6E3))}}if(jiK(G.forwardChannelRequestPool_)<=1&&G.forwardChannelFlushedCallback_){try{G.forwardChannelFlushedCallback_()}catch(R){}G.forwardChannelFlushedCallback_=void 0}}else G.JSC$19671_channelDebug_.debug("Bad POST response data returned"),pO(G,11)}else if((O.initialResponseDecoded_||G.JSC$19671_backChannelRequest_==
O)&&T2o(G),!_.Re(m)){var M=G.wireCodec_.JSC$19666_parser_.parse(m);G.onInput_(M,O)}Xf(4)}catch(R){}};var ImJ=function(O,m){this.JSC$19659_mapId=O;this.map=m;this.context=null};var pKo=function(O){this.maxPoolSizeConfigured_=O||10;_.Qf.PerformanceNavigationTiming?(O=_.Qf.performance.getEntriesByType("navigation"),O=O.length>0&&(O[0].nextHopProtocol=="hq"||O[0].nextHopProtocol=="h2")):O=!!(_.Qf.chrome&&_.Qf.chrome.loadTimes&&_.Qf.chrome.loadTimes()&&_.Qf.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19662_maxSize_=O?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19662_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19662_request_=null;this.JSC$19662_pendingMessages_=
[]},SoA=function(O){return O.JSC$19662_request_?!0:O.requestPool_?O.requestPool_.size>=O.JSC$19662_maxSize_:!1},jiK=function(O){return O.JSC$19662_request_?1:O.requestPool_?O.requestPool_.size:0},he3=function(O,m){return O.JSC$19662_request_?O.JSC$19662_request_==m:O.requestPool_?O.requestPool_.has(m):!1},ELr=function(O,m){O.requestPool_?O.requestPool_.add(m):O.JSC$19662_request_=m},LOK=function(O,m){O.JSC$19662_request_&&O.JSC$19662_request_==m?O.JSC$19662_request_=null:O.requestPool_&&O.requestPool_.has(m)&&
O.requestPool_.delete(m)};
pKo.prototype.cancel=function(){this.JSC$19662_pendingMessages_=C8u(this);if(this.JSC$19662_request_)this.JSC$19662_request_.cancel(),this.JSC$19662_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var O=_.K(this.requestPool_.values()),m=O.next();!m.done;m=O.next())m.value.cancel();this.requestPool_.clear()}};
var C8u=function(O){if(O.JSC$19662_request_!=null)return O.JSC$19662_pendingMessages_.concat(O.JSC$19662_request_.JSC$19652_pendingMessages_);if(O.requestPool_!=null&&O.requestPool_.size!==0){var m=O.JSC$19662_pendingMessages_;O=_.K(O.requestPool_.values());for(var G=O.next();!G.done;G=O.next())m=m.concat(G.value.JSC$19652_pendingMessages_);return m}return _.cM(O.JSC$19662_pendingMessages_)},oL3=function(O,m){O.JSC$19662_pendingMessages_=O.JSC$19662_pendingMessages_.concat(m)};var lmK=function(O,m){var G=new Tx;G.debug("TestLoadImage: loading "+O);if(_.Qf.Image){var B=new Image;B.onload=_.hK(Sp,G,"TestLoadImage: loaded",!0,m,B);B.onerror=_.hK(Sp,G,"TestLoadImage: error",!1,m,B);B.onabort=_.hK(Sp,G,"TestLoadImage: abort",!1,m,B);B.ontimeout=_.hK(Sp,G,"TestLoadImage: timeout",!1,m,B);_.Qf.setTimeout(function(){if(B.ontimeout)B.ontimeout()},1E4);
B.src=O}else m(!1)},amo=function(O,m){var G=new Tx,B=new AbortController,Q=setTimeout(function(){B.abort();
Sp(G,"TestPingServer: timeout",!1,m)},1E4);
fetch(O,{signal:B.signal}).then(function(H){clearTimeout(Q);H.ok?Sp(G,"TestPingServer: ok",!0,m):Sp(G,"TestPingServer: server error",!1,m)}).catch(function(){clearTimeout(Q);
Sp(G,"TestPingServer: error",!1,m)})},Sp=function(O,m,G,B,Q){try{O.debug(m),Q&&(Q.onload=null,Q.onerror=null,Q.onabort=null,Q.ontimeout=null),B(G)}catch(H){}};var kv0=function(){this.JSC$19666_parser_=new nO};var EV=function(O,m,G){return G&&G.internalChannelParams?G.internalChannelParams[O]||m:m},LO=function(O){this.serverVersion_=0;
this.JSC$19671_outgoingMaps_=[];this.JSC$19671_channelDebug_=new Tx;this.JSC$19671_hostPrefix_=this.JSC$19671_backChannelUri_=this.JSC$19671_forwardChannelUri_=this.JSC$19671_path_=this.JSC$19671_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19671_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19671_extraHeaders_=null;this.JSC$19671_nextMapId_=this.JSC$19671_nextRid_=0;this.JSC$19671_failFast_=EV("failFast",!1,O);this.enableStreaming_=this.JSC$19671_deadBackChannelTimerId_=
this.JSC$19671_backChannelTimerId_=this.JSC$19671_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19671_lastPostResponseArrayId_=this.JSC$19671_lastArrayId_=-1;this.JSC$19671_backChannelAttemptId_=this.JSC$19671_backChannelRetryCount_=this.JSC$19671_forwardChannelRetryCount_=0;this.JSC$19671_baseRetryDelayMs_=EV("baseRetryDelayMs",5E3,O);this.JSC$19671_retryDelaySeedMs_=EV("retryDelaySeedMs",1E4,O);this.JSC$19671_forwardChannelMaxRetries_=
EV("forwardChannelMaxRetries",2,O);this.JSC$19671_forwardChannelRequestTimeoutMs_=EV("forwardChannelRequestTimeoutMs",2E4,O);this.JSC$19671_xmlHttpFactory_=O&&O.xmlHttpFactory||void 0;this.networkTestUrl_=O&&O.networkTestUrl||void 0;this.usesFetchStreams_=O&&O.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19671_supportsCrossDomainXhrs_=O&&O.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new pKo(O&&O.concurrentRequestLimit);this.wireCodec_=new kv0;this.fastHandshake_=
O&&O.fastHandshake||!1;this.encodeInitMessageHeaders_=O&&O.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19671_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=O&&O.blockingHandshake||!1;O&&O.disableRedact&&this.JSC$19671_channelDebug_.disableRedact();O&&O.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
O&&O.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;O&&O.longPollingTimeout&&O.longPollingTimeout>0&&(this.longPollingTimeout_=O.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
LO.prototype.JSC$19673_channelVersion_=8;LO.prototype.state_=1;
LO.prototype.connect=function(O,m,G,B){this.JSC$19671_channelDebug_.debug("connect()");fO(0);this.JSC$19671_path_=O;this.JSC$19671_extraParams_=m||{};G&&B!==void 0&&(this.JSC$19671_extraParams_.OSID=G,this.JSC$19671_extraParams_.OAID=B);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19671_channelDebug_.debug("connectChannel_()");O=yes(this,null,this.JSC$19671_path_);this.JSC$19671_channelDebug_.debug("GetForwardChannelUri: "+O);this.JSC$19671_forwardChannelUri_=O;ceu(this)};
LO.prototype.disconnect=function(){this.JSC$19671_channelDebug_.debug("disconnect()");Yo3(this);if(this.state_==3){var O=this.JSC$19671_nextRid_++,m=this.JSC$19671_forwardChannelUri_.clone();_.AF(m,"SID",this.sid_);_.AF(m,"RID",O);_.AF(m,"TYPE","terminate");CO(this,m);O=new uZ(this,this.JSC$19671_channelDebug_,this.sid_,O);O.JSC$19652_type_=2;O.JSC$19652_baseUri_=_.be(m.clone());m=!1;if(_.Qf.navigator&&_.Qf.navigator.sendBeacon)try{m=_.Qf.navigator.sendBeacon(O.JSC$19652_baseUri_.toString(),"")}catch(G){}!m&&
_.Qf.Image&&((new Image).src=O.JSC$19652_baseUri_,m=!0);m||(O.JSC$19652_xmlHttp_=x4r(O.JSC$19652_channel_,null),O.JSC$19652_xmlHttp_.send(O.JSC$19652_baseUri_));O.JSC$19652_requestStartTime_=Date.now();iGr(O)}d4r(this)};
var gLb=function(O){O.JSC$19671_backChannelRequest_&&(XKh(O),O.JSC$19671_backChannelRequest_.cancel(),O.JSC$19671_backChannelRequest_=null)},Yo3=function(O){gLb(O);
O.JSC$19671_backChannelTimerId_&&(_.Qf.clearTimeout(O.JSC$19671_backChannelTimerId_),O.JSC$19671_backChannelTimerId_=null);T2o(O);O.forwardChannelRequestPool_.cancel();O.JSC$19671_forwardChannelTimerId_&&(typeof O.JSC$19671_forwardChannelTimerId_==="number"&&_.Qf.clearTimeout(O.JSC$19671_forwardChannelTimerId_),O.JSC$19671_forwardChannelTimerId_=null)};
LO.prototype.getState=function(){return this.state_};
var ceu=function(O){SoA(O.forwardChannelRequestPool_)||O.JSC$19671_forwardChannelTimerId_||(O.JSC$19671_forwardChannelTimerId_=!0,_.o7(O.JSC$19673_onStartForwardChannelTimer_,O),O.JSC$19671_forwardChannelRetryCount_=0)},ee3=function(O,m){if(jiK(O.forwardChannelRequestPool_)>=O.forwardChannelRequestPool_.JSC$19662_maxSize_-(O.JSC$19671_forwardChannelTimerId_?1:0))return!1;
if(O.JSC$19671_forwardChannelTimerId_)return O.JSC$19671_channelDebug_.debug("Use the retry request that is already scheduled."),O.JSC$19671_outgoingMaps_=m.JSC$19652_pendingMessages_.concat(O.JSC$19671_outgoingMaps_),!0;if(O.state_==1||O.state_==2||O.JSC$19671_forwardChannelRetryCount_>=(O.JSC$19671_failFast_?0:O.JSC$19671_forwardChannelMaxRetries_))return!1;O.JSC$19671_channelDebug_.debug("Going to retry POST");O.JSC$19671_forwardChannelTimerId_=hP((0,_.pd)(O.JSC$19673_onStartForwardChannelTimer_,
O,m),wKr(O,O.JSC$19671_forwardChannelRetryCount_));O.JSC$19671_forwardChannelRetryCount_++;return!0};
LO.prototype.JSC$19673_onStartForwardChannelTimer_=function(O){if(this.JSC$19671_forwardChannelTimerId_)if(this.JSC$19671_forwardChannelTimerId_=null,this.JSC$19671_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!O){this.JSC$19671_channelDebug_.debug("open_()");this.JSC$19671_nextRid_=Math.floor(Math.random()*1E5);O=this.JSC$19671_nextRid_++;var m=new uZ(this,this.JSC$19671_channelDebug_,"",O),G=this.JSC$19671_extraHeaders_;this.initHeaders_&&(G?(G=_.aM.clone(G),_.aM.extend(G,this.initHeaders_)):
G=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(m.JSC$19652_extraHeaders_=G,G=null);var B;if(this.fastHandshake_)a:{for(var Q=B=0;Q<this.JSC$19671_outgoingMaps_.length;Q++){b:{var H=this.JSC$19671_outgoingMaps_[Q];if("__data__"in H.map&&(H=H.map.__data__,typeof H==="string")){H=H.length;break b}H=void 0}if(H===void 0)break;B+=H;if(B>4096){B=Q;break a}if(B===4096||Q===this.JSC$19671_outgoingMaps_.length-1){B=Q+1;break a}}B=1E3}else B=1E3;B=D4s(this,m,B);
Q=this.JSC$19671_forwardChannelUri_.clone();_.AF(Q,"RID",O);_.AF(Q,"CVER",22);this.httpSessionIdParam_&&_.AF(Q,"X-HTTP-Session-Id",this.httpSessionIdParam_);CO(this,Q);G&&(this.encodeInitMessageHeaders_?B="headers="+_.sZ(RI0(G))+"&"+B:this.httpHeadersOverwriteParam_&&iyJ(Q,this.httpHeadersOverwriteParam_,G));ELr(this.forwardChannelRequestPool_,m);this.blockingHandshake_&&_.AF(Q,"TYPE","init");this.fastHandshake_?(_.AF(Q,"$req",B),_.AF(Q,"SID","null"),m.decodeInitialResponse_=!0,Rer(m,Q,null)):Rer(m,
Q,B);this.state_=2}}else this.state_==3&&(O?sio(this,O):this.JSC$19671_outgoingMaps_.length==0?this.JSC$19671_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):SoA(this.forwardChannelRequestPool_)||(sio(this),this.JSC$19671_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var sio=function(O,m){var G;m?G=m.JSC$19652_rid_:G=O.JSC$19671_nextRid_++;var B=O.JSC$19671_forwardChannelUri_.clone();_.AF(B,"SID",O.sid_);_.AF(B,"RID",G);_.AF(B,"AID",O.JSC$19671_lastArrayId_);CO(O,B);O.httpHeadersOverwriteParam_&&O.JSC$19671_extraHeaders_&&iyJ(B,O.httpHeadersOverwriteParam_,O.JSC$19671_extraHeaders_);G=new uZ(O,O.JSC$19671_channelDebug_,O.sid_,G,O.JSC$19671_forwardChannelRetryCount_+1);O.httpHeadersOverwriteParam_===null&&(G.JSC$19652_extraHeaders_=O.JSC$19671_extraHeaders_);m&&
(O.JSC$19671_outgoingMaps_=m.JSC$19652_pendingMessages_.concat(O.JSC$19671_outgoingMaps_));m=D4s(O,G,1E3);G.setTimeout(Math.round(O.JSC$19671_forwardChannelRequestTimeoutMs_*.5)+Math.round(O.JSC$19671_forwardChannelRequestTimeoutMs_*.5*Math.random()));ELr(O.forwardChannelRequestPool_,G);Rer(G,B,m)},CO=function(O,m){O.JSC$19671_extraParams_&&_.aM.forEach(O.JSC$19671_extraParams_,function(G,B){_.AF(m,B,G)});
O.handler_&&_.aM.forEach({},function(G,B){_.AF(m,B,G)})},D4s=function(O,m,G){G=Math.min(O.JSC$19671_outgoingMaps_.length,G);
var B=O.handler_?(0,_.pd)(O.handler_.JSC$19677_badMapError,O.handler_,O):null;a:{for(var Q=O.JSC$19671_outgoingMaps_,H=-1;;){var M=["count="+G];H==-1?G>0?(H=Q[0].JSC$19659_mapId,M.push("ofs="+H)):H=0:M.push("ofs="+H);for(var R=!0,x=0;x<G;x++){var t=Q[x].JSC$19659_mapId,W=Q[x].map;t-=H;if(t<0)H=Math.max(0,Q[x].JSC$19659_mapId-100),R=!1;else try{t="req"+t+"_"||"";try{var Z=W instanceof Map?W:Object.entries(W);for(var z=_.K(Z),J=z.next();!J.done;J=z.next()){var n=_.K(J.value),I=n.next().value,S=n.next().value,
L=S;_.Dp(S)&&(L=(0,_.ck)(S));M.push(t+I+"="+encodeURIComponent(L))}}catch(C){throw M.push(t+"type="+encodeURIComponent("_badmap")),C;}}catch(C){B&&B(W)}}if(R){Z=M.join("&");break a}}Z=void 0}O=O.JSC$19671_outgoingMaps_.splice(0,G);m.JSC$19652_pendingMessages_=O;return Z},N2A=function(O){O.JSC$19671_backChannelRequest_||O.JSC$19671_backChannelTimerId_||(O.JSC$19671_backChannelAttemptId_=1,_.o7(O.JSC$19673_onStartBackChannelTimer_,O),O.JSC$19671_backChannelRetryCount_=0)},udb=function(O){if(O.JSC$19671_backChannelRequest_||
O.JSC$19671_backChannelTimerId_||O.JSC$19671_backChannelRetryCount_>=3)return!1;
O.JSC$19671_channelDebug_.debug("Going to retry GET");O.JSC$19671_backChannelAttemptId_++;O.JSC$19671_backChannelTimerId_=hP((0,_.pd)(O.JSC$19673_onStartBackChannelTimer_,O),wKr(O,O.JSC$19671_backChannelRetryCount_));O.JSC$19671_backChannelRetryCount_++;return!0};
LO.prototype.JSC$19673_onStartBackChannelTimer_=function(){this.JSC$19671_backChannelTimerId_=null;P89(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19671_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19671_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19671_backChannelRequest_+" "+this.handshakeRttMs_);else{var O=4*this.handshakeRttMs_;this.JSC$19671_channelDebug_.info("BP detection timer enabled: "+O);this.bpDetectionTimerId_=hP((0,_.pd)(this.onBpDetectionTimer_,
this),O)}};
LO.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19671_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19671_backChannelRequest_.JSC$19652_xmlHttp_!=null){var O=this.JSC$19671_backChannelRequest_.JSC$19652_xmlHttp_.getResponseText();O&&this.JSC$19671_channelDebug_.warning("Timer should have been cancelled : "+O)}this.JSC$19671_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;fO(10);gLb(this);P89(this)}else this.JSC$19671_channelDebug_.warning("Invalid operation.")};
var XKh=function(O){O.bpDetectionTimerId_!=null&&(O.JSC$19671_channelDebug_.debug("Cancel the BP detection timer."),_.Qf.clearTimeout(O.bpDetectionTimerId_),O.bpDetectionTimerId_=null)},P89=function(O){O.JSC$19671_channelDebug_.debug("Creating new HttpRequest");
O.JSC$19671_backChannelRequest_=new uZ(O,O.JSC$19671_channelDebug_,O.sid_,"rpc",O.JSC$19671_backChannelAttemptId_);O.httpHeadersOverwriteParam_===null&&(O.JSC$19671_backChannelRequest_.JSC$19652_extraHeaders_=O.JSC$19671_extraHeaders_);O.JSC$19671_backChannelRequest_.JSC$19652_readyStateChangeThrottleMs_=0;var m=O.JSC$19671_backChannelUri_.clone();_.AF(m,"RID","rpc");_.AF(m,"SID",O.sid_);_.AF(m,"AID",O.JSC$19671_lastArrayId_);_.AF(m,"CI",O.enableStreaming_?"0":"1");!O.enableStreaming_&&O.longPollingTimeout_&&
_.AF(m,"TO",O.longPollingTimeout_);_.AF(m,"TYPE","xmlhttp");CO(O,m);O.httpHeadersOverwriteParam_&&O.JSC$19671_extraHeaders_&&iyJ(m,O.httpHeadersOverwriteParam_,O.JSC$19671_extraHeaders_);O.backChannelRequestTimeoutMs_&&O.JSC$19671_backChannelRequest_.setTimeout(O.backChannelRequestTimeoutMs_);var G=O.JSC$19671_backChannelRequest_,B=O.JSC$19671_hostPrefix_;G.JSC$19652_type_=1;G.JSC$19652_baseUri_=_.be(m.clone());G.JSC$19652_postData_=null;G.decodeChunks_=!0;reA(G,B);O.JSC$19671_channelDebug_.debug("New Request created")};
LO.prototype.JSC$19673_onBackChannelDead_=function(){this.JSC$19671_deadBackChannelTimerId_!=null&&(this.JSC$19671_deadBackChannelTimerId_=null,gLb(this),udb(this),fO(19))};
var T2o=function(O){O.JSC$19671_deadBackChannelTimerId_!=null&&(_.Qf.clearTimeout(O.JSC$19671_deadBackChannelTimerId_),O.JSC$19671_deadBackChannelTimerId_=null)},VL0=function(O,m){O.JSC$19671_channelDebug_.debug("Request complete");
var G=null;if(O.JSC$19671_backChannelRequest_==m){T2o(O);XKh(O);O.JSC$19671_backChannelRequest_=null;var B=2}else if(he3(O.forwardChannelRequestPool_,m))G=m.JSC$19652_pendingMessages_,LOK(O.forwardChannelRequestPool_,m),B=1;else return;if(O.state_!=0)if(m.JSC$19652_successful_)B==1?(m4b(m.JSC$19652_postData_?m.JSC$19652_postData_.length:0,Date.now()-m.JSC$19652_requestStartTime_,O.JSC$19671_forwardChannelRetryCount_),ceu(O)):N2A(O);else{var Q=m.JSC$19652_lastStatusCode_,H=m.getLastError();if(H==3||
H==0&&Q>0)O.JSC$19671_channelDebug_.debug("Not retrying due to error type"),Q>200&&(O.errorResponseStatusCode_=m.JSC$19652_lastStatusCode_);else{O.JSC$19671_channelDebug_.debug(function(){return"Maybe retrying, last error: "+KOb(H,O.errorResponseStatusCode_)});
if(B==1&&ee3(O,m)||B==2&&udb(O))return;O.JSC$19671_channelDebug_.debug("Exceeded max number of retries")}G&&G.length>0&&oL3(O.forwardChannelRequestPool_,G);O.JSC$19671_channelDebug_.debug("Error: HTTP request failed");switch(H){case 1:pO(O,5);break;case 4:pO(O,10);break;case 3:pO(O,6);break;default:pO(O,2)}}},wKr=function(O,m){var G=O.JSC$19671_baseRetryDelayMs_+Math.floor(Math.random()*O.JSC$19671_retryDelaySeedMs_);
O.isActive()||(O.JSC$19671_channelDebug_.debug("Inactive channel"),G*=2);return G*m};
LO.prototype.onInput_=function(O,m){for(var G=0;G<O.length;G++){var B=O[G],Q=B[0];if(Q<=this.JSC$19671_lastArrayId_)this.JSC$19671_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+Q+", lastArrayId: "+this.JSC$19671_lastArrayId_);else if(Q>this.JSC$19671_lastArrayId_+1&&this.JSC$19671_lastArrayId_>-1&&this.JSC$19671_channelDebug_.warning("Received non-consecutive message with arrayId: "+Q+", lastArrayId: "+this.JSC$19671_lastArrayId_),this.JSC$19671_lastArrayId_=Q,
B=B[1],this.state_==2)if(B[0]=="c"){this.sid_=B[1];this.JSC$19671_hostPrefix_=B[2];Q=B[3];Q!=null&&(this.JSC$19673_channelVersion_=Q,this.JSC$19671_channelDebug_.info("VER="+this.JSC$19673_channelVersion_));Q=B[4];Q!=null&&(this.serverVersion_=Q,this.JSC$19671_channelDebug_.info("SVER="+this.serverVersion_));B=B[5];B!=null&&typeof B==="number"&&B>0&&(this.backChannelRequestTimeoutMs_=B*=1.5,this.JSC$19671_channelDebug_.info("backChannelRequestTimeoutMs_="+B));if(B=m.JSC$19652_xmlHttp_){var H=xP(B,
"X-Client-Wire-Protocol");H&&(Q=this.forwardChannelRequestPool_,!Q.requestPool_&&(_.is(H,"spdy")||_.is(H,"quic")||_.is(H,"h2"))&&(Q.JSC$19662_maxSize_=Q.maxPoolSizeConfigured_,Q.requestPool_=new Set,Q.JSC$19662_request_&&(ELr(Q,Q.JSC$19662_request_),Q.JSC$19662_request_=null)));this.httpSessionIdParam_&&((B=xP(B,"X-HTTP-Session-Id"))?(this.httpSessionId_=B,_.AF(this.JSC$19671_forwardChannelUri_,this.httpSessionIdParam_,B)):this.JSC$19671_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19677_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-m.JSC$19652_requestStartTime_,this.JSC$19671_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));B=m;Q=yes(this,this.JSC$19671_supportsCrossDomainXhrs_?this.JSC$19671_hostPrefix_:null,this.JSC$19671_path_);this.JSC$19671_channelDebug_.debug("GetBackChannelUri: "+Q);this.JSC$19671_backChannelUri_=Q;B.initialResponseDecoded_?(this.JSC$19671_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
LOK(this.forwardChannelRequestPool_,B),Q=B,(H=this.backChannelRequestTimeoutMs_)&&Q.setTimeout(H),Q.JSC$19652_watchDogTimerId_&&(tLy(Q),iGr(Q)),this.JSC$19671_backChannelRequest_=B):N2A(this);this.JSC$19671_outgoingMaps_.length>0&&ceu(this)}else B[0]!="stop"&&B[0]!="close"||pO(this,7);else this.state_==3&&(B[0]=="stop"||B[0]=="close"?B[0]=="stop"?pO(this,7):this.disconnect():B[0]!="noop"&&this.handler_&&this.handler_.JSC$19677_channelHandleArray(B),this.JSC$19671_backChannelRetryCount_=0)}};
var pO=function(O,m){O.JSC$19671_channelDebug_.info("Error code "+m);if(m==2){var G=(0,_.pd)(O.testNetworkCallback_,O),B=O.networkTestUrl_,Q=!B;B=new _.Bd(B||"//www.google.com/images/cleardot.gif");_.Qf.location&&_.Qf.location.protocol=="http"||_.xr(B,"https");_.be(B);Q?lmK(B.toString(),G):amo(B.toString(),G)}else fO(2);O.onError_(m)};
LO.prototype.testNetworkCallback_=function(O){O?(this.JSC$19671_channelDebug_.info("Successfully pinged google.com"),fO(2)):(this.JSC$19671_channelDebug_.info("Failed to ping google.com"),fO(1))};
LO.prototype.onError_=function(O){this.JSC$19671_channelDebug_.debug("HttpChannel: error - "+O);this.state_=0;this.handler_&&this.handler_.JSC$19677_channelError(O);d4r(this);Yo3(this)};
var d4r=function(O){O.state_=0;O.nonAckedMapsAtChannelClose_=[];if(O.handler_){var m=C8u(O.forwardChannelRequestPool_);if(m.length!=0||O.JSC$19671_outgoingMaps_.length!=0)O.JSC$19671_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+m.length+", outgoing: "+O.JSC$19671_outgoingMaps_.length}),_.dN(O.nonAckedMapsAtChannelClose_,m),_.dN(O.nonAckedMapsAtChannelClose_,O.JSC$19671_outgoingMaps_),O.forwardChannelRequestPool_.JSC$19662_pendingMessages_.length=0,_.cM(O.JSC$19671_outgoingMaps_),
O.JSC$19671_outgoingMaps_.length=0;
O.handler_.JSC$19677_channelClosed()}},FOB=function(O){if(O.state_==0)return O.nonAckedMapsAtChannelClose_;
var m=[];_.dN(m,C8u(O.forwardChannelRequestPool_));_.dN(m,O.JSC$19671_outgoingMaps_);return m},yes=function(O,m,G){var B=_.Ph(G);
B.JSC$10033_domain_!=""?(m&&_.qm(B,m+"."+B.JSC$10033_domain_),_.U6(B,B.JSC$10033_port_)):(B=_.Qf.location,B=GDu(B.protocol,m?m+"."+B.hostname:B.hostname,+B.port,G));m=O.httpSessionIdParam_;G=O.httpSessionId_;m&&G&&_.AF(B,m,G);_.AF(B,"VER",O.JSC$19673_channelVersion_);CO(O,B);return B},x4r=function(O,m,G){if(m&&!O.JSC$19671_supportsCrossDomainXhrs_)throw Error("Ok");
m=O.usesFetchStreams_&&!O.JSC$19671_xmlHttpFactory_?new _.YN(new oJ({streamBinaryChunks:G})):new _.YN(O.JSC$19671_xmlHttpFactory_);m.JSC$9797_withCredentials_=O.JSC$19671_supportsCrossDomainXhrs_;return m};
LO.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var AeB=function(){};
_.v=AeB.prototype;_.v.JSC$19677_channelOpened=function(){};
_.v.JSC$19677_channelHandleArray=function(){};
_.v.JSC$19677_channelError=function(){};
_.v.JSC$19677_channelClosed=function(){};
_.v.isActive=function(){return!0};
_.v.JSC$19677_badMapError=function(){};var Ojs=function(){},lZ=function(O,m){_.Ly.call(this);
this.JSC$19680_channel_=new LO(m);this.JSC$19680_url_=O;this.messageUrlParams_=m&&m.messageUrlParams||null;O=m&&m.messageHeaders||null;m&&m.clientProtocolHeaderRequired&&(O?_.aM.set(O,"X-Client-Protocol","webchannel"):O=_.aM.create("X-Client-Protocol","webchannel"));this.JSC$19680_channel_.JSC$19671_extraHeaders_=O;O=m&&m.initMessageHeaders||null;m&&m.messageContentType&&(O?_.aM.set(O,"X-WebChannel-Content-Type",m.messageContentType):O=_.aM.create("X-WebChannel-Content-Type",m.messageContentType));
m&&m.clientProfile&&(O?_.aM.set(O,"X-WebChannel-Client-Profile",m.clientProfile):O=_.aM.create("X-WebChannel-Client-Profile",m.clientProfile));this.JSC$19680_channel_.initHeaders_=O;(O=m&&m.httpHeadersOverwriteParam)&&!_.Re(O)&&(this.JSC$19680_channel_.httpHeadersOverwriteParam_=O);this.supportsCrossDomainXhr_=m&&m.supportsCrossDomainXhr||!1;this.sendRawJson_=m&&m.sendRawJson||!1;(m=m&&m.httpSessionIdParam)&&!_.Re(m)&&(this.JSC$19680_channel_.httpSessionIdParam_=m,_.aM.containsKey(this.messageUrlParams_,
m)&&_.aM.remove(this.messageUrlParams_,m));this.channelHandler_=new ob(this)};
_.MQ(lZ,_.Ly);lZ.prototype.open=function(){this.JSC$19680_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19680_channel_.JSC$19671_supportsCrossDomainXhrs_=!0);this.JSC$19680_channel_.connect(this.JSC$19680_url_,this.messageUrlParams_||void 0)};
lZ.prototype.close=function(){this.JSC$19680_channel_.disconnect()};
lZ.prototype.send=function(O){var m=this.JSC$19680_channel_;if(typeof O==="string"){var G={};G.__data__=O;O=G}else this.sendRawJson_&&(G={},G.__data__=(0,_.ck)(O),O=G);m.JSC$19671_outgoingMaps_.push(new ImJ(m.JSC$19671_nextMapId_++,O));m.state_==3&&ceu(m)};
lZ.prototype.disposeInternal=function(){this.JSC$19680_channel_.handler_=null;delete this.channelHandler_;this.JSC$19680_channel_.disconnect();delete this.JSC$19680_channel_;lZ.superClass_.disposeInternal.call(this)};
var mco=function(O){Dsr.call(this);O.__headers__&&(this.headers=O.__headers__,this.statusCode=O.__status__,delete O.__headers__,delete O.__status__);var m=O.__sm__;m?this.data=(this.metadataKey=_.aM.getAnyKey(m))?_.aM.get(m,this.metadataKey):m:this.data=O};
_.MQ(mco,Dsr);var G0r=function(O){scr.call(this);this.status=1;this.errorCode=O};
_.MQ(G0r,scr);var ob=function(O){this.JSC$19687_channel_=O};
_.MQ(ob,AeB);ob.prototype.JSC$19677_channelOpened=function(){this.JSC$19687_channel_.dispatchEvent("w")};
ob.prototype.JSC$19677_channelHandleArray=function(O){this.JSC$19687_channel_.dispatchEvent(new mco(O))};
ob.prototype.JSC$19677_channelError=function(O){this.JSC$19687_channel_.dispatchEvent(new G0r(O))};
ob.prototype.JSC$19677_channelClosed=function(){this.JSC$19687_channel_.dispatchEvent("x")};
var BTB=function(O,m){this.transportChannel_=O;this.JSC$19690_channel_=m},QCJ=function(O){return FOB(O.JSC$19690_channel_).map(function(m){var G=O.transportChannel_;
m=m.map;"__data__"in m?(m=m.__data__,G=G.sendRawJson_?(0,_.o63)(m):m):G=m;return G})};
BTB.prototype.commit=function(O){this.JSC$19690_channel_.forwardChannelFlushedCallback_=O};var ab=function(O){Hjs.dispatchEvent(new v4y(Hjs,O))},Hjs=new _.Ly,v4y=function(O,m){_.jB.call(this,"statevent",O);
this.stat=m};
_.X(v4y,_.jB);var k2=function(O,m,G,B,Q){this.JSC$19695_channel_=O;this.JSC$19695_channelDebug_=m;this.sid_=G;this.JSC$19695_rid_=B;this.JSC$19695_retryId_=Q||1;this.timeout_=45E3;this.JSC$19695_eventHandler_=new _.xf(this);this.pollingTimer_=new _.iH;this.pollingTimer_.setInterval(250)};
_.v=k2.prototype;_.v.JSC$19697_extraHeaders_=null;_.v.JSC$19697_successful_=!1;_.v.JSC$19697_watchDogTimerId_=null;_.v.JSC$19697_watchDogTimeoutTime_=null;_.v.JSC$19697_requestStartTime_=null;_.v.JSC$19697_type_=null;_.v.JSC$19697_baseUri_=null;_.v.JSC$19697_requestUri_=null;_.v.JSC$19697_postData_=null;_.v.JSC$19697_xmlHttp_=null;_.v.JSC$19697_xmlHttpChunkStart_=0;_.v.trident_=null;_.v.JSC$19697_verb_=null;_.v.JSC$19697_lastError_=null;_.v.JSC$19697_lastStatusCode_=-1;_.v.sendClose_=!0;
_.v.JSC$19697_cancelled_=!1;_.v.JSC$19697_readyStateChangeThrottleMs_=0;_.v.JSC$19697_readyStateChangeThrottle_=null;var Kty=function(O,m){switch(O){case 0:return"Non-200 return code ("+m+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},$cy={},MP9={};
k2.prototype.setTimeout=function(O){this.timeout_=O};
var R5r=function(O,m,G){O.JSC$19697_type_=1;O.JSC$19697_baseUri_=_.be(m.clone());O.JSC$19697_postData_=G;O.decodeChunks_=!0;rfy(O,null)},ij3=function(O,m,G,B,Q){O.JSC$19697_type_=1;
O.JSC$19697_baseUri_=_.be(m.clone());O.JSC$19697_postData_=null;O.decodeChunks_=G;Q&&(O.sendClose_=!1);rfy(O,B)},rfy=function(O,m){O.JSC$19697_requestStartTime_=Date.now();
xcu(O);O.JSC$19697_requestUri_=O.JSC$19697_baseUri_.clone();qw(O.JSC$19697_requestUri_,"t",O.JSC$19695_retryId_);O.JSC$19697_xmlHttpChunkStart_=0;O.JSC$19697_xmlHttp_=O.JSC$19695_channel_.JSC$19704_createXhrIo(O.JSC$19695_channel_.JSC$19704_shouldUseSecondaryDomains()?m:null);O.JSC$19697_readyStateChangeThrottleMs_>0&&(O.JSC$19697_readyStateChangeThrottle_=new _.Pu((0,_.pd)(O.JSC$19697_xmlHttpHandler_,O,O.JSC$19697_xmlHttp_),O.JSC$19697_readyStateChangeThrottleMs_));O.JSC$19695_eventHandler_.listen(O.JSC$19697_xmlHttp_,
"readystatechange",O.JSC$19697_readyStateChangeHandler_);m=O.JSC$19697_extraHeaders_?_.aM.clone(O.JSC$19697_extraHeaders_):{};O.JSC$19697_postData_?(O.JSC$19697_verb_="POST",m["Content-Type"]="application/x-www-form-urlencoded",O.JSC$19697_xmlHttp_.send(O.JSC$19697_requestUri_,O.JSC$19697_verb_,O.JSC$19697_postData_,m)):(O.JSC$19697_verb_="GET",O.sendClose_&&!_.Ug&&(m.Connection="close"),O.JSC$19697_xmlHttp_.send(O.JSC$19697_requestUri_,O.JSC$19697_verb_,null,m));O.JSC$19695_channel_.notifyServerReachabilityEvent(1);
m=O.JSC$19695_channelDebug_;var G=O.JSC$19697_postData_;if(G){var B="";G=G.split("&");for(var Q=0;Q<G.length;Q++){var H=G[Q].split("=");if(H.length>1){var M=H[0];H=H[1];var R=M.split("_");B=R.length>=2&&R[1]=="type"?B+(M+"="+H+"&"):B+(M+"=redacted&")}}}else B=null;m.info("XMLHTTP REQ ("+O.JSC$19695_rid_+") [attempt "+O.JSC$19695_retryId_+"]: "+O.JSC$19697_verb_+"\n"+O.JSC$19697_requestUri_+"\n"+B)};
k2.prototype.JSC$19697_readyStateChangeHandler_=function(O){O=O.target;var m=this.JSC$19697_readyStateChangeThrottle_;m&&_.d6(O)==3?(this.JSC$19695_channelDebug_.debug("Throttling readystatechange."),m.fire()):this.JSC$19697_xmlHttpHandler_(O)};
k2.prototype.JSC$19697_xmlHttpHandler_=function(O){try{if(O==this.JSC$19697_xmlHttp_)a:{var m=_.d6(this.JSC$19697_xmlHttp_),G=this.JSC$19697_xmlHttp_.JSC$9797_lastErrorCode_,B=this.JSC$19697_xmlHttp_.getStatus();if(_.Ug&&!_.tw("420+")){if(m<4)break a}else if(m<3||m==3&&!this.JSC$19697_xmlHttp_.getResponseText())break a;this.JSC$19697_cancelled_||m!=4||G==7||(G==8||B<=0?this.JSC$19695_channel_.notifyServerReachabilityEvent(3):this.JSC$19695_channel_.notifyServerReachabilityEvent(2));qaK(this);var Q=
this.JSC$19697_xmlHttp_.getStatus();this.JSC$19697_lastStatusCode_=Q;var H=this.JSC$19697_xmlHttp_.getResponseText();H||this.JSC$19695_channelDebug_.debug("No response text for uri "+this.JSC$19697_requestUri_+" status "+Q);this.JSC$19697_successful_=Q==200;this.JSC$19695_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19695_rid_+") [ attempt "+this.JSC$19695_retryId_+"]: "+this.JSC$19697_verb_+"\n"+this.JSC$19697_requestUri_+"\n"+m+" "+Q);if(this.JSC$19697_successful_){m==4&&y5(this);if(this.decodeChunks_){for(O=
!0;!this.JSC$19697_cancelled_&&this.JSC$19697_xmlHttpChunkStart_<H.length;){var M=Ucs(this,H);if(M==MP9){m==4&&(this.JSC$19697_lastError_=4,ab(15),O=!1);c5(this.JSC$19695_channelDebug_,this.JSC$19695_rid_,null,"[Incomplete Response]");break}else if(M==$cy){this.JSC$19697_lastError_=4;ab(16);c5(this.JSC$19695_channelDebug_,this.JSC$19695_rid_,H,"[Invalid Chunk]");O=!1;break}else c5(this.JSC$19695_channelDebug_,this.JSC$19695_rid_,M,null),tPK(this,M)}m==4&&H.length==0&&(this.JSC$19697_lastError_=1,
ab(17),O=!1);this.JSC$19697_successful_=this.JSC$19697_successful_&&O;O||(c5(this.JSC$19695_channelDebug_,this.JSC$19695_rid_,H,"[Invalid Chunked Response]"),y5(this),Wto(this))}else c5(this.JSC$19695_channelDebug_,this.JSC$19695_rid_,H,null),tPK(this,H);this.JSC$19697_successful_&&!this.JSC$19697_cancelled_&&(m==4?this.JSC$19695_channel_.JSC$19704_onRequestComplete(this):(this.JSC$19697_successful_=!1,xcu(this)))}else Q==400&&H.indexOf("Unknown SID")>0?(this.JSC$19697_lastError_=3,ab(13),this.JSC$19695_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19695_rid_+")")):(this.JSC$19697_lastError_=0,ab(14),this.JSC$19695_channelDebug_.warning("XMLHTTP Bad status "+Q+" ("+this.JSC$19695_rid_+")")),y5(this),Wto(this)}else this.JSC$19695_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(R){this.JSC$19695_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var Ucs=function(O,m){var G=O.JSC$19697_xmlHttpChunkStart_,B=m.indexOf("\n",G);if(B==-1)return MP9;G=Number(m.substring(G,B));if(isNaN(G))return $cy;B+=1;if(B+G>m.length)return MP9;m=m.slice(B,B+G);O.JSC$19697_xmlHttpChunkStart_=B+G;return m};
k2.prototype.cancel=function(){this.JSC$19697_cancelled_=!0;y5(this)};
var xcu=function(O){O.JSC$19697_watchDogTimeoutTime_=Date.now()+O.timeout_;Zjr(O,O.timeout_)},Zjr=function(O,m){if(O.JSC$19697_watchDogTimerId_!=null)throw Error("Nk");
O.JSC$19697_watchDogTimerId_=fZ((0,_.pd)(O.JSC$19697_onWatchDogTimeout_,O),m)},qaK=function(O){O.JSC$19697_watchDogTimerId_&&(_.Qf.clearTimeout(O.JSC$19697_watchDogTimerId_),O.JSC$19697_watchDogTimerId_=null)};
k2.prototype.JSC$19697_onWatchDogTimeout_=function(){this.JSC$19697_watchDogTimerId_=null;var O=Date.now();O-this.JSC$19697_watchDogTimeoutTime_>=0?(this.JSC$19695_channelDebug_.info("TIMEOUT: "+this.JSC$19697_requestUri_),this.JSC$19697_type_!=2&&this.JSC$19695_channel_.notifyServerReachabilityEvent(3),y5(this),this.JSC$19697_lastError_=2,ab(18),Wto(this)):(this.JSC$19695_channelDebug_.warning("WatchDog timer called too early"),Zjr(this,this.JSC$19697_watchDogTimeoutTime_-O))};
var Wto=function(O){O.JSC$19695_channel_.JSC$19704_isClosed()||O.JSC$19697_cancelled_||O.JSC$19695_channel_.JSC$19704_onRequestComplete(O)},y5=function(O){qaK(O);
_.Kd(O.JSC$19697_readyStateChangeThrottle_);O.JSC$19697_readyStateChangeThrottle_=null;O.pollingTimer_.stop();O.JSC$19695_eventHandler_.removeAll();if(O.JSC$19697_xmlHttp_){var m=O.JSC$19697_xmlHttp_;O.JSC$19697_xmlHttp_=null;m.abort();m.dispose()}O.trident_&&(O.trident_=null)};
k2.prototype.getLastError=function(){return this.JSC$19697_lastError_};
var tPK=function(O,m){try{O.JSC$19695_channel_.JSC$19704_onRequestData(O,m),O.JSC$19695_channel_.notifyServerReachabilityEvent(4)}catch(G){}};var c5=function(O,m,G,B){var Q=O.info;a:if(G&&G!="y2f%"){try{var H=JSON.parse(G);if(H)for(var M=0;M<H.length;M++)if(Array.isArray(H[M])){var R=H[M];if(!(R.length<2)){var x=R[1];if(Array.isArray(x)&&!(x.length<1)){var t=x[0];if(t!="noop"&&t!="stop")for(var W=1;W<x.length;W++)x[W]=""}}}var Z=(0,_.ck)(H);break a}catch(z){O.debug("Exception parsing expected JS array - probably was not JS");Z=G;break a}Z=void 0}else Z=G;Q.call(O,"XMLHTTP TEXT ("+m+"): "+Z+(B?" "+B:""))};
hq.prototype.debug=function(O){this.info(O)};
hq.prototype.info=function(){};
hq.prototype.warning=function(){};var z5h=function(O,m){this.JSC$19702_channel_=O;this.JSC$19702_channelDebug_=m;this.JSC$19702_parser_=new nO};
_.v=z5h.prototype;_.v.JSC$19704_extraHeaders_=null;_.v.JSC$19704_request_=null;_.v.receivedIntermediateResult_=!1;_.v.JSC$19704_path_=null;_.v.state_=null;_.v.JSC$19704_lastStatusCode_=-1;_.v.JSC$19704_hostPrefix_=null;_.v.blockedPrefix_=null;
_.v.connect=function(O){this.JSC$19704_path_=O;O=Jfu(this.JSC$19702_channel_,this.JSC$19704_path_);ab(3);Date.now();var m=this.JSC$19702_channel_.firstTestResults_;m!=null?(this.JSC$19704_hostPrefix_=m[0],(this.blockedPrefix_=m[1])?(this.state_=1,VPK(this)):(this.state_=2,bjo(this))):(qw(O,"MODE","init"),this.JSC$19704_request_=new k2(this,this.JSC$19702_channelDebug_),this.JSC$19704_request_.JSC$19697_extraHeaders_=this.JSC$19704_extraHeaders_,ij3(this.JSC$19704_request_,O,!1,null,!0),this.state_=
0)};
var VPK=function(O){var m=n4B(O.JSC$19702_channel_,O.blockedPrefix_,"/mail/images/cleardot.gif");_.be(m);Ccr(m.toString(),5E3,(0,_.pd)(O.checkBlockedCallback_,O),3,2E3);O.notifyServerReachabilityEvent(1)};
z5h.prototype.checkBlockedCallback_=function(O){if(O)this.state_=2,bjo(this);else{ab(4);var m=this.JSC$19702_channel_;m.JSC$19705_channelDebug_.debug("Test Connection Blocked");m.JSC$19709_lastStatusCode_=m.connectionTest_.JSC$19704_lastStatusCode_;Y2(m,9)}O&&this.notifyServerReachabilityEvent(2)};
var bjo=function(O){O.JSC$19702_channelDebug_.debug("TestConnection: starting stage 2");var m=O.JSC$19702_channel_.secondTestResults_;m!=null?(O.JSC$19702_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+m?"Buffered":"Unbuffered"),ab(5),m?(ab(11),dq(O.JSC$19702_channel_,O,!1)):(ab(12),dq(O.JSC$19702_channel_,O,!0))):(O.JSC$19704_request_=new k2(O,O.JSC$19702_channelDebug_),O.JSC$19704_request_.JSC$19697_extraHeaders_=O.JSC$19704_extraHeaders_,m=Xzr(O.JSC$19702_channel_,
O.JSC$19704_hostPrefix_,O.JSC$19704_path_),ab(5),qw(m,"TYPE","xmlhttp"),ij3(O.JSC$19704_request_,m,!1,O.JSC$19704_hostPrefix_,!1))};
_.v=z5h.prototype;_.v.JSC$19704_createXhrIo=function(O){return this.JSC$19702_channel_.JSC$19704_createXhrIo(O)};
_.v.abort=function(){this.JSC$19704_request_&&(this.JSC$19704_request_.cancel(),this.JSC$19704_request_=null);this.JSC$19704_lastStatusCode_=-1};
_.v.JSC$19704_isClosed=function(){return!1};
_.v.JSC$19704_onRequestData=function(O,m){this.JSC$19704_lastStatusCode_=O.JSC$19697_lastStatusCode_;if(this.state_==0)if(this.JSC$19702_channelDebug_.debug("TestConnection: Got data for stage 1"),m){try{var G=this.JSC$19702_parser_.parse(m)}catch(B){fs9(this.JSC$19702_channel_,this);return}this.JSC$19704_hostPrefix_=G[0];this.blockedPrefix_=G[1]}else this.JSC$19702_channelDebug_.debug("TestConnection: Null responseText"),fs9(this.JSC$19702_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(ab(7),Date.now()):m=="11111"?(ab(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19704_lastStatusCode_=200,this.JSC$19704_request_.cancel(),this.JSC$19702_channelDebug_.debug("Test connection succeeded; using streaming connection"),ab(12),dq(this.JSC$19702_channel_,this,!0)):(ab(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.v.JSC$19704_onRequestComplete=function(){this.JSC$19704_lastStatusCode_=this.JSC$19704_request_.JSC$19697_lastStatusCode_;this.JSC$19704_request_.JSC$19697_successful_?this.state_==0?(this.JSC$19702_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,VPK(this)):(this.state_=2,bjo(this))):this.state_==2&&(this.JSC$19702_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19702_channelDebug_.debug("Test connection succeeded; using streaming connection"),
ab(12),dq(this.JSC$19702_channel_,this,!0)):(this.JSC$19702_channelDebug_.debug("Test connection failed; not using streaming"),ab(11),dq(this.JSC$19702_channel_,this,!1))):(this.JSC$19702_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?ab(9):this.state_==2&&ab(10),fs9(this.JSC$19702_channel_,this,this.JSC$19704_request_.getLastError()))};
_.v.JSC$19704_shouldUseSecondaryDomains=function(){return this.JSC$19702_channel_.JSC$19704_shouldUseSecondaryDomains()};
_.v.isActive=function(){return this.JSC$19702_channel_.isActive()};
_.v.notifyServerReachabilityEvent=function(O){this.JSC$19702_channel_.notifyServerReachabilityEvent(O)};var wq=function(O,m,G){this.state_=1;this.JSC$19705_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19705_channelDebug_=new hq;this.JSC$19705_parser_=new nO;this.firstTestResults_=O||null;this.secondTestResults_=m!=null?m:null;this.asyncTest_=G||!1},h5r=function(O,m){this.JSC$19707_mapId=O;
this.map=m;this.context=null};
_.v=wq.prototype;_.v.JSC$19709_extraHeaders_=null;_.v.JSC$19709_extraParams_=null;_.v.forwardChannelRequest_=null;_.v.JSC$19709_backChannelRequest_=null;_.v.JSC$19709_path_=null;_.v.JSC$19709_forwardChannelUri_=null;_.v.JSC$19709_backChannelUri_=null;_.v.JSC$19709_hostPrefix_=null;_.v.JSC$19709_nextRid_=0;_.v.JSC$19709_nextMapId_=0;_.v.handler_=null;_.v.JSC$19709_forwardChannelTimerId_=null;_.v.JSC$19709_backChannelTimerId_=null;_.v.JSC$19709_deadBackChannelTimerId_=null;_.v.connectionTest_=null;
_.v.useChunked_=null;_.v.JSC$19709_lastArrayId_=-1;_.v.JSC$19709_lastPostResponseArrayId_=-1;_.v.JSC$19709_lastStatusCode_=-1;_.v.JSC$19709_forwardChannelRetryCount_=0;_.v.JSC$19709_backChannelRetryCount_=0;_.v.JSC$19709_channelVersion_=8;var TTo={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},g4r=function(O,m,G,B){_.jB.call(this,"timingevent",O);this.size=m;this.rtt=G;this.retries=B};
_.MQ(g4r,_.jB);var u_B=function(O){_.jB.call(this,"serverreachability",O)};
_.MQ(u_B,_.jB);wq.prototype.connect=function(O,m,G,B,Q){this.JSC$19705_channelDebug_.debug("connect()");ab(0);this.JSC$19709_path_=m;this.JSC$19709_extraParams_=G||{};B&&Q!==void 0&&(this.JSC$19709_extraParams_.OSID=B,this.JSC$19709_extraParams_.OAID=Q);this.asyncTest_?(fZ((0,_.pd)(this.connectTest_,this,O),100),jCr(this)):this.connectTest_(O)};
wq.prototype.disconnect=function(){this.JSC$19705_channelDebug_.debug("disconnect()");Iso(this);if(this.state_==3){var O=this.JSC$19709_nextRid_++,m=this.JSC$19709_forwardChannelUri_.clone();_.AF(m,"SID",this.sid_);_.AF(m,"RID",O);_.AF(m,"TYPE","terminate");ep(this,m);O=new k2(this,this.JSC$19705_channelDebug_,this.sid_,O);O.JSC$19697_type_=2;O.JSC$19697_baseUri_=_.be(m.clone());(new Image).src=O.JSC$19697_baseUri_.toString();O.JSC$19697_requestStartTime_=Date.now();xcu(O)}pzr(this)};
wq.prototype.connectTest_=function(O){this.JSC$19705_channelDebug_.debug("connectTest_()");this.connectionTest_=new z5h(this,this.JSC$19705_channelDebug_);this.connectionTest_.JSC$19704_extraHeaders_=this.JSC$19709_extraHeaders_;this.connectionTest_.JSC$19702_parser_=this.JSC$19705_parser_;this.connectionTest_.connect(O)};
var jCr=function(O){O.JSC$19705_channelDebug_.debug("connectChannel_()");O.JSC$19709_ensureInState_(1,0);O.JSC$19709_forwardChannelUri_=Jfu(O,O.JSC$19709_path_);Sa0(O)},Iso=function(O){O.connectionTest_&&(O.connectionTest_.abort(),O.connectionTest_=null);
O.JSC$19709_backChannelRequest_&&(O.JSC$19709_backChannelRequest_.cancel(),O.JSC$19709_backChannelRequest_=null);O.JSC$19709_backChannelTimerId_&&(_.Qf.clearTimeout(O.JSC$19709_backChannelTimerId_),O.JSC$19709_backChannelTimerId_=null);E4u(O);O.forwardChannelRequest_&&(O.forwardChannelRequest_.cancel(),O.forwardChannelRequest_=null);O.JSC$19709_forwardChannelTimerId_&&(_.Qf.clearTimeout(O.JSC$19709_forwardChannelTimerId_),O.JSC$19709_forwardChannelTimerId_=null)},Lt9=function(O,m){if(O.state_==0)throw Error("Qk");
O.JSC$19705_outgoingMaps_.length==1E3&&O.JSC$19705_parser_.stringify(m);O.JSC$19705_outgoingMaps_.push(new h5r(O.JSC$19709_nextMapId_++,m));O.state_!=2&&O.state_!=3||Sa0(O)};
wq.prototype.JSC$19704_isClosed=function(){return this.state_==0};
wq.prototype.getState=function(){return this.state_};
var Sa0=function(O){O.forwardChannelRequest_||O.JSC$19709_forwardChannelTimerId_||(O.JSC$19709_forwardChannelTimerId_=fZ((0,_.pd)(O.JSC$19709_onStartForwardChannelTimer_,O),0),O.JSC$19709_forwardChannelRetryCount_=0)};
wq.prototype.JSC$19709_onStartForwardChannelTimer_=function(O){this.JSC$19709_forwardChannelTimerId_=null;Cqr(this,O)};
var Cqr=function(O,m){O.JSC$19705_channelDebug_.debug("startForwardChannel_");if(O.state_==1){if(!m){O.JSC$19705_channelDebug_.debug("open_()");O.JSC$19709_nextRid_=Math.floor(Math.random()*1E5);m=O.JSC$19709_nextRid_++;var G=new k2(O,O.JSC$19705_channelDebug_,"",m);G.JSC$19697_extraHeaders_=O.JSC$19709_extraHeaders_;var B=o4A(O),Q=O.JSC$19709_forwardChannelUri_.clone();_.AF(Q,"RID",m);_.AF(Q,"CVER","1");ep(O,Q);R5r(G,Q,B);O.forwardChannelRequest_=G;O.state_=2}}else O.state_==3&&(m?lsB(O,m):O.JSC$19705_outgoingMaps_.length==
0?O.JSC$19705_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):O.forwardChannelRequest_||(lsB(O),O.JSC$19705_channelDebug_.debug("startForwardChannel_ finished, sent request")))},lsB=function(O,m){if(m)if(O.JSC$19709_channelVersion_>6){O.JSC$19705_outgoingMaps_=O.pendingMaps_.concat(O.JSC$19705_outgoingMaps_);
O.pendingMaps_.length=0;var G=O.JSC$19709_nextRid_-1;m=o4A(O)}else G=m.JSC$19695_rid_,m=m.JSC$19697_postData_;else G=O.JSC$19709_nextRid_++,m=o4A(O);var B=O.JSC$19709_forwardChannelUri_.clone();_.AF(B,"SID",O.sid_);_.AF(B,"RID",G);_.AF(B,"AID",O.JSC$19709_lastArrayId_);ep(O,B);G=new k2(O,O.JSC$19705_channelDebug_,O.sid_,G,O.JSC$19709_forwardChannelRetryCount_+1);G.JSC$19697_extraHeaders_=O.JSC$19709_extraHeaders_;G.setTimeout(1E4+Math.round(1E4*Math.random()));O.forwardChannelRequest_=G;R5r(G,B,m)},
ep=function(O,m){O.handler_&&(O=O.handler_.JSC$19716_getAdditionalParams())&&_.aM.forEach(O,function(G,B){_.AF(m,B,G)})},o4A=function(O){var m=Math.min(O.JSC$19705_outgoingMaps_.length,1E3),G=["count="+m];
if(O.JSC$19709_channelVersion_>6&&m>0){var B=O.JSC$19705_outgoingMaps_[0].JSC$19707_mapId;G.push("ofs="+B)}else B=0;for(var Q={},H=0;H<m;Q={mapId$jscomp$3:void 0},H++){Q.mapId$jscomp$3=O.JSC$19705_outgoingMaps_[H].JSC$19707_mapId;var M=O.JSC$19705_outgoingMaps_[H].map;Q.mapId$jscomp$3=O.JSC$19709_channelVersion_<=6?H:Q.mapId$jscomp$3-B;try{_.aM.forEach(M,function(R){return function(x,t){G.push("req"+R.mapId$jscomp$3+"_"+t+"="+encodeURIComponent(x))}}(Q))}catch(R){G.push("req"+Q.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}O.pendingMaps_=O.pendingMaps_.concat(O.JSC$19705_outgoingMaps_.splice(0,m));
return G.join("&")},asb=function(O){O.JSC$19709_backChannelRequest_||O.JSC$19709_backChannelTimerId_||(O.JSC$19709_backChannelAttemptId_=1,O.JSC$19709_backChannelTimerId_=fZ((0,_.pd)(O.JSC$19709_onStartBackChannelTimer_,O),0),O.JSC$19709_backChannelRetryCount_=0)},yfB=function(O){if(O.JSC$19709_backChannelRequest_||O.JSC$19709_backChannelTimerId_||O.JSC$19709_backChannelRetryCount_>=3)return!1;
O.JSC$19705_channelDebug_.debug("Going to retry GET");O.JSC$19709_backChannelAttemptId_++;O.JSC$19709_backChannelTimerId_=fZ((0,_.pd)(O.JSC$19709_onStartBackChannelTimer_,O),k0r(O,O.JSC$19709_backChannelRetryCount_));O.JSC$19709_backChannelRetryCount_++;return!0};
wq.prototype.JSC$19709_onStartBackChannelTimer_=function(){this.JSC$19709_backChannelTimerId_=null;this.JSC$19705_channelDebug_.debug("Creating new HttpRequest");this.JSC$19709_backChannelRequest_=new k2(this,this.JSC$19705_channelDebug_,this.sid_,"rpc",this.JSC$19709_backChannelAttemptId_);this.JSC$19709_backChannelRequest_.JSC$19697_extraHeaders_=this.JSC$19709_extraHeaders_;this.JSC$19709_backChannelRequest_.JSC$19697_readyStateChangeThrottleMs_=0;var O=this.JSC$19709_backChannelUri_.clone();_.AF(O,
"RID","rpc");_.AF(O,"SID",this.sid_);_.AF(O,"CI",this.useChunked_?"0":"1");_.AF(O,"AID",this.JSC$19709_lastArrayId_);ep(this,O);_.AF(O,"TYPE","xmlhttp");ij3(this.JSC$19709_backChannelRequest_,O,!0,this.JSC$19709_hostPrefix_,!1);this.JSC$19705_channelDebug_.debug("New Request created")};
var dq=function(O,m,G){O.JSC$19705_channelDebug_.debug("Test Connection Finished");O.useChunked_=O.secondTestResults_==null?G:!O.secondTestResults_;O.JSC$19709_lastStatusCode_=m.JSC$19704_lastStatusCode_;O.asyncTest_||jCr(O)},fs9=function(O,m){O.JSC$19705_channelDebug_.debug("Test Connection Failed");
O.JSC$19709_lastStatusCode_=m.JSC$19704_lastStatusCode_;Y2(O,2)};
wq.prototype.JSC$19704_onRequestData=function(O,m){if(this.state_!=0&&(this.JSC$19709_backChannelRequest_==O||this.forwardChannelRequest_==O))if(this.JSC$19709_lastStatusCode_=O.JSC$19697_lastStatusCode_,this.forwardChannelRequest_==O&&this.state_==3)if(this.JSC$19709_channelVersion_>7){try{var G=this.JSC$19705_parser_.parse(m)}catch(B){G=null}if(Array.isArray(G)&&G.length==3)if(m=G,m[0]==0)a:if(this.JSC$19705_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19709_backChannelTimerId_)this.JSC$19705_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19709_backChannelRequest_)if(this.JSC$19709_backChannelRequest_.JSC$19697_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19697_requestStartTime_)E4u(this),this.JSC$19709_backChannelRequest_.cancel(),this.JSC$19709_backChannelRequest_=null;else break a;else this.JSC$19705_channelDebug_.warning("We do not have a BackChannel established");yfB(this);ab(19)}else this.JSC$19709_lastPostResponseArrayId_=m[1],O=this.JSC$19709_lastPostResponseArrayId_-this.JSC$19709_lastArrayId_,0<
O&&(m=m[2],this.JSC$19705_channelDebug_.debug(m+" bytes (in "+O+" arrays) are outstanding on the BackChannel"),m<37500&&this.useChunked_&&this.JSC$19709_backChannelRetryCount_==0&&!this.JSC$19709_deadBackChannelTimerId_&&(this.JSC$19709_deadBackChannelTimerId_=fZ((0,_.pd)(this.JSC$19709_onBackChannelDead_,this),6E3)));else this.JSC$19705_channelDebug_.debug("Bad POST response data returned"),Y2(this,11)}else m!="y2f%"&&(this.JSC$19705_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
Y2(this,11));else this.JSC$19709_backChannelRequest_==O&&E4u(this),_.Re(m)||(O=this.JSC$19705_parser_.parse(m),this.onInput_(O))};
wq.prototype.JSC$19709_onBackChannelDead_=function(){this.JSC$19709_deadBackChannelTimerId_!=null&&(this.JSC$19709_deadBackChannelTimerId_=null,this.JSC$19709_backChannelRequest_.cancel(),this.JSC$19709_backChannelRequest_=null,yfB(this),ab(20))};
var E4u=function(O){O.JSC$19709_deadBackChannelTimerId_!=null&&(_.Qf.clearTimeout(O.JSC$19709_deadBackChannelTimerId_),O.JSC$19709_deadBackChannelTimerId_=null)};
wq.prototype.JSC$19704_onRequestComplete=function(O){this.JSC$19705_channelDebug_.debug("Request complete");if(this.JSC$19709_backChannelRequest_==O){E4u(this);this.JSC$19709_backChannelRequest_=null;var m=2}else if(this.forwardChannelRequest_==O)this.forwardChannelRequest_=null,m=1;else return;this.JSC$19709_lastStatusCode_=O.JSC$19697_lastStatusCode_;if(this.state_!=0)if(O.JSC$19697_successful_)if(m==1){m=O.JSC$19697_postData_?O.JSC$19697_postData_.length:0;O=Date.now()-O.JSC$19697_requestStartTime_;
var G=Hjs;G.dispatchEvent(new g4r(G,m,O,this.JSC$19709_forwardChannelRetryCount_));Sa0(this);this.handler_&&this.handler_.JSC$19716_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else asb(this);else{G=O.getLastError();if(G==3||G==7||G==0&&this.JSC$19709_lastStatusCode_>0)this.JSC$19705_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19705_channelDebug_.debug("Maybe retrying, last error: "+Kty(G,this.JSC$19709_lastStatusCode_));var B;if(B=m==1)this.forwardChannelRequest_||
this.JSC$19709_forwardChannelTimerId_||this.state_==1||this.JSC$19709_forwardChannelRetryCount_>=2?B=!1:(this.JSC$19705_channelDebug_.debug("Going to retry POST"),this.JSC$19709_forwardChannelTimerId_=fZ((0,_.pd)(this.JSC$19709_onStartForwardChannelTimer_,this,O),k0r(this,this.JSC$19709_forwardChannelRetryCount_)),this.JSC$19709_forwardChannelRetryCount_++,B=!0);if(B||m==2&&yfB(this))return;this.JSC$19705_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19705_channelDebug_.debug("Error: HTTP request failed");
switch(G){case 1:Y2(this,5);break;case 4:Y2(this,10);break;case 3:Y2(this,6);break;case 7:Y2(this,12);break;default:Y2(this,2)}}};
var k0r=function(O,m){var G=5E3+Math.floor(Math.random()*1E4);O.isActive()||(O.JSC$19705_channelDebug_.debug("Inactive channel"),G*=2);return G*m};
wq.prototype.onInput_=function(O){for(var m=0;m<O.length;m++){var G=O[m];this.JSC$19709_lastArrayId_=G[0];G=G[1];this.state_==2?G[0]=="c"?(this.sid_=G[1],this.JSC$19709_hostPrefix_=G[2],G=G[3],G!=null?this.JSC$19709_channelVersion_=G:this.JSC$19709_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19716_channelOpened(),this.JSC$19709_backChannelUri_=Xzr(this,this.JSC$19709_hostPrefix_,this.JSC$19709_path_),asb(this)):G[0]=="stop"&&Y2(this,7):this.state_==3&&(G[0]=="stop"?Y2(this,7):
G[0]!="noop"&&this.handler_&&this.handler_.JSC$19716_channelHandleArray(G),this.JSC$19709_backChannelRetryCount_=0)}};
wq.prototype.JSC$19709_ensureInState_=function(O){if(!_.kO(arguments,this.state_))throw Error("Rk`"+this.state_);};
var Y2=function(O,m){O.JSC$19705_channelDebug_.info("Error code "+m);if(m==2||m==9){var G=null;O.handler_&&(G=null);var B=(0,_.pd)(O.testGoogleComCallback_,O);G||(G=new _.Bd("//www.google.com/images/cleardot.gif"),_.be(G));L$h(G.toString(),1E4,B)}else ab(2);O.onError_(m)};
wq.prototype.testGoogleComCallback_=function(O){O?(this.JSC$19705_channelDebug_.info("Successfully pinged google.com"),ab(2)):(this.JSC$19705_channelDebug_.info("Failed to ping google.com"),ab(1),this.onError_(8))};
wq.prototype.onError_=function(O){this.JSC$19705_channelDebug_.debug("HttpChannel: error - "+O);this.state_=0;this.handler_&&this.handler_.JSC$19716_channelError(O);pzr(this);Iso(this)};
var pzr=function(O){O.state_=0;O.JSC$19709_lastStatusCode_=-1;if(O.handler_)if(O.pendingMaps_.length==0&&O.JSC$19705_outgoingMaps_.length==0)O.handler_.JSC$19716_channelClosed();else{O.JSC$19705_channelDebug_.debug("Number of undelivered maps, pending: "+O.pendingMaps_.length+", outgoing: "+O.JSC$19705_outgoingMaps_.length);var m=_.cM(O.pendingMaps_),G=_.cM(O.JSC$19705_outgoingMaps_);O.pendingMaps_.length=0;O.JSC$19705_outgoingMaps_.length=0;O.handler_.JSC$19716_channelClosed(m,G)}},Jfu=function(O,
m){m=n4B(O,null,m);
O.JSC$19705_channelDebug_.debug("GetForwardChannelUri: "+m);return m},Xzr=function(O,m,G){m=n4B(O,O.JSC$19704_shouldUseSecondaryDomains()?m:null,G);
O.JSC$19705_channelDebug_.debug("GetBackChannelUri: "+m);return m},n4B=function(O,m,G){var B=_.Ph(G);
if(B.JSC$10033_domain_!="")m&&_.qm(B,m+"."+B.JSC$10033_domain_),_.U6(B,B.JSC$10033_port_);else{var Q=window.location;B=GDu(Q.protocol,m?m+"."+Q.hostname:Q.hostname,+Q.port,G)}O.JSC$19709_extraParams_&&_.aM.forEach(O.JSC$19709_extraParams_,function(H,M){_.AF(B,M,H)});
_.AF(B,"VER",O.JSC$19709_channelVersion_);ep(O,B);return B};
wq.prototype.JSC$19704_createXhrIo=function(O){if(O)throw Error("Ok");O=new _.YN;O.JSC$9797_withCredentials_=!1;return O};
wq.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
wq.prototype.notifyServerReachabilityEvent=function(O){var m=Hjs;m.dispatchEvent(new u_B(m,O))};
wq.prototype.JSC$19704_shouldUseSecondaryDomains=function(){return!1};
new $0u;var cf3=function(){};
_.v=cf3.prototype;_.v.JSC$19716_channelOpened=function(){};
_.v.JSC$19716_channelHandleArray=function(){};
_.v.JSC$19716_channelSuccess=function(){};
_.v.JSC$19716_channelError=function(){};
_.v.JSC$19716_channelClosed=function(){};
_.v.JSC$19716_getAdditionalParams=function(){return{}};
_.v.isActive=function(){return!0};var YaK=function(O){O.front_.length===0&&(O.front_=O.back_,O.front_.reverse(),O.back_=[])};
_.v=lO0.prototype;_.v.enqueue=function(O){this.back_.push(O)};
_.v.peek=function(){YaK(this);return _.Sr(this.front_)};
_.v.getCount=function(){return this.front_.length+this.back_.length};
_.v.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.v.clear=function(){this.front_=[];this.back_=[]};
_.v.contains=function(O){return _.kO(this.front_,O)||_.kO(this.back_,O)};
_.v.remove=function(O){var m=this.front_;var G=Array.prototype.lastIndexOf.call(m,O,m.length-1);G>=0?(_.nO6(m,G),m=!0):m=!1;return m||_.yf(this.back_,O)};
_.v.getValues=function(){for(var O=[],m=this.front_.length-1;m>=0;--m)O.push(this.front_[m]);m=this.back_.length;for(var G=0;G<m;++G)O.push(this.back_[G]);return O};var D4=function(O){this.JSC$19720_map_=new _.he;this.size=0;O&&this.addAll(O)},dcB=function(O){var m=typeof O;
return m=="object"&&O||m=="function"?"o"+_.sS(O):m.charAt(0)+O};
_.v=D4.prototype;_.v.getCount=function(){return this.JSC$19720_map_.size};
_.v.add=function(O){this.JSC$19720_map_.set(dcB(O),O);this.size=this.JSC$19720_map_.size};
_.v.addAll=function(O){O=_.ie(O);for(var m=O.length,G=0;G<m;G++)this.add(O[G]);this.size=this.JSC$19720_map_.size};
_.v.removeAll=function(O){O=_.ie(O);for(var m=O.length,G=0;G<m;G++)this.remove(O[G]);this.size=this.JSC$19720_map_.size};
_.v.delete=function(O){O=this.JSC$19720_map_.remove(dcB(O));this.size=this.JSC$19720_map_.size;return O};
_.v.remove=function(O){return this.delete(O)};
_.v.clear=function(){this.JSC$19720_map_.clear();this.size=0};
_.v.isEmpty=function(){return this.JSC$19720_map_.size===0};
_.v.has=function(O){return this.JSC$19720_map_.containsKey(dcB(O))};
_.v.contains=function(O){return this.JSC$19720_map_.containsKey(dcB(O))};
_.v.getValues=function(){return this.JSC$19720_map_.getValues()};
_.v.values=function(){return this.JSC$19720_map_.values()};
_.v.clone=function(){return new D4(this)};
_.v.equals=function(O){return this.getCount()==O43(O)&&wzo(this,O)};
var wzo=function(O,m){var G=O43(m);if(O.getCount()>G)return!1;!(m instanceof D4)&&G>5&&(m=new D4(m));return m00(O,function(B){var Q=m;return Q.contains&&typeof Q.contains=="function"?Q.contains(B):Q.containsValue&&typeof Q.containsValue=="function"?Q.containsValue(B):_.YO(Q)||typeof Q==="string"?_.kO(Q,B):_.aM.containsValue(Q,B)})};
D4.prototype.__iterator__=function(){return this.JSC$19720_map_.__iterator__(!1)};
D4.prototype[Symbol.iterator]=function(){return this.values()};var e53={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(O){return(this._clampValue(O)-this.min)/(this.max-this.min)},
_clampValue:function(O){return Math.min(this.max,Math.max(this.min,this._calcStep(O)))},
_calcStep:function(O){O=parseFloat(O);if(!this.step)return O;O=Math.round((O-this.min)/this.step);return this.step<1?O/(1/this.step)+this.min:O*this.step+this.min},
_validateValue:function(){var O=this._clampValue(this.value);this.value=this.oldValue=isNaN(O)?this.oldValue:O;return this.value!==O},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var Dcx;var sCr;_.kZ({_template:function(){if(sCr!==void 0)return sCr;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Dcx===void 0&&(Dcx=document.createElement("template"));var B=Dcx;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return sCr=O},
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(){_.QA(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(O){O.keyCode===27&&(O.preventDefault(),this.close())},
_track:function(O){if(!this.persistent&&!this.disableSwipe)switch(O.preventDefault(),O.detail.state){case "start":this._trackStart(O);break;case "track":this._trackMove(O);break;case "end":this._trackEnd(O)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var O=this.$.contentContainer.getBoundingClientRect();this._savedWidth=O.width;this._translateOffset=this.position==="left"?O.left:O.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(O){this._trackDetails&&(this._translateDrawer(O.detail.dx+this._translateOffset),this._trackDetails.push({dx:O.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(O){if(this._trackDetails){var m=O.detail.dx+this._translateOffset,G=this.getWidth();m=this.position==="left"?m>=0||m<=-G:m<=0||m>=G;if(!m){var B=this._trackDetails;this._trackDetails=null;this._flingDrawer(O,B);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}G/=2;O.detail.dx<-G?this.opened=this.position==="right":O.detail.dx>G&&(this.opened=this.position==="left");m?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(O,m){for(var G=Date.now(),B=G-100,Q,H=0,M=m.length-1;H<=M;){var R=H+M>>1,x=m[R];x.timeStamp>=B?(Q=x,M=R-1):H=R+1}return Q?(O.detail.dx-Q.dx)/(G-Q.timeStamp||1):0},
_flingDrawer:function(O,m){m=this._calculateVelocity(O,m);if(!(Math.abs(m)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;O=O.detail.dx+this._translateOffset;var G=this.getWidth(),B=this.position==="left",Q=m>0;Q?(m=Math.max(m,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(m=Math.min(m,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");m=this._FLING_INITIAL_SLOPE*(!Q&&B?-(O+G):Q&&!B?G-O:-O)/m;this._styleTransitionDuration(m);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,m)}},
_styleTransitionDuration:function(O){this.style.transitionDuration=O+"ms";this.$.contentContainer.style.transitionDuration=O+"ms";this.$.scrim.style.transitionDuration=O+"ms"},
_styleTransitionTimingFunction:function(O){this.$.contentContainer.style.transitionTimingFunction=O;this.$.scrim.style.transitionTimingFunction=O},
_translateDrawer:function(O){var m=this.getWidth();this.position==="left"?(O=Math.max(-m,Math.min(O,0)),this.$.scrim.style.opacity=1+O/m):(O=Math.max(0,Math.min(O,m)),this.$.scrim.style.opacity=1-O/m);this.translate3d(O+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var O=this._drawerState;O===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;O!==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=""),O!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var O=_.SU(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"])');O.length>0?(this._firstTabStop=O[0],this._lastTabStop=O[O.length-1]):
this._lastTabStop=this._firstTabStop=null;(O=this.getAttribute("tabindex"))&&parseInt(O,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(O){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||O.keyCode!==9||(O.shiftKey?this._firstTabStop&&_.SU(O).localTarget===this._firstTabStop&&(O.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.SU(O).localTarget===this._lastTabStop&&(O.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(O,m){this.toggleClass("visible",O&&!m,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 aRA;var khA;_.kZ({_template:function(){if(khA!==void 0)return khA;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;aRA===void 0&&(aRA=document.createElement("template"));var B=aRA;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return khA=O},
is:"tp-yt-paper-progress",behaviors:[e53],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(O){this.toggleClass("indeterminate",O,this.$.primaryProgress)},
_transformProgress:function(O,m){O.style.transform=O.style.webkitTransform="scaleX("+m/100+")"},
_mainRatioChanged:function(O){this._transformProgress(this.$.primaryProgress,O)},
_progressChanged:function(O,m,G,B,Q){O=this._clampValue(O);m=this._clampValue(m);var H=this._calcRatio(O)*100,M=this._calcRatio(m)*100;this._setSecondaryRatio(H);this._transformProgress(this.$.secondaryProgress,H);this._transformProgress(this.$.primaryProgress,M);this.secondaryProgress=O;Q?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",m);this.setAttribute("aria-valuemin",G);this.setAttribute("aria-valuemax",B)},
_disabledChanged:function(O){this.setAttribute("aria-disabled",O?"true":"false")},
_hideSecondaryProgress:function(O){return O===0}});var yg9;var cgr;var YX0=function(){};
_.v=YX0.prototype;_.v.registered=function(){};
_.v.addOwnKeyBinding=function(){};
_.v.removeOwnKeyBindings=function(){};
_.v.keyboardEventMatchesKeys=function(){};
_.v._collectKeyBindings=function(){};
_.v._prepKeyBindings=function(){};
_.v._addKeyBinding=function(){};
_.v._resetKeyEventListeners=function(){};
_.v._listenKeyEventListeners=function(){};
_.v._unlistenKeyEventListeners=function(){};
_.v._onKeyBindingEvent=function(){};
_.v._triggerKeyHandler=function(){};
_.v._tapHandler=function(){};
_.v._focusChanged=function(){};
_.v._detectKeyboardFocus=function(){};
_.v._userActivate=function(){};
_.v._upHandler=function(){};
_.v._spaceKeyDownHandler=function(){};
_.v._spaceKeyUpHandler=function(){};
_.v._asyncClick=function(){};
_.v._pressedChanged=function(){};
_.v._ariaActiveAttributeChanged=function(){};
_.v._activeChanged=function(){};
_.v._controlStateChanged=function(){};
_.v._changedButtonState=function(){};
_.v._focusBlurHandler=function(){};
_.v._disabledChanged=function(){};
_.v._changedControlState=function(){};
_.v._buttonStateChanged=function(){};
_.v._downHandler=function(){};
_.v.ensureRipple=function(){};
_.v.getRipple=function(){};
_.v.hasRipple=function(){};
_.v._noinkChanged=function(){};
_.v._calcRatio=function(){};
_.v._clampValue=function(){};
_.v._calcStep=function(){};
_.v._validateValue=function(){};
_.v._update=function(){};
_.v._setImmediateValue=function(){};
_.v._setExpand=function(){};
_.v._setDragging=function(){};
_.v._setTransiting=function(){};
_.v._setMarkers=function(){};
_.v._setPressed=function(){};
_.v._setPointerDown=function(){};
_.v._setReceivedFocusFromKeyboard=function(){};
_.v._setFocused=function(){};
_.v._setRatio=function(){};
YX0=_.kZ({_template:function(){if(cgr!==void 0)return cgr;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;yg9===void 0&&(yg9=document.createElement("template"));var B=yg9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return cgr=O},
is:"tp-yt-paper-slider",behaviors:[_.l8,_.cK,_.p$o,e53],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&&_.kV(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(O,m,G){this.setAttribute("aria-valuemin",m);this.setAttribute("aria-valuemax",G);this.setAttribute("aria-valuenow",O);this._positionKnob(this._calcRatio(O)*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(O){this._setImmediateValue(this._calcStep(this._calcKnobPosition(O)));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(O){return(this.max-this.min)*O/100+this.min},
_onTrack:function(O){O.stopPropagation();switch(O.detail.state){case "start":this._trackStart(O);break;case "track":this._trackX(O);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(O){this.dragging||this._trackStart(O);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,O.detail.dx*(this._isRTL?-1:1)));O=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(O);O=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(O+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var O=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;O.transform=O.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(O){this._expandKnob();O.preventDefault();this.focus()},
_bartrack:function(O){this._allowBarEvent(O)&&this._onTrack(O)},
_barclick:function(O){this._w=this.$.sliderBar.offsetWidth;var m=this.$.sliderBar.getBoundingClientRect();m=(O.detail.x-m.left)/this._w*100;this._isRTL&&(m=100-m);var G=this.ratio;this._setTransiting(!0);this._positionKnob(m);G===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
O.preventDefault();this.focus()},
_bardown:function(O){this._allowBarEvent(O)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(O))},
_knobTransitionEnd:function(O){O.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(O,m,G,B){B||this._setMarkers([]);m=Math.round((G-m)/this.step);m>O&&(m=O);if(m<0||!isFinite(m))m=0;this._setMarkers(Array(m))},
_mergeClasses:function(O){return Object.keys(O).filter(function(m){return O[m]}).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(O){return!this.ignoreBarTouch||O.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(O){this._isRTL?this._incrementKey(O):this._decrementKey(O)},
_rightKey:function(O){this._isRTL?this._decrementKey(O):this._incrementKey(O)},
_incrementKey:function(O){this.disabled||(O.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),O.preventDefault())},
_decrementKey:function(O){this.disabled||(O.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),O.preventDefault())},
_changeValue:function(O){this.value=O.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(O){O.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Iop._createRipple.call(this)},
_focusedChanged:function(O){O&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=O?"":"none",this._ripple.holdDown=O)}});var dxJ;var wg0;var sV=null,eRb=function(){};
_.v=eRb.prototype;_.v.fit=function(){};
_.v._discoverInfo=function(){};
_.v.resetFit=function(){};
_.v.refit=function(){};
_.v.position=function(){};
_.v.constrain=function(){};
_.v._sizeDimension=function(){};
_.v.__sizeDimension=function(){};
_.v.center=function(){};
_.v.__getNormalizedRect=function(){};
_.v.__getOffscreenArea=function(){};
_.v.__getPosition=function(){};
_.v.notifyResize=function(){};
_.v.assignParentResizable=function(){};
_.v.stopResizeNotificationsFor=function(){};
_.v._subscribeIronResize=function(){};
_.v._unsubscribeIronResize=function(){};
_.v.resizerShouldNotify=function(){};
_.v._onDescendantIronResize=function(){};
_.v._fireResize=function(){};
_.v._onIronRequestResizeNotifications=function(){};
_.v._parentResizableChanged=function(){};
_.v._notifyDescendant=function(){};
_.v._requestResizeNotifications=function(){};
_.v._findParent=function(){};
_.v.toggle=function(){};
_.v.open=function(){};
_.v.close=function(){};
_.v.cancel=function(){};
_.v.invalidateTabbables=function(){};
_.v._ensureSetup=function(){};
_.v._canceledChanged=function(){};
_.v._withBackdropChanged=function(){};
_.v._prepareRenderOpened=function(){};
_.v._finishRenderOpened=function(){};
_.v._finishRenderClosed=function(){};
_.v._preparePositioning=function(){};
_.v._finishPositioning=function(){};
_.v._applyFocus=function(){};
_.v._onCaptureClick=function(){};
_.v._onCaptureFocus=function(){};
_.v._onCaptureEsc=function(){};
_.v._onCaptureTab=function(){};
_.v._onIronResize=function(){};
_.v._onNodesChange=function(){};
_.v.__ensureFirstLastFocusables=function(){};
_.v.__openedChanged=function(){};
_.v.__deraf=function(){};
_.v.__updateScrollObservers=function(){};
_.v.__addScrollListeners=function(){};
_.v.__removeScrollListeners=function(){};
_.v.__isValidScrollAction=function(){};
_.v.__onCaptureScroll=function(){};
_.v.__saveScrollPosition=function(){};
_.v.__restoreScrollPosition=function(){};
_.v._setCanceled=function(){};
eRb=_.kZ({_template:function(){if(wg0!==void 0)return wg0;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;dxJ===void 0&&(dxJ=document.createElement("template"));var B=dxJ;G.call(m,B.content.cloneNode(!0),O.content.firstChild);return wg0=O},
is:"tp-yt-paper-toast",behaviors:[_.Mc],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(){_.ac._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Bz.requestAvailability()},
show:function(O){typeof O=="string"&&(O={text:O});for(var m in O)m.indexOf("_")===0?_.ac._warn('The property "'+m+'" is private and was not set.'):m in this?this[m]=O[m]:_.ac._warn('The property "'+m+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(O){O&&O.target===this&&O.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(sV&&sV!==this&&sV.close(),sV=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):sV===this&&(sV=null);_.$4._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(O){this.positionTarget=O},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var DxA=new _.q$("disablePersonalizationAction");var Spr=new _.q$("showDmaConsentFlowCommand");var EK3=new _.q$("showMmgNoticeCommand");var sF0=new _.q$("saveConsentAction");var Nyx=function(O){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.o3(O)};
_.X(Nyx,_.MP);var PLo=_.o0z(Nyx);var F2b=new _.q$("updateTopbarAvatarAction");var Ag3=new _.q$("channelHandleValidationResultRenderer");var OQ3=new _.q$("generateHandleFromNameResultRenderer");var md9=new _.q$("channelHandleInputRenderer");var GR3=new _.q$("copyLinkRenderer");var BtJ=new _.q$("timedCommand");var Q4o=new _.q$("clearCookieAction");var HQ9=new _.q$("getMultiPageMenuAction");var vk9=new _.q$("addToGuideSectionAction"),KTJ=new _.q$("removeFromGuideSectionAction");var $dh=new _.q$("updateNotificationsUnseenCountAction");var M6K=new _.q$("resetChannelUnreadCountCommand");var rn9=new _.q$("resetSubscriptionsUnreadDotCommand");var RHs=new _.q$("selectLanguageCommand");var s_h=new _.q$("sendFeedbackAction");var iQh=new _.q$("uploadImageToScottyCommand");var xdr=new _.q$("registerPromoCommand");var qL9=new _.q$("setPushNotificationsEnabledCommand");var Ud3=new _.q$("desktopTopbarRenderer");var t63=new _.q$("surveyFollowUpRenderer");var WTr=new _.q$("handlesClaimingRadioOptionRenderer");var ZQB=new _.q$("hotkeyDialogRenderer");var zHs=new _.q$("modifyReportFormCommand");var JnA=new _.q$("accountLinkCommand");var V6o=new _.q$("accountUnlinkCommand");var bQJ=new _.q$("logAccountLinkingEventCommand");var nko=new _.q$("guideCollapsibleEntryRenderer");var XTh=new _.q$("guideDownloadsEntryRenderer");var NF=new _.q$("guideEntryRenderer");var fcB=new _.q$("getLocationCommand");var hHA=new _.q$("locationCollectionCommand");var Tts=new _.q$("storiesItemViewModel");var gk0=new _.q$("addToRemoteQueueAction");var uth=new _.q$("insertInRemoteQueueAction");var j4b=new _.q$("removeFromRemoteQueueAction");var Ics=new _.q$("notificationRenderer");var ZzJ=new _.q$("localWatchHistoryCommand");var pTr=new _.q$("pdgBuyFlowHeaderRenderer");var SLr=new _.q$("pdgColorSliderRenderer");var EkB=new _.q$("pdgCommentOptionRenderer");var LTu=new _.q$("pdgCommentPreviewRenderer");var COr=new _.q$("superVodSelectableItemButtonRenderer");var okh=new _.q$("switchButtonRenderer");var lco=new _.q$("upsellDialogRenderer");var ac3=new _.q$("feedbackQuestionRenderer"),kRA=new _.q$("feedbackOptionRenderer");var yno=new _.q$("sponsorshipsTierRenderer"),cnh=new _.q$("sponsorshipsPromotionChannelRenderer");var YLr=new _.q$("simpleSurveyMessageRenderer");var s$h=new _.q$("invokeInstrumentManagerAction");var ddA=new _.q$("logYpcFlowDismissCommand");var wTy=new _.q$("logYpcFlowStartCommand");var eHr=new _.q$("unlimitedCreateFamilyEndpoint");var DdA=new _.q$("iconBadgeRenderer");var zXr=new _.q$("collaborativePlaylistVisibilityValidationRule");var s4B=function(O){_.jB.call(this,"channelMessage");this.message=O};
_.X(s4B,_.jB);var Nt0=function(O){_.jB.call(this,"channelError");this.error=O};
_.X(Nt0,_.jB);var POB={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",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv"},FTB={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},Anr={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},OWB={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},mK0={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var P5=function(O){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 _.he;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;O&&(this.id=O.id||O.name,this.name=O.name,this.clientName=O.clientName?O.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=O.app,this.type=O.type||"REMOTE_CONTROL",this.username=O.user||"",this.avatar=O.userAvatarUri||"",this.obfuscatedGaiaId=O.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=O.ownerObfuscatedGaiaId||"",this.castUserId=O.castUserId||"",this.theme=O.theme||"u",Gjx(this,O.capabilities||""),Bmr(this,
O.compatibleSenderThemes||""),Qrr(this,O.experiments||""),this.remoteControllerUrl=O.remoteControllerUrl||"",this.localChannelEncryptionKey=O.localChannelEncryptionKey||"",this.deviceContext=O.deviceContext,this.brand=O.brand||"",this.model=O.model||"",this.year=O.year||0,this.os=O.os||"",this.osVersion=O.osVersion||"",this.chipset=O.chipset||"",this.mdxDialServerType=O.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=O.pairingType||"unknown",O=O.deviceInfo)&&(O=JSON.parse(O),this.brand=
O.brand||"",this.model=O.model||"",this.year=O.year||0,this.os=O.os||"",this.osVersion=O.osVersion||"",this.chipset=O.chipset||"",this.clientName=O.clientName?O.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=O.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
P5.prototype.copy=function(){var O={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&&(O.brand=this.brand);
this.model&&(O.model=this.model);this.year&&(O.year=this.year);this.os&&(O.os=this.os);this.osVersion&&(O.osVersion=this.osVersion);this.chipset&&(O.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(O.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(O.mdxDialServerType=this.mdxDialServerType);O=new P5(O);O.connected=this.connected;O.remoteControllerUrl=this.remoteControllerUrl;O.localChannelEncryptionKey=this.localChannelEncryptionKey;O.deviceContext=
this.deviceContext;O.castUserId=this.castUserId;return O};
P5.prototype.equals=function(O){return O?this.id==O.id:!1};
var Gjx=function(O,m){O.capabilities.clear();_.RE(m.split(","),_.hK(_.aM.contains,POB)).forEach(function(G){O.capabilities.add(G)})},Bmr=function(O,m){O.compatibleSenderThemes.clear();
_.RE(m.split(","),_.hK(_.aM.contains,FTB)).forEach(function(G){O.compatibleSenderThemes.add(G)})},Qrr=function(O,m){O.experiments.clear();
m.split(",").forEach(function(G){O.experiments.add(G)})};_.MQ(kw9,_.Iw);_.v=kw9.prototype;_.v.JSC$19756_onTick_=function(){this.JSC$19754_interval_=Math.min(3E5,this.JSC$19754_interval_*2);this.JSC$19756_listener_();this.nextTickTime_&&this.start()};
_.v.start=function(){var O=this.JSC$19754_interval_+15E3*Math.random(),m=this.delay_;m.isActive()||m.start(O);this.nextTickTime_=Date.now()+O};
_.v.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.v.isActive=function(){return this.delay_.isActive()};
_.v.reset=function(){this.delay_.stop();this.JSC$19754_interval_=5E3};_.MQ(Tr,cf3);_.v=Tr.prototype;_.v.subscribe=function(O,m,G){return this.pubsub_.subscribe(O,m,G)};
_.v.unsubscribe=function(O,m,G){return this.pubsub_.unsubscribe(O,m,G)};
_.v.unsubscribeByKey=function(O){return this.pubsub_.unsubscribeByKey(O)};
_.v.publish=function(O,m){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.v.dispose=function(){this.JSC$19757_disposed_||(this.JSC$19757_disposed_=!0,_.Kd(this.pubsub_),this.disconnect(),_.Kd(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19757_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.ZY({})})};
_.v.isDisposed=function(){return this.JSC$19757_disposed_};
_.v.connect=function(O,m,G){var B=this,Q,H,M,R;return _.r(function(x){if(x.nextAddress==1)return _.hX(x,2),B.useAsyncBrowserChannelHandler_?x.yield(B.connectPromise_,2):x.jumpTo(2);_.f_(x);if(B.JSC$19757_disposed_||B.JSC$19757_channel_&&B.JSC$19757_channel_.getState()==2)return x.return();B.sCookie_="";B.reconnectTimer_.stop();B.connectionParams_=O||null;B.connectUi_=m||0;Q=B.JSC$19757_pathPrefix_+"/test";H=B.JSC$19757_pathPrefix_+"/bind";M=new wq(G?G.firstTestResults:null,G?G.secondTestResults:null,
B.enableAsyncTest_);if(R=B.JSC$19757_channel_)R.handler_=null;M.handler_=B;B.JSC$19757_channel_=M;if(B.useAsyncBrowserChannelHandler_)return B.connectPromise_=HWB(B).then(function(){return vms(B,Q,H,R,G)}),x.return(B.connectPromise_.then(function(){B.connectPromise_=_.ZY()}));
vms(B,Q,H,R,G);return _.T9(x,0)})};
var vms=function(O,m,G,B,Q){KFo(O);if(O.JSC$19757_channel_){var H=_.kB("ID_TOKEN"),M=O.JSC$19757_channel_.JSC$19709_extraHeaders_||{};H?M["x-youtube-identity-token"]=H:delete M["x-youtube-identity-token"];O.JSC$19757_channel_.JSC$19709_extraHeaders_=M}$Kh(O);B?(B.getState(),O.JSC$19757_channel_.connect(m,G,O.defaultQueryParams_,B.sid_,B.JSC$19709_lastArrayId_)):Q?O.JSC$19757_channel_.connect(m,G,O.defaultQueryParams_,Q.sessionId,Q.arrayId):O.JSC$19757_channel_.connect(m,G,O.defaultQueryParams_)};
Tr.prototype.disconnect=function(O){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.ZY())}finally{this.disconnectUi_=O||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),KFo(this),this.JSC$19757_channel_&&(this.JSC$19757_channel_.getState()==3&&Cqr(this.JSC$19757_channel_),this.JSC$19757_channel_.disconnect()),this.disconnectUi_=0}};
Tr.prototype.sendMessage=function(O,m){var G=this,B;return _.r(function(Q){switch(Q.nextAddress){case 1:_.hX(Q,2);if(!G.useAsyncBrowserChannelHandler_){Q.jumpTo(2);break}return Q.yield(G.connectPromise_,2);case 2:_.f_(Q);if(G.JSC$19757_disposed_)return Q.return();B={_sc:O};m&&_.aM.extend(B,m);if(G.reconnectTimer_.isActive()||(G.JSC$19757_channel_?G.JSC$19757_channel_.getState():0)==2){G.JSC$19757_pendingMessages_.push(B);Q.jumpTo(6);break}if(!G.isChannelOpened()){Q.jumpTo(6);break}_.hX(Q,8);if(!G.useAsyncBrowserChannelHandler_||
MQ9(G,O)){Q.jumpTo(8);break}return Q.yield(HWB(G),8);case 8:_.f_(Q,0,0,1);G.isChannelOpened()&&(MQ9(G,O)||$Kh(G),KFo(G),Lt9(G.JSC$19757_channel_,B));_.T9(Q,6,1);break;case 6:_.T9(Q,0)}})};
var MQ9=function(O,m){return O.enableMdxAuthForConnectionOnly_?!0:O.disableMdxAuthForAdMessages_?Object.values(Anr).includes(m):O.disableMdxAuthForNonPlaybackMessages_?!Object.values(OWB).includes(m):O.disableMdxAuthForShortsMessages_?Object.values(mK0).includes(m):!1};
Tr.prototype.JSC$19716_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19757_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)rh0(this);else{var O=this.JSC$19757_pendingMessages_;this.JSC$19757_pendingMessages_=[];var m=O.length;$Kh(this);RLB(this,O,m);iWA(this)}else iWA(this)};
var rh0=function(O){var m,G;_.r(function(B){if(B.nextAddress==1)return _.hX(B,2),B.yield(HWB(O),2);_.f_(B);m=O.JSC$19757_pendingMessages_;O.JSC$19757_pendingMessages_=[];G=m.length;RLB(O,m,G);iWA(O);return _.T9(B,0)})},RLB=function(O,m,G){for(var B=0;B<G;++B)Lt9(O.JSC$19757_channel_,m[B]);
iWA(O)},iWA=function(O){O.publish("handlerOpened");
O.JSC$19757_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.v=Tr.prototype;_.v.JSC$19716_channelError=function(O){var m=O==2&&this.JSC$19757_channel_.JSC$19709_lastStatusCode_==401;O==4||m||this.reconnectTimer_.start();this.publish("handlerError",O,m);m=Object.keys(TTo).find(function(G){return TTo[G]===O});
this.JSC$19757_channelErrorCounter.increment("BROWSER_CHANNEL",m!=null?m:"UNKNOWN")};
_.v.JSC$19716_channelClosed=function(O,m){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(m)for(var G=m.length,B=0;B<G;++B){var Q=m[B].map;Q&&this.JSC$19757_pendingMessages_.push(Q)}this.JSC$19757_channelClosedCounter.increment("BROWSER_CHANNEL");O&&this.pendingMapsOnClosedCounter.JSC$9933_streamzService.JSC$9788_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",O.length);m&&this.undeliveredMapsOnClosedCounter.JSC$9936_streamzService.JSC$9788_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
m.length)};
_.v.JSC$19716_channelSuccess=function(O,m){m!=null&&O!=null&&this.channelMessageSentCounter.increment()};
_.v.JSC$19716_getAdditionalParams=function(){var O={v:2};this.sCookie_&&(O.gsessionid=this.sCookie_);this.connectUi_!=0&&(O.ui=""+this.connectUi_);this.disconnectUi_!=0&&(O.ui=""+this.disconnectUi_);this.connectionParams_&&_.aM.extend(O,this.connectionParams_);return O};
_.v.JSC$19716_channelHandleArray=function(O){O[0]=="S"?this.sCookie_=O[1]:O[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19757_channel_.disconnect()):this.publish("handlerMessage",new aOx(O[0],O[1]));this.JSC$19757_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.v.isChannelOpened=function(){return!!this.JSC$19757_channel_&&this.JSC$19757_channel_.getState()==3};
var KFo=function(O){if(O.JSC$19757_channel_){var m=O.JSC$19757_getXsrfToken_(),G=O.JSC$19757_channel_.JSC$19709_extraHeaders_||{};m?G["x-youtube-lounge-xsrf-token"]=m:delete G["x-youtube-lounge-xsrf-token"];O.JSC$19757_channel_.JSC$19709_extraHeaders_=G}},HWB=function(O){if(O.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.ZY();
if(!O.enableCachedUpdateAuthorizationHeader_)return xKx(O);O.updateAuthorizationHeaderPromise_===null&&(O.updateAuthorizationHeaderPromise_=xKx(O));return O.updateAuthorizationHeaderPromise_},xKx=function(O){return _.a7(O.getAuthorizationHeader_().then(function(m){qHx(O,m)}).thenCatch(function(){}),function(){O.updateAuthorizationHeaderPromise_=null})},qHx=function(O,m){if(O.JSC$19757_channel_){var G=O.JSC$19757_channel_.JSC$19709_extraHeaders_||{};
m&&Object.keys(m).length>0?G=Object.assign({},G,m):delete G.Authorization;O.JSC$19757_channel_.JSC$19709_extraHeaders_=G}},$Kh=function(O){O.getAuthorizationHeaderSync_&&!O.useAsyncBrowserChannelHandler_&&qHx(O,O.getAuthorizationHeaderSync_())};
_.v=Tr.prototype;_.v.setLoungeToken=function(O){(this.defaultQueryParams_.loungeIdToken=O)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19757_channel_){var m=this.JSC$19757_channel_.JSC$19709_extraHeaders_||{};O?m["X-YouTube-LoungeId-Token"]=O:delete m["X-YouTube-LoungeId-Token"];this.JSC$19757_channel_.JSC$19709_extraHeaders_=m}};
_.v.getDeviceId=function(){return this.defaultQueryParams_.id};
_.v.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.v.reconnect=function(){var O=this.reconnectTimer_;O.delay_.fire();O.start()};
_.v.safeReconnect_=function(){var O=this.JSC$19757_channel_,m=0;O.JSC$19709_backChannelRequest_&&m++;O.forwardChannelRequest_&&m++;m==0&&this.connect(this.connectionParams_,this.connectUi_)};var Ej=function(O,m){var G=O.basePath;O.supportCors&&(G=O.scheme+"://"+O.domain+O.port+O.basePath);return _.Oe(G+m,{})};
gf.prototype.sendRequest=function(O,m,G,B,Q,H,M){O={format:H?"RAW":"JSON",method:O,context:this,timeout:5E3,withCredentials:!!M,onSuccess:_.hK(this.JSC$19762_onSuccess_,B,!H),onError:_.hK(this.onError_,Q),onTimeout:_.hK(this.JSC$19762_onTimeout_,Q)};G&&(O.postParams=G,O.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Vb(m,O)};
gf.prototype.JSC$19762_onSuccess_=function(O,m,G,B){m?O(B):O({text:G.responseText})};
gf.prototype.onError_=function(O,m){O(Error("Sk`"+m.status))};
gf.prototype.JSC$19762_onTimeout_=function(O){O(Error("Tk"))};var jc=function(O,m){return!!m&&(O.id==m||O.uuid==m)},UKy=function(O){return{name:O.name,
screenId:O.id,loungeToken:O.token,dialId:O.uuid,screenIdType:O.idType}},tQs=function(O){return new ut(O)},WFA=function(O){return Array.isArray(O)?_.k6(O,tQs):[]},PKh=function(O){if(!O)return"null";
var m=O.token?".."+O.token.slice(-6):"-",G=O.uuid?".."+O.uuid.slice(-6):"-";return'{name:"'+O.name+'",id:'+O.id.substr(0,6)+"..,token:"+(m+",uuid:"+G+",idType:"+O.idType+"}")},XEu=function(O){return Array.isArray(O)?"["+_.k6(O,PKh).join(",")+"]":"null"};var QpK="",Sc=null;var xNB=function(O,m){_.Ly.call(this);var G=this;this.handler=O();this.handler.subscribe("handlerOpened",this.JSC$19769_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(B,Q){G.onError(Q)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=m};
_.X(xNB,_.Ly);_.v=xNB.prototype;_.v.connect=function(O,m,G){this.handler.connect(O,m,G)};
_.v.disconnect=function(O){this.handler.disconnect(O)};
_.v.reconnect=function(){this.handler.reconnect()};
_.v.getDeviceId=function(){return this.handler.getDeviceId()};
_.v.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.v.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.v.JSC$19769_onOpened=function(){this.dispatchEvent("channelOpened");var O=this.handler,m=this.currentScreenId;_.cX("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!O.JSC$19757_channel_.useChunked_,sessionId:O.JSC$19757_channel_.sid_,arrayId:O.JSC$19757_channel_.JSC$19709_lastArrayId_});_.cX("yt-remote-session-screen-id",m);O=F$y();m=AGr();_.kO(O,m)||O.push(m);Bur(O);GS9()};
_.v.onClosed=function(){this.dispatchEvent("channelClosed")};
_.v.onMessage=function(O){this.dispatchEvent(new s4B(O))};
_.v.onError=function(O){this.dispatchEvent(new Nt0(O?1:0))};
_.v.sendMessage=function(O,m){this.handler.sendMessage(O,m)};
_.v.setLoungeToken=function(O){this.handler.setLoungeToken(O)};
_.v.dispose=function(){this.handler.dispose()};var imo=function(O,m,G){var B=this;G=G===void 0?function(){return""}:G;
var Q=Q===void 0?new Ojs:Q;var H=H===void 0?new _.nR:H;this.pathPrefix=O;this.defaultQueryParams=m;this.getXsrfToken=G;this.JSC$19772_pubsub=H;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new kw9(function(){var M;((M=B.channel)==null?void 0:jiK((new BTB(M,M.JSC$19680_channel_)).JSC$19690_channel_.forwardChannelRequestPool_))===0&&B.connect(B.connectionParams,B.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19772_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19772_channelOpenedCounter=new yG3;this.JSC$19772_channelClosedCounter=new cG0;this.JSC$19772_channelMessageReceivedCounter=new djo;this.JSC$19772_channelErrorCounter=new wCs};
imo.prototype.connect=function(O,m){O=O===void 0?{}:O;m=m===void 0?0:m;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=O,this.connectUi=m,ZWA(this),(O=_.kB("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=O: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 lZ(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,zLb(this))};
var zLb=function(O){_.Cm(O.channel,"w",function(){O.channelState=3;O.reconnectTimer.reset();O.connectionParams=null;O.connectUi=0;for(var m=_.K(O.nonAckedMessagesOnChannelClosed),G=m.next();!G.done;G=m.next())G=G.value,O.channel&&O.channel.send(G);O.nonAckedMessagesOnChannelClosed=[];O.publish("webChannelOpened");O.JSC$19772_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Cm(O.channel,"x",function(){O.channelState=0;O.reconnectTimer.isActive()||O.publish("webChannelClosed");var m,G=(m=O.channel)==null?void 0:QCJ(new BTB(m,m.JSC$19680_channel_));G&&(O.nonAckedMessagesOnChannelClosed=[].concat(_.lS(G)));O.JSC$19772_channelClosedCounter.increment("WEB_CHANNEL")});
_.Cm(O.channel,"z",function(m){var G=m.data;G[0]==="gracefulReconnect"?(O.reconnectTimer.start(),O.channel&&O.channel.close()):O.publish("webChannelMessage",new aOx(G[0],G[1]));O.lastStatusCode=m.statusCode;O.JSC$19772_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Cm(O.channel,"y",function(){O.lastStatusCode===401||O.reconnectTimer.start();O.publish("webChannelError");O.JSC$19772_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.v=imo.prototype;_.v.disconnect=function(O){this.disconnectUi=O===void 0?0:O;this.reconnectTimer.stop();ZWA(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.v.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.v.reconnect=function(){var O=this.reconnectTimer;O.delay_.fire();O.start()};
_.v.sendMessage=function(O,m){this.channel&&(ZWA(this),O=Object.assign({},{_sc:O},m),this.channel.send(O))};
_.v.setLoungeToken=function(O){O||this.reconnectTimer.stop();O?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=O:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var ZWA=function(O){var m=O.getXsrfToken();m?O.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=m:delete O.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.v=imo.prototype;_.v.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.v.publish=function(O){return this.JSC$19772_pubsub.publish.apply(this.JSC$19772_pubsub,[O].concat(_.lS(_.eA.apply(1,arguments))))};
_.v.subscribe=function(O,m,G){return this.JSC$19772_pubsub.subscribe(O,m,G)};
_.v.unsubscribe=function(O,m,G){return this.JSC$19772_pubsub.unsubscribe(O,m,G)};
_.v.unsubscribeByKey=function(O){return this.JSC$19772_pubsub.unsubscribeByKey(O)};
_.v.dispose=function(){this.JSC$19772_disposed||(this.JSC$19772_disposed=!0,_.Kd(this.JSC$19772_pubsub),this.disconnect(),_.Kd(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.v.isDisposed=function(){return this.JSC$19772_disposed};var RBu=function(O){_.Ly.call(this);this.webChannelService=O();this.webChannelService.subscribe("webChannelOpened",this.JSC$19780_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.X(RBu,_.Ly);_.v=RBu.prototype;_.v.connect=function(O,m){this.webChannelService.connect(O,m)};
_.v.disconnect=function(O){this.webChannelService.disconnect(O)};
_.v.reconnect=function(){this.webChannelService.reconnect()};
_.v.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.v.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.v.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.v.JSC$19780_onOpened=function(){this.dispatchEvent("channelOpened")};
_.v.onClosed=function(){this.dispatchEvent("channelClosed")};
_.v.onMessage=function(O){this.dispatchEvent(new s4B(O))};
_.v.onError=function(){this.dispatchEvent(new Nt0(this.webChannelService.lastStatusCode===401?1:0))};
_.v.sendMessage=function(O,m){this.webChannelService.sendMessage(O,m)};
_.v.setLoungeToken=function(O){this.webChannelService.setLoungeToken(O)};
_.v.dispose=function(){this.webChannelService.dispose()};var nnx=Date.now(),LZ=null,VgJ=Array(50),lt=-1,bmr=!1;_.MQ(aH,_.Yd);aH.prototype.getScreens=function(){return this.screens};
aH.prototype.contains=function(O){return!!Pco(this.screens,O)};
aH.prototype.get=function(O){return O?IH(this.screens,O):null};
var Jho=function(O,m){var G=O.get(m.uuid)||O.get(m.id);if(G)return O=G.name,G.id=m.id||G.id,G.name=m.name,G.token=m.token,G.uuid=m.uuid||G.uuid,G.name!=O;O.screens.push(m);return!0},VQb=function(O,m){var G=O.screens.length!=m.length;
O.screens=_.RE(O.screens,function(H){return!!Pco(m,H)});
for(var B=m.length,Q=0;Q<B;Q++)G=Jho(O,m[Q])||G;return G},bWb=function(O,m){var G=O.screens.length;
O.screens=_.RE(O.screens,function(B){return!(B||m?!B!=!m?0:B.id==m.id:1)});
return O.screens.length<G};
aH.prototype.info=function(O){CZ(this.JSC$19781_logName_,O)};var nmr=function(O,m,G,B,Q){_.Yd.call(this);this.JSC$19784_http_=O;this.pairingCode_=m;this.deviceId_=G;this.friendlyName_=B;this.enableShortLivedLoungeToken_=Q;this.pollIndex_=0;this.JSC$19784_xhr_=null;this.JSC$19784_timer_=NaN};
_.X(nmr,_.Yd);_.v=nmr.prototype;_.v.start=function(){!this.JSC$19784_xhr_&&isNaN(this.JSC$19784_timer_)&&this.poll_()};
_.v.stop=function(){this.JSC$19784_xhr_&&(this.JSC$19784_xhr_.abort(),this.JSC$19784_xhr_=null);isNaN(this.JSC$19784_timer_)||(_.zg(this.JSC$19784_timer_),this.JSC$19784_timer_=NaN)};
_.v.disposeInternal=function(){this.stop();_.Yd.prototype.disposeInternal.call(this)};
_.v.poll_=function(){this.JSC$19784_timer_=NaN;this.JSC$19784_xhr_=_.Vb(Ej(this.JSC$19784_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.pd)(this.JSC$19786_onSuccess_,this),onError:(0,_.pd)(this.onError_,this),onTimeout:(0,_.pd)(this.JSC$19786_onTimeout_,this)})};
_.v.JSC$19786_onSuccess_=function(O,m){this.JSC$19784_xhr_=null;O=m.screen||{};O.dialId=this.deviceId_;O.name=this.friendlyName_;m=-1;this.enableShortLivedLoungeToken_&&O.shortLivedLoungeToken&&O.shortLivedLoungeToken.value&&O.shortLivedLoungeToken.refreshIntervalMs&&(O.screenIdType="shortLived",O.loungeToken=O.shortLivedLoungeToken.value,m=O.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new ut(O),m)};
_.v.onError_=function(O){this.JSC$19784_xhr_=null;O.status&&O.status==404?this.pollIndex_>=XLA.length?this.publish("pairingFailed",Error("Uk")):(O=XLA[this.pollIndex_],this.JSC$19784_timer_=_.W7((0,_.pd)(this.poll_,this),O),this.pollIndex_++):this.publish("pairingFailed",Error("Vk`"+O.status))};
_.v.JSC$19786_onTimeout_=function(){this.JSC$19784_xhr_=null;this.publish("pairingFailed",Error("Wk"))};
var XLA=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.MQ(y3,aH);_.v=y3.prototype;_.v.start=function(){kP(this)&&this.publish("screenChange");!_.YH("yt-remote-lounge-token-expiration")&&f2r(this);_.zg(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.W7((0,_.pd)(this.start,this),1E4)};
_.v.add=function(O,m){kP(this);Jho(this,O);hLb(this,!1);this.publish("screenChange");m(O);O.token||f2r(this)};
_.v.remove=function(O,m){var G=kP(this);bWb(this,O)&&(hLb(this,!1),G=!0);m(O);G&&this.publish("screenChange")};
_.v.updateName=function(O,m,G,B){var Q=kP(this),H=this.get(O.id);H?(H.name!=m&&(H.name=m,hLb(this,!1),Q=!0),G(O)):B(Error("Xk"));Q&&this.publish("screenChange")};
_.v.disposeInternal=function(){_.zg(this.loungeTokenRefreshTimer_);y3.superClass_.disposeInternal.call(this)};
var f2r=function(O){if(O.screens.length){var m=_.k6(O.screens,function(B){return B.id}),G=Ej(O.JSC$19788_http_,"/pairing/get_lounge_token_batch");
O.JSC$19788_http_.sendRequest("POST",G,{screen_ids:m.join(",")},(0,_.pd)(O.handleLoungeTokens_,O),(0,_.pd)(O.handleLoungeTokenError_,O))}};
y3.prototype.handleLoungeTokens_=function(O){kP(this);var m=this.screens.length;O=O&&O.screens||[];for(var G=O.length,B=0;B<G;++B){var Q=O[B],H=this.get(Q.screenId);H&&(H.token=Q.loungeToken,--m)}hLb(this,!m);m&&CZ(this.JSC$19781_logName_,"Missed "+m+" lounge tokens.")};
y3.prototype.handleLoungeTokenError_=function(O){CZ(this.JSC$19781_logName_,"Requesting lounge tokens failed: "+O)};
var kP=function(O){if(_.V("deprecate_pair_servlet_enabled"))return VQb(O,[]);var m=WFA(vn0());m=_.RE(m,function(G){return!G.uuid});
return VQb(O,m)},hLb=function(O,m){$Nr(_.k6(O.screens,UKy));
m&&Kps()};var Ff=function(O,m){_.Yd.call(this);this.getScreensToCheck_=m;m=(m=_.YH("yt-remote-online-screen-ids")||"")?m.split(","):[];for(var G={},B=this.getScreensToCheck_(),Q=B.length,H=0;H<Q;++H){var M=B[H].id;G[M]=_.kO(m,M)}this.screenIdSet_=G;this.JSC$19791_http_=O;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;Tmo("Initialized with "+(0,_.ck)(this.screenIdSet_))};
_.X(Ff,_.Yd);Ff.prototype.isOnline=function(O){return!!this.screenIdSet_[O]};
Ff.prototype.start=function(){var O=parseInt(_.YH("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.$F()-144E5<O?0:O)?gmh(this):(this.fastCheckEndTime_=_.$F()+3E5,_.cX("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
Ff.prototype.isEmpty=function(){return _.aM.isEmpty(this.screenIdSet_)};
Ff.prototype.update=function(){Tmo("Updating availability on schedule.");var O=this.getScreensToCheck_(),m=_.aM.filter(this.screenIdSet_,function(G,B){return G&&!!IH(O,B)},this);
u$o(this,m)};
var jrh=function(O,m,G){var B=Ej(O.JSC$19791_http_,"/pairing/get_screen_availability");O.JSC$19791_http_.sendRequest("POST",B,{lounge_token:m.token},(0,_.pd)(function(Q){Q=Q.screens||[];for(var H=Q.length,M=0;M<H;++M)if(Q[M].loungeToken==m.token){G(Q[M].status=="online");return}G(!1)},O),(0,_.pd)(function(){G(!1)},O))};
Ff.prototype.disposeInternal=function(){_.zg(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Yd.prototype.disposeInternal.call(this)};
var u$o=function(O,m){a:if(_.aM.getCount(m)!=_.aM.getCount(O.screenIdSet_))var G=!1;else{G=_.aM.getKeys(m);for(var B=G.length,Q=0;Q<B;++Q)if(!O.screenIdSet_[G[Q]]){G=!1;break a}G=!0}G||(Tmo("Updated online screens: "+(0,_.ck)(O.screenIdSet_)),O.screenIdSet_=m,O.publish("screenChange"));I2b(O)},gmh=function(O){isNaN(O.refreshTimer_)||_.zg(O.refreshTimer_);
O.refreshTimer_=_.W7((0,_.pd)(O.requestScreenAvailability_,O),O.fastCheckEndTime_>0&&O.fastCheckEndTime_<_.$F()?2E4:1E4)};
Ff.prototype.requestScreenAvailability_=function(){_.zg(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var O=pLr(this);if(_.aM.getCount(O)){var m=Ej(this.JSC$19791_http_,"/pairing/get_screen_availability"),G={lounge_token:_.aM.getKeys(O).join(",")};this.currentRequest_=this.JSC$19791_http_.sendRequest("POST",m,G,(0,_.pd)(this.onScreenAvailability_,this,O),(0,_.pd)(this.onScreenAvailabilityError_,this))}else u$o(this,{}),gmh(this)};
Ff.prototype.onScreenAvailability_=function(O,m){this.currentRequest_=null;var G=_.aM.getKeys(pLr(this));if(_.Np(G,_.aM.getKeys(O))){m=m.screens||[];G={};for(var B=m.length,Q=0;Q<B;++Q)G[O[m[Q].loungeToken]]=m[Q].status=="online";u$o(this,G);gmh(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
Ff.prototype.onScreenAvailabilityError_=function(O){this.warn_("Screen availability failed: "+O);this.currentRequest_=null;gmh(this)};
var Tmo=function(O){CZ("OnlineScreenService",O)};
Ff.prototype.warn_=function(O){CZ("OnlineScreenService",O)};
var pLr=function(O){var m={};_.Nr(O.getScreensToCheck_(),function(G){G.token?m[G.token]=G.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return m},I2b=function(O){O=_.aM.getKeys(_.aM.filter(O.screenIdSet_,function(m){return m}));
O.sort(_.TNe);O.length?_.cX("yt-remote-online-screen-ids",O.join(","),60):_.dH("yt-remote-online-screen-ids")};_.MQ(cB,aH);_.v=cB.prototype;_.v.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.v.add=function(O,m,G){this.localScreenService_.add(O,m,G)};
_.v.remove=function(O,m,G){this.localScreenService_.remove(O,m,G);this.onlineScreenService_.update()};
_.v.updateName=function(O,m,G,B){this.localScreenService_.contains(O)?this.localScreenService_.updateName(O,m,G,B):(O="Updating name of unknown screen: "+O.name,CZ(this.JSC$19781_logName_,O),B(Error(O)))};
_.v.getScreens=function(O){return O?this.screens:JKr(this.screens,_.RE(this.automaticScreens_,function(m){return!this.contains(m)},this))};
_.v.JSC$19796_getOnlineScreens=function(){return _.RE(this.getScreens(!0),function(O){return this.onlineScreenService_.isOnline(O.id)},this)};
var Emy=function(O,m,G,B,Q,H){O.info("getAutomaticScreenByIds "+G+" / "+m);G||(G=O.deviceToScreenId_[m]);var M=O.getScreens(),R=G?IH(M,G):null;G&&(O.disableAutomaticScreenCache_||R)||(R=IH(M,m));if(R){R.uuid=m;var x=AP(O,R);jrh(O.onlineScreenService_,x,function(t){Q(t?x:null)})}else G?SHJ(O,G,(0,_.pd)(function(t){var W=AP(this,new ut({name:B,
screenId:G,loungeToken:t,dialId:m||""}));jrh(this.onlineScreenService_,W,function(Z){Q(Z?W:null)})},O),H):Q(null)};
cB.prototype.JSC$19796_getScreenByPollingPairingCode=function(O,m,G,B,Q,H){var M=this;this.info("getDialScreenByPairingCode "+O+" / "+m);var R=new nmr(this.JSC$19794_http_,O,m,G,B);R.subscribe("pairingComplete",function(x,t){_.Kd(R);Q(AP(M,x),t)});
R.subscribe("pairingFailed",function(x){_.Kd(R);H(x)});
R.start();return(0,_.pd)(R.stop,R)};
var LFJ=function(O,m){for(var G=O.screens.length,B=0;B<G;++B)if(O.screens[B].name==m)return O.screens[B];return null};
cB.prototype.JSC$19796_getScreenByPairingCode=function(O,m,G,B){_.Vb(Ej(this.JSC$19794_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:O},timeout:5E3,onSuccess:(0,_.pd)(function(Q,H){Q=new ut(H.screen||{});if(!Q.name||LFJ(this,Q.name)){a:{H=Q.name;for(var M=2,R=m(H,M);LFJ(this,R);){M++;if(M>20)break a;R=m(H,M)}H=R}Q.name=H}G(AP(this,Q))},this),
onError:(0,_.pd)(function(Q){B(Error("Yk`"+Q.status))},this),
onTimeout:(0,_.pd)(function(){B(Error("Zk"))},this)})};
var Cp0=function(O,m,G){jrh(O.onlineScreenService_,m,G)};
cB.prototype.disposeInternal=function(){_.Kd(this.localScreenService_);_.Kd(this.onlineScreenService_);cB.superClass_.disposeInternal.call(this)};
var SHJ=function(O,m,G,B){O.info("requestLoungeToken_ for "+m);var Q={postParams:{screen_ids:m},method:"POST",context:O,onSuccess:function(H,M){H=M&&M.screens||[];H[0]&&H[0].screenId==m?G(H[0].loungeToken):B(Error("$k"))},
onError:function(){B(Error("al"))}};
_.Vb(Ej(O.JSC$19794_http_,"/pairing/get_lounge_token_batch"),Q)},om0=function(O){O.screens=O.localScreenService_.getScreens();
for(var m=_.aM.transpose(O.deviceToScreenId_),G=O.screens.length,B=0;B<G;++B){var Q=O.screens[B];Q.uuid=m[Q.id]||""}O.info("Updated manual screens: "+XEu(O.screens))};
cB.prototype.handleScreenChange_=function(){om0(this);this.publish("screenChange");this.onlineScreenService_.update()};
var fBK=function(O){l2r(O);O.localScreenService_=new y3(O.JSC$19794_http_);O.localScreenService_.subscribe("screenChange",(0,_.pd)(O.handleScreenChange_,O));om0(O);O.disableAutomaticScreenCache_||(O.automaticScreens_=WFA(_.YH("yt-remote-automatic-screen-cache")||[]));l2r(O);O.info("Initializing automatic screens: "+XEu(O.automaticScreens_));O.onlineScreenService_=new Ff(O.JSC$19794_http_,(0,_.pd)(O.getScreens,O,!0));O.onlineScreenService_.subscribe("screenChange",(0,_.pd)(function(){this.publish("onlineScreenChange")},
O))},AP=function(O,m){var G=O.get(m.id);
G?(G.uuid=m.uuid,m=G):((G=IH(O.automaticScreens_,m.uuid))?(G.id=m.id,G.token=m.token,m=G):O.automaticScreens_.push(m),O.disableAutomaticScreenCache_||a2h(O));l2r(O);O.deviceToScreenId_[m.uuid]=m.id;_.cX("yt-remote-device-id-map",O.deviceToScreenId_,31536E3);return m},a2h=function(O){O=_.RE(O.automaticScreens_,function(m){return m.idType!="shortLived"});
_.cX("yt-remote-automatic-screen-cache",_.k6(O,UKy))},l2r=function(O){O.deviceToScreenId_=_.YH("yt-remote-device-id-map")||{}};
cB.prototype.dispose=cB.prototype.dispose;_.MQ(YP,_.Yd);var Oy=function(O,m){O.screen_=m;O.publish("sessionScreen",O.screen_)},kj0=function(O,m){O.screen_&&(O.screen_.token=m,AP(O.JSC$19798_screenService_,O.screen_));
O.publish("sessionScreen",O.screen_)};
YP.prototype.onSessionStopped=function(O){this.isDisposed()||(O&&(mn(this,""+O),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
YP.prototype.info=function(O){CZ(this.JSC$19798_logName_,O)};
var mn=function(O,m){CZ(O.JSC$19798_logName_,m)};
YP.prototype.JSC$19800_getCastSession=function(){return null};
YP.prototype.setDisplayStatus=function(O){var m=this.receiver_;O?(m.displayStatus=new chrome.cast.ReceiverDisplayStatus(O,[]),m.displayStatus.showStop=!0):m.displayStatus=null;chrome.cast.setReceiverDisplayStatus(m,(0,_.pd)(function(){this.info("Updated receiver status for "+m.friendlyName+": "+O)},this),(0,_.pd)(function(){mn(this,"Failed to update receiver status for: "+m.friendlyName)},this))};
YP.prototype.disposeInternal=function(){this.setDisplayStatus("");YP.superClass_.disposeInternal.call(this)};var G3=function(O,m,G){YP.call(this,O,m,"CastSession");var B=this;this.config_=G;this.JSC$19803_session_=null;this.JSC$19803_boundSessionUpdate_=(0,_.pd)(this.JSC$19805_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.pd)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.W7(function(){yhs(B,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19803_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19803_isInitLoungeToken_=!1;this.JSC$19803_lastLoungeTokenRefreshError_="unknown"};
_.X(G3,YP);_.v=G3.prototype;
_.v.setCastSession=function(O){if(this.JSC$19803_session_){if(this.JSC$19803_session_==O)return;mn(this,"Overriding cast session with new session object");chs(this);this.JSC$19803_isInitLoungeToken_=!1;this.JSC$19803_lastLoungeTokenRefreshError_="unknown";this.JSC$19803_session_.removeUpdateListener(this.JSC$19803_boundSessionUpdate_);this.JSC$19803_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19803_session_=O;this.JSC$19803_session_.addUpdateListener(this.JSC$19803_boundSessionUpdate_);this.JSC$19803_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);YHJ(this,"getMdxSessionStatus")};
_.v.launchWithParams=function(O){this.info("launchWithParams no-op for Cast: "+(0,_.ck)(O))};
_.v.stop=function(){if(this.JSC$19803_session_)this.JSC$19803_session_.stop((0,_.pd)(function(){this.onSessionStopped()},this),(0,_.pd)(function(){this.onSessionStopped(Error("bl"))},this));
else this.onSessionStopped(Error("cl"))};
_.v.setDisplayStatus=function(){};
_.v.disposeInternal=function(){this.info("disposeInternal");chs(this);this.JSC$19803_session_&&(this.JSC$19803_session_.removeUpdateListener(this.JSC$19803_boundSessionUpdate_),this.JSC$19803_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19803_session_=null;YP.prototype.disposeInternal.call(this)};
var wLK=function(O,m){_.zg(O.getLoungeTokenTimeoutKey_);O.getLoungeTokenTimeoutKey_=0;m==0?dKu(O):O.getLoungeTokenTimeoutKey_=_.W7(function(){dKu(O)},m)},dKu=function(O){YHJ(O,"getLoungeToken");
_.zg(O.onLoungeTokenTimeoutKey_);O.onLoungeTokenTimeoutKey_=_.W7(function(){eLr(O,null)},3E4)},YHJ=function(O,m){O.info("sendYoutubeMessage_: "+m+" "+(0,_.ck)(void 0));
var G={};G.type=m;O.JSC$19803_session_?O.JSC$19803_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",G,function(){},(0,_.pd)(function(){mn(this,"Failed to send message: "+m+".")},O)):mn(O,"Sending yt message without session: "+(0,_.ck)(G))};
G3.prototype.onYoutubeMessage_=function(O,m){if(!this.isDisposed())if(m)if(m=(0,_.CC)(m),_.Dp(m))switch(O=""+m.type,m=m.data||{},this.info("onYoutubeMessage_: "+O+" "+(0,_.ck)(m)),O){case "mdxSessionStatus":yhs(this,m);break;case "loungeToken":eLr(this,m);break;default:mn(this,"Unknown youtube message: "+O)}else mn(this,"Unable to parse message.");else mn(this,"No data in message.")};
var DKr=function(O,m){if(m)O.info("onConnectedScreenId_: Received screenId: "+m),O.screen_&&O.screen_.id==m||O.getScreen_(m,function(G){Oy(O,G)},function(){return O.onSessionStopped()},5);
else O.onSessionStopped(Error("dl"))},NmB=function(O,m,G){O.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(m));
var B=new ut(m);srh(O,B,function(Q){Q?(O.JSC$19803_isInitLoungeToken_=!0,AP(O.JSC$19798_screenService_,B),Oy(O,B),O.JSC$19803_lastLoungeTokenRefreshError_="unknown",wLK(O,G)):(_.di(Error("el`"+JSON.stringify(m))),O.onSessionStopped())},5)},yhs=function(O,m){_.zg(O.sessionStatusTimeoutKey_);
O.sessionStatusTimeoutKey_=0;if(m)O.config_.enableCastLoungeToken&&m.loungeToken?m.deviceId?O.screen_&&O.screen_.uuid==m.deviceId||(m.loungeTokenRefreshIntervalMs?NmB(O,{name:O.receiver_.friendlyName,screenId:m.screenId,loungeToken:m.loungeToken,dialId:m.deviceId,screenIdType:"shortLived"},m.loungeTokenRefreshIntervalMs):(_.di(Error("gl`"+JSON.stringify(m))),DKr(O,m.screenId))):(_.di(Error("fl`"+JSON.stringify(m))),DKr(O,m.screenId)):DKr(O,m.screenId);else O.onSessionStopped(Error("dl"))},eLr=function(O,
m){_.zg(O.onLoungeTokenTimeoutKey_);
O.onLoungeTokenTimeoutKey_=0;var G=null;if(m)if(m.loungeToken){var B;((B=O.screen_)==null?void 0:B.token)==m.loungeToken&&(G="staleLoungeToken")}else G="missingLoungeToken";else G="noLoungeTokenResponse";G?(O.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(m)+", error: "+G)),O.JSC$19803_lastLoungeTokenRefreshError_=G,wLK(O,3E4)):(kj0(O,m.loungeToken),O.JSC$19803_isInitLoungeToken_=!1,O.JSC$19803_lastLoungeTokenRefreshError_="unknown",wLK(O,m.loungeTokenRefreshIntervalMs))};
G3.prototype.getScreen_=function(O,m,G,B){_.zg(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;Emy(this.JSC$19798_screenService_,this.receiver_.label,O,this.receiver_.friendlyName,(0,_.pd)(function(Q){Q?m(Q):B>=0?(mn(this,"Screen "+O+" appears to be offline. "+B+" retries left."),this.getScreenTimeoutKey_=_.W7((0,_.pd)(this.getScreen_,this,O,m,G,B-1),300)):G(Error("hl"))},this),G)};
var srh=function(O,m,G,B){_.zg(O.JSC$19803_checkScreenAvailabilityTimeoutKey_);O.JSC$19803_checkScreenAvailabilityTimeoutKey_=0;Cp0(O.JSC$19798_screenService_,m,function(Q){Q||B<0?G(Q):O.JSC$19803_checkScreenAvailabilityTimeoutKey_=_.W7(function(){srh(O,m,G,B-1)},300)})};
G3.prototype.JSC$19800_getCastSession=function(){return this.JSC$19803_session_};
G3.prototype.JSC$19805_onSessionUpdate_=function(O){this.isDisposed()||O||(mn(this,"Cast session died."),this.onSessionStopped())};
var chs=function(O){_.zg(O.getScreenTimeoutKey_);O.getScreenTimeoutKey_=0;_.zg(O.JSC$19803_checkScreenAvailabilityTimeoutKey_);O.JSC$19803_checkScreenAvailabilityTimeoutKey_=0;_.zg(O.sessionStatusTimeoutKey_);O.sessionStatusTimeoutKey_=0;_.zg(O.onLoungeTokenTimeoutKey_);O.onLoungeTokenTimeoutKey_=0;_.zg(O.getLoungeTokenTimeoutKey_);O.getLoungeTokenTimeoutKey_=0};var Bj=function(O,m,G,B){YP.call(this,O,m,"DialSession");this.config_=B;this.JSC$19807_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19807_theme_=G;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19807_deferredLaunchDeadlineTimer_=NaN;this.JSC$19807_boundSessionUpdate_=(0,_.pd)(this.JSC$19809_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19807_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19807_isInitLoungeToken_=!1;this.JSC$19807_lastLoungeTokenRefreshError_="unknown"};
_.X(Bj,YP);Bj.prototype.setCastSession=function(O){this.JSC$19807_session_=O;this.JSC$19807_session_.addUpdateListener(this.JSC$19807_boundSessionUpdate_)};
Bj.prototype.launchWithParams=function(O){this.connectData_=O;this.deferredLaunch_()};
Bj.prototype.stop=function(){Ppx(this);if(this.JSC$19807_session_)this.JSC$19807_session_.stop((0,_.pd)(this.onSessionStopped,this,null),(0,_.pd)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Bj.prototype.disposeInternal=function(){Ppx(this);this.JSC$19807_session_&&this.JSC$19807_session_.removeUpdateListener(this.JSC$19807_boundSessionUpdate_);this.JSC$19807_session_=null;YP.prototype.disposeInternal.call(this)};
var FFJ=function(O){var m;return!!(O.config_.enableDialLoungeToken&&((m=O.JSC$19807_session_)==null?0:m.getDialAppInfo))},Ahr=function(O){O.cancelPolling_=O.JSC$19798_screenService_.JSC$19796_getScreenByPollingPairingCode(O.reversePairingCode_,O.receiver_.label,O.receiver_.friendlyName,FFJ(O),function(m,G){O.cancelPolling_=function(){};
O.JSC$19807_isInitLoungeToken_=!0;Oy(O,m);m.idType=="shortLived"&&G>0&&QL(O,G)},function(m){O.cancelPolling_=function(){};
O.onSessionStopped(m)})};
Bj.prototype.JSC$19809_onSessionUpdate_=function(O){this.isDisposed()||O||(mn(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var Oxu=function(O){var m={};m.pairingCode=O.reversePairingCode_;m.theme=O.JSC$19807_theme_;r1o()&&(m.env_useStageMdx=1);return _.bb(m)},mfA=function(O){return new Promise(function(m){O.reversePairingCode_=su3();
if(O.connectData_){var G=new chrome.cast.DialLaunchResponse(!0,Oxu(O));m(G);Ahr(O)}else O.deferredLaunch_=function(){_.zg(O.JSC$19807_deferredLaunchDeadlineTimer_);O.deferredLaunch_=function(){};
O.JSC$19807_deferredLaunchDeadlineTimer_=NaN;var B=new chrome.cast.DialLaunchResponse(!0,Oxu(O));m(B);Ahr(O)},O.JSC$19807_deferredLaunchDeadlineTimer_=_.W7(function(){O.deferredLaunch_()},100)})},BaJ=function(O,m,G){O.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(m));
var B=new ut(m);return(new Promise(function(Q){GF3(O,B,function(H){H?(O.JSC$19807_isInitLoungeToken_=!0,AP(O.JSC$19798_screenService_,B),Oy(O,B),QL(O,G)):_.di(Error("jl`"+JSON.stringify(m)));Q(H)},5)})).then(function(Q){return Q?new chrome.cast.DialLaunchResponse(!1):mfA(O)})},Q0A=function(O,m){var G=O.launchData_.receiver.label,B=O.receiver_.friendlyName;
return(new Promise(function(Q){Emy(O.JSC$19798_screenService_,G,m,B,function(H){H&&H.token&&Oy(O,H);Q(H)},function(H){mn(O,"Failed to get DIAL screen: "+H);
Q(null)})})).then(function(Q){return Q&&Q.token?new chrome.cast.DialLaunchResponse(!1):mfA(O)})},GF3=function(O,m,G,B){_.zg(O.JSC$19807_checkScreenAvailabilityTimeoutKey_);
O.JSC$19807_checkScreenAvailabilityTimeoutKey_=0;Cp0(O.JSC$19798_screenService_,m,function(Q){Q||B<0?G(Q):O.JSC$19807_checkScreenAvailabilityTimeoutKey_=_.W7(function(){GF3(O,m,G,B-1)},300)})},QL=function(O,m){O.info("getDialAppInfoWithTimeout_ "+m);
FFJ(O)&&(_.zg(O.getDialAppInfoTimeoutKey_),O.getDialAppInfoTimeoutKey_=0,m==0?Hxo(O):O.getDialAppInfoTimeoutKey_=_.W7(function(){Hxo(O)},m))},Hxo=function(O){FFJ(O)&&O.JSC$19807_session_.getDialAppInfo(function(m){O.info("getDialAppInfo dialLaunchData: "+JSON.stringify(m));
m=m.extraData||{};var G=null;if(m.loungeToken){var B;((B=O.screen_)==null?void 0:B.token)==m.loungeToken&&(G="staleLoungeToken")}else G="missingLoungeToken";G?(O.JSC$19807_lastLoungeTokenRefreshError_=G,QL(O,3E4)):(O.JSC$19807_isInitLoungeToken_=!1,O.JSC$19807_lastLoungeTokenRefreshError_="unknown",kj0(O,m.loungeToken),QL(O,m.loungeTokenRefreshIntervalMs))},function(m){O.info("getDialAppInfo error: "+m);
O.JSC$19807_lastLoungeTokenRefreshError_="noLoungeTokenResponse";QL(O,3E4)})},Ppx=function(O){_.zg(O.JSC$19807_checkScreenAvailabilityTimeoutKey_);
O.JSC$19807_checkScreenAvailabilityTimeoutKey_=0;_.zg(O.getDialAppInfoTimeoutKey_);O.getDialAppInfoTimeoutKey_=0;O.cancelPolling_();O.cancelPolling_=function(){};
_.zg(O.JSC$19807_deferredLaunchDeadlineTimer_)};var Hj=function(O,m){YP.call(this,O,m,"ManualSession");this.JSC$19811_deferredLaunchDeadlineTimer_=_.W7((0,_.pd)(this.launchWithParams,this,null),150)};
_.X(Hj,YP);Hj.prototype.stop=function(){this.onSessionStopped()};
Hj.prototype.setCastSession=function(){};
Hj.prototype.launchWithParams=function(){_.zg(this.JSC$19811_deferredLaunchDeadlineTimer_);this.JSC$19811_deferredLaunchDeadlineTimer_=NaN;var O=IH(this.JSC$19798_screenService_.getScreens(),this.receiver_.label);if(O)Oy(this,O);else this.onSessionStopped(Error("kl"))};
Hj.prototype.disposeInternal=function(){_.zg(this.JSC$19811_deferredLaunchDeadlineTimer_);this.JSC$19811_deferredLaunchDeadlineTimer_=NaN;YP.prototype.disposeInternal.call(this)};var DF=function(O,m){_.Yd.call(this);this.config_=m;this.JSC$19814_screenService_=O;this.JSC$19814_appId_=m.appId||"233637DE";this.JSC$19814_theme_=m.theme||"cl";this.disableDial_=m.disableCastApi||!1;this.forceMirroring_=m.forceMirroring||!1;this.JSC$19814_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.pd)(this.onReceiverAction_,this)};
_.X(DF,_.Yd);
DF.prototype.init=function(O,m){chrome.cast.timeout.requestSession=3E4;var G=new chrome.cast.SessionRequest(this.JSC$19814_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.V("desktop_enable_cast_connect")&&(G.androidReceiverCompatible=!0);this.disableDial_||(G.dialRequest=new chrome.cast.DialRequest("YouTube"));var B=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;O=O||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var Q=(0,_.pd)(this.onReceiverUpdated_,
this);G=new chrome.cast.ApiConfig(G,(0,_.pd)(this.onSessionEstablished_,this),Q,B,O);G.customDialLaunchCallback=(0,_.pd)(this.onDialLaunchRequested_,this);chrome.cast.initialize(G,(0,_.pd)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Zmr(),this.JSC$19814_screenService_.subscribe("onlineScreenChange",(0,_.pd)(this.JSC$19816_onScreenChange_,this)),this.customReceivers_=vUx(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.pd)(function(H){this.warn_("Failed to set initial custom receivers: "+(0,_.ck)(H))},this)),this.publish("yt-remote-cast2-availability-change",vj(this)),m(!0))},this),(0,_.pd)(function(H){this.warn_("Failed to initialize API: "+(0,_.ck)(H));
m(!1)},this))};
DF.prototype.setConnectedScreenStatus=function(O,m){KV("Setting connected screen ID: "+O+" -> "+m);if(this.JSC$19814_session_){var G=this.JSC$19814_session_.screen_;if(!O||G&&G.id!=O)KV("Unsetting old screen status: "+this.JSC$19814_session_.receiver_.friendlyName),$b(this,null)}if(O&&m){if(!this.JSC$19814_session_){O=IH(this.JSC$19814_screenService_.getScreens(),O);if(!O){KV("setConnectedScreenStatus: Unknown screen.");return}if(O.idType=="shortLived"){KV("setConnectedScreenStatus: Screen with id type to be short lived.");
return}G=Kcr(this,O);G||(KV("setConnectedScreenStatus: Connected receiver not custom..."),G=new chrome.cast.Receiver(O.uuid?O.uuid:O.id,O.name),G.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(G),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.pd)(function(B){this.warn_("Failed to set initial custom receivers: "+(0,_.ck)(B))},this)));
KV("setConnectedScreenStatus: new active receiver: "+G.friendlyName);$b(this,new Hj(this.JSC$19814_screenService_,G),!0)}this.JSC$19814_session_.setDisplayStatus(m)}else KV("setConnectedScreenStatus: no screen.")};
var Kcr=function(O,m){return m?_.ES(O.customReceivers_,function(G){return jc(m,G.label)},O):null};
DF.prototype.setLaunchParams=function(O){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19814_session_?this.JSC$19814_session_.launchWithParams(O):this.warn_("Setting connection data without a session")};
DF.prototype.JSC$19816_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19814_session_?(this.JSC$19814_session_.stop(),$b(this,null)):KV("Stopping non-existing session")};
DF.prototype.requestSession=function(){chrome.cast.requestSession((0,_.pd)(this.onSessionEstablished_,this),(0,_.pd)(this.onSessionRequestFailed_,this))};
DF.prototype.disposeInternal=function(){this.JSC$19814_screenService_.unsubscribe("onlineScreenChange",(0,_.pd)(this.JSC$19816_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.yf(_.ex("yt.mdx.remote.debug.handlers_")||[],UNr);_.Kd(this.JSC$19814_session_);_.Yd.prototype.disposeInternal.call(this)};
var KV=function(O){CZ("Controller",O)};
DF.prototype.warn_=function(O){CZ("Controller",O)};
var UNr=function(O){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(O)},vj=function(O){return O.hasCastReceiver_||!!O.customReceivers_.length||!!O.JSC$19814_session_},$b=function(O,m,G){m!=O.JSC$19814_session_&&(_.Kd(O.JSC$19814_session_),(O.JSC$19814_session_=m)?(G?O.publish("yt-remote-cast2-receiver-resumed",m.receiver_):O.publish("yt-remote-cast2-receiver-selected",m.receiver_),m.subscribe("sessionScreen",(0,_.pd)(O.onSessionScreen_,O,m)),m.subscribe("sessionFailed",
function(){return $fs(O,m)}),m.screen_?O.publish("yt-remote-cast2-session-change",m.screen_):G&&O.JSC$19814_session_.launchWithParams(null)):O.publish("yt-remote-cast2-session-change",null))},$fs=function(O,m){O.JSC$19814_session_==m&&O.publish("yt-remote-cast2-session-failed")};
_.v=DF.prototype;_.v.onSessionScreen_=function(O,m){this.JSC$19814_session_==O&&(m||$b(this,null),this.publish("yt-remote-cast2-session-change",m))};
_.v.onReceiverAction_=function(O,m){if(!this.isDisposed())if(O)switch(O.friendlyName=chrome.cast.unescape(O.friendlyName),KV("onReceiverAction_ "+O.label+" / "+O.friendlyName+"-- "+m),m){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19814_session_)if(this.JSC$19814_session_.receiver_.label!=O.label)KV("onReceiverAction_: Stopping active receiver: "+this.JSC$19814_session_.receiver_.friendlyName),this.JSC$19814_session_.stop();else{KV("onReceiverAction_: Casting to active receiver.");this.JSC$19814_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19814_session_.screen_);break}switch(O.receiverType){case chrome.cast.ReceiverType.CUSTOM:$b(this,new Hj(this.JSC$19814_screenService_,O));break;case chrome.cast.ReceiverType.DIAL:$b(this,new Bj(this.JSC$19814_screenService_,O,this.JSC$19814_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:$b(this,new G3(this.JSC$19814_screenService_,O,this.config_));break;default:this.warn_("Unknown receiver type: "+O.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19814_session_&&
this.JSC$19814_session_.receiver_.label==O.label?this.JSC$19814_session_.stop():this.warn_("Stopping receiver w/o session: "+O.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.v.onDialLaunchRequested_=function(O){if(this.isDisposed())return Promise.reject(Error("ll"));var m=O.receiver;m.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+m.friendlyName),m.receiverType=chrome.cast.ReceiverType.DIAL);var G=this.JSC$19814_session_?this.JSC$19814_session_.receiver_:null;if(!G||G.label!=m.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+m.friendlyName),Promise.reject(Error("ml"));if(G&&G.label==m.label&&G.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19814_session_.screen_)return KV("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19814_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+G.receiverType+'" to "dial" for '+m.friendlyName);$b(this,new Bj(this.JSC$19814_screenService_,m,this.JSC$19814_theme_,this.config_))}m=this.JSC$19814_session_;m.launchData_=O;m.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(O=m.launchData_.extraData||{},G=O.screenId||null,FFJ(m)&&O.loungeToken?O.loungeTokenRefreshIntervalMs?O=BaJ(m,{name:m.receiver_.friendlyName,screenId:O.screenId,loungeToken:O.loungeToken,dialId:m.launchData_.receiver.label,screenIdType:"shortLived"},O.loungeTokenRefreshIntervalMs):(_.di(Error("il`"+JSON.stringify(O))),O=Q0A(m,G)):O=Q0A(m,G)):O=mfA(m);return O};
_.v.onSessionEstablished_=function(O){var m=this;if(!this.isDisposed()&&!this.forceMirroring_){KV("New cast session ID: "+O.sessionId);var G=O.receiver;if(G.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19814_session_)if(G.receiverType==chrome.cast.ReceiverType.CAST)KV("Got resumed cast session before resumed mdx connection."),G.friendlyName=chrome.cast.unescape(G.friendlyName),$b(this,new G3(this.JSC$19814_screenService_,G,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var B=this.JSC$19814_session_.receiver_,Q=IH(this.JSC$19814_screenService_.getScreens(),B.label);Q&&jc(Q,G.label)&&B.receiverType!=chrome.cast.ReceiverType.CAST&&G.receiverType==chrome.cast.ReceiverType.CAST&&(KV("onSessionEstablished_: manual to cast session change "+G.friendlyName),_.Kd(this.JSC$19814_session_),this.JSC$19814_session_=new G3(this.JSC$19814_screenService_,G,this.config_),this.JSC$19814_session_.subscribe("sessionScreen",(0,_.pd)(this.onSessionScreen_,this,this.JSC$19814_session_)),
this.JSC$19814_session_.subscribe("sessionFailed",function(){return $fs(m,m.JSC$19814_session_)}),this.JSC$19814_session_.launchWithParams(null));
this.JSC$19814_session_.setCastSession(O)}}};
_.v.JSC$19816_getCastSession=function(){return this.JSC$19814_session_?this.JSC$19814_session_.JSC$19800_getCastSession():null};
_.v.onSessionRequestFailed_=function(O){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.ck)(O)),O.code!=chrome.cast.ErrorCode.CANCEL&&$b(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.v.onReceiverUpdated_=function(O){KV("Receiver availability updated: "+O);if(!this.isDisposed()){var m=vj(this);this.hasCastReceiver_=O==chrome.cast.ReceiverAvailability.AVAILABLE;vj(this)!=m&&this.publish("yt-remote-cast2-availability-change",vj(this))}};
var vUx=function(O){var m=O.JSC$19814_screenService_.JSC$19796_getOnlineScreens(),G=O.JSC$19814_session_&&O.JSC$19814_session_.receiver_;O=_.k6(m,function(B){G&&jc(B,G.label)&&(G=null);var Q=B.uuid?B.uuid:B.id,H=Kcr(this,B);H?(H.label=Q,H.friendlyName=B.name):(H=new chrome.cast.Receiver(Q,B.name),H.receiverType=chrome.cast.ReceiverType.CUSTOM);return H},O);
G&&(G.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(G=new chrome.cast.Receiver(G.label,G.friendlyName),G.receiverType=chrome.cast.ReceiverType.CUSTOM),O.push(G));return O};
DF.prototype.JSC$19816_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=vUx(this),KV("Updating custom receivers: "+(0,_.ck)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.pd)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",vj(this)))};
DF.prototype.setLaunchParams=DF.prototype.setLaunchParams;DF.prototype.setConnectedScreenStatus=DF.prototype.setConnectedScreenStatus;DF.prototype.stopSession=DF.prototype.JSC$19816_stopSession;DF.prototype.getCastSession=DF.prototype.JSC$19816_getCastSession;DF.prototype.requestSession=DF.prototype.requestSession;DF.prototype.init=DF.prototype.init;DF.prototype.dispose=DF.prototype.dispose;var MCu=_.FY(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),YzJ=[],pE3=_.WY(MCu);var rWA=function(O){O.audioTrackId=null;O.trackData=null;O.playerState=-1;O.hasPrevious=!1;O.hasNext=!1;O.playerTime_=0;O.playerTimeAt_=_.$F();O.seekableStart_=0;O.seekableEnd_=0;O.duration_=0;O.loadedTime=0;O.liveIngestionTime_=NaN;O.isLive_=!1};
_.v=sj.prototype;
_.v.reset=function(O){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;O&&(this.index=O.index,this.listId=O.listId,this.videoId=O.videoId,this.playerState=O.playerState,this.volume=O.volume,this.muted=O.muted,this.audioTrackId=O.audioTrackId,this.trackData=O.trackData,this.hasPrevious=O.hasPrevious,this.hasNext=O.hasNext,this.playerTime_=O.playerTime,this.playerTimeAt_=O.playerTimeAt,this.seekableStart_=O.seekableStart,this.seekableEnd_=O.seekableEnd,this.duration_=O.duration,this.loadedTime=
O.loadedTime,this.liveIngestionTime_=O.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.v.stopPlayer=function(){this.index=-1;this.videoId="";rWA(this)};
_.v.isPlaying=function(){return this.playerState==1};
_.v.isBuffering=function(){return this.playerState==3};
_.v.isAdPlaying=function(){return this.playerState==1081};
var MH=function(O,m){O.playerTime_=m;O.playerTimeAt_=_.$F()},RuB=function(O){switch(O.playerState){case 1:case 1081:return(_.$F()-O.playerTimeAt_)/1E3+O.playerTime_;
case -1E3:return 0}return O.playerTime_};
sj.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.$F()-this.playerTimeAt_)/1E3:0):this.duration_};
var ixo=function(O,m,G){var B=O.videoId;O.videoId=m;O.index=G;m!=B&&rWA(O)},xfA=function(O){var m={};
m.index=O.index;m.listId=O.listId;m.videoId=O.videoId;m.playerState=O.playerState;m.volume=O.volume;m.muted=O.muted;m.audioTrackId=O.audioTrackId;m.trackData=_.aM.unsafeClone(O.trackData);m.hasPrevious=O.hasPrevious;m.hasNext=O.hasNext;m.playerTime=O.playerTime_;m.playerTimeAt=O.playerTimeAt_;m.seekableStart=O.seekableStart_;m.seekableEnd=O.seekableEnd_;m.duration=O.duration_;m.loadedTime=O.loadedTime;m.liveIngestionTime=O.liveIngestionTime_;return m};
sj.prototype.clone=function(){return new sj(xfA(this))};var Bt=function(O,m){_.Yd.call(this);var G=this;this.state_=0;this.connection_=O;this.contextSubscriptions_=[];this.actionQueue_=new lO0;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.pd)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.pd)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.pd)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.pd)(this.onCloudviewAvailabilityChange_,this);var B=0;O?(B=O.getProxyState(),
B!=3&&(O.subscribe("proxyStateChange",this.setState_,this),q5x(this))):B=3;B!=0&&(m?this.setState_(B):_.W7(function(){G.setState_(B)},0));
(O=DNx())&&Ufb(this,O);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.X(Bt,_.Yd);Bt.prototype.getState=function(){return this.state_};
Bt.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Bt.prototype.reconnect=function(){this.connection_.reconnect()};
var rn=function(O){return new sj(O.connection_.getPlayerContextData())};
_.v=Bt.prototype;_.v.play=function(){RV(this)?(this.castMedia_?this.castMedia_.play(null,_.ID,tCr(this,"play")):ir(this,"play"),Wco(this,1,RuB(rn(this))),this.publish("remotePlayerChange")):xb(this,this.play)};
_.v.pause=function(){RV(this)?(this.castMedia_?this.castMedia_.pause(null,_.ID,tCr(this,"pause")):ir(this,"pause"),Wco(this,2,RuB(rn(this))),this.publish("remotePlayerChange")):xb(this,this.pause)};
_.v.seekTo=function(O){if(RV(this)){if(this.castMedia_){var m=rn(this),G=new chrome.cast.media.SeekRequest;G.currentTime=O;m.isPlaying()||m.isBuffering()?G.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:G.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(G,_.ID,tCr(this,"seekTo",{newTime:O}))}else ir(this,"seekTo",{newTime:O});Wco(this,3,O);this.publish("remotePlayerChange")}else xb(this,_.hK(this.seekTo,O))};
_.v.stop=function(){if(RV(this)){this.castMedia_?this.castMedia_.stop(null,_.ID,tCr(this,"stopVideo")):ir(this,"stopVideo");var O=rn(this);O.stopPlayer();qH(this,O);this.publish("remotePlayerChange")}else xb(this,this.stop)};
_.v.setVolume=function(O,m){if(RV(this)){var G=rn(this);if(this.castSession_){if(G.volume!=O){var B=Math.round(O)/100;this.castSession_.setReceiverVolumeLevel(B,(0,_.pd)(function(){oH("set receiver volume: "+B)},this),(0,_.pd)(function(){this.warn_("failed to set receiver volume.")},this))}G.muted!=m&&this.castSession_.setReceiverMuted(m,(0,_.pd)(function(){oH("set receiver muted: "+m)},this),(0,_.pd)(function(){this.warn_("failed to set receiver muted.")},this))}else{var Q={volume:O,
muted:m};G.volume!=-1&&(Q.delta=O-G.volume);ir(this,"setVolume",Q)}G.muted=m;G.volume=O;qH(this,G)}else xb(this,_.hK(this.setVolume,O,m))};
_.v.setAudioTrack=function(O,m){RV(this)?(m=m.getLanguageInfo().getId(),ir(this,"setAudioTrack",{videoId:O,audioTrackId:m}),O=rn(this),O.audioTrackId=m,qH(this,O)):xb(this,_.hK(this.setAudioTrack,O,m))};
_.v.addVideo=function(O){RV(this)?ir(this,"addVideo",{videoId:O}):xb(this,_.hK(this.addVideo,O))};
_.v.addPlaylist=function(O){RV(this)?ir(this,"addVideos",{listId:O}):xb(this,_.hK(this.addPlaylist,O))};
_.v.addVideos=function(O){O.length==0?this.warn_("Ignore add videos request due to empty list"):RV(this)?ir(this,"addVideos",{videoIds:O.join(",")}):xb(this,_.hK(this.addVideos,O))};
_.v.JSC$19826_removeVideo=function(O){RV(this)?ir(this,"removeVideo",{videoId:O}):xb(this,_.hK(this.JSC$19826_removeVideo,O))};
_.v.JSC$19826_insertVideo=function(O){RV(this)?ir(this,"insertVideo",{videoId:O}):xb(this,_.hK(this.JSC$19826_insertVideo,O))};
_.v.playVideo=function(O,m,G,B,Q,H,M){B=B===void 0?null:B;Q=Q===void 0?null:Q;H=H===void 0?null:H;M=M===void 0?null:M;var R=rn(this),x={videoId:O};G!==void 0&&(x.currentIndex=G);ixo(R,O,G||0);m!==void 0&&(MH(R,m),x.currentTime=m);B&&(x.listId=B);Q&&(x.playerParams=Q);H&&(x.clickTrackingParams=H);M&&(x.locationInfo=(0,_.ck)(M));ir(this,"setPlaylist",x);B||qH(this,R)};
_.v.nextVideo=function(O,m){if(RV(this)){if(O&&m){var G=rn(this);ixo(G,O,m);qH(this,G)}ir(this,"next")}else xb(this,_.hK(this.nextVideo,O,m))};
_.v.clearPlaylist=function(){if(RV(this)){ir(this,"clearPlaylist");var O=rn(this);O.reset();qH(this,O);this.publish("remotePlayerChange")}else xb(this,this.clearPlaylist)};
_.v.dispose=function(){if(this.state_!=3){var O=this.state_;this.state_=3;this.publish("proxyStateChange",O,this.state_)}_.Yd.prototype.dispose.call(this)};
_.v.disposeInternal=function(){Zxr(this);this.connection_=null;this.actionQueue_.clear();Ufb(this,null);_.Yd.prototype.disposeInternal.call(this)};
var q5x=function(O){_.Nr("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(m){this.contextSubscriptions_.push(this.connection_.subscribe(m,_.hK(this.onProxyEvent_,m),this))},O)},Zxr=function(O){_.Nr(O.contextSubscriptions_,function(m){this.connection_.unsubscribeByKey(m)},O);
O.contextSubscriptions_.length=0},RV=function(O){return O.getState()==1},xb=function(O,m){O.actionQueue_.getCount()<50&&O.actionQueue_.enqueue(m)},Wco=function(O,m,G){var B=rn(O);
MH(B,G);B.playerState!=-1E3&&(B.playerState=m);qH(O,B)},ir=function(O,m,G){O.connection_.sendMessage(m,G)},qH=function(O,m){Zxr(O);
O.connection_.setPlayerContextData(xfA(m));q5x(O)};
Bt.prototype.setState_=function(O){if((O!=this.state_||O==2)&&this.state_!=3&&O!=0){var m=this.state_;this.state_=O;this.publish("proxyStateChange",m,O);if(O==1)for(;!this.actionQueue_.isEmpty();)O=this.actionQueue_,YaK(O),O.front_.pop().apply(this);else O==3&&this.dispose()}};
Bt.prototype.onProxyEvent_=function(O,m){this.publish(O,m)};
var Ufb=function(O,m){O.castSession_&&(O.castSession_.removeUpdateListener(O.boundCastStatusListener_),O.castSession_.removeMediaListener(O.boundCastMediaListener_),O.onCastMediaChange_(null));O.castSession_=m;if(O.castSession_&&(oH("Setting cast session: "+O.castSession_.sessionId),O.castSession_.addUpdateListener(O.boundCastStatusListener_),O.castSession_.addMediaListener(O.boundCastMediaListener_),O.castSession_.media.length))O.onCastMediaChange_(O.castSession_.media[0])};
Bt.prototype.onCastStatusUpdate_=function(O){if(!O)this.onCastMediaChange_(null),Ufb(this,null);else if(this.castSession_.receiver.volume){O=this.castSession_.receiver.volume;var m=rn(this),G=Math.round(100*O.level||0);if(m.volume!=G||m.muted!=O.muted)oH("Cast volume update: "+O.level+(O.muted?" muted":"")),m.volume=G,m.muted=!!O.muted,qH(this,m)}};
Bt.prototype.onCastMediaChange_=function(O){oH("Cast media: "+!!O);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=O)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),zuy(this),this.publish("remotePlayerChange")};
var zuy=function(O){var m=O.castMedia_.media,G=O.castMedia_.customData;if(m&&G){var B=rn(O);m.contentId!=B.videoId&&oH("Cast changing video to: "+m.contentId);B.videoId=m.contentId;B.playerState=G.playerState;MH(B,O.castMedia_.getEstimatedTime());qH(O,B)}else oH("No cast media video. Ignoring state update.")};
Bt.prototype.onCastMediaUpdate_=function(O){if(O)zuy(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Bt.prototype.onCloudviewAvailabilityChange_=function(){var O=DNx();O&&Ufb(this,O)};
Bt.prototype.warn_=function(O){CZ("CP",O)};
var tCr=function(O,m,G){return(0,_.pd)(function(B){this.warn_("Failed to "+m+" with cast v2 channel. Error code: "+B.code);B.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+m+" using MDx browser channel."),ir(this,m,G))},O)};var QR=function(O,m,G,B){B=B===void 0?!1:B;_.Yd.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$19831_http_=O;this.enableConnectWithInitialState_=B;this.listeners_.push(_.HH(window,"beforeunload",function(){Q.JSC$19834_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new sj;this.currentScreenId_=m.id;this.currentScreenIdType_=m.idType;this.channelService=qzr(this.JSC$19831_http_,G,this.JSC$19834_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){JWJ(Q)});
this.channelService.listen("channelClosed",function(){Uy("Channel closed");isNaN(Q.connectTimerId_)?pZ(!0):pZ();Q.dispose()});
this.channelService.listen("channelError",function(H){pZ();isNaN(Q.getReconnectTimeout_())?(H==1&&Q.currentScreenIdType_=="shortLived"&&Q.publish("browserChannelAuthError",H),Uy("Channel error: "+H+" without reconnection"),Q.dispose()):(Q.reconnecting_=!0,Uy("Channel error: "+H+" with reconnection in "+Q.getReconnectTimeout_()+" ms"),VCh(Q,2))});
this.channelService.listen("channelMessage",function(H){bxA(Q,H)});
this.channelService.setLoungeToken(m.token);this.subscribe("remoteQueueChange",function(){var H=Q.playerContext_.videoId;Omh()&&_.cX("yt-remote-session-video-id",H)})};
_.X(QR,_.Yd);
QR.prototype.connect=function(O,m){if(m){var G=m.listId,B=m.videoId,Q=m.videoIds,H=m.playerParams,M=m.clickTrackingParams,R=m.index,x={videoId:B},t=m.currentTime,W=m.locationInfo;m=m.loopMode;t!==void 0&&(x.currentTime=t<=5?0:t);H&&(x.playerParams=H);W&&(x.locationInfo=W);M&&(x.clickTrackingParams=M);G&&(x.listId=G);Q&&Q.length>0&&(x.videoIds=Q.join(","));R!==void 0&&(x.currentIndex=R);this.enableConnectWithInitialState_&&(x.loopMode=m||"LOOP_MODE_OFF");G&&(this.playerContext_.listId=G);this.playerContext_.videoId=
B;this.playerContext_.index=R||0;this.playerContext_.state=3;MH(this.playerContext_,t);this.autoplayMode_="UNSUPPORTED";G=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Uy("Connecting with "+G+" and params: "+(0,_.ck)(x));this.channelService.connect({method:G,params:(0,_.ck)(x)},O,HmA())}else Uy("Connecting without params"),this.channelService.connect({},O,HmA());nU9(this)};
QR.prototype.setLoungeToken=function(O){this.channelService.setLoungeToken(O)};
QR.prototype.dispose=function(){this.isDisposed()||(_.HI("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),VCh(this,3));_.Yd.prototype.dispose.call(this)};
QR.prototype.disposeInternal=function(){Xou(this);fSx(this);hu9(this);_.zg(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.zg(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.A1p(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Yd.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Tay=function(O){return _.ES(O.connectedDevices_,function(m){return m.type=="LOUNGE_SCREEN"})},Uy=function(O){CZ("conn",O)},VCh=function(O,m){O.publish("proxyStateChange",m)},nU9=function(O){O.connectTimerId_=_.W7(function(){Uy("Connecting timeout");
O.JSC$19834_disconnect_(1)},2E4)},Xou=function(O){_.zg(O.connectTimerId_);
O.connectTimerId_=NaN},hu9=function(O){_.zg(O.reconnectedCheckScreenTimeout_);
O.reconnectedCheckScreenTimeout_=NaN},gUo=function(O){fSx(O);
O.playingSyncTimerId_=_.W7(function(){tj(O,"getNowPlaying")},2E4)},fSx=function(O){_.zg(O.playingSyncTimerId_);
O.playingSyncTimerId_=NaN},JWJ=function(O){Uy("Channel opened");
O.reconnecting_&&(O.reconnecting_=!1,hu9(O),O.reconnectedCheckScreenTimeout_=_.W7(function(){Uy("Timing out waiting for a screen.");O.JSC$19834_disconnect_(1)},15E3))},j0y=function(O,m){var G=null;
if(m){var B=Tay(O);B&&(G={clientName:B.clientName,deviceMake:B.brand,deviceModel:B.model,osVersion:B.osVersion})}_.HI("yt.mdx.remote.remoteClient_",G);m&&(Xou(O),hu9(O));G=O.channelService.isChannelOpened()&&isNaN(O.connectTimerId_);m==G?m&&(VCh(O,1),tj(O,"getSubtitlesTrack")):m?(O.getOtherConnectedRemoteId_()&&O.playerContext_.reset(),VCh(O,1),tj(O,"getNowPlaying"),uOh(O)):O.JSC$19834_disconnect_(1)},ISh=function(O,m){var G=m.params.videoId;
delete m.params.videoId;G==O.playerContext_.videoId&&(_.aM.isEmpty(m.params)?O.playerContext_.trackData=null:O.playerContext_.trackData=m.params,O.publish("remotePlayerChange"))},poJ=function(O,m,G){var B=m.params.videoId||m.params.video_id,Q=parseInt(m.params.currentIndex,10);
O.playerContext_.listId=m.params.listId||O.playerContext_.listId;ixo(O.playerContext_,B,Q);O.publish("remoteQueueChange",G)},S5h=function(O,m){m.params=m.params||{};
poJ(O,m,"NOW_PLAYING_MAY_CHANGE");O.onStateChange_(m);O.publish("autoplayDismissed")};
QR.prototype.onStateChange_=function(O){var m=parseInt(O.params.currentTime||O.params.current_time,10);MH(this.playerContext_,isNaN(m)?0:m);m=parseInt(O.params.state,10);m=isNaN(m)?-1:m;m==-1&&this.playerContext_.playerState==-1E3&&(m=-1E3);this.playerContext_.playerState=m;m=Number(O.params.loadedTime);this.playerContext_.loadedTime=isNaN(m)?0:m;m=Number(O.params.duration);this.playerContext_.duration_=isNaN(m)?0:m;m=this.playerContext_;var G=Number(O.params.liveIngestionTime);m.liveIngestionTime_=
G;m.isLive_=isNaN(G)?!1:!0;m=this.playerContext_;G=Number(O.params.seekableStartTime);O=Number(O.params.seekableEndTime);m.seekableStart_=isNaN(G)?0:G;m.seekableEnd_=isNaN(O)?0:O;this.playerContext_.playerState==1?gUo(this):fSx(this);this.publish("remotePlayerChange")};
QR.prototype.onAdStateChange_=function(O){if(this.playerContext_.playerState!=-1E3){var m=1085;switch(parseInt(O.params.adState,10)){case 1:m=1081;break;case 2:m=1084;break;case 0:m=1083}this.playerContext_.playerState=m;O=parseInt(O.params.currentTime,10);MH(this.playerContext_,isNaN(O)?0:O);this.publish("remotePlayerChange")}};
var EUA=function(O,m){var G=m.params.muted=="true";O.playerContext_.volume=parseInt(m.params.volume,10);O.playerContext_.muted=G;O.publish("remotePlayerChange")},LcB=function(O,m){O.autoplayVideoId_=m.params.videoId;
O.publish("nowAutoplaying",parseInt(m.params.timeout,10))},C3o=function(O,m){O.autoplayVideoId_=m.params.videoId||null;
O.publish("autoplayUpNext",O.autoplayVideoId_)},oUr=function(O,m){O.autoplayMode_=m.params.autoplayMode;
O.publish("autoplayModeChange",O.autoplayMode_);O.autoplayMode_=="DISABLED"&&O.publish("autoplayDismissed")},lSs=function(O,m){var G=m.params.hasNext=="true";
O.playerContext_.hasPrevious=m.params.hasPrevious=="true";O.playerContext_.hasNext=G;O.publish("previousNextChange")};
QR.prototype.isCapabilitySupportedOnConnectedDevices_=function(O){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var m=_.K(this.connectedDevices_),G=m.next();!G.done;G=m.next())if(!G.value.capabilities.has(O))return!1;return!0};
var bxA=function(O,m){m=m.message;m.params?Uy("Received: action="+m.action+", params="+(0,_.ck)(m.params)):Uy("Received: action="+m.action+" {}");switch(m.action){case "loungeStatus":m=(0,_.CC)(m.params.devices);O.connectedDevices_=_.k6(m,function(B){return new P5(B)});
m=!!_.ES(O.connectedDevices_,function(B){return B.type=="LOUNGE_SCREEN"});
j0y(O,m);m=O.isCapabilitySupportedOnConnectedDevices_("mlm");O.publish("multiStateLoopEnabled",m);break;case "loungeScreenDisconnected":zPK(O.connectedDevices_,function(B){return B.type=="LOUNGE_SCREEN"});
j0y(O,!1);break;case "remoteConnected":var G=new P5((0,_.CC)(m.params.device));_.ES(O.connectedDevices_,function(B){return B.equals(G)})||_.bNr(O.connectedDevices_,G);
break;case "remoteDisconnected":G=new P5((0,_.CC)(m.params.device));zPK(O.connectedDevices_,function(B){return B.equals(G)});
break;case "gracefulDisconnect":break;case "playlistModified":poJ(O,m,"QUEUE_MODIFIED");break;case "nowPlaying":S5h(O,m);break;case "onStateChange":O.onStateChange_(m);break;case "onAdStateChange":O.onAdStateChange_(m);break;case "onVolumeChanged":EUA(O,m);break;case "onSubtitlesTrackChanged":ISh(O,m);break;case "nowAutoplaying":LcB(O,m);break;case "autoplayDismissed":O.publish("autoplayDismissed");break;case "autoplayUpNext":C3o(O,m);break;case "onAutoplayModeChanged":oUr(O,m);break;case "onHasPreviousNextChanged":lSs(O,
m);break;case "requestAssistedSignIn":O.publish("assistedSignInRequested",m.params.authCode);break;case "onLoopModeChanged":O.publish("loopModeChange",m.params.loopMode);break;default:Uy("Unrecognized action: "+m.action)}};
_.v=QR.prototype;_.v.getProxyState_=function(){var O=3;this.isDisposed()||(O=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(O=1):O=2);return O};
_.v.JSC$19834_disconnect_=function(O){Uy("Disconnecting with "+O);_.HI("yt.mdx.remote.remoteClient_",null);Xou(this);this.publish("beforeDisconnect",O);O==1&&pZ();this.channelService.disconnect(O);this.dispose()};
_.v.getPlayerContextData_=function(){var O=this.playerContext_;this.clientVideoId_&&(O=this.playerContext_.clone(),ixo(O,this.clientVideoId_,O.index));return xfA(O)};
_.v.setPlayerContextData_=function(O){var m=this,G=new sj(O);G.videoId&&G.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=G.videoId,_.zg(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.W7(function(){if(m.clientVideoId_){var Q=m.clientVideoId_;m.clientVideoId_=null;m.playerContext_.videoId!=Q&&tj(m,"getNowPlaying")}},5E3));
var B=[];this.playerContext_.listId==G.listId&&this.playerContext_.videoId==G.videoId&&this.playerContext_.index==G.index||B.push("remoteQueueChange");this.playerContext_.playerState==G.playerState&&this.playerContext_.volume==G.volume&&this.playerContext_.muted==G.muted&&RuB(this.playerContext_)==RuB(G)&&(0,_.ck)(this.playerContext_.trackData)==(0,_.ck)(G.trackData)||B.push("remotePlayerChange");this.playerContext_.reset(O);_.Nr(B,function(Q){this.publish(Q)},this)};
_.v.getOtherConnectedRemoteId_=function(){var O=this.channelService.getDeviceId(),m=_.ES(this.connectedDevices_,function(G){return G.type=="REMOTE_CONTROL"&&G.id!=O});
return m?m.id:""};
_.v.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.v.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.v.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.v.JSC$19834_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var uOh=function(O){_.zg(O.idleDisconnectTimerId_);O.idleDisconnectTimerId_=_.W7(function(){O.JSC$19834_disconnect_(1)},864E5)},tj=function(O,m,G){G?Uy("Sending: action="+m+", params="+(0,_.ck)(G)):Uy("Sending: action="+m);
O.channelService.sendMessage(m,G)};
QR.prototype.sendMessageWithUserAction_=function(O,m){tj(this,O,m);uOh(this)};
QR.prototype.JSC$19834_getXsrfToken_=function(){var O=_.fR.get("SAPISID","")||_.fR.get("__Secure-1PAPISID",void 0)||"",m=_.fR.get("__Secure-3PAPISID","")||"";if(!O&&!m)return"";O=_.pB(_.je(O),2);m=_.pB(_.je(m),2);return _.pB(_.je(","+O+","+m),2)};
QR.prototype.subscribe=QR.prototype.subscribe;QR.prototype.unsubscribeByKey=QR.prototype.unsubscribeByKey;QR.prototype.getProxyState=QR.prototype.getProxyState_;QR.prototype.disconnect=QR.prototype.JSC$19834_disconnect_;QR.prototype.getPlayerContextData=QR.prototype.getPlayerContextData_;QR.prototype.setPlayerContextData=QR.prototype.setPlayerContextData_;QR.prototype.getOtherConnectedRemoteId=QR.prototype.getOtherConnectedRemoteId_;QR.prototype.getReconnectTimeout=QR.prototype.getReconnectTimeout_;
QR.prototype.getAutoplayMode=QR.prototype.getAutoplayMode_;QR.prototype.getAutoplayVideoId=QR.prototype.getAutoplayVideoId_;QR.prototype.reconnect=QR.prototype.JSC$19834_reconnect_;QR.prototype.sendMessage=QR.prototype.sendMessageWithUserAction_;QR.prototype.getXsrfToken=QR.prototype.JSC$19834_getXsrfToken_;QR.prototype.isCapabilitySupportedOnConnectedDevices=QR.prototype.isCapabilitySupportedOnConnectedDevices_;var qfA=function(O){aH.call(this,"ScreenServiceProxy");this.instance_=O;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.pd)(this.JSC$19837_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.pd)(this.onOnlineScreenChange_,this)))};
_.X(qfA,aH);_.v=qfA.prototype;_.v.getScreens=function(O){return this.instance_.$_gs(O)};
_.v.contains=function(O){return!!this.instance_.$_c(O)};
_.v.get=function(O){return this.instance_.$_g(O)};
_.v.start=function(){this.instance_.$_st()};
_.v.add=function(O,m,G){this.instance_.$_a(O,m,G)};
_.v.remove=function(O,m,G){this.instance_.$_r(O,m,G)};
_.v.updateName=function(O,m,G,B){this.instance_.$_un(O,m,G,B)};
_.v.disposeInternal=function(){for(var O=this.subscriptionKeys_.length,m=0;m<O;++m)this.instance_.$_ubk(this.subscriptionKeys_[m]);this.subscriptionKeys_.length=0;this.instance_=null;aH.prototype.disposeInternal.call(this)};
_.v.JSC$19837_onScreenChange_=function(){this.publish("screenChange")};
_.v.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
cB.prototype.$_st=cB.prototype.start;cB.prototype.$_gspc=cB.prototype.JSC$19796_getScreenByPairingCode;cB.prototype.$_gsppc=cB.prototype.JSC$19796_getScreenByPollingPairingCode;cB.prototype.$_c=cB.prototype.contains;cB.prototype.$_g=cB.prototype.get;cB.prototype.$_a=cB.prototype.add;cB.prototype.$_un=cB.prototype.updateName;cB.prototype.$_r=cB.prototype.remove;cB.prototype.$_gs=cB.prototype.getScreens;cB.prototype.$_gos=cB.prototype.JSC$19796_getOnlineScreens;cB.prototype.$_s=cB.prototype.subscribe;
cB.prototype.$_ubk=cB.prototype.unsubscribeByKey;var $iy=null,tV0=!1,Nl=null,PB=null,xi0=null,me=[];var aS0=new _.YG("yt-menu"),kF9=function(){},cWr=function(O,m,G){O=m=="right-click"?G.rightClickMenuPopupHint:G.menuPopupHint;
if(!(yW0(m)>10))return m=m||"default",aS0.set(m+"-impression",yW0(m)+1),O},yW0=function(O){return parseInt(aS0.get((O||"default")+"-impression")||0,10)};
_.Kq(kF9);var Y5b=function(){this.contexts_=new WeakMap;this.JSC$19843_networkService_=this.activeContext_=null},dfh=function(O,m,G){var B=O.contexts_.get(m);
B||(B=new JRx(O.JSC$19843_networkService_),O.contexts_.set(m,B));O.activeContext_=B;G&&O.activeContext_.reset();O.activeContext_.start();return O.activeContext_};var Wj=function(){};
Wj.prototype.enqueue=function(){var O=this,m;return _.r(function(G){if(O.isCounterfactual())return(m=O.getCounterfactualData())&&O.shouldLogCounterfactualImpression()&&O.sendImpressionEndpoints(m),G.return();O.doEnqueue();_.ju(G)})};
Wj.prototype.sendImpressionEndpoints=function(O){_.sJ.getInstance().triggerOptionalAction("yt-service-request",{},O[0])};var ZP=function(O,m){this.renderer=O;this.page=m};
_.X(ZP,Wj);ZP.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
ZP.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
ZP.prototype.shouldLogCounterfactualImpression=function(){return!0};
ZP.prototype.doEnqueue=function(){var O=_.$i(this.page);O&&O.pause();this.renderer.impressionCommand&&_.sJ.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.P1(_.sJ.getInstance(),[this.renderer.promoCommand],this.page)};var woo=function(O,m){this.renderer=O;this.resolver=_.m3();this.JSC$19855_enforcementCounter=new _.HSj;m?this.JSC$19855_playerManager=_.$i(m):this.JSC$19855_playerManager=null;_.ff(1,!0)};
_.X(woo,Wj);_.v=woo.prototype;_.v.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var O=[];this.renderer.impressionEndpoints.forEach(function(m){(m=_.eg(m))&&O.push(m)});
return O}};
_.v.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.v.shouldLogCounterfactualImpression=function(){var O=_.wl6();O?(this.JSC$19855_enforcementCounter.increment("POPUP"),_.ff(3)):_.ff(2);return O};
_.v.cancel=function(){this.resolver.promise.cancel()};
_.v.doEnqueue=function(){var O=this;_.wl6()?(this.JSC$19855_enforcementCounter.increment("POPUP"),_.ff(3),euh(this)):this.JSC$19855_playerManager?(this.resolver.promise.then(function(){euh(O)}),DfA(this.resolver,this.JSC$19855_playerManager)):_.ff(2)};
var DfA=function(O,m){var G=_.m3();m.getPlayerPromise().then(function(B){G.resolve(B)});
G.promise.then(function(B){B.addEventListener("onAbnormalityDetected",O.resolve);_.a7(O.promise,function(){B.removeEventListener("onAbnormalityDetected",O.resolve)})});
O.promise.thenCatch(function(){G.promise.cancel()})},euh=function(O){_.ff(3);
var m={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:O.renderer}};m=_.sJ.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:m},{});Promise.all(m).then(function(){s0o();O.JSC$19855_playerManager&&O.JSC$19855_playerManager.pause()})},s0o=function(){Oss(function(O,m){_.YFK(O,m);
O===0?_.ff(7):_.ff(4)})};var Nau=function(O,m){this.renderer=O;this.page=m;this.resolver=_.m3()};
_.X(Nau,Wj);_.v=Nau.prototype;_.v.cancel=function(){this.resolver.promise.cancel()};
_.v.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.v.isCounterfactual=function(){return!this.renderer.isVisible};
_.v.shouldLogCounterfactualImpression=function(){return!0};
_.v.doEnqueue=function(){var O=this;this.resolver.promise.then(function(){var G={popup:{mealbarPromoRenderer:O.renderer},popupType:"MEALBAR"};_.sJ.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:G},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var m=_.$i(this.page);m&&P3x(this.resolver,m)}break;default:this.resolver.resolve()}};
var P3x=function(O,m){var G=_.m3();m.getPlayerPromise().then(function(B){G.resolve(B)});
G.promise.then(function(B){B.addEventListener("onAdEnd",O.resolve);_.a7(O.promise,function(){B.removeEventListener("onAdEnd",O.resolve)})});
O.promise.thenCatch(function(){G.promise.cancel()})};var Fcu=function(O,m){this.renderer=O;this.page=m};
_.X(Fcu,Wj);_.v=Fcu.prototype;_.v.cancel=function(){this.JSC$19863_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19863_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19863_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.v.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.v.isCounterfactual=function(){return!this.renderer.isVisible};
_.v.shouldLogCounterfactualImpression=function(){return!0};
_.v.doEnqueue=function(){var O=this,m,G;((m=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(G=m.playbackUpsellDialogTriggerConditionData)==null?void 0:G.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19863_downloadedVideosCountSelectorUnsubscriber=_.dc(_.Kf(),F8K,function(B,Q){B>Q&&(AWr(O),O.cancel())}):AWr(this)};
var AWr=function(O){var m={popup:{upsellDialogRenderer:O.renderer},popupType:"MODAL"};_.sJ.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:m},{});(O=_.$i(O.page))&&O.pause()};var z3={},O5B=(z3.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",z3.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",z3.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",z3.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",z3.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",z3.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",z3.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",z3),mb0=function(O,m){this.renderer=O;this.targetManager=
m};
_.X(mb0,Wj);_.v=mb0.prototype;_.v.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19870_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19870_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19870_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.v.getCounterfactualData=function(){if(this.isCounterfactual()){var O;return(O=this.renderer.promoConfig)==null?void 0:O.impressionEndpoints}};
_.v.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.v.shouldLogCounterfactualImpression=function(){return!0};
_.v.doEnqueue=function(){var O=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19870_downloadedVideosCountSelectorUnsubscriber=_.dc(_.Kf(),F8K,function(m,G){O.renderer.targetId&&m>G&&(dX0(O.targetManager,O.renderer.targetId,GaK(O)),O.cancel())});
break;default:dX0(this.targetManager,this.renderer.targetId,GaK(this))}};
var GaK=function(O){var m;if((m=O.renderer.suggestedPosition)==null?0:m.type)var G=O5B[O.renderer.suggestedPosition.type];G||(G="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:O.renderer},popupType:"HINT",position:G}}};var BOo=function(){this.previousPage=null},QUb;
BOo.prototype.registerPromoCommand=function(O,m){H5y(this,void 0,void 0,_.b(O.roadblock,lco),void 0,void 0,m)};
var H5y=function(O,m,G,B,Q,H,M){O.previousPage!==M&&O.pendingTooltipPromo&&O.pendingTooltipPromo.cancel();O.previousPage=M;Q?(O.pendingEnforcementPromo&&O.pendingEnforcementPromo.cancel(),O.pendingEnforcementPromo=new woo(Q,M),O.pendingEnforcementPromo.enqueue()):H?(O.pendingCommandWrapperPromo=new ZP(H,M),O.pendingCommandWrapperPromo.enqueue()):B?(O.pendingRoadblockPromo&&O.pendingRoadblockPromo.cancel(),O.pendingRoadblockPromo=new Fcu(B,M),O.pendingRoadblockPromo.enqueue()):m?(O.pendingMealbarPromo&&
O.pendingMealbarPromo.cancel(),O.pendingMealbarPromo=new Nau(m,M),O.pendingMealbarPromo.enqueue()):G&&(O.pendingTooltipPromo&&O.pendingTooltipPromo.cancel(),O.pendingTooltipPromo=new mb0(G,_.PD()),O.pendingTooltipPromo.enqueue())},vSB=function(){QUb||(QUb=new BOo);
return QUb};var JHo=!1;var Dkb=function(O,m){var G=_.kB("SESSION_INDEX");this.actionToken_=O;this.commonToken_=m;this.sessionIndex_=G},eCK=function(O){var m=_.m3(),G=_.ex("payments.business.integration.bootstrap"),B=_.ex("payments.business.integration"),Q=B.Style.create().withMaterialDesignStyle(),H=B.mashupMode.popup("instrument-manager");
G.asMashupMode(H).usingUserIndex(O.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(Q).inStandaloneContext(B.standaloneContextAuthId.forUserId()).instrumentManager(O.actionToken_,O.commonToken_.length>0?O.commonToken_:void 0,function(M){var R=M.instrumentId;R?m.resolve(R):(R=_.ex("payments.business.integration.scenario.InstrumentManager"),m.reject(M.errorCode&&M.errorCode===R.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(M){_.di(M);
m.reject("instrumentManagerLoadError")});
return m.promise};var $$=function(O,m,G){this.payloadName="transactionFlowFailed";this.payload={errorType:O,serializedTransactionFlowLoggingParams:m,isUserDismiss:G===void 0?!1:G}};
_.HI("yt.ypc.shared.YpcTransactionFlowError",$$);var Jj=function(){return _.Iu.apply(this,arguments)||this};
_.X(Jj,_.Iu);Jj.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Jj.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Jj.prototype.onErrorMessageDismiss=Jj.prototype.onErrorMessageDismiss;_.c([_.g({readOnly:!0,observer:"errorRendererChanged"}),_.Y("design:type",Object)],Jj.prototype,"errorRenderer",void 0);_.c([_.hG("yt-live-chat-error-message-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Jj.prototype,"onErrorMessageDismiss",null);_.c([_.p7()],Jj);var K1K=[Jj.prototype];var $bb;var MFy;var rTr=new _.YG("yt-live-chat"),Rsy=new Map;Rsy.set("timestamp_toggle","show-timestamps");Rsy.set("reactions_toggle","allow-reactions");var VL=function(){return _.u.apply(this,arguments)||this};
_.X(VL,_.u);_.v=VL.prototype;_.v.menuItemIdentifierChanged=function(){var O;(O=this.data)!=null&&O.menuItemIdentifier&&(O=Rsy.get(this.data.menuItemIdentifier))&&(_.V("enable_lwe_web_mute")?(O=rTr.get(O),this.isToggled=!(O===void 0?!this.data.isToggled:!O)):this.isToggled=rTr.get(O))};
_.v.onFocus=function(){this.toggleButton.focus()};
_.v.onTap=function(){var O=this.data.command;O&&this.componentBehavior.resolveCommand(O)};
_.v.computeText=function(O,m,G){return this.componentBehavior.getSimpleString(O?G:m)};
_.v.computeIcon=function(O,m,G){return(O=O?G:m)&&O.iconType?_.bK(O.iconType):""};
VL.prototype.onTap=VL.prototype.onTap;VL.prototype.onFocus=VL.prototype.onFocus;VL.prototype.menuItemIdentifierChanged=VL.prototype.menuItemIdentifierChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],VL.prototype,"componentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],VL.prototype,"data",void 0);
_.c([_.g({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Y("design:type",String)],VL.prototype,"icon",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],VL.prototype,"isToggled",void 0);_.c([_.uc("tp-yt-paper-toggle-button"),_.Y("design:type",Object)],VL.prototype,"toggleButton",void 0);_.c([_.Tw("data.menuItemIdentifier"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VL.prototype,"menuItemIdentifierChanged",null);
_.c([_.hG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VL.prototype,"onFocus",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VL.prototype,"onTap",null);_.c([_.DO({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],VL);
_.y(VL,"yt-live-chat-toggle-renderer",function(){if(MFy===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;$bb===void 0&&($bb=document.createElement("template"));var B=$bb;G.call(m,B.content.cloneNode(!0),O.content.firstChild);MFy=O}O=MFy;return O},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var i5r=new _.Us("NAVIGATION_PROGRESS_TOKEN");var xbr={},qM0={},UbA=(qM0[hHA.name]=!0,qM0),br=function(){var O=_.Iu.apply(this,arguments)||this;O._noAccessors=!0;O.tabGesturesIsActive=!1;O.actionRouterIsRoot=!0;O.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"};O.pageTitle="";O.titleSuffix="YouTube";O.unseenNotificationCount=
0;O.hasNavigated=!1;O.hasSetScrollTopForNavigation=!1;O.pagePreparer=null;O.zwiebackInitJobId=0;O.dataUpdatePromise=null;O.loadDepsPromise=_.ZY();O.hasPendingNavigation=!1;O.pendingPlayerOnResponseReceivedActions=[];return O};
_.X(br,_.Iu);br.prototype.attached=function(){tFy(this);document.addEventListener("yt-navigate-cache",_.f7(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var O=nV();O.init();O.dispatchElement=this.hostElement};
var tFy=function(O,m){m=m===void 0?0:m;var G=_.KR().resolve(_.v7(_.N2));if(G)W1s(O,G);else{if(m>=5)throw Error("nl");setTimeout(function(){tFy(O,m+1)},0)}},W1s=function(O,m){m.addEventListener("yt-navigate-start",_.f7(O,O.onYtNavigateStart));
m.addEventListener("yt-navigate-finish",_.f7(O,O.onYtNavigateFinish));m.addEventListener("yt-navigate-error",_.f7(O,O.onYtNavigateError));m.addEventListener("yt-page-data-fetched",_.f7(O,O.onYtPageDataFetched))};
_.v=br.prototype;_.v.detached=function(){var O=_.KR().resolve(_.N2);O.removeEventListener("yt-navigate-start",_.f7(this,this.onYtNavigateStart));O.removeEventListener("yt-navigate-finish",_.f7(this,this.onYtNavigateFinish));O.removeEventListener("yt-navigate-error",_.f7(this,this.onYtNavigateError));O.removeEventListener("yt-page-data-fetched",_.f7(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.f7(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.v.setPageOffset=function(O,m){O?_.xc(this.hostElement,"yt-set-page-offset",[O,m]):_.oy(Error("ol"))};
_.v.setPageOffsetForNavigation=function(O,m){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(O,m))};
_.v.onYtNavigateSetPageOffset=function(O,m){this.setPageOffsetForNavigation(m.page,m.offset)};
_.v.getPageOffset=function(){var O=_.ZO(this.hostElement).querySelector("#page-manager").getCurrentPage(),m=0;O&&(m=_.xc(this.hostElement,"yt-get-page-offset",[O])[0]);return m};
_.v.onYtHistoryPop=function(O,m){if(_.yE("DISABLE_WARM_LOADS"))O.preventDefault(),window.location.reload();else{var G=_.KR().resolve(_.N2);G.hasPendingNavigation()&&O.preventDefault();G.cancelPendingNavigation();_.UB(this.hostElement,"yt-pending-navigation-cancelled");m.errorMsg&&(O=m.errorMsg.split(" - "),m=Error(O[0]),O.length==2&&O[1]&&(_.kt(m,O[1]),_.ay(m)),window.location.reload())}};
_.v.onYtHistoryLoad=function(O,m){var G=this;if(_.yE("DISABLE_WARM_LOADS"))window.location.reload();else{(O=m.endpoint)&&Object.keys(O).length||(O=null);var B=m.historyEntry,Q=_.KR().resolve(_.N2),H=_.KR().resolve(_.KJ),M=null;B&&B.rootData&&(M=B.rootData);var R=M&&Z53(M);!M||R||M.filler?O?(Q.navigate(O,!0),zsx(this,O)):(m.legacyBorder||R||(m.JSC$30199_savedComponentState==null&&M==null?_.ay(new _.j9("Incomplete history entry",m.forward)):_.lT(new _.j9("Malformed history entry",m.JSC$30199_savedComponentState,
m.forward,M))),window.location.reload()):(_.XKO({isHot:!0}),_.as({webInfo:{navigationReason:"h"}}),_.Dyz(),_.cd("srt"),_.cd("pdc"),this.cancelPendingTasks(),JTy(this,m.forward,M),M.player&&(M.player.loaded=!1),zsx(this,O),_.xhp(Q,O||{},M,2,{},!1,m).then(function(){G.setPageOffset(H.getCurrentPage(),B.scrollTop||0)}))}};
_.v.initHistoryManager=function(O){if(!this.hasNavigated){this.hasNavigated=!0;var m=_.ZO(this.hostElement).querySelector("#page-manager").getCurrentData();O=isNaN(O)?this.getPageOffset():O;var G=_.KR().resolve(_.N2).currentEndpoint;this.replaceState(G,m,O)}};
_.v.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.v.onYtNavigateStart=function(O,m){this.cancelPendingTasks();m.noProgressBar||(O=_.KR().resolve(_.v7(i5r)))&&O.start();O=this.hasPendingNavigation?null:this.data;var G=_.KR().resolve(_.KJ),B,Q,H;_.V("kevlar_use_vimio_behavior")&&!((B=m.endpoint)==null?0:(Q=B.commandMetadata)==null?0:(H=Q.webCommandMetadata)==null?0:H.ignoreNavigation)&&(B=G.getCurrentPage())&&B.disconnectVisibilityRoot();G.prepareForNavigation(m.pageType,m.endpoint);_.V("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.gy(1,
"pcl"),_.uL(this.pagePreparer,G.preparePage.bind(G,m.pageType,m.endpoint)));B=this.getPageOffset();this.initHistoryManager(B);m.reload||this.hasPendingNavigation?(_.V("web_enable_delay_shorts_sequence_call")&&m.pageType==="shorts"&&m.reload&&_.iP(this.hostElement,"yt-shorts-reset"),this.replaceState(m.endpoint,O,B)):(O==null?void 0:O.page)==="watch"&&m.pageType==="watch"&&_.V("kevlar_replace_watch_to_watch_history_state")?this.replaceState(m.endpoint,O,B):(O==null?void 0:O.page)!=="shorts"||m.pageType!==
"shorts"||m.endpoint.reelWatchEndpoint.sequenceParams||_.V("short_to_short_back_nav_killswitch")?m.type!="navigate-back"&&m.type!="navigate-forward"&&(m.pageType==="shorts"&&_.iP(this.hostElement,"yt-shorts-reset"),this.saveAndPush(m.url,m.endpoint,O,B)):(_.V("web_enable_delay_shorts_sequence_call")&&(m.endpoint.reelWatchEndpoint.sequenceParams=O==null?void 0:O.cachedSequenceParams,m.endpoint.reelWatchEndpoint.sequenceProvider=O==null?void 0:O.cachedSequenceProvider),this.replaceState(m.endpoint,
O,0));this.hasPendingNavigation=!0};
var VFA=function(O){O.hasPendingNavigation=!1;(O=_.KR().resolve(_.v7(i5r)))&&O.finish()};
br.prototype.onYtNavigateError=function(O,m){VFA(this);O=this.get("endpoint.commandMetadata.webCommandMetadata.url",m);var G=_.Fq(window.location.href);O&&!G.pbjreload&&(m=m.navigationErrorReason||"10",_.V("kevlar_parent_on_pbjreload")&&(G={csn:_.yA()},this.get("data.endpoint.clickTrackingParams")&&(G.itct=this.data.endpoint.clickTrackingParams),_.vd(O,G)),_.BC(_.AN(O,{pbjreload:m})))};
br.prototype.onYtNavigateCache=function(O,m){var G=this,B=m.url,Q=m.endpoint,H=m.data;O=!!m.miniplayer;m=!!m.skipHistory;if(B&&Q&&H){var M=this.getPageOffset(),R=this.data||null;m||this.saveAndPush(B,Q,R,M);B=_.xhp(_.KR().resolve(_.N2),Q,H,O?4:3,{},O);O&&B.then(function(){G.dataUpdatePromise&&G.dataUpdatePromise.then(function(){var x=_.KR().resolve(_.KJ);G.setPageOffset(x.getCurrentPage(),0)})})}};
br.prototype.onYtNavigateFinish=function(O,m){var G=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){b5B(G,m.fromHistory)})};
var b5B=function(O,m){VFA(O);if(O.pendingPlayerOnResponseReceivedActions){for(var G=_.K(O.pendingPlayerOnResponseReceivedActions),B=G.next();!B.done;B=G.next())_.fm(B.value,O.hostElement);O.pendingPlayerOnResponseReceivedActions=[]}G=_.KR().resolve(_.KJ);m||!O.hasNavigated||_.V("web_disable_scroll_on_navigate_finish")||((m=G.getCurrentPage())?m.is==="ytd-shorts"||O.tabGesturesIsActive||O.setPageOffsetForNavigation(m,0):_.ay(Error("pl")));_.mp(function(){_.mp(function(){_.cd("pda")})})};
br.prototype.onYtNavigate=function(O){if(!O.detail.endpoint){var m=new _.j9("Error: Missing yt-navigate endpoint from target:",O.target,O.target.nodeName);_.oy(m)}if(m=_.V("cold_missing_history"))m=nV(),m.init(!1),m=!(m.browserHistory.boundHistoryReplaceState&&m.browserHistory.boundHistoryPushState);if(m){_.a8("DISABLE_WARM_LOADS",!0);m=new _.j9("Failed to initialize history manager",this.getDebugString());var G=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
G?_.ay(m):_.oy(m)}m=O.detail.endpoint;var B,Q;_.V("debug_forward_web_query_parameters")&&((B=m.commandMetadata)==null?0:(Q=B.webCommandMetadata)==null?0:Q.url)&&(m=JSON.parse(JSON.stringify(m)),m.commandMetadata.webCommandMetadata.url=_.AKN(m.commandMetadata.webCommandMetadata.url,window.location.search));O={type:0,command:m,form:{params:O.detail.params,tempData:O.detail.tempData||{},requestType:O.detail.type,createScreenConfig:O.detail.createScreenConfig,reload:O.detail.reload?O.detail.reload:!1,
requestForm:O.detail}};_.V("kevlar_yt_navigate_command_handler")?(B=_.KR().resolve(_.Mu),O.form.skipDefaultElement=!0,B.resolveCommand(m,{form:O.form})):this.handleNavigate(O)};
br.prototype.handleNavigate=function(O){this.hasSetScrollTopForNavigation=!1;var m=_.KR().resolve(_.N2),G=O.form||{};m.navigate(O.command,G.reload,G.params,G.tempData,G.requestType,G.createScreenConfig,G.ignoreConfirmation,G.requestForm)&&zsx(this,O.command,G.tempData)};
br.prototype.onYtPageDataFetched=function(O,m){try{_.QfH().reset();this.data=m.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.KR().resolve(_.KJ).updatePageData(this.data);var G=this.get("playerResponse.onResponseReceivedActions",this.data);G&&(G=nSo(this,G));G&&_.Wd(this.hostElement,G,this.hostElement);var B=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),Q=this.get("response.responseContext.consistencyTokenJar",this.data);if(B||Q){var H=_.Ppp(),M=(0,_.aM.getValues)(H.tokenJars);B&&H.replace(M,B);Q&&H.replace(M,Q)}}catch(R){_.oy(R)}};
var zsx=function(O,m,G){try{O.onYtEndpointChangeHandler(m,G)}catch(B){_.oy(B)}};
_.v=br.prototype;_.v.onYtEndpointChangeHandler=function(){};
_.v.setPageTitle=function(O){O=(this.pageTitle=O)?O+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+O};
_.v.onYtUpdateTitle=function(O,m){this.setPageTitle(m)};
_.v.setUnseenNotificationCount=function(O){this.unseenNotificationCount=O;this.setPageTitle(this.pageTitle)};
_.v.handleUpdateNotificationsUnseenCountAction=function(O){_.b(O,$dh)&&((O=_.b(O,$dh).unseenCount)?this.setUnseenNotificationCount(O):this.setUnseenNotificationCount(0))};
_.v.handleClearCookieAction=function(O){var m;(O=(m=_.b(O,Q4o))==null?void 0:m.cookieName)&&_.ZsN(O)};
_.v.onYtUpdateUnseenNotificationCount=function(O,m){this.setUnseenNotificationCount(m)};
_.v.loadData=function(O){var m=this;this.loadDepsPromise.then(function(){var G=_.KR().resolve(_.v7(_.N2));G||_.oy(Error("ql"));if(O&&O.response){if(!O.endpoint){var B=_.Pr(window.document.location.href)||"/",Q="";if(B==="/"||B.startsWith("/?"))Q="WEB_PAGE_TYPE_BROWSE";O.endpoint={commandMetadata:{webCommandMetadata:{url:B,webPageType:Q,rootVe:3854}}}}_.xhp(G,O.endpoint,O,5,{})}else O.endpoint?G.navigate(O.endpoint):G.navigate(_.Yz);_.ln.cancelJob(m.zwiebackInitJobId);m.zwiebackInitJobId=_.ln.addLowPriorityJob(VVr)})};
var nV=function(){return _.KR().resolve(_.yw)};
br.prototype.getDebugString=function(){return nV().getDebugString()};
br.prototype.getThirdPartyManipulationSuspected=function(){return nV().getThirdPartyManipulationSuspected()};
br.prototype.replaceState=function(O,m,G){nV().saveAndReplace(O,m,G)};
br.prototype.saveAndPush=function(O,m,G,B){nV().saveAndPush(O,m,G,B)};
var Z53=function(O){return _.b(O.endpoint,_.GC)||_.b(O.endpoint,_.pf)?!0:!O||isNaN(O.expirationTime)?!1:(0,_.$G)()>O.expirationTime},JTy=function(O,m,G){var B=O.get("response.trackingParams",G),Q=_.kf(),H=_.yA();
if(B&&Q&&H&&(B=O.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",G),!B&&G.rootVe&&(B=G.rootVe),Q=m?"forwardButton":"backButton",m=O.get("playerResponse.topbar.desktopTopbarRenderer."+Q+".buttonRenderer.command.clickTrackingParams",O.data),O=O.get("response.topbar.desktopTopbarRenderer."+Q+".buttonRenderer.command.clickTrackingParams",O.data),m=(O=m||O)?_.Ez(O):void 0,O=_.uK(),Q=[_.ZY(G)],_.E1(O,B,m,{dataPromises:Q,csnToClone:G.csn}),G.graftedVes))for(G=
_.K(G.graftedVes),B=G.next();!B.done;B=G.next())_.LK(O,B.value)};
br.prototype.onStoreGraftedVeAction=function(O){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(O)):_.ay(Error("rl"))};
var nSo=function(O,m){return m.filter(function(G){for(var B in G)if(UbA[B])return O.pendingPlayerOnResponseReceivedActions.push(G),!0;return!1})};
_.vr.Object.defineProperties(br.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
br.prototype.onStoreGraftedVeAction=br.prototype.onStoreGraftedVeAction;br.prototype.loadData=br.prototype.loadData;br.prototype.onYtUpdateUnseenNotificationCount=br.prototype.onYtUpdateUnseenNotificationCount;br.prototype.handleClearCookieAction=br.prototype.handleClearCookieAction;br.prototype.handleUpdateNotificationsUnseenCountAction=br.prototype.handleUpdateNotificationsUnseenCountAction;br.prototype.setUnseenNotificationCount=br.prototype.setUnseenNotificationCount;
br.prototype.onYtUpdateTitle=br.prototype.onYtUpdateTitle;br.prototype.setPageTitle=br.prototype.setPageTitle;br.prototype.onYtEndpointChangeHandler=br.prototype.onYtEndpointChangeHandler;br.prototype.onYtPageDataFetched=br.prototype.onYtPageDataFetched;br.prototype.handleNavigate=br.prototype.handleNavigate;br.prototype.onYtNavigate=br.prototype.onYtNavigate;br.prototype.onYtNavigateFinish=br.prototype.onYtNavigateFinish;br.prototype.onYtNavigateCache=br.prototype.onYtNavigateCache;
br.prototype.onYtNavigateError=br.prototype.onYtNavigateError;br.prototype.onYtNavigateStart=br.prototype.onYtNavigateStart;br.prototype.cancelPendingTasks=br.prototype.cancelPendingTasks;br.prototype.initHistoryManager=br.prototype.initHistoryManager;br.prototype.onYtHistoryLoad=br.prototype.onYtHistoryLoad;br.prototype.onYtHistoryPop=br.prototype.onYtHistoryPop;br.prototype.onYtNavigateSetPageOffset=br.prototype.onYtNavigateSetPageOffset;br.prototype.setPageOffset=br.prototype.setPageOffset;
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],br.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],br.prototype,"data",void 0);_.c([_.hG("yt-navigate-set-page-offset"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],br.prototype,"onYtNavigateSetPageOffset",null);
_.c([_.hG("yt-history-pop"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],br.prototype,"onYtHistoryPop",null);_.c([_.hG("yt-history-load"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,_.pn2]),_.Y("design:returntype")],br.prototype,"onYtHistoryLoad",null);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],br.prototype,"onYtNavigate",null);
_.c([_.hG("yt-update-title"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,String]),_.Y("design:returntype")],br.prototype,"onYtUpdateTitle",null);_.c([_.hG("yt-update-unseen-notification-count"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Number]),_.Y("design:returntype")],br.prototype,"onYtUpdateUnseenNotificationCount",null);_.c([_.p7()],br);xbr.YtdAppBehavior=[_.cg.YtActionHandlerBehavior,br.prototype];var Xj=function(){var O=_.Iu.apply(this,arguments)||this;O._noAccessors=!0;return O};
_.X(Xj,_.Iu);Xj.prototype.ready=function(){var O=this;_.ZO(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){O.onChange_()})};
Xj.prototype.dataChanged_=function(){_.ZO(this.hostElement).querySelector("#checkbox").checked=!1};
Xj.prototype.onChange_=function(){var O=_.ZO(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.iP(this.hostElement,"yt-dismissal-reason-"+O,this.data.feedbackToken)};
Xj.prototype.dataChanged_=Xj.prototype.dataChanged_;_.c([_.g(),_.Y("design:type",Object)],Xj.prototype,"data",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Xj.prototype,"dataChanged_",null);_.c([_.p7()],Xj);var XPs=[Xj.prototype];var fV=function(){var O=_.Iu.apply(this,arguments)||this;O.timeoutJobId=0;O.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return O};
_.X(fV,_.Iu);fV.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
fV.prototype.startTimeout=function(){var O=this,m=this.data&&this.data.displayDurationSeconds;m&&!this.timeoutJobId&&(this.timeoutJobId=_.uT(_.ln,function(){_.xc(O.hostElement,"yt-close-popup-action",[O.is]);O.timeoutJobId=0},m*1E3))};
fV.prototype.cancelTimeout=function(){_.ln.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
fV.prototype.ytdHatsSurveyBehaviorDataChanged=fV.prototype.ytdHatsSurveyBehaviorDataChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],fV.prototype,"ytActionHandlerBehavior",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fV.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.c([_.p7()],fV);var fas=[_.cg.YtActionHandlerBehavior,fV.prototype];var hs9=function(O,m){var G;return((G=O.prefixMapping)==null?0:G[m])?O.prefixMapping[m]:O.SHARED_RENDERERS_.hasOwnProperty(m)?"yt":O.prefix},hj={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}};hj.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.V("kevlar_mealbar_above_player"),modern:_.V("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"}};
hj.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};hj.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};hj.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
hj.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)"}};
hj.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};
hj.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};
hj.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};
hj.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};hj.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"}};
hj.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};hj.TOAST={component:null,properties:{}};var TO9=new function(O,m,G){this.supportedPopups=O;this.navigationEndpointPopupMap=m;this.popupTypeMap=G;this.supportedPopups=O;this.navigationEndpointPopupMap=m;this.popupTypeMap=G}({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:_.V("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"}),gS9=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$19921_popupConfig=hj;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 u3y=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.vL.getInstance()},T3=function(O,m){var G=O.pageNameToElement.get(m);
if(!G){switch(m){case "watch":var B=_.V("web_watch_force_learning_journey_for_testing")?_.Th("ytd-watch-learning-journey"):_.V("kevlar_watch_fixie")?_.Th("ytd-watch-fixie"):_.V("kevlar_watch_grid")?_.Th("ytd-watch-grid"):_.Th("ytd-watch-flexy");break;case "learning_journey_watch":B=_.Th("ytd-watch-learning-journey");break;case "shorts":B=_.Th("ytd-shorts");break;case "search":B=_.Th("ytd-search");break;case "channel":B=_.Th("ytd-browse");B.pageSubtype="channels";break;case "trending":B=_.Th("ytd-browse");
B.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 "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":B=
_.Th("ytd-browse");B.pageSubtype=m;break;case "browse":B=_.Th("ytd-browse");break;default:_.ay(new _.j9("Error getting page element for type",m))}G=B;O.pageNameToElement.set(m,G)}return G};
u3y.prototype.preparePage=function(O,m,G){G&&(O=_.TL(G)||O);if(O!=="watch"&&O!=="learning_journey_watch"){var B=this.elementPoolPopulator,Q=O;Q!=B.targetPage_&&B.pendingPages_.indexOf(Q)>-1&&(B.targetPage_&&(B.pendingPages_.unshift(B.targetPage_),B.abort()),DXh(B,Q),_.g1H(B,Q))}if((B=T3(this,O))||!_.b(G,_.Db)){B.isAttached||B===m||(B.hidden=!0);if(!B.data&&(O!=="watch"&&O!=="learning_journey_watch"||!_.V("swatcheroo_page_pool_dont_provide_filler_data"))){var H;if(O=(H=_.kB("FILLER_DATA",{})[O])==
null?void 0:H.response)B.data=O}return B}};var jUK=function(O){this.JSC$32108_clientRoot=O;this.playlistHandlerActionMap={"yt-add-to-playlist-command":jZr,"yt-end-playlist-command":Iwy,"yt-recover-playlist-command":Sfr,"yt-refresh-playlist-command":CE0,"yt-playlist-remove-videos-action":Egu};_.NT(_.sJ.getInstance(),this.playlistHandlerActionMap,this.JSC$32108_clientRoot);QE9()},Iah;var gn=function(O,m,G){this.apiKey=O;this.endpoint=m;this.confidenceThreshold=G===void 0?.5:G;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=m==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||m==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
m==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||m==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new Ojs};
_.v=gn.prototype;
_.v.start=function(O){if(this.state===0)if(this.isOnline()){O.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=O.supportsHttpHeadersOverwriteParam);O.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=O.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.ys("voice_assistant");_.Yc("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=O.languageCode||"en-US";this.supportsCrossDomainXhr=O.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=O.youtubeAssistantRequest||null;this.listeningHandler=O.listeningHandler||this.listeningHandler;this.audioDetectedHandler=O.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=O.stopHandler||this.stopHandler;this.completeHandler=O.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=O.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=O.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
O.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=O.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=O.accessToken;this.additionalHeaders=O.additionalHeaders||{};var m;this.prefetchResponseTimeoutMs=(m=O.prefetchResponseTimeoutMs)!=null?m:this.prefetchResponseTimeoutMs;pPr(this);this.startAudio();SMA(this)}else this.errorHandler("OFFLINE")};
_.v.stop=function(O){var m=O===void 0?{}:O;O=m.logCancel===void 0?!0:m.logCancel;var G=m.logMicClosed===void 0?!0:m.logMicClosed;var B=m.handleError===void 0?!0:m.handleError;m=m.handleStop===void 0?!0:m.handleStop;this.state!==0&&(O&&ur("voz_cx"),jJ(this,{logMicClosed:G,handleStop:m}),B&&this.errorHandler("ABORTED"))};
_.v.getState=function(){return this.state};
_.v.isSupported=function(){return!0};
_.v.stopAudio=function(O){(O===void 0||O)&&ur("voz_mf")};
_.v.startAudio=function(){ur("voz_vp");return _.ZY(null)};
var ESr=function(O,m){O.channelOpen&&(O.state!==2&&(O.state=2,ur("voz_ss"),O.listeningHandler()),m=new Uint8Array(m),m='{ "audioIn": "'+_.pB(m)+'" }',O.channel.send(m))},jJ=function(O,m){var G=m===void 0?{}:m;
m=G.logMicClosed===void 0?!0:G.logMicClosed;G=G.handleStop===void 0?!0:G.handleStop;O.vozEndOfDataTimeout>-1&&(clearTimeout(O.vozEndOfDataTimeout),O.vozEndOfDataTimeout=-1);L1u(O);O.stopAudio(m);O.channel&&(O.channelOpen=!1,O.manuallyClosedChannel=!0,O.channel.close(),O.channel=void 0);O.transcribedSpeechResults=[];O.state=0;G&&O.stopHandler()},pPr=function(O){var m={httpHeadersOverwriteParam:O.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},O.additionalHeaders,O.accessToken&&O.isUsingVoz?{Authorization:"Bearer "+O.accessToken}:{"x-goog-api-key":O.apiKey}),supportsCrossDomainXhr:O.supportsCrossDomainXhr};O.channel=new lZ(O.endpoint,m);O.channel.open();_.Cm(O.channel,"w",function(){var G=O.channel,B=G.send,Q=O.isUsingVoz?"PLACEHOLDER":"example";Q={config:{dialogStateIn:{languageCode:O.languageCode},deviceConfig:{deviceId:Q,deviceModelId:Q},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!O.isUsingVoz)Q.config.requestType=4;else if(O.isUsingVoz&&O.youtubeAssistantRequest){var H=JSON.stringify(O.youtubeAssistantRequest);Q.config.internalIn={youtubeAssistantS3InputJson:H}}B.call(G,Q);O.channelOpen=!0;O.manuallyClosedChannel=!1});
_.Cm(O.channel,"x",function(){O.manuallyClosedChannel||(O.channelOpen=!1,O.channel=void 0,jJ(O))});
_.Cm(O.channel,"z",function(G){if(G.data){L1u(O);for(var B=0;B<G.data.length;B++){var Q=O,H=G.data[B],M=H.speechResults;if(M)a:{var R=[];H=[];var x=!1;M=_.K(M);for(var t=M.next();!t.done;t=M.next()){t=t.value;if(t.noSpeech){jJ(Q);Q.errorHandler("NO_SPEECH");break a}t.transcript!==void 0&&t.stability!==void 0&&(t.stability<Q.confidenceThreshold&&(x=!0),x?H.push(t.transcript):R.push(t.transcript))}if(R.length!==0||H.length!==0)R=R.join(" "),H=H.join(" "),Q.receivedEndOfUtterance&&!Q.isUsingVoz?Q.isUsingVoz||
Q.completeHandler([R,H]):(x=Q,M=R,t=H,ur("voz_sf"),x.transcriptionUpdateHandler(M,t),x.transcribedSpeechResults=[M,t]),Q.receivedEndOfUtterance&&(ur("voz_eou"),Q.transcriptionCompleteHandler([R,H]),Q.isUsingVoz&&(Q.prefetchResponseTimeoutMs===0?jJ(Q,{logMicClosed:!1,handleStop:!0}):Q.prefetchResponseTimeoutMs>0&&Cdr(Q)))}else Q.isUsingVoz&&(H==null?0:H.internalOut)?(H=JSON.parse(H.internalOut.youtubeAssistantS3OutputJson),H.userHasOptedInToVaa||H.vaaConsent?Q.vaaConsentUpdateHandler(!!H.userHasOptedInToVaa,
!!H.vaaConsent):(oSr(Q),H&&(R=Q.transcribedSpeechResults,ur("voz_rqf"),Q.completeHandler(R,H)))):H.eventType==="END_OF_UTTERANCE"?Q.receivedEndOfUtterance=!0:(ur("voz_err"),Q.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.ay(Error("sl")))}}});
_.Cm(O.channel,"y",function(G){jJ(O);switch(G.status){case 1:G="WEBCHANNEL_NETWORK_ERROR";break;case 2:G="WEBCHANNEL_SERVER_ERROR";break;default:G="WEBCHANNEL_UNKNOWN_ERROR"}O.errorHandler(G);O.logError(Error(G))})};
gn.prototype.logError=function(O){_.oy(O)};
gn.prototype.isOnline=function(){return!0};
var Cdr=function(O){oSr(O);O.prefetchResponseSetTimeoutId=setTimeout(function(){jJ(O,{logMicClosed:!1,handleStop:!0})},O.prefetchResponseTimeoutMs)},oSr=function(O){O.prefetchResponseSetTimeoutId>-1&&(clearTimeout(O.prefetchResponseSetTimeoutId),O.prefetchResponseSetTimeoutId=-1)},SMA=function(O){L1u(O);
O.noResponseReceivedTimeout=window.setTimeout(function(){jJ(O);O.errorHandler("NO_SPEECH")},11E3)},L1u=function(O){O.noResponseReceivedTimeout>-1&&(window.clearTimeout(O.noResponseReceivedTimeout),O.noResponseReceivedTimeout=-1)},ur=function(O){_.cd(O,void 0,"voice_assistant")};var IV=function(){gn.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.X(IV,gn);IV.prototype.isSupported=function(){return ogh()};
IV.prototype.startAudio=function(){var O=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.lK(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(B){laA(O,B)};
this.processor.connect(this.audioContext.destination);var m=function(B){O.stream=B;if(!O.audioContext)return _.ZY(null);B=O.audioContext.createMediaStreamSource(B);O.processor&&B.connect(O.processor);return _.ZY(null)},G={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?m(this.stream):(G=navigator.mediaDevices.getUserMedia(G))?G.then(m).catch(function(B){jJ(O);B.name&&B.name==="NotAllowedError"?O.errorHandler("NO_MICROPHONE_PERMISSION"):(O.errorHandler("AUDIO_ERROR"),O.logError(B));return _.lK(null)}):(jJ(this),this.errorHandler("AUDIO_ERROR"),_.ay(Error("tl")));
return gn.prototype.startAudio.call(this)};
IV.prototype.stopAudio=function(O){O=O===void 0?!0:O;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(m){m.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;gn.prototype.stopAudio.call(this,O)};
IV.prototype.isOnline=function(){return navigator.onLine};
var laA=function(O,m){if(O.audioContext)if(window.OfflineAudioContext){var G=O.audioContext.sampleRate,B=m.inputBuffer.getChannelData(0);m=new window.OfflineAudioContext(1,B.length,16E3);for(var Q=m.createBuffer(1,B.length,G),H=Q.getChannelData(0),M=0,R=0;R<B.length;R++)H[R]=B[R],M+=H[R]*H[R];!O.audioDetected&&Math.sqrt(M/B.length)>.01&&(O.audioDetected=!0,O.audioDetectedHandler());B=m.createBufferSource();B.buffer=Q;B.connect(m.destination);B.start(0);m.oncomplete=function(x){x=x.renderedBuffer.getChannelData(0);
for(var t=Math.floor(16384E3/G),W=new Int16Array(t),Z=0;Z<t;++Z)W[Z]=Math.max(-1,Math.min(1,x[Z]))*32767;ESr(O,W.buffer)};
m.startRendering()}else aay(O,m)},aay=function(O,m){var G=O.audioContext.sampleRate,B=m.inputBuffer.getChannelData(0),Q=Math.floor((G+8E3)/16E3);
G=B.length/Q;m=new Float32Array(G);for(var H=0;H<G;++H)m[H]=B[H*Q];B=new Int16Array(G);for(Q=0;Q<G;++Q)B[Q]=Math.max(-1,Math.min(1,m[Q]))*32767;ESr(O,B.buffer)};var kas={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var yTh=function(){this.JSC$19986_audioEnabled=!0;this.audioFeedbackHolder={}};
yTh.prototype.isPlaying=function(O){return O.currentTime>0&&!O.paused&&!O.ended&&O.readyState>2};
var cTh=function(O){for(var m=_.K(Object.values(kas)),G=m.next();!G.done;G=m.next())G=G.value,O.audioFeedbackHolder[G]=new Audio,O.audioFeedbackHolder[G].src="/s/search/audio/"+G+".mp3",O.audioFeedbackHolder[G].load()},pV=function(O,m){if(O.JSC$19986_audioEnabled!==!1&&m in O.audioFeedbackHolder){for(var G=_.K(Object.values(O.audioFeedbackHolder)),B=G.next();!B.done;B=G.next())B=B.value,O.isPlaying(B)&&B.pause();
O.audioFeedbackHolder[m].currentTime=0;O.audioFeedbackHolder[m].play().catch(function(){})}};var YMy=function(O,m){var G=this;this.store=O;this.service=m;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){G.setState("offline");G.stop()};
this.audioPlayer=new yTh;var B;(B=this.audioPlayer)==null||cTh(B)};
_.v=YMy.prototype;_.v.getService=function(){return this.service};
_.v.isEnabled=function(){return!!this.service};
_.v.isSupported=function(){var O;return(O=this.service)==null?void 0:O.isSupported()};
_.v.start=function(){var O=this,m,G,B,Q,H,M,R,x,t,W,Z,z,J;return _.r(function(n){switch(n.nextAddress){case 1:O.store.dispatch(x03("",""));if(!navigator.onLine)return O.setState("offline"),n.return();window.addEventListener("offline",O.handleOfflineEvent);O.stream=null;if(!O.permissionsSupported){n.jumpTo(2);break}_.n_(n,3);return n.yield(dbA(O),5);case 5:m=n.yieldResult;if(!m)return(G=O.audioPlayer)==null||pV(G,"failure"),n.return();O.service.stream=O.stream;O.setState("listening");_.P7(n,2);break;
case 3:_.uS(n),O.permissionsSupported=!1;case 2:B={context:_.XXI(_.rY())},B.youtubeAssistantParams={searchParams:{inlineSearchResponse:O.enableInlineSearchResponse}},Q=function(I,S){O.store.dispatch(qb3("transcribing"));O.store.dispatch(x03(I,S))},H=function(){var I;
(I=O.audioPlayer)==null||pV(I,"open");O.setState("listening")},M=function(){O.setState("transcribing")},R=function(I){O.setErrorState(I)},x=function(I,S){var L;
(L=O.audioPlayer)==null||pV(L,"success");S&&(_.V("kevlar_voice_search_inline_search")&&(O.responseProcessor=_.KR().resolve(_.bc5),O.responseProcessor&&(L=S.navigationAction,I=S.prefetchedSearchResponse,L&&I&&(L=(new _.WAu).JSC$13123_getStoreKey(L),_.ek(O.responseProcessor,I,L)))),O.JSC$20004_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",S))},t=function(){window.removeEventListener("offline",O.handleOfflineEvent)},W=_.SKe(!1),Z=W.Authorization!=null,z=O.enableFirstPartyAuth||
O.enableFPAForSignedInUsers&&Z?W:{"X-Goog-Visitor-Id":W["X-Goog-Visitor-Id"]},J={completeHandler:x,
errorHandler:R,listeningHandler:H,audioDetectedHandler:M,stopHandler:t,transcriptionUpdateHandler:Q,youtubeAssistantRequest:B,languageCode:wPx(),additionalHeaders:z,supportsCrossDomainXhr:O.enableFirstPartyAuth||O.enableFPAForSignedInUsers&&Z,supportsHttpHeadersOverwriteParam:!O.disableHttpHeadersOverwrite},O.service.start(J),_.ju(n)}})};
_.v.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.v.reset=function(){this.store.dispatch(_.xs({type:"RESET_VOICE_SEARCH_STATE"}))};
_.v.setState=function(O){this.store.dispatch(qb3(O))};
_.v.setErrorState=function(O){switch(O){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var m;(m=this.audioPlayer)==null||pV(m,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)dbA(this);else{var G;(G=this.audioPlayer)==null||pV(G,"failure");this.setState("permission-denied")}break;case "ABORTED":var B;(B=this.audioPlayer)==null||pV(B,"no_input");break;default:var Q;(Q=this.audioPlayer)==
null||pV(Q,"no_input");this.setState("timeout")}};
var dbA=function(O){var m,G;return _.r(function(B){switch(B.nextAddress){case 1:return B.yield(navigator.permissions.query({name:"microphone"}),2);case 2:m=B.yieldResult;if(m.state==="granted")return B.return(!0);if(m.state==="denied")return O.setState("permission-denied"),B.return(!1);O.setState("permission");G={audio:{sampleSize:16,channelCount:1},video:!1};_.n_(B,3);return B.yield(navigator.mediaDevices.getUserMedia(G),5);case 5:return O.stream=B.yieldResult,B.return(!0);case 3:return _.uS(B),
O.setState("permission-denied"),B.return(!1)}})},wPx=function(){var O=_.kB("INNERTUBE_CONTEXT_HL"),m=_.kB("INNERTUBE_CONTEXT_GL");
return O.indexOf("-")>-1?O:O+"-"+m};var esr=function(O,m,G){YMy.call(this,m,G);this.JSC$20004_actionRouter=O;this.enableInlineSearchResponse=_.V("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.V("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.V("kevlar_voice_search_enable_fpa_signedin_users")},Dbr;
_.X(esr,YMy);
var sUA=function(){if(!Dbr){var O="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.V("kevlar_voice_search_auth_enabled")||_.V("kevlar_voice_search_use_yt_endpoint")?O="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.V("kevlar_voice_search_use_fp_endpoint")&&(O="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");Dbr=
new esr(_.sJ.getInstance(),_.Kf(),new IV(_.kB("VOZ_API_KEY"),O,.5))}return Dbr};var NOh=function(O){this.JSC$20008_clientRoot=O;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$20008_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)]]));O=_.K(this.eventListeners);for(var m=O.next();!m.done;m=O.next()){var G=_.K(m.value);m=G.next().value;G=G.next().value;G=_.K(G);for(var B=G.next();!B.done;B=G.next()){var Q=
_.K(B.value);B=Q.next().value;Q=Q.next().value;m.addEventListener(B,Q)}}_.NT(_.sJ.getInstance(),this.autonavPauseActionMap,this.JSC$20008_clientRoot)},Pdb,F19=function(O){return _.V("kevlar_autonav_popup_filtering")?(O=_.Mj(O))?O.hasAttribute("prevent-autonav"):!0:!0};
_.v=NOh.prototype;_.v.onIronOverlayOpened=function(O){F19(O)&&(this.autonavPauseReasons.overlayOpen=!0,SJ(this))};
_.v.onIronOverlayClosed=function(O){F19(O)&&(this.autonavPauseReasons.overlayOpen=!1,SJ(this))};
_.v.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;SJ(this)};
_.v.onYtAutonavPauseBlur=function(){var O=this;_.ln.addJob(function(){O.isInBackground()||(O.autonavPauseReasons.inputBoxFocus=!1,SJ(O))},8,0)};
_.v.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;SJ(this)};
_.v.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;SJ(this)};
_.v.onYtAutonavPauseScroll=function(){var O=_.KR().resolve(_.KJ);O.isOnWatch()&&(O=O.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=O.getBoundingClientRect().top<-200,SJ(this))};
_.v.onYtAutonavPauseUserEngagement=function(O){var m=this;if(_.V("user_engagement_enable_autoplay_pause_feature")){var G=Number(O.lowEngagementThresholdMs);isNaN(G)||G<=0||O.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.y6("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.KR().resolve(_.pH),_.MT()<G?_.uT(_.ln,function(){_.y6("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.wrA()?(this.userEngagementCsn=_.yA(),_.uT(_.ln,function(){_.y6("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
m.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,SJ(this)):_.y6("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.ois(Error("ul`"+JSON.stringify(O)))};
_.v.onYtAutonavPausePlayer=function(O){this.autonavPauseReasons.requestedByPlayer=!!O.detail;SJ(this)};
_.v.onYtAutonavVisibilityChanged=function(){var O=this,m,G,B;return _.r(function(Q){if(Q.nextAddress==1)return(m=_.M1())?Q.yield(m.getPlayerPromise(),2):Q.return();G=Q.yieldResult;B=G.isMuted()||G.getVolume()===0;O.autonavPauseReasons.backgroundAndMute=O.isInBackground()&&B;SJ(O);_.ju(Q)})};
_.v.onYtAutonavPausePlayerEnded=function(){_.KR().resolve(_.pH);var O=144E5;_.V("user_engagement_enable_autoplay_pause_feature")||_.V("is_part_of_any_user_engagement_experiment")||(O=45E5);this.autonavPauseReasons.longIdle=_.MT()>O;ATb(this);SJ(this)};
_.v.onYtUserActivity=function(){var O=this;this.autonavPauseReasons.userEngagement&&(_.uT(_.ln,function(){_.y6("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",O.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,SJ(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.uT(_.ln,function(){_.y6("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",O.userEngagementCsn);_.CE()}),this.autonavPauseReasons.youthereLactExperiment=!1,SJ(this));
this.autonavPauseReasons.longIdle&&!_.V("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,SJ(this))};
_.v.isInBackground=function(){var O=window.document.visibilityState;return!(!O||O==="visible")};
var SJ=function(O){for(var m=!1,G=_.K(Object.values(O.autonavPauseReasons)),B=G.next();!B.done;B=G.next())B=B.value,m=m||B;m?_.nK.getInstance().pause(O.autonavPauseReasons):(O=_.nK.getInstance(),O.autonavState_==3?(O.setState(2,!1,!1),O.autonavPauseReason_=void 0):O.autonavState_==1&&(O.disabledAutonavPauseReason_=void 0))},ATb=function(O){var m=!1;
if(_.V("enable_autoplay_pause_by_lact")){_.KR().resolve(_.pH);m=_.Rd("autoplay_pause_by_lact_sec")*1E3;var G=_.Rd("autoplay_pause_by_lact_sampling_fraction");(m=_.MT()>=m&&Math.random()<G)&&!_.wrA()&&(_.uT(_.ln,function(){_.y6("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),m=!1)}m!==O.autonavPauseReasons.youthereLactExperiment&&(O.autonavPauseReasons.youthereLactExperiment=m)&&(O.userEngagementCsn=_.yA(),_.uT(_.ln,function(){_.y6("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",O.userEngagementCsn)}));
O.autonavPauseReasons.userEngagement&&_.uT(_.ln,function(){_.y6("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",O.userEngagementCsn)})};
NOh.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.y6("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.CE(),this.autonavPauseReasons.youthereLactExperiment=!1,SJ(this));this.autonavPauseReasons.userEngagement&&(_.y6("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,SJ(this))};
NOh.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var OMr=_.sv.persistentPanelVisibleSelector,Ey=function(){var O=_.u.apply(this,arguments)||this;O.miniGuideVisible=!1;O.guideOpened=_.V("disable_initial_guide_state_fix")?!1:O.canFitPersistentGuide(O.initialBodyClientWidth);O.guideUserStateOpened=O.getInitialGuideUserStateOpened();O.isFullscreenShorts=!1;O.miniGuideWidthThreshold=_.Rd("kevlar_mini_guide_width_threshold",791);O.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
O.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");O.persistentGuideBlockedPagePathRegex=new RegExp(O.persistentGuideBlockedPagesPatterns.join("|"));O.animationTransitionDuration=0;O.lateDataResolver=_.m3();O.initialGuideDataFetchFailed=!1;O.initialLoad=!0;O.guideRenderers=new Set;O.isMouseOverGuide=!1;O.sessionUserManuallyExpandedGuideState=
!1;O.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return O};
_.X(Ey,_.u);_.v=Ey.prototype;_.v.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.v.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.v.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.v.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.v.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.v.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.v.ready=function(){_.KR().addProvider({provide:_.qK,useValue:this.hostElement})};
_.v.attached=function(){var O=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.f7(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.f7(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.f7(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.f7(this,this.onYtGuideShow));_.QA(this,function(){O.animationTransitionDuration=200})};
_.v.detached=function(){document.removeEventListener("yt-navigate-finish",_.f7(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.f7(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.f7(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.f7(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.f7(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.f7(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.f7(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.v.getData=function(){return this.data};
_.v.load=function(){var O=this,m,G,B,Q;return _.r(function(H){switch(H.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=O.lateDataResolver.resolve.bind(O),H.return(O.lateDataResolver.promise);if(window.ytInitialGuideData)return m=_.m3(),m.resolve(window.ytInitialGuideData),H.return(m.promise);B=!1;_.n_(H,2);return H.yield(O.fetchGuideData(),4);case 4:G=H.yieldResult;_.P7(H,3);break;case 2:Q=_.uS(H),Q.message==="Returned error"&&(B=
!0);case 3:if(G)return H.return(G);O.onYtGuideClose();B||(O.initialGuideDataFetchFailed=!0);return H.return(O.lateDataResolver.promise)}})};
_.v.fetchGuideData=function(){var O=this,m,G,B,Q,H,M,R;return _.r(function(x){if(x.nextAddress==1)return m=_.KR(),O.guidePromise||(G=m.resolve(_.Dk),O.guidePromise=_.Ov(G,zvh)),x.yield(O.guidePromise,2);if(x.nextAddress!=3)return B=x.yieldResult,Q=m.resolve(_.Sy),x.yield(Q(),3);(H=x.yieldResult)&&((M=B)==null?void 0:(R=M.responseContext)==null?void 0:R.maxAgeSeconds)!==0&&H.put("service:guide:fallback",new _.or({innertubeResponse:B}));return x.return(B)})};
_.v.initializeGuideDataIfEmpty=function(){var O=this,m,G;return _.r(function(B){if(B.nextAddress==1){if(!O.initialGuideDataFetchFailed||O.data)return B.return();_.n_(B,2);return B.yield(O.fetchGuideData(),4)}if(B.nextAddress!=2)return(m=B.yieldResult)&&O.lateDataResolver.resolve(m),_.P7(B,0);G=_.uS(B);_.ay(G);_.ju(B)})};
_.v.initializeGuideData=function(){var O=this,m;return _.r(function(G){switch(G.nextAddress){case 1:return _.xp(aYy(),{mainAppWeb:_.QM()}),_.n_(G,2),G.yield(O.load(),4);case 4:O.data=G.yieldResult;_.P7(G,3);break;case 2:_.uS(G),_.qX(aYy(),"FAILURE");case 3:m=O.data&&O.data.items&&O.data.items.length>0?"SUCCESS":"FAILURE",_.qX(aYy(),m),_.ju(G)}})};
_.v.setGuideData=function(O){var m=this,G,B;return _.r(function(Q){if(Q.nextAddress==1)return m.disabled?Q.return():m.data?(O.data=m.data,m.guideRenderers.add(O),Q.return()):Q.yield(m.initializeGuideData(),2);m.graftGuideToPage();G=_.yE("IS_HOMEPAGE_COLD")?"eop":void 0;_.V("disable_element_pool_populator")?m.setGuideDataAfterInit(O):(B=new _.gy(1,G),_.uL(B,m.setGuideDataAfterInit.bind(m,O)));_.ju(Q)})};
_.v.setGuideDataAfterInit=function(O){O.data=this.data;O.markDirty();this.guideRenderers.add(O);_.mp(function(){_.cd("gle")});
_.QA(this,function(){_.cd("gpe")})};
_.v.graftGuideToPage=function(){if(this.data){var O=this.data&&this.data.trackingParams;O&&(O=_.Ez(O),_.CK(_.uK(),O))}};
_.v.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.f7(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.v.onDrawerOpenedChanged=function(O,m){!m.value&&this.guideOpened&&(this.guideOpened=!1)};
_.v.onYtGuideToggle=function(O){var m=this.guideOpened;this.guideOpened=!m;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var G=_.TC();_.gr(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;G.save()}this.updateGuideDrawerElementState();if(this.guideElement){var B;this.guideOpened&&((B=O.detail)==null?0:B.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.f7(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.f7(this,this.onAppDrawerTransitioned))}m||this.initializeGuideDataIfEmpty()};
_.v.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.f7(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.mP(this.guideElement)};
_.v.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.f7(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(RVA(this.guideOpened))};
_.v.guidePersistentAndVisibleChanged=function(){_.UB(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.v.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.xs({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.v.miniGuideVisibleChanged=function(){_.UB(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.v.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(RVA(this.guideOpened)),this.initialLoad=!1);_.UB(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.v.activeEndpointChanged=function(){_.UB(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.v.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.v.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()};
_.v.cachedClientWidthChanged=function(){this.updateGuideState()};
_.v.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.v.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var O=this.canFitPersistentGuide(this.cachedClientWidth);O?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=O}this.updateGuideDrawerElementState()};
_.v.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.v.getGuideOpened=function(){return this.guideOpened};
_.v.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.v.getActiveEndpoint=function(){return this.activeEndpoint};
_.v.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.v.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&&_.iP(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.v.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.V("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.v.handleGuideMouseLeave=function(){var O=this;!this.sessionUserManuallyExpandedGuideState&&_.V("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.GS(this,"handleGuideMouseLeave",function(){O.isMouseOverGuide||!O.guideOpened||O.miniGuideVisible||(O.guideOpened=!1,O.updateGuideDrawerElementState())},100))};
_.v.computeGuidePersistentAndVisible=function(){var O=this;_.GS(this,"computeGuidePersistentAndVisible",function(){O.guidePersistentAndVisible=O.guideOpened&&O.guidePersistent;O.guideIsVisibleButNotPersistent=!(!O.guideOpened||O.guidePersistent)})};
_.v.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.v.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.v.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.v.startLoadingWatch=function(){this.closeGuide()};
_.v.startLoadingShorts=function(){_.V("web_hide_guide_on_shorts")&&this.closeGuide()};
_.v.onYtNavigateFinish=function(O,m){if(!_.xF||m){this.activeEndpoint=m.endpoint;this.pageType=m.pageType;this.pageUrl=m.response.url;var G,B;O=(B=_.b((G=m.endpoint)==null?void 0:G.commandMetadata,_.bP))==null?void 0:B.url;!this.pageUrl&&O&&(this.pageUrl=O);_.V("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.v.getVisibleGuideRenderer=function(){for(var O=_.K(this.guideRenderers),m=O.next();!m.done;m=O.next())if(m=m.value,this.miniGuideVisible&&m.is==="ytd-mini-guide-renderer"||this.guideOpened&&m.is==="ytd-guide-renderer")return m;return null};
_.v.markGuideRendererDirty=function(O){if(O){typeof O.markDirty==="function"&&O.markDirty();O=_.K([].concat(_.lS(_.ZO(O).children)));for(var m=O.next();!m.done;m=O.next())this.markGuideRendererDirty(m.value)}};
_.v.persistentGuideEnabled=function(O,m){if(!m||O==="watch"||O==="settings"||O==="shorts"&&this.isFullscreenShorts||_.V("reels_web_disable_persistent_guide_shorts")&&O==="shorts")return!1;var G=_.JE(m)||"";return _.V("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(B){return G===B}):!this.persistentGuideBlockedPagePathRegex.test(G)};
_.v.canFitPersistentGuide=function(O){var m=_.Rd("kevlar_persistent_guide_width_threshold",1312);return m===-1||_.V("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:O>this.calculateGuideThreshold(m)};
_.v.calculateGuideThreshold=function(O){return _.V("enable_ai_companion")?O+(this.persistentPanelVisible?400:0):O};
_.v.canFitMiniGuide=function(O){return this.miniGuideWidthThreshold===-1?!1:O>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.v.onResize=function(){var O=this;_.GS(this,"calculateGuideState",function(){O.onResizeDebounced()})};
_.v.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.v.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.v.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.v.getInitialGuideUserStateOpened=function(){return _.V("web_force_mini_guide_default")?!1:!_.TC().getFlag(109)};
_.vr.Object.defineProperties(Ey.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.kB("initialBodyClientWidth")||window.innerWidth}}});
Ey.prototype.onResize=Ey.prototype.onResize;Ey.prototype.observeForMiniGuideVisible=Ey.prototype.observeForMiniGuideVisible;Ey.prototype.computeGuidePersistentAndVisible=Ey.prototype.computeGuidePersistentAndVisible;Ey.prototype.persistentPanelVisibleChanged=Ey.prototype.persistentPanelVisibleChanged;Ey.prototype.cachedClientWidthChanged=Ey.prototype.cachedClientWidthChanged;Ey.prototype.resetGuide=Ey.prototype.resetGuide;Ey.prototype.activeEndpointChanged=Ey.prototype.activeEndpointChanged;
Ey.prototype.guideOpenedChanged=Ey.prototype.guideOpenedChanged;Ey.prototype.miniGuideVisibleChanged=Ey.prototype.miniGuideVisibleChanged;Ey.prototype.guideIsVisibleButNotPersistentChanged=Ey.prototype.guideIsVisibleButNotPersistentChanged;Ey.prototype.guidePersistentAndVisibleChanged=Ey.prototype.guidePersistentAndVisibleChanged;Ey.prototype.onGuideElementChanged=Ey.prototype.onGuideElementChanged;Ey.prototype.onGuidePersistentChanged=Ey.prototype.onGuidePersistentChanged;
Ey.prototype.onRenderGuideChanged=Ey.prototype.onRenderGuideChanged;Ey.prototype.onActiveEndpointChanged=Ey.prototype.onActiveEndpointChanged;Ey.prototype.onMiniGuideVisibleChanged=Ey.prototype.onMiniGuideVisibleChanged;Ey.prototype.onGuideIsVisibleButNotPersistentChanged=Ey.prototype.onGuideIsVisibleButNotPersistentChanged;Ey.prototype.onGuidePersistendAndVisibleChanged=Ey.prototype.onGuidePersistendAndVisibleChanged;
_.c([_.h(_.Dm),_.Y("design:type",Object)],Ey.prototype,"ironResizableBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Ey.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Ey.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],Ey.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ey.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],Ey.prototype,"disabled",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Ey.prototype,"guidePersistentAndVisible",void 0);_.c([_.Tw("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"onGuidePersistendAndVisibleChanged",null);_.c([_.g(),_.Y("design:type",Boolean)],Ey.prototype,"guideIsVisibleButNotPersistent",void 0);
_.c([_.Tw("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.c([_.g(),_.Y("design:type",Object)],Ey.prototype,"miniGuideVisible",void 0);_.c([_.Tw("miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"onMiniGuideVisibleChanged",null);_.c([_.g(),_.Y("design:type",Boolean)],Ey.prototype,"forceMiniGuideClose",void 0);
_.c([_.g(),_.Y("design:type",Object)],Ey.prototype,"activeEndpoint",void 0);_.c([_.Tw("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"onActiveEndpointChanged",null);_.c([_.g(),_.Y("design:type",Boolean)],Ey.prototype,"renderGuide",void 0);_.c([_.Tw("renderGuide"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"onRenderGuideChanged",null);
_.c([_.g({selector:OMr}),_.Y("design:type",Boolean)],Ey.prototype,"persistentPanelVisible",void 0);_.c([_.g(),_.Y("design:type",Object)],Ey.prototype,"guideOpened",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Ey.prototype,"guidePersistent",void 0);_.c([_.Tw("guidePersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"onGuidePersistentChanged",null);_.c([_.g(),_.Y("design:type",Object)],Ey.prototype,"guideUserStateOpened",void 0);
_.c([_.g(),_.Y("design:type",String)],Ey.prototype,"pageUrl",void 0);_.c([_.g(),_.Y("design:type",String)],Ey.prototype,"pageType",void 0);_.c([_.g(),_.Y("design:type",Number)],Ey.prototype,"cachedClientWidth",void 0);_.c([_.g(),_.Y("design:type",Object)],Ey.prototype,"guideElement",void 0);_.c([_.g({selector:_.R$}),_.Y("design:type",Object)],Ey.prototype,"isFullscreenShorts",void 0);
_.c([_.Tw("guideElement"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"onGuideElementChanged",null);_.c([_.Tw("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"guidePersistentAndVisibleChanged",null);
_.c([_.Si("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"guideIsVisibleButNotPersistentChanged",null);_.c([_.Tw("miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"miniGuideVisibleChanged",null);_.c([_.Si("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"guideOpenedChanged",null);
_.c([_.Tw("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"activeEndpointChanged",null);_.c([_.Si("pageUrl"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"resetGuide",null);_.c([_.Si("cachedClientWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"cachedClientWidthChanged",null);
_.c([_.Si("persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"persistentPanelVisibleChanged",null);_.c([_.Tw("guideOpened","guidePersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"computeGuidePersistentAndVisible",null);
_.c([_.Si("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"observeForMiniGuideVisible",null);_.c([_.hG("iron-resize"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ey.prototype,"onResize",null);_.c([_.l({disableElementRegistration:!0,is:"yt-guide-manager"})],Ey);
var mRo=_.y(Ey,"yt-guide-manager",void 0,{mode:_.ZB("kevlar_poly_si_batch_j081")?1:2});var LV=function(){var O=_.u.apply(this,arguments)||this;O.JSC$20018_keyboardInUse=!1;O.boundHandleCapturedKeydownEvent=function(m){O.handleCapturedKeydownEvent(m)};
return O};
_.X(LV,_.u);_.v=LV.prototype;_.v.attached=function(){this.listenToDocument(document)};
_.v.listenToDocument=function(O){O.addEventListener("keydown",_.f7(this,this.onKeyDownEvent));O.addEventListener("keyup",_.f7(this,this.onKeyUpEvent));O.addEventListener("mousedown",_.f7(this,this.onMouseDownEvent));_.V("desktop_keyboard_capture_keydown_killswitch")||O.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);O.addEventListener("yt-page-data-updated",_.f7(this,this.onPageUpdate))};
_.v.detached=function(){this.unlistenFromDocument(document)};
_.v.unlistenFromDocument=function(O){O.removeEventListener("keydown",_.f7(this,this.onKeyDownEvent));O.removeEventListener("keyup",_.f7(this,this.onKeyUpEvent));O.removeEventListener("mousedown",_.f7(this,this.onMouseDownEvent));_.V("desktop_keyboard_capture_keydown_killswitch")||O.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);O.removeEventListener("yt-page-data-updated",_.f7(this,this.onPageUpdate))};
_.v.ready=function(){_.KR().addProvider({provide:_.IF,useValue:this})};
_.v.isKeyBoardInUse=function(){return this.JSC$20018_keyboardInUse};
_.v.handleCapturedKeydownEvent=function(O){if(O.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(O)};
_.v.onMouseDownEvent=function(){this.JSC$20018_keyboardInUse=!1};
_.v.onPageUpdate=function(){if(_.V("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.V("web_shorts_keyboard_shortcut_usage_log")){_.e5.clear();for(var O=_.K(_.dB),m=O.next();!m.done;m=O.next()){var G=_.K(m.value);m=G.next().value;G=G.next().value;G=_.Zv(G);_.e5.set(m,G);_.Pd(_.yA(),_.kf(),G)}_.D5.clear();O=_.K(_.wB);for(m=O.next();!m.done;m=O.next())G=_.K(m.value),m=G.next().value,G=G.next().value,G=_.Zv(G),_.D5.set(m,G),_.Pd(_.yA(),_.kf(),G);_.Fm(_.yA(),_.kf(),[].concat(_.lS(_.D5.values()),
_.lS(_.e5.values())));_.Or(_.yA(),[].concat(_.lS(_.D5.values()),_.lS(_.e5.values())))}};
_.v.onMiniplayerActiveChange=function(){var O;(O=_.KR().resolve(_.c$).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(O.document):this.unlistenFromDocument(O.document))};
_.v.ignoreKeyEvent=function(O){if(O.ctrlKey||O.altKey)if(_.V("kevlar_macro_markers_keyboard_shortcut")){if(O.keyCode!==37&&O.keyCode!==39)return!0}else return!0;var m=_.$Z(O)||[];return _.sqK(m)?(_.V("web_button_or_anchor_list_item")&&$Bs(m,O)&&(this.JSC$20018_keyboardInUse=!0),!0):O.defaultPrevented?(RH(O.keyCode,O.shiftKey,this.isShortsPage),!0):O.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(O):!1};
_.v.isSpacebarClick=function(O){var m=O||window.event;var G;m.composedPath&&typeof m.composedPath==="function"?G=m.composedPath():G=m.path;G&&G.length?m=G[0]:(m=m||window.event,m=m.target||m.srcElement,m.nodeType==3&&(m=m.parentNode));return m&&O.keyCode===32&&(O=m.tagName==="BUTTON"||m.tagName==="A"||m.tagName==="INPUT",m=(m=m.getAttribute("role"))&&(m==="option"||m==="button"||m.indexOf("menuitem")===0),O||m)?!0:!1};
_.v.onKeyDownEvent=function(O){if(!this.ignoreKeyEvent(O)&&(O.keyCode===191&&(O.shiftKey||O.metaKey?O.repeat!=null&&O.repeat||(this.openHotkeyDialog(),RH(O.keyCode,O.shiftKey,this.isShortsPage)):(this.focusSearchBox(),O.preventDefault())),!O.metaKey)){var m=_.KR().resolve(_.c$);switch(O.keyCode){case 9:this.JSC$20018_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(O);break;case 84:m.pipController.getWindow()&&window.focus();this.toggleTheaterMode(O.keyCode,O.shiftKey);break;case 73:m.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(O.keyCode,O.shiftKey);break;case 70:if(this.isShortsPage&&_.V("web_fullscreen_shorts")){_.NKy();break}this.isMiniplayerActive()?m.pipController.getWindow()&&(m.close(!0),window.focus()):this.passEventToPlayer(O);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(O.keyCode,O.shiftKey):this.closeMiniplayer(O.keyCode,O.shiftKey)||this.passEventToPlayer(O);break;case 13:O.shiftKey&&_.KR().resolve(_.Bn).activate(O);break;default:this.passEventToPlayer(O)}}};
_.v.onKeyUpEvent=function(O){if(!this.ignoreKeyEvent(O))if(_.V("web_speedmaster_spacebar_control")&&O.keyCode===32)this.handlePlayerSpaceKey(O,!0);else{var m=this.getPlayerManager();m&&(m=m.getPlayer())&&m.handleGlobalKeyUp(O.keyCode,O.shiftKey,O.ctrlKey,O.altKey,O.metaKey,O.key,O.code)}};
_.v.getPlayerManager=function(){var O=_.M1(),m=_.KR().resolve(_.v7(_.KJ));return O&&m&&m.isOnWatch()?O:null};
_.v.passEventToPlayer=function(O,m){var G=this,B,Q,H,M;return _.r(function(R){if(R.nextAddress==1){if(!_.V("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&G.isMiniplayerActive())B=_.KR().resolve(_.c$).getPlayerElement();else if(G.inlinePreviewIsActive){if(Q=_.UB(G.hostElement,"yt-get-inline-preview-player-action"),(H=Q)==null?0:H[0])B=Q[0]}else B=_.M1();return B?R.yield(B.getPlayerPromise(),3):R.jumpTo(0)}M=R.yieldResult;m?M.handleGlobalKeyUp(O.keyCode,O.shiftKey,O.ctrlKey,O.altKey,O.metaKey,
O.key,O.code):M.handleGlobalKeyDown(O.keyCode,O.shiftKey,O.ctrlKey,O.altKey,O.metaKey,O.key,O.code,O.repeat);O.keyCode!==38&&O.keyCode!==40&&RH(O.keyCode,O.shiftKey,G.isShortsPage);_.ju(R)})};
_.v.focusSearchBox=function(){_.iP(this.hostElement,"yt-focus-searchbox")};
_.v.openHotkeyDialog=function(){_.iP(this.hostElement,"yt-open-hotkey-dialog")};
_.v.isMiniplayerActive=function(){return _.KR().resolve(_.c$).isMiniplayerActive()};
_.v.closeMiniplayer=function(O,m){return this.isMiniplayerActive()?(_.KR().resolve(_.c$).close(),RH(O,m,this.isShortsPage),!0):!1};
_.v.toggleTheaterMode=function(O,m){var G=_.c6(_.Kf().getState()),B=this.getPlayerManager(),Q=_.V("disable_theater_mode_keyboard")||_.yE("START_IN_FULL_WINDOW_MODE");B&&!Q&&(G=!G,_.$c()&&_.V("external_fullscreen")&&(G=!0),_.xc(this.hostElement,"yt-toggle-theater-mode",[G]),RH(O,m,this.isShortsPage))};
_.v.toggleMiniplayer=function(O,m){var G=this.getPlayerManager();if(this.isMiniplayerActive()){var B;((B=_.KR().resolve(_.v7(_.KJ)))==null?0:B.isOnWatch())?_.KR().resolve(_.c$).close(!0):_.iX(_.KR().resolve(_.c$));RH(O,m,this.isShortsPage)}else G&&(_.xc(this.hostElement,"yt-activate-miniplayer-from-watch-action"),RH(O,m,this.isShortsPage))};
_.v.handlePlayerSpaceKey=function(O,m){var G=!!_.M1()||this.isMiniplayerActive();G=_.V("disable_space_scroll_fix")||G;_.V("global_spacebar_pause")&&!this.isKeyBoardInUse()&&G&&(O.preventDefault(),this.passEventToPlayer(O,m))};
_.v.isPresentingTheaterMode=function(){return _.V("web_watch_enable_tm_esc_key")?_.c6(_.Kf().getState())&&!_.$c():!1};
LV.prototype.onMiniplayerActiveChange=LV.prototype.onMiniplayerActiveChange;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],LV.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],LV.prototype,"ytdReduxBehavior",void 0);_.c([_.g({selector:_.KGN}),_.Y("design:type",Boolean)],LV.prototype,"inlinePreviewIsActive",void 0);_.c([_.g({selector:_.tpY}),_.Y("design:type",Boolean)],LV.prototype,"isShortsPage",void 0);
_.c([_.g({selector:_.Ys}),_.Y("design:type",Boolean)],LV.prototype,"miniplayerIsActive",void 0);_.c([_.Tw("miniplayerIsActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LV.prototype,"onMiniplayerActiveChange",null);_.c([_.l({disableElementRegistration:!0,is:"yt-hotkey-manager"})],LV);_.y(LV,"yt-hotkey-manager",void 0,{mode:_.ZB("kevlar_poly_si_batch_j081")?1:2});var CV=function(){var O=_.u.apply(this,arguments)||this;O.loopStateEntityKey_=null;O.playlistLoopStateEntity_=null;O.isShuffleNextPlaylist=!1;O.PLAYER_EVENTS_=new Map;O.playerListenersSetup_=!1;O.videoSkipJob_=0;O.canAutoAdvance_=!1;O.playerManager_=null;O.TEST_ONLY={};return O};
_.X(CV,_.u);_.v=CV.prototype;_.v.ready=function(){_.KR().addProvider({provide:_.Rt,useValue:this.hostElement})};
_.v.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_)};
_.v.attached=function(){document.addEventListener("yt-navigate-start",_.f7(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.f7(this,this.onYtNavigateFinish_))};
_.v.detached=function(){document.removeEventListener("yt-navigate-start",_.f7(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.f7(this,this.onYtNavigateFinish_))};
_.v.updatePlaylistEventListeners=function(O,m){m&&!this.playerListenersSetup_?(this.playerManager_=O,this.registerPlaylistEventListeners_(O)):!m&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(O))};
_.v.setPlayer=function(O){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=O};
_.v.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.v.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.v.registerPlaylistEventListeners_=function(O){var m=this;O.getPlayerPromise().then(function(G){m.playerListenersSetup_||(m.ytPlayerListenerBehavior.listenToPlayerEvents(G,m.PLAYER_EVENTS_),m.playerListenersSetup_=!0)})};
_.v.removePlaylistEventListeners_=function(O){var m=this;O.getPlayerPromise().then(function(G){m.playerListenersSetup_&&(m.ytPlayerListenerBehavior.unlistenFromPlayerEvents(G,m.PLAYER_EVENTS_),m.playerListenersSetup_=!1)})};
_.v.setPlaylistComponent=function(O){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.f7(this,this.onPlaylistYtNavigate_)),O&&(O.data&&this.playlistComponent.data&&O.data.playlistId==this.playlistComponent.data.playlistId?(O.loopOn=this.playlistComponent.loopOn,O.shuffleOn=this.playlistComponent.shuffleOn):(O.loopOn=!1,O.shuffleOn=!1),this.isShuffleNextPlaylist&&(O.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=O;this.playlistComponent.addEventListener("yt-navigate",
_.f7(this,this.onPlaylistYtNavigate_))};
_.v.setAutoplayRenderer=function(O){this.autoplayData=O};
_.v.setPlaylistData=function(O){this.currentPlaylistData_=O;_.iP(this.hostElement,"yt-playlist-data-updated");_.aM.isEmpty(O)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(O)};
_.v.setPlayerPlaybackControlData=function(O){this.playerManager_&&this.playerManager_.updatePlayerComponents(O.playlistPanelRenderer)};
_.v.getPlaylistData=function(){return this.currentPlaylistData_};
_.v.getTempData_=function(O,m){if(this.playlistComponent==null)return null;O={};this.playlistComponent.shuffleOn&&(O.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(O.loop_on=this.playlistComponent.loopOn);m&&(O.autonav="1",_.KR().resolve(_.pH),m=_.MT(),m>0&&(O.lact=m),this.playerManager_&&(m=this.playerManager_.getPlayer())&&m.shouldSendVisibilityState()&&(m=m.getVisibilityState(),m!=0&&(O.vis=m)));_.V("enable_unknown_lact_fix_on_html5")&&(_.KR().resolve(_.pH),O.lact=
_.MT());return O};
_.v.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.v.setLoopStateEntityKey_=function(O){var m;this.loopStateEntityKey_=((m=this.getPlaylistLoopData_(O))==null?void 0:m.playlistLoopStateEntityKey)||null};
_.v.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.v.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.v.skipVideo=function(){var O=this,m=_.V("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||m)m=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Sh(_.ln,function(){O.onPlaylistNext();O.videoSkipJob_=0},m)};
_.v.cancelVideoSkip=function(){this.videoSkipJob_&&(_.ln.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.v.isInBackground_=function(){var O=window.document.visibilityState;return!(!O||O=="visible")};
_.v.onPlaylistIndex_=function(O){this.playlistComponent&&(O=this.playlistComponent.data.contents[O].playlistPanelVideoRenderer.navigationEndpoint,_.iP(this.hostElement,"yt-navigate",{endpoint:O,tempData:this.getTempData_(O)}))};
_.v.onPlayerStateChange_=function(O){if(O=O==0&&this.playlistComponent&&this.canAutoAdvance_)O=_.nK.getInstance(),O=!(O.autonavState_===3?O.autonavPauseReason_&&O.autonavPauseReason_.inputBoxFocus===!0:O.autonavState_===1&&O.disabledAutonavPauseReason_&&O.disabledAutonavPauseReason_.inputBoxFocus===!0);O&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.v.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.v.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.v.navigateToAutoplayWatchEndpoint_=function(O,m,G){var B=this.playlistComponent.data.currentIndex,Q=this.getNumPlayableVideos_();O=="NORMAL"&&m=="autoplayVideo"&&B+1>=Q&&G||!(O=this.getVideoEndpoint_(O,m))||(G=this.getTempData_(O,G),_.iP(this.hostElement,"yt-navigate",{endpoint:O,tempData:G}))};
_.v.getNumPlayableVideos_=function(){for(var O=0,m=_.K(this.playlistComponent.data.contents||[]),G=m.next();!G.done;G=m.next())G.value.playlistPanelVideoRenderer&&(O+=1);return O};
_.v.getVideoEndpoint_=function(O,m){if(this.autoplayData&&this.autoplayData.sets)for(var G=0,B=this.autoplayData.sets.length;G<B;G++){var Q=this.autoplayData.sets[G];if(Q.mode==O){if(Q[m])return Q[m];break}}else O=new _.j9("AutoplayData is undefined in playlist manager","Mode: "+O+" endpoint: "+m),_.ay(O)};
_.v.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.v.onPlaylistYtNavigate_=function(O){if(O.detail.endpoint){O.stopPropagation();var m=O.detail;m.tempData=this.getTempData_(O.detail.endpoint);_.iP(this.hostElement,"yt-navigate",m)}};
_.v.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.v.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.v.playlistLoopStateEntityChanged_=function(O){var m=this,G,B,Q;return _.r(function(H){if(H.nextAddress==1){if(!O)return H.return();G=O.state==="PLAYLIST_LOOP_STATE_ONE";return m.playerManager_?H.yield(m.playerManager_.getPlayerPromise(),3):H.jumpTo(2)}H.nextAddress!=2&&(B=H.yieldResult,B.setLoopVideo(G));Q=O.state==="PLAYLIST_LOOP_STATE_ALL";m.playlistComponent&&(m.playlistComponent.loopOn=Q);_.ju(H)})};
_.v.getPlaylistLoopData_=function(O){var m,G;if(O=O==null?void 0:(m=O.playlistButtons)==null?void 0:(G=m.menuRenderer)==null?void 0:G.topLevelButtons)for(m=_.K(O),G=m.next();!G.done;G=m.next())if(G=G.value,G.playlistLoopButtonRenderer)return G.playlistLoopButtonRenderer};
_.v.getLoopStateCommand_=function(O){var m=this.getPlaylistData(),G;m=((G=this.getPlaylistLoopData_(m))==null?void 0:G.states)||[];var B;O=(B=_.b(m[O?1:2],_.OTp))==null?void 0:B.button;var Q;return(Q=_.b(O,_.v3))==null?void 0:Q.command};
_.v.onPlayerLoopChange_=function(O){this.playlistLoopStateEntity_&&(O?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(O=this.getLoopStateCommand_(O))&&this.ytComponentBehavior.resolveCommand(O)};
_.v.onSleepTimerSettingsChanged_=function(O){this.canAutoAdvance_=O!=="End of video"};
CV.prototype.onPlaylistLoopStateEntityChanged=CV.prototype.onPlaylistLoopStateEntityChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],CV.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.Jh.YtPlayerListenerBehavior),_.Y("design:type",_.Vw)],CV.prototype,"ytPlayerListenerBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],CV.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],CV.prototype,"loopStateEntityKey_",void 0);
_.c([_.g({selectorArgs:["loopStateEntityKey_"],selector:_.its}),_.Y("design:type",Object)],CV.prototype,"playlistLoopStateEntity_",void 0);_.c([_.Tw("playlistLoopStateEntity_"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],CV.prototype,"onPlaylistLoopStateEntityChanged",null);_.c([_.l({disableElementRegistration:!0,is:"yt-playlist-manager"})],CV);_.y(CV,"yt-playlist-manager",void 0,{mode:_.ZB("kevlar_poly_si_batch_j081")?1:2});var G4A,BMb=function(){if(G4A!==void 0)return G4A;var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return G4A=O};var oV=function(){var O=_.u.apply(this,arguments)||this;O.lastCallback=null;O.getAccountLinkPromises={};O.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);O.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return O};
_.X(oV,_.u);_.v=oV.prototype;_.v.getLocation=function(){return window.location.href};
_.v.getCompletionUrl=function(){return _.Hd(this.getLocation())};
_.v.containsRedirectState=function(O){return(O=_.gJ(_.yBf(O)))?(new URLSearchParams(O)).get("redirect_state")!==null:!1};
_.v.createGalConfig=function(O,m){var G=new S2u;O=G=m?this.getPopupOrRedirectSetting(G,_.kB("LINK_API_KEY"),_.kB("LINK_API_KEY_REDIRECT"),O):ENy(G,_.kB("LINK_API_KEY"));O.authUser=_.kB("SESSION_INDEX")||0;O.supportedFlows=new Set([4]);return O.build()};
_.v.getPopupOrRedirectSetting=function(O,m,G,B){this.isGalInteractionPopupMode(B)?(O.interactionMode=0,O=ENy(O,m)):(O.interactionMode=1,m=this.getCompletionUrl(),O.completionUrl=m,O=ENy(O,G));return O};
_.v.isGalInteractionPopupMode=function(O){if(this.redirectModeProviderAllowlist.has(O))switch(O){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.v.getStatusEntityKeyForProviderId=function(O){return _.Ja(O+":all","accountLinkStatusEntity")};
_.v.findNestedPropValue=function(O,m){var G=!1,B=null;JSON.stringify(O,function(Q,H){G||Q!==m||(G=!0,B=H);return G?null:H});
return B};
_.v.findAccountLinkButtonViewModel=function(O,m){var G=null,B=!1;JSON.stringify(O,function(Q,H){B||H.accountLinkStatusEntityKey!==m||H.accountLinkStatusSecondaryEntityKey||(B=!0,G=H);return B?null:H});
return G};
_.v.executeLinkingSuccessOrFailureCommands=function(O,m,G){var B=null,Q;(m==null?0:(Q=m.url)==null?0:Q.includes("account_sharing"))?B=m==null?void 0:m.response:B=m==null?void 0:m.response;(m=this.findAccountLinkButtonViewModel(B,O))?(O=G?this.findNestedPropValue(m,"onSuccessCommand"):this.findNestedPropValue(m,"onFailureCommand"))?_.JK([O],this.hostElement):_.Dy(Error("vl")):_.Dy(Error("wl`"+O))};
_.v.handleInitializeRequest=function(O,m){var G=this,B=vZ0(this.createGalConfig(O,!0));this.containsRedirectState(this.getLocation())?mjB(O,B.config,B.galService).then(function(Q){var H=G.getStatusEntityKeyForProviderId(O);if(Q.statusCode===1)m&&G.executeLinkingSuccessOrFailureCommands(H,m,!0),Q=G.getLocation().indexOf("#"),Q!==-1&&window.history.pushState(null,"",G.getLocation().substring(0,Q));else return m&&G.executeLinkingSuccessOrFailureCommands(H,m,!1),Promise.reject(Error(Q.statusMessage))}).catch(function(Q){_.ay(Q);
_.LE("gamingAccountLinkStatusChanged",{serviceId:O,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(Q)}):this.getAccountLinkPromises[O]=B.startLinkingSession({serviceId:O})};
_.v.handleAccountLinkCommand=function(O){_.b(O,JnA)&&this.handleLinkRequest(_.b(O,JnA))};
_.v.handleLinkRequest=function(O){var m=this,G=O.thirdPartyId;if(G)if(this.isGalInteractionPopupMode(G)){var B=function(){m.closeAndFire("ytd-gaming-account-link-setting-renderer",O.onFailureCommand)},Q=function(){m.closeAndFire("ytd-gaming-account-link-setting-renderer",O.onSuccessCommand)};
this.lastCallback=Q;this.getAccountLinkPromises[G].then(function(H){xmh(H).then(function(M){M.statusCode===1?Q():B()})}).catch(function(){B()})}else this.getAccountLinkPromises[G].then(function(H){xmh(H).then(function(M){if(M.statusCode!==1)return Promise.reject(Error(M.statusMessage))})}).catch(function(H){_.ay(H);
_.LE("gamingAccountLinkStatusChanged",{serviceId:G,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(H)})};
_.v.closeAndFire=function(O,m){_.xc(this.hostElement,"yt-close-popup-action",[O]);m&&_.JK([m],this.hostElement)};
_.v.handleAccountUnlinkCommand=function(O){_.b(O,V6o)&&this.handleUnlinkRequest(_.b(O,V6o))};
_.v.handleUnlinkRequest=function(O){var m=this,G=O.thirdPartyId;if(G){var B=function(){m.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",O.onFailureCommand)},Q=function(){m.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",O.onSuccessCommand)};
this.lastCallback=Q;var H=vZ0(this.createGalConfig(G,!1));this.unlinkUserGal(H,G).then(function(M){M.statusCode===1?Q():B()}).catch(function(){B()})}};
_.v.unlinkUserGal=function(O,m){return O.deleteLink(m)};
_.v.handleLogAccountLinkingEventCommand=function(O){_.V("enable_gel_log_commands")&&_.b(O,bQJ)&&(O=_.b(O,bQJ).event)&&_.LE("gamingAccountLinkStatusChanged",O)};
_.vr.Object.defineProperties(oV,{template:{configurable:!0,enumerable:!0,get:function(){return BMb()}}});
_.c([_.h(_.ko.YtOpenPopupBehavior),_.Y("design:type",Object)],oV.prototype,"ytOpenPopupBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],oV.prototype,"ytActionHandlerBehavior",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-third-party-manager"})],oV);_.y(oV,"ytd-third-party-manager",function(){return BMb()},{mode:_.ZB("kevlar_poly_si_batch_j081")?1:2});var QIA,HMB=function(){if(QIA!==void 0)return QIA;var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return QIA=O};var lr=function(){var O=_.u.apply(this,arguments)||this;O.currentPage=void 0;O.renderLoadingStateJobId=0;O.updatePageDataJobId=0;O.pageDisposeJobsets=new WeakMap;O.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"};O.shouldApplyLockupToWatchTransition=_.V("web_thumbnail_to_watch_transition");O.shouldApplySlideTransition=_.ib("web_page_transition_type")==="slide"||_.V("enable_plj_landing_page");O.shouldApplyLearningJourneyTransition=_.V("enable_plj_landing_page");O.TEST_ONLY=void 0;return O};
_.X(lr,_.u);_.v=lr.prototype;_.v.ready=function(){var O=_.KR();O.addProvider({provide:_.KJ,useValue:this});O.addProvider({provide:_.gwo,useValue:this})};
_.v.created=function(){this.pagePool=new u3y;this.contextSwitcher=new Y5b};
_.v.attached=function(){_.iP(this.hostElement,"attached");var O=_.KR().resolve(_.v7(_.ew));O&&(this.contextSwitcher.JSC$19843_networkService_=O);this.viewTransitionManager=_.KR().resolve(_.dF)};
_.v.getPageOffset=function(O){return O.getScrollTop()};
_.v.setPageOffset=function(O,m){try{O.setScrollTop(m)}catch(G){}};
_.v.setPageOffsetForNavigation=function(O,m){_.iP(this.hostElement,"yt-navigate-set-page-offset",{page:O,offset:m===void 0?0:m})};
_.v.pauseActiveContext=function(){var O=this.contextSwitcher;O.activeContext_&&O.activeContext_.pause()};
_.v.getModuleNameForType=function(O){return O==="watch"?_.V("kevlar_watch_fixie")?"watchFixie":_.V("kevlar_watch_grid")?"watchGrid":"watchFlexy":O==="shorts"||O==="search"?O:"browse"};
_.v.attachPage=function(O){var m,G=!_.V("pc_is_attached_ks")&&(O==null?void 0:(m=O.polymerController)==null?void 0:m.isAttached);if(!O.isAttached&&!G)try{_.ZO(this.hostElement).appendChild(O)}catch(Q){var B;_.ay(new _.j9("Error attaching page element for component",{origin:(B=this.currentPage)==null?void 0:B.is,component:O.is}))}};
_.v.setActivePage=function(O,m){var G=this,B=!1,Q=function(){var H=G.isOnWatch(),M=G.currentPage;if(O)if(O!==G.currentPage){M&&(M.hidden=!0,M.active=!1,M.removeAttribute("role"));G.currentPage=O;var R,x=m!=null?m:_.TL((R=G.data)==null?void 0:R.endpoint);M&&_.iP(G.hostElement,"yt-page-type-changed",{oldPageType:M.is,newPageType:O.is,newPageSubtype:x});_.Km().dispatch(_.xs({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:O.is}));_.Km().dispatch(_.xs({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:x||""}));
O.hidden=!1;G.attachPage(O);O.active=!0;O.setAttribute("role","main");M&&G.setPageOffsetForNavigation(O,0);_.V("kevlar_remove_page_dom_on_switch")&&!H&&M&&_.ZO(G.hostElement).removeChild(M)}else B=!0;else G.handleMissingDestinationPage(M)};
this.shouldRunBrowseTransition(this.currentPage,O)?L0s(this.viewTransitionManager,Q):this.shouldRunLearningJourneyTransition(this.currentPage,O)?lMK(this.viewTransitionManager,Q):Q();return B};
_.v.handleMissingDestinationPage=function(O){if(this.isColdLoadForUnknownPage(O))_.ay(new _.j9("Cold load for unknown page"));else{var m;O=new _.j9("Unable to set active page",O?O.is:"unknown origin",(m=this.data)==null?void 0:m.endpoint);_.oy(O)}};
_.v.isColdLoadForUnknownPage=function(O){return!O&&Oj(this.data)==="unknown"};
_.v.shouldRunBrowseTransition=function(O,m){return this.shouldApplySlideTransition&&(O==null?void 0:O.is)==="ytd-browse"&&(m==null?void 0:m.is)==="ytd-browse"&&O!==m};
_.v.shouldRunLearningJourneyTransition=function(O,m){return this.shouldApplyLearningJourneyTransition&&(O==null?void 0:O.is)==="ytd-browse"&&((m==null?void 0:m.is)==="ytd-watch-learning-journey"||(m==null?void 0:m.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.v.shouldRunWatchNextLoadedTransition=function(O,m){return this.viewTransitionManager&&O.is==="ytd-watch-flexy"&&m};
_.v.updatePageData=function(O){var m=this,G=this.data;this.updatePageDataJobId&&_.ln.cancelJob(this.updatePageDataJobId);this.data=O;return new _.zH(function(B){var Q=function(){O.filler?m.performDataUpdate(O,G):w$u(function(){m.performDataUpdate(O,G)});
var x=_.xA();_.q2(x,"cr")||x.processSignal("cr");B()},H=function(){O&&O.page==="watch"?m.updatePageDataJobId=_.Sh(_.ln,Q):Q()};
if(_.V("kevlar_enable_mss_page_modules_client")&&O){var M=_.KR().resolve(_.dJ),R=m.getModuleNameForType(O.page);(M=Sgh(M,[R]))?M.then(H):H()}else H()})};
_.v.isDownloadsPage=function(O){var m,G;return(O==null?void 0:(m=O.endpoint)==null?void 0:(G=m.browseEndpoint)==null?void 0:G.browseId)==="FEdownloads"};
_.v.setPlayerSyncInterval=function(O){var m;return _.r(function(G){if(G.nextAddress==1)return G.yield(_.KR().resolve(_.q1),2);m=G.yieldResult;m.setUpPositionSyncInterval(O);_.ju(G)})};
_.v.performDataUpdate=function(O,m){_.V("kevlar_early_popup_close")||_.xc(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var G=!O.filler;G&&(_.cd("lps"),_.V("config_age_report_killswitch")||Jas());var B=Oj(O),Q,H=!1;if(_.V("kevlar_remove_page_dom_on_switch")){var M=m&&Oj(m);B===M&&(Q=this.getCurrentPage())}Q||(Q=T3(this.pagePool,B));G&&s6h(this.pagePool.elementPoolPopulator,B);G&&!this.renderLoadingStateJobId&&(H=this.setActivePage(Q));if(Q){M=B==="watch";var R=
B==="shorts",x=B==="learning_journey_watch";_.V("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(Q);if(M||R||x)Q.playerData=O.playerResponse;if(R)if(_.V("web_enable_delay_shorts_sequence_call")){O.reelWatchSequenceResponse&&(O.reelWatchSequenceResponse.entries||O.reelWatchSequenceResponse.prevEntries)&&(Q.reelWatchSequenceResponse=O.reelWatchSequenceResponse);Q.currentEndpoint=O.endpoint;var t;Q.isPreviousPageShorts=!!(m==null?0:(t=m.endpoint)==null?0:t.reelWatchEndpoint);
var W,Z;O.cachedSequenceParams=((W=O.endpoint)==null?void 0:(Z=W.reelWatchEndpoint)==null?void 0:Z.sequenceParams)||O.cachedSequenceParams||(m==null?void 0:m.cachedSequenceParams);var z,J;O.cachedSequenceProvider=((z=O.endpoint)==null?void 0:(J=z.reelWatchEndpoint)==null?void 0:J.sequenceProvider)||O.cachedSequenceProvider||(m==null?void 0:m.cachedSequenceProvider);Q.cachedSequenceParams=O.cachedSequenceParams;Q.cachedSequenceProvider=O.cachedSequenceProvider}else{O.reelWatchSequenceResponse&&(O.reelWatchSequenceResponse.entries||
O.reelWatchSequenceResponse.prevEntries)?Q.reelWatchSequenceResponse=O.reelWatchSequenceResponse:O.cachedReelWatchSequenceResponse?Q.reelWatchSequenceResponse=O.cachedReelWatchSequenceResponse:_.V("web_enable_cached_reel_sequence_fix")&&Q.cachedReelWatchSequenceResponse&&!Q.reelWatchSequenceResponse&&(Q.reelWatchSequenceResponse=Q.cachedReelWatchSequenceResponse);Q.currentEndpoint=O.endpoint;var n;Q.isPreviousPageShorts=!!(m==null?0:(n=m.endpoint)==null?0:n.reelWatchEndpoint);O.cachedReelWatchSequenceResponse=
O.reelWatchSequenceResponse||O.cachedReelWatchSequenceResponse||(m==null?void 0:m.cachedReelWatchSequenceResponse);Q.cachedReelWatchSequenceResponse=O.cachedReelWatchSequenceResponse}t=this.isDownloadsPage(O);W=this.isDownloadsPage(m);t&&!W?this.setPlayerSyncInterval(6E5):!t&&W&&this.setPlayerSyncInterval();_.V("block_all_player_prefetch_requests")||this.preparePrefetchRequest(O,Q,G,M,R,x);aMK(_.KR().resolve(_.c$),m,O);var I;(I=_.KR().resolve(_.v7(_.GF)))==null||_.b9h(I,this.getPersistentPanelSurface(B));
_.Tj(_.KR().resolve(_.pH));_.V("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(Q);G?(G=typeof Q.loadPage,G==="function"?(Q.pageContext=dfh(this.contextSwitcher,Q,Q.data!==O.response),G=function(){Q.loadPage(O.response)},this.shouldApplySlideTransition&&Q.is==="ytd-browse"&&H&&(B==="learning"||this.isDifferentBrowseId(O==null?void 0:O.endpoint,m==null?void 0:m.endpoint))?L0s(this.viewTransitionManager,G):this.shouldRunWatchNextLoadedTransition(Q,H)?oFb(this.viewTransitionManager,
G):G()):_.lT(new _.j9("b/38014653 ",[B,
Q.is,Q.nodeName,G,Q.isAttached,m&&Oj(m),this.hostElement.children.length])),_.cd("pdl")):(Q.hidden=!0,O.response.filler=!0,Q.data=O.response,this.attachPage(Q));_.iP(this.hostElement,"yt-page-data-updated",{pageType:B})}_.uT(_.ln,function(){_.V("logging_avoid_blocking_during_navigation")&&_.rtr().transition("none");var S=vSB(),L=Q;if(O){var C=ZHu(O),P=z$A(O),w;a:{if(O.playerResponse){var d=O.playerResponse,D;if((w=d.auxiliaryUi)==null?0:(D=w.messageRenderers)==null?0:D.upsellDialogRenderer){w=d.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(O.response&&(w=O.response,(d=w.overlay)==null?0:d.upsellDialogRenderer)){w=w.overlay.upsellDialogRenderer;break a}w=void 0}var OS;var rN;D=(OS=O.playerResponse)==null?void 0:(rN=OS.auxiliaryUi)==null?void 0:rN.messageRenderers;OS=(D==null?void 0:D.enforcementMessageViewModel)||(D==null?void 0:D.bkaEnforcementMessageViewModel);OS=(OS==null?void 0:OS.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?OS:void 0;var xO;a:{if(O.response&&(rN=O.response,(xO=rN.overlay)==
null?0:xO.commandWrapperPromoRenderer)){xO=rN.overlay.commandWrapperPromoRenderer;break a}xO=void 0}H5y(S,C,P,w,OS,xO,L)}})};
_.v.preparePrefetchRequest=function(O,m,G,B,Q,H){var M,R,x,t,W,Z,z,J,n,I,S,L,C,P,w;return _.r(function(d){if(d.nextAddress==1)return!G||!(B||Q||H)||_.V("kevlar_disable_background_prefetch")&&_.wi(_.x4f)()===0?d.return():(M=_.$i(m))?d.yield(M.getPlayerPromise(),2):d.return();R=d.yieldResult;x=_.KR().resolve(_.v7(_.ew));if(!x)return d.return();if(Q)return t=_.Q4(_.sE),Gi0(t,(W=O.endpoint)==null?void 0:W.reelWatchEndpoint,m.reelWatchSequenceResponse,R,x),d.return();J=(Z=O.response)==null?void 0:(z=Z.responseContext)==
null?void 0:z.webResponseContextExtensionData;if(!J)return d.return();C=(n=O.response)==null?void 0:(I=n.contents)==null?void 0:(S=I.twoColumnWatchNextResults)==null?void 0:(L=S.autoplay)==null?void 0:L.autoplay;P=_.KR().resolve(_.Rt);w=_.Q4(_.sE);B7u(w,J,R,x,P,C);_.ju(d)})};
_.v.movePlayerToWatch=function(O){var m=this,G,B;return _.r(function(Q){G=T3(m.pagePool,"watch");B=G.getPlayerContainer();O.appendTo(B);_.ju(Q)})};
_.v.movePlayerToShorts=function(O){var m=this,G,B,Q;return _.r(function(H){G=T3(m.pagePool,"shorts");B=G.getPlayerContainer();(Q=O)==null||Q.appendTo(B,void 0,!0);_.ju(H)})};
_.v.getPlayerFromWatch=function(){var O=T3(this.pagePool,"watch");return _.$i(O)};
_.v.getPlayerFromShorts=function(){var O=T3(this.pagePool,"shorts");return _.$i(O)};
_.v.startLoadingWatch=function(){var O=this,m=T3(this.pagePool,"watch");this.renderLoadingStateJobId?(_.ln.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.V("web_watch_transition_enable_start_loading_watch_callsite")?CgB(this.viewTransitionManager,function(){O.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(m,"watch")};
_.v.startLoadingShorts=function(){var O=T3(this.pagePool,"shorts");this.setActivePage(O,"shorts")};
_.v.startLoadingLearningJourney=function(){var O=T3(this.pagePool,"learning_journey_watch");this.setActivePage(O,"learning_journey_watch")};
_.v.getCurrentPage=function(){return this.currentPage};
_.v.getDestinationPageType=function(){return this.destinationPageType};
_.v.getCurrentData=function(){return this.data};
_.v.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.v.isOnShorts=function(){var O;return((O=this.currentPage)==null?void 0:O.is)==="ytd-shorts"};
_.v.isWatchPage=function(O){return!!O&&(O.is==="ytd-watch-flexy"||O.is==="ytd-watch-fixie"||O.is==="ytd-watch-grid")};
_.v.preparePage=function(O,m){var G=this,B=function(){var M=G.pagePool.preparePage(O,G.currentPage,m);M&&G.attachPage(M)},Q=function(M){_.kt(M,m);
_.ay(M)};
if(_.V("kevlar_enable_mss_page_modules_client")){var H=this.getModuleNameForType(O);if(H=Sgh(_.KR().resolve(_.dJ),[H])){H.then(B.bind(this)).catch(Q.bind(this));return}}try{B()}catch(M){Q(M)}};
_.v.lazyPrepareCriticalPages=function(O,m){O=_.TL(m)||O;_.V("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(O).then(this.maybePrepareWatchPage.bind(this,O)):this.maybePrepareWatchPage(O)};
_.v.maybePrepareWatchPage=function(O){O==="watch"||O==="learning_journey_watch"&&_.V("web_watch_learning_journey_disable_lazy_pages")||_.uT(_.ln,this.preparePage.bind(this,"watch"))};
_.v.downloadPageModules=function(O){O=this.getModuleNameForType(O);var m=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);m.delete(O);var G=_.KR().resolve(_.dJ);G.JSC$18565_loadModules(O);return G.JSC$18565_loadModules.apply(G,_.lS(m))};
_.v.renderPageLoadingState=function(O,m){this.preparePage(O,m);var G=T3(this.pagePool,O);G.loadingData&&(G.loadingData.endpoint=m);G.loading=!0;this.setActivePage(G,O);O!=="watch"&&O!=="learning_journey_watch"||_.iP(this.hostElement,"yt-guide-close")};
_.v.prepareForNavigation=function(O,m){var G=this;if(this.currentPage&&this.data){var B=_.TL(m)||O;this.destinationPageType=B;Oj(this.data)==B&&_.iP(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((O==="watch"||O==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.ln.cancelJob(this.renderLoadingStateJobId);_.KR().resolve(_.c$).deactivate(m);_.t8(_.ln,function(){var H=G.viewTransitionManager,M=G.currentPage;
if(H.isLockupToWatchTransitionEnabled&&H.isLockupThumbnailRegistrationEnabled&&M)if(H.registeredLockupThumbnail)H.lockupThumbnailRegisteredFromWatchEndpoint&&_.ay(new _.j9("Lockup thumbnail already registered from watch endpoint."));else{a:{var R=_.b(m,_.GC);if(R==null?0:R.videoId){var x="yt-lockup-view-model ."+_.V_O(R.videoId)+" yt-thumbnail-view-model";M=M.querySelectorAll(x);if(M.length===1){R=M[0];break a}M.length>1?_.ay(new _.j9("Multiple LockupViewModel thumbnails found for videoId: "+R.videoId+
". Selector: "+x)):_.V("web_thumbnail_to_watch_transition_debug")&&_.ay(new _.j9("No LockupViewModel thumbnail found for videoId: "+R.videoId+". Selector: "+x))}R=void 0}R&&(H.registeredLockupThumbnail=R,H.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.QwJ(H,R))}});
var Q=this.data;this.renderLoadingStateJobId=_.t8(_.ln,function(){CgB(G.viewTransitionManager,function(){if(G.data!=Q){var H=T3(G.pagePool,O);G.setActivePage(H)}else G.renderPageLoadingState(O,m);G.renderLoadingStateJobId=0})},150)}};
_.v.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var O=new _.gy(1);this.currentPage.pageDisposeJobs.forEach(function(m){_.uL(O,m)});
this.pageDisposeJobsets.set(this.currentPage,O)}};
_.v.flushPageDisposeJobset=function(O){var m=this.pageDisposeJobsets.get(O);m&&(m.flushJobs(),this.pageDisposeJobsets.delete(O))};
_.v.onYtStopOldPlayer=function(O,m){m=m===void 0?!1:m;var G,B=_.Ue("kevlar_new_stop_old_player_logic_pages");if(_.V("kevlar_check_current_page_on_stop_old_player")&&(B.length===0||this.currentPage&&B.includes(this.currentPage.is)))if(this.data&&(G=Oj(this.data)),Oj(O)===G&&this.currentPage&&Oj(this.currentPage.data)!==G)var Q=_.$i(this.currentPage);else G=Oj(this.data),Q=T3(this.pagePool,G),Q=_.$i(Q);else this.data&&(G=Oj(this.data),Q=T3(this.pagePool,G),Q=_.$i(Q));if(Q)if(O=Oj(O),B=T3(this.pagePool,
O),B=_.$i(B),Q==B)m&&!_.V("kevlar_disable_preemptive_player_reset")&&Q.resetForNewPlayback();else if(m=G==="watch"&&O!=="watch",!m||O==="shorts"||_.nS8()&&!tYs(this.data)&&O!=="yts-products"&&O!="mini_app"&&O!="playables")G=_.KR().resolve(_.c$),m&&G.isMiniplayerActive()&&G.pipController.getWindow()||Q.stop()};
_.v.isDifferentBrowseId=function(O,m){O=_.b(O,_.gH);m=_.b(m,_.gH);return(O==null?void 0:O.browseId)!==(m==null?void 0:m.browseId)};
_.v.getPersistentPanelSurface=function(O){switch(O){case "watch":return"WATCH";default:return"APP"}};
_.vr.Object.defineProperties(lr,{template:{configurable:!0,enumerable:!0,get:function(){return HMB()}}});
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],lr.prototype,"ytActionHandlerBehavior",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-page-manager"})],lr);_.y(lr,"ytd-page-manager",function(){return HMB()},{mode:_.ZB("kevlar_poly_si_batch_j081")?1:2});var v5J;var aV=function(){var O=_.u.apply(this,arguments)||this;O.useListItemStyles=_.V("web_list_item_style_for_menu_items");O.systemIcons=_.V("kevlar_system_icons");return O};
_.X(aV,_.u);_.v=aV.prototype;_.v.ready=function(){this.hostElement.addEventListener("tap",_.f7(this,this.onEndpointTapExtra))};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.v.onFocus=function(){var O;(O=_.ZO(this.hostElement).querySelector("tp-yt-paper-item"))==null||O.focus()};
_.v.onEndpointTapExtra=function(O){_.iP(this.hostElement,"iron-activate");var m=this.data.navigationEndpoint;m&&_.b(m,_.NeO)&&(O.stopPropagation(),_.Wd(this.hostElement,[m],this.hostElement))};
_.v.computeIcon=function(O){return O&&O.iconType?_.bK(O.iconType):""};
_.v.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.v.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.v.forceUpdateStylesOnLegacyBrowsers=function(){_.V("kevlar_legacy_browsers")&&_.n7(this.hostElement)};
aV.prototype.forceUpdateStylesOnLegacyBrowsers=aV.prototype.forceUpdateStylesOnLegacyBrowsers;aV.prototype.onFocus=aV.prototype.onFocus;_.c([_.h(_.fQ),_.Y("design:type",Object)],aV.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(_.GYx.YtConditionalRendererBehavior),_.Y("design:type",Object)],aV.prototype,"ytConditionalRendererBehavior",void 0);_.c([_.h(_.yZ.YtEndpointBehavior),_.Y("design:type",Object)],aV.prototype,"ytEndpointBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],aV.prototype,"data",void 0);_.c([_.g({computed:"computeIcon(data.icon)",value:""}),_.Y("design:type",String)],aV.prototype,"icon",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],aV.prototype,"useIcons",void 0);_.c([_.g({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],aV.prototype,"hasSeparator",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],aV.prototype,"useListItemStyles",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],aV.prototype,"systemIcons",void 0);_.c([_.hG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aV.prototype,"onFocus",null);_.c([_.Tw("useIcons","hasSeparator"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],aV.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.y(aV,"ytd-menu-navigation-item-renderer",function(){if(v5J===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);v5J=O}O=v5J;return O},{mode:1});var KLb;var $Rs=_.Qg(_.Xm("DOWNLOAD",{},"Download")),MXA=_.Qg(_.Xm("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),roo=_.Qg(_.Xm("RETRY",{},"Retry")),Rkb=_.Qg(_.Xm("PAUSE_DOWNLOADING",{},"Pause downloading")),iMy=_.Qg(_.Xm("RESUME_DOWNLOAD",{},"Resume download")),kb=function(){var O=_.u.apply(this,arguments)||this;O.primaryText=$Rs;O.primaryIconType="OFFLINE_DOWNLOAD";O.hasSecondaryContent=!1;O.hasSeparator=!1;O.transferState="TRANSFER_STATE_UNKNOWN";O.isVideoDeletedByUser=!1;O.isHidden=!1;O.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return O};
_.X(kb,_.u);_.v=kb.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.v.onFocus=function(){this.primaryEntry.focus()};
_.v.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.v.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.v.getRemoveAction=function(){return"ACTION_REMOVE"};
_.v.sendOfflineAction=function(O){var m=this.data.serviceEndpoint;if(m){var G=_.b(m,_.nJ);G&&O&&(G.action=O);this.ytComponentBehavior.resolveCommand(m)}};
_.v.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=$Rs,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=$Rs;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=roo;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=MXA;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=iMy;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=MXA;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
Rkb;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=MXA;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=MXA;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=$Rs,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.v.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.v.isSecondaryEntryHidden=function(O,m){return O?!0:!m};
_.v.computeHasSeparator=function(){var O;return!((O=this.data)==null||!O.hasSeparator)};
kb.prototype.showHideButton=kb.prototype.showHideButton;kb.prototype.onTransferStateChange=kb.prototype.onTransferStateChange;kb.prototype.onFocus=kb.prototype.onFocus;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],kb.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],kb.prototype,"ytComponentBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],kb.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],kb.prototype,"primaryText",void 0);_.c([_.g(),_.Y("design:type",String)],kb.prototype,"primaryIconType",void 0);_.c([_.g(),_.Y("design:type",String)],kb.prototype,"primaryAction",void 0);_.c([_.g(),_.Y("design:type",Object)],kb.prototype,"secondaryText",void 0);_.c([_.g(),_.Y("design:type",String)],kb.prototype,"secondaryIconType",void 0);
_.c([_.g(),_.Y("design:type",String)],kb.prototype,"secondaryAction",void 0);_.c([_.g(),_.Y("design:type",Object)],kb.prototype,"hasSecondaryContent",void 0);_.c([_.g({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Object)],kb.prototype,"hasSeparator",void 0);_.c([_.g({selector:_.eH,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",String)],kb.prototype,"transferState",void 0);
_.c([_.g({selector:_.fUY,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",Object)],kb.prototype,"isVideoDeletedByUser",void 0);_.c([_.g(),_.Y("design:type",Object)],kb.prototype,"isHidden",void 0);_.c([_.g({selector:_.Zis,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.Y("design:type",Object)],kb.prototype,"offlineabilityState",void 0);_.c([_.uc("#primary-entry"),_.Y("design:type",Object)],kb.prototype,"primaryEntry",void 0);
_.c([_.hG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kb.prototype,"onFocus",null);_.c([_.Si("transferState","isVideoDeletedByUser"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kb.prototype,"onTransferStateChange",null);_.c([_.Si("offlineabilityState"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],kb.prototype,"showHideButton",null);
_.y(kb,"ytd-menu-service-item-download-renderer",function(){if(KLb===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);KLb=O}O=KLb;return O},{mode:1});var xRA;var yL=function(){var O=_.u.apply(this,arguments)||this;O.useIcons=!1;O.systemIcons=_.V("kevlar_system_icons");O.useListItemStyles=_.V("web_list_item_style_for_menu_items");return O};
_.X(yL,_.u);_.v=yL.prototype;_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.v.onFocus=function(){var O;(O=_.ZO(this.hostElement).querySelector("tp-yt-paper-item"))==null||O.focus()};
_.v.onTap=function(){_.UB(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var O=this.data.serviceEndpoint,m=this.data.command;if(O){var G,B=(G=this.data)==null?void 0:G.trackingParams;G=!!_.b(O,_.pzC);B&&G&&_.Kf().dispatch(_.xs({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:B}}));this.ytComponentBehavior.resolveCommand(O)||_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}})}m&&(this.ytComponentBehavior.resolveCommand(m)||_.Wd(this.hostElement,
[m],this.hostElement))};
_.v.computeIcon=function(O){return O&&O.iconType?_.bK(O.iconType):""};
_.v.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.v.computeHasSeparator=function(){var O;return!((O=this.data)==null||!O.hasSeparator)};
_.v.forceUpdateStylesOnLegacyBrowsers=function(){_.V("kevlar_legacy_browsers")&&_.n7(this.hostElement)};
_.v.computeIsSelected=function(){var O;return!((O=this.data)==null||!O.isSelected)};
yL.prototype.forceUpdateStylesOnLegacyBrowsers=yL.prototype.forceUpdateStylesOnLegacyBrowsers;yL.prototype.onTap=yL.prototype.onTap;yL.prototype.onFocus=yL.prototype.onFocus;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],yL.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],yL.prototype,"ytComponentBehavior",void 0);
_.c([_.h(_.GYx.YtConditionalRendererBehavior),_.Y("design:type",Object)],yL.prototype,"ytConditionalRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],yL.prototype,"data",void 0);_.c([_.g({computed:"computeIcon(data.icon)",value:""}),_.Y("design:type",String)],yL.prototype,"icon",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],yL.prototype,"useIcons",void 0);
_.c([_.g({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],yL.prototype,"hasSeparator",void 0);_.c([_.g({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],yL.prototype,"isSelected",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],yL.prototype,"systemIcons",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],yL.prototype,"useListItemStyles",void 0);
_.c([_.hG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yL.prototype,"onFocus",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],yL.prototype,"onTap",null);_.c([_.Tw("useIcons","hasSeparator"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],yL.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.y(yL,"ytd-menu-service-item-renderer",function(){if(xRA===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);xRA=O}O=xRA;return O},{mode:2});var qAB;var cj=function(){return _.u.apply(this,arguments)||this};
_.X(cj,_.u);_.v=cj.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.onDataChanged=function(){var O=this;_.QA(this,function(){O.postbox.openDialog();O.focus();_.iP(O.hostElement,"yt-refit")})};
_.v.focus=function(){this.postbox.focus()};
_.v.closePopup=function(){_.xc(this.hostElement,"yt-close-popup-action")};
_.v.onYtCommentboxDismiss=function(){this.closePopup()};
cj.prototype.onYtCommentboxDismiss=cj.prototype.onYtCommentboxDismiss;cj.prototype.onDataChanged=cj.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],cj.prototype,"data",void 0);_.c([_.g({value:function(){return _.Xm("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],cj.prototype,"closeButtonAriaLabel",void 0);_.c([_.uc("#postbox"),_.Y("design:type",Object)],cj.prototype,"postbox",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cj.prototype,"onDataChanged",null);_.c([_.hG("yt-commentbox-dismiss"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cj.prototype,"onYtCommentboxDismiss",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],cj);
_.y(cj,"ytd-backstage-post-dialog-popup-renderer",function(){if(qAB!==void 0)return qAB;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return qAB=O},{mode:1});var URb;var Yb=function(){return _.u.apply(this,arguments)||this};
_.X(Yb,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Yb.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],Yb);
_.y(Yb,"ytd-sender-id-section-renderer",function(){if(URb!==void 0)return URb;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
return URb=O},{mode:1});var tXK;var WLo;var ZMr;var dn=function(){return _.u.apply(this,arguments)||this};
_.X(dn,_.u);dn.prototype.closePopup=function(){_.xc(this.hostElement,"yt-close-popup-action")};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],dn.prototype,"data",void 0);_.c([_.DO({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],dn);
_.y(dn,"yt-community-post-section-renderer",function(){if(ZMr===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;WLo===void 0&&(WLo=document.createElement("template"));var B=WLo;G.call(m,B.content.cloneNode(!0),O.content.firstChild);ZMr=O}O=ZMr;return O},{mode:2});var zkK;var Jox;var VXh;var bMo;var n5r;var XwK;var wn=function(){return _.u.apply(this,arguments)||this};
_.X(wn,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],wn.prototype,"data",void 0);_.c([_.DO({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],wn);
_.y(wn,"yt-share-start-time-with-context-renderer",function(){if(XwK===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;n5r===void 0&&(n5r=document.createElement("template"));var B=n5r;G.call(m,B.content.cloneNode(!0),O.content.firstChild);XwK=O}O=XwK;return O},{mode:2});var eJ=function(){return _.u.apply(this,arguments)||this};
_.X(eJ,_.u);eJ.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],eJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],eJ.prototype,"data",void 0);_.c([_.DO({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],eJ);
_.y(eJ,"yt-share-panel-title-v15-renderer",function(){if(bMo===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;VXh===void 0&&(VXh=document.createElement("template"));var B=VXh;G.call(m,B.content.cloneNode(!0),O.content.firstChild);bMo=O}O=bMo;return O},{mode:2});var DP=function(){return _.u.apply(this,arguments)||this};
_.X(DP,_.u);DP.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],DP.prototype,"data",void 0);_.c([_.DO({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],DP);
_.y(DP,"yt-share-panel-header-renderer",function(){if(Jox===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;zkK===void 0&&(zkK=document.createElement("template"));var B=zkK;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Jox=O}O=Jox;return O},{mode:2});var f83;var hkh;var sy=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-open-popup-action":"onOpen"};return O};
_.X(sy,_.u);_.v=sy.prototype;_.v.attached=function(){this.onOpen()};
_.v.updateTimeSecs=function(O){this.currentTimeSecs=O};
_.v.computeTimeString=function(O){O=O.toString();var m=Math.floor(Number(O)/3600),G=Math.floor(Number(O)%3600%60);return(m>0?m+":":"")+_.Ub(Math.floor(Number(O)%3600/60),m>0?2:1)+":"+_.Ub(G,2)};
_.v.computeTimeStringA11y=function(O){return _.pDf({seconds:O})};
_.v.getTimeParam=function(){return lwb(this.timeString)};
_.v.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var O={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},m;_.lR(_.uK(),(m=this.data)==null?void 0:m.trackingParams,O,7)};
_.v.onChangeStartAtTimestamp=function(){for(var O=this.startAtTimestamp.value.split(":"),m=0,G=1,B=O.length-1;B>=0;B--)m+=Number(O[B])*G,G*=60;this.updateTimeSecs(m);this.setTimestamp()};
_.v.onOpen=function(){var O=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var m=_.M1();m?m.getPlayerPromise().then(function(G){G=G.getCurrentTime();O.updateTimeSecs(G)}):Aah()&&this.updateTimeSecs(Aah())};
_.v.setTimestamp=function(){var O=Math.floor(this.currentTimeSecs);_.xc(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!O,timestamp:O||""}])};
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],sy.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],sy.prototype,"data",void 0);_.c([_.g({value:!1,notify:!0}),_.Y("design:type",Boolean)],sy.prototype,"isStartAtChecked",void 0);_.c([_.g(),_.Y("design:type",Number)],sy.prototype,"currentTimeSecs",void 0);
_.c([_.g({computed:"computeTimeString(currentTimeSecs)"}),_.Y("design:type",String)],sy.prototype,"timeString",void 0);_.c([_.g({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.Y("design:type",String)],sy.prototype,"timeStringA11y",void 0);_.c([_.uc("#start-at-timestamp"),_.Y("design:type",Object)],sy.prototype,"startAtTimestamp",void 0);_.c([_.DO({is:"yt-start-at-renderer",disableElementRegistration:!0})],sy);
_.y(sy,"yt-start-at-renderer",function(){if(hkh===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;f83===void 0&&(f83=document.createElement("template"));var B=f83;G.call(m,B.content.cloneNode(!0),O.content.firstChild);hkh=O}O=hkh;return O},{mode:2});var TM3;var g5r;var uhr=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"]]),jIr=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"]]),I8r=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var pw3={};pw3.YtBindingExpressionsBehavior={identity:_.LN,msg:function(O,m){m=m===void 0?{}:m;return _.Xm(O,m,O)},
msgPlural:function(O,m){return _.fr(O,m)},
getMusicIconFromType:function(O){if(_.V("music_web_enable_icon_wil"))O=_.bK(O);else if(jIr.has(O))O="yt-sys-icons:"+jIr.get(O);else{var m=uhr.get(O)||_.bK(O).split(":")[1];m=_.vlN(m);var G;O=((G=I8r.get(O))!=null?G:"yt-sys-icons:")+m}return O}};var SAx;var E5K;var LLh;var C9y=document.head,o59=C9y.appendChild,l8B;if(LLh===void 0){var a8h=document.createElement("template");_.f(a8h,'\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>');LLh=a8h}l8B=LLh;o59.call(C9y,l8B.content);var NH=function(){var O=_.u.apply(this,arguments)||this;O.screenLayer=7;return O};
_.X(NH,_.u);NH.prototype.getScreenLayer=function(){return this.screenLayer};
NH.prototype.onTap=function(O){O&&O.detail&&(O.detail.x||O.detail.y)&&_.ZO(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.tK(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(O=this.getScreenLayer(),_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:O}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.vr.Object.defineProperties(NH.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()}}});
NH.prototype.onTap=NH.prototype.onTap;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],NH.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],NH.prototype,"data",void 0);_.c([_.T("data.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],NH.prototype,"title",null);
_.c([_.T("data.serviceName"),_.Y("design:type",String),_.Y("design:paramtypes",[])],NH.prototype,"icon",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],NH.prototype,"onTap",null);_.c([_.DO({is:"yt-share-target-renderer",disableElementRegistration:!0})],NH);
_.y(NH,"yt-share-target-renderer",function(){if(E5K===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;SAx===void 0&&(SAx=document.createElement("template"));var B=SAx;G.call(m,B.content.cloneNode(!0),O.content.firstChild);E5K=O}O=E5K;return O},{mode:2});var k4h;var yoB;var Pj=function(){var O=_.u.apply(this,arguments)||this;O.SHARE_TARGET_WIDTH=70;O.SHARE_TARGET_MARGIN_RIGHT=8;O.PAGE_SCROLL_SPEED=9;O.actionMap={"yt-share-panel-reset-action":"onReset_"};return O};
_.X(Pj,_.u);_.v=Pj.prototype;_.v.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.v.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.ZO(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.ZO(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.v.onReset_=function(){if(_.ZO(this.hostElement).querySelector("#list")){var O=_.ZO(this.hostElement).querySelector("#list");var m=_.ZO(this.hostElement).querySelector("#list");var G=m.offsetLeft,B=m.offsetParent;B||_.Eh_(m)!="fixed"||(B=_.Y6(m).documentElement);if(B){if(_.qQ&&!_.tw(58)){var Q=_.cs8(B);G+=Q.left}else Number(_.Ol6)>=8&&!(Number(_.Ol6)>=9)&&(Q=_.cs8(B),G-=Q.left);m=_.ku2(B)?B.clientWidth-(G+m.offsetWidth):G}else m=G;H4B(O,m);this.updateScrollButtons_()}};
_.v.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.v.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.v.onScrollWheel_=function(O){O.stopPropagation();O.preventDefault();var m=QDA(_.ZO(this.hostElement).querySelector("#list"));O=Math.abs(O.deltaX)>Math.abs(O.deltaY)?O.deltaX:O.deltaY;H4B(_.ZO(this.hostElement).querySelector("#list"),m+O);this.updateScrollButtons_()};
_.v.smoothScrollByOnePage_=function(O){var m=_.ZO(this.hostElement).querySelector("#list"),G=(Math.floor(m.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,B=QDA(m),Q=G*(O?1:-1),H=this.PAGE_SCROLL_SPEED,M=this.updateScrollButtons_.bind(this),R=0,x;(function W(){R+=H;x=R/G*2;H4B(m,B+Q*(x<1?x*x:-x*x+4*x-2));R<G?window.requestAnimationFrame(W):M()})()};
_.v.updateScrollButtons_=function(){var O=QDA(_.ZO(this.hostElement).querySelector("#list")),m=_.ZO(this.hostElement).querySelector("#list").scrollWidth-_.ZO(this.hostElement).querySelector("#list").clientWidth;_.ZO(this.hostElement).querySelector("#scroll-button-back").hidden=O<=0;_.ZO(this.hostElement).querySelector("#scroll-button-forward").hidden=O>=m};
Pj.prototype.onScrollWheel_=Pj.prototype.onScrollWheel_;Pj.prototype.onDataChanged_=Pj.prototype.onDataChanged_;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Pj.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(pw3.YtBindingExpressionsBehavior),_.Y("design:type",Object)],Pj.prototype,"ytBindingExpressionsBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Pj.prototype,"data",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pj.prototype,"onDataChanged_",null);_.c([_.hG("wheel"),_.Y("design:type",Function),_.Y("design:paramtypes",[WheelEvent]),_.Y("design:returntype")],Pj.prototype,"onScrollWheel_",null);
_.c([_.DO({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Pj);
_.y(Pj,"yt-third-party-share-target-section-renderer",function(){if(yoB===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;k4h===void 0&&(k4h=document.createElement("template"));var B=k4h;G.call(m,B.content.cloneNode(!0),O.content.firstChild);yoB=O}O=yoB;return O},{mode:2});var Fj=function(){return _.u.apply(this,arguments)||this};
_.X(Fj,_.u);Fj.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Fj.prototype,"data",void 0);_.c([_.DO({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Fj);
_.y(Fj,"yt-third-party-network-section-renderer",function(){if(g5r===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;TM3===void 0&&(TM3=document.createElement("template"));var B=TM3;G.call(m,B.content.cloneNode(!0),O.content.firstChild);g5r=O}O=g5r;return O},{mode:2});_.qi(_.a(function(O){return _.q("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.q("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.q(_.u5,{data:function(){return O.data().firstPartyItems}},{listItemViewModel:_.MA})))},"qh"),"first-party-network-section-view-model",{props:{data:_.VZ}});var cob=(0,_.t0A)(_.Gz.share,{parentClickTrackingParamsSelector:function(O){return O.parentClickTrackingParams}});var YAx=_.FY(["data:image/svg+xml;charset=UTF-8;base64,",""]),Aj=function(){var O=_.u.apply(this,arguments)||this;O.screenLayer=7;O.qrCodeEnabled=_.V("web_enable_sharing_qr_code");O.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return O};
_.X(Aj,_.u);_.v=Aj.prototype;_.v.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"}}}};
_.v.attached=function(){this.JSC$20084_scroller&&(this.JSC$20084_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20084_scroller.attached&&typeof this.JSC$20084_scroller.attached==="function"&&this.JSC$20084_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.v.onDataChanged=function(){var O=this,m;(m=this.data)!=null&&m.contents&&(this.hostElement.setAttribute("links-only","true"),_.VM(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.QA(this,function(){_.iP(O.hostElement,"yt-refit");O.focusSharePanelHeader()}))};
_.v.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.v.handleSetTimestamp=function(O){var m=this.shortUrl();O.isSet&&(m=_.mi(m,"t",O.timestamp));this.maybeRenderQrCode(m)};
_.v.shortUrl=function(){var O,m=(O=this.data)==null?void 0:O.contents;if(m)for(O=0;O<m.length;O++){var G=void 0,B=void 0;if((G=m[O])==null?0:(B=G.thirdPartyNetworkSection)==null?0:B.copyLinkContainer){var Q=B=G=void 0;return(Q=_.b((G=m[O])==null?void 0:(B=G.thirdPartyNetworkSection)==null?void 0:B.copyLinkContainer,GR3))==null?void 0:Q.shortUrl}}};
_.v.maybeRenderQrCode=function(O){var m=this,G,B,Q,H,M,R,x,t,W;return _.r(function(Z){if(Z.nextAddress==1){G=_.ZO(m.hostElement).querySelector("#qr-code");if(!m.qrCodeEnabled||!O)return G&&(G.style.display="none"),Z.return();B=_.Z8p(_.KR().resolve(_.nm),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});Q=document.createElement("div");return typeof B==="function"?(B(Q),Z.jumpTo(2)):Z.yield(B,3)}Z.nextAddress!=2&&(H=Z.yieldResult,H(Q));x=(M=Q)==null?void 0:(R=M.firstChild)==null?void 0:R.firstChild;
t=document.createElement("img");W=_.Fa6(YAx,btoa(x.outerHTML));t.onload=function(){var z={canvas:G,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:t},J=new XCA;juA(J,O);IO9(J,!1,pCu(J));var n=J.modules,I=Object.assign({},ehJ,z);n=structuredClone(n);z=n.length;var S,L=(S=I.canvas)!=null?S:document.createElement("canvas");S=I.cellSize;J=I.logo;var C,P=(C=I.logoSize)!=null?C:Math.floor(z/4);z%2!==P%2&&P++;var w=I.logoPadding,d=I.backgroundColor;C=z*S;var D=
I.width,OS=0;D&&(OS=I.padding,OS=Math.ceil(OS*C/(D-OS*2)),L.style.width=D+"px",L.style.height=D+"px");L.width!==C+OS*2&&(L.width=C+OS*2);L.height!==C+OS*2&&(L.height=C+OS*2);C=L.getContext("2d");I.autoClear&&C.clearRect(0,0,L.width,L.height);C.fillStyle=d;C.beginPath();C.roundRect(0,0,L.width,L.height,I.borderRadius);C.fill();C.save();C.translate(OS,OS);if(J)for(L=Math.floor(z-P)/2-w,w=Math.floor(z+P)/2+w,d=L;d<w;d++)for(D=L;D<w;D++)n[d][D]=!1;for(L=0;L<z;L++)for(w=0;w<z;w++)(L<7&&w<7||L<7&&w>=z-
7||L>=z-7&&w<7)&&(n[L][w]=!1);var rN;L=(rN=I.markerColor)!=null?rN:I.color;EZr(C,0,0,S,L);EZr(C,S*(z-7),0,S,L);EZr(C,0,S*(z-7),S,L);switch(I.cellStyle){case 0:rN=n;n=rN.length;L=I.cellSize;C.beginPath();for(w=0;w<n;w++)for(d=0;d<n;d++)rN[w][d]&&C.rect(w*L,d*L,L,L);C.fillStyle=I.color;C.fill();break;case 1:rN=n;n=rN.length;L=I.cellSize;w=L*I.relativeCircleSize;C.fillStyle=I.color;C.beginPath();for(I=0;I<n;I++)for(d=0;d<n;d++)rN[I][d]&&(C.beginPath(),C.ellipse((I+.5)*L,(d+.5)*L,w/2,w/2,0,0,2*Math.PI),
C.fill());C.fill();break;case 2:rN=n;n=rN.length;L=I.cellSize;C.fillStyle=I.color;I=[[1,1],[-1,1],[-1,-1],[1,-1]];C.beginPath();for(w=0;w<n;w++)for(d=0;d<n;d++)if(rN[w][d])C.roundRect(w*L,d*L,L,L,L/2),w+1<n&&rN[w+1][d]&&C.rect(w*L+L/2,d*L,L,L),d+1<n&&rN[w][d+1]&&C.rect(w*L,d*L+L/2,L,L);else{D=w*L+L/2;OS=d*L+L/2;for(var xO=0;xO<4;xO++){var XI=_.K(I[xO]),Vf=XI.next().value;XI=XI.next().value;w+Vf>=0&&w+Vf<n&&d+XI>=0&&d+XI<n&&rN[w+Vf][d]&&rN[w][d+XI]&&rN[w+Vf][d+XI]&&(Vf=xO*Math.PI/2,XI=L/2,C.moveTo(D+
XI*Math.cos(Vf),OS+XI*Math.sin(Vf)),C.arc(D,OS,L/2,Vf,Vf+Math.PI/2,!1),C.lineTo(D+XI*(Math.cos(Vf)-Math.sin(Vf)),OS+XI*(Math.cos(Vf)+Math.sin(Vf))),C.lineTo(D+XI*Math.cos(Vf),OS+XI*Math.sin(Vf)))}}C.fill()}J&&C.drawImage(J,(z-P)*S/2,(z-P)*S/2,P*S,P*S);C.restore();G.style.removeProperty("display")};
t.src=_.an(W);_.ju(Z)})};
_.v.hasCommunityPostRenderer=function(){var O,m,G,B;return!!((O=this.data)==null?0:(m=O.header)==null?0:(G=m.sharePanelHeaderRenderer)==null?0:(B=G.communityPost)==null?0:B.communityPostSectionRenderer)};
_.v.onTapClose=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.v.getScreenLayer=function(){return this.screenLayer};
_.v.logSharePanelPage=function(){if(!_.V("enable_share_panel_navigation_logging_fix_on_web")){var O;if((O=this.data)!=null&&O.trackingParams){O=this.data.trackingParams;var m=this.parentClickTrackingParams;m=m?_.Ez(m):void 0;var G=_.uK();_.E1(G,21760,m,{layer:7,parentLayer:0});G.graftServerVe(O,void 0,7);_.Kf().dispatch(_.xs({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Aj.prototype.onDataChanged=Aj.prototype.onDataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],Aj.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Aj.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],Aj.prototype,"data",void 0);_.c([_.g({value:_.Xm("SBOX_INAPPROPRIATE_CANCEL")}),_.Y("design:type",String)],Aj.prototype,"closeButtonAriaLabel",void 0);_.c([_.uc("yt-share-panel-header-renderer"),_.Y("design:type",HTMLElement)],Aj.prototype,"header",void 0);_.c([_.g({selector:cob.parentClickTrackingParamsSelector}),_.Y("design:type",String)],Aj.prototype,"parentClickTrackingParams",void 0);_.c([_.g(),_.Y("design:type",Object)],Aj.prototype,"qrCodeEnabled",void 0);
_.c([_.uc("#scroller"),_.Y("design:type",Object)],Aj.prototype,"JSC$20084_scroller",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Aj.prototype,"onDataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Aj);
_.y(Aj,"ytd-unified-share-panel-renderer",function(){if(tXK!==void 0)return tXK;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return tXK=O},{mode:1});var dRr;var OW=function(){var O=_.u.apply(this,arguments)||this;O.modernModal=!0;return O};
_.X(OW,_.u);OW.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
OW.prototype.computeShouldHideOldButtons=function(){var O;return!((O=this.data)==null?0:O.button)};
_.vr.Object.defineProperties(OW.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var O,m;return(O=this.data)==null?void 0:(m=O.button)==null?void 0:m.buttonRenderer}}});
_.c([_.g(),_.Y("design:type",Object)],OW.prototype,"data",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],OW.prototype,"ytEventForwardingBehavior",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],OW.prototype,"modernModal",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],OW.prototype,"buttonRendererData",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],OW);
_.y(OW,"ytd-modal-with-title-and-button-renderer",function(){if(dRr!==void 0)return dRr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return dRr=O},{mode:1});var wwA;var mY=function(){return _.u.apply(this,arguments)||this};
_.X(mY,_.u);mY.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("page-changed",this.page))};
mY.prototype.pageChangedForBinding=mY.prototype.pageChangedForBinding;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mY.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],mY.prototype,"page",void 0);_.c([_.Tw("page"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mY.prototype,"pageChangedForBinding",null);
_.c([_.l({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],mY);
_.y(mY,"ytd-account-item-section-header-renderer",function(){if(wwA!==void 0)return wwA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return wwA=O},{mode:1});var ekB;var G1=function(){return _.u.apply(this,arguments)||this};
_.X(G1,_.u);G1.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"}}}};
G1.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Ww),_.Y("design:type",Object)],G1.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],G1.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!1}),_.Y("design:type",Function)],G1.prototype,"onAccountItemTap",void 0);
_.c([_.l({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],G1);
_.y(G1,"ytd-account-item-section-renderer",function(){if(ekB!==void 0)return ekB;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ekB=O},{mode:1});var DRb;var sI0;var BS=function(){return _.u.apply(this,arguments)||this};
_.X(BS,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],BS.prototype,"data",void 0);_.c([_.l({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],BS);
_.y(BS,"ytd-accounts-dialog-header-renderer",function(){if(sI0!==void 0)return sI0;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return sI0=O},{mode:1});var NMK;var Q_=function(){return _.u.apply(this,arguments)||this};
_.X(Q_,_.u);Q_.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Q_.prototype,"data",void 0);_.c([_.l({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Q_);
_.y(Q_,"ytd-google-account-header-renderer",function(){if(NMK!==void 0)return NMK;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return NMK=O},{mode:1});var HS=function(){return _.u.apply(this,arguments)||this};
_.X(HS,_.u);HS.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"}}}};
HS.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("page-changed",this.page))};
HS.prototype.pageChangedForBinding=HS.prototype.pageChangedForBinding;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],HS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],HS.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],HS.prototype,"page",void 0);
_.c([_.Tw("page"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HS.prototype,"pageChangedForBinding",null);_.c([_.l({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],HS);
_.WE()(HS,"ytd-account-section-list-renderer",function(){if(DRb===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);DRb=O}O=DRb;return O},{allowedProps:["data"],
mode:1});var P9K;var vS=function(){var O=_.u.apply(this,arguments)||this;O.enableHandlesAccountMenuSwitcher=_.V("enable_handles_account_menu_switcher");return O};
_.X(vS,_.u);vS.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
vS.prototype.dataChanged=vS.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],vS.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],vS.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.c([_.uc("#avatar"),_.Y("design:type",Object)],vS.prototype,"avatar",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vS.prototype,"dataChanged",null);_.c([_.l({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],vS);
_.WE()(vS,"ytd-active-account-header-renderer",function(){if(P9K===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);P9K=O}O=P9K;return O},{allowedProps:["data"],
mode:1});var FLK;var AoB;var K2=function(){return _.u.apply(this,arguments)||this};
_.X(K2,_.u);K2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
K2.prototype.onBackTap=function(){_.iP(this.hostElement,"yt-menu-back-tapped")};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],K2.prototype,"data",void 0);_.c([_.l({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],K2);
_.WE()(K2,"ytd-simple-menu-header-renderer",function(){if(AoB===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);AoB=O}O=AoB;return O},{allowedProps:["data"],
mode:2});var OaB;var $y=function(){return _.u.apply(this,arguments)||this};
_.X($y,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$y.prototype,"data",void 0);_.c([_.l({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],$y);
_.y($y,"ytd-comment-video-thumbnail-header-renderer",function(){if(OaB!==void 0)return OaB;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return OaB=O},{mode:1});var mWr;var ML=function(){return _.u.apply(this,arguments)||this};
_.X(ML,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ML.prototype,"data",void 0);_.c([_.l({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],ML);
_.y(ML,"ytd-abuse-type-selector-renderer",function(){if(mWr!==void 0)return mWr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return mWr=O},{mode:1});var GQu;var B4K=(0,_.t0A)(_.Gz.reportChannelAbuse,{isVideoIdSelectedSelector:function(O,m){return m in O.selectedVideoIds},
additionalContextSelector:function(O){return O.additionalContext},
impersonatedChannelUrlSelector:function(O){return O.impersonatedChannelUrl},
reportChannelAbuseSelector:function(O){return O}});var rG=function(){return _.u.apply(this,arguments)||this};
_.X(rG,_.u);rG.prototype.attached=function(){var O=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){O.additionalContextInput.focusTextInput()})};
rG.prototype.handleAdditionalContextChanged=function(){var O=this;_.GS(this,"ytd-report-channel-additional-context-update",function(){O.ytdReduxBehavior.dispatch(_.xs({type:"ADDITIONAL_CONTEXT_UPDATED",payload:O.additionalContext}))},300)};
rG.prototype.updateAdditionalContextFromBinding=function(O){this.additionalContext=O.detail.value};
rG.prototype.handleAdditionalContextChanged=rG.prototype.handleAdditionalContextChanged;_.c([_.h(_.MK),_.Y("design:type",Object)],rG.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",String)],rG.prototype,"additionalContext",void 0);_.c([_.g({selector:B4K.additionalContextSelector}),_.Y("design:type",String)],rG.prototype,"additionalContextRedux",void 0);_.c([_.g(),_.Y("design:type",Object)],rG.prototype,"data",void 0);
_.c([_.uc("yt-text-input-form-field-renderer"),_.Y("design:type",Object)],rG.prototype,"additionalContextInput",void 0);_.c([_.Tw("additionalContext"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rG.prototype,"handleAdditionalContextChanged",null);_.c([_.l({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],rG);
_.y(rG,"ytd-report-channel-modal-additional-context-renderer",function(){if(GQu!==void 0)return GQu;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return GQu=O},{mode:1});var QAK;var R1=function(){var O=_.u.apply(this,arguments)||this;O.nextButtonDisabled=null;O.submitEndpoint=null;O.navigationEndpoint=null;O.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return O};
_.X(R1,_.u);_.v=R1.prototype;_.v.computeNextButtonData=function(O,m,G){var B={};m&&(B.navigationEndpoint=m);G&&(B.serviceEndpoint=G);O&&O.buttonRenderer&&_.aM.extend(B,O.buttonRenderer);return B};
_.v.handleReportChannelModalDisableNextButtonAction=function(O){this.setNextButtonIsDisabled(O)};
_.v.handleReportFormEndpointUpdateAction=function(O){this.setNextButtonIsDisabled(!!O.disableSubmitButton);this.resetEndpointData();O.submitEndpoint?this.submitEndpoint=O.submitEndpoint:O.submitNavigationEndpoint&&(this.navigationEndpoint=O.submitNavigationEndpoint)};
_.v.handleSignalActionSubmitForm=function(){var O,m=Object.keys(((O=this.reportChannelAbuseForm)==null?void 0:O.selectedVideoIds)||{}),G;O=((G=this.reportChannelAbuseForm)==null?void 0:G.additionalContext)||"";var B;G=((B=this.reportChannelAbuseForm)==null?void 0:B.impersonatedChannelUrl)||"";var Q;if((Q=this.data)==null?0:Q.submitEndpoint){m={impersonated_channel_url:G,text:O,video_ids:m};var H;_.KR().resolve(_.Mu).resolveCommand((H=this.data)==null?void 0:H.submitEndpoint,{form:Object.assign({},
m,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.v.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.v.onYtServiceRequestError=function(O){this.setNextButtonIsDisabled(!1);_.At(this.hostElement,O.detail.error.message)};
_.v.setNextButtonIsDisabled=function(O){this.set("data.nextButton.buttonRenderer.isDisabled",O)};
_.v.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
R1.prototype.onYtServiceRequestError=R1.prototype.onYtServiceRequestError;R1.prototype.onYtServiceRequestCompleted=R1.prototype.onYtServiceRequestCompleted;_.c([_.g(),_.Y("design:type",Object)],R1.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],R1.prototype,"nextButtonDisabled",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],R1.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],R1.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],R1.prototype,"submitEndpoint",void 0);_.c([_.g(),_.Y("design:type",Object)],R1.prototype,"navigationEndpoint",void 0);_.c([_.g({selector:B4K.reportChannelAbuseSelector}),_.Y("design:type",Object)],R1.prototype,"reportChannelAbuseForm",void 0);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],R1.prototype,"onYtServiceRequestCompleted",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],R1.prototype,"onYtServiceRequestError",null);_.c([_.l({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],R1);
_.y(R1,"ytd-report-channel-modal-footer-renderer",function(){if(QAK!==void 0)return QAK;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return QAK=O},{mode:1});var Hay;var i6=function(){var O=_.u.apply(this,arguments)||this;O.boundOnTapDismissButton=function(){O.closePopup()};
return O};
_.X(i6,_.u);i6.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
i6.prototype.handleDataChanged=function(){_.OJ(this.hostElement)};
i6.prototype.closePopup=function(){_.xc(this.hostElement,"yt-close-popup-action")};
i6.prototype.handleDataChanged=i6.prototype.handleDataChanged;_.c([_.g(),_.Y("design:type",Object)],i6.prototype,"boundOnTapDismissButton",void 0);_.c([_.g(),_.Y("design:type",Object)],i6.prototype,"data",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],i6.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],i6.prototype,"handleDataChanged",null);_.c([_.l({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],i6);
_.y(i6,"ytd-report-channel-modal-header-renderer",function(){if(Hay!==void 0)return Hay;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Hay=O},{mode:1});var veJ;var xy=function(){var O=_.u.apply(this,arguments)||this;O.autoValidate=!1;O.invalid=!1;O.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return O};
_.X(xy,_.u);_.v=xy.prototype;_.v.attached=function(){var O=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){O.channelUrlInput.focusTextInput()})};
_.v.disableNextButton=function(O){_.xc(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[O])};
_.v.handleImpersonatedChannelUrlChanged=function(){var O=this;this.disableNextButton(!0);this.invalid=!1;_.GS(this,"ytd-report-channel-impersonated-channel-update",function(){var m=O.impersonatedChannelUrl.trim();O.ytdReduxBehavior.dispatch(_.xs({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:m}));var G;((G=O.data)==null?0:G.submitEndpoint)&&m&&_.KR().resolve(_.Mu).resolveCommand(O.data.submitEndpoint,{form:{impersonated_channel_url:m,element:O.hostElement}})},500)};
_.v.handleModifyReportFormCommand=function(O){this.invalid=this.get("modifyReportFormCommand.action",O)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.v.updateInvalidFromBinding=function(O){this.invalid=O.detail.value};
_.v.updateImpersonatedChannelUrlFromBinding=function(O){this.impersonatedChannelUrl=O.detail.value};
xy.prototype.handleImpersonatedChannelUrlChanged=xy.prototype.handleImpersonatedChannelUrlChanged;_.c([_.h(_.MK),_.Y("design:type",Object)],xy.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],xy.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],xy.prototype,"autoValidate",void 0);_.c([_.g(),_.Y("design:type",Object)],xy.prototype,"invalid",void 0);
_.c([_.g(),_.Y("design:type",String)],xy.prototype,"impersonatedChannelUrl",void 0);_.c([_.g({selector:B4K.impersonatedChannelUrlSelector}),_.Y("design:type",String)],xy.prototype,"impersonatedChannelUrlRedux",void 0);_.c([_.g(),_.Y("design:type",Object)],xy.prototype,"data",void 0);_.c([_.uc("#text-input"),_.Y("design:type",Object)],xy.prototype,"channelUrlInput",void 0);
_.c([_.Tw("impersonatedChannelUrl"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xy.prototype,"handleImpersonatedChannelUrlChanged",null);_.c([_.l({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],xy);
_.y(xy,"ytd-report-channel-modal-impersonation-renderer",function(){if(veJ!==void 0)return veJ;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return veJ=O},{mode:1});var KVr;var $Wx;var qL=function(){return _.u.apply(this,arguments)||this};
_.X(qL,_.u);qL.prototype.onCheckboxToggled=function(O){var m,G,B=(G=_.b((m=this.data)==null?void 0:m.video,_.$z))==null?void 0:G.videoId;B&&this.ytdReduxBehavior.dispatch(O.target.checked?_.xs({type:"VIDEO_SELECTED",payload:B}):_.xs({type:"VIDEO_UNSELECTED",payload:B}))};
qL.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.vr.Object.defineProperties(qL.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var O,m=(O=this.data)==null?void 0:O.video;if(!m)return{};var G;O=(G=_.b(m,_.$z))==null?void 0:G.navigationEndpoint;if(!O)return m;_.b(O==null?void 0:O.commandMetadata,_.bP)&&(_.b(O.commandMetadata,_.bP).ignoreNavigation=!0);return m}}});
_.c([_.g({reflectToAttribute:!0,selector:B4K.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.Y("design:type",Boolean)],qL.prototype,"checked",void 0);_.c([_.g(),_.Y("design:type",Object)],qL.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qL.prototype,"video",null);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],qL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],qL.prototype,"ytdReduxBehavior",void 0);_.c([_.l({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],qL);
_.y(qL,"ytd-selectable-video-renderer",function(){if($Wx!==void 0)return $Wx;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return $Wx=O},{mode:1});var UW=function(){var O=_.u.apply(this,arguments)||this;O.monitorScroll=!0;return O};
_.X(UW,_.u);UW.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],UW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],UW.prototype,"data",void 0);_.c([_.l({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],UW);
_.y(UW,"ytd-selectable-video-list-renderer",function(){if(KVr!==void 0)return KVr;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return KVr=O},{mode:1});var MOJ;_.lE("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var t_=function(){return _.u.apply(this,arguments)||this};
_.X(t_,_.u);t_.prototype.onChange=function(O){if(O=_.Mj(O).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.V("kevlar_command_handler_migration_killswitch"))_.Wd(this.hostElement,O,this.hostElement);else{O=_.K(O);for(var m=O.next();!m.done;m=O.next())this.ytComponentBehavior.resolveCommand(m.value)}};
t_.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
t_.prototype.updateDataToggledFromBinding=function(O){this.set("data.toggled",O.detail.value)};
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],t_.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],t_.prototype,"data",void 0);_.c([_.g({computed:"isEnabled(data)"}),_.Y("design:type",Boolean)],t_.prototype,"enabled",void 0);_.c([_.l({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],t_);
_.y(t_,"ytd-toggle-item-renderer",function(){if(MOJ!==void 0)return MOJ;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return MOJ=O},{mode:1});var ruJ;var R3u;var iao;var WS=function(){var O=_.u.apply(this,arguments)||this;O.setVisible=!1;O.boundOnSubmitButtonClick=function(){O.onSubmitButtonClick()};
O.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return O};
_.X(WS,_.u);WS.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}}}}}};
WS.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
WS.prototype.onSubmitButtonClick=function(){var O;((O=this.data)==null?0:O.submitEndpoint)&&!_.V("enable_ytc_refunds_submit_form_signal_action")&&_.tK(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
WS.prototype.handleSignalActionSubmitForm=function(){var O;((O=this.data)==null?0:O.submitEndpoint)&&_.tK(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.vr.Object.defineProperties(WS.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.hiddenByDefault)&&!this.setVisible}}});
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],WS.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],WS.prototype,"setVisible",void 0);_.c([_.g(),_.Y("design:type",Object)],WS.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],WS.prototype,"surveyFeedbackData",void 0);_.c([_.g(),_.Y("design:type",Object)],WS.prototype,"boundOnSubmitButtonClick",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data","setVisible"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],WS.prototype,"visibilityHidden",null);_.c([_.DO({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],WS);
_.y(WS,"yt-flow-footer-renderer",function(){if(iao===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;R3u===void 0&&(R3u=document.createElement("template"));var B=R3u;G.call(m,B.content.cloneNode(!0),O.content.firstChild);iao=O}O=iao;return O},{mode:2});var xWJ=(0,_.t0A)(_.Gz.ypc,{surveyFeedbackDataSelector:function(O){return O.surveyFeedbackData}});var Z_=function(){return _.u.apply(this,arguments)||this};
_.X(Z_,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],Z_.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Z_.prototype,"data",void 0);_.c([_.g({selector:xWJ.surveyFeedbackDataSelector}),_.Y("design:type",Object)],Z_.prototype,"surveyFeedbackData",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Z_);
_.y(Z_,"ytd-flow-footer-renderer",function(){if(ruJ!==void 0)return ruJ;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ruJ=O},{mode:_.ZB("kevlar_poly_si_batch_j025")?1:2});var q83;var UWr;var z1=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return O};
_.X(z1,_.u);_.v=z1.prototype;_.v.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.aZ("multiPageMenuSectionItems")}}};
_.v.handleHideEnclosingAction_=function(O){if(this.data&&this.data.items)for(var m=0;m<this.data.items.length;m++){var G=this.data.items[m].notificationRenderer;if(G&&G.notificationId==O.hideEnclosingAction.notificationId){this.splice("data.items",m,1);_.xc(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.v.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.VM(this.hostElement,"hidden",!0)};
_.v.updateMenu_=function(O){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&O&&!O.doNotRefreshInbox){O=this.data.continuations;for(var m=0;m<O.length;m++)if(O[m].invalidationContinuationData){var G=void 0;var B=(G=O[m].invalidationContinuationData)==null?void 0:G.continuation;break}O=_.aM.clone(this.data.continuationUpdateEndpoint||null);O.continuation=B;O.click_tracking_params=this.data.trackingParams;_.tK(this.hostElement,[O])}};
_.v.onServiceRequestCompleted_=function(O,m){if(this.data&&(O=m.actions)){m=0;for(var G=O.length;m<G;m++){var B=_.b(O[m],_.Mfe);if(!B)break;if((B.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||B.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&B.continuationItems&&this.data.items){var Q=this.data.items.length-1;this.data.items[Q].continuationItemRenderer&&(B=["data.items",Q,1].concat(B.continuationItems),this.splice.apply(this,B))}}}};
z1.prototype.onServiceRequestCompleted_=z1.prototype.onServiceRequestCompleted_;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],z1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],z1.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],z1.prototype,"data",void 0);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],z1.prototype,"onServiceRequestCompleted_",null);_.c([_.DO({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],z1);
_.WE()(z1,"yt-multi-page-menu-section-renderer",function(){if(UWr===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;q83===void 0&&(q83=document.createElement("template"));var B=q83;G.call(m,B.content.cloneNode(!0),O.content.firstChild);UWr=O}O=UWr;return O},{allowedProps:["data"],
mode:2});var tOb;var WVo;var J_=function(){return _.u.apply(this,arguments)||this};
_.X(J_,_.u);J_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.vr.Object.defineProperties(J_.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.progress)==null?0:this.data.progress*100}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],J_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],J_.prototype,"data",void 0);_.c([_.T("data.progress"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],J_.prototype,"showProgressBar",null);
_.c([_.T("data.progress"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],J_.prototype,"progress",null);_.c([_.DO({is:"yt-flow-header-renderer",disableElementRegistration:!0})],J_);
_.y(J_,"yt-flow-header-renderer",function(){if(WVo===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;tOb===void 0&&(tOb=document.createElement("template"));var B=tOb;G.call(m,B.content.cloneNode(!0),O.content.firstChild);WVo=O}O=WVo;return O},{mode:2});var Zao;var z3B;var V_=function(){return _.u.apply(this,arguments)||this};
_.X(V_,_.u);V_.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],V_.prototype,"data",void 0);_.c([_.DO({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],V_);
_.y(V_,"yt-post-confirmation-flow-step-renderer",function(){if(z3B===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Zao===void 0&&(Zao=document.createElement("template"));var B=Zao;G.call(m,B.content.cloneNode(!0),O.content.firstChild);z3B=O}O=z3B;return O},{mode:2});var Juy;var VOo;var b6=function(){return _.u.apply(this,arguments)||this};
_.X(b6,_.u);
b6.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],b6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],b6.prototype,"data",void 0);_.c([_.DO({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],b6);
_.y(b6,"yt-refund-confirmation-flow-step-renderer",function(){if(VOo===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Juy===void 0&&(Juy=document.createElement("template"));var B=Juy;G.call(m,B.content.cloneNode(!0),O.content.firstChild);VOo=O}O=VOo;return O},{mode:2});var baA=_.a(function(O){var m=O.data;return _.q("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.q("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.q(_.KH,{data:function(){return{thumbnails:[{url:m().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.q("div",{class:"profileBadgeViewModelContent"},_.q("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return m().badgeDesc}),_.q(_.U,{cond:function(){return m().badgeSubtitle},
then:function(){return _.q("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return m().badgeSubtitle})}})))},"rh");
baA.idomCompat=!0;var neA=_.a(function(O){var m=O.data;return _.q("yt-comment-interaction-view-model",{el:_.Mi(_.yp(function(){return m().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.q("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return m().onTapA11yLabel},
"on:keydown":_.rqM(),tabindex:0},_.q("div",{class:"ytCommentInteractionViewModelHeader"},_.q("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return m().headerPrefix},' "',function(){return m().videoTitle}),_.q("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.q("div",{class:"ytCommentInteractionViewModelContent"},_.q("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return m().commentContent}),_.q("div",{class:"ytCommentInteractionViewModelChevron"},
_.q(_.KH,{data:function(){return{thumbnails:[{url:m().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"sh");
neA.idomCompat=!0;var XFB=_.a(function(O){var m=O.data;return _.q("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.q(_.u5,{data:function(){return m().avatar}},{avatarViewModel:_.HP}),_.q("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return m().channelName}))},"th");
XFB.idomCompat=!0;var uMb=_.a(function(O){var m=O.data;O={};return _.q("yt-profile-info-view-model",{class:_.bE("ytProfileInfoViewModelHost",(O.ytProfileInfoViewModelWithVideoShelf=function(){return m().videosHorizontalShelf},O))},_.q(fGA,{profileInfo:m}),_.q(_.u5,{data:function(){return m().videosHorizontalShelf}},{horizontalShelfViewModel:function(G){return _.q("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.q(_.Rz,{data:G.data}))}}),_.q(_.U,{cond:function(){return m().comments},
then:function(){return _.q(h3r,{profileInfo:m})}}),_.q(_.U,{cond:function(){return m().sharedSubscriptionsTitle},
then:function(){return _.q(_.U,{cond:function(){return m().subscriptionsAccessButtonCommand},
then:function(){return _.q(T4h,{profileInfo:m})},
else:function(){return _.q(ger,{profileInfo:m})}})}}))},"uh");
uMb.idomCompat=!0;var h3r=_.a(function(O){var m=O.profileInfo;return _.q("div",{class:"ytProfileInfoViewModelActivity"},_.q("div",{class:"ytProfileInfoViewModelHeader"},_.q("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return m().commentsInteractionTitle})),_.q(_.u5,{data:function(){return m().comments}},{commentInteractionViewModel:function(G){return _.q("div",{class:"ytProfileInfoViewModelActivity"},_.q(neA,{data:G.data}))}}))},"vh"),T4h=_.a(function(O){var m=O.profileInfo;
return _.q("div",{class:"ytProfileInfoViewModelSubSection"},_.q("div",{class:"ytProfileInfoViewModelSubHeader"},_.q(_.p3,{command:function(){return m().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.q("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return m().sharedSubscriptionsTitle}),_.q("div",null,_.q(_.u5,{data:function(){return m().subscriptionsAccessButton}},{buttonViewModel:_.oF})))),_.q(jAA,{sharedSubscriptions:function(){var G;
return((G=m().sharedSubscriptions)==null?void 0:G.slice(0,5))||[]}}))},"wh"),ger=_.a(function(O){var m=O.profileInfo;
return _.q("div",{class:"ytProfileInfoViewModelSubSection"},_.q("div",{class:"ytProfileInfoViewModelSubHeader"},_.q("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return m().sharedSubscriptionsTitle})),_.q(jAA,{sharedSubscriptions:function(){var G;
return((G=m().sharedSubscriptions)==null?void 0:G.slice(0,5))||[]}}))},"xh"),jAA=_.a(function(O){return _.q("div",{class:"ytProfileInfoViewModelSubs"},_.q(_.u5,{data:O.sharedSubscriptions},{sharedSubscriptionViewModel:function(m){return _.q("div",{class:"ytProfileInfoViewModelSub"},_.q(XFB,{data:m.data}))}}))},"yh"),fGA=_.a(function(O){var m=O.profileInfo;
return _.q("div",{class:"ytProfileInfoViewModelActivity"},_.q(_.gi,{each:function(){return[m().profileBadgeInfoYtWide,m().profileBadgeInfoChannelWide].filter(function(G){return!!G})},
keyBy:"INDEX"},function(G){return _.q(_.Mr,null,_.q("div",{class:"ytProfileInfoViewModelHeader"},_.q("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return G().profileSectionTitle}),_.q("div",{class:"ytProfileInfoViewModelSectionDesc"},_.q("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var B;
return(B=G().commentBadge)==null?void 0:B.commentDesc}),_.q(_.U,{cond:function(){var B;
return(B=G().commentBadge)==null?void 0:B.blackHeartDesc},
then:function(){return _.q("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.q("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.q(_.KH,{data:function(){var B;
return{thumbnails:[{url:(B=G().commentBadge)==null?void 0:B.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.q("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var B;return(B=G().commentBadge)==null?void 0:B.blackHeartDesc}))),_.q("div",{class:"ytProfileInfoViewModelBadge"},_.q(_.gi,{each:function(){return G().badges||[]}},function(B){return _.q(baA,{data:B})})))}))},"zh");var IG9=_.a(function(O){var m=O.data;var G=function(){return m().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.q("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.q(_.u5,{data:function(){return m().profileIdentityInfo}},{profileIdentityInfoViewModel:function(B){return _.q(_.hNB,{data:B.data,
hideDivider:G,isChannelInfoCard:G})},
profileInfoViewModel:uMb}),_.q(_.u5,{data:function(){return m().profileInfo}},{profileIdentityInfoViewModel:_.hNB,
profileInfoViewModel:uMb}))},"Ah");
IG9.idomCompat=!0;_.qi(IG9,"yt-profile-card-view-model",{props:{data:_.VZ}});var n2=function(){var O=_.u.apply(this,arguments)||this;O.enableFocusFix=_.V("music_web_enable_focus_on_setting_menu_fix")&&_.yE("IS_MOBILE_WEB",!1);O.covered=!1;O.hideMenu=!1;O.isCommentNotificationOnProfileCard=!1;O.scrolledByTouch=!1;O.disableBackdropFilter=_.V("web_disable_backdrop_filter");O.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return O};
_.X(n2,_.u);_.v=n2.prototype;
_.v.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"}}}};
_.v.ready=function(){var O=this;this.JSC$20185_containerElement.addEventListener("scroll",function(){O.ytRendererBehavior.markDirty()})};
_.v.attributeChanged=function(O,m){O==="menu-style"&&_.xc(this.hostElement,"yt-multi-page-menu-closed-action",[m])};
_.v.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.f7(this,this.focusOnStampFinished))};
_.v.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.f7(this,this.focusOnStampFinished))};
_.v.reset=function(){this.closeJobId&&(_.ln.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.v.focusOnStampFinished=function(O){O.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.f7(this,this.focusOnStampFinished)),this.doFocus())};
_.v.doFocus=function(){var O=_.iks(this.sectionsElement);O.length&&O[0].focus()};
_.v.computeMenuStyle=function(O){return O?O.toLowerCase().replace(/_/g,"-"):""};
_.v.computeIsCommentNotificationOnProfileCard=function(O){return _.V("enable_profile_cards_on_comments")&&O.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.v.computeHideMenu=function(O,m){return O||!(!m||!m.showLoadingSpinner)};
_.v.onPopupClosed=function(){this.isPopUpOpen=!1;_.xc(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.v.onPopupOpened=function(O,m){this.isPopUpOpen=!0;m.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.iP(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.xs({type:"CHANNEL_REPORT_RESET"})))};
_.v.onYtNavigate=function(O,m){this.shouldCloseOnNavigateEvent(m.endpoint)&&_.xc(this.hostElement,"yt-close-all-popups-action")};
_.v.handleEndpoint=function(O){O=_.b(O,_.G_);!this.isCommentNotificationOnProfileCard&&O&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20185_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.v.handleActions=function(O){for(var m=0,G=O.length;m<G;m++){var B=_.b(O[m],HQ9);B&&this.handleGetMultiPageMenuAction(B);(B=_.b(O[m],_.Mfe))&&this.handleAppendContinuationItemsAction(B)}};
_.v.onServiceRequestSentOrCompleted=function(O,m){O.detail&&O.detail.endpoint&&this.handleEndpoint(O.detail.endpoint);m.actions&&this.handleActions(m.actions)};
_.v.handleGetMultiPageMenuAction=function(O){var m=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.ZO(this.submenuElement).appendChild(m);(O=O.menu.multiPageMenuRenderer)&&this.logSubmenu(O);m.data=O;m.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.v.handleAppendContinuationItemsAction=function(O){if(this.data&&O.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&O.continuationItems&&this.data.sections){var m=this.data.sections.length-1;this.data.sections[m].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),m--);if(this.data.sections[m].multiPageMenuNotificationSectionRenderer&&O.continuationItems){O=_.K(O==null?void 0:O.continuationItems);for(var G=O.next();!G.done;G=O.next())if(G=G.value,_.b(G,Ics)){var B=
void 0,Q=void 0,H=void 0,M=void 0,R=void 0;((B=this)==null?0:(Q=B.data)==null?0:(H=Q.sections)==null?0:(M=H[m])==null?0:(R=M.multiPageMenuNotificationSectionRenderer)==null?0:R.items)&&this.push("data.sections."+m+".multiPageMenuNotificationSectionRenderer.items",G)}else if(_.b(G,_.AZs)||_.b(G,_.GK))this.push("data.sections",G),m++}}};
_.v.logSubmenu=function(O){if(!_.V("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var m=this.ytRendererBehavior.getScreenLayer(),G=_.yA(m),B=_.kf(m);if((O=O.trackingParams)&&G&&B){var Q=_.Ez(O);_.V("combine_ve_grafts")?_.uK().graftServerVe(O,B,m):_.Pd(G,B,Q)}}};
_.v.emptySubmenuContainer=function(){for(var O=_.ZO(this.submenuElement);O.firstChild;)O.removeChild(O.firstChild)};
_.v.onMenuBackTap=function(O){_.iP(this.hostElement,"yt-submenu-closed");O.stopPropagation()};
_.v.onSubmenuClosed=function(O){_.Mj(O)!==this.hostElement&&(this.covered=!1,_.iP(this.hostElement,"yt-refit"),O.stopPropagation())};
_.v.onRetrieveLocation=function(O,m){m.hasComments&&(m.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),O.stopPropagation())};
_.v.shouldCloseOnNavigateEvent=function(O){if(!O)return!0;if(_.b(O,_.fs3)||_.b(O,_.h5u)||_.b(O,_.XzC)||_.b(O,_.Db))return!1;var m;return((m=_.b(O==null?void 0:O.commandMetadata,_.bP))==null?0:m.ignoreNavigation)?!1:!0};
_.v.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.v.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.v.refitAfterRender=function(){var O=this;_.QA(this,function(){_.iP(O.hostElement,"yt-refit")})};
n2.prototype.refitAfterRender=n2.prototype.refitAfterRender;n2.prototype.onRetrieveLocation=n2.prototype.onRetrieveLocation;n2.prototype.onSubmenuClosed=n2.prototype.onSubmenuClosed;n2.prototype.onMenuBackTap=n2.prototype.onMenuBackTap;n2.prototype.onServiceRequestSentOrCompleted=n2.prototype.onServiceRequestSentOrCompleted;n2.prototype.onYtNavigate=n2.prototype.onYtNavigate;n2.prototype.onPopupOpened=n2.prototype.onPopupOpened;n2.prototype.onPopupClosed=n2.prototype.onPopupClosed;
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],n2.prototype,"ytEventForwardingBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],n2.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],n2.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],n2.prototype,"enableFocusFix",void 0);_.c([_.g(),_.Y("design:type",Object)],n2.prototype,"covered",void 0);_.c([_.g({computed:"computeHideMenu(covered, data)"}),_.Y("design:type",Object)],n2.prototype,"hideMenu",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.Y("design:type",String)],n2.prototype,"menuStyle",void 0);
_.c([_.g({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.Y("design:type",Object)],n2.prototype,"isCommentNotificationOnProfileCard",void 0);_.c([_.g(),_.Y("design:type",Boolean)],n2.prototype,"isPopUpOpen",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],n2.prototype,"scrolledByTouch",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],n2.prototype,"disableBackdropFilter",void 0);
_.c([_.uc("#sections"),_.Y("design:type",HTMLElement)],n2.prototype,"sectionsElement",void 0);_.c([_.uc("#spinner"),_.Y("design:type",HTMLElement)],n2.prototype,"spinnerElement",void 0);_.c([_.uc("#header"),_.Y("design:type",HTMLElement)],n2.prototype,"headerElement",void 0);_.c([_.uc("#container"),_.Y("design:type",HTMLElement)],n2.prototype,"JSC$20185_containerElement",void 0);_.c([_.uc("#submenu"),_.Y("design:type",HTMLElement)],n2.prototype,"submenuElement",void 0);
_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],n2.prototype,"onPopupClosed",null);_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],n2.prototype,"onPopupOpened",null);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],n2.prototype,"onYtNavigate",null);
_.c([_.hG("yt-service-request-completed"),_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],n2.prototype,"onServiceRequestSentOrCompleted",null);_.c([_.hG("yt-menu-back-tapped"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],n2.prototype,"onMenuBackTap",null);
_.c([_.hG("yt-submenu-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],n2.prototype,"onSubmenuClosed",null);_.c([_.hG("yt-retrieve-location"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],n2.prototype,"onRetrieveLocation",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],n2.prototype,"refitAfterRender",null);
_.c([_.l({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],n2);
_.y(n2,"ytd-multi-page-menu-renderer",function(){if(FLK!==void 0)return FLK;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return FLK=O},{mode:1});var pFs;var XD=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return O};
_.X(XD,_.u);_.v=XD.prototype;_.v.created=function(){this.showTooltips=!0};
_.v.computeAccessibility_=function(O){return this.get("accessibility.accessibilityData",O)||null};
_.v.onTap=function(){var O=_.UB(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(O&&O.length===1&&O[0])_.xc(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var m;if((m=this.data)==null?0:m.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var G;((G=this.data)==null?0:G.menuRequest)&&_.tK(this.hostElement,[this.data.menuRequest])}}};
_.v.handleTopbarMenuClosedAction=function(O){var m,G;(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(O)===((m=this.data)==null?void 0:(G=m.icon)==null?void 0:G.iconType)&&this.toggleIconState(!1)};
_.v.toggleIconState=function(O){_.V("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=O)};
_.v.handleUpdateTopbarAvatarAction=function(O){var m;O=(m=_.b(O,F2b))==null?void 0:m.avatarUrl;var G,B;m=(G=this.data)==null?void 0:(B=G.avatar)==null?void 0:B.thumbnails;O&&m&&(G={thumbnails:[Object.assign({},m[0],{url:O})]},this.set("data.avatar",G))};
_.vr.Object.defineProperties(XD.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.ZO(this.hostElement).querySelector("#button")}}});
XD.prototype.onTap=XD.prototype.onTap;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],XD.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],XD.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(_.Klm.YtButtonBehavior),_.Y("design:type",Object)],XD.prototype,"ytButtonBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],XD.prototype,"data",void 0);
_.c([_.uc("yt-icon-button#button"),_.Y("design:type",Object)],XD.prototype,"iconButton",void 0);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],XD.prototype,"onTap",null);_.c([_.l({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],XD);
_.WE()(XD,"ytd-topbar-menu-button-renderer",function(){if(pFs===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);pFs=O}O=pFs;return O},{allowedProps:["data"],
mode:1});var S8J;var f2=function(){return _.u.apply(this,arguments)||this};
_.X(f2,_.u);f2.prototype.getSelected=function(){return this.reasons.selected};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],f2.prototype,"data",void 0);_.c([_.uc("#reasons"),_.Y("design:type",Object)],f2.prototype,"reasons",void 0);_.c([_.l({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],f2);
_.y(f2,"ytd-ad-feedback-content",function(){if(S8J!==void 0)return S8J;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return S8J=O},{mode:1});var Ees;var h_=function(){return _.u.apply(this,arguments)||this};
_.X(h_,_.u);_.v=h_.prototype;_.v.onPopupOpened=function(){_.xc(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.v.computeConfirmButton=function(O){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:O.confirmLabel}};
_.v.computeCancelButton=function(O){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:O.cancelLabel}};
_.v.onConfirmTap=function(){var O=this.content.getSelected();O!==void 0&&(O=this.data.reasons[O].endpoint)&&(_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}}),_.xc(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.v.sendFeedbackSubmitToastAction=function(){var O;(O=this.data)!=null&&O.completionMessage&&_.xc(this.hostElement,"yt-open-popup-action",[_.rH(this.data.completionMessage),this])};
_.v.onCancelTap=function(){_.xc(this.hostElement,"yt-close-popup-action")};
h_.prototype.onPopupOpened=h_.prototype.onPopupOpened;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],h_.prototype,"data",void 0);_.c([_.uc("#content"),_.Y("design:type",Object)],h_.prototype,"content",void 0);_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],h_.prototype,"onPopupOpened",null);
_.c([_.l({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],h_);
_.y(h_,"ytd-ad-feedback-renderer",function(){if(Ees!==void 0)return Ees;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Ees=O},{mode:1});var LVr;var T1=function(){return _.u.apply(this,arguments)||this};
_.X(T1,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],T1.prototype,"data",void 0);_.c([_.l({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],T1);
_.y(T1,"ytd-ad-info-dialog-content",function(){if(LVr!==void 0)return LVr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return LVr=O},{mode:1});var C$9;var gG=function(){return _.u.apply(this,arguments)||this};
_.X(gG,_.u);gG.prototype.computeConfirmButton=function(O){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:O.confirmLabel}};
gG.prototype.onConfirmTap=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
gG.prototype.computeShouldShowTitle=function(){var O;return!((O=this.data)==null||!O.title)};
gG.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.KR().resolve(_.Mu).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
gG.prototype.onPopupClosed=gG.prototype.onPopupClosed;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],gG.prototype,"data",void 0);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],gG.prototype,"onPopupClosed",null);_.c([_.l({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],gG);
_.y(gG,"ytd-ad-info-dialog-renderer",function(){if(C$9!==void 0)return C$9;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return C$9=O},{mode:1});var oeB;var u6=function(){var O=_.u.apply(this,arguments)||this;O.actionButtonClass="action-button";O.dismissButtonId="dismiss-button";O.dialogDismiss=!0;return O};
_.X(u6,_.u);_.v=u6.prototype;_.v.computeInPlayer=function(O){return(O==null?void 0:O.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.v.computedLogo=function(){var O,m;return this.isDarkTheme()?(O=this.data)==null?void 0:O.logoDark:(m=this.data)==null?void 0:m.logo};
_.v.computedHeaderImage=function(){var O,m;return this.isDarkTheme()?(O=this.data)==null?void 0:O.headerImageDark:(m=this.data)==null?void 0:m.headerImage};
_.v.computeLogoIconId=function(){var O,m,G,B=(O=this.computedLogo())==null?void 0:(m=O.sources)==null?void 0:(G=m[0])==null?void 0:G.height;return B&&B%31===0?"logo-icon-with-padding":"logo-icon"};
_.v.computeLogoIconHeight=function(){var O,m,G,B=(O=this.computedLogo())==null?void 0:(m=O.sources)==null?void 0:(G=m[0])==null?void 0:G.height;return B&&B%31===0?"31":"24"};
_.v.onPopupClosed=function(){_.KR().resolve(_.cU).dispose()};
_.v.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.v.onShow=function(){this.inPlayer&&_.ff(6);this.titleElement.focus()};
_.v.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var O=0;O<this.data.impressionEndpoints.length;O++){var m=_.b(this.data.impressionEndpoints[O],_.wu);m&&this.ytComponentBehavior.resolveCommand(m)}};
_.v.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.xc(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.vr.Object.defineProperties(u6.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var O,m;return!((O=this.data)==null||!O.headerImageDark)&&!((m=this.data)==null||!m.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.secondaryButton)}}});
u6.prototype.onPopupClosed=u6.prototype.onPopupClosed;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],u6.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.tg.YtVisibilityBehavior),_.Y("design:type",Object)],u6.prototype,"ytVisibilityBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],u6.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],u6.prototype,"actionButtonClass",void 0);_.c([_.g(),_.Y("design:type",Object)],u6.prototype,"dismissButtonId",void 0);_.c([_.g(),_.Y("design:type",Object)],u6.prototype,"dialogDismiss",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],u6.prototype,"hasHeaderImage",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],u6.prototype,"hasPremiumButton",null);
_.c([_.g({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.Y("design:type",Boolean)],u6.prototype,"inPlayer",void 0);_.c([_.uc("#dismiss-button"),_.Y("design:type",HTMLElement)],u6.prototype,"dismissButton",void 0);_.c([_.uc("#title"),_.Y("design:type",HTMLElement)],u6.prototype,"titleElement",void 0);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],u6.prototype,"onPopupClosed",null);
_.c([_.l({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],u6);
_.y(u6,"ytd-enforcement-message-view-model",function(){if(oeB!==void 0)return oeB;var O=document.createElement("template");_.f(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return oeB=O},{mode:1});var lG9;var aGx;var jz=function(){var O=_.u.apply(this,arguments)||this;O.TEST_ONLY={immediateValidation:function(){O.immediateValidation()},
onValidationResponse:function(m){O.onValidationResponse(m)},
onGenerateHandleFromNameResponse:function(m){O.onGenerateHandleFromNameResponse(m)}};
return O};
_.X(jz,_.u);_.v=jz.prototype;_.v.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.v.validate=function(){this.immediateValidation()};
_.v.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.v.setHandleInputValue=function(O){this.handleDir=this.getHandleDir(O);this.handleInput.value=O;this.validationState={status:"PENDING"};this.immediateValidation()};
_.v.getHandleDir=function(O){var m=O===""&&!1;return(m=_.PT2.test.call(_.PT2,O))?"rtl":"ltr"};
_.v.onDataChanged=function(){var O,m;this.handleDir=this.getHandleDir((m=(O=this.data)==null?void 0:O.handle)!=null?m:"");var G;this.validationState=((G=this.data)==null?0:G.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var B;((B=this.data)==null?0:B.validateOnInit)&&this.immediateValidation()};
_.v.stopPropagation=function(O){O.stopPropagation()};
_.v.onInput=function(){var O;this.handleDir=this.getHandleDir((O=this.handleInput.value)!=null?O:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.v.onFocusout=function(O){this.handleInput.contains(O.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.v.delayedValidation=function(){var O,m;this.debouncedValidation((m=(O=this.data)==null?void 0:O.validationDelayMs)!=null?m:1E3)};
_.v.immediateValidation=function(){this.debouncedValidation(0)};
_.v.debouncedValidation=function(O){var m=this;_.GS(this,"debouncedValidation",function(){var G,B=m.staticValidation((G=m.handleInput.value)!=null?G:"");if(B!==void 0)m.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:B};else{var Q;if((Q=m.data)!=null&&Q.validateChannelHandleCommand){m.validationState={status:"LOADING"};var H;m.ytComponentBehavior.resolveCommand(m.data.validateChannelHandleCommand,{form:{handle:(H=m.handleInput.value)!=null?H:""},commandController:{onSuccess:function(M,
R){m.onValidationResponse(R)},
onServerError:function(M,R){m.onValidationServerError(R)}}})}else m.handleUnexpectedValidationError(new _.j9("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",m.data))}},O)};
_.v.staticValidation=function(O){var m;if(((m=this.data)==null?void 0:m.channelHandleStaticValidationParams)!==void 0){m=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(O)&&m.validValueRegexpErrorMessage!==void 0)return m.validValueRegexpErrorMessage;if(m.minLength!==void 0&&O.length<m.minLength&&m.minLengthErrorMessage!==void 0)return m.minLengthErrorMessage;if(m.maxLength!==void 0&&O.length>m.maxLength&&m.maxLengthErrorMessage!==void 0)return m.maxLengthErrorMessage}};
_.v.onValidationResponse=function(O){var m=_.b(O.result,Ag3);m===void 0?this.handleUnexpectedValidationError(new _.j9("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",O)):this.handleValidationResultRenderer(m)};
_.v.onValidationServerError=function(O){this.handleUnexpectedValidationError(new _.j9("ValidateChannelHandle request failed.",O))};
_.v.handleValidationResultRenderer=function(O){if(O.handle===void 0)this.handleUnexpectedValidationError(new _.j9("ChannelHandleValidationResultRenderer does not contain handle.",O));else if(O.handle===this.handleInput.value)switch(O.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:O.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:O.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.j9("Unrecognized ChannelHandleValidationResult",O));break;default:_.d8(O.result)}};
_.v.handleUnexpectedValidationError=function(O){var m;this.validationState={status:"UNKNOWN",handle:(m=this.handleInput.value)!=null?m:""};_.ay(O)};
_.v.stopEventPropagation=function(O){O.stopPropagation()};
_.v.updateHandleOnChannelNameInputChange=function(O){if(!this.wasEdited){var m,G;this.debouncedGenerateHandleFromName(O,(G=(m=this.data)==null?void 0:m.validationDelayMs)!=null?G:1E3)}};
_.v.debouncedGenerateHandleFromName=function(O,m){var G=this;_.GS(this,"debouncedGenerateHandleFromName",function(){var B;(B=G.data)!=null&&B.validateChannelHandleCommand?G.ytComponentBehavior.resolveCommand(G.data.validateChannelHandleCommand,{form:{name:O},commandController:{onSuccess:function(Q,H){G.onGenerateHandleFromNameResponse(H)},
onServerError:function(Q,H){_.ay(new _.j9("Error calling GenerateHandleFromName",H))}}}):_.ay(new _.j9("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",G.data))},m)};
_.v.onGenerateHandleFromNameResponse=function(O){this.wasEdited||((O=_.b(O.result,OQ3))?this.setHandleInputValue(O.handle):_.ay(new _.j9("Invalid results when generate handle from name")))};
_.vr.Object.defineProperties(jz.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var O;if(O=this.validationState)O=this.validationState,O=O.status==="OK"||O.status==="UNKNOWN";if(O)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var O;if(((O=this.validationState)==null?void 0:O.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 O,m=(O=this.channelHandleEntity)==null?void 0:O.handleEdit;this.handleDir=this.getHandleDir(m!=null?m:"");return m}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var O,m;if(((O=this.data)==null?void 0:(m=O.channelHandleStaticValidationParams)==null?void 0:m.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
jz.prototype.stopEventPropagation=jz.prototype.stopEventPropagation;jz.prototype.onDataChanged=jz.prototype.onDataChanged;jz.prototype.applyHandleEdit=jz.prototype.applyHandleEdit;jz.prototype.onValueChanged=jz.prototype.onValueChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],jz.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],jz.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],jz.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],jz.prototype,"wasEdited",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],jz.prototype,"handleDir",void 0);_.c([_.uc("#handle-input"),_.Y("design:type",Object)],jz.prototype,"handleInput",void 0);_.c([_.g(),_.T("validationState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jz.prototype,"value",null);
_.c([_.Tw("value"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jz.prototype,"onValueChanged",null);_.c([_.T("validationState"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jz.prototype,"errorIndicator",null);_.c([_.g({reflectToAttribute:!0}),_.T("errorIndicator"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],jz.prototype,"borderErrorIndicator",null);
_.c([_.g({selectorArgs:["data.channelHandleEntityKey"],selector:function(O,m){return _.Vh(O.entities,"channelHandle",m)}}),
_.Y("design:type",Object)],jz.prototype,"channelHandleEntity",void 0);_.c([_.T("channelHandleEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jz.prototype,"handleEdit",null);_.c([_.Tw("handleEdit"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jz.prototype,"applyHandleEdit",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jz.prototype,"onDataChanged",null);
_.c([_.T("data.channelHandleStaticValidationParams.validValueRegexp"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jz.prototype,"validValueRegexp",null);_.c([_.hG("yt-service-request-sent"),_.hG("yt-service-request-completed"),_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],jz.prototype,"stopEventPropagation",null);_.c([_.l({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],jz);
_.y(jz,"ytd-channel-handle-input-renderer",function(){if(aGx!==void 0)return aGx;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return aGx=O},{mode:_.ZB("kevlar_poly_si_batch_j025")?1:2});var EW=function(){var O=_.u.apply(this,arguments)||this;O.data=null;O.errorMessage=null;O.isLoading=!0;O.hideContainer=!1;O.enableNewChannelCreationOnIdForAll=_.V("enable_new_channel_creation_for_id4all");O.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"};O.testOnly={setErrorMessage:function(m){O.resetErrorState();
O.setErrorState(m)}};
return O};
_.X(EW,_.u);_.v=EW.prototype;_.v.created=function(){this.logScreenVe()};
_.v.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")};
_.v.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var O;((O=this.zeroStepErrorMessageEntity)==null?0:O.value)&&this.set("errorMessage",_.Qg(this.zeroStepErrorMessageEntity.value))};
_.v.onCreateTap=function(){var O=this;if(this.data&&this.data.channelCreationEndpoint){var m,G;if(!((m=this.data.createChannelButton)==null?0:(G=m.buttonRenderer)==null?0:G.isDisabled)){var B;if((B=this.nameInput)!=null&&B.value){this.setLoadingState();var Q,H;m=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((H=this.handleInput)==null?void 0:H.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:m,commandController:{onSuccess:function(M,R){O.onChannelCreationEndpointSuccess(R);O.obakeImageSource&&_.LE("channelCreatedWithObakeImage",{imageSourceType:O.obakeImageSource})},
onServerError:function(){O.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.v.endpointRequiresServiceRequestAction=function(O){return!!_.b(O,_.pk)||!!_.b(O,F2b)};
_.v.isNavigateAction=function(O){var m;return!!_.b(O,_.IW)||!!_.b((m=_.b(O,BtJ))==null?void 0:m.command,_.IW)};
_.v.isPlaylistAction=function(O){return!!_.b(O,_.B3)||!!_.b(O,_.MO)};
_.v.onChannelCreationEndpointSuccess=function(O){if(O.createChannelError){var m;this.setErrorState((m=O.createChannelError)==null?void 0:m.errorMessage);this.handleInput&&this.handleInput.validate()}else{O.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(O.navigationEndpoint);if(O.actions){m=_.K(O.actions);for(var G=m.next();!G.done;G=m.next())if(G=G.value,this.endpointRequiresServiceRequestAction(G)&&this.ytComponentBehavior.resolveCommand(G),this.isNavigateAction(G)){var B=void 0;G=_.b((B=
_.b(G,BtJ))==null?void 0:B.command,_.IW);B=void 0;this.isPlaylistAction((B=G)==null?void 0:B.endpoint)&&(_.xc(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),B=void 0,this.ytComponentBehavior.resolveCommand((B=G)==null?void 0:B.endpoint))}}O.actions&&O.actions.some(function(Q){var H;return _.b(Q,_.IW)||_.b((H=_.b(Q,BtJ))==null?void 0:H.command,_.IW)})||_.xc(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.v.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.v.onCancelTap=function(){var O,m,G;if(!((O=this.data)==null?0:(m=O.cancelButton)==null?0:(G=m.buttonRenderer)==null?0:G.isDisabled)){var B,Q,H;O=(B=this.data)==null?void 0:(Q=B.cancelButton)==null?void 0:(H=Q.buttonRenderer)==null?void 0:H.command;if(!O||!_.b(O,_.OwN)){var M;this.nameInput&&((M=this.data)==null?0:M.name)&&(this.nameInput.value=this.data.name);var R;this.handleInput&&((R=this.data)==null?0:R.channelHandleInput)&&(this.handleInput.data=_.b(this.data.channelHandleInput,md9));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.v.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.v.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.v.onClearProfilePhotoTap=function(){var O,m,G;((O=this.data)==null?0:(m=O.clearProfilePhotoButton)==null?0:(G=m.buttonRenderer)==null?0:G.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.v.onEditAvatarTap=function(){var O,m,G;((O=this.data)==null?0:(m=O.editAvatarButton)==null?0:(G=m.buttonRenderer)==null?0:G.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.v.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)};
_.v.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var O;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((O=this.data)==null?0:O.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.v.setErrorState=function(O){this.resetErrorState();if(O)this.set("errorMessage",O);else{var m;if((m=this.zeroStepErrorMessageEntity)==null?0:m.value)this.set("errorMessage",_.Qg(this.zeroStepErrorMessageEntity.value));else{var G;((G=this.data)==null?0:G.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.v.fetchImageBlobWithAlr=function(O,m){m=m===void 0?5:m;var G=this,B,Q,H,M,R;return _.r(function(x){switch(x.nextAddress){case 1:return x.yield(fetch(O,{method:"GET",mode:"cors"}),2);case 2:B=x.yieldResult;if(B.ok){x.jumpTo(3);break}if(m===0)throw Error();Q=G.addJitter(Math.pow(2,5-m));return x.yield(new Promise(function(t){setTimeout(t,Q*1E3)}),4);
case 4:return x.return(G.fetchImageBlobWithAlr(O,m-1));case 3:if(!B.headers.get("content-type").split(";").some(function(t){return t.trim()==="text/plain"})){x.jumpTo(5);
break}H=G;M=H.fetchImageBlobWithAlr;return x.yield(B.text(),6);case 6:return x.return(M.call(H,x.yieldResult,m-1));case 5:return x.yield(B.blob(),7);case 7:return R=x.yieldResult,x.return(R)}})};
_.v.addJitter=function(O){var m=O*.3*Math.random();Math.random()>.5&&(m*=-1);return O+m};
_.v.openProfilePicturePicker=function(){var O=this,m,G,B,Q,H;return _.r(function(M){if(M.nextAddress==1){m=O.data.scottyUploadUrl;if(!m)return M.return();G=document.documentElement.hasAttribute("dark");B=document.body.style.colorScheme;G&&(document.body.style.colorScheme="dark");Q=vJ3(KxK(HUs(Fbu(G?"dark":"light")),function(R){var x,t,W,Z,z;return _.r(function(J){if(J.nextAddress==1)return x=_.mi(nJs(new nZ(R.photoUrl,!1)).build(),"alr","yes"),O.obakeImageSource=O.pictureChangeSourceToObakeImageSourceType(R.photoSource),
_.n_(J,2),O.setLoadingState(),J.yield(O.fetchImageBlobWithAlr(x),4);if(J.nextAddress!=2)return t=J.yieldResult,W=new FileReader,W.addEventListener("load",function(){var n,I,S,L,C,P;return _.r(function(w){if(w.nextAddress==1){if(t.size>15728640)return O.setErrorState((n=O.data)==null?void 0:n.imageSizeErrorMessage),_.ay(Error("Al")),w.return();if(!W.result)return O.setErrorState((I=O.data)==null?void 0:I.genericImageLoadErrorMessage),_.ay(Error("Bl")),w.return();S=W.result;_.n_(w,2);return w.yield(awA(t,
m),4)}if(w.nextAddress!=2)return L=w.yieldResult,O.handleImageUpdatedAction(S,L),O.resetErrorState(),_.P7(w,0);C=_.uS(w);O.setErrorState((P=O.data)==null?void 0:P.uploadErrorMessage);if(C instanceof Error)_.oy(C);else{var d=new _.j9(JSON.stringify(C));_.oy(d)}_.ju(w)})}),W.readAsDataURL(t),_.P7(J,0);
Z=_.uS(J);O.setErrorState((z=O.data)==null?void 0:z.genericImageLoadErrorMessage);Z instanceof Error?_.oy(Z):_.lT(new _.j9(JSON.stringify(Z)));_.ju(J)})}),function(){O.hideContainer=!1;
document.body.style.colorScheme=B});
_.n_(M,2);return M.yield(Q.openPicker(),4)}if(M.nextAddress!=2)return _.P7(M,0);_.uS(M);O.setErrorState((H=O.data)==null?void 0:H.selectImageErrorMessage);_.ju(M)})};
_.v.pictureChangeSourceToObakeImageSourceType=function(O){switch(O){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.v.logScreenVe=function(){_.E1(_.uK(),124448)};
_.v.graftServerVe=function(){var O=_.kf(),m,G,B=(m=this.data)==null?void 0:(G=m.loggingDirectives)==null?void 0:G.trackingParams;B&&O&&(this.channelCreationFormVe=_.uK().graftServerVe(B,O),O={visualElement:this.channelCreationFormVe},_.TS().reportShown(O))};
_.v.isNameChanged=function(O){var m;return((m=this.data)==null?void 0:m.name)!==O};
_.v.isHandleChanged=function(O){var m,G=_.b((m=this.data)==null?void 0:m.channelHandleInput,md9);return G&&O?G.handle!==O:!1};
_.v.handleImageUpdatedAction=function(O,m){this.hideContainer=!1;this.previewDataUrl=O;this.encryptedBlobId=m};
_.v.handleImageSelectionErrorAction=function(O){this.hideContainer=!1;this.setErrorState(O)};
_.v.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.v.showContainer=function(){this.hideContainer=!1};
_.v.maybeWipeZeroStepErrorMessage=function(){var O,m=(O=this.data)==null?void 0:O.zeroStepErrorMessageEntityKey,G;m&&((G=this.zeroStepErrorMessageEntity)==null?0:G.value)&&this.ytdReduxBehavior.dispatch(_.jh("stringEntity",m,{key:m,value:""}))};
_.vr.Object.defineProperties(EW.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 O;return((O=this.photoThumbnail)==null?0:O.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 O;return!((O=this.data)==null||!O.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.descriptionInfo}}});
EW.prototype.dataChanged=EW.prototype.dataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],EW.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],EW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],EW.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],EW.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],EW.prototype,"errorMessage",void 0);
_.c([_.g(),_.Y("design:type",Object)],EW.prototype,"isLoading",void 0);_.c([_.g(),_.Y("design:type",String)],EW.prototype,"previewDataUrl",void 0);_.c([_.g(),_.Y("design:type",Number)],EW.prototype,"obakeImageSource",void 0);_.c([_.g(),_.Y("design:type",Object)],EW.prototype,"hideContainer",void 0);_.c([_.uc("#title-input"),_.Y("design:type",Object)],EW.prototype,"nameInput",void 0);_.c([_.uc("#handle-input"),_.Y("design:type",Object)],EW.prototype,"handleInput",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],EW.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.c([_.g({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Coz}),_.Y("design:type",Object)],EW.prototype,"zeroStepErrorMessageEntity",void 0);_.c([_.T("data","data.isDefaultProfilePhoto","previewDataUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EW.prototype,"photoThumbnail",null);
_.c([_.T("data","data.isDefaultProfilePhoto","photoThumbnail"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EW.prototype,"userSetPhotoThumbnailUrl",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],EW.prototype,"hideProfilePhotoButtonLayer",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],EW.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.c([_.Si("data","zeroStepErrorMessageEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EW.prototype,"dataChanged",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.descriptionInfo","zeroStepErrorMessageEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EW.prototype,"description",null);_.c([_.l({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],EW);
_.y(EW,"ytd-channel-creation-dialog-renderer",function(){if(lG9!==void 0)return lG9;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return lG9=O},{mode:1});var kQ9;var L2=function(){var O=_.u.apply(this,arguments)||this;O.isLoading=!1;O.isDisabled=!1;return O};
_.X(L2,_.u);L2.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
L2.prototype.updateDisabled=function(){var O;this.isDisabled=this.isLoading||((O=this.handleInput)==null?void 0:O.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
L2.prototype.onSaveClick=function(){var O=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var m;((m=this.data)==null?void 0:m.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 G;if((G=O.data)==null?0:G.nextEndpoint){var B;O.ytComponentBehavior.resolveCommand((B=O.data)==null?void 0:B.nextEndpoint)}else O.isLoading=
!1,O.closeDialog()},
onServerError:function(){O.isLoading=!1;O.handleInput.validate();var G;O.errorMessage=(G=O.data)==null?void 0:G.errorMessage}}}))}};
L2.prototype.closeDialog=function(){_.xc(this.hostElement,"yt-close-popup-action",[this.is])};
L2.prototype.updateDisabled=L2.prototype.updateDisabled;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],L2.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],L2.prototype,"data",void 0);_.c([_.uc("#handle-input"),_.Y("design:type",Object)],L2.prototype,"handleInput",void 0);_.c([_.Tw("isLoading"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],L2.prototype,"updateDisabled",null);
_.c([_.l({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],L2);
_.y(L2,"ytd-channel-handle-edit-dialog-renderer",function(){if(kQ9!==void 0)return kQ9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return kQ9=O},{mode:1});var yus;var C2=function(){return _.u.apply(this,arguments)||this};
_.X(C2,_.u);C2.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],C2.prototype,"data",void 0);_.c([_.l({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],C2);
_.y(C2,"ytd-channel-switcher-footer-renderer",function(){if(yus!==void 0)return yus;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return yus=O},{mode:1});var cuy;var Y8h;var o1=function(){return _.u.apply(this,arguments)||this};
_.X(o1,_.u);o1.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
o1.prototype.onIronChange=o1.prototype.onIronChange;_.c([_.g(),_.Y("design:type",Object)],o1.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!1}),_.Y("design:type",Function)],o1.prototype,"onDontAskAgainChanged",void 0);_.c([_.uc("#checkbox"),_.Y("design:type",Object)],o1.prototype,"checkbox",void 0);_.c([_.hG("iron-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],o1.prototype,"onIronChange",null);
_.c([_.l({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],o1);
_.y(o1,"ytd-identity-prompt-footer-renderer",function(){if(Y8h!==void 0)return Y8h;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Y8h=O},{mode:1});var l6=function(){var O=_.u.apply(this,arguments)||this;O.dontAskAgain=!1;O.showPopup=!1;O.boundDontAskAgainChanged=function(m){O.dontAskAgainChanged(m)};
O.boundOnAccountItemTap=function(m){O.onAccountItemTap(m)};
return O};
_.X(l6,_.u);_.v=l6.prototype;
_.v.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]]"}}}}}};
_.v.ready=function(){var O=this;_.ZO(this.hostElement).querySelector("#container").addEventListener("scroll",function(){O.ytRendererBehavior.markDirty()})};
_.v.dontAskAgainChanged=function(O){this.dontAskAgain=O};
_.v.onAccountItemTap=function(O){if(O){var m={};this.dontAskAgain&&(m={dont_ask_again:this.dontAskAgain});_.BC(O,m)}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.v.redirectOnlyAccount=function(O){O.sections&&O.sections.length>0&&(O=_.b(O.sections[0],_.P4_),(O==null?0:O.contents)&&(O==null?void 0:O.contents.length)<=1?(O=_.Fq(window.location.href),(O==null?0:O.next)&&_.jsM(O.next)?_.BC(O.next):_.BC("/")):this.showPopup=!0)};
l6.prototype.dataChanged=l6.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],l6.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],l6.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!1}),_.Y("design:type",Object)],l6.prototype,"dontAskAgain",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],l6.prototype,"showPopup",void 0);_.c([_.g({reflectToAttribute:!1}),_.Y("design:type",Object)],l6.prototype,"boundDontAskAgainChanged",void 0);_.c([_.g({reflectToAttribute:!1}),_.Y("design:type",Object)],l6.prototype,"boundOnAccountItemTap",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],l6.prototype,"dataChanged",null);
_.c([_.l({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],l6);
_.y(l6,"ytd-channel-switcher-renderer",function(){if(cuy!==void 0)return cuy;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return cuy=O},{mode:1});var dW0;var a1=function(){return _.u.apply(this,arguments)||this};
_.X(a1,_.u);_.vr.Object.defineProperties(a1.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.c([_.g(),_.Y("design:type",Object)],a1.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],a1.prototype,"steps",null);_.c([_.l({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],a1);
_.y(a1,"ytd-channel-transfer-stepper-renderer",function(){if(dW0!==void 0)return dW0;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return dW0=O},{mode:1});var wFb;var ky=function(){var O=_.u.apply(this,arguments)||this;O.data=null;O.isError=!1;O.isLoading=!1;return O};
_.X(ky,_.u);_.v=ky.prototype;_.v.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"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.v.computeProfileName=function(O){return O?O.givenNameValue+" "+O.familyNameValue:""};
_.v.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)};
_.v.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)};
ky.prototype.onYtServiceRequestError=ky.prototype.onYtServiceRequestError;ky.prototype.onYtServiceRequestSent=ky.prototype.onYtServiceRequestSent;ky.prototype.dataChanged=ky.prototype.dataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ky.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ky.prototype,"data",void 0);
_.c([_.g({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.Y("design:type",String)],ky.prototype,"profileName",void 0);_.c([_.g(),_.Y("design:type",Object)],ky.prototype,"isError",void 0);_.c([_.g(),_.Y("design:type",Object)],ky.prototype,"isLoading",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ky.prototype,"dataChanged",null);
_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],ky.prototype,"onYtServiceRequestSent",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],ky.prototype,"onYtServiceRequestError",null);_.c([_.l({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],ky);
_.y(ky,"ytd-channel-warm-welcome-cont-renderer",function(){if(wFb!==void 0)return wFb;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return wFb=O},{mode:1});var e3o;var y_=function(){var O=_.u.apply(this,arguments)||this;O.data=null;return O};
_.X(y_,_.u);y_.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
y_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],y_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],y_.prototype,"data",void 0);_.c([_.l({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],y_);
_.y(y_,"ytd-channel-warm-welcome-renderer",function(){if(e3o!==void 0)return e3o;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return e3o=O},{mode:1});var DWu;var cS=function(){return _.u.apply(this,arguments)||this};
_.X(cS,_.u);_.vr.Object.defineProperties(cS.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.authorThumbnail)||{}}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],cS.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],cS.prototype,"thumbnailDetails",null);_.c([_.l({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],cS);
_.y(cS,"ytd-comment-preview-renderer",function(){if(DWu!==void 0)return DWu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return DWu=O},{mode:1});var sAx;var Yy=function(){return _.u.apply(this,arguments)||this};
_.X(Yy,_.u);Yy.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.vr.Object.defineProperties(Yy.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.submitButton}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Yy.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Yy.prototype,"submitButton",null);_.c([_.l({is:"ytd-notice-renderer",disableElementRegistration:!0})],Yy);
_.y(Yy,"ytd-notice-renderer",function(){if(sAx!==void 0)return sAx;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return sAx=O},{mode:1});var N4r;var dG=function(){return _.u.apply(this,arguments)||this};
_.X(dG,_.u);dG.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],dG.prototype,"data",void 0);_.c([_.l({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],dG);
_.y(dG,"ytd-preview-comment-dialog-content",function(){if(N4r!==void 0)return N4r;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return N4r=O},{mode:1});var P$3;var wG=function(){return _.u.apply(this,arguments)||this};
_.X(wG,_.u);wG.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
wG.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],wG.prototype,"data",void 0);_.c([_.l({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],wG);
_.y(wG,"ytd-preview-comment-dialog-renderer",function(){if(P$3!==void 0)return P$3;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return P$3=O},{mode:1});var FVK;var AuA=_.V("web_button_rework")&&_.yE("BUTTON_REWORK")||_.V("web_button_rework_with_live"),ez=function(){var O=_.u.apply(this,arguments)||this;O.closeLabel=_.Xm("CLOSE");O.selectedAmountIndex=1;O.privacyCheckboxValue=!1;O.useAmsterdamStyle=AuA;O.amountPlaceholderIndex=-1;return O};
_.X(ez,_.u);_.v=ez.prototype;_.v.onAmountClick=function(O){this.selectedAmountIndex=_.ZO(this.hostElement).querySelector("#amounts").indexForElement(O.currentTarget)};
_.v.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.xc(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.v.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.xc(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.xc(this.hostElement,"yt-close-popup-action",[this.is]);var O;(O=_.M1())==null||O.getPlayerPromise().then(function(m){m.pauseVideo()})}};
_.v.donationCallback=function(O){O.success?(this.hostElement.hasAttribute("live-chat")&&O.response&&O.response.data&&O.response.data.actions&&_.xc(this.hostElement,"yt-live-chat-open-popup",[O.response.data.actions[0]]),_.xc(this.hostElement,"yt-close-popup-action",[this.is]),_.xc(this.hostElement,"yt-live-chat-close-buy-flow")):O.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(O.errorMessageRenderer)};
_.v.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.ZO(this.hostElement).querySelector("#custom-amount-input").focus()};
_.v.updateConfirmationDialogTextWithAmount=function(O){var m=this.getConfirmDialogRuns();m&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(m),"text"],this.getFormattedAmount(O))};
_.v.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.v.getAmountPlaceholderIndex=function(O){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=O.findIndex(function(m){return m.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.v.getFormattedAmount=function(O){var m;return(new _.Aa(4,((m=this.data)==null?void 0:m.currencyCode)||"")).format(O)};
_.v.isAmountValid=function(O){if(O==="")return!1;O=Number(O)*1E6;var m=this.get("minAmountMicros",this.data),G=this.get("maxAmountMicros",this.data);return m&&O<m||G&&O>G?!1:!0};
_.v.setInputError=function(){this.shouldShowValidationError?_.ZO(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.ZO(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.v.setInitialCheckboxValue=function(){var O;this.privacyCheckboxValue=!((O=this.data)==null||!O.privacyCheckboxInitialState)};
_.v.updateCustomAmountInputFromBinding=function(O){this.customAmountInput=O.detail.value};
_.v.updatePrivacyCheckboxValueFromBinding=function(O){this.privacyCheckboxValue=O.detail.value};
_.vr.Object.defineProperties(ez.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var O=this,m,G;return((m=this.data)==null?void 0:(G=m.suggestedAmounts)==null?void 0:G.map(function(B,Q){return{buttonRenderer:{style:O.selectedAmountIndex===Q?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:B.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 O;return!((O=this.data)==null||!O.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 O=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(O&&this.amountMicros!==null)return Object.assign({},O,{ypcGetCartEndpoint:Object.assign({},O.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 O=this.get("confirmLargeAmount",this.data);if(O&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),O}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var O=this.get("donateButton.buttonRenderer",this.data);if(O)return Object.assign({},O,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
ez.prototype.setInitialCheckboxValue=ez.prototype.setInitialCheckboxValue;ez.prototype.setInputError=ez.prototype.setInputError;ez.prototype.setFocusOnCustomAmountInput=ez.prototype.setFocusOnCustomAmountInput;_.c([_.h(K1K),_.Y("design:type",Object)],ez.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ez.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ez.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],ez.prototype,"closeLabel",void 0);_.c([_.g(),_.Y("design:type",Object)],ez.prototype,"selectedAmountIndex",void 0);_.c([_.g(),_.Y("design:type",String)],ez.prototype,"customAmountInput",void 0);_.c([_.g(),_.Y("design:type",Object)],ez.prototype,"privacyCheckboxValue",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ez.prototype,"useAmsterdamStyle",void 0);_.c([_.Tw("customAmount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ez.prototype,"setFocusOnCustomAmountInput",null);_.c([_.T("data","selectedAmountIndex"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],ez.prototype,"suggestedAmountButtons",null);
_.c([_.T("data","selectedAmountIndex"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ez.prototype,"isCustomAmountSelected",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ez.prototype,"showPrivacyCheckbox",null);_.c([_.T("data","selectedAmountIndex","customAmount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ez.prototype,"amountMicros",null);
_.c([_.T("isCustomAmountSelected","customAmountInput"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ez.prototype,"customAmount",null);_.c([_.T("customAmount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ez.prototype,"shouldShowValidationError",null);_.c([_.T("customAmount"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ez.prototype,"isDonateButtonEnabled",null);
_.c([_.T("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ez.prototype,"donateCommand",null);_.c([_.T("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ez.prototype,"donateCommandWithConfirmation",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ez.prototype,"largeDonationThreshold",null);
_.c([_.T("customAmount","donateCommand","amountMicros"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ez.prototype,"confirmLargeAmountCommand",null);_.c([_.T("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ez.prototype,"donateButtonRenderer",null);_.c([_.Tw("shouldShowValidationError"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ez.prototype,"setInputError",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ez.prototype,"setInitialCheckboxValue",null);_.c([_.l({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],ez);
_.y(ez,"ytd-donation-amount-picker-renderer",function(){if(FVK!==void 0)return FVK;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return FVK=O},{mode:1});var Ovr;var D_=function(){return _.u.apply(this,arguments)||this};
_.X(D_,_.u);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],D_.prototype,"ytComponentBehavior",void 0);_.c([_.g({}),_.Y("design:type",Object)],D_.prototype,"data",void 0);_.c([_.l({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],D_);
_.y(D_,"ytd-donation-post-transaction-content",function(){if(Ovr!==void 0)return Ovr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Ovr=O},{mode:1});var m8B;var sW=function(){return _.u.apply(this,arguments)||this};
_.X(sW,_.u);sW.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],sW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.c([_.g({}),_.Y("design:type",Object)],sW.prototype,"data",void 0);_.c([_.l({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],sW);
_.y(sW,"ytd-donation-post-transaction-renderer",function(){if(m8B!==void 0)return m8B;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return m8B=O},{mode:1});var GTA;var BFB;var NL=function(){return _.u.apply(this,arguments)||this};
_.X(NL,_.u);NL.prototype.computeIsStreamingProvider=function(O){return!!O.isStreamingShelf};
NL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],NL.prototype,"data",void 0);_.c([_.g({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],NL.prototype,"isStreamingProvider",void 0);
_.c([_.l({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],NL);
_.y(NL,"ytd-media-provider-renderer",function(){if(BFB!==void 0)return BFB;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return BFB=O},{mode:1});var Q5o;var PS=function(){return _.u.apply(this,arguments)||this};
_.X(PS,_.u);PS.prototype.observeLightsourcePalette=function(){var O,m=(O=this.data)==null?void 0:O.vibrantsourceColorPaletteData;m&&_.CH(this.hostElement,m)};
PS.prototype.observeLightsourcePalette=PS.prototype.observeLightsourcePalette;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],PS.prototype,"data",void 0);
_.c([_.Tw("data.vibrantsourceColorPaletteData"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],PS.prototype,"observeLightsourcePalette",null);_.c([_.l({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],PS);
_.y(PS,"ytd-streaming-pop-up-dialog",function(){if(Q5o!==void 0)return Q5o;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Q5o=O},{mode:1});var FD=function(){return _.u.apply(this,arguments)||this};
_.X(FD,_.u);FD.prototype.onPopupOpened_=function(){var O;((O=this.data)==null?0:O.serviceEndpoint)&&_.KR().resolve(_.Mu).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
FD.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
FD.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"}}}}};
FD.prototype.onPopupOpened_=FD.prototype.onPopupOpened_;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],FD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.Ww),_.Y("design:type",Object)],FD.prototype,"ytContinuationHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],FD.prototype,"data",void 0);
_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],FD.prototype,"onPopupOpened_",null);_.c([_.l({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],FD);
_.y(FD,"ytd-brandconnect-popup-renderer",function(){if(GTA!==void 0)return GTA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return GTA=O},{mode:1});var Hvx;var A_=function(){return _.u.apply(this,arguments)||this};
_.X(A_,_.u);_.v=A_.prototype;_.v.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){for(var O=0;O<this.getOptionRenderers().length;O++)this.notifyPath("data.options."+O+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+O+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.v.updateSubmitButton=function(O){this.set("data.submitButton.buttonRenderer.isDisabled",!O)};
_.v.computeAlt=function(O){return _.HX(O)};
_.v.onDismissTap=function(){_.xc(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.KR().resolve(_.Mu).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.v.getOptionRenderers=function(O){return(O=O||this.data)&&O.options?O.options.reduce(function(m,G){G.checkboxSurveyOptionRenderer&&m.push(G.checkboxSurveyOptionRenderer);return m},[]):[]};
_.v.onOptionChange=function(O){var m=this,G=!1;if(O.detail.checked)for(var B=this.getOptionRenderers().find(function(R){return R.value===O.detail.value}),Q=this.getOptionRenderers(),H=0;H<Q.length;H++){var M=Q[H];
this.notifyPath("data.options."+H+".checkboxSurveyOptionRenderer.checked");M.checked&&((B==null?0:B.isExclusiveOption)?!M.isExclusiveOption:M.isExclusiveOption)?this.set("data.options."+H+".checkboxSurveyOptionRenderer.checked",!1):M.checked&&(G=!0)}else G=this.getOptionRenderers().some(function(R,x){m.notifyPath("data.options."+x+".checkboxSurveyOptionRenderer.checked");return R.checked});
this.updateSubmitButton(G)};
_.v.onSubmitTap=function(){var O=this.getOptionRenderers().filter(function(H){return H.checked});
if(O.length!==0){var m=O.map(function(H){return H.responseEndpoint});
O=[];for(var G=1;G<m.length;G++){var B=void 0,Q=(B=_.b(m[G],_.Sk))==null?void 0:B.feedbackToken;Q&&O.push(Q)}m=[m[0]];O.length&&m.push({extra_feedback_tokens:O});_.tK(this.hostElement,m);_.xc(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);O=this.data&&this.data.submitActions||[];if(_.V("kevlar_command_handler_migration_killswitch"))_.Wd(this.hostElement,O,this.hostElement);else for(O=_.K(O),m=O.next();!m.done;m=O.next())this.ytComponentBehavior.resolveCommand(m.value)}};
A_.prototype.onOptionChange=A_.prototype.onOptionChange;A_.prototype.dataChanged=A_.prototype.dataChanged;_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],A_.prototype,"ytEventForwardingBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],A_.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],A_.prototype,"ytComponentBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.c([_.h(fas),_.Y("design:type",Object)],A_.prototype,"ytdHatsSurveyBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],A_.prototype,"data",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A_.prototype,"dataChanged",null);
_.c([_.hG("ytd-checkbox-survey-option-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],A_.prototype,"onOptionChange",null);_.c([_.l({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],A_);
_.y(A_,"ytd-checkbox-survey-renderer",function(){if(Hvx!==void 0)return Hvx;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Hvx=O},{mode:1});var vQ3;var KDx;var O7=function(){return _.u.apply(this,arguments)||this};
_.X(O7,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.c([_.h(XPs),_.Y("design:type",Object)],O7.prototype,"ytdDismissalReasonBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],O7.prototype,"data",void 0);_.c([_.l({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],O7);
_.y(O7,"ytd-dismissal-reason-text-renderer",function(){if(KDx!==void 0)return KDx;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return KDx=O},{mode:1});var $8y;var mW=function(){return _.u.apply(this,arguments)||this};
_.X(mW,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mW.prototype,"ytRendererBehavior",void 0);_.c([_.h(XPs),_.Y("design:type",Object)],mW.prototype,"ytdDismissalReasonBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mW.prototype,"data",void 0);_.c([_.l({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],mW);
_.y(mW,"ytd-dismissal-reason-video-renderer",function(){if($8y!==void 0)return $8y;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return $8y=O},{mode:1});var GO=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(GO,_.u);_.v=GO.prototype;_.v.created=function(){this.selectedFeedbackTokens=new D4};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.v.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.v.onDismissalReasonSelected=function(O,m){_.iP(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(m);this.hasReasonsSelected=!0};
_.v.onDismissalReasonDeselected=function(O,m){_.iP(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(m);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.v.onCancelTap=function(){_.xc(this.hostElement,"yt-close-popup-action")};
_.v.onSubmitTap=function(){var O=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(O={feedback_tokens:O},_.KR().resolve(_.Mu).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},O,{element:this.hostElement})}));_.xc(this.hostElement,"yt-close-popup-action")};
GO.prototype.onDismissalReasonDeselected=GO.prototype.onDismissalReasonDeselected;GO.prototype.onDismissalReasonSelected=GO.prototype.onDismissalReasonSelected;GO.prototype.dataChanged=GO.prototype.dataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],GO.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],GO.prototype,"hasReasonsSelected",void 0);_.c([_.g(),_.Y("design:type",D4)],GO.prototype,"selectedFeedbackTokens",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],GO.prototype,"darkerDarkTheme",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GO.prototype,"dataChanged",null);
_.c([_.hG("yt-dismissal-reason-selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],GO.prototype,"onDismissalReasonSelected",null);_.c([_.hG("yt-dismissal-reason-deselected"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,String]),_.Y("design:returntype")],GO.prototype,"onDismissalReasonDeselected",null);_.c([_.l({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],GO);
_.y(GO,"ytd-dismissal-follow-up-renderer",function(){if(vQ3!==void 0)return vQ3;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return vQ3=O},{mode:1});var M$b;var Bl=function(){return _.u.apply(this,arguments)||this};
_.X(Bl,_.u);_.v=Bl.prototype;_.v.onCheckedChange=function(){this.multiselect||_.iP(this.hostElement,"yt-feedback-single-select-changed");_.ZO(this.hostElement).querySelector("#freeform").focus();_.iP(this.hostElement,"yt-refit")};
_.v.showTextBox=function(O,m){return O&&m};
_.v.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))};
_.v.updateDataCheckedFromBinding=function(O){this.set("data.checked",O.detail.value)};
_.v.updateDataResultTextFromBinding=function(O){this.set("data.resultText",O.detail.value)};
Bl.prototype.dataChanged=Bl.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Bl.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],Bl.prototype,"multiselect",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Bl.prototype,"dataChanged",null);
_.c([_.l({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Bl);
_.y(Bl,"ytd-feedback-option-renderer",function(){if(M$b!==void 0)return M$b;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return M$b=O},{mode:1});var rDb;var Q2=function(){return _.u.apply(this,arguments)||this};
_.X(Q2,_.u);Q2.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Q2.prototype.onSingleSelectCheckedChanged=function(O){O=_.Mj(O);for(var m=0;m<this.data.options.length;m++)if(O.data!==_.b(this.data.options[m],kRA)){var G="data.options."+m+".feedbackOptionRenderer.checked";this.notifyPath(G);this.set(G,!1)}};
Q2.prototype.onSingleSelectCheckedChanged=Q2.prototype.onSingleSelectCheckedChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Q2.prototype,"data",void 0);
_.c([_.hG("yt-feedback-single-select-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Q2.prototype,"onSingleSelectCheckedChanged",null);_.c([_.l({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Q2);
_.y(Q2,"ytd-feedback-question-renderer",function(){if(rDb!==void 0)return rDb;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return rDb=O},{mode:1});var R4J;var Hl=function(){return _.u.apply(this,arguments)||this};
_.X(Hl,_.u);Hl.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Hl.prototype.getSelectedFeedbackResults=function(){for(var O={},m=0;m<this.data.questions.length;m++)for(var G=_.b(this.data.questions[m],ac3),B=0;B<G.options.length;B++){var Q=_.b(G.options[B],kRA);Q&&Q.checked&&(O[Q.optionKey]=Q.resultText)}return O};
Hl.prototype.onKeyUp=function(){var O=this;_.z$(_.ln,function(){_.iP(O.hostElement,"yt-refit")});
_.ln.start()};
Hl.prototype.submitSurvey=function(){var O=this.getSelectedFeedbackResults();Object.keys(O).length>0&&this.data.submitFeedbackEndpoint&&(O={survey_results:O,is_feedback_token_unencrypted:!0},_.KR().resolve(_.Mu).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},O,{element:this.hostElement})}))};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Hl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Hl.prototype,"data",void 0);_.c([_.l({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Hl);
_.y(Hl,"ytd-feedback-survey-renderer",function(){if(R4J!==void 0)return R4J;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return R4J=O},{mode:1});var ivx;var x8r;var vl=function(){return _.u.apply(this,arguments)||this};
_.X(vl,_.u);vl.prototype.computeAlt=function(O){return _.HX(O)};
vl.prototype.submitResponse=function(){var O,m;(O=this.data)!=null&&O.feedbackToken&&((m=this.data)==null?void 0:m.nextStageIndex)!==void 0&&(_.UB(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.UB(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
vl.prototype.onClick=function(){this.submitResponse()};
vl.prototype.onClick=vl.prototype.onClick;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],vl.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],vl.prototype,"vertical",void 0);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vl.prototype,"onClick",null);
_.c([_.l({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],vl);
_.y(vl,"ytd-single-select-answer-option-renderer",function(){if(x8r!==void 0)return x8r;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return x8r=O},{mode:1});var qlr;var KP=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");O.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return O};
_.X(KP,_.u);KP.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
KP.prototype.dataChanged=function(){var O,m;this.vertical=((m=(O=this.data)==null?void 0:O.answerOrientation)!=null?m:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
KP.prototype.submitFeedback=function(O){var m;((m=this.data)==null?0:m.responseEndpoint)&&O&&_.tK(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[O]}])};
KP.prototype.dataChanged=KP.prototype.dataChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],KP.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],KP.prototype,"eventForwardingBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],KP.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],KP.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],KP.prototype,"vertical",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],KP.prototype,"darkerDarkTheme",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],KP.prototype,"dataChanged",null);_.c([_.l({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],KP);
_.y(KP,"ytd-single-select-question-renderer",function(){if(qlr!==void 0)return qlr;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return qlr=O},{mode:1});var $E=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return O};
_.X($E,_.u);_.v=$E.prototype;_.v.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"}}}};
_.v.dataChanged=function(){this.jumpToStage(0)};
_.v.jumpToStage=function(O){var m,G;if((m=this.data)==null?0:(G=m.stages)==null?0:G[O])this.currentStage=this.data.stages[O],this.refitAfterRender()};
_.v.computeAlt=function(O){return _.HX(O)};
_.v.computeSimpleMessage=function(O){var m;return(m=_.b(O,YLr))==null?void 0:m.messageText};
_.v.computeHideDismiss=function(O){var m;return(m=_.b(O,t63))==null?void 0:m.hideParentDismissButton};
_.v.onDismissTap=function(){_.xc(this.hostElement,"yt-close-popup-action");_.b(this.currentStage,YLr)||this.data.dismissalEndpoint&&_.KR().resolve(_.Mu).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.v.refitAfterRender=function(){var O=this;_.QA(this,function(){_.iP(O.hostElement,"yt-refit")})};
$E.prototype.dataChanged=$E.prototype.dataChanged;_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],$E.prototype,"eventForwardingBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],$E.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h(fas),_.Y("design:type",Object)],$E.prototype,"ytdHatsSurveyBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$E.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],$E.prototype,"currentStage",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$E.prototype,"dataChanged",null);_.c([_.l({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],$E);
_.y($E,"ytd-multi-stage-survey-renderer",function(){if(ivx!==void 0)return ivx;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return ivx=O},{mode:1});var U8b;var Mz=function(){return _.u.apply(this,arguments)||this};
_.X(Mz,_.u);Mz.prototype.computeAlt=function(O){return _.HX(O)};
Mz.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.KR().resolve(_.Mu).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.xc(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.L9y(!1)))};
Mz.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Mz.prototype.onTap=Mz.prototype.onTap;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Mz.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],Mz.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Mz.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Mz.prototype,"vertical",void 0);
_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Mz.prototype,"onTap",null);_.c([_.l({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Mz);
_.y(Mz,"ytd-single-option-survey-option-renderer",function(){if(U8b!==void 0)return U8b;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return U8b=O},{mode:1});var t$u;var rl=function(){return _.u.apply(this,arguments)||this};
_.X(rl,_.u);_.v=rl.prototype;_.v.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){var O,m;this.vertical=(((O=this.data)==null?void 0:(m=O.surveyOrientation)==null?void 0:m.type)||"HORIZONTAL")==="VERTICAL"};
_.v.computeAlt=function(O){return _.HX(O)};
_.v.onDismissTap=function(){_.xc(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.KR().resolve(_.Mu).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.L9y(!1))};
rl.prototype.dataChanged=rl.prototype.dataChanged;_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],rl.prototype,"eventForwardingBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],rl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(fas),_.Y("design:type",Object)],rl.prototype,"ytdHatsSurveyBehavior",void 0);
_.c([_.h(_.MK),_.Y("design:type",Object)],rl.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],rl.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],rl.prototype,"vertical",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],rl.prototype,"dataChanged",null);_.c([_.l({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],rl);
_.y(rl,"ytd-single-option-survey-renderer",function(){if(t$u!==void 0)return t$u;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return t$u=O},{mode:1});var WD3;var Rk=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(Rk,_.u);Rk.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Rk.prototype.onDismissTap=function(){_.xc(this.hostElement,"yt-close-popup-action")};
Rk.prototype.onNavigate=function(){_.xc(this.hostElement,"yt-close-popup-action")};
Rk.prototype.onNavigate=Rk.prototype.onNavigate;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],Rk.prototype,"ytEventForwardingBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Rk.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Rk.prototype,"darkerDarkTheme",void 0);
_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Rk.prototype,"onNavigate",null);_.c([_.l({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Rk);
_.y(Rk,"ytd-survey-follow-up-renderer",function(){if(WD3!==void 0)return WD3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return WD3=O},{mode:1});var Zvr;var z49;var JDK;var iD=function(){var O=_.u.apply(this,arguments)||this;O.polymer2="Element"in Polymer;return O};
_.X(iD,_.u);_.v=iD.prototype;_.v.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.v.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.v.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.v.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("minutes-changed",this.minutes))};
_.v.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("seconds-changed",this.seconds))};
_.v.updateMinutesFromBinding=function(O){this.minutes=O.detail.value};
_.v.updateSecondsFromBinding=function(O){this.seconds=O.detail.value};
iD.prototype.secondsChangedForBinding=iD.prototype.secondsChangedForBinding;iD.prototype.minutesChangedForBinding=iD.prototype.minutesChangedForBinding;iD.prototype.secondsChanged=iD.prototype.secondsChanged;_.c([_.g(),_.Y("design:type",String)],iD.prototype,"minutes",void 0);_.c([_.g(),_.Y("design:type",String)],iD.prototype,"seconds",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],iD.prototype,"polymer2",void 0);
_.c([_.uc("#seconds"),_.Y("design:type",Object)],iD.prototype,"secondsEl",void 0);_.c([_.Tw("seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iD.prototype,"secondsChanged",null);_.c([_.Tw("minutes"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iD.prototype,"minutesChangedForBinding",null);
_.c([_.Tw("seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],iD.prototype,"secondsChangedForBinding",null);_.c([_.DO({is:"yt-timestamp-input",disableElementRegistration:!0})],iD);
_.y(iD,"yt-timestamp-input",function(){if(JDK===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;z49===void 0&&(z49=document.createElement("template"));var B=z49;G.call(m,B.content.cloneNode(!0),O.content.firstChild);JDK=O}O=JDK;return O},{mode:2});var xE=function(){return _.u.apply(this,arguments)||this};
_.X(xE,_.u);_.v=xE.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20357_scroller.dialogElement=this.hostElement.parentNode};
_.v.dataChanged=function(){var O=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.rR().getPlayerPromise().then(function(m){m=m.getCurrentTime();O.minutes=Math.floor(m/60).toString();O.seconds=(Math.floor(m)%60).toString()})};
_.v.onTapSubmit=function(O){O.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(O={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(O.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(O.minutes=this.minutes,O.seconds=this.seconds),_.KR().resolve(_.Mu).resolveCommand(this.serviceEndpoint,{form:Object.assign({},O,{element:this.hostElement})}))};
_.v.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.v.onYtServiceRequestCompleted=function(O,m){m=m.actions;if(Array.isArray(m))for(var G=0,B=m.length;G<B;G++)_.b(m[G],_.Y4)&&(O.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(m[G]))};
_.v.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.v.toggleSubmitButton=function(O){this.set("submitButton.isDisabled",!O)};
_.v.handleInput=function(){var O=this.issueType,m=this.affiliation,G=this.minutes,B=this.seconds;G=!this.showTimestamp||!!G&&!!B;this.toggleSubmitButton(!!this.descriptionText&&!!O&&!!m&&G)};
_.v.computeServiceEndpoint=function(O){return this.get("submitButton.buttonRenderer.serviceEndpoint",O)};
_.v.computeSubmitButton=function(O){(O=this.get("submitButton.buttonRenderer",O))&&(O=Object.assign({},O,{serviceEndpoint:void 0}));return O};
_.v.computeShowTimestamp=function(O){return!!O};
_.v.onValueChangedForIssueType=function(O){this.issueType=O.detail.value};
_.v.onValueChangedForAffiliation=function(O){this.affiliation=O.detail.value};
_.v.updateDescriptionTextFromBinding=function(O){this.descriptionText=O.detail.value};
_.v.updateFullNameTextFromBinding=function(O){this.fullNameText=O.detail.value};
_.v.updateMinutesFromBinding=function(O){this.minutes=O.detail.value};
_.v.updateSecondsFromBinding=function(O){this.seconds=O.detail.value};
xE.prototype.handleInput=xE.prototype.handleInput;xE.prototype.onYtServiceRequestError=xE.prototype.onYtServiceRequestError;xE.prototype.onYtServiceRequestCompleted=xE.prototype.onYtServiceRequestCompleted;xE.prototype.onYtServiceRequestSent=xE.prototype.onYtServiceRequestSent;xE.prototype.dataChanged=xE.prototype.dataChanged;_.c([_.h(_.ko.YtOpenPopupBehavior),_.Y("design:type",Object)],xE.prototype,"ytOpenPopupBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.c([_.uc("#scroller"),_.Y("design:type",Object)],xE.prototype,"JSC$20357_scroller",void 0);_.c([_.uc("#description"),_.Y("design:type",HTMLInputElement)],xE.prototype,"description",void 0);_.c([_.uc("#full-name"),_.Y("design:type",Object)],xE.prototype,"fullName",void 0);_.c([_.g(),_.Y("design:type",Object)],xE.prototype,"data",void 0);
_.c([_.g({computed:"computeShowTimestamp(data.timestampLabel)"}),_.Y("design:type",Boolean)],xE.prototype,"showTimestamp",void 0);_.c([_.g({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.Y("design:type",Object)],xE.prototype,"serviceEndpoint",void 0);_.c([_.g({computed:"computeSubmitButton(data)"}),_.Y("design:type",Object)],xE.prototype,"submitButton",void 0);_.c([_.g(),_.Y("design:type",String)],xE.prototype,"descriptionText",void 0);
_.c([_.g(),_.Y("design:type",Number)],xE.prototype,"issueType",void 0);_.c([_.g(),_.Y("design:type",Number)],xE.prototype,"affiliation",void 0);_.c([_.g(),_.Y("design:type",String)],xE.prototype,"fullNameText",void 0);_.c([_.g(),_.Y("design:type",String)],xE.prototype,"minutes",void 0);_.c([_.g(),_.Y("design:type",String)],xE.prototype,"seconds",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xE.prototype,"dataChanged",null);
_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],xE.prototype,"onYtServiceRequestSent",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],xE.prototype,"onYtServiceRequestCompleted",null);
_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xE.prototype,"onYtServiceRequestError",null);_.c([_.Tw("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xE.prototype,"handleInput",null);_.c([_.l({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],xE);
_.y(xE,"ytd-legal-report-details-form-renderer",function(){if(Zvr!==void 0)return Zvr;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Zvr=O},{mode:1});var V$r;var qz=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return O};
_.X(qz,_.u);qz.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
qz.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var O=this.formRenderer.getForm();O&&this.data.submitEndpoint&&(_.KR().resolve(_.Mu).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},O,{element:this.hostElement})}),_.xc(this.hostElement,"yt-close-popup-action"))}};
qz.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.xc(this.hostElement,"yt-close-popup-action"))};
qz.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
qz.prototype.onPopupClosed=qz.prototype.onPopupClosed;_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],qz.prototype,"ytEventForwardingBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],qz.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],qz.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],qz.prototype,"ytRendererBehavior",void 0);
_.c([_.uc("yt-form-renderer"),_.Y("design:type",Object)],qz.prototype,"formRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],qz.prototype,"data",void 0);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],qz.prototype,"onPopupClosed",null);_.c([_.l({is:"ytd-form-popup-content",disableElementRegistration:!0})],qz);
_.y(qz,"ytd-form-popup-content",function(){if(V$r!==void 0)return V$r;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return V$r=O},{mode:1});var bvr;var U7=function(){return _.u.apply(this,arguments)||this};
_.X(U7,_.u);U7.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
U7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
U7.prototype.onPopupOpened=function(){_.iP(this.hostElement,"yt-invalidate-popup-tabbables")};
U7.prototype.onYtServiceRequestCompleted=function(O,m){m.data&&m.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.iP(this.hostElement,"yt-invalidate-popup-tabbables"))};
U7.prototype.onYtServiceRequestCompleted=U7.prototype.onYtServiceRequestCompleted;U7.prototype.onPopupOpened=U7.prototype.onPopupOpened;_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],U7.prototype,"ytEventForwardingBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],U7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],U7.prototype,"data",void 0);_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],U7.prototype,"onPopupOpened",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],U7.prototype,"onYtServiceRequestCompleted",null);_.c([_.l({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],U7);
_.y(U7,"ytd-form-popup-renderer",function(){if(bvr!==void 0)return bvr;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return bvr=O},{mode:1});var nQ9;var t3=function(){var O=_.u.apply(this,arguments)||this;O.isLoading=!1;return O};
_.X(t3,_.u);_.v=t3.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");ss3(this.hostElement)};
_.v.onYtServiceRequestSent=function(){this.isLoading=!0};
_.v.onYtServiceRequestCompleted=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.v.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Wd(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.v.closePopupHandler=function(){this.fireOnCloseActions()};
_.v.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var O=this.get("data.headerImage.thumbnails");O&&(O=_.Uf(O,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+O+")")}};
_.v.onYtNavigate=function(O){(O=_.Mj(O))&&O.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
t3.prototype.onYtNavigate=t3.prototype.onYtNavigate;t3.prototype.onHeaderImageChanged=t3.prototype.onHeaderImageChanged;t3.prototype.closePopupHandler=t3.prototype.closePopupHandler;t3.prototype.onYtServiceRequestCompleted=t3.prototype.onYtServiceRequestCompleted;t3.prototype.onYtServiceRequestSent=t3.prototype.onYtServiceRequestSent;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],t3.prototype,"ytEventForwardingBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],t3.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],t3.prototype,"isLoading",void 0);_.c([_.uc("#header"),_.Y("design:type",HTMLDivElement)],t3.prototype,"header",void 0);_.c([_.uc("#confirm-button"),_.Y("design:type",_.Ag)],t3.prototype,"confirmButton",void 0);
_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],t3.prototype,"onYtServiceRequestSent",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],t3.prototype,"onYtServiceRequestCompleted",null);
_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],t3.prototype,"closePopupHandler",null);_.c([_.Tw("data.headerImage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t3.prototype,"onHeaderImageChanged",null);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],t3.prototype,"onYtNavigate",null);
_.c([_.l({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],t3);
_.y(t3,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(nQ9!==void 0)return nQ9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return nQ9=O},{mode:1});var XRA;var Wl=function(){var O=_.u.apply(this,arguments)||this;O.isLoading=!1;return O};
_.X(Wl,_.u);_.v=Wl.prototype;_.v.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"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);ss3(this.hostElement)};
_.v.onYtServiceRequestCompleted=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.v.onYtServiceRequestError=function(O){_.At(this.hostElement,O.detail.error.message)};
_.v.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.v.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.xc(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.v.onDataChanged=function(){this.isLoading=!1;var O=this.get("data.headerImage.thumbnails");O&&(O=_.Uf(O,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+O+")");O=_.yA();var m=_.kf(),G=this.get("data.trackingParams");G&&m&&O&&_.Pd(O,m,_.Ez(G))};
_.vr.Object.defineProperties(Wl.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Wl.prototype.onDataChanged=Wl.prototype.onDataChanged;Wl.prototype.onDomChange=Wl.prototype.onDomChange;Wl.prototype.onYtServiceRequestError=Wl.prototype.onYtServiceRequestError;Wl.prototype.onYtServiceRequestCompleted=Wl.prototype.onYtServiceRequestCompleted;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Wl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],Wl.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Wl.prototype,"isLoading",void 0);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Wl.prototype,"hasDescription",null);_.c([_.uc("tp-yt-paper-dialog-scrollable"),_.Y("design:type",Object)],Wl.prototype,"scrollable",void 0);_.c([_.uc("#header"),_.Y("design:type",HTMLElement)],Wl.prototype,"header",void 0);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Wl.prototype,"onYtServiceRequestCompleted",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Wl.prototype,"onYtServiceRequestError",null);
_.c([_.hG("dom-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Wl.prototype,"onDomChange",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Wl.prototype,"onDataChanged",null);_.c([_.l({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Wl);
_.y(Wl,"ytd-gaming-account-link-setting-renderer",function(){if(XRA!==void 0)return XRA;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return XRA=O},{mode:1});var fQr;var h4r;var Zt=function(){var O=_.u.apply(this,arguments)||this;O.isHeader=!1;O.getEndpointForm=function(){return w6B(O.data)};
return O};
_.X(Zt,_.u);_.v=Zt.prototype;_.v.triggerHintActions=function(){var O=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var m=_.UB(O.hostElement,"yt-get-opened-popups-action");!(m&&m.length===1?m[0]:[]).some(function(G){G=G.openPopupAction.popupType;return G==="SURVEY"||G==="MEALBAR"||G==="HINT"})&&O.data.hintActions&&O.guideOpened&&(_.Wd(O.hostElement,O.data.hintActions,O.hostElement),O.data.hintActions=void 0)})};
_.v.getBadgeIconType=function(O){return O&&O.liveBroadcasting?"live":null};
_.v.onDown=function(){this.interaction.triggerDown()};
_.v.onUp=function(){this.interaction.triggerUp()};
_.v.onTap=function(O){if(this.data.serviceEndpoint){var m;_.V("shorts_controller_retrieve_seedless_sequence_v2")&&((m=_.b(this.data.serviceEndpoint,_.pf))==null?void 0:m.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):diK(this.data.serviceEndpoint,this);O.preventDefault()}else this.data.navigationEndpoint&&!_.Hu(_.$Z(O),this.hostElement,["A".toString()])&&_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.v.computeActive=function(O,m){if(!O)return!1;var G=O.navigationEndpoint;O=O.serviceEndpoint;if(!G&&!O||!m)return!1;if(G){O=(O=_.TL(m))&&["subscriptions","filteredsubscriptions"].includes(O);if(_.b(G,_.gH)&&_.b(m,_.gH)&&!O){var B=_.b(G,_.gH).browseId;m=_.b(m,_.gH).browseId;return B!==void 0&&m!==void 0&&(B===m||B==="VLWL"&&m==="FEwatch_later"||B==="FEwatch_later"&&m==="VLWL")}var Q;G=(Q=_.b(G.commandMetadata,_.bP))==null?void 0:Q.url;m=(B=_.b(m.commandMetadata,_.bP))==null?void 0:B.url;return!(!G||
!m||G!==m&&G!==_.JE(m))}return this.isActiveShortsTab(O,m)};
_.v.isActiveShortsTab=function(O,m){m=!!_.b(m,_.pf)||!!_.b(m,_.Q0);return(!!_.b(O,_.pf)||!!_.b(O,_.Q0))&&m};
_.v.computeIsPrimary=function(O){return!!O};
_.vr.Object.defineProperties(Zt.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 O=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&O)return O}}});
Zt.prototype.onTap=Zt.prototype.onTap;Zt.prototype.onUp=Zt.prototype.onUp;Zt.prototype.onDown=Zt.prototype.onDown;Zt.prototype.triggerHintActions=Zt.prototype.triggerHintActions;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Zt.prototype,"componentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Zt.prototype,"rendererBehavior",void 0);_.c([_.h(_.hg.YtTaskEmitterBehavior),_.Y("design:type",Object)],Zt.prototype,"taskEmitterBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],Zt.prototype,"activeEndpoint",void 0);_.c([_.g(),_.Y("design:type",Object)],Zt.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Zt.prototype,"guideOpened",void 0);_.c([_.g(),_.Y("design:type",String)],Zt.prototype,"type",void 0);_.c([_.uc("yt-interaction"),_.Y("design:type",Object)],Zt.prototype,"interaction",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Zt.prototype,"isHeader",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("data","activeEndpoint"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zt.prototype,"active",null);_.c([_.g({reflectToAttribute:!0}),_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Zt.prototype,"isPrimary",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.count","data.presentationStyle","data.badges.*"),_.Y("design:type",String),_.Y("design:paramtypes",[])],Zt.prototype,"lineEndStyle",null);
_.c([_.T("lineEndStyle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Zt.prototype,"ariaLabel",null);_.c([_.Tw("data.hintActions","guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zt.prototype,"triggerHintActions",null);_.c([_.hG("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zt.prototype,"onDown",null);
_.c([_.hG("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Zt.prototype,"onUp",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Zt.prototype,"onTap",null);_.c([_.l({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Zt);
_.y(Zt,"ytd-guide-entry-renderer",function(){if(h4r!==void 0)return h4r;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return h4r=O},{mode:1});var zO=function(){var O=_.u.apply(this,arguments)||this;O.userToggled=!1;return O};
_.X(zO,_.u);_.v=zO.prototype;_.v.getItemsPath=function(){return"data.expandableItems"};
_.v.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.v.onExpanderItemTapped=function(O){var m=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.V("kevlar_guide_expandable_items_killswitch")&&_.QA(this,function(){_.mP(m.expandableItems)});
O.preventDefault()};
_.v.onCollapserItemTapped=function(O){var m=this;this._setExpanded(!1);this.userToggled=!0;O.preventDefault();this.expandableItems&&!_.V("kevlar_guide_collapsible_items_killswitch")&&_.QA(this,function(){_.OJ(m.hostElement)})};
_.v.observeActiveEndpoint=function(){for(var O=this.activeEndpoint,m=this.data,G=this.expandableItems.children,B=0,Q=G.length;B<Q;B++)G[B].activeEndpoint=O;m&&m.autoExpandCommand&&O&&!this.userToggled&&(G=this.data.autoExpandCommand,m=!(!_.b(G,_.gH)||!_.b(O,_.gH)||_.b(G,_.gH).browseId!==_.b(O,_.gH).browseId),O=this.get("commandMetadata.webCommandMetadata.url",O),G=this.get("commandMetadata.webCommandMetadata.url",G),m=m||!!(O&&G&&O.includes(G)),this._setExpanded(m),m&&this.ytLazyListBehavior.fillRemainingListItems())};
zO.prototype.observeActiveEndpoint=zO.prototype.observeActiveEndpoint;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.jQ.YtLazyListBehavior),_.Y("design:type",Object)],zO.prototype,"ytLazyListBehavior",void 0);_.c([_.uc("#expandable-items"),_.Y("design:type",HTMLElement)],zO.prototype,"expandableItems",void 0);
_.c([_.g(),_.Y("design:type",Object)],zO.prototype,"data",void 0);_.c([_.g({readOnly:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],zO.prototype,"expanded",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],zO.prototype,"initialCount",void 0);_.c([_.g(),_.Y("design:type",Object)],zO.prototype,"activeEndpoint",void 0);_.c([_.Tw("data","activeEndpoint","canShowMore"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],zO.prototype,"observeActiveEndpoint",null);
_.c([_.l({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],zO);
_.y(zO,"ytd-guide-collapsible-entry-renderer",function(){if(fQr!==void 0)return fQr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return fQr=O},{mode:_.ZB("kevlar_poly_si_batch_j079")?1:2});var TFo;var gQ9;var J3=function(){var O=_.u.apply(this,arguments)||this;O.allVideosCount=0;O.renderGuideEntry=!1;return O};
_.X(J3,_.u);J3.prototype.observeRenderEntry=function(){var O;this.renderGuideEntry=!((O=this.data)==null||!O.alwaysShow)||!!this.allVideosCount};
J3.prototype.observeRenderEntry=J3.prototype.observeRenderEntry;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],J3.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],J3.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],J3.prototype,"activeEndpoint",void 0);_.c([_.g({selector:_.x2S}),_.Y("design:type",Object)],J3.prototype,"allVideosCount",void 0);
_.c([_.g(),_.Y("design:type",Object)],J3.prototype,"renderGuideEntry",void 0);_.c([_.Si("allVideosCount","data.alwaysShow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],J3.prototype,"observeRenderEntry",null);_.c([_.l({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],J3);
_.y(J3,"ytd-guide-downloads-entry-renderer",function(){if(gQ9===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);gQ9=O}O=gQ9;return O},{mode:1});var V2=function(){var O=_.u.apply(this,arguments)||this;O.youtab=_.V("web_enable_youtab");O.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return O};
_.X(V2,_.u);_.v=V2.prototype;_.v.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]]"}}}}}};
_.v.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var O=this.sectionItems.children,m=0,G=O.length;m<G;m++)O[m].activeEndpoint=this.activeEndpoint}};
_.v.handleAddToGuideSectionAction=function(O){var m=_.b(O,vk9);if(m&&this.data&&(O=m.items,m=m.handlerData,O&&m&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(m)>-1)){m=0;for(var G=O.length;m<G;m++)O[m].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,O[m])}};
_.v.handleRemoveFromGuideSectionAction=function(O){var m=_.b(O,KTJ);m&&this.data&&(O=m.guideEntryId,m=m.handlerData,O&&m&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(m)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(O,this.data.sectionItems),this.removeFromCollapsedSection(O,this.data.sectionItems)))};
_.v.removeFromExpandedSection=function(O,m){O=this.getEntryIndexMatchingId(O,m);O!==-1&&this.splice("data.sectionItems",O,1)};
_.v.removeFromCollapsedSection=function(O,m){var G=m.findIndex(function(B){return!!_.b(B,nko)});
G&&G!==-1&&m[G]&&_.b(m[G],nko)&&(m=_.b(m[G],nko).expandableItems)&&(O=this.getEntryIndexMatchingId(O,m),O!==-1&&this.splice("data.sectionItems."+G+".guideCollapsibleEntryRenderer.expandableItems",O,1))};
_.v.getEntryIndexMatchingId=function(O,m){var G=this;return m.findIndex(function(B){return G.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",B)===O})};
V2.prototype.activeEndpointChanged=V2.prototype.activeEndpointChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],V2.prototype,"actionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.uc("#section-items"),_.Y("design:type",HTMLDivElement)],V2.prototype,"sectionItems",void 0);
_.c([_.uc("#header-entry"),_.Y("design:type",Object)],V2.prototype,"headerEntry",void 0);_.c([_.g(),_.Y("design:type",Object)],V2.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],V2.prototype,"activeEndpoint",void 0);_.c([_.g(),_.Y("design:type",Object)],V2.prototype,"youtab",void 0);_.c([_.Tw("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],V2.prototype,"activeEndpointChanged",null);
_.c([_.l({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],V2);
_.y(V2,"ytd-guide-collapsible-section-entry-renderer",function(){if(TFo===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);TFo=O}O=TFo;return O},{mode:1});var uir;var j5J;var bD=function(){var O=_.u.apply(this,arguments)||this;O.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 O};
_.X(bD,_.u);_.v=bD.prototype;
_.v.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}}}}};
_.v.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var O=_.UB(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);O&&O.length===1&&O[0]&&_.UB(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.v.handleResetChannelUnreadCountCommand=function(O){var m;(O=(m=_.b(O,M6K))==null?void 0:m.channelId)&&this.data&&this.data.items&&(m=this.getPathToEntryMatchingId(O))&&(this.set(m+".guideEntryRenderer.count",0),this.set(m+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.v.handleResetSubscriptionsUnreadDotCommand=function(O){var m,G=(m=_.b(O,rn9))==null?void 0:m.targetId,B;G&&(B=this.data)!=null&&B.items&&(O=this.data.items.findIndex(function(Q){var H;return((H=Q.guideEntryRenderer)==null?void 0:H.targetId)===G}),O<0||this.set("data.items."+O+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.v.getPathToEntryMatchingId=function(O){if(this.data&&this.data.items){var m=this.getEntryIndexMatchingId(O,this.data.items);if(m>-1)return"data.items."+m;for(var G=0;G<this.data.items.length;G++)if(m=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[G]))if(m=this.getEntryIndexMatchingId(O,m),m>-1)return"data.items."+G+".guideCollapsibleEntryRenderer.expandableItems."+m}};
_.v.handleAddToGuideSectionAction=function(O){var m=this;if(_.b(O,vk9)){var G=_.b(O,vk9).items;O=_.b(O,vk9).handlerData;var B,Q;if(G&&O&&((B=this.data)==null?void 0:(Q=B.handlerDatas)==null?void 0:Q.indexOf(O))>-1){G=G.filter(function(M){return(M=m.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",M))&&!m.isGuideItemPresent(M)});
var H;if(O==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((H=this.data)==null?0:H.items)&&(B=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),B>-1)){this.splice.apply(this,["data.items",B+1,0].concat(_.lS(G)));return}this.unshift.apply(this,["data.items"].concat(_.lS(G)))}}};
_.v.isGuideItemPresent=function(O){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(O,this.data.items)!==-1)return!0;var m=this.data.items.find(function(G){return!!G.guideCollapsibleEntryRenderer});
if((m==null?0:m.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(O,m.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.v.getEntryIndexMatchingId=function(O,m){var G=this;return m.findIndex(function(B){return G.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",B)===O})};
_.v.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(O,m){var G=this;return m.findIndex(function(B){return G.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",B)===O})};
_.v.handleRemoveFromGuideSectionAction=function(O){if(_.b(O,KTJ)){var m=_.b(O,KTJ).guideEntryId;O=_.b(O,KTJ).handlerData;var G,B;m&&O&&((G=this.data)==null?void 0:(B=G.handlerDatas)==null?void 0:B.indexOf(O))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(m,this.data.items),this.removeFromCollapsedSection(m,this.data.items))}};
_.v.removeFromExpandedSection=function(O,m){O=this.getEntryIndexMatchingId(O,m);O!==-1&&this.splice("data.items",O,1)};
_.v.removeFromCollapsedSection=function(O,m){var G=m.findIndex(function(B){return!!B.guideCollapsibleEntryRenderer});
G!==-1&&(m=m[G].guideCollapsibleEntryRenderer.expandableItems)&&(O=this.getEntryIndexMatchingId(O,m),O!==-1&&this.splice("data.items."+G+".guideCollapsibleEntryRenderer.expandableItems",O,1))};
_.v.activeEndpointChanged=function(){for(var O=_.ZO(this.hostElement).querySelector("#items").children,m=0,G=O.length;m<G;m++)O[m].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.v.guideOpenedChanged=function(){for(var O=_.ZO(this.hostElement).querySelector("#items").children,m=0,G=O.length;m<G;m++)O[m].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
bD.prototype.guideOpenedChanged=bD.prototype.guideOpenedChanged;bD.prototype.activeEndpointChanged=bD.prototype.activeEndpointChanged;bD.prototype.persistentGuideChanged=bD.prototype.persistentGuideChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],bD.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.jQ.YtLazyListBehavior),_.Y("design:type",Object)],bD.prototype,"ytLazyListBehavior",void 0);_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],bD.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],bD.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],bD.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",String)],bD.prototype,"type",void 0);_.c([_.g({value:20}),_.Y("design:type",Number)],bD.prototype,"initialCount",void 0);_.c([_.g({value:10}),_.Y("design:type",Number)],bD.prototype,"targetFramerate",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],bD.prototype,"autoFill",void 0);_.c([_.g({value:50}),_.Y("design:type",Number)],bD.prototype,"renderDelay",void 0);
_.c([_.Tw("guidePersistentAndVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bD.prototype,"persistentGuideChanged",null);_.c([_.Si("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bD.prototype,"activeEndpointChanged",null);_.c([_.Si("guideOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bD.prototype,"guideOpenedChanged",null);
_.c([_.l({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],bD);
_.y(bD,"ytd-guide-section-renderer",function(){if(j5J!==void 0)return j5J;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return j5J=O},{mode:_.ZB("kevlar_poly_si_batch_j073")?1:2});var IQx;var nP=function(){return _.u.apply(this,arguments)||this};
_.X(nP,_.u);_.vr.Object.defineProperties(nP.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],nP.prototype,"rendererBehaviors",void 0);_.c([_.g(),_.Y("design:type",Object)],nP.prototype,"data",void 0);_.c([_.g(),_.T("data.signInButton.buttonRenderer.style"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],nP.prototype,"alignByText",null);_.c([_.l({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],nP);
_.y(nP,"ytd-guide-signin-promo-renderer",function(){if(IQx===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);IQx=O}O=IQx;return O},{mode:1});var X1=function(){var O=_.u.apply(this,arguments)||this;O.showFooter=!1;return O};
_.X(X1,_.u);X1.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}}}}};
X1.prototype.attached=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1){m=_.KR().resolve(_.v7(_.qK));if(!m)return G.jumpTo(0);m.setGuideData(O.hostElement);return G.yield(0,3)}O.ytLazyListBehavior.initialCount=2;return G.return()})};
X1.prototype.onMouseExit=function(){_.V("web_guide_hover_expansion")&&_.UB(this.hostElement,"yt-guide-mouseleaved",[])};
X1.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
X1.prototype.dataChanged=X1.prototype.dataChanged;X1.prototype.onMouseExit=X1.prototype.onMouseExit;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],X1.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.jQ.YtLazyListBehavior),_.Y("design:type",Object)],X1.prototype,"ytLazyListBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],X1.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],X1.prototype,"showFooter",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],X1.prototype,"autoFill",void 0);_.c([_.hG("mouseleave"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X1.prototype,"onMouseExit",null);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],X1.prototype,"dataChanged",null);_.c([_.l({is:"ytd-guide-renderer",disableElementRegistration:!0})],X1);
_.y(X1,"ytd-guide-renderer",function(){if(uir!==void 0)return uir;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return uir=O},{mode:_.ZB("kevlar_poly_si_batch_j073")?1:2});var pRB;var fP=function(){var O=_.u.apply(this,arguments)||this;O.systemIcons=_.V("kevlar_system_icons");O.frostedGlass=_.V("web_frosted_glass");O.getEndpointForm=function(){return w6B(O.data)};
return O};
_.X(fP,_.u);_.v=fP.prototype;_.v.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.v.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.HX(this.data.formattedTitle))};
_.v.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.v.onDown=function(){this.interaction.triggerDown()};
_.v.onUp=function(){this.interaction.triggerUp()};
_.v.onTap=function(O){if(this.data.serviceEndpoint){var m;_.V("shorts_controller_retrieve_seedless_sequence_v2")&&((m=_.b(this.data.serviceEndpoint,_.pf))==null?void 0:m.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):diK(this.data.serviceEndpoint,this);O.preventDefault()}else{var G;((G=this.data)==null?0:G.navigationEndpoint)&&!_.Hu(_.$Z(O),this.hostElement,["A".toString()])&&_.iP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.v.computeActive=function(O,m){if(!O)return!1;var G=O.navigationEndpoint;O=O.serviceEndpoint;if(!G&&!O||!m)return!1;if(G){O=_.b(G,_.gH);var B=_.b(m,_.gH);if(O&&B)return O.browseId===B.browseId&&O.params===B.params;var Q;G=(Q=_.b(G.commandMetadata,_.bP))==null?void 0:Q.url;var H;m=(H=_.b(m.commandMetadata,_.bP))==null?void 0:H.url;return!(!G||!m||G!==m&&G!==_.JE(m))}return this.isActiveShortsTab(O,m)};
_.v.isActiveShortsTab=function(O,m){m=!!_.b(m,_.pf)||!!_.b(m,_.Q0);return(!!_.b(O,_.pf)||!!_.b(O,_.Q0))&&m};
_.v.computeTitle=function(O,m){return m?"":_.HX(O)};
_.vr.Object.defineProperties(fP.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
fP.prototype.onTap=fP.prototype.onTap;fP.prototype.onUp=fP.prototype.onUp;fP.prototype.onDown=fP.prototype.onDown;fP.prototype.onActiveStateChange=fP.prototype.onActiveStateChange;fP.prototype.dataChanged=fP.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],fP.prototype,"ytComponentBehavior",void 0);
_.c([_.h(_.N4),_.Y("design:type",Object)],fP.prototype,"ironButtonState",void 0);_.c([_.g(),_.Y("design:type",Object)],fP.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],fP.prototype,"activeEndpoint",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],fP.prototype,"noLabels",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.Y("design:type",Boolean)],fP.prototype,"isActive",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],fP.prototype,"systemIcons",void 0);_.c([_.uc("yt-interaction"),_.Y("design:type",Object)],fP.prototype,"interaction",void 0);_.c([_.T("isActive"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fP.prototype,"ariaSelected",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],fP.prototype,"frostedGlass",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fP.prototype,"dataChanged",null);_.c([_.Tw("isActive"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fP.prototype,"onActiveStateChange",null);_.c([_.hG("down"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fP.prototype,"onDown",null);
_.c([_.hG("up"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],fP.prototype,"onUp",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],fP.prototype,"onTap",null);_.c([_.l({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],fP);
_.y(fP,"ytd-mini-guide-entry-renderer",function(){if(pRB!==void 0)return pRB;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return pRB=O},{mode:_.ZB("kevlar_poly_si_batch_j063")?1:2});var Sl0;var h3=function(){var O=_.u.apply(this,arguments)||this;O.allVideosCount=0;O.noLabels=_.V("kevlar_mini_guide_no_labels")||_.V("kevlar_modern_mini_guide");O.frostedGlass=_.V("web_frosted_glass");return O};
_.X(h3,_.u);_.v=h3.prototype;_.v.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.v.onMouseEnter=function(){_.V("web_guide_hover_expansion")&&_.UB(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.v.visibleChanged=function(){if(this.visible&&!this.data){var O=_.KR().resolve(_.v7(_.qK));O&&O.setGuideData(this.hostElement)}};
_.v.dataChanged=function(){var O=[],m;if((m=this.data)!=null&&m.items){m=_.K(this.data.items);for(var G=m.next();!G.done;G=m.next()){G=G.value;var B=void 0;if((B=G.guideSectionRenderer)==null?0:B.items)for(B=void 0,G=_.K((B=G.guideSectionRenderer)==null?void 0:B.items),B=G.next();!B.done;B=G.next())if(B=B.value,B.guideEntryRenderer)B=B.guideEntryRenderer,B.isPrimary&&O.push({guideEntryRenderer:B});else if(B.guideCollapsibleSectionEntryRenderer){var Q=void 0;((Q=_.b(B.guideCollapsibleSectionEntryRenderer.headerEntry,
NF))==null?0:Q.isPrimary)&&O.push({guideEntryRenderer:_.b(B.guideCollapsibleSectionEntryRenderer.headerEntry,NF)});if(B=B.guideCollapsibleSectionEntryRenderer.sectionItems)for(B=_.K(B),Q=B.next();!Q.done;Q=B.next()){var H=Q.value;Q=_.b(H,XTh);var M=void 0;((M=_.b(H,NF))==null?0:M.isPrimary)?O.push({guideEntryRenderer:_.b(H,NF)}):Q&&(H=void 0,_.b((H=Q)==null?void 0:H.entryRenderer,NF)&&(Q.alwaysShow||this.allVideosCount)&&O.push({guideEntryRenderer:_.b(Q.entryRenderer,NF)}))}}}}this.miniGuideItems=
O};
_.v.activeEndpointChanged=function(){for(var O=this.items.children,m=0;m<O.length;m++)O[m].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.v.registerWithViewTransitionManager=function(){var O=this;_.uT(_.ln,function(){var m=_.KR().resolve(_.v7(_.dF));if(m&&m.isAnyTransitionEnabled){var G={};m.viewTransitionCoordinator.registerElement(O.hostElement,(G.slide="mini-guide-page-transition",G))}})};
h3.prototype.activeEndpointChanged=h3.prototype.activeEndpointChanged;h3.prototype.dataChanged=h3.prototype.dataChanged;h3.prototype.visibleChanged=h3.prototype.visibleChanged;h3.prototype.onMouseEnter=h3.prototype.onMouseEnter;_.c([_.h(_.MK),_.Y("design:type",Object)],h3.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],h3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],h3.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],h3.prototype,"ytComponentBehavior",void 0);_.c([_.uc("#items"),_.Y("design:type",Object)],h3.prototype,"items",void 0);_.c([_.g(),_.Y("design:type",Object)],h3.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],h3.prototype,"visible",void 0);_.c([_.g(),_.Y("design:type",Object)],h3.prototype,"miniGuideItems",void 0);_.c([_.g({selector:_.x2S}),_.Y("design:type",Object)],h3.prototype,"allVideosCount",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],h3.prototype,"noLabels",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],h3.prototype,"frostedGlass",void 0);
_.c([_.hG("mouseenter"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h3.prototype,"onMouseEnter",null);_.c([_.Si("visible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h3.prototype,"visibleChanged",null);_.c([_.Si("data","allVideosCount"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h3.prototype,"dataChanged",null);
_.c([_.Si("activeEndpoint"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],h3.prototype,"activeEndpointChanged",null);_.c([_.l({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],h3);
_.y(h3,"ytd-mini-guide-renderer",function(){if(Sl0===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);Sl0=O}O=Sl0;return O},{mode:1});var EQ0;var LDb=/^[\x00-\x7F]+$/,TO=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(TO,_.u);_.vr.Object.defineProperties(TO.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var O,m=_.HX((O=this.data)==null?void 0:O.handle);if(m)return _.Qg("@"+m)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var O=_.HX(this.displayHandle),m,G=_.HX((m=this.data)==null?void 0:m.handleUrl);if(O&&G)return _.Qg(G+O)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var O=_.HX(this.displayHandle);if(O&&!LDb.test(O)){var m;return(m=this.data)==null?void 0:m.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var O=_.HX(this.displayHandleUrl),m,G=_.HX((m=this.data)==null?void 0:m.urlInfoText);if(O&&G)return _.Qg(G+" "+O)}}});
_.c([_.g(),_.Y("design:type",Object)],TO.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TO.prototype,"displayHandle",null);_.c([_.T("displayHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TO.prototype,"displayHandleUrl",null);_.c([_.T("displayHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TO.prototype,"warningText",null);
_.c([_.T("displayHandleUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],TO.prototype,"urlInfoTextWithUrl",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],TO.prototype,"darkerDarkTheme",void 0);_.c([_.l({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],TO);
_.y(TO,"ytd-handles-claiming-confirm-dialog-content",function(){if(EQ0!==void 0)return EQ0;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return EQ0=O},{mode:1});var CYs;var gl=function(){var O=_.u.apply(this,arguments)||this;O.okButtonOverride={style:"mono",type:"outline",size:"M"};return O};
_.X(gl,_.u);gl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
gl.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],gl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],gl.prototype,"okButtonOverride",void 0);_.c([_.g(),_.Y("design:type",Object)],gl.prototype,"data",void 0);_.c([_.l({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],gl);
_.y(gl,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(CYs!==void 0)return CYs;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return CYs=O},{mode:1});var oQh;var lQr=/^[\x00-\x7F]+$/,uD=function(){var O=_.u.apply(this,arguments)||this;O.isLoading=!1;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(uD,_.u);uD.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var O;this.selectedHandle=(O=this.handleInput)==null?void 0:O.value;this.onSelectedHandleChanged(this.selectedHandle);_.UB(this.hostElement,"yt-refit-popups-action")}};
_.vr.Object.defineProperties(uD.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var O;return(O=this.data)==null?void 0:O.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Qg("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Qg(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!lQr.test(this.selectedHandle)){var O;return(O=this.data)==null?void 0:O.warningText}}}});
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],uD.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],uD.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],uD.prototype,"selectedHandle",void 0);_.c([_.g(),_.Y("design:type",Object)],uD.prototype,"isLoading",void 0);_.c([_.g(),_.Y("design:type",Function)],uD.prototype,"onSelectedHandleChanged",void 0);_.c([_.uc("#channel-handle-input"),_.Y("design:type",Object)],uD.prototype,"handleInput",void 0);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uD.prototype,"handleUrlPrefix",null);_.c([_.T("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uD.prototype,"displayHandle",null);_.c([_.T("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uD.prototype,"displayHandleUrl",null);_.c([_.T("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],uD.prototype,"warningText",null);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],uD.prototype,"darkerDarkTheme",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.c([_.l({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],uD);
_.y(uD,"ytd-handles-claiming-edit-dialog-content",function(){if(oQh!==void 0)return oQh;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return oQh=O},{mode:1});var aQA;var jn=function(){var O=_.u.apply(this,arguments)||this;O.actionButtonOverride={style:"mono",type:"filled",size:"M"};O.cancelButtonOverride={style:"mono",type:"text",size:"M"};O.selectButtonDisabled=!1;O.isLoading=!1;O.hasSelectedHandleEventListener=!1;O.selectedHandleChanged=function(m){O.selectedHandle=m};
return O};
_.X(jn,_.u);_.v=jn.prototype;_.v.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.v.onDataChanged=function(){var O,m;this.selectedHandle=(m=_.b((O=this.data)==null?void 0:O.inputField,md9))==null?void 0:m.handle};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.onCancel=function(){this.selectedHandle="";_.xc(this.hostElement,"yt-close-popup-action",[this.is])};
_.v.onSelectHandle=function(){var O=this;if(this.selectedHandle!==void 0){var m;((m=this.data)==null?void 0:m.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(G,B){if(B.newHandleUpdateStatus!==void 0&&B.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&B.newHandleUpdateStatus.errorMessage)_.At(O.hostElement,_.HX(B.newHandleUpdateStatus.errorMessage)),
O.isLoading=!1;else{var Q;if((Q=O.data)==null?0:Q.onChannelUpdateSuccess){G=O.data.onChannelUpdateSuccess;var H,M;if(B=(H=_.b(G,_.Y4))==null?void 0:(M=H.popup)==null?void 0:M.handlesClaimingConfirmDialogRenderer)B.handle=_.Qg(O.selectedHandle);O.ytComponentBehavior.resolveCommand(G);_.xc(O.hostElement,"yt-close-popup-action",[O.is])}else O.isLoading=!1}},
onServerError:function(){var G;O.content&&((G=O.content)==null?0:G.handleInput)&&O.content.handleInput.validate();O.isLoading=!1;_.At(O.hostElement,_.Xm("TRY_AGAIN_LATER"))}}}))}};
_.v.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
jn.prototype.onDataChanged=jn.prototype.onDataChanged;jn.prototype.onSelectedHandleChanged=jn.prototype.onSelectedHandleChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],jn.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],jn.prototype,"actionButtonOverride",void 0);_.c([_.g(),_.Y("design:type",Object)],jn.prototype,"cancelButtonOverride",void 0);_.c([_.g(),_.Y("design:type",Object)],jn.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",String)],jn.prototype,"selectedHandle",void 0);_.c([_.g(),_.Y("design:type",Object)],jn.prototype,"selectButtonDisabled",void 0);_.c([_.g(),_.Y("design:type",Object)],jn.prototype,"isLoading",void 0);_.c([_.g(),_.Y("design:type",Object)],jn.prototype,"hasSelectedHandleEventListener",void 0);_.c([_.g(),_.Y("design:type",Object)],jn.prototype,"handleInput",void 0);
_.c([_.Tw("selectedHandle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jn.prototype,"onSelectedHandleChanged",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],jn.prototype,"onDataChanged",null);_.c([_.uc("ytd-handles-claiming-edit-dialog-content"),_.Y("design:type",Object)],jn.prototype,"content",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.l({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],jn);
_.y(jn,"ytd-handles-claiming-edit-dialog-renderer",function(){if(aQA!==void 0)return aQA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return aQA=O},{mode:1});var kTu;var Ik=function(){return _.u.apply(this,arguments)||this};
_.X(Ik,_.u);_.vr.Object.defineProperties(Ik.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null?0:O.handle){var m;return _.Qg("@"+_.HX((m=this.data)==null?void 0:m.handle))}}}});
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ik.prototype,"formattedHandle",null);_.c([_.g(),_.Y("design:type",Object)],Ik.prototype,"data",void 0);_.c([_.l({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Ik);
_.y(Ik,"ytd-handles-claiming-radio-option-renderer",function(){if(kTu!==void 0)return kTu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return kTu=O},{mode:1});var yDB;var cD9=/^[\x00-\x7F]+$/,pP=function(){var O=_.u.apply(this,arguments)||this;O.initialRadioIndex="-1";O.isLoading=!1;O.darkerDarkTheme=_.V("web_darker_dark_theme");O.maybeSubmitFeedback=function(){O.feedbackSurveyRenderer.submitSurvey()};
return O};
_.X(pP,_.u);pP.prototype.updateSelectedHandleIndexFromBinding=function(O){this.selectedRadioIndex=+O.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(O)};
pP.prototype.selectedHandleChanged=function(O){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var m;this.selectedHandle=(m=this.handleInput)==null?void 0:m.value;this.onSelectedHandleChanged(O)}};
_.vr.Object.defineProperties(pP.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var O;return(((O=this.data)==null?void 0:O.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var O;return this.ytRendererBehavior.getSimpleString((O=this.data)==null?void 0:O.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Qg("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Qg(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!cD9.test(this.selectedHandle)){var O;return(O=this.data)==null?void 0:O.warningText}}}});
_.c([_.g(),_.Y("design:type",Object)],pP.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],pP.prototype,"initialRadioIndex",void 0);_.c([_.g(),_.Y("design:type",Number)],pP.prototype,"selectedRadioIndex",void 0);_.c([_.g(),_.Y("design:type",String)],pP.prototype,"selectedHandle",void 0);_.c([_.g(),_.Y("design:type",Object)],pP.prototype,"isLoading",void 0);_.c([_.g(),_.Y("design:type",Function)],pP.prototype,"onSelectedHandleChanged",void 0);
_.c([_.g(),_.Y("design:type",Function)],pP.prototype,"onSelectedRadioIndexChanged",void 0);_.c([_.uc("#channel-handle-input"),_.Y("design:type",Object)],pP.prototype,"handleInput",void 0);_.c([_.uc("ytd-feedback-survey-renderer"),_.Y("design:type",Object)],pP.prototype,"feedbackSurveyRenderer",void 0);_.c([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],pP.prototype,"radioButtonLength",null);
_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pP.prototype,"handleUrlPrefix",null);_.c([_.T("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pP.prototype,"displayHandle",null);_.c([_.T("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pP.prototype,"displayHandleUrl",null);_.c([_.T("selectedHandle"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],pP.prototype,"warningText",null);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],pP.prototype,"darkerDarkTheme",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.c([_.l({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],pP);
_.y(pP,"ytd-handles-claiming-select-dialog-content",function(){if(yDB!==void 0)return yDB;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return yDB=O},{mode:1});var Yl9;var Sn=function(){var O=_.u.apply(this,arguments)||this;O.actionButtonOverride={style:"mono",type:"filled",size:"M"};O.cancelButtonOverride={style:"mono",type:"text",size:"M"};O.initialRadioIndex="-1";O.selectButtonDisabled=!1;O.isLoading=!1;O.selectedRadioIndexChanged=function(m){O.selectedRadioIndex=Number(m.detail.value)};
O.selectedHandleChanged=function(m){O.selectedHandle=m.detail.value};
O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(Sn,_.u);_.v=Sn.prototype;_.v.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.v.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.v.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.UB(this.hostElement,"yt-refit-popups-action")};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.xc(this.hostElement,"yt-close-popup-action",[this.is])};
_.v.onSelectHandle=function(){var O=this;if(this.selectedHandle!==void 0){var m;((m=this.data)==null?void 0:m.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(G,B){if(B.newHandleUpdateStatus!==void 0&&B.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&B.newHandleUpdateStatus.errorMessage)_.At(O.hostElement,_.HX(B.newHandleUpdateStatus.errorMessage)),
O.isLoading=!1;else{var Q;if((Q=O.data)==null?0:Q.onChannelUpdateSuccess){G=O.data.onChannelUpdateSuccess;B=_.b(G,_.Y4);var H;if(B==null?0:(H=B.popup)==null?0:H.handlesClaimingConfirmDialogRenderer)B.popup.handlesClaimingConfirmDialogRenderer.handle=_.Qg(O.selectedHandle);O.ytComponentBehavior.resolveCommand(G);_.xc(O.hostElement,"yt-close-popup-action",[O.is])}else O.isLoading=!1}},
onServerError:function(){if(O.selectedRadioIndex===O.radioButtonLength){var G;O.content&&((G=O.content)==null?0:G.handleInput)&&O.content.handleInput.validate()}O.isLoading=!1;_.At(O.hostElement,_.Xm("TRY_AGAIN_LATER"))}}}))}};
_.v.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var O,m;this.selectedHandle=(O=this.content)==null?void 0:(m=O.handleInput)==null?void 0:m.value}else this.selectedRadioIndex>=0&&((O=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(O==null?void 0:O.handle):this.selectedHandle=void 0)};
_.v.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.v.getRadioItem=function(O){if(this.radioButtonLength>O&&O>=0)return _.b(this.data.radioButton[O],WTr)};
_.vr.Object.defineProperties(Sn.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var O;return(((O=this.data)==null?void 0:O.radioButton)||[]).length}}});
Sn.prototype.onSelectedHandleChanged=Sn.prototype.onSelectedHandleChanged;Sn.prototype.onSelectedHandleIndexChanged=Sn.prototype.onSelectedHandleIndexChanged;Sn.prototype.onDataChanged=Sn.prototype.onDataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Sn.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Sn.prototype,"actionButtonOverride",void 0);_.c([_.g(),_.Y("design:type",Object)],Sn.prototype,"cancelButtonOverride",void 0);
_.c([_.g(),_.Y("design:type",Object)],Sn.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Sn.prototype,"initialRadioIndex",void 0);_.c([_.g(),_.Y("design:type",Number)],Sn.prototype,"selectedRadioIndex",void 0);_.c([_.g(),_.Y("design:type",String)],Sn.prototype,"selectedHandle",void 0);_.c([_.g(),_.Y("design:type",Object)],Sn.prototype,"selectButtonDisabled",void 0);_.c([_.g(),_.Y("design:type",Object)],Sn.prototype,"isLoading",void 0);
_.c([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Sn.prototype,"radioButtonLength",null);_.c([_.uc("ytd-handles-claiming-select-dialog-content"),_.Y("design:type",Object)],Sn.prototype,"content",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sn.prototype,"onDataChanged",null);
_.c([_.Tw("selectedRadioIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sn.prototype,"onSelectedHandleIndexChanged",null);_.c([_.Tw("selectedHandle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Sn.prototype,"onSelectedHandleChanged",null);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Sn.prototype,"darkerDarkTheme",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Sn.prototype,"ytRendererstamperBehavior",void 0);_.c([_.l({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Sn);
_.y(Sn,"ytd-handles-claiming-select-dialog-renderer",function(){if(Yl9!==void 0)return Yl9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Yl9=O},{mode:1});var d8s;var wR0;var E7=function(){return _.u.apply(this,arguments)||this};
_.X(E7,_.u);E7.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],E7.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],E7.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],E7.prototype,"data",void 0);_.c([_.l({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],E7);
_.y(E7,"ytd-hotkey-dialog-section-option-renderer",function(){if(wR0!==void 0)return wR0;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return wR0=O},{mode:1});var e49;var LP=function(){return _.u.apply(this,arguments)||this};
_.X(LP,_.u);LP.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],LP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],LP.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],LP.prototype,"data",void 0);_.c([_.l({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],LP);
_.y(LP,"ytd-hotkey-dialog-section-renderer",function(){if(e49!==void 0)return e49;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return e49=O},{mode:1});var CP=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(CP,_.u);CP.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],CP.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],CP.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],CP.prototype,"darkerDarkTheme",void 0);_.c([_.l({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],CP);
_.y(CP,"ytd-hotkey-dialog-content",function(){if(d8s!==void 0)return d8s;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return d8s=O},{mode:1});var D8h;var ok=function(){return _.u.apply(this,arguments)||this};
_.X(ok,_.u);ok.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var O=document.querySelector("ytd-hotkey-dialog-content #scrollable");O&&(O.dialogElement=this.hostElement.parentElement)};
ok.prototype.onCloseTap=function(){_.xc(this.hostElement,"yt-close-popup-action")};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ok.prototype,"data",void 0);_.c([_.l({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],ok);
_.y(ok,"ytd-hotkey-dialog-renderer",function(){if(D8h!==void 0)return D8h;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return D8h=O},{mode:1});var s5K;var lD=function(){return _.u.apply(this,arguments)||this};
_.X(lD,_.u);lD.prototype.onYtServiceRequestError=function(){if(this.blocked){var O;var m=(O=this.data)==null?void 0:O.defaultServiceEndpoint}else{var G;m=(G=this.data)==null?void 0:G.toggledServiceEndpoint}var B;(m=(B=_.b(m,_.mss))==null?void 0:B.onFailureAction)&&this.ytComponentBehavior.resolveCommand(m);this.updateBlockState(!this.blocked)};
lD.prototype.onYtToggleButton=function(O){this.updateBlockState(O.detail.toggled)};
lD.prototype.updateBlockState=function(O){if(O!==this.blocked){var m=this.blockedEntityKey;m&&this.ytdReduxBehavior.dispatch(_.jh("blockStateEntity",m,{key:m,blocked:O}));this.set("data.isToggled",O)}};
_.vr.Object.defineProperties(lD.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)}}});
lD.prototype.onYtToggleButton=lD.prototype.onYtToggleButton;lD.prototype.onYtServiceRequestError=lD.prototype.onYtServiceRequestError;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],lD.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],lD.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],lD.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],lD.prototype,"blockedEntityKey",void 0);
_.c([_.g({selectorArgs:["blockedEntityKey"],selector:function(O,m){return _.Vh(O.entities,"blockStateEntity",m)}}),
_.Y("design:type",Object)],lD.prototype,"blockStateEntity",void 0);_.c([_.T("data","blockStateEntity"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],lD.prototype,"blocked",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],lD.prototype,"onYtServiceRequestError",null);
_.c([_.hG("yt-toggle-button"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],lD.prototype,"onYtToggleButton",null);_.c([_.l({is:"ytd-block-button",disableElementRegistration:!0})],lD);
_.y(lD,"ytd-block-button",function(){if(s5K!==void 0)return s5K;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return s5K=O},
{mode:1});var NFK;var PYK;var ak=function(){return _.u.apply(this,arguments)||this};
_.X(ak,_.u);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],ak.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ak.prototype,"data",void 0);_.c([_.l({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],ak);
_.y(ak,"ytd-kids-blocklist-picker-item-renderer",function(){if(PYK!==void 0)return PYK;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return PYK=O},{mode:1});var kE=function(){return _.u.apply(this,arguments)||this};
_.X(kE,_.u);kE.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],kE.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],kE.prototype,"data",void 0);_.c([_.l({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],kE);
_.y(kE,"ytd-kids-blocklist-picker-content",function(){if(NFK!==void 0)return NFK;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return NFK=
O},{mode:_.ZB("kevlar_poly_si_batch_j025")?1:2});var FDu;var y2=function(){var O=_.u.apply(this,arguments)||this;O.hasAnyRequestSucceeded=!1;O.hasAnyRequestFailed=!1;O.numPendingRequests=0;return O};
_.X(y2,_.u);_.v=y2.prototype;_.v.attached=function(){this.hostElement.setAttribute("dialog","")};
_.v.onDoneButtonTap=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.v.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.v.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.v.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.v.onPopupClosed=function(O){var m,G;if(((m=O.detail)==null?void 0:(G=m.popup)==null?void 0:G.is)==="tp-yt-paper-dialog"){var B;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((B=this.data)==null?0:B.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.rH(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
y2.prototype.onPopupClosed=y2.prototype.onPopupClosed;y2.prototype.onYtServiceRequestError=y2.prototype.onYtServiceRequestError;y2.prototype.onYtServiceRequestCompleted=y2.prototype.onYtServiceRequestCompleted;y2.prototype.onYtServiceRequestSent=y2.prototype.onYtServiceRequestSent;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],y2.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],y2.prototype,"data",void 0);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],y2.prototype,"onYtServiceRequestSent",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],y2.prototype,"onYtServiceRequestCompleted",null);
_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],y2.prototype,"onYtServiceRequestError",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],y2.prototype,"onPopupClosed",null);_.c([_.l({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],y2);
_.y(y2,"ytd-kids-blocklist-picker-renderer",function(){if(FDu!==void 0)return FDu;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return FDu=O},{mode:1});var AD3;var O1s;var cl=function(){return _.u.apply(this,arguments)||this};
_.X(cl,_.u);cl.prototype.setTip=function(O){var m=this;this.data&&(this.tip=cWr(kF9.getInstance(),O,this.data),_.QA(this,function(){_.iP(m.hostElement,"yt-refit")}))};
cl.prototype.clearTip=function(){this.tip=void 0};
cl.prototype.computeHidden=function(O){return!O};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],cl.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.Y("design:type",Boolean)],cl.prototype,"hidden",void 0);_.c([_.g(),_.Y("design:type",Object)],cl.prototype,"tip",void 0);_.c([_.l({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],cl);
_.y(cl,"ytd-menu-popup-tip-renderer",function(){if(O1s!==void 0)return O1s;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);
return O1s=O},{mode:1});var mE9;var YE=function(){var O=_.u.apply(this,arguments)||this;O.useIcons=!1;O.systemIcons=_.V("kevlar_system_icons");O.useListItemStyles=_.V("web_list_item_style_for_menu_items");return O};
_.X(YE,_.u);_.v=YE.prototype;_.v.onFocus=function(){var O;(O=_.ZO(this.hostElement).querySelector("tp-yt-paper-item"))==null||O.focus()};
_.v.onTap=function(){var O=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(O&&_.b(O,_.zC))this.componentBehavior.resolveCommand(O),this.updateToggledStateInEntity();else if(O){this.componentBehavior.resolveCommand(O)||_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}});var m;((m=_.b(O,_.Vs))==null?void 0:m.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.v.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.v.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.v.updateToggledStateInEntity=function(){var O=this.data.toggleMenuServiceItemEntityKey,m=!this.data.isToggled;O&&this.ytdReduxBehavior.dispatch(_.jh("toggleMenuServiceItemEntity",O,{key:O,isToggled:m}))};
_.v.computeIcon=function(O,m,G){return(O=O?G:m)&&O.iconType?_.bK(O.iconType):""};
_.v.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.v.isIconActive=function(O){return!_.V("toggle_menu_active_icon_killswitch")&&O};
_.vr.Object.defineProperties(YE.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return((O=this.data)==null?0:O.isToggled)?(m=this.data)==null?void 0:m.toggledText:(G=this.data)==null?void 0:G.defaultText}}});
YE.prototype.toggledStateEntityChanged=YE.prototype.toggledStateEntityChanged;YE.prototype.onYtServiceRequestCompleted=YE.prototype.onYtServiceRequestCompleted;YE.prototype.onTap=YE.prototype.onTap;YE.prototype.onFocus=YE.prototype.onFocus;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],YE.prototype,"componentBehavior",void 0);
_.c([_.h(_.MK),_.Y("design:type",Object)],YE.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],YE.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],YE.prototype,"useIcons",void 0);_.c([_.g({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.Y("design:type",String)],YE.prototype,"icon",void 0);
_.c([_.g({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(O,m){return _.Vh(O.entities,"toggleMenuServiceItemEntity",m)}}),
_.Y("design:type",Object)],YE.prototype,"toggleMenuServiceItemEntity",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],YE.prototype,"systemIcons",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],YE.prototype,"useListItemStyles",void 0);_.c([_.hG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YE.prototype,"onFocus",null);
_.c([_.T("data.isToggled"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],YE.prototype,"toggleButtonText",null);_.c([_.hG("tap"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YE.prototype,"onTap",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YE.prototype,"onYtServiceRequestCompleted",null);
_.c([_.Tw("toggleMenuServiceItemEntity.isToggled","data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],YE.prototype,"toggledStateEntityChanged",null);_.c([_.l({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],YE);
_.y(YE,"ytd-toggle-menu-service-item-renderer",function(){if(mE9!==void 0)return mE9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return mE9=O},{mode:1});var Go0;var dl=function(){return _.u.apply(this,arguments)||this};
_.X(dl,_.u);dl.prototype.onFocus=function(){var O;(O=_.ZO(this.hostElement).querySelector("tp-yt-paper-item"))==null||O.focus()};
_.vr.Object.defineProperties(dl.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.d5(this.data.iconUrl)}}});
dl.prototype.onFocus=dl.prototype.onFocus;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],dl.prototype,"rendererBehavior",void 0);_.c([_.h(_.yZ.YtEndpointBehavior),_.Y("design:type",Object)],dl.prototype,"ytEndpointBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],dl.prototype,"data",void 0);_.c([_.hG("focus"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dl.prototype,"onFocus",null);
_.c([_.T("data.iconUrl"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],dl.prototype,"imageSource",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],dl);
_.y(dl,"ytd-menu-custom-icon-item-renderer",function(){if(Go0!==void 0)return Go0;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Go0=O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});_.qi(_.MA,"yt-list-item-view-model",{props:{data:_.VZ,isMenuItem:_.VZ,isCompact:_.VZ,onTap:_.RZ,trailingAccessory:_.RZ,hideSelectionTextChevron:_.VZ,disabled:_.VZ,inPopup:_.VZ,disableHorizontalPadding:_.VZ,isOverlay:_.VZ,isToggled:_.VZ,ariaLabel:_.VZ,ariaPressed:_.VZ}});var wl=function(){var O=_.u.apply(this,arguments)||this;O.disableBackdropFilter=_.V("web_disable_backdrop_filter");return O};
_.X(wl,_.u);_.v=wl.prototype;
_.v.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"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.v.computeAriaLabel=function(O){return O};
_.v.onPopupOpened=function(){this.items.selected=0;for(var O=_.K(_.ZO(this.items).children),m=O.next();!m.done;m=O.next())m.value.popupPositionTarget=this.positionTarget;if(O=this.popupTip||void 0)O.setTip(this.source||""),this.source=void 0;this.veData&&(O=_.yA())&&_.Or(O,[this.veData])};
_.v.onPopupClosed=function(){var O=this.popupTip||void 0;O&&O.clearTip()};
_.v.onIronActivate=function(O){this.shouldPersist(O)||_.xc(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(O=_.yA())&&_.Gk(O,this.veData)};
_.v.shouldPersist=function(O){var m,G;if(((m=O.detail)==null?void 0:m.selected)===void 0||(G=this.data)==null||!G.items)return!1;var B,Q;return!((Q=(B=this.data.items[O.detail.selected])==null?void 0:B.toggleMenuServiceItemRenderer)==null||!Q.persistentOnMenuPopup)};
_.v.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(O){return O.menuNavigationItemRenderer?!!O.menuNavigationItemRenderer.icon:O.menuServiceItemRenderer?!!O.menuServiceItemRenderer.icon:O.menuConditionalServiceItemRenderer?!!O.menuConditionalServiceItemRenderer.icon:O.menuConditionalNavigationItemRenderer?!!O.menuConditionalNavigationItemRenderer.icon:O.toggleMenuServiceItemRenderer?!!O.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
wl.prototype.onPopupClosed=wl.prototype.onPopupClosed;wl.prototype.onPopupOpened=wl.prototype.onPopupOpened;_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],wl.prototype,"ytEventForwardingBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],wl.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],wl.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],wl.prototype,"veData",void 0);_.c([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.Y("design:type",String)],wl.prototype,"ariaLabel",void 0);_.c([_.g({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],wl.prototype,"useIcons",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],wl.prototype,"disableBackdropFilter",void 0);_.c([_.uc("#items"),_.Y("design:type",Object)],wl.prototype,"items",void 0);_.c([_.uc("ytd-menu-popup-tip-renderer"),_.Y("design:type",Object)],wl.prototype,"popupTip",void 0);_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wl.prototype,"onPopupOpened",null);
_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],wl.prototype,"onPopupClosed",null);_.c([_.l({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],wl);
_.y(wl,"ytd-menu-popup-renderer",function(){if(AD3!==void 0)return AD3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return AD3=O},{mode:1});var BQ9;var Q2s=_.a(function(O){O=_.ru(O,{icon:void 0});var m=O.data;O=O.icon;var G=function(){return m().iconBadgeText},B={},Q=_.bE("yt-spec-icon-badge-shape",function(){a:switch(m().iconBadgeType){case "notification":var H="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":H="yt-spec-icon-badge-shape--type-cart";break a;default:H=""}return H},function(){a:switch(m().iconBadgeStyle){case "overlay":var H="yt-spec-icon-badge-shape--style-overlay";
break a;default:H=""}return H},(B["yt-spec-icon-badge-shape--text-size-small"]=function(){var H=G();
return!!((H==null?0:H.length)&&H.length>2)},B));
return _.q("yt-icon-badge-shape",null,_.q(_.U,{cond:O,then:function(H){return _.q("div",{class:Q},_.q("div",{class:"yt-spec-icon-badge-shape__icon"},_.q(_.T$,{icon:H})),_.q(_.U,{cond:G,then:function(M){return _.q("div",{class:"yt-spec-icon-badge-shape__badge"},M)}}))}}))},"Bh");
Q2s.idomCompat=!0;_.qi(Q2s,"yt-icon-badge-shape",{props:{data:_.VZ,icon:_.VZ}});var en=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};O.unseenCount=0;O.isOverlay=!1;return O};
_.X(en,_.u);_.v=en.prototype;_.v.attached=function(){var O=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(m){O.onServiceWorkerMessage(m)})};
_.v.onDataChanged=function(){this.isAttached&&!this.JSC$20488_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20488_lastData=this.data};
_.v.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.v.computeIcon=function(){var O,m;return(O=this.data)==null?void 0:(m=O.icon)==null?void 0:m.iconType};
_.v.onServiceWorkerMessage=function(O){O.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.v.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.b(this.data.updateUnseenCountEndpoint,_.Vs)&&_.b(this.data.updateUnseenCountEndpoint,_.Vs).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.v.handleUpdateNotificationsUnseenCountAction=function(O){var m=this;O=_.b(O,$dh);O!=null&&O.unseenCount&&O.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(O.unseenCount),_.ln.addLowPriorityJob(function(){m.data.updateUnseenCountEndpoint&&m.ytComponentBehavior.resolveCommand(m.data.updateUnseenCountEndpoint)},O.timeoutMs))};
_.v.onClick=function(){_.iP(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var O=_.UB(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),m=this.data.menuRequest;O&&O.length===1&&O[0]?_.xc(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):m&&this.ytComponentBehavior.resolveCommand(m)};
_.v.handleTopbarMenuClosedAction=function(O){O==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.v.toggleIconState=function(O){this.iconButton&&(this.iconButton.pressed=O)};
_.v.sendUnseenCountRequest=function(O){var m=this;_.uT(_.ln,function(){m.ytComponentBehavior.resolveCommand(O)})};
_.v.updateCountUI=function(O){this.set("unseenCount",O<9?O:"9+")};
_.vr.Object.defineProperties(en.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
en.prototype.handleUpdateNotificationsUnseenCountAction=en.prototype.handleUpdateNotificationsUnseenCountAction;en.prototype.onDataChanged=en.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],en.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.fQ),_.Y("design:type",Object)],en.prototype,"ytdOpenPopupBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],en.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],en.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],en.prototype,"unseenCount",void 0);_.c([_.g(),_.Y("design:type",Object)],en.prototype,"isOverlay",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],en.prototype,"showTooltips",void 0);_.c([_.uc("yt-icon-button"),_.Y("design:type",Object)],en.prototype,"iconButton",void 0);
_.c([_.T("unseenCount"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],en.prototype,"showNotificationCount",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],en.prototype,"onDataChanged",null);_.c([_.hG("yt-update-notifications-unseen-count-action"),_.Y("design:type",Function),_.Y("design:paramtypes",[Object]),_.Y("design:returntype")],en.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.c([_.l({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],en);
_.y(en,"ytd-notification-topbar-button-renderer",function(){if(BQ9!==void 0)return BQ9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return BQ9=O},{mode:_.ZB("kevlar_poly_si_batch_j025")?1:2});var H13;var Dt=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return O};
_.X(Dt,_.u);Dt.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}}}}}};
Dt.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Dt.prototype.onDarkModeToggled=function(O){this.dark=O};
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Dt.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Dt.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Dt.prototype,"data",void 0);_.c([_.g({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],Dt.prototype,"dark",void 0);
_.c([_.l({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Dt);
_.y(Dt,"yt-pdg-buy-flow-header-renderer",function(){if(H13!==void 0)return H13;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return H13=O},{mode:1});var vTb;var KCx;var s7=function(){var O=_.u.apply(this,arguments)||this;O.immediateValue=0;O.isDarkTheme=!1;O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.X(s7,_.u);_.v=s7.prototype;_.v.created=function(){_.Bz.requestAvailability()};
_.v.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.v.dataChanged=function(){var O=_.ZO(this.hostElement).querySelector("#color-slider");O.immediateValue&&this.updateSliderKnobAndGradientStyles(O.immediateValue);this.data.notches[0].knobColorArgb&&_.n7(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.AV(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.kB("HTML_DIR")==="rtl"&&_.ZO(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.v.onSliderImmediateChange=function(){var O=_.ZO(this.hostElement).querySelector("#color-slider");O.dragging&&(O.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(O.immediateValue),this.updateSliderKnobAndGradientStyles(O.immediateValue)),this.updateSliderAria())};
_.v.onSliderChange=function(){var O=_.ZO(this.hostElement).querySelector("#color-slider");O.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(O.immediateValue),this.updateSliderKnobAndGradientStyles(O.immediateValue));this.updateSliderAria()};
_.v.updateSliderAria=function(){var O=_.ZO(this.hostElement).querySelector("#color-slider"),m=_.ZO(this.hostElement).querySelector("#color-slider");m=_.HX(this.data.notches[m.immediateValue].tierValue);_.rzS()&&_.iP(this.hostElement,"iron-announce",{text:m});O.setAttribute("aria-valuetext",m)};
_.v.updateSuperThanksSelectedTierEntity=function(O){if(O!==this.immediateValue){var m,G,B=this==null?void 0:(m=this.data)==null?void 0:(G=m.superThanksSelectedTierEntity)==null?void 0:G.key;B&&B.length>0&&this.ytdReduxBehavior.dispatch(_.jh("superThanksSelectedTierEntity",B,{key:B,index:O}))}};
_.v.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.v.updateSliderKnobAndGradientStyles=function(O){this.immediateValue=O;O=this.data.notches[O];if(O==null?0:O.knobColorArgb)var m={"--ytd-pdg-color-slider-knob-color":_.AV(O.knobColorArgb)};(O==null?0:O.linearGradientCssStyle)&&m!==null&&(m=Object.assign({},m,{"--ytd-pdg-color-slider-active-color":O==null?void 0:O.linearGradientCssStyle}));m!==null&&_.n7(this.hostElement,m)};
s7.prototype.onSliderChange=s7.prototype.onSliderChange;s7.prototype.onSliderImmediateChange=s7.prototype.onSliderImmediateChange;s7.prototype.dataChanged=s7.prototype.dataChanged;_.c([_.g(),_.Y("design:type",Object)],s7.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],s7.prototype,"immediateValue",void 0);_.c([_.g(),_.Y("design:type",Number)],s7.prototype,"maxMarkers",void 0);
_.c([_.g({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:GLB}),_.Y("design:type",Object)],s7.prototype,"superThanksSelectedTierEntity",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],s7.prototype,"isDarkTheme",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],s7.prototype,"ytdReduxBehavior",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s7.prototype,"dataChanged",null);
_.c([_.hG("immediate-value-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s7.prototype,"onSliderImmediateChange",null);_.c([_.hG("change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],s7.prototype,"onSliderChange",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],s7);
_.y(s7,"ytd-pdg-color-slider-renderer",function(){if(KCx!==void 0)return KCx;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return KCx=O},{mode:1});var $EB;var MvA;var Nz=null;
_.kZ({is:"ytd-comment-input",_template:function(){if(MvA!==void 0)return MvA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return MvA=O},
behaviors:[_.SAp.YtHostElementBehavior,_.l8,_.xo.YtComponentBehavior,_.j1.YtRendererstamperBehavior,_.aW8.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 _.UL}},
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",_.f7(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;_.uU();this.focus()},
detached:function(){document.removeEventListener("tap",_.f7(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(O){O=O.detail;O=O.isCustomEmoji?O.shortcuts[0]:O.emojiId;var m=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(m,O);this.maybeUpdateTextDirection_();_.iP(this.hostElement,"input")},
getInputRange_:function(){var O=_.tI();if(O){O=O.getBrowserRangeObject();for(var m=O.commonAncestorContainer;m;){if(m===this.getEditableTextArea_())return O;m=m.parentNode}}O=this.getEditableTextArea_();O=_.Ax(O,O.childNodes.length);O.select();return O.getBrowserRangeObject()},
insertTextWithEmojis_:function(O,m,G){(m=this.emojiManager.createDocumentFragment(m,!0,!1,G===void 0?!0:G))&&m.childNodes.length!==0&&(O.collapsed||O.deleteContents(),G=m.lastChild,O.insertNode(m),_.$js(G).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var O=_.tI();if(O){var m=O.JSC$11350_getStartNode(),G=O.JSC$11350_getEndNode();if(e$y(m)&&e$y(G)){var B=O.JSC$11350_getStartOffset(),Q;if(_.Wp&&m.nodeType===Node.ELEMENT_NODE&&(Q=_.$Jm(m)))_.Ax(Q,0).select();else{Q=Ht(m)?m:_.w9(m,Ht);var H=Ht(G)?G:_.w9(G,Ht);if(Q||H)if(O.isCollapsed()){if(m.nodeType===Node.TEXT_NODE){O=!0;B===m.length&&(O=!1);if(Nz==="end"||Nz==="right")O=!1;m=m.parentNode;O=[].concat(_.lS(m.parentNode.childNodes)).indexOf(m)+(O?0:1);_.Ax(m.parentNode,
O).select()}}else Q?Q.previousSibling&&Q.previousSibling.length>0?_.Oo(G,O.JSC$11350_getEndOffset(),Q.previousSibling,Q.previousSibling.length-1).select():(m=document.createTextNode("\u200b"),Q.parentNode.insertBefore(m,Q),_.Oo(G,O.JSC$11350_getEndOffset(),m,0).select()):H&&(H.nextSibling&&H.nextSibling.length>0?_.Oo(m,O.JSC$11350_getStartOffset(),H.nextSibling,1).select():(G=document.createTextNode("\u200b"),H.parentNode.insertBefore(G,H.nextSibling),_.Oo(m,O.JSC$11350_getStartOffset(),G,G.length).select()));
Nz=null}}else Nz=null}else Nz=null},
leftKeyPressed_:function(){Nz="left"},
rightKeyPressed_:function(){Nz="right"},
endKeyPressed_:function(){Nz="end"},
maybeDeleteChip_:function(){var O=AHA(!0);if(O){var m=_.tI(),G=m.JSC$11350_getStartNode();m=m.JSC$11350_getStartOffset();_.Dd(G,m,O,O.childNodes.length).select()}},
maybeBackspaceChip_:function(){var O=AHA(!1);if(O){var m=_.tI(),G=m.JSC$11350_getStartNode();m=m.JSC$11350_getStartOffset();_.Dd(G,m,O,0).select()}},
maybeBackspaceChipWordMode_:function(O){var m=_.tI();if(m.isCollapsed()){var G=m.JSC$11350_getStartNode();m=m.JSC$11350_getStartOffset();var B=OJh(G,m,!0);B&&(_.Dd(G,m,B,0).select(),document.execCommand("delete"),O.preventDefault(),O.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(O){var m=_.tI();if(m.isCollapsed()){var G=m.JSC$11350_getStartNode();m=m.JSC$11350_getStartOffset();var B=OJh(G,m,!1);B&&(_.Dd(G,m,B,B.childNodes.length).select(),document.execCommand("delete"),O.preventDefault(),O.stopImmediatePropagation())}},
onContentClick:function(O){O.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(O){O.defaultPrevented||O.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Ht(O.target)&&O.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.ZO(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.ZO(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(O,m){O=sZy(O,this.emojiManager,m).cloneNode(!0);for(m=O.firstChild;m;)if(m.nodeType!==1)m=m.nextSibling;else switch(m.tagName){case "BR":var G=_.k7();_.tK_(G,m);m=G.nextSibling;break;case "DIV":(G=m.lastChild)&&m.nextSibling&&_.ds(_.k7(),G);m.previousSibling&&(m.previousSibling.nodeType===1||m.previousSibling.nodeType===3&&!m.previousSibling.textContent.endsWith("\n"))&&_.Y7(_.k7(),m);G&&G.nodeName==="BR"&&_.hF(G);G=m;m.hasChildNodes()?(m=m.firstChild,
_.WAp(G)):(m=m.nextSibling,_.hF(G));break;default:m=m.nextSibling}return m1K(O)},
setTextAreaValue:function(O){O||(O="");var m=this.getEditableFormattedString_();m.text="";this.getEditableTextArea_().innerText="";typeof O==="string"&&(O={runs:[{text:O}]});m.text=O},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Nz=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var O=this.getEditableTextArea_();O&&(_.Ax(O,O.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.kB("HTML_DIR")==="rtl"){var O=this.getEditableTextArea_(),m=this.getTextAreaValue()!==""?"auto":"rtl";O.setAttribute("dir",m)}},
handleInputEvent_:function(){var O=null;if(this.isEmojiButtonDisplayed){var m=this.getInputRange_();m&&(O=this.emojiInput.retrieveTextBeforeRange(m))}this.insertText_(O,!0);this.updateCharCount_();O=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=O.scrollHeight>O.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var O=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:O})},
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(O){this.isEmojiButtonDisplayed&&(O.preventDefault(),O.stopImmediatePropagation(),O=O.clipboardData.getData("text/plain"),this.insertText_(O,!1,!1),_.iP(this.hostElement,"input"))},
insertText_:function(O,m,G){m=m===void 0?!1:m;G=G===void 0?!0:G;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&O){var B=this.getInputRange_().cloneRange();this.emojiManager&&B&&(m&&this.emojiInput.offsetStartOfRangeBy(B,O.length),this.insertTextWithEmojis_(B,O,G),Diy(this.getEditableTextArea_().lastChild)||(B=this.getInputRange_().cloneRange()),B&&(this.emojiInput.updateSuggestions(B,O),this.updateSuggestionOffset_(B)))}},
getSimpleString:_.HX,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(O){return O?"focused":"not-focused"},
computePlaceholderText_:function(O){return this.getSimpleString(O)},
computeEditableText_:function(O){return this.getSimpleString(O)},
onPrefilledContentDismissed_:function(O){O.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(O,m){O?this.fire("yt-autonav-pause-focus"):m!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(O){var m=this.getEditableTextArea_();[].concat(_.lS(O.dataTransfer.items)).forEach(function(G){G.kind==="string"&&G.type.match("^text/plain")&&G.getAsString(function(B){m.appendChild(document.createTextNode(B))})});
O.preventDefault()},
preventDefault_:function(O){O.preventDefault()},
onSuggestionInsert_:function(O){this.insertTextWithEmojis_(O.detail.range,O.detail.text)},
onEmojiSuggestionClick_:function(O){this.emojiInput.insertSuggestion(O.detail)},
updateSuggestionOffset_:function(O){if(this.emojiInput&&_.ZO(this.emojiInput).querySelector("#dropdown")){var m=this.getEditableTextArea_().getBoundingClientRect().bottom,G=O.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(m-G)+5;m=this.getEditableTextArea_().getBoundingClientRect().left;O=O.getBoundingClientRect().left-m;_.ZO(this.emojiInput).querySelector("#dropdown").style.marginLeft=O+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.YG("yt-post"));return this.localStorage}});var Pl=function(){var O=_.u.apply(this,arguments)||this;O.currentCommentOptionIndex=0;O.isEmojiPickerDisplayed=!1;O.emojiManager=_.UL;O.isUgcEmpty=!1;O.userGeneratedCommentChangedHandler=function(){_.iP(O.hostElement,"ytd-pdg-user-generated-comment-changed");O.isEmojiYtdCommentInputEnabled&&(O.isUgcEmpty=!O.ytdCommentInputEl.getTextAreaValue())};
O.pasteHandler=function(m){m.preventDefault();m.stopImmediatePropagation();var G;if(m=(G=m.clipboardData)==null?void 0:G.getData("text/plain"))G=document.getSelection().getRangeAt(0),G.collapsed||G.deleteContents(),m=document.createTextNode(m),G.insertNode(m),G.selectNodeContents(m),G.collapse(!1),m=window.getSelection(),m.removeAllRanges(),m.addRange(G)};
O.onDocumentClick=function(m){if(O.isEmojiPickerDisplayed){var G,B,Q;!(m.target instanceof Node)||(G=m.composedPath())!=null&&G.includes(O.editableTextEl)||(B=m.composedPath())!=null&&B.includes(O.emojiButtonEl)||(Q=m.composedPath())!=null&&Q.includes(O.emojiPickerEl)||(O.isEmojiPickerDisplayed=!1)}};
return O};
_.X(Pl,_.u);_.v=Pl.prototype;_.v.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.v.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.v.detached=function(){var O;(O=this.contentEl)==null||O.removeEventListener("input",this.userGeneratedCommentChangedHandler);var m;(m=this.contentEl)==null||m.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.v.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.v.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var O;this.contentEl.textContent=this.rendererBehavior.getSimpleString((O=this.data)==null?void 0:O.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.v.reloadEmojis=function(){this.emojiPickerEl&&_.b(this.emojiPicker,_.EJ_)&&this.emojiPickerEl.updateEmojiCategories()};
_.v.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.n7(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.v.handleBackgroundColorStyling=function(){var O;if((O=this.currentCommentOption)==null?0:O.commentBackgroundColorArgb){var m;_.n7(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.AV((m=this.currentCommentOption)==null?void 0:m.commentBackgroundColorArgb)})}else _.n7(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.v.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var O;(O=this.contentEl)==null||O.focus()}};
_.v.onEditButtonClick=function(O){var m=document.getSelection();m&&this.contentEl&&(O.stopPropagation(),O.preventDefault(),m.selectAllChildren(this.contentEl),m.collapseToEnd())};
_.v.onContentDrop=function(O){var m=this;if(O.dataTransfer){O=_.K(O.dataTransfer.items);for(var G=O.next();!G.done;G=O.next())G=G.value,G.kind==="string"&&G.type.match("^text/plain")&&G.getAsString(function(B){var Q;(Q=m.contentEl)==null||Q.appendChild(document.createTextNode(B))})}};
_.v.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.v.getUserGeneratedCommentText=function(){var O,m=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(O=this.contentEl)==null?void 0:O.textContent;return m?m.trim():""};
_.v.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.v.onEmojiSelect=function(O){this.ytdCommentInputEl.onEmojiSelect(O)};
_.vr.Object.defineProperties(Pl.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.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 O;return!((O=this.currentCommentOption)==null||!O.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var O;if(_.b((O=this.currentCommentOption)==null?void 0:O.chipRenderer,_.mO$)){var m;return _.b((m=this.currentCommentOption)==null?void 0:m.chipRenderer,_.mO$)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var O,m;return((O=this.data)==null?0:O.commentOptionRenderers)?_.b((m=this.data)==null?void 0:m.commentOptionRenderers[this.superThanksSelectedTierEntity.index],EkB):void 0}var G,B;return((G=this.data)==null?0:G.commentOptionRenderers)?_.b((B=this.data)==null?void 0:B.commentOptionRenderers[this.currentCommentOptionIndex],EkB):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var O;return this.rendererBehavior.getSimpleString((O=this.data)==null?void 0:O.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var O;return this.rendererBehavior.getSimpleString((O=this.data)==null?void 0:O.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var O,m;return(m=_.b((O=this.data)==null?void 0:O.commentDialog,_.Gmu))==null?void 0:m.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var O,m;return(m=_.b((O=this.data)==null?void 0:O.commentDialog,_.Gmu))==null?void 0:m.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var O,m;return(m=_.b((O=this.data)==null?void 0:O.commentDialog,_.Gmu))==null?void 0:m.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var O,m,G=(m=_.b((O=this.data)==null?void 0:O.commentDialog,_.Gmu))==null?void 0:m.emojiPicker;if(!_.b(G,_.EJ_)||!_.b(G,_.EJ_).categories)return!1;O=function(H){return H.emojiPickerCategoryRenderer?H.emojiPickerCategoryRenderer.emojiIds&&H.emojiPickerCategoryRenderer.emojiIds.length>0:H.emojiPickerUpsellCategoryRenderer?H.emojiPickerUpsellCategoryRenderer.emojis&&H.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var B,Q;return((B=_.b(G,_.EJ_))==null?0:(Q=B.categories)==null?0:Q.find(O))?!0:!1}}});
Pl.prototype.onEmojiSelect=Pl.prototype.onEmojiSelect;Pl.prototype.dataChanged=Pl.prototype.dataChanged;Pl.prototype.currentCommentOptionChanged=Pl.prototype.currentCommentOptionChanged;_.c([_.h(_.MK),_.Y("design:type",Object)],Pl.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Pl.prototype,"rendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Pl.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.uc("#content-dom-if"),_.Y("design:type",_.dX)],Pl.prototype,"contentDomIfEl",void 0);_.c([_.uc("#content-no-emojis"),_.Y("design:type",HTMLElement)],Pl.prototype,"contentEl",void 0);_.c([_.uc("#container"),_.Y("design:type",HTMLElement)],Pl.prototype,"containerEl",void 0);_.c([_.uc("#comment-chip-container"),_.Y("design:type",HTMLElement)],Pl.prototype,"paidCommentChipContainerEl",void 0);_.c([_.uc("#text-input"),_.Y("design:type",HTMLElement)],Pl.prototype,"editableTextEl",void 0);
_.c([_.uc("#emoji-button"),_.Y("design:type",HTMLElement)],Pl.prototype,"emojiButtonEl",void 0);_.c([_.uc("#emoji-picker > yt-emoji-picker-renderer"),_.Y("design:type",Object)],Pl.prototype,"emojiPickerEl",void 0);_.c([_.uc("#text-input > ytd-comment-input"),_.Y("design:type",Object)],Pl.prototype,"ytdCommentInputEl",void 0);_.c([_.g(),_.Y("design:type",Object)],Pl.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Pl.prototype,"currentCommentOptionIndex",void 0);
_.c([_.g({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:GLB}),_.Y("design:type",Object)],Pl.prototype,"superThanksSelectedTierEntity",void 0);_.c([_.g(),_.Y("design:type",Object)],Pl.prototype,"isEmojiPickerDisplayed",void 0);_.c([_.g(),_.Y("design:type",Object)],Pl.prototype,"emojiManager",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Pl.prototype,"isUgcEmpty",void 0);
_.c([_.Tw("currentCommentOption"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pl.prototype,"currentCommentOptionChanged",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Pl.prototype,"dataChanged",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pl.prototype,"isEmojiYtdCommentInputEnabled",null);
_.c([_.T("data.title"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pl.prototype,"title",null);_.c([_.T("data.authorText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pl.prototype,"channelName",null);_.c([_.T("data.commentOptionRenderers","currentCommentOption"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pl.prototype,"shouldShowPaidCommentChipRenderer",null);
_.c([_.T("data.commentOptionRenderers","currentCommentOption"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pl.prototype,"paidCommentChipRenderer",null);_.c([_.T("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pl.prototype,"currentCommentOption",null);
_.c([_.T("data.defaultCommentText","superThanksSelectedTierEntity"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pl.prototype,"commentText",null);_.c([_.T("data.placeholderText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pl.prototype,"placeholderText",null);_.c([_.T("data.commentDialog.commentDialogRenderer.editableText"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pl.prototype,"editableText",null);
_.c([_.T("data.commentDialog.commentDialogRenderer.emojiButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pl.prototype,"emojiButton",null);_.c([_.T("data.commentDialog.commentDialogRenderer.emojiPicker"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Pl.prototype,"emojiPicker",null);
_.c([_.T("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],Pl.prototype,"isEmojiButtonDisplayed",null);_.c([_.hG("yt-emoji-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],Pl.prototype,"onEmojiSelect",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Pl);
_.y(Pl,"ytd-pdg-comment-preview-renderer",function(){if($EB!==void 0)return $EB;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return $EB=O},{mode:2});var rkr;var F1=function(){var O=_.u.apply(this,arguments)||this;O.selected=!1;return O};
_.X(F1,_.u);_.v=F1.prototype;_.v.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.v.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.v.dataChanged=function(){this.data&&(_.zw(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.n7(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.AV(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.AV(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.v.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.v.onClick=function(){this.logClick()};
_.v.onKeyboardSelect=function(){_.iP(this.hostElement,"tap");this.onClick()};
_.v.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
F1.prototype.onClick=F1.prototype.onClick;F1.prototype.selectedChanged=F1.prototype.selectedChanged;F1.prototype.dataChanged=F1.prototype.dataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],F1.prototype,"componentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],F1.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.l8),_.Y("design:type",Object)],F1.prototype,"ironA11yKeysBehavior",void 0);
_.c([_.h(_.Qa),_.Y("design:type",Object)],F1.prototype,"ironSelectableBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],F1.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],F1.prototype,"shownThumbnail",void 0);_.c([_.g(),_.Y("design:type",Object)],F1.prototype,"basePriceText",void 0);_.c([_.g(),_.Y("design:type",Object)],F1.prototype,"purchaseCommand",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],F1.prototype,"selected",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],F1.prototype,"dataChanged",null);_.c([_.Tw("selected"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],F1.prototype,"selectedChanged",null);_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],F1.prototype,"onClick",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],F1);
_.y(F1,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(rkr!==void 0)return rkr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return rkr=O},{mode:1});var A3=function(){var O=_.u.apply(this,arguments)||this;O.selectedItemIndex=0;O.buyButtonDisabled=!1;return O};
_.X(A3,_.u);_.v=A3.prototype;
_.v.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]]"}}}}}};
_.v.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var O;var m=(O=_.b(this.data.colorSlider,SLr))==null?void 0:O.notches[this.selectedItemIndex].purchaseCommand}else{var G;m=(G=_.b(this.data.selectableItemButtons[this.selectedItemIndex],COr))==null?void 0:G.purchaseCommand}if(m){O=_.b(m,_.lc8);O.productData||(O.productData={});var B;O.productData={pdgData:{commentMessageText:(B=this.commentPreviewRenderer)==null?void 0:B.getUserGeneratedCommentText()}};
_.iP(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(m)}}};
_.v.dataChanged=function(){if(this.data){_.UL.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.Ug9(_.UL,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.UL.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var O;this.buyButtonDisabled=!((O=_.b(this.data.commentPreview,LTu))==null||!O.placeholderText);this.updatePriceSelectorStatus();var m;if((m=this.data)==null?0:m.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;O=[];this.data.preloadImages&&(O=this.data.preloadImages);
O=O.map(function(G){return _.Uf(G.thumbnails,1920)});
O=_.K(O);for(m=O.next();!m.done;m=O.next())(m=m.value)&&_.Rrz(m).thenCatch(function(){_.ay(Error("Cl"))})}};
_.v.superThanksSelectedTierEntityChanged=function(){var O;(this==null?void 0:(O=this.superThanksSelectedTierEntity)==null?void 0:O.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.v.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.v.updatePriceSelectorStatus=function(){this.isColorSlider?(_.ZO(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.ZO(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.ZO(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.ZO(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.v.closeBuyFlow=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.v.onUserGeneratedContentChanged=function(){var O;this.buyButtonDisabled=!((O=this.commentPreviewRenderer)==null?0:O.getUserGeneratedCommentText())};
_.v.updateSelectedItemIndexFromBinding=function(O){this.selectedItemIndex=O.detail.value};
_.vr.Object.defineProperties(A3.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var O;return!((O=this.data)==null||!O.disclaimerText)}}});
A3.prototype.onUserGeneratedContentChanged=A3.prototype.onUserGeneratedContentChanged;A3.prototype.closeBuyFlow=A3.prototype.closeBuyFlow;A3.prototype.selectedItemIndexChanged=A3.prototype.selectedItemIndexChanged;A3.prototype.superThanksSelectedTierEntityChanged=A3.prototype.superThanksSelectedTierEntityChanged;A3.prototype.dataChanged=A3.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],A3.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],A3.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],A3.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],A3.prototype,"selectedItemIndex",void 0);_.c([_.g(),_.Y("design:type",Boolean)],A3.prototype,"isColorSlider",void 0);
_.c([_.g(),_.Y("design:type",Object)],A3.prototype,"buyButtonDisabled",void 0);_.c([_.g({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:GLB}),_.Y("design:type",Object)],A3.prototype,"superThanksSelectedTierEntity",void 0);_.c([_.uc("ytd-pdg-comment-preview-renderer"),_.Y("design:type",Object)],A3.prototype,"commentPreviewRenderer",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],A3.prototype,"ytdReduxBehavior",void 0);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A3.prototype,"dataChanged",null);_.c([_.Tw("superThanksSelectedTierEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A3.prototype,"superThanksSelectedTierEntityChanged",null);_.c([_.Tw("selectedItemIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A3.prototype,"selectedItemIndexChanged",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A3.prototype,"closeBuyFlow",null);_.c([_.hG("ytd-pdg-user-generated-comment-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A3.prototype,"onUserGeneratedContentChanged",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],A3.prototype,"isDisclaimerTextShown",null);
_.c([_.l({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],A3);
_.y(A3,"yt-super-vod-buy-flow-content-renderer",function(){if(vTb!==void 0)return vTb;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return vTb=O},{mode:1});var Rns;var OC=function(){var O=_.u.apply(this,arguments)||this;O.lottieAnimationRef={};return O};
_.X(OC,_.u);_.v=OC.prototype;_.v.created=function(){_.Bz.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.f7(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.v.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.iP(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.v.detached=function(){this.autoCloseJobId&&_.ln.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.f7(this,this.onPopupIronOverlayOpened))};
_.v.dataChanged=function(){var O=this;this.data&&this.data.autoCloseDelay&&(_.xc(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.z$(_.ln,function(){O.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.n7(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.v.onDOMLoadedLottie=function(){var O=this,m,G,B=Number((m=this.data)==null?void 0:(G=m.autoCloseDelay)==null?void 0:G.seconds)||0;this.fadeOutJobId=_.z$(_.ln,function(){O.lottiePlayerEl.classList.add("fadeout")},(B-.25)*1E3);
this.autoCloseJobId=_.z$(_.ln,function(){O.closePopup()},B*1E3)};
_.v.openPopup=function(){this.ironOverlayBehavior.open()};
_.v.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.xc(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Wd(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.KR().resolve(_.Mu).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.ln.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.ln.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.v.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var O,m;(O=this.lottieAnimationRef)==null||(m=O.lottieEl)==null||m.destroy();O=this.data.lottie;var G,B;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:O.url+"_"+Math.random(),path:O.url,autoplay:!0,loop:(B=(G=O.settings)==null?void 0:G.loop)!=null?B:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.vr.Object.defineProperties(OC.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var O,m;return!!((O=this.data)==null?0:(m=O.lottie)==null?0:m.url)}}});
OC.prototype.maybeInitializeLottie=OC.prototype.maybeInitializeLottie;OC.prototype.dataChanged=OC.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],OC.prototype,"rendererBehavior",void 0);_.c([_.h(_.Mc),_.Y("design:type",Object)],OC.prototype,"ironOverlayBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],OC.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],OC.prototype,"lottiePlayerProps",void 0);
_.c([_.g(),_.Y("design:type",Object)],OC.prototype,"lottieAnimationRef",void 0);_.c([_.uc("ytd-lottie-player"),_.Y("design:type",HTMLElement)],OC.prototype,"lottiePlayerEl",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OC.prototype,"dataChanged",null);_.c([_.T("data"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],OC.prototype,"hasLottieAnimation",null);
_.c([_.Tw("data.lottie.url"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],OC.prototype,"maybeInitializeLottie",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],OC);
_.y(OC,"ytd-desktop-image-overlay-renderer",function(){if(Rns!==void 0)return Rns;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Rns=O},{mode:1});var i1s;var mJ=function(){return _.u.apply(this,arguments)||this};
_.X(mJ,_.u);_.v=mJ.prototype;_.v.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"}}}}};
_.v.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",_.f7(this,this.closePopup))};
_.v.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.f7(this,this.closePopup))};
_.v.dataChanged=function(){_.UB(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.b(this.data.header,pTr)&&(this.hasBackgroundBanner=!!_.b(this.data.header,pTr).backgroundBanner)};
_.v.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.f7(this,this.closePopup))};
_.v.closePopup=function(){this.data&&this.data.onCloseCommand&&_.tK(this.hostElement,[this.data.onCloseCommand])};
mJ.prototype.handleBuyflowSelectionSubmitted=mJ.prototype.handleBuyflowSelectionSubmitted;mJ.prototype.dataChanged=mJ.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mJ.prototype,"data",void 0);
_.c([_.g({value:!0,reflectToAttribute:!0}),_.Y("design:type",Boolean)],mJ.prototype,"hasBackgroundBanner",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mJ.prototype,"dataChanged",null);_.c([_.hG("yt-pdg-buy-flow-selection-submitted"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mJ.prototype,"handleBuyflowSelectionSubmitted",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],mJ);
_.y(mJ,"ytd-pdg-buy-flow-renderer",function(){if(i1s!==void 0)return i1s;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return i1s=O},{mode:1});var xE9;var G2=function(){var O=_.u.apply(this,arguments)||this;O.isOpen=!1;O.isPlaylistCreated=!1;return O};
_.X(G2,_.u);_.v=G2.prototype;_.v.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.v.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.iP(this.hostElement,"yt-refit")};
_.v.onCreateTap=function(){var O=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.tK(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(m,G){if(!_.V("killswitch_ep_in_create_playlist_response")&&(G==null?0:G.actions))for(m=_.K(G.actions),G=m.next();!G.done;G=m.next())G=G.value,_.b(G,_.pk)&&O.ytComponentBehavior.resolveCommand(G)}}]),this.isPlaylistCreated=!0)};
_.v.onKeydown=function(O){if(O.keyCode===13)this.onCreateTap()};
_.v.onServiceRequestCompleted=function(O){O.stopPropagation();_.xc(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.v.computePrivacyBadge=function(O){return O?[{metadataBadgeRenderer:O}]:[]};
G2.prototype.onServiceRequestCompleted=G2.prototype.onServiceRequestCompleted;G2.prototype.onKeydown=G2.prototype.onKeydown;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],G2.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],G2.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],G2.prototype,"isOpen",void 0);
_.c([_.g(),_.Y("design:type",Object)],G2.prototype,"isPlaylistCreated",void 0);_.c([_.g({value:{REQUIRED_LABEL:_.Xm("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Xm("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Y("design:type",Object)],G2.prototype,"addToStrings",void 0);_.c([_.g({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.Y("design:type",Array)],G2.prototype,"privacyBadge",void 0);
_.c([_.uc("#privacy-input"),_.Y("design:type",Object)],G2.prototype,"privacyInput",void 0);_.c([_.uc("#name-input"),_.Y("design:type",Object)],G2.prototype,"nameInput",void 0);_.c([_.hG("keydown"),_.Y("design:type",Function),_.Y("design:paramtypes",[KeyboardEvent]),_.Y("design:returntype")],G2.prototype,"onKeydown",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],G2.prototype,"onServiceRequestCompleted",null);
_.c([_.l({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],G2);
_.y(G2,"ytd-add-to-playlist-create-renderer",function(){if(xE9!==void 0)return xE9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return xE9=O},{mode:1});var qYA;var UE9;var By=function(){var O=_.u.apply(this,arguments)||this;O.transferState="TRANSFER_STATE_UNKNOWN";return O};
_.X(By,_.u);By.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
By.prototype.onCheckboxChange=function(O){var m=this;this.data&&_.GS(this,"yt-playlist-checkbox-changed",function(){var G=_.Mj(O).checked?m.data.addToPlaylistServiceEndpoint:m.data.removeFromPlaylistServiceEndpoint;G&&_.KR().resolve(_.Mu).resolveCommand(G,{form:{element:m.hostElement}});_.V("dl_playlist_killswitch")||m.transferState!=="TRANSFER_STATE_UNKNOWN"&&m.transferState!=="TRANSFER_STATE_FAILED"&&m.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:m.data.playlistId,action:"ACTION_SYNC"}})},
100)};
By.prototype.computeIconType=function(O){return O?"yt-icons:"+O.toLowerCase():null};
By.prototype.dataChanged=By.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],By.prototype,"data",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],By.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],By.prototype,"ytComponentBehavior",void 0);_.c([_.uc("#checkbox"),_.Y("design:type",HTMLInputElement)],By.prototype,"checkbox",void 0);
_.c([_.g({selector:_.Dh,selectorArgs:["data.playlistId"]}),_.Y("design:type",String)],By.prototype,"transferState",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],By.prototype,"dataChanged",null);_.c([_.l({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],By);
_.y(By,"ytd-playlist-add-to-option-renderer",function(){if(UE9!==void 0)return UE9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return UE9=O},{mode:1});var tvs=_.a(function(O){var m=O.data;return _.q("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.q("div",null,_.q(_.Jg,{text:function(){return m().title}})),_.q(_.U,{cond:function(){return m().subtitle},
then:function(G){return _.q("div",{class:"ytdMenuTitleRendererSubtitle"},_.q(_.Jg,{text:G}))}}))},"Ch");
tvs.idomCompat=!0;_.qi(tvs,"ytd-menu-title-renderer",{props:{data:_.VZ}});var QP=function(){var O=_.u.apply(this,arguments)||this;O.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Xm("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};O.closeButtonAriaLabel=_.Xm("SBOX_INAPPROPRIATE_CANCEL");O.dialog=_.V("desktop_add_to_playlist_renderer_dialog_popup");return O};
_.X(QP,_.u);_.v=QP.prototype;_.v.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"}}}};
_.v.onPopupOpened=function(){_.JG(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.v.onPopupClosed=function(){_.JG(this.playlists,"scrollable",!1)};
_.v.computeAriaLabel=function(){var O;if(this==null?0:(O=this.data)==null?0:O.actions){O=_.K(this.data.actions);for(var m=O.next();!m.done;m=O.next())if(m=m.value,m.menuTitleRenderer)return _.HX(m.menuTitleRenderer.title)}};
_.v.onTapClose=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.vr.Object.defineProperties(QP.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var O;if(this==null?0:(O=this.data)==null?0:O.actions){O=_.K(this.data.actions);for(var m=O.next();!m.done;m=O.next())if(m=m.value,m.menuTitleRenderer)return m.menuTitleRenderer}return!1}}});
QP.prototype.onPopupClosed=QP.prototype.onPopupClosed;QP.prototype.onPopupOpened=QP.prototype.onPopupOpened;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],QP.prototype,"ytEventForwardingBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],QP.prototype,"ytRendererStamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],QP.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],QP.prototype,"addToStrings",void 0);_.c([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],QP.prototype,"ariaLabel",void 0);_.c([_.g(),_.Y("design:type",String)],QP.prototype,"closeButtonAriaLabel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],QP.prototype,"dialog",void 0);
_.c([_.uc("#playlists"),_.Y("design:type",HTMLElement)],QP.prototype,"playlists",void 0);_.c([_.uc("ytd-add-to-playlist-create-renderer"),_.Y("design:type",Object)],QP.prototype,"createRenderer",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],QP.prototype,"menuTitleRenderer",null);_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QP.prototype,"onPopupOpened",null);
_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],QP.prototype,"onPopupClosed",null);_.c([_.l({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],QP);
_.y(QP,"ytd-add-to-playlist-renderer",function(){if(qYA!==void 0)return qYA;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return qYA=O},{mode:1});var WCx;var Hy=function(){var O=_.u.apply(this,arguments)||this;O.isPlaylistEditComplete=!1;O.isCollabEngagementDisabled=!1;O.closeButtonAriaLabel=_.Xm("SBOX_INAPPROPRIATE_CANCEL");O.saveButton={title:_.Xm("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"};O.onValueChanged=function(){O.updateSaveButtonState();O.computeCollabEngagementDisabled()};
return O};
_.X(Hy,_.u);_.v=Hy.prototype;_.v.attached=function(){this.JSC$20542_scroller&&(this.JSC$20542_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20542_scroller.attached&&typeof this.JSC$20542_scroller.attached==="function"&&this.JSC$20542_scroller.attached())};
_.v.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.v.onPopupClosed=function(){this.reset()};
_.v.close=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.v.onClickSave=function(){var O=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var m=[];this.nameInput.value!==null&&m.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&m.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var G=Number(this.privacyInput.value);isNaN(G)||m.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:G})}this.votingInput.value!==null&&(G=this.votingInput.value)&&m.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:G});if(m.length>0){var B;_.b((B=this.data)==null?void 0:B.updateSettingsEndpoint,_.B3).actions=m;var Q;if((Q=this.data)==null?0:Q.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){O.close()}}}),this.isPlaylistEditComplete=!0}}};
_.v.computePrivacyBadge=function(O){return O?[{metadataBadgeRenderer:O}]:[]};
_.v.computeEditorData=function(O){var m,G;return O==null?void 0:(m=O.sections)==null?void 0:(G=m[0])==null?void 0:G.playlistSettingsEditorCasualSectionRenderer};
_.v.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.v.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}}}}}};
_.v.computeAriaLabel=function(){var O,m,G,B=(O=this.data)==null?void 0:(m=O.sections)==null?void 0:(G=m[0])==null?void 0:G.playlistSettingsEditorCasualSectionRenderer;return _.HX(B==null?void 0:B.title)};
_.v.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"}))};
_.v.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.v.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.v.isNameChanged=function(){var O,m,G;return(((O=this.editorData)==null?void 0:(m=O.name)==null?void 0:(G=m.textInputFormFieldRenderer)==null?void 0:G.value)||"")!==(this.nameInput.value||"")};
_.v.isDescriptionChanged=function(){var O,m,G;return(((O=this.editorData)==null?void 0:(m=O.description)==null?void 0:(G=m.textInputFormFieldRenderer)==null?void 0:G.value)||"")!==(this.descriptionInput.value||"")};
_.v.isPrivacyChanged=function(){var O,m,G,B,Q,H,M,R;return((M=(O=this.editorData)==null?void 0:(m=O.privacy)==null?void 0:(G=m.dropdownFormFieldRenderer)==null?void 0:(B=G.dropdown)==null?void 0:(Q=B.dropdownRenderer)==null?void 0:(H=Q.entries)==null?void 0:H.find(function(x){var t;return x==null?void 0:(t=x.privacyDropdownItemRenderer)==null?void 0:t.isSelected}))==null?void 0:(R=M.privacyDropdownItemRenderer)==null?void 0:R.int32Value)!==this.privacyInput.value};
_.v.isVotingChanged=function(){var O,m,G,B,Q,H,M,R;return((M=(O=this.editorData)==null?void 0:(m=O.voting)==null?void 0:(G=m.dropdownFormFieldRenderer)==null?void 0:(B=G.dropdown)==null?void 0:(Q=B.dropdownRenderer)==null?void 0:(H=Q.entries)==null?void 0:H.find(function(x){var t;return x==null?void 0:(t=x.privacyDropdownItemRenderer)==null?void 0:t.isSelected}))==null?void 0:(R=M.privacyDropdownItemRenderer)==null?void 0:R.int32Value)!==this.votingInput.value};
Hy.prototype.onPopupClosed=Hy.prototype.onPopupClosed;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Hy.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],Hy.prototype,"ytEventForwardingBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Hy.prototype,"ytRendererStamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],Hy.prototype,"data",void 0);_.c([_.g({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.Y("design:type",Array)],Hy.prototype,"privacyBadge",void 0);_.c([_.g({computed:"computeEditorData(data)"}),_.Y("design:type",Object)],Hy.prototype,"editorData",void 0);_.c([_.g(),_.Y("design:type",Object)],Hy.prototype,"isPlaylistEditComplete",void 0);_.c([_.g(),_.Y("design:type",Object)],Hy.prototype,"isCollabEngagementDisabled",void 0);
_.c([_.g({value:{REQUIRED_LABEL:_.Xm("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Xm("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.Y("design:type",Object)],Hy.prototype,"addToStrings",void 0);_.c([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.Y("design:type",String)],Hy.prototype,"ariaLabel",void 0);_.c([_.g(),_.Y("design:type",String)],Hy.prototype,"closeButtonAriaLabel",void 0);
_.c([_.g(),_.Y("design:type",Object)],Hy.prototype,"saveButton",void 0);_.c([_.uc("#name-input"),_.Y("design:type",Object)],Hy.prototype,"nameInput",void 0);_.c([_.uc("#description-input"),_.Y("design:type",Object)],Hy.prototype,"descriptionInput",void 0);_.c([_.uc("#privacy-input"),_.Y("design:type",Object)],Hy.prototype,"privacyInput",void 0);_.c([_.uc("#voting-input"),_.Y("design:type",Object)],Hy.prototype,"votingInput",void 0);
_.c([_.uc("#scroller"),_.Y("design:type",Object)],Hy.prototype,"JSC$20542_scroller",void 0);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Hy.prototype,"onPopupClosed",null);_.c([_.g(),_.Y("design:type",Object)],Hy.prototype,"onValueChanged",void 0);_.c([_.l({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Hy);
_.y(Hy,"ytd-playlist-settings-editor-renderer",function(){if(WCx===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);WCx=O}O=WCx;return O},{mode:1});var Z1r;_.lE("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var vy=function(){return _.u.apply(this,arguments)||this};
_.X(vy,_.u);_.v=vy.prototype;_.v.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}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.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 O=this.get("data.nextButton.buttonRenderer.navigationEndpoint");O&&(this.nextNavigationEndpoint=O,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.v.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 O={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",O)}}};
_.v.onPopupOpened=function(O){O.detail!==this&&O.detail!==this.hostElement||!_.V("enable_premium_voluntary_pause")||_.xc(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.v.onNextButtonTap=function(){var O=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);O&&this.ytdOpenPopupBehavior.openPopup(O)};
_.v.updateSelectedResponseIndexFromBinding=function(O){this.selectedResponseIndex=O.detail.value};
vy.prototype.onPopupOpened=vy.prototype.onPopupOpened;vy.prototype.onSelectedResponseIndexChange=vy.prototype.onSelectedResponseIndexChange;vy.prototype.dataChanged=vy.prototype.dataChanged;_.c([_.h(_.fQ),_.Y("design:type",Object)],vy.prototype,"ytdOpenPopupBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],vy.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],vy.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Number)],vy.prototype,"selectedResponseIndex",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vy.prototype,"dataChanged",null);_.c([_.Tw("selectedResponseIndex"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],vy.prototype,"onSelectedResponseIndexChange",null);
_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],vy.prototype,"onPopupOpened",null);_.c([_.l({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],vy);
_.y(vy,"ytd-red-cancel-survey-renderer",function(){if(Z1r!==void 0)return Z1r;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Z1r=O},{mode:1});var znB;var KD=function(){var O=_.u.apply(this,arguments)||this;O.closeButtonAriaLabel=_.Xm("SBOX_INAPPROPRIATE_CANCEL");return O};
_.X(KD,_.u);KD.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
KD.prototype.onClickClose=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],KD.prototype,"rendererStamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],KD.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],KD.prototype,"closeButtonAriaLabel",void 0);_.c([_.l({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],KD);
_.y(KD,"ytd-search-filter-options-dialog-renderer",function(){if(znB!==void 0)return znB;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return znB=O},{mode:1});var Jk3;var Q_x=function(){return function(O){O=O.availabilityType;return O===void 0||O==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||O==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var $C=function(){var O=_.u.apply(this,arguments)||this;O.qualityOptions=[];O.upsellOptions=[];O.showUpsellSection=!1;O.darkerDarkTheme=_.V("web_darker_dark_theme");O.rememberSettingsChecked=!1;return O};
_.X($C,_.u);_.v=$C.prototype;_.v.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}}}}};
_.v.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.v.updateQualityOptions=function(){if(this.formats===void 0)_.xc(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var O=[],m=[];this.showUpsellSection=!1;for(var G=_.K(this.formats),B=G.next();!B.done;B=G.next())(B=B.value)&&(B.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?m.push(B):O.push(B));O.length&&(this.qualityOptions=BRJ(O));m.length&&(this.showUpsellSection=!0,this.upsellOptions=BRJ(m))}};
_.v.updateRememberString=function(){if(this.downloadQualityPickerEntity)var O=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var m;O=(m=this.data)==null?void 0:m.premiumRememberSettingString}else{var G;O=(G=this.data)==null?void 0:G.rememberSettingString}O=O===void 0?_.Xm("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):O;this.rememberSettingsCheckboxRenderer={title:_.rv(O),disabled:!1}};
_.v.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.vr.Object.defineProperties($C.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var O;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(O=this.data)==null?void 0:O.qualityFormats}}});
$C.prototype.updateRememberString=$C.prototype.updateRememberString;$C.prototype.updateQualityOptions=$C.prototype.updateQualityOptions;$C.prototype.dataChanged=$C.prototype.dataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],$C.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],$C.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$C.prototype,"data",void 0);
_.c([_.h(_.MK),_.Y("design:type",Object)],$C.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Boolean)],$C.prototype,"selectedUpsellQuality",void 0);_.c([_.g({computed:"computeIcon_(data.premiumIcon)",value:""}),_.Y("design:type",String)],$C.prototype,"premiumIcon",void 0);_.c([_.g({selector:AKo,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Y("design:type",Object)],$C.prototype,"downloadQualityPickerEntity",void 0);
_.c([_.g(),_.Y("design:type",Array)],$C.prototype,"qualityOptions",void 0);_.c([_.g(),_.Y("design:type",Array)],$C.prototype,"upsellOptions",void 0);_.c([_.g(),_.Y("design:type",Object)],$C.prototype,"showUpsellSection",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],$C.prototype,"darkerDarkTheme",void 0);_.c([_.g(),_.Y("design:type",Object)],$C.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.c([_.uc("#remember-settings"),_.Y("design:type",HTMLInputElement)],$C.prototype,"rememberSettingsCheckbox",void 0);_.c([_.g(),_.Y("design:type",Object)],$C.prototype,"rememberSettingsChecked",void 0);_.c([_.g(),_.Y("design:type",Function)],$C.prototype,"onRememberSettingsCheckedChanged",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$C.prototype,"dataChanged",null);
_.c([_.Tw("downloadQualityPickerEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$C.prototype,"updateQualityOptions",null);_.c([_.Tw("selectedUpsellQuality"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],$C.prototype,"updateRememberString",null);_.c([_.l({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],$C);
_.y($C,"ytd-download-quality-selector-content",function(){if(Jk3!==void 0)return Jk3;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Jk3=O},{mode:1});var VvB;var Ma=function(){var O=_.u.apply(this,arguments)||this;O.selectedUpsellQuality=!1;O.qualityOptions=[];O.darkerDarkTheme=_.V("web_darker_dark_theme");O.useUpsellDismissAlternate=_.V("use_not_now_dl_upsell_dismiss_cta");O.shouldShowAlternateUpsellDimiss=!1;O.rememberSettings=!1;O.rememberSettingsChecked=!1;O.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};O.rememberSettingsCheckedChanged=function(m){O.rememberSettingsChecked=m};
return O};
_.X(Ma,_.u);_.v=Ma.prototype;
_.v.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.rv(_.Xm("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.rv(_.Xm("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.rv(_.Xm("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.rv(_.Xm("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.v.updateQualityOptions=function(){this.formats===void 0?_.xc(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=BRJ(this.formats)};
_.v.onQualityOptionsSelect=function(O){if(this.qualityOptions&&O){O!==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 m=_.K(this.qualityOptions.entries()),G=m.next();!G.done;G=
m.next()){G=_.K(G.value);var B=G.next().value;G=G.next().value;var Q=void 0,H=void 0;if(((Q=G)==null?void 0:(H=Q.settingsRadioOptionRenderer)==null?void 0:H.id)===O){this.selectedQualityIndex=B;O=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((O=this.formats[B])==null?void 0:O.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.v.onClickSubmit=function(){var O;if((O=this.downloadButtonRenderer)==null||!O.isDisabled){var m,G;O=(G=(m=this.data)==null?void 0:m.onSubmitEndpoint)!=null?G:{};var B,Q;if(this.formats&&(((B=_.b(O,_.nJ))==null?0:B.videoId)||((Q=_.b(O,_.X4))==null?0:Q.playlistId))){var H,M,R,x,t,W;m={formatType:(x=(H=this.formats)==null?void 0:(M=H[(R=this.selectedQualityIndex)!=null?R:0])==null?void 0:M.format)!=null?x:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(t=this.getOfflineEndpoint(O))==null?void 0:(W=t.actionParams)==null?void 0:W.settingsAction)};this.getOfflineEndpoint(O).actionParams=m;this.ytComponentBehavior.resolveCommand(O)}_.xc(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.v.onClickUpsell=function(){var O;if((O=this.upsellButtonRenderer)==null||!O.isDisabled){var m,G;O=(G=(m=this.data)==null?void 0:m.upsellEndpoint)!=null?G:{};this.ytComponentBehavior.resolveCommand(O);_.xc(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);m="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var B,Q,H,M;m=(M=(B=this.formats)==null?void 0:(Q=B[(H=this.selectedQualityIndex)!=null?H:0])==null?void 0:Q.format)!=null?M:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:m}})}};
_.v.onClickClose=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.v.getOfflineSettingsAction=function(O,m){return O?m===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":m:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.v.getOfflineEndpoint=function(O){return _.b(O,_.nJ)?_.b(O,_.nJ):_.b(O,_.X4)};
_.vr.Object.defineProperties(Ma.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.rv(_.Xm("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var O;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(O=this.data)==null?void 0:O.qualityFormats}}});
Ma.prototype.updateQualityOptions=Ma.prototype.updateQualityOptions;Ma.prototype.dataChanged=Ma.prototype.dataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ma.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Ma.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Ma.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ma.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Number)],Ma.prototype,"selectedQualityIndex",void 0);_.c([_.g(),_.Y("design:type",Object)],Ma.prototype,"selectedUpsellQuality",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],Ma.prototype,"ytdReduxBehavior",void 0);
_.c([_.g({selector:AKo,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.Y("design:type",Object)],Ma.prototype,"downloadQualityPickerEntity",void 0);_.c([_.g(),_.Y("design:type",Array)],Ma.prototype,"qualityOptions",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Ma.prototype,"darkerDarkTheme",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],Ma.prototype,"useUpsellDismissAlternate",void 0);
_.c([_.g(),_.Y("design:type",Object)],Ma.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.c([_.g(),_.Y("design:type",Object)],Ma.prototype,"downloadButtonRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],Ma.prototype,"upsellButtonRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],Ma.prototype,"cancelButtonRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],Ma.prototype,"upsellCancelButtonRenderer",void 0);_.c([_.g(),_.Y("design:type",Object)],Ma.prototype,"rememberSettings",void 0);
_.c([_.g(),_.Y("design:type",Object)],Ma.prototype,"rememberSettingsChecked",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ma.prototype,"dataChanged",null);_.c([_.Tw("downloadQualityPickerEntity"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ma.prototype,"updateQualityOptions",null);_.c([_.l({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Ma);
_.y(Ma,"ytd-download-quality-selector-renderer",function(){if(VvB!==void 0)return VvB;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return VvB=O},{mode:1});var b1u;var rA=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(rA,_.u);rA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
rA.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],rA.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],rA.prototype,"darkerDarkTheme",void 0);_.c([_.g({computed:"computeIcon_(data.infoIcon)"}),_.Y("design:type",Object)],rA.prototype,"infoIcon",void 0);
_.c([_.g({computed:"computeIcon_(data.warningIcon)"}),_.Y("design:type",Object)],rA.prototype,"warningIcon",void 0);_.c([_.l({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],rA);
_.y(rA,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(b1u!==void 0)return b1u;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return b1u=O},{mode:1});var nT9;var Rg=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(Rg,_.u);Rg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Rg.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Rg.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Rg.prototype,"darkerDarkTheme",void 0);_.c([_.l({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Rg);
_.y(Rg,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(nT9!==void 0)return nT9;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return nT9=O},{mode:1});var X_A;var iJ=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(iJ,_.u);iJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iJ.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"}}}}};
iJ.prototype.onServiceRequestSentOrCompleted=function(O,m){m&&m.actions&&m.actions.length>0&&_.xc(this.hostElement,"yt-close-popup-action",[this.is])};
iJ.prototype.onServiceRequestSentOrCompleted=iJ.prototype.onServiceRequestSentOrCompleted;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],iJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],iJ.prototype,"darkerDarkTheme",void 0);_.c([_.g(),_.Y("design:type",Object)],iJ.prototype,"data",void 0);
_.c([_.hG("yt-service-request-completed"),_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],iJ.prototype,"onServiceRequestSentOrCompleted",null);_.c([_.l({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],iJ);
_.y(iJ,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(X_A!==void 0)return X_A;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return X_A=O},{mode:1});var fiy;var xC=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");O.submitButtonDisabled=!0;return O};
_.X(xC,_.u);_.v=xC.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.v.onDataChanged=function(){var O,m,G;if(((O=this.data)==null?void 0:(m=O.confirmButton)==null?void 0:(G=m.buttonRenderer)==null?void 0:G.isDisabled)!==void 0){var B,Q,H;this.submitButtonDisabled=(B=this.data)==null?void 0:(Q=B.confirmButton)==null?void 0:(H=Q.buttonRenderer)==null?void 0:H.isDisabled}};
_.v.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.v.updateSubmitButtonDisabledFromBinding=function(O){this.submitButtonDisabled=O.detail.value};
_.v.updateSubmitButtonDisabledFromConfirmCheckbox=function(O){this.submitButtonDisabled=!O.detail.value};
xC.prototype.onDataChanged=xC.prototype.onDataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],xC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],xC.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],xC.prototype,"darkerDarkTheme",void 0);
_.c([_.g(),_.Y("design:type",Object)],xC.prototype,"submitButtonDisabled",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xC.prototype,"onDataChanged",null);_.c([_.l({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],xC);
_.y(xC,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(fiy!==void 0)return fiy;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return fiy=O},{mode:1});var hnK;var qa=function(){return _.u.apply(this,arguments)||this};
_.X(qa,_.u);_.vr.Object.defineProperties(qa.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var O,m,G;return((O=this.data)==null?void 0:O.title)+" "+((m=this.data)==null?void 0:m.metadataPrimary)+" "+((G=this.data)==null?void 0:G.metadataSecondary)}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],qa.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],qa.prototype,"data",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],qa.prototype,"ariaLabel",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],qa);
_.y(qa,"ytd-compact-product-list-item-renderer",function(){if(hnK!==void 0)return hnK;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return hnK=O},{mode:1});var TQ0;var UC=function(){return _.u.apply(this,arguments)||this};
_.X(UC,_.u);UC.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]]"}}}}}};
_.vr.Object.defineProperties(UC.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],UC.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],UC.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],UC);
_.y(UC,"ytd-compact-product-list-renderer",function(){if(TQ0!==void 0)return TQ0;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return TQ0=O},{mode:1});var gT3;var t4=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(t4,_.u);_.v=t4.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.v.getBackgroundUrl=function(){var O=this.get("data.headerImage.thumbnails");return O?"url("+_.Uf(O,this.hostElement.clientWidth)+")":""};
_.v.onDataChanged=function(){var O=this.getBackgroundUrl();O&&(this.header.style.backgroundImage=O);O=_.yA();var m=_.kf(),G=this.get("data.trackingParams");G&&m&&O&&_.Pd(O,m,_.Ez(G));O=_.K(this.hostElement.querySelectorAll("yt-img-shadow"));for(m=O.next();!m.done;m=O.next())m.value.onShow()};
_.v.onPopupClosed=function(O){_.Mj(O).localName==="ytd-membership-post-cancel-renderer"&&_.xc(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
t4.prototype.onPopupClosed=t4.prototype.onPopupClosed;t4.prototype.onDataChanged=t4.prototype.onDataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],t4.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],t4.prototype,"darkerDarkTheme",void 0);
_.c([_.uc("#header"),_.Y("design:type",HTMLDivElement)],t4.prototype,"header",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],t4.prototype,"onDataChanged",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],t4.prototype,"onPopupClosed",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],t4);
_.y(t4,"ytd-membership-post-cancel-renderer",function(){if(gT3!==void 0)return gT3;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return gT3=O},{mode:1});var ux3;var Wy=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(Wy,_.u);Wy.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Wy.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Wy.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Wy.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],Wy.prototype,"darkerDarkTheme",void 0);_.c([_.uc("ytd-feedback-survey-renderer"),_.Y("design:type",Object)],Wy.prototype,"feedbackSurveyRenderer",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Wy);
_.y(Wy,"ytd-sponsorship-confirm-cancel-content",function(){if(ux3!==void 0)return ux3;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return ux3=O},{mode:1});var j2b;var ZJ=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");O.maybeSubmitFeedback=function(){O.content&&O.content.maybeSubmitFeedback()};
return O};
_.X(ZJ,_.u);_.v=ZJ.prototype;_.v.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.v.onYtPopupOpened=function(O,m){m===this&&this.data&&this.data.onOpenCommands&&_.Wd(this.hostElement,this.data.onOpenCommands,this.hostElement);_.xc(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.v.onYtPopupClosed=function(O,m){(m&&m.canceled===!0||m&&m.canceled===!1&&m.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Wd(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.v.onYtServiceRequestCompleted=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.v.onYtServiceRequestError=function(O){_.At(this.hostElement,O.detail.error.message)};
_.v.onDataChanged=function(){if(this.isAttached){var O=this.backgroundUrl;O&&(_.ZO(this.hostElement).querySelector("#header").style.backgroundImage=O)}};
_.vr.Object.defineProperties(ZJ.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var O=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return O?"url("+_.Uf(O,this.hostElement.clientWidth)+")":""}}});
ZJ.prototype.onDataChanged=ZJ.prototype.onDataChanged;ZJ.prototype.onYtServiceRequestError=ZJ.prototype.onYtServiceRequestError;ZJ.prototype.onYtServiceRequestCompleted=ZJ.prototype.onYtServiceRequestCompleted;ZJ.prototype.onYtPopupClosed=ZJ.prototype.onYtPopupClosed;ZJ.prototype.onYtPopupOpened=ZJ.prototype.onYtPopupOpened;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ZJ.prototype,"data",void 0);_.c([_.g({value:function(){return _.Xm("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],ZJ.prototype,"closeButtonAriaLabel",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ZJ.prototype,"darkerDarkTheme",void 0);_.c([_.uc("#scrollable"),_.Y("design:type",Object)],ZJ.prototype,"scrollable",void 0);_.c([_.uc("ytd-sponsorship-confirm-cancel-content"),_.Y("design:type",Object)],ZJ.prototype,"content",void 0);
_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],ZJ.prototype,"onYtPopupOpened",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],ZJ.prototype,"onYtPopupClosed",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ZJ.prototype,"onYtServiceRequestCompleted",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ZJ.prototype,"onYtServiceRequestError",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ZJ.prototype,"onDataChanged",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],ZJ);
_.y(ZJ,"ytd-sponsorship-confirm-cancel-renderer",function(){if(j2b!==void 0)return j2b;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return j2b=O},{mode:_.ZB("kevlar_poly_si_batch_j081")?1:2});var Iiu;var z2=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(z2,_.u);z2.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],z2.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],z2.prototype,"darkerDarkTheme",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],z2);
_.y(z2,"ytd-sponsorships-celebration-content",function(){if(Iiu!==void 0)return Iiu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Iiu=
O},{mode:1});var p_o;var SY9=_.FY(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),J4=function(){var O=_.u.apply(this,arguments)||this;O.scriptsAppended=!1;O.useFullWidthPrimaryButton=!1;O.buttonOverrides={type:"tonal",style:"overlay-dark"};return O};
_.X(J4,_.u);_.v=J4.prototype;_.v.dataChanged=function(){var O;this.useFullWidthPrimaryButton=!((O=this.data)==null||!O.useFullWidthPrimaryButton)};
_.v.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:_.V("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.onDataChanged=function(){var O;(O=this.header)==null||O.style.setProperty("background-color",this.backgroundColor);if(O=this.headerImageUrl){var m;(m=this.header)==null||m.style.setProperty("background-image",O)}m=_.yA(4);O=_.kf(4);var G=this.get("data.trackingParams");if(G&&O&&m){var B=_.Ez(G);_.Pd(m,O,B);_.V("combine_ve_grafts")?_.uK().graftServerVe(G,O,4):_.Pd(m,O,B)}m=_.K(this.hostElement.querySelectorAll("yt-img-shadow"));for(O=m.next();!O.done;O=m.next())O.value.onShow();if(m=this.get("data.gtmId"))_.m2(m,
_.kB("GL","")),this.setupConversionTracking()};
_.v.setupConversionTracking=function(){if(!this.scriptsAppended){var O=document.createElement("script");var m=_.vi(SY9.join(""));_.K_(O,m);document.head.appendChild(O);O=document.createElement("noscript");O.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(O);this.scriptsAppended=!0}};
_.v.onPopupClosed=function(O){if(_.Mj(O).localName==="ytd-sponsorships-celebration-renderer"){_.xc(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var m;this.data&&((m=this.data)==null?0:m.dismissCommand)&&_.XJ.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.vr.Object.defineProperties(J4.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var O=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.AV(O)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var O=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return O?"url("+_.Uf(O,this.hostElement.getBoundingClientRect().width)+")":""}}});
J4.prototype.onPopupClosed=J4.prototype.onPopupClosed;J4.prototype.onDataChanged=J4.prototype.onDataChanged;J4.prototype.dataChanged=J4.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],J4.prototype,"data",void 0);
_.c([_.uc("#header"),_.Y("design:type",HTMLElement)],J4.prototype,"header",void 0);_.c([_.g(),_.Y("design:type",Object)],J4.prototype,"scriptsAppended",void 0);_.c([_.g({type:Boolean,reflectToAttribute:!0}),_.Y("design:type",Object)],J4.prototype,"useFullWidthPrimaryButton",void 0);_.c([_.g(),_.Y("design:type",Object)],J4.prototype,"buttonOverrides",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],J4.prototype,"dataChanged",null);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],J4.prototype,"onDataChanged",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],J4.prototype,"onPopupClosed",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],J4);
_.y(J4,"ytd-sponsorships-celebration-renderer",function(){if(p_o!==void 0)return p_o;var O=document.createElement("template");_.f(O,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return p_o=O},{mode:1});var ETr;var VP=function(){var O=_.u.apply(this,arguments)||this;O.isToggleChecked=!1;return O};
_.X(VP,_.u);VP.prototype.onDataChanged=function(){var O;this.isToggleChecked=((O=this.data)==null?void 0:O.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
VP.prototype.close=function(){var O;((O=this.data)==null?0:O.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
VP.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var O,m=_.b((O=this.data)==null?void 0:O.switchButton,okh);m&&(this.isToggleChecked&&m.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(m.switchOnInnertubeCommand),!this.isToggleChecked&&m.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(m.switchOffInnertubeCommand))};
VP.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
VP.prototype.onDataChanged=VP.prototype.onDataChanged;_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],VP.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],VP.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],VP.prototype,"isToggleChecked",void 0);_.c([_.g({value:_.Xm("CLOSE")}),_.Y("design:type",String)],VP.prototype,"closeButtonAriaLabel",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VP.prototype,"onDataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],VP);
_.y(VP,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(ETr!==void 0)return ETr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ETr=O},{mode:1});var LC9;var bJ=function(){return _.u.apply(this,arguments)||this};
_.X(bJ,_.u);_.v=bJ.prototype;_.v.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"}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.detached=function(){this.playerElement.stop()};
_.v.onYtServiceRequestCompleted=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.v.onYtServiceRequestError=function(O){_.At(this.hostElement,O.detail.error.message)};
_.v.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.v.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.v.getTier=function(O,m){return!O||!O.tiers||m<0?null:_.b(O.tiers[m],yno)};
_.v.moreThanOne=function(O){return!!(O&&O.length>1)};
_.v.tierOverviewTap=function(O){var m=this;this.selectedTier=O.model.index;_.QA(this,function(){_.iP(m.hostElement,"yt-refit")})};
_.v.computeSelectedClass=function(O,m){return this.isSelected(O,m)?"selected":""};
_.v.computeButtonAriaPressed=function(O,m){return this.isSelected(O,m)?"true":"false"};
_.v.isSelected=function(O,m){return O===m};
_.v.onDataChanged=function(){_.ZO(this.hostElement).querySelector("#header-overlay").style.visibility="";_.ZO(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 O=_.K(this.hostElement.querySelectorAll("yt-img-shadow")),
m=O.next();!m.done;m=O.next())m.value.onShow();var G;this.set("selectedTier",(G=this.get("data.targetTierIndex"))!=null?G:0);var B;(O=(B=this.data)==null?void 0:B.onVisible)&&this.ytComponentBehavior.resolveCommand(O)};
_.v.initializeVe=function(O){var m=_.yA(),G=_.kf(),B=this.get("data.trackingParams");G&&m&&(this.screenLayer=4,m=_.wi(_.C8Y)(void 0,69877,{clientScreenNonce:m,visualElement:G},void 0,void 0,void 0),_.Yf(m,69877,4),G=_.kf(4),B&&G&&(B=_.Ez(B),_.Pd(m,G,B),O&&(this.offerVideoVe=_.Zv(74659),_.Pd(m,B,this.offerVideoVe))))};
_.v.setHeaderBackground=function(){var O=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.ZO(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.AV(O);if(O=this.getHeaderImage())O=_.Uf(O,screen.width),_.ZO(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+O+")"};
_.v.getHeaderImage=function(){var O=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&O?O:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.v.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.v.setupVideoPlayer=function(O){var m=this,G,B,Q,H;return _.r(function(M){if(M.nextAddress==1)return G=m.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),B=m.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.V("kevlar_player_update_killswitch")?m.playerElement.update({args:{autoplay:G,video_id:O,player_params:B}}):m.playerElement.loadVideoWithPlayerVars({autoplay:G,video_id:O,player_params:B}),
M.yield(m.playerElement.getPlayerPromise(),2);Q=M.yieldResult;Q.addEventListener("onStateChange",function(R){m.onPlayerStateChange(R)});
Q.setScreenLayer(m.screenLayer);(H=_.yA(4))&&m.offerVideoVe&&_.AK(H,m.offerVideoVe);G&&(m.pauseOtherPlayers(),m.playerElement.focusOnPlayer(),m.playerElement.getPlayer().hideControls(),_.uT(_.ln,function(){m.fadeOutHeaderOverlay()},4E3));
_.ju(M)})};
_.v.onPlayerStateChange=function(O){O===1?this.backgroundPlayerElement&&(O=this.backgroundPlayerElement.player_.getPlayerState(),O!==1&&O!==3||this.backgroundPlayerElement.pause()):O===0&&(_.ZO(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.ZO(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.v.fadeOutHeaderOverlay=function(){_.ZO(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.v.onHeaderTap=function(){if(this.offerVideo){_.ZO(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var O;((O=this.playerElement.player_)==null?void 0:O.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(O=_.yA(4))&&this.offerVideoVe&&_.Gk(O,this.offerVideoVe)}};
_.v.getBackgroundImageLayerClass=function(O){return O?"background-image-layer-with-video":""};
_.v.getHeaderClass=function(O){return O?"header-with-video":""};
_.v.getHeaderOverlayClass=function(O){return O?"header-overlay-with-video":""};
_.v.getTitleContainerClass=function(O,m){return O?"title-container-with-video":m?"title-container-without-video-flexible":"title-container-without-video"};
_.v.tierTitleDisplayStatus=function(O){return this.moreThanOne(O)?"hide":"show"};
_.v.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.KR().resolve(_.c$).getPlayerElement():this.backgroundPlayerElement=_.M1();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var O=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=O===1||O===3;this.backgroundPlayerElement.pause()}};
_.v.isMiniplayerActive=function(){return _.KR().resolve(_.c$).isMiniplayerActive()};
_.v.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("selected-tier-changed",this.selectedTier))};
bJ.prototype.selectedTierChangedForBinding=bJ.prototype.selectedTierChangedForBinding;bJ.prototype.onDataChanged=bJ.prototype.onDataChanged;bJ.prototype.onYtPopupClosed=bJ.prototype.onYtPopupClosed;bJ.prototype.onYtPopupOpened=bJ.prototype.onYtPopupOpened;bJ.prototype.onYtServiceRequestError=bJ.prototype.onYtServiceRequestError;bJ.prototype.onYtServiceRequestCompleted=bJ.prototype.onYtServiceRequestCompleted;
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],bJ.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],bJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],bJ.prototype,"data",void 0);_.c([_.g({value:0}),_.Y("design:type",Number)],bJ.prototype,"selectedTier",void 0);
_.c([_.g({value:""}),_.Y("design:type",String)],bJ.prototype,"offerVideo",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],bJ.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.c([_.g({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.sS(this)}}),
_.Y("design:type",String)],bJ.prototype,"playerId",void 0);_.c([_.uc("tp-yt-paper-dialog-scrollable"),_.Y("design:type",Object)],bJ.prototype,"scrollable",void 0);_.c([_.uc("ytd-sponsorships-tier-renderer"),_.Y("design:type",Object)],bJ.prototype,"tierRenderer",void 0);_.c([_.uc("#player"),_.Y("design:type",Object)],bJ.prototype,"playerElement",void 0);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],bJ.prototype,"onYtServiceRequestCompleted",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],bJ.prototype,"onYtServiceRequestError",null);
_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bJ.prototype,"onYtPopupOpened",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bJ.prototype,"onYtPopupClosed",null);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bJ.prototype,"onDataChanged",null);
_.c([_.Tw("selectedTier"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],bJ.prototype,"selectedTierChangedForBinding",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],bJ);
_.y(bJ,"ytd-sponsorships-offer-renderer",function(){if(LC9!==void 0)return LC9;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return LC9=O},{mode:_.ZB("kevlar_poly_si_batch_j077")?1:2});var Ciu;var nD=function(){var O=_.u.apply(this,arguments)||this;O.buttonOverrides={type:"filled",style:"mono"};return O};
_.X(nD,_.u);nD.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}}}}}};
nD.prototype.backgroundColorChanged=function(){var O,m,G,B=(m=_.b((O=this.data)==null?void 0:O.content,cnh))==null?void 0:(G=m.backgroundColor)==null?void 0:G.backgroundColor;B&&(O=_.Fs(B),_.ZO(this.hostElement).querySelector("#banner").style.backgroundColor=O,_.ZO(this.hostElement).querySelector("#abstract-art").style.backgroundColor=O)};
nD.prototype.attached=function(){this.JSC$20628_scroller&&(this.JSC$20628_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20628_scroller.attached&&typeof this.JSC$20628_scroller.attached==="function"&&this.JSC$20628_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
nD.prototype.backgroundColorChanged=nD.prototype.backgroundColorChanged;_.c([_.g(),_.Y("design:type",Object)],nD.prototype,"data",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],nD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.uc("#scroller"),_.Y("design:type",Object)],nD.prototype,"JSC$20628_scroller",void 0);_.c([_.g(),_.Y("design:type",Object)],nD.prototype,"buttonOverrides",void 0);
_.c([_.Tw("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],nD.prototype,"backgroundColorChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],nD);
_.y(nD,"ytd-sponsorships-promotion-celebration-renderer",function(){if(Ciu!==void 0)return Ciu;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return Ciu=O},{mode:_.ZB("kevlar_poly_si_batch_j077")?1:2});var oTr;var lib;var Xe=function(){return _.u.apply(this,arguments)||this};
_.X(Xe,_.u);Xe.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Xe.prototype.computeIsInitiallyChecked=function(O){return O===1};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Xe.prototype,"data",void 0);_.c([_.uc("#checkbox"),_.Y("design:type",Object)],Xe.prototype,"checkbox",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Xe);
_.y(Xe,"ytd-subscription-toggle-option-renderer",function(){if(lib!==void 0)return lib;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return lib=O},{mode:1});var fD=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");O.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return O};
_.X(fD,_.u);fD.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"}}}};
fD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
fD.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var O=_.ZO(this.hostElement).querySelector("#options").selected;O=this.data.options[O].subscriptionRadioOptionRenderer.serviceEndpoint;var m=_.ZO(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");m&&O&&O.modifyChannelNotificationPreferenceEndpoint&&(m=m.getValue())&&(O.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[m]);_.KR().resolve(_.Mu).resolveCommand(O,{form:{element:this.hostElement}});
_.xc(this.hostElement,"yt-close-popup-action")};
_.vr.Object.defineProperties(fD.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var O=this.data.options,m=0;m<O.length;m++){var G=O[m].subscriptionRadioOptionRenderer;if(G&&G.selected)return m}return null}}});
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],fD.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],fD.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],fD.prototype,"eventForwardingBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],fD.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],fD.prototype,"darkerDarkTheme",void 0);_.c([_.T("data.options"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],fD.prototype,"initialIndex",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],fD);
_.y(fD,"ytd-subscription-notification-options-renderer",function(){if(oTr!==void 0)return oTr;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return oTr=O},{mode:1});var ai0;var h4=function(){return _.u.apply(this,arguments)||this};
_.X(h4,_.u);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],h4.prototype,"data",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],h4);
_.y(h4,"ytd-tvfilm-offer-groups-renderer",function(){if(ai0!==void 0)return ai0;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return ai0=O},{mode:1});var koo;var T2=function(){var O=_.u.apply(this,arguments)||this;O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(T2,_.u);_.v=T2.prototype;_.v.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"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.v.computeThumbnailClass=function(O){return O.thumbnailOverlays?O.isShow?"thumbnail-show":"thumbnail-movie":O.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.v.computeCommerceSectionClass=function(O){return O.offers&&O.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.v.computeTitleClass=function(O){return O.offers&&O.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.v.onDataChanged=function(){[].concat(_.lS(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(O){O.onShow()})};
T2.prototype.onDataChanged=T2.prototype.onDataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],T2.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],T2.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],T2.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],T2.prototype,"darkerDarkTheme",void 0);
_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],T2.prototype,"onDataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],T2);
_.y(T2,"ytd-ypc-offers-overlay-renderer",function(){if(koo!==void 0)return koo;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return koo=O},{mode:_.ZB("kevlar_poly_si_batch_j028")?1:2});var yko;var ckr=function(){this.usedMethods=new Set};
ckr.prototype.add=function(O){this.usedMethods.add(O)};
ckr.prototype.reset=function(){this.usedMethods.clear()};var w_0=function(O,m){this.query=O;this.previousSearchQuery=m;this.id=YYo++;if(!dEh){m=_.kB("SBOX_SETTINGS");O="https://"+((m==null?void 0:m.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var G=m==null?void 0:m.REQUEST_LANGUAGE;G&&(O+="&hl="+G);(G=m==null?void 0:m.REQUEST_DOMAIN)&&(O+="&gl="+G);O+="&client=youtube&gs_ri=youtube";(G=m==null?void 0:m.SUGG_EXP_ID)&&(O+="&sugexp="+encodeURIComponent(G));(G=m==null?void 0:m.PSUGGEST_TOKEN)&&(O+="&tok="+G);(m=
m==null?void 0:m.SESSION_INDEX)&&(O+="&authuser="+m);_.V("desktop_enable_visual_suggest")&&(O+="&h=180&w=320&ytvs=1");dEh=O}},ens=function(O){var m="q="+encodeURIComponent(O.query);
O.previousSearchQuery&&(m+="&pq="+encodeURIComponent(O.previousSearchQuery));return m},DEy=function(){var O=_.kB("SBOX_SETTINGS"),m={};
if(O==null?0:O.SEND_VISITOR_DATA)m["X-Goog-Visitor-Id"]=O==null?void 0:O.VISITOR_DATA;return m},s29=function(O){var m=dEh;
m+="&gs_id="+O.id.toString(36);m+="&q="+encodeURIComponent(O.query);m+="&cp="+O.query.length;O.previousSearchQuery&&(m+="&pq="+encodeURIComponent(O.previousSearchQuery));(O=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(m+="&video_id="+O);return m},YYo=0,dEh="";var NQs=_.oX.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,Pix=_.oX.SEARCH_ENTITY_SUGGESTION_MOVIE,FCJ=_.oX.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,Ak0=_.oX.SEARCH_ENTITY_SUGGESTION_TV_SHOW,OF3=function(O,m){this.text=O;this.bold=m},mAA=function(O,m,G){this.input=m;
this.index=G;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=O[0];this.type=O[1];this.subtypes=O[2];var B;this.displayText=Ke((B=O[3])==null?void 0:B.b);var Q;this.ignoredPrefix=Ke((Q=O[3])==null?void 0:Q.a);var H,M;this.hasNewVideo=((H=O[3])==null?void 0:(M=H.zam)==null?void 0:M.toString())==="true"?!0:!1;var R;this.visualSuggestUrl=(R=O[3])==null?void 0:R.zai;var x;this.entityType=Ke((x=O[3])==null?void 0:x.zap);var t;this.entityName=Ke((t=O[3])==null?void 0:t.zao);var W;m=Ke((W=
O[3])==null?void 0:W.zaf);var Z;this.entityMid=(Z=O[3])==null?void 0:Z.zae;W=vio(this.subtypes,this.entityMid);if(m&&W){if(m){Z="";switch(W){case "YOUTUBE_ENTITY_TYPE_SONG":Z=FCJ;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":Z=NQs;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":Z=Ak0;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":Z=Pix}W=W==="YOUTUBE_ENTITY_TYPE_SONG"||W==="YOUTUBE_ENTITY_TYPE_ALBUM"?Z+" \u2022  \u2022 "+m:m}else W="";this.entitySubtitle=W}var z;this.externalChannelId=(z=O[3])==null?void 0:z.zav;var J;
this.entityThumbnailAttributionUrl=(J=O[3])==null?void 0:J.zaq},BPA=function(O,m){var G=[],B,Q=(B=O.displayText)!=null?B:O.text;
(m==null?0:m.useEntityName)&&GGy(O)&&O.entityName&&(Q=O.entityName);if(O.type===33)return G.push(new OF3(Q,!1)),G;if(Q.length>=O.input.length&&Q.substring(0,O.input.length)===O.input)G.push(new OF3(O.input,!1)),G.push(new OF3(Q.substring(O.input.length),!0));else{var H=new Set(O.input.split(/\s/)),M=Q.split(/\s/);G=M.map(function(R,x){return new OF3(R.trim()+(x===M.length-1?"":" "),!H.has(R))})}return G},GGy=function(O){var m=!!vio(O.subtypes);
O=!!O.entityMid;return m||O};var Qzx=function(O){this.rawResponse=["",[],{}];this.suggestions=[];try{var m=JSON.parse(K3K(O));if(typeof m==="object"&&m!==null)this.rawResponse=m;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(B){console.log("Suggest: Failed to parse SuggestResponse!");return}var G=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(B,Q){return new mAA(B,G,Q)})};var HFb=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new ckr;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20665_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},vlo,KjJ=function(){vlo||(vlo=new HFb);
return vlo};
HFb.prototype.updateSuggestions=function(O){var m=this;this.availableSuggestions.forEach(function(G){m.previousSuggestions[G]=!0});
this.availableSuggestions=O.map(function(G){var B=G.type.toString();G.subtypes.length>0&&(B+="i"+G.subtypes.join("i"),B+="k"+G.suggestionSources.COMPLETE_SERVER.toString());return B})};
var $AB=function(O,m){var G=Date.now();O.firstEditTime<0&&(O.firstEditTime=G);m&&(O.lastQueryBuildTime=G);O.lastEditTime=G};
HFb.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20665_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Mm3=function(O){var m="";O.availableSuggestions.forEach(function(Q){delete O.previousSuggestions[Q]});
for(var G=_.K(Object.keys(O.previousSuggestions)),B=G.next();!B.done;B=G.next())B=B.value,O.previousSuggestions[B]&&(m+=(m?"j":"")+B);return m},r9A=function(O,m){var G=[];
m&&(G[1]=m.toString());G[0]="youtube";G[7]=Date.now()-O.startTime;G[6]=O.sessionNumber;O.zeroPrefixSuggestionCount>=0&&(G[33]=O.zeroPrefixSuggestionCount);G[13]=O.outOfSyncResponseCount;if(O.availableSuggestions.length>0){for(var B=m="",Q=0,H=_.K(O.availableSuggestions),M=H.next();!M.done;M=H.next())M=M.value,M!==B&&(Q>1&&(m+="l"+Q),m+=(B?"j":"")+M,Q=0,B=M),Q+=1;Q>1&&(m+="l"+Q);G[3]=m}G[35]=Mm3(O);O.selectedSuggestionIndex>=0&&(G[2]=O.selectedSuggestionIndex);var R;if(m=(R=_.kB("SBOX_SETTINGS"))==
null?void 0:R.SUGG_EXP_ID)G[19]=O.normalize(m),R=0,O.experimentTriggeredBeforeFinal&&(R|=1),O.experimentTriggeredFinal&&(R|=2),G[20]=R;G[26]=Array.from(O.inputMethodsTracker.usedMethods).join("j");if(O.JSC$20665_totalRoundTripTime>0){G[15]=O.JSC$20665_totalRoundTripTime;G[14]=O.maxRoundTripTime;R=[];for(Q=m=0;Q<10;Q++)B=O.roundTripTimeHistogram[Q],B===0?m++:(m>1?R.push(Q+"-"+B):m===1?R.push("0j"+B):R.push(B.toString()),m=0);R=R.join("j");G[16]=R}O.zeroPrefixRoundTripTime>0&&(G[36]=O.zeroPrefixRoundTripTime);
O.lastQueryBuildTime>0&&(G[18]=O.lastQueryBuildTime-O.startTime);O.firstEditTime>0&&(G[4]=O.firstEditTime-O.startTime);O.lastEditTime>0&&(G[5]=O.lastEditTime-O.startTime);return G.join(".")};
HFb.prototype.normalize=function(O){return O.replaceAll(".","-")};
var RgK=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var gA=function(){var O=_.u.apply(this,arguments)||this;O.microphoneSpinnerActive=!1;O.noAnimations=!1;O.boundExitClick=function(){O.onExitButtonClick()};
O.speechOverlayClassName="";O.isLevelAnimating=!1;O.playCloseDialogAudioFeedback=!0;O.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return O};
_.X(gA,_.u);_.v=gA.prototype;_.v.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.v.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=sUA()};
_.v.dataChanged=function(){this.logDialog()};
_.v.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var O;(O=this.manager.audioPlayer)!=null&&(O.JSC$19986_audioEnabled=!1)}this.manager.stop();(O=this.manager.audioPlayer)!=null&&(O.JSC$19986_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.v.handleSpeechQueryCompleteAction=function(O){var m=O.navigationAction;m&&(O.trackingParams&&_.uK().graftServerVe(O.trackingParams,this.dialogVe,5),_.iP(this.hostElement,"yt-navigate",{endpoint:m,tempData:this.getNavigationParams(m),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.v.onExitButtonClick=function(){this.closeDialog()};
_.v.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var O;if((O=this.manager)!=null){var m;(m=O.audioPlayer)==null||pV(m,"failure");O.setState("microphone-off");O.stop()}}else(O=this.manager)==null||O.start()};
_.v.transcriptionChanged=function(){var O,m;(((O=this.transcription)==null?0:O.low)||((m=this.transcription)==null?0:m.high))&&this.setState("transcribing",this.transcription)};
_.v.stateChanged=function(){this.setState(this.state,this.transcription)};
_.v.logDialog=function(){var O;(O=this.data)!=null&&O.trackingParams&&(O=_.uK(),_.E1(O,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=O.graftServerVe(this.data.trackingParams,void 0,5))};
_.v.getNavigationParams=function(O){var m={};if(_.V("web_yt_searchbox")){var G=KjJ();G.inputMethodsTracker.add(6);G=r9A(G,15);m.gs_l=G;var B;m.oq=((B=_.b(O,_.uu))==null?void 0:B.query)||""}else if(O=window.ytvoicesearchloggingparams){if(O=O())m.oq=O.oq,m.gs_l=O.gs_l}else _.Dy(Error("Dl"));return m};
_.v.closeDialog=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.v.setState=function(O,m){if(this.data){var G=this.data,B={};switch(O){case "listening":B={headerText:G.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:G.microphoneButtonAriaLabel};break;case "timeout":B={headerText:G.promptHeader,microphoneState:"try-again",microphoneLabel:G.promptMicrophoneLabel,microphoneAriaLabel:G.promptMicrophoneLabel};break;case "microphone-off":B={headerText:G.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:G.promptMicrophoneLabel,
microphoneAriaLabel:G.promptMicrophoneLabel};break;case "transcribing":(m==null?0:m.low)||(m==null?0:m.high)?B={transcriptionLow:m==null?void 0:m.low,transcriptionHigh:m==null?void 0:m.high,microphoneState:"speaking",microphoneAriaLabel:G.microphoneButtonAriaLabel}:B={headerText:G.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:G.microphoneButtonAriaLabel};break;case "processing":B={headerText:G.loadingHeader,microphoneState:"processing",microphoneAriaLabel:G.microphoneButtonAriaLabel};
break;case "offline":B={headerText:G.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:G.connectionErrorMicrophoneLabel,microphoneAriaLabel:G.connectionErrorMicrophoneLabel};break;case "permission":B={headerText:G.permissionsHeader,bodyLine1:G.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:G.permissionsSubtext};break;case "permission-denied":B={headerText:G.disabledHeader,bodyLine1:G.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:G.disabledSubtext}}B.className=
O;this.speechOverlayState=B;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.v.setMicrophoneState=function(O){var m=this.isLevelAnimating;this.isLevelAnimating=O==="speaking";!m&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=O==="processing"&&!this.noAnimations};
_.v.setClass=function(O){this.speechOverlayClassName&&_.JG(this.hostElement,this.speechOverlayClassName,!1);O&&(this.speechOverlayClassName=O,_.JG(this.hostElement,O,!0))};
_.v.runLevelAnimation=function(){var O=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var m=1+Math.random()*.75,G=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+G/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+m+")");_.ln.addJob(function(){O.runLevelAnimation()},3,G)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
gA.prototype.stateChanged=gA.prototype.stateChanged;gA.prototype.transcriptionChanged=gA.prototype.transcriptionChanged;gA.prototype.onPopupClosed=gA.prototype.onPopupClosed;gA.prototype.dataChanged=gA.prototype.dataChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],gA.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],gA.prototype,"rendererStamperBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],gA.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],gA.prototype,"eventForwardingBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],gA.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],gA.prototype,"speechOverlayState",void 0);
_.c([_.g(),_.Y("design:type",Object)],gA.prototype,"microphoneSpinnerActive",void 0);_.c([_.g({type:_.V("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.Y("design:type",Object)],gA.prototype,"noAnimations",void 0);_.c([_.g({selector:function(O){var m;return(m=O.voiceSearch)==null?void 0:m.transcription}}),
_.Y("design:type",Object)],gA.prototype,"transcription",void 0);_.c([_.g({selector:function(O){var m;return(m=O.voiceSearch)==null?void 0:m.overlay}}),
_.Y("design:type",String)],gA.prototype,"state",void 0);_.c([_.g(),_.Y("design:type",Object)],gA.prototype,"boundExitClick",void 0);_.c([_.uc("#microphone-levels"),_.Y("design:type",HTMLElement)],gA.prototype,"level",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gA.prototype,"dataChanged",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gA.prototype,"onPopupClosed",null);
_.c([_.Si("transcription"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gA.prototype,"transcriptionChanged",null);_.c([_.Si("state"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],gA.prototype,"stateChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],gA);
_.y(gA,"ytd-voice-search-dialog-renderer",function(){if(yko!==void 0)return yko;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return yko=O},{mode:1});var iFK;var uJ=function(){var O=_.u.apply(this,arguments)||this;O.isOverlay=!1;O.hidden=!1;return O};
_.X(uJ,_.u);_.v=uJ.prototype;_.v.onPopupClosed=function(){this.toggleIconState(!1)};
_.v.computeIcon=function(){var O,m,G;return(m=_.b((O=this.data)==null?void 0:O.icon,DdA))==null?void 0:(G=m.icon)==null?void 0:G.iconType};
_.v.computeIconBadgeShape=function(){var O;return{iconBadgeType:"cart",iconBadgeText:(O=this.iconBadgeEntity)==null?void 0:O.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.v.onClick=function(){var O;(O=this.data)!=null&&O.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.v.computeHidden=function(O){return!O};
_.v.toggleIconState=function(O){this.iconButton&&(this.iconButton.pressed=O)};
uJ.prototype.onPopupClosed=uJ.prototype.onPopupClosed;_.c([_.h(_.MK),_.Y("design:type",Object)],uJ.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],uJ.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],uJ.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],uJ.prototype,"isOverlay",void 0);
_.c([_.g({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.Y("design:type",Object)],uJ.prototype,"hidden",void 0);_.c([_.g({selectorArgs:["data.iconBadgeEntityKey"],selector:function(O,m){return _.Vh(O.entities,"iconBadgeEntity",m)}}),
_.Y("design:type",Object)],uJ.prototype,"iconBadgeEntity",void 0);_.c([_.uc("yt-icon-button"),_.Y("design:type",HTMLButtonElement)],uJ.prototype,"iconButton",void 0);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],uJ.prototype,"onPopupClosed",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],uJ);
_.y(uJ,"ytd-icon-badge-topbar-button-renderer",function(){if(iFK!==void 0)return iFK;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return iFK=O},{mode:1});var xAs;var jb=function(){var O=_.u.apply(this,arguments)||this;O.premiumOptions=[];O.darkerDarkTheme=_.V("web_darker_dark_theme");return O};
_.X(jb,_.u);jb.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.vr.Object.defineProperties(jb.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],jb.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Array)],jb.prototype,"premiumOptions",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],jb.prototype,"darkerDarkTheme",void 0);_.c([_.T("premiumOptions"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],jb.prototype,"hasPremiumOptions",null);
_.c([_.l({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],jb);
_.y(jb,"ytd-offline-promo-content",function(){if(xAs!==void 0)return xAs;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return xAs=O},{mode:1});var q4o;var Ig=function(){var O=_.u.apply(this,arguments)||this;O.premiumOptions=[];return O};
_.X(Ig,_.u);Ig.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var O;this.premiumOptions=HJb((O=this.data)==null?void 0:O.formats)};
Ig.prototype.onClickSubmit=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var O;(O=_.M1())==null||O.pause()};
Ig.prototype.attached=function(){this.JSC$20685_scroller&&(this.JSC$20685_scroller.dialogElement=this.hostElement.parentNode)};
_.vr.Object.defineProperties(Ig.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Ig.prototype.dataChanged=Ig.prototype.dataChanged;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Ig.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ig.prototype,"data",void 0);
_.c([_.g({computed:"computeIcon_(data.headersIcon)",value:""}),_.Y("design:type",String)],Ig.prototype,"headersIcon",void 0);_.c([_.g(),_.Y("design:type",Array)],Ig.prototype,"premiumOptions",void 0);_.c([_.uc("#scroller"),_.Y("design:type",Object)],Ig.prototype,"JSC$20685_scroller",void 0);_.c([_.T("headersIcon"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],Ig.prototype,"showIcon",null);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ig.prototype,"dataChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Ig);
_.y(Ig,"ytd-offline-promo-renderer",function(){if(q4o!==void 0)return q4o;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return q4o=O},{mode:1});var UAr;var pD=function(){var O=_.u.apply(this,arguments)||this;O.playbackPauseInterval=NaN;O.isLoading=!1;O.hasError=!1;O.dialogClass="";O.youtubeLabel=_.Xm("LOGO_ALT_LABEL",{},"YouTube Home");O.logoName="yt-logos-ext:yt-logo-updated";O.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return O};
_.X(pD,_.u);_.v=pD.prototype;_.v.onDataChange=function(){var O;if(this.showEOMV1Text=!((O=this.data)==null||!O.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.v.attached=function(){this.pausePlayer()};
_.v.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.v.handleLangSelect=function(O){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[O.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.v.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.v.handleSaveConsent=function(O){var m=this;this.showLoadingSpinner();this.showLoadingSpinner();yK3(_.b(O,sF0)).catch(function(G){_.ay(new _.j9("Something went wrong when save consent "+(G.message?G.message:G)+"."));m.hideLoadingSpinner();m.showErrorMessage()})};
_.v.handleDisablePersonalization=function(O){var m=this;this.showLoadingSpinner();cK0(_.b(O,DxA)).then(function(){m.dialog.close();m.resumePlayer()}).catch(function(G){_.ay(new _.j9("Something went wrong when disable personalization "+(G.message?G.message:G)+"."));
m.hideLoadingSpinner();m.showErrorMessage()})};
_.v.showLoadingSpinner=function(){var O=this;this.showSpinnerJobId=_.ln.addLowPriorityJob(function(){O.isLoading=!0},500)};
_.v.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.ln.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.v.showErrorMessage=function(){var O=this;this.hasError=!0;_.ln.addLowPriorityJob(function(){O.hasError=!1},2E3)};
_.v.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Zg(function(){try{var O=_.M1();O&&O.pause()}catch(m){}},100))};
_.v.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var O=_.M1();O&&O.play()}catch(m){}};
_.vr.Object.defineProperties(pD.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.eomV1Text)return[];O=[];for(var m=["SHIELD","WARNING","BAR_CHART"],G=this.data.eomV1Text.essentialCookieMsg.items,B=0;B<m.length&&B<G.length;B++)O.push({icon:m[B],text:G[B]});return O}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var O;if((O=this.data)==null||!O.eomV1Text)return[];O=[];for(var m=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],G=this.data.eomV1Text.nonEssentialCookieMsg.items,B=0;B<m.length&&B<G.length;B++)O.push({icon:m[B],text:G[B]});return O}}});
pD.prototype.onDataChange=pD.prototype.onDataChange;_.c([_.g(),_.Y("design:type",Object)],pD.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],pD.prototype,"showEOMV1Text",void 0);_.c([_.g(),_.Y("design:type",Object)],pD.prototype,"isLoading",void 0);_.c([_.g(),_.Y("design:type",Object)],pD.prototype,"hasError",void 0);_.c([_.g(),_.Y("design:type",Number)],pD.prototype,"showSpinnerJobId",void 0);_.c([_.g(),_.Y("design:type",Object)],pD.prototype,"dialogClass",void 0);
_.c([_.uc("#dialog"),_.Y("design:type",Object)],pD.prototype,"dialog",void 0);_.c([_.uc("#cb-header"),_.Y("design:type",HTMLElement)],pD.prototype,"header",void 0);_.c([_.uc("#lang-select"),_.Y("design:type",HTMLElement)],pD.prototype,"langSelect",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],pD.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],pD.prototype,"ytComponentBehavior",void 0);
_.c([_.g(),_.Y("design:type",String)],pD.prototype,"youtubeLabel",void 0);_.c([_.g(),_.Y("design:type",Object)],pD.prototype,"logoName",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],pD.prototype,"onDataChange",null);_.c([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],pD.prototype,"eomEssentialCookieMsgItems",null);
_.c([_.T("data"),_.Y("design:type",Array),_.Y("design:paramtypes",[])],pD.prototype,"eomNonEssentialCookieMsgItems",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],pD);
_.y(pD,"ytd-consent-bump-v2-lightbox",function(){if(UAr!==void 0)return UAr;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return UAr=O},{mode:1});var tm0;var Sb=function(){return _.u.apply(this,arguments)||this};
_.X(Sb,_.u);Sb.prototype.ready=function(){if(!_.Tg()||MGA)var O=!0;else MGA=!0,O=!1;O||(O=document.querySelector("ytd-app"),O||(O=document.body),this.internalLightBox=_.ZO(O).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.c([_.g(),_.Y("design:type",Object)],Sb.prototype,"data",void 0);_.c([_.uc("#lightbox"),_.Y("design:type",Object)],Sb.prototype,"lightBox",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Sb);
_.y(Sb,"ytd-consent-bump-v2-renderer",function(){if(tm0!==void 0)return tm0;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return tm0=O},{mode:1});var Wjb;var ZFB;var zgh;var EC=function(){return _.u.apply(this,arguments)||this};
_.X(EC,_.u);_.v=EC.prototype;_.v.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&bqK(this.toastManager,this.toastType)};
_.v.open=function(O){this.toast&&(this.ephemeralAction&&_.KR().resolve(_.Bn).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=O!=null?O:0,this.toastManager.enqueue(this.toast,O)):this.toast.open())};
_.v.close=function(O){var m;(m=this.toast)==null||m.close();this.toastManager&&O===1&&bqK(this.toastManager,O)};
_.v.refit=function(){var O;(O=this.toast)==null||O.refit()};
_.v.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var O;(O=this.toast)==null||O.close()}};
_.v.setVerticalOffset=function(O){this.toast&&(this.toast.verticalOffset=O,this.toast.fit())};
_.v.computeButtonClass_=function(O){return O?"toast-button":""};
_.v.computeText_=function(O){return _.HX(O)};
_.v.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.zR("toast-opened-changed",this.toastOpened))};
_.v.updateToastOpenedFromBinding=function(O){this.toastOpened=O.detail.value};
_.vr.Object.defineProperties(EC.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var O,m,G=(O=this.data)==null?void 0:(m=O.actionButton)==null?void 0:m.buttonRenderer;return(G==null?void 0:G.command)||(G==null?void 0:G.serviceEndpoint)||(G==null?void 0:G.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 O=[],m;((m=this.data)==null?0:m.responseText)&&O.push(_.HX(this.data.responseText));var G;((G=this.data)==null?0:G.subText)&&O.push(_.HX(this.data.subText));var B,Q;if((B=this.data)==null?0:(Q=B.actionButton)==null?0:Q.buttonRenderer){var H,M;O.push(((H=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(M=H.accessibilityData)==null?void 0:M.label)||_.HX(this.data.actionButton.buttonRenderer.text))}return O.filter(function(R){return R}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var O,m;return(m=(O=this.toast)==null?void 0:O.opened)!=null?m:!1}}});
EC.prototype.toastOpenedChangedForBinding=EC.prototype.toastOpenedChangedForBinding;EC.prototype.toastOpenedChanged=EC.prototype.toastOpenedChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],EC.prototype,"ytEventForwardingBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],EC.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],EC.prototype,"duration",void 0);
_.c([_.g(),_.Y("design:type",Number)],EC.prototype,"toastType",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],EC.prototype,"useCloseButton",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],EC.prototype,"closeToastOnActionButtonClick",void 0);_.c([_.g({value:function(){return _.Xm("SBOX_INAPPROPRIATE_CANCEL")}}),
_.Y("design:type",String)],EC.prototype,"closeButtonAriaLabel",void 0);_.c([_.g(),_.Y("design:type",Boolean)],EC.prototype,"toastOpened",void 0);_.c([_.g(),_.Y("design:type",Boolean)],EC.prototype,"hasOpened",void 0);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EC.prototype,"command",null);_.c([_.T("labelText","command","duration"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EC.prototype,"ephemeralAction",null);
_.c([_.T("ephemeralAction"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],EC.prototype,"hasEphemeralAction",null);_.c([_.uc("#toast"),_.Y("design:type",Object)],EC.prototype,"toast",void 0);_.c([_.g({value:function(){return{style:"call-to-action-inverse"}}}),
_.Y("design:type",Object)],EC.prototype,"buttonOverrides",void 0);_.c([_.g({value:{style:"mono-inverse"}}),_.Y("design:type",Object)],EC.prototype,"closeButtonOverrides",void 0);_.c([_.g({value:function(){return _.KR().resolve(_.v7(_.FT))}}),
_.Y("design:type",Object)],EC.prototype,"toastManager",void 0);_.c([_.T("data.responseText","data.subText","data.actionButton"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],EC.prototype,"labelText",null);_.c([_.Tw("toastOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EC.prototype,"toastOpenedChanged",null);
_.c([_.Tw("toastOpened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],EC.prototype,"toastOpenedChangedForBinding",null);_.c([_.DO({is:"yt-notification-action-renderer",disableElementRegistration:!0})],EC);
_.y(EC,"yt-notification-action-renderer",function(){if(zgh===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;ZFB===void 0&&(ZFB=document.createElement("template"));var B=ZFB;G.call(m,B.content.cloneNode(!0),O.content.firstChild);zgh=O}O=zgh;return O},{mode:2});var LD=function(){var O=_.u.apply(this,arguments)||this;O.duration=4E3;O.downloadingCount=0;O.downloadedCount=0;O.downloadingOnlySmartDownloads=!1;O.sessionTotalDownloads=0;O.sessionDownloaded=0;O.previousSessionsDownloaded=0;O.totalDownloadPercentage=0;O.currentDownloadProgress=0;O.currentDownloadPercentage=0;O.isLeaderTab=!0;O.isFullScreen=!1;O.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};O.boundBeforeUnload=function(m){O.isLeaderTab&&O.downloadingCount>0&&(m.preventDefault(),
m.returnValue=!0)};
return O};
_.X(LD,_.u);_.v=LD.prototype;
_.v.open=function(){this.updateDownloadState();if(this.data){var O=this.sessionDownloaded+1,m=this.sessionTotalDownloads>1?_.Xm("VIDEOS_DOWNLOADING_RATIO",{downloaded:O.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+O+"/"+this.sessionTotalDownloads):_.Xm("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(m=this.sessionTotalDownloads>1?_.Xm("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:O.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
O+"/"+this.sessionTotalDownloads):_.Xm("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));O=this.isLeaderTab?_.Xm("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.HX(this.data.responseText)!==m||_.HX(this.data.subText)!==O)this.set("data.responseText",_.Qg(m)),this.set("data.subText",_.Qg(O)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.v.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.v.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.v.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.v.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var O=this.downloadedCount-this.previousSessionsDownloaded;O<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-O);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.v.handleFullscreenChange=function(O){(this.isFullScreen=O)||this.updatePopup()};
LD.prototype.updateCurrentDownloadProgress=LD.prototype.updateCurrentDownloadProgress;LD.prototype.updatePopup=LD.prototype.updatePopup;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],LD.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],LD.prototype,"ytEventForwardingBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],LD.prototype,"actionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],LD.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],LD.prototype,"duration",void 0);_.c([_.g({selector:function(O){return _.iKr(O.entities).length}}),
_.Y("design:type",Object)],LD.prototype,"downloadingCount",void 0);_.c([_.g({selector:F8K}),_.Y("design:type",Object)],LD.prototype,"downloadedCount",void 0);_.c([_.g({selector:function(O){var m=_.iKr(O.entities);return PPx(O.entities,m)}}),
_.Y("design:type",Object)],LD.prototype,"downloadingOnlySmartDownloads",void 0);_.c([_.g(),_.Y("design:type",Object)],LD.prototype,"sessionTotalDownloads",void 0);_.c([_.g(),_.Y("design:type",Object)],LD.prototype,"sessionDownloaded",void 0);_.c([_.g(),_.Y("design:type",Object)],LD.prototype,"previousSessionsDownloaded",void 0);_.c([_.g(),_.Y("design:type",Object)],LD.prototype,"totalDownloadPercentage",void 0);
_.c([_.g({selector:function(O){var m;O=(m=_.iKr(O.entities))!=null?m:[];return O.length>0?_.mON(O.slice(-1)):0}}),
_.Y("design:type",Object)],LD.prototype,"currentDownloadProgress",void 0);_.c([_.g(),_.Y("design:type",Object)],LD.prototype,"currentDownloadPercentage",void 0);_.c([_.g({selector:_.WGz}),_.Y("design:type",Object)],LD.prototype,"isLeaderTab",void 0);_.c([_.uc("yt-notification-action-renderer"),_.Y("design:type",Object)],LD.prototype,"notificationActionRenderer",void 0);
_.c([_.Si("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LD.prototype,"updatePopup",null);_.c([_.Si("currentDownloadProgress"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],LD.prototype,"updateCurrentDownloadProgress",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],LD);
_.y(LD,"ytd-video-download-toast-renderer",function(){if(Wjb!==void 0)return Wjb;var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return Wjb=O},{mode:1});var J9u;var VmB;var CD=function(){return _.u.apply(this,arguments)||this};
_.X(CD,_.u);CD.prototype.computeIsRedLogo=function(O,m){!O&&m&&(O=m);return O==="YOUTUBE_RED_LOGO"||O==="YOUTUBE_PREMIUM_LOGO"};
CD.prototype.computeLogoName=function(O){O=this.componentBehavior.computeIcon_(O);return O===""?"yt-logos-ext:yt-logo-updated":O};
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],CD.prototype,"componentBehavior",void 0);_.c([_.g({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.Y("design:type",Boolean)],CD.prototype,"isRedLogo",void 0);_.c([_.g({computed:"computeLogoName(data)"}),_.Y("design:type",String)],CD.prototype,"logoName",void 0);_.c([_.g({value:{}}),_.Y("design:type",Object)],CD.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],CD.prototype,"logoType",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-logo"})],CD);
_.y(CD,"ytd-logo",function(){if(VmB!==void 0)return VmB;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return VmB=O},{mode:_.ZB("kevlar_poly_si_batch_j074")?1:2});var og=function(){var O=_.u.apply(this,arguments)||this;O.animationRef={};return O};
_.X(og,_.u);_.v=og.prototype;_.v.attached=function(){document.addEventListener("yt-navigate-finish",_.f7(this,this.logYoodle))};
_.v.detached=function(){document.removeEventListener("yt-navigate-finish",_.f7(this,this.logYoodle))};
_.v.logYoodle=function(){var O,m;if((O=this.data)==null?0:(m=O.loggingDirectives)==null?0:m.trackingParams)this.ytRendererBehavior.markDirty(),_.uK().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.v.computeHideImg=function(O,m){return!!O||!!m};
_.v.computeHideYtdLogo=function(O,m){return!O||!!m};
_.v.computeHideLottie=function(O){return!O};
_.v.computeIsRedLogo=function(O){return O==="YOUTUBE_RED_LOGO"||O==="YOUTUBE_PREMIUM_LOGO"};
_.v.renderLogoEntity=function(){var O=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),m=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),G=this.getLogoTitleText(this.data),B=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==O&&(this.url=O);this.animatedUrl!==m&&(this.animatedUrl=m);this.logoTitleText!==G&&(this.logoTitleText=G);this.lottieUrl!==B&&(this.lottieUrl=B,this.lottiePlayerProps=this.computeLottiePlayerProps(B))};
_.v.getSanitizedThumbnail=function(O){return O&&O.thumbnails?_.nxp(O.thumbnails,122)||"":""};
_.v.getThumbnailUrl=function(O,m){if(!m)return"";var G,B;O=O?(G=m.darkThemeLogo)==null?void 0:G.thumbnail:(B=m.lightThemeLogo)==null?void 0:B.thumbnail;return this.getSanitizedThumbnail(O)};
_.v.getAnimatedThumbnailUrl=function(O,m){return m?this.getSanitizedThumbnail(O?m.darkThemeAnimatedLogo:m.lightThemeAnimatedLogo):""};
_.v.getLogoTitleText=function(O){if(O)return _.HX(O.tooltipText)};
_.v.computeLogoIcon=function(O,m){if(m){var G,B;return O?(G=m.darkThemeLogo)==null?void 0:G.icon:(B=m.lightThemeLogo)==null?void 0:B.icon}};
_.v.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.v.getLottieUrl=function(O,m){var G,B,Q,H;return O?m==null?void 0:(G=m.darkThemeLogo)==null?void 0:(B=G.lottieAnimation)==null?void 0:B.url:m==null?void 0:(Q=m.lightThemeLogo)==null?void 0:(H=Q.lottieAnimation)==null?void 0:H.url};
_.v.computeLottiePlayerProps=function(O){if(O){var m;if((m=this.animationRef)==null?0:m.lottieEl){var G;(G=this.animationRef)==null||G.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:O,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.v.onLottieError=function(){this.data&&this.lottieUrl&&_.iP(this.hostElement,"yoodle-error")};
_.v.onImgError=function(){this.data&&!this.lottieUrl&&_.iP(this.hostElement,"yoodle-error")};
og.prototype.playAnimation=og.prototype.playAnimation;og.prototype.renderLogoEntity=og.prototype.renderLogoEntity;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],og.prototype,"data",void 0);_.c([_.g({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.Y("design:type",Boolean)],og.prototype,"hideImg",void 0);
_.c([_.g({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.Y("design:type",Boolean)],og.prototype,"hideYtdLogo",void 0);_.c([_.g({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.Y("design:type",Boolean)],og.prototype,"hideLottie",void 0);_.c([_.g({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.Y("design:type",Boolean)],og.prototype,"isRedLogo",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],og.prototype,"useDarkThemeYoodle",void 0);_.c([_.g(),_.Y("design:type",String)],og.prototype,"url",void 0);_.c([_.g(),_.Y("design:type",String)],og.prototype,"animatedUrl",void 0);_.c([_.g(),_.Y("design:type",String)],og.prototype,"logoTitleText",void 0);_.c([_.g({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.Y("design:type",Object)],og.prototype,"logoIcon",void 0);_.c([_.g(),_.Y("design:type",Object)],og.prototype,"logoType",void 0);
_.c([_.g(),_.Y("design:type",String)],og.prototype,"lottieUrl",void 0);_.c([_.g(),_.Y("design:type",Object)],og.prototype,"lottiePlayerProps",void 0);_.c([_.g(),_.Y("design:type",Object)],og.prototype,"animationRef",void 0);_.c([_.Tw("data"),_.Tw("useDarkThemeYoodle"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],og.prototype,"renderLogoEntity",null);
_.c([_.hG("click"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],og.prototype,"playAnimation",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],og);
_.y(og,"ytd-yoodle-renderer",function(){if(J9u!==void 0)return J9u;var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return J9u=O},{mode:_.ZB("kevlar_poly_si_batch_j074")?1:2});var bFr;var nlx;var XZy=_.sv.currentPageTypeSelector,flr=_.sv.currentPageSubTypeSelector,lJ=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return O};
_.X(lJ,_.u);_.v=lJ.prototype;_.v.onYoodleError=function(){_.V("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.v.computeLogoName=function(O){O=this.componentBehavior.computeIcon_(O);return O===""?"yt-logos-ext:yt-logo-updated":O};
_.v.computeTitle=function(O,m,G){return G&&(m==null?0:m.tooltipText)?_.HX(m.tooltipText):_.HX(O)};
_.v.computeAriaLabel=function(O,m,G){return G&&(m==null?0:m.tooltipText)?_.HX(O):""};
_.v.computeShowYoodle=function(O,m,G){return!O||!m&&!!G&&!_.aM.isEmpty(G)};
_.v.onNavigateHomeAction=function(){if(_.V("kevlar_miniplayer_navigate_home_from_app_killswitch")){var O;(O=_.ZO(this.hostElement).querySelector(".yt-simple-endpoint"))==null||O.click()}};
_.v.computeLogoHref=function(O,m,G){var B;(G==null?0:G.onTapCommand)?B=this.componentBehavior.computeHref_(G.onTapCommand):O&&(B=this.componentBehavior.computeHref_(O));return B?B:m};
_.v.computeCommand=function(O,m){return(m==null?void 0:m.onTapCommand)||O};
_.v.getEndpointForm=function(){if(_.V("kevlar_topbar_disable_cache_only_home")){var O=_.KR().resolve(_.ry),m=XZy(O.getState())||"";O=flr(O.getState())||"";return{disableCache:m==="ytd-browse"&&O==="home"}}return{disableCache:!0}};
lJ.prototype.onYoodleError=lJ.prototype.onYoodleError;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],lJ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],lJ.prototype,"componentBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],lJ.prototype,"ytdReduxBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],lJ.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],lJ.prototype,"countryCode",void 0);_.c([_.g({selectorArgs:["data.overrideEntityKey"],selector:function(O,m){return _.Vh(O.entities,"logoEntity",m)}}),
_.Y("design:type",Object)],lJ.prototype,"logoEntity",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.Y("design:type",Boolean)],lJ.prototype,"showYoodle",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],lJ.prototype,"yoodleError",void 0);_.c([_.g({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.Y("design:type",String)],lJ.prototype,"titleText",void 0);
_.c([_.g({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.Y("design:type",String)],lJ.prototype,"ariaLabelText",void 0);_.c([_.g({value:"/"}),_.Y("design:type",String)],lJ.prototype,"defaultEndpointUrl",void 0);_.c([_.g({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.Y("design:type",String)],lJ.prototype,"endpointUrl",void 0);
_.c([_.g({computed:"computeCommand(data.endpoint, logoEntity)"}),_.Y("design:type",String)],lJ.prototype,"command",void 0);_.c([_.g(),_.Y("design:type",Object)],lJ.prototype,"logoType",void 0);_.c([_.g({}),_.Y("design:type",Boolean)],lJ.prototype,"useDarkThemeYoodle",void 0);_.c([_.hG("yoodle-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],lJ.prototype,"onYoodleError",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],lJ);
_.y(lJ,"ytd-topbar-logo-renderer",function(){if(nlx!==void 0)return nlx;var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return nlx=O},{mode:_.ZB("kevlar_poly_si_batch_j027")?1:2});var hgA=0;var TPK=_.oX.SEARCH_APPEND_LABEL,glr=_.oX.SUGGESTION_NEW_VIDEOS_TEXT,u6A=_.oX.SUGGESTION_THUMBNAIL_LABEL,jzb=_.oX.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,Ilr=_.a(function(O){function m(f$){var Wb,G9;return _.r(function(U9){if(U9.nextAddress==1)return Wb=new Request(f$),_.n_(U9,2),U9.yield(fetch(Wb,{credentials:"include"}),4);if(U9.nextAddress!=2)return uy(!0),_.P7(U9,0);G9=_.uS(U9);_.ay(G9);_.ju(U9)})}
var G=O.isHighlighted;var B=O.suggestion;var Q=O.onClickCallback;var H=O.onHoverUpdateCallback;var M=O.labels;var R=O.queryBuilderFunction;var x=O.onRemoveCallback;var t=O.suggestionIndex;var W=O.generateUniqueId;var Z=O.highlightedId;var z=O.useScrollMargin;var J=O.isKeyboardMode;var n=null,I=null,S=_.Al("div"),L=_.Al("span");O=_.K(_.Wf(!1,void 0,"mxSc0e"));var C=O.next().value,P=O.next().value,w=_.GX("a",function(f$){f$&&_.jl(237477,f$,I,function(Wb){I=Wb})}),d=_.GX("button",function(f$){f$&&_.jl(237477,
f$,I,function(Wb){I=Wb})}),D=_.nH(function(f$){if((f$==null?void 0:f$.button)===2)return f$.preventDefault(),!1;
var Wb=_.yA();Wb&&n&&_.Bq(Wb,n,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var G9;Q(f$,B().text,B().index,B().entityMid,f$==null?void 0:(G9=f$.detail)==null?void 0:G9.wasSelectedByKeyboard);return!1}),OS=function(){return B().type===35},rN=function(){return _.V("desktop_enable_single_suggestion_highlight")},xO=function(){return _.Rd("desktop_suggestions_panel_row_height")||0},XI=function(){var f$;
return _.V("desktop_enable_new_video_metadata")&&((f$=B())==null?void 0:f$.hasNewVideo)===!0},Vf=function(){return _.V("desktop_enable_visual_suggest")},US=function(){return _.V("desktop_enable_entity_suggest")&&GGy(B())},CN=function(){return B().entitySubtitle},oe=function(){return rN()?(G==null?void 0:G())||Gp()&&!(J==null?0:J()):(G==null?void 0:G())||Gp()},K$=function(){var f$=_.kB("SBOX_SETTINGS");
return OS()&&!(f$==null?0:f$.HIDE_REMOVE_LINK)},n$=function(){return BPA(B(),{useEntityName:US()})},qe,PM=!((qe=_.KR().resolve(_.v7(_.B6)))==null||!qe()),ZH=function(){return OS()?_.V("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},U3=function(){return M==null?void 0:M().SUGGESTION_DISMISS_LABEL},p$=function(){return M==null?void 0:M().SUGGESTION_DISMISSED_LABEL};
O=_.K(_.Wf(!1,void 0,"WMms1e"));qe=O.next().value;var uy=O.next().value;O=_.K(_.Wf(!1,void 0,"PyL0t"));var vb=O.next().value,vM=O.next().value,Gp=vb,Vu=_.nH(function(){R(L.value.innerText);return!1}),Gu=_.nH(function(f$){f$.preventDefault();
return!1}),x9=_.nH(function(f$){var Wb=B().text,G9=_.kB("SBOX_SETTINGS"),U9="https://"+(G9.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
U9+="&delq="+encodeURIComponent(Wb);(Wb=G9==null?void 0:G9.PSUGGEST_TOKEN)&&(U9+="&tok="+Wb);(G9=G9==null?void 0:G9.SESSION_INDEX)&&(U9+="&authuser="+G9);m(U9);f$.preventDefault();(f$=_.yA())&&I&&_.Bq(f$,I,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");x(t==null?void 0:t());return!1}),Am=_.nH(function(){if(rN()&&(J==null?0:J()))return!1;
vM(!0);H(!0);return!1}),Fc=_.nH(function(){vM(!1);
H(!1);return!1}),O9=_.nH(function(){P(!0);
return!1}),Rj=_.nH(function(){P(!1);
return!1}),DH=_.nH(function(f$){f$.preventDefault();
if(B().entityThumbnailAttributionUrl){f$=B().entityThumbnailAttributionUrl;var Wb=B().entityName,G9={urlEndpoint:{url:f$},commandMetadata:{webCommandMetadata:{url:f$}}};f$={buttonViewModel:{title:_.Xm("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:{dismissDialogEndpoint:{}}}}};G9={buttonViewModel:{title:_.Xm("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:G9}}};
Wb={dialogHeaderViewModel:{headline:{content:Wb!=null?Wb:_.Xm("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var U9={basicContentViewModel:{paragraphs:[{text:{content:_.Xm("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};f$={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Wb,footer:{panelFooterViewModel:{primaryButton:G9,secondaryButton:f$,shouldHideDivider:!0}},content:U9}}}}};_.KR().resolve(_.Mu).resolveCommand(f$)}return!1});
O=_.K(_.Wf("",void 0,"yG5Sx"));var zu=O.next().value,jo=O.next().value;_.EZ(function(){K$()&&jo(W==null?void 0:W(t==null?void 0:t()));S.value&&_.jl(12453,S.value,n,function(f$){n=f$})});
return _.q(_.U,{cond:qe,then:function(){var f$={};return _.q("div",{class:_.bE("ytSuggestionComponentRemovedText",(f$.ytSuggestionComponentLargerRemovedText=function(){return Vf()},f$)),
style:function(){return xO()>0?"height: "+xO()+"px;":""},
role:"button"},p$)},
else:function(){var f$={},Wb={};return _.q("div",{class:_.bE("ytSuggestionComponentSuggestion",(f$.ytSuggestionComponentSuggestionHover=function(){return!rN()},f$.ytSuggestionComponentHighlighted=oe,f$.ytSuggestionComponentPersonalizedSuggestion=OS,f$.ytSuggestionComponentMweb=!1,f$.ytSuggestionComponentLargerSuggestion=function(){return XI()||Vf()},f$.ytSuggestionComponentThumbnailSuggestion=function(){return Vf()},f$.ytSuggestionComponentRoundedSuggestion=function(){return _.V("desktop_enable_scrollable_suggestions_panel")&&
_.V("desktop_enable_suggestions_panel_padding")},f$.ytSuggestionComponentThumbnailPadding=function(){return Vf()&&!OS()},f$)),
style:function(){return xO()>0?"height: "+xO()+"px;":""},
role:"presentation","on:mousedown":D,"on:mouseover":Am,"on:mouseout":Fc,el:S},_.q("div",{class:_.bE("ytSuggestionComponentText",(Wb.ytSuggestionComponentScrollMargin=z,Wb)),"aria-label":function(){return XI()?B().text+" "+glr:B().text},
id:function(){return W==null?void 0:W(t==null?void 0:t())},
"on:mousedown":D,role:"option"},_.q(_.U,{cond:function(){return B().type!==33},
then:function(){return _.q(_.T$,{icon:ZH,className:"ytSuggestionComponentIcon"})}}),_.q("div",{class:"ytSuggestionComponentLeftContainer"},_.q("span",{el:L,
role:"button",tabindex:0},_.q(_.gi,{each:n$},function(G9){return G9.bold?_.q("span",{class:"ytSuggestionComponentBold"},G9.text):_.q("span",null,G9.text)})),_.q(_.U,{cond:function(){return US()&&!!B().entitySubtitle||XI()},
then:function(){return _.q("div",{class:"ytSuggestionComponentMetadataContainer"},_.q(_.U,{cond:function(){return US()&&!!B().entitySubtitle},
then:function(){return _.q("div",{class:"ytSuggestionComponentEntitySubtitle"},CN)}}),_.q(_.U,{cond:function(){return XI()},
then:function(){return _.q("div",{class:"ytSuggestionComponentNewVideoContainer"},_.q("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.q("div",{class:"ytSuggestionComponentNewVideoText"},glr))}}))}}))),_.q("div",{class:"ytSuggestionComponentRightContainer"},_.q(_.U,{cond:function(){return Vf()&&B().visualSuggestUrl!==void 0},
then:function(){var G9={};return _.q("div",{class:"ytSuggestionComponentThumbnailContainer"},_.q("img",{"aria-label":u6A,class:_.bE("ytSuggestionComponentVisualSuggestThumbnail",(G9.ytSuggestionComponentCircularFrame=function(){return US()&&B().subtypes.includes(790)},G9.ytSuggestionComponentEntitySuggestThumbnail=function(){return US()},G9)),
src:function(){return B().visualSuggestUrl}}),_.q(_.U,{cond:function(){return US()&&!!B().entityThumbnailAttributionUrl},
then:function(){var U9={};return _.q("span",{title:jzb,role:"tooltip"},_.q("div",{"on:mouseover":O9,"on:mouseout":Rj,"on:mousedown":DH,class:_.bE("ytSuggestionComponentThumbnailOverlay",(U9.ytSuggestionComponentThumbnailOverlayHidden=function(){return!C()},U9))},_.q(_.T$,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.q(_.I8,null,_.q(_.uz,{when:function(){return Vf()&&K$()}},function(){var G9={};
return _.q("button",{class:_.bE("ytSuggestionComponentRemoveLinkClearButton",(G9.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return zu()&&zu()===(Z==null?void 0:Z())},G9.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!oe()},G9)),
el:d,"on:mousedown":x9,"aria-label":U3,id:function(){return zu()}},_.q(_.T$,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.q(_.uz,{when:function(){return!(Vf()&&B().visualSuggestUrl!==void 0)&&K$()}},function(){var G9={};
return _.q("a",{class:_.bE("ytSuggestionComponentRemoveLink",(G9.ytSuggestionComponentRemoveLinkDark=PM,G9.ytSuggestionComponentRemoveLinkSelected=function(){return zu()&&zu()===(Z==null?void 0:Z())},G9)),
el:w,"on:mousedown":x9,"aria-label":U3,tabindex:0,role:"button",id:function(){return zu()}},U3)}),_.q(_.uz,{when:function(){return!1}},function(){return _.q("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Vu,"on:mousedown":Gu,role:"button","aria-label":TPK},_.q(_.T$,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Dh");var pZ9=_.FY(["//www.google.com/textinputassistant/","/","_tia.js"]),S43=_.a(function(){return _.q("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.q("button",{class:"ytdTextInputAssistantButton","on:click":_.nH(function(){KjJ().inputMethodsTracker.add(3);var O,m=(O=_.kB("SBOX_SETTINGS"))==null?void 0:O.REQUEST_LANGUAGE;if(m)return _.sF(_.WY(pZ9,14,m)),!1})},_.q("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Eh");var Els=function(){this.cache=new Map},LjK=function(O){for(var m=_.K(O.cache.entries()),G=m.next();!G.done;G=m.next()){var B=_.K(G.value);
G=B.next().value;B=B.next().value;B.suggestions.some(function(Q){return Q.type===35})&&O.cache.delete(G)}};var Cx0=_.oX.SEARCH,ol9=_.oX.SEARCH_CLEAR_LABEL,llo=new _.Us("FAKE_SUGGEST_RESPONSE");_.qi(_.a(function(O){function m(){O9||(O9=setTimeout(function(){DH()},1E3))}
function G(XC,b2,E9){if(XC.trim()){Fc=XC;_.a8("REFINEMENTS_TUPLE",void 0);x9=!0;var VO;b2=r9A(vb,b2);var Ws=(VO=O.searchEndpoint)==null?void 0:VO.call(O);_.Mh3(XC,b2,Ws,ZH.value.value,E9);DH();ZH.value.value=XC;ZH.value.blur();vb.reset()}}
function B(XC){return _.r(function(b2){return b2.return(new Promise(function(E9){var VO=new XMLHttpRequest;VO.open("GET",s29(XC),!0);VO.withCredentials=!0;var Ws=_.kB("SBOX_SETTINGS");(Ws==null?0:Ws.SEND_VISITOR_DATA)&&VO.setRequestHeader("X-Goog-Visitor-Id",Ws==null?void 0:Ws.VISITOR_DATA);VO.onload=function(){E9(VO.responseText)};
VO.onerror=function(){_.ay(Error("Fl"));E9(null)};
setTimeout(function(){VO.abort()},1E4);
VO.send(null)}))})}
function Q(XC){var b2,E9,VO,Ws;return _.r(function(g9){switch(g9.nextAddress){case 1:return b2={credentials:"include",headers:DEy()},window.AbortController&&(E9=new AbortController,setTimeout(function(){E9.abort("ytsbox-suggest-timeout")},1E4),b2.signal=E9.signal),_.n_(g9,2),g9.yield(fetch(s29(XC),b2),4);
case 4:VO=g9.yieldResult.text();_.P7(g9,3);break;case 2:return Ws=_.uS(g9),Ws!=="ytsbox-abort-last"&&Ws!=="ytsbox-suggest-timeout"&&_.ay(Ws),g9.return(null);case 3:return g9.return(VO)}})}
function H(XC){var b2,E9,VO;return _.r(function(Ws){switch(Ws.nextAddress){case 1:if(b2=_.KR().resolve(_.v7(llo)))return Ws.return(b2);E9=Date.now();m();return _.V("yt_searchbox_xhr")?Ws.yield(B(XC),5):Ws.yield(Q(XC),4);case 4:VO=Ws.yieldResult;Ws.jumpTo(3);break;case 5:VO=Ws.yieldResult;case 3:if(VO){O9&&(clearTimeout(O9),O9=null);var g9=vb,ch=E9,c8=XC.query.length===0;ch=Date.now()-ch;c8?g9.zeroPrefixRoundTripTime=ch:(g9.JSC$20665_totalRoundTripTime+=ch,g9.maxRoundTripTime=Math.max(g9.maxRoundTripTime,
ch),c8=Math.floor(ch/100),c8>=RgK.length?++g9.roundTripTimeHistogram[9]:++g9.roundTripTimeHistogram[RgK[c8]])}return Ws.return(VO)}})}
function M(XC){var b2,E9,VO;return _.r(function(Ws){if(Ws.nextAddress==1)return(b2=uy.cache.get(ens(XC)))?Ws.return(b2):Ws.yield(H(XC),2);E9=Ws.yieldResult;if(E9===null)return Ws.return(null);VO=new Qzx(E9);XC.query.length===0&&VO.suggestions.length===0||uy.cache.set(ens(XC),VO);return Ws.return(VO)})}
function R(XC){var b2,E9;return _.r(function(VO){if(VO.nextAddress==1){Am=!1;var Ws=Fc;Ws=_.wtY()==="search"?(_.s0(location.href,"search_query")||_.s0(location.href,"q"))===Ws:!1;b2=new w_0(XC,Ws?Fc:null);return VO.yield(M(b2),2)}E9=VO.yieldResult;if(E9===null)return VO.return();b2.query.length===0&&(vb.zeroPrefixSuggestionCount=E9.suggestions.length);if(b2.id<=Rj)return vb.outOfSyncResponseCount++,VO.return();if(document.activeElement!==ZH.value)return VO.return();Rj=b2.id;var g9=vb,ch=E9.rawResponse[2]||
{};g9.experimentTriggeredBeforeFinal||(g9.experimentTriggeredBeforeFinal=g9.experimentTriggeredFinal);g9.experimentTriggeredFinal=!!ch.e;vb.updateSuggestions(E9.suggestions);S(-1);K$([]);E9.suggestions!==J()&&pS(E9.suggestions.length);n(E9.suggestions);rN(E9.suggestions.length>0&&E9.suggestions[0].type===33);p$&&(p$.hidden=E9.suggestions.length===0,OS()?(p$.style.minWidth="",g9=p$.style,ch=(Ws=J()[0])==null?void 0:Ws.ignoredPrefix,g9.marginLeft=(ch?Math.min(ch.length*6,U3.value.offsetWidth):0).toString()+
"px"):(p$.style.minWidth=U3.value.offsetWidth+"px",p$.style.marginLeft="0"),ms());_.ju(VO)})}
function x(){if(!x9)return!1;var XC=_.kB("REFINEMENTS_TUPLE");return XC?(XC=XC[1].map(function(b2,E9){return new mAA([b2,0,[71]],ZH.value.value,E9)}),J()!==XC&&pS(XC.length),K$([]),n(XC),vb.updateSuggestions(XC),x9=!1,p$.hidden=XC.length===0,Am=XC.length>0,!0):!1}
function t(){var XC=ZH.value.value;(typeof XC==="string"||XC instanceof String)&&XC!==""?w(!0):w(!1)}
function W(){if(_.wtY()==="search"){var XC=window.location.href;try{var b2=_.s0(XC,"search_query")||_.s0(XC,"q")||""}catch(E9){b2=""}b2&&(ZH.value.value=b2,w(!0))}}
var Z=_.K(_.Wf([],void 0,"OC8EPc")),z=Z.next().value;Z=Z.next().value;var J=z,n=Z;z=_.K(_.Wf(-1,void 0,"t2tVQb"));var I=z.next().value,S=z.next().value;z=_.K(_.Wf(-1,void 0,"v0RZCe"));var L=z.next().value,C=z.next().value;z=_.K(_.Wf(!1,void 0,"rjAnI"));var P=z.next().value,w=z.next().value;z=_.K(_.Wf(!1,void 0,"SyGLvb"));var d=z.next().value,D=z.next().value;Z=_.K(_.Wf(!1,void 0,"tL09Cb"));z=Z.next().value;Z=Z.next().value;var OS=z,rN=Z;Z=_.K(_.Wf(!1,void 0,"FlH7mc"));z=Z.next().value;var xO=Z.next().value;
Z=_.K(_.Wf(!1,void 0,"ea3fwe"));var XI=Z.next().value,Vf=Z.next().value;Z=_.K(_.Wf(1,void 0,"vSK1xe"));var US=Z.next().value,CN=Z.next().value;Z=_.K(_.Wf([],void 0,"ijlw4b"));var oe=Z.next().value,K$=Z.next().value;Z=_.K(_.Wf(!1,void 0,"HcRey"));var n$=Z.next().value,qe=Z.next().value;Z=_.V("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var PM=_.Al("yt-searchbox"),ZH=_.Al("input"),U3=_.Al("div"),p$,uy=
new Els,vb=KjJ(),vM=_.KR().resolve(_.v7(_.B6)),Gp=function(){var XC;return((XC=O.forceDarkMode)==null?void 0:XC.call(O))||!(vM==null||!vM())},Vu=function(){return _.V("desktop_enable_scrollable_suggestions_panel")},Gu="i"+hgA++,x9=!1,Am=!1,Fc="",O9=null,Rj=-1,DH=function(){K$([]);
n([]);rN(!1);p$&&(p$.hidden=!0);O9&&(clearTimeout(O9),O9=null);S(-1)},zu=function(XC,b2){XC.preventDefault();
qe(!0);p$&&(p$.hidden=!1);var E9=I();XC=J();var VO=oe();b2=rtK(b2);E9+=b2;for(E9>=XC.length?E9=-1:E9<-1&&(E9=XC.length-1);E9!==-1&&(VO.includes(E9)||E9>=XC.length||E9<0);)E9+=b2,E9>=XC.length&&(E9=-1);S(E9);I()>=0&&(ZH.value.value=J()[I()].text,C(0),t(),XC=I(),VO=L(),(VO=document.getElementById(vY[XC][VO]))&&Vu()&&(XC===J().length-1?p$.scrollTop=p$.scrollHeight:VO.scrollIntoView({block:"nearest",inline:"start"})))},jo=_.nH(function(XC){if(!(XC.relatedTarget instanceof Element&&XC.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){D(!0);
var b2;(b2=O.focusCallback)==null||b2.call(O,!0);x()||(Am?p$.hidden=!1:(_.iP(PM.value,"yt-autonav-pause-focus",{}),R(XC.target.value)))}}),f$=_.nH(function(XC){if(!(XC.relatedTarget instanceof Element&&XC.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){D(!1);
var b2;(b2=O.focusCallback)==null||b2.call(O,!1);p$.scrollTop=0;p$.hidden=!0;_.iP(PM.value,"yt-autonav-pause-blur",{})}}),Wb=function(XC){XC=rtK(XC);
var b2;((b2=vY[I()])==null?0:b2[L()+XC])&&C(L()+XC)},G9=_.nH(function(XC){var b2=XC.target;
switch(XC.keyCode){case 13:XC.preventDefault();var E9;if((E9=vY[I()])==null?0:E9[L()]){var VO;(VO=document.getElementById(vY[I()][L()]))==null||VO.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}XC=XC.shiftKey?4:3;E9=vb;VO=I();E9.selectedSuggestionIndex=VO;G(b2.value,XC);break;case 27:p$&&(p$.hidden=!0);break;case 40:zu(XC,40);break;case 38:zu(XC,38);break;case 39:Wb(39);break;case 37:Wb(37);break;case 229:vb.inputMethodsTracker.add(4);break;default:vb.inputMethodsTracker.add(1),
$AB(vb)}return!1}),U9=_.nH(function(XC){R(XC.target.value);
t();Vu()&&p$&&(p$.scrollTop=0);return!1}),IM=_.nH(function(){vb.inputMethodsTracker.add(2);
$AB(vb);return!1});
_.EZ(function(){if(p$){vb.reset();if(window.ResizeObserver){var XC=new ResizeObserver(function(){OS()||(p$.style.minWidth=U3.value.offsetWidth+"px")});
XC.observe(U3.value);(new ResizeObserver(function(){ms()})).observe(p$);
_.LS(function(){XC.disconnect()})}W();
window.addEventListener("yt-navigate-finish",W);window.addEventListener("yt-focus-searchbox",function(){ZH.value.focus()});
var b2;xO((b2=_.kB("SBOX_SETTINGS"))==null?void 0:b2.HAS_ON_SCREEN_KEYBOARD)}else _.oy(new _.j9("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var pI=_.nH(function(XC){XC.preventDefault();G(ZH.value.value,12);return!1}),yu=_.nH(function(XC){XC.preventDefault();
var b2,E9;(b2=ZH)==null||(E9=b2.value)==null||E9.focus();var VO,Ws;((VO=ZH)==null?void 0:(Ws=VO.value)==null?void 0:Ws.value)!==""&&(ZH.value.value="",ZH.value.dispatchEvent(new Event("input")));return!1}),SK=_.nH(function(){var XC=BHr(ZH.value.value,J().filter(function(b2){return b2.type!==35}).map(function(b2){return{label:b2.text}}));
_.xc(PM.value,"yt-open-popup-action",[{openPopupAction:XC},document.body]);return!1}),s9=_.nH(function(){ZH.value.focus();
return!1}),Xc=function(XC,b2,E9,VO,Ws){vb.selectedSuggestionIndex=E9;
G(b2,Ws?3:1,VO)},xR=function(XC){ZH.value.value=XC;
ZH.value.dispatchEvent(new Event("input"));vb.inputMethodsTracker.add(5);$AB(vb,!0)},vY=[[]],Sj=function(XC){var b2="searchbox-suggestion"+_.DI(_.HZ);
vY[XC].push(b2);return b2},pS=function(XC){if(J()){vY=[[]];
for(var b2=0;b2<XC;b2++)vY.push([])}},ms=function(){if(Vu()){var XC=p$,b2=XC.scrollTop;
XC=XC.scrollHeight-XC.clientHeight;Vf(b2>=XC);b2=Math.abs(XC-b2);b2<=40?CN(1-(40-b2)/40):CN(1)}},MB=function(){return"opacity: "+US()*100+"%"},TY=_.nH(function(){ms();
return!1}),ls=_.nH(function(){qe(!1);
return!1}),wN,zp={},ts={},SA={},Xr={};
return _.q("yt-searchbox",{class:_.bE("ytSearchboxComponentHost",(zp.ytSearchboxComponentMweb=!1,zp.ytSearchboxComponentDesktop=!0,zp["yt-searchbox-filled-query"]=function(){return P()},zp["ytd-masthead"]=function(){return!d()},zp.ytSearchboxComponentHostDark=Gp,zp)),
role:"search",el:PM,"client-ve-type":10349},_.q("div",{el:U3,"on:click":s9,class:_.bE("ytSearchboxComponentInputBox",(ts.ytSearchboxComponentInputBoxDark=Gp,ts.ytSearchboxComponentInputBoxHasFocus=d,ts))},_.q("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":pI},_.q(_.U,{cond:d,then:function(){return _.q("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.q(_.T$,{icon:"SEARCH"}))}}),_.q("input",{el:ZH,
class:_.bE("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Gu,"aria-expanded":!((wN=p$)==null?0:wN.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":f$,"on:focus":jo,"on:input":U9,"on:keydown":G9,"on:paste":IM,placeholder:O.placeholderText,"aria-activedescendant":function(){var XC;return(XC=vY[I()])==null?void 0:XC[L()]},
"aria-autocomplete":"list",role:"combobox"})),_.q(_.U,{cond:z,then:function(){return _.q("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.q(S43,null))}}),_.q(_.U,{cond:P,
then:function(){return _.q("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.q("button",{class:"ytSearchboxComponentClearButton","on:click":yu,"aria-label":O.clearButtonAriaLabel||ol9},_.q(_.T$,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.q(_.S1,{model:{}})))}})),_.q("button",{class:_.bE("ytSearchboxComponentSearchButton",(SA.ytSearchboxComponentSearchButtonDark=Gp,SA)),
"on:click":pI,"aria-label":Cx0,title:O.placeholderText},_.q(_.T$,{icon:"SEARCH"})),_.q(_.U,{cond:function(){if(ogh()&&_.V("mweb_voice_search")&&O.voiceSearchButton)return O.voiceSearchButton()},
then:function(XC){var b2={};return _.q("div",{class:_.bE("ytSearchboxComponentVoiceSearchWrapper",(b2.ytSearchboxComponentHideVoiceSearchButton=function(){return P()},b2))},_.q(_.u5,{data:XC},{buttonRenderer:function(E9){return _.q(_.VN,{data:E9.data,
onButtonClickCallback:function(){}})}}))}}),_.q("div",{el:_.Mi(function(XC){return void(p$=XC)}),
id:Gu,class:_.bE("ytSearchboxComponentSuggestionsContainer",(Xr.ytSearchboxComponentSuggestionsContainerDark=Gp,Xr["yt-searchbox-suggestions-container"]=!1,Xr.ytSearchboxComponentSuggestionsContainerScrollable=Vu(),Xr.ytSearchboxComponentSuggestionsContainerAnimated=Z,Xr)),"on:scroll":TY,"on:mousemove":ls,role:"listbox",hidden:!0},_.q(_.gi,{each:J},function(XC,b2){return _.q(Ilr,{suggestion:XC,isHighlighted:function(){return b2()===I()},
onClickCallback:Xc,onHoverUpdateCallback:function(E9){if(_.V("desktop_enable_single_suggestion_highlight")){var VO=b2();E9&&(C(0),S(VO))}},
onRemoveCallback:function(E9){LjK(uy);E9===void 0||E9<0||oe().includes(E9)||K$([].concat(_.lS(oe()),[E9]))},
labels:O.labels,queryBuilderFunction:xR,suggestionIndex:b2,generateUniqueId:Sj,highlightedId:function(){var E9;return(E9=vY[I()])==null?void 0:E9[L()]},
useScrollMargin:Vu(),isKeyboardMode:n$})}),_.q(_.U,{cond:function(){return!OS()&&J().find(function(XC){return XC.type!==35})&&_.V("searchbox_reporting")},
then:function(){return _.q("button",{class:"ytSearchboxComponentReportButton","on:mousedown":SK},_.Xm("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.q(_.U,{cond:function(){return!XI()&&Vu()},
then:function(){return _.q("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.q("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:MB}))}})))},"Fh"),"yt-searchbox",{props:{searchEndpoint:_.VZ,
placeholderText:_.VZ,labels:_.VZ,voiceSearchButton:_.VZ,focusCallback:_.RZ,clearButtonAriaLabel:_.VZ,forceDarkMode:_.VZ}});var ag=function(){var O=_.u.apply(this,arguments)||this;O.menuButtonTargetId="topbar-guide-menu";O.narrow=!1;O.menuStrings={BACK_ALT_LABEL:_.Xm("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Xm("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Xm("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Xm("SBOX_PLACEHOLDER",void 0,"Search")};O.pageDarkTheme=document.documentElement.hasAttribute("dark");O.watchPageScrollTop=0;O.theater=!1;O.fullscreen=!1;O.disableFrostedGlassDuringViewTransition=
!1;O.desktopUnifiedSearchPanelMode=_.V("desktop_enable_unified_search_panel");O.cinematicTheaterMode=_.V("web_cinematic_theater_mode");O.aiCompanionEnabled=_.V("enable_ai_companion");O.ytSearchboxFocused=!1;O.searchboxLabels=_.kB("SBOX_LABELS");O.topbarIsAboveChipbar=!1;O.isDarkThemeForced=!1;O.areGhostCardsHidden=!1;O.guideKeyboardToggle=!1;O.voiceSearchManager=sUA();O.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};O.setYtSearchboxFocused=
function(m){O.ytSearchboxFocused=m};
O.toggleFrostedGlassDuringViewTransition=function(m){O.disableFrostedGlassDuringViewTransition=m};
return O};
_.X(ag,_.u);_.v=ag.prototype;_.v.computeSimpleText=function(O){return _.HX(O)};
_.v.onDarkChanged=function(){for(var O=_.K(this.buttons||[]),m=O.next();!m.done;m=O.next())m.value.isOverlay=!!this.dark;O=_.K(this.buttonRenderers||[]);for(m=O.next();!m.done;m=O.next())m.value.overrides=this.computeButtonOverride()};
_.v.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.v.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.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var O=_.q2(_.xA(),"aa");_.JG(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||O||(this.isDarkThemeForced=this.dark=!0);this.logoType?(O=this.hostElement.querySelector("#masthead-logo"))&&(_.V("polymer_on_demand_shady_dom")?O.setAttribute("slot","masthead-logo-old"):_.hF(O)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.f7(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.f7(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.v.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.f7(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.f7(this,this.onSetTheaterModeEnabled))};
_.v.dataChanged=function(){var O=this.data;O&&(this.voiceEnabled=O.voiceSearchButton?sUA().isSupported():!1,_.z43(_.PD(),this.menuButtonTargetId,this.guideButton),O.onReceivedActions&&O.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Wd(this.hostElement,O.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&O&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.JG(this.hostElement,"dark",!1),_.JG(this.hostElement,"theater",!1),
(O=this.hostElement.querySelector("#masthead-logo"))&&(_.V("polymer_on_demand_shady_dom")?O.setAttribute("slot","masthead-logo-old"):_.hF(O))))};
_.v.computeCenterHidden=function(){var O;return this.data&&!((O=this.data.searchbox)==null?0:O.fusionSearchboxRenderer)};
_.v.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.JG(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.v.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.v.onWatchScroll=function(O){this.watchPageScrollTop=O.detail||0;this.updateMastheadBackgroundOpacity()};
_.v.onFullscreenChangeAction=function(O){O||(this.watchPageScrollTop=0);this.fullscreen=O;this.updateMastheadBackgroundOpacity()};
_.v.onSetTheaterModeEnabled=function(O){this.theater=O.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.v.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.v.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.v.setBackgroundOpacity=function(O){O=this.calculateBackgroundOpacity(O);this.background.style.opacity=""+O};
_.v.calculateBackgroundOpacity=function(O){var m=this.theater&&this.cinematicTheaterMode?.6:0,G=this.hostElement.clientHeight/2;return Math.min(Math.max(O,0),G)/G*(1-m)+m};
_.v.shouldShowCinematicMastHead=function(){var O=_.V("kevlar_watch_grid")&&!_.V("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(O||this.pageDarkTheme)};
_.v.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.v.focusGuide=function(){this.guideButton.focus()};
_.v.onGuideToggleTap=function(){_.iP(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.v.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.v.onGuideToggleHover=function(){_.iP(this.hostElement,"yt-guide-hover")};
_.v.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.v.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.v.closeOnOutsideClickCondition=function(O){for(O=_.$Z(O);O[0];){var m=O.shift();if(m instanceof Element&&m.id==="kbd")return!1}return!0};
_.v.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.v.pausePlayer=function(){var O;(O=_.M1())==null||O.pause();this.pauseMiniplayer()};
_.v.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var O;(O=_.KR().resolve(_.c$).getPlayerElement())==null||O.pause()}};
_.v.isMiniplayerActive=function(){return _.KR().resolve(_.c$).isMiniplayerActive()};
_.v.updateNarrowFromBinding=function(O){this.narrow=O.detail.value};
_.v.onYtSendFeedbackAction=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.v.registerWithViewTransitionManager=function(){EFu(_.KR().resolve(_.dF),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.vr.Object.defineProperties(ag.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.V("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 O;return(O=this.data)==null?void 0:O.voiceSearchButton}}}});
ag.prototype.narrowChanged=ag.prototype.narrowChanged;ag.prototype.onWatchPageChange=ag.prototype.onWatchPageChange;ag.prototype.onRendererStamperFinished=ag.prototype.onRendererStamperFinished;ag.prototype.dataChanged=ag.prototype.dataChanged;ag.prototype.onDarkChanged=ag.prototype.onDarkChanged;_.c([_.h(_.Dm),_.Y("design:type",Object)],ag.prototype,"ironResizableBehavior",void 0);_.c([_.h(_.lyh),_.Y("design:type",Object)],ag.prototype,"ytdExpandableInputBehavior",void 0);
_.c([_.h(_.UH.YtdGuideStateAwareBehavior),_.Y("design:type",Object)],ag.prototype,"ytdGuideStateAwareBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ag.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],ag.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ag.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],ag.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.MK),_.Y("design:type",Object)],ag.prototype,"ytdReduxBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],ag.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],ag.prototype,"narrow",void 0);_.c([_.g(),_.Y("design:type",Object)],ag.prototype,"logoType",void 0);_.c([_.g(),_.Y("design:type",Boolean)],ag.prototype,"voiceEnabled",void 0);
_.c([_.g(),_.Y("design:type",Object)],ag.prototype,"menuStrings",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],ag.prototype,"dark",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ag.prototype,"pageDarkTheme",void 0);_.c([_.g(),_.Y("design:type",Object)],ag.prototype,"watchPageScrollTop",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.HiS}),_.Y("design:type",Boolean)],ag.prototype,"isWatchPage",void 0);
_.c([_.g({reflectToAttribute:!0,selector:_.vAf}),_.Y("design:type",Boolean)],ag.prototype,"isShortsPage",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ag.prototype,"theater",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ag.prototype,"fullscreen",void 0);_.c([_.g({reflectToAttribute:!0,selector:_.rC5}),_.Y("design:type",String)],ag.prototype,"frostedGlassMode",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],ag.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.c([_.g(),_.Y("design:type",Object)],ag.prototype,"aiCompanionEnabled",void 0);_.c([_.g(),_.Y("design:type",Object)],ag.prototype,"ytSearchboxFocused",void 0);_.c([_.ji("#buttons > *"),_.Y("design:type",Array)],ag.prototype,"buttons",void 0);_.c([_.ji("ytd-button-renderer"),_.Y("design:type",Array)],ag.prototype,"buttonRenderers",void 0);
_.c([_.uc("#background"),_.Y("design:type",HTMLDivElement)],ag.prototype,"background",void 0);_.c([_.uc("#guide-button"),_.Y("design:type",Object)],ag.prototype,"guideButton",void 0);_.c([_.uc("#logo"),_.Y("design:type",Object)],ag.prototype,"logo",void 0);_.c([_.g({computed:"computeButtonOverride(dark)"}),_.Y("design:type",Object)],ag.prototype,"buttonOverrides",void 0);
_.c([_.Si("dark"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ag.prototype,"onDarkChanged",null);_.c([_.g({value:function(){return this.onVoiceTap.bind(this)}}),
_.Y("design:type",Function)],ag.prototype,"boundOnTapVoiceButton",void 0);_.c([_.g(),_.Y("design:type",Object)],ag.prototype,"topbarIsAboveChipbar",void 0);_.c([_.g(),_.Y("design:type",String),_.Y("design:paramtypes",[])],ag.prototype,"guideIcon",null);_.c([_.T("voiceEnabled"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],ag.prototype,"shouldShowVoiceSearchButton",null);_.c([_.T("data"),_.Y("design:type",Object),_.Y("design:paramtypes",[])],ag.prototype,"voiceSearchButton",null);
_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ag.prototype,"dataChanged",null);_.c([_.hG("yt-rendererstamper-finished"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ag.prototype,"onRendererStamperFinished",null);_.c([_.Si("isWatchPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ag.prototype,"onWatchPageChange",null);
_.c([_.Si("narrow"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ag.prototype,"narrowChanged",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-masthead"})],ag);
_.y(ag,"ytd-masthead",function(){if(bFr!==void 0)return bFr;var O=document.createElement("template");_.f(O,'\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 id="ai-companion-button" hidden="[[!data.aiCompanionButton]]" 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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return bFr=O},{mode:_.ZB("kevlar_poly_si_batch_j036")?1:2});var aly;var kGr={},y9B={},c90={},Y43={},dAr=(Y43.OFFLINE=(kGr["publicytnetworkstatus-online"]="BACK_ONLINE",kGr),Y43.ONLINE=(y9B["publicytnetworkstatus-offline"]="OFFLINE",y9B),Y43.BACK_ONLINE=(c90["publicytnetworkstatus-offline"]="OFFLINE",c90.TIMER_TRIGGER="ONLINE",c90),Y43),kC=function(){var O=_.u.apply(this,arguments)||this;O.currentState="ONLINE";O.scheduledJobId=0;O.bannerString="";O.bannerVe=null;O.networkStatusManagerInstance=new _.PI;return O};
_.X(kC,_.u);_.v=kC.prototype;_.v.attached=function(){var O=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){O.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){O.stateChangeHandler("publicytnetworkstatus-offline")})};
_.v.detached=function(){var O=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){O.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){O.stateChangeHandler("publicytnetworkstatus-offline")})};
_.v.enterState=function(O){var m=this;this.scheduledJobId&&_.ln.cancelJob(this.scheduledJobId);O==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):O==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Xm("NO_INTERNET_CONNECTION",void 0,"No internet connection")):O==="BACK_ONLINE"&&(this.bannerString=_.Xm("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.uT(_.ln,function(){m.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=O};
_.v.stateChangeHandler=function(O){(O=dAr[this.currentState][O])&&this.enterState(O)};
_.v.logVisibility=function(O){var m=_.yA();this.createBannerVe(O);m&&this.bannerVe&&(O?_.Or(m,[this.bannerVe]):_.mf(m,[this.bannerVe]))};
_.v.createBannerVe=function(O){!this.bannerVe&&O&&(this.bannerVe=_.Zv(37929),_.CK(_.uK(),this.bannerVe))};
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",String)],kC.prototype,"currentState",void 0);_.c([_.g(),_.Y("design:type",Object)],kC.prototype,"scheduledJobId",void 0);_.c([_.g(),_.Y("design:type",Object)],kC.prototype,"bannerString",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-network-status-banner"})],kC);
_.y(kC,"ytd-network-status-banner",function(){if(aly!==void 0)return aly;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return aly=
O},{mode:1});var wZ3;var yP=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};O.hidden=!0;O.frostedGlass=_.V("web_frosted_glass");return O};
_.X(yP,_.u);yP.prototype.computeHidden=function(O){return O&&O.status?!1:!0};
yP.prototype.handleUpdatePermissionRoleCommand=function(O){if(O=_.b(O,_.BcH))if(O=_.b(O.renderer,_.G_8))this.data=O};
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],yP.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],yP.prototype,"componentBehavior",void 0);_.c([_.g({value:!0,computed:"computeHidden(data)"}),_.Y("design:type",Object)],yP.prototype,"hidden",void 0);_.c([_.g(),_.Y("design:type",Object)],yP.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],yP.prototype,"frostedGlass",void 0);
_.c([_.l({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],yP);
_.y(yP,"ytd-permission-role-bottom-bar-renderer",function(){if(wZ3!==void 0)return wZ3;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return wZ3=O},{mode:1});var egx;var DAx;var RXo={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var cy=function(){return _.u.apply(this,arguments)||this};
_.X(cy,_.u);_.v=cy.prototype;_.v.attached=function(){this.JSC$20780_scroller&&(this.JSC$20780_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20780_scroller.attached&&typeof this.JSC$20780_scroller.attached==="function"&&this.JSC$20780_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(G){G.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var O=_.ZO(this.hostElement);O.querySelector("tp-yt-paper-radio-group").selected="";var m=O.querySelector("#reason-text");m&&(m.value="");O.querySelector("#description-text").value=""}};
_.v.canSubmit=function(O,m){_.iP(this.hostElement,"yt-invalidate-popup-tabbables");return!(O&&m)};
_.v.onCancel=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.v.onSubmit=function(){var O=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(H){return H.active}).map(function(H){return H.innerText.trim()}),m=this.hostElement.querySelector("tp-yt-paper-radio-group"),G=m.selectedItem,B=G.name;
G=G.innerText.trim();var Q=m.querySelector("#reason-text");m=void 0;Q&&(m=Q.value);(Q=this.descriptionText.value)&&(Q=Q.trim());iJ3(this.data.searchQuery,O,B,G,Q,m);_.xc(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.v.sendFormSubmitToast=function(){var O=_.Rh(_.Xm("SBOX_INAPPROPRIATE_TOAST"));_.xc(this.hostElement,"yt-open-popup-action",[O,this])};
_.v.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(O){return O.active})};
_.v.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
cy.prototype.onIronSelect=cy.prototype.onIronSelect;cy.prototype.onIronChange=cy.prototype.onIronChange;cy.prototype.dataChanged=cy.prototype.dataChanged;_.c([_.g(),_.Y("design:type",Object)],cy.prototype,"data",void 0);_.c([_.g({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.Y("design:type",Boolean)],cy.prototype,"submitDisabled",void 0);_.c([_.g(),_.Y("design:type",Boolean)],cy.prototype,"suggestionSelected",void 0);
_.c([_.g(),_.Y("design:type",Boolean)],cy.prototype,"catagorySelected",void 0);_.c([_.uc("#scroller"),_.Y("design:type",Object)],cy.prototype,"JSC$20780_scroller",void 0);_.c([_.uc("#description-text"),_.Y("design:type",Object)],cy.prototype,"descriptionText",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cy.prototype,"dataChanged",null);
_.c([_.hG("iron-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cy.prototype,"onIronChange",null);_.c([_.hG("iron-select"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],cy.prototype,"onIronSelect",null);_.c([_.l({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],cy);
_.y(cy,"ytd-search-suggestion-report-dialog",function(){if(DAx!==void 0)return DAx;var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);return DAx=O},{mode:1});var YC=function(O){var m=O.openPopupAction;var G=O.target;var B=O.container;var Q=O.popupContainerConfig;var H=O.getElement;O=O.removeWhenClosed===void 0?!1:O.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=m;this.target=G;this.container=B;this.popupContainerConfig=Q;this.getElement=H;this.JSC$20786_popupConfig=this.popupContainerConfig.JSC$19921_popupConfig[this.openPopupAction.popupType];this.rendererName=(m=this.getName())?_.YvN(m,hs9(this.popupContainerConfig,
m)):"";_.V("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=O);this.createPopup()};
YC.prototype.updatePopup=function(O){this.openPopupAction=O;this.JSC$20786_popupConfig=this.popupContainerConfig.JSC$19921_popupConfig[this.openPopupAction.popupType];szA(this);_.V("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
YC.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var Fjr=function(O,m,G){(m=m&&O.JSC$20786_popupConfig.narrowProperties?O.JSC$20786_popupConfig.narrowProperties:O.JSC$20786_popupConfig.properties)&&G!==void 0&&(m.isAriaModal=G);NPh(O,m);O.isRtl()&&NPh(O,O.JSC$20786_popupConfig.rtlProperties);PxA(O)};
YC.prototype.createPopup=function(){var O=this.JSC$20786_popupConfig.component;if(this.popupContent=A9A(this,this.rendererName)){if(O){this.popup=A9A(this,O);var m=this.popupContent;_.V("web_enable_wrapper_for_cow_component_in_popup")&&(m=document.createElement("div"),m.appendChild(this.popupContent));_.V("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20786_popupConfig.slotName&&m.setAttribute("slot",this.JSC$20786_popupConfig.slotName);O=this.popup;var G=this.container.tagName.toLowerCase(),
B=_.rX(m);_.L1Y(_.ic(O),_.Uc(m,G,B));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.V("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.ZO(this.container).appendChild(this.popup)}};
var szA=function(O){var m,G,B=(m=O.openPopupAction.accessibilityData)==null?void 0:(G=m.accessibilityData)==null?void 0:G.label;B&&(O.popup.ariaLabel=B);var Q;((Q=O.popupContent.polymerController)!=null?Q:O.popupContent).data=(0,_.aM.unsafeClone)(O.openPopupAction.popup[O.getName()]);O.popupContent.duration=O6y(O);O.popupContent.positionType=O.openPopupAction.position;var H=O.openPopupAction.properties;H&&Object.keys(H).forEach(function(M){O.popupContent[M]=H[M]})},NPh=function(O,m){if(m)for(var G=
_.K(Object.keys(m)),B=G.next();!B.done;B=G.next())B=B.value,O.popup[B]=m[B]},PxA=function(O){if(O.openPopupAction.position){var m=O.JSC$20786_popupConfig.positionalProperties&&O.JSC$20786_popupConfig.positionalProperties[O.openPopupAction.position],G=O.JSC$20786_popupConfig.rtlPositionalProperties&&O.JSC$20786_popupConfig.rtlPositionalProperties[O.openPopupAction.position];
m=O.isRtl()&&G?G:m;m.shiftedHorizontalOffset&&(G=O.popup.style.display,O.popup.style.display="block",O.popupContent&&O.popup.positionTarget&&O.popupContent.clientWidth>O.popup.positionTarget.clientWidth&&(m.horizontalOffset=O.popup.positionTarget.clientWidth/2-m.shiftedHorizontalOffset),O.popup.style.display=G);NPh(O,m)}},m9y=function(O,m){if(m)for(var G=_.K(Object.keys(m)),B=G.next();!B.done;B=G.next())B=B.value,O.popup.style[B]=m[B]};
YC.prototype.getName=function(){return _.o8(this.openPopupAction.popup,"renderer")||_.o8(this.openPopupAction.popup,"dialog")||_.o8(this.openPopupAction.popup,"model")||void 0};
var O6y=function(O){O=O.openPopupAction.durationHintMs;return O===0?O:Math.max(4E3,O||4E3)};
YC.prototype.isRtl=function(){return _.kB("HTML_DIR")==="rtl"};
var A9A=function(O,m){O=O.getElement(m,O.target);O==null&&_.ay(new _.j9("popup getElement returned null",m));return O};var GI3={};
GI3.YtPopupContainerBehavior=[_.xo.YtComponentBehavior,_.cg.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_);_.rr(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Rs(this.hostElement)},
closePopup:function(O){var m=this.createCacheKey(void 0,O);this.popups_[m]&&this.handleClosePopupAction_(void 0,O)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.ln.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.ln.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(O){O.opened&&O.keepBelowPlayer&&this.ensurePopupBelowPlayer(O)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var O in this.popups_){var m=this.popups_[O];if(m.popup.scrollAction==="refit"){var G=m.popup.positionTarget.getBoundingClientRect(),B=m.popup;G=G.top;var Q=m;if(!Q.naturalHeight){Q.popup.hidden=!1;Q.popup.style.position="fixed";Q.popup.style.top="0px";Q.popup.style.left="0px";var H=Q.popup.getBoundingClientRect();Q.naturalHeight=H.bottom-H.top;Q.popup.refit()}B.hidden=!(G>=Q.naturalHeight+60);m.popupContent.clientHeight===0&&m.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(O){this.popupContainerConfig=O},
handleOpenPopupAction:function(O,m){var G=O.openPopupAction,B=_.KR().resolve(_.v7(_.FT))&&G.popupType==="TOAST";B&&!G.uniqueId&&(G.uniqueId=_.Wn());if(!_.V("popup_container_parent_target_killswitch")){var Q;m=(Q=this.getParentTarget(m))!=null?Q:m}var H=this.ensurePopup_(G,m);return new _.zH(function(M){H.then(function(R){if(!R)return M();this.maybeCreateNarrowMediaQuery_();var x=this.createCacheKey(R.rendererName,R.openPopupAction.uniqueId);if(G.showOncePerUniqueId){if(this.shownPopupKeys_.has(x))return M();
this.shownPopupKeys_.add(x)}x=this.popups_[x];var t=!(!x||!x.openPopupAction.beReused);t=!!G.reusePopup||t;if(R.popup.opened&&!t){B&&!R.openPopupAction.replacePopup||this.handleClosePopupAction_(R.rendererName,R.openPopupAction.uniqueId);t=G.popupType==="DIALOG"&&!_.V("popup_container_dialog_reopen_killswitch");if(!B&&!t&&x&&x.target==m&&!R.openPopupAction.replacePopup)return M();_.QA(R.popup,function(){this.completeOpenPopupAction_(G,m,R);M()}.bind(this))}else R.popup.opened?R.updatePopup(G):this.completeOpenPopupAction_(G,
m,R),M()}.bind(this))}.bind(this))},
getParentTarget:function(O){if(O&&O instanceof HTMLElement)for(var m=_.K(Object.entries(this.popups_)),G=m.next();!G.done;G=m.next())if(G=_.K(G.value),G.next(),G=G.next().value,this.popupClosesOnClick(G)&&G.popup.contains(O))return G.target},
popupClosesOnClick:function(O){return O.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(O.rendererName.toUpperCase())},
completeOpenPopupAction_:function(O,m,G){G.updatePopup(O);O=this.narrowMediaQuery_.queryMatches;var B=this.isAriaModal;G.target=m;var Q;m=((Q=G.target.polymerController)!=null?Q:G.target).popupPositionTarget||G.target;G.JSC$20786_popupConfig.targetContainer&&(m=G.container);G.popup.positionTarget=m;G.popupContent.positionTarget=m;PxA(G);G.JSC$20786_popupConfig.forceFocus&&(G.popupContent.style.outline="none");G.popupContent.tabIndex=-1;G.JSC$20786_popupConfig.narrowProperties&&(G.popup.style.position=
"static");G.JSC$20786_popupConfig.preventAutonav&&G.popup.setAttribute("prevent-autonav",!0);G.JSC$20786_popupConfig.forceCloseOnOutsideClick&&G.popup.setAttribute("force-close-on-outside-click",!0);Fjr(G,O,B);m9y(G,G.JSC$20786_popupConfig.styles);G.isRtl()&&m9y(G,G.JSC$20786_popupConfig.rtlStyles);if(!G.openPopupAction.shouldStopParentSignal){var H;Q=(H=G.target.polymerController)!=null?H:G.target;(G.popupContent.startForwardingEvents||G.popupContainerConfig.forwardingEnabledPopups.has(G.rendererName))&&
Q.parentComponent!==G.popupContent&&G.popupContent!==G.target&&G.target!==document.body&&(G.popupContent.startForwardingEvents?G.popupContent.startForwardingEvents(G.popupContainerConfig.forwardedEvents,G.target):(G.JSC$20786_eventForwarder||(G.JSC$20786_eventForwarder=new _.rJ(G.popupContent)),G.JSC$20786_eventForwarder.start(G.popupContainerConfig.forwardedEvents,G.target)))}G=G.popup;G.addEventListener("iron-overlay-opened",_.f7(this,this.onPopupIronOverlayOpened_));G.addEventListener("iron-overlay-closed",
_.f7(this,this.onPopupIronOverlayClosed_));G.addEventListener("iron-overlay-canceled",_.f7(this,this.onPopupIronOverlayCanceled_));G.addEventListener("yt-refit",_.f7(this,this.refitPopup_));G.addEventListener("yt-invalidate-popup-tabbables",_.f7(this,this.handleInvalidatePopupTabbables_));G.open()},
getPopupDurationMs_:function(O){return O.durationHintMs===0?O.durationHintMs:Math.max(4E3,O.durationHintMs||4E3)},
handleClosePopupAction_:function(O,m){var G=_.V("web_popup_cache_key_killswitch")||!!m;if(O||G){var B=this.createCacheKey(O,m);O=(O=this.popups_[B])&&O.popup}else O=_.UXs(_.Kj);if(O&&O.close){if(m=_.KR().resolve(_.v7(_.IF)))O.restoreFocusOnClose=m.isKeyBoardInUse();O.close();this.removePopup_(O,B)}},
handleClosePopupCommand_:function(O){O.closePopupCommand&&O.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,O.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(O){var m={},G;for(G in this.popups_)if(m={key$jscomp$1212:m.key$jscomp$1212},m.key$jscomp$1212=G,!O||!O.some(function(H){return function(M){return M==H.key$jscomp$1212}}(m))){var B=this.popups_[m.key$jscomp$1212],Q=B.popup;
_.KR().resolve(_.v7(_.FT))&&B.openPopupAction.popupType==="TOAST"||(Q&&Q.close&&Q.close(),this.removePopup_(Q,m.key$jscomp$1212))}},
handleClosePopupsAction_:function(O){O.forEach(function(m){var G=this.popups_[m];G&&((G=G.popup)&&G.close&&G.close(),this.removePopup_(G,m))}.bind(this))},
handleGetPopupOpenedAction_:function(O,m){return(m=this.createCacheKey(O,m))&&this.popups_[m]?this.popups_[O].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var O=[],m;for(m in this.popups_){var G=this.popups_[m];G.popup.opened&&O.push(G)}return O},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(O,m){_.V("ytpopup_disable_default_html_caching")&&O&&O.removeWhenClosed&&(_.ZO(this.hostElement).removeChild(O),m&&this.popups_[m]&&delete this.popups_[m])},
shouldReusePopup_:function(O){return!(!O||!O.reusePopup)||!(!O||!O.beReused)},
ensurePopup_:function(O,m){this.maybeCreateNarrowMediaQuery_();var G=_.o8(O.popup,"renderer")||_.o8(O.popup,"dialog")||_.o8(O.popup,"model");if(!G)return _.ZY();G=_.YvN(G,hs9(this.popupContainerConfig,G));return _.ZY(this.getAndMaybeCreatePopup_(O,G,m))},
getAndMaybeCreatePopup_:function(O,m,G){var B=this.createCacheKey(m,O.uniqueId);if(this.popups_[B])return this.popups_[B];O=new YC({openPopupAction:O,target:G,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(m)});return this.popups_[B]=O},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(O){return _.V("ytpopup_disable_default_html_caching")?O&&O.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",_.f7(this,this.openPopupQueryMatchesChanged_)),_.ZO(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(O){O=O.detail.value;for(var m in this.popups_)Fjr(this.popups_[m],O)},
onPopupIronOverlayClosed_:function(O){var m=O.currentTarget,G=_.G45(m);G=G.length>0?G[0]:m;if(G.is!=="ytd-reel-watch-while-dialog-renderer"||O.target.is!=="tp-yt-iron-dropdown"){O.detail.popup=m;O.detail.popupRenderer=G;var B,Q={context:{openingElement:((B=this.popups_[(G==null?void 0:G.is)||""])==null?void 0:B.target)||void 0}};Object.assign(Q,O.detail);var H;_.iP((H=G.hostElement)!=null?H:G,"yt-popup-closed",Q);m.removeEventListener("yt-refit",_.f7(this,this.refitPopup_));m.removeEventListener("yt-invalidate-popup-tabbables",
_.f7(this,this.handleInvalidatePopupTabbables_));m.removeEventListener("iron-overlay-canceled",_.f7(this,this.onPopupIronOverlayCanceled_));m.removeEventListener("iron-overlay-closed",_.f7(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(m)}},
onPopupIronOverlayCanceled_:function(O,m){var G=O.currentTarget,B=_.G45(G);B=B.length>0?B[0]:G;if(B.is!=="ytd-reel-watch-while-dialog-renderer"||O.target.is!=="tp-yt-iron-dropdown"){var Q;_.iP((Q=B.hostElement)!=null?Q:B,"yt-popup-canceled",O.detail);Q=m?_.$Z(m):null;(!m||["click","tap"].includes(m.type))&&!G.hasAttribute("force-close-on-outside-click")&&G.positionTarget&&Q&&Q.includes(G.positionTarget)&&O.preventDefault();G.restoreFocusOnClose=_.l8.keyboardEventMatchesKeys(m,"esc")}},
onPopupIronOverlayOpened_:function(O){O=O.currentTarget;var m=_.G45(O);m=m.length>0?m[0]:O;var G,B;_.iP((G=m.hostElement)!=null?G:m,"yt-popup-opened",(B=m.hostElement)!=null?B:m);O.keepBelowPlayer&&(this.ensurePopupBelowPlayer(O,!0),this.dynamicallyPositionedElements_.add(O));G=_.KR().resolve(_.v7(_.IF));B=!!m.querySelector("#toast");G&&G.isKeyBoardInUse()&&!B&&(typeof m.focusFirstItem==="function"?m.focusFirstItem():(m=_.iks(O),m.length&&m[0].focus()));O.removeEventListener("iron-overlay-opened",
_.f7(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(O){O=O.currentTarget;O.refit&&O.refit()},
refitPopups_:function(){for(var O in this.popups_)this.popups_[O].refit()},
handleInvalidatePopupTabbables_:function(O){O=O.currentTarget;O.invalidateTabbables&&O.invalidateTabbables()},
createCacheKey:function(O,m){return _.V("web_popup_cache_key_killswitch")?m?O+"#"+m:O:m?"#"+m:O},
openSheet:function(O,m){var G=O==null?void 0:O.openPopupActionCommand;!G&&(O==null?0:O.viewModel)&&(G={openPopupAction:{popup:{sheetViewModel:O.viewModel},popupType:"CONTEXTUAL_SHEET"}});G&&this.handleOpenPopupAction(G,m)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var O=this;return _.r(function(m){return m.return(O.handleGetOpenedPopupsAction_().filter(function(G){var B;return((B=G.openPopupAction)==null?void 0:B.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(O,m,G){if(_.V("web_dialog_utils_killswitch")){var B=O==null?void 0:O.openPopupActionCommand,Q=(G==null?0:G.ariaLabel)?{accessibilityData:{accessibilityData:{label:G.ariaLabel}}}:void 0;!B&&(O==null?0:O.viewModel)&&(B={openPopupAction:Object.assign({},{popup:{dialogViewModel:O.viewModel},popupType:(G==null?0:G.isModal)?"MODAL":"DIALOG"},Q&&Q)});B&&this.handleOpenPopupAction(B,m)}else{if(Q=O==null?void 0:O.viewModel){var H=G=G===void 0?{}:G;G=H.ariaLabel;Q={popup:{dialogViewModel:Q},
popupType:H.isModal?"MODAL":"DIALOG"};H={accessibilityData:{label:G}};G&&(Q.accessibilityData=H);Q={openPopupAction:Q}}else Q=void 0;if(Q=(B=Q)!=null?B:O==null?void 0:O.openPopupActionCommand)this.isAriaModal=_.V("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(Q,m)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var O=this;return _.r(function(m){return m.return(O.handleGetOpenedPopupsAction_().filter(function(G){var B;return((B=G.openPopupAction)==null?void 0:B.popupType)==="DIALOG"}).length>0)})}}];var B0r;var Qfx;var H6B=_.FY(["about:blank"]),dA=function(){var O=_.u.apply(this,arguments)||this;O.isMuted=!1;O.pageLoadTimeoutId=void 0;return O};
_.X(dA,_.u);_.v=dA.prototype;_.v.dataChanged=function(){var O=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var m=this.data.url,G=_.aO(m);_.V("enable_yt_ata_iframe_authuser")?(G=_.aO(m),_.mI(this.iframe,x1K(G))):_.mI(this.iframe,G);this.pageLoadTimeoutId=_.uT(_.uW(),function(){return void O.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.i4({destination:window,iframe:this.iframe,origin:_.Gcj(G.toString()),channelName:"ataiframe",onMessage:_.vO9(Nyx,function(B){PLo(B.data)?(B=_.Pb(B.data,1,_.Bb,_.Rw()),B.length!==1?_.ay(Error("Gl")):(B=B[0],B===3?(O.isMuted=!0,O.logStateChanged({adMuteRequested:!0})):B===1&&O.close())):_.ay(Error("Hl"))}),
onEstablished:function(){O.cancelPageLoadTimeout();O.logStateChanged({pageLoadSucceeded:!0})}})}};
_.v.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.uW().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.v.logStateChanged=function(O){var m;if((m=this.data)==null?0:m.trackingParams)O={adsClientData:{aboutThisAdData:O}},_.uK().stateChanged(this.data.trackingParams,O)};
_.v.close=function(){_.xc(this.hostElement,"yt-close-popup-action",[this.is])};
_.v.handlesPopupClosed=function(O,m){var G=this,B,Q;return _.r(function(H){if(H.nextAddress==1)return _.kB("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.xc(G.hostElement,"on-about-this-ad-popup-closed",[G.isMuted,m]),H.jumpTo(0)):O&&qv3(O)?H.yield(U1J(O),4):(G.isMuted&&_.xc(G.hostElement,"yt-mute-ad-action",[G.is,G]),H.jumpTo(0));if(B=H.yieldResult){var M=Q=new _.OA(B),R=G.isMuted;M.getOptions().includes("onAboutThisAdPopupClosed")?_.FQp(M,"onAboutThisAdPopupClosed",{isMuted:R,layoutId:m}):_.F4("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.ju(H)})};
_.v.onPopupClosed=function(O){var m=this,G,B;return _.r(function(Q){G=_.WY(H6B);_.mI(m.iframe,G);m.cancelPageLoadTimeout();if(!m.data)return Q.jumpTo(0);m.ytRendererBehavior.markDirty();B=O.detail.context.openingElement;return Q.yield(m.handlesPopupClosed(B,m.data.layoutId),0)})};
_.v.detached=function(){this.cancelPageLoadTimeout()};
_.v.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dA.prototype.onPopupClosed=dA.prototype.onPopupClosed;dA.prototype.dataChanged=dA.prototype.dataChanged;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.c([_.uc("#iframe"),_.Y("design:type",HTMLIFrameElement)],dA.prototype,"iframe",void 0);_.c([_.g(),_.Y("design:type",Object)],dA.prototype,"data",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],dA.prototype,"dataChanged",null);
_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype",Promise)],dA.prototype,"onPopupClosed",null);_.c([_.DO({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],dA);
_.y(dA,"yt-about-this-ad-renderer",function(){if(Qfx===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;B0r===void 0&&(B0r=document.createElement("template"));var B=B0r;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Qfx=O}O=Qfx;return O},{mode:2});var vDx;var KKB;var wA=function(O){var m=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=m.message;"stack"in m&&(this.stack=m.stack);this.maxFileSizeMB=O;Object.setPrototypeOf(this,wA.prototype)};
_.X(wA,Error);var $9r=function(O,m){var G=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=G.message;"stack"in G&&(this.stack=G.stack);this.minWidth=O;this.minHeight=m;Object.setPrototypeOf(this,$9r.prototype)};
_.X($9r,Error);var Mdr=function(O){this.requirements=O;this.JSC$20813_maxFileSize=O.maxFileSizeMB*1024*1024},riu=function(O,m){if(m.size>O.JSC$20813_maxFileSize)throw new wA(O.requirements.maxFileSizeMB);
};var RGK=function(O,m){this.canvas=O;this.imageEditorBuilder=m};
RGK.prototype.addEventListeners=function(O){var m=function(Q){i6r(O,Q)};
this.JSC$20819_mouseDownEvent=m;var G=function(Q){x9r(O,Q)};
this.JSC$20819_mouseMoveEvent=G;var B=function(){qGK(O)};
this.JSC$20819_mouseUpEvent=B;this.canvas.addEventListener("mousedown",m);this.canvas.addEventListener("mousemove",G);document.addEventListener("mouseup",B)};
RGK.prototype.removeEventListeners=function(){this.JSC$20819_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20819_mouseDownEvent);this.JSC$20819_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20819_mouseMoveEvent);this.JSC$20819_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20819_mouseUpEvent)};
var U9A=function(O,m){O.removeEventListeners();return new Promise(function(G){var B=new Image;B.crossOrigin="anonymous";B.onload=function(){var Q=O.imageEditorBuilder(O.canvas,B);O.addEventListeners(Q);G(Q)};
B.src=m})},eb=function(O,m,G,B,Q,H,M,R){this.canvas=O;
this.image=m;this.requiredRatio=G;this.minImageCropDimension=B;this.minOutputImageResolution=Q;this.component=H;this.styleFocusedCorner=R===void 0?!0:R;this.action=2;this.focusedCorner=this.resizeCorner=0;O=this.canvas.getContext("2d");if(!O)throw Error("Il");this.ctx=O;this.canvasMargin=M!=null?M:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;M=this.image;O=this.canvasInnerWidth/M.width;M.height*O>912&&(O=M.width/M.height*912/M.width);M=O;this.scaledImageWidth=this.canvas.width%2?
W3b(this.image.width*M):th0(this.image.width*M);this.scaledImageHeight=Math.round(this.image.height*M);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20822_overlayMarginBottom=this.JSC$20822_overlayMarginTop=this.canvasMargin;this.JSC$20822_overlayMarginRight=this.JSC$20822_overlayMarginLeft=this.horizontalMargin;this.JSC$20822_overlayWidth=this.scaledImageWidth;this.JSC$20822_overlayHeight=this.scaledImageHeight;
O=this.image.width/this.image.height;O>this.requiredRatio?(this.JSC$20822_overlayWidth=this.canvas.width%2?W3b(this.scaledImageHeight*this.requiredRatio):th0(this.scaledImageHeight*this.requiredRatio),this.JSC$20822_overlayMarginRight=this.JSC$20822_overlayMarginLeft=(this.canvas.width-this.JSC$20822_overlayWidth)/2):O<this.requiredRatio&&(this.JSC$20822_overlayHeight=this.canvas.height%2?W3b(this.scaledImageWidth/this.requiredRatio):th0(this.scaledImageWidth/this.requiredRatio),this.JSC$20822_overlayMarginBottom=
this.JSC$20822_overlayMarginTop=(this.canvas.height-this.JSC$20822_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*M,this.scaledImageWidth);tdr(this)};
eb.prototype.getContext=function(){return this.ctx};
var i6r=function(O,m){m={x:Math.round(m.pageX-O.canvas.getBoundingClientRect().left),y:Math.round(m.pageY-O.canvas.getBoundingClientRect().top)};O.dragStart=m;WK9(O,m)!==0?(O.action=1,Z6r(O,m),O.resizeCorner=WK9(O,m)):m.x>O.JSC$20822_overlayMarginLeft&&m.x<O.JSC$20822_overlayMarginLeft+O.JSC$20822_overlayWidth&&m.y>O.JSC$20822_overlayMarginTop&&m.y<O.JSC$20822_overlayMarginTop+O.JSC$20822_overlayHeight&&(O.action=0)},zGb=function(O,m){switch(m){case 1:return{x:O.JSC$20822_overlayMarginLeft,
y:O.JSC$20822_overlayMarginTop};case 2:return{x:O.JSC$20822_overlayMarginLeft,y:O.JSC$20822_overlayMarginTop+O.JSC$20822_overlayHeight};case 3:return{x:O.JSC$20822_overlayMarginLeft+O.JSC$20822_overlayWidth,y:O.JSC$20822_overlayMarginTop};case 4:return{x:O.JSC$20822_overlayMarginLeft+O.JSC$20822_overlayWidth,y:O.JSC$20822_overlayMarginTop+O.JSC$20822_overlayHeight};default:throw Error("Jl");}},VdB=function(O,m){if(O.focusedCorner!==0){O.dragStart=zGb(O,O.focusedCorner);
O.action=1;O.resizeCorner=O.focusedCorner;var G=O.dragStart.x,B=O.dragStart.y;switch(m){case 0:O.focusedCorner===1||O.focusedCorner===4?(G-=10,B-=10):(G-=10,B+=10);break;case 1:O.focusedCorner===1||O.focusedCorner===4?(G+=10,B+=10):(G+=10,B-=10);break;case 2:G=O.focusedCorner===1||O.focusedCorner===4?G-10:G+10;B-=10;break;case 3:G=O.focusedCorner===1||O.focusedCorner===4?G+10:G-10;B+=10;break;default:throw Error("Kl");}Jib(O,{x:G,y:B});tdr(O);O.action=2;O.dragStart=void 0}},x9r=function(O,m){m={x:Math.round(m.pageX-
O.canvas.getBoundingClientRect().left),
y:Math.round(m.pageY-O.canvas.getBoundingClientRect().top)};Z6r(O,m);switch(O.action){case 1:Jib(O,m);break;case 0:O.dragStart&&(O.JSC$20822_overlayMarginLeft=Math.max(O.horizontalMargin,Math.min(O.JSC$20822_overlayMarginLeft-(O.dragStart.x-m.x),O.horizontalMargin+O.scaledImageWidth-O.JSC$20822_overlayWidth)),O.JSC$20822_overlayMarginRight=O.canvas.width-O.JSC$20822_overlayMarginLeft-O.JSC$20822_overlayWidth,O.JSC$20822_overlayMarginTop=Math.max(O.canvasMargin,Math.min(O.JSC$20822_overlayMarginTop-
(O.dragStart.y-m.y),O.scaledImageHeight-O.JSC$20822_overlayHeight+O.canvasMargin)),O.JSC$20822_overlayMarginBottom=O.canvas.height-(O.JSC$20822_overlayMarginTop+O.JSC$20822_overlayHeight));break;default:return}tdr(O);O.dragStart=m},qGK=function(O){O.action=2;
O.dragStart=void 0;document.body.style.cursor="auto"},Z6r=function(O,m){switch(WK9(O,m)){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:O.action!==1&&(document.body.style.cursor="auto")}},WK9=function(O,m){var G=O.JSC$20822_overlayMarginLeft-5,B=O.JSC$20822_overlayMarginTop-5,Q=O.JSC$20822_overlayMarginLeft+O.JSC$20822_overlayWidth-5;
O=O.JSC$20822_overlayMarginTop+O.JSC$20822_overlayHeight-5;return b6b(m,{x:G,y:B})?1:b6b(m,{x:Q,y:B})?3:b6b(m,{x:G,y:O})?2:b6b(m,{x:Q,y:O})?4:0},b6b=function(O,m){return O.x>=m.x&&O.x<=m.x+10&&O.y>=m.y&&O.y<=m.y+10},Jib=function(O,m){if(O.dragStart)switch(O.resizeCorner){case 2:Math.abs((O.JSC$20822_overlayMarginLeft+O.JSC$20822_overlayWidth-m.x)/(m.y-O.JSC$20822_overlayMarginTop))>=O.requiredRatio?nDr(O,m.x):XUA(O,m.y);
break;case 1:Math.abs((O.JSC$20822_overlayMarginLeft+O.JSC$20822_overlayWidth-m.x)/(O.JSC$20822_overlayMarginTop+O.JSC$20822_overlayHeight-m.y))>=O.requiredRatio?fTB(O,m.x):XUA(O,m.y);break;case 4:Math.abs((m.x-O.JSC$20822_overlayMarginLeft)/(m.y-O.JSC$20822_overlayMarginTop))>=O.requiredRatio?nDr(O,m.x):hG9(O,m.y);break;case 3:Math.abs((m.x-O.JSC$20822_overlayMarginLeft)/(O.JSC$20822_overlayMarginTop+O.JSC$20822_overlayHeight-m.y))>=O.requiredRatio?fTB(O,m.x):hG9(O,m.y);break;default:throw Error("Ll");
}},nDr=function(O,m){var G=O.JSC$20822_overlayMarginTop;
O.JSC$20822_overlayMarginBottom=T0K(O,m);O.JSC$20822_overlayHeight=O.canvas.height-O.JSC$20822_overlayMarginBottom-G;O.JSC$20822_overlayWidth=Math.round(O.JSC$20822_overlayHeight*O.requiredRatio);gDy(O)},fTB=function(O,m){var G=O.JSC$20822_overlayMarginTop+O.JSC$20822_overlayHeight;
O.JSC$20822_overlayMarginTop=T0K(O,m);O.JSC$20822_overlayHeight=G-O.JSC$20822_overlayMarginTop;O.JSC$20822_overlayWidth=Math.round(O.JSC$20822_overlayHeight*O.requiredRatio);gDy(O)},gDy=function(O){switch(O.resizeCorner){case 2:case 1:O.JSC$20822_overlayMarginLeft=O.canvas.width-O.JSC$20822_overlayMarginRight-O.JSC$20822_overlayWidth;
break;case 4:case 3:O.JSC$20822_overlayMarginRight=O.canvas.width-O.JSC$20822_overlayMarginLeft-O.JSC$20822_overlayWidth;break;default:throw Error("Ll");}},XUA=function(O,m){var G=O.JSC$20822_overlayMarginLeft+O.JSC$20822_overlayWidth;
O.JSC$20822_overlayMarginLeft=uBs(O,m);O.JSC$20822_overlayWidth=G-O.JSC$20822_overlayMarginLeft;O.JSC$20822_overlayHeight=Math.round(O.JSC$20822_overlayWidth/O.requiredRatio);jf9(O)},hG9=function(O,m){var G=O.JSC$20822_overlayMarginLeft;
O.JSC$20822_overlayMarginRight=uBs(O,m);O.JSC$20822_overlayWidth=O.canvas.width-O.JSC$20822_overlayMarginRight-G;O.JSC$20822_overlayHeight=Math.round(O.JSC$20822_overlayWidth/O.requiredRatio);jf9(O)},jf9=function(O){switch(O.resizeCorner){case 2:case 4:O.JSC$20822_overlayMarginBottom=O.canvas.height-O.JSC$20822_overlayMarginTop-O.JSC$20822_overlayHeight;
break;case 1:case 3:O.JSC$20822_overlayMarginTop=O.canvas.height-O.JSC$20822_overlayMarginBottom-O.JSC$20822_overlayHeight;break;default:throw Error("Ll");}},T0K=function(O,m){switch(O.resizeCorner){case 2:m=O.canvas.height-(O.JSC$20822_overlayMarginTop+ITB(O,m));
break;case 4:m=O.canvas.height-(O.JSC$20822_overlayMarginTop+pUr(O,m));break;case 1:m=O.JSC$20822_overlayMarginTop+O.JSC$20822_overlayHeight-ITB(O,m);break;case 3:m=O.JSC$20822_overlayMarginTop+O.JSC$20822_overlayHeight-pUr(O,m);break;default:throw Error("Ll");}return Math.max(m,O.canvasMargin)},ITB=function(O,m){m=O.JSC$20822_overlayMarginLeft+O.JSC$20822_overlayWidth-Math.max(m,O.horizontalMargin);
m=m<0?O.JSC$20822_overlayWidth:Math.max(m,O.minOverlayWidth);return Math.round(m/O.requiredRatio)},pUr=function(O,m){m=O.canvas.width-Math.max(O.canvas.width-m,O.horizontalMargin)-O.JSC$20822_overlayMarginLeft;
m=m<0?O.JSC$20822_overlayWidth:Math.max(m,O.minOverlayWidth);return Math.round(m/O.requiredRatio)},uBs=function(O,m){switch(O.resizeCorner){case 2:m=O.canvas.width-O.JSC$20822_overlayMarginRight-SGx(O,m);
break;case 4:m=O.canvas.width-O.JSC$20822_overlayMarginLeft-SGx(O,m);break;case 1:m=O.canvas.width-O.JSC$20822_overlayMarginRight-EDr(O,m);break;case 3:m=O.canvas.width-O.JSC$20822_overlayMarginLeft-EDr(O,m);break;default:throw Error("Ll");}return Math.max(m,O.horizontalMargin)},SGx=function(O,m){m=O.canvas.height-Math.max(O.canvas.height-m,O.canvasMargin)-O.JSC$20822_overlayMarginTop;
return m<0?O.JSC$20822_overlayWidth:Math.max(Math.round(m*O.requiredRatio),O.minOverlayWidth)},EDr=function(O,m){m=O.JSC$20822_overlayMarginTop+O.JSC$20822_overlayHeight-Math.max(m,O.canvasMargin);
return m<0?O.JSC$20822_overlayWidth:Math.max(Math.round(m*O.requiredRatio),O.minOverlayWidth)},tdr=function(O){O.ctx.clearRect(0,0,O.canvas.width,O.canvas.height);
O.ctx.drawImage(O.image,0,0,O.image.width,O.image.height,O.horizontalMargin,O.canvasMargin,O.canvas.width-2*O.horizontalMargin,O.scaledImageHeight);O.ctx.fillStyle="rgba(0, 0, 0, 0.7)";O.ctx.fillRect(O.horizontalMargin,O.JSC$20822_overlayMarginTop,O.JSC$20822_overlayMarginLeft-O.horizontalMargin,O.JSC$20822_overlayHeight);O.ctx.fillRect(O.JSC$20822_overlayMarginLeft+O.JSC$20822_overlayWidth,O.JSC$20822_overlayMarginTop,O.JSC$20822_overlayMarginRight-O.horizontalMargin,O.JSC$20822_overlayHeight);O.ctx.fillRect(O.horizontalMargin,
O.canvasMargin,O.scaledImageWidth,O.JSC$20822_overlayMarginTop-O.canvasMargin);O.ctx.fillRect(O.horizontalMargin,O.JSC$20822_overlayMarginTop+O.JSC$20822_overlayHeight,O.scaledImageWidth,O.JSC$20822_overlayMarginBottom-O.canvasMargin);O.drawOverlay();O.component&&_.iP(O.component,"image-updated")};
eb.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20822_overlayMarginLeft,this.JSC$20822_overlayMarginTop,this.JSC$20822_overlayWidth,this.JSC$20822_overlayHeight);LKK(this)};
var LKK=function(O){var m=O.JSC$20822_overlayMarginLeft-5,G=O.JSC$20822_overlayMarginTop-5,B=O.JSC$20822_overlayMarginLeft+O.JSC$20822_overlayWidth-5,Q=O.JSC$20822_overlayMarginTop+O.JSC$20822_overlayHeight-5;O.ctx.fillStyle="#FFF";O.ctx.fillRect(m,G,10,10);O.ctx.strokeRect(m,G,10,10);O.ctx.fillRect(B,G,10,10);O.ctx.strokeRect(B,G,10,10);O.ctx.fillRect(m,Q,10,10);O.ctx.strokeRect(m,Q,10,10);O.ctx.fillRect(B,Q,10,10);O.ctx.strokeRect(B,Q,10,10);if(O.focusedCorner!==0&&O.styleFocusedCorner){O.ctx.lineWidth=
4;O.ctx.strokeStyle="#3EA6FF";switch(O.focusedCorner){case 1:--m;--G;break;case 2:--m;G=Q-1;break;case 3:m=B-1;--G;break;case 4:m=B-1;G=Q-1;break;default:return}O.ctx.strokeRect(m,G,12,12)}};
eb.prototype.crop=function(O,m){m=m===void 0?!0:m;var G=this.image.width/this.scaledImageWidth,B=document.createElement("canvas"),Q=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],H=this.JSC$20822_overlayWidth*G,M=this.JSC$20822_overlayHeight*G;B.width=Math.max(H,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);B.height=Math.max(M,Q);O&&(B.width=Math.min(B.width,B.height),B.height=Math.min(B.width,B.height));
O=B.getContext("2d");if(!O)throw Error("zl");Q=(this.JSC$20822_overlayMarginLeft-this.horizontalMargin)*G;G*=this.JSC$20822_overlayMarginTop-this.canvasMargin;m||(O.fillStyle="white",O.fillRect(0,0,B.width,B.height));O.drawImage(this.image,Q,G,H,M,0,0,B.width,B.height);return B};var Cfx=function(O,m,G,B,Q){eb.call(this,O,m,G,B,void 0,Q,8,!1)};
_.X(Cfx,eb);Cfx.prototype.drawOverlay=function(){var O=this.getContext(),m=this.JSC$20822_overlayWidth,G=this.JSC$20822_overlayHeight,B=this.JSC$20822_overlayMarginTop,Q=this.JSC$20822_overlayMarginLeft;O.lineWidth=2;O.strokeStyle="#3EA6FF";O.beginPath();O.arc(Q+m/2,B+G/2,m/2,0,2*Math.PI);O.stroke();O.strokeRect(Q,B,m,G);LKK(this)};
var oDu={maxFileSizeMB:15,minWidth:98,minHeight:98},lTr=["image/png","image/jpeg","image/gif"],DJ=function(){var O=_.u.apply(this,arguments)||this;O.fileSelectorFocusListener=null;O.errorMessage=null;O.isLoading=!0;O.hideContainer=!0;O.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return O};
_.X(DJ,_.u);_.v=DJ.prototype;_.v.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.v.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.v.computePlaylistThumbnail=function(O){return O==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.v.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.xc(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.v.setErrorState=function(O){this.resetErrorState();O&&(this.errorMessage=O)};
_.v.showPopup=function(){var O=this;this.hideContainer=!1;_.uT(_.ln,function(){_.iP(O.hostElement,"yt-refit")});
this.isLoading=!1};
_.v.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.v.closePopup=function(){this.resetFileSelector();_.xc(this.hostElement,"yt-close-popup-action",[this.is])};
_.v.onCancelTap=function(){this.isPlaylistThumbnail||_.xc(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.v.openFileSelector=function(){var O=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.uT(_.ln,function(){setTimeout(function(){if(!O.fileSelector.files||O.fileSelector.files.length===0)O.onCancelTap();O.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(m){m instanceof Error?_.oy(m):_.lT(new _.j9(JSON.stringify(m)))}};
_.v.handleFileSelection=function(){var O=this,m,G,B,Q,H,M;return _.r(function(R){switch(R.nextAddress){case 1:_.n_(R,2);if(!O.fileSelector.files||!O.imageEditorCanvas)return O.onCancelTap(),R.return();m=O.fileSelector.files[0];riu(O.imageChecker,m);_.n_(R,4);return R.yield(yHo(m),6);case 6:O.mimeType=R.yieldResult;_.P7(R,5,2);break;case 4:_.uS(R,2),_.xc(O.hostElement,"yt-image-selection-error-action",[(G=O.data)==null?void 0:G.genericImageLoadErrorMessage]),O.onCancelTap();case 5:B=new FileReader;
B.addEventListener("load",function(){var x,t;return _.r(function(W){if(W.nextAddress==1){if(!B.result)return _.ay(Error("Bl")),W.return();x=B.result;t=new Image;t.src=x;t.onload=function(){try{var Z=O.imageChecker;if(t.width<Z.requirements.minWidth||t.height<Z.requirements.minHeight)throw new $9r(Z.requirements.minWidth,Z.requirements.minHeight);}catch(J){if(J instanceof $9r){var z;_.xc(O.hostElement,"yt-image-selection-error-action",[(z=O.data)==null?void 0:z.imageDimensionErrorMessage]);O.logImageDimensionErrorVe()}else J instanceof
Error?_.oy(J):(Z=new _.j9(JSON.stringify(J)),_.oy(Z));O.onCancelTap()}O.showPopup()};
t.onerror=function(){var Z;_.xc(O.hostElement,"yt-image-selection-error-action",[(Z=O.data)==null?void 0:Z.genericImageLoadErrorMessage]);O.onCancelTap()};
return W.yield(U9A(O.imageEditorCanvas,x),2)}O.imageEditor=W.yieldResult;O.updatePositionOfAllCorners();O.addEventListeners(O.imageEditor);_.ju(W)})},!1);
B.readAsDataURL(m);_.P7(R,0);break;case 2:Q=_.uS(R),Q instanceof wA?_.xc(O.hostElement,"yt-image-selection-error-action",[(H=O.data)==null?void 0:H.imageSizeErrorMessage]):(Q instanceof Error?_.oy(Q):_.lT(new _.j9(JSON.stringify(Q))),_.xc(O.hostElement,"yt-image-selection-error-action",[(M=O.data)==null?void 0:M.genericImageLoadErrorMessage])),O.onCancelTap(),_.ju(R)}})};
_.v.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var O=_.gu(_.uK(),{veType:232707,visualElement:_.Zv(232707)});O&&(O={visualElement:O},_.TS().reportShown(O))}};
_.v.handleImageSelectionErrorAction=function(O){this.isPlaylistThumbnail&&_.lAN(this.hostElement,O)};
_.v.convertToImageFormatBundle=function(O){var m=this,G,B,Q;return _.r(function(H){switch(H.nextAddress){case 1:return G=O.toDataURL(m.outputMimeType,1),H.yield(cHr(G),2);case 2:B=H.yieldResult;_.n_(H,3);riu(m.imageChecker,B);_.P7(H,4);break;case 3:Q=_.uS(H);if(!(Q instanceof wA))throw Q;_.ay(new _.j9("Output size is bigger than input size for image",m.mimeType,m.outputMimeType,B.size));G=O.toDataURL("image/jpeg",.95);return H.yield(cHr(G),6);case 6:B=H.yieldResult;case 4:return H.return({dataUrl:G,
imageFile:B})}})};
_.v.handleUploadImageToScottyCommand=function(O){var m=this,G,B,Q,H,M,R,x,t,W,Z;return _.r(function(z){switch(z.nextAddress){case 1:if(!m.imageEditor||!_.b(O,iQh))return z.return();G=_.b(O,iQh).scottyUploadUrl;if(!G){var J=new _.j9("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.oy(J);return z.return()}_.n_(z,2);m.setLoadingState();B=m.imageEditor.crop(!1,!1);return z.yield(m.convertToImageFormatBundle(B),4);case 4:return Q=z.yieldResult,z.yield(awA(Q.imageFile,G),5);
case 5:H=z.yieldResult;((M=m.data)==null?0:M.onUploadEndpoint)?(R=m.buildUploadServiceEndpoint(H),m.ytComponentBehavior.resolveCommand(R),x=_.b(R,_.B3),((t=x)==null?0:t.params)?m.closePopup():m.resetFileSelector()):(_.xc(m.hostElement,"yt-image-updated-action",[Q.dataUrl,H]),m.closePopup());_.P7(z,0);break;case 2:W=_.uS(z),m.setErrorState((Z=m.data)==null?void 0:Z.uploadErrorMessage),W instanceof Error?_.oy(W):(J=new _.j9(JSON.stringify(W)),_.oy(J)),_.ju(z)}})};
_.v.buildUploadServiceEndpoint=function(O){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",O),this.data.onUploadEndpoint):null};
_.v.dataChanged=function(){var O=this,m;return _.r(function(G){if(G.nextAddress==1){if(!O.data||!O.canvasElement)return G.return();O.data.imageRatio&&O.data.minImageCropWidth||_.lT(new _.j9("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));m=function(B,Q){return O.data.imageType==="IMAGE_TYPE_AVATAR"?new Cfx(B,Q,O.data.imageRatio,[O.data.minImageCropWidth,O.data.minImageCropWidth/O.data.imageRatio],O.hostElement):new eb(B,Q,O.data.imageRatio,[O.data.minImageCropWidth,
O.data.minImageCropWidth/O.data.imageRatio],void 0,O.hostElement,8,!1)};
O.imageEditorCanvas=new RGK(O.canvasElement,m);return O.data.url?G.yield(U9A(O.imageEditorCanvas,O.data.url),3):(O.hideContainer=!0,O.openFileSelector(),G.jumpTo(0))}O.imageEditor=G.yieldResult;O.showPopup();O.addEventListeners(O.imageEditor);_.ju(G)})};
_.v.addEventListeners=function(O){this.removeEventListeners();var m=function(Q){i6r(O,Q)};
this.JSC$20830_mouseDownEvent=m;var G=function(Q){x9r(O,Q)};
this.JSC$20830_mouseMoveEvent=G;var B=function(){qGK(O)};
this.JSC$20830_mouseUpEvent=B;this.topLeftCorner.addEventListener("mousedown",m);this.topLeftCorner.addEventListener("mousemove",G);this.topLeftCorner.addEventListener("mouseup",B);this.topRightCorner.addEventListener("mousedown",m);this.topRightCorner.addEventListener("mousemove",G);this.topRightCorner.addEventListener("mouseup",B);this.bottomLeftCorner.addEventListener("mousedown",m);this.bottomLeftCorner.addEventListener("mousemove",G);this.bottomLeftCorner.addEventListener("mouseup",B);this.bottomRightCorner.addEventListener("mousedown",
m);this.bottomRightCorner.addEventListener("mousemove",G);this.bottomRightCorner.addEventListener("mouseup",B)};
_.v.removeEventListeners=function(){this.JSC$20830_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20830_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20830_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20830_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20830_mouseDownEvent));this.JSC$20830_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20830_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20830_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20830_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20830_mouseMoveEvent));this.JSC$20830_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20830_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20830_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20830_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20830_mouseUpEvent))};
_.v.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var O=document.activeElement;O&&O.shadowRoot&&O.shadowRoot.activeElement;)O=O.shadowRoot.activeElement;switch(O){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};
_.v.updatePositionOfCorner=function(O,m){var G=O.y-m.offsetHeight/2+4;m.style.left=O.x-m.offsetWidth/2+16+"px";m.style.top=G+"px"};
_.v.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var O=_.K([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),m=O.next();!m.done;m=O.next()){m=m.value;var G=zGb(this.imageEditor,m.corner);this.updatePositionOfCorner(G,m.div)}};
_.v.onLeft=function(O){this.imageEditor&&this.setFocusInImageEditor()&&(VdB(this.imageEditor,0),this.updatePositionOfAllCorners(),O.preventDefault())};
_.v.onRight=function(O){this.imageEditor&&this.setFocusInImageEditor()&&(VdB(this.imageEditor,1),this.updatePositionOfAllCorners(),O.preventDefault())};
_.v.onUp=function(O){this.imageEditor&&this.setFocusInImageEditor()&&(VdB(this.imageEditor,2),this.updatePositionOfAllCorners(),O.preventDefault())};
_.v.onDown=function(O){this.imageEditor&&this.setFocusInImageEditor()&&(VdB(this.imageEditor,3),this.updatePositionOfAllCorners(),O.preventDefault())};
_.v.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.vr.Object.defineProperties(DJ.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&lTr.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var O,m,G;((m=this.data)==null?0:m.imageRatio)&&((G=this.data)==null?0:G.minImageCropWidth)?O={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:O=oDu;return new Mdr(O)}}});
DJ.prototype.updatePositionOfAllCorners=DJ.prototype.updatePositionOfAllCorners;DJ.prototype.dataChanged=DJ.prototype.dataChanged;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],DJ.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],DJ.prototype,"ytComponentBehavior",void 0);_.c([_.h(_.l8),_.Y("design:type",Object)],DJ.prototype,"ironA11yKeysBehavior",void 0);
_.c([_.uc("#canvas"),_.Y("design:type",HTMLCanvasElement)],DJ.prototype,"canvasElement",void 0);_.c([_.uc("#file-selector"),_.Y("design:type",HTMLInputElement)],DJ.prototype,"fileSelector",void 0);_.c([_.uc("#top-left-corner"),_.Y("design:type",HTMLDivElement)],DJ.prototype,"topLeftCorner",void 0);_.c([_.uc("#top-right-corner"),_.Y("design:type",HTMLDivElement)],DJ.prototype,"topRightCorner",void 0);
_.c([_.uc("#bottom-left-corner"),_.Y("design:type",HTMLDivElement)],DJ.prototype,"bottomLeftCorner",void 0);_.c([_.uc("#bottom-right-corner"),_.Y("design:type",HTMLDivElement)],DJ.prototype,"bottomRightCorner",void 0);_.c([_.g(),_.Y("design:type",Object)],DJ.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],DJ.prototype,"errorMessage",void 0);_.c([_.g(),_.Y("design:type",Object)],DJ.prototype,"isLoading",void 0);_.c([_.g(),_.Y("design:type",Object)],DJ.prototype,"hideContainer",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.Y("design:type",Boolean)],DJ.prototype,"isPlaylistThumbnail",void 0);_.c([_.Si("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],DJ.prototype,"dataChanged",null);_.c([_.hG("image-updated"),_.hG("yt-refit"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],DJ.prototype,"updatePositionOfAllCorners",null);
_.c([_.DO({is:"yt-image-editor-renderer",disableElementRegistration:!0})],DJ);
_.y(DJ,"yt-image-editor-renderer",function(){if(KKB===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;vDx===void 0&&(vDx=document.createElement("template"));var B=vDx;G.call(m,B.content.cloneNode(!0),O.content.firstChild);KKB=O}O=KKB;return O},{mode:2});var aTh;var kIB;var sC=function(){return _.u.apply(this,arguments)||this};
_.X(sC,_.u);sC.prototype.updateMinutesFromBinding=function(O){this.handleMinutesChanged&&this.handleMinutesChanged(O)};
sC.prototype.updateSecondsFromBinding=function(O){this.handleSecondsChanged&&this.handleSecondsChanged(O)};
sC.prototype.updateDescriptionFromBinding=function(O){this.handleDescriptionChanged&&this.handleDescriptionChanged(O)};
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],sC.prototype,"ytComponentBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],sC.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",String)],sC.prototype,"minutes",void 0);_.c([_.g(),_.Y("design:type",String)],sC.prototype,"seconds",void 0);_.c([_.g(),_.Y("design:type",String)],sC.prototype,"description",void 0);_.c([_.g(),_.Y("design:type",Function)],sC.prototype,"handleMinutesChanged",void 0);
_.c([_.g(),_.Y("design:type",Function)],sC.prototype,"handleSecondsChanged",void 0);_.c([_.g(),_.Y("design:type",Function)],sC.prototype,"handleDescriptionChanged",void 0);_.c([_.g(),_.Y("design:type",Number)],sC.prototype,"characterLimit",void 0);_.c([_.g(),_.Y("design:type",Number)],sC.prototype,"textNumRows",void 0);_.c([_.DO({is:"yt-report-details-form-content",disableElementRegistration:!0})],sC);
_.y(sC,"yt-report-details-form-content",function(){if(kIB===void 0){var O=document.createElement("template");_.f(O,'\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>');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;aTh===void 0&&(aTh=document.createElement("template"));var B=aTh;G.call(m,B.content.cloneNode(!0),O.content.firstChild);kIB=O}O=kIB;return O},{mode:2});var yiB;var ciK;var Na=function(){var O=_.u.apply(this,arguments)||this;O.updateMinutesFromBinding=function(m){O.minutes=m.detail.value};
O.updateSecondsFromBinding=function(m){O.seconds=m.detail.value};
O.updateDescriptionFromBinding=function(m){O.description=m.detail.value};
return O};
_.X(Na,_.u);_.v=Na.prototype;_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.v.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"}}}};
_.v.ready=function(){_.ZO(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.v.onSubmitYtAction=function(O){var m=O.detail;m.actionName==="yt-service-request"&&(m=m.args[1],m.flagEndpoint&&(O.stopPropagation(),this.refireAction(m)))};
_.v.refireAction=function(O){var m={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(m.vss_id=this.vssId);_.tK(this.hostElement,[O,m]);this.submitDisabled=!0};
_.v.dataChanged=function(){var O=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var m=_.M1();m&&m.getPlayerPromise().then(function(G){var B=G.getOption("cc","track")||G.getOption("captions","track");B&&(O.vssId=B.vss_id);G=G.getCurrentTime();O.minutes=Math.floor(G/60).toString();O.seconds=(Math.floor(G)%60).toString()})};
_.v.updateSubmitButtonState=function(){var O;((O=this.data)==null?0:O.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==="")};
_.v.onYtServiceRequestCompleted=function(){_.xc(this.hostElement,"yt-close-popup-action")};
_.v.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.vr.Object.defineProperties(Na.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var O;return((O=this.data)==null?void 0:O.textNumRows)||4}}});
Na.prototype.onYtServiceRequestError=Na.prototype.onYtServiceRequestError;Na.prototype.onYtServiceRequestCompleted=Na.prototype.onYtServiceRequestCompleted;Na.prototype.updateSubmitButtonState=Na.prototype.updateSubmitButtonState;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Na.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);
_.c([_.g({observer:"dataChanged"}),_.Y("design:type",Object)],Na.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Na.prototype,"submitDisabled",void 0);_.c([_.g(),_.Y("design:type",String)],Na.prototype,"minutes",void 0);_.c([_.g(),_.Y("design:type",String)],Na.prototype,"seconds",void 0);_.c([_.g(),_.Y("design:type",String)],Na.prototype,"description",void 0);_.c([_.g(),_.Y("design:type",String)],Na.prototype,"vssId",void 0);
_.c([_.g({value:_.kB("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.Y("design:type",Boolean)],Na.prototype,"isMusic",void 0);_.c([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Na.prototype,"characterLimit",null);_.c([_.T("data"),_.Y("design:type",Number),_.Y("design:paramtypes",[])],Na.prototype,"textNumRows",null);
_.c([_.Si("minutes","seconds","description","submitDisabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Na.prototype,"updateSubmitButtonState",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Na.prototype,"onYtServiceRequestCompleted",null);
_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Na.prototype,"onYtServiceRequestError",null);_.c([_.DO({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Na);
_.y(Na,"yt-report-details-form-renderer",function(){if(ciK===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;yiB===void 0&&(yiB=document.createElement("template"));var B=yiB;G.call(m,B.content.cloneNode(!0),O.content.firstChild);ciK=O}O=ciK;return O});var YGh;var d9B;var wU0;var eGy;var Py=function(){return _.u.apply(this,arguments)||this};
_.X(Py,_.u);
Py.prototype.onCheckedChanged_=function(){if(this.data){var O=_.ZO(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.xc(this.hostElement,"yt-additional-detail-checkbox-update",[O]):this.data.identifier==="yt-hide-user-checkbox"?_.xc(this.hostElement,"yt-hide-user-checkbox-update",[O]):O&&this.data.enableCommand?_.xc(this.hostElement,"yt-modify-report-form-command",[_.b(this.data.enableCommand,zHs)]):!O&&this.data.disableCommand&&_.xc(this.hostElement,
"yt-modify-report-form-command",[_.b(this.data.enableCommand,zHs)])}};
Py.prototype.onLabelTap_=function(O){O.target.tagName!="A"&&(_.ZO(this.hostElement).querySelector("#checkbox").checked=!_.ZO(this.hostElement).querySelector("#checkbox").checked)};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Py.prototype,"data",void 0);_.c([_.DO({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Py);
_.y(Py,"yt-boolean-form-field-v2-renderer",function(){if(eGy===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;wU0===void 0&&(wU0=document.createElement("template"));var B=wU0;G.call(m,B.content.cloneNode(!0),O.content.firstChild);eGy=O}O=eGy;return O});var Fe=function(){var O=_.u.apply(this,arguments)||this;O.canShowAdditionalDetailCheckbox=!1;O.canShowCheckbox=!1;O.keepDropdownFocusedAfterSelection=!0;return O};
_.X(Fe,_.u);Fe.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Fe.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Fe.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Fe.prototype,"canShowAdditionalDetailCheckbox",void 0);_.c([_.g(),_.Y("design:type",Object)],Fe.prototype,"canShowCheckbox",void 0);_.c([_.g(),_.Y("design:type",Object)],Fe.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.c([_.DO({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Fe);
_.y(Fe,"yt-report-form-modal-content",function(){if(d9B===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;YGh===void 0&&(YGh=document.createElement("template"));var B=YGh;G.call(m,B.content.cloneNode(!0),O.content.firstChild);d9B=O}O=d9B;return O},{mode:2});var D99;var sfh;var A4=function(){var O=_.u.apply(this,arguments)||this;O.submitting=!1;O.submitButtonDisabled=!0;O.command=null;O.canShowCheckbox=!1;O.canShowAdditionalDetailCheckbox=!1;O.canShowNextButton=!1;O.additionalDetailCheckboxChecked=!1;O.refitJob=0;O.keepDropdownFocusedAfterSelection=!0;O.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 O};
_.X(A4,_.u);_.v=A4.prototype;_.v.created=function(){this.refitJob=0};
_.v.attached=function(){this.JSC$20853_scroller&&(this.JSC$20853_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20853_scroller.attached&&typeof this.JSC$20853_scroller.attached==="function"&&this.JSC$20853_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.dataChanged=function(O){O&&(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,O.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),O.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.v.onYtPopupOpened=function(){var O=_.M1();O&&O.getPlayerPromise().then(function(m){m.pauseVideo()})};
_.v.onYtNavigate=function(O){_.b(O.detail.endpoint,_.j7u)&&(O.stopPropagation(),this.hideReportForm=!0)};
_.v.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.v.onYtServiceRequestCompleted=function(O,m){var G=m.actions;if(G){if(G.length===1&&_.b(G[0],_.zC)){var B;G=((B=_.b(G[0],_.zC))==null?void 0:B.commands)||[]}B=0;for(var Q=G.length;B<Q;B++)_.b(G[B],_.Y4)&&(O.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(G[B]))}if(m.data&&(O=this.get("feedbackResponses",m.data)))for(m=0;m<O.length;m++)if(O[m].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.v.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.v._onDescendantIronResize=function(O){O.stopPropagation();return!1};
_.v.handleReportFormEndpointUpdateAction=function(O){if(O.submitEndpoint){var m=this.command=O.submitEndpoint;m=_.b(m,_.gI9);if(m==null?0:m.additionalDetailCheckboxChecked)m.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else O.submitNavigationEndpoint?(this.command=O.submitNavigationEndpoint,this.toggleSubmitButton(!1)):O.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:O.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;O.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",O));this.refit()};
_.v.handleConfirmDialogCloseAction=function(O){O.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.v.submitButtonDisabledChanged=function(){var O=this.hostElement.parentElement;O&&O.invalidateTabbables&&O.invalidateTabbables()};
_.v.handleModifyReportFormCommand=function(O){O=this.get("action",O);O==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:O==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:O==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:O==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:O==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:O==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.v.updateDialogStyling=function(){var O,m,G,B,Q,H=((Q=(O=this.data)==null?void 0:(m=O.optionsSupportedRenderers)==null?void 0:(G=m.optionsRenderer)==null?void 0:(B=G.items)==null?void 0:B.length)!=null?Q:0)<=2?0:240;_.n7(this.hostElement,{"--yt-report-form-modal-renderer-min-width":H+"px"})};
_.v.toggleSubmitButton=function(O){this.submitButtonDisabled=!O;this.submitButtonDisabled=O};
_.v.computeSubmitButtonData=function(O,m){var G={};_.b(m,_.j7u)?G.navigationEndpoint=m:G.command=m||void 0;O&&O.buttonRenderer&&_.aM.extend(G,O.buttonRenderer);return G};
_.v.computeNextButtonData=function(O,m){var G={};if(!O||!O.buttonRenderer)return G;_.aM.extend(G,O.buttonRenderer);if(!m)return G;if(_.b(m,_.j7u))G.navigationEndpoint=ywA(m);else if(G.command=ywA(m),O=_.b(G.command,_.gI9))O.legalCheckboxChecked=!0;return G};
_.v.computeShowNextButton=function(O,m,G){return!!O&&m&&G};
_.v.refit=function(){var O=this;this.refitJob||(this.refitJob=_.ln.addLowPriorityJob(function(){_.iP(O.hostElement,"yt-refit");O.refitJob=0}))};
_.v.handleAdditionalDetailCheckboxUpdateAction=function(O){this.additionalDetailCheckboxChecked=O;_.b(this.command,_.gI9).additionalDetailCheckboxChecked=O};
_.vr.Object.defineProperties(A4,{template:{configurable:!0,enumerable:!0,get:function(){if(sfh===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;D99===void 0&&(D99=document.createElement("template"));var B=D99;G.call(m,B.content.cloneNode(!0),O.content.firstChild);sfh=O}O=sfh;return O}}});
A4.prototype.onYtServiceRequestError=A4.prototype.onYtServiceRequestError;A4.prototype.onYtServiceRequestCompleted=A4.prototype.onYtServiceRequestCompleted;A4.prototype.onYtServiceRequestSent=A4.prototype.onYtServiceRequestSent;A4.prototype.onYtNavigate=A4.prototype.onYtNavigate;A4.prototype.onYtPopupOpened=A4.prototype.onYtPopupOpened;_.c([_.h(_.ko.YtOpenPopupBehavior),_.Y("design:type",Object)],A4.prototype,"openPopupBehavior",void 0);
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],A4.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],A4.prototype,"eventForwardingBehavior",void 0);_.c([_.h(_.Dm),_.Y("design:type",Object)],A4.prototype,"ironResizableBehavior",void 0);_.c([_.g({observer:"dataChanged"}),_.Y("design:type",Object)],A4.prototype,"data",void 0);
_.c([_.g(),_.Y("design:type",Object)],A4.prototype,"submitting",void 0);_.c([_.g({observer:"submitButtonDisabledChanged"}),_.Y("design:type",Object)],A4.prototype,"submitButtonDisabled",void 0);_.c([_.g(),_.Y("design:type",Object)],A4.prototype,"command",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],A4.prototype,"hideReportForm",void 0);_.c([_.g(),_.Y("design:type",Object)],A4.prototype,"canShowCheckbox",void 0);
_.c([_.g(),_.Y("design:type",Object)],A4.prototype,"canShowAdditionalDetailCheckbox",void 0);_.c([_.g(),_.Y("design:type",Object)],A4.prototype,"canShowNextButton",void 0);_.c([_.g(),_.Y("design:type",Object)],A4.prototype,"additionalDetailCheckboxChecked",void 0);_.c([_.g(),_.Y("design:type",Object)],A4.prototype,"refitJob",void 0);_.c([_.g(),_.Y("design:type",Object)],A4.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.c([_.uc("#scroller"),_.Y("design:type",Object)],A4.prototype,"JSC$20853_scroller",void 0);_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],A4.prototype,"onYtPopupOpened",null);_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],A4.prototype,"onYtNavigate",null);
_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],A4.prototype,"onYtServiceRequestSent",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],A4.prototype,"onYtServiceRequestCompleted",null);
_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],A4.prototype,"onYtServiceRequestError",null);_.c([_.DO({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],A4);var N0A;var Pfh;var Od=function(){return _.u.apply(this,arguments)||this};
_.X(Od,_.u);_.v=Od.prototype;_.v.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.v.onVisible=function(){var O,m;(m=_.KR().resolve(_.v7(_.Bn)))==null||m.enqueue({label:_.HX((O=this.data)==null?void 0:O.messageTitle),elementToFocus:this.hostElement})};
_.v.onThumbnailLoaded=function(){_.iP(this.hostElement,"yt-refit")};
_.v.onDismissTap=function(){_.xc(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.v.computeAlternateIcon=function(O){return O?O==="BACKSTAGE_ARTWORK"?"backstage:artwork":O:null};
_.v.computeFontFamily=function(O){return O==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.v.computeBackgroundStyle=function(O,m){if(O=this.computeBackgroundImage(O,m))if(O=_.tH(O.thumbnails))return'background-image: url("'+O+'");'};
_.v.computeHasFullHeightImage=function(O){return!(!(O&&O.thumbnails&&O.thumbnails.length>0)||this.modern)};
_.v.isModernStyle=function(O){return O.style==="STYLE_MODERN"};
_.v.computeIcon=function(O,m){if(O&&O.icon)return m?O.iconDark:O.icon};
_.v.computeBackgroundImage=function(O,m){if(O&&O.backgroundImage)return m?O.backgroundImageDark:O.backgroundImage};
_.v.computeLogo=function(O,m){if(O&&O.logo)return m?O.logoDark:O.logo};
_.v.computeShouldShowModernIcon=function(O,m){return O&&!!m};
_.v.getLogoContainerClassName=function(O){return this.logoWithPadding(O)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.v.getLogoImageId=function(O){return this.logoWithPadding(O)?"mealbar-logo-with-padding":"mealbar-logo"};
_.v.logoWithPadding=function(O){var m,G,B;return(O=(m=this.computeLogo(O,this.isDarkTheme))==null?void 0:(G=m.thumbnails)==null?void 0:(B=G[0])==null?void 0:B.height)&&O%31===0?!0:!1};
Od.prototype.onThumbnailLoaded=Od.prototype.onThumbnailLoaded;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.c([_.g({}),_.Y("design:type",Object)],Od.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.Y("design:type",Boolean)],Od.prototype,"modern",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],Od.prototype,"isDarkTheme",void 0);
_.c([_.g({computed:"computeIcon(data, isDarkTheme)"}),_.Y("design:type",Object)],Od.prototype,"icon",void 0);_.c([_.g({computed:"computeLogo(data, isDarkTheme)"}),_.Y("design:type",Object)],Od.prototype,"logo",void 0);_.c([_.g({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.Y("design:type",Object)],Od.prototype,"backgroundStyle",void 0);_.c([_.g({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.Y("design:type",Object)],Od.prototype,"alternateIcon",void 0);
_.c([_.g({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.Y("design:type",Boolean)],Od.prototype,"hasFullHeightImage",void 0);_.c([_.g({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.Y("design:type",Boolean)],Od.prototype,"useYoutubeSans",void 0);_.c([_.g({computed:"computeShouldShowModernIcon(modern, icon)"}),_.Y("design:type",Boolean)],Od.prototype,"shouldShowModernIcon",void 0);
_.c([_.hG("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Od.prototype,"onThumbnailLoaded",null);_.c([_.DO({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Od);
_.y(Od,"yt-mealbar-promo-renderer",function(){if(Pfh===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;N0A===void 0&&(N0A=document.createElement("template"));var B=N0A;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Pfh=O}O=Pfh;return O},{mode:2});var FK3;var Aio;var mv=function(){return _.u.apply(this,arguments)||this};
_.X(mv,_.u);_.v=mv.prototype;_.v.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]]"}}}}}};
_.v.computeHasButtons_=function(O){return!(!O.dismissButton&&!O.acceptButton)};
_.v.computeStyle_=function(O){return O||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.v.observeImpressionEndpoints_=function(){var O=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(m){m.clickTrackingParams&&delete m.clickTrackingParams;_.tK(O.hostElement,[m])})};
_.v.onTap_=function(){_.xc(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
mv.prototype.observeImpressionEndpoints_=mv.prototype.observeImpressionEndpoints_;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],mv.prototype,"ytEventForwardingBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],mv.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],mv.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],mv.prototype,"positionType",void 0);_.c([_.g({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Y("design:type",Boolean)],mv.prototype,"hasButtons_",void 0);_.c([_.g({value:function(){return this.onTap_.bind(this)}}),
_.Y("design:type",Function)],mv.prototype,"boundOnTap_",void 0);_.c([_.g({value:{style:"mono-inverse"}}),_.Y("design:type",Object)],mv.prototype,"buttonOverride",void 0);_.c([_.Tw("data.promoConfig.impressionEndpoints"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],mv.prototype,"observeImpressionEndpoints_",null);_.c([_.DO({is:"yt-tooltip-renderer",disableElementRegistration:!0})],mv);
_.y(mv,"yt-tooltip-renderer",function(){if(Aio===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;FK3===void 0&&(FK3=document.createElement("template"));var B=FK3;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Aio=O}O=Aio;return O},{mode:2});var Obx;var mqh;var GtJ={},Bbr=(GtJ.WEB_REMIX="music.youtube.com",GtJ),GN=function(){var O=_.u.apply(this,arguments)||this;O.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return O};
_.X(GN,_.u);_.v=GN.prototype;_.v.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.created=function(){this.embedHost_=Bbr[_.kB("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.v.ready=function(){_.ZO(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.v.computeEmbedCode_=function(O,m,G,B,Q){if(!O)return"";var H=O.videoId,M=O.fullListId,R=[];O.attributionId&&R.push("si="+O.attributionId);B||R.push("controls=0");G&&Number(m)>0&&R.push("start="+m);M&&(H="videoseries",R.push("list="+M));G="https://"+(Q?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+H;O.clipId&&(R.push("clip="+O.clipId),R.push("clipt="+O.clipTiming));m=R.length>0?G+"?"+R.join("&amp;"):G;O.encryptedEmbedConfig&&R.push("embed_config="+JSON.stringify({enc:O.encryptedEmbedConfig}));
R=R.length>0?G+"?"+R.join("&amp;"):G;_.V("web_sharing_embed_preview_killswitch")?_.ZO(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(R,O.previewWidth||854,O.previewHeight||480):(_.c4(this.videoPreviewContainer),_.ZO(this.videoPreviewContainer).appendChild(this.buildIframeElement(R)));return this.getEmbedCode_(m,O.width||560,O.height||315)};
_.v.buildIframeElement=function(O){var m=document.createElement("iframe"),G,B;m.width=""+((B=(G=this.data)==null?void 0:G.previewWidth)!=null?B:854);var Q,H;m.height=""+((H=(Q=this.data)==null?void 0:Q.previewHeight)!=null?H:480);_.Qo6(m,2,O);m.title="YouTube video player";m.frameBorder="0";m.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";m.referrerPolicy="strict-origin-when-cross-origin";m.allowFullscreen=!0;return m};
_.v.computeIsSquareAspectRatio_=function(O){return O.previewHeight&&O.previewWidth?O.previewHeight==O.previewWidth:!1};
_.v.computeShowEmbedOptions_=function(O){return!!O.enablePrivacyModeOptionLabel||!!O.showPlayerControlsOptionLabel};
_.v.getEmbedCode_=function(O,m,G){return'<iframe width="'+m+'" height="'+G+'" src="'+O+'" 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>'};
_.v.handleSignalActionCopyShareEmbedUrl_=function(){_.ZO(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.v.handleSetTimestamp_=function(O){this.startAtTimeStamp_=(this.startAtChecked_=O.isSet)?O.timestamp:0};
_.v.closePanel_=function(){_.xc(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.v.onEmbedCode_=function(){_.ZO(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.v.onYtPopupClosed_=function(){_.c4(_.ZO(this.hostElement).querySelector("#video-preview"))};
_.v.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.b(this.data.actionButtons[0],_.v3)&&this.ytRendererBehavior.logExplicitClick(_.b(this.data.actionButtons[0],_.v3))};
GN.prototype.onYtPopupClosed_=GN.prototype.onYtPopupClosed_;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],GN.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],GN.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],GN.prototype,"data",void 0);
_.c([_.g({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.Y("design:type",String)],GN.prototype,"embedCode_",void 0);_.c([_.g({value:!0}),_.Y("design:type",Boolean)],GN.prototype,"isPlayerControlsOptionChecked_",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],GN.prototype,"isPrivacyModeOptionChecked_",void 0);_.c([_.g({value:!1,notify:!0}),_.Y("design:type",Boolean)],GN.prototype,"startAtChecked_",void 0);
_.c([_.g({value:0}),_.Y("design:type",Number)],GN.prototype,"startAtTimeStamp_",void 0);_.c([_.g({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],GN.prototype,"isSquareAspectRatio_",void 0);_.c([_.uc("#video-preview"),_.Y("design:type",HTMLElement)],GN.prototype,"videoPreviewContainer",void 0);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],GN.prototype,"onYtPopupClosed_",null);
_.c([_.DO({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],GN);
_.y(GN,"yt-sharing-embed-renderer",function(){if(mqh===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Obx===void 0&&(Obx=document.createElement("template"));var B=Obx;G.call(m,B.content.cloneNode(!0),O.content.firstChild);mqh=O}O=mqh;return O},{mode:2});var QTr={};
QTr.YtUnlimitedFamilyInterstitialBehavior=[_.ko.YtOpenPopupBehavior,_.cg.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(O){O=_.Ix9(_.Mj(O),"yt-button-renderer");return O?O.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(O){this.dialogHistory_.push(O)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var O=this.popFromHistory();if(O){var m={openPopupAction:{popupType:"DIALOG",popup:{}}};m.openPopupAction.popup[O.renderer]=O.data;this.showingPreviousDialog_=!0;this.openPopup(m)}},
handleOpenPopupAction_:function(O){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var m=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(B){return!!O.openPopupAction.popup[B]}),G=this.getElementName_();
m&&this.data&&(this.pushToHistory({renderer:G,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(O){if(O=_.b(O,eHr))this.loading=!0,_.xc(this.hostElement,"yt-open-create-family-dialog",[O,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var O=this.hostElement.nodeName.split("-").slice(1).map(function(m){return""+m[0].toUpperCase()+m.slice(1).toLowerCase()}).join("");
return O[0].toLowerCase()+O.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var HbA;var vxy;var BJ=function(){return _.u.apply(this,arguments)||this};
_.X(BJ,_.u);_.v=BJ.prototype;_.v.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}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.xc(this.hostElement,"yt-register-create-family-dialog");_.ZO(this.hostElement).querySelector("#thumbnail").onShow()};
_.v.fireOnCloseCommand_=function(){var O;((O=this.data)==null?0:O.onCloseCommand)&&_.Wd(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.v.onYtServiceRequestSent_=function(O,m){m&&m.endpoint&&_.b(m.endpoint,_.Vs)||(this.loading=!0)};
_.v.onYtServiceRequestCompleted_=function(){var O=this.hostElement.parentElement;O.close&&O.close();this.loading=!1};
_.v.openPopupHandler_=function(O){if(O.detail==this){var m;((m=this.data)==null?0:m.onOpenCommands)&&_.Wd(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.v.closePopupHandler_=function(O,m){this.fireOnCloseCommand_();if(m&&m.canceled===!0||m&&m.canceled===!1&&m.confirmed===!1){var G;((G=this.data)==null?0:G.onDismissCommands)&&_.Wd(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.v.dataChanged_=function(){this.loading=!1};
BJ.prototype.dataChanged_=BJ.prototype.dataChanged_;BJ.prototype.closePopupHandler_=BJ.prototype.closePopupHandler_;BJ.prototype.openPopupHandler_=BJ.prototype.openPopupHandler_;BJ.prototype.onYtServiceRequestCompleted_=BJ.prototype.onYtServiceRequestCompleted_;BJ.prototype.onYtServiceRequestSent_=BJ.prototype.onYtServiceRequestSent_;_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],BJ.prototype,"ytEventForwardingBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],BJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(QTr.YtUnlimitedFamilyInterstitialBehavior),_.Y("design:type",Object)],BJ.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],BJ.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],BJ.prototype,"loading",void 0);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],BJ.prototype,"onYtServiceRequestSent_",null);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],BJ.prototype,"onYtServiceRequestCompleted_",null);
_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],BJ.prototype,"openPopupHandler_",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],BJ.prototype,"closePopupHandler_",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],BJ.prototype,"dataChanged_",null);
_.c([_.DO({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],BJ);
_.y(BJ,"yt-unlimited-family-message-interstitial-renderer",function(){if(vxy===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;HbA===void 0&&(HbA=document.createElement("template"));var B=HbA;G.call(m,B.content.cloneNode(!0),O.content.firstChild);vxy=O}O=vxy;return O},{mode:2});var Kls;var $qK;var QB=function(){return _.u.apply(this,arguments)||this};
_.X(QB,_.u);QB.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"}}}};
QB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ZO(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(O){O.onShow()});
_.ZO(this.hostElement).querySelector("#main-thumbnail").onShow()};
QB.prototype.onButtonTap_=function(O){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(O)};
QB.prototype.computeMainThumbnailWidth_=function(O){return O&&O.length!==0?72:96};
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],QB.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.c([_.h(QTr.YtUnlimitedFamilyInterstitialBehavior),_.Y("design:type",Object)],QB.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],QB.prototype,"data",void 0);
_.c([_.g({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.Y("design:type",Number)],QB.prototype,"mainThumbnailWidth_",void 0);_.c([_.g({value:function(){return this.onButtonTap_.bind(this)}}),
_.Y("design:type",Function)],QB.prototype,"boundButtonTap_",void 0);_.c([_.DO({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],QB);
_.y(QB,"yt-unlimited-family-profile-interstitial-renderer",function(){if($qK===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Kls===void 0&&(Kls=document.createElement("template"));var B=Kls;G.call(m,B.content.cloneNode(!0),O.content.firstChild);$qK=O}O=$qK;return O},{mode:2});var Ms3;var rOr;var HJ=function(){var O=_.u.apply(this,arguments)||this;O.sliderAriaValueText_=null;O.selectedIndex_=0;O.messages={PAUSE_SLIDER:_.Xm("PAUSE_SLIDER",void 0,"Pause Duration")};return O};
_.X(HJ,_.u);_.v=HJ.prototype;_.v.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_]]"}}}}}};
_.v.onPopupOpened_=function(O){O.detail==this&&_.V("enable_premium_voluntary_pause")&&(_.xc(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.v.setDialogData=function(O){this.data=O;this.resetSlider_()};
_.v.dataChanged_=function(){this.data&&this.resetSlider_()};
_.v.onSubmitTap_=function(){if(this.data.confirmCommand){var O=this.data.confirmCommand;_.b(O,_.nk8)&&_.tK(this.hostElement,[O,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.v.onExitButtonTap_=function(){_.xc(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.v.closePopupHandler_=function(O,m){(m&&m.canceled===!0||m.canceled===!1&&m.confirmed===!1)&&this.handleOnDismissCommands_()};
_.v.onSliderChange_=function(){this.selectedIndex_=_.ZO(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.v.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.v.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.v.resetSlider_=function(){if(this.data){var O=this.data.defaultEndOptionIndex||0,m=_.ZO(this.hostElement).querySelector("#id-pause-slider");if(m.immediateValue<O)for(;m.immediateValue!=O;)m.increment();else if(O<m.immediateValue)for(;m.immediateValue!=O;)m.decrement();this.selectedIndex_=O;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.v.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Wd(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.v.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Wd(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.v.onYtServiceRequestSent=function(){this.loading=!0};
_.v.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
HJ.prototype.onYtServiceRequestCompleted=HJ.prototype.onYtServiceRequestCompleted;HJ.prototype.onYtServiceRequestSent=HJ.prototype.onYtServiceRequestSent;HJ.prototype.closePopupHandler_=HJ.prototype.closePopupHandler_;HJ.prototype.dataChanged_=HJ.prototype.dataChanged_;HJ.prototype.onPopupOpened_=HJ.prototype.onPopupOpened_;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],HJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],HJ.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],HJ.prototype,"loading",void 0);_.c([_.g(),_.Y("design:type",Number)],HJ.prototype,"selectIndexMax_",void 0);_.c([_.g(),_.Y("design:type",Object)],HJ.prototype,"selectedData_",void 0);
_.c([_.g(),_.Y("design:type",Object)],HJ.prototype,"sliderAriaValueText_",void 0);_.c([_.g({value:function(){return this.onSubmitTap_.bind(this)}}),
_.Y("design:type",Function)],HJ.prototype,"onButtonTap_",void 0);_.c([_.g({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.Y("design:type",Function)],HJ.prototype,"onSecondaryTap_",void 0);_.c([_.g(),_.Y("design:type",Object)],HJ.prototype,"messages",void 0);_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],HJ.prototype,"onPopupOpened_",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],HJ.prototype,"dataChanged_",null);
_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],HJ.prototype,"closePopupHandler_",null);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],HJ.prototype,"onYtServiceRequestSent",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],HJ.prototype,"onYtServiceRequestCompleted",null);_.c([_.DO({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],HJ);
_.y(HJ,"yt-unplugged-pause-membership-dialog-renderer",function(){if(rOr===void 0){var O=document.createElement("template");_.f(O,'\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>');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;Ms3===void 0&&(Ms3=document.createElement("template"));var B=Ms3;G.call(m,B.content.cloneNode(!0),O.content.firstChild);rOr=O}O=rOr;return O},{mode:2});var RF0;var ibK;var vJ=function(){return _.u.apply(this,arguments)||this};
_.X(vJ,_.u);vJ.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.aZ("vcBalanceRenderer")}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],vJ.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],vJ.prototype,"data",void 0);_.c([_.DO({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],vJ);
_.y(vJ,"yt-vc-offer-layout-header-renderer",function(){if(ibK===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;RF0===void 0&&(RF0=document.createElement("template"));var B=RF0;G.call(m,B.content.cloneNode(!0),O.content.firstChild);ibK=O}O=ibK;return O},{mode:2});var xqs;var qxr;var Uqs;var ts0;var K0=function(){return _.u.apply(this,arguments)||this};
_.X(K0,_.u);K0.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.vr.Object.defineProperties(K0.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.m63.YtTappableItemBehavior),_.Y("design:type",Object)],K0.prototype,"ytTappableItemBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],K0.prototype,"data",void 0);
_.c([_.g({reflectToAttribute:!0}),_.T("data.accessibilityText"),_.Y("design:type",String),_.Y("design:paramtypes",[])],K0.prototype,"ariaLabel",null);_.c([_.g({reflectToAttribute:!0}),_.T("data.style"),_.Y("design:type",String),_.Y("design:paramtypes",[])],K0.prototype,"vcOfferStyle",null);_.c([_.T("data.style","data.titleText"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],K0.prototype,"showTitleText",null);_.c([_.DO({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],K0);
_.y(K0,"yt-vc-offer-renderer",function(){if(ts0===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Uqs===void 0&&(Uqs=document.createElement("template"));var B=Uqs;G.call(m,B.content.cloneNode(!0),O.content.firstChild);ts0=O}O=ts0;return O},{mode:2});var $W=function(){return _.u.apply(this,arguments)||this};
_.X($W,_.u);$W.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],$W.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],$W.prototype,"data",void 0);_.c([_.DO({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],$W);
_.y($W,"yt-vc-offer-layout-renderer",function(){if(qxr===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;xqs===void 0&&(xqs=document.createElement("template"));var B=xqs;G.call(m,B.content.cloneNode(!0),O.content.firstChild);qxr=O}O=qxr;return O},{mode:2});var WlB;var Zbr;var zFs;var JO9;var MV=function(){return _.u.apply(this,arguments)||this};
_.X(MV,_.u);MV.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],MV.prototype,"data",void 0);_.c([_.DO({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],MV);
_.y(MV,"yt-ypc-offers-modal-top-bar-renderer",function(){if(JO9===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;zFs===void 0&&(zFs=document.createElement("template"));var B=zFs;G.call(m,B.content.cloneNode(!0),O.content.firstChild);JO9=O}O=JO9;return O},{mode:2});var rx=function(){return _.u.apply(this,arguments)||this};
_.X(rx,_.u);rx.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"}}}}};
rx.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
rx.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var O=this.scrollable;O.attached&&typeof O.attached==="function"&&O.attached()};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],rx.prototype,"ytRendererstamperBehavior",void 0);_.c([_.uc("#scrollable"),_.Y("design:type",Object)],rx.prototype,"scrollable",void 0);_.c([_.g(),_.Y("design:type",Object)],rx.prototype,"data",void 0);_.c([_.DO({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],rx);
_.y(rx,"yt-ypc-offers-modal-renderer",function(){if(Zbr===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;WlB===void 0&&(WlB=document.createElement("template"));var B=WlB;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Zbr=O}O=Zbr;return O},{mode:2});var Vs3;var bbb;var Rx=function(){return _.u.apply(this,arguments)||this};
_.X(Rx,_.u);_.v=Rx.prototype;_.v.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}}}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ZO(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.v.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.xc(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.v.onYtPopupOpened_=function(O,m){(m==null?void 0:m.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Wd(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.v.onYtPopupClosed_=function(O,m){this.continueButtonTapped||m&&(m.canceled===!0||m.canceled===!1&&m.confirmed===!1)&&this.data.onDismissCommands&&_.Wd(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.v.onYtServiceRequestError_=function(O){this.set("showSpinner",!1);_.At(this.hostElement,O.detail.error.message)};
_.v.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.V("enable_ypc_spinners")?_.xc(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Rx.prototype.onYtServiceRequestError_=Rx.prototype.onYtServiceRequestError_;Rx.prototype.onYtPopupClosed_=Rx.prototype.onYtPopupClosed_;Rx.prototype.onYtPopupOpened_=Rx.prototype.onYtPopupOpened_;Rx.prototype.onYtServiceRequestCompleted_=Rx.prototype.onYtServiceRequestCompleted_;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);
_.c([_.g(),_.Y("design:type",Object)],Rx.prototype,"data",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],Rx.prototype,"showSpinner",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],Rx.prototype,"continueButtonTapped",void 0);_.c([_.g({value:function(){return this.onContinueTapped_.bind(this)}}),
_.Y("design:type",Function)],Rx.prototype,"bindOnContinueTapped_",void 0);_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Rx.prototype,"onYtServiceRequestCompleted_",null);_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Rx.prototype,"onYtPopupOpened_",null);
_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],Rx.prototype,"onYtPopupClosed_",null);_.c([_.hG("yt-service-request-error"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],Rx.prototype,"onYtServiceRequestError_",null);_.c([_.DO({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Rx);
_.y(Rx,"yt-ypc-upgrade-dialog-renderer",function(){if(bbb===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;Vs3===void 0&&(Vs3=document.createElement("template"));var B=Vs3;G.call(m,B.content.cloneNode(!0),O.content.firstChild);bbb=O}O=bbb;return O},{mode:2});var nxJ;var XA0;var iN=function(){return _.u.apply(this,arguments)||this};
_.X(iN,_.u);iN.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
iN.prototype.computeHasButtons_=function(O){return!(!O.dismissButton&&!O.confirmButton)};
iN.prototype.computeStyle_=function(O){return O||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],iN.prototype,"ytEventForwardingBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],iN.prototype,"ytRendererstamperBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],iN.prototype,"data",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],iN.prototype,"positionType",void 0);
_.c([_.g({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.Y("design:type",Boolean)],iN.prototype,"hasButtons_",void 0);_.c([_.g({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],iN.prototype,"style_",void 0);_.c([_.DO({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],iN);
_.y(iN,"yt-bubble-hint-renderer",function(){if(XA0===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;nxJ===void 0&&(nxJ=document.createElement("template"));var B=nxJ;G.call(m,B.content.cloneNode(!0),O.content.firstChild);XA0=O}O=XA0;return O},{mode:2});var f39;var hFr;var xW=function(){var O=_.KC.apply(this,arguments)||this;O.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return O};
_.X(xW,_.KC);_.v=xW.prototype;_.v.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.v.attached=function(){var O=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){O.$.thumbnail.onShow();O.$["header-image"].onShow()})};
_.v.handleCheckBoxUpdateAction_=function(O){this.canShowCheckboxEnabledConfirmButton=O};
_.v.computeUseOverlayForSpinner_=function(O,m){return!!O&&m};
_.v.computeShowSpinner_=function(O,m){return O||!!m};
_.v.fireOnCloseActions_=function(){var O,m=_.K(((O=this.data)==null?void 0:O.onClosedActions)||[]);for(O=m.next();!O.done;O=m.next())this.ytRendererBehavior.resolveCommand(O.value)};
_.v.fireOnOpenCommands_=function(O){var m,G=(m=this.data)==null?void 0:m.onOpenCommands;if(G)for(O.stopImmediatePropagation(),O=_.K(G),m=O.next();!m.done;m=O.next())this.ytRendererBehavior.resolveCommand(m.value)};
_.v.fireOnDismissCommands_=function(O){var m,G=(m=this.data)==null?void 0:m.onDismissCommands;if(G)for(O.stopImmediatePropagation(),O=_.K(G),m=O.next();!m.done;m=O.next())this.ytRendererBehavior.resolveCommand(m.value)};
_.v.openPopupHandler_=function(O){O.detail==this&&this.fireOnOpenCommands_(O)};
_.v.closePopupHandler_=function(O,m){_.UB(this,"yt-confirm-dialog-close-action",[m]);this.fireOnCloseActions_();(m&&m.canceled===!0||m&&m.canceled===!1&&m.confirmed===!1)&&this.fireOnDismissCommands_(O)};
_.v.onHeaderImageChanged_=function(){var O;((O=this.data)==null?0:O.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.v.computeHasHeaderImageWidth_=function(O){return O!=void 0};
_.v.computeHasLoadingMessage=function(O){return!!O};
_.v.onHeaderImageWidthChanged_=function(){var O,m=(O=this.data)==null?void 0:O.headerImageWidth;if(m){if(O=1.25*m*2+m,this.$.main.style.width=O+"px",m=this.$.scroller.firstElementChild)m.style.minWidth=O+"px"}else this.$.main.style.width="100%"};
_.v.onThumbnailChanged_=function(){var O;((O=this.data)==null?0:O.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")};
_.v.onYtNavigate_=function(O){O=_.Mj(O);O instanceof Node&&_.zw(this.$["confirm-button"]).contains(O)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.v.computePrimaryIsCancel_=function(O){return O};
_.v.computeIsCancelButtonHidden_=function(O){return O.skipCancelButton||!O.cancelButton};
_.v.computeIsCheckboxHidden_=function(O){return!O.checkbox};
_.v.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.v.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.v.onYtServiceRequestCompleted_=function(){var O;((O=this.data)==null?0:O.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.vr.Object.defineProperties(xW,{template:{configurable:!0,enumerable:!0,get:function(){if(hFr===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;f39===void 0&&(f39=document.createElement("template"));var B=f39;G.call(m,B.content.cloneNode(!0),O.content.firstChild);hFr=O}O=hFr;return O}}});
xW.prototype.onYtServiceRequestCompleted_=xW.prototype.onYtServiceRequestCompleted_;xW.prototype.onYtServiceRequestSent_=xW.prototype.onYtServiceRequestSent_;xW.prototype.onThumbnailLoaded_=xW.prototype.onThumbnailLoaded_;xW.prototype.onYtNavigate_=xW.prototype.onYtNavigate_;xW.prototype.onThumbnailChanged_=xW.prototype.onThumbnailChanged_;xW.prototype.onHeaderImageWidthChanged_=xW.prototype.onHeaderImageWidthChanged_;xW.prototype.onHeaderImageChanged_=xW.prototype.onHeaderImageChanged_;
xW.prototype.closePopupHandler_=xW.prototype.closePopupHandler_;xW.prototype.openPopupHandler_=xW.prototype.openPopupHandler_;_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],xW.prototype,"ytActionHandlerBehavior",void 0);_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],xW.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);
_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],xW.prototype,"ytEventForwardingBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],xW.prototype,"data",void 0);_.c([_.g({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.Y("design:type",Boolean)],xW.prototype,"primaryIsCancel",void 0);_.c([_.g({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.Y("design:type",Boolean)],xW.prototype,"isCancelButtonHidden",void 0);
_.c([_.g({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.Y("design:type",Boolean)],xW.prototype,"isCheckboxHidden",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],xW.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.c([_.g({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],xW.prototype,"useOverlayForSpinner_",void 0);
_.c([_.g({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.Y("design:type",Boolean)],xW.prototype,"showSpinner_",void 0);_.c([_.g({value:!1}),_.Y("design:type",Boolean)],xW.prototype,"isActionInProgress_",void 0);_.c([_.g({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.Y("design:type",Boolean)],xW.prototype,"hasHeaderImageWidth_",void 0);
_.c([_.g({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.Y("design:type",Boolean)],xW.prototype,"hasLoadingMessage",void 0);_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],xW.prototype,"openPopupHandler_",null);_.c([_.hG("yt-popup-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],xW.prototype,"closePopupHandler_",null);
_.c([_.Tw("data.headerImage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xW.prototype,"onHeaderImageChanged_",null);_.c([_.Tw("data.headerImageWidth"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xW.prototype,"onHeaderImageWidthChanged_",null);_.c([_.Tw("data.thumbnail"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xW.prototype,"onThumbnailChanged_",null);
_.c([_.hG("yt-navigate"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],xW.prototype,"onYtNavigate_",null);_.c([_.hG("yt-img-shadow-loaded"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],xW.prototype,"onThumbnailLoaded_",null);_.c([_.hG("yt-service-request-sent"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Ni]),_.Y("design:returntype")],xW.prototype,"onYtServiceRequestSent_",null);
_.c([_.hG("yt-service-request-completed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,_.Qp]),_.Y("design:returntype")],xW.prototype,"onYtServiceRequestCompleted_",null);_.c([_.DO({is:"yt-confirm-dialog-renderer",noInjection:!0})],xW);var TbJ;var gxB;var qV=function(){return _.u.apply(this,arguments)||this};
_.X(qV,_.u);qV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ZO(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
qV.prototype.computeConfirmButton_=function(O){var m={text:O.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};O.confirmNavigationEndpoint?m.navigationEndpoint=O.confirmNavigationEndpoint:O.confirmServiceEndpoint&&(m.serviceEndpoint=O.confirmServiceEndpoint);return m};
qV.prototype.computeShowTitle_=function(O){return!(O==null||!O.title)};
_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],qV.prototype,"data",void 0);_.c([_.g({computed:"computeShowTitle_(data)"}),_.Y("design:type",Boolean)],qV.prototype,"showTitle",void 0);_.c([_.DO({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],qV);
_.y(qV,"yt-fancy-dismissible-dialog-renderer",function(){if(gxB===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;TbJ===void 0&&(TbJ=document.createElement("template"));var B=TbJ;G.call(m,B.content.cloneNode(!0),O.content.firstChild);gxB=O}O=gxB;return O});var uQr;var jTA;var Ud=function(){var O=_.u.apply(this,arguments)||this;O.spinnerActive=!1;return O};
_.X(Ud,_.u);Ud.prototype.created=function(){r8B(2201)};
Ud.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Ud.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Ud.prototype.onIronOverlayClosed=Ud.prototype.onIronOverlayClosed;Ud.prototype.onIronOverlayOpened=Ud.prototype.onIronOverlayOpened;_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.Mc),_.Y("design:type",Object)],Ud.prototype,"tpYtIronOverlayBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Ud.prototype,"data",void 0);_.c([_.g(),_.Y("design:type",Object)],Ud.prototype,"spinnerActive",void 0);
_.c([_.hG("iron-overlay-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ud.prototype,"onIronOverlayOpened",null);_.c([_.hG("iron-overlay-closed"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],Ud.prototype,"onIronOverlayClosed",null);_.c([_.DO({is:"yt-loading-renderer",disableElementRegistration:!0})],Ud);
_.y(Ud,"yt-loading-renderer",function(){if(jTA===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;uQr===void 0&&(uQr=document.createElement("template"));var B=uQr;G.call(m,B.content.cloneNode(!0),O.content.firstChild);jTA=O}O=jTA;return O},{mode:2});var I3o;var pAB;var ty=function(){var O=_.u.apply(this,arguments)||this;O.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);O.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);O.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";O.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return O};
_.X(ty,_.u);_.v=ty.prototype;_.v.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.v.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.v.onDarkModeToggledAction=function(O){this.isDarkTheme=O};
_.v.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.v.openPopupHandler_=function(O){O.detail===this.hostElement&&this.hostElement.hidden&&_.xc(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.v.onDismissButtonTap_=function(){var O;this.closeOnDismissButton_.has(((O=this.data)==null?void 0:O.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.xc(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.v.onAcceptButtonTap_=function(){var O;this.closeOnAcceptButton_.has(((O=this.data)==null?void 0:O.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.xc(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.v.computeHasHeader_=function(O){return!!O.headerBackgroundImage};
_.v.computeLayoutStyle_=function(O){return O};
_.v.computePopupSize_=function(O){return O};
_.v.computeIconType_=function(O){return O.dialogIcon&&O.dialogIcon.iconType?O.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":O.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":O.dialogIcon.iconType:""};
_.v.computeIsLogo_=function(O){return!!O.dialogIcon&&!!O.dialogIcon.iconType&&(O.dialogIcon.iconType==="YOUTUBE_LOGO"||O.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||O.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.v.computeHasCustomLogo=function(O){return!(O==null||!O.headerForegroundImage)};
_.v.computeCustomLogo=function(O,m){if(O!=null&&O.headerForegroundImage)return O.headerForegroundImageDark?m?O.headerForegroundImageDark:O.headerForegroundImage:O.headerForegroundImage};
_.v.computeHeaderBackgroundImage=function(O,m){if(O!=null&&O.headerBackgroundImage)return m&&(O==null?0:O.headerBackgroundImageDark)?O.headerBackgroundImageDark:O.headerBackgroundImage};
_.v.shouldShowIconContainer=function(O,m){return O&&!m};
_.v.shouldShowNonYouTubeIcon=function(O,m){return!O&&!m};
_.v.getLogoImageId=function(O){var m,G,B;return(O=(m=this.computeCustomLogo(O,this.isDarkTheme))==null?void 0:(G=m.thumbnails)==null?void 0:(B=G[0])==null?void 0:B.height)&&O%31===0?"custom-logo-with-padding":"custom-logo"};
ty.prototype.openPopupHandler_=ty.prototype.openPopupHandler_;ty.prototype.dataChanged_=ty.prototype.dataChanged_;_.c([_.h(_.j1.YtRendererstamperBehavior),_.Y("design:type",Object)],ty.prototype,"ytRendererstamperBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.c([_.g(),_.Y("design:type",Boolean)],ty.prototype,"isDarkTheme",void 0);
_.c([_.g({computed:"computeCustomLogo(data, isDarkTheme)"}),_.Y("design:type",Object)],ty.prototype,"customLogo",void 0);_.c([_.g({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.Y("design:type",Object)],ty.prototype,"headerBackgroundImage",void 0);_.c([_.g(),_.Y("design:type",Object)],ty.prototype,"data",void 0);_.c([_.g({computed:"computeHasHeader_(data)"}),_.Y("design:type",Boolean)],ty.prototype,"hasHeader",void 0);
_.c([_.g({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.Y("design:type",Object)],ty.prototype,"layoutStyle",void 0);_.c([_.g({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.Y("design:type",Object)],ty.prototype,"popupSize",void 0);_.c([_.g({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ty.prototype,"hasLogo",void 0);
_.c([_.g({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.Y("design:type",Boolean)],ty.prototype,"hasCustomLogo",void 0);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],ty.prototype,"dataChanged_",null);_.c([_.hG("yt-popup-opened"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],ty.prototype,"openPopupHandler_",null);
_.c([_.DO({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],ty);
_.y(ty,"yt-upsell-dialog-renderer",function(){if(pAB===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;I3o===void 0&&(I3o=document.createElement("template"));var B=I3o;G.call(m,B.content.cloneNode(!0),O.content.firstChild);pAB=O}O=pAB;return O},{mode:2});var SxJ=_.a(function(O){return _.q("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.q(_.U,{cond:O.title,then:function(m){return _.q("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},m)}}))},"Gh"),Exs=_.a(function(O){return _.q("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.q(_.u5,{data:O.closeButton},{buttonViewModel:function(m){return _.q("div",null,_.q(_.oF,{data:m.data}))}}))},"Hh"),Llh=_.a(function(O){var m=O.data;
return _.q(_.Mr,null,_.q("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.q("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.q(_.U,{cond:function(){return!!m().image&&!!m().title},
then:function(){return _.q(_.KH,{data:function(){return m().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.q("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.q(_.U,{cond:function(){return m().title},
then:function(G){return _.q("h3",{class:"miniAppGameInfoDialogViewModelTitle"},G)}}),_.q(_.U,{cond:function(){return m().primaryGenre},
then:function(G){return _.q("span",{class:"miniAppGameInfoDialogViewModelGenre"},G)}}))),_.q(_.U,{cond:function(){var G=m().description;
return G&&G.length<=150},
then:function(){return _.q("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.q("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return m().description}))}}))},"Ih"),Chx=_.a(function(O){O=O.infoRows;
var m=_.KR().resolve(_.ZT),G=_.V("enable_displaying_ppn");return _.q("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.q(_.gi,{each:O},function(B){return _.q("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.q(_.U,{cond:function(){return B.label},
then:function(Q){return _.q("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},Q)}}),_.q(_.U,{cond:function(){return B.attributedLabel},
then:function(Q){return _.q("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.q(_.Jg,{text:Q,noPreWrap:!0}))}}),_.q(_.U,{cond:function(){return B.value},
then:function(Q){return _.q("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},Q)}}),_.q(_.U,{cond:function(){return B.attributedValue},
then:function(Q){return _.q("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.q(_.Jg,{text:Q,noPreWrap:!0}))}}))}),_.q(_.U,{cond:function(){return G&&m.clientData.has("post_play_nonce")},
then:function(){return _.q("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.q("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.q("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},m.getData("post_play_nonce")))}}))},"Jh"),oxr=_.a(function(O){var m=O.data;
return _.q("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.q(SxJ,{title:function(){return m().dialogTitle}}),_.q(Llh,{data:m}),_.q(_.U,{cond:function(){return m().infoRow},
then:function(G){return _.q(Chx,{infoRows:G})}}),_.q(Exs,{closeButton:function(){return m().closeButton}}))},"Kh");
oxr.idomCompat=!0;_.qi(oxr,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=O.data;return _.q("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.q(_.KH,{data:function(){return m().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.q("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.q("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.q(_.U,{cond:function(){var G=m().ytLogo;return G?G.iconType:null},
then:function(G){return _.q(_.T$,{icon:G,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.q("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.q("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.q(_.Jg,{text:function(){return m().title}})),_.q("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.q(_.Jg,{text:function(){return m().body}})),_.q("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.q(_.Jg,{text:function(){return m().verifyStateText}}))),
_.q("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.q("div",null,_.q(_.u5,{data:function(){return m().dismissButton}},{buttonViewModel:_.oF})),_.q("div",null,_.q(_.u5,{data:function(){return m().linkParentButton}},{buttonViewModel:_.oF})))))},"Lh"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.VZ}});var l3h=_.a(function(O){var m=O.data;O=_.MN(function(){return m().agreements},[]);
return _.q("installment-agreements-view-model",{class:_.bE("ytInstallmentAgreementsViewModelHost")},_.q(_.gi,{each:O},function(G){return _.q("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.q("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.q(_.Jg,{text:G.label})),_.q("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.q(_.u5,{data:function(){return G.openButton}},{buttonViewModel:_.oF})))}))},"Mh");
l3h.idomCompat=!0;var a39=_.a(function(O){var m=_.K(_.fH(function(){var D,OS;return((D=O.data().createPlaylistDialogFormSchema)==null?0:(OS=D.initialValues)==null?0:OS.title)?O.data().createPlaylistDialogFormSchema.initialValues.title:""})),G=m.next().value,B=m.next().value;
m=_.K(_.fH(function(){O.data();return!1}));
var Q=m.next().value,H=m.next().value;m=_.K(_.fH(function(){O.data();return!1}));
var M=m.next().value,R=m.next().value;m=_.K(_.fH(function(){var D,OS;return(D=O.data().createPlaylistDialogFormSchema)==null?void 0:(OS=D.initialValues)==null?void 0:OS.visibility}));
var x=m.next().value,t=m.next().value;m=_.K(_.fH(function(){O.data();return!1}));
var W=m.next().value,Z=m.next().value;m=_.K(_.fH(function(){var D,OS;return(D=O.data().createPlaylistDialogFormSchema)==null?void 0:(OS=D.initialValues)==null?void 0:OS.isCollaborative}));
var z=m.next().value,J=m.next().value,n=_.Al("div");_.ER(function(){var D=n.value.querySelector("textarea");D&&(D.value=G())},"sgS9sc");
_.Ln(function(){var D;_.BIr((D=O.data().createPlaylistDialogFormSchema)==null?void 0:D.id,{onSubmit:function(){var OS=G();var rN=x(),xO=z(),XI=O.data();OS={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:OS,privacyStatus:rN,videoIds:XI.videoIds,sourcePlaylistId:XI.sourcePlaylistId,params:xO?XI.createPlaylistParamsCollaborationEnabled:XI.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.KR().resolve(_.Mu).resolveCommand(OS)},
isValid:function(){return Q()&&!M()&&!W()}})});
var I=function(D){if(D!==void 0&&(B(D),!Q()&&D.length>0&&H(!0),Q())){var OS=ZJJ(O.data());if(OS){var rN=OS.minLength;OS=OS.maxLength;rN&&D.length<rN?R(!0):OS&&D.length>OS?R(!0):R(!1)}}},S=function(){var D=!(!z()||x()!=="PRIVATE");
Z(D)},L=function(D){D!==void 0&&(t(D),S())},C=function(){if(W())return Jtr(O.data())},P=function(){J(!z());
S()},w=function(){return{validate:function(D){if(Q()){var OS=ZJJ(O.data());
if(OS){var rN=OS.minLength;OS=OS.translations;if(rN&&D.length<rN)return OS==null?void 0:OS.minLengthErrorMessage}}}}},d=function(){var D=ZJJ(O.data()),OS=D==null?void 0:D.maxLength,rN;
D=D==null?void 0:(rN=D.translations)==null?void 0:rN.maxLengthErrorMessage;if(OS&&D)return{maxChars:OS,errorMessage:D}};
return _.q("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.q("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:n},_.q(_.u5,{data:function(){return O.data().playlistTitle}},{textFormFieldViewModel:function(D){return _.q(_.eW9,{data:D.data,
text:G,onInput:I,validation:w,characterLimit:d})},
textFieldViewModel:function(D){return _.q(_.weK,{data:D.data,text:G,onInput:I,validation:w,characterLimit:d})}})),_.q("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.q(_.u5,{data:function(){return O.data().playlistVisibility}},{dropdownViewModel:function(D){return _.q(_.Qq0,{data:D.data,
onSelected:L,error:C})}})),_.q(_.U,{cond:function(){return!!O.data().playlistCollaborate},
then:function(){return _.q("div",null,_.q(_.u5,{data:function(){return O.data().playlistCollaborate}},{switchListItemViewModel:function(D){return _.q(_.NZm,{data:D.data,
onTap:P})}}))}}))},"Nh");var ktK=_.a(function(O){var m=O.data;return _.q("upsell-offer-table-cell-content-view-model",null,_.q("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.q(_.I8,null,_.q(_.uz,{when:function(){return m().iconType}},function(){return _.q("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.q(_.T$,{icon:function(){return m().iconType.toString()}}))}),_.q(_.uz,{when:function(){return m().title}},function(){return _.q(_.Jg,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return m().title}})}),_.q(_.uz,{when:function(){return m().subtitle}},function(){return _.q(_.Jg,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return m().subtitle}})}),_.q(_.uz,{when:function(){return m().infoText}},function(){return _.q(_.Jg,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return m().infoText}})}),_.q(_.uz,{when:function(){return m().featureDescription}},function(){return _.q(_.Jg,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return m().featureDescription}})}),_.q(_.uz,{when:function(){return m().note}},function(){return _.q(_.Jg,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return m().note}})}))))},"Oh");
ktK.idomCompat=!0;var yOb=_.a(function(O){var m=O.data;return _.q("upsell-offer-table-cell-view-model",null,_.q("div",{class:_.bE("ytUpsellOfferTableCellViewModelCellWrapper",function(){return m().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.q(_.u5,{data:function(){return m().contents}},{upsellOfferTableCellContentViewModel:ktK})))},"Ph");
yOb.idomCompat=!0;var cO9=_.a(function(O){var m=O.data;var G=O.upsellTableIsFirstRow;var B=function(){return(G==null?0:G())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},Q=function(){return(G==null?0:G())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.q("ytm-upsell-offer-table-row-view-model",null,_.q("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.q(_.u5,{data:function(){return m().rowHeaderCell}},{upsellOfferTableCellViewModel:function(H){return _.q("div",{class:B},_.q(yOb,{data:H.data}))}}),_.q(_.u5,{data:function(){return m().contentCells}},{upsellOfferTableCellViewModel:function(H){return _.q("div",{class:Q},_.q(yOb,{data:H.data}))}})))},"Qh");
cO9.idomCompat=!0;var Yxo=_.a(function(O){var m=O.data;return _.q("ytm-upsell-offer-table-view-model",null,_.q("div",{class:"ytUpsellOfferTableViewModelHost"},_.q("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.q(_.u5,{data:function(){return m().rows}},{upsellOfferTableRowViewModel:function(G,B){return _.q(cO9,{data:G.data,
upsellTableIsFirstRow:function(){return B()===0}})}}))))},"Rh");
Yxo.idomCompat=!0;var dqB=_.a(function(O){var m=_.MN(O.noPadding,!1),G=function(){var H,M;return(M=(H=O.data().logo.accessibilityData)==null?void 0:H.label)!=null?M:""},B=function(){return O.data().offerTable},Q={};
return _.q("upsell-view-model",{class:_.bE("ytUpsellViewModelHost",(Q.ytUpsellViewModelHostNoPadding=function(){return m()},Q.ytUpsellViewModelHostWide=function(){return B()!==void 0},Q))},_.q("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.q(_.U,{cond:function(){return _.Dv(O.data().logo)},
then:function(H){return _.q(_.KH,{data:H,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:G})}})),_.q("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.q(_.Jg,{text:function(){return O.data().title}})),_.q("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.q(_.gi,{each:function(){var H;
return(H=O.data().subtitles)!=null?H:[]},
keyBy:"INDEX"},function(H){var M={};return _.q("div",{class:_.bE("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(M.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return B()!==void 0},M))},_.q(_.Jg,{text:H}))})),_.q("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.q(_.gi,{each:function(){var H;
return(H=O.data().benefitInfos)!=null?H:[]},
keyBy:"INDEX"},function(H){return _.q(_.U,{cond:function(){return H().info},
then:function(M){return _.q("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.q(_.T$,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.q(_.Jg,{text:M}))}})})),_.q(_.U,{cond:function(){return B()!==void 0},
then:function(){return _.q("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.q(Yxo,{data:B}))}}),_.q("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.q(_.gi,{each:function(){var H;
return(H=O.data().legalInfos)!=null?H:[]},
keyBy:"INDEX"},function(H){var M={};return _.q("div",{class:_.bE("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(M.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return B()!==void 0},M))},_.q(_.Jg,{text:H}))})))},"Sh");var wAJ=_.a(function(O){var m=O.data;O={};O=(O.ytMiniAppScoreChallengeViewModelScoreRadial=!0,O.ytMiniAppScoreChallengeViewModelDarkScoreRadial=VhK(),O);return _.q("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.q("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return m().title}),_.q("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return m().subtitle}),_.q("div",{class:_.CJ(O)},_.q("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return m().score})),_.q("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return m().prompt}))},"Th");var eFK=function(){this.store=_.Km();this.formId=""};
eFK.prototype.onInit=function(O){O.formId&&(this.formId=O.formId,this.store.dispatch(_.xs({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var Dq3=_.a(function(O){function m(R){if(R&&(R=_.b(R,_.pJ)))return Object.assign({},R,{isSelected:H()})}
var G=_.K(_.fH(function(){var R,x;return(x=(R=_.b(O.data().option,_.pJ))==null?void 0:R.isSelected)!=null?x:!1})),B=G.next().value,Q=G.next().value,H=B;
_.Ln(function(){var R;_.BIr((R=O.data().formSchema)==null?void 0:R.id,{onSubmit:function(){var x=_.KR().resolve(_.Mu),t=!!O.data().selectedCommand,W=!!O.data().unselectedCommand;if(H()){if(t)var Z=O.data().selectedCommand}else W&&(Z=O.data().unselectedCommand);Z=_.eg(Z);m(O.data().option)&&!Z?(x="",!t&&W?x="selected ":t&&!W&&(x="unselected "),t=new _.j9("No "+x+"command found for SelectionListItemFormViewModel"),_.oy(t)):Z&&x.resolveCommand(Z)},
isValid:function(){return!0}})});
var M=function(){Q(!H())};
_.LS(function(){var R,x,t=(R=O.data())==null?void 0:(x=R.formSchema)==null?void 0:x.id;t&&_.ht()().delete(t)});
return _.q("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.q("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.q(_.Jg,{text:function(){return O.data().paragraph}})),_.q(_.U,{cond:function(){return m(O.data().option)},
then:function(R){return _.q(_.MA,{data:R,isCompact:!0,hideSelectionTextChevron:!0,onTap:M,disableHorizontalPadding:!0})}}))},"Uh");var sTu=_.a(function(O){var m=O.data;var G=O.disablePadding;var B=O.className;var Q=_.Al("yt-dialog-header-view-model"),H=function(){var R=m().imageBanner;a:switch(m().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var x="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:x="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:R,style:x,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},M=function(){return m().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.Ln(function(){var R=function(){_.xc(Q.value,"yt-refit-popups-action")},x;
(x=Q.value)==null||x.addEventListener("image-loaded",R);_.LS(function(){var t;(t=Q.value)==null||t.removeEventListener("image-loaded",R)})});
O={};return _.q("yt-dialog-header-view-model",{el:Q,class:_.bE(B,(O.ytDialogHeaderViewModelHost=!0,O.ytDialogHeaderViewModelHostDisablePadding=G,O))},_.q(_.U,{cond:function(){return m().imageBanner},
then:function(){var R={};return _.q("div",{class:_.bE(B,(R.ytDialogHeaderViewModelBanner=!0,R.ytDialogHeaderViewModelBannerFullBleed=M,R)),style:_.hH({"max-height":function(){return m().assetContainerMaxHeight!==void 0?m().assetContainerMaxHeight+"px":void 0}})},_.q(_.IU,{data:H,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.q(_.U,{cond:function(){return m().headerBlock},
then:function(){return _.q("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.q(_.u5,{data:function(){return m().headerBlock}},{contentPreviewImageViewModel:function(R){return _.q(_.IU,{data:R.data,
notifyOnLoaded:!0})}}))}}),_.q(_.U,{cond:function(){return m().customBanner},
then:function(R){return _.q("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.q(_.u5,{data:R},{avatarStackViewModel:_.K5}))}}),_.q(_.U,{cond:function(){return m().headline},
then:function(R){return _.q("h2",null,_.q(_.Jg,{text:R,className:"ytDialogHeaderViewModelText"}))}}))},"Vh");
sTu.idomCompat=!0;var Nbu=_.a(function(O){var m=_.eMN(function(){return O.data().formId}),G=m.submitForm,B=m.isValid;
return _.q("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.q(_.u5,{data:function(){return O.data().panelFooter}},{panelFooterViewModel:function(Q){return _.q(_.IX,{data:Q.data,
disablePadding:!0,disablePrimaryButton:function(){return!B()},
onClickPrimaryButton:function(){G()}})}}))},"Wh");var Phr=_.a(function(O){var m=function(){var G,B;return(B=(G=_.b(O.data().rendererContext,_.gD))==null?void 0:G.label)!=null?B:""};
return _.q("yt-dialog-image-content-view-model",{class:_.bE("ytDialogImageContentViewModelHost",O.className)},_.q(_.U,{cond:function(){return _.Dv(O.data().image)},
then:function(G){var B={};return _.q("div",{style:_.hH((B.width=(0,_.vZ)(function(){var Q;return(Q=O.data().imageMaxWidth)!=null?Q:""}),B)),
class:"ytDialogImageContentViewModelImage"},_.q(_.KH,{data:G,alt:m,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.q(_.Jg,{text:function(){return O.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Xh");var OAr=_.a(function(O){var m=_.ru(O,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),G=m.elRefCallback;O=m.iconWiz;var B=m.assetWiz,Q=m.assetType,H=m.titleWiz,M=m.leadingActionHeaderWiz,R=m.trailingActionHeaderWiz,x=m.headerPosition,t=m.contentWiz,W=m.buttonLayout,Z=m.buttonStyle,z=m.primaryButtonWiz,J=m.secondaryButtonWiz,n=m.contentAlignment,I=m.isFullscreen,S=m.width,L=m.maxHeight,C=m.isHeaderWizDefined,
P=m.headerWiz,w=m.isFooterWizDefined,d=m.footerWiz;m=_.Al("dialog-layout",function(oe){G==null||G(oe)});
var D=B?function(){return B({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,OS=z?function(){var oe={};
return z({buttonOverrides:function(){return{style:(Z==null?void 0:Z())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.bE((oe["yt-spec-dialog-layout__dialog-layout-button"]=!0,oe["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(W==null?void 0:W())===0||(W==null?void 0:W())===2},oe))})}:void 0,rN=J?function(){var oe={};
return J({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.bE((oe["yt-spec-dialog-layout__dialog-layout-button"]=!0,oe["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(W==null?void 0:W())===0||(W==null?void 0:W())===2},oe))})}:void 0,xO=function(){return(!!H||!!M||!!R)&&x()===0},XI={},Vf={},US={},CN={};
return _.q("dialog-layout",{el:m,class:_.bE((XI["yt-spec-dialog-layout"]=!0,XI["yt-spec-dialog-layout--dialog-layout-fullscreen"]=I,XI["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!I()},XI["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return L()===1},XI["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(Q==null?void 0:Q())===1},XI)),
style:function(){return(S==null?void 0:S())!==void 0?"width: "+S+"px;":""}},O?_.q("div",{class:_.bE((Vf["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Vf["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!B&&x()===1},Vf["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return n()===1},Vf))},_.q(O,null)):null,_.q(_.U,{cond:C,
then:function(){return P?_.q("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.q(P,null)):null},
else:function(){return _.q(_.Mr,null,_.q(_.U,{cond:xO,then:function(){return _.q(Fly,{contentAlignment:n,LeadingActionHeader:M,TrailingActionHeader:R,Title:H,isAboveAsset:!!D})}}),D?_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.q(D,null)):null)}}),_.q("div",{class:_.bE((US["yt-spec-dialog-layout__dialog-layout-container"]=!0,US["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(n==null?void 0:n())===1},US["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!H&&!(P&&C())||!!D&&(x==null?void 0:x())===0},US))},_.q(_.U,{cond:function(){return H&&!P&&(x==null?void 0:x())===1},
then:function(){return _.q(Fly,{contentAlignment:n,LeadingActionHeader:M,TrailingActionHeader:R,Title:H,isAboveAsset:!1})}}),t?_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.q(t,null))):null,_.q(_.U,{cond:w,
then:function(){return d?_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.q(d,null)):null}}),OS||rN?_.q(AO0,{footerClasses:_.bE((CN["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,CN["yt-spec-dialog-layout__dialog-layout-footer"]=!0,CN["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(W==null?void 0:W())===2},CN["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(W==null?void 0:W())===1},CN)),
PrimaryButton:OS,SecondaryButton:rN}):null))},"Yh"),Fly=_.a(function(O){var m=_.ru(O,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),G=m.contentAlignment,B=m.LeadingActionHeader;O=m.Title;var Q=m.TrailingActionHeader,H=m.isAboveAsset,M=m.enableLeadingActionHeader;m={};return _.q("div",{class:_.bE((m["yt-spec-dialog-layout__dialog-header-container"]=!0,m["yt-spec-dialog-layout__dialog-header"]=!0,m["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=H,m["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(G==null?void 0:G())===1&&M()},m))},_.q(_.U,{cond:function(){return M()},
then:function(){return B?_.q("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.q(B,null)):null}}),O?_.q("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.q(O,null)):null,Q?_.q("div",null,_.q(Q,null)):null)},"Zh"),AO0=_.a(function(O){var m=O.footerClasses;
var G=O.PrimaryButton;O=O.SecondaryButton;return _.q("div",{class:m},O?_.q(O,null):null,G?_.q(G,null):null)},"$h");var mgr=_.a(function(O){var m=O.data;return _.q("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.q("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.q(_.u5,{data:function(){return m().avatar}},{avatarViewModel:_.HP})),_.q("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.q(_.Jg,{text:function(){return m().title}})),_.q(_.Jg,{text:function(){return m().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"ai");var G8r=_.a(function(O){return _.q("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.q(_.Jg,{text:function(){return O.data().inviteMessage}})),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.q(_.Jg,{text:function(){return O.data().attributedAccountSectionHeaderText}})),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.q(_.u5,{data:function(){return O.data().accountAvatar}},{avatarViewModel:_.HP}),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.q(_.Jg,{text:function(){return O.data().accountName}}),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.q(_.Jg,{text:function(){return O.data().handle}}))),_.q(_.u5,{data:function(){return O.data().trailingButton}},{buttonViewModel:_.oF})),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.q(_.Jg,{text:function(){return O.data().termsOfService}})))},"bi");var BeA=_.a(function(O){var m=O.data;return _.q("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.q("div",{class:"ytAccessConfirmationViewModelContent"},_.q(_.u5,{data:function(){var G;return(G=m().avatar)!=null?G:m().dualAvatar}},{dualAvatarViewModel:function(G){return _.q(_.aE3,{data:G.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(G){return _.q(_.vP,{data:G.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.q("h2",{class:"ytAccessConfirmationViewModelTitle"},_.q(_.Jg,{text:function(){return m().title}})),_.q(_.Jg,{text:function(){return m().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"ci");var QN3=_.a(function(O){var m=O.data;var G=void 0;O=_.K(_.fH(function(){var t;return((t=_.b(m().content,_.Ot))==null?void 0:t.defaultSelectedKey)||""}));
var B=O.next().value,Q=O.next().value,H,M=function(){Q("");var t;(t=G)!=null&&t.store.dispatch(_.xs({type:"RESET_COMMAND_MAP"}))};
_.Ln(function(){G=new eFK;window.addEventListener("yt-popup-closed",M)});
_.ER(function(){if(G&&H!==m().formId&&(G.onInit(m()),(H=m().formId)&&B())){var t=G,W={key:B()};W.command&&t.store.dispatch(rRs(H,W.command))}},"c2n8Gf");
_.LS(function(){window.removeEventListener("yt-popup-closed",M)});
var R=function(t,W,Z){W.key&&Z&&W.key!==B()&&(Q(W.key),G&&W.command&&G.store.dispatch(rRs(Z,W.command)))},x=function(){if(_.b(m().content,_.Ot))return!(B==null?0:B())};
return _.q("yt-dialog-view-model",{class:_.bE("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.q(OAr,{headerWiz:function(){return _.q("span",{skip:!0},_.q(_.u5,{data:function(){return m().header}},{dialogHeaderViewModel:function(t){return _.q(sTu,{data:t.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!m().header},
contentWiz:function(){return _.q("span",{skip:!0},_.q(_.u5,{data:function(){return m().customContent?m().customContent:m().content}},{basicContentViewModel:_.YhJ,
createPlaylistDialogFormViewModel:a39,collaborativePlaylistInviteMessageViewModel:G8r,miniAppScoreChallengeViewModel:wAJ,radioButtonGroupViewModel:function(t){var W=t.data;return _.q(_.yJA,{data:W,selectedKey:B,onSelected:R,groupName:function(){return W().formId}})},
selectionListItemFormViewModel:Dq3,upsellViewModel:function(t){return _.q(dqB,{data:t.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:mgr,installmentAgreementsViewModel:l3h,accessConfirmationViewModel:BeA,listViewModel:function(t){return _.q(_.QB8,{data:t.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:Phr}))},
footerWiz:function(){return _.q("span",{skip:!0},_.q(_.u5,{data:function(){return m().footer}},{panelFooterViewModel:function(t){return _.q(_.IX,{data:t.data,
disablePadding:!0,disablePrimaryButton:x})},
formPanelFooterViewModel:Nbu,formFooterViewModel:function(t){return _.q(_.C_x,{data:t.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!m().footer}}))},"di");
QN3.idomCompat=!0;_.qi(QN3,"yt-dialog-view-model",{props:{data:_.VZ},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var HAB=_.a(function(O){var m=O.data;var G=_.i2I(function(){return m().rendererContext});
O={};return _.q("yt-panel-header-view-model",{class:_.bE("ytPanelHeaderViewModelHost",(O.ytPanelHeaderViewModelHostHideDivider=function(){return!!m().shouldHideDivider},O.ytPanelHeaderViewModelHostCompact=function(){return!!m().subtitle},O)),
"aria-label":function(){var B;return(B=G())==null?void 0:B.label}},_.q("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.q(_.U,{cond:function(){return m().title},
then:function(B){return _.q("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.q(_.Jg,{text:B,className:"ytPanelHeaderViewModelTitle"}))}}),_.q(_.U,{cond:function(){return m().subtitle},
then:function(B){return _.q(_.Jg,{text:B,className:"ytPanelHeaderViewModelSubtitle"})}})),_.q("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.q(_.u5,{data:function(){return m().trailingButtons}},{buttonViewModel:function(B){return _.q(_.oF,{data:B.data,
className:"ytPanelHeaderViewModelButton"})}})))},"ei");
HAB.idomCompat=!0;var vXr=_.a(function(O){var m=_.nH(function(H){var M;if((M=O.skipContentClick)==null?0:M.call(O))return!1;O.onContentWrapperClick(H);return!0}),G,B,Q;
return _.q("div",{class:_.bE("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return O.isAnimating()?"transform: translateY("+O.currentY()+"px);transition: 0.2s":""}},(G=O.header)==null?void 0:G.call(O),_.q("div",{id:O.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.hH({"max-height":(0,_.vZ)(O.maxHeightForContentWrapper)}),"on:scroll":fvs(O.onScroll),"on:touchmove":fvs(function(H){return void H.stopPropagation()})},_.q("div",{el:{onRender:O.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":m},(B=O.body)==null?void 0:B.call(O))),(Q=O.footer)==null?void 0:Q.call(O))},"fi");
vXr.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var K4s=_.a(function(O){var m=_.MN(O.leadingLabel),G=_.MN(O.trailingLabel),B=_.MN(O.footerButtonType),Q=function(){return m()||G()||O.hasPrimaryButton()||O.hasSecondaryButton()},H={},M=_.bE("yt-spec-bottom-sheet-layout__primary-button",(H["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return B()===0&&O.hasPrimaryButton()},H["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return B()===1&&O.hasPrimaryButton()},H["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return B()===2&&O.hasPrimaryButton()},H["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return B()===3&&O.hasPrimaryButton()},H));
H={};var R=_.bE("yt-spec-bottom-sheet-layout__secondary-button",(H["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return B()===1&&O.hasSecondaryButton()},H["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return B()===2&&O.hasSecondaryButton()},H["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return B()===3&&O.hasPrimaryButton()},H));
return _.q(_.U,{cond:O.hasFooterOverride,then:function(){var x;return _.q(_.Mr,null,(x=O.footerOverride)==null?void 0:x.call(O))},
else:function(){return _.q(_.U,{cond:Q,then:function(){return _.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.q(_.U,{cond:function(){return m()||G()},
then:function(){var x={};return _.q("div",{class:_.bE("yt-spec-bottom-sheet-layout__footer-label-wrapper",(x["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!O.hasPrimaryButton()},x))},_.q(_.U,{cond:m,
then:function(){return _.q("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},m)}}),_.q(_.U,{cond:G,
then:function(){return _.q("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},G)}}))}}),_.q(_.U,{cond:function(){return O.hasPrimaryButton()||O.hasSecondaryButton()},
then:function(){var x={};return _.q("div",{class:_.bE("yt-spec-bottom-sheet-layout__footer-button-wrapper",(x["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.dAC,x))},_.q(_.U,{cond:function(){return O.hasSecondaryButton()&&B()!==0},
then:function(){var t;return _.q("div",{class:R},(t=O.secondaryButton)==null?void 0:t.call(O))}}),_.q(_.U,{cond:O.hasPrimaryButton,
then:function(){var t;return _.q("div",{class:M},(t=O.primaryButton)==null?void 0:t.call(O))}}))}}))}})}})},"gi");
K4s.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var $g3=_.a(function(O){var m=_.MN(O.title),G=_.MN(O.subtitle);return _.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:O.headerId,"on:touchstart":_.nH(function(B){var Q;(Q=O.touchstart)==null||Q.call(O,B);return!1}),
"on:touchmove":_.nH(function(B){var Q;(Q=O.touchmove)==null||Q.call(O,B);return!1}),
"on:touchend":_.nH(function(B){var Q;(Q=O.touchend)==null||Q.call(O,B);return!1})},_.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.q(_.U,{cond:O.hasHeaderOverride,
then:function(){var B;return _.q(_.Mr,null,(B=O.headerOverride)==null?void 0:B.call(O))},
else:function(){var B={};return _.q("div",{class:_.bE((B["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,B["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=m,B))},_.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.q(_.U,{cond:m,then:function(){return _.q(_.Mr,null,_.q("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},m),_.q(_.U,{cond:G,then:function(){return _.q("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
G)}}))}})),_.q(_.U,{cond:function(){return m()&&O.hasActionHeader()},
then:function(){var Q;return _.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(Q=O.actionHeader)==null?void 0:Q.call(O))}}))}}))},"hi");
$g3.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.a(function(O){function m(D){if(!L&&typeof MutationObserver!=="undefined"){var OS={childList:!0};"MutationObserver"in window&&(L=new MutationObserver(G.bind(void 0,D)),L.observe(D,OS))}}
function G(D){typeof L!=="undefined"&&(C["content-wrapper"]===void 0&&(C["content-wrapper"]=D.children[0].clientHeight),J(C["content-wrapper"]),z()>n()||I(z()))}
function B(){Z(window.innerHeight);z()>n()||I(z());P.isFullScreen[0]()&&z()>n()?w().dispatch("Snap To Full Screen",{maxHeight:S()}):w().dispatch("Snap To Neutral Position",{maxHeight:n()})}
function Q(D){document.body.style.overscrollBehavior="none";D.preventDefault();w().dispatch("Touch Start",{event:D})}
function H(D){D.preventDefault();w().dispatch("Touch Move",{event:D,contentScrollable:z()>n(),fullContentWrapperHeight:S(),contentWrapperHeight:n(),contentHeightMap:C,contentWrapperId:"content-wrapper",header:TRB(O),footer:TRB(O)})}
function M(){document.body.style.overscrollBehavior="";P.isFullScreen[0]()?P.currentY[0]()>=60?w().dispatch("Snap To Neutral Position",{maxHeight:n()}):w().dispatch("Snap To Full Screen",{maxHeight:S()}):P.currentY[0]()>=60?R():P.currentY[0]()<=-60&&z()>n()?w().dispatch("Snap To Full Screen",{maxHeight:S()}):w().dispatch("Snap To Neutral Position",{maxHeight:n()})}
function R(){w().dispatch("Close Sheet",{clientHeight:W(),maxHeight:0});setTimeout(function(){hX9()},250)}
var x=_.K(_.Wf(window.innerHeight,void 0,"Q6Nekc")),t=x.next().value;x=x.next().value;var W=t,Z=x;x=_.K(_.Wf(0,void 0,"vjnlmb"));t=x.next().value;x=x.next().value;var z=t,J=x;x=_.K(_.fH(function(){var D=TRB(O);return.6*W()-bJr(D)-niB(D)}));
t=x.next().value;x=x.next().value;var n=t,I=x,S=function(){var D=TRB(O);return W()-bJr(D)-niB(D)-24-24},L=null,C={},P={initialY:_.Wf(0,void 0,"B0aY2c"),
currentY:_.Wf(0,void 0,"nLPMcf"),isAnimating:_.Wf(!1,void 0,"lXnnZ"),isFullScreen:_.Wf(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.fH(n)},w=function(){var D=null;return function(){if(!D){var OS={initialY:P.initialY[0](),currentY:P.currentY[0](),isAnimating:P.isAnimating[0](),isFullScreen:P.isFullScreen[0](),maxHeightForContentWrapper:P.maxHeightForContentWrapper[0]()};D=Xur(OS)}return D}}();
_.Ln(function(){window.addEventListener("resize",B);w().subscribe(function(D){P.initialY[1](D.initialY);P.currentY[1](D.currentY);P.isAnimating[1](D.isAnimating);P.isFullScreen[1](D.isFullScreen);P.maxHeightForContentWrapper[1](D.maxHeightForContentWrapper)})});
_.LS(function(){window.removeEventListener("resize",B);L&&(L.disconnect(),L=null)});
var d=_.bE({"bottom-sheet-content-without-icon":function(){var D;return!((D=O.shouldShowIcons)==null?0:D.call(O))}});
return _.q("bottom-sheet-layout",null,_.q(vXr,{contentWrapperId:"content-wrapper",isAnimating:function(){return P.isAnimating[0]()},
currentY:function(){return P.currentY[0]()},
maxHeightForContentWrapper:function(){return P.maxHeightForContentWrapper[0]()},
shouldShowIcons:O.shouldShowIcons,skipContentClick:O.skipContentClick,onScroll:function(){var D=document.getElementById("header-wrapper"),OS=document.getElementById("content-wrapper");if(D&&OS){var rN={};rN=(rN["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,rN["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,rN);D.className=OS.scrollTop>1?_.CJ(rN):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:hX9,contentWrapperEl:function(D){m(D);requestAnimationFrame(function(){G(D)})},
header:function(){return _.q($g3,{touchstart:Q,touchmove:H,touchend:M,title:O.headerTitle,subtitle:O.headerSubtitle,headerId:"header-wrapper",headerOverride:O.headerFn,hasHeaderOverride:O.hasHeaderFn,actionHeader:O.headerActionHeader,hasActionHeader:O.hasHeaderActionHeader})},
footer:function(){return _.q(K4s,{footerButtonType:O.footerButtonType,leadingLabel:O.footerLeadingLabel,trailingLabel:O.footerTrailingLabel,primaryButton:O.footerPrimaryButton,hasPrimaryButton:O.hasFooterPrimaryButton,secondaryButton:O.footerSecondaryButton,hasSecondaryButton:O.hasFooterSecondaryButton,footerOverride:O.footerFn,hasFooterOverride:O.hasFooterFn})},
body:function(){return _.q(_.U,{cond:O.hasContentFn,then:function(){var D;return _.q("div",{class:d},(D=O.contentFn)==null?void 0:D.call(O))}})}}))},"ii").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var MDr=_.a(function(O){var m=_.KR().resolve(_.O5);return _.q("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.nH(function(){return void m.closeSheet()})},_.q(_.U,{cond:function(){return!!O.header},
then:function(){return _.q("div",{class:"ytContextualSheetLayoutHeaderContainer"},O.header())}}),_.q(_.U,{cond:function(){return!!O.content},
then:function(){return _.q("div",{class:"ytContextualSheetLayoutContentContainer"},O.content())}}),_.q(_.U,{cond:function(){return!!O.footer},
then:function(){return _.q("div",{class:"ytContextualSheetLayoutFooterContainer"},O.footer())}}))},"ji");
MDr.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var r7r=_.a(function(O){O=O.data;var m=_.Al("yt-sheet-view-model",function(B){if(_.V("web_focus_first_element_sheet")||!_.V("sheet_focus_first_killswitch"))return B.addEventListener("focus",function(){WZ0(B)}),function(){B.removeEventListener("focus",function(){WZ0(B)})}}),G={};
return _.q("yt-sheet-view-model",{"on:mousedown":_.nH(function(B){_.V("sheet_focus_first_killswitch")||B.currentTarget!==B.target&&B.preventDefault()}),
"on:focus":_.nH(function(){_.V("sheet_focus_first_killswitch")||WZ0(m.value)}),
class:_.bE("ytSheetViewModelHost",(G.ytSheetViewModelContextual=!0,G.ytSheetViewModelDisableBackdropFilter=_.V("web_disable_backdrop_filter"),G)),el:m,tabindex:-1},_.q(_.U,{cond:O,then:function(B){return _.q(MDr,{header:function(){return _.q(_.u5,{data:function(){return B().header}},{panelHeaderViewModel:HAB})},
content:function(){return _.q(_.u5,{data:function(){return B().content}},{listViewModel:function(Q){return _.q(_.QB8,{data:Q.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:dqB,miniAppScoreChallengeViewModel:wAJ})},
footer:function(){return _.q(_.u5,{data:function(){return B().footer}},{panelFooterViewModel:_.IX})}})}}))},"ki");
r7r.idomCompat=!0;_.qi(r7r,"yt-sheet-view-model",{props:{data:_.VZ}});var iA9=_.a(function(O){var m=function(){var G;return(G=O.data().enableDebuggingFeatures)!=null?G:!1};
return _.q("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.q(_.gi,{each:function(){var G;return(G=O.data().stickers)!=null?G:[]}},function(G){return _.q(RwJ,{data:function(){return G},
debugMode:m})}))},"li"),RwJ=_.a(function(O){var m=_.ru(O,{debugMode:!1}).debugMode,G=_.MN(function(){var x;
return(x=O.data().region)==null?void 0:x.w},0),B=_.MN(function(){var x;
return(x=O.data().region)==null?void 0:x.h},0),Q=_.MN(function(){var x;
return(x=O.data().region)==null?void 0:x.x},0),H=_.MN(function(){var x;
return(x=O.data().region)==null?void 0:x.y},0),M=_.nH(function(){var x=O.data().onTap;
x&&_.PE(x)}),R={};
return _.q("div",{class:_.bE("ytStoriesStickerLayerViewModelSticker",(R.ytStoriesStickerLayerViewModelDebugMode=m,R)),style:_.hH({width:function(){return 100*G()+"%"},
height:function(){return 100*B()+"%"},
left:function(){return 100*Q()+"%"},
top:function(){return 100*H()+"%"},
"flex-direction":function(){return giB(O.data().flexDirection)},
"justify-content":function(){return u4u(O.data().justifyContent)},
"align-items":function(){return j_K(O.data().alignItems)}}),
"on:click":M},_.q(_.u5,{data:function(){return O.data().button||O.data().toggleButton}},{buttonViewModel:function(x){return _.q(_.oF,{data:x.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(x){return _.q(_.BT,{data:x.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"mi");var qns=_.a(function(O){var m=function(){return O.data()},G={},B=_.MN(function(){return m().backgroundColor},0),Q=_.MN(function(){return m().actionButtons},[]),H=_.MN(function(){return m().stickerLayer},{}),M=function(){var x,t;
return{animationRef:G,animationConfig:{autoplay:!1,loop:!1,path:(t=(x=m().foregroundAnimation)==null?void 0:x.url)!=null?t:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){O.navigateToNextItemOnLottieComplete()}}}},R=function(){var x,t,W,Z,z,J,n,I;
return{animationConfig:{autoplay:(J=(x=m().backgroundAnimation)==null?void 0:(t=x.settings)==null?void 0:t.autoplay)!=null?J:!1,loop:(n=(W=m().backgroundAnimation)==null?void 0:(Z=W.settings)==null?void 0:Z.loop)!=null?n:!1,path:(I=(z=m().backgroundAnimation)==null?void 0:z.url)!=null?I:"",name:"stories_item_background_animation"}}};
_.ER(function(){if(O.isVisible()){var x;(x=G.lottieEl)==null||x.play();O.animationRef()&&(O.animationRef().lottieEl=G.lottieEl)}else{var t;(t=G.lottieEl)==null||t.stop()}},"AvUgVe");
return _.q("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.hH({"background-color":function(){return _.AV(B())+";"}})},_.q("div",{class:"ytStoriesItemViewModelAssetContent"},_.q(_.U,{cond:function(){return!!m().backgroundAnimation},
then:function(){return _.q(_.Yo,{data:R,animationName:function(){return R().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.q(_.U,{cond:function(){return!!m().backgroundImage},
then:function(){return _.q(_.KH,{data:function(){return m().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.q(_.U,{cond:function(){return!!m().foregroundAnimation},
then:function(){return _.q(_.Yo,{data:M,animationName:function(){return M().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.q(_.U,{cond:function(){return!!m().foregroundImage},
then:function(){return _.q(_.KH,{data:function(){return m().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.q("div",{class:"ytStoriesItemViewModelTopShadow"}),_.q(_.u5,{data:function(){return H()}},{storiesStickerLayerViewModel:iA9})),_.q("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.hH({"background-color":function(){return _.AV(B())}})},_.q("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.q(_.gi,{each:Q},function(x){return _.q(xgb,{data:function(){return x},
pauseAutoNavigation:O.pauseAutoNavigation})}))))},"ni"),Ugh={style:"overlay",
type:"outline"},xgb=_.a(function(O){var m={};return _.q("div",{class:_.bE("ytStoriesItemViewModelActionButton",(m.ytStoriesItemViewModelStretchedActionButton=function(){return O.data().size==="STORIES_BUTTON_SIZE_STRETCH"},m)),
"on:click":_.nH(O.pauseAutoNavigation)},_.q(_.u5,{data:function(){return O.data().button}},{buttonViewModel:function(G){return _.q(_.oF,{data:G.data,
buttonOverrides:Ugh})}}))},"oi");_.qi(_.a(function(O){var m=function(){var Vf;return(Vf=O.data().startIndex)!=null?Vf:0},G=_.K(_.fH(m)),B=G.next().value,Q=G.next().value;
G=_.K(_.Wf(!1,void 0,"PXfG3d"));var H=G.next().value,M=G.next().value,R=function(){var Vf;return(Vf=O.data().storyItems)!=null?Vf:[]},x={},t=_.Al("yt-stories-viewer-view-model"),W=function(){return O.data().dismissButton},Z=function(){var Vf;
return _.eg((Vf=_.b(W(),_.rc))==null?void 0:Vf.onTap)},z=_.Al("div"),J,n,I=!1,S=function(){var Vf;
(Vf=J)==null||Vf.cancel();J=L(B()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});J.onfinish=function(){var US=_.b(R()[B()],Tts),CN,oe;US!=null&&US.foregroundAnimation&&((US==null?0:(CN=US.foregroundAnimation)==null?0:CN.url)||(US==null?0:(oe=US.foregroundAnimation)==null?0:oe.payload))||(B()!==R().length-1?(Q(B()+1),S()):Z()&&_.DB(Z()))}},L=function(Vf){return z.value.children[Vf].children[0]},C=function(){for(var Vf=0;Vf<B();Vf++)L(Vf).style.transform=
"scaleX(1)"},P=function(){I||(H()?M(!1):(B()===R().length-1&&Z()&&_.DB(Z()),L(B()).style.transform="scaleX(1)",B()!==R().length-1&&(Q(B()+1),S())))},w=function(){I||(H()?M(!1):(L(B()).style.transform="scaleX(0)",B()!==0&&Q(B()-1),S()))},d=function(){M(!0)},D=function(){L(B()).style.transform="scaleX(1)";
B()!==R().length-1?(Q(B()+1),S()):Z()&&_.DB(Z())};
G=function(){I=!1;n=setTimeout(function(){M(!0);I=!0},300)};
var OS=function(){clearTimeout(n);I&&H()&&M(!1)};
_.ER(function(){if(H()){var Vf;(Vf=J)==null||Vf.pause();var US;(US=x.lottieEl)==null||US.pause()}else{var CN;(CN=J)==null||CN.play();var oe;(oe=x.lottieEl)==null||oe.play()}},"q47fR");
_.ER(function(){C();B()===m()&&S()},"ydZxlf");
var rN=function(Vf){Vf.key==="ArrowLeft"?w():Vf.key==="ArrowRight"&&P()},xO=function(Vf){if(Vf.target===t.value){(Vf=Z())&&_.DB(Vf);
clearTimeout(n);var US;(US=J)==null||US.cancel();window.removeEventListener("keydown",rN);window.removeEventListener("yt-popup-closed",xO)}},XI=function(Vf){Vf.target===t.value&&(window.addEventListener("keydown",rN),window.addEventListener("yt-popup-closed",xO))};
_.Ln(function(){C();S();window.addEventListener("yt-popup-opened",XI)});
return _.q("yt-stories-viewer-view-model",{el:t,class:_.bE("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.q("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.q("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.nH(w),"on:mousedown":_.nH(G),"on:mouseup":_.nH(OS),"on:mouseleave":_.nH(OS)}),_.q("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.nH(P),"on:mousedown":_.nH(G),"on:mouseup":_.nH(OS),"on:mouseleave":_.nH(OS)})),
_.q("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.q(_.u5,{data:R},{storiesItemViewModel:function(Vf,US){var CN=Vf.data;return _.q(_.U,{cond:function(){return Math.abs(US()-B())<=1},
then:function(){var oe={};return _.q("div",{class:_.bE("ytStoriesViewerViewModelStoryItem",(oe.ytStoriesViewerViewModelActiveStoryItem=function(){return US()===B()},oe))},_.q(qns,{data:CN,
pauseAutoNavigation:d,navigateToNextItemOnLottieComplete:D,isVisible:function(){return US()===B()},
animationRef:x}))}})}})),_.q("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:z},_.q(_.gi,{each:R},function(){return _.q("div",{class:"ytStoriesViewerViewModelProgressBar"},_.q("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.q("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.q(_.u5,{data:W},{buttonViewModel:_.oF})))},"pi"),"yt-stories-viewer-view-model",{props:{data:_.VZ}});_.qi(_.a(function(O){var m=O.data;var G=_.Al("yt-gen-ai-feedback-form-view-model"),B=[];return _.q("yt-gen-ai-feedback-form-view-model",{el:G,class:"ytGenAiFeedbackFormViewModelHost"},_.q(_.Jg,{text:function(){return m().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.q("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.q(_.u5,{data:function(){return m().feedbackChips}},{toggleButtonViewModel:function(Q){var H=Q.data;
return _.q(_.BT,{data:H,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(M){var R=H();R=_.b(R,_.iR);R=_.b(R==null?void 0:R.defaultButtonViewModel,_.rc).trackingParams;M?B.push(R):(M=B.indexOf(R),M>-1&&B.splice(M,1))}})}})),_.q(_.Jg,{text:function(){return m().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.q("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.q(_.u5,{data:function(){return m().submitButton}},{buttonViewModel:function(Q){return _.q(_.oF,{data:Q.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Ivr(G.value,B,m().uniqueId)}})}}),_.q(_.u5,{data:function(){return m().moreFeedbackButton}},{buttonViewModel:function(Q){return _.q(_.oF,{data:Q.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"qi"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.VZ},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var WJ=function(){return _.u.apply(this,arguments)||this};
_.X(WJ,_.u);WJ.prototype.created=function(){r8B(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(gS9);var O=_.KR().resolve(_.Z9A);O&&(O.container=this.ytPopupContainerBehavior);if(O=_.KR().resolve(_.O5))O.container=this.ytPopupContainerBehavior;if(O=_.KR().resolve(_.mc)){var m=this.ytPopupContainerBehavior;O.containerWasInjected?_.ay(Error("mj")):O.container=m}};
WJ.prototype.ensurePopupBelowPlayer=function(O,m){var G=_.KR().resolve(_.v7(_.KJ));if(!G||!G.isOnWatch()||!_.M1())return!1;G=G.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Ih().height>G+this.getPopupHeight(O,m)?(O.style.top="auto",O.style.bottom="0px"):(O.style.top=G+"px",O.style.bottom="auto");return!0};
WJ.prototype.getPopupHeight=function(O,m){m&&(O.cachedPopupHeight=0);if(!O.cachedPopupHeight){m=0;var G=O.clientHeight,B=window.getComputedStyle(O);m+=parseInt(B.marginTop,10);m+=parseInt(B.marginBottom,10);O.cachedPopupHeight=G+m}return O.cachedPopupHeight};
WJ.prototype.getElement=function(O){return document.createElement(O)};
_.c([_.h(GI3.YtPopupContainerBehavior),_.Y("design:type",Object)],WJ.prototype,"ytPopupContainerBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],WJ.prototype,"ytComponentBehavior",void 0);_.c([_.l({disableElementRegistration:!0,is:"ytd-popup-container"})],WJ);
_.y(WJ,"ytd-popup-container",function(){if(egx!==void 0)return egx;var O=document.createElement("template");_.f(O,"\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");O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);return egx=O},{mode:1});var tD0;var W4K={};W4K.YtLogYpcFlowCommandsBehavior=[_.cg.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(O){_.b(O,wTy)&&(O=_.b(O,wTy))&&(O.serializedTransactionFlowLoggingParams?_.Gar(O.serializedTransactionFlowLoggingParams):O.serializedYpcCancelFlowLoggingParams?(O=O.serializedYpcCancelFlowLoggingParams)&&_.J2("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",O):O.serializedYpcResumeFlowLoggingParams?(O=O.serializedYpcResumeFlowLoggingParams)&&_.J2("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",O):O.serializedYpcPauseFlowLoggingParams?(O=O.serializedYpcPauseFlowLoggingParams)&&
_.J2("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",O):O.serializedYpcRefundFlowLoggingParams?(O=O.serializedYpcRefundFlowLoggingParams)&&Doh("YPC_EVENT_TYPE_START",O):O.serializedYpcDeactivateFlowLoggingParams?(O=O.serializedYpcDeactivateFlowLoggingParams)&&_.J2("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",O):O.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(O=O.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.J2("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",O))},
handleLogYpcFlowDismiss_:function(O){_.b(O,ddA)&&(O=_.b(O,ddA),O.serializedTransactionFlowLoggingParams?_.BON(O.serializedTransactionFlowLoggingParams):O.serializedYpcCancelFlowLoggingParams?(O=O.serializedYpcCancelFlowLoggingParams)&&_.J2("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",O):O.serializedYpcResumeFlowLoggingParams?(O=O.serializedYpcResumeFlowLoggingParams)&&_.J2("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",O):O.serializedYpcPauseFlowLoggingParams?(O=
O.serializedYpcPauseFlowLoggingParams)&&_.J2("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",O):O.serializedYpcRefundFlowLoggingParams&&(O=O.serializedYpcRefundFlowLoggingParams)&&Doh("YPC_EVENT_TYPE_CANCEL",O))}}];var ZAr={};ZAr.YtCancelRecurrenceBehavior=[_.xo.YtComponentBehavior,_.C1s,{attached:function(){var O=this;evB(this,function(m,G){return O.ypcCancelRecurrenceHandler(m,G)})},
ypcCancelRecurrenceHandler:function(O,m){var G=this;if(!m||!m.ypcCancelRecurrenceEndpoint)return!1;if(!m.ypcCancelRecurrenceEndpoint.params)return _.di(Error("Ml")),!0;_.dD(this.hostElement);var B=_.Fw.instance,Q=_.KR().resolve(_.v7(_.ew));B&&_.AH(B,m)?_.Ov(B,m).then(function(H){G.ypcCancelRecurrenceSuccess_(O,m,{data:H})},function(H){G.ypcCancelRecurrenceFailure_(O,m,H)}).thenCatch(function(){_.di(Error("Nl"))}):Q?Q.requestDataForServiceEndpoint(m).then(function(H){G.ypcCancelRecurrenceSuccess_(O,
m,H)},function(H){G.ypcCancelRecurrenceFailure_(O,m,H)}).thenCatch(function(){_.di(Error("Nl"))}):_.di(Error("Ol"));
return!0},
ypcCancelRecurrenceSuccess_:function(O,m,G){_.wD(this.hostElement);G.data||(G={data:G});G.data&&G.data.actions&&_.Wd(this.hostElement,G.data.actions,this.hostElement);G.data.messageRenderer?Nvx(m.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(m=m.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.J2("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",m);_.iP(O,"yt-service-request-completed",G)},
ypcCancelRecurrenceFailure_:function(O,m,G){_.wD(this.hostElement);Nvx(m.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.iP(O,"yt-service-request-error",{error:G,params:[O,m]})}}];var zw0=function(O,m){_.GY.call(this,m)};
_.X(zw0,b4B);var J7J={};J7J.YtCompleteTransactionBehavior=[_.xo.YtComponentBehavior,_.C1s,{attached:function(){var O=this;evB(this,function(m,G){return O.ypcCompleteTransactionHandler(m,G)})},
completeTransaction:function(O,m){var G=this;m={payments_payload:window.btoa(m.integratorData),buybucket_params:O.data.buybucketParams,offer_params:O.data.offerParams};var B=_.KR().resolve(_.ew),Q=O.data.completeTransactionEndpoint,H=this.get("ypcCompleteTransactionEndpoint.actions",Q);H&&_.Wd(this.hostElement,H,this.hostElement);return(H=_.Fw.instance)&&_.AH(H,Q)?_.Ov(H,Q,m).then(function(M){return!M||(M==null?0:M.error)?(M=G.get("data.serializedTransactionFlowLoggingParams",O),_.lK(new $$("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
M))):{data:M}}).then(function(M){return G.handleCompleteTransactionSuccess_(M,O)},function(){return G.handleCompleteTransactionFailure_(O)}):B.requestDataForServiceEndpoint(Q,m).then(function(M){return G.handleCompleteTransactionSuccess_(M,O)},function(){return G.handleCompleteTransactionFailure_(O)})},
handleCompleteTransactionSuccess_:function(O,m){O.data||(O={data:O});if(O.data.messageRenderer)return _.lK(new zw0(O.data.messageRenderer));if(O.data.trackingParams){var G=_.yA(),B=_.kf();G&&B&&_.Pd(G,B,_.Ez(O.data.trackingParams))}m=this.get("data.serializedTransactionFlowLoggingParams",m);sQ0(m);return _.ZY(O)},
handleCompleteTransactionFailure_:function(O){O=this.get("data.serializedTransactionFlowLoggingParams",O);_.vC("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",O);return _.lK(new $$("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",O))},
ypcCompleteTransactionHandler:function(O,m){var G=this;if(!m.ypcCompleteTransactionEndpoint)return!1;if(!m.ypcCompleteTransactionEndpoint.transactionParams)return _.di(Error("Pl")),!0;m.ypcCompleteTransactionEndpoint&&m.ypcCompleteTransactionEndpoint.gtmData&&_.Gh(m.ypcCompleteTransactionEndpoint.gtmData);var B=_.KR().resolve(_.v7(_.ew));if(B){_.dD(this.hostElement);var Q=_.Fw.instance;Q&&_.AH(Q,m)?_.Ov(Q,m).then(function(H){return!H||(H==null?0:H.error)?(H=G.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
m),_.lK(new $$("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",H))):{data:H}}).then(function(H){_.iP(O,"yt-service-request-completed");
G.ypcCompleteTransactionSuccess_(m,H)},function(){return G.ypcCompleteTransactionFailure_(m)}):B.requestDataForServiceEndpoint(m).then(function(H){_.iP(O,"yt-service-request-completed");
G.ypcCompleteTransactionSuccess_(m,H)},function(){return G.ypcCompleteTransactionFailure_(m)})}return!0},
ypcCompleteTransactionSuccess_:function(O,m){_.wD(this.hostElement);m.data||(m={data:m});_.xc(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);m.data.messageRenderer||m.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(O):(_.Gh('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",O));m.data.actions&&(O=fwr(m.data.actions),m=h$A(m.data.actions),O.length&&_.tK(this.hostElement,
O),m.length&&_.Wd(this.hostElement,m,this.hostElement))},
ypcCompleteTransactionFailure_:function(O){_.wD(this.hostElement);_.xc(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",O,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(O,m,G){if(m=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",m))m={serializedTransactionFlowLoggingParams:m},G&&(m.errorType=G),_.LE(O,m),_.CE()}}];var VD0={};VD0.YtEndpointHandlerWithYpcBehavior=[_.C1s,_.cg.YtActionHandlerBehavior,[{openWalletDialog:function(O,m,G,B,Q,H,M){var R=this,x=_.m3();m=m.replace(/-/g,"+").replace(/_/g,"/");var t=_.TC().get("hl");_.O0z(_.Q4(_.K7),m,x.resolve,Q,function(W){H&&H();x.reject(W)},t,function(W){return R.onServerBackendAnalyticEvent_(O,G,W)},this.onDialogClose_.bind(this),B,M);
return x.promise},
openFixFlowDialog:function(O,m,G,B){O=O.replace(/-/g,"+").replace(/_/g,"/");_.Q4(_.K7).openFixFlowDialog(O,m,G,B)},
onDialogClose_:function(){_.xc(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(O,m,G){_.iP(O,"yt-commerce-action-init-done");m&&_.tK(this.hostElement,[m,{backend_analytics:G}])}}],
_.ko.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(O,m){O=this.get("data.nativeFlowEndpoint",m);m=this.get("data.fallbackEndpoint",m);O?_.tK(this.hostElement,[O]):m&&_.iP(this.hostElement,"yt-navigate",{endpoint:m})}}],
ZAr.YtCancelRecurrenceBehavior,J7J.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 O=this;evB(this,function(m,G,B){return O.handleYPCEndpoint(m,G,B)});
this.ypcRegisterActionMapJobId_=_.uT(_.ln,function(){O.registerActionMap(O.buyFlowActionMap_)})},
detached:function(){var O=this;_.ln.cancelJob(this.ypcRegisterActionMapJobId_);_.uT(_.ln,function(){O.unregisterActionMap(O.buyFlowActionMap_)})},
handleYPCEndpoint:function(O,m,G){var B=m.ypcGetCartEndpoint;if(B){_.ys("commerce_transaction");var Q=B.gtmId;Q&&_.m2(Q);(B=B.gtmData)&&_.Gh(B)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",m)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(O,m),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",m)!=null?(this.handleYPCFixInstrumentEndpoint_(O,m),!0):m.ypcPauseSubscriptionCommand?(kM0(this.hostElement,O,m,G),
!0):m.ypcResumeSubscriptionCommand?(YvB(this.hostElement,O,m),!0):m.getPaymentInstrumentsParamsCommand?(oiy(this.hostElement,O,m),!0):m.ypcHandleTransactionEndpoint?(L3y(this.hostElement,O,m,G),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(O,m){var G=this;_.cd("ttcr",void 0,"commerce_transaction");m=m.ypcGetCartEndpoint;var B=m.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,Q=B.encryptedPurchaseParams,H=B.serializedTransactionFlowLoggingParams,M=B.serializedPaymentsClientParams,R=this.createGetCartResponseFromParams_(B,m.offerParams,H);this.changeButtonState(O,!0);_.a7(this.openWalletDialog(O,Q,B.ypcLogWalletAnalyticDataEndpoint,H,function(){G.changeButtonState(O,!1)},function(){G.changeButtonState(O,
!1)},M).then(function(x){return G.handleBuyFlowCompleteCallback_(O,R,x)},function(){return G.handleOnLoadError(R)}).then(function(x){return void G.handlePostPurchaseSuccess_(O,R,x)},function(x){return void G.handlePostPurchaseError_(x)}),function(){G.changeButtonState(O,!1);
O instanceof Element&&_.iP(O,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(O,m,G){var B=O.completeTransactionEndpoint,Q=O.handleTransactionEndpoint;m={data:{offerParams:window.btoa(m),serializedTransactionFlowLoggingParams:G}};Q?m.data.handleTransactionEndpoint=Q:m.data.completeTransactionEndpoint=B;O.onCartDismissCommand&&(m.data.onCartDismissCommand=O.onCartDismissCommand);return m},
onGetCartServiceRequestCompleted_:function(O,m){var G=this,B=O.target;if(m&&m.data&&m.data.messageRenderer)_.wD(this.hostElement),this.handleMessageRenderer_(m.data.messageRenderer),this.changeButtonState(B,!1);else{var Q=this.get("data.encryptedPurchaseParams",m),H=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",m),M=this.get("data.ypcLogWalletAnalyticDataEndpoint",m),R=this.get("data.serializedPaymentsClientParams",m),x=this.getLoggingParams_(m);if(x||Q||H)O.stopPropagation(),_.cd("ttcr",
void 0,"commerce_transaction"),Q||_.wD(this.hostElement),this.changeButtonState(B,!1),H?_.xc(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.kB("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:H}}},this]):Q&&(this.changeButtonState(B,!0),O=null,O=this.openWalletDialog(B,Q,M,x,function(){_.wD(G.hostElement);G.changeButtonState(B,!1)},function(){_.wD(G.hostElement);
G.changeButtonState(B,!1)},R),_.a7(O.then(function(t){return G.handleBuyFlowCompleteCallback_(B,m,t)},function(){return G.handleOnLoadError(m)}).then(function(t){return G.handlePostPurchaseSuccess_(B,m,t)},function(t){return G.handlePostPurchaseError_(t)}),function(){G.changeButtonState(B,!1);
_.iP(B,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(O,m){m&&m.endpoint&&m.endpoint.ypcGetCartEndpoint&&!m.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",m.endpoint.ypcGetCartEndpoint)&&_.Wd(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",m.endpoint.ypcGetCartEndpoint)],O.target),_.dD(this.hostElement),this.changeButtonState(O.target,!0))},
onServiceRequestError_:function(O,m){if(m&&m.params&&m.params.length){m=_.K(m.params);for(var G=m.next();!G.done;G=m.next())if((G=G.value)&&G.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",G.ypcGetCartEndpoint)&&_.Wd(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",G.ypcGetCartEndpoint)],O.target);_.wD(this.hostElement);this.changeButtonState(O.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(O,m,G){var B=G.integratorData;return B==null||B===""||G.error!=null?(B=this.getLoggingParams_(m),String(G.error)==="-1"?(m.data.onCartDismissCommand&&_.Wd(this.hostElement,[m.data.onCartDismissCommand],O),_.lK(new $$("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",B,!0))):_.lK(new $$("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",B))):m.data.handleTransactionEndpoint?C5o(this.hostElement,m.data.handleTransactionEndpoint,{payments_payload:B,funds_guarantee_callback_client_data:G.integratorClientCallbackData}):
this.completeTransaction(m,G)},
handlePostPurchaseSuccess_:function(O,m,G){m=G.data;var B=!1,Q,H;if(m&&((Q=m.command)==null?0:(H=Q.commandExecutorCommand)==null?0:H.commands)){var M,R;Q=(M=m.command)==null?void 0:(R=M.commandExecutorCommand)==null?void 0:R.commands;for(M=0;M<Q.length;M++)if(_.b(Q[M],_.V68)){B=!0;break}}B||(m&&m.gtmDatas&&m.gtmDatas.length?_.Gh(m.gtmDatas[0]):_.Gh('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));G.data&&G.data.actions&&(m=fwr(G.data.actions),G=h$A(G.data.actions),m.length&&
_.tK(this.hostElement,m),G.length&&_.Wd(this.hostElement,G,O))},
handlePostPurchaseError_:function(O){O&&O.payload&&O.payload.isUserDismiss||_.oy(Error("Rl"))},
handleOnLoadError:function(O){O=this.getLoggingParams_(O);return _.lK(new $$("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",O))},
getLoggingParams_:function(O){return this.get("data.serializedTransactionFlowLoggingParams",O)},
handleMessageRenderer_:function(O){var m=_.o8(O,"renderer"),G=_.kB("openPopupConfig");m==="confirmDialogRenderer"&&G&&_.xc(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:G.popupTypeMap[m],popup:O}},this])},
handleYPCFixInstrumentEndpoint_:function(O,m){var G=this,B=m.ypcFixInstrumentEndpoint;m=B.encryptedFixInstrumentParameters;this.logFixFopEvent_(B,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(O,!0);this.openFixFlowDialog(m,function(Q,H){G.onFixFlowCompleteCallback_(B,Q,H)},function(){return G.changeButtonState(O,!1)},function(){G.changeButtonState(O,!1);
G.logFixFopEvent_(B,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(O,m,G){var B=_.ex("payments.business.integration.scenario.FixInstrument");if(m==B.IntegratorCallbackType.ON_COMPLETE){m="FIX_FOP_EVENT_TYPE_CANCEL";var Q=null;G.error!=null?G.error!=B.OnCompleteCallbackError.USER_CANCELLED&&(_.Wd(this.hostElement,[O.errorAction],this.hostElement),m="FIX_FOP_EVENT_TYPE_FAILURE",Q="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Wd(this.hostElement,[O.successAction],this.hostElement),m="FIX_FOP_EVENT_TYPE_SUCCESS");_.Wd(this.hostElement,[O.onFinishAction],
this.hostElement);this.logFixFopEvent_(O,m,Q)}},
logFixFopEvent_:function(O,m,G){(O=O.serializedFixFopLoggingParams)?(m={eventType:m,serializedFixFopLoggingParams:O},G!=null&&(m.errorType=G),_.LE("fixFopFlow",m),_.CE()):_.oy(Error("Sl"))},
changeButtonState:function(O,m){_.V("enable_ypc_spinners")&&O&&(O.is==="yt-button-renderer"||O.is==="ytd-button-renderer")&&(O.disabled=m)}}];var bA3=function(O){this.JSC$32392_clientRoot=O;this.feedbackCollectorActionMap={"yt-help-dialog-requested":wuy,"yt-feedback-dialog-requested":d1h,"yt-signal-action-help":eXb,"yt-signal-action-send-feedback":D1B,"yt-send-feedback-action":NRx,"yt-user-feedback-endpoint":P5y};_.NT(_.sJ.getInstance(),this.feedbackCollectorActionMap,this.JSC$32392_clientRoot)},nX3;var X0B=function(O){this.JSC$32397_clientRoot=O;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":F3u.bind(null,this.JSC$32397_clientRoot),"yt-signal-action-delete-all-downloads":Ozs,"yt-signal-action-delete-download":mkr,"yt-signal-action-delete-playlist-download":BDr,"yt-signal-action-install-pwa":Mlr,"yt-signal-action-refresh-downloads":KHA,"yt-offline-video-endpoint":RCK,"yt-offline-playlist-endpoint":xkB,"yt-update-local-app-setting-command":Uko,"yt-offline-orchestration-action-command":WHA,
"yt-signal-action-undo-delete-download":Hzs,"yt-local-watch-history-command":JIu};_.NT(_.sJ.getInstance(),this.downloadManagerActionMap,this.JSC$32397_clientRoot);_.ah.instance=new _.ah},f6r;var Z0=function(){var O=_.u.apply(this,arguments)||this;O.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_"};O.remoteApi_=null;return O};
_.X(Z0,_.u);_.v=Z0.prototype;
_.v.ready=function(){_.V("polymer_enable_mdx")&&(QZr({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.V("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.V("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.V("enable_cast_short_lived_lounge_token")}),_.xt("yt-remote-connection-change",this.handleConnectionChange_,this),_.xt("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=iHs())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.v.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.v.handleConnectionChange_=function(O){(this.mdxConnected=O)?(O=Kw9(),!O&&dNr()&&wE0()&&(O={key:"cast-selector-receiver",name:wE0()}),O=O.name):O=null;this.receiverName=O;_.Kd(this.remoteApi_);(this.remoteApi_=iHs())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.v.handleReceiverAvailabilityChange_=function(){var O=vg9();dNr()&&_.YH("yt-remote-cast-available")&&O.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=O.length>0};
_.v.handleRemoteQueueChange_=function(){var O=this.currentVideoId_,m=this.currentListId_,G=rn(this.remoteApi_);this.currentVideoId_=G.videoId;this.currentListId_=G.listId;this.currentVideoId_&&_.xc(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.V("polymer_enable_mdx_queue")?this.currentListId_:null,O,m])};
_.v.handleAddToQueueAction_=function(O){O=_.b(O,gk0);this.remoteApi_&&(O.videoId?this.remoteApi_.addVideo(O.videoId):O.playlistId&&this.remoteApi_.addPlaylist(O.playlistId))};
_.v.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.v.handleInsertInQueueAction_=function(O){O=_.b(O,uth);this.remoteApi_&&O.videoId&&this.remoteApi_.JSC$19826_insertVideo(O.videoId)};
_.v.handleRemoveFromQueueAction_=function(O){O=_.b(O,j4b);this.remoteApi_&&O.videoId&&this.remoteApi_.JSC$19826_removeVideo(O.videoId)};
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],Z0.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g(),_.Y("design:type",Object)],Z0.prototype,"appId",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Z0.prototype,"mdxConnected",void 0);_.c([_.g(),_.Y("design:type",Boolean)],Z0.prototype,"receiverAvailable",void 0);_.c([_.g(),_.Y("design:type",Object)],Z0.prototype,"receiverName",void 0);_.c([_.g(),_.Y("design:type",Object)],Z0.prototype,"currentVideoId_",void 0);
_.c([_.g(),_.Y("design:type",Object)],Z0.prototype,"currentListId_",void 0);_.c([_.DO({is:"yt-mdx-manager",disableElementRegistration:!0})],Z0);_.y(Z0,"yt-mdx-manager",void 0,{mode:2});var hw9;var Teu;var zN=function(){var O=_.u.apply(this,arguments)||this;O.APP_IDS={ytr:3,ytm:5};O.JSC$21044_timeoutId_=0;O.actionMap={"yt-open-create-family-dialog":"open"};return O};
_.X(zN,_.u);_.v=zN.prototype;_.v.created=function(){r8B(2200)};
_.v.detached=function(){this.observer_&&this.observer_.disconnect()};
_.v.open=function(O,m){var G=this,B=O.serializedYpcFamilyCreateLoggingParams;this.JSC$21044_timeoutId_=setTimeout(this.abort_.bind(this,O.postFlowErrorEndpoint,B),3E4);m&&(this.onReadyCallback_=m);var Q=_.ZO(this.hostElement).querySelector("#unicorn-iframe");B&&B&&eZB("ypcFamilyCreateFlowStarted",B);_.CUO("family_creation",function(){var H=_.ex("gapi.family_creation.render");_.ex("gapi.config.update")("iframes/family_creation/url",G.getFamilyCreationUrlWithUnicornParams_());var M=3;O.appId&&O.appId in
G.APP_IDS&&(M=G.APP_IDS[O.appId]);M={authUser:_.kB("SESSION_INDEX")||0,clientId:M,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.kB("HL"),initialflow:[4,5,6,7],m:G.isMobile?1:0,onFlowComplete:G.onUnicornFlowComplete_.bind(G,O.postFlowSuccessEndpoint,B),onError:G.onUnicornFlowError_.bind(G,O.postFlowErrorEndpoint,B),onReady:G.onUnicornFlowReady_.bind(G,O.referencePcidParams)};H(Q,M)})};
_.v.close=function(){_.ZO(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.v.onUnicornFlowComplete_=function(O,m){this.close();m&&m&&eZB("ypcFamilyCreateFlowSucceeded",m);_.iP(this.hostElement,"yt-navigate",{endpoint:O})};
_.v.onUnicornFlowError_=function(O,m){this.close();m&&eZB("ypcFamilyCreateFlowCancelled",m);_.iP(this.hostElement,"yt-navigate",{endpoint:O})};
_.v.onUnicornFlowReady_=function(O){var m=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();O&&_.ex("gapi.family_creation.setConfig")(0,O);this.observer_=new MutationObserver(function(){_.ZO(m.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.ZO(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.ZO(this.hostElement).querySelector("#dialog").open()};
_.v.getFamilyCreationUrlWithUnicornParams_=function(){return _.kB("YTR_FAMILY_CREATION_URL")};
_.v.getCurrentUrl_=function(){return document.location.href};
_.v.abort_=function(O,m){this.clearTimeout_();this.onUnicornFlowError_(O,m)};
_.v.clearTimeout_=function(){clearTimeout(this.JSC$21044_timeoutId_)};
_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],zN.prototype,"ytActionHandlerBehavior",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],zN.prototype,"isMobile",void 0);_.c([_.g(),_.Y("design:type",Object)],zN.prototype,"onReadyCallback_",void 0);_.c([_.g(),_.Y("design:type",Object)],zN.prototype,"observer_",void 0);_.c([_.DO({is:"yt-create-family-dialog",disableElementRegistration:!0})],zN);
_.y(zN,"yt-create-family-dialog",function(){if(Teu===void 0){var O=document.createElement("template");_.f(O,'\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);var m=O.content,G=m.insertBefore;hw9===void 0&&(hw9=document.createElement("template"));var B=hw9;G.call(m,B.content.cloneNode(!0),O.content.firstChild);Teu=O}O=Teu;return O},{mode:2});var gXK;var uXu;var Jy=function(){var O=_.u.apply(this,arguments)||this;O.STEP=1;O.BLOCK_ON=80;O.MIN_PROGESS=0;O.MAX_PROGESS=100;return O};
_.X(Jy,_.u);_.v=Jy.prototype;_.v.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.v.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));_.KR().addProvider({provide:i5r,useValue:this})};
_.v.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.v.finish=function(){var O=this;this.progress=this.MAX_PROGESS;VlK(function(){O.progress==O.MAX_PROGESS&&(O.hostElement.hidden=!0)})};
_.v.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.vr.Object.defineProperties(Jy.prototype,{progress:{configurable:!0,enumerable:!0,set:function(O){this.progress_=O;var m="scaleX("+O/this.MAX_PROGESS+")",G=_.ZO(this.hostElement).querySelector("#progress").style;G.transform=m;G.webkitTransform=m;this.hostElement.setAttribute("aria-valuenow",String(O))},
get:function(){return this.progress_}}});
_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],Jy.prototype,"ytComponentBehavior",void 0);_.c([_.DO({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Jy);
_.y(Jy,"yt-page-navigation-progress",function(){if(uXu===void 0){var O=document.createElement("template");_.f(O,'\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');O.content.insertBefore(_.e().content.cloneNode(!0),
O.content.firstChild);var m=O.content,G=m.insertBefore;gXK===void 0&&(gXK=document.createElement("template"));var B=gXK;G.call(m,B.content.cloneNode(!0),O.content.firstChild);uXu=O}O=uXu;return O},{mode:2});var jNr={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"},I6b={"font-size":"12px","font-style":"italic"},p0u={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.fL0=function(){return _.r(function(O){_.ju(O)})};var Snr=_.a(function(O){var m=function(){return O.data().subtext},G={};
return _.q("snackbar-view-model",{class:_.bE("snackbarViewModelHost",O.className)},_.q("div",{class:_.bE("snackbarViewModelEngagementBarWrapper",O.className)},_.q(_.U,{cond:function(){return O.data().image},
then:function(B){return _.q(_.KH,{data:B,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.q(_.U,{cond:function(){return O.data().imageContent},
then:function(){return _.q("div",{class:"snackbarViewModelAvatarContainer"},_.q(_.u5,{data:function(){return O.data().imageContent}},{decoratedAvatarViewModel:_.vP}))}}),_.q("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.q("div",{class:_.bE((G.snackbarViewModelTitle=!0,G.snackbarViewModelTitleWithSubtext=m,G))},_.q(_.Jg,{text:function(){return O.data().text}})),_.q(_.U,{cond:m,
then:function(){return _.q("div",{class:"snackbarViewModelSubtext"},_.q(_.Jg,{text:function(){return m()}}))}})),_.q(_.U,{cond:function(){return O.data().buttons},
then:function(){return _.q("div",{class:"snackbarViewModelButtonClassWrapper"},_.q(_.u5,{data:function(){return O.data().buttons}},{buttonViewModel:function(B){return _.q(_.oF,{data:B.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:O.target})}}))}})))},"ri");_.qi(_.a(function(){function O(C,P,w){n(C);S(w);z("in");W(!0);m(C,P);M=setTimeout(function(){G()},P)}
function m(C,P){var w,d=(w=C.text)==null?void 0:w.content;C=_.a_(C.rendererContext);d&&(P={label:d,command:C,durationMs:P},_.KR().resolve(_.Bn).enqueue(P))}
function G(C){z("out");C&&clearTimeout(M)}
function B(){G(!0)}
function Q(C){if(C){var P=C.snackbarViewModel,w=C.durationMs,d=C.target;w||(w=3E3);P&&(C=_.KR().resolve(_.v7(_.FT)))&&C.enqueue({isOpened:t,open:function(){O(P,w,d)},
close:G},0)}}
var H=_.GX("snackbar-container"),M=void 0,R=_.K(_.Wf(!1,void 0,"mDc5N")),x=R.next().value;R=R.next().value;var t=x,W=R;x=_.K(_.Wf("out",void 0,"FpOs5e"));var Z=x.next().value,z=x.next().value;x=_.K(_.Wf(void 0,void 0,"jIDRob"));var J=x.next().value,n=x.next().value;x=_.K(_.Wf(void 0,void 0,"kOA3Mb"));var I=x.next().value,S=x.next().value,L=_.nH(function(){if(Z()==="out"){W(!1);n(void 0);S(void 0);var C=_.KR().resolve(_.v7(_.FT));C&&bqK(C,0)}});
_.Ln(function(){var C=_.KR().resolve(_.v7(_.kpJ));C&&(C.showSnackbarFn=Q,C.closeSnackbarFn=B)});
return _.q("snackbar-container",{class:"ytSnackbarContainerHost",el:H},_.q(_.U,{cond:function(){return t()&&!!J()},
then:function(){var C={};return _.q("div",{class:_.bE("ytSnackbarContainerSnackbarContainer",(C.ytSnackbarContainerMobile=!1,C.ytSnackbarContainerPivotBar=function(){var P;return!((P=_.KR().resolve(_.v7(_.ymJ)))==null||!P())},C.ytSnackbarContainerOpened=function(){return t()&&Z()==="in"},C.ytSnackbarContainerClosed=function(){return t()&&Z()==="out"},C)),
"on:animationend":L},_.q(Snr,{data:function(){return J()},
target:function(){return I()}}))}}))},"si"),"snackbar-container");_.qi(_.CfH,"yt-tooltip");var EXr=_.H93.ephemeralActionSelector;_.qi(_.a(function(){var O=_.wg(EXr);return _.q("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var m;return(m=O())==null?void 0:m.announcement})},"ti"),"yt-ephemeral-actions");var Yp9=new Map;var Tr9=function(O,m){var G=this;this.handleError=O;this.logEventInternal=m;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){G.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
Tr9.prototype.logError=function(O){this.handleError(O)};
Tr9.prototype.logEvent=function(O,m){switch(O){case "IDB_DATA_CORRUPTED":_.V("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",m);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",m);break;case "IS_SUPPORTED_COMPLETED":_.V("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",m);break;case "QUOTA_EXCEEDED":L4b(this,m);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",m);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":O=Object.assign({},m,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",O)}};
var L4b=function(O,m){_.Hn.getInstance().estimate().then(function(G){G=Object.assign({},m,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:wc3(G==null?void 0:G.usage),deviceStorageQuotaMbytes:wc3(G==null?void 0:G.quota)});O.logEventInternal("idbQuotaExceeded",G)})};var C1b=_.a(function(O){var m=_.Al("yt-draggable"),G=O.onDrag,B=O.onDragStart,Q=O.onDragEnd,H=_.ru(O,{allowClicks:!1,dragThreshold:5}),M=H.dragThreshold,R=H.allowClicks;O=H.children;H=H.className;var x=void 0,t=void 0,W=new _.yD(0,0),Z=!1;_.Ln(function(){x=new _.F0(m.value);t=new _.M5(J);z(x,t);if(R()){_.uF9(x,M());var I;(I=m.value)==null||I.addEventListener("click",n,{capture:!0})}_.LS(function(){var S;(S=x)==null||S.dispose();if(R()){var L;(L=m.value)==null||L.removeEventListener("click",n,{capture:!0})}})});
var z=function(I,S){_.Cm(I,"earlycancel",function(){R()&&(Z=!1)});
_.Cm(I,"start",function(L){B==null||B(L);L.defaultPrevented||R()&&(Z=!0)});
_.Cm(I,"beforedrag",function(L){x&&t&&(L.preventDefault(),W=new _.yD(L.clientX-x.startX,L.clientY-x.startY),t.start())});
_.Cm(I,"end",function(){S.stop();Q==null||Q();W=new _.yD(0,0)})},J=function(){W&&G(W)},n=function(I){Z&&(Z=!1,I.stopPropagation(),I.preventDefault())};
return _.q("yt-draggable",{el:m,class:_.bE("ytDraggableComponentHost",H)},O)},"ui");var oXr=_.a(function(O){var m=_.K(_.Wf(0,void 0,"Qf0tbc")),G=m.next().value,B=m.next().value;m=function(Q){var H={},M={};return _.q(C1b,{className:_.bE("ytdMiniplayerComponentResizer",(H.ytdMiniplayerComponentResizerDisabled=function(){return Q===O.horizontalAlignment()||Q===O.verticalAlignment()},H.ytdMiniplayerComponentResizerNorth=Q==="north",H.ytdMiniplayerComponentResizerEast=Q==="east",H.ytdMiniplayerComponentResizerSouth=Q==="south",H.ytdMiniplayerComponentResizerWest=Q==="west",H)),
onDragStart:function(){B(O.currentMiniplayerSize());if(O.onResizeStart)O.onResizeStart()},
onDrag:function(R){Q!=="north"&&Q!=="west"||R.scale(-1);var x;R=(x=Q==="north"||Q==="south")?R.y:R.x;var t=O.currentAspectRatio();x&&t>=1?R*=t:!x&&t<1&&(R/=t);x=R;O.onResize(G()+x)}},_.q("div",{class:_.bE("ytdMiniplayerComponentResizerCorner",(M.ytdMiniplayerComponentResizerNorthCorner=Q==="north",M.ytdMiniplayerComponentResizerEastCorner=Q==="east",M.ytdMiniplayerComponentResizerSouthCorner=Q==="south",M.ytdMiniplayerComponentResizerWestCorner=Q==="west",M))}))};
return _.q("div",{class:"ytdMiniplayerComponentResizers"},m("north"),m("east"),m("south"),m("west"))},"vi");var l63=16/9;_.qi(_.a(function(){var O=_.Al("ytd-miniplayer"),m=_.K(_.Wf(new _.hY(NaN,NaN),void 0,"GhwGi")),G=m.next().value,B=m.next().value;m=_.K(_.Wf(!1,void 0,"YCGMub"));var Q=m.next().value,H=m.next().value;m=_.K(_.Wf(!1,void 0,"tMABIb"));var M=m.next().value,R=m.next().value;m=_.K(_.Wf(!1,void 0,"XAbRxc"));var x=m.next().value,t=m.next().value;m=_.K(_.Wf(!1,void 0,"qcycIb"));var W=m.next().value,Z=m.next().value;m=_.K(_.Wf(!1,void 0,"HJauAf"));var z=m.next().value,J=m.next().value;m=_.K(_.Wf(!1,void 0,"P0Rfsf"));
var n=m.next().value,I=m.next().value;m=_.K(_.Wf(l63,void 0,"mfCCDe"));var S=m.next().value,L=m.next().value,C=_.K(_.Wf(!1,void 0,"QfcC7b"));m=C.next().value;var P=C.next().value;C=_.K(_.Wf(!1,void 0,"armgtc"));var w=C.next().value,d=C.next().value;C=_.K(_.Wf(void 0,void 0,"yK0pGf"));var D=C.next().value,OS=C.next().value;C=_.K(_.Wf(_.kB("HTML_DIR")==="rtl"?"west":"east",void 0,"GHCzub"));var rN=C.next().value,xO=C.next().value;C=_.K(_.Wf("south",void 0,"aWTWh"));var XI=C.next().value,Vf=C.next().value;
C=_.K(_.Wf(400,void 0,"IY6bpb"));var US=C.next().value,CN=C.next().value,oe=_.KR().resolve(_.c$).miniplayerPropSignalMap[0],K$=oe.data,n$=oe.externalPlaylistData;C=oe.toastData;var qe=oe.playabilityStatus,PM=oe.isReadyToResume,ZH=oe.isDisabled,U3=oe.watchWhile,p$=oe.playerVe,uy=oe.expandVe,vb=oe.closeVe,vM=oe.readyToResumeVe,Gp=oe.readyToResumeCloseVe,Vu=oe.repositionVe,Gu=oe.resizeVe;oe=_.K(_.fH(PM));var x9=oe.next().value,Am=oe.next().value,Fc=!1,O9=!1,Rj;_.Ln(function(){B(_.Ih());O.value.addEventListener("animationend",
function(yu){yu.target===O.value&&(J(!1),I(!1))});
FH9(O.value)});
_.Fg("yt-window-resized",function(yu){yu&&B(yu)});
var DH=function(){Rj&&L(Rj.getVideoAspectRatio())},zu=function(){if(Rj){var yu=Rj.getPlayerState()===1;
x9()&&yu&&Am(!1)}},jo=function(){var yu=uy();
if(yu){var SK=_.yA(3);SK&&_.Gk(SK,yu)}},f$=function(){var yu=vb(),SK=Gp();
yu&&_.Gk(_.yA(3),yu);PM()&&SK&&_.Gk(_.yA(3),SK)};
_.Fg("yt-activate-miniplayer",function(yu){var SK;return _.r(function(s9){if(s9.nextAddress==1)return Q()?s9.return():s9.yield((SK=_.KR().resolve(_.c$).getPlayerElement())==null?void 0:SK.getPlayerPromise(),2);Rj=s9.yieldResult;if(!Rj)return s9.return();!w()&&_.V("kevlar_watch_while_v2")&&(Vf(yu&&!_.V("kevlar_watch_while_bottom_align")?"north":"south"),xO(_.kB("HTML_DIR")==="rtl"?"west":"east"));var Xc=Rj;Xc.addEventListener("onVideoDataChange",DH);Xc.addEventListener("onStateChange",zu);Xc.addEventListener("onExpandMiniplayer",
jo);Xc.addEventListener("onCloseMiniplayer",f$);L(Rj.getVideoAspectRatio());H(!0);PmK()||J(!0);_.ju(s9)})});
_.Fg("yt-deactivate-miniplayer",function(yu){return _.r(function(SK){if(!Q())return SK.return();H(!1);Am(!1);I(yu);Z(!1);R(!1);if(Rj){var s9=Rj;s9.removeEventListener("onVideoDataChange",DH);s9.removeEventListener("onStateChange",zu);s9.removeEventListener("onExpandMiniplayer",jo);s9.removeEventListener("onCloseMiniplayer",f$)}PmK()||J(!0);_.ju(SK)})});
var Wb=function(){return!(U3()&&_.V("kevlar_watch_while_modern"))},G9=function(){var yu;
return!((yu=n$())==null||!yu.contents)},U9=function(){var yu=US();
var SK=G();SK=Math.min(Math.min(SK.width,SK.height)-32,720);var s9=S(),Xc=Wb(),xR=G9()&&M(),vY=Math.min(yu,SK);yu=new _.hY(192,Xc?116:192);s9=new _.hY(xR?l63:s9,1);vY=new _.hY(vY,Xc?vY-76:vY);vY=s9.aspectRatio()>vY.aspectRatio()?vY.width/s9.width:vY.height/s9.height;s9=s9.scale(vY);yu.width<=s9.width&&yu.height<=s9.height||(yu=s9.aspectRatio()<=yu.aspectRatio()?yu.width/s9.width:yu.height/s9.height,s9.scale(yu),s9.width=Math.min(s9.width,SK),s9.height=Math.min(s9.height,SK));return new _.hY(s9.width,
_.Lk(192,s9.height+GKB(Xc,xR),720))},IM=function(){var yu=U9(),SK=Wb(),s9=G9()&&M();
return new _.hY(yu.width,yu.height-GKB(SK,s9))},pI=function(){var yu=function(SK){SK.target===O.value&&W()&&(Z(!1),O.value.removeEventListener("transitionend",yu))};
PmK()||(O.value.addEventListener("transitionend",yu),Z(!0));R(!M())};
_.ER(function(){var yu=p$(),SK=_.yA(3),s9=_.kf(3);if(SK&&s9&&yu){_.Pd(SK,s9,yu);s9=Vu();var Xc=Gu(),xR=uy(),vY=vb(),Sj=Gp();xR&&vY&&Sj&&(_.Fm(SK,yu,[xR,vY,Sj]),_.Or(SK,[xR,vY]));s9&&Xc&&_.Fm(SK,yu,[s9,Xc])}},"DuFzOc");
_.ER(function(){var yu=vM();if(yu){var SK=_.yA(0),s9=_.kf(0);SK&&s9&&(_.Pd(SK,s9,yu),_.Or(SK,[yu]))}},"vwRnmc");
oe={};return _.q("ytd-miniplayer",{el:O,class:_.bE("ytdMiniplayerComponentHost",(oe.ytdMiniplayerComponentVisible=function(){return Q()||z()},oe.ytdMiniplayerComponentAnimatingSnap=x,oe.ytdMiniplayerComponentAnimatingPlaylistExpand=W,oe.ytdMiniplayerComponentAnimatingFade=z,oe),function(){if(z()){var yu=XI();
var SK=Q(),s9=n();yu=SK?yu==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":s9?yu==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":yu==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else yu="";return yu}),
style:_.hH({top:function(){return XI()==="north"?"16px":""},
right:function(){return rN()==="east"?"16px":""},
bottom:function(){return XI()==="south"?"16px":""},
left:function(){return rN()==="west"?"16px":""},
width:function(){return U9().width+"px"},
height:function(){return U9().height+"px"},
transform:function(){var yu=D();return yu?"translate("+yu.x+"px, "+yu.y+"px)":""}})},_.q("div",{class:"ytdMiniplayerComponentContent"},_.q(C1b,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(yu){var SK=mXu(rN(),XI(),G(),U9(),D()),s9=IM();Math.abs(yu.clientY-(SK.y+s9.height))>15?(P(!0),yu=_.yA(3),SK=Vu(),Fc||(Fc=!0,yu&&SK&&_.Or(yu,[SK])),yu&&SK&&_.Gk(yu,SK)):yu.preventDefault()},
onDrag:function(yu){OS(yu)},
onDragEnd:function(){var yu=AI0(mXu(rN(),XI(),G(),U9(),D()),G(),U9()),SK=OkK(rN(),XI(),G(),U9()),s9=OkK(yu.horizontalAlignment,yu.verticalAlignment,G(),U9());s9=new _.yD(s9.x-SK.x,s9.y-SK.y);var Xc;SK=SK.y+(((Xc=D())==null?void 0:Xc.y)||0)+U9().height/2;var xR=function(){rN()===yu.horizontalAlignment&&XI()===yu.verticalAlignment||d(!0);xO(yu.horizontalAlignment);Vf(yu.verticalAlignment);OS(void 0)},vY=function(Sj){Sj.target===O.value&&x()&&(t(!1),xR(),O.value.removeEventListener("transitionend",vY))};
P(!1);XI()==="south"&&SK>G().height?(xR(),_.KR().resolve(_.c$).close()):(O.value.addEventListener("transitionend",vY),t(!0),OS(s9))}},_.q(_.U,{cond:Q,
then:function(){return _.q(_.$Z0,{isDisabled:ZH,playabilityStatus:qe,size:IM})}}),_.q(_.U,{cond:Wb,
then:function(){return _.q(_.vah,{isReadyToResume:x9,data:K$,expanded:M,onExpandClick:pI,playlistData:n$})}}),_.q(_.U,{cond:m,
then:function(){return _.q("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.q(_.U,{cond:function(){return G9()&&M()||W()},
then:function(){return _.q(_.AM2,{className:"ytdMiniplayerComponentPlaylistPanel",data:n$,hideHeaderText:!0,withinMiniplayer:!0})}}),_.q("div",{class:"ytdMiniplayerComponentToast"},_.q(_.MeK,{toastData:C}))),_.q(oXr,{onResize:function(yu){CN(_.Lk(192,yu,720))},
onResizeStart:function(){var yu=_.yA(3),SK=Gu();O9||(O9=!0,yu&&SK&&_.Or(yu,[SK]));yu&&SK&&_.Gk(yu,SK)},
currentAspectRatio:S,currentMiniplayerSize:US,horizontalAlignment:rN,verticalAlignment:XI}))},"wi"),"ytd-miniplayer",{});var a69=_.sv.persistentPanelVisibleSelector,VB=function(){var O=_.u.apply(this,arguments)||this;O.tabGesturesIsActive=!1;O.persistentPanelEnabled=_.V("enable_ai_companion");O.hasDelegation=!1;O.darkerDarkTheme=_.V("web_darker_dark_theme");O.isFrostedGlassInitialized=!1;O.frostedGlassExp=_.V("web_frosted_glass");O.hasPendingNavigation=!1;O.mastheadHiddenFocusWithinKillswitch=_.V("web_masthead_hidden_focus_within_killswitch");O.clientOnlyWizTooltipsEnabled=_.V("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
O.scrollAtTop=!0;O.guideScrollTop=0;O.isTheaterModeSession=_.yE("START_IN_THEATER_MODE");O.iMaxTheaterMode=_.V("web_watch_imax_theater_mode");O.isFullWindowSession=_.yE("START_IN_FULL_WINDOW_MODE");O.hasCreateFamilyDialog=!1;O.mastheadHeight=56;O.networkStatusManager=new _.PI;O.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"};O.dynamicActionMap={"yt-run-attestation-command":function(m){var G=_.lph.instance,B=_.b(m,_.eVo);return B?_.V("use_rta_manager_for_async")&&
xCy()?A8K(G,B,m.clickTrackingParams):Fkr(G,B,m.clickTrackingParams):_.lK(Error("ui"))}};
O.isFrostedGlassDisabled=!1;O.isChannelOrPlaylistPage=!1;return O};
_.X(VB,_.u);_.v=VB.prototype;_.v.created=function(){var O=_.KR();_.V("kevlar_clear_duplicate_pref_cookie")&&_.uT(_.ln,function(){var m=_.fR.get("PREF");m&&!/f\d=/.test(m)&&(m=_.ib("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=m?"PREF=null;domain="+m+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.V("gzip_gel_with_worker")&&_.aOp();_.V("jspb_serialize_with_worker")&&ocK();_.V("web_worker_availability_check")&&dkB();_.V("nwl_init_killswitch")||L8h().then(function(){_.ln.addLowPriorityJob(Wwx)});
this.pageManagerAttachedPromise=_.m3();this.ytdAppBehavior.loadDepsPromise=_.ll([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Pu(this.onThrottledScroll,200,this);_.V("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);gcB();VGr=!!_.ex("ytappsettings.initialized");$P=_.ex("ytappsettings.previousValue");$oB=_.ex("ytappsettings.previousSnapshotTime");VGr||(VGr=!0,MHb());ngr();X60();_.a8("DEFERRED_DETACH",
_.V("kevlar_tuner_should_defer_detach"));_.a8("REUSE_COMPONENTS",!0);_.a8("STAMPER_STABLE_LIST",!0);_.a8("SCHEDULED_LAZY_LIST",!0);_.a8("openPopupConfig",TO9);_.a8("useClickHandler",!0);_.V("kevlar_shell_cleanup")&&_.ln.addLowPriorityJob(Zso.bind(this,_.Qf.caches));_.yE("IS_SHELL_LOAD")&&_.as({shellStartupDurationMs:Math.round((0,_.$G)()-_.SY())});uv0(this.networkStatusManager);_.V("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",bzB(jNr)),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!",
bzB(I6b)),console.log("%cVisit http://go/join-youtube-web to apply today.",bzB(p0u)));_.wIx(O.resolve(_.mS),1E3)};
_.v.ready=function(){var O=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var m=DCr();m&&!_.V("external_fullscreen_killswitch")&&document.addEventListener(m,this.setFullscreen.bind(this));(m=window.matchMedia("(prefers-color-scheme: dark)"))&&m.addEventListener&&m.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(m=_.KR().resolve(_.v7(_.FS9)))m.subscribe("navigation-start",
function(){O.hasPendingNavigation=!0}),m.subscribe("navigation-end",function(){O.hasPendingNavigation=!1})};
_.v.attached=function(){var O=this;_.xA().processSignal("ci");_.V("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.ONo?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.qX(_.Bwe(),"SUCCESS");this.updateIconSet();_.rr(this.guideInnerContent,!1);_.PD().initVisibilityObserver();this.guideService.guideElement=this.guide;var m=document.createElement("ytd-miniplayer"),G=_.ZO(this.hostElement).querySelector("#content");
_.ZO(this.hostElement).insertBefore(m,G);_.xA().processSignal("ma");_.KR().resolve(_.c$).init(m);this.persistentPanelEnabled&&_.A0r(_.KR().resolve(_.GF),this.persistentPanelContainer,"APP");_.yE("IS_SHELL_LOAD")&&(G=document.createElement("ytd-network-status-banner"),_.ZO(this.hostElement).insertBefore(G,m));_.V("kevlar_right_click_on_lockups")&&_.Kj._onCaptureClick&&document.addEventListener("contextmenu",_.Kj._onCaptureClick.bind(_.Kj),!0);var B=function(){var Q=_.Th("yt-page-navigation-progress");
_.ZO(O.hostElement).appendChild(Q)};
setTimeout(function(){_.xA().parkOrScheduleJob(B,0,"eocs",16)},0);
_.V("service_worker_push_enabled")&&_.uT(_.ln,wqy);_.NT(_.sJ.getInstance(),this.dynamicActionMap,this.hostElement);_.iP(this.hostElement,"ytd-app-attached");_.xA().processSignal("aa");Kf0(this.hostElement);_.HI("gapi.load",_.CUO);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.uT(_.ln,
function(){var Q=document.createElement("ytd-video-preview");_.ZO(_.ZO(O.hostElement).querySelector("#video-preview")).appendChild(Q)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.uT(_.ln,function(){hCy();O.registerWithViewTransitionManager()});
if(_.lu()&&this.isAppDarkTheme()!==_.Cf())this.onDarkModeToggledAction();else m=_.oh()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==m&&(_.V("enable_dark_theme_only_on_shorts")?_.BC(_.V("enable_dark_theme_only_on_shorts_control")?window.location.href:_.AN(window.location.href,{theme:"dark"})):_.ay(new _.j9("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(Iah=new jUK(this.hostElement)),f6r=new X0B(this.hostElement),nX3=new bA3(this.hostElement),Pdb=new NOh(this.hostElement)};
_.v.getThemeSettingsToLog=function(){var O=_.oh()==="USER_INTERFACE_THEME_DARK";O=_.lu()?_.Cf()?"os-dark":"os-light":O?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:O,cookiesEnabled:_.Tg()}};
_.v.detached=function(){_.Rs(this.guideInnerContent);_.ln.cancelJob(HB);HB=0;_.ln.cancelJob(KZ);KZ=0;_.A1p(vsr);vsr.length=0;BvB=_.Cp6=null;_.PD().dispose();_.V("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.PH(_.sJ.getInstance(),Iah.playlistHandlerActionMap,Iah.JSC$32108_clientRoot);_.PH(_.sJ.getInstance(),f6r.downloadManagerActionMap,f6r.JSC$32397_clientRoot);_.PH(_.sJ.getInstance(),nX3.feedbackCollectorActionMap,nX3.JSC$32392_clientRoot);
for(var O=_.K(Pdb.eventListeners),m=O.next();!m.done;m=O.next()){var G=_.K(m.value);m=G.next().value;G=G.next().value;G=_.K(G);for(var B=G.next();!B.done;B=G.next()){var Q=_.K(B.value);B=Q.next().value;Q=Q.next().value;m.removeEventListener(B,Q)}}_.PH(_.sJ.getInstance(),Pdb.autonavPauseActionMap,Pdb.JSC$20008_clientRoot)};
_.v.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.TC().getFlag(186)};
_.v.computeIsInlinePreviewEnabled=function(O,m,G){return!G&&_.yvA({miniplayerIsActive:O,miniplayerPlaybackState:m})};
_.v.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.xs({type:"SET_FROSTED_GLASS_MODE",payload:!_.V("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"}))};
_.v.computeIsFrostedGlassDisabled=function(O,m,G,B){return O||m||G||B&&_.V("web_frosted_glass_disable_watch")};
_.v.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.V("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.v.computeIsHomePage=function(O,m){if(!O||m==null||!m.endpoint)return!1;var G;return((G=_.b(m.endpoint,_.gH))==null?void 0:G.browseId)==="FEwhat_to_watch"};
_.v.updateIsChannelOrPlaylistPage=function(){if(_.V("web_frosted_glass")){var O,m,G=(m=(O=_.KR().resolve(_.v7(_.KJ)))==null?void 0:O.getCurrentPage())==null?void 0:m.pageSubtype;this.isChannelOrPlaylistPage=G?["channel","channels","playlist"].includes(G):!1}};
_.v.scheduleFrostedGlassInitialization=function(){var O=this;_.V("web_frosted_glass")&&_.xA().parkOrScheduleJob(function(){O.isFrostedGlassInitialized=!0},0,_.VH(["eocs",
"cr"]),300)};
_.v.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.zko(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.xs({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.xs({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.v.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(i4K(!0))};
_.v.onYtSignalActionRequestPersistentStorage=function(){if(!_.V("request_persistent_storage_killswitch")){var O=_.KR().resolve(_.Lay);O.cachedPersistStatePromise||(O.cachedPersistStatePromise=ppA())}};
_.v.handleYtChannelCreationFormEndpoints=function(O){O&&this.ytComponentBehavior.resolveCommand(O)};
_.v.handleShowEngagementPanelEndpoint=function(O){O&&this.ytComponentBehavior.resolveCommand(O)};
_.v.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(i4K(!1))};
_.v.initIconDefs=function(O,m){var G=document.createElement("iron-iconset-svg");G.name=O;O=document.createElementNS("http://www.w3.org/2000/svg","svg");G.appendChild(O);O.appendChild(m);document.body.appendChild(G);return G};
_.v.onWindowResized=function(){_.xc(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var O=_.uA.getInstance();O.documentWidth_=document.body.clientWidth;fos(O)};
_.v.onWindowScrolled=function(){var O=_.KR().resolve(_.KJ).getCurrentPage();if(O!=null&&O.getScrollTop){var m=this.ytdReduxBehavior,G=m.dispatch;O=O.getScrollTop()<=0;G.call(m,_.xs({type:"SET_SCROLL_AT_TOP",payload:O}))}};
_.v.guideIsVisibleButNotPersistentSelectorChanged=function(){var O=_.KR().resolve(_.KJ).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=O.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"),
O.setScrollTop(this.guideScrollTop));_.UB(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.v.getCurrentPageScrollableElementType=function(){var O=_.KR().resolve(_.KJ).getCurrentPage();if(O&&O.getPageScrollingElement())return O.getPageScrollingElement().nodeName};
_.v.observeGuideVisibility=function(){var O=_.uA.getInstance(),m=this.miniGuideVisible;O.guidePersistentAndVisible_=this.guidePersistentAndVisible;O.miniGuideVisible_=m;fos(O)};
_.v.observePersistentPanelVisibility=function(){var O=_.uA.getInstance();O.persistentPanelVisible_=this.persistentPanelVisible;fos(O)};
_.v.handleEduDismissAction=function(O){O&&O.eduDismissAction&&(_.xc(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.neU.getInstance(),_.Tb.set(O.eduDismissAction.key+"-dismissed",!0))};
_.v.handleEduImpressionAction=function(O){if(O&&O.eduImpressionAction){var m=_.neU.getInstance();O=O.eduImpressionAction.key;m.JSC$13024_eduDisplayedThisLoad_[_.baU[O].setKey||O]=!0;_.Tb.set(O+"-impression",parseInt(_.Tb.get(O+"-impression")||0,10)+1)}};
_.v.onYtSignalActionConfirmMentionsEdu=function(){_.xc(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.It.getInstance();_.jt.set("edu-dismissed",!0)};
_.v.onYtSignalActionRecordMentionsEduImpression=function(){_.It.getInstance();var O=_.jt.set,m=parseInt(_.jt.get("edu-impressions"),10);O.call(_.jt,"edu-impressions",(isFinite(m)?m:0)+1)};
_.v.onYtPageManagerAttached=function(O){var m;((m=_.Mj(O))==null?void 0:m.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.v.onInvokeInstrumentManagerAction=function(O,m){NDA(m,O)};
_.v.updateIconSet=function(){var O=this.hostElement.querySelector("#masthead");if(O){var m=_.zw(O),G=m.querySelector("g#yt-logo-updated");G&&(O=document.createElementNS("http://www.w3.org/2000/svg","defs"),O.appendChild(G.cloneNode(!0)),(m=m.querySelector("g#yt-logo-red-updated"))&&O.appendChild(m.cloneNode(!0)),this.initIconDefs("yt-logos-ext",O))}};
_.v.updateMastheadData=function(){var O=this,m,G,B,Q,H;return _.r(function(M){if(M.nextAddress==1){m=O.data;G=O.hostElement.querySelector("#masthead");if(!G)return M.return();_.QA(O,function(){G.data=O.topbarData});
if(!O.get("response.topbar",m)||O.get("response.topbar.responseContext.maxAgeSeconds",m)===0)return M.jumpTo(0);if(B=_.KR().resolve(_.Sy))return M.yield(B(),6);Q=_.KR().resolve(_.CW);return M.yield(Q.put("service:topbar:fallback",new _.or({innertubeResponse:O.get("response.topbar",m)})),0)}return(H=M.yieldResult)?M.yield(H.put("service:topbar:fallback",new _.or({innertubeResponse:O.get("response.topbar",m)})),0):M.jumpTo(0)})};
_.v.computeTopbarData=function(O){if(!O)return null;var m;return this.isShortsPage&&this.topbarData&&!_.b((m=O.response)==null?void 0:m.topbar,Ud3)?this.topbarData:O.response&&"topbar"in O.response?_.b(O.response.topbar,Ud3)||null:null};
_.v.onSetTheaterModeEnabled=function(O,m){this.isTheaterModeSession=m.enabled;this.setTheaterModeStyles(m.enabled)};
_.v.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.v.onDarkModeToggledAction=function(){var O=_.JE(window.location.href);if(!_.DKf(O)){(O=!!_.Fq(window.location.href).themeRefresh)&&_.ay(new _.j9("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!O){MHb();O={themeRefresh:1};var m=_.KR().resolve(_.KJ);if(m.isOnWatch()){var G,B;m=((G=m.getPlayerFromWatch())==null?void 0:(B=G.getPlayer())==null?void 0:B.getCurrentTime())||0;m>=1&&(O.time_continue=Math.floor(m))}_.Tg()||_.oh()!=="USER_INTERFACE_THEME_DARK"||(O.theme="dark");_.BC(_.AN(window.location.href,
O))}_.V("web_appshell_refresh_trigger")&&_.Qf.caches&&this.refreshAppShellResponse();G=_.Pr(window.location.href);_.km(_.KR().resolve(_.yw),_.Kr(G,"theme"))}};
_.v.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.v.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.v.onPlayerFullscreen=function(O){_.$c();this.playerFullscreen=O};
_.v.setRestrictedMode=function(O){var m=_.TC();_.gr(0,58,O);m.save();_.KR().resolve(_.N2).reload()};
_.v.onPageChanged=function(O){O.detail.newPageType==="ytd-watch-flexy"||O.detail.newPageType==="ytd-watch-fixie"||O.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.jk("WEB_PAGE_TYPE_WATCH")):O.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.jk("WEB_PAGE_TYPE_SHORTS")):O.detail.newPageType==="ytd-browse"&&O.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.jk("WEB_PAGE_TYPE_MINI_APP")):_.V("web_frosted_glass")&&O.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.jk("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.jk("WEB_PAGE_TYPE_UNKNOWN"));O.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.v.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.v.onGuideToggleTap=function(){_.iP(this.hostElement,"yt-guide-toggle")};
_.v.onGuideToggleHover=function(){_.iP(this.hostElement,"yt-guide-hover")};
_.v.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.v.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.v.setMastheadTheme=function(){var O=_.zw(this.hostElement).querySelector("#masthead");O&&(O.dark=O.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),O.isDarkThemeForced=!1)};
_.v.onRequestPanelModeChange=function(O,m){this.hideHeaderShadow=m.mode!=="seamed"};
_.v.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.v.onDrawerIronSelect=function(O){_.Mj(O).id==="guide"&&this.processDrawerIronSelect()};
_.v.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var O="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(O="opened"));_.iP(this.hostElement,"yt-autonav-pause-guide-"+O)};
_.v.onAddElementToApp=function(O){_.ZO(this.hostElement).appendChild(O.detail)};
_.v.onThrottledScroll=function(){var O=_.KR().resolve(_.KJ).getCurrentPage();O&&(this.scrollAtTop=O.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.v.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.v.setFullscreen=function(){if(_.V("external_fullscreen")||!this.isWatchPage){var O=_.V("kevlar_fullerscreen_root_only_killswitch")?!!_.$c():!!_.$c()&&_.$c()===document.documentElement;O=(this.isWatchPage||_.V("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(O||this.isFullWindowSession);this.fullscreen!==O&&((this.fullscreen=O)&&_.UB(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Kf().dispatch(_.$Rm(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.xc(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.v.setFullscreenLoggingForShorts=function(O){var m,G,B;return _.r(function(Q){if(Q.nextAddress==1)return Q.yield((m=_.M1())==null?void 0:m.getPlayerPromise(),2);G=Q.yieldResult;(B=G)==null||B.setAppFullscreen(O);_.ju(Q)})};
_.v.updateMastheadCssHeight=function(){var O=this.mastheadHeight;this.fullscreen&&(O=0);_.n7(this.hostElement,{"--ytd-masthead-height":O+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.v.updateNetworkStatusBannerDisplayStatus=function(){var O="unset";this.fullscreen&&(O="none");_.n7(this.hostElement,{"--ytd-network-status-banner-display":O})};
_.v.updateNetworkStatusBannerCssHeight=function(){var O="unset";this.fullscreen&&(O="0px");_.n7(this.hostElement,{"--ytd-network-status-banner-max-height":O})};
_.v.updateScrollAndMasthead=function(O,m,G,B){this.iMaxTheaterMode||(B=!1);var Q=_.KR().resolve(_.KJ).getCurrentPage();O||m||B?(document.body.classList.add("no-scroll"),Q.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.f7(this,this.onScroll)),Q.setScrollTop(0),_.n7(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Zu()+"px"})):G?_.iP(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.iP(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
Q.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.f7(this,this.onScroll)));this.mastheadHidden=O||m||G;this.updateMastheadCssHeight();_.V("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.v.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.v.onYtNavigateAction=function(O){O=this.get("navigateAction.endpoint",O);_.iP(this.hostElement,"yt-navigate",{endpoint:O})};
_.v.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var O=document.createElement("yt-create-family-dialog");_.ZO(this.hostElement).appendChild(O);this.hasCreateFamilyDialog=!0}};
_.v.onSetPushNotificationsEnabledCommand=function(O){var m=this,G=_.b(O,qL9);G&&typeof G.enabled==="boolean"&&(Notification.permission!=="granted"?kk9().then(function(){Notification.permission==="granted"?(fhb(!G.enabled).then(gsA),G.successAction&&_.tK(m.hostElement,[G.successAction])):G.failureAction&&_.tK(m.hostElement,[G.failureAction])}):(fhb(!G.enabled).then(gsA),G.successAction&&_.tK(this.hostElement,[G.successAction])))};
_.v.onYtSignalActionEnableChromeNotifications=function(){yar(!0)};
_.v.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.b(this.topbarData.hotkeyDialog,ZQB)}}})};
_.v.onYtSignalActionShowKeyboardShortcutDialog=function(){_.xc(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.v.onYtEndpointChangeHandler=function(O,m){var G=_.Q4(_.sE);G.pendingPrefetchJob_&&(m=!(!m||m.autonav!="1"),G.pendingPrefetchJob_.resolve(O&&_.om6(O)?_.l2f(O,m):""),G.pendingPrefetchJob_=null);_.xc(this.hostElement,"yt-pause-active-page-context");_.xc(this.hostElement,"ytd-log-youthere-nav");_.xc(this.hostElement,"yt-prepare-page-dispose")};
_.v.handleCommandWithCommandHandler=function(O,m){_.XJ.instance.resolveCommand(O,{form:{element:m}})};
_.v.onYtTimedCommand=function(O){var m=this;O=_.b(O,BtJ);var G=O.command;G&&_.t8(_.ln,function(){var B=_.b(G,_.aNs);B?(_.XJ.instance.resolveCommand(G),m.maybeLogGetAnswerRequestTick(B)):_.Wd(m.hostElement,[G],m.hostElement)},O.timeoutMs||0)};
_.v.maybeLogGetAnswerRequestTick=function(O){O&&O.isFirstRequest&&(_.ys("search_overview_answer"),_.cd("so_rq",void 0,"search_overview_answer"))};
_.v.onYtSignalActionSkipNavigation=function(){var O=_.KR().resolve(_.KJ).getCurrentPage();_.mP(O)};
_.v.onYtSignalActionCopyDebugData=function(){mBu()};
_.v.handleEntityUpdateCommand=function(O){_.Tk(_.b(O,_.qso).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.v.logFlowLoggingEventCommand=function(O){if(O=_.b(O,_.XZs))if(O.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var m=O.flowEventNamespace,G=O.flowEventType,B=O.flowType;B&&m&&G&&_.u$N(_.bu(m,G,O.flowEventMetadata),B)}else{m=_.Xs();G=O.flowEventNamespace;B=O.flowEventType;var Q=O.flowType;Q&&G&&B&&_.nf(m,_.bu(G,B,O.flowEventMetadata),Q,O.flowNonce)}};
_.v.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.v.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.v.onTouchStart=function(){var O=_.F5();_.yA()&&_.P6(O.JSC$13252_screenManager,{visualElement:O.ve})};
_.v.handleSelectLanguageCommand=function(O){if(O=_.b(O,RHs).hl){var m=_.TC();m.set("hl",O);m.save();_.KR().resolve(_.N2).reload()}};
_.v.handleConfirmDialogEndpoint=function(O){(O=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(O))&&this.ytOpenPopupBehavior.openPopup(O)};
_.v.handleOpenPopupNavigationEndpoints=function(O,m){_.V("web_button_rework")&&(O=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(O))&&this.ytOpenPopupBehavior.openPopup(O,m)};
_.v.handleSaveCommandToSessionStorage=function(O){if(O=_.b(O,_.AR_)){var m=O.key;m&&O.command&&window.sessionStorage.setItem(m,JSON.stringify(O.command))}};
_.v.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(O){O&&O.active&&O.active.postMessage({type:"refresh_shell"})}).catch(function(O){O.name!=="SecurityError"&&_.oy(O)})};
_.v.onDeviceThemeChanged=function(){var O=_.Cf();_.gr(_.TC(),185,O);_.TC().save()};
_.v.handleYtRegisterPromoCommand=function(O){if(_.b(O,xdr)){var m=_.KR().resolve(_.KJ).getCurrentPage()||this.hostElement;vSB().registerPromoCommand(_.b(O,xdr),m)}};
_.v.onYtNavigateHomeAction=function(){if(!_.V("kevlar_miniplayer_navigate_home_from_app_killswitch")){var O,m,G,B,Q=(B=(O=this.topbarData)==null?void 0:(m=O.logo)==null?void 0:(G=m.topbarLogoRenderer)==null?void 0:G.endpoint)!=null?B:_.Yz;this.ytComponentBehavior.resolveCommand(Q)}};
_.v.onYtLocationCollectionCommand=function(O){Xc0(_.b(O,hHA))};
_.v.onYtGetLocationCommand=function(O){ggx(_.b(O,fcB),this)};
_.v.updateRenderGuideFromBinding=function(O){this.renderGuide=O.detail.value};
_.v.updateGuidePersistentAndVisibleFromBinding=function(O){this.guidePersistentAndVisible=O.detail.value};
_.v.updateMiniGuideVisibleFromBinding=function(O){this.miniGuideVisible=O.detail.value};
_.v.onThemeSelected=function(O,m){var G=_.TC(),B=O||m?O:_.Cf(),Q=(B&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!B&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.DKf(_.JE(window.location.href));_.gr(0,165,O);_.gr(0,174,m);G.save();Q&&_.xc(this.hostElement,"yt-dark-mode-toggled-action",[B]);_.xc(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.v.getCurrentTheme=function(){return _.lu()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.oh()};
_.v.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.v.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.v.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.v.handleShowConsentPrimitive=function(O){var m=this,G,B;return _.r(function(Q){if(Q.nextAddress==1){try{G=(B=_.M1())==null?void 0:B.getPlayerPromise()}catch(H){}return Q.yield(cIr(O,G),2)}_.xc(m.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.ju(Q)})};
_.v.handleSelectActiveIdentityEndpointInternal=function(O){_.m$();O=_.b(O,_.Gbm);if(O!=null&&O.supportedTokens){O=_.K(O.supportedTokens);for(var m=O.next();!m.done;m=O.next())m=m.value,m.accountSigninToken&&_.BC(m.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.v.handleUpdatePermissionRoleCommand=function(O){if(O=_.b(O,_.BcH)){var m;this.hasDelegation=!((m=_.b(O.renderer,_.G_8))==null||!m.status)}};
_.v.registerWithViewTransitionManager=function(){var O=_.KR().resolve(_.v7(_.dF));if(O){var m,G=(m=this.guide)==null?void 0:m.querySelector("#scrim"),B;m=(B=this.guide)==null?void 0:B.querySelector("#contentContainer");G&&m&&O.isAnyTransitionEnabled&&(B={},O.viewTransitionCoordinator.registerElement(G,(B.slide="app-drawer-scrim-page-transition",B["lockup-to-watch"]="app-drawer-scrim-page-transition",B["learning-journey"]="app-drawer-scrim-page-transition",B)),G={},O.viewTransitionCoordinator.registerElement(m,
(G.slide="app-drawer-container-page-transition",G["lockup-to-watch"]="app-drawer-container-page-transition",G["learning-journey"]="app-drawer-container-page-transition",G)))}};
_.vr.Object.defineProperties(VB.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.V("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.vr.Object.defineProperties(VB,{template:{configurable:!0,enumerable:!0,get:function(){if(tD0===void 0){var O=document.createElement("template");_.f(O,'\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 id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\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');
O.content.insertBefore(_.e().content.cloneNode(!0),O.content.firstChild);tD0=O}O=tD0;return O}}});
VB.prototype.onOpenHotkeyDialog=VB.prototype.onOpenHotkeyDialog;VB.prototype.setFullscreen=VB.prototype.setFullscreen;VB.prototype.onAddElementToApp=VB.prototype.onAddElementToApp;VB.prototype.onDrawerIronSelect=VB.prototype.onDrawerIronSelect;VB.prototype.onGuideOpenButtonHover=VB.prototype.onGuideOpenButtonHover;VB.prototype.onRequestPanelModeChange=VB.prototype.onRequestPanelModeChange;VB.prototype.onPageDataUpdated=VB.prototype.onPageDataUpdated;VB.prototype.onPageChanged=VB.prototype.onPageChanged;
VB.prototype.onSetTheaterModeEnabled=VB.prototype.onSetTheaterModeEnabled;VB.prototype.updateMastheadData=VB.prototype.updateMastheadData;VB.prototype.onYtPageManagerAttached=VB.prototype.onYtPageManagerAttached;VB.prototype.observePersistentPanelVisibility=VB.prototype.observePersistentPanelVisibility;VB.prototype.observeGuideVisibility=VB.prototype.observeGuideVisibility;VB.prototype.guideIsVisibleButNotPersistentSelectorChanged=VB.prototype.guideIsVisibleButNotPersistentSelectorChanged;
VB.prototype.isInlinePreviewEnabledChanged=VB.prototype.isInlinePreviewEnabledChanged;VB.prototype.isWatchPageChanged=VB.prototype.isWatchPageChanged;VB.prototype.dispatchFrostedGlassMode=VB.prototype.dispatchFrostedGlassMode;_.c([_.h(_.MK),_.Y("design:type",Object)],VB.prototype,"ytdReduxBehavior",void 0);_.c([_.h(_.Nf.YtEventForwardingBehavior),_.Y("design:type",Object)],VB.prototype,"ytEventForwardingBehavior",void 0);
_.c([_.h(_.ko.YtOpenPopupBehavior),_.Y("design:type",Object)],VB.prototype,"ytOpenPopupBehavior",void 0);_.c([_.h(_.cg.YtActionHandlerBehavior),_.Y("design:type",Object)],VB.prototype,"ytActionHandlerBehavior",void 0);
_.c([_.h({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.sJ.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.V("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var O;((O=this.actionRouterNode.hostElement)!=null?O:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var O;((O=this.actionRouterNode.hostElement)!=null?O:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(O){this.actionRouter_.handleAction(O.detail)}}),
_.Y("design:type",Object)],VB.prototype,"ytActionRouterBehavior",void 0);_.c([_.h(xbr.YtdAppBehavior),_.Y("design:type",Object)],VB.prototype,"ytdAppBehavior",void 0);_.c([_.h(_.yZ.YtEndpointBehavior),_.Y("design:type",Object)],VB.prototype,"ytEndpointBehavior",void 0);_.c([_.h(VD0.YtEndpointHandlerWithYpcBehavior),_.Y("design:type",Object)],VB.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.c([_.h(W4K.YtLogYpcFlowCommandsBehavior),_.Y("design:type",Object)],VB.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.c([_.h(_.N.YtRendererBehavior),_.Y("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.c([_.h(_.xo.YtComponentBehavior),_.Y("design:type",Object)],VB.prototype,"ytComponentBehavior",void 0);_.c([_.g({selector:_.fyK}),_.Y("design:type",Object)],VB.prototype,"tabGesturesIsActive",void 0);_.c([_.g(),_.Y("design:type",Boolean)],VB.prototype,"renderGuide",void 0);
_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],VB.prototype,"guidePersistentAndVisible",void 0);_.c([_.g({selector:_.XxB}),_.Y("design:type",Boolean)],VB.prototype,"guideIsVisibleButNotPersistent",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],VB.prototype,"standalone",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],VB.prototype,"miniGuideVisible",void 0);
_.c([_.g(),_.Y("design:type",Object)],VB.prototype,"persistentPanelEnabled",void 0);_.c([_.g({selector:a69,reflectToAttribute:!0}),_.Y("design:type",Boolean)],VB.prototype,"persistentPanelVisible",void 0);_.c([_.g({selector:_.Mtp}),_.Y("design:type",Number)],VB.prototype,"miniplayerPlaybackState",void 0);_.c([_.g({selector:_.Ys,reflectToAttribute:!0}),_.Y("design:type",Boolean)],VB.prototype,"miniplayerIsActive",void 0);
_.c([_.g({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.Y("design:type",Boolean)],VB.prototype,"isInlinePreviewEnabled",void 0);_.c([_.g(),_.Y("design:type",Boolean)],VB.prototype,"isInlinePreviewDisabled",void 0);_.c([_.g({reflectToAttribute:!0,value:function(){return _.yE("START_IN_FULL_WINDOW_MODE")}}),
_.Y("design:type",Boolean)],VB.prototype,"mastheadHidden",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],VB.prototype,"playerFullscreen",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],VB.prototype,"fullscreen",void 0);_.c([_.g({value:!1,reflectToAttribute:!0}),_.Y("design:type",Boolean)],VB.prototype,"hideHeaderShadow",void 0);
_.c([_.g({value:{GUIDE_ALT_LABEL:_.Xm("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.Y("design:type",Object)],VB.prototype,"menuStrings",void 0);_.c([_.g({computed:"computeTopbarData(data)"}),_.Y("design:type",Object)],VB.prototype,"topbarData",void 0);_.c([_.g({selector:_.HiS,reflectToAttribute:!0}),_.Y("design:type",Boolean)],VB.prototype,"isWatchPage",void 0);_.c([_.g({selector:_.vAf,reflectToAttribute:!0}),_.Y("design:type",Boolean)],VB.prototype,"isShortsPage",void 0);
_.c([_.g({selector:function(O){return _.dv(O)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.Y("design:type",Boolean)],VB.prototype,"isMiniAppPage",void 0);_.c([_.g({selector:function(O){return _.dv(O)==="WEB_PAGE_TYPE_BROWSE"}}),
_.Y("design:type",Boolean)],VB.prototype,"isBrowsePage",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Boolean)],VB.prototype,"scrolling",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],VB.prototype,"hasDelegation",void 0);_.c([_.g({reflectToAttribute:!0,value:!1}),_.Y("design:type",Boolean)],VB.prototype,"guideScrolledByTouch",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],VB.prototype,"darkerDarkTheme",void 0);
_.c([_.g(),_.Y("design:type",Object)],VB.prototype,"isFrostedGlassInitialized",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],VB.prototype,"frostedGlassExp",void 0);_.c([_.g({selector:function(O){return O.ui.chipBarIsSticky}}),
_.Y("design:type",Boolean)],VB.prototype,"chipBarIsSticky",void 0);_.c([_.g({computed:"computeIsHomePage(isBrowsePage, data)"}),_.Y("design:type",Boolean)],VB.prototype,"isHomePage",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],VB.prototype,"hasPendingNavigation",void 0);_.c([_.g({reflectToAttribute:!0}),_.Y("design:type",Object)],VB.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.c([_.g(),_.Y("design:type",Object)],VB.prototype,"clientOnlyWizTooltipsEnabled",void 0);
_.c([_.cO("guide"),_.Y("design:type",Object)],VB.prototype,"guide",void 0);_.c([_.cO("guide-service"),_.Y("design:type",mRo)],VB.prototype,"guideService",void 0);_.c([_.cO("guide-inner-content"),_.Y("design:type",HTMLDivElement)],VB.prototype,"guideInnerContent",void 0);_.c([_.uc("#persistent-panel-container"),_.Y("design:type",HTMLElement)],VB.prototype,"persistentPanelContainer",void 0);_.c([_.g({selector:_.rC5}),_.Y("design:type",String)],VB.prototype,"frostedGlassMode",void 0);
_.c([_.Tw("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VB.prototype,"dispatchFrostedGlassMode",null);_.c([_.g({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.Y("design:type",Object)],VB.prototype,"isFrostedGlassDisabled",void 0);
_.c([_.Tw("isWatchPage"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VB.prototype,"isWatchPageChanged",null);_.c([_.T("isHomePage","chipBarIsSticky"),_.Y("design:type",Boolean),_.Y("design:paramtypes",[])],VB.prototype,"applyFrostedGlassToChipBar",null);_.c([_.g(),_.Y("design:type",Object)],VB.prototype,"isChannelOrPlaylistPage",void 0);
_.c([_.Si("isInlinePreviewEnabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VB.prototype,"isInlinePreviewEnabledChanged",null);_.c([_.Tw("guideIsVisibleButNotPersistent"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VB.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.c([_.Tw("guidePersistentAndVisible","miniGuideVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VB.prototype,"observeGuideVisibility",null);_.c([_.Tw("persistentPanelVisible"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VB.prototype,"observePersistentPanelVisibility",null);
_.c([_.hG("attached"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],VB.prototype,"onYtPageManagerAttached",null);_.c([_.Tw("data"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype",Promise)],VB.prototype,"updateMastheadData",null);_.c([_.hG("yt-set-theater-mode-enabled"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent,Object]),_.Y("design:returntype")],VB.prototype,"onSetTheaterModeEnabled",null);
_.c([_.hG("yt-page-type-changed"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],VB.prototype,"onPageChanged",null);_.c([_.hG("yt-page-data-updated"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VB.prototype,"onPageDataUpdated",null);_.c([_.hG("yt-request-panel-mode-change"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event,Object]),_.Y("design:returntype")],VB.prototype,"onRequestPanelModeChange",null);
_.c([_.hG("yt-guide-hover"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VB.prototype,"onGuideOpenButtonHover",null);_.c([_.hG("app-drawer-transitioned"),_.Y("design:type",Function),_.Y("design:paramtypes",[Event]),_.Y("design:returntype")],VB.prototype,"onDrawerIronSelect",null);_.c([_.hG("yt-add-element-to-app"),_.Y("design:type",Function),_.Y("design:paramtypes",[CustomEvent]),_.Y("design:returntype")],VB.prototype,"onAddElementToApp",null);
_.c([_.hG("yt-set-fullerscreen-styles"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VB.prototype,"setFullscreen",null);_.c([_.hG("yt-open-hotkey-dialog"),_.Y("design:type",Function),_.Y("design:paramtypes",[]),_.Y("design:returntype")],VB.prototype,"onOpenHotkeyDialog",null);_.c([_.l({is:"ytd-app"})],VB);_.xA().processSignal("eor");
_.aw();
}catch(e){_._DumpException(e)}
try{
_.lj("NSzT5");
var PHr;_.st=function(O){var m=document.createElement("link");_.Ro(m,O,"stylesheet");document.head.appendChild(m)};
_.Nh=function(O,m){var G,B;return _.r(function(Q){G=document.createElement("div");G.id=O.id;O.className&&(G.className=O.className);B=O.element;if(!B)throw Error("ak");if(O.location==="prepend")B.prepend(G);else if(O.location==="appendChild")B.appendChild(G);else if(O.location==="after")B.after(G);else throw Error("bk");return Q.return(_.Sx(G,m,"kh"))})};
_.PO=function(O){var m;return _.r(function(G){(m=document.getElementById(O))&&m.remove();_.ju(G)})};
_.FR=function(O,m){var G=document.querySelector(O);G?m(G):setTimeout(function(){_.FR(O,m)},1E3)};
_.F9K=function(O,m,G){var B;_.r(function(Q){if(Q.nextAddress==1)return(B=document.getElementById(O))?Q.jumpTo(2):Q.yield(PHr(O,m,G),2);if(B=document.getElementById(O))B.style.display="block";_.ju(Q)})};
PHr=function(O,m,G){return _.r(function(B){return B.return(new Promise(function(Q){_.FR("div #panels",function(H){_.Nh({element:H,location:"appendChild",id:O,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+G},m);Q()})}))})};
_.GCh=function(){_.PO("creator_chatbots-entry-point");_.PO("creator_chatbots-panel");_.st(Acb);_.FR("ytd-watch-metadata #top-level-buttons-computed",function(O){document.getElementById("creator_chatbots-entry-point")||(_.Nh({element:O,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.q(Ory,null)}),_.F9K("creator_chatbots-panel",function(){return _.q(mCJ,{usePlayerHeight:!0})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.Ap=_.a(function(O){var m=O.text;var G=O.onClick;var B=O.color;var Q=O.backgroundColor;var H=O.buttonSize;var M=O.disabled;var R=O.iconName;var x=O.iconSize;O=O.className;var t=_.nH(function(Z){G(Z)}),W={};
return _.q("button",{class:_.bE("ytpStandardButtonsHost",(W.ytpStandardButtonsLarge=function(){return(H==null?void 0:H())==="large"},W),O),
"on:click":t,style:_.hH({color:B,"background-color":Q}),disabled:M}," ",_.q(_.U,{cond:R,then:function(){return _.q(_.T$,{className:"ytpStandardButtonsIconContainer",icon:R,size:x})}}),m)},"jh");_.Brr=_.a(function(O){var m;return _.q("div",{class:_.bE("ytprototypesEngagementPanelComponentHost",O.className),id:O.id},_.q("div",{class:_.bE("ytprototypesEngagementPanelComponentEngagementPanelHeader",O.headerClassName)},_.q("div",null,O.header()),_.q("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.q("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(m=O.HeaderButton)==null?void 0:m.call(O)),_.q(_.Ap,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var G;(G=O.onHide)==null||G.call(O);G=O.id();if(G=document.getElementById(G))G.style.display="none"}}))),_.q("div",{class:_.bE("ytprototypesEngagementPanelComponentEngagementPanelContent",O.contentClassName),
style:function(){var G;return"height: "+(((G=O.height)==null?void 0:G.call(O))||"800px")+";"}},O.content()))},"lh");var QsA=_.FY(["https://portraits.google.com"]),Hrr=_.FY(["https://portraits.google.com/kimscott_vidcontexttests"]),vcA=_.FY(["https://labs-characters.teams.x20web.corp.google.com"]),K89=_.WY(QsA),$Cs=_.WY(Hrr),MY0=_.WY(vcA),mCJ=_.a(function(O){var m=O.usePlayerHeight;var G=O.isPersistentPanel;var B=_.V("enable_creator_chatbots_extension_dev_server"),Q=document.createElement("iframe"),H=B?MY0:$Cs;_.Qo6(Q,1,H);Q.className="ytprotoCreatorChatbotsAppLabsIframe";Q.allow="microphone; clipboard-read; clipboard-write self "+
H;var M=function(){var x;return _.r(function(t){if(t.nextAddress==1)return t.yield(_.KR().resolve(_.q1),2);(x=t.yieldResult)&&x.pauseVideo();_.ju(t)})},R=function(){var x,t,W;
return _.r(function(Z){return Z.nextAddress==1?Z.yield(_.KR().resolve(_.q1),2):(x=Z.yieldResult)?Z.return({video_id:(W=(t=x.getVideoData())==null?void 0:t.video_id)!=null?W:"",timestamp_sec:x.getCurrentTime().toString()}):Z.return({})})};
window.addEventListener("message",function(x){var t,W,Z,z,J,n;return _.r(function(I){if(I.nextAddress==1){t=B?MY0.toString():K89.toString();if(x.origin!==t)return console.warn("Received message from untrusted origin:",x.origin),I.return();W=x.data;if(typeof W!=="object"||W===null||!W.action)return I.return();if(W.action==="pause")return I.yield(M(),0);if(W.action!=="getYouTubeContext"||!x.source)return I.jumpTo(0);Z=x.source;z=Z.postMessage;J=JSON;n=J.stringify;return I.yield(R(),7)}z.call(Z,n.call(J,
{youTubeContext:I.yieldResult}),{targetOrigin:x.origin});return I.jumpTo(0)})});
_.ve("yt-page-type-changed",function(){if(G==null?0:G()){var x;((x=_.KR().resolve(_.KJ).getCurrentPage())==null?void 0:x.pageSubtype)!=="channels"&&(x=document.getElementById("creator_chatbots-panel-persistent"))&&(x.style.display="none")}});
return _.q("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(m==null?0:m())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.q(_.Brr,{id:function(){return(G==null?0:G())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var x=B?MY0.toString():K89.toString(),t;(t=Q.contentWindow)==null||t.postMessage("ep_closed",x)},
header:function(){return _.q("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.q("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.q(_.ra,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.q(_.Ap,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.Bi(window,_.yO(H.toString()),"_blank")}})},
content:function(){return Q}}))},"mh");var rKo,Acb,Ory;rKo=_.FY(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);Acb=_.WY(rKo);Ory=_.a(function(){var O=function(){_.F9K("creator_chatbots-panel",function(){return _.q(mCJ,{usePlayerHeight:!0})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.q("div",{class:"ytd-menu-renderer"},_.q(_.C3,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:O}},
icon:function(){return _.q(_.T$,{icon:"SPARK"})}}))},"nh");
_.In3=function(){var O;return _.r(function(m){return(O=document.getElementById("creator_chatbots-panel-persistent"))?(O.style.display==="none"&&(O.style.display="block"),m.jumpTo(0)):m.yield(new Promise(function(G){_.FR("ytd-app",function(B){_.Nh({element:B,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.q(mCJ,{isPersistentPanel:!0})});
G()})}),0)})};
_.aw();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
